@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/index.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// Toggle
|
|
2
1
|
export {
|
|
3
2
|
createToggleState,
|
|
4
3
|
createToggleGroupState,
|
|
@@ -6,47 +5,36 @@ export {
|
|
|
6
5
|
type ToggleState,
|
|
7
6
|
type ToggleGroupProps,
|
|
8
7
|
type ToggleGroupState,
|
|
9
|
-
} from
|
|
8
|
+
} from "./toggle";
|
|
10
9
|
|
|
11
|
-
// Autocomplete
|
|
12
10
|
export {
|
|
13
11
|
createAutocompleteState,
|
|
14
12
|
type AutocompleteState,
|
|
15
13
|
type AutocompleteStateOptions,
|
|
16
|
-
} from
|
|
14
|
+
} from "./autocomplete";
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
createTextFieldState,
|
|
21
|
-
type TextFieldStateOptions,
|
|
22
|
-
type TextFieldState,
|
|
23
|
-
} from './textfield';
|
|
16
|
+
export { createTextFieldState, type TextFieldStateOptions, type TextFieldState } from "./textfield";
|
|
24
17
|
|
|
25
|
-
// Checkbox
|
|
26
18
|
export {
|
|
27
19
|
createCheckboxGroupState,
|
|
28
20
|
type CheckboxGroupProps,
|
|
29
21
|
type CheckboxGroupState,
|
|
30
|
-
} from
|
|
22
|
+
} from "./checkbox";
|
|
31
23
|
|
|
32
|
-
// Radio
|
|
33
24
|
export {
|
|
34
25
|
createRadioGroupState,
|
|
35
26
|
radioGroupSyncVersion,
|
|
36
27
|
type RadioGroupProps,
|
|
37
28
|
type RadioGroupState,
|
|
38
|
-
} from
|
|
29
|
+
} from "./radio";
|
|
39
30
|
|
|
40
|
-
// Overlays
|
|
41
31
|
export {
|
|
42
32
|
createOverlayTriggerState,
|
|
43
33
|
type OverlayTriggerProps,
|
|
44
34
|
type OverlayTriggerState,
|
|
45
|
-
} from
|
|
35
|
+
} from "./overlays";
|
|
46
36
|
|
|
47
|
-
// Collections
|
|
48
37
|
export {
|
|
49
|
-
// Types
|
|
50
38
|
type Key,
|
|
51
39
|
type SelectionMode,
|
|
52
40
|
type SelectionBehavior,
|
|
@@ -60,40 +48,38 @@ export {
|
|
|
60
48
|
type CollectionBase,
|
|
61
49
|
type SingleSelection,
|
|
62
50
|
type MultipleSelection,
|
|
63
|
-
// ListCollection
|
|
64
51
|
ListCollection,
|
|
65
52
|
createListCollection,
|
|
66
|
-
// Selection State
|
|
67
53
|
createSelectionState,
|
|
68
54
|
type SelectionStateProps,
|
|
69
55
|
type SelectionState,
|
|
70
|
-
|
|
56
|
+
type SelectionPressEvent,
|
|
71
57
|
createListState,
|
|
72
58
|
createSingleSelectListState,
|
|
73
59
|
type ListStateProps,
|
|
74
60
|
type ListState,
|
|
75
61
|
type SingleSelectListStateProps,
|
|
76
62
|
type SingleSelectListState,
|
|
77
|
-
// Menu State
|
|
78
63
|
createMenuState,
|
|
79
64
|
createMenuTriggerState,
|
|
80
65
|
type MenuStateProps,
|
|
81
66
|
type MenuState,
|
|
82
67
|
type MenuTriggerStateProps,
|
|
83
68
|
type MenuTriggerState,
|
|
84
|
-
} from
|
|
69
|
+
} from "./collections";
|
|
85
70
|
|
|
86
71
|
// Selection (module-compat aliases)
|
|
87
72
|
export {
|
|
88
73
|
useMultipleSelectionState,
|
|
89
74
|
type MultipleSelectionStateProps,
|
|
90
75
|
type MultipleSelectionState,
|
|
91
|
-
|
|
76
|
+
SelectionManager,
|
|
77
|
+
type SelectionManagerOptions,
|
|
78
|
+
type LayoutDelegate,
|
|
79
|
+
} from "./selection";
|
|
92
80
|
|
|
93
81
|
// Menu (module-compat aliases)
|
|
94
|
-
export {
|
|
95
|
-
useMenuTriggerState,
|
|
96
|
-
} from './menu';
|
|
82
|
+
export { useMenuTriggerState } from "./menu";
|
|
97
83
|
|
|
98
84
|
// Datepicker (module-compat aliases)
|
|
99
85
|
export {
|
|
@@ -106,16 +92,10 @@ export {
|
|
|
106
92
|
type DateRangePickerStateOptions,
|
|
107
93
|
type TimeFieldStateOptions,
|
|
108
94
|
type SegmentType,
|
|
109
|
-
} from
|
|
95
|
+
} from "./datepicker";
|
|
110
96
|
|
|
111
|
-
|
|
112
|
-
export {
|
|
113
|
-
createSelectState,
|
|
114
|
-
type SelectStateProps,
|
|
115
|
-
type SelectState,
|
|
116
|
-
} from './select';
|
|
97
|
+
export { createSelectState, type SelectStateProps, type SelectState } from "./select";
|
|
117
98
|
|
|
118
|
-
// ComboBox
|
|
119
99
|
export {
|
|
120
100
|
createComboBoxState,
|
|
121
101
|
defaultContainsFilter,
|
|
@@ -123,48 +103,42 @@ export {
|
|
|
123
103
|
type ComboBoxStateProps,
|
|
124
104
|
type FilterFn,
|
|
125
105
|
type MenuTriggerAction,
|
|
126
|
-
} from
|
|
106
|
+
} from "./combobox";
|
|
127
107
|
|
|
128
|
-
// Tabs
|
|
129
108
|
export {
|
|
130
109
|
createTabListState,
|
|
131
110
|
type TabListStateProps,
|
|
132
111
|
type TabListState,
|
|
133
112
|
type KeyboardActivation,
|
|
134
113
|
type TabOrientation,
|
|
135
|
-
} from
|
|
114
|
+
} from "./tabs";
|
|
136
115
|
|
|
137
|
-
// NumberField
|
|
138
116
|
export {
|
|
139
117
|
createNumberFieldState,
|
|
140
118
|
type NumberFieldStateProps,
|
|
141
119
|
type NumberFieldState,
|
|
142
|
-
} from
|
|
120
|
+
} from "./numberfield";
|
|
143
121
|
|
|
144
|
-
// SearchField
|
|
145
122
|
export {
|
|
146
123
|
createSearchFieldState,
|
|
147
124
|
type SearchFieldStateProps,
|
|
148
125
|
type SearchFieldState,
|
|
149
|
-
} from
|
|
126
|
+
} from "./searchfield";
|
|
150
127
|
|
|
151
|
-
// Slider
|
|
152
128
|
export {
|
|
153
129
|
createSliderState,
|
|
154
130
|
type SliderStateProps,
|
|
155
131
|
type SliderState,
|
|
156
132
|
type SliderOrientation,
|
|
157
|
-
} from
|
|
133
|
+
} from "./slider";
|
|
158
134
|
|
|
159
|
-
// Tooltip
|
|
160
135
|
export {
|
|
161
136
|
createTooltipTriggerState,
|
|
162
137
|
resetTooltipState,
|
|
163
138
|
type TooltipTriggerProps,
|
|
164
139
|
type TooltipTriggerState,
|
|
165
|
-
} from
|
|
140
|
+
} from "./tooltip";
|
|
166
141
|
|
|
167
|
-
// Toast
|
|
168
142
|
export {
|
|
169
143
|
createToastState,
|
|
170
144
|
createToastQueue,
|
|
@@ -173,11 +147,11 @@ export {
|
|
|
173
147
|
type ToastOptions,
|
|
174
148
|
type QueuedToast,
|
|
175
149
|
type ToastQueueOptions,
|
|
150
|
+
type ToastAction,
|
|
176
151
|
type ToastStateProps,
|
|
177
152
|
type ToastState,
|
|
178
|
-
} from
|
|
153
|
+
} from "./toast";
|
|
179
154
|
|
|
180
|
-
// Disclosure
|
|
181
155
|
export {
|
|
182
156
|
createDisclosureState,
|
|
183
157
|
createDisclosureGroupState,
|
|
@@ -186,41 +160,46 @@ export {
|
|
|
186
160
|
type DisclosureGroupStateProps,
|
|
187
161
|
type DisclosureGroupState,
|
|
188
162
|
type Key as DisclosureKey,
|
|
189
|
-
} from
|
|
163
|
+
} from "./disclosure";
|
|
190
164
|
|
|
191
|
-
// Calendar
|
|
192
165
|
export {
|
|
193
|
-
// Calendar State
|
|
194
166
|
createCalendarState,
|
|
195
167
|
type CalendarStateProps,
|
|
196
168
|
type CalendarState,
|
|
169
|
+
type CalendarSelectionMode,
|
|
170
|
+
type CalendarValueType,
|
|
197
171
|
type ValidationState,
|
|
198
|
-
|
|
172
|
+
type CalendarPageBehavior,
|
|
173
|
+
type CalendarSelectionAlignment,
|
|
174
|
+
type CalendarDayOfWeek,
|
|
199
175
|
createRangeCalendarState,
|
|
200
176
|
type RangeCalendarStateProps,
|
|
201
177
|
type RangeCalendarState,
|
|
202
178
|
type DateRange,
|
|
203
179
|
type RangeValue,
|
|
204
|
-
// Date Field State
|
|
205
180
|
createDateFieldState,
|
|
206
181
|
type DateFieldStateProps,
|
|
207
182
|
type DateFieldState,
|
|
208
183
|
type DateSegment,
|
|
209
184
|
type DateSegmentType,
|
|
210
|
-
// Time Field State
|
|
211
185
|
createTimeFieldState,
|
|
212
186
|
type TimeFieldStateProps,
|
|
213
187
|
type TimeFieldState,
|
|
214
188
|
type TimeSegment,
|
|
215
189
|
type TimeSegmentType,
|
|
216
190
|
type TimeValue,
|
|
217
|
-
|
|
191
|
+
createDatePickerState,
|
|
192
|
+
type DatePickerState,
|
|
218
193
|
type CalendarDate,
|
|
219
194
|
type CalendarDateTime,
|
|
220
195
|
type ZonedDateTime,
|
|
221
196
|
type DateValue,
|
|
222
197
|
type Time,
|
|
223
|
-
|
|
198
|
+
type Calendar,
|
|
199
|
+
type CalendarIdentifier,
|
|
200
|
+
type AnyCalendarDate,
|
|
201
|
+
createCalendar,
|
|
202
|
+
GregorianCalendar,
|
|
224
203
|
today,
|
|
225
204
|
now,
|
|
226
205
|
getLocalTimeZone,
|
|
@@ -252,11 +231,11 @@ export {
|
|
|
252
231
|
endOfYear,
|
|
253
232
|
getWeeksInMonth,
|
|
254
233
|
getDayOfWeek,
|
|
234
|
+
toCalendar,
|
|
255
235
|
minDate,
|
|
256
236
|
maxDate,
|
|
257
|
-
} from
|
|
237
|
+
} from "./calendar";
|
|
258
238
|
|
|
259
|
-
// Grid
|
|
260
239
|
export {
|
|
261
240
|
createGridState,
|
|
262
241
|
type GridState,
|
|
@@ -264,25 +243,31 @@ export {
|
|
|
264
243
|
type GridCollection,
|
|
265
244
|
type GridNode,
|
|
266
245
|
type GridNodeType,
|
|
267
|
-
} from
|
|
246
|
+
} from "./grid";
|
|
268
247
|
|
|
269
|
-
// Table
|
|
270
248
|
export {
|
|
271
249
|
createTableState,
|
|
250
|
+
createTreeGridState,
|
|
251
|
+
createTableColumnResizeState,
|
|
272
252
|
TableCollection,
|
|
273
253
|
createTableCollection,
|
|
274
254
|
type TableState,
|
|
275
255
|
type TableStateOptions,
|
|
276
256
|
type ITableCollection,
|
|
257
|
+
type TreeGridState,
|
|
258
|
+
type TreeGridStateOptions,
|
|
277
259
|
type SortDescriptor,
|
|
278
260
|
type SortDirection,
|
|
279
261
|
type Sortable,
|
|
280
262
|
type ColumnDefinition,
|
|
281
263
|
type RowDefinition,
|
|
282
264
|
type TableCollectionOptions,
|
|
283
|
-
|
|
265
|
+
type ColumnSize,
|
|
266
|
+
type ColumnResizeDefinition,
|
|
267
|
+
type TableColumnResizeStateProps,
|
|
268
|
+
type TableColumnResizeState,
|
|
269
|
+
} from "./table";
|
|
284
270
|
|
|
285
|
-
// Tree
|
|
286
271
|
export {
|
|
287
272
|
createTreeState,
|
|
288
273
|
TreeCollection,
|
|
@@ -292,44 +277,35 @@ export {
|
|
|
292
277
|
type TreeCollectionInterface,
|
|
293
278
|
type TreeNode,
|
|
294
279
|
type TreeItemData,
|
|
295
|
-
} from
|
|
280
|
+
} from "./tree";
|
|
296
281
|
|
|
297
|
-
// Color
|
|
298
282
|
export {
|
|
299
|
-
// Types
|
|
300
283
|
type Color,
|
|
301
284
|
type ColorFormat,
|
|
302
285
|
type ColorSpace,
|
|
303
286
|
type ColorChannel,
|
|
304
287
|
type ColorChannelRange,
|
|
305
288
|
type ColorAxes,
|
|
306
|
-
// Color utilities
|
|
307
289
|
parseColor,
|
|
308
290
|
normalizeColor,
|
|
309
291
|
createRGBColor,
|
|
310
292
|
createHSLColor,
|
|
311
293
|
createHSBColor,
|
|
312
|
-
// Color Slider State
|
|
313
294
|
createColorSliderState,
|
|
314
295
|
type ColorSliderStateOptions,
|
|
315
296
|
type ColorSliderState,
|
|
316
|
-
// Color Area State
|
|
317
297
|
createColorAreaState,
|
|
318
298
|
type ColorAreaStateOptions,
|
|
319
299
|
type ColorAreaState,
|
|
320
|
-
// Color Wheel State
|
|
321
300
|
createColorWheelState,
|
|
322
301
|
type ColorWheelStateOptions,
|
|
323
302
|
type ColorWheelState,
|
|
324
|
-
// Color Field State
|
|
325
303
|
createColorFieldState,
|
|
326
304
|
type ColorFieldStateOptions,
|
|
327
305
|
type ColorFieldState,
|
|
328
|
-
} from
|
|
306
|
+
} from "./color";
|
|
329
307
|
|
|
330
|
-
// Drag and Drop
|
|
331
308
|
export {
|
|
332
|
-
// Types
|
|
333
309
|
type DropOperation,
|
|
334
310
|
type DragItem,
|
|
335
311
|
type DragDropEvent,
|
|
@@ -358,6 +334,7 @@ export {
|
|
|
358
334
|
type DroppableCollectionRootDropEvent,
|
|
359
335
|
type DroppableCollectionOnItemDropEvent,
|
|
360
336
|
type DroppableCollectionReorderEvent,
|
|
337
|
+
type DragType,
|
|
361
338
|
type DragTypes,
|
|
362
339
|
type DropTargetDelegate,
|
|
363
340
|
type DraggableCollectionStartEvent,
|
|
@@ -368,26 +345,21 @@ export {
|
|
|
368
345
|
type DroppableCollectionBaseProps,
|
|
369
346
|
type DroppableCollectionProps,
|
|
370
347
|
type DraggableCollectionProps,
|
|
371
|
-
// Drag State
|
|
372
348
|
createDragState,
|
|
373
349
|
type DragStateOptions,
|
|
374
350
|
type DragState,
|
|
375
|
-
// Drop State
|
|
376
351
|
createDropState,
|
|
377
352
|
type DropStateOptions,
|
|
378
353
|
type DropState,
|
|
379
|
-
// Draggable Collection State
|
|
380
354
|
createDraggableCollectionState,
|
|
381
355
|
type DraggableCollectionStateOptions,
|
|
382
356
|
type DraggableCollectionState,
|
|
383
|
-
// Droppable Collection State
|
|
384
357
|
createDroppableCollectionState,
|
|
385
358
|
DIRECTORY_DRAG_TYPE,
|
|
386
359
|
type DroppableCollectionStateOptions,
|
|
387
360
|
type DroppableCollectionState,
|
|
388
|
-
} from
|
|
361
|
+
} from "./dnd";
|
|
389
362
|
|
|
390
|
-
// Form
|
|
391
363
|
export {
|
|
392
364
|
createFormValidationState,
|
|
393
365
|
mergeValidation,
|
|
@@ -402,12 +374,10 @@ export {
|
|
|
402
374
|
type ValidationFunction,
|
|
403
375
|
type ValidationBehavior,
|
|
404
376
|
type ValidityState,
|
|
405
|
-
} from
|
|
377
|
+
} from "./form";
|
|
406
378
|
|
|
407
|
-
|
|
408
|
-
export { createIsSSR, createId, canUseDOM, isServer } from './ssr';
|
|
379
|
+
export { createIsSSR, createId, canUseDOM, isServer } from "./ssr";
|
|
409
380
|
|
|
410
|
-
// Data Hooks
|
|
411
381
|
export {
|
|
412
382
|
createListData,
|
|
413
383
|
type ListOptions,
|
|
@@ -423,10 +393,10 @@ export {
|
|
|
423
393
|
type AsyncListLoadOptions,
|
|
424
394
|
type AsyncListStateUpdate,
|
|
425
395
|
type LoadingState,
|
|
426
|
-
} from
|
|
396
|
+
} from "./data";
|
|
397
|
+
|
|
398
|
+
export { getColorChannels } from "./color/getColorChannels";
|
|
427
399
|
|
|
428
|
-
|
|
429
|
-
export { getColorChannels } from './color/getColorChannels';
|
|
400
|
+
export { createStepListState, type StepListStateProps, type StepListState } from "./steplist";
|
|
430
401
|
|
|
431
|
-
|
|
432
|
-
export { access, isAccessor, type MaybeAccessor, type MaybeAccessorValue } from './utils';
|
|
402
|
+
export { access, isAccessor, type MaybeAccessor, type MaybeAccessorValue } from "./utils";
|
package/src/menu/index.ts
CHANGED
|
@@ -12,8 +12,6 @@ export {
|
|
|
12
12
|
type MenuState,
|
|
13
13
|
type MenuTriggerStateProps,
|
|
14
14
|
type MenuTriggerState,
|
|
15
|
-
} from
|
|
15
|
+
} from "../collections/createMenuState";
|
|
16
16
|
|
|
17
|
-
export {
|
|
18
|
-
createMenuTriggerState as useMenuTriggerState,
|
|
19
|
-
} from '../collections/createMenuState';
|
|
17
|
+
export { createMenuTriggerState as useMenuTriggerState } from "../collections/createMenuState";
|
|
@@ -2,64 +2,66 @@
|
|
|
2
2
|
* State management for NumberField.
|
|
3
3
|
* Based on @react-stately/numberfield useNumberFieldState.
|
|
4
4
|
*/
|
|
5
|
-
import { type Accessor } from
|
|
6
|
-
import { type MaybeAccessor } from
|
|
5
|
+
import { type Accessor } from "solid-js";
|
|
6
|
+
import { type MaybeAccessor } from "../utils";
|
|
7
7
|
export interface NumberFieldStateProps {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
8
|
+
/** The current value (controlled). */
|
|
9
|
+
value?: number;
|
|
10
|
+
/** The default value (uncontrolled). */
|
|
11
|
+
defaultValue?: number;
|
|
12
|
+
/** Handler called when the value changes. */
|
|
13
|
+
onChange?: (value: number) => void;
|
|
14
|
+
/** The minimum value. */
|
|
15
|
+
minValue?: number;
|
|
16
|
+
/** The maximum value. */
|
|
17
|
+
maxValue?: number;
|
|
18
|
+
/** The step value for increment/decrement. */
|
|
19
|
+
step?: number;
|
|
20
|
+
/** Whether the field is disabled. */
|
|
21
|
+
isDisabled?: boolean;
|
|
22
|
+
/** Whether the field is read-only. */
|
|
23
|
+
isReadOnly?: boolean;
|
|
24
|
+
/** The locale for number formatting. */
|
|
25
|
+
locale?: string;
|
|
26
|
+
/** Number format options. */
|
|
27
|
+
formatOptions?: Intl.NumberFormatOptions;
|
|
28
28
|
}
|
|
29
29
|
export interface NumberFieldState {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
30
|
+
/** The current input value as a string. */
|
|
31
|
+
inputValue: Accessor<string>;
|
|
32
|
+
/** The current numeric value. */
|
|
33
|
+
numberValue: Accessor<number>;
|
|
34
|
+
/** Whether the value can be incremented. */
|
|
35
|
+
canIncrement: Accessor<boolean>;
|
|
36
|
+
/** Whether the value can be decremented. */
|
|
37
|
+
canDecrement: Accessor<boolean>;
|
|
38
|
+
/** Whether the field is disabled. */
|
|
39
|
+
isDisabled: Accessor<boolean>;
|
|
40
|
+
/** Whether the field is read-only. */
|
|
41
|
+
isReadOnly: Accessor<boolean>;
|
|
42
|
+
/** The minimum value. */
|
|
43
|
+
minValue: Accessor<number | undefined>;
|
|
44
|
+
/** The maximum value. */
|
|
45
|
+
maxValue: Accessor<number | undefined>;
|
|
46
|
+
/** Set the input value. */
|
|
47
|
+
setInputValue: (value: string) => void;
|
|
48
|
+
/** Validate a partial input value. */
|
|
49
|
+
validate: (value: string) => boolean;
|
|
50
|
+
/** Commit the current input value. */
|
|
51
|
+
commit: () => void;
|
|
52
|
+
/** Increment the value by step. */
|
|
53
|
+
increment: () => void;
|
|
54
|
+
/** Decrement the value by step. */
|
|
55
|
+
decrement: () => void;
|
|
56
|
+
/** Set to maximum value. */
|
|
57
|
+
incrementToMax: () => void;
|
|
58
|
+
/** Set to minimum value. */
|
|
59
|
+
decrementToMin: () => void;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* Creates state for a number field.
|
|
63
63
|
*/
|
|
64
|
-
export declare function createNumberFieldState(
|
|
65
|
-
|
|
64
|
+
export declare function createNumberFieldState(
|
|
65
|
+
props: MaybeAccessor<NumberFieldStateProps>,
|
|
66
|
+
): NumberFieldState;
|
|
67
|
+
//# sourceMappingURL=createNumberFieldState.d.ts.map
|