@proyecto-viviana/solid-stately 0.2.7 → 0.4.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.
- package/README.md +30 -283
- package/dist/autocomplete/createAutocompleteState.d.ts +2 -2
- package/dist/autocomplete/index.d.ts +1 -1
- package/dist/calendar/IncompleteDate.d.ts +61 -0
- package/dist/calendar/createCalendarState.d.ts +41 -16
- package/dist/calendar/createDateFieldState.d.ts +39 -9
- package/dist/calendar/createDatePickerState.d.ts +60 -0
- package/dist/calendar/createRangeCalendarState.d.ts +37 -10
- package/dist/calendar/createTimeFieldState.d.ts +34 -7
- package/dist/calendar/index.d.ts +7 -6
- package/dist/checkbox/createCheckboxGroupState.d.ts +6 -6
- package/dist/checkbox/index.d.ts +1 -1
- package/dist/collections/ListCollection.d.ts +1 -1
- package/dist/collections/createListState.d.ts +11 -8
- package/dist/collections/createMenuState.d.ts +7 -7
- package/dist/collections/createSelectionState.d.ts +22 -10
- package/dist/collections/getChildNodes.d.ts +11 -0
- package/dist/collections/index.d.ts +6 -5
- package/dist/collections/types.d.ts +12 -12
- package/dist/color/Color.d.ts +1 -1
- package/dist/color/createColorAreaState.d.ts +4 -2
- package/dist/color/createColorFieldState.d.ts +38 -12
- package/dist/color/createColorSliderState.d.ts +9 -2
- package/dist/color/createColorWheelState.d.ts +13 -2
- package/dist/color/getColorChannels.d.ts +1 -1
- package/dist/color/index.d.ts +6 -6
- package/dist/color/types.d.ts +4 -4
- package/dist/combobox/createComboBoxState.d.ts +34 -13
- package/dist/combobox/index.d.ts +1 -1
- package/dist/data/createAsyncList.d.ts +4 -4
- package/dist/data/createListData.d.ts +2 -2
- package/dist/data/createTreeData.d.ts +6 -2
- package/dist/data/index.d.ts +3 -3
- package/dist/datepicker/index.d.ts +2 -4
- package/dist/disclosure/createDisclosureState.d.ts +2 -2
- package/dist/disclosure/index.d.ts +1 -1
- package/dist/dnd/createDragState.d.ts +2 -2
- package/dist/dnd/createDraggableCollectionState.d.ts +2 -2
- package/dist/dnd/createDropState.d.ts +2 -2
- package/dist/dnd/createDroppableCollectionState.d.ts +3 -3
- package/dist/dnd/index.d.ts +5 -5
- package/dist/dnd/types.d.ts +19 -17
- package/dist/form/createFormValidationState.d.ts +3 -3
- package/dist/form/index.d.ts +1 -1
- package/dist/grid/createGridState.d.ts +2 -2
- package/dist/grid/index.d.ts +2 -2
- package/dist/grid/types.d.ts +27 -11
- package/dist/index.d.ts +31 -30
- package/dist/index.js +9077 -7246
- package/dist/index.js.map +1 -1
- package/dist/menu/index.d.ts +2 -2
- package/dist/numberfield/createNumberFieldState.d.ts +2 -2
- package/dist/numberfield/index.d.ts +1 -1
- package/dist/overlays/createOverlayTriggerState.d.ts +2 -2
- package/dist/overlays/index.d.ts +1 -1
- package/dist/radio/createRadioGroupState.d.ts +7 -7
- package/dist/radio/index.d.ts +1 -1
- package/dist/searchfield/createSearchFieldState.d.ts +2 -2
- package/dist/searchfield/index.d.ts +2 -2
- package/dist/select/createSelectState.d.ts +14 -8
- package/dist/select/index.d.ts +1 -1
- package/dist/selection/Selection.d.ts +16 -0
- package/dist/selection/SelectionManager.d.ts +110 -0
- package/dist/selection/createMultipleSelectionState.d.ts +59 -0
- package/dist/selection/index.d.ts +6 -5
- package/dist/slider/createSliderState.d.ts +3 -3
- package/dist/slider/index.d.ts +2 -2
- package/dist/steplist/createStepListState.d.ts +48 -0
- package/dist/steplist/index.d.ts +1 -0
- package/dist/table/TableCollection.d.ts +33 -3
- package/dist/table/createTableColumnResizeState.d.ts +54 -0
- package/dist/table/createTableState.d.ts +2 -2
- package/dist/table/createTreeGridState.d.ts +15 -0
- package/dist/table/index.d.ts +6 -3
- package/dist/table/types.d.ts +68 -10
- package/dist/tabs/createTabListState.d.ts +5 -5
- package/dist/tabs/index.d.ts +1 -1
- package/dist/textfield/createTextFieldState.d.ts +2 -2
- package/dist/textfield/index.d.ts +1 -1
- package/dist/toast/createToastState.d.ts +24 -2
- package/dist/toast/index.d.ts +1 -1
- package/dist/toggle/createToggleGroupState.d.ts +4 -4
- package/dist/toggle/createToggleState.d.ts +2 -2
- package/dist/toggle/index.d.ts +2 -2
- package/dist/tooltip/createTooltipTriggerState.d.ts +2 -2
- package/dist/tooltip/index.d.ts +1 -1
- package/dist/tree/TreeCollection.d.ts +2 -2
- package/dist/tree/createTreeState.d.ts +2 -2
- package/dist/tree/index.d.ts +3 -3
- package/dist/tree/types.d.ts +27 -13
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/reactivity.d.ts +1 -1
- package/package.json +29 -30
- package/src/autocomplete/createAutocompleteState.d.ts +19 -17
- package/src/autocomplete/createAutocompleteState.ts +24 -30
- package/src/autocomplete/index.d.ts +6 -2
- package/src/autocomplete/index.ts +1 -1
- package/src/calendar/IncompleteDate.ts +430 -0
- package/src/calendar/createCalendarState.d.ts +139 -117
- package/src/calendar/createCalendarState.ts +308 -94
- package/src/calendar/createDateFieldState.d.ts +130 -95
- package/src/calendar/createDateFieldState.ts +447 -334
- package/src/calendar/createDatePickerState.ts +347 -0
- package/src/calendar/createRangeCalendarState.d.ts +154 -129
- package/src/calendar/createRangeCalendarState.ts +411 -85
- package/src/calendar/createTimeFieldState.d.ts +81 -79
- package/src/calendar/createTimeFieldState.ts +187 -108
- package/src/calendar/index.d.ts +80 -7
- package/src/calendar/index.ts +23 -12
- package/src/checkbox/createCheckboxGroupState.d.ts +57 -55
- package/src/checkbox/createCheckboxGroupState.ts +20 -29
- package/src/checkbox/index.d.ts +6 -2
- package/src/checkbox/index.ts +1 -1
- package/src/collections/ListCollection.d.ts +25 -22
- package/src/collections/ListCollection.ts +6 -6
- package/src/collections/createListState.d.ts +73 -58
- package/src/collections/createListState.ts +67 -35
- package/src/collections/createMenuState.d.ts +36 -31
- package/src/collections/createMenuState.ts +21 -12
- package/src/collections/createSelectionState.d.ts +78 -65
- package/src/collections/createSelectionState.ts +66 -52
- package/src/collections/getChildNodes.ts +98 -0
- package/src/collections/index.d.ts +38 -6
- package/src/collections/index.ts +14 -10
- package/src/collections/types.d.ts +101 -101
- package/src/collections/types.ts +12 -12
- package/src/color/Color.d.ts +20 -5
- package/src/color/Color.ts +357 -254
- package/src/color/createColorAreaState.d.ts +67 -65
- package/src/color/createColorAreaState.ts +21 -13
- package/src/color/createColorFieldState.d.ts +46 -44
- package/src/color/createColorFieldState.ts +285 -149
- package/src/color/createColorSliderState.d.ts +58 -56
- package/src/color/createColorSliderState.ts +45 -14
- package/src/color/createColorWheelState.d.ts +42 -40
- package/src/color/createColorWheelState.ts +101 -64
- package/src/color/getColorChannels.ts +7 -5
- package/src/color/index.d.ts +36 -7
- package/src/color/index.ts +6 -9
- package/src/color/types.d.ts +68 -63
- package/src/color/types.ts +11 -19
- package/src/combobox/createComboBoxState.d.ts +107 -105
- package/src/combobox/createComboBoxState.ts +184 -89
- package/src/combobox/index.d.ts +10 -2
- package/src/combobox/index.ts +1 -1
- package/src/data/createAsyncList.ts +89 -63
- package/src/data/createListData.ts +67 -67
- package/src/data/createTreeData.ts +304 -91
- package/src/data/index.ts +3 -3
- package/src/datepicker/index.ts +6 -10
- package/src/disclosure/createDisclosureState.d.ts +47 -43
- package/src/disclosure/createDisclosureState.ts +7 -21
- package/src/disclosure/index.d.ts +10 -2
- package/src/disclosure/index.ts +1 -1
- package/src/dnd/createDragState.d.ts +51 -42
- package/src/dnd/createDragState.ts +12 -14
- package/src/dnd/createDraggableCollectionState.d.ts +52 -41
- package/src/dnd/createDraggableCollectionState.ts +14 -21
- package/src/dnd/createDropState.d.ts +64 -45
- package/src/dnd/createDropState.ts +22 -32
- package/src/dnd/createDroppableCollectionState.d.ts +88 -59
- package/src/dnd/createDroppableCollectionState.ts +40 -43
- package/src/dnd/index.d.ts +55 -6
- package/src/dnd/index.ts +6 -18
- package/src/dnd/types.d.ts +170 -157
- package/src/dnd/types.ts +24 -22
- package/src/form/createFormValidationState.d.ts +47 -45
- package/src/form/createFormValidationState.ts +30 -63
- package/src/form/index.d.ts +16 -2
- package/src/form/index.ts +1 -1
- package/src/grid/createGridState.d.ts +7 -4
- package/src/grid/createGridState.ts +78 -51
- package/src/grid/index.d.ts +3 -3
- package/src/grid/index.ts +2 -8
- package/src/grid/types.d.ts +136 -129
- package/src/grid/types.ts +34 -18
- package/src/index.d.ts +311 -26
- package/src/index.ts +59 -89
- package/src/menu/index.ts +2 -4
- package/src/numberfield/createNumberFieldState.d.ts +56 -54
- package/src/numberfield/createNumberFieldState.ts +26 -31
- package/src/numberfield/index.d.ts +6 -2
- package/src/numberfield/index.ts +1 -1
- package/src/overlays/createOverlayTriggerState.d.ts +22 -20
- package/src/overlays/createOverlayTriggerState.ts +3 -4
- package/src/overlays/index.d.ts +6 -2
- package/src/overlays/index.ts +1 -1
- package/src/radio/createRadioGroupState.d.ts +54 -52
- package/src/radio/createRadioGroupState.ts +27 -29
- package/src/radio/index.d.ts +7 -2
- package/src/radio/index.ts +1 -1
- package/src/searchfield/createSearchFieldState.d.ts +16 -14
- package/src/searchfield/createSearchFieldState.ts +5 -11
- package/src/searchfield/index.d.ts +3 -3
- package/src/searchfield/index.ts +2 -5
- package/src/select/createSelectState.d.ts +63 -61
- package/src/select/createSelectState.ts +42 -29
- package/src/select/index.d.ts +2 -2
- package/src/select/index.ts +1 -5
- package/src/selection/Selection.ts +28 -0
- package/src/selection/SelectionManager.ts +526 -0
- package/src/selection/createMultipleSelectionState.ts +247 -0
- package/src/selection/index.ts +12 -7
- package/src/slider/createSliderState.d.ts +60 -60
- package/src/slider/createSliderState.ts +55 -33
- package/src/slider/index.d.ts +3 -3
- package/src/slider/index.ts +2 -6
- package/src/ssr/index.d.ts +1 -1
- package/src/ssr/index.ts +2 -2
- package/src/steplist/createStepListState.ts +191 -0
- package/src/steplist/index.ts +5 -0
- package/src/table/TableCollection.d.ts +42 -40
- package/src/table/TableCollection.ts +266 -99
- package/src/table/createTableColumnResizeState.ts +242 -0
- package/src/table/createTableState.d.ts +7 -4
- package/src/table/createTableState.ts +30 -7
- package/src/table/createTreeGridState.ts +146 -0
- package/src/table/index.d.ts +14 -4
- package/src/table/index.ts +13 -3
- package/src/table/types.d.ts +98 -92
- package/src/table/types.ts +83 -13
- package/src/tabs/createTabListState.d.ts +59 -57
- package/src/tabs/createTabListState.ts +34 -39
- package/src/tabs/index.d.ts +8 -2
- package/src/tabs/index.ts +1 -1
- package/src/textfield/createTextFieldState.d.ts +16 -14
- package/src/textfield/createTextFieldState.ts +7 -18
- package/src/textfield/index.d.ts +6 -2
- package/src/textfield/index.ts +1 -1
- package/src/toast/createToastState.d.ts +92 -86
- package/src/toast/createToastState.ts +90 -52
- package/src/toast/index.d.ts +12 -2
- package/src/toast/index.ts +2 -1
- package/src/toggle/createToggleGroupState.ts +11 -21
- package/src/toggle/createToggleState.d.ts +19 -19
- package/src/toggle/createToggleState.ts +2 -16
- package/src/toggle/index.d.ts +2 -2
- package/src/toggle/index.ts +2 -6
- package/src/tooltip/createTooltipTriggerState.d.ts +17 -17
- package/src/tooltip/createTooltipTriggerState.ts +12 -11
- package/src/tooltip/index.d.ts +7 -2
- package/src/tooltip/index.ts +1 -1
- package/src/tree/TreeCollection.d.ts +26 -23
- package/src/tree/TreeCollection.ts +29 -22
- package/src/tree/createTreeState.d.ts +7 -4
- package/src/tree/createTreeState.ts +70 -41
- package/src/tree/index.d.ts +10 -4
- package/src/tree/index.ts +3 -3
- package/src/tree/types.d.ts +131 -126
- package/src/tree/types.ts +30 -13
- package/src/utils/index.d.ts +2 -2
- package/src/utils/index.ts +1 -1
- package/src/utils/reactivity.d.ts +2 -2
- package/src/utils/reactivity.ts +3 -3
package/src/grid/types.ts
CHANGED
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
* Based on @react-types/grid.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type { Key, FocusStrategy } from
|
|
6
|
+
import type { Key, FocusStrategy, Selection, SelectionBehavior } from "../collections/types";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Represents the type of a grid node.
|
|
10
10
|
*/
|
|
11
11
|
export type GridNodeType =
|
|
12
|
-
|
|
|
13
|
-
|
|
|
14
|
-
|
|
|
15
|
-
|
|
|
16
|
-
|
|
|
17
|
-
|
|
|
18
|
-
|
|
|
19
|
-
|
|
|
12
|
+
| "item" // A selectable row
|
|
13
|
+
| "cell" // A cell within a row
|
|
14
|
+
| "column" // A column header
|
|
15
|
+
| "rowheader" // A cell that acts as a row header
|
|
16
|
+
| "headerrow" // A header row container
|
|
17
|
+
| "section" // A section/group
|
|
18
|
+
| "content" // A collection content placeholder
|
|
19
|
+
| "placeholder"; // A placeholder (e.g., empty row)
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Represents a node in a grid collection.
|
|
@@ -42,6 +42,10 @@ export interface GridNode<T = unknown> {
|
|
|
42
42
|
prevKey?: Key | null;
|
|
43
43
|
/** Next sibling key (visible order). */
|
|
44
44
|
nextKey?: Key | null;
|
|
45
|
+
/** Key of the first child node, if any (used by tree grids). */
|
|
46
|
+
firstChildKey?: Key | null;
|
|
47
|
+
/** Key of the last child node, if any (used by tree grids). */
|
|
48
|
+
lastChildKey?: Key | null;
|
|
45
49
|
/** Whether this node has child nodes. */
|
|
46
50
|
hasChildNodes: boolean;
|
|
47
51
|
/** Child nodes (cells for rows, rows for sections). */
|
|
@@ -49,7 +53,7 @@ export interface GridNode<T = unknown> {
|
|
|
49
53
|
/** Whether this item is disabled. */
|
|
50
54
|
isDisabled?: boolean;
|
|
51
55
|
/** ARIA label for this node. */
|
|
52
|
-
|
|
56
|
+
"aria-label"?: string;
|
|
53
57
|
/** Additional props for the node. */
|
|
54
58
|
props?: Record<string, unknown>;
|
|
55
59
|
/** Column index for cells. */
|
|
@@ -123,6 +127,8 @@ export interface GridState<T, C extends GridCollection<T> = GridCollection<T>> {
|
|
|
123
127
|
readonly collection: C;
|
|
124
128
|
/** Keys of disabled rows. */
|
|
125
129
|
readonly disabledKeys: Set<Key>;
|
|
130
|
+
/** Whether `disabledKeys` applies to all interactions, or only selection. */
|
|
131
|
+
readonly disabledBehavior: "selection" | "all";
|
|
126
132
|
/** Whether keyboard navigation is disabled. */
|
|
127
133
|
readonly isKeyboardNavigationDisabled: boolean;
|
|
128
134
|
/** Currently focused key. */
|
|
@@ -132,9 +138,13 @@ export interface GridState<T, C extends GridCollection<T> = GridCollection<T>> {
|
|
|
132
138
|
/** Whether the grid is focused. */
|
|
133
139
|
readonly isFocused: boolean;
|
|
134
140
|
/** The selection mode. */
|
|
135
|
-
readonly selectionMode:
|
|
141
|
+
readonly selectionMode: "none" | "single" | "multiple";
|
|
142
|
+
/** The selection behavior. */
|
|
143
|
+
readonly selectionBehavior: SelectionBehavior;
|
|
144
|
+
/** Whether empty selection is disallowed. */
|
|
145
|
+
readonly disallowEmptySelection: boolean;
|
|
136
146
|
/** The currently selected keys. */
|
|
137
|
-
readonly selectedKeys:
|
|
147
|
+
readonly selectedKeys: "all" | Set<Key>;
|
|
138
148
|
/** Check if a key is selected. */
|
|
139
149
|
isSelected(key: Key): boolean;
|
|
140
150
|
/** Check if a key is disabled. */
|
|
@@ -143,10 +153,14 @@ export interface GridState<T, C extends GridCollection<T> = GridCollection<T>> {
|
|
|
143
153
|
setFocusedKey(key: Key | null, childFocusStrategy?: FocusStrategy): void;
|
|
144
154
|
/** Set focused state. */
|
|
145
155
|
setFocused(isFocused: boolean): void;
|
|
156
|
+
/** Set the selection behavior. */
|
|
157
|
+
setSelectionBehavior(behavior: SelectionBehavior): void;
|
|
146
158
|
/** Toggle selection for a key. */
|
|
147
159
|
toggleSelection(key: Key): void;
|
|
148
160
|
/** Replace selection with a key. */
|
|
149
161
|
replaceSelection(key: Key): void;
|
|
162
|
+
/** Set multiple selected keys. */
|
|
163
|
+
setSelectedKeys(keys: Selection | Iterable<Key>): void;
|
|
150
164
|
/** Extend selection to a key (shift-click). */
|
|
151
165
|
extendSelection(toKey: Key): void;
|
|
152
166
|
/** Select all rows. */
|
|
@@ -167,18 +181,20 @@ export interface GridStateOptions<T, C extends GridCollection<T> = GridCollectio
|
|
|
167
181
|
collection: C;
|
|
168
182
|
/** Keys of disabled rows. */
|
|
169
183
|
disabledKeys?: Iterable<Key>;
|
|
184
|
+
/** Whether `disabledKeys` applies to all interactions, or only selection. @default "all" */
|
|
185
|
+
disabledBehavior?: "selection" | "all";
|
|
170
186
|
/** Focus mode: 'row' or 'cell'. */
|
|
171
|
-
focusMode?:
|
|
187
|
+
focusMode?: "row" | "cell";
|
|
172
188
|
/** Selection mode. */
|
|
173
|
-
selectionMode?:
|
|
189
|
+
selectionMode?: "none" | "single" | "multiple";
|
|
174
190
|
/** Selection behavior. */
|
|
175
|
-
selectionBehavior?:
|
|
191
|
+
selectionBehavior?: SelectionBehavior;
|
|
176
192
|
/** Whether empty selection is disallowed. */
|
|
177
193
|
disallowEmptySelection?: boolean;
|
|
178
194
|
/** Currently selected keys (controlled). */
|
|
179
|
-
selectedKeys?:
|
|
195
|
+
selectedKeys?: "all" | Iterable<Key>;
|
|
180
196
|
/** Default selected keys (uncontrolled). */
|
|
181
|
-
defaultSelectedKeys?:
|
|
197
|
+
defaultSelectedKeys?: "all" | Iterable<Key>;
|
|
182
198
|
/** Handler for selection changes. */
|
|
183
|
-
onSelectionChange?: (keys:
|
|
199
|
+
onSelectionChange?: (keys: "all" | Set<Key>) => void;
|
|
184
200
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,26 +1,311 @@
|
|
|
1
|
-
export { createToggleState, type ToggleStateOptions, type ToggleState
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export {
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
export { createToggleState, type ToggleStateOptions, type ToggleState } from "./toggle";
|
|
2
|
+
export {
|
|
3
|
+
createAutocompleteState,
|
|
4
|
+
type AutocompleteState,
|
|
5
|
+
type AutocompleteStateOptions,
|
|
6
|
+
} from "./autocomplete";
|
|
7
|
+
export { createTextFieldState, type TextFieldStateOptions, type TextFieldState } from "./textfield";
|
|
8
|
+
export {
|
|
9
|
+
createCheckboxGroupState,
|
|
10
|
+
type CheckboxGroupProps,
|
|
11
|
+
type CheckboxGroupState,
|
|
12
|
+
} from "./checkbox";
|
|
13
|
+
export {
|
|
14
|
+
createRadioGroupState,
|
|
15
|
+
radioGroupSyncVersion,
|
|
16
|
+
type RadioGroupProps,
|
|
17
|
+
type RadioGroupState,
|
|
18
|
+
} from "./radio";
|
|
19
|
+
export {
|
|
20
|
+
createOverlayTriggerState,
|
|
21
|
+
type OverlayTriggerProps,
|
|
22
|
+
type OverlayTriggerState,
|
|
23
|
+
} from "./overlays";
|
|
24
|
+
export {
|
|
25
|
+
type Key,
|
|
26
|
+
type SelectionMode,
|
|
27
|
+
type SelectionBehavior,
|
|
28
|
+
type Selection,
|
|
29
|
+
type FocusStrategy,
|
|
30
|
+
type DisabledBehavior,
|
|
31
|
+
type CollectionNode,
|
|
32
|
+
type Collection,
|
|
33
|
+
type ItemProps,
|
|
34
|
+
type SectionProps,
|
|
35
|
+
type CollectionBase,
|
|
36
|
+
type SingleSelection,
|
|
37
|
+
type MultipleSelection,
|
|
38
|
+
ListCollection,
|
|
39
|
+
createListCollection,
|
|
40
|
+
createSelectionState,
|
|
41
|
+
type SelectionStateProps,
|
|
42
|
+
type SelectionState,
|
|
43
|
+
createListState,
|
|
44
|
+
createSingleSelectListState,
|
|
45
|
+
type ListStateProps,
|
|
46
|
+
type ListState,
|
|
47
|
+
type SingleSelectListStateProps,
|
|
48
|
+
type SingleSelectListState,
|
|
49
|
+
createMenuState,
|
|
50
|
+
createMenuTriggerState,
|
|
51
|
+
type MenuStateProps,
|
|
52
|
+
type MenuState,
|
|
53
|
+
type MenuTriggerStateProps,
|
|
54
|
+
type MenuTriggerState,
|
|
55
|
+
} from "./collections";
|
|
56
|
+
export { createSelectState, type SelectStateProps, type SelectState } from "./select";
|
|
57
|
+
export {
|
|
58
|
+
createComboBoxState,
|
|
59
|
+
defaultContainsFilter,
|
|
60
|
+
type ComboBoxState,
|
|
61
|
+
type ComboBoxStateProps,
|
|
62
|
+
type FilterFn,
|
|
63
|
+
type MenuTriggerAction,
|
|
64
|
+
} from "./combobox";
|
|
65
|
+
export {
|
|
66
|
+
createTabListState,
|
|
67
|
+
type TabListStateProps,
|
|
68
|
+
type TabListState,
|
|
69
|
+
type KeyboardActivation,
|
|
70
|
+
type TabOrientation,
|
|
71
|
+
} from "./tabs";
|
|
72
|
+
export {
|
|
73
|
+
createNumberFieldState,
|
|
74
|
+
type NumberFieldStateProps,
|
|
75
|
+
type NumberFieldState,
|
|
76
|
+
} from "./numberfield";
|
|
77
|
+
export {
|
|
78
|
+
createSearchFieldState,
|
|
79
|
+
type SearchFieldStateProps,
|
|
80
|
+
type SearchFieldState,
|
|
81
|
+
} from "./searchfield";
|
|
82
|
+
export {
|
|
83
|
+
createSliderState,
|
|
84
|
+
type SliderStateProps,
|
|
85
|
+
type SliderState,
|
|
86
|
+
type SliderOrientation,
|
|
87
|
+
} from "./slider";
|
|
88
|
+
export {
|
|
89
|
+
createTooltipTriggerState,
|
|
90
|
+
resetTooltipState,
|
|
91
|
+
type TooltipTriggerProps,
|
|
92
|
+
type TooltipTriggerState,
|
|
93
|
+
} from "./tooltip";
|
|
94
|
+
export {
|
|
95
|
+
createToastState,
|
|
96
|
+
createToastQueue,
|
|
97
|
+
ToastQueue,
|
|
98
|
+
Timer,
|
|
99
|
+
type ToastOptions,
|
|
100
|
+
type QueuedToast,
|
|
101
|
+
type ToastQueueOptions,
|
|
102
|
+
type ToastStateProps,
|
|
103
|
+
type ToastState,
|
|
104
|
+
} from "./toast";
|
|
105
|
+
export {
|
|
106
|
+
createDisclosureState,
|
|
107
|
+
createDisclosureGroupState,
|
|
108
|
+
type DisclosureStateProps,
|
|
109
|
+
type DisclosureState,
|
|
110
|
+
type DisclosureGroupStateProps,
|
|
111
|
+
type DisclosureGroupState,
|
|
112
|
+
type Key as DisclosureKey,
|
|
113
|
+
} from "./disclosure";
|
|
114
|
+
export {
|
|
115
|
+
createCalendarState,
|
|
116
|
+
type CalendarStateProps,
|
|
117
|
+
type CalendarState,
|
|
118
|
+
type ValidationState,
|
|
119
|
+
type CalendarPageBehavior,
|
|
120
|
+
type CalendarSelectionAlignment,
|
|
121
|
+
type CalendarDayOfWeek,
|
|
122
|
+
createRangeCalendarState,
|
|
123
|
+
type RangeCalendarStateProps,
|
|
124
|
+
type RangeCalendarState,
|
|
125
|
+
type DateRange,
|
|
126
|
+
type RangeValue,
|
|
127
|
+
createDateFieldState,
|
|
128
|
+
type DateFieldStateProps,
|
|
129
|
+
type DateFieldState,
|
|
130
|
+
type DateSegment,
|
|
131
|
+
type DateSegmentType,
|
|
132
|
+
createTimeFieldState,
|
|
133
|
+
type TimeFieldStateProps,
|
|
134
|
+
type TimeFieldState,
|
|
135
|
+
type TimeSegment,
|
|
136
|
+
type TimeSegmentType,
|
|
137
|
+
type TimeValue,
|
|
138
|
+
type CalendarDate,
|
|
139
|
+
type CalendarDateTime,
|
|
140
|
+
type ZonedDateTime,
|
|
141
|
+
type DateValue,
|
|
142
|
+
type Time,
|
|
143
|
+
type Calendar,
|
|
144
|
+
type CalendarIdentifier,
|
|
145
|
+
type AnyCalendarDate,
|
|
146
|
+
createCalendar,
|
|
147
|
+
GregorianCalendar,
|
|
148
|
+
today,
|
|
149
|
+
now,
|
|
150
|
+
getLocalTimeZone,
|
|
151
|
+
parseDate,
|
|
152
|
+
parseDateTime,
|
|
153
|
+
parseTime,
|
|
154
|
+
parseAbsolute,
|
|
155
|
+
parseAbsoluteToLocal,
|
|
156
|
+
parseZonedDateTime,
|
|
157
|
+
toCalendarDate,
|
|
158
|
+
toCalendarDateTime,
|
|
159
|
+
toZoned,
|
|
160
|
+
toTime,
|
|
161
|
+
CalendarDateClass,
|
|
162
|
+
CalendarDateTimeClass,
|
|
163
|
+
ZonedDateTimeClass,
|
|
164
|
+
TimeClass,
|
|
165
|
+
DateFormatter,
|
|
166
|
+
isSameDay,
|
|
167
|
+
isSameMonth,
|
|
168
|
+
isSameYear,
|
|
169
|
+
isToday,
|
|
170
|
+
isWeekend,
|
|
171
|
+
startOfMonth,
|
|
172
|
+
endOfMonth,
|
|
173
|
+
startOfWeek,
|
|
174
|
+
endOfWeek,
|
|
175
|
+
startOfYear,
|
|
176
|
+
endOfYear,
|
|
177
|
+
getWeeksInMonth,
|
|
178
|
+
getDayOfWeek,
|
|
179
|
+
toCalendar,
|
|
180
|
+
minDate,
|
|
181
|
+
maxDate,
|
|
182
|
+
} from "./calendar";
|
|
183
|
+
export {
|
|
184
|
+
createGridState,
|
|
185
|
+
type GridState,
|
|
186
|
+
type GridStateOptions,
|
|
187
|
+
type GridCollection,
|
|
188
|
+
type GridNode,
|
|
189
|
+
type GridNodeType,
|
|
190
|
+
} from "./grid";
|
|
191
|
+
export {
|
|
192
|
+
createTableState,
|
|
193
|
+
TableCollection,
|
|
194
|
+
createTableCollection,
|
|
195
|
+
type TableState,
|
|
196
|
+
type TableStateOptions,
|
|
197
|
+
type ITableCollection,
|
|
198
|
+
type SortDescriptor,
|
|
199
|
+
type SortDirection,
|
|
200
|
+
type Sortable,
|
|
201
|
+
type ColumnDefinition,
|
|
202
|
+
type RowDefinition,
|
|
203
|
+
type TableCollectionOptions,
|
|
204
|
+
} from "./table";
|
|
205
|
+
export {
|
|
206
|
+
createTreeState,
|
|
207
|
+
TreeCollection,
|
|
208
|
+
createTreeCollection,
|
|
209
|
+
type TreeState,
|
|
210
|
+
type TreeStateOptions,
|
|
211
|
+
type TreeCollectionInterface,
|
|
212
|
+
type TreeNode,
|
|
213
|
+
type TreeItemData,
|
|
214
|
+
} from "./tree";
|
|
215
|
+
export {
|
|
216
|
+
type Color,
|
|
217
|
+
type ColorFormat,
|
|
218
|
+
type ColorSpace,
|
|
219
|
+
type ColorChannel,
|
|
220
|
+
type ColorChannelRange,
|
|
221
|
+
type ColorAxes,
|
|
222
|
+
parseColor,
|
|
223
|
+
normalizeColor,
|
|
224
|
+
createRGBColor,
|
|
225
|
+
createHSLColor,
|
|
226
|
+
createHSBColor,
|
|
227
|
+
createColorSliderState,
|
|
228
|
+
type ColorSliderStateOptions,
|
|
229
|
+
type ColorSliderState,
|
|
230
|
+
createColorAreaState,
|
|
231
|
+
type ColorAreaStateOptions,
|
|
232
|
+
type ColorAreaState,
|
|
233
|
+
createColorWheelState,
|
|
234
|
+
type ColorWheelStateOptions,
|
|
235
|
+
type ColorWheelState,
|
|
236
|
+
createColorFieldState,
|
|
237
|
+
type ColorFieldStateOptions,
|
|
238
|
+
type ColorFieldState,
|
|
239
|
+
} from "./color";
|
|
240
|
+
export {
|
|
241
|
+
type DropOperation,
|
|
242
|
+
type DragItem,
|
|
243
|
+
type DragDropEvent,
|
|
244
|
+
type DragStartEvent,
|
|
245
|
+
type DragMoveEvent,
|
|
246
|
+
type DragEndEvent,
|
|
247
|
+
type DropEnterEvent,
|
|
248
|
+
type DropMoveEvent,
|
|
249
|
+
type DropActivateEvent,
|
|
250
|
+
type DropExitEvent,
|
|
251
|
+
type TextDropItem,
|
|
252
|
+
type FileDropItem,
|
|
253
|
+
type DirectoryDropItem,
|
|
254
|
+
type DropItem,
|
|
255
|
+
type DropEvent,
|
|
256
|
+
type DropPosition,
|
|
257
|
+
type RootDropTarget,
|
|
258
|
+
type ItemDropTarget,
|
|
259
|
+
type DropTarget,
|
|
260
|
+
type DroppableCollectionEnterEvent,
|
|
261
|
+
type DroppableCollectionMoveEvent,
|
|
262
|
+
type DroppableCollectionActivateEvent,
|
|
263
|
+
type DroppableCollectionExitEvent,
|
|
264
|
+
type DroppableCollectionDropEvent,
|
|
265
|
+
type DroppableCollectionInsertDropEvent,
|
|
266
|
+
type DroppableCollectionRootDropEvent,
|
|
267
|
+
type DroppableCollectionOnItemDropEvent,
|
|
268
|
+
type DroppableCollectionReorderEvent,
|
|
269
|
+
type DragType,
|
|
270
|
+
type DragTypes,
|
|
271
|
+
type DropTargetDelegate,
|
|
272
|
+
type DraggableCollectionStartEvent,
|
|
273
|
+
type DraggableCollectionMoveEvent,
|
|
274
|
+
type DraggableCollectionEndEvent,
|
|
275
|
+
type DragPreviewRenderer,
|
|
276
|
+
type DroppableCollectionUtilityOptions,
|
|
277
|
+
type DroppableCollectionBaseProps,
|
|
278
|
+
type DroppableCollectionProps,
|
|
279
|
+
type DraggableCollectionProps,
|
|
280
|
+
createDragState,
|
|
281
|
+
type DragStateOptions,
|
|
282
|
+
type DragState,
|
|
283
|
+
createDropState,
|
|
284
|
+
type DropStateOptions,
|
|
285
|
+
type DropState,
|
|
286
|
+
createDraggableCollectionState,
|
|
287
|
+
type DraggableCollectionStateOptions,
|
|
288
|
+
type DraggableCollectionState,
|
|
289
|
+
createDroppableCollectionState,
|
|
290
|
+
DIRECTORY_DRAG_TYPE,
|
|
291
|
+
type DroppableCollectionStateOptions,
|
|
292
|
+
type DroppableCollectionState,
|
|
293
|
+
} from "./dnd";
|
|
294
|
+
export {
|
|
295
|
+
createFormValidationState,
|
|
296
|
+
mergeValidation,
|
|
297
|
+
FormValidationContext,
|
|
298
|
+
privateValidationStateProp,
|
|
299
|
+
VALID_VALIDITY_STATE,
|
|
300
|
+
DEFAULT_VALIDATION_RESULT,
|
|
301
|
+
type FormValidationState,
|
|
302
|
+
type FormValidationProps,
|
|
303
|
+
type ValidationResult,
|
|
304
|
+
type ValidationErrors,
|
|
305
|
+
type ValidationFunction,
|
|
306
|
+
type ValidationBehavior,
|
|
307
|
+
type ValidityState,
|
|
308
|
+
} from "./form";
|
|
309
|
+
export { createIsSSR, createId, canUseDOM, isServer } from "./ssr";
|
|
310
|
+
export { access, isAccessor, type MaybeAccessor, type MaybeAccessorValue } from "./utils";
|
|
311
|
+
//# sourceMappingURL=index.d.ts.map
|