@ark-ui/react 5.9.1 → 5.10.0
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.
- package/dist/components/collection.d.cts +1 -1
- package/dist/components/collection.d.ts +1 -1
- package/dist/components/field/use-field.cjs +7 -5
- package/dist/components/field/use-field.js +8 -6
- package/dist/components/fieldset/index.cjs +2 -0
- package/dist/components/fieldset/index.d.cts +1 -0
- package/dist/components/fieldset/index.d.ts +1 -0
- package/dist/components/fieldset/index.js +1 -0
- package/dist/components/fieldset/use-fieldset.cjs +11 -9
- package/dist/components/fieldset/use-fieldset.js +12 -10
- package/dist/components/index.cjs +29 -0
- package/dist/components/index.d.cts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +14 -0
- package/dist/components/password-input/index.cjs +34 -0
- package/dist/components/password-input/index.d.cts +13 -0
- package/dist/components/password-input/index.d.ts +13 -0
- package/dist/components/password-input/index.js +13 -0
- package/dist/components/password-input/password-input-context.cjs +12 -0
- package/dist/components/password-input/password-input-context.d.cts +6 -0
- package/dist/components/password-input/password-input-context.d.ts +6 -0
- package/dist/components/password-input/password-input-context.js +8 -0
- package/dist/components/password-input/password-input-control.cjs +19 -0
- package/dist/components/password-input/password-input-control.d.cts +7 -0
- package/dist/components/password-input/password-input-control.d.ts +7 -0
- package/dist/components/password-input/password-input-control.js +15 -0
- package/dist/components/password-input/password-input-indicator.cjs +19 -0
- package/dist/components/password-input/password-input-indicator.d.cts +11 -0
- package/dist/components/password-input/password-input-indicator.d.ts +11 -0
- package/dist/components/password-input/password-input-indicator.js +15 -0
- package/dist/components/password-input/password-input-input.cjs +21 -0
- package/dist/components/password-input/password-input-input.d.cts +7 -0
- package/dist/components/password-input/password-input-input.d.ts +7 -0
- package/dist/components/password-input/password-input-input.js +17 -0
- package/dist/components/password-input/password-input-label.cjs +19 -0
- package/dist/components/password-input/password-input-label.d.cts +7 -0
- package/dist/components/password-input/password-input-label.d.ts +7 -0
- package/dist/components/password-input/password-input-label.js +15 -0
- package/dist/components/password-input/password-input-root-provider.cjs +19 -0
- package/dist/components/password-input/password-input-root-provider.d.cts +12 -0
- package/dist/components/password-input/password-input-root-provider.d.ts +12 -0
- package/dist/components/password-input/password-input-root-provider.js +15 -0
- package/dist/components/password-input/password-input-root.cjs +36 -0
- package/dist/components/password-input/password-input-root.d.cts +9 -0
- package/dist/components/password-input/password-input-root.d.ts +9 -0
- package/dist/components/password-input/password-input-root.js +32 -0
- package/dist/components/password-input/password-input-visibility-trigger.cjs +21 -0
- package/dist/components/password-input/password-input-visibility-trigger.d.cts +7 -0
- package/dist/components/password-input/password-input-visibility-trigger.d.ts +7 -0
- package/dist/components/password-input/password-input-visibility-trigger.js +17 -0
- package/dist/components/password-input/password-input.anatomy.d.cts +1 -0
- package/dist/components/password-input/password-input.anatomy.d.ts +1 -0
- package/dist/components/password-input/password-input.cjs +23 -0
- package/dist/components/password-input/password-input.d.cts +9 -0
- package/dist/components/password-input/password-input.d.ts +9 -0
- package/dist/components/password-input/password-input.js +8 -0
- package/dist/components/password-input/use-password-input-context.cjs +15 -0
- package/dist/components/password-input/use-password-input-context.d.cts +5 -0
- package/dist/components/password-input/use-password-input-context.d.ts +5 -0
- package/dist/components/password-input/use-password-input-context.js +10 -0
- package/dist/components/password-input/use-password-input.cjs +54 -0
- package/dist/components/password-input/use-password-input.d.cts +8 -0
- package/dist/components/password-input/use-password-input.d.ts +8 -0
- package/dist/components/password-input/use-password-input.js +31 -0
- package/dist/components/select/select-root.cjs +1 -0
- package/dist/components/select/select-root.js +1 -0
- package/dist/index.cjs +29 -0
- package/dist/index.js +14 -0
- package/dist/providers/environment/environment-provider.cjs +1 -1
- package/dist/providers/environment/environment-provider.js +1 -1
- package/package.json +62 -59
package/dist/index.js
CHANGED
|
@@ -231,6 +231,7 @@ export { FieldsetLegend } from './components/fieldset/fieldset-legend.js';
|
|
|
231
231
|
export { FieldsetRoot } from './components/fieldset/fieldset-root.js';
|
|
232
232
|
export { FieldsetRootProvider } from './components/fieldset/fieldset-root-provider.js';
|
|
233
233
|
export { fieldsetAnatomy } from './components/fieldset/fieldset.anatomy.js';
|
|
234
|
+
export { useFieldset } from './components/fieldset/use-fieldset.js';
|
|
234
235
|
export { useFieldsetContext } from './components/fieldset/use-fieldset-context.js';
|
|
235
236
|
import * as fieldset from './components/fieldset/fieldset.js';
|
|
236
237
|
export { fieldset as Fieldset };
|
|
@@ -359,6 +360,18 @@ export { usePagination } from './components/pagination/use-pagination.js';
|
|
|
359
360
|
export { usePaginationContext } from './components/pagination/use-pagination-context.js';
|
|
360
361
|
import * as pagination from './components/pagination/pagination.js';
|
|
361
362
|
export { pagination as Pagination };
|
|
363
|
+
export { PasswordInputContext } from './components/password-input/password-input-context.js';
|
|
364
|
+
export { PasswordInputControl } from './components/password-input/password-input-control.js';
|
|
365
|
+
export { PasswordInputIndicator } from './components/password-input/password-input-indicator.js';
|
|
366
|
+
export { PasswordInputInput } from './components/password-input/password-input-input.js';
|
|
367
|
+
export { PasswordInputLabel } from './components/password-input/password-input-label.js';
|
|
368
|
+
export { PasswordInputRoot } from './components/password-input/password-input-root.js';
|
|
369
|
+
export { PasswordInputRootProvider } from './components/password-input/password-input-root-provider.js';
|
|
370
|
+
export { PasswordInputVisibilityTrigger } from './components/password-input/password-input-visibility-trigger.js';
|
|
371
|
+
export { usePasswordInput } from './components/password-input/use-password-input.js';
|
|
372
|
+
export { usePasswordInputContext } from './components/password-input/use-password-input-context.js';
|
|
373
|
+
import * as passwordInput from './components/password-input/password-input.js';
|
|
374
|
+
export { passwordInput as PasswordInput };
|
|
362
375
|
export { PinInputContext } from './components/pin-input/pin-input-context.js';
|
|
363
376
|
export { PinInputControl } from './components/pin-input/pin-input-control.js';
|
|
364
377
|
export { PinInputHiddenInput } from './components/pin-input/pin-input-hidden-input.js';
|
|
@@ -715,6 +728,7 @@ export { anatomy as listboxAnatomy } from '@zag-js/listbox';
|
|
|
715
728
|
export { anatomy as menuAnatomy } from '@zag-js/menu';
|
|
716
729
|
export { anatomy as numberInputAnatomy } from '@zag-js/number-input';
|
|
717
730
|
export { anatomy as paginationAnatomy } from '@zag-js/pagination';
|
|
731
|
+
export { anatomy as passwordInputAnatomy } from '@zag-js/password-input';
|
|
718
732
|
export { anatomy as pinInputAnatomy } from '@zag-js/pin-input';
|
|
719
733
|
export { anatomy as popoverAnatomy } from '@zag-js/popover';
|
|
720
734
|
export { anatomy as progressAnatomy } from '@zag-js/progress';
|
|
@@ -13,7 +13,7 @@ const EnvironmentProvider = (props) => {
|
|
|
13
13
|
const { value, children } = props;
|
|
14
14
|
const [spanRef, setSpanRef] = react.useState();
|
|
15
15
|
const getRootNode = react.useMemo(() => {
|
|
16
|
-
return () => runIfFn.runIfFn(value) ?? spanRef?.
|
|
16
|
+
return () => runIfFn.runIfFn(value) ?? spanRef?.getRootNode() ?? document;
|
|
17
17
|
}, [value, spanRef]);
|
|
18
18
|
const environment = react.useMemo(
|
|
19
19
|
() => ({
|
|
@@ -9,7 +9,7 @@ const EnvironmentProvider = (props) => {
|
|
|
9
9
|
const { value, children } = props;
|
|
10
10
|
const [spanRef, setSpanRef] = useState();
|
|
11
11
|
const getRootNode = useMemo(() => {
|
|
12
|
-
return () => runIfFn(value) ?? spanRef?.
|
|
12
|
+
return () => runIfFn(value) ?? spanRef?.getRootNode() ?? document;
|
|
13
13
|
}, [value, spanRef]);
|
|
14
14
|
const environment = useMemo(
|
|
15
15
|
() => ({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.10.0",
|
|
5
5
|
"description": "A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"accordion",
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"toast",
|
|
44
44
|
"toggle group",
|
|
45
45
|
"tooltip",
|
|
46
|
-
"tree view"
|
|
46
|
+
"tree view",
|
|
47
|
+
"password input"
|
|
47
48
|
],
|
|
48
49
|
"license": "MIT",
|
|
49
50
|
"homepage": "https://ark-ui.com",
|
|
@@ -150,62 +151,63 @@
|
|
|
150
151
|
"sideEffects": false,
|
|
151
152
|
"dependencies": {
|
|
152
153
|
"@internationalized/date": "3.8.0",
|
|
153
|
-
"@zag-js/accordion": "1.
|
|
154
|
-
"@zag-js/angle-slider": "1.
|
|
155
|
-
"@zag-js/anatomy": "1.
|
|
156
|
-
"@zag-js/auto-resize": "1.
|
|
157
|
-
"@zag-js/avatar": "1.
|
|
158
|
-
"@zag-js/carousel": "1.
|
|
159
|
-
"@zag-js/checkbox": "1.
|
|
160
|
-
"@zag-js/clipboard": "1.
|
|
161
|
-
"@zag-js/collapsible": "1.
|
|
162
|
-
"@zag-js/collection": "1.
|
|
163
|
-
"@zag-js/color-picker": "1.
|
|
164
|
-
"@zag-js/color-utils": "1.
|
|
165
|
-
"@zag-js/combobox": "1.
|
|
166
|
-
"@zag-js/core": "1.
|
|
167
|
-
"@zag-js/date-picker": "1.
|
|
168
|
-
"@zag-js/date-utils": "1.
|
|
169
|
-
"@zag-js/dialog": "1.
|
|
170
|
-
"@zag-js/dom-query": "1.
|
|
171
|
-
"@zag-js/editable": "1.
|
|
172
|
-
"@zag-js/file-upload": "1.
|
|
173
|
-
"@zag-js/file-utils": "1.
|
|
174
|
-
"@zag-js/focus-trap": "1.
|
|
175
|
-
"@zag-js/floating-panel": "1.
|
|
176
|
-
"@zag-js/highlight-word": "1.
|
|
177
|
-
"@zag-js/hover-card": "1.
|
|
178
|
-
"@zag-js/i18n-utils": "1.
|
|
179
|
-
"@zag-js/listbox": "1.
|
|
180
|
-
"@zag-js/menu": "1.
|
|
181
|
-
"@zag-js/number-input": "1.
|
|
182
|
-
"@zag-js/pagination": "1.
|
|
183
|
-
"@zag-js/
|
|
184
|
-
"@zag-js/
|
|
185
|
-
"@zag-js/
|
|
186
|
-
"@zag-js/
|
|
187
|
-
"@zag-js/
|
|
188
|
-
"@zag-js/
|
|
189
|
-
"@zag-js/
|
|
190
|
-
"@zag-js/
|
|
191
|
-
"@zag-js/
|
|
192
|
-
"@zag-js/
|
|
193
|
-
"@zag-js/
|
|
194
|
-
"@zag-js/
|
|
195
|
-
"@zag-js/
|
|
196
|
-
"@zag-js/
|
|
197
|
-
"@zag-js/
|
|
198
|
-
"@zag-js/
|
|
199
|
-
"@zag-js/
|
|
200
|
-
"@zag-js/
|
|
201
|
-
"@zag-js/
|
|
202
|
-
"@zag-js/
|
|
203
|
-
"@zag-js/toggle
|
|
204
|
-
"@zag-js/
|
|
205
|
-
"@zag-js/
|
|
206
|
-
"@zag-js/
|
|
207
|
-
"@zag-js/
|
|
208
|
-
"@zag-js/
|
|
154
|
+
"@zag-js/accordion": "1.13.1",
|
|
155
|
+
"@zag-js/angle-slider": "1.13.1",
|
|
156
|
+
"@zag-js/anatomy": "1.13.1",
|
|
157
|
+
"@zag-js/auto-resize": "1.13.1",
|
|
158
|
+
"@zag-js/avatar": "1.13.1",
|
|
159
|
+
"@zag-js/carousel": "1.13.1",
|
|
160
|
+
"@zag-js/checkbox": "1.13.1",
|
|
161
|
+
"@zag-js/clipboard": "1.13.1",
|
|
162
|
+
"@zag-js/collapsible": "1.13.1",
|
|
163
|
+
"@zag-js/collection": "1.13.1",
|
|
164
|
+
"@zag-js/color-picker": "1.13.1",
|
|
165
|
+
"@zag-js/color-utils": "1.13.1",
|
|
166
|
+
"@zag-js/combobox": "1.13.1",
|
|
167
|
+
"@zag-js/core": "1.13.1",
|
|
168
|
+
"@zag-js/date-picker": "1.13.1",
|
|
169
|
+
"@zag-js/date-utils": "1.13.1",
|
|
170
|
+
"@zag-js/dialog": "1.13.1",
|
|
171
|
+
"@zag-js/dom-query": "1.13.1",
|
|
172
|
+
"@zag-js/editable": "1.13.1",
|
|
173
|
+
"@zag-js/file-upload": "1.13.1",
|
|
174
|
+
"@zag-js/file-utils": "1.13.1",
|
|
175
|
+
"@zag-js/focus-trap": "1.13.1",
|
|
176
|
+
"@zag-js/floating-panel": "1.13.1",
|
|
177
|
+
"@zag-js/highlight-word": "1.13.1",
|
|
178
|
+
"@zag-js/hover-card": "1.13.1",
|
|
179
|
+
"@zag-js/i18n-utils": "1.13.1",
|
|
180
|
+
"@zag-js/listbox": "1.13.1",
|
|
181
|
+
"@zag-js/menu": "1.13.1",
|
|
182
|
+
"@zag-js/number-input": "1.13.1",
|
|
183
|
+
"@zag-js/pagination": "1.13.1",
|
|
184
|
+
"@zag-js/password-input": "1.13.1",
|
|
185
|
+
"@zag-js/pin-input": "1.13.1",
|
|
186
|
+
"@zag-js/popover": "1.13.1",
|
|
187
|
+
"@zag-js/presence": "1.13.1",
|
|
188
|
+
"@zag-js/progress": "1.13.1",
|
|
189
|
+
"@zag-js/qr-code": "1.13.1",
|
|
190
|
+
"@zag-js/radio-group": "1.13.1",
|
|
191
|
+
"@zag-js/rating-group": "1.13.1",
|
|
192
|
+
"@zag-js/react": "1.13.1",
|
|
193
|
+
"@zag-js/select": "1.13.1",
|
|
194
|
+
"@zag-js/signature-pad": "1.13.1",
|
|
195
|
+
"@zag-js/slider": "1.13.1",
|
|
196
|
+
"@zag-js/splitter": "1.13.1",
|
|
197
|
+
"@zag-js/steps": "1.13.1",
|
|
198
|
+
"@zag-js/switch": "1.13.1",
|
|
199
|
+
"@zag-js/tabs": "1.13.1",
|
|
200
|
+
"@zag-js/tags-input": "1.13.1",
|
|
201
|
+
"@zag-js/time-picker": "1.13.1",
|
|
202
|
+
"@zag-js/timer": "1.13.1",
|
|
203
|
+
"@zag-js/toast": "1.13.1",
|
|
204
|
+
"@zag-js/toggle": "1.13.1",
|
|
205
|
+
"@zag-js/toggle-group": "1.13.1",
|
|
206
|
+
"@zag-js/tooltip": "1.13.1",
|
|
207
|
+
"@zag-js/tour": "1.13.1",
|
|
208
|
+
"@zag-js/tree-view": "1.13.1",
|
|
209
|
+
"@zag-js/types": "1.13.1",
|
|
210
|
+
"@zag-js/utils": "1.13.1"
|
|
209
211
|
},
|
|
210
212
|
"devDependencies": {
|
|
211
213
|
"@biomejs/biome": "1.9.4",
|
|
@@ -221,13 +223,14 @@
|
|
|
221
223
|
"@types/react": "19.1.2",
|
|
222
224
|
"@types/react-dom": "19.1.3",
|
|
223
225
|
"@vitejs/plugin-react": "4.4.1",
|
|
224
|
-
"@zag-js/stringify-state": "1.
|
|
226
|
+
"@zag-js/stringify-state": "1.13.1",
|
|
225
227
|
"clean-package": "2.2.0",
|
|
226
228
|
"globby": "14.1.0",
|
|
227
229
|
"happy-dom": "17.4.6",
|
|
228
230
|
"lucide-react": "0.507.0",
|
|
229
231
|
"react": "19.1.0",
|
|
230
232
|
"react-dom": "19.1.0",
|
|
233
|
+
"react-shadow": "20.6.0",
|
|
231
234
|
"react-frame-component": "5.2.7",
|
|
232
235
|
"react-hook-form": "7.56.2",
|
|
233
236
|
"resize-observer-polyfill": "1.5.1",
|