@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.
- package/README.md +30 -283
- package/dist/autocomplete/createAutocompleteState.d.ts +2 -2
- package/dist/autocomplete/index.d.ts +1 -1
- package/dist/calendar/createCalendarState.d.ts +22 -7
- package/dist/calendar/createDateFieldState.d.ts +30 -7
- package/dist/calendar/createDatePickerState.d.ts +60 -0
- package/dist/calendar/createRangeCalendarState.d.ts +27 -8
- 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 +8 -8
- package/dist/collections/createMenuState.d.ts +7 -7
- package/dist/collections/createSelectionState.d.ts +5 -5
- package/dist/collections/index.d.ts +5 -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 +27 -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 +16 -16
- 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 +13 -11
- package/dist/index.d.ts +31 -30
- package/dist/index.js +7924 -7238
- 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 +8 -8
- package/dist/select/index.d.ts +1 -1
- package/dist/selection/index.d.ts +5 -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 +3 -3
- package/dist/table/createTableColumnResizeState.d.ts +54 -0
- package/dist/table/createTableState.d.ts +2 -2
- package/dist/table/index.d.ts +5 -3
- package/dist/table/types.d.ts +10 -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 +8 -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 +19 -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/createCalendarState.d.ts +139 -117
- package/src/calendar/createCalendarState.ts +221 -74
- package/src/calendar/createDateFieldState.d.ts +130 -95
- package/src/calendar/createDateFieldState.ts +263 -151
- package/src/calendar/createDatePickerState.ts +347 -0
- package/src/calendar/createRangeCalendarState.d.ts +154 -129
- package/src/calendar/createRangeCalendarState.ts +293 -79
- 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 +21 -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 +19 -18
- package/src/collections/createMenuState.d.ts +36 -31
- package/src/collections/createMenuState.ts +18 -12
- package/src/collections/createSelectionState.d.ts +78 -65
- package/src/collections/createSelectionState.ts +36 -32
- package/src/collections/index.d.ts +38 -6
- package/src/collections/index.ts +5 -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 +176 -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 +54 -6
- package/src/dnd/index.ts +5 -18
- package/src/dnd/types.d.ts +167 -156
- package/src/dnd/types.ts +20 -21
- 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 +44 -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 +20 -18
- package/src/index.d.ts +310 -26
- package/src/index.ts +48 -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 +27 -27
- package/src/select/index.d.ts +2 -2
- package/src/select/index.ts +1 -5
- package/src/selection/index.ts +6 -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 +61 -64
- package/src/table/createTableColumnResizeState.ts +242 -0
- package/src/table/createTableState.d.ts +7 -4
- package/src/table/createTableState.ts +10 -7
- package/src/table/index.d.ts +14 -4
- package/src/table/index.ts +10 -3
- package/src/table/types.d.ts +98 -92
- package/src/table/types.ts +17 -13
- package/src/tabs/createTabListState.d.ts +59 -57
- package/src/tabs/createTabListState.ts +24 -31
- 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 +48 -43
- package/src/toast/index.d.ts +12 -2
- package/src/toast/index.ts +1 -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 +39 -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 +22 -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,34 @@ 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
|
-
// List State
|
|
71
56
|
createListState,
|
|
72
57
|
createSingleSelectListState,
|
|
73
58
|
type ListStateProps,
|
|
74
59
|
type ListState,
|
|
75
60
|
type SingleSelectListStateProps,
|
|
76
61
|
type SingleSelectListState,
|
|
77
|
-
// Menu State
|
|
78
62
|
createMenuState,
|
|
79
63
|
createMenuTriggerState,
|
|
80
64
|
type MenuStateProps,
|
|
81
65
|
type MenuState,
|
|
82
66
|
type MenuTriggerStateProps,
|
|
83
67
|
type MenuTriggerState,
|
|
84
|
-
} from
|
|
68
|
+
} from "./collections";
|
|
85
69
|
|
|
86
70
|
// Selection (module-compat aliases)
|
|
87
71
|
export {
|
|
88
72
|
useMultipleSelectionState,
|
|
89
73
|
type MultipleSelectionStateProps,
|
|
90
74
|
type MultipleSelectionState,
|
|
91
|
-
} from
|
|
75
|
+
} from "./selection";
|
|
92
76
|
|
|
93
77
|
// Menu (module-compat aliases)
|
|
94
|
-
export {
|
|
95
|
-
useMenuTriggerState,
|
|
96
|
-
} from './menu';
|
|
78
|
+
export { useMenuTriggerState } from "./menu";
|
|
97
79
|
|
|
98
80
|
// Datepicker (module-compat aliases)
|
|
99
81
|
export {
|
|
@@ -106,16 +88,10 @@ export {
|
|
|
106
88
|
type DateRangePickerStateOptions,
|
|
107
89
|
type TimeFieldStateOptions,
|
|
108
90
|
type SegmentType,
|
|
109
|
-
} from
|
|
91
|
+
} from "./datepicker";
|
|
110
92
|
|
|
111
|
-
|
|
112
|
-
export {
|
|
113
|
-
createSelectState,
|
|
114
|
-
type SelectStateProps,
|
|
115
|
-
type SelectState,
|
|
116
|
-
} from './select';
|
|
93
|
+
export { createSelectState, type SelectStateProps, type SelectState } from "./select";
|
|
117
94
|
|
|
118
|
-
// ComboBox
|
|
119
95
|
export {
|
|
120
96
|
createComboBoxState,
|
|
121
97
|
defaultContainsFilter,
|
|
@@ -123,48 +99,42 @@ export {
|
|
|
123
99
|
type ComboBoxStateProps,
|
|
124
100
|
type FilterFn,
|
|
125
101
|
type MenuTriggerAction,
|
|
126
|
-
} from
|
|
102
|
+
} from "./combobox";
|
|
127
103
|
|
|
128
|
-
// Tabs
|
|
129
104
|
export {
|
|
130
105
|
createTabListState,
|
|
131
106
|
type TabListStateProps,
|
|
132
107
|
type TabListState,
|
|
133
108
|
type KeyboardActivation,
|
|
134
109
|
type TabOrientation,
|
|
135
|
-
} from
|
|
110
|
+
} from "./tabs";
|
|
136
111
|
|
|
137
|
-
// NumberField
|
|
138
112
|
export {
|
|
139
113
|
createNumberFieldState,
|
|
140
114
|
type NumberFieldStateProps,
|
|
141
115
|
type NumberFieldState,
|
|
142
|
-
} from
|
|
116
|
+
} from "./numberfield";
|
|
143
117
|
|
|
144
|
-
// SearchField
|
|
145
118
|
export {
|
|
146
119
|
createSearchFieldState,
|
|
147
120
|
type SearchFieldStateProps,
|
|
148
121
|
type SearchFieldState,
|
|
149
|
-
} from
|
|
122
|
+
} from "./searchfield";
|
|
150
123
|
|
|
151
|
-
// Slider
|
|
152
124
|
export {
|
|
153
125
|
createSliderState,
|
|
154
126
|
type SliderStateProps,
|
|
155
127
|
type SliderState,
|
|
156
128
|
type SliderOrientation,
|
|
157
|
-
} from
|
|
129
|
+
} from "./slider";
|
|
158
130
|
|
|
159
|
-
// Tooltip
|
|
160
131
|
export {
|
|
161
132
|
createTooltipTriggerState,
|
|
162
133
|
resetTooltipState,
|
|
163
134
|
type TooltipTriggerProps,
|
|
164
135
|
type TooltipTriggerState,
|
|
165
|
-
} from
|
|
136
|
+
} from "./tooltip";
|
|
166
137
|
|
|
167
|
-
// Toast
|
|
168
138
|
export {
|
|
169
139
|
createToastState,
|
|
170
140
|
createToastQueue,
|
|
@@ -175,9 +145,8 @@ export {
|
|
|
175
145
|
type ToastQueueOptions,
|
|
176
146
|
type ToastStateProps,
|
|
177
147
|
type ToastState,
|
|
178
|
-
} from
|
|
148
|
+
} from "./toast";
|
|
179
149
|
|
|
180
|
-
// Disclosure
|
|
181
150
|
export {
|
|
182
151
|
createDisclosureState,
|
|
183
152
|
createDisclosureGroupState,
|
|
@@ -186,41 +155,44 @@ export {
|
|
|
186
155
|
type DisclosureGroupStateProps,
|
|
187
156
|
type DisclosureGroupState,
|
|
188
157
|
type Key as DisclosureKey,
|
|
189
|
-
} from
|
|
158
|
+
} from "./disclosure";
|
|
190
159
|
|
|
191
|
-
// Calendar
|
|
192
160
|
export {
|
|
193
|
-
// Calendar State
|
|
194
161
|
createCalendarState,
|
|
195
162
|
type CalendarStateProps,
|
|
196
163
|
type CalendarState,
|
|
197
164
|
type ValidationState,
|
|
198
|
-
|
|
165
|
+
type CalendarPageBehavior,
|
|
166
|
+
type CalendarSelectionAlignment,
|
|
167
|
+
type CalendarDayOfWeek,
|
|
199
168
|
createRangeCalendarState,
|
|
200
169
|
type RangeCalendarStateProps,
|
|
201
170
|
type RangeCalendarState,
|
|
202
171
|
type DateRange,
|
|
203
172
|
type RangeValue,
|
|
204
|
-
// Date Field State
|
|
205
173
|
createDateFieldState,
|
|
206
174
|
type DateFieldStateProps,
|
|
207
175
|
type DateFieldState,
|
|
208
176
|
type DateSegment,
|
|
209
177
|
type DateSegmentType,
|
|
210
|
-
// Time Field State
|
|
211
178
|
createTimeFieldState,
|
|
212
179
|
type TimeFieldStateProps,
|
|
213
180
|
type TimeFieldState,
|
|
214
181
|
type TimeSegment,
|
|
215
182
|
type TimeSegmentType,
|
|
216
183
|
type TimeValue,
|
|
217
|
-
|
|
184
|
+
createDatePickerState,
|
|
185
|
+
type DatePickerState,
|
|
218
186
|
type CalendarDate,
|
|
219
187
|
type CalendarDateTime,
|
|
220
188
|
type ZonedDateTime,
|
|
221
189
|
type DateValue,
|
|
222
190
|
type Time,
|
|
223
|
-
|
|
191
|
+
type Calendar,
|
|
192
|
+
type CalendarIdentifier,
|
|
193
|
+
type AnyCalendarDate,
|
|
194
|
+
createCalendar,
|
|
195
|
+
GregorianCalendar,
|
|
224
196
|
today,
|
|
225
197
|
now,
|
|
226
198
|
getLocalTimeZone,
|
|
@@ -252,11 +224,11 @@ export {
|
|
|
252
224
|
endOfYear,
|
|
253
225
|
getWeeksInMonth,
|
|
254
226
|
getDayOfWeek,
|
|
227
|
+
toCalendar,
|
|
255
228
|
minDate,
|
|
256
229
|
maxDate,
|
|
257
|
-
} from
|
|
230
|
+
} from "./calendar";
|
|
258
231
|
|
|
259
|
-
// Grid
|
|
260
232
|
export {
|
|
261
233
|
createGridState,
|
|
262
234
|
type GridState,
|
|
@@ -264,11 +236,11 @@ export {
|
|
|
264
236
|
type GridCollection,
|
|
265
237
|
type GridNode,
|
|
266
238
|
type GridNodeType,
|
|
267
|
-
} from
|
|
239
|
+
} from "./grid";
|
|
268
240
|
|
|
269
|
-
// Table
|
|
270
241
|
export {
|
|
271
242
|
createTableState,
|
|
243
|
+
createTableColumnResizeState,
|
|
272
244
|
TableCollection,
|
|
273
245
|
createTableCollection,
|
|
274
246
|
type TableState,
|
|
@@ -280,9 +252,12 @@ export {
|
|
|
280
252
|
type ColumnDefinition,
|
|
281
253
|
type RowDefinition,
|
|
282
254
|
type TableCollectionOptions,
|
|
283
|
-
|
|
255
|
+
type ColumnSize,
|
|
256
|
+
type ColumnResizeDefinition,
|
|
257
|
+
type TableColumnResizeStateProps,
|
|
258
|
+
type TableColumnResizeState,
|
|
259
|
+
} from "./table";
|
|
284
260
|
|
|
285
|
-
// Tree
|
|
286
261
|
export {
|
|
287
262
|
createTreeState,
|
|
288
263
|
TreeCollection,
|
|
@@ -292,44 +267,35 @@ export {
|
|
|
292
267
|
type TreeCollectionInterface,
|
|
293
268
|
type TreeNode,
|
|
294
269
|
type TreeItemData,
|
|
295
|
-
} from
|
|
270
|
+
} from "./tree";
|
|
296
271
|
|
|
297
|
-
// Color
|
|
298
272
|
export {
|
|
299
|
-
// Types
|
|
300
273
|
type Color,
|
|
301
274
|
type ColorFormat,
|
|
302
275
|
type ColorSpace,
|
|
303
276
|
type ColorChannel,
|
|
304
277
|
type ColorChannelRange,
|
|
305
278
|
type ColorAxes,
|
|
306
|
-
// Color utilities
|
|
307
279
|
parseColor,
|
|
308
280
|
normalizeColor,
|
|
309
281
|
createRGBColor,
|
|
310
282
|
createHSLColor,
|
|
311
283
|
createHSBColor,
|
|
312
|
-
// Color Slider State
|
|
313
284
|
createColorSliderState,
|
|
314
285
|
type ColorSliderStateOptions,
|
|
315
286
|
type ColorSliderState,
|
|
316
|
-
// Color Area State
|
|
317
287
|
createColorAreaState,
|
|
318
288
|
type ColorAreaStateOptions,
|
|
319
289
|
type ColorAreaState,
|
|
320
|
-
// Color Wheel State
|
|
321
290
|
createColorWheelState,
|
|
322
291
|
type ColorWheelStateOptions,
|
|
323
292
|
type ColorWheelState,
|
|
324
|
-
// Color Field State
|
|
325
293
|
createColorFieldState,
|
|
326
294
|
type ColorFieldStateOptions,
|
|
327
295
|
type ColorFieldState,
|
|
328
|
-
} from
|
|
296
|
+
} from "./color";
|
|
329
297
|
|
|
330
|
-
// Drag and Drop
|
|
331
298
|
export {
|
|
332
|
-
// Types
|
|
333
299
|
type DropOperation,
|
|
334
300
|
type DragItem,
|
|
335
301
|
type DragDropEvent,
|
|
@@ -368,26 +334,21 @@ export {
|
|
|
368
334
|
type DroppableCollectionBaseProps,
|
|
369
335
|
type DroppableCollectionProps,
|
|
370
336
|
type DraggableCollectionProps,
|
|
371
|
-
// Drag State
|
|
372
337
|
createDragState,
|
|
373
338
|
type DragStateOptions,
|
|
374
339
|
type DragState,
|
|
375
|
-
// Drop State
|
|
376
340
|
createDropState,
|
|
377
341
|
type DropStateOptions,
|
|
378
342
|
type DropState,
|
|
379
|
-
// Draggable Collection State
|
|
380
343
|
createDraggableCollectionState,
|
|
381
344
|
type DraggableCollectionStateOptions,
|
|
382
345
|
type DraggableCollectionState,
|
|
383
|
-
// Droppable Collection State
|
|
384
346
|
createDroppableCollectionState,
|
|
385
347
|
DIRECTORY_DRAG_TYPE,
|
|
386
348
|
type DroppableCollectionStateOptions,
|
|
387
349
|
type DroppableCollectionState,
|
|
388
|
-
} from
|
|
350
|
+
} from "./dnd";
|
|
389
351
|
|
|
390
|
-
// Form
|
|
391
352
|
export {
|
|
392
353
|
createFormValidationState,
|
|
393
354
|
mergeValidation,
|
|
@@ -402,12 +363,10 @@ export {
|
|
|
402
363
|
type ValidationFunction,
|
|
403
364
|
type ValidationBehavior,
|
|
404
365
|
type ValidityState,
|
|
405
|
-
} from
|
|
366
|
+
} from "./form";
|
|
406
367
|
|
|
407
|
-
|
|
408
|
-
export { createIsSSR, createId, canUseDOM, isServer } from './ssr';
|
|
368
|
+
export { createIsSSR, createId, canUseDOM, isServer } from "./ssr";
|
|
409
369
|
|
|
410
|
-
// Data Hooks
|
|
411
370
|
export {
|
|
412
371
|
createListData,
|
|
413
372
|
type ListOptions,
|
|
@@ -423,10 +382,10 @@ export {
|
|
|
423
382
|
type AsyncListLoadOptions,
|
|
424
383
|
type AsyncListStateUpdate,
|
|
425
384
|
type LoadingState,
|
|
426
|
-
} from
|
|
385
|
+
} from "./data";
|
|
386
|
+
|
|
387
|
+
export { getColorChannels } from "./color/getColorChannels";
|
|
427
388
|
|
|
428
|
-
|
|
429
|
-
export { getColorChannels } from './color/getColorChannels';
|
|
389
|
+
export { createStepListState, type StepListStateProps, type StepListState } from "./steplist";
|
|
430
390
|
|
|
431
|
-
|
|
432
|
-
export { access, isAccessor, type MaybeAccessor, type MaybeAccessorValue } from './utils';
|
|
391
|
+
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
|