@proyecto-viviana/solid-stately 0.2.4 → 0.2.7

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 (82) hide show
  1. package/LICENSE +21 -0
  2. package/dist/autocomplete/createAutocompleteState.d.ts +2 -1
  3. package/dist/checkbox/createCheckboxGroupState.d.ts +10 -1
  4. package/dist/collections/types.d.ts +11 -0
  5. package/dist/color/getColorChannels.d.ts +20 -0
  6. package/dist/data/createAsyncList.d.ts +111 -0
  7. package/dist/data/createListData.d.ts +65 -0
  8. package/dist/data/createTreeData.d.ts +61 -0
  9. package/dist/data/index.d.ts +3 -0
  10. package/dist/datepicker/index.d.ts +10 -0
  11. package/dist/grid/types.d.ts +5 -1
  12. package/dist/index.d.ts +6 -1
  13. package/dist/index.js +3737 -2697
  14. package/dist/index.js.map +1 -7
  15. package/dist/menu/index.d.ts +8 -0
  16. package/dist/radio/createRadioGroupState.d.ts +10 -1
  17. package/dist/select/createSelectState.d.ts +17 -0
  18. package/dist/selection/index.d.ts +11 -0
  19. package/dist/toast/createToastState.d.ts +7 -1
  20. package/dist/toggle/createToggleGroupState.d.ts +45 -0
  21. package/dist/toggle/index.d.ts +1 -0
  22. package/dist/tree/TreeCollection.d.ts +3 -2
  23. package/package.json +6 -5
  24. package/src/autocomplete/createAutocompleteState.ts +10 -11
  25. package/src/calendar/createDateFieldState.ts +24 -1
  26. package/src/checkbox/createCheckboxGroupState.ts +42 -6
  27. package/src/collections/ListCollection.ts +152 -146
  28. package/src/collections/createListState.ts +266 -264
  29. package/src/collections/createMenuState.ts +106 -106
  30. package/src/collections/createSelectionState.ts +336 -336
  31. package/src/collections/index.ts +46 -46
  32. package/src/collections/types.ts +181 -169
  33. package/src/color/Color.ts +951 -951
  34. package/src/color/createColorAreaState.ts +293 -293
  35. package/src/color/createColorFieldState.ts +292 -292
  36. package/src/color/createColorSliderState.ts +241 -241
  37. package/src/color/createColorWheelState.ts +211 -211
  38. package/src/color/getColorChannels.ts +34 -0
  39. package/src/color/index.ts +47 -47
  40. package/src/color/types.ts +127 -127
  41. package/src/combobox/createComboBoxState.ts +703 -703
  42. package/src/combobox/index.ts +13 -13
  43. package/src/data/createAsyncList.ts +377 -0
  44. package/src/data/createListData.ts +298 -0
  45. package/src/data/createTreeData.ts +433 -0
  46. package/src/data/index.ts +25 -0
  47. package/src/datepicker/index.ts +36 -0
  48. package/src/disclosure/createDisclosureState.ts +4 -4
  49. package/src/dnd/createDragState.ts +153 -153
  50. package/src/dnd/createDraggableCollectionState.ts +165 -165
  51. package/src/dnd/createDropState.ts +212 -212
  52. package/src/dnd/createDroppableCollectionState.ts +357 -357
  53. package/src/dnd/index.ts +76 -76
  54. package/src/dnd/types.ts +317 -317
  55. package/src/form/createFormValidationState.ts +389 -389
  56. package/src/form/index.ts +15 -15
  57. package/src/grid/types.ts +5 -0
  58. package/src/index.ts +49 -0
  59. package/src/menu/index.ts +19 -0
  60. package/src/numberfield/createNumberFieldState.ts +427 -383
  61. package/src/numberfield/index.ts +5 -5
  62. package/src/overlays/createOverlayTriggerState.ts +67 -67
  63. package/src/overlays/index.ts +5 -5
  64. package/src/radio/createRadioGroupState.ts +44 -6
  65. package/src/searchfield/createSearchFieldState.ts +62 -62
  66. package/src/searchfield/index.ts +5 -5
  67. package/src/select/createSelectState.ts +290 -181
  68. package/src/select/index.ts +5 -5
  69. package/src/selection/index.ts +28 -0
  70. package/src/slider/createSliderState.ts +211 -211
  71. package/src/slider/index.ts +6 -6
  72. package/src/tabs/createTabListState.ts +37 -11
  73. package/src/toast/createToastState.d.ts +6 -1
  74. package/src/toast/createToastState.ts +8 -1
  75. package/src/toggle/createToggleGroupState.ts +127 -0
  76. package/src/toggle/index.ts +6 -0
  77. package/src/tooltip/createTooltipTriggerState.ts +183 -183
  78. package/src/tooltip/index.ts +6 -6
  79. package/src/tree/TreeCollection.ts +208 -175
  80. package/src/tree/createTreeState.ts +392 -392
  81. package/src/tree/index.ts +13 -13
  82. package/src/tree/types.ts +174 -174
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Proyecto Viviana contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -4,6 +4,7 @@
4
4
  * Based on @react-stately/autocomplete useAutocompleteState.
5
5
  */
6
6
  import { type Accessor } from 'solid-js';
7
+ import { type MaybeAccessor } from '../utils';
7
8
  export interface AutocompleteState {
8
9
  /** The current value of the autocomplete input. */
9
10
  inputValue: Accessor<string>;
@@ -42,4 +43,4 @@ export interface AutocompleteStateOptions {
42
43
  * state.setFocusedNodeId('item-1');
43
44
  * ```
44
45
  */
45
- export declare function createAutocompleteState(props?: AutocompleteStateOptions): AutocompleteState;
46
+ export declare function createAutocompleteState(props?: MaybeAccessor<AutocompleteStateOptions>): AutocompleteState;
@@ -8,6 +8,7 @@
8
8
  */
9
9
  import { Accessor } from 'solid-js';
10
10
  import { type MaybeAccessor } from '../utils';
11
+ import { type FormValidationState, type ValidationFunction, type ValidationResult } from '../form';
11
12
  export interface CheckboxGroupProps {
12
13
  /** The current selected values (controlled). */
13
14
  value?: string[];
@@ -35,8 +36,14 @@ export interface CheckboxGroupProps {
35
36
  onBlur?: (e: FocusEvent) => void;
36
37
  /** Handler that is called when the checkbox group's focus status changes. */
37
38
  onFocusChange?: (isFocused: boolean) => void;
39
+ /** Backward-compatible controlled validation state. */
40
+ validationState?: 'valid' | 'invalid';
41
+ /** Custom validation function. */
42
+ validate?: ValidationFunction<readonly string[]>;
43
+ /** Validation behavior for the checkbox group. */
44
+ validationBehavior?: 'aria' | 'native';
38
45
  }
39
- export interface CheckboxGroupState {
46
+ export interface CheckboxGroupState extends Pick<FormValidationState, 'realtimeValidation' | 'displayValidation' | 'updateValidation' | 'resetValidation' | 'commitValidation'> {
40
47
  /** Current selected values. */
41
48
  readonly value: Accessor<readonly string[]>;
42
49
  /** Default selected values. */
@@ -62,6 +69,8 @@ export interface CheckboxGroupState {
62
69
  removeValue(value: string): void;
63
70
  /** Toggles a value in the set of selected values. */
64
71
  toggleValue(value: string): void;
72
+ /** Current display validation result for the group. */
73
+ readonly displayValidation: Accessor<ValidationResult>;
65
74
  }
66
75
  /**
67
76
  * Provides state management for a checkbox group component.
@@ -71,6 +71,17 @@ export interface Collection<T = unknown> extends Iterable<CollectionNode<T>> {
71
71
  /** Get the text value for a key. */
72
72
  getTextValue(key: Key): string;
73
73
  }
74
+ /**
75
+ * Structural shape expected when inferring collection item properties
76
+ * (key, textValue, etc.) from plain objects without explicit getKey/getTextValue/getDisabled.
77
+ */
78
+ export interface CollectionItemLike {
79
+ key?: Key;
80
+ id?: Key;
81
+ textValue?: string;
82
+ label?: string;
83
+ isDisabled?: boolean;
84
+ }
74
85
  /**
75
86
  * Props for items in a collection.
76
87
  */
@@ -0,0 +1,20 @@
1
+ /**
2
+ * getColorChannels - Standalone function to get color channels for a color space.
3
+ *
4
+ * Returns the three channels for a given color space.
5
+ */
6
+ import type { ColorChannel, ColorSpace } from './types';
7
+ /**
8
+ * Returns the color channels for a given color space.
9
+ *
10
+ * @param colorSpace - The color space to get channels for.
11
+ * @returns A tuple of three color channels.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * getColorChannels('rgb') // ['red', 'green', 'blue']
16
+ * getColorChannels('hsl') // ['hue', 'saturation', 'lightness']
17
+ * getColorChannels('hsb') // ['hue', 'saturation', 'brightness']
18
+ * ```
19
+ */
20
+ export declare function getColorChannels(colorSpace: ColorSpace): [ColorChannel, ColorChannel, ColorChannel];
@@ -0,0 +1,111 @@
1
+ /**
2
+ * createAsyncList - SolidJS port of React Spectrum's useAsyncList
3
+ *
4
+ * Manages state for an immutable async loaded list data structure, and provides
5
+ * convenience methods to update the data over time. Manages loading and error
6
+ * states, pagination, and sorting.
7
+ */
8
+ export type Key = string | number;
9
+ export type Selection = 'all' | Set<Key>;
10
+ export type LoadingState = 'idle' | 'loading' | 'loadingMore' | 'sorting' | 'filtering' | 'error';
11
+ export interface SortDescriptor {
12
+ /** The key of the column to sort by. */
13
+ column?: Key;
14
+ /** The direction to sort by. */
15
+ direction?: 'ascending' | 'descending';
16
+ }
17
+ export interface AsyncListLoadOptions<T, C> {
18
+ /** The items currently in the list. */
19
+ items: T[];
20
+ /** The keys of the currently selected items in the list. */
21
+ selectedKeys: Selection;
22
+ /** The current sort descriptor for the list. */
23
+ sortDescriptor?: SortDescriptor;
24
+ /** An abort signal used to notify the load function that the request has been aborted. */
25
+ signal: AbortSignal;
26
+ /** The pagination cursor returned from the last page load. */
27
+ cursor?: C;
28
+ /** The current filter text used to perform server side filtering. */
29
+ filterText?: string;
30
+ /** The current loading state of the list. */
31
+ loadingState?: LoadingState;
32
+ }
33
+ export interface AsyncListStateUpdate<T, C> {
34
+ /** The new items to append to the list. */
35
+ items: Iterable<T>;
36
+ /** The keys to add to the selection. */
37
+ selectedKeys?: Iterable<Key>;
38
+ /** The sort descriptor to set. */
39
+ sortDescriptor?: SortDescriptor;
40
+ /** The pagination cursor to be used for the next page load. */
41
+ cursor?: C;
42
+ /** The updated filter text for the list. */
43
+ filterText?: string;
44
+ }
45
+ export type AsyncListLoadFunction<T, C> = (state: AsyncListLoadOptions<T, C>) => AsyncListStateUpdate<T, C> | Promise<AsyncListStateUpdate<T, C>>;
46
+ export interface AsyncListOptions<T, C> {
47
+ /** The keys for the initially selected items. */
48
+ initialSelectedKeys?: 'all' | Iterable<Key>;
49
+ /** The initial sort descriptor. */
50
+ initialSortDescriptor?: SortDescriptor;
51
+ /** The initial filter text. */
52
+ initialFilterText?: string;
53
+ /** A function that returns a unique key for an item object. */
54
+ getKey?: (item: T) => Key;
55
+ /** A function that loads the data for the items in the list. */
56
+ load: AsyncListLoadFunction<T, C>;
57
+ /** An optional function that performs sorting. */
58
+ sort?: AsyncListLoadFunction<T, C>;
59
+ }
60
+ export interface AsyncListData<T> {
61
+ /** The items in the list. */
62
+ readonly items: T[];
63
+ /** The keys of the currently selected items in the list. */
64
+ readonly selectedKeys: Selection;
65
+ /** The current sort descriptor for the list. */
66
+ readonly sortDescriptor: SortDescriptor | undefined;
67
+ /** Whether data is currently being loaded. */
68
+ readonly isLoading: boolean;
69
+ /** If loading data failed, then this contains the error that occurred. */
70
+ readonly error: Error | undefined;
71
+ /** The current filter text. */
72
+ readonly filterText: string;
73
+ /** The current loading state for the list. */
74
+ readonly loadingState: LoadingState;
75
+ /** Reloads the data in the list. */
76
+ reload(): void;
77
+ /** Loads the next page of data in the list. */
78
+ loadMore(): void;
79
+ /** Triggers sorting for the list. */
80
+ sort(descriptor: SortDescriptor): void;
81
+ /** Sets the selected keys. */
82
+ setSelectedKeys(keys: Selection): void;
83
+ /** Sets the filter text. */
84
+ setFilterText(filterText: string): void;
85
+ /** Gets an item from the list by key. */
86
+ getItem(key: Key): T | undefined;
87
+ /** Inserts items into the list at the given index. */
88
+ insert(index: number, ...values: T[]): void;
89
+ /** Inserts items before a given key. */
90
+ insertBefore(key: Key, ...values: T[]): void;
91
+ /** Inserts items after a given key. */
92
+ insertAfter(key: Key, ...values: T[]): void;
93
+ /** Appends items to the list. */
94
+ append(...values: T[]): void;
95
+ /** Prepends items to the list. */
96
+ prepend(...values: T[]): void;
97
+ /** Removes items from the list by their keys. */
98
+ remove(...keys: Key[]): void;
99
+ /** Removes all items from the list that are currently in the set of selected items. */
100
+ removeSelectedItems(): void;
101
+ /** Moves an item within the list. */
102
+ move(key: Key, toIndex: number): void;
103
+ /** Updates an item in the list. */
104
+ update(key: Key, newValue: T): void;
105
+ }
106
+ /**
107
+ * Manages state for an immutable async loaded list data structure, and provides
108
+ * convenience methods to update the data over time. Manages loading and error
109
+ * states, pagination, and sorting.
110
+ */
111
+ export declare function createAsyncList<T, C = string>(options: AsyncListOptions<T, C>): AsyncListData<T>;
@@ -0,0 +1,65 @@
1
+ /**
2
+ * createListData - SolidJS port of React Spectrum's useListData
3
+ *
4
+ * Manages state for an immutable list data structure, and provides
5
+ * convenience methods to update the data over time.
6
+ */
7
+ export type Key = string | number;
8
+ export type Selection = 'all' | Set<Key>;
9
+ export interface ListOptions<T> {
10
+ /** Initial items in the list. */
11
+ initialItems?: T[];
12
+ /** The keys for the initially selected items. */
13
+ initialSelectedKeys?: 'all' | Iterable<Key>;
14
+ /** The initial text to filter the list by. */
15
+ initialFilterText?: string;
16
+ /** A function that returns a unique key for an item object. */
17
+ getKey?: (item: T) => Key;
18
+ /** A function that returns whether an item matches the current filter text. */
19
+ filter?: (item: T, filterText: string) => boolean;
20
+ }
21
+ export interface ListData<T> {
22
+ /** The items in the list. */
23
+ readonly items: T[];
24
+ /** The keys of the currently selected items in the list. */
25
+ readonly selectedKeys: Selection;
26
+ /** The current filter text. */
27
+ readonly filterText: string;
28
+ /** Sets the selected keys. */
29
+ setSelectedKeys(keys: Selection): void;
30
+ /** Adds the given keys to the current selected keys. */
31
+ addKeysToSelection(keys: Selection): void;
32
+ /** Removes the given keys from the current selected keys. */
33
+ removeKeysFromSelection(keys: Selection): void;
34
+ /** Sets the filter text. */
35
+ setFilterText(filterText: string): void;
36
+ /** Gets an item from the list by key. */
37
+ getItem(key: Key): T | undefined;
38
+ /** Inserts items into the list at the given index. */
39
+ insert(index: number, ...values: T[]): void;
40
+ /** Inserts items into the list before the item at the given key. */
41
+ insertBefore(key: Key, ...values: T[]): void;
42
+ /** Inserts items into the list after the item at the given key. */
43
+ insertAfter(key: Key, ...values: T[]): void;
44
+ /** Appends items to the list. */
45
+ append(...values: T[]): void;
46
+ /** Prepends items to the list. */
47
+ prepend(...values: T[]): void;
48
+ /** Removes items from the list by their keys. */
49
+ remove(...keys: Key[]): void;
50
+ /** Removes all items from the list that are currently in the set of selected items. */
51
+ removeSelectedItems(): void;
52
+ /** Moves an item within the list. */
53
+ move(key: Key, toIndex: number): void;
54
+ /** Moves one or more items before a given key. */
55
+ moveBefore(key: Key, keys: Iterable<Key>): void;
56
+ /** Moves one or more items after a given key. */
57
+ moveAfter(key: Key, keys: Iterable<Key>): void;
58
+ /** Updates an item in the list. */
59
+ update(key: Key, newValue: T | ((prev: T) => T)): void;
60
+ }
61
+ /**
62
+ * Manages state for an immutable list data structure, and provides
63
+ * convenience methods to update the data over time.
64
+ */
65
+ export declare function createListData<T>(options: ListOptions<T>): ListData<T>;
@@ -0,0 +1,61 @@
1
+ /**
2
+ * createTreeData - SolidJS port of React Spectrum's useTreeData
3
+ *
4
+ * Manages state for an immutable tree data structure, and provides
5
+ * convenience methods to update the data over time.
6
+ */
7
+ export type Key = string | number;
8
+ export type Selection = 'all' | Set<Key>;
9
+ export interface TreeNode<T> {
10
+ /** A unique key for the tree node. */
11
+ key: Key;
12
+ /** The key of the parent node. */
13
+ parentKey: Key | null;
14
+ /** The value object for the tree node. */
15
+ value: T;
16
+ /** The children of this node. */
17
+ children: TreeNode<T>[] | null;
18
+ }
19
+ export interface TreeOptions<T> {
20
+ /** Initial items in the tree. */
21
+ initialItems?: T[];
22
+ /** The keys for the initially selected items. */
23
+ initialSelectedKeys?: 'all' | Iterable<Key>;
24
+ /** A function that returns a unique key for an item object. */
25
+ getKey?: (item: T) => Key;
26
+ /** A function that returns the children of an item object. */
27
+ getChildren?: (item: T) => T[];
28
+ }
29
+ export interface TreeData<T> {
30
+ /** The root items in the tree. */
31
+ readonly items: TreeNode<T>[];
32
+ /** The keys of the currently selected items in the tree. */
33
+ readonly selectedKeys: Selection;
34
+ /** Sets the selected keys. */
35
+ setSelectedKeys(keys: Selection): void;
36
+ /** Gets an item from the tree by key. */
37
+ getItem(key: Key): TreeNode<T> | undefined;
38
+ /** Inserts items into the tree. */
39
+ insert(parentKey: Key | null, index: number, ...values: T[]): void;
40
+ /** Inserts items before a given key. */
41
+ insertBefore(key: Key, ...values: T[]): void;
42
+ /** Inserts items after a given key. */
43
+ insertAfter(key: Key, ...values: T[]): void;
44
+ /** Appends items to a parent node. */
45
+ append(parentKey: Key | null, ...values: T[]): void;
46
+ /** Prepends items to a parent node. */
47
+ prepend(parentKey: Key | null, ...values: T[]): void;
48
+ /** Removes items from the tree by their keys. */
49
+ remove(...keys: Key[]): void;
50
+ /** Removes all items from the tree that are currently in the set of selected items. */
51
+ removeSelectedItems(): void;
52
+ /** Moves an item to a new parent. */
53
+ move(key: Key, toParentKey: Key | null, index: number): void;
54
+ /** Updates an item in the tree. */
55
+ update(key: Key, newValue: T): void;
56
+ }
57
+ /**
58
+ * Manages state for an immutable tree data structure, and provides
59
+ * convenience methods to update the data over time.
60
+ */
61
+ export declare function createTreeData<T>(options: TreeOptions<T>): TreeData<T>;
@@ -0,0 +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';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Datepicker compatibility surface.
3
+ *
4
+ * This is a module-compat shim that maps React Stately datepicker hook names
5
+ * to existing Solid stately primitives.
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';
@@ -6,7 +6,7 @@ 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' | '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
  */
@@ -27,6 +27,10 @@ export interface GridNode<T = unknown> {
27
27
  index: number;
28
28
  /** The key of the parent node, if any. */
29
29
  parentKey?: Key | null;
30
+ /** Previous sibling key (visible order). */
31
+ prevKey?: Key | null;
32
+ /** Next sibling key (visible order). */
33
+ nextKey?: Key | null;
30
34
  /** Whether this node has child nodes. */
31
35
  hasChildNodes: boolean;
32
36
  /** Child nodes (cells for rows, rows for sections). */
package/dist/index.d.ts CHANGED
@@ -1,10 +1,13 @@
1
- export { createToggleState, type ToggleStateOptions, type ToggleState, } from './toggle';
1
+ export { createToggleState, createToggleGroupState, type ToggleStateOptions, type ToggleState, type ToggleGroupProps, type ToggleGroupState, } from './toggle';
2
2
  export { createAutocompleteState, type AutocompleteState, type AutocompleteStateOptions, } from './autocomplete';
3
3
  export { createTextFieldState, type TextFieldStateOptions, type TextFieldState, } from './textfield';
4
4
  export { createCheckboxGroupState, type CheckboxGroupProps, type CheckboxGroupState, } from './checkbox';
5
5
  export { createRadioGroupState, radioGroupSyncVersion, type RadioGroupProps, type RadioGroupState, } from './radio';
6
6
  export { createOverlayTriggerState, type OverlayTriggerProps, type OverlayTriggerState, } from './overlays';
7
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';
8
11
  export { createSelectState, type SelectStateProps, type SelectState, } from './select';
9
12
  export { createComboBoxState, defaultContainsFilter, type ComboBoxState, type ComboBoxStateProps, type FilterFn, type MenuTriggerAction, } from './combobox';
10
13
  export { createTabListState, type TabListStateProps, type TabListState, type KeyboardActivation, type TabOrientation, } from './tabs';
@@ -22,4 +25,6 @@ export { type Color, type ColorFormat, type ColorSpace, type ColorChannel, type
22
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';
23
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';
24
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';
25
30
  export { access, isAccessor, type MaybeAccessor, type MaybeAccessorValue } from './utils';