@proyecto-viviana/solid-stately 0.2.7 → 0.3.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 (242) hide show
  1. package/README.md +30 -283
  2. package/dist/autocomplete/createAutocompleteState.d.ts +2 -2
  3. package/dist/autocomplete/index.d.ts +1 -1
  4. package/dist/calendar/createCalendarState.d.ts +22 -7
  5. package/dist/calendar/createDateFieldState.d.ts +30 -7
  6. package/dist/calendar/createDatePickerState.d.ts +60 -0
  7. package/dist/calendar/createRangeCalendarState.d.ts +27 -8
  8. package/dist/calendar/createTimeFieldState.d.ts +34 -7
  9. package/dist/calendar/index.d.ts +7 -6
  10. package/dist/checkbox/createCheckboxGroupState.d.ts +6 -6
  11. package/dist/checkbox/index.d.ts +1 -1
  12. package/dist/collections/ListCollection.d.ts +1 -1
  13. package/dist/collections/createListState.d.ts +8 -8
  14. package/dist/collections/createMenuState.d.ts +7 -7
  15. package/dist/collections/createSelectionState.d.ts +5 -5
  16. package/dist/collections/index.d.ts +5 -5
  17. package/dist/collections/types.d.ts +12 -12
  18. package/dist/color/Color.d.ts +1 -1
  19. package/dist/color/createColorAreaState.d.ts +4 -2
  20. package/dist/color/createColorFieldState.d.ts +38 -12
  21. package/dist/color/createColorSliderState.d.ts +9 -2
  22. package/dist/color/createColorWheelState.d.ts +13 -2
  23. package/dist/color/getColorChannels.d.ts +1 -1
  24. package/dist/color/index.d.ts +6 -6
  25. package/dist/color/types.d.ts +4 -4
  26. package/dist/combobox/createComboBoxState.d.ts +27 -13
  27. package/dist/combobox/index.d.ts +1 -1
  28. package/dist/data/createAsyncList.d.ts +4 -4
  29. package/dist/data/createListData.d.ts +2 -2
  30. package/dist/data/createTreeData.d.ts +6 -2
  31. package/dist/data/index.d.ts +3 -3
  32. package/dist/datepicker/index.d.ts +2 -4
  33. package/dist/disclosure/createDisclosureState.d.ts +2 -2
  34. package/dist/disclosure/index.d.ts +1 -1
  35. package/dist/dnd/createDragState.d.ts +2 -2
  36. package/dist/dnd/createDraggableCollectionState.d.ts +2 -2
  37. package/dist/dnd/createDropState.d.ts +2 -2
  38. package/dist/dnd/createDroppableCollectionState.d.ts +3 -3
  39. package/dist/dnd/index.d.ts +5 -5
  40. package/dist/dnd/types.d.ts +16 -16
  41. package/dist/form/createFormValidationState.d.ts +3 -3
  42. package/dist/form/index.d.ts +1 -1
  43. package/dist/grid/createGridState.d.ts +2 -2
  44. package/dist/grid/index.d.ts +2 -2
  45. package/dist/grid/types.d.ts +13 -11
  46. package/dist/index.d.ts +31 -30
  47. package/dist/index.js +7924 -7238
  48. package/dist/index.js.map +1 -1
  49. package/dist/menu/index.d.ts +2 -2
  50. package/dist/numberfield/createNumberFieldState.d.ts +2 -2
  51. package/dist/numberfield/index.d.ts +1 -1
  52. package/dist/overlays/createOverlayTriggerState.d.ts +2 -2
  53. package/dist/overlays/index.d.ts +1 -1
  54. package/dist/radio/createRadioGroupState.d.ts +7 -7
  55. package/dist/radio/index.d.ts +1 -1
  56. package/dist/searchfield/createSearchFieldState.d.ts +2 -2
  57. package/dist/searchfield/index.d.ts +2 -2
  58. package/dist/select/createSelectState.d.ts +8 -8
  59. package/dist/select/index.d.ts +1 -1
  60. package/dist/selection/index.d.ts +5 -5
  61. package/dist/slider/createSliderState.d.ts +3 -3
  62. package/dist/slider/index.d.ts +2 -2
  63. package/dist/steplist/createStepListState.d.ts +48 -0
  64. package/dist/steplist/index.d.ts +1 -0
  65. package/dist/table/TableCollection.d.ts +3 -3
  66. package/dist/table/createTableColumnResizeState.d.ts +54 -0
  67. package/dist/table/createTableState.d.ts +2 -2
  68. package/dist/table/index.d.ts +5 -3
  69. package/dist/table/types.d.ts +10 -10
  70. package/dist/tabs/createTabListState.d.ts +5 -5
  71. package/dist/tabs/index.d.ts +1 -1
  72. package/dist/textfield/createTextFieldState.d.ts +2 -2
  73. package/dist/textfield/index.d.ts +1 -1
  74. package/dist/toast/createToastState.d.ts +8 -2
  75. package/dist/toast/index.d.ts +1 -1
  76. package/dist/toggle/createToggleGroupState.d.ts +4 -4
  77. package/dist/toggle/createToggleState.d.ts +2 -2
  78. package/dist/toggle/index.d.ts +2 -2
  79. package/dist/tooltip/createTooltipTriggerState.d.ts +2 -2
  80. package/dist/tooltip/index.d.ts +1 -1
  81. package/dist/tree/TreeCollection.d.ts +2 -2
  82. package/dist/tree/createTreeState.d.ts +2 -2
  83. package/dist/tree/index.d.ts +3 -3
  84. package/dist/tree/types.d.ts +19 -13
  85. package/dist/utils/index.d.ts +1 -1
  86. package/dist/utils/reactivity.d.ts +1 -1
  87. package/package.json +29 -30
  88. package/src/autocomplete/createAutocompleteState.d.ts +19 -17
  89. package/src/autocomplete/createAutocompleteState.ts +24 -30
  90. package/src/autocomplete/index.d.ts +6 -2
  91. package/src/autocomplete/index.ts +1 -1
  92. package/src/calendar/createCalendarState.d.ts +139 -117
  93. package/src/calendar/createCalendarState.ts +221 -74
  94. package/src/calendar/createDateFieldState.d.ts +130 -95
  95. package/src/calendar/createDateFieldState.ts +263 -151
  96. package/src/calendar/createDatePickerState.ts +347 -0
  97. package/src/calendar/createRangeCalendarState.d.ts +154 -129
  98. package/src/calendar/createRangeCalendarState.ts +293 -79
  99. package/src/calendar/createTimeFieldState.d.ts +81 -79
  100. package/src/calendar/createTimeFieldState.ts +187 -108
  101. package/src/calendar/index.d.ts +80 -7
  102. package/src/calendar/index.ts +21 -12
  103. package/src/checkbox/createCheckboxGroupState.d.ts +57 -55
  104. package/src/checkbox/createCheckboxGroupState.ts +20 -29
  105. package/src/checkbox/index.d.ts +6 -2
  106. package/src/checkbox/index.ts +1 -1
  107. package/src/collections/ListCollection.d.ts +25 -22
  108. package/src/collections/ListCollection.ts +6 -6
  109. package/src/collections/createListState.d.ts +73 -58
  110. package/src/collections/createListState.ts +19 -18
  111. package/src/collections/createMenuState.d.ts +36 -31
  112. package/src/collections/createMenuState.ts +18 -12
  113. package/src/collections/createSelectionState.d.ts +78 -65
  114. package/src/collections/createSelectionState.ts +36 -32
  115. package/src/collections/index.d.ts +38 -6
  116. package/src/collections/index.ts +5 -10
  117. package/src/collections/types.d.ts +101 -101
  118. package/src/collections/types.ts +12 -12
  119. package/src/color/Color.d.ts +20 -5
  120. package/src/color/Color.ts +357 -254
  121. package/src/color/createColorAreaState.d.ts +67 -65
  122. package/src/color/createColorAreaState.ts +21 -13
  123. package/src/color/createColorFieldState.d.ts +46 -44
  124. package/src/color/createColorFieldState.ts +285 -149
  125. package/src/color/createColorSliderState.d.ts +58 -56
  126. package/src/color/createColorSliderState.ts +45 -14
  127. package/src/color/createColorWheelState.d.ts +42 -40
  128. package/src/color/createColorWheelState.ts +101 -64
  129. package/src/color/getColorChannels.ts +7 -5
  130. package/src/color/index.d.ts +36 -7
  131. package/src/color/index.ts +6 -9
  132. package/src/color/types.d.ts +68 -63
  133. package/src/color/types.ts +11 -19
  134. package/src/combobox/createComboBoxState.d.ts +107 -105
  135. package/src/combobox/createComboBoxState.ts +176 -89
  136. package/src/combobox/index.d.ts +10 -2
  137. package/src/combobox/index.ts +1 -1
  138. package/src/data/createAsyncList.ts +89 -63
  139. package/src/data/createListData.ts +67 -67
  140. package/src/data/createTreeData.ts +304 -91
  141. package/src/data/index.ts +3 -3
  142. package/src/datepicker/index.ts +6 -10
  143. package/src/disclosure/createDisclosureState.d.ts +47 -43
  144. package/src/disclosure/createDisclosureState.ts +7 -21
  145. package/src/disclosure/index.d.ts +10 -2
  146. package/src/disclosure/index.ts +1 -1
  147. package/src/dnd/createDragState.d.ts +51 -42
  148. package/src/dnd/createDragState.ts +12 -14
  149. package/src/dnd/createDraggableCollectionState.d.ts +52 -41
  150. package/src/dnd/createDraggableCollectionState.ts +14 -21
  151. package/src/dnd/createDropState.d.ts +64 -45
  152. package/src/dnd/createDropState.ts +22 -32
  153. package/src/dnd/createDroppableCollectionState.d.ts +88 -59
  154. package/src/dnd/createDroppableCollectionState.ts +40 -43
  155. package/src/dnd/index.d.ts +54 -6
  156. package/src/dnd/index.ts +5 -18
  157. package/src/dnd/types.d.ts +167 -156
  158. package/src/dnd/types.ts +20 -21
  159. package/src/form/createFormValidationState.d.ts +47 -45
  160. package/src/form/createFormValidationState.ts +30 -63
  161. package/src/form/index.d.ts +16 -2
  162. package/src/form/index.ts +1 -1
  163. package/src/grid/createGridState.d.ts +7 -4
  164. package/src/grid/createGridState.ts +44 -51
  165. package/src/grid/index.d.ts +3 -3
  166. package/src/grid/index.ts +2 -8
  167. package/src/grid/types.d.ts +136 -129
  168. package/src/grid/types.ts +20 -18
  169. package/src/index.d.ts +310 -26
  170. package/src/index.ts +48 -89
  171. package/src/menu/index.ts +2 -4
  172. package/src/numberfield/createNumberFieldState.d.ts +56 -54
  173. package/src/numberfield/createNumberFieldState.ts +26 -31
  174. package/src/numberfield/index.d.ts +6 -2
  175. package/src/numberfield/index.ts +1 -1
  176. package/src/overlays/createOverlayTriggerState.d.ts +22 -20
  177. package/src/overlays/createOverlayTriggerState.ts +3 -4
  178. package/src/overlays/index.d.ts +6 -2
  179. package/src/overlays/index.ts +1 -1
  180. package/src/radio/createRadioGroupState.d.ts +54 -52
  181. package/src/radio/createRadioGroupState.ts +27 -29
  182. package/src/radio/index.d.ts +7 -2
  183. package/src/radio/index.ts +1 -1
  184. package/src/searchfield/createSearchFieldState.d.ts +16 -14
  185. package/src/searchfield/createSearchFieldState.ts +5 -11
  186. package/src/searchfield/index.d.ts +3 -3
  187. package/src/searchfield/index.ts +2 -5
  188. package/src/select/createSelectState.d.ts +63 -61
  189. package/src/select/createSelectState.ts +27 -27
  190. package/src/select/index.d.ts +2 -2
  191. package/src/select/index.ts +1 -5
  192. package/src/selection/index.ts +6 -7
  193. package/src/slider/createSliderState.d.ts +60 -60
  194. package/src/slider/createSliderState.ts +55 -33
  195. package/src/slider/index.d.ts +3 -3
  196. package/src/slider/index.ts +2 -6
  197. package/src/ssr/index.d.ts +1 -1
  198. package/src/ssr/index.ts +2 -2
  199. package/src/steplist/createStepListState.ts +191 -0
  200. package/src/steplist/index.ts +5 -0
  201. package/src/table/TableCollection.d.ts +42 -40
  202. package/src/table/TableCollection.ts +61 -64
  203. package/src/table/createTableColumnResizeState.ts +242 -0
  204. package/src/table/createTableState.d.ts +7 -4
  205. package/src/table/createTableState.ts +10 -7
  206. package/src/table/index.d.ts +14 -4
  207. package/src/table/index.ts +10 -3
  208. package/src/table/types.d.ts +98 -92
  209. package/src/table/types.ts +17 -13
  210. package/src/tabs/createTabListState.d.ts +59 -57
  211. package/src/tabs/createTabListState.ts +24 -31
  212. package/src/tabs/index.d.ts +8 -2
  213. package/src/tabs/index.ts +1 -1
  214. package/src/textfield/createTextFieldState.d.ts +16 -14
  215. package/src/textfield/createTextFieldState.ts +7 -18
  216. package/src/textfield/index.d.ts +6 -2
  217. package/src/textfield/index.ts +1 -1
  218. package/src/toast/createToastState.d.ts +92 -86
  219. package/src/toast/createToastState.ts +48 -43
  220. package/src/toast/index.d.ts +12 -2
  221. package/src/toast/index.ts +1 -1
  222. package/src/toggle/createToggleGroupState.ts +11 -21
  223. package/src/toggle/createToggleState.d.ts +19 -19
  224. package/src/toggle/createToggleState.ts +2 -16
  225. package/src/toggle/index.d.ts +2 -2
  226. package/src/toggle/index.ts +2 -6
  227. package/src/tooltip/createTooltipTriggerState.d.ts +17 -17
  228. package/src/tooltip/createTooltipTriggerState.ts +12 -11
  229. package/src/tooltip/index.d.ts +7 -2
  230. package/src/tooltip/index.ts +1 -1
  231. package/src/tree/TreeCollection.d.ts +26 -23
  232. package/src/tree/TreeCollection.ts +29 -22
  233. package/src/tree/createTreeState.d.ts +7 -4
  234. package/src/tree/createTreeState.ts +39 -41
  235. package/src/tree/index.d.ts +10 -4
  236. package/src/tree/index.ts +3 -3
  237. package/src/tree/types.d.ts +131 -126
  238. package/src/tree/types.ts +22 -13
  239. package/src/utils/index.d.ts +2 -2
  240. package/src/utils/index.ts +1 -1
  241. package/src/utils/reactivity.d.ts +2 -2
  242. package/src/utils/reactivity.ts +3 -3
@@ -5,15 +5,15 @@
5
5
  * ComboBox combines a text input with a dropdown list, allowing users to
6
6
  * either type to filter options or select from a list.
7
7
  */
8
- import { type Accessor } from 'solid-js';
9
- import { type MaybeAccessor } from '../utils';
10
- import type { Key, CollectionNode, Collection, FocusStrategy } from '../collections/types';
11
- export type MenuTriggerAction = 'focus' | 'input' | 'manual';
12
- export type { FocusStrategy } from '../collections/types';
8
+ import { type Accessor } from "solid-js";
9
+ import { type MaybeAccessor } from "../utils";
10
+ import type { Key, CollectionNode, Collection, FocusStrategy } from "../collections/types";
11
+ export type MenuTriggerAction = "focus" | "input" | "manual";
12
+ export type { FocusStrategy } from "../collections/types";
13
13
  export type FilterFn = (textValue: string, inputValue: string) => boolean;
14
14
  export interface ComboBoxStateProps<T = unknown> {
15
15
  /** The items to display in the combobox dropdown. */
16
- items: T[];
16
+ items?: T[];
17
17
  /** Default items when uncontrolled. */
18
18
  defaultItems?: T[];
19
19
  /** Function to get the key for an item. */
@@ -24,12 +24,20 @@ export interface ComboBoxStateProps<T = unknown> {
24
24
  getDisabled?: (item: T) => boolean;
25
25
  /** Keys of disabled items. */
26
26
  disabledKeys?: Iterable<Key>;
27
- /** The currently selected key (controlled). */
27
+ /** The selection mode for the combobox. */
28
+ selectionMode?: "single" | "multiple";
29
+ /** The currently selected key (controlled, single mode). */
28
30
  selectedKey?: Key | null;
29
- /** The default selected key (uncontrolled). */
31
+ /** The default selected key (uncontrolled, single mode). */
30
32
  defaultSelectedKey?: Key | null;
31
- /** Handler called when the selection changes. */
33
+ /** The currently selected keys (controlled, multiple mode). */
34
+ selectedKeys?: Iterable<Key>;
35
+ /** The default selected keys (uncontrolled, multiple mode). */
36
+ defaultSelectedKeys?: Iterable<Key>;
37
+ /** Handler called when the selection changes (single mode). */
32
38
  onSelectionChange?: (key: Key | null) => void;
39
+ /** Handler called when the selection changes (multiple mode). */
40
+ onSelectionChangeMultiple?: (keys: Set<Key>) => void;
33
41
  /** The current input value (controlled). */
34
42
  inputValue?: string;
35
43
  /** The default input value (uncontrolled). */
@@ -70,14 +78,20 @@ export interface ComboBoxState<T = unknown> {
70
78
  close(): void;
71
79
  /** Toggle the combobox dropdown. */
72
80
  toggle(focusStrategy?: FocusStrategy | null, trigger?: MenuTriggerAction): void;
73
- /** The currently selected key. */
81
+ /** The currently selected key (single mode). */
74
82
  readonly selectedKey: Accessor<Key | null>;
75
83
  /** The default selected key. */
76
84
  readonly defaultSelectedKey: Key | null;
77
- /** The currently selected item. */
85
+ /** The currently selected item (single mode). */
78
86
  readonly selectedItem: Accessor<CollectionNode<T> | null>;
79
87
  /** Set the selected key. */
80
88
  setSelectedKey(key: Key | null): void;
89
+ /** The currently selected keys (multiple mode). */
90
+ readonly selectedKeys: Accessor<Set<Key>>;
91
+ /** The currently selected items (multiple mode). */
92
+ readonly selectedItems: Accessor<CollectionNode<T>[]>;
93
+ /** Remove a selected key (multiple mode). */
94
+ removeSelectedKey(key: Key): void;
81
95
  /** The current input value. */
82
96
  readonly inputValue: Accessor<string>;
83
97
  /** The default input value. */
@@ -102,8 +116,8 @@ export interface ComboBoxState<T = unknown> {
102
116
  isKeyDisabled(key: Key): boolean;
103
117
  /** Select a key and close the menu (for ListState compatibility). */
104
118
  select(key: Key): void;
105
- /** The selection mode (always 'single' for combobox). */
106
- readonly selectionMode: Accessor<'single'>;
119
+ /** The selection mode. */
120
+ readonly selectionMode: Accessor<"single" | "multiple">;
107
121
  /** Check if a key is selected. */
108
122
  isSelected(key: Key): boolean;
109
123
  /** Whether the combobox is disabled. */
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * ComboBox state management for Solid Stately.
3
3
  */
4
- export { createComboBoxState, defaultContainsFilter, type ComboBoxState, type ComboBoxStateProps, type FilterFn, type MenuTriggerAction, type FocusStrategy, } from './createComboBoxState';
4
+ export { createComboBoxState, defaultContainsFilter, type ComboBoxState, type ComboBoxStateProps, type FilterFn, type MenuTriggerAction, type FocusStrategy, } from "./createComboBoxState";
@@ -6,13 +6,13 @@
6
6
  * states, pagination, and sorting.
7
7
  */
8
8
  export type Key = string | number;
9
- export type Selection = 'all' | Set<Key>;
10
- export type LoadingState = 'idle' | 'loading' | 'loadingMore' | 'sorting' | 'filtering' | 'error';
9
+ export type Selection = "all" | Set<Key>;
10
+ export type LoadingState = "idle" | "loading" | "loadingMore" | "sorting" | "filtering" | "error";
11
11
  export interface SortDescriptor {
12
12
  /** The key of the column to sort by. */
13
13
  column?: Key;
14
14
  /** The direction to sort by. */
15
- direction?: 'ascending' | 'descending';
15
+ direction?: "ascending" | "descending";
16
16
  }
17
17
  export interface AsyncListLoadOptions<T, C> {
18
18
  /** The items currently in the list. */
@@ -45,7 +45,7 @@ export interface AsyncListStateUpdate<T, C> {
45
45
  export type AsyncListLoadFunction<T, C> = (state: AsyncListLoadOptions<T, C>) => AsyncListStateUpdate<T, C> | Promise<AsyncListStateUpdate<T, C>>;
46
46
  export interface AsyncListOptions<T, C> {
47
47
  /** The keys for the initially selected items. */
48
- initialSelectedKeys?: 'all' | Iterable<Key>;
48
+ initialSelectedKeys?: "all" | Iterable<Key>;
49
49
  /** The initial sort descriptor. */
50
50
  initialSortDescriptor?: SortDescriptor;
51
51
  /** The initial filter text. */
@@ -5,12 +5,12 @@
5
5
  * convenience methods to update the data over time.
6
6
  */
7
7
  export type Key = string | number;
8
- export type Selection = 'all' | Set<Key>;
8
+ export type Selection = "all" | Set<Key>;
9
9
  export interface ListOptions<T> {
10
10
  /** Initial items in the list. */
11
11
  initialItems?: T[];
12
12
  /** The keys for the initially selected items. */
13
- initialSelectedKeys?: 'all' | Iterable<Key>;
13
+ initialSelectedKeys?: "all" | Iterable<Key>;
14
14
  /** The initial text to filter the list by. */
15
15
  initialFilterText?: string;
16
16
  /** A function that returns a unique key for an item object. */
@@ -5,7 +5,7 @@
5
5
  * convenience methods to update the data over time.
6
6
  */
7
7
  export type Key = string | number;
8
- export type Selection = 'all' | Set<Key>;
8
+ export type Selection = "all" | Set<Key>;
9
9
  export interface TreeNode<T> {
10
10
  /** A unique key for the tree node. */
11
11
  key: Key;
@@ -20,7 +20,7 @@ export interface TreeOptions<T> {
20
20
  /** Initial items in the tree. */
21
21
  initialItems?: T[];
22
22
  /** The keys for the initially selected items. */
23
- initialSelectedKeys?: 'all' | Iterable<Key>;
23
+ initialSelectedKeys?: "all" | Iterable<Key>;
24
24
  /** A function that returns a unique key for an item object. */
25
25
  getKey?: (item: T) => Key;
26
26
  /** A function that returns the children of an item object. */
@@ -51,6 +51,10 @@ export interface TreeData<T> {
51
51
  removeSelectedItems(): void;
52
52
  /** Moves an item to a new parent. */
53
53
  move(key: Key, toParentKey: Key | null, index: number): void;
54
+ /** Moves items before a given key. */
55
+ moveBefore(key: Key, keys: Iterable<Key>): void;
56
+ /** Moves items after a given key. */
57
+ moveAfter(key: Key, keys: Iterable<Key>): void;
54
58
  /** Updates an item in the tree. */
55
59
  update(key: Key, newValue: T): void;
56
60
  }
@@ -1,3 +1,3 @@
1
- export { createListData, type ListOptions, type ListData, type Key as ListDataKey, type Selection as ListDataSelection, } from './createListData';
2
- export { createTreeData, type TreeOptions, type TreeData, type TreeNode as TreeDataNode, } from './createTreeData';
3
- export { createAsyncList, type AsyncListOptions, type AsyncListData, type AsyncListLoadFunction, type AsyncListLoadOptions, type AsyncListStateUpdate, type SortDescriptor, type LoadingState, } from './createAsyncList';
1
+ export { createListData, type ListOptions, type ListData, type Key as ListDataKey, type Selection as ListDataSelection, } from "./createListData";
2
+ export { createTreeData, type TreeOptions, type TreeData, type TreeNode as TreeDataNode, } from "./createTreeData";
3
+ export { createAsyncList, type AsyncListOptions, type AsyncListData, type AsyncListLoadFunction, type AsyncListLoadOptions, type AsyncListStateUpdate, type SortDescriptor, type LoadingState, } from "./createAsyncList";
@@ -4,7 +4,5 @@
4
4
  * This is a module-compat shim that maps React Stately datepicker hook names
5
5
  * to existing Solid stately primitives.
6
6
  */
7
- export { createDateFieldState, createTimeFieldState, createRangeCalendarState, type DateFieldStateProps as DateFieldStateOptions, type DateFieldState, type DateSegment, type DateSegmentType as SegmentType, type TimeFieldStateProps as TimeFieldStateOptions, type TimeFieldState, type TimeSegment, type TimeSegmentType, type RangeCalendarStateProps as DateRangePickerStateOptions, type RangeCalendarState as DateRangePickerState, } from '../calendar';
8
- export { createOverlayTriggerState, type OverlayTriggerProps as DatePickerStateOptions, type OverlayTriggerState as DatePickerState, } from '../overlays';
9
- export { createDateFieldState as useDateFieldState, createTimeFieldState as useTimeFieldState, createRangeCalendarState as useDateRangePickerState, } from '../calendar';
10
- export { createOverlayTriggerState as useDatePickerState } from '../overlays';
7
+ export { createDateFieldState, createTimeFieldState, createRangeCalendarState, createDatePickerState, type DateFieldStateProps as DateFieldStateOptions, type DateFieldState, type DateSegment, type DateSegmentType as SegmentType, type TimeFieldStateProps as TimeFieldStateOptions, type TimeFieldState, type TimeSegment, type TimeSegmentType, type RangeCalendarStateProps as DateRangePickerStateOptions, type RangeCalendarState as DateRangePickerState, type DatePickerState, type DatePickerStateOptions, } from "../calendar";
8
+ export { createDateFieldState as useDateFieldState, createTimeFieldState as useTimeFieldState, createRangeCalendarState as useDateRangePickerState, createDatePickerState as useDatePickerState, } from "../calendar";
@@ -2,8 +2,8 @@
2
2
  * Disclosure state management for SolidJS
3
3
  * Based on @react-stately/disclosure useDisclosureState and useDisclosureGroupState
4
4
  */
5
- import { type Accessor } from 'solid-js';
6
- import { type MaybeAccessor } from '../utils';
5
+ import { type Accessor } from "solid-js";
6
+ import { type MaybeAccessor } from "../utils";
7
7
  export interface DisclosureStateProps {
8
8
  /** Whether the disclosure is expanded (controlled). */
9
9
  isExpanded?: boolean;
@@ -1 +1 @@
1
- export { createDisclosureState, createDisclosureGroupState, type DisclosureStateProps, type DisclosureState, type DisclosureGroupStateProps, type DisclosureGroupState, type Key, } from './createDisclosureState';
1
+ export { createDisclosureState, createDisclosureGroupState, type DisclosureStateProps, type DisclosureState, type DisclosureGroupStateProps, type DisclosureGroupState, type Key, } from "./createDisclosureState";
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Provides reactive state for drag operations.
5
5
  */
6
- import { type Accessor } from 'solid-js';
7
- import type { DragItem, DragStartEvent, DragMoveEvent, DragEndEvent, DropOperation, DragPreviewRenderer } from './types';
6
+ import { type Accessor } from "solid-js";
7
+ import type { DragItem, DragStartEvent, DragMoveEvent, DragEndEvent, DropOperation, DragPreviewRenderer } from "./types";
8
8
  export interface DragStateOptions {
9
9
  /** A function that returns the items being dragged. */
10
10
  getItems: () => DragItem[];
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Provides reactive state for dragging items from a collection.
5
5
  */
6
- import { type Accessor } from 'solid-js';
7
- import type { DragItem, DraggableCollectionStartEvent, DraggableCollectionMoveEvent, DraggableCollectionEndEvent, DropOperation, DragPreviewRenderer } from './types';
6
+ import { type Accessor } from "solid-js";
7
+ import type { DragItem, DraggableCollectionStartEvent, DraggableCollectionMoveEvent, DraggableCollectionEndEvent, DropOperation, DragPreviewRenderer } from "./types";
8
8
  export interface DraggableCollectionStateOptions<T = object> {
9
9
  /** A function that returns the items being dragged. */
10
10
  getItems: (keys: Set<string | number>) => DragItem[];
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Provides reactive state for drop target operations.
5
5
  */
6
- import { type Accessor } from 'solid-js';
7
- import type { DropItem, DropEnterEvent, DropMoveEvent, DropExitEvent, DropActivateEvent, DropEvent, DropOperation, DragTypes } from './types';
6
+ import { type Accessor } from "solid-js";
7
+ import type { DropItem, DropEnterEvent, DropMoveEvent, DropExitEvent, DropActivateEvent, DropEvent, DropOperation, DragTypes } from "./types";
8
8
  export interface DropStateOptions {
9
9
  /**
10
10
  * A function returning the drop operation to be performed.
@@ -3,14 +3,14 @@
3
3
  *
4
4
  * Provides reactive state for accepting drops onto a collection.
5
5
  */
6
- import { type Accessor } from 'solid-js';
7
- import type { DropItem, DropTarget, DropOperation, DragTypes, DroppableCollectionEnterEvent, DroppableCollectionActivateEvent, DroppableCollectionExitEvent, DroppableCollectionDropEvent, DroppableCollectionInsertDropEvent, DroppableCollectionRootDropEvent, DroppableCollectionOnItemDropEvent, DroppableCollectionReorderEvent, ItemDropTarget } from './types';
6
+ import { type Accessor } from "solid-js";
7
+ import type { DropItem, DropTarget, DropOperation, DragTypes, DroppableCollectionEnterEvent, DroppableCollectionActivateEvent, DroppableCollectionExitEvent, DroppableCollectionDropEvent, DroppableCollectionInsertDropEvent, DroppableCollectionRootDropEvent, DroppableCollectionOnItemDropEvent, DroppableCollectionReorderEvent, ItemDropTarget } from "./types";
8
8
  export interface DroppableCollectionStateOptions {
9
9
  /**
10
10
  * The drag types that the droppable collection accepts.
11
11
  * @default 'all'
12
12
  */
13
- acceptedDragTypes?: 'all' | Array<string | symbol>;
13
+ acceptedDragTypes?: "all" | Array<string | symbol>;
14
14
  /**
15
15
  * A function returning the drop operation to be performed.
16
16
  */
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * Exports for DnD functionality.
5
5
  */
6
- export type { DropOperation, DragItem, DragDropEvent, DragStartEvent, DragMoveEvent, DragEndEvent, DropEnterEvent, DropMoveEvent, DropActivateEvent, DropExitEvent, TextDropItem, FileDropItem, DirectoryDropItem, DropItem, DropEvent, DropPosition, RootDropTarget, ItemDropTarget, DropTarget, DroppableCollectionEnterEvent, DroppableCollectionMoveEvent, DroppableCollectionActivateEvent, DroppableCollectionExitEvent, DroppableCollectionDropEvent, DroppableCollectionInsertDropEvent, DroppableCollectionRootDropEvent, DroppableCollectionOnItemDropEvent, DroppableCollectionReorderEvent, DragTypes, DropTargetDelegate, DraggableCollectionStartEvent, DraggableCollectionMoveEvent, DraggableCollectionEndEvent, DragPreviewRenderer, DroppableCollectionUtilityOptions, DroppableCollectionBaseProps, DroppableCollectionProps, DraggableCollectionProps, } from './types';
7
- export { createDragState, type DragStateOptions, type DragState, } from './createDragState';
8
- export { createDropState, type DropStateOptions, type DropState, } from './createDropState';
9
- export { createDraggableCollectionState, type DraggableCollectionStateOptions, type DraggableCollectionState, } from './createDraggableCollectionState';
10
- export { createDroppableCollectionState, DIRECTORY_DRAG_TYPE, type DroppableCollectionStateOptions, type DroppableCollectionState, } from './createDroppableCollectionState';
6
+ export type { DropOperation, DragItem, DragDropEvent, DragStartEvent, DragMoveEvent, DragEndEvent, DropEnterEvent, DropMoveEvent, DropActivateEvent, DropExitEvent, TextDropItem, FileDropItem, DirectoryDropItem, DropItem, DropEvent, DropPosition, RootDropTarget, ItemDropTarget, DropTarget, DroppableCollectionEnterEvent, DroppableCollectionMoveEvent, DroppableCollectionActivateEvent, DroppableCollectionExitEvent, DroppableCollectionDropEvent, DroppableCollectionInsertDropEvent, DroppableCollectionRootDropEvent, DroppableCollectionOnItemDropEvent, DroppableCollectionReorderEvent, DragTypes, DropTargetDelegate, DraggableCollectionStartEvent, DraggableCollectionMoveEvent, DraggableCollectionEndEvent, DragPreviewRenderer, DroppableCollectionUtilityOptions, DroppableCollectionBaseProps, DroppableCollectionProps, DraggableCollectionProps, } from "./types";
7
+ export { createDragState, type DragStateOptions, type DragState } from "./createDragState";
8
+ export { createDropState, type DropStateOptions, type DropState } from "./createDropState";
9
+ export { createDraggableCollectionState, type DraggableCollectionStateOptions, type DraggableCollectionState, } from "./createDraggableCollectionState";
10
+ export { createDroppableCollectionState, DIRECTORY_DRAG_TYPE, type DroppableCollectionStateOptions, type DroppableCollectionState, } from "./createDroppableCollectionState";
@@ -4,7 +4,7 @@
4
4
  * Core types for drag and drop operations, matching React Aria's DnD API.
5
5
  */
6
6
  /** The type of drop operation to perform. */
7
- export type DropOperation = 'copy' | 'link' | 'move' | 'cancel';
7
+ export type DropOperation = "copy" | "link" | "move" | "cancel";
8
8
  /** Drag item data as key-value pairs where keys are MIME types or custom types. */
9
9
  export interface DragItem {
10
10
  [type: string]: string;
@@ -19,44 +19,44 @@ export interface DragDropEvent {
19
19
  /** Event fired when a drag operation starts. */
20
20
  export interface DragStartEvent extends DragDropEvent {
21
21
  /** The event type. */
22
- type: 'dragstart';
22
+ type: "dragstart";
23
23
  }
24
24
  /** Event fired as a drag moves. */
25
25
  export interface DragMoveEvent extends DragDropEvent {
26
26
  /** The event type. */
27
- type: 'dragmove';
27
+ type: "dragmove";
28
28
  }
29
29
  /** Event fired when a drag operation ends. */
30
30
  export interface DragEndEvent extends DragDropEvent {
31
31
  /** The event type. */
32
- type: 'dragend';
32
+ type: "dragend";
33
33
  /** The drop operation that occurred. */
34
34
  dropOperation: DropOperation;
35
35
  }
36
36
  /** Event fired when a drag enters a drop target. */
37
37
  export interface DropEnterEvent extends DragDropEvent {
38
38
  /** The event type. */
39
- type: 'dropenter';
39
+ type: "dropenter";
40
40
  }
41
41
  /** Event fired as a drag moves within a drop target. */
42
42
  export interface DropMoveEvent extends DragDropEvent {
43
43
  /** The event type. */
44
- type: 'dropmove';
44
+ type: "dropmove";
45
45
  }
46
46
  /** Event fired when a drag is held over a drop target. */
47
47
  export interface DropActivateEvent extends DragDropEvent {
48
48
  /** The event type. */
49
- type: 'dropactivate';
49
+ type: "dropactivate";
50
50
  }
51
51
  /** Event fired when a drag exits a drop target. */
52
52
  export interface DropExitEvent extends DragDropEvent {
53
53
  /** The event type. */
54
- type: 'dropexit';
54
+ type: "dropexit";
55
55
  }
56
56
  /** A text item in a drop operation. */
57
57
  export interface TextDropItem {
58
58
  /** The item kind. */
59
- kind: 'text';
59
+ kind: "text";
60
60
  /** The drag types available for this item. */
61
61
  types: Set<string>;
62
62
  /** Returns the data for the given type as a string. */
@@ -65,7 +65,7 @@ export interface TextDropItem {
65
65
  /** A file item in a drop operation. */
66
66
  export interface FileDropItem {
67
67
  /** The item kind. */
68
- kind: 'file';
68
+ kind: "file";
69
69
  /** The file type (usually a mime type). */
70
70
  type: string;
71
71
  /** The file name. */
@@ -78,7 +78,7 @@ export interface FileDropItem {
78
78
  /** A directory item in a drop operation. */
79
79
  export interface DirectoryDropItem {
80
80
  /** The item kind. */
81
- kind: 'directory';
81
+ kind: "directory";
82
82
  /** The directory name. */
83
83
  name: string;
84
84
  /** Returns the entries contained within the directory. */
@@ -89,23 +89,23 @@ export type DropItem = TextDropItem | FileDropItem | DirectoryDropItem;
89
89
  /** Event fired when items are dropped. */
90
90
  export interface DropEvent extends DragDropEvent {
91
91
  /** The event type. */
92
- type: 'drop';
92
+ type: "drop";
93
93
  /** The drop operation that should occur. */
94
94
  dropOperation: DropOperation;
95
95
  /** The dropped items. */
96
96
  items: DropItem[];
97
97
  }
98
98
  /** Position relative to an item for drop operations. */
99
- export type DropPosition = 'on' | 'before' | 'after';
99
+ export type DropPosition = "on" | "before" | "after";
100
100
  /** Drop target representing the root of a collection. */
101
101
  export interface RootDropTarget {
102
102
  /** The drop target type. */
103
- type: 'root';
103
+ type: "root";
104
104
  }
105
105
  /** Drop target representing an item in a collection. */
106
106
  export interface ItemDropTarget {
107
107
  /** The drop target type. */
108
- type: 'item';
108
+ type: "item";
109
109
  /** The item key. */
110
110
  key: string | number;
111
111
  /** The drop position relative to the item. */
@@ -214,7 +214,7 @@ export interface DroppableCollectionUtilityOptions {
214
214
  * The drag types that the droppable collection accepts.
215
215
  * @default 'all'
216
216
  */
217
- acceptedDragTypes?: 'all' | Array<string | symbol>;
217
+ acceptedDragTypes?: "all" | Array<string | symbol>;
218
218
  /** Handler that is called when external items are dropped "between" items. */
219
219
  onInsert?: (e: DroppableCollectionInsertDropEvent) => void;
220
220
  /** Handler that is called when external items are dropped on the collection's root. */
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * Port of react-stately's useFormValidationState.
8
8
  */
9
- import { type Accessor } from 'solid-js';
9
+ import { type Accessor } from "solid-js";
10
10
  /** Standard HTML ValidityState interface. */
11
11
  export interface ValidityState {
12
12
  badInput: boolean;
@@ -35,12 +35,12 @@ export type ValidationErrors = Record<string, string | string[]>;
35
35
  /** Validation function that returns error messages or true/false. */
36
36
  export type ValidationFunction<T> = (value: T) => boolean | string | string[] | null | undefined;
37
37
  /** Validation behavior mode. */
38
- export type ValidationBehavior = 'aria' | 'native';
38
+ export type ValidationBehavior = "aria" | "native";
39
39
  export interface FormValidationProps<T> {
40
40
  /** Whether the value is invalid (controlled). */
41
41
  isInvalid?: boolean;
42
42
  /** @deprecated Use isInvalid instead. */
43
- validationState?: 'valid' | 'invalid';
43
+ validationState?: "valid" | "invalid";
44
44
  /** Custom validation function. */
45
45
  validate?: ValidationFunction<T>;
46
46
  /** Validation behavior: 'aria' for realtime, 'native' for on submit. */
@@ -1 +1 @@
1
- export { createFormValidationState, mergeValidation, FormValidationContext, privateValidationStateProp, VALID_VALIDITY_STATE, DEFAULT_VALIDATION_RESULT, type FormValidationState, type FormValidationProps, type ValidationResult, type ValidationErrors, type ValidationFunction, type ValidationBehavior, type ValidityState, } from './createFormValidationState';
1
+ export { createFormValidationState, mergeValidation, FormValidationContext, privateValidationStateProp, VALID_VALIDITY_STATE, DEFAULT_VALIDATION_RESULT, type FormValidationState, type FormValidationProps, type ValidationResult, type ValidationErrors, type ValidationFunction, type ValidationBehavior, type ValidityState, } from "./createFormValidationState";
@@ -2,8 +2,8 @@
2
2
  * Grid state management for Table and GridList components.
3
3
  * Based on @react-stately/grid/useGridState.
4
4
  */
5
- import { type Accessor } from 'solid-js';
6
- import type { GridState, GridStateOptions, GridCollection } from './types';
5
+ import { type Accessor } from "solid-js";
6
+ import type { GridState, GridStateOptions, GridCollection } from "./types";
7
7
  /**
8
8
  * Creates state management for a grid component.
9
9
  * Handles row selection, focus management, and keyboard navigation state.
@@ -2,5 +2,5 @@
2
2
  * Grid state management module.
3
3
  * Provides state hooks for Table and GridList components.
4
4
  */
5
- export { createGridState } from './createGridState';
6
- export type { GridState, GridStateOptions, GridCollection, GridNode, GridNodeType, } from './types';
5
+ export { createGridState } from "./createGridState";
6
+ export type { GridState, GridStateOptions, GridCollection, GridNode, GridNodeType } from "./types";
@@ -2,11 +2,11 @@
2
2
  * Grid collection types for Table and GridList components.
3
3
  * Based on @react-types/grid.
4
4
  */
5
- import type { Key, FocusStrategy } from '../collections/types';
5
+ import type { Key, FocusStrategy } from "../collections/types";
6
6
  /**
7
7
  * Represents the type of a grid node.
8
8
  */
9
- export type GridNodeType = 'item' | 'cell' | 'column' | 'rowheader' | 'headerrow' | 'section' | 'content' | 'placeholder';
9
+ export type GridNodeType = "item" | "cell" | "column" | "rowheader" | "headerrow" | "section" | "content" | "placeholder";
10
10
  /**
11
11
  * Represents a node in a grid collection.
12
12
  */
@@ -38,7 +38,7 @@ export interface GridNode<T = unknown> {
38
38
  /** Whether this item is disabled. */
39
39
  isDisabled?: boolean;
40
40
  /** ARIA label for this node. */
41
- 'aria-label'?: string;
41
+ "aria-label"?: string;
42
42
  /** Additional props for the node. */
43
43
  props?: Record<string, unknown>;
44
44
  /** Column index for cells. */
@@ -108,9 +108,11 @@ export interface GridState<T, C extends GridCollection<T> = GridCollection<T>> {
108
108
  /** Whether the grid is focused. */
109
109
  readonly isFocused: boolean;
110
110
  /** The selection mode. */
111
- readonly selectionMode: 'none' | 'single' | 'multiple';
111
+ readonly selectionMode: "none" | "single" | "multiple";
112
+ /** The selection behavior. */
113
+ readonly selectionBehavior: "toggle" | "replace";
112
114
  /** The currently selected keys. */
113
- readonly selectedKeys: 'all' | Set<Key>;
115
+ readonly selectedKeys: "all" | Set<Key>;
114
116
  /** Check if a key is selected. */
115
117
  isSelected(key: Key): boolean;
116
118
  /** Check if a key is disabled. */
@@ -143,17 +145,17 @@ export interface GridStateOptions<T, C extends GridCollection<T> = GridCollectio
143
145
  /** Keys of disabled rows. */
144
146
  disabledKeys?: Iterable<Key>;
145
147
  /** Focus mode: 'row' or 'cell'. */
146
- focusMode?: 'row' | 'cell';
148
+ focusMode?: "row" | "cell";
147
149
  /** Selection mode. */
148
- selectionMode?: 'none' | 'single' | 'multiple';
150
+ selectionMode?: "none" | "single" | "multiple";
149
151
  /** Selection behavior. */
150
- selectionBehavior?: 'toggle' | 'replace';
152
+ selectionBehavior?: "toggle" | "replace";
151
153
  /** Whether empty selection is disallowed. */
152
154
  disallowEmptySelection?: boolean;
153
155
  /** Currently selected keys (controlled). */
154
- selectedKeys?: 'all' | Iterable<Key>;
156
+ selectedKeys?: "all" | Iterable<Key>;
155
157
  /** Default selected keys (uncontrolled). */
156
- defaultSelectedKeys?: 'all' | Iterable<Key>;
158
+ defaultSelectedKeys?: "all" | Iterable<Key>;
157
159
  /** Handler for selection changes. */
158
- onSelectionChange?: (keys: 'all' | Set<Key>) => void;
160
+ onSelectionChange?: (keys: "all" | Set<Key>) => void;
159
161
  }
package/dist/index.d.ts CHANGED
@@ -1,30 +1,31 @@
1
- export { createToggleState, createToggleGroupState, type ToggleStateOptions, type ToggleState, type ToggleGroupProps, type ToggleGroupState, } from './toggle';
2
- export { createAutocompleteState, type AutocompleteState, type AutocompleteStateOptions, } from './autocomplete';
3
- export { createTextFieldState, type TextFieldStateOptions, type TextFieldState, } from './textfield';
4
- export { createCheckboxGroupState, type CheckboxGroupProps, type CheckboxGroupState, } from './checkbox';
5
- export { createRadioGroupState, radioGroupSyncVersion, type RadioGroupProps, type RadioGroupState, } from './radio';
6
- export { createOverlayTriggerState, type OverlayTriggerProps, type OverlayTriggerState, } from './overlays';
7
- export { type Key, type SelectionMode, type SelectionBehavior, type Selection, type FocusStrategy, type DisabledBehavior, type CollectionNode, type Collection, type ItemProps, type SectionProps, type CollectionBase, type SingleSelection, type MultipleSelection, ListCollection, createListCollection, createSelectionState, type SelectionStateProps, type SelectionState, createListState, createSingleSelectListState, type ListStateProps, type ListState, type SingleSelectListStateProps, type SingleSelectListState, createMenuState, createMenuTriggerState, type MenuStateProps, type MenuState, type MenuTriggerStateProps, type MenuTriggerState, } from './collections';
8
- export { useMultipleSelectionState, type MultipleSelectionStateProps, type MultipleSelectionState, } from './selection';
9
- export { useMenuTriggerState, } from './menu';
10
- export { useDateFieldState, useDatePickerState, useDateRangePickerState, useTimeFieldState, type DateFieldStateOptions, type DatePickerStateOptions, type DateRangePickerStateOptions, type TimeFieldStateOptions, type SegmentType, } from './datepicker';
11
- export { createSelectState, type SelectStateProps, type SelectState, } from './select';
12
- export { createComboBoxState, defaultContainsFilter, type ComboBoxState, type ComboBoxStateProps, type FilterFn, type MenuTriggerAction, } from './combobox';
13
- export { createTabListState, type TabListStateProps, type TabListState, type KeyboardActivation, type TabOrientation, } from './tabs';
14
- export { createNumberFieldState, type NumberFieldStateProps, type NumberFieldState, } from './numberfield';
15
- export { createSearchFieldState, type SearchFieldStateProps, type SearchFieldState, } from './searchfield';
16
- export { createSliderState, type SliderStateProps, type SliderState, type SliderOrientation, } from './slider';
17
- export { createTooltipTriggerState, resetTooltipState, type TooltipTriggerProps, type TooltipTriggerState, } from './tooltip';
18
- export { createToastState, createToastQueue, ToastQueue, Timer, type ToastOptions, type QueuedToast, type ToastQueueOptions, type ToastStateProps, type ToastState, } from './toast';
19
- export { createDisclosureState, createDisclosureGroupState, type DisclosureStateProps, type DisclosureState, type DisclosureGroupStateProps, type DisclosureGroupState, type Key as DisclosureKey, } from './disclosure';
20
- export { createCalendarState, type CalendarStateProps, type CalendarState, type ValidationState, createRangeCalendarState, type RangeCalendarStateProps, type RangeCalendarState, type DateRange, type RangeValue, createDateFieldState, type DateFieldStateProps, type DateFieldState, type DateSegment, type DateSegmentType, createTimeFieldState, type TimeFieldStateProps, type TimeFieldState, type TimeSegment, type TimeSegmentType, type TimeValue, type CalendarDate, type CalendarDateTime, type ZonedDateTime, type DateValue, type Time, today, now, getLocalTimeZone, parseDate, parseDateTime, parseTime, parseAbsolute, parseAbsoluteToLocal, parseZonedDateTime, toCalendarDate, toCalendarDateTime, toZoned, toTime, CalendarDateClass, CalendarDateTimeClass, ZonedDateTimeClass, TimeClass, DateFormatter, isSameDay, isSameMonth, isSameYear, isToday, isWeekend, startOfMonth, endOfMonth, startOfWeek, endOfWeek, startOfYear, endOfYear, getWeeksInMonth, getDayOfWeek, minDate, maxDate, } from './calendar';
21
- export { createGridState, type GridState, type GridStateOptions, type GridCollection, type GridNode, type GridNodeType, } from './grid';
22
- export { createTableState, TableCollection, createTableCollection, type TableState, type TableStateOptions, type ITableCollection, type SortDescriptor, type SortDirection, type Sortable, type ColumnDefinition, type RowDefinition, type TableCollectionOptions, } from './table';
23
- export { createTreeState, TreeCollection, createTreeCollection, type TreeState, type TreeStateOptions, type TreeCollectionInterface, type TreeNode, type TreeItemData, } from './tree';
24
- export { type Color, type ColorFormat, type ColorSpace, type ColorChannel, type ColorChannelRange, type ColorAxes, parseColor, normalizeColor, createRGBColor, createHSLColor, createHSBColor, createColorSliderState, type ColorSliderStateOptions, type ColorSliderState, createColorAreaState, type ColorAreaStateOptions, type ColorAreaState, createColorWheelState, type ColorWheelStateOptions, type ColorWheelState, createColorFieldState, type ColorFieldStateOptions, type ColorFieldState, } from './color';
25
- export { type DropOperation, type DragItem, type DragDropEvent, type DragStartEvent, type DragMoveEvent, type DragEndEvent, type DropEnterEvent, type DropMoveEvent, type DropActivateEvent, type DropExitEvent, type TextDropItem, type FileDropItem, type DirectoryDropItem, type DropItem, type DropEvent, type DropPosition, type RootDropTarget, type ItemDropTarget, type DropTarget, type DroppableCollectionEnterEvent, type DroppableCollectionMoveEvent, type DroppableCollectionActivateEvent, type DroppableCollectionExitEvent, type DroppableCollectionDropEvent, type DroppableCollectionInsertDropEvent, type DroppableCollectionRootDropEvent, type DroppableCollectionOnItemDropEvent, type DroppableCollectionReorderEvent, type DragTypes, type DropTargetDelegate, type DraggableCollectionStartEvent, type DraggableCollectionMoveEvent, type DraggableCollectionEndEvent, type DragPreviewRenderer, type DroppableCollectionUtilityOptions, type DroppableCollectionBaseProps, type DroppableCollectionProps, type DraggableCollectionProps, createDragState, type DragStateOptions, type DragState, createDropState, type DropStateOptions, type DropState, createDraggableCollectionState, type DraggableCollectionStateOptions, type DraggableCollectionState, createDroppableCollectionState, DIRECTORY_DRAG_TYPE, type DroppableCollectionStateOptions, type DroppableCollectionState, } from './dnd';
26
- export { createFormValidationState, mergeValidation, FormValidationContext, privateValidationStateProp, VALID_VALIDITY_STATE, DEFAULT_VALIDATION_RESULT, type FormValidationState, type FormValidationProps, type ValidationResult, type ValidationErrors, type ValidationFunction, type ValidationBehavior, type ValidityState, } from './form';
27
- export { createIsSSR, createId, canUseDOM, isServer } from './ssr';
28
- export { createListData, type ListOptions, type ListData, createTreeData, type TreeOptions, type TreeData, type TreeDataNode, createAsyncList, type AsyncListOptions, type AsyncListData, type AsyncListLoadFunction, type AsyncListLoadOptions, type AsyncListStateUpdate, type LoadingState, } from './data';
29
- export { getColorChannels } from './color/getColorChannels';
30
- export { access, isAccessor, type MaybeAccessor, type MaybeAccessorValue } from './utils';
1
+ export { createToggleState, createToggleGroupState, type ToggleStateOptions, type ToggleState, type ToggleGroupProps, type ToggleGroupState, } from "./toggle";
2
+ export { createAutocompleteState, type AutocompleteState, type AutocompleteStateOptions, } from "./autocomplete";
3
+ export { createTextFieldState, type TextFieldStateOptions, type TextFieldState } from "./textfield";
4
+ export { createCheckboxGroupState, type CheckboxGroupProps, type CheckboxGroupState, } from "./checkbox";
5
+ export { createRadioGroupState, radioGroupSyncVersion, type RadioGroupProps, type RadioGroupState, } from "./radio";
6
+ export { createOverlayTriggerState, type OverlayTriggerProps, type OverlayTriggerState, } from "./overlays";
7
+ export { type Key, type SelectionMode, type SelectionBehavior, type Selection, type FocusStrategy, type DisabledBehavior, type CollectionNode, type Collection, type ItemProps, type SectionProps, type CollectionBase, type SingleSelection, type MultipleSelection, ListCollection, createListCollection, createSelectionState, type SelectionStateProps, type SelectionState, createListState, createSingleSelectListState, type ListStateProps, type ListState, type SingleSelectListStateProps, type SingleSelectListState, createMenuState, createMenuTriggerState, type MenuStateProps, type MenuState, type MenuTriggerStateProps, type MenuTriggerState, } from "./collections";
8
+ export { useMultipleSelectionState, type MultipleSelectionStateProps, type MultipleSelectionState, } from "./selection";
9
+ export { useMenuTriggerState } from "./menu";
10
+ export { useDateFieldState, useDatePickerState, useDateRangePickerState, useTimeFieldState, type DateFieldStateOptions, type DatePickerStateOptions, type DateRangePickerStateOptions, type TimeFieldStateOptions, type SegmentType, } from "./datepicker";
11
+ export { createSelectState, type SelectStateProps, type SelectState } from "./select";
12
+ export { createComboBoxState, defaultContainsFilter, type ComboBoxState, type ComboBoxStateProps, type FilterFn, type MenuTriggerAction, } from "./combobox";
13
+ export { createTabListState, type TabListStateProps, type TabListState, type KeyboardActivation, type TabOrientation, } from "./tabs";
14
+ export { createNumberFieldState, type NumberFieldStateProps, type NumberFieldState, } from "./numberfield";
15
+ export { createSearchFieldState, type SearchFieldStateProps, type SearchFieldState, } from "./searchfield";
16
+ export { createSliderState, type SliderStateProps, type SliderState, type SliderOrientation, } from "./slider";
17
+ export { createTooltipTriggerState, resetTooltipState, type TooltipTriggerProps, type TooltipTriggerState, } from "./tooltip";
18
+ export { createToastState, createToastQueue, ToastQueue, Timer, type ToastOptions, type QueuedToast, type ToastQueueOptions, type ToastStateProps, type ToastState, } from "./toast";
19
+ export { createDisclosureState, createDisclosureGroupState, type DisclosureStateProps, type DisclosureState, type DisclosureGroupStateProps, type DisclosureGroupState, type Key as DisclosureKey, } from "./disclosure";
20
+ export { createCalendarState, type CalendarStateProps, type CalendarState, type ValidationState, type CalendarPageBehavior, type CalendarSelectionAlignment, type CalendarDayOfWeek, createRangeCalendarState, type RangeCalendarStateProps, type RangeCalendarState, type DateRange, type RangeValue, createDateFieldState, type DateFieldStateProps, type DateFieldState, type DateSegment, type DateSegmentType, createTimeFieldState, type TimeFieldStateProps, type TimeFieldState, type TimeSegment, type TimeSegmentType, type TimeValue, createDatePickerState, type DatePickerState, type CalendarDate, type CalendarDateTime, type ZonedDateTime, type DateValue, type Time, type Calendar, type CalendarIdentifier, type AnyCalendarDate, createCalendar, GregorianCalendar, today, now, getLocalTimeZone, parseDate, parseDateTime, parseTime, parseAbsolute, parseAbsoluteToLocal, parseZonedDateTime, toCalendarDate, toCalendarDateTime, toZoned, toTime, CalendarDateClass, CalendarDateTimeClass, ZonedDateTimeClass, TimeClass, DateFormatter, isSameDay, isSameMonth, isSameYear, isToday, isWeekend, startOfMonth, endOfMonth, startOfWeek, endOfWeek, startOfYear, endOfYear, getWeeksInMonth, getDayOfWeek, toCalendar, minDate, maxDate, } from "./calendar";
21
+ export { createGridState, type GridState, type GridStateOptions, type GridCollection, type GridNode, type GridNodeType, } from "./grid";
22
+ export { createTableState, createTableColumnResizeState, TableCollection, createTableCollection, type TableState, type TableStateOptions, type ITableCollection, type SortDescriptor, type SortDirection, type Sortable, type ColumnDefinition, type RowDefinition, type TableCollectionOptions, type ColumnSize, type ColumnResizeDefinition, type TableColumnResizeStateProps, type TableColumnResizeState, } from "./table";
23
+ export { createTreeState, TreeCollection, createTreeCollection, type TreeState, type TreeStateOptions, type TreeCollectionInterface, type TreeNode, type TreeItemData, } from "./tree";
24
+ export { type Color, type ColorFormat, type ColorSpace, type ColorChannel, type ColorChannelRange, type ColorAxes, parseColor, normalizeColor, createRGBColor, createHSLColor, createHSBColor, createColorSliderState, type ColorSliderStateOptions, type ColorSliderState, createColorAreaState, type ColorAreaStateOptions, type ColorAreaState, createColorWheelState, type ColorWheelStateOptions, type ColorWheelState, createColorFieldState, type ColorFieldStateOptions, type ColorFieldState, } from "./color";
25
+ export { type DropOperation, type DragItem, type DragDropEvent, type DragStartEvent, type DragMoveEvent, type DragEndEvent, type DropEnterEvent, type DropMoveEvent, type DropActivateEvent, type DropExitEvent, type TextDropItem, type FileDropItem, type DirectoryDropItem, type DropItem, type DropEvent, type DropPosition, type RootDropTarget, type ItemDropTarget, type DropTarget, type DroppableCollectionEnterEvent, type DroppableCollectionMoveEvent, type DroppableCollectionActivateEvent, type DroppableCollectionExitEvent, type DroppableCollectionDropEvent, type DroppableCollectionInsertDropEvent, type DroppableCollectionRootDropEvent, type DroppableCollectionOnItemDropEvent, type DroppableCollectionReorderEvent, type DragTypes, type DropTargetDelegate, type DraggableCollectionStartEvent, type DraggableCollectionMoveEvent, type DraggableCollectionEndEvent, type DragPreviewRenderer, type DroppableCollectionUtilityOptions, type DroppableCollectionBaseProps, type DroppableCollectionProps, type DraggableCollectionProps, createDragState, type DragStateOptions, type DragState, createDropState, type DropStateOptions, type DropState, createDraggableCollectionState, type DraggableCollectionStateOptions, type DraggableCollectionState, createDroppableCollectionState, DIRECTORY_DRAG_TYPE, type DroppableCollectionStateOptions, type DroppableCollectionState, } from "./dnd";
26
+ export { createFormValidationState, mergeValidation, FormValidationContext, privateValidationStateProp, VALID_VALIDITY_STATE, DEFAULT_VALIDATION_RESULT, type FormValidationState, type FormValidationProps, type ValidationResult, type ValidationErrors, type ValidationFunction, type ValidationBehavior, type ValidityState, } from "./form";
27
+ export { createIsSSR, createId, canUseDOM, isServer } from "./ssr";
28
+ export { createListData, type ListOptions, type ListData, createTreeData, type TreeOptions, type TreeData, type TreeDataNode, createAsyncList, type AsyncListOptions, type AsyncListData, type AsyncListLoadFunction, type AsyncListLoadOptions, type AsyncListStateUpdate, type LoadingState, } from "./data";
29
+ export { getColorChannels } from "./color/getColorChannels";
30
+ export { createStepListState, type StepListStateProps, type StepListState } from "./steplist";
31
+ export { access, isAccessor, type MaybeAccessor, type MaybeAccessorValue } from "./utils";