@ark-ui/react 5.14.0 → 5.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/dist/components/checkbox/checkbox-indicator.d.cts +1 -1
  2. package/dist/components/checkbox/checkbox-indicator.d.ts +1 -1
  3. package/dist/components/checkbox/use-checkbox-group.d.cts +7 -7
  4. package/dist/components/checkbox/use-checkbox-group.d.ts +7 -7
  5. package/dist/components/clipboard/clipboard-indicator.d.cts +1 -1
  6. package/dist/components/clipboard/clipboard-indicator.d.ts +1 -1
  7. package/dist/components/collapsible/use-collapsible.d.cts +1 -1
  8. package/dist/components/collapsible/use-collapsible.d.ts +1 -1
  9. package/dist/components/color-picker/color-picker-value-text.d.cts +1 -1
  10. package/dist/components/color-picker/color-picker-value-text.d.ts +1 -1
  11. package/dist/components/date-picker/date-picker-range-text.cjs +6 -1
  12. package/dist/components/date-picker/date-picker-range-text.js +7 -2
  13. package/dist/components/dialog/dialog-root-provider.d.cts +1 -1
  14. package/dist/components/dialog/dialog-root-provider.d.ts +1 -1
  15. package/dist/components/dialog/dialog-root.d.cts +1 -1
  16. package/dist/components/dialog/dialog-root.d.ts +1 -1
  17. package/dist/components/factory.d.cts +1 -1
  18. package/dist/components/factory.d.ts +1 -1
  19. package/dist/components/field/field-required-indicator.d.cts +1 -1
  20. package/dist/components/field/field-required-indicator.d.ts +1 -1
  21. package/dist/components/field/field-textarea.d.cts +1 -1
  22. package/dist/components/field/field-textarea.d.ts +1 -1
  23. package/dist/components/field/use-field.d.cts +11 -11
  24. package/dist/components/field/use-field.d.ts +11 -11
  25. package/dist/components/fieldset/use-fieldset.d.cts +3 -3
  26. package/dist/components/fieldset/use-fieldset.d.ts +3 -3
  27. package/dist/components/file-upload/file-upload-item-preview.d.cts +1 -1
  28. package/dist/components/file-upload/file-upload-item-preview.d.ts +1 -1
  29. package/dist/components/floating-panel/floating-panel-root-provider.d.cts +1 -1
  30. package/dist/components/floating-panel/floating-panel-root-provider.d.ts +1 -1
  31. package/dist/components/floating-panel/floating-panel-root.d.cts +1 -1
  32. package/dist/components/floating-panel/floating-panel-root.d.ts +1 -1
  33. package/dist/components/focus-trap/focus-trap.d.cts +1 -1
  34. package/dist/components/focus-trap/focus-trap.d.ts +1 -1
  35. package/dist/components/format/format-byte.d.cts +2 -2
  36. package/dist/components/format/format-byte.d.ts +2 -2
  37. package/dist/components/frame/frame-content.d.cts +3 -3
  38. package/dist/components/frame/frame-content.d.ts +3 -3
  39. package/dist/components/frame/frame.d.cts +3 -3
  40. package/dist/components/frame/frame.d.ts +3 -3
  41. package/dist/components/hover-card/hover-card-root-provider.d.cts +1 -1
  42. package/dist/components/hover-card/hover-card-root-provider.d.ts +1 -1
  43. package/dist/components/hover-card/hover-card-root.d.cts +1 -1
  44. package/dist/components/hover-card/hover-card-root.d.ts +1 -1
  45. package/dist/components/index.cjs +2 -0
  46. package/dist/components/index.js +1 -0
  47. package/dist/components/listbox/index.cjs +2 -0
  48. package/dist/components/listbox/index.d.cts +1 -0
  49. package/dist/components/listbox/index.d.ts +1 -0
  50. package/dist/components/listbox/index.js +1 -0
  51. package/dist/components/listbox/listbox-context.cjs +10 -0
  52. package/dist/components/listbox/listbox-context.js +6 -0
  53. package/dist/components/listbox/listbox-value-text.d.cts +1 -1
  54. package/dist/components/listbox/listbox-value-text.d.ts +1 -1
  55. package/dist/components/listbox/listbox.cjs +2 -0
  56. package/dist/components/listbox/listbox.d.cts +1 -0
  57. package/dist/components/listbox/listbox.d.ts +1 -0
  58. package/dist/components/listbox/listbox.js +1 -0
  59. package/dist/components/menu/menu-item.d.cts +1 -1
  60. package/dist/components/menu/menu-item.d.ts +1 -1
  61. package/dist/components/menu/menu-root-provider.d.cts +1 -1
  62. package/dist/components/menu/menu-root-provider.d.ts +1 -1
  63. package/dist/components/menu/menu-root.d.cts +1 -1
  64. package/dist/components/menu/menu-root.d.ts +1 -1
  65. package/dist/components/menu/use-menu-item-group-context.d.cts +2 -2
  66. package/dist/components/menu/use-menu-item-group-context.d.ts +2 -2
  67. package/dist/components/popover/popover-root-provider.d.cts +1 -1
  68. package/dist/components/popover/popover-root-provider.d.ts +1 -1
  69. package/dist/components/popover/popover-root.d.cts +1 -1
  70. package/dist/components/popover/popover-root.d.ts +1 -1
  71. package/dist/components/portal/portal.d.cts +2 -2
  72. package/dist/components/portal/portal.d.ts +2 -2
  73. package/dist/components/presence/use-presence.d.cts +1 -1
  74. package/dist/components/presence/use-presence.d.ts +1 -1
  75. package/dist/components/select/select-value-text.d.cts +1 -1
  76. package/dist/components/select/select-value-text.d.ts +1 -1
  77. package/dist/components/toggle/toggle-indicator.d.cts +1 -1
  78. package/dist/components/toggle/toggle-indicator.d.ts +1 -1
  79. package/dist/components/tooltip/tooltip-root-provider.d.cts +1 -1
  80. package/dist/components/tooltip/tooltip-root-provider.d.ts +1 -1
  81. package/dist/components/tooltip/tooltip-root.d.cts +1 -1
  82. package/dist/components/tooltip/tooltip-root.d.ts +1 -1
  83. package/dist/components/tour/tour-root.d.cts +1 -1
  84. package/dist/components/tour/tour-root.d.ts +1 -1
  85. package/dist/components/tree-view/index.d.cts +1 -1
  86. package/dist/components/tree-view/index.d.ts +1 -1
  87. package/dist/components/tree-view/tree-view-label.cjs +1 -1
  88. package/dist/components/tree-view/tree-view-label.d.cts +2 -2
  89. package/dist/components/tree-view/tree-view-label.d.ts +2 -2
  90. package/dist/components/tree-view/tree-view-label.js +1 -1
  91. package/dist/components/tree-view/tree-view-node-provider.d.cts +1 -1
  92. package/dist/components/tree-view/tree-view-node-provider.d.ts +1 -1
  93. package/dist/components/tree-view/tree-view.d.cts +1 -1
  94. package/dist/components/tree-view/tree-view.d.ts +1 -1
  95. package/dist/index.cjs +2 -0
  96. package/dist/index.js +1 -0
  97. package/dist/providers/environment/environment-provider.d.cts +2 -2
  98. package/dist/providers/environment/environment-provider.d.ts +2 -2
  99. package/dist/utils/create-context.d.cts +6 -6
  100. package/dist/utils/create-context.d.ts +6 -6
  101. package/dist/utils/render-strategy.d.cts +2 -2
  102. package/dist/utils/render-strategy.d.ts +2 -2
  103. package/dist/utils/use-controllable-state.d.cts +3 -3
  104. package/dist/utils/use-controllable-state.d.ts +3 -3
  105. package/dist/utils/use-event.d.cts +1 -1
  106. package/dist/utils/use-event.d.ts +1 -1
  107. package/package.json +65 -65
@@ -4,12 +4,12 @@ export interface RenderStrategyProps {
4
4
  * Whether to enable lazy mounting
5
5
  * @default false
6
6
  */
7
- lazyMount?: boolean;
7
+ lazyMount?: boolean | undefined;
8
8
  /**
9
9
  * Whether to unmount on exit.
10
10
  * @default false
11
11
  */
12
- unmountOnExit?: boolean;
12
+ unmountOnExit?: boolean | undefined;
13
13
  }
14
14
  export declare const RenderStrategyPropsProvider: Provider<RenderStrategyProps>, useRenderStrategyPropsContext: () => RenderStrategyProps;
15
15
  export declare const splitRenderStrategyProps: <T extends RenderStrategyProps>(props: T) => [RenderStrategyProps, Omit<T, "lazyMount" | "unmountOnExit">];
@@ -1,6 +1,6 @@
1
1
  export interface UseControllableStateProps<T> {
2
- value?: T;
3
- defaultValue?: T;
4
- onChange?: (value: T) => void;
2
+ value?: T | undefined;
3
+ defaultValue?: T | undefined;
4
+ onChange?: ((value: T) => void) | undefined;
5
5
  }
6
6
  export declare function useControllableState<T>(props: UseControllableStateProps<T>): readonly [T, (value: T) => void | undefined];
@@ -1,6 +1,6 @@
1
1
  export interface UseControllableStateProps<T> {
2
- value?: T;
3
- defaultValue?: T;
4
- onChange?: (value: T) => void;
2
+ value?: T | undefined;
3
+ defaultValue?: T | undefined;
4
+ onChange?: ((value: T) => void) | undefined;
5
5
  }
6
6
  export declare function useControllableState<T>(props: UseControllableStateProps<T>): readonly [T, (value: T) => void | undefined];
@@ -3,7 +3,7 @@ type Options = {
3
3
  /**
4
4
  * Whether to use flushSync or not
5
5
  */
6
- sync?: boolean;
6
+ sync?: boolean | undefined;
7
7
  };
8
8
  /**
9
9
  * Returns a memoized callback that will flushSync the callback if sync is true
@@ -3,7 +3,7 @@ type Options = {
3
3
  /**
4
4
  * Whether to use flushSync or not
5
5
  */
6
- sync?: boolean;
6
+ sync?: boolean | undefined;
7
7
  };
8
8
  /**
9
9
  * Returns a memoized callback that will flushSync the callback if sync is true
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ark-ui/react",
3
3
  "type": "module",
4
- "version": "5.14.0",
4
+ "version": "5.14.2",
5
5
  "description": "A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.",
6
6
  "keywords": [
7
7
  "accordion",
@@ -141,88 +141,88 @@
141
141
  "sideEffects": false,
142
142
  "dependencies": {
143
143
  "@internationalized/date": "3.8.2",
144
- "@zag-js/accordion": "1.15.2",
145
- "@zag-js/angle-slider": "1.15.2",
146
- "@zag-js/anatomy": "1.15.2",
147
- "@zag-js/auto-resize": "1.15.2",
148
- "@zag-js/avatar": "1.15.2",
149
- "@zag-js/carousel": "1.15.2",
150
- "@zag-js/checkbox": "1.15.2",
151
- "@zag-js/clipboard": "1.15.2",
152
- "@zag-js/collapsible": "1.15.2",
153
- "@zag-js/collection": "1.15.2",
154
- "@zag-js/color-picker": "1.15.2",
155
- "@zag-js/color-utils": "1.15.2",
156
- "@zag-js/combobox": "1.15.2",
157
- "@zag-js/core": "1.15.2",
158
- "@zag-js/date-picker": "1.15.2",
159
- "@zag-js/date-utils": "1.15.2",
160
- "@zag-js/dialog": "1.15.2",
161
- "@zag-js/dom-query": "1.15.2",
162
- "@zag-js/editable": "1.15.2",
163
- "@zag-js/file-upload": "1.15.2",
164
- "@zag-js/file-utils": "1.15.2",
165
- "@zag-js/focus-trap": "1.15.2",
166
- "@zag-js/floating-panel": "1.15.2",
167
- "@zag-js/highlight-word": "1.15.2",
168
- "@zag-js/hover-card": "1.15.2",
169
- "@zag-js/i18n-utils": "1.15.2",
170
- "@zag-js/listbox": "1.15.2",
171
- "@zag-js/menu": "1.15.2",
172
- "@zag-js/number-input": "1.15.2",
173
- "@zag-js/pagination": "1.15.2",
174
- "@zag-js/password-input": "1.15.2",
175
- "@zag-js/pin-input": "1.15.2",
176
- "@zag-js/popover": "1.15.2",
177
- "@zag-js/presence": "1.15.2",
178
- "@zag-js/progress": "1.15.2",
179
- "@zag-js/qr-code": "1.15.2",
180
- "@zag-js/radio-group": "1.15.2",
181
- "@zag-js/rating-group": "1.15.2",
182
- "@zag-js/react": "1.15.2",
183
- "@zag-js/select": "1.15.2",
184
- "@zag-js/signature-pad": "1.15.2",
185
- "@zag-js/slider": "1.15.2",
186
- "@zag-js/splitter": "1.15.2",
187
- "@zag-js/steps": "1.15.2",
188
- "@zag-js/switch": "1.15.2",
189
- "@zag-js/tabs": "1.15.2",
190
- "@zag-js/tags-input": "1.15.2",
191
- "@zag-js/time-picker": "1.15.2",
192
- "@zag-js/timer": "1.15.2",
193
- "@zag-js/toast": "1.15.2",
194
- "@zag-js/toggle": "1.15.2",
195
- "@zag-js/toggle-group": "1.15.2",
196
- "@zag-js/tooltip": "1.15.2",
197
- "@zag-js/tour": "1.15.2",
198
- "@zag-js/tree-view": "1.15.2",
199
- "@zag-js/types": "1.15.2",
200
- "@zag-js/utils": "1.15.2"
144
+ "@zag-js/accordion": "1.15.7",
145
+ "@zag-js/angle-slider": "1.15.7",
146
+ "@zag-js/anatomy": "1.15.7",
147
+ "@zag-js/auto-resize": "1.15.7",
148
+ "@zag-js/avatar": "1.15.7",
149
+ "@zag-js/carousel": "1.15.7",
150
+ "@zag-js/checkbox": "1.15.7",
151
+ "@zag-js/clipboard": "1.15.7",
152
+ "@zag-js/collapsible": "1.15.7",
153
+ "@zag-js/collection": "1.15.7",
154
+ "@zag-js/color-picker": "1.15.7",
155
+ "@zag-js/color-utils": "1.15.7",
156
+ "@zag-js/combobox": "1.15.7",
157
+ "@zag-js/core": "1.15.7",
158
+ "@zag-js/date-picker": "1.15.7",
159
+ "@zag-js/date-utils": "1.15.7",
160
+ "@zag-js/dialog": "1.15.7",
161
+ "@zag-js/dom-query": "1.15.7",
162
+ "@zag-js/editable": "1.15.7",
163
+ "@zag-js/file-upload": "1.15.7",
164
+ "@zag-js/file-utils": "1.15.7",
165
+ "@zag-js/focus-trap": "1.15.7",
166
+ "@zag-js/floating-panel": "1.15.7",
167
+ "@zag-js/highlight-word": "1.15.7",
168
+ "@zag-js/hover-card": "1.15.7",
169
+ "@zag-js/i18n-utils": "1.15.7",
170
+ "@zag-js/listbox": "1.15.7",
171
+ "@zag-js/menu": "1.15.7",
172
+ "@zag-js/number-input": "1.15.7",
173
+ "@zag-js/pagination": "1.15.7",
174
+ "@zag-js/password-input": "1.15.7",
175
+ "@zag-js/pin-input": "1.15.7",
176
+ "@zag-js/popover": "1.15.7",
177
+ "@zag-js/presence": "1.15.7",
178
+ "@zag-js/progress": "1.15.7",
179
+ "@zag-js/qr-code": "1.15.7",
180
+ "@zag-js/radio-group": "1.15.7",
181
+ "@zag-js/rating-group": "1.15.7",
182
+ "@zag-js/react": "1.15.7",
183
+ "@zag-js/select": "1.15.7",
184
+ "@zag-js/signature-pad": "1.15.7",
185
+ "@zag-js/slider": "1.15.7",
186
+ "@zag-js/splitter": "1.15.7",
187
+ "@zag-js/steps": "1.15.7",
188
+ "@zag-js/switch": "1.15.7",
189
+ "@zag-js/tabs": "1.15.7",
190
+ "@zag-js/tags-input": "1.15.7",
191
+ "@zag-js/time-picker": "1.15.7",
192
+ "@zag-js/timer": "1.15.7",
193
+ "@zag-js/toast": "1.15.7",
194
+ "@zag-js/toggle": "1.15.7",
195
+ "@zag-js/toggle-group": "1.15.7",
196
+ "@zag-js/tooltip": "1.15.7",
197
+ "@zag-js/tour": "1.15.7",
198
+ "@zag-js/tree-view": "1.15.7",
199
+ "@zag-js/types": "1.15.7",
200
+ "@zag-js/utils": "1.15.7"
201
201
  },
202
202
  "devDependencies": {
203
203
  "@biomejs/biome": "1.9.4",
204
- "@storybook/addon-a11y": "9.0.8",
205
- "@storybook/react-vite": "9.0.8",
204
+ "@storybook/addon-a11y": "9.0.10",
205
+ "@storybook/react-vite": "9.0.10",
206
206
  "@testing-library/dom": "10.4.0",
207
207
  "@testing-library/jest-dom": "6.6.3",
208
208
  "@testing-library/react": "16.3.0",
209
209
  "@testing-library/user-event": "14.6.1",
210
210
  "@types/jsdom": "21.1.7",
211
- "@types/react": "19.1.7",
211
+ "@types/react": "19.1.8",
212
212
  "@types/react-dom": "19.1.6",
213
213
  "@vitejs/plugin-react": "4.5.2",
214
- "@zag-js/stringify-state": "1.15.2",
214
+ "@zag-js/stringify-state": "1.15.7",
215
215
  "clean-package": "2.2.0",
216
216
  "globby": "14.1.0",
217
- "happy-dom": "17.6.3",
218
- "lucide-react": "0.514.0",
217
+ "happy-dom": "18.0.1",
218
+ "lucide-react": "0.515.0",
219
219
  "react": "19.1.0",
220
220
  "react-dom": "19.1.0",
221
221
  "react-shadow": "20.6.0",
222
222
  "react-frame-component": "5.2.7",
223
223
  "react-hook-form": "7.57.0",
224
224
  "resize-observer-polyfill": "1.5.1",
225
- "storybook": "9.0.8",
225
+ "storybook": "9.0.10",
226
226
  "typescript": "5.8.3",
227
227
  "vite": "6.3.5",
228
228
  "vite-plugin-dts": "4.5.4",