@ark-ui/solid 5.12.0 → 5.13.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.
Files changed (133) hide show
  1. package/dist/chunk/{KAYDBHSW.jsx → 2Z37DOO5.jsx} +5 -5
  2. package/dist/chunk/{V2GDFVDR.jsx → 3HYU2MCP.jsx} +1 -1
  3. package/dist/chunk/{3DOPQCHJ.jsx → 5FW3VV3B.jsx} +4 -4
  4. package/dist/chunk/{UW5WJ2LL.jsx → 5OA4XEHW.jsx} +4 -4
  5. package/dist/chunk/{35XSFKD5.jsx → 5UVX33V2.jsx} +4 -4
  6. package/dist/chunk/{GKS4JQZJ.jsx → 6Q4ZZUWZ.jsx} +4 -4
  7. package/dist/chunk/{JEPST7BN.jsx → 7AMCFBJH.jsx} +5 -5
  8. package/dist/chunk/{QC5C6JJA.jsx → 7BS7ZITV.jsx} +5 -5
  9. package/dist/chunk/{NPHS6PVV.jsx → A6XGGK7D.jsx} +4 -4
  10. package/dist/chunk/{5U4KEVIU.jsx → B4ZXV6YG.jsx} +4 -4
  11. package/dist/chunk/{SRW6BLJ4.jsx → BANMH5LL.jsx} +5 -5
  12. package/dist/chunk/{XKBIT7L5.jsx → C2TYPWCS.jsx} +5 -5
  13. package/dist/chunk/{ZRJUQL4N.js → EL2ORF75.js} +1 -1
  14. package/dist/chunk/FBAKX74S.js +86 -0
  15. package/dist/chunk/{JY6PMVAK.jsx → FS6GEMRM.jsx} +4 -4
  16. package/dist/chunk/{PPQSRJ6X.jsx → GTT47L2X.jsx} +6 -6
  17. package/dist/chunk/{MM6NNI6M.jsx → J4VOAZA3.jsx} +4 -4
  18. package/dist/chunk/{N3H47LNB.jsx → JWPRFVT7.jsx} +4 -4
  19. package/dist/chunk/{AKYIM67Z.jsx → LHJM3X56.jsx} +5 -5
  20. package/dist/chunk/{POJRD725.jsx → LY6KT2RR.jsx} +4 -4
  21. package/dist/chunk/{ZTNABPZL.jsx → MOOX4K4V.jsx} +5 -5
  22. package/dist/chunk/{WOUVNHGI.jsx → N5PC6SPR.jsx} +5 -5
  23. package/dist/chunk/{S4OS4UYL.jsx → NLGFQW27.jsx} +5 -5
  24. package/dist/chunk/{4FUKCXPR.jsx → NUPYPPGN.jsx} +5 -5
  25. package/dist/chunk/{HQOIDGRU.jsx → O2Q7MOG6.jsx} +2 -2
  26. package/dist/chunk/{XUH2TAUG.jsx → OCZWTABP.jsx} +5 -5
  27. package/dist/chunk/{HDKSS6KE.jsx → OIG52XTL.jsx} +1 -1
  28. package/dist/chunk/{RC4UV6HP.jsx → P5YRDHKG.jsx} +5 -5
  29. package/dist/chunk/{2UVDYZIY.jsx → P5ZRUIVB.jsx} +4 -4
  30. package/dist/chunk/{4UNGYCFT.jsx → PNYN26W7.jsx} +4 -4
  31. package/dist/chunk/{JQSSQ4LS.jsx → QNNABUNA.jsx} +4 -4
  32. package/dist/chunk/{XIT3ASUI.jsx → RKHQB2WQ.jsx} +6 -6
  33. package/dist/chunk/{AUVF4L3Q.jsx → SXZY4NGI.jsx} +5 -5
  34. package/dist/chunk/{LKPEYZZO.jsx → TILCNQZF.jsx} +5 -5
  35. package/dist/chunk/{JUBTXT4B.jsx → TTZNIVIU.jsx} +5 -5
  36. package/dist/chunk/{YAOPG62Z.jsx → UBCF5HI7.jsx} +4 -4
  37. package/dist/chunk/{OKNWZYMH.jsx → VSLHNUS2.jsx} +5 -5
  38. package/dist/chunk/{WG67YHCV.jsx → WCLRKV7H.jsx} +5 -5
  39. package/dist/chunk/{HP3ZGMDZ.jsx → WYNHVCCC.jsx} +4 -4
  40. package/dist/chunk/XEXZI6CD.jsx +104 -0
  41. package/dist/chunk/{OIMDJYLW.jsx → XKDJ2JV3.jsx} +6 -5
  42. package/dist/chunk/{WHXDBQDP.jsx → XOVDOF3R.jsx} +4 -4
  43. package/dist/chunk/{GDPPSUOA.jsx → XSBZIIQM.jsx} +5 -5
  44. package/dist/chunk/{2WR5J3OZ.jsx → XSDPU3EV.jsx} +6 -6
  45. package/dist/chunk/{MTT5ESIK.jsx → XWFAYRYW.jsx} +5 -5
  46. package/dist/chunk/{PVGCB42Y.jsx → Y46NS2RB.jsx} +5 -5
  47. package/dist/chunk/{ZNBZTQ46.jsx → YIQG5BP3.jsx} +5 -5
  48. package/dist/chunk/{RULCXX3A.jsx → ZF7UP5R3.jsx} +4 -4
  49. package/dist/chunk/{TTIVTOWQ.jsx → ZMXVBUJS.jsx} +1 -1
  50. package/dist/components/accordion/index.jsx +5 -5
  51. package/dist/components/angle-slider/index.jsx +4 -4
  52. package/dist/components/avatar/index.jsx +4 -4
  53. package/dist/components/carousel/index.jsx +4 -4
  54. package/dist/components/checkbox/index.d.ts +1 -1
  55. package/dist/components/checkbox/index.jsx +6 -6
  56. package/dist/components/clipboard/index.jsx +4 -4
  57. package/dist/components/collapsible/index.jsx +4 -4
  58. package/dist/components/collection/index.d.ts +11 -0
  59. package/dist/components/collection/index.js +1 -0
  60. package/dist/components/collection/index.jsx +15 -0
  61. package/dist/components/color-picker/index.d.ts +1 -1
  62. package/dist/components/color-picker/index.jsx +7 -7
  63. package/dist/components/combobox/index.d.ts +4 -3
  64. package/dist/components/combobox/index.js +1 -1
  65. package/dist/components/combobox/index.jsx +13 -11
  66. package/dist/components/date-picker/index.d.ts +1 -1
  67. package/dist/components/date-picker/index.jsx +5 -5
  68. package/dist/components/dialog/index.jsx +5 -5
  69. package/dist/components/download-trigger/index.jsx +4 -4
  70. package/dist/components/editable/index.jsx +6 -6
  71. package/dist/components/field/index.d.ts +1 -1
  72. package/dist/components/field/index.jsx +5 -5
  73. package/dist/components/fieldset/index.d.ts +1 -1
  74. package/dist/components/fieldset/index.jsx +4 -4
  75. package/dist/components/file-upload/index.jsx +6 -6
  76. package/dist/components/floating-panel/index.jsx +5 -5
  77. package/dist/components/format/index.jsx +2 -2
  78. package/dist/components/frame/index.jsx +3 -3
  79. package/dist/components/hover-card/index.jsx +5 -5
  80. package/dist/components/index.d.ts +6 -4
  81. package/dist/components/index.js +15 -15
  82. package/dist/components/index.jsx +460 -456
  83. package/dist/components/listbox/index.d.ts +3 -3
  84. package/dist/components/listbox/index.js +1 -1
  85. package/dist/components/listbox/index.jsx +5 -5
  86. package/dist/components/menu/index.jsx +5 -5
  87. package/dist/components/number-input/index.jsx +6 -6
  88. package/dist/components/pagination/index.jsx +4 -4
  89. package/dist/components/password-input/index.jsx +6 -6
  90. package/dist/components/pin-input/index.jsx +6 -6
  91. package/dist/components/popover/index.jsx +5 -5
  92. package/dist/components/presence/index.jsx +2 -2
  93. package/dist/components/progress/index.d.ts +6 -4
  94. package/dist/components/progress/index.jsx +4 -4
  95. package/dist/components/qr-code/index.jsx +4 -4
  96. package/dist/components/radio-group/index.jsx +4 -4
  97. package/dist/components/rating-group/index.jsx +6 -6
  98. package/dist/components/segment-group/index.jsx +4 -4
  99. package/dist/components/select/index.d.ts +4 -3
  100. package/dist/components/select/index.js +1 -1
  101. package/dist/components/select/index.jsx +12 -10
  102. package/dist/components/signature-pad/index.jsx +6 -6
  103. package/dist/components/slider/index.jsx +4 -4
  104. package/dist/components/splitter/index.jsx +4 -4
  105. package/dist/components/steps/index.jsx +4 -4
  106. package/dist/components/switch/index.jsx +6 -6
  107. package/dist/components/tabs/index.jsx +5 -5
  108. package/dist/components/tags-input/index.jsx +6 -6
  109. package/dist/components/time-picker/index.jsx +5 -5
  110. package/dist/components/timer/index.jsx +4 -4
  111. package/dist/components/toast/index.jsx +4 -4
  112. package/dist/components/toggle-group/index.jsx +4 -4
  113. package/dist/components/tooltip/index.jsx +5 -5
  114. package/dist/components/tour/index.jsx +5 -5
  115. package/dist/components/tree-view/index.d.ts +5 -4
  116. package/dist/components/tree-view/index.js +2 -2
  117. package/dist/components/tree-view/index.jsx +8 -6
  118. package/dist/index.d.ts +6 -4
  119. package/dist/index.js +15 -15
  120. package/dist/index.jsx +460 -456
  121. package/dist/list-collection-nOYDJvsQ.d.ts +5 -0
  122. package/dist/providers/environment/index.jsx +2 -2
  123. package/dist/providers/index.jsx +2 -2
  124. package/dist/tree-collection-BGrnj3vg.d.ts +6 -0
  125. package/dist/use-list-collection-FJyPsrh3.d.ts +39 -0
  126. package/package.json +1 -1
  127. package/dist/chunk/MOG4V2NQ.jsx +0 -15
  128. package/dist/chunk/OAPCRIL5.js +0 -8
  129. package/dist/components/collection.d.ts +0 -9
  130. package/dist/components/collection.js +0 -1
  131. package/dist/components/collection.jsx +0 -11
  132. package/dist/chunk/{E2L62MKC.jsx → 6J5H27AQ.jsx} +3 -3
  133. package/dist/chunk/{WC2HBDLJ.jsx → RHCMSWDF.jsx} +3 -3
@@ -0,0 +1,5 @@
1
+ import { CollectionItem, CollectionOptions, ListCollection } from '@zag-js/collection';
2
+
3
+ declare const createListCollection: <T extends CollectionItem>(options: CollectionOptions<T>) => ListCollection<T>;
4
+
5
+ export { createListCollection as c };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  EnvironmentProvider,
3
3
  useEnvironmentContext
4
- } from "../../chunk/E2L62MKC.jsx";
5
- import "../../chunk/TVCIHLER.jsx";
4
+ } from "../../chunk/6J5H27AQ.jsx";
6
5
  import "../../chunk/KGOB2IMX.jsx";
6
+ import "../../chunk/TVCIHLER.jsx";
7
7
  import "../../chunk/7IUG3E2V.jsx";
8
8
  export {
9
9
  EnvironmentProvider,
@@ -2,14 +2,14 @@ import "../chunk/ODQYYKL5.jsx";
2
2
  import {
3
3
  EnvironmentProvider,
4
4
  useEnvironmentContext
5
- } from "../chunk/E2L62MKC.jsx";
5
+ } from "../chunk/6J5H27AQ.jsx";
6
+ import "../chunk/KGOB2IMX.jsx";
6
7
  import {
7
8
  LocaleProvider,
8
9
  useFilter,
9
10
  useLocaleContext
10
11
  } from "../chunk/YUC6JE7K.jsx";
11
12
  import "../chunk/TVCIHLER.jsx";
12
- import "../chunk/KGOB2IMX.jsx";
13
13
  import "../chunk/7IUG3E2V.jsx";
14
14
  export {
15
15
  EnvironmentProvider,
@@ -0,0 +1,6 @@
1
+ import { TreeCollection, FilePathTreeNode, TreeNode, TreeCollectionOptions } from '@zag-js/collection';
2
+
3
+ declare const createTreeCollection: <T extends TreeNode>(options: TreeCollectionOptions<T>) => TreeCollection<T>;
4
+ declare const createFileTreeCollection: (paths: string[]) => TreeCollection<FilePathTreeNode>;
5
+
6
+ export { createTreeCollection as a, createFileTreeCollection as c };
@@ -0,0 +1,39 @@
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 };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ark-ui/solid",
3
3
  "type": "module",
4
- "version": "5.12.0",
4
+ "version": "5.13.0",
5
5
  "description": "A collection of unstyled, accessible UI components for Solid, utilizing state machines for seamless interaction.",
6
6
  "keywords": [
7
7
  "accordion",
@@ -1,15 +0,0 @@
1
- // src/components/collection.ts
2
- import {
3
- ListCollection,
4
- TreeCollection,
5
- filePathToTree
6
- } from "@zag-js/collection";
7
- var createListCollection = (options) => new ListCollection(options);
8
- var createTreeCollection = (options) => new TreeCollection(options);
9
- var createFileTreeCollection = (paths) => filePathToTree(paths);
10
-
11
- export {
12
- createListCollection,
13
- createTreeCollection,
14
- createFileTreeCollection
15
- };
@@ -1,8 +0,0 @@
1
- import { ListCollection, TreeCollection, filePathToTree } from '@zag-js/collection';
2
-
3
- // src/components/collection.ts
4
- var createListCollection = (options) => new ListCollection(options);
5
- var createTreeCollection = (options) => new TreeCollection(options);
6
- var createFileTreeCollection = (paths) => filePathToTree(paths);
7
-
8
- export { createFileTreeCollection, createListCollection, createTreeCollection };
@@ -1,9 +0,0 @@
1
- import { CollectionItem, CollectionOptions, ListCollection, TreeCollection, FilePathTreeNode, TreeNode, TreeCollectionOptions } from '@zag-js/collection';
2
- export { CollectionItem, CollectionOptions, GridCollectionOptions, ListCollection, SelectionMode, TreeCollection, TreeCollectionOptions, TreeNode } from '@zag-js/collection';
3
-
4
- declare const createListCollection: <T extends CollectionItem>(options: CollectionOptions<T>) => ListCollection<T>;
5
-
6
- declare const createTreeCollection: <T extends TreeNode>(options: TreeCollectionOptions<T>) => TreeCollection<T>;
7
- declare const createFileTreeCollection: (paths: string[]) => TreeCollection<FilePathTreeNode>;
8
-
9
- export { createFileTreeCollection, createListCollection, createTreeCollection };
@@ -1 +0,0 @@
1
- export { createFileTreeCollection, createListCollection, createTreeCollection } from '../chunk/OAPCRIL5.js';
@@ -1,11 +0,0 @@
1
- import {
2
- createFileTreeCollection,
3
- createListCollection,
4
- createTreeCollection
5
- } from "../chunk/MOG4V2NQ.jsx";
6
- import "../chunk/7IUG3E2V.jsx";
7
- export {
8
- createFileTreeCollection,
9
- createListCollection,
10
- createTreeCollection
11
- };
@@ -1,9 +1,9 @@
1
- import {
2
- createContext
3
- } from "./TVCIHLER.jsx";
4
1
  import {
5
2
  runIfFn
6
3
  } from "./KGOB2IMX.jsx";
4
+ import {
5
+ createContext
6
+ } from "./TVCIHLER.jsx";
7
7
 
8
8
  // src/providers/environment/environment-provider.tsx
9
9
  import { getDocument, getWindow } from "@zag-js/dom-query";
@@ -10,12 +10,12 @@ import {
10
10
  import {
11
11
  ark
12
12
  } from "./UFYZ7HLU.jsx";
13
- import {
14
- createContext
15
- } from "./TVCIHLER.jsx";
16
13
  import {
17
14
  runIfFn
18
15
  } from "./KGOB2IMX.jsx";
16
+ import {
17
+ createContext
18
+ } from "./TVCIHLER.jsx";
19
19
 
20
20
  // src/components/presence/presence.tsx
21
21
  import { mergeProps } from "@zag-js/solid";