Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

React Suite V6 #4084

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 135 commits into
base: main
Choose a base branch
Loading
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
135 commits
Select commit Hold shift + click to select a range
4b6b61c
build(deps): bump react-window from 1.8.8 to 1.8.11 (#4074)
simonguo Dec 20, 2024
e74920a
refactor: remove propTypes and use fireEvent instead of ReactDOMTestU…
simonguo Dec 20, 2024
4868e0e
refactor: remove special handling code for IE11 support (#4077)
simonguo Dec 23, 2024
a1107ef
refactor: deprecated React 17 (#4078)
simonguo Dec 23, 2024
03d5e4b
Merge branch 'main' into next
simonguo Dec 24, 2024
f3d3bbf
build: bump date-fns@4.1.0 (#4079)
obdulia-losantos Dec 24, 2024
d679636
refactor: remove deprecated Less variables (#4080)
simonguo Dec 24, 2024
44393c8
build(deps): bump lunar-typescript from 1.7.5 to 1.7.6 in docs (#4083)
simonguo Dec 24, 2024
b69b002
ci: add size-limit (#4086)
simonguo Dec 25, 2024
fa8bcdb
refactor(less): remove special handling code for IE11 support (#4087)
simonguo Dec 26, 2024
f263246
chore: run npm audit fix --force to update dependencies (#4089)
simonguo Dec 26, 2024
82e7a79
build(deps): bump stylelint from 14 to 16 (#4090)
simonguo Dec 26, 2024
4c0efdb
build(deps): bump babel 7.26.* (#4091)
simonguo Dec 26, 2024
3449dc3
build(deps): bump eslint from 7.25.0 to 9.17.0 (#4092)
simonguo Dec 27, 2024
fa2a076
ci(mocha): fix test command error when release version (#4093)
simonguo Dec 27, 2024
b88f83e
build(deps): bump less from 3.7.0 to 4.2.1 (#4094)
simonguo Dec 27, 2024
b3199d3
feat(Badge): add support for `compact`, `invisible`, `outline`, `plac…
simonguo Dec 31, 2024
7a190be
Merge branch 'main' into next
simonguo Jan 1, 2025
0a3e0e2
chore: remove deprecated dtslint (#4100)
simonguo Jan 2, 2025
e80e4fb
refactor(toaster): removed support for React 17 (#4102)
simonguo Jan 2, 2025
c419d14
build(deps): bump prettier from 2.8.8 to 3.4.2 (#4101)
simonguo Jan 2, 2025
613d142
feat(Tag): support custom color (#4104)
simonguo Jan 2, 2025
db6e615
test: add tests for Rate
simonguo Jan 2, 2025
10bc4e5
feat(Rate): add custom color support (#4105)
simonguo Jan 3, 2025
cf160fe
feat(Button): add support for toggleable and onToggle (#4095)
simonguo Jan 3, 2025
8635e84
build(deps): bump gulp-sourcemaps from 2.6.4 to 3.0.0 (#4108)
simonguo Jan 3, 2025
c449205
Merge branch 'main' into next
simonguo Jan 7, 2025
5ec1c4f
Merge branch 'main' into next
simonguo Jan 10, 2025
5e2eb4a
feat(Text): support custom color (#4106)
simonguo Jan 10, 2025
fb319f8
fix(Tree): improve duplicate value detection in Tree data structure a…
simonguo Jan 10, 2025
f84d095
feat(Navbar): adopt new design, optimize style and interaction (#4096)
simonguo Jan 10, 2025
31d21e2
refactor: improve the type export of all components (#4117)
simonguo Jan 13, 2025
399a43d
docs: remove deprecated props from v5 (#4115)
simonguo Jan 14, 2025
2406bca
feat(Navbar): add `visible` and `hidden` prop on Navbar.Content to su…
simonguo Jan 20, 2025
21f736b
chore: merge code from main branch
simonguo Jan 21, 2025
6dad326
docs: add Bun installation guide and update related documentation (#4…
simonguo Jan 21, 2025
b1d949d
test(Badge): add style test cases for positioning and independent dis…
simonguo Jan 21, 2025
9dfb1d7
refactor(docs): optimize device simulation and code display (#4122)
simonguo Jan 21, 2025
af6276a
feat(sidenav): implement new design for Sidenav (#4132)
simonguo Jan 24, 2025
99ed6d9
chore: merge main
simonguo Feb 7, 2025
09a5507
chore: merge main
simonguo Feb 7, 2025
60d5c0b
chore: update dependencies (#4143)
simonguo Feb 7, 2025
37cc54c
fix(pickers): improve pickers `renderValue` property type definition …
simonguo Feb 8, 2025
654ba35
feat(ButtonGroup): add disabled prop to ButtonGroup (#4146)
simonguo Feb 8, 2025
53992a9
docs: update theme documentation and related components (#4148)
simonguo Feb 9, 2025
2017b7a
feat(ButtonGroup): add divided property and improve button styles (#4…
simonguo Feb 9, 2025
93f86e8
fix(InputGroup): improve button styles in inside mode (#4149)
simonguo Feb 9, 2025
61796cd
feat(Kbd): add support for Kbd (#4150)
simonguo Feb 10, 2025
2264379
chore: merge main
simonguo Feb 21, 2025
8f9175f
refactor: use `rem` instead of `px` and use CSS variables (#4152)
simonguo Feb 21, 2025
7f55b6b
docs(animation): enhance animation examples (#4157)
simonguo Feb 21, 2025
26bc9f5
docs: update UI suite descriptions and style adjustments
simonguo Feb 21, 2025
35eb5a5
docs(animation): update animation fragments with new styles and descr…
simonguo Feb 21, 2025
dcbe346
docs(animation): adjust collapse animation fragment for consistent st…
simonguo Feb 21, 2025
4882ae8
refactor(styles): replace physical CSS properties with logical proper…
simonguo Feb 24, 2025
c469bed
docs: update component documentation format (#4159)
simonguo Feb 24, 2025
bba8e2f
refactor(Picker)!: rename properties for better consistency (#4160)
simonguo Feb 24, 2025
29f2ae7
feat(Menu): add Menu component (#4161)
simonguo Feb 26, 2025
e2a1eed
refactor(types): improve HTML props type definitions and organization
simonguo Feb 26, 2025
7143753
feat(Divider): enhance Divider component (#4164)
simonguo Mar 2, 2025
44705a5
feat(Navbar): add support for Nav.MegaMenu (#4162)
simonguo Mar 2, 2025
62f6aee
feat(Grid): redesign Row and Col components, optimize responsive layo…
simonguo Mar 5, 2025
a5173ca
fix(FormErrorMessage): use standard radius variable (#4169)
simonguo Mar 6, 2025
2a5ad86
refactor(Stack): update Stack component API and improve styles (#4167)
simonguo Mar 6, 2025
a968f32
refactor(FormErrorMessage): improve styles and placement handling (#4…
simonguo Mar 6, 2025
4df2425
refactor: improve dropdown and sidenav placement handling (#4171)
simonguo Mar 7, 2025
d10f4d3
refactor(overlay): improve overlay component architecture and positio…
simonguo Mar 9, 2025
954f29f
feat(Drawer): enhance responsive behavior and styling (#4176)
simonguo Mar 10, 2025
64da403
Merge branch 'main' into next
simonguo Mar 10, 2025
4d539b2
feat(Modal): add centered property and improve documentation for Moda…
simonguo Mar 12, 2025
8592d52
feat(Breadcrumb): enhance Breadcrumb component with size, icon suppor…
simonguo Mar 12, 2025
a08b986
feat: add Box and Center components (#4182)
simonguo Mar 14, 2025
15392be
fix(Box): improve responsive visibility behavior (#4185)
simonguo Mar 14, 2025
7d0c323
refactor(Uploader): migrate to TypeScript and improve code quality
simonguo Mar 15, 2025
30e9ba1
feat: migrate components to use Box as base component (#4188)
simonguo Mar 19, 2025
a63adda
feat: add named exports for Schema types and improve component styles…
simonguo Mar 19, 2025
5afddde
feat(Form): add FormStack component and update form styles (#4191)
simonguo Mar 20, 2025
e8e10fd
fix(DatePicker): adjust label padding based on size (#4190)
simonguo Mar 20, 2025
d4d6ee5
refactor: update picker styles and tests (#4195)
simonguo Mar 26, 2025
c2e86d8
Merge branch 'main' into next
simonguo Mar 26, 2025
7abfff5
chore: merge main
simonguo Mar 26, 2025
22a99a7
feat: add support for Link component (#4208)
simonguo Mar 27, 2025
d5236df
fix(Slider): fix issue where arrow in Tooltip is not displayed (#4209)
simonguo Mar 27, 2025
ada2c7b
feat(Slider): add size and marks properties to Slider and RangeSlider…
simonguo Mar 29, 2025
4ae63e2
feat(Picker): add responsive control to Picker components (#4211)
simonguo Mar 29, 2025
cfb38b1
docs(picker): improve picker components documentation and mobile adap…
simonguo Apr 2, 2025
aaa5f95
chore: update browserslist
simonguo Apr 2, 2025
2ae1eb6
Merge branch 'main' into next
simonguo Apr 2, 2025
f448d0b
feat(Toggle): add `xl` and `xs` values to `size` prop (#4217)
simonguo Apr 3, 2025
31319cf
Merge branch 'main' into next
simonguo Apr 3, 2025
ceac7e4
feat(Row): `gutter` property supports array to set horizontal and ver…
simonguo Apr 3, 2025
4bf19bc
feat(Toggle): add support for `label` and `labelPlacement` properties…
simonguo Apr 3, 2025
031324a
Merge branch 'main' into next
simonguo Apr 3, 2025
87bdd88
fix(List): fix timeout issues in List component sorting tests
simonguo Apr 3, 2025
e485eb5
chore: update package dependencies including React, TypeScript and St…
simonguo Apr 3, 2025
c2b4402
docs(table): add filterable table component documentation (#4225)
simonguo Apr 9, 2025
e3bbcb4
fix(Image): fix lazy loading not working (#4224)
simonguo Apr 11, 2025
aaf4b05
docs(thumbnails): add component thumbnails for all components (#4227)
simonguo Apr 11, 2025
27d1a8e
feat(rate): add fractional rating support (#4231)
simonguo Apr 14, 2025
e2d982d
refactor(divider): rename labelPosition to labelPlacement for consist…
simonguo Apr 15, 2025
ee166db
docs(form): unify demo layout with Form.Stack (#4236)
simonguo Apr 15, 2025
b92dd2d
Merge branch 'main' into next
simonguo Apr 15, 2025
1e3e8e6
feat(password-input): add PasswordInput and PasswordStrengthMeter com…
simonguo Apr 15, 2025
3d62bb2
feat(Textarea): add Textarea component (#4235)
simonguo Apr 15, 2025
a77dd94
docs: update version badges and component meta for v6.0.0 (#4238)
simonguo Apr 16, 2025
c65cd89
feat(PasswordInput): add startIcon and endIcon props (#4239)
simonguo Apr 17, 2025
acc10a1
feat(PinInput): add support for PinInput component (#4242)
simonguo Apr 17, 2025
28fa8f9
chore: merge updates from main branch
simonguo Apr 18, 2025
7a1848a
refactor(NumberInput): rename InputNumber to NumberInput (#4243)
simonguo Apr 18, 2025
add801a
feat(Navbar.Toggle): add a new Burger component, applied to Navbar.To…
simonguo Apr 18, 2025
8616ac5
fix(vite): resolve circular dependency between chunks (#4249)
simonguo Apr 18, 2025
f4f0492
fix(Slider): fix handle style issue on mobile devices (#4244)
simonguo Apr 18, 2025
ff44b9f
docs: update examples of responsive components (#4251)
simonguo Apr 19, 2025
56a3a59
feat(input,picker): improve focus and hover effects (#4252)
simonguo Apr 24, 2025
85db80a
fix(message): update spacing to use css variables (#4258)
simonguo Apr 24, 2025
db74792
fix(CloseButton): standardize close button styles (#4260)
simonguo Apr 24, 2025
15dcdf3
docs(breadcrumb): add example descriptions and dropdown example (#4261)
simonguo Apr 28, 2025
71a3414
Merge branch 'main' into next
simonguo May 7, 2025
34b9c8d
Merge branch 'main' into next
simonguo May 8, 2025
3a66273
feat(Form): add useFormControl hook (#4268)
simonguo May 9, 2025
2dce8fb
Merge branch 'main' into next
simonguo May 9, 2025
7d4a8ef
feat(Form.Control): add static error placement option (#4269)
simonguo May 9, 2025
961ff5f
feat(Progress): add new properties to Progress and ProgressCircle com…
simonguo May 9, 2025
fecb72d
docs: move version column to the end of the table (#4275)
simonguo May 9, 2025
7945b17
Merge branch 'main' into next
simonguo May 17, 2025
86597bd
chore: migrate test framework from Karma/Mocha to Vitest (#4284)
simonguo May 17, 2025
8387065
docs(PasswordInput): fix incorrect order of examples (#4290)
simonguo May 21, 2025
fe4a27b
chore: replace sinon with vitest's vi (#4289)
simonguo May 23, 2025
d5d9915
chore: merge main
simonguo May 23, 2025
0aded45
docs(Stat): update ring progress documentation and related examples (…
simonguo May 24, 2025
853d81b
fix(useToaster): add warning when used outside of CustomProvider (#4296)
simonguo May 26, 2025
603601f
feat(useDialog): add support for useDialog (#4300)
simonguo May 26, 2025
f8ca46d
docs: add Modal Integrations documentation and update related example…
simonguo May 27, 2025
8227750
chore: update .gitignore file (#4303)
simonguo May 28, 2025
4a36956
docs(overview): add optional chaining to prevent potential runtime er…
simonguo May 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 0 additions & 8 deletions 8 .eslintignore

This file was deleted.

76 changes: 0 additions & 76 deletions 76 .eslintrc.js

This file was deleted.

47 changes: 31 additions & 16 deletions 47 .github/workflows/nodejs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@ on:
branches:
- main
- next
- v4
- '*.x'
pull_request:
branches:
- main
- next
- v4
- '*.x'

jobs:
lint:
Expand All @@ -26,7 +22,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- run: npm ci
- run: npm ci --legacy-peer-deps
- run: npm run format:check
- run: npm run lint

Expand All @@ -37,19 +33,35 @@ jobs:

strategy:
matrix:
browser: [ChromeCi, Firefox]
react: ['React17', 'React18']
browser: [chromium, firefox]
react: ['React18', 'React19']

steps:
- uses: actions/checkout@v4

- name: Setup kernel, increase watchers
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

- name: Use Node.js LTS
uses: actions/setup-node@v4
with:
node-version: 'lts/*'

- name: Free disk space on runner
if: runner.os == 'Linux' # ubuntu-latest is Linux
run: |
echo "Initial disk space:"
df -h
sudo docker image prune -a -f || echo "Docker image prune failed or Docker not available"
sudo rm -rf /usr/share/dotnet || echo "Failed to remove dotnet or it doesn't exist"
sudo rm -rf /opt/ghc || echo "Failed to remove ghc or it doesn't exist"
sudo rm -rf /usr/local/lib/android || echo "Failed to remove android or it doesn't exist"
sudo rm -rf /usr/local/share/powershell || echo "Failed to remove powershell or it doesn't exist"
sudo rm -rf /usr/local/share/rust || echo "Failed to remove rust or it doesn't exist"
sudo rm -rf /opt/hostedtoolcache || echo "Failed to remove hostedtoolcache"
sudo apt-get clean
sudo apt-get autoremove -y
sudo rm -rf /var/lib/apt/lists/*
npm cache clean --force || echo "npm cache clean failed"
echo "Disk space after cleanup:"
df -h

- name: Cache Node.js modules
uses: actions/cache@v4
with:
Expand All @@ -60,18 +72,21 @@ jobs:
${{ runner.OS }}-

- name: Install dependencies
run: npm install
run: npm install --legacy-peer-deps

- name: install react 17
if: ${{ matrix.react == 'React17' }}
run: npm run install:react-17
- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: install react 18
if: ${{ matrix.react == 'React18' }}
run: npm run install:react-18

- name: install react 19
if: ${{ matrix.react == 'React19' }}
run: npm run install:react-19

- name: Run headless tests
run: xvfb-run --auto-servernum npm test
run: npm run test:ci --browser.name=${{ env.BROWSER }} --browser.headless
env:
CI: true
BROWSER: ${{ matrix.browser }}
Expand Down
2 changes: 1 addition & 1 deletion 2 .github/workflows/nodejs-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install
run: npm i --legacy-peer-deps
- name: Build
run: npm run build
- name: Publish
Expand Down
24 changes: 24 additions & 0 deletions 24 .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Size Limit
on:
pull_request:
branches:
- main
- next

jobs:
size:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'

- name: Install dependencies
run: npm i --legacy-peer-deps

- name: Run Size Limit
run: npm run size
4 changes: 3 additions & 1 deletion 4 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ node_modules
# Editor
.vscode
.idea
.windsurf
.cursor

# build
lib/


# generated
docs/public/examples
docs/public/examples
1 change: 1 addition & 0 deletions 1 .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
src/styles/variables.less
src/styles/root.less
File renamed without changes.
14 changes: 9 additions & 5 deletions 14 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ React Suite is a set of React components. It is committed to providing high-qual

## Supported Platforms

### Browser
### Browsers support

React Suite supports the latest, stable releases of all major browsers and platforms. IE<=10 is no longer supported since React Suite 5.0. React Suite is designed and implemented for use on modern desktop browsers rather than mobile browsers.
| ![][edge]<br/>Edge | ![][firefox]<br/>Firefox | ![][chrome]<br/>Chrome | ![][safari]<br/>Safari | ![][electron]<br/>Electron |
| ------------------ | ------------------------ | ---------------------- | ---------------------- | -------------------------- |
| Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |

| IE | Edge | Firefox | Chrome | Safari |
| ---- | ---- | ------- | ------ | ------ |
| >=11 | >=14 | >= 45 | >= 49 | >= 10 |
[edge]: https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png
[firefox]: https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png
[chrome]: https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png
[safari]: https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png
[electron]: https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png

### Server

Expand Down
14 changes: 9 additions & 5 deletions 14 README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@ React Suite 是一套 React 组件库。致力于提供高质量并且全面的

### 浏览器

React Suite 支持最新的,稳定版的全部主流浏览器和平台。 从 React Suite 5 开始不支持 IE10 以下版本(包括 IE10)。不推荐在移动端使用。

| IE | Edge | Firefox | Chrome | Safari |
| ---- | ---- | ------- | ------ | ------ |
| >=11 | >=14 | >= 45 | >= 49 | >= 10 |
| ![][edge]<br/>Edge | ![][firefox]<br/>Firefox | ![][chrome]<br/>Chrome | ![][safari]<br/>Safari | ![][electron]<br/>Electron |
| ------------------ | ------------------------ | ---------------------- | ---------------------- | -------------------------- |
| Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |

[edge]: https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png
[firefox]: https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png
[chrome]: https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png
[safari]: https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png
[electron]: https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png

### 服务端

Expand Down
3 changes: 1 addition & 2 deletions 3 docs/.browserslistrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
> 1%
last 2 versions
defaults
Loading
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.