@ark-ui/solid 5.15.4 → 5.16.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 (189) hide show
  1. package/dist/chunk/{PPQSRJ6X.jsx → 5PKZLVXE.jsx} +7 -7
  2. package/dist/chunk/{U5CBLW6U.jsx → ACABJNIJ.jsx} +4 -4
  3. package/dist/chunk/AQUEJK4Z.jsx +122 -0
  4. package/dist/chunk/{XKBIT7L5.jsx → BBWRZLB6.jsx} +4 -4
  5. package/dist/chunk/{XIT3ASUI.jsx → C46RVY7A.jsx} +8 -7
  6. package/dist/chunk/{ZTNABPZL.jsx → EIA3BZ33.jsx} +7 -7
  7. package/dist/chunk/{3VOFK5T4.jsx → FC67EFPW.jsx} +6 -5
  8. package/dist/chunk/{S4OS4UYL.jsx → FRSNRGQK.jsx} +7 -7
  9. package/dist/chunk/{L64MXP66.jsx → G3JCG6HD.jsx} +4 -4
  10. package/dist/chunk/{KAYDBHSW.jsx → IDNDLSEV.jsx} +4 -4
  11. package/dist/chunk/{QSOUO2RW.js → JBKKVPLG.js} +2 -2
  12. package/dist/chunk/{WOUVNHGI.jsx → JPJUQ5CI.jsx} +4 -4
  13. package/dist/chunk/{XUH2TAUG.jsx → KIDL2HC3.jsx} +7 -7
  14. package/dist/chunk/{VL4J24YY.js → NEP3K5KL.js} +2 -2
  15. package/dist/chunk/{RC4UV6HP.jsx → NVETRSKA.jsx} +4 -4
  16. package/dist/chunk/{6QX2AKIJ.js → O6D2QF5I.js} +2 -2
  17. package/dist/chunk/{NCRPFSNO.jsx → VR5BNKL7.jsx} +4 -4
  18. package/dist/chunk/{2WR5J3OZ.jsx → WBYGZCTU.jsx} +7 -7
  19. package/dist/chunk/XL4VFEPW.js +104 -0
  20. package/dist/chunk/{WG67YHCV.jsx → ZB7AEDAJ.jsx} +4 -4
  21. package/dist/chunk/{SWUMYWUU.js → ZLUEV2MH.js} +2 -2
  22. package/dist/components/accordion/index.js +1 -1
  23. package/dist/components/accordion/index.jsx +3 -3
  24. package/dist/components/angle-slider/index.js +1 -1
  25. package/dist/components/angle-slider/index.jsx +2 -2
  26. package/dist/components/avatar/index.js +1 -1
  27. package/dist/components/avatar/index.jsx +2 -2
  28. package/dist/components/carousel/index.js +1 -1
  29. package/dist/components/carousel/index.jsx +2 -2
  30. package/dist/components/checkbox/index.js +1 -1
  31. package/dist/components/checkbox/index.jsx +2 -2
  32. package/dist/components/clipboard/index.jsx +1 -1
  33. package/dist/components/collapsible/index.js +1 -1
  34. package/dist/components/collapsible/index.jsx +2 -2
  35. package/dist/components/collection/index.d.ts +2 -2
  36. package/dist/components/collection/index.js +1 -1
  37. package/dist/components/collection/index.jsx +1 -1
  38. package/dist/components/color-picker/index.js +1 -1
  39. package/dist/components/color-picker/index.jsx +4 -4
  40. package/dist/components/combobox/index.d.ts +1 -1
  41. package/dist/components/combobox/index.js +2 -2
  42. package/dist/components/combobox/index.jsx +7 -7
  43. package/dist/components/date-picker/index.js +1 -1
  44. package/dist/components/date-picker/index.jsx +4 -4
  45. package/dist/components/dialog/index.js +1 -1
  46. package/dist/components/dialog/index.jsx +4 -4
  47. package/dist/components/download-trigger/index.jsx +1 -1
  48. package/dist/components/editable/index.js +1 -1
  49. package/dist/components/editable/index.jsx +2 -2
  50. package/dist/components/field/index.jsx +1 -1
  51. package/dist/components/fieldset/index.jsx +1 -1
  52. package/dist/components/file-upload/index.js +1 -1
  53. package/dist/components/file-upload/index.jsx +2 -2
  54. package/dist/components/floating-panel/index.js +1 -1
  55. package/dist/components/floating-panel/index.jsx +4 -4
  56. package/dist/components/format/index.jsx +1 -1
  57. package/dist/components/frame/index.jsx +1 -1
  58. package/dist/components/hover-card/index.js +1 -1
  59. package/dist/components/hover-card/index.jsx +4 -4
  60. package/dist/components/index.d.ts +1 -1
  61. package/dist/components/index.js +44 -44
  62. package/dist/components/index.jsx +227 -227
  63. package/dist/components/listbox/index.js +2 -2
  64. package/dist/components/listbox/index.jsx +3 -3
  65. package/dist/components/menu/index.js +1 -1
  66. package/dist/components/menu/index.jsx +4 -4
  67. package/dist/components/number-input/index.js +1 -1
  68. package/dist/components/number-input/index.jsx +2 -2
  69. package/dist/components/pagination/index.js +1 -1
  70. package/dist/components/pagination/index.jsx +2 -2
  71. package/dist/components/password-input/index.js +1 -1
  72. package/dist/components/password-input/index.jsx +2 -2
  73. package/dist/components/pin-input/index.js +1 -1
  74. package/dist/components/pin-input/index.jsx +2 -2
  75. package/dist/components/popover/index.js +1 -1
  76. package/dist/components/popover/index.jsx +4 -4
  77. package/dist/components/presence/index.jsx +2 -2
  78. package/dist/components/progress/index.js +1 -1
  79. package/dist/components/progress/index.jsx +2 -2
  80. package/dist/components/qr-code/index.js +1 -1
  81. package/dist/components/qr-code/index.jsx +2 -2
  82. package/dist/components/radio-group/index.js +1 -1
  83. package/dist/components/radio-group/index.jsx +2 -2
  84. package/dist/components/rating-group/index.js +1 -1
  85. package/dist/components/rating-group/index.jsx +2 -2
  86. package/dist/components/segment-group/index.js +1 -1
  87. package/dist/components/segment-group/index.jsx +2 -2
  88. package/dist/components/select/index.d.ts +1 -1
  89. package/dist/components/select/index.js +2 -2
  90. package/dist/components/select/index.jsx +7 -7
  91. package/dist/components/signature-pad/index.js +1 -1
  92. package/dist/components/signature-pad/index.jsx +2 -2
  93. package/dist/components/slider/index.js +1 -1
  94. package/dist/components/slider/index.jsx +2 -2
  95. package/dist/components/splitter/index.js +1 -1
  96. package/dist/components/splitter/index.jsx +2 -2
  97. package/dist/components/steps/index.js +1 -1
  98. package/dist/components/steps/index.jsx +2 -2
  99. package/dist/components/switch/index.js +1 -1
  100. package/dist/components/switch/index.jsx +2 -2
  101. package/dist/components/tabs/index.js +1 -1
  102. package/dist/components/tabs/index.jsx +4 -4
  103. package/dist/components/tags-input/index.js +1 -1
  104. package/dist/components/tags-input/index.jsx +2 -2
  105. package/dist/components/time-picker/index.js +1 -1
  106. package/dist/components/time-picker/index.jsx +4 -4
  107. package/dist/components/timer/index.jsx +1 -1
  108. package/dist/components/toast/index.js +1 -1
  109. package/dist/components/toast/index.jsx +2 -2
  110. package/dist/components/toggle-group/index.js +1 -1
  111. package/dist/components/toggle-group/index.jsx +2 -2
  112. package/dist/components/tooltip/index.js +1 -1
  113. package/dist/components/tooltip/index.jsx +4 -4
  114. package/dist/components/tour/index.js +1 -1
  115. package/dist/components/tour/index.jsx +4 -4
  116. package/dist/components/tree-view/index.js +2 -2
  117. package/dist/components/tree-view/index.jsx +4 -4
  118. package/dist/index.d.ts +1 -1
  119. package/dist/index.js +45 -45
  120. package/dist/index.jsx +230 -230
  121. package/dist/providers/index.js +1 -1
  122. package/dist/providers/index.jsx +4 -4
  123. package/dist/use-list-collection-C2rvMTSM.d.ts +91 -0
  124. package/package.json +68 -68
  125. package/dist/chunk/FBAKX74S.js +0 -86
  126. package/dist/chunk/XEXZI6CD.jsx +0 -104
  127. package/dist/use-list-collection-FJyPsrh3.d.ts +0 -39
  128. package/dist/chunk/{DAORON6X.js → 25PYT2EL.js} +1 -1
  129. package/dist/chunk/{OF23HNNE.js → 4B42LT3B.js} +1 -1
  130. package/dist/chunk/{VQ3I3Z7G.js → 4B53AHD6.js} +1 -1
  131. package/dist/chunk/{AKYIM67Z.jsx → 4T2T3PMU.jsx} +3 -3
  132. package/dist/chunk/{I6UGYR2R.js → 4V2VMH2Z.js} +1 -1
  133. package/dist/chunk/{HHGCJUZP.js → 5UKLBKNF.js} +1 -1
  134. package/dist/chunk/{OEQFRTGI.js → 6ATAHZBX.js} +1 -1
  135. package/dist/chunk/{WI6PP4EF.js → 74W4D3KY.js} +1 -1
  136. package/dist/chunk/{NQSCRM4A.js → 7E5K2JFP.js} +1 -1
  137. package/dist/chunk/{HP3ZGMDZ.jsx → 7FASJWDK.jsx} +3 -3
  138. package/dist/chunk/{YAOPG62Z.jsx → 7RYPC5LL.jsx} +3 -3
  139. package/dist/chunk/{4FUKCXPR.jsx → 7UNWOGPT.jsx} +3 -3
  140. package/dist/chunk/{OKT2RIHV.js → 7YHVIYNP.js} +1 -1
  141. package/dist/chunk/{AD6K3UTR.js → ASBQTDT2.js} +1 -1
  142. package/dist/chunk/{UK24ZAUL.js → CDA7SUTE.js} +1 -1
  143. package/dist/chunk/{35XSFKD5.jsx → CINP4S7J.jsx} +3 -3
  144. package/dist/chunk/{MTVQZNY6.js → D65IYCJS.js} +1 -1
  145. package/dist/chunk/{2MXPLL4O.js → EJDY3MNV.js} +1 -1
  146. package/dist/chunk/{4UNGYCFT.jsx → FG427CLW.jsx} +3 -3
  147. package/dist/chunk/{2UVDYZIY.jsx → FOIEK72O.jsx} +3 -3
  148. package/dist/chunk/{WZ75PULC.js → FQGMWBGA.js} +1 -1
  149. package/dist/chunk/{BOR6VUN5.js → GAB5O55Q.js} +1 -1
  150. package/dist/chunk/{HDKSS6KE.jsx → GLN6WFQR.jsx} +3 -3
  151. package/dist/chunk/{WC2HBDLJ.jsx → H6ODLFPJ.jsx} +3 -3
  152. package/dist/chunk/{LORIOKHL.js → HKFF76YQ.js} +1 -1
  153. package/dist/chunk/{CBGZAFEX.jsx → I7VQFKYT.jsx} +3 -3
  154. package/dist/chunk/{3DOPQCHJ.jsx → JK6QXH6B.jsx} +3 -3
  155. package/dist/chunk/{UW5WJ2LL.jsx → JKM73NGJ.jsx} +3 -3
  156. package/dist/chunk/{T7GUEJBF.js → JXJHXSF4.js} +1 -1
  157. package/dist/chunk/{JEPST7BN.jsx → KJ353BY6.jsx} +3 -3
  158. package/dist/chunk/{AUVF4L3Q.jsx → KNVMVQG6.jsx} +3 -3
  159. package/dist/chunk/{72JQEDEW.js → L4PQJRRA.js} +1 -1
  160. package/dist/chunk/{364QFYBV.js → LNLL2OTD.js} +1 -1
  161. package/dist/chunk/{NPHS6PVV.jsx → MJTOTU2A.jsx} +3 -3
  162. package/dist/chunk/{IWBBR7PD.js → N65DCNIH.js} +1 -1
  163. package/dist/chunk/{4HQIDBKB.js → O5A5KQPC.js} +1 -1
  164. package/dist/chunk/{T4JGZ7KR.js → OA4CU2PL.js} +1 -1
  165. package/dist/chunk/{OKNWZYMH.jsx → OM7DNJ6L.jsx} +3 -3
  166. package/dist/chunk/{JUBTXT4B.jsx → OM7V7VVC.jsx} +3 -3
  167. package/dist/chunk/{H5DXY5W4.js → OVFUGKNG.js} +1 -1
  168. package/dist/chunk/{6PUHRDVU.js → P5BHXVYK.js} +1 -1
  169. package/dist/chunk/{74TH35IC.js → P7WR6WX5.js} +1 -1
  170. package/dist/chunk/{5U4KEVIU.jsx → PRA2XFQE.jsx} +3 -3
  171. package/dist/chunk/{FJ5JNMAY.js → QJQKZL6X.js} +1 -1
  172. package/dist/chunk/{MM6NNI6M.jsx → QXYWHKF7.jsx} +3 -3
  173. package/dist/chunk/{OPAESICE.js → SFEMNN6F.js} +1 -1
  174. package/dist/chunk/{ROUJC6XC.js → SGY2KGDL.js} +1 -1
  175. package/dist/chunk/{5MOOYXRU.js → TBR4XVH2.js} +1 -1
  176. package/dist/chunk/{LDOGINY6.js → TECDLRTB.js} +1 -1
  177. package/dist/chunk/{DPP7XCXL.js → UAANHQJZ.js} +1 -1
  178. package/dist/chunk/{3IJ5QLEM.js → UU6XEYFI.js} +1 -1
  179. package/dist/chunk/{QC5C6JJA.jsx → V6S3C3U7.jsx} +3 -3
  180. package/dist/chunk/{LKPEYZZO.jsx → V75EMOIC.jsx} +3 -3
  181. package/dist/chunk/{RVK7FAUI.js → VEV5HF3M.js} +1 -1
  182. package/dist/chunk/{ZNBZTQ46.jsx → WBLWV2L4.jsx} +3 -3
  183. package/dist/chunk/{LB3LJBHI.js → WTNRGPVN.js} +1 -1
  184. package/dist/chunk/{POJRD725.jsx → X5GWQYGE.jsx} +3 -3
  185. package/dist/chunk/{LRA73ZZJ.js → XQNGFJ2M.js} +1 -1
  186. package/dist/chunk/{N3H47LNB.jsx → XSGHIZ6Q.jsx} +3 -3
  187. package/dist/chunk/{WHXDBQDP.jsx → Z2BXVXSV.jsx} +3 -3
  188. package/dist/chunk/{3B7I46SI.jsx → ZHLQWQXX.jsx} +3 -3
  189. package/dist/chunk/{33DAWPKS.js → ZRSPQAUK.js} +1 -1
@@ -1,13 +1,13 @@
1
1
  import "../chunk/ODQYYKL5.jsx";
2
- import {
3
- EnvironmentProvider,
4
- useEnvironmentContext
5
- } from "../chunk/E2L62MKC.jsx";
6
2
  import {
7
3
  LocaleProvider,
8
4
  useFilter,
9
5
  useLocaleContext
10
6
  } from "../chunk/YUC6JE7K.jsx";
7
+ import {
8
+ EnvironmentProvider,
9
+ useEnvironmentContext
10
+ } from "../chunk/E2L62MKC.jsx";
11
11
  import "../chunk/TVCIHLER.jsx";
12
12
  import "../chunk/KGOB2IMX.jsx";
13
13
  import "../chunk/7IUG3E2V.jsx";
@@ -0,0 +1,91 @@
1
+ import { M as MaybeAccessor } from './types-Bc0WfPsv.js';
2
+ import { CollectionOptions, ListCollection } from '@zag-js/collection';
3
+
4
+ interface UseListCollectionProps<T> extends Omit<CollectionOptions<T>, 'items'> {
5
+ /**
6
+ * The initial items to display in the collection.
7
+ */
8
+ initialItems: T[];
9
+ /**
10
+ * The filter function to use to filter the items.
11
+ */
12
+ filter?: (itemText: string, filterText: string, item: T) => boolean;
13
+ /**
14
+ * The maximum number of items to display in the collection.
15
+ * Useful for performance when you have a large number of items.
16
+ */
17
+ limit?: number;
18
+ }
19
+ declare function useListCollection<T>(props: MaybeAccessor<UseListCollectionProps<T>>): UseListCollectionReturn<T>;
20
+ interface UseListCollectionReturn<T> {
21
+ /**
22
+ * The collection of items.
23
+ */
24
+ collection: () => ListCollection<T>;
25
+ /**
26
+ * The function to filter the items.
27
+ */
28
+ filter: (inputValue: string) => void;
29
+ /**
30
+ * The function to set the items.
31
+ */
32
+ set: (items: T[]) => void;
33
+ /**
34
+ * The function to reset the items.
35
+ */
36
+ reset: () => void;
37
+ /**
38
+ * The function to clear the items.
39
+ */
40
+ clear: () => void;
41
+ /**
42
+ * The function to insert items at a specific index.
43
+ */
44
+ insert: (index: number, ...items: T[]) => void;
45
+ /**
46
+ * The function to insert items before a specific value.
47
+ */
48
+ insertBefore: (value: string, ...items: T[]) => void;
49
+ /**
50
+ * The function to insert items after a specific value.
51
+ */
52
+ insertAfter: (value: string, ...items: T[]) => void;
53
+ /**
54
+ * The function to remove items.
55
+ */
56
+ remove: (...itemOrValues: Array<T | string>) => void;
57
+ /**
58
+ * The function to move an item to a specific index.
59
+ */
60
+ move: (value: string, to: number) => void;
61
+ /**
62
+ * The function to move an item before a specific value.
63
+ */
64
+ moveBefore: (value: string, ...values: string[]) => void;
65
+ /**
66
+ * The function to move an item after a specific value.
67
+ */
68
+ moveAfter: (value: string, ...values: string[]) => void;
69
+ /**
70
+ * The function to reorder items.
71
+ */
72
+ reorder: (from: number, to: number) => void;
73
+ /**
74
+ * The function to append items.
75
+ */
76
+ append: (...items: T[]) => void;
77
+ /**
78
+ * The function to upsert an item.
79
+ */
80
+ upsert: (value: string, item: T, mode?: 'append' | 'prepend') => void;
81
+ /**
82
+ * The function to prepend items.
83
+ */
84
+ prepend: (...items: T[]) => void;
85
+ /**
86
+ * The function to update an item.
87
+ */
88
+ update: (value: string, item: T) => void;
89
+ }
90
+
91
+ export { type UseListCollectionProps as U, useListCollection as u };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ark-ui/solid",
3
3
  "type": "module",
4
- "version": "5.15.4",
4
+ "version": "5.16.1",
5
5
  "description": "A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.",
6
6
  "keywords": [
7
7
  "accordion",
@@ -110,70 +110,71 @@
110
110
  "sideEffects": false,
111
111
  "dependencies": {
112
112
  "@internationalized/date": "3.8.2",
113
- "@zag-js/accordion": "1.17.4",
114
- "@zag-js/angle-slider": "1.17.4",
115
- "@zag-js/anatomy": "1.17.4",
116
- "@zag-js/auto-resize": "1.17.4",
117
- "@zag-js/avatar": "1.17.4",
118
- "@zag-js/carousel": "1.17.4",
119
- "@zag-js/checkbox": "1.17.4",
120
- "@zag-js/clipboard": "1.17.4",
121
- "@zag-js/collapsible": "1.17.4",
122
- "@zag-js/collection": "1.17.4",
123
- "@zag-js/color-picker": "1.17.4",
124
- "@zag-js/color-utils": "1.17.4",
125
- "@zag-js/combobox": "1.17.4",
126
- "@zag-js/core": "1.17.4",
127
- "@zag-js/date-picker": "1.17.4",
128
- "@zag-js/date-utils": "1.17.4",
129
- "@zag-js/dialog": "1.17.4",
130
- "@zag-js/dom-query": "1.17.4",
131
- "@zag-js/editable": "1.17.4",
132
- "@zag-js/file-upload": "1.17.4",
133
- "@zag-js/file-utils": "1.17.4",
134
- "@zag-js/focus-trap": "1.17.4",
135
- "@zag-js/floating-panel": "1.17.4",
136
- "@zag-js/highlight-word": "1.17.4",
137
- "@zag-js/hover-card": "1.17.4",
138
- "@zag-js/i18n-utils": "1.17.4",
139
- "@zag-js/listbox": "1.17.4",
140
- "@zag-js/menu": "1.17.4",
141
- "@zag-js/number-input": "1.17.4",
142
- "@zag-js/pagination": "1.17.4",
143
- "@zag-js/password-input": "1.17.4",
144
- "@zag-js/pin-input": "1.17.4",
145
- "@zag-js/popover": "1.17.4",
146
- "@zag-js/presence": "1.17.4",
147
- "@zag-js/progress": "1.17.4",
148
- "@zag-js/qr-code": "1.17.4",
149
- "@zag-js/radio-group": "1.17.4",
150
- "@zag-js/rating-group": "1.17.4",
151
- "@zag-js/select": "1.17.4",
152
- "@zag-js/signature-pad": "1.17.4",
153
- "@zag-js/slider": "1.17.4",
154
- "@zag-js/solid": "1.17.4",
155
- "@zag-js/splitter": "1.17.4",
156
- "@zag-js/steps": "1.17.4",
157
- "@zag-js/switch": "1.17.4",
158
- "@zag-js/tabs": "1.17.4",
159
- "@zag-js/tags-input": "1.17.4",
160
- "@zag-js/time-picker": "1.17.4",
161
- "@zag-js/timer": "1.17.4",
162
- "@zag-js/toast": "1.17.4",
163
- "@zag-js/toggle": "1.17.4",
164
- "@zag-js/toggle-group": "1.17.4",
165
- "@zag-js/tooltip": "1.17.4",
166
- "@zag-js/tour": "1.17.4",
167
- "@zag-js/tree-view": "1.17.4",
168
- "@zag-js/types": "1.17.4",
169
- "@zag-js/utils": "1.17.4"
113
+ "@zag-js/accordion": "1.18.2",
114
+ "@zag-js/angle-slider": "1.18.2",
115
+ "@zag-js/anatomy": "1.18.2",
116
+ "@zag-js/auto-resize": "1.18.2",
117
+ "@zag-js/avatar": "1.18.2",
118
+ "@zag-js/carousel": "1.18.2",
119
+ "@zag-js/checkbox": "1.18.2",
120
+ "@zag-js/clipboard": "1.18.2",
121
+ "@zag-js/collapsible": "1.18.2",
122
+ "@zag-js/collection": "1.18.2",
123
+ "@zag-js/color-picker": "1.18.2",
124
+ "@zag-js/color-utils": "1.18.2",
125
+ "@zag-js/combobox": "1.18.2",
126
+ "@zag-js/core": "1.18.2",
127
+ "@zag-js/date-picker": "1.18.2",
128
+ "@zag-js/date-utils": "1.18.2",
129
+ "@zag-js/dialog": "1.18.2",
130
+ "@zag-js/dom-query": "1.18.2",
131
+ "@zag-js/editable": "1.18.2",
132
+ "@zag-js/file-upload": "1.18.2",
133
+ "@zag-js/file-utils": "1.18.2",
134
+ "@zag-js/focus-trap": "1.18.2",
135
+ "@zag-js/floating-panel": "1.18.2",
136
+ "@zag-js/highlight-word": "1.18.2",
137
+ "@zag-js/hover-card": "1.18.2",
138
+ "@zag-js/i18n-utils": "1.18.2",
139
+ "@zag-js/listbox": "1.18.2",
140
+ "@zag-js/menu": "1.18.2",
141
+ "@zag-js/number-input": "1.18.2",
142
+ "@zag-js/pagination": "1.18.2",
143
+ "@zag-js/password-input": "1.18.2",
144
+ "@zag-js/pin-input": "1.18.2",
145
+ "@zag-js/popover": "1.18.2",
146
+ "@zag-js/presence": "1.18.2",
147
+ "@zag-js/progress": "1.18.2",
148
+ "@zag-js/qr-code": "1.18.2",
149
+ "@zag-js/radio-group": "1.18.2",
150
+ "@zag-js/rating-group": "1.18.2",
151
+ "@zag-js/select": "1.18.2",
152
+ "@zag-js/signature-pad": "1.18.2",
153
+ "@zag-js/slider": "1.18.2",
154
+ "@zag-js/solid": "1.18.2",
155
+ "@zag-js/splitter": "1.18.2",
156
+ "@zag-js/steps": "1.18.2",
157
+ "@zag-js/switch": "1.18.2",
158
+ "@zag-js/tabs": "1.18.2",
159
+ "@zag-js/tags-input": "1.18.2",
160
+ "@zag-js/time-picker": "1.18.2",
161
+ "@zag-js/timer": "1.18.2",
162
+ "@zag-js/toast": "1.18.2",
163
+ "@zag-js/toggle": "1.18.2",
164
+ "@zag-js/toggle-group": "1.18.2",
165
+ "@zag-js/tooltip": "1.18.2",
166
+ "@zag-js/tour": "1.18.2",
167
+ "@zag-js/tree-view": "1.18.2",
168
+ "@zag-js/types": "1.18.2",
169
+ "@zag-js/utils": "1.18.2"
170
170
  },
171
171
  "devDependencies": {
172
172
  "@biomejs/biome": "1.9.4",
173
173
  "@modular-forms/solid": "0.25.1",
174
174
  "@solidjs/testing-library": "0.8.10",
175
- "@storybook/addon-a11y": "9.0.10",
176
- "@storybook/addon-links": "9.0.10",
175
+ "@storybook/addon-a11y": "9.0.15",
176
+ "@storybook/addon-links": "9.0.15",
177
+ "@storybook/addon-vitest": "9.0.15",
177
178
  "@testing-library/dom": "10.4.0",
178
179
  "@testing-library/jest-dom": "6.6.3",
179
180
  "@testing-library/user-event": "14.6.1",
@@ -182,18 +183,17 @@
182
183
  "esbuild-plugin-solid": "0.6.0",
183
184
  "globby": "14.1.0",
184
185
  "jsdom": "26.1.0",
185
- "lucide-solid": "0.515.0",
186
+ "lucide-solid": "0.525.0",
186
187
  "resize-observer-polyfill": "1.5.1",
187
188
  "solid-js": "1.9.7",
188
- "storybook": "9.0.10",
189
- "storybook-solidjs": "1.0.0-beta.6",
190
- "storybook-solidjs-vite": "1.0.0-beta.6",
189
+ "storybook": "9.0.15",
190
+ "storybook-solidjs-vite": "9.0.0",
191
191
  "tsup": "8.5.0",
192
192
  "typescript": "5.8.3",
193
- "vite": "6.3.5",
194
- "vite-plugin-solid": "2.11.6",
195
- "vitest": "3.2.3",
196
- "@vitest/coverage-v8": "3.2.3",
193
+ "vite": "7.0.2",
194
+ "vite-plugin-solid": "2.11.7",
195
+ "vitest": "3.2.4",
196
+ "@vitest/coverage-v8": "3.2.4",
197
197
  "vitest-axe": "1.0.0-pre.5"
198
198
  },
199
199
  "peerDependencies": {
@@ -1,86 +0,0 @@
1
- import { GridCollection, ListCollection, TreeCollection, filePathToTree } from '@zag-js/collection';
2
- import { createMemo, splitProps, createSignal } from 'solid-js';
3
-
4
- // src/components/collection/grid-collection.ts
5
- var createGridCollection = (options) => new GridCollection(options);
6
- var createListCollection = (options) => new ListCollection(options);
7
- var createTreeCollection = (options) => new TreeCollection(options);
8
- var createFileTreeCollection = (paths) => filePathToTree(paths);
9
- function useListCollection(props) {
10
- const splittedProps = createMemo(() => {
11
- const rawProps = typeof props === "function" ? props() : props;
12
- return splitProps(rawProps, ["initialItems", "filter", "limit"]);
13
- });
14
- const create = (items) => {
15
- const [, collectionProps] = splittedProps();
16
- return createListCollection({ ...collectionProps, items });
17
- };
18
- const init = () => {
19
- const [localProps] = splittedProps();
20
- return create(
21
- localProps.limit != null ? localProps.initialItems.slice(0, localProps.limit) : localProps.initialItems
22
- );
23
- };
24
- const [collection, setCollectionImpl] = createSignal(init());
25
- const setCollection = (collection2) => {
26
- const [localProps] = splittedProps();
27
- setCollectionImpl(
28
- localProps.limit == null ? collection2 : collection2.copy(collection2.items.slice(0, localProps.limit))
29
- );
30
- };
31
- return {
32
- collection,
33
- filter: (inputValue) => {
34
- const [localProps] = splittedProps();
35
- const filter = localProps.filter;
36
- if (!filter) return;
37
- const filtered = create(localProps.initialItems).filter((itemString) => filter(itemString, inputValue));
38
- setCollection(filtered);
39
- },
40
- set: (items) => {
41
- setCollection(create(items));
42
- },
43
- reset: () => {
44
- const [localProps] = splittedProps();
45
- setCollection(create(localProps.initialItems));
46
- },
47
- clear: () => {
48
- setCollection(create([]));
49
- },
50
- insert: (index, ...items) => {
51
- setCollection(collection().insert(index, ...items));
52
- },
53
- insertBefore: (value, ...items) => {
54
- setCollection(collection().insertBefore(value, ...items));
55
- },
56
- insertAfter: (value, ...items) => {
57
- setCollection(collection().insertAfter(value, ...items));
58
- },
59
- remove: (...itemOrValues) => {
60
- setCollection(collection().remove(...itemOrValues));
61
- },
62
- move: (value, to) => {
63
- setCollection(collection().move(value, to));
64
- },
65
- moveBefore: (value, ...values) => {
66
- setCollection(collection().moveBefore(value, ...values));
67
- },
68
- moveAfter: (value, ...values) => {
69
- setCollection(collection().moveAfter(value, ...values));
70
- },
71
- reorder: (from, to) => {
72
- setCollection(collection().reorder(from, to));
73
- },
74
- append: (...items) => {
75
- setCollection(collection().append(...items));
76
- },
77
- prepend: (...items) => {
78
- setCollection(collection().prepend(...items));
79
- },
80
- update: (value, item) => {
81
- setCollection(collection().update(value, item));
82
- }
83
- };
84
- }
85
-
86
- export { createFileTreeCollection, createGridCollection, createListCollection, createTreeCollection, useListCollection };
@@ -1,104 +0,0 @@
1
- // src/components/collection/grid-collection.ts
2
- import {
3
- GridCollection
4
- } from "@zag-js/collection";
5
- var createGridCollection = (options) => new GridCollection(options);
6
-
7
- // src/components/collection/list-collection.ts
8
- import { ListCollection } from "@zag-js/collection";
9
- var createListCollection = (options) => new ListCollection(options);
10
-
11
- // src/components/collection/tree-collection.ts
12
- import {
13
- TreeCollection,
14
- filePathToTree
15
- } from "@zag-js/collection";
16
- var createTreeCollection = (options) => new TreeCollection(options);
17
- var createFileTreeCollection = (paths) => filePathToTree(paths);
18
-
19
- // src/components/collection/use-list-collection.ts
20
- import { createMemo, createSignal, splitProps } from "solid-js";
21
- function useListCollection(props) {
22
- const splittedProps = createMemo(() => {
23
- const rawProps = typeof props === "function" ? props() : props;
24
- return splitProps(rawProps, ["initialItems", "filter", "limit"]);
25
- });
26
- const create = (items) => {
27
- const [, collectionProps] = splittedProps();
28
- return createListCollection({ ...collectionProps, items });
29
- };
30
- const init = () => {
31
- const [localProps] = splittedProps();
32
- return create(
33
- localProps.limit != null ? localProps.initialItems.slice(0, localProps.limit) : localProps.initialItems
34
- );
35
- };
36
- const [collection, setCollectionImpl] = createSignal(init());
37
- const setCollection = (collection2) => {
38
- const [localProps] = splittedProps();
39
- setCollectionImpl(
40
- localProps.limit == null ? collection2 : collection2.copy(collection2.items.slice(0, localProps.limit))
41
- );
42
- };
43
- return {
44
- collection,
45
- filter: (inputValue) => {
46
- const [localProps] = splittedProps();
47
- const filter = localProps.filter;
48
- if (!filter) return;
49
- const filtered = create(localProps.initialItems).filter((itemString) => filter(itemString, inputValue));
50
- setCollection(filtered);
51
- },
52
- set: (items) => {
53
- setCollection(create(items));
54
- },
55
- reset: () => {
56
- const [localProps] = splittedProps();
57
- setCollection(create(localProps.initialItems));
58
- },
59
- clear: () => {
60
- setCollection(create([]));
61
- },
62
- insert: (index, ...items) => {
63
- setCollection(collection().insert(index, ...items));
64
- },
65
- insertBefore: (value, ...items) => {
66
- setCollection(collection().insertBefore(value, ...items));
67
- },
68
- insertAfter: (value, ...items) => {
69
- setCollection(collection().insertAfter(value, ...items));
70
- },
71
- remove: (...itemOrValues) => {
72
- setCollection(collection().remove(...itemOrValues));
73
- },
74
- move: (value, to) => {
75
- setCollection(collection().move(value, to));
76
- },
77
- moveBefore: (value, ...values) => {
78
- setCollection(collection().moveBefore(value, ...values));
79
- },
80
- moveAfter: (value, ...values) => {
81
- setCollection(collection().moveAfter(value, ...values));
82
- },
83
- reorder: (from, to) => {
84
- setCollection(collection().reorder(from, to));
85
- },
86
- append: (...items) => {
87
- setCollection(collection().append(...items));
88
- },
89
- prepend: (...items) => {
90
- setCollection(collection().prepend(...items));
91
- },
92
- update: (value, item) => {
93
- setCollection(collection().update(value, item));
94
- }
95
- };
96
- }
97
-
98
- export {
99
- createGridCollection,
100
- createListCollection,
101
- createTreeCollection,
102
- createFileTreeCollection,
103
- useListCollection
104
- };
@@ -1,39 +0,0 @@
1
- import * as solid_js from 'solid-js';
2
- import { M as MaybeAccessor } from './types-Bc0WfPsv.js';
3
- import { CollectionOptions, ListCollection } from '@zag-js/collection';
4
-
5
- interface UseListCollectionProps<T> extends Omit<CollectionOptions<T>, 'items'> {
6
- /**
7
- * The initial items to display in the collection.
8
- */
9
- initialItems: T[];
10
- /**
11
- * The filter function to use to filter the items.
12
- */
13
- filter?: (itemText: string, filterText: string) => boolean;
14
- /**
15
- * The maximum number of items to display in the collection.
16
- * Useful for performance when you have a large number of items.
17
- */
18
- limit?: number;
19
- }
20
- declare function useListCollection<T>(props: MaybeAccessor<UseListCollectionProps<T>>): {
21
- collection: solid_js.Accessor<ListCollection<T>>;
22
- filter: (inputValue: string) => void;
23
- set: (items: T[]) => void;
24
- reset: () => void;
25
- clear: () => void;
26
- insert: (index: number, ...items: T[]) => void;
27
- insertBefore: (value: string, ...items: T[]) => void;
28
- insertAfter: (value: string, ...items: T[]) => void;
29
- remove: (...itemOrValues: T[]) => void;
30
- move: (value: string, to: number) => void;
31
- moveBefore: (value: string, ...values: string[]) => void;
32
- moveAfter: (value: string, ...values: string[]) => void;
33
- reorder: (from: number, to: number) => void;
34
- append: (...items: T[]) => void;
35
- prepend: (...items: T[]) => void;
36
- update: (value: string, item: T) => void;
37
- };
38
-
39
- export { type UseListCollectionProps as U, useListCollection as u };
@@ -1,7 +1,7 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
- import { useEnvironmentContext } from './YO2MCGXO.js';
4
3
  import { useLocaleContext } from './OKZ64GSY.js';
4
+ import { useEnvironmentContext } from './YO2MCGXO.js';
5
5
  import { createContext } from './TROPIN4C.js';
6
6
  import { runIfFn } from './DT73WLR4.js';
7
7
  import { __export } from './ESLJRKWD.js';
@@ -3,8 +3,8 @@ 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 { useEnvironmentContext } from './YO2MCGXO.js';
7
6
  import { useLocaleContext } from './OKZ64GSY.js';
7
+ import { useEnvironmentContext } from './YO2MCGXO.js';
8
8
  import { createContext } from './TROPIN4C.js';
9
9
  import { runIfFn } from './DT73WLR4.js';
10
10
  import { __export } from './ESLJRKWD.js';
@@ -1,7 +1,7 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
- import { useEnvironmentContext } from './YO2MCGXO.js';
4
3
  import { useLocaleContext } from './OKZ64GSY.js';
4
+ import { useEnvironmentContext } from './YO2MCGXO.js';
5
5
  import { createContext } from './TROPIN4C.js';
6
6
  import { runIfFn } from './DT73WLR4.js';
7
7
  import { __export } from './ESLJRKWD.js';
@@ -7,12 +7,12 @@ import {
7
7
  import {
8
8
  ark
9
9
  } from "./UFYZ7HLU.jsx";
10
- import {
11
- useEnvironmentContext
12
- } from "./E2L62MKC.jsx";
13
10
  import {
14
11
  useLocaleContext
15
12
  } from "./YUC6JE7K.jsx";
13
+ import {
14
+ useEnvironmentContext
15
+ } from "./E2L62MKC.jsx";
16
16
  import {
17
17
  createContext
18
18
  } from "./TVCIHLER.jsx";
@@ -1,7 +1,7 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
- import { useEnvironmentContext } from './YO2MCGXO.js';
4
3
  import { useLocaleContext } from './OKZ64GSY.js';
4
+ import { useEnvironmentContext } from './YO2MCGXO.js';
5
5
  import { createContext } from './TROPIN4C.js';
6
6
  import { runIfFn } from './DT73WLR4.js';
7
7
  import { __export } from './ESLJRKWD.js';
@@ -3,8 +3,8 @@ import { splitPresenceProps, usePresence, PresenceProvider, usePresenceContext }
3
3
  import { composeRefs } from './XN6EERRM.js';
4
4
  import { createSplitProps } from './ZMHI4GDJ.js';
5
5
  import { ark } from './EPLBB4QN.js';
6
- import { useEnvironmentContext } from './YO2MCGXO.js';
7
6
  import { useLocaleContext } from './OKZ64GSY.js';
7
+ import { useEnvironmentContext } from './YO2MCGXO.js';
8
8
  import { createContext } from './TROPIN4C.js';
9
9
  import { runIfFn } from './DT73WLR4.js';
10
10
  import { __export } from './ESLJRKWD.js';
@@ -1,7 +1,7 @@
1
1
  import { createSplitProps } from './ZMHI4GDJ.js';
2
2
  import { ark } from './EPLBB4QN.js';
3
- import { useEnvironmentContext } from './YO2MCGXO.js';
4
3
  import { useLocaleContext } from './OKZ64GSY.js';
4
+ import { useEnvironmentContext } from './YO2MCGXO.js';
5
5
  import { createContext } from './TROPIN4C.js';
6
6
  import { runIfFn } from './DT73WLR4.js';
7
7
  import { __export } from './ESLJRKWD.js';
@@ -1,8 +1,8 @@
1
1
  import { useFieldContext } from './NC7W2KIE.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
- import { useEnvironmentContext } from './YO2MCGXO.js';
5
4
  import { useLocaleContext } from './OKZ64GSY.js';
5
+ import { useEnvironmentContext } from './YO2MCGXO.js';
6
6
  import { createContext } from './TROPIN4C.js';
7
7
  import { runIfFn } from './DT73WLR4.js';
8
8
  import { __export } from './ESLJRKWD.js';
@@ -1,8 +1,8 @@
1
1
  import { useFieldContext } from './NC7W2KIE.js';
2
2
  import { createSplitProps } from './ZMHI4GDJ.js';
3
3
  import { ark } from './EPLBB4QN.js';
4
- import { useEnvironmentContext } from './YO2MCGXO.js';
5
4
  import { useLocaleContext } from './OKZ64GSY.js';
5
+ import { useEnvironmentContext } from './YO2MCGXO.js';
6
6
  import { createContext } from './TROPIN4C.js';
7
7
  import { runIfFn } from './DT73WLR4.js';
8
8
  import { __export } from './ESLJRKWD.js';
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  ark
6
6
  } from "./UFYZ7HLU.jsx";
7
- import {
8
- useEnvironmentContext
9
- } from "./E2L62MKC.jsx";
10
7
  import {
11
8
  useLocaleContext
12
9
  } from "./YUC6JE7K.jsx";
10
+ import {
11
+ useEnvironmentContext
12
+ } from "./E2L62MKC.jsx";
13
13
  import {
14
14
  createContext
15
15
  } from "./TVCIHLER.jsx";
@@ -4,12 +4,12 @@ import {
4
4
  import {
5
5
  ark
6
6
  } from "./UFYZ7HLU.jsx";
7
- import {
8
- useEnvironmentContext
9
- } from "./E2L62MKC.jsx";
10
7
  import {
11
8
  useLocaleContext
12
9
  } from "./YUC6JE7K.jsx";
10
+ import {
11
+ useEnvironmentContext
12
+ } from "./E2L62MKC.jsx";
13
13
  import {
14
14
  createContext
15
15
  } from "./TVCIHLER.jsx";
@@ -7,12 +7,12 @@ import {
7
7
  import {
8
8
  ark
9
9
  } from "./UFYZ7HLU.jsx";
10
- import {
11
- useEnvironmentContext
12
- } from "./E2L62MKC.jsx";
13
10
  import {
14
11
  useLocaleContext
15
12
  } from "./YUC6JE7K.jsx";
13
+ import {
14
+ useEnvironmentContext
15
+ } from "./E2L62MKC.jsx";
16
16
  import {
17
17
  createContext
18
18
  } from "./TVCIHLER.jsx";