@ark-ui/solid 5.8.0 → 5.9.1

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 (184) hide show
  1. package/dist/chunk/{XME7TKM2.js → 2EMVL2IQ.js} +1 -1
  2. package/dist/chunk/{7LQ4EWHB.jsx → 36SVH2NV.jsx} +3 -3
  3. package/dist/chunk/{BBUDIIYT.js → 3R544BNK.js} +1 -1
  4. package/dist/chunk/{PDYWOA6Y.js → 3T3CHFOI.js} +1 -1
  5. package/dist/chunk/{UIEL6LO3.js → 3Z45T6FD.js} +1 -1
  6. package/dist/chunk/{QCEB2LAT.js → 45QX7ERS.js} +1 -1
  7. package/dist/chunk/{IMKHRMUF.js → 46YZDDSK.js} +1 -1
  8. package/dist/chunk/{ACHQ3WMT.js → 4A7TP7UN.js} +1 -1
  9. package/dist/chunk/{FHEJON2W.jsx → 4JSIWK47.jsx} +3 -3
  10. package/dist/chunk/{MD7PHDJK.jsx → 4QDVLLAO.jsx} +3 -3
  11. package/dist/chunk/{ENH3JQLY.jsx → 5P6VDRXB.jsx} +3 -3
  12. package/dist/chunk/{5JGPNGFH.js → 5TRVHZWX.js} +1 -1
  13. package/dist/chunk/{D4UVDNW5.jsx → 6BLNCF3J.jsx} +3 -3
  14. package/dist/chunk/{IK5AQC3K.jsx → 6KLF2C3G.jsx} +6 -6
  15. package/dist/chunk/{3GZBI3C7.jsx → 6RE6P43M.jsx} +3 -3
  16. package/dist/chunk/{N26ZXGSY.jsx → 7LGQHHQ6.jsx} +3 -3
  17. package/dist/chunk/{L7KH34DE.js → ASSWYBX3.js} +1 -1
  18. package/dist/chunk/{2ZIPSG6O.jsx → AYGXT3GV.jsx} +3 -3
  19. package/dist/chunk/{CRWRK56B.jsx → B5PX2A24.jsx} +3 -3
  20. package/dist/chunk/{HNF2QPQ2.jsx → BN6G7VZL.jsx} +3 -3
  21. package/dist/chunk/{EX2VGSCG.jsx → BNQLKUHI.jsx} +3 -3
  22. package/dist/chunk/{QRODT7WM.js → CC4VX2SZ.js} +1 -1
  23. package/dist/chunk/{4FHVXCRW.js → CGIPQEC2.js} +2 -2
  24. package/dist/chunk/{KWT5RGLQ.jsx → CS2DO6YU.jsx} +3 -3
  25. package/dist/chunk/{POK6DGO4.js → CTU4RBCL.js} +1 -1
  26. package/dist/chunk/{FPYZVUFW.js → CYHSVU5J.js} +2 -2
  27. package/dist/chunk/{L3SIBBML.jsx → D4IKRCUD.jsx} +3 -3
  28. package/dist/chunk/{YIOS67AB.jsx → DCGLD47I.jsx} +3 -3
  29. package/dist/chunk/{ATMLAY2Z.js → FH6GTC4M.js} +1 -1
  30. package/dist/chunk/{BZLIWOGC.jsx → FJ3FVOGG.jsx} +4 -4
  31. package/dist/chunk/{ZKM4DTGM.js → FMKC62HV.js} +1 -1
  32. package/dist/chunk/{HUQXLQRU.js → G2G63I5O.js} +1 -1
  33. package/dist/chunk/{K2GRJC27.js → GAEOBWYL.js} +1 -1
  34. package/dist/chunk/{OMTG2F6B.js → GMQWLEMA.js} +1 -1
  35. package/dist/chunk/{YIY75WWN.js → GTBZCIHJ.js} +1 -1
  36. package/dist/chunk/{ISCBIWKW.jsx → GYYFKFV2.jsx} +3 -3
  37. package/dist/chunk/{64OEA2DF.jsx → HF5MDQXT.jsx} +3 -3
  38. package/dist/chunk/{HS2AKVM3.js → HGBQUNKZ.js} +3 -3
  39. package/dist/chunk/{5X7KNFCM.js → HRGOITBL.js} +1 -1
  40. package/dist/chunk/{3RSBQIQ3.jsx → HZ3APUBJ.jsx} +3 -3
  41. package/dist/chunk/{VWUOL2OR.jsx → I2PTICVF.jsx} +3 -3
  42. package/dist/chunk/{MJEKBIW2.jsx → JDQV34ZO.jsx} +3 -3
  43. package/dist/chunk/{CLX4TELO.jsx → JEGLR2GC.jsx} +3 -3
  44. package/dist/chunk/JQIXCEUN.jsx +57 -0
  45. package/dist/chunk/{BWOFNO5N.jsx → LD5DWBUI.jsx} +3 -3
  46. package/dist/chunk/{DBIUMOLI.js → LIA677CA.js} +1 -1
  47. package/dist/chunk/{KRJNIKO2.jsx → M22EJR7I.jsx} +3 -3
  48. package/dist/chunk/{BXAUWHBZ.jsx → M27EDZVV.jsx} +3 -3
  49. package/dist/chunk/{OBLSSYMA.js → M2X4T5YI.js} +1 -1
  50. package/dist/chunk/{6NYYJAMS.js → MC7HLMCJ.js} +1 -1
  51. package/dist/chunk/{PHBHYNUH.js → MDSDUOA7.js} +1 -1
  52. package/dist/chunk/{RU4LLCFH.jsx → N4LX6YTH.jsx} +3 -3
  53. package/dist/chunk/{QEMQBM6W.js → OKZ64GSY.js} +7 -2
  54. package/dist/chunk/{ROA4DJEO.jsx → P5KYIXBT.jsx} +3 -3
  55. package/dist/chunk/{HQJBHHB6.js → P6BDMUWN.js} +1 -1
  56. package/dist/chunk/{MXJSLVKN.js → QDOPZ5XF.js} +1 -1
  57. package/dist/chunk/{6VPRFZA4.js → QLFQEMNC.js} +2 -2
  58. package/dist/chunk/{RXOSUP6U.js → RQZ6U2UY.js} +1 -1
  59. package/dist/chunk/{FVIF7LDE.js → TFSMBIVN.js} +1 -1
  60. package/dist/chunk/{FUGFSIYK.jsx → TXKDDZVE.jsx} +3 -3
  61. package/dist/chunk/{MPNDTPUK.js → U5K5ZANS.js} +1 -1
  62. package/dist/chunk/{N3VQSC2A.js → U72UWTCQ.js} +1 -1
  63. package/dist/chunk/{JCVIA4KI.js → U7F3BISB.js} +1 -1
  64. package/dist/chunk/{QXPKPCGG.jsx → UO3H42QI.jsx} +3 -3
  65. package/dist/chunk/{BOAJIMOM.js → UZZB2PYN.js} +2 -2
  66. package/dist/chunk/{WKJMOIA7.jsx → VJHB2FMZ.jsx} +3 -3
  67. package/dist/chunk/{LKX2UAMN.jsx → VVDIFQHR.jsx} +3 -3
  68. package/dist/chunk/{LI7J6F7D.jsx → WIF7CNPH.jsx} +3 -3
  69. package/dist/chunk/{UH2ERZB4.jsx → XCU56UHM.jsx} +6 -6
  70. package/dist/chunk/{YECHEPH3.js → XHRYU75E.js} +1 -1
  71. package/dist/chunk/{OE7Y5R5I.js → XJRN7Y3Y.js} +1 -1
  72. package/dist/chunk/{LPWKZJG2.js → XQCNW4F7.js} +1 -1
  73. package/dist/chunk/{4ALLEGBR.js → XTKQCFXA.js} +1 -1
  74. package/dist/chunk/XUBES5JE.js +49 -0
  75. package/dist/chunk/{ASFHFF7Y.jsx → XXWTVBBC.jsx} +3 -3
  76. package/dist/chunk/{SPPHU23S.jsx → Y3BMAUJ3.jsx} +4 -4
  77. package/dist/chunk/{RCXMZN3G.jsx → YUC6JE7K.jsx} +11 -1
  78. package/dist/chunk/{5FWNSCWP.js → Z2GBTKXP.js} +1 -1
  79. package/dist/chunk/{CMXNP72H.jsx → Z2ZI3WHM.jsx} +3 -3
  80. package/dist/chunk/{TKQSSFZN.jsx → ZCR6PEKU.jsx} +3 -3
  81. package/dist/chunk/{MTVAX7XO.jsx → ZFEXDBTE.jsx} +3 -3
  82. package/dist/chunk/{XOHR2G2L.jsx → ZRDDUT25.jsx} +6 -7
  83. package/dist/components/accordion/index.js +1 -1
  84. package/dist/components/accordion/index.jsx +3 -3
  85. package/dist/components/angle-slider/index.js +1 -1
  86. package/dist/components/angle-slider/index.jsx +2 -2
  87. package/dist/components/avatar/index.js +1 -1
  88. package/dist/components/avatar/index.jsx +2 -2
  89. package/dist/components/carousel/index.js +1 -1
  90. package/dist/components/carousel/index.jsx +2 -2
  91. package/dist/components/checkbox/index.js +1 -1
  92. package/dist/components/checkbox/index.jsx +2 -2
  93. package/dist/components/clipboard/index.jsx +1 -1
  94. package/dist/components/collapsible/index.js +1 -1
  95. package/dist/components/collapsible/index.jsx +2 -2
  96. package/dist/components/color-picker/index.js +1 -1
  97. package/dist/components/color-picker/index.jsx +3 -3
  98. package/dist/components/combobox/index.js +1 -1
  99. package/dist/components/combobox/index.jsx +3 -3
  100. package/dist/components/date-picker/index.js +1 -1
  101. package/dist/components/date-picker/index.jsx +2 -2
  102. package/dist/components/dialog/index.js +1 -1
  103. package/dist/components/dialog/index.jsx +2 -2
  104. package/dist/components/download-trigger/index.jsx +1 -1
  105. package/dist/components/editable/index.js +1 -1
  106. package/dist/components/editable/index.jsx +2 -2
  107. package/dist/components/file-upload/index.js +1 -1
  108. package/dist/components/file-upload/index.jsx +2 -2
  109. package/dist/components/floating-panel/index.js +1 -1
  110. package/dist/components/floating-panel/index.jsx +2 -2
  111. package/dist/components/format/index.d.ts +10 -2
  112. package/dist/components/format/index.js +1 -1
  113. package/dist/components/format/index.jsx +5 -3
  114. package/dist/components/frame/index.jsx +1 -1
  115. package/dist/components/hover-card/index.js +1 -1
  116. package/dist/components/hover-card/index.jsx +2 -2
  117. package/dist/components/index.d.ts +1 -1
  118. package/dist/components/index.js +43 -43
  119. package/dist/components/index.jsx +288 -286
  120. package/dist/components/listbox/index.js +1 -1
  121. package/dist/components/listbox/index.jsx +2 -2
  122. package/dist/components/menu/index.js +1 -1
  123. package/dist/components/menu/index.jsx +2 -2
  124. package/dist/components/number-input/index.js +1 -1
  125. package/dist/components/number-input/index.jsx +2 -2
  126. package/dist/components/pagination/index.js +1 -1
  127. package/dist/components/pagination/index.jsx +2 -2
  128. package/dist/components/pin-input/index.js +1 -1
  129. package/dist/components/pin-input/index.jsx +2 -2
  130. package/dist/components/popover/index.js +1 -1
  131. package/dist/components/popover/index.jsx +2 -2
  132. package/dist/components/progress/index.js +1 -1
  133. package/dist/components/progress/index.jsx +2 -2
  134. package/dist/components/qr-code/index.js +1 -1
  135. package/dist/components/qr-code/index.jsx +2 -2
  136. package/dist/components/radio-group/index.js +1 -1
  137. package/dist/components/radio-group/index.jsx +2 -2
  138. package/dist/components/rating-group/index.js +1 -1
  139. package/dist/components/rating-group/index.jsx +2 -2
  140. package/dist/components/segment-group/index.js +1 -1
  141. package/dist/components/segment-group/index.jsx +2 -2
  142. package/dist/components/select/index.js +1 -1
  143. package/dist/components/select/index.jsx +3 -3
  144. package/dist/components/signature-pad/index.js +1 -1
  145. package/dist/components/signature-pad/index.jsx +2 -2
  146. package/dist/components/slider/index.js +1 -1
  147. package/dist/components/slider/index.jsx +2 -2
  148. package/dist/components/splitter/index.d.ts +1 -1
  149. package/dist/components/splitter/index.js +1 -1
  150. package/dist/components/splitter/index.jsx +2 -2
  151. package/dist/components/steps/index.js +1 -1
  152. package/dist/components/steps/index.jsx +2 -2
  153. package/dist/components/switch/index.js +1 -1
  154. package/dist/components/switch/index.jsx +2 -2
  155. package/dist/components/tabs/index.js +1 -1
  156. package/dist/components/tabs/index.jsx +2 -2
  157. package/dist/components/tags-input/index.js +1 -1
  158. package/dist/components/tags-input/index.jsx +2 -2
  159. package/dist/components/time-picker/index.js +1 -1
  160. package/dist/components/time-picker/index.jsx +2 -2
  161. package/dist/components/timer/index.jsx +1 -1
  162. package/dist/components/toast/index.js +1 -1
  163. package/dist/components/toast/index.jsx +2 -2
  164. package/dist/components/toggle-group/index.js +1 -1
  165. package/dist/components/toggle-group/index.jsx +2 -2
  166. package/dist/components/tooltip/index.js +1 -1
  167. package/dist/components/tooltip/index.jsx +2 -2
  168. package/dist/components/tour/index.js +1 -1
  169. package/dist/components/tour/index.jsx +2 -2
  170. package/dist/components/tree-view/index.d.ts +1 -1
  171. package/dist/components/tree-view/index.js +1 -1
  172. package/dist/components/tree-view/index.jsx +3 -3
  173. package/dist/index.d.ts +2 -2
  174. package/dist/index.js +44 -44
  175. package/dist/index.jsx +293 -289
  176. package/dist/providers/index.d.ts +1 -1
  177. package/dist/providers/index.js +1 -1
  178. package/dist/providers/index.jsx +6 -4
  179. package/dist/providers/locale/index.d.ts +8 -2
  180. package/dist/providers/locale/index.js +1 -1
  181. package/dist/providers/locale/index.jsx +3 -1
  182. package/package.json +56 -56
  183. package/dist/chunk/WUTUKX4C.jsx +0 -39
  184. package/dist/chunk/XR4WJDUT.js +0 -26
@@ -0,0 +1,57 @@
1
+ import {
2
+ useLocaleContext
3
+ } from "./YUC6JE7K.jsx";
4
+ import {
5
+ __export
6
+ } from "./7IUG3E2V.jsx";
7
+
8
+ // src/components/format/format-byte.tsx
9
+ import { formatBytes } from "@zag-js/i18n-utils";
10
+ import { createMemo } from "solid-js";
11
+ var FormatByte = (props) => {
12
+ const ctx = useLocaleContext();
13
+ const text = createMemo(() => {
14
+ const { value, ...intlOptions } = props;
15
+ return formatBytes(value, ctx().locale, intlOptions);
16
+ });
17
+ return <>{text()}</>;
18
+ };
19
+
20
+ // src/components/format/format-number.tsx
21
+ import { formatNumber } from "@zag-js/i18n-utils";
22
+ import { createMemo as createMemo2 } from "solid-js";
23
+ var FormatNumber = (props) => {
24
+ const ctx = useLocaleContext();
25
+ const text = createMemo2(() => {
26
+ const { value, ...intlOptions } = props;
27
+ return formatNumber(value, ctx().locale, intlOptions);
28
+ });
29
+ return <>{text()}</>;
30
+ };
31
+
32
+ // src/components/format/format-relative-time.tsx
33
+ import { formatRelativeTime } from "@zag-js/i18n-utils";
34
+ import { createMemo as createMemo3 } from "solid-js";
35
+ var FormatRelativeTime = (props) => {
36
+ const ctx = useLocaleContext();
37
+ const text = createMemo3(() => {
38
+ const { value, ...intlOptions } = props;
39
+ return formatRelativeTime(value, ctx().locale, intlOptions);
40
+ });
41
+ return <>{text()}</>;
42
+ };
43
+
44
+ // src/components/format/format.ts
45
+ var format_exports = {};
46
+ __export(format_exports, {
47
+ Byte: () => FormatByte,
48
+ Number: () => FormatNumber,
49
+ RelativeTime: () => FormatRelativeTime
50
+ });
51
+
52
+ export {
53
+ FormatByte,
54
+ FormatNumber,
55
+ FormatRelativeTime,
56
+ format_exports
57
+ };
@@ -7,12 +7,12 @@ import {
7
7
  import {
8
8
  ark
9
9
  } from "./UFYZ7HLU.jsx";
10
- import {
11
- useLocaleContext
12
- } from "./RCXMZN3G.jsx";
13
10
  import {
14
11
  useEnvironmentContext
15
12
  } from "./D2Z5BEON.jsx";
13
+ import {
14
+ useLocaleContext
15
+ } from "./YUC6JE7K.jsx";
16
16
  import {
17
17
  createContext
18
18
  } from "./TVCIHLER.jsx";
@@ -1,6 +1,6 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
- import { useLocaleContext } from './QEMQBM6W.js';
3
+ import { useLocaleContext } from './OKZ64GSY.js';
4
4
  import { useEnvironmentContext } from './YMMMHJJS.js';
5
5
  import { createContext } from './TROPIN4C.js';
6
6
  import { runIfFn } from './DT73WLR4.js';
@@ -16,12 +16,12 @@ import {
16
16
  import {
17
17
  ark
18
18
  } from "./UFYZ7HLU.jsx";
19
- import {
20
- useLocaleContext
21
- } from "./RCXMZN3G.jsx";
22
19
  import {
23
20
  useEnvironmentContext
24
21
  } from "./D2Z5BEON.jsx";
22
+ import {
23
+ useLocaleContext
24
+ } from "./YUC6JE7K.jsx";
25
25
  import {
26
26
  createContext
27
27
  } from "./TVCIHLER.jsx";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  ark
3
3
  } from "./UFYZ7HLU.jsx";
4
- import {
5
- useLocaleContext
6
- } from "./RCXMZN3G.jsx";
7
4
  import {
8
5
  useEnvironmentContext
9
6
  } from "./D2Z5BEON.jsx";
7
+ import {
8
+ useLocaleContext
9
+ } from "./YUC6JE7K.jsx";
10
10
  import {
11
11
  createContext
12
12
  } from "./TVCIHLER.jsx";
@@ -1,7 +1,7 @@
1
1
  import { useFieldContext } from './UL6NTZA6.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
- import { useLocaleContext } from './QEMQBM6W.js';
4
+ import { useLocaleContext } from './OKZ64GSY.js';
5
5
  import { useEnvironmentContext } from './YMMMHJJS.js';
6
6
  import { createContext } from './TROPIN4C.js';
7
7
  import { runIfFn } from './DT73WLR4.js';
@@ -1,7 +1,7 @@
1
1
  import { useFieldContext } from './UL6NTZA6.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
- import { useLocaleContext } from './QEMQBM6W.js';
4
+ import { useLocaleContext } from './OKZ64GSY.js';
5
5
  import { useEnvironmentContext } from './YMMMHJJS.js';
6
6
  import { createContext } from './TROPIN4C.js';
7
7
  import { runIfFn } from './DT73WLR4.js';
@@ -1,6 +1,6 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
- import { useLocaleContext } from './QEMQBM6W.js';
3
+ import { useLocaleContext } from './OKZ64GSY.js';
4
4
  import { useEnvironmentContext } from './YMMMHJJS.js';
5
5
  import { createContext } from './TROPIN4C.js';
6
6
  import { runIfFn } from './DT73WLR4.js';
@@ -7,12 +7,12 @@ import {
7
7
  import {
8
8
  ark
9
9
  } from "./UFYZ7HLU.jsx";
10
- import {
11
- useLocaleContext
12
- } from "./RCXMZN3G.jsx";
13
10
  import {
14
11
  useEnvironmentContext
15
12
  } from "./D2Z5BEON.jsx";
13
+ import {
14
+ useLocaleContext
15
+ } from "./YUC6JE7K.jsx";
16
16
  import {
17
17
  createContext
18
18
  } from "./TVCIHLER.jsx";
@@ -1,6 +1,6 @@
1
1
  import { createContext } from './TROPIN4C.js';
2
2
  import { createComponent } from 'solid-js/web';
3
- import { isRTL } from '@zag-js/i18n-utils';
3
+ import { isRTL, createFilter } from '@zag-js/i18n-utils';
4
4
  import { createMemo } from 'solid-js';
5
5
 
6
6
  // src/providers/locale/use-locale-context.ts
@@ -24,5 +24,10 @@ var LocaleProvider = (props) => {
24
24
  }
25
25
  });
26
26
  };
27
+ function useFilter(props) {
28
+ const env = useLocaleContext();
29
+ const locale = createMemo(() => props.locale ?? env().locale);
30
+ return createMemo(() => createFilter({ ...props, locale: locale() }));
31
+ }
27
32
 
28
- export { LocaleProvider, useLocaleContext };
33
+ export { LocaleProvider, useFilter, useLocaleContext };
@@ -7,12 +7,12 @@ import {
7
7
  import {
8
8
  ark
9
9
  } from "./UFYZ7HLU.jsx";
10
- import {
11
- useLocaleContext
12
- } from "./RCXMZN3G.jsx";
13
10
  import {
14
11
  useEnvironmentContext
15
12
  } from "./D2Z5BEON.jsx";
13
+ import {
14
+ useLocaleContext
15
+ } from "./YUC6JE7K.jsx";
16
16
  import {
17
17
  createContext
18
18
  } from "./TVCIHLER.jsx";
@@ -3,7 +3,7 @@ import { composeRefs } from './XN6EERRM.js';
3
3
  import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './QFAL6GWC.js';
4
4
  import { createSplitProps } from './ZMHI4GDJ.js';
5
5
  import { ark } from './EPLBB4QN.js';
6
- import { useLocaleContext } from './QEMQBM6W.js';
6
+ import { useLocaleContext } from './OKZ64GSY.js';
7
7
  import { useEnvironmentContext } from './YMMMHJJS.js';
8
8
  import { createContext } from './TROPIN4C.js';
9
9
  import { runIfFn } from './DT73WLR4.js';
@@ -2,7 +2,7 @@ import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext }
2
2
  import { composeRefs } from './XN6EERRM.js';
3
3
  import { createSplitProps } from './ZMHI4GDJ.js';
4
4
  import { ark } from './EPLBB4QN.js';
5
- import { useLocaleContext } from './QEMQBM6W.js';
5
+ import { useLocaleContext } from './OKZ64GSY.js';
6
6
  import { useEnvironmentContext } from './YMMMHJJS.js';
7
7
  import { createContext } from './TROPIN4C.js';
8
8
  import { runIfFn } from './DT73WLR4.js';
@@ -1,8 +1,8 @@
1
- import { collapsible_exports } from './OE7Y5R5I.js';
1
+ import { collapsible_exports } from './XJRN7Y3Y.js';
2
2
  import { splitRenderStrategyProps, RenderStrategyProvider, useRenderStrategyContext } from './QFAL6GWC.js';
3
3
  import { createSplitProps } from './ZMHI4GDJ.js';
4
4
  import { ark } from './EPLBB4QN.js';
5
- import { useLocaleContext } from './QEMQBM6W.js';
5
+ import { useLocaleContext } from './OKZ64GSY.js';
6
6
  import { useEnvironmentContext } from './YMMMHJJS.js';
7
7
  import { createContext } from './TROPIN4C.js';
8
8
  import { runIfFn } from './DT73WLR4.js';
@@ -1,7 +1,7 @@
1
1
  import { useFieldContext } from './UL6NTZA6.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
- import { useLocaleContext } from './QEMQBM6W.js';
4
+ import { useLocaleContext } from './OKZ64GSY.js';
5
5
  import { useEnvironmentContext } from './YMMMHJJS.js';
6
6
  import { createContext } from './TROPIN4C.js';
7
7
  import { runIfFn } from './DT73WLR4.js';
@@ -1,7 +1,7 @@
1
1
  import { useFieldContext } from './UL6NTZA6.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
- import { useLocaleContext } from './QEMQBM6W.js';
4
+ import { useLocaleContext } from './OKZ64GSY.js';
5
5
  import { useEnvironmentContext } from './YMMMHJJS.js';
6
6
  import { createContext } from './TROPIN4C.js';
7
7
  import { runIfFn } from './DT73WLR4.js';
@@ -7,12 +7,12 @@ import {
7
7
  import {
8
8
  ark
9
9
  } from "./UFYZ7HLU.jsx";
10
- import {
11
- useLocaleContext
12
- } from "./RCXMZN3G.jsx";
13
10
  import {
14
11
  useEnvironmentContext
15
12
  } from "./D2Z5BEON.jsx";
13
+ import {
14
+ useLocaleContext
15
+ } from "./YUC6JE7K.jsx";
16
16
  import {
17
17
  createContext
18
18
  } from "./TVCIHLER.jsx";
@@ -2,7 +2,7 @@ import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext }
2
2
  import { composeRefs } from './XN6EERRM.js';
3
3
  import { createSplitProps } from './ZMHI4GDJ.js';
4
4
  import { ark } from './EPLBB4QN.js';
5
- import { useLocaleContext } from './QEMQBM6W.js';
5
+ import { useLocaleContext } from './OKZ64GSY.js';
6
6
  import { useEnvironmentContext } from './YMMMHJJS.js';
7
7
  import { createContext } from './TROPIN4C.js';
8
8
  import { runIfFn } from './DT73WLR4.js';
@@ -1,7 +1,7 @@
1
1
  import { createMachine } from './PKUUD527.js';
2
2
  import { createSplitProps as createSplitProps$1 } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
- import { useLocaleContext } from './QEMQBM6W.js';
4
+ import { useLocaleContext } from './OKZ64GSY.js';
5
5
  import { useEnvironmentContext } from './YMMMHJJS.js';
6
6
  import { createContext } from './TROPIN4C.js';
7
7
  import { runIfFn } from './DT73WLR4.js';
@@ -1,6 +1,6 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
- import { useLocaleContext } from './QEMQBM6W.js';
3
+ import { useLocaleContext } from './OKZ64GSY.js';
4
4
  import { useEnvironmentContext } from './YMMMHJJS.js';
5
5
  import { createContext } from './TROPIN4C.js';
6
6
  import { runIfFn } from './DT73WLR4.js';
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  ark
6
6
  } from "./UFYZ7HLU.jsx";
7
- import {
8
- useLocaleContext
9
- } from "./RCXMZN3G.jsx";
10
7
  import {
11
8
  useEnvironmentContext
12
9
  } from "./D2Z5BEON.jsx";
10
+ import {
11
+ useLocaleContext
12
+ } from "./YUC6JE7K.jsx";
13
13
  import {
14
14
  createContext
15
15
  } from "./TVCIHLER.jsx";
@@ -1,9 +1,9 @@
1
- import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './7S3N5UQH.js';
2
1
  import { useFieldContext } from './UL6NTZA6.js';
2
+ import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext } from './7S3N5UQH.js';
3
3
  import { composeRefs } from './XN6EERRM.js';
4
4
  import { createSplitProps } from './ZMHI4GDJ.js';
5
5
  import { ark } from './EPLBB4QN.js';
6
- import { useLocaleContext } from './QEMQBM6W.js';
6
+ import { useLocaleContext } from './OKZ64GSY.js';
7
7
  import { useEnvironmentContext } from './YMMMHJJS.js';
8
8
  import { createContext } from './TROPIN4C.js';
9
9
  import { runIfFn } from './DT73WLR4.js';
@@ -13,12 +13,12 @@ import {
13
13
  import {
14
14
  ark
15
15
  } from "./UFYZ7HLU.jsx";
16
- import {
17
- useLocaleContext
18
- } from "./RCXMZN3G.jsx";
19
16
  import {
20
17
  useEnvironmentContext
21
18
  } from "./D2Z5BEON.jsx";
19
+ import {
20
+ useLocaleContext
21
+ } from "./YUC6JE7K.jsx";
22
22
  import {
23
23
  createContext
24
24
  } from "./TVCIHLER.jsx";
@@ -13,12 +13,12 @@ import {
13
13
  import {
14
14
  ark
15
15
  } from "./UFYZ7HLU.jsx";
16
- import {
17
- useLocaleContext
18
- } from "./RCXMZN3G.jsx";
19
16
  import {
20
17
  useEnvironmentContext
21
18
  } from "./D2Z5BEON.jsx";
19
+ import {
20
+ useLocaleContext
21
+ } from "./YUC6JE7K.jsx";
22
22
  import {
23
23
  createContext
24
24
  } from "./TVCIHLER.jsx";
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  ark
6
6
  } from "./UFYZ7HLU.jsx";
7
- import {
8
- useLocaleContext
9
- } from "./RCXMZN3G.jsx";
10
7
  import {
11
8
  useEnvironmentContext
12
9
  } from "./D2Z5BEON.jsx";
10
+ import {
11
+ useLocaleContext
12
+ } from "./YUC6JE7K.jsx";
13
13
  import {
14
14
  createContext
15
15
  } from "./TVCIHLER.jsx";
@@ -1,12 +1,12 @@
1
+ import {
2
+ useFieldContext
3
+ } from "./4HPQVVRP.jsx";
1
4
  import {
2
5
  PresenceProvider,
3
6
  splitPresenceProps,
4
7
  usePresence,
5
8
  usePresenceContext
6
9
  } from "./WC2HBDLJ.jsx";
7
- import {
8
- useFieldContext
9
- } from "./4HPQVVRP.jsx";
10
10
  import {
11
11
  composeRefs
12
12
  } from "./DOBZPYAN.jsx";
@@ -16,12 +16,12 @@ import {
16
16
  import {
17
17
  ark
18
18
  } from "./UFYZ7HLU.jsx";
19
- import {
20
- useLocaleContext
21
- } from "./RCXMZN3G.jsx";
22
19
  import {
23
20
  useEnvironmentContext
24
21
  } from "./D2Z5BEON.jsx";
22
+ import {
23
+ useLocaleContext
24
+ } from "./YUC6JE7K.jsx";
25
25
  import {
26
26
  createContext
27
27
  } from "./TVCIHLER.jsx";
@@ -2,7 +2,7 @@ import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider }
2
2
  import { composeRefs } from './XN6EERRM.js';
3
3
  import { createSplitProps } from './ZMHI4GDJ.js';
4
4
  import { ark } from './EPLBB4QN.js';
5
- import { useLocaleContext } from './QEMQBM6W.js';
5
+ import { useLocaleContext } from './OKZ64GSY.js';
6
6
  import { useEnvironmentContext } from './YMMMHJJS.js';
7
7
  import { createContext } from './TROPIN4C.js';
8
8
  import { runIfFn } from './DT73WLR4.js';
@@ -1,7 +1,7 @@
1
1
  import { splitRenderStrategyProps } from './QFAL6GWC.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
- import { useLocaleContext } from './QEMQBM6W.js';
4
+ import { useLocaleContext } from './OKZ64GSY.js';
5
5
  import { useEnvironmentContext } from './YMMMHJJS.js';
6
6
  import { createContext } from './TROPIN4C.js';
7
7
  import { runIfFn } from './DT73WLR4.js';
@@ -3,7 +3,7 @@ import { composeRefs } from './XN6EERRM.js';
3
3
  import { useRenderStrategyContext, splitRenderStrategyProps, RenderStrategyProvider } from './QFAL6GWC.js';
4
4
  import { createSplitProps } from './ZMHI4GDJ.js';
5
5
  import { ark } from './EPLBB4QN.js';
6
- import { useLocaleContext } from './QEMQBM6W.js';
6
+ import { useLocaleContext } from './OKZ64GSY.js';
7
7
  import { useEnvironmentContext } from './YMMMHJJS.js';
8
8
  import { createContext } from './TROPIN4C.js';
9
9
  import { runIfFn } from './DT73WLR4.js';
@@ -1,6 +1,6 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
- import { useLocaleContext } from './QEMQBM6W.js';
3
+ import { useLocaleContext } from './OKZ64GSY.js';
4
4
  import { useEnvironmentContext } from './YMMMHJJS.js';
5
5
  import { createContext } from './TROPIN4C.js';
6
6
  import { runIfFn } from './DT73WLR4.js';
@@ -0,0 +1,49 @@
1
+ import { useLocaleContext } from './OKZ64GSY.js';
2
+ import { __export } from './ESLJRKWD.js';
3
+ import { memo } from 'solid-js/web';
4
+ import { formatRelativeTime, formatNumber, formatBytes } from '@zag-js/i18n-utils';
5
+ import { createMemo } from 'solid-js';
6
+
7
+ var FormatByte = (props) => {
8
+ const ctx = useLocaleContext();
9
+ const text = createMemo(() => {
10
+ const {
11
+ value,
12
+ ...intlOptions
13
+ } = props;
14
+ return formatBytes(value, ctx().locale, intlOptions);
15
+ });
16
+ return memo(text);
17
+ };
18
+ var FormatNumber = (props) => {
19
+ const ctx = useLocaleContext();
20
+ const text = createMemo(() => {
21
+ const {
22
+ value,
23
+ ...intlOptions
24
+ } = props;
25
+ return formatNumber(value, ctx().locale, intlOptions);
26
+ });
27
+ return memo(text);
28
+ };
29
+ var FormatRelativeTime = (props) => {
30
+ const ctx = useLocaleContext();
31
+ const text = createMemo(() => {
32
+ const {
33
+ value,
34
+ ...intlOptions
35
+ } = props;
36
+ return formatRelativeTime(value, ctx().locale, intlOptions);
37
+ });
38
+ return memo(text);
39
+ };
40
+
41
+ // src/components/format/format.ts
42
+ var format_exports = {};
43
+ __export(format_exports, {
44
+ Byte: () => FormatByte,
45
+ Number: () => FormatNumber,
46
+ RelativeTime: () => FormatRelativeTime
47
+ });
48
+
49
+ export { FormatByte, FormatNumber, FormatRelativeTime, format_exports };
@@ -18,12 +18,12 @@ import {
18
18
  import {
19
19
  ark
20
20
  } from "./UFYZ7HLU.jsx";
21
- import {
22
- useLocaleContext
23
- } from "./RCXMZN3G.jsx";
24
21
  import {
25
22
  useEnvironmentContext
26
23
  } from "./D2Z5BEON.jsx";
24
+ import {
25
+ useLocaleContext
26
+ } from "./YUC6JE7K.jsx";
27
27
  import {
28
28
  createContext
29
29
  } from "./TVCIHLER.jsx";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  collapsible_exports
3
- } from "./FUGFSIYK.jsx";
3
+ } from "./TXKDDZVE.jsx";
4
4
  import {
5
5
  RenderStrategyProvider,
6
6
  splitRenderStrategyProps,
@@ -12,12 +12,12 @@ import {
12
12
  import {
13
13
  ark
14
14
  } from "./UFYZ7HLU.jsx";
15
- import {
16
- useLocaleContext
17
- } from "./RCXMZN3G.jsx";
18
15
  import {
19
16
  useEnvironmentContext
20
17
  } from "./D2Z5BEON.jsx";
18
+ import {
19
+ useLocaleContext
20
+ } from "./YUC6JE7K.jsx";
21
21
  import {
22
22
  createContext
23
23
  } from "./TVCIHLER.jsx";
@@ -25,7 +25,17 @@ var LocaleProvider = (props) => {
25
25
  return <LocaleContextProvider value={context}>{props.children}</LocaleContextProvider>;
26
26
  };
27
27
 
28
+ // src/providers/locale/use-filter.ts
29
+ import { createFilter } from "@zag-js/i18n-utils";
30
+ import { createMemo as createMemo2 } from "solid-js";
31
+ function useFilter(props) {
32
+ const env = useLocaleContext();
33
+ const locale = createMemo2(() => props.locale ?? env().locale);
34
+ return createMemo2(() => createFilter({ ...props, locale: locale() }));
35
+ }
36
+
28
37
  export {
29
38
  useLocaleContext,
30
- LocaleProvider
39
+ LocaleProvider,
40
+ useFilter
31
41
  };
@@ -2,7 +2,7 @@ import { usePresenceContext, splitPresenceProps, usePresence, PresenceProvider }
2
2
  import { composeRefs } from './XN6EERRM.js';
3
3
  import { createSplitProps } from './ZMHI4GDJ.js';
4
4
  import { ark } from './EPLBB4QN.js';
5
- import { useLocaleContext } from './QEMQBM6W.js';
5
+ import { useLocaleContext } from './OKZ64GSY.js';
6
6
  import { useEnvironmentContext } from './YMMMHJJS.js';
7
7
  import { createContext } from './TROPIN4C.js';
8
8
  import { runIfFn } from './DT73WLR4.js';
@@ -7,12 +7,12 @@ import {
7
7
  import {
8
8
  ark
9
9
  } from "./UFYZ7HLU.jsx";
10
- import {
11
- useLocaleContext
12
- } from "./RCXMZN3G.jsx";
13
10
  import {
14
11
  useEnvironmentContext
15
12
  } from "./D2Z5BEON.jsx";
13
+ import {
14
+ useLocaleContext
15
+ } from "./YUC6JE7K.jsx";
16
16
  import {
17
17
  createContext
18
18
  } from "./TVCIHLER.jsx";
@@ -18,12 +18,12 @@ import {
18
18
  import {
19
19
  ark
20
20
  } from "./UFYZ7HLU.jsx";
21
- import {
22
- useLocaleContext
23
- } from "./RCXMZN3G.jsx";
24
21
  import {
25
22
  useEnvironmentContext
26
23
  } from "./D2Z5BEON.jsx";
24
+ import {
25
+ useLocaleContext
26
+ } from "./YUC6JE7K.jsx";
27
27
  import {
28
28
  createContext
29
29
  } from "./TVCIHLER.jsx";
@@ -7,12 +7,12 @@ import {
7
7
  import {
8
8
  ark
9
9
  } from "./UFYZ7HLU.jsx";
10
- import {
11
- useLocaleContext
12
- } from "./RCXMZN3G.jsx";
13
10
  import {
14
11
  useEnvironmentContext
15
12
  } from "./D2Z5BEON.jsx";
13
+ import {
14
+ useLocaleContext
15
+ } from "./YUC6JE7K.jsx";
16
16
  import {
17
17
  createContext
18
18
  } from "./TVCIHLER.jsx";