@proyecto-viviana/solid-stately 0.2.4 → 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/LICENSE +21 -0
- package/README.md +30 -283
- package/dist/autocomplete/createAutocompleteState.d.ts +3 -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 +12 -3
- 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 +23 -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 +20 -0
- 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 +111 -0
- package/dist/data/createListData.d.ts +65 -0
- package/dist/data/createTreeData.d.ts +65 -0
- package/dist/data/index.d.ts +3 -0
- package/dist/datepicker/index.d.ts +8 -0
- 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 +17 -11
- package/dist/index.d.ts +31 -25
- package/dist/index.js +7990 -6264
- package/dist/index.js.map +1 -7
- package/dist/menu/index.d.ts +8 -0
- 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 +13 -4
- 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 +20 -3
- package/dist/select/index.d.ts +1 -1
- package/dist/selection/index.d.ts +11 -0
- 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 +15 -3
- package/dist/toast/index.d.ts +1 -1
- package/dist/toggle/createToggleGroupState.d.ts +45 -0
- package/dist/toggle/createToggleState.d.ts +2 -2
- package/dist/toggle/index.d.ts +2 -1
- package/dist/tooltip/createTooltipTriggerState.d.ts +2 -2
- package/dist/tooltip/index.d.ts +1 -1
- package/dist/tree/TreeCollection.d.ts +5 -4
- 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 +30 -30
- package/src/autocomplete/createAutocompleteState.d.ts +19 -17
- package/src/autocomplete/createAutocompleteState.ts +25 -32
- 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 +286 -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 +57 -30
- 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 +152 -146
- package/src/collections/createListState.d.ts +73 -58
- package/src/collections/createListState.ts +267 -264
- package/src/collections/createMenuState.d.ts +36 -31
- package/src/collections/createMenuState.ts +112 -106
- package/src/collections/createSelectionState.d.ts +78 -65
- package/src/collections/createSelectionState.ts +340 -336
- package/src/collections/index.d.ts +38 -6
- package/src/collections/index.ts +41 -46
- package/src/collections/types.d.ts +101 -101
- package/src/collections/types.ts +181 -169
- package/src/color/Color.d.ts +20 -5
- package/src/color/Color.ts +1054 -951
- package/src/color/createColorAreaState.d.ts +67 -65
- package/src/color/createColorAreaState.ts +301 -293
- package/src/color/createColorFieldState.d.ts +46 -44
- package/src/color/createColorFieldState.ts +428 -292
- package/src/color/createColorSliderState.d.ts +58 -56
- package/src/color/createColorSliderState.ts +272 -241
- package/src/color/createColorWheelState.d.ts +42 -40
- package/src/color/createColorWheelState.ts +248 -211
- package/src/color/getColorChannels.ts +36 -0
- package/src/color/index.d.ts +36 -7
- package/src/color/index.ts +44 -47
- package/src/color/types.d.ts +68 -63
- package/src/color/types.ts +119 -127
- package/src/combobox/createComboBoxState.d.ts +107 -105
- package/src/combobox/createComboBoxState.ts +790 -703
- package/src/combobox/index.d.ts +10 -2
- package/src/combobox/index.ts +13 -13
- package/src/data/createAsyncList.ts +403 -0
- package/src/data/createListData.ts +298 -0
- package/src/data/createTreeData.ts +646 -0
- package/src/data/index.ts +25 -0
- package/src/datepicker/index.ts +32 -0
- package/src/disclosure/createDisclosureState.d.ts +47 -43
- package/src/disclosure/createDisclosureState.ts +9 -23
- 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 +151 -153
- package/src/dnd/createDraggableCollectionState.d.ts +52 -41
- package/src/dnd/createDraggableCollectionState.ts +158 -165
- package/src/dnd/createDropState.d.ts +64 -45
- package/src/dnd/createDropState.ts +202 -212
- package/src/dnd/createDroppableCollectionState.d.ts +88 -59
- package/src/dnd/createDroppableCollectionState.ts +354 -357
- package/src/dnd/index.d.ts +54 -6
- package/src/dnd/index.ts +63 -76
- package/src/dnd/types.d.ts +167 -156
- package/src/dnd/types.ts +316 -317
- package/src/form/createFormValidationState.d.ts +47 -45
- package/src/form/createFormValidationState.ts +356 -389
- package/src/form/index.d.ts +16 -2
- package/src/form/index.ts +15 -15
- 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 +24 -17
- package/src/index.d.ts +310 -26
- package/src/index.ts +87 -79
- package/src/menu/index.ts +17 -0
- package/src/numberfield/createNumberFieldState.d.ts +56 -54
- package/src/numberfield/createNumberFieldState.ts +422 -383
- package/src/numberfield/index.d.ts +6 -2
- package/src/numberfield/index.ts +5 -5
- package/src/overlays/createOverlayTriggerState.d.ts +22 -20
- package/src/overlays/createOverlayTriggerState.ts +66 -67
- package/src/overlays/index.d.ts +6 -2
- package/src/overlays/index.ts +5 -5
- package/src/radio/createRadioGroupState.d.ts +54 -52
- package/src/radio/createRadioGroupState.ts +66 -30
- 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 +56 -62
- 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 +290 -181
- package/src/select/index.d.ts +2 -2
- package/src/select/index.ts +1 -5
- package/src/selection/index.ts +27 -0
- package/src/slider/createSliderState.d.ts +60 -60
- package/src/slider/createSliderState.ts +233 -211
- 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 +58 -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 -81
- package/src/toast/createToastState.ts +56 -44
- package/src/toast/index.d.ts +12 -2
- package/src/toast/index.ts +1 -1
- package/src/toggle/createToggleGroupState.ts +117 -0
- 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 +6 -4
- package/src/tooltip/createTooltipTriggerState.d.ts +17 -17
- package/src/tooltip/createTooltipTriggerState.ts +184 -183
- package/src/tooltip/index.d.ts +7 -2
- package/src/tooltip/index.ts +6 -6
- package/src/tree/TreeCollection.d.ts +26 -23
- package/src/tree/TreeCollection.ts +215 -175
- package/src/tree/createTreeState.d.ts +7 -4
- package/src/tree/createTreeState.ts +390 -392
- package/src/tree/index.d.ts +10 -4
- package/src/tree/index.ts +13 -13
- package/src/tree/types.d.ts +131 -126
- package/src/tree/types.ts +183 -174
- 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,49 +1,40 @@
|
|
|
1
|
-
// Toggle
|
|
2
1
|
export {
|
|
3
2
|
createToggleState,
|
|
3
|
+
createToggleGroupState,
|
|
4
4
|
type ToggleStateOptions,
|
|
5
5
|
type ToggleState,
|
|
6
|
-
|
|
6
|
+
type ToggleGroupProps,
|
|
7
|
+
type ToggleGroupState,
|
|
8
|
+
} from "./toggle";
|
|
7
9
|
|
|
8
|
-
// Autocomplete
|
|
9
10
|
export {
|
|
10
11
|
createAutocompleteState,
|
|
11
12
|
type AutocompleteState,
|
|
12
13
|
type AutocompleteStateOptions,
|
|
13
|
-
} from
|
|
14
|
+
} from "./autocomplete";
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
createTextFieldState,
|
|
18
|
-
type TextFieldStateOptions,
|
|
19
|
-
type TextFieldState,
|
|
20
|
-
} from './textfield';
|
|
16
|
+
export { createTextFieldState, type TextFieldStateOptions, type TextFieldState } from "./textfield";
|
|
21
17
|
|
|
22
|
-
// Checkbox
|
|
23
18
|
export {
|
|
24
19
|
createCheckboxGroupState,
|
|
25
20
|
type CheckboxGroupProps,
|
|
26
21
|
type CheckboxGroupState,
|
|
27
|
-
} from
|
|
22
|
+
} from "./checkbox";
|
|
28
23
|
|
|
29
|
-
// Radio
|
|
30
24
|
export {
|
|
31
25
|
createRadioGroupState,
|
|
32
26
|
radioGroupSyncVersion,
|
|
33
27
|
type RadioGroupProps,
|
|
34
28
|
type RadioGroupState,
|
|
35
|
-
} from
|
|
29
|
+
} from "./radio";
|
|
36
30
|
|
|
37
|
-
// Overlays
|
|
38
31
|
export {
|
|
39
32
|
createOverlayTriggerState,
|
|
40
33
|
type OverlayTriggerProps,
|
|
41
34
|
type OverlayTriggerState,
|
|
42
|
-
} from
|
|
35
|
+
} from "./overlays";
|
|
43
36
|
|
|
44
|
-
// Collections
|
|
45
37
|
export {
|
|
46
|
-
// Types
|
|
47
38
|
type Key,
|
|
48
39
|
type SelectionMode,
|
|
49
40
|
type SelectionBehavior,
|
|
@@ -57,37 +48,50 @@ export {
|
|
|
57
48
|
type CollectionBase,
|
|
58
49
|
type SingleSelection,
|
|
59
50
|
type MultipleSelection,
|
|
60
|
-
// ListCollection
|
|
61
51
|
ListCollection,
|
|
62
52
|
createListCollection,
|
|
63
|
-
// Selection State
|
|
64
53
|
createSelectionState,
|
|
65
54
|
type SelectionStateProps,
|
|
66
55
|
type SelectionState,
|
|
67
|
-
// List State
|
|
68
56
|
createListState,
|
|
69
57
|
createSingleSelectListState,
|
|
70
58
|
type ListStateProps,
|
|
71
59
|
type ListState,
|
|
72
60
|
type SingleSelectListStateProps,
|
|
73
61
|
type SingleSelectListState,
|
|
74
|
-
// Menu State
|
|
75
62
|
createMenuState,
|
|
76
63
|
createMenuTriggerState,
|
|
77
64
|
type MenuStateProps,
|
|
78
65
|
type MenuState,
|
|
79
66
|
type MenuTriggerStateProps,
|
|
80
67
|
type MenuTriggerState,
|
|
81
|
-
} from
|
|
68
|
+
} from "./collections";
|
|
82
69
|
|
|
83
|
-
//
|
|
70
|
+
// Selection (module-compat aliases)
|
|
84
71
|
export {
|
|
85
|
-
|
|
86
|
-
type
|
|
87
|
-
type
|
|
88
|
-
} from
|
|
72
|
+
useMultipleSelectionState,
|
|
73
|
+
type MultipleSelectionStateProps,
|
|
74
|
+
type MultipleSelectionState,
|
|
75
|
+
} from "./selection";
|
|
76
|
+
|
|
77
|
+
// Menu (module-compat aliases)
|
|
78
|
+
export { useMenuTriggerState } from "./menu";
|
|
79
|
+
|
|
80
|
+
// Datepicker (module-compat aliases)
|
|
81
|
+
export {
|
|
82
|
+
useDateFieldState,
|
|
83
|
+
useDatePickerState,
|
|
84
|
+
useDateRangePickerState,
|
|
85
|
+
useTimeFieldState,
|
|
86
|
+
type DateFieldStateOptions,
|
|
87
|
+
type DatePickerStateOptions,
|
|
88
|
+
type DateRangePickerStateOptions,
|
|
89
|
+
type TimeFieldStateOptions,
|
|
90
|
+
type SegmentType,
|
|
91
|
+
} from "./datepicker";
|
|
92
|
+
|
|
93
|
+
export { createSelectState, type SelectStateProps, type SelectState } from "./select";
|
|
89
94
|
|
|
90
|
-
// ComboBox
|
|
91
95
|
export {
|
|
92
96
|
createComboBoxState,
|
|
93
97
|
defaultContainsFilter,
|
|
@@ -95,48 +99,42 @@ export {
|
|
|
95
99
|
type ComboBoxStateProps,
|
|
96
100
|
type FilterFn,
|
|
97
101
|
type MenuTriggerAction,
|
|
98
|
-
} from
|
|
102
|
+
} from "./combobox";
|
|
99
103
|
|
|
100
|
-
// Tabs
|
|
101
104
|
export {
|
|
102
105
|
createTabListState,
|
|
103
106
|
type TabListStateProps,
|
|
104
107
|
type TabListState,
|
|
105
108
|
type KeyboardActivation,
|
|
106
109
|
type TabOrientation,
|
|
107
|
-
} from
|
|
110
|
+
} from "./tabs";
|
|
108
111
|
|
|
109
|
-
// NumberField
|
|
110
112
|
export {
|
|
111
113
|
createNumberFieldState,
|
|
112
114
|
type NumberFieldStateProps,
|
|
113
115
|
type NumberFieldState,
|
|
114
|
-
} from
|
|
116
|
+
} from "./numberfield";
|
|
115
117
|
|
|
116
|
-
// SearchField
|
|
117
118
|
export {
|
|
118
119
|
createSearchFieldState,
|
|
119
120
|
type SearchFieldStateProps,
|
|
120
121
|
type SearchFieldState,
|
|
121
|
-
} from
|
|
122
|
+
} from "./searchfield";
|
|
122
123
|
|
|
123
|
-
// Slider
|
|
124
124
|
export {
|
|
125
125
|
createSliderState,
|
|
126
126
|
type SliderStateProps,
|
|
127
127
|
type SliderState,
|
|
128
128
|
type SliderOrientation,
|
|
129
|
-
} from
|
|
129
|
+
} from "./slider";
|
|
130
130
|
|
|
131
|
-
// Tooltip
|
|
132
131
|
export {
|
|
133
132
|
createTooltipTriggerState,
|
|
134
133
|
resetTooltipState,
|
|
135
134
|
type TooltipTriggerProps,
|
|
136
135
|
type TooltipTriggerState,
|
|
137
|
-
} from
|
|
136
|
+
} from "./tooltip";
|
|
138
137
|
|
|
139
|
-
// Toast
|
|
140
138
|
export {
|
|
141
139
|
createToastState,
|
|
142
140
|
createToastQueue,
|
|
@@ -147,9 +145,8 @@ export {
|
|
|
147
145
|
type ToastQueueOptions,
|
|
148
146
|
type ToastStateProps,
|
|
149
147
|
type ToastState,
|
|
150
|
-
} from
|
|
148
|
+
} from "./toast";
|
|
151
149
|
|
|
152
|
-
// Disclosure
|
|
153
150
|
export {
|
|
154
151
|
createDisclosureState,
|
|
155
152
|
createDisclosureGroupState,
|
|
@@ -158,41 +155,44 @@ export {
|
|
|
158
155
|
type DisclosureGroupStateProps,
|
|
159
156
|
type DisclosureGroupState,
|
|
160
157
|
type Key as DisclosureKey,
|
|
161
|
-
} from
|
|
158
|
+
} from "./disclosure";
|
|
162
159
|
|
|
163
|
-
// Calendar
|
|
164
160
|
export {
|
|
165
|
-
// Calendar State
|
|
166
161
|
createCalendarState,
|
|
167
162
|
type CalendarStateProps,
|
|
168
163
|
type CalendarState,
|
|
169
164
|
type ValidationState,
|
|
170
|
-
|
|
165
|
+
type CalendarPageBehavior,
|
|
166
|
+
type CalendarSelectionAlignment,
|
|
167
|
+
type CalendarDayOfWeek,
|
|
171
168
|
createRangeCalendarState,
|
|
172
169
|
type RangeCalendarStateProps,
|
|
173
170
|
type RangeCalendarState,
|
|
174
171
|
type DateRange,
|
|
175
172
|
type RangeValue,
|
|
176
|
-
// Date Field State
|
|
177
173
|
createDateFieldState,
|
|
178
174
|
type DateFieldStateProps,
|
|
179
175
|
type DateFieldState,
|
|
180
176
|
type DateSegment,
|
|
181
177
|
type DateSegmentType,
|
|
182
|
-
// Time Field State
|
|
183
178
|
createTimeFieldState,
|
|
184
179
|
type TimeFieldStateProps,
|
|
185
180
|
type TimeFieldState,
|
|
186
181
|
type TimeSegment,
|
|
187
182
|
type TimeSegmentType,
|
|
188
183
|
type TimeValue,
|
|
189
|
-
|
|
184
|
+
createDatePickerState,
|
|
185
|
+
type DatePickerState,
|
|
190
186
|
type CalendarDate,
|
|
191
187
|
type CalendarDateTime,
|
|
192
188
|
type ZonedDateTime,
|
|
193
189
|
type DateValue,
|
|
194
190
|
type Time,
|
|
195
|
-
|
|
191
|
+
type Calendar,
|
|
192
|
+
type CalendarIdentifier,
|
|
193
|
+
type AnyCalendarDate,
|
|
194
|
+
createCalendar,
|
|
195
|
+
GregorianCalendar,
|
|
196
196
|
today,
|
|
197
197
|
now,
|
|
198
198
|
getLocalTimeZone,
|
|
@@ -224,11 +224,11 @@ export {
|
|
|
224
224
|
endOfYear,
|
|
225
225
|
getWeeksInMonth,
|
|
226
226
|
getDayOfWeek,
|
|
227
|
+
toCalendar,
|
|
227
228
|
minDate,
|
|
228
229
|
maxDate,
|
|
229
|
-
} from
|
|
230
|
+
} from "./calendar";
|
|
230
231
|
|
|
231
|
-
// Grid
|
|
232
232
|
export {
|
|
233
233
|
createGridState,
|
|
234
234
|
type GridState,
|
|
@@ -236,11 +236,11 @@ export {
|
|
|
236
236
|
type GridCollection,
|
|
237
237
|
type GridNode,
|
|
238
238
|
type GridNodeType,
|
|
239
|
-
} from
|
|
239
|
+
} from "./grid";
|
|
240
240
|
|
|
241
|
-
// Table
|
|
242
241
|
export {
|
|
243
242
|
createTableState,
|
|
243
|
+
createTableColumnResizeState,
|
|
244
244
|
TableCollection,
|
|
245
245
|
createTableCollection,
|
|
246
246
|
type TableState,
|
|
@@ -252,9 +252,12 @@ export {
|
|
|
252
252
|
type ColumnDefinition,
|
|
253
253
|
type RowDefinition,
|
|
254
254
|
type TableCollectionOptions,
|
|
255
|
-
|
|
255
|
+
type ColumnSize,
|
|
256
|
+
type ColumnResizeDefinition,
|
|
257
|
+
type TableColumnResizeStateProps,
|
|
258
|
+
type TableColumnResizeState,
|
|
259
|
+
} from "./table";
|
|
256
260
|
|
|
257
|
-
// Tree
|
|
258
261
|
export {
|
|
259
262
|
createTreeState,
|
|
260
263
|
TreeCollection,
|
|
@@ -264,44 +267,35 @@ export {
|
|
|
264
267
|
type TreeCollectionInterface,
|
|
265
268
|
type TreeNode,
|
|
266
269
|
type TreeItemData,
|
|
267
|
-
} from
|
|
270
|
+
} from "./tree";
|
|
268
271
|
|
|
269
|
-
// Color
|
|
270
272
|
export {
|
|
271
|
-
// Types
|
|
272
273
|
type Color,
|
|
273
274
|
type ColorFormat,
|
|
274
275
|
type ColorSpace,
|
|
275
276
|
type ColorChannel,
|
|
276
277
|
type ColorChannelRange,
|
|
277
278
|
type ColorAxes,
|
|
278
|
-
// Color utilities
|
|
279
279
|
parseColor,
|
|
280
280
|
normalizeColor,
|
|
281
281
|
createRGBColor,
|
|
282
282
|
createHSLColor,
|
|
283
283
|
createHSBColor,
|
|
284
|
-
// Color Slider State
|
|
285
284
|
createColorSliderState,
|
|
286
285
|
type ColorSliderStateOptions,
|
|
287
286
|
type ColorSliderState,
|
|
288
|
-
// Color Area State
|
|
289
287
|
createColorAreaState,
|
|
290
288
|
type ColorAreaStateOptions,
|
|
291
289
|
type ColorAreaState,
|
|
292
|
-
// Color Wheel State
|
|
293
290
|
createColorWheelState,
|
|
294
291
|
type ColorWheelStateOptions,
|
|
295
292
|
type ColorWheelState,
|
|
296
|
-
// Color Field State
|
|
297
293
|
createColorFieldState,
|
|
298
294
|
type ColorFieldStateOptions,
|
|
299
295
|
type ColorFieldState,
|
|
300
|
-
} from
|
|
296
|
+
} from "./color";
|
|
301
297
|
|
|
302
|
-
// Drag and Drop
|
|
303
298
|
export {
|
|
304
|
-
// Types
|
|
305
299
|
type DropOperation,
|
|
306
300
|
type DragItem,
|
|
307
301
|
type DragDropEvent,
|
|
@@ -340,26 +334,21 @@ export {
|
|
|
340
334
|
type DroppableCollectionBaseProps,
|
|
341
335
|
type DroppableCollectionProps,
|
|
342
336
|
type DraggableCollectionProps,
|
|
343
|
-
// Drag State
|
|
344
337
|
createDragState,
|
|
345
338
|
type DragStateOptions,
|
|
346
339
|
type DragState,
|
|
347
|
-
// Drop State
|
|
348
340
|
createDropState,
|
|
349
341
|
type DropStateOptions,
|
|
350
342
|
type DropState,
|
|
351
|
-
// Draggable Collection State
|
|
352
343
|
createDraggableCollectionState,
|
|
353
344
|
type DraggableCollectionStateOptions,
|
|
354
345
|
type DraggableCollectionState,
|
|
355
|
-
// Droppable Collection State
|
|
356
346
|
createDroppableCollectionState,
|
|
357
347
|
DIRECTORY_DRAG_TYPE,
|
|
358
348
|
type DroppableCollectionStateOptions,
|
|
359
349
|
type DroppableCollectionState,
|
|
360
|
-
} from
|
|
350
|
+
} from "./dnd";
|
|
361
351
|
|
|
362
|
-
// Form
|
|
363
352
|
export {
|
|
364
353
|
createFormValidationState,
|
|
365
354
|
mergeValidation,
|
|
@@ -374,10 +363,29 @@ export {
|
|
|
374
363
|
type ValidationFunction,
|
|
375
364
|
type ValidationBehavior,
|
|
376
365
|
type ValidityState,
|
|
377
|
-
} from
|
|
366
|
+
} from "./form";
|
|
367
|
+
|
|
368
|
+
export { createIsSSR, createId, canUseDOM, isServer } from "./ssr";
|
|
369
|
+
|
|
370
|
+
export {
|
|
371
|
+
createListData,
|
|
372
|
+
type ListOptions,
|
|
373
|
+
type ListData,
|
|
374
|
+
createTreeData,
|
|
375
|
+
type TreeOptions,
|
|
376
|
+
type TreeData,
|
|
377
|
+
type TreeDataNode,
|
|
378
|
+
createAsyncList,
|
|
379
|
+
type AsyncListOptions,
|
|
380
|
+
type AsyncListData,
|
|
381
|
+
type AsyncListLoadFunction,
|
|
382
|
+
type AsyncListLoadOptions,
|
|
383
|
+
type AsyncListStateUpdate,
|
|
384
|
+
type LoadingState,
|
|
385
|
+
} from "./data";
|
|
386
|
+
|
|
387
|
+
export { getColorChannels } from "./color/getColorChannels";
|
|
378
388
|
|
|
379
|
-
|
|
380
|
-
export { createIsSSR, createId, canUseDOM, isServer } from './ssr';
|
|
389
|
+
export { createStepListState, type StepListStateProps, type StepListState } from "./steplist";
|
|
381
390
|
|
|
382
|
-
|
|
383
|
-
export { access, isAccessor, type MaybeAccessor, type MaybeAccessorValue } from './utils';
|
|
391
|
+
export { access, isAccessor, type MaybeAccessor, type MaybeAccessorValue } from "./utils";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Menu compatibility surface.
|
|
3
|
+
*
|
|
4
|
+
* Exposes React Stately-like menu hook names while using existing
|
|
5
|
+
* Solid menu state primitives.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
createMenuState,
|
|
10
|
+
createMenuTriggerState,
|
|
11
|
+
type MenuStateProps,
|
|
12
|
+
type MenuState,
|
|
13
|
+
type MenuTriggerStateProps,
|
|
14
|
+
type MenuTriggerState,
|
|
15
|
+
} from "../collections/createMenuState";
|
|
16
|
+
|
|
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
|