Skip to content

Commit 5c8ab56

Browse files
committed
Merge branch 'main' into feat/playwright-tests-components
2 parents 64b9671 + acce84d commit 5c8ab56

File tree

146 files changed

+2460
-2141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+2460
-2141
lines changed

bun.lock

Lines changed: 689 additions & 735 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@
3636
"devDependencies": {
3737
"@biomejs/biome": "1.9.4",
3838
"@types/bun": "1.2.4",
39-
"lefthook": "1.11.2",
39+
"lefthook": "1.11.3",
4040
"prettier": "3.5.3",
4141
"prettier-plugin-svelte": "3.3.3",
4242
"turbo": "2.4.4",
4343
"typescript": "5.8.2",
44-
"vercel": "41.3.0"
44+
"vercel": "41.3.2"
4545
},
4646
"packageManager": "[email protected]",
4747
"trustedDependencies": [

packages/react/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ description: All notable changes will be documented in this file.
66

77
## [Unreleased]
88

9+
## [5.0.1] - 2025-03-11
10+
11+
### Fixed
12+
13+
- **General**: Effects now flush synchronously instead of using a microtask.
14+
- **Checkbox**: `data-invalid` is no longer set when `invalid` is `false`.
15+
- **Combobox**: Fixed unexpected cursor movement when editing input.
16+
- **PinInput**: OTP SMS autofill now works as expected.
17+
- **RatingGroup**: Fixed incorrect focus placement on the label.
18+
- **TagsInput**: Improved caret detection to prevent unintended tag removal.
19+
- **Timer**
20+
- Fixed slowdown when switching tabs/windows.
21+
- Changed default `interval` from `250` to `1000`.
22+
923
## [5.0.0] - 2025-03-06
1024

1125
Ark UI just got a major performance boost! 🚀

packages/react/package.json

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@ark-ui/react",
33
"type": "module",
4-
"version": "5.0.0",
4+
"version": "5.0.1",
55
"description": "A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.",
66
"keywords": [
77
"accordion",
@@ -84,58 +84,58 @@
8484
"sideEffects": false,
8585
"dependencies": {
8686
"@internationalized/date": "3.7.0",
87-
"@zag-js/accordion": "1.3.1",
88-
"@zag-js/anatomy": "1.3.1",
89-
"@zag-js/auto-resize": "1.3.1",
90-
"@zag-js/avatar": "1.3.1",
91-
"@zag-js/carousel": "1.3.1",
92-
"@zag-js/checkbox": "1.3.1",
93-
"@zag-js/clipboard": "1.3.1",
94-
"@zag-js/collapsible": "1.3.1",
95-
"@zag-js/collection": "1.3.1",
96-
"@zag-js/color-picker": "1.3.1",
97-
"@zag-js/color-utils": "1.3.1",
98-
"@zag-js/combobox": "1.3.1",
99-
"@zag-js/core": "1.3.1",
100-
"@zag-js/date-picker": "1.3.1",
101-
"@zag-js/date-utils": "1.3.1",
102-
"@zag-js/dialog": "1.3.1",
103-
"@zag-js/dom-query": "1.3.1",
104-
"@zag-js/editable": "1.3.1",
105-
"@zag-js/file-upload": "1.3.1",
106-
"@zag-js/file-utils": "1.3.1",
107-
"@zag-js/focus-trap": "1.3.1",
108-
"@zag-js/highlight-word": "1.3.1",
109-
"@zag-js/hover-card": "1.3.1",
110-
"@zag-js/i18n-utils": "1.3.1",
111-
"@zag-js/menu": "1.3.1",
112-
"@zag-js/number-input": "1.3.1",
113-
"@zag-js/pagination": "1.3.1",
114-
"@zag-js/pin-input": "1.3.1",
115-
"@zag-js/popover": "1.3.1",
116-
"@zag-js/presence": "1.3.1",
117-
"@zag-js/progress": "1.3.1",
118-
"@zag-js/qr-code": "1.3.1",
119-
"@zag-js/radio-group": "1.3.1",
120-
"@zag-js/rating-group": "1.3.1",
121-
"@zag-js/react": "1.3.1",
122-
"@zag-js/select": "1.3.1",
123-
"@zag-js/signature-pad": "1.3.1",
124-
"@zag-js/slider": "1.3.1",
125-
"@zag-js/splitter": "1.3.1",
126-
"@zag-js/steps": "1.3.1",
127-
"@zag-js/switch": "1.3.1",
128-
"@zag-js/tabs": "1.3.1",
129-
"@zag-js/tags-input": "1.3.1",
130-
"@zag-js/time-picker": "1.3.1",
131-
"@zag-js/timer": "1.3.1",
132-
"@zag-js/toast": "1.3.1",
133-
"@zag-js/toggle": "1.3.1",
134-
"@zag-js/toggle-group": "1.3.1",
135-
"@zag-js/tooltip": "1.3.1",
136-
"@zag-js/tour": "1.3.1",
137-
"@zag-js/tree-view": "1.3.1",
138-
"@zag-js/types": "1.3.1"
87+
"@zag-js/accordion": "1.3.3",
88+
"@zag-js/anatomy": "1.3.3",
89+
"@zag-js/auto-resize": "1.3.3",
90+
"@zag-js/avatar": "1.3.3",
91+
"@zag-js/carousel": "1.3.3",
92+
"@zag-js/checkbox": "1.3.3",
93+
"@zag-js/clipboard": "1.3.3",
94+
"@zag-js/collapsible": "1.3.3",
95+
"@zag-js/collection": "1.3.3",
96+
"@zag-js/color-picker": "1.3.3",
97+
"@zag-js/color-utils": "1.3.3",
98+
"@zag-js/combobox": "1.3.3",
99+
"@zag-js/core": "1.3.3",
100+
"@zag-js/date-picker": "1.3.3",
101+
"@zag-js/date-utils": "1.3.3",
102+
"@zag-js/dialog": "1.3.3",
103+
"@zag-js/dom-query": "1.3.3",
104+
"@zag-js/editable": "1.3.3",
105+
"@zag-js/file-upload": "1.3.3",
106+
"@zag-js/file-utils": "1.3.3",
107+
"@zag-js/focus-trap": "1.3.3",
108+
"@zag-js/highlight-word": "1.3.3",
109+
"@zag-js/hover-card": "1.3.3",
110+
"@zag-js/i18n-utils": "1.3.3",
111+
"@zag-js/menu": "1.3.3",
112+
"@zag-js/number-input": "1.3.3",
113+
"@zag-js/pagination": "1.3.3",
114+
"@zag-js/pin-input": "1.3.3",
115+
"@zag-js/popover": "1.3.3",
116+
"@zag-js/presence": "1.3.3",
117+
"@zag-js/progress": "1.3.3",
118+
"@zag-js/qr-code": "1.3.3",
119+
"@zag-js/radio-group": "1.3.3",
120+
"@zag-js/rating-group": "1.3.3",
121+
"@zag-js/react": "1.3.3",
122+
"@zag-js/select": "1.3.3",
123+
"@zag-js/signature-pad": "1.3.3",
124+
"@zag-js/slider": "1.3.3",
125+
"@zag-js/splitter": "1.3.3",
126+
"@zag-js/steps": "1.3.3",
127+
"@zag-js/switch": "1.3.3",
128+
"@zag-js/tabs": "1.3.3",
129+
"@zag-js/tags-input": "1.3.3",
130+
"@zag-js/time-picker": "1.3.3",
131+
"@zag-js/timer": "1.3.3",
132+
"@zag-js/toast": "1.3.3",
133+
"@zag-js/toggle": "1.3.3",
134+
"@zag-js/toggle-group": "1.3.3",
135+
"@zag-js/tooltip": "1.3.3",
136+
"@zag-js/tour": "1.3.3",
137+
"@zag-js/tree-view": "1.3.3",
138+
"@zag-js/types": "1.3.3"
139139
},
140140
"devDependencies": {
141141
"@biomejs/biome": "1.9.4",
@@ -152,11 +152,11 @@
152152
"@types/react": "19.0.10",
153153
"@types/react-dom": "19.0.4",
154154
"@vitejs/plugin-react": "4.3.4",
155-
"@zag-js/stringify-state": "1.3.1",
155+
"@zag-js/stringify-state": "1.3.3",
156156
"clean-package": "2.2.0",
157157
"globby": "14.1.0",
158-
"happy-dom": "17.1.8",
159-
"lucide-react": "0.477.0",
158+
"happy-dom": "17.4.3",
159+
"lucide-react": "0.479.0",
160160
"react": "19.0.0",
161161
"react-dom": "19.0.0",
162162
"react-frame-component": "5.2.7",
@@ -167,7 +167,7 @@
167167
"typescript": "5.8.2",
168168
"vite": "6.2.0",
169169
"vite-plugin-dts": "4.5.3",
170-
"vitest": "3.0.7",
170+
"vitest": "3.0.8",
171171
"vitest-axe": "1.0.0-pre.5"
172172
},
173173
"peerDependencies": {

packages/react/src/components/accordion/accordion.stories.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export { Disabled } from './examples/disabled'
1717
export { Horizontal } from './examples/horizontal'
1818
export { LazyMount } from './examples/lazy-mount'
1919
export { Multiple } from './examples/multiple'
20-
export { Provider } from './examples/provider'
2120
export { RenderProp } from './examples/render-prop'
2221
export { RootProvider } from './examples/root-provider'
2322
export { Vertical } from './examples/vertical'

packages/react/src/components/accordion/examples/provider.tsx

Lines changed: 0 additions & 25 deletions
This file was deleted.

packages/react/src/components/accordion/examples/root-provider.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
import { Accordion, useAccordion } from '@ark-ui/react/accordion'
22
import { ChevronDownIcon } from 'lucide-react'
3+
import { useState } from 'react'
34

45
export const RootProvider = () => {
5-
const accordion = useAccordion({ defaultValue: ['React'] })
6+
const [value, setValue] = useState(['React'])
7+
const accordion = useAccordion({
8+
multiple: true,
9+
value,
10+
onValueChange: (e) => setValue(e.value),
11+
})
612

713
return (
814
<>

packages/react/src/components/accordion/use-accordion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { Optional } from '../../types'
77
export interface UseAccordionProps extends Optional<Omit<accordion.Props, 'dir' | 'getRootNode'>, 'id'> {}
88
export interface UseAccordionReturn extends accordion.Api<PropTypes> {}
99

10-
export const useAccordion = (props: UseAccordionProps = {}): UseAccordionReturn => {
10+
export const useAccordion = (props?: UseAccordionProps): UseAccordionReturn => {
1111
const id = useId()
1212
const { getRootNode } = useEnvironmentContext()
1313
const { dir } = useLocaleContext()

packages/react/src/components/avatar/use-avatar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { Optional } from '../../types'
77
export interface UseAvatarProps extends Optional<Omit<avatar.Props, 'dir' | 'getRootNode'>, 'id'> {}
88
export interface UseAvatarReturn extends avatar.Api<PropTypes> {}
99

10-
export const useAvatar = (props: UseAvatarProps = {}): UseAvatarReturn => {
10+
export const useAvatar = (props?: UseAvatarProps): UseAvatarReturn => {
1111
const id = useId()
1212
const { getRootNode } = useEnvironmentContext()
1313
const { dir } = useLocaleContext()

packages/react/src/components/clipboard/use-clipboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { Optional } from '../../types'
77
export interface UseClipboardProps extends Optional<Omit<clipboard.Props, 'getRootNode'>, 'id'> {}
88
export interface UseClipboardReturn extends clipboard.Api<PropTypes> {}
99

10-
export const useClipboard = (props: UseClipboardProps = {}): UseClipboardReturn => {
10+
export const useClipboard = (props?: UseClipboardProps): UseClipboardReturn => {
1111
const id = useId()
1212
const { getRootNode } = useEnvironmentContext()
1313

0 commit comments

Comments
 (0)