@ark-ui/react 5.7.0 → 5.9.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/date-picker/date-picker-root.cjs +2 -2
- package/dist/components/date-picker/date-picker-root.js +2 -2
- package/dist/components/format/format-byte.cjs +4 -2
- package/dist/components/format/format-byte.js +4 -2
- package/dist/components/format/format-number.cjs +4 -2
- package/dist/components/format/format-number.js +4 -2
- package/dist/components/format/format-relative-time.cjs +21 -0
- package/dist/components/format/format-relative-time.d.cts +10 -0
- package/dist/components/format/format-relative-time.d.ts +10 -0
- package/dist/components/format/format-relative-time.js +17 -0
- package/dist/components/format/format.cjs +2 -0
- package/dist/components/format/format.d.cts +1 -0
- package/dist/components/format/format.d.ts +1 -0
- package/dist/components/format/format.js +1 -0
- package/dist/components/format/index.cjs +2 -0
- package/dist/components/format/index.d.cts +1 -0
- package/dist/components/format/index.d.ts +1 -0
- package/dist/components/format/index.js +1 -0
- package/dist/components/index.cjs +2 -0
- package/dist/components/index.js +1 -0
- package/dist/index.cjs +4 -0
- package/dist/index.js +2 -0
- package/dist/providers/index.cjs +2 -0
- package/dist/providers/index.js +1 -0
- package/dist/providers/locale/index.cjs +2 -0
- package/dist/providers/locale/index.d.cts +1 -0
- package/dist/providers/locale/index.d.ts +1 -0
- package/dist/providers/locale/index.js +1 -0
- package/dist/providers/locale/use-filter.cjs +16 -0
- package/dist/providers/locale/use-filter.d.cts +6 -0
- package/dist/providers/locale/use-filter.d.ts +6 -0
- package/dist/providers/locale/use-filter.js +12 -0
- package/package.json +65 -65
|
@@ -18,10 +18,10 @@ const DatePickerRoot = react.forwardRef((props, ref) => {
|
|
|
18
18
|
const [presenceProps, datePickerProps] = splitPresenceProps.splitPresenceProps(props);
|
|
19
19
|
const [useDatePickerProps, localProps] = createSplitProps.createSplitProps()(datePickerProps, [
|
|
20
20
|
"closeOnSelect",
|
|
21
|
+
"defaultFocusedValue",
|
|
21
22
|
"defaultOpen",
|
|
22
23
|
"defaultValue",
|
|
23
24
|
"defaultView",
|
|
24
|
-
"defaultFocusedValue",
|
|
25
25
|
"disabled",
|
|
26
26
|
"fixedWeeks",
|
|
27
27
|
"focusedValue",
|
|
@@ -29,7 +29,6 @@ const DatePickerRoot = react.forwardRef((props, ref) => {
|
|
|
29
29
|
"id",
|
|
30
30
|
"ids",
|
|
31
31
|
"isDateUnavailable",
|
|
32
|
-
"isDateUnavailable",
|
|
33
32
|
"locale",
|
|
34
33
|
"max",
|
|
35
34
|
"maxView",
|
|
@@ -42,6 +41,7 @@ const DatePickerRoot = react.forwardRef((props, ref) => {
|
|
|
42
41
|
"onValueChange",
|
|
43
42
|
"onViewChange",
|
|
44
43
|
"open",
|
|
44
|
+
"outsideDaySelectable",
|
|
45
45
|
"parse",
|
|
46
46
|
"placeholder",
|
|
47
47
|
"positioning",
|
|
@@ -14,10 +14,10 @@ const DatePickerRoot = forwardRef((props, ref) => {
|
|
|
14
14
|
const [presenceProps, datePickerProps] = splitPresenceProps(props);
|
|
15
15
|
const [useDatePickerProps, localProps] = createSplitProps()(datePickerProps, [
|
|
16
16
|
"closeOnSelect",
|
|
17
|
+
"defaultFocusedValue",
|
|
17
18
|
"defaultOpen",
|
|
18
19
|
"defaultValue",
|
|
19
20
|
"defaultView",
|
|
20
|
-
"defaultFocusedValue",
|
|
21
21
|
"disabled",
|
|
22
22
|
"fixedWeeks",
|
|
23
23
|
"focusedValue",
|
|
@@ -25,7 +25,6 @@ const DatePickerRoot = forwardRef((props, ref) => {
|
|
|
25
25
|
"id",
|
|
26
26
|
"ids",
|
|
27
27
|
"isDateUnavailable",
|
|
28
|
-
"isDateUnavailable",
|
|
29
28
|
"locale",
|
|
30
29
|
"max",
|
|
31
30
|
"maxView",
|
|
@@ -38,6 +37,7 @@ const DatePickerRoot = forwardRef((props, ref) => {
|
|
|
38
37
|
"onValueChange",
|
|
39
38
|
"onViewChange",
|
|
40
39
|
"open",
|
|
40
|
+
"outsideDaySelectable",
|
|
41
41
|
"parse",
|
|
42
42
|
"placeholder",
|
|
43
43
|
"positioning",
|
|
@@ -9,9 +9,11 @@ const react = require('react');
|
|
|
9
9
|
const useLocaleContext = require('../../providers/locale/use-locale-context.cjs');
|
|
10
10
|
|
|
11
11
|
const FormatByte = (props) => {
|
|
12
|
-
const { value, ...intlOptions } = props;
|
|
13
12
|
const { locale } = useLocaleContext.useLocaleContext();
|
|
14
|
-
const text = react.useMemo(() =>
|
|
13
|
+
const text = react.useMemo(() => {
|
|
14
|
+
const { value, ...intlOptions } = props;
|
|
15
|
+
return i18nUtils.formatBytes(value, locale, intlOptions);
|
|
16
|
+
}, [props, locale]);
|
|
15
17
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: text });
|
|
16
18
|
};
|
|
17
19
|
FormatByte.displayName = "FormatByte";
|
|
@@ -5,9 +5,11 @@ import { useMemo } from 'react';
|
|
|
5
5
|
import { useLocaleContext } from '../../providers/locale/use-locale-context.js';
|
|
6
6
|
|
|
7
7
|
const FormatByte = (props) => {
|
|
8
|
-
const { value, ...intlOptions } = props;
|
|
9
8
|
const { locale } = useLocaleContext();
|
|
10
|
-
const text = useMemo(() =>
|
|
9
|
+
const text = useMemo(() => {
|
|
10
|
+
const { value, ...intlOptions } = props;
|
|
11
|
+
return formatBytes(value, locale, intlOptions);
|
|
12
|
+
}, [props, locale]);
|
|
11
13
|
return /* @__PURE__ */ jsx(Fragment, { children: text });
|
|
12
14
|
};
|
|
13
15
|
FormatByte.displayName = "FormatByte";
|
|
@@ -9,9 +9,11 @@ const react = require('react');
|
|
|
9
9
|
const useLocaleContext = require('../../providers/locale/use-locale-context.cjs');
|
|
10
10
|
|
|
11
11
|
const FormatNumber = (props) => {
|
|
12
|
-
const { value, ...intlOptions } = props;
|
|
13
12
|
const { locale } = useLocaleContext.useLocaleContext();
|
|
14
|
-
const text = react.useMemo(() =>
|
|
13
|
+
const text = react.useMemo(() => {
|
|
14
|
+
const { value, ...intlOptions } = props;
|
|
15
|
+
return i18nUtils.formatNumber(value, locale, intlOptions);
|
|
16
|
+
}, [props, locale]);
|
|
15
17
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: text });
|
|
16
18
|
};
|
|
17
19
|
FormatNumber.displayName = "FormatNumber";
|
|
@@ -5,9 +5,11 @@ import { useMemo } from 'react';
|
|
|
5
5
|
import { useLocaleContext } from '../../providers/locale/use-locale-context.js';
|
|
6
6
|
|
|
7
7
|
const FormatNumber = (props) => {
|
|
8
|
-
const { value, ...intlOptions } = props;
|
|
9
8
|
const { locale } = useLocaleContext();
|
|
10
|
-
const text = useMemo(() =>
|
|
9
|
+
const text = useMemo(() => {
|
|
10
|
+
const { value, ...intlOptions } = props;
|
|
11
|
+
return formatNumber(value, locale, intlOptions);
|
|
12
|
+
}, [props, locale]);
|
|
11
13
|
return /* @__PURE__ */ jsx(Fragment, { children: text });
|
|
12
14
|
};
|
|
13
15
|
FormatNumber.displayName = "FormatNumber";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
const i18nUtils = require('@zag-js/i18n-utils');
|
|
8
|
+
const react = require('react');
|
|
9
|
+
const useLocaleContext = require('../../providers/locale/use-locale-context.cjs');
|
|
10
|
+
|
|
11
|
+
const FormatRelativeTime = (props) => {
|
|
12
|
+
const { locale } = useLocaleContext.useLocaleContext();
|
|
13
|
+
const text = react.useMemo(() => {
|
|
14
|
+
const { value, ...intlOptions } = props;
|
|
15
|
+
return i18nUtils.formatRelativeTime(value, locale, intlOptions);
|
|
16
|
+
}, [props, locale]);
|
|
17
|
+
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: text });
|
|
18
|
+
};
|
|
19
|
+
FormatRelativeTime.displayName = "FormatRelativeTime";
|
|
20
|
+
|
|
21
|
+
exports.FormatRelativeTime = FormatRelativeTime;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface FormatRelativeTimeProps extends Intl.RelativeTimeFormatOptions {
|
|
2
|
+
/**
|
|
3
|
+
* The date to format
|
|
4
|
+
*/
|
|
5
|
+
value: Date;
|
|
6
|
+
}
|
|
7
|
+
export declare const FormatRelativeTime: {
|
|
8
|
+
(props: FormatRelativeTimeProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface FormatRelativeTimeProps extends Intl.RelativeTimeFormatOptions {
|
|
2
|
+
/**
|
|
3
|
+
* The date to format
|
|
4
|
+
*/
|
|
5
|
+
value: Date;
|
|
6
|
+
}
|
|
7
|
+
export declare const FormatRelativeTime: {
|
|
8
|
+
(props: FormatRelativeTimeProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
3
|
+
import { formatRelativeTime } from '@zag-js/i18n-utils';
|
|
4
|
+
import { useMemo } from 'react';
|
|
5
|
+
import { useLocaleContext } from '../../providers/locale/use-locale-context.js';
|
|
6
|
+
|
|
7
|
+
const FormatRelativeTime = (props) => {
|
|
8
|
+
const { locale } = useLocaleContext();
|
|
9
|
+
const text = useMemo(() => {
|
|
10
|
+
const { value, ...intlOptions } = props;
|
|
11
|
+
return formatRelativeTime(value, locale, intlOptions);
|
|
12
|
+
}, [props, locale]);
|
|
13
|
+
return /* @__PURE__ */ jsx(Fragment, { children: text });
|
|
14
|
+
};
|
|
15
|
+
FormatRelativeTime.displayName = "FormatRelativeTime";
|
|
16
|
+
|
|
17
|
+
export { FormatRelativeTime };
|
|
@@ -4,8 +4,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const formatByte = require('./format-byte.cjs');
|
|
6
6
|
const formatNumber = require('./format-number.cjs');
|
|
7
|
+
const formatRelativeTime = require('./format-relative-time.cjs');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
exports.Byte = formatByte.FormatByte;
|
|
11
12
|
exports.Number = formatNumber.FormatNumber;
|
|
13
|
+
exports.RelativeTime = formatRelativeTime.FormatRelativeTime;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { FormatByte as Byte, type FormatByteProps as ByteProps } from './format-byte';
|
|
2
2
|
export { FormatNumber as Number, type FormatNumberProps as NumberProps } from './format-number';
|
|
3
|
+
export { FormatRelativeTime as RelativeTime, type FormatRelativeTimeProps as RelativeTimeProps, } from './format-relative-time';
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export { FormatByte as Byte, type FormatByteProps as ByteProps } from './format-byte';
|
|
2
2
|
export { FormatNumber as Number, type FormatNumberProps as NumberProps } from './format-number';
|
|
3
|
+
export { FormatRelativeTime as RelativeTime, type FormatRelativeTimeProps as RelativeTimeProps, } from './format-relative-time';
|
|
@@ -4,10 +4,12 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const formatByte = require('./format-byte.cjs');
|
|
6
6
|
const formatNumber = require('./format-number.cjs');
|
|
7
|
+
const formatRelativeTime = require('./format-relative-time.cjs');
|
|
7
8
|
const format = require('./format.cjs');
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
exports.FormatByte = formatByte.FormatByte;
|
|
12
13
|
exports.FormatNumber = formatNumber.FormatNumber;
|
|
14
|
+
exports.FormatRelativeTime = formatRelativeTime.FormatRelativeTime;
|
|
13
15
|
exports.Format = format;
|
|
@@ -262,6 +262,7 @@ const floatingPanel$1 = require('./floating-panel/floating-panel.cjs');
|
|
|
262
262
|
const focusTrap = require('./focus-trap/focus-trap.cjs');
|
|
263
263
|
const formatByte = require('./format/format-byte.cjs');
|
|
264
264
|
const formatNumber = require('./format/format-number.cjs');
|
|
265
|
+
const formatRelativeTime = require('./format/format-relative-time.cjs');
|
|
265
266
|
const format = require('./format/format.cjs');
|
|
266
267
|
const frame = require('./frame/frame.cjs');
|
|
267
268
|
const highlight = require('./highlight/highlight.cjs');
|
|
@@ -960,6 +961,7 @@ exports.FloatingPanel = floatingPanel$1;
|
|
|
960
961
|
exports.FocusTrap = focusTrap.FocusTrap;
|
|
961
962
|
exports.FormatByte = formatByte.FormatByte;
|
|
962
963
|
exports.FormatNumber = formatNumber.FormatNumber;
|
|
964
|
+
exports.FormatRelativeTime = formatRelativeTime.FormatRelativeTime;
|
|
963
965
|
exports.Format = format;
|
|
964
966
|
exports.Frame = frame.Frame;
|
|
965
967
|
exports.Highlight = highlight.Highlight;
|
package/dist/components/index.js
CHANGED
|
@@ -274,6 +274,7 @@ export { floatingPanel as FloatingPanel };
|
|
|
274
274
|
export { FocusTrap } from './focus-trap/focus-trap.js';
|
|
275
275
|
export { FormatByte } from './format/format-byte.js';
|
|
276
276
|
export { FormatNumber } from './format/format-number.js';
|
|
277
|
+
export { FormatRelativeTime } from './format/format-relative-time.js';
|
|
277
278
|
import * as format from './format/format.js';
|
|
278
279
|
export { format as Format };
|
|
279
280
|
export { Frame } from './frame/frame.js';
|
package/dist/index.cjs
CHANGED
|
@@ -262,6 +262,7 @@ const floatingPanel$1 = require('./components/floating-panel/floating-panel.cjs'
|
|
|
262
262
|
const focusTrap = require('./components/focus-trap/focus-trap.cjs');
|
|
263
263
|
const formatByte = require('./components/format/format-byte.cjs');
|
|
264
264
|
const formatNumber = require('./components/format/format-number.cjs');
|
|
265
|
+
const formatRelativeTime = require('./components/format/format-relative-time.cjs');
|
|
265
266
|
const format = require('./components/format/format.cjs');
|
|
266
267
|
const frame = require('./components/frame/frame.cjs');
|
|
267
268
|
const highlight = require('./components/highlight/highlight.cjs');
|
|
@@ -655,6 +656,7 @@ const treeView$1 = require('./components/tree-view/tree-view.cjs');
|
|
|
655
656
|
const environmentProvider = require('./providers/environment/environment-provider.cjs');
|
|
656
657
|
const useEnvironmentContext = require('./providers/environment/use-environment-context.cjs');
|
|
657
658
|
const localeProvider = require('./providers/locale/locale-provider.cjs');
|
|
659
|
+
const useFilter = require('./providers/locale/use-filter.cjs');
|
|
658
660
|
const useLocaleContext = require('./providers/locale/use-locale-context.cjs');
|
|
659
661
|
const accordion = require('@zag-js/accordion');
|
|
660
662
|
const angleSlider = require('@zag-js/angle-slider');
|
|
@@ -964,6 +966,7 @@ exports.FloatingPanel = floatingPanel$1;
|
|
|
964
966
|
exports.FocusTrap = focusTrap.FocusTrap;
|
|
965
967
|
exports.FormatByte = formatByte.FormatByte;
|
|
966
968
|
exports.FormatNumber = formatNumber.FormatNumber;
|
|
969
|
+
exports.FormatRelativeTime = formatRelativeTime.FormatRelativeTime;
|
|
967
970
|
exports.Format = format;
|
|
968
971
|
exports.Frame = frame.Frame;
|
|
969
972
|
exports.Highlight = highlight.Highlight;
|
|
@@ -1361,6 +1364,7 @@ exports.TreeView = treeView$1;
|
|
|
1361
1364
|
exports.EnvironmentProvider = environmentProvider.EnvironmentProvider;
|
|
1362
1365
|
exports.useEnvironmentContext = useEnvironmentContext.useEnvironmentContext;
|
|
1363
1366
|
exports.LocaleProvider = localeProvider.LocaleProvider;
|
|
1367
|
+
exports.useFilter = useFilter.useFilter;
|
|
1364
1368
|
exports.useLocaleContext = useLocaleContext.useLocaleContext;
|
|
1365
1369
|
Object.defineProperty(exports, "accordionAnatomy", {
|
|
1366
1370
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -274,6 +274,7 @@ export { floatingPanel as FloatingPanel };
|
|
|
274
274
|
export { FocusTrap } from './components/focus-trap/focus-trap.js';
|
|
275
275
|
export { FormatByte } from './components/format/format-byte.js';
|
|
276
276
|
export { FormatNumber } from './components/format/format-number.js';
|
|
277
|
+
export { FormatRelativeTime } from './components/format/format-relative-time.js';
|
|
277
278
|
import * as format from './components/format/format.js';
|
|
278
279
|
export { format as Format };
|
|
279
280
|
export { Frame } from './components/frame/frame.js';
|
|
@@ -696,6 +697,7 @@ export { treeView as TreeView };
|
|
|
696
697
|
export { EnvironmentProvider } from './providers/environment/environment-provider.js';
|
|
697
698
|
export { useEnvironmentContext } from './providers/environment/use-environment-context.js';
|
|
698
699
|
export { LocaleProvider } from './providers/locale/locale-provider.js';
|
|
700
|
+
export { useFilter } from './providers/locale/use-filter.js';
|
|
699
701
|
export { useLocaleContext } from './providers/locale/use-locale-context.js';
|
|
700
702
|
export { anatomy as accordionAnatomy } from '@zag-js/accordion';
|
|
701
703
|
export { anatomy as angleSliderAnatomy } from '@zag-js/angle-slider';
|
package/dist/providers/index.cjs
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
5
5
|
const environmentProvider = require('./environment/environment-provider.cjs');
|
|
6
6
|
const useEnvironmentContext = require('./environment/use-environment-context.cjs');
|
|
7
7
|
const localeProvider = require('./locale/locale-provider.cjs');
|
|
8
|
+
const useFilter = require('./locale/use-filter.cjs');
|
|
8
9
|
const useLocaleContext = require('./locale/use-locale-context.cjs');
|
|
9
10
|
|
|
10
11
|
|
|
@@ -12,4 +13,5 @@ const useLocaleContext = require('./locale/use-locale-context.cjs');
|
|
|
12
13
|
exports.EnvironmentProvider = environmentProvider.EnvironmentProvider;
|
|
13
14
|
exports.useEnvironmentContext = useEnvironmentContext.useEnvironmentContext;
|
|
14
15
|
exports.LocaleProvider = localeProvider.LocaleProvider;
|
|
16
|
+
exports.useFilter = useFilter.useFilter;
|
|
15
17
|
exports.useLocaleContext = useLocaleContext.useLocaleContext;
|
package/dist/providers/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { EnvironmentProvider } from './environment/environment-provider.js';
|
|
2
2
|
export { useEnvironmentContext } from './environment/use-environment-context.js';
|
|
3
3
|
export { LocaleProvider } from './locale/locale-provider.js';
|
|
4
|
+
export { useFilter } from './locale/use-filter.js';
|
|
4
5
|
export { useLocaleContext } from './locale/use-locale-context.js';
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
5
|
const localeProvider = require('./locale-provider.cjs');
|
|
6
|
+
const useFilter = require('./use-filter.cjs');
|
|
6
7
|
const useLocaleContext = require('./use-locale-context.cjs');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
exports.LocaleProvider = localeProvider.LocaleProvider;
|
|
12
|
+
exports.useFilter = useFilter.useFilter;
|
|
11
13
|
exports.useLocaleContext = useLocaleContext.useLocaleContext;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const i18nUtils = require('@zag-js/i18n-utils');
|
|
7
|
+
const react = require('react');
|
|
8
|
+
const useLocaleContext = require('./use-locale-context.cjs');
|
|
9
|
+
|
|
10
|
+
function useFilter(props) {
|
|
11
|
+
const env = useLocaleContext.useLocaleContext();
|
|
12
|
+
const locale = props.locale ?? env.locale;
|
|
13
|
+
return react.useMemo(() => i18nUtils.createFilter({ ...props, locale }), [locale, props]);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
exports.useFilter = useFilter;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { createFilter } from '@zag-js/i18n-utils';
|
|
3
|
+
import { useMemo } from 'react';
|
|
4
|
+
import { useLocaleContext } from './use-locale-context.js';
|
|
5
|
+
|
|
6
|
+
function useFilter(props) {
|
|
7
|
+
const env = useLocaleContext();
|
|
8
|
+
const locale = props.locale ?? env.locale;
|
|
9
|
+
return useMemo(() => createFilter({ ...props, locale }), [locale, props]);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { useFilter };
|
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.9.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",
|
|
@@ -150,62 +150,62 @@
|
|
|
150
150
|
"sideEffects": false,
|
|
151
151
|
"dependencies": {
|
|
152
152
|
"@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/pin-input": "1.
|
|
184
|
-
"@zag-js/popover": "1.
|
|
185
|
-
"@zag-js/presence": "1.
|
|
186
|
-
"@zag-js/progress": "1.
|
|
187
|
-
"@zag-js/qr-code": "1.
|
|
188
|
-
"@zag-js/radio-group": "1.
|
|
189
|
-
"@zag-js/rating-group": "1.
|
|
190
|
-
"@zag-js/react": "1.
|
|
191
|
-
"@zag-js/select": "1.
|
|
192
|
-
"@zag-js/signature-pad": "1.
|
|
193
|
-
"@zag-js/slider": "1.
|
|
194
|
-
"@zag-js/splitter": "1.
|
|
195
|
-
"@zag-js/steps": "1.
|
|
196
|
-
"@zag-js/switch": "1.
|
|
197
|
-
"@zag-js/tabs": "1.
|
|
198
|
-
"@zag-js/tags-input": "1.
|
|
199
|
-
"@zag-js/time-picker": "1.
|
|
200
|
-
"@zag-js/timer": "1.
|
|
201
|
-
"@zag-js/toast": "1.
|
|
202
|
-
"@zag-js/toggle": "1.
|
|
203
|
-
"@zag-js/toggle-group": "1.
|
|
204
|
-
"@zag-js/tooltip": "1.
|
|
205
|
-
"@zag-js/tour": "1.
|
|
206
|
-
"@zag-js/tree-view": "1.
|
|
207
|
-
"@zag-js/types": "1.
|
|
208
|
-
"@zag-js/utils": "1.
|
|
153
|
+
"@zag-js/accordion": "1.12.0",
|
|
154
|
+
"@zag-js/angle-slider": "1.12.0",
|
|
155
|
+
"@zag-js/anatomy": "1.12.0",
|
|
156
|
+
"@zag-js/auto-resize": "1.12.0",
|
|
157
|
+
"@zag-js/avatar": "1.12.0",
|
|
158
|
+
"@zag-js/carousel": "1.12.0",
|
|
159
|
+
"@zag-js/checkbox": "1.12.0",
|
|
160
|
+
"@zag-js/clipboard": "1.12.0",
|
|
161
|
+
"@zag-js/collapsible": "1.12.0",
|
|
162
|
+
"@zag-js/collection": "1.12.0",
|
|
163
|
+
"@zag-js/color-picker": "1.12.0",
|
|
164
|
+
"@zag-js/color-utils": "1.12.0",
|
|
165
|
+
"@zag-js/combobox": "1.12.0",
|
|
166
|
+
"@zag-js/core": "1.12.0",
|
|
167
|
+
"@zag-js/date-picker": "1.12.0",
|
|
168
|
+
"@zag-js/date-utils": "1.12.0",
|
|
169
|
+
"@zag-js/dialog": "1.12.0",
|
|
170
|
+
"@zag-js/dom-query": "1.12.0",
|
|
171
|
+
"@zag-js/editable": "1.12.0",
|
|
172
|
+
"@zag-js/file-upload": "1.12.0",
|
|
173
|
+
"@zag-js/file-utils": "1.12.0",
|
|
174
|
+
"@zag-js/focus-trap": "1.12.0",
|
|
175
|
+
"@zag-js/floating-panel": "1.12.0",
|
|
176
|
+
"@zag-js/highlight-word": "1.12.0",
|
|
177
|
+
"@zag-js/hover-card": "1.12.0",
|
|
178
|
+
"@zag-js/i18n-utils": "1.12.0",
|
|
179
|
+
"@zag-js/listbox": "1.12.0",
|
|
180
|
+
"@zag-js/menu": "1.12.0",
|
|
181
|
+
"@zag-js/number-input": "1.12.0",
|
|
182
|
+
"@zag-js/pagination": "1.12.0",
|
|
183
|
+
"@zag-js/pin-input": "1.12.0",
|
|
184
|
+
"@zag-js/popover": "1.12.0",
|
|
185
|
+
"@zag-js/presence": "1.12.0",
|
|
186
|
+
"@zag-js/progress": "1.12.0",
|
|
187
|
+
"@zag-js/qr-code": "1.12.0",
|
|
188
|
+
"@zag-js/radio-group": "1.12.0",
|
|
189
|
+
"@zag-js/rating-group": "1.12.0",
|
|
190
|
+
"@zag-js/react": "1.12.0",
|
|
191
|
+
"@zag-js/select": "1.12.0",
|
|
192
|
+
"@zag-js/signature-pad": "1.12.0",
|
|
193
|
+
"@zag-js/slider": "1.12.0",
|
|
194
|
+
"@zag-js/splitter": "1.12.0",
|
|
195
|
+
"@zag-js/steps": "1.12.0",
|
|
196
|
+
"@zag-js/switch": "1.12.0",
|
|
197
|
+
"@zag-js/tabs": "1.12.0",
|
|
198
|
+
"@zag-js/tags-input": "1.12.0",
|
|
199
|
+
"@zag-js/time-picker": "1.12.0",
|
|
200
|
+
"@zag-js/timer": "1.12.0",
|
|
201
|
+
"@zag-js/toast": "1.12.0",
|
|
202
|
+
"@zag-js/toggle": "1.12.0",
|
|
203
|
+
"@zag-js/toggle-group": "1.12.0",
|
|
204
|
+
"@zag-js/tooltip": "1.12.0",
|
|
205
|
+
"@zag-js/tour": "1.12.0",
|
|
206
|
+
"@zag-js/tree-view": "1.12.0",
|
|
207
|
+
"@zag-js/types": "1.12.0",
|
|
208
|
+
"@zag-js/utils": "1.12.0"
|
|
209
209
|
},
|
|
210
210
|
"devDependencies": {
|
|
211
211
|
"@biomejs/biome": "1.9.4",
|
|
@@ -219,24 +219,24 @@
|
|
|
219
219
|
"@testing-library/user-event": "14.6.1",
|
|
220
220
|
"@types/jsdom": "21.1.7",
|
|
221
221
|
"@types/react": "19.1.2",
|
|
222
|
-
"@types/react-dom": "19.1.
|
|
222
|
+
"@types/react-dom": "19.1.3",
|
|
223
223
|
"@vitejs/plugin-react": "4.4.1",
|
|
224
|
-
"@zag-js/stringify-state": "1.
|
|
224
|
+
"@zag-js/stringify-state": "1.12.0",
|
|
225
225
|
"clean-package": "2.2.0",
|
|
226
226
|
"globby": "14.1.0",
|
|
227
|
-
"happy-dom": "17.4.
|
|
228
|
-
"lucide-react": "0.
|
|
227
|
+
"happy-dom": "17.4.6",
|
|
228
|
+
"lucide-react": "0.507.0",
|
|
229
229
|
"react": "19.1.0",
|
|
230
230
|
"react-dom": "19.1.0",
|
|
231
231
|
"react-frame-component": "5.2.7",
|
|
232
|
-
"react-hook-form": "7.56.
|
|
232
|
+
"react-hook-form": "7.56.2",
|
|
233
233
|
"resize-observer-polyfill": "1.5.1",
|
|
234
234
|
"storybook": "8.6.12",
|
|
235
235
|
"typescript": "5.8.3",
|
|
236
|
-
"vite": "6.3.
|
|
236
|
+
"vite": "6.3.5",
|
|
237
237
|
"vite-plugin-dts": "4.5.3",
|
|
238
|
-
"vitest": "3.1.
|
|
239
|
-
"@vitest/coverage-v8": "3.1.
|
|
238
|
+
"vitest": "3.1.2",
|
|
239
|
+
"@vitest/coverage-v8": "3.1.2",
|
|
240
240
|
"vitest-axe": "1.0.0-pre.5"
|
|
241
241
|
},
|
|
242
242
|
"peerDependencies": {
|