@proyecto-viviana/solid-stately 0.0.6 → 0.1.1
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 +312 -0
- package/dist/index.d.ts +3363 -6
- package/dist/index.js +6194 -19
- package/dist/index.js.map +1 -1
- package/package.json +52 -48
- package/src/autocomplete/createAutocompleteState.d.ts +46 -0
- package/src/autocomplete/createAutocompleteState.d.ts.map +1 -0
- package/src/autocomplete/createAutocompleteState.ts +90 -0
- package/src/autocomplete/index.d.ts +2 -0
- package/src/autocomplete/index.d.ts.map +1 -0
- package/src/autocomplete/index.ts +5 -0
- package/src/calendar/createCalendarState.d.ts +130 -0
- package/src/calendar/createCalendarState.d.ts.map +1 -0
- package/src/calendar/createCalendarState.ts +461 -0
- package/src/calendar/createDateFieldState.d.ts +110 -0
- package/src/calendar/createDateFieldState.d.ts.map +1 -0
- package/src/calendar/createDateFieldState.ts +562 -0
- package/src/calendar/createRangeCalendarState.d.ts +146 -0
- package/src/calendar/createRangeCalendarState.d.ts.map +1 -0
- package/src/calendar/createRangeCalendarState.ts +535 -0
- package/src/calendar/createTimeFieldState.d.ts +95 -0
- package/src/calendar/createTimeFieldState.d.ts.map +1 -0
- package/src/calendar/createTimeFieldState.ts +483 -0
- package/src/calendar/index.d.ts +7 -0
- package/src/calendar/index.d.ts.map +1 -0
- package/src/calendar/index.ts +81 -0
- package/{dist → src}/checkbox/createCheckboxGroupState.d.ts +1 -0
- package/src/checkbox/createCheckboxGroupState.d.ts.map +1 -0
- package/{dist → src}/checkbox/index.d.ts +1 -0
- package/src/checkbox/index.d.ts.map +1 -0
- package/src/collections/ListCollection.d.ts +37 -0
- package/src/collections/ListCollection.d.ts.map +1 -0
- package/src/collections/ListCollection.ts +146 -0
- package/src/collections/createListState.d.ts +79 -0
- package/src/collections/createListState.d.ts.map +1 -0
- package/src/collections/createListState.ts +264 -0
- package/src/collections/createMenuState.d.ts +50 -0
- package/src/collections/createMenuState.d.ts.map +1 -0
- package/src/collections/createMenuState.ts +106 -0
- package/src/collections/createSelectionState.d.ts +76 -0
- package/src/collections/createSelectionState.d.ts.map +1 -0
- package/src/collections/createSelectionState.ts +336 -0
- package/src/collections/index.d.ts +6 -0
- package/src/collections/index.d.ts.map +1 -0
- package/src/collections/index.ts +46 -0
- package/src/collections/types.d.ts +147 -0
- package/src/collections/types.d.ts.map +1 -0
- package/src/collections/types.ts +169 -0
- package/src/color/Color.d.ts +28 -0
- package/src/color/Color.d.ts.map +1 -0
- package/src/color/Color.ts +951 -0
- package/src/color/createColorAreaState.d.ts +76 -0
- package/src/color/createColorAreaState.d.ts.map +1 -0
- package/src/color/createColorAreaState.ts +293 -0
- package/src/color/createColorFieldState.d.ts +55 -0
- package/src/color/createColorFieldState.d.ts.map +1 -0
- package/src/color/createColorFieldState.ts +292 -0
- package/src/color/createColorSliderState.d.ts +67 -0
- package/src/color/createColorSliderState.d.ts.map +1 -0
- package/src/color/createColorSliderState.ts +241 -0
- package/src/color/createColorWheelState.d.ts +51 -0
- package/src/color/createColorWheelState.d.ts.map +1 -0
- package/src/color/createColorWheelState.ts +211 -0
- package/src/color/index.d.ts +10 -0
- package/src/color/index.d.ts.map +1 -0
- package/src/color/index.ts +47 -0
- package/src/color/types.d.ts +106 -0
- package/src/color/types.d.ts.map +1 -0
- package/src/color/types.ts +127 -0
- package/src/combobox/createComboBoxState.d.ts +125 -0
- package/src/combobox/createComboBoxState.d.ts.map +1 -0
- package/src/combobox/createComboBoxState.ts +703 -0
- package/src/combobox/index.d.ts +5 -0
- package/src/combobox/index.d.ts.map +1 -0
- package/src/combobox/index.ts +13 -0
- package/src/disclosure/createDisclosureState.d.ts +64 -0
- package/src/disclosure/createDisclosureState.d.ts.map +1 -0
- package/src/disclosure/createDisclosureState.ts +193 -0
- package/src/disclosure/index.d.ts +2 -0
- package/src/disclosure/index.d.ts.map +1 -0
- package/src/disclosure/index.ts +9 -0
- package/src/dnd/createDragState.d.ts +59 -0
- package/src/dnd/createDragState.d.ts.map +1 -0
- package/src/dnd/createDragState.ts +153 -0
- package/src/dnd/createDraggableCollectionState.d.ts +57 -0
- package/src/dnd/createDraggableCollectionState.d.ts.map +1 -0
- package/src/dnd/createDraggableCollectionState.ts +165 -0
- package/src/dnd/createDropState.d.ts +61 -0
- package/src/dnd/createDropState.d.ts.map +1 -0
- package/src/dnd/createDropState.ts +212 -0
- package/src/dnd/createDroppableCollectionState.d.ts +78 -0
- package/src/dnd/createDroppableCollectionState.d.ts.map +1 -0
- package/src/dnd/createDroppableCollectionState.ts +357 -0
- package/src/dnd/index.d.ts +11 -0
- package/src/dnd/index.d.ts.map +1 -0
- package/src/dnd/index.ts +76 -0
- package/src/dnd/types.d.ts +264 -0
- package/src/dnd/types.d.ts.map +1 -0
- package/src/dnd/types.ts +317 -0
- package/src/form/createFormValidationState.d.ts +100 -0
- package/src/form/createFormValidationState.d.ts.map +1 -0
- package/src/form/createFormValidationState.ts +389 -0
- package/src/form/index.d.ts +2 -0
- package/src/form/index.d.ts.map +1 -0
- package/src/form/index.ts +15 -0
- package/src/grid/createGridState.d.ts +12 -0
- package/src/grid/createGridState.d.ts.map +1 -0
- package/src/grid/createGridState.ts +327 -0
- package/src/grid/index.d.ts +7 -0
- package/src/grid/index.d.ts.map +1 -0
- package/src/grid/index.ts +13 -0
- package/src/grid/types.d.ts +156 -0
- package/src/grid/types.d.ts.map +1 -0
- package/src/grid/types.ts +179 -0
- package/src/index.d.ts +26 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.ts +350 -1
- package/src/numberfield/createNumberFieldState.d.ts +65 -0
- package/src/numberfield/createNumberFieldState.d.ts.map +1 -0
- package/src/numberfield/createNumberFieldState.ts +383 -0
- package/src/numberfield/index.d.ts +2 -0
- package/src/numberfield/index.d.ts.map +1 -0
- package/src/numberfield/index.ts +5 -0
- package/src/overlays/createOverlayTriggerState.d.ts +32 -0
- package/src/overlays/createOverlayTriggerState.d.ts.map +1 -0
- package/src/overlays/createOverlayTriggerState.ts +67 -0
- package/src/overlays/index.d.ts +2 -0
- package/src/overlays/index.d.ts.map +1 -0
- package/src/overlays/index.ts +5 -0
- package/{dist → src}/radio/createRadioGroupState.d.ts +1 -0
- package/src/radio/createRadioGroupState.d.ts.map +1 -0
- package/{dist → src}/radio/index.d.ts +1 -0
- package/src/radio/index.d.ts.map +1 -0
- package/src/searchfield/createSearchFieldState.d.ts +25 -0
- package/src/searchfield/createSearchFieldState.d.ts.map +1 -0
- package/src/searchfield/createSearchFieldState.ts +62 -0
- package/src/searchfield/index.d.ts +3 -0
- package/src/searchfield/index.d.ts.map +1 -0
- package/src/searchfield/index.ts +5 -0
- package/src/select/createSelectState.d.ts +73 -0
- package/src/select/createSelectState.d.ts.map +1 -0
- package/src/select/createSelectState.ts +181 -0
- package/src/select/index.d.ts +2 -0
- package/src/select/index.d.ts.map +1 -0
- package/src/select/index.ts +5 -0
- package/src/slider/createSliderState.d.ts +72 -0
- package/src/slider/createSliderState.d.ts.map +1 -0
- package/src/slider/createSliderState.ts +211 -0
- package/src/slider/index.d.ts +3 -0
- package/src/slider/index.d.ts.map +1 -0
- package/src/slider/index.ts +6 -0
- package/{dist → src}/ssr/index.d.ts +5 -0
- package/src/ssr/index.d.ts.map +1 -0
- package/src/ssr/index.ts +6 -1
- package/src/table/TableCollection.d.ts +52 -0
- package/src/table/TableCollection.d.ts.map +1 -0
- package/src/table/TableCollection.ts +388 -0
- package/src/table/createTableState.d.ts +12 -0
- package/src/table/createTableState.d.ts.map +1 -0
- package/src/table/createTableState.ts +127 -0
- package/src/table/index.d.ts +8 -0
- package/src/table/index.d.ts.map +1 -0
- package/src/table/index.ts +18 -0
- package/src/table/types.d.ts +139 -0
- package/src/table/types.d.ts.map +1 -0
- package/src/table/types.ts +150 -0
- package/src/tabs/createTabListState.d.ts +68 -0
- package/src/tabs/createTabListState.d.ts.map +1 -0
- package/src/tabs/createTabListState.ts +240 -0
- package/src/tabs/index.d.ts +2 -0
- package/src/tabs/index.d.ts.map +1 -0
- package/src/tabs/index.ts +7 -0
- package/{dist → src}/textfield/createTextFieldState.d.ts +1 -0
- package/src/textfield/createTextFieldState.d.ts.map +1 -0
- package/{dist → src}/textfield/index.d.ts +1 -0
- package/src/textfield/index.d.ts.map +1 -0
- package/src/toast/createToastState.d.ts +118 -0
- package/src/toast/createToastState.d.ts.map +1 -0
- package/src/toast/createToastState.ts +316 -0
- package/src/toast/index.d.ts +2 -0
- package/src/toast/index.d.ts.map +1 -0
- package/src/toast/index.ts +11 -0
- package/{dist → src}/toggle/createToggleState.d.ts +1 -0
- package/src/toggle/createToggleState.d.ts.map +1 -0
- package/{dist → src}/toggle/index.d.ts +1 -0
- package/src/toggle/index.d.ts.map +1 -0
- package/src/tooltip/createTooltipTriggerState.d.ts +39 -0
- package/src/tooltip/createTooltipTriggerState.d.ts.map +1 -0
- package/src/tooltip/createTooltipTriggerState.ts +183 -0
- package/src/tooltip/index.d.ts +2 -0
- package/src/tooltip/index.d.ts.map +1 -0
- package/src/tooltip/index.ts +6 -0
- package/src/tree/TreeCollection.d.ts +40 -0
- package/src/tree/TreeCollection.d.ts.map +1 -0
- package/src/tree/TreeCollection.ts +175 -0
- package/src/tree/createTreeState.d.ts +14 -0
- package/src/tree/createTreeState.d.ts.map +1 -0
- package/src/tree/createTreeState.ts +392 -0
- package/src/tree/index.d.ts +7 -0
- package/src/tree/index.d.ts.map +1 -0
- package/src/tree/index.ts +13 -0
- package/src/tree/types.d.ts +157 -0
- package/src/tree/types.d.ts.map +1 -0
- package/src/tree/types.ts +174 -0
- package/{dist → src}/utils/index.d.ts +1 -0
- package/src/utils/index.d.ts.map +1 -0
- package/{dist → src}/utils/reactivity.d.ts +1 -0
- package/src/utils/reactivity.d.ts.map +1 -0
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { createToggleState, type ToggleStateOptions, type ToggleState, } from './toggle';
|
|
2
|
+
export { createAutocompleteState, type AutocompleteState, type AutocompleteStateOptions, } from './autocomplete';
|
|
3
|
+
export { createTextFieldState, type TextFieldStateOptions, type TextFieldState, } from './textfield';
|
|
4
|
+
export { createCheckboxGroupState, type CheckboxGroupProps, type CheckboxGroupState, } from './checkbox';
|
|
5
|
+
export { createRadioGroupState, radioGroupSyncVersion, type RadioGroupProps, type RadioGroupState, } from './radio';
|
|
6
|
+
export { createOverlayTriggerState, type OverlayTriggerProps, type OverlayTriggerState, } from './overlays';
|
|
7
|
+
export { type Key, type SelectionMode, type SelectionBehavior, type Selection, type FocusStrategy, type DisabledBehavior, type CollectionNode, type Collection, type ItemProps, type SectionProps, type CollectionBase, type SingleSelection, type MultipleSelection, ListCollection, createListCollection, createSelectionState, type SelectionStateProps, type SelectionState, createListState, createSingleSelectListState, type ListStateProps, type ListState, type SingleSelectListStateProps, type SingleSelectListState, createMenuState, createMenuTriggerState, type MenuStateProps, type MenuState, type MenuTriggerStateProps, type MenuTriggerState, } from './collections';
|
|
8
|
+
export { createSelectState, type SelectStateProps, type SelectState, } from './select';
|
|
9
|
+
export { createComboBoxState, defaultContainsFilter, type ComboBoxState, type ComboBoxStateProps, type FilterFn, type MenuTriggerAction, } from './combobox';
|
|
10
|
+
export { createTabListState, type TabListStateProps, type TabListState, type KeyboardActivation, type TabOrientation, } from './tabs';
|
|
11
|
+
export { createNumberFieldState, type NumberFieldStateProps, type NumberFieldState, } from './numberfield';
|
|
12
|
+
export { createSearchFieldState, type SearchFieldStateProps, type SearchFieldState, } from './searchfield';
|
|
13
|
+
export { createSliderState, type SliderStateProps, type SliderState, type SliderOrientation, } from './slider';
|
|
14
|
+
export { createTooltipTriggerState, resetTooltipState, type TooltipTriggerProps, type TooltipTriggerState, } from './tooltip';
|
|
15
|
+
export { createToastState, createToastQueue, ToastQueue, Timer, type ToastOptions, type QueuedToast, type ToastQueueOptions, type ToastStateProps, type ToastState, } from './toast';
|
|
16
|
+
export { createDisclosureState, createDisclosureGroupState, type DisclosureStateProps, type DisclosureState, type DisclosureGroupStateProps, type DisclosureGroupState, type Key as DisclosureKey, } from './disclosure';
|
|
17
|
+
export { createCalendarState, type CalendarStateProps, type CalendarState, type ValidationState, createRangeCalendarState, type RangeCalendarStateProps, type RangeCalendarState, type DateRange, type RangeValue, createDateFieldState, type DateFieldStateProps, type DateFieldState, type DateSegment, type DateSegmentType, createTimeFieldState, type TimeFieldStateProps, type TimeFieldState, type TimeSegment, type TimeSegmentType, type TimeValue, type CalendarDate, type CalendarDateTime, type ZonedDateTime, type DateValue, type Time, today, now, getLocalTimeZone, parseDate, parseDateTime, parseTime, parseAbsolute, parseAbsoluteToLocal, parseZonedDateTime, toCalendarDate, toCalendarDateTime, toZoned, toTime, CalendarDateClass, CalendarDateTimeClass, ZonedDateTimeClass, TimeClass, DateFormatter, isSameDay, isSameMonth, isSameYear, isToday, isWeekend, startOfMonth, endOfMonth, startOfWeek, endOfWeek, startOfYear, endOfYear, getWeeksInMonth, getDayOfWeek, minDate, maxDate, } from './calendar';
|
|
18
|
+
export { createGridState, type GridState, type GridStateOptions, type GridCollection, type GridNode, type GridNodeType, } from './grid';
|
|
19
|
+
export { createTableState, TableCollection, createTableCollection, type TableState, type TableStateOptions, type ITableCollection, type SortDescriptor, type SortDirection, type Sortable, type ColumnDefinition, type RowDefinition, type TableCollectionOptions, } from './table';
|
|
20
|
+
export { createTreeState, TreeCollection, createTreeCollection, type TreeState, type TreeStateOptions, type TreeCollectionInterface, type TreeNode, type TreeItemData, } from './tree';
|
|
21
|
+
export { type Color, type ColorFormat, type ColorSpace, type ColorChannel, type ColorChannelRange, type ColorAxes, parseColor, normalizeColor, createRGBColor, createHSLColor, createHSBColor, createColorSliderState, type ColorSliderStateOptions, type ColorSliderState, createColorAreaState, type ColorAreaStateOptions, type ColorAreaState, createColorWheelState, type ColorWheelStateOptions, type ColorWheelState, createColorFieldState, type ColorFieldStateOptions, type ColorFieldState, } from './color';
|
|
22
|
+
export { type DropOperation, type DragItem, type DragDropEvent, type DragStartEvent, type DragMoveEvent, type DragEndEvent, type DropEnterEvent, type DropMoveEvent, type DropActivateEvent, type DropExitEvent, type TextDropItem, type FileDropItem, type DirectoryDropItem, type DropItem, type DropEvent, type DropPosition, type RootDropTarget, type ItemDropTarget, type DropTarget, type DroppableCollectionEnterEvent, type DroppableCollectionMoveEvent, type DroppableCollectionActivateEvent, type DroppableCollectionExitEvent, type DroppableCollectionDropEvent, type DroppableCollectionInsertDropEvent, type DroppableCollectionRootDropEvent, type DroppableCollectionOnItemDropEvent, type DroppableCollectionReorderEvent, type DragTypes, type DropTargetDelegate, type DraggableCollectionStartEvent, type DraggableCollectionMoveEvent, type DraggableCollectionEndEvent, type DragPreviewRenderer, type DroppableCollectionUtilityOptions, type DroppableCollectionBaseProps, type DroppableCollectionProps, type DraggableCollectionProps, createDragState, type DragStateOptions, type DragState, createDropState, type DropStateOptions, type DropState, createDraggableCollectionState, type DraggableCollectionStateOptions, type DraggableCollectionState, createDroppableCollectionState, DIRECTORY_DRAG_TYPE, type DroppableCollectionStateOptions, type DroppableCollectionState, } from './dnd';
|
|
23
|
+
export { createFormValidationState, mergeValidation, FormValidationContext, privateValidationStateProp, VALID_VALIDITY_STATE, DEFAULT_VALIDATION_RESULT, type FormValidationState, type FormValidationProps, type ValidationResult, type ValidationErrors, type ValidationFunction, type ValidationBehavior, type ValidityState, } from './form';
|
|
24
|
+
export { createIsSSR, createId, canUseDOM, isServer } from './ssr';
|
|
25
|
+
export { access, isAccessor, type MaybeAccessor, type MaybeAccessorValue } from './utils';
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,KAAK,kBAAkB,EACvB,KAAK,WAAW,GACjB,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,GAC9B,MAAM,gBAAgB,CAAC;AAGxB,OA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AAe,EACf,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,EACpB,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,aAAa,GACnB,MAAM,QAAQ,CAAC;AAGhB,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGnE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
|
package/src/index.ts
CHANGED
|
@@ -5,6 +5,13 @@ export {
|
|
|
5
5
|
type ToggleState,
|
|
6
6
|
} from './toggle';
|
|
7
7
|
|
|
8
|
+
// Autocomplete
|
|
9
|
+
export {
|
|
10
|
+
createAutocompleteState,
|
|
11
|
+
type AutocompleteState,
|
|
12
|
+
type AutocompleteStateOptions,
|
|
13
|
+
} from './autocomplete';
|
|
14
|
+
|
|
8
15
|
// TextField
|
|
9
16
|
export {
|
|
10
17
|
createTextFieldState,
|
|
@@ -27,8 +34,350 @@ export {
|
|
|
27
34
|
type RadioGroupState,
|
|
28
35
|
} from './radio';
|
|
29
36
|
|
|
37
|
+
// Overlays
|
|
38
|
+
export {
|
|
39
|
+
createOverlayTriggerState,
|
|
40
|
+
type OverlayTriggerProps,
|
|
41
|
+
type OverlayTriggerState,
|
|
42
|
+
} from './overlays';
|
|
43
|
+
|
|
44
|
+
// Collections
|
|
45
|
+
export {
|
|
46
|
+
// Types
|
|
47
|
+
type Key,
|
|
48
|
+
type SelectionMode,
|
|
49
|
+
type SelectionBehavior,
|
|
50
|
+
type Selection,
|
|
51
|
+
type FocusStrategy,
|
|
52
|
+
type DisabledBehavior,
|
|
53
|
+
type CollectionNode,
|
|
54
|
+
type Collection,
|
|
55
|
+
type ItemProps,
|
|
56
|
+
type SectionProps,
|
|
57
|
+
type CollectionBase,
|
|
58
|
+
type SingleSelection,
|
|
59
|
+
type MultipleSelection,
|
|
60
|
+
// ListCollection
|
|
61
|
+
ListCollection,
|
|
62
|
+
createListCollection,
|
|
63
|
+
// Selection State
|
|
64
|
+
createSelectionState,
|
|
65
|
+
type SelectionStateProps,
|
|
66
|
+
type SelectionState,
|
|
67
|
+
// List State
|
|
68
|
+
createListState,
|
|
69
|
+
createSingleSelectListState,
|
|
70
|
+
type ListStateProps,
|
|
71
|
+
type ListState,
|
|
72
|
+
type SingleSelectListStateProps,
|
|
73
|
+
type SingleSelectListState,
|
|
74
|
+
// Menu State
|
|
75
|
+
createMenuState,
|
|
76
|
+
createMenuTriggerState,
|
|
77
|
+
type MenuStateProps,
|
|
78
|
+
type MenuState,
|
|
79
|
+
type MenuTriggerStateProps,
|
|
80
|
+
type MenuTriggerState,
|
|
81
|
+
} from './collections';
|
|
82
|
+
|
|
83
|
+
// Select
|
|
84
|
+
export {
|
|
85
|
+
createSelectState,
|
|
86
|
+
type SelectStateProps,
|
|
87
|
+
type SelectState,
|
|
88
|
+
} from './select';
|
|
89
|
+
|
|
90
|
+
// ComboBox
|
|
91
|
+
export {
|
|
92
|
+
createComboBoxState,
|
|
93
|
+
defaultContainsFilter,
|
|
94
|
+
type ComboBoxState,
|
|
95
|
+
type ComboBoxStateProps,
|
|
96
|
+
type FilterFn,
|
|
97
|
+
type MenuTriggerAction,
|
|
98
|
+
} from './combobox';
|
|
99
|
+
|
|
100
|
+
// Tabs
|
|
101
|
+
export {
|
|
102
|
+
createTabListState,
|
|
103
|
+
type TabListStateProps,
|
|
104
|
+
type TabListState,
|
|
105
|
+
type KeyboardActivation,
|
|
106
|
+
type TabOrientation,
|
|
107
|
+
} from './tabs';
|
|
108
|
+
|
|
109
|
+
// NumberField
|
|
110
|
+
export {
|
|
111
|
+
createNumberFieldState,
|
|
112
|
+
type NumberFieldStateProps,
|
|
113
|
+
type NumberFieldState,
|
|
114
|
+
} from './numberfield';
|
|
115
|
+
|
|
116
|
+
// SearchField
|
|
117
|
+
export {
|
|
118
|
+
createSearchFieldState,
|
|
119
|
+
type SearchFieldStateProps,
|
|
120
|
+
type SearchFieldState,
|
|
121
|
+
} from './searchfield';
|
|
122
|
+
|
|
123
|
+
// Slider
|
|
124
|
+
export {
|
|
125
|
+
createSliderState,
|
|
126
|
+
type SliderStateProps,
|
|
127
|
+
type SliderState,
|
|
128
|
+
type SliderOrientation,
|
|
129
|
+
} from './slider';
|
|
130
|
+
|
|
131
|
+
// Tooltip
|
|
132
|
+
export {
|
|
133
|
+
createTooltipTriggerState,
|
|
134
|
+
resetTooltipState,
|
|
135
|
+
type TooltipTriggerProps,
|
|
136
|
+
type TooltipTriggerState,
|
|
137
|
+
} from './tooltip';
|
|
138
|
+
|
|
139
|
+
// Toast
|
|
140
|
+
export {
|
|
141
|
+
createToastState,
|
|
142
|
+
createToastQueue,
|
|
143
|
+
ToastQueue,
|
|
144
|
+
Timer,
|
|
145
|
+
type ToastOptions,
|
|
146
|
+
type QueuedToast,
|
|
147
|
+
type ToastQueueOptions,
|
|
148
|
+
type ToastStateProps,
|
|
149
|
+
type ToastState,
|
|
150
|
+
} from './toast';
|
|
151
|
+
|
|
152
|
+
// Disclosure
|
|
153
|
+
export {
|
|
154
|
+
createDisclosureState,
|
|
155
|
+
createDisclosureGroupState,
|
|
156
|
+
type DisclosureStateProps,
|
|
157
|
+
type DisclosureState,
|
|
158
|
+
type DisclosureGroupStateProps,
|
|
159
|
+
type DisclosureGroupState,
|
|
160
|
+
type Key as DisclosureKey,
|
|
161
|
+
} from './disclosure';
|
|
162
|
+
|
|
163
|
+
// Calendar
|
|
164
|
+
export {
|
|
165
|
+
// Calendar State
|
|
166
|
+
createCalendarState,
|
|
167
|
+
type CalendarStateProps,
|
|
168
|
+
type CalendarState,
|
|
169
|
+
type ValidationState,
|
|
170
|
+
// Range Calendar State
|
|
171
|
+
createRangeCalendarState,
|
|
172
|
+
type RangeCalendarStateProps,
|
|
173
|
+
type RangeCalendarState,
|
|
174
|
+
type DateRange,
|
|
175
|
+
type RangeValue,
|
|
176
|
+
// Date Field State
|
|
177
|
+
createDateFieldState,
|
|
178
|
+
type DateFieldStateProps,
|
|
179
|
+
type DateFieldState,
|
|
180
|
+
type DateSegment,
|
|
181
|
+
type DateSegmentType,
|
|
182
|
+
// Time Field State
|
|
183
|
+
createTimeFieldState,
|
|
184
|
+
type TimeFieldStateProps,
|
|
185
|
+
type TimeFieldState,
|
|
186
|
+
type TimeSegment,
|
|
187
|
+
type TimeSegmentType,
|
|
188
|
+
type TimeValue,
|
|
189
|
+
// Date types
|
|
190
|
+
type CalendarDate,
|
|
191
|
+
type CalendarDateTime,
|
|
192
|
+
type ZonedDateTime,
|
|
193
|
+
type DateValue,
|
|
194
|
+
type Time,
|
|
195
|
+
// Date utilities
|
|
196
|
+
today,
|
|
197
|
+
now,
|
|
198
|
+
getLocalTimeZone,
|
|
199
|
+
parseDate,
|
|
200
|
+
parseDateTime,
|
|
201
|
+
parseTime,
|
|
202
|
+
parseAbsolute,
|
|
203
|
+
parseAbsoluteToLocal,
|
|
204
|
+
parseZonedDateTime,
|
|
205
|
+
toCalendarDate,
|
|
206
|
+
toCalendarDateTime,
|
|
207
|
+
toZoned,
|
|
208
|
+
toTime,
|
|
209
|
+
CalendarDateClass,
|
|
210
|
+
CalendarDateTimeClass,
|
|
211
|
+
ZonedDateTimeClass,
|
|
212
|
+
TimeClass,
|
|
213
|
+
DateFormatter,
|
|
214
|
+
isSameDay,
|
|
215
|
+
isSameMonth,
|
|
216
|
+
isSameYear,
|
|
217
|
+
isToday,
|
|
218
|
+
isWeekend,
|
|
219
|
+
startOfMonth,
|
|
220
|
+
endOfMonth,
|
|
221
|
+
startOfWeek,
|
|
222
|
+
endOfWeek,
|
|
223
|
+
startOfYear,
|
|
224
|
+
endOfYear,
|
|
225
|
+
getWeeksInMonth,
|
|
226
|
+
getDayOfWeek,
|
|
227
|
+
minDate,
|
|
228
|
+
maxDate,
|
|
229
|
+
} from './calendar';
|
|
230
|
+
|
|
231
|
+
// Grid
|
|
232
|
+
export {
|
|
233
|
+
createGridState,
|
|
234
|
+
type GridState,
|
|
235
|
+
type GridStateOptions,
|
|
236
|
+
type GridCollection,
|
|
237
|
+
type GridNode,
|
|
238
|
+
type GridNodeType,
|
|
239
|
+
} from './grid';
|
|
240
|
+
|
|
241
|
+
// Table
|
|
242
|
+
export {
|
|
243
|
+
createTableState,
|
|
244
|
+
TableCollection,
|
|
245
|
+
createTableCollection,
|
|
246
|
+
type TableState,
|
|
247
|
+
type TableStateOptions,
|
|
248
|
+
type ITableCollection,
|
|
249
|
+
type SortDescriptor,
|
|
250
|
+
type SortDirection,
|
|
251
|
+
type Sortable,
|
|
252
|
+
type ColumnDefinition,
|
|
253
|
+
type RowDefinition,
|
|
254
|
+
type TableCollectionOptions,
|
|
255
|
+
} from './table';
|
|
256
|
+
|
|
257
|
+
// Tree
|
|
258
|
+
export {
|
|
259
|
+
createTreeState,
|
|
260
|
+
TreeCollection,
|
|
261
|
+
createTreeCollection,
|
|
262
|
+
type TreeState,
|
|
263
|
+
type TreeStateOptions,
|
|
264
|
+
type TreeCollectionInterface,
|
|
265
|
+
type TreeNode,
|
|
266
|
+
type TreeItemData,
|
|
267
|
+
} from './tree';
|
|
268
|
+
|
|
269
|
+
// Color
|
|
270
|
+
export {
|
|
271
|
+
// Types
|
|
272
|
+
type Color,
|
|
273
|
+
type ColorFormat,
|
|
274
|
+
type ColorSpace,
|
|
275
|
+
type ColorChannel,
|
|
276
|
+
type ColorChannelRange,
|
|
277
|
+
type ColorAxes,
|
|
278
|
+
// Color utilities
|
|
279
|
+
parseColor,
|
|
280
|
+
normalizeColor,
|
|
281
|
+
createRGBColor,
|
|
282
|
+
createHSLColor,
|
|
283
|
+
createHSBColor,
|
|
284
|
+
// Color Slider State
|
|
285
|
+
createColorSliderState,
|
|
286
|
+
type ColorSliderStateOptions,
|
|
287
|
+
type ColorSliderState,
|
|
288
|
+
// Color Area State
|
|
289
|
+
createColorAreaState,
|
|
290
|
+
type ColorAreaStateOptions,
|
|
291
|
+
type ColorAreaState,
|
|
292
|
+
// Color Wheel State
|
|
293
|
+
createColorWheelState,
|
|
294
|
+
type ColorWheelStateOptions,
|
|
295
|
+
type ColorWheelState,
|
|
296
|
+
// Color Field State
|
|
297
|
+
createColorFieldState,
|
|
298
|
+
type ColorFieldStateOptions,
|
|
299
|
+
type ColorFieldState,
|
|
300
|
+
} from './color';
|
|
301
|
+
|
|
302
|
+
// Drag and Drop
|
|
303
|
+
export {
|
|
304
|
+
// Types
|
|
305
|
+
type DropOperation,
|
|
306
|
+
type DragItem,
|
|
307
|
+
type DragDropEvent,
|
|
308
|
+
type DragStartEvent,
|
|
309
|
+
type DragMoveEvent,
|
|
310
|
+
type DragEndEvent,
|
|
311
|
+
type DropEnterEvent,
|
|
312
|
+
type DropMoveEvent,
|
|
313
|
+
type DropActivateEvent,
|
|
314
|
+
type DropExitEvent,
|
|
315
|
+
type TextDropItem,
|
|
316
|
+
type FileDropItem,
|
|
317
|
+
type DirectoryDropItem,
|
|
318
|
+
type DropItem,
|
|
319
|
+
type DropEvent,
|
|
320
|
+
type DropPosition,
|
|
321
|
+
type RootDropTarget,
|
|
322
|
+
type ItemDropTarget,
|
|
323
|
+
type DropTarget,
|
|
324
|
+
type DroppableCollectionEnterEvent,
|
|
325
|
+
type DroppableCollectionMoveEvent,
|
|
326
|
+
type DroppableCollectionActivateEvent,
|
|
327
|
+
type DroppableCollectionExitEvent,
|
|
328
|
+
type DroppableCollectionDropEvent,
|
|
329
|
+
type DroppableCollectionInsertDropEvent,
|
|
330
|
+
type DroppableCollectionRootDropEvent,
|
|
331
|
+
type DroppableCollectionOnItemDropEvent,
|
|
332
|
+
type DroppableCollectionReorderEvent,
|
|
333
|
+
type DragTypes,
|
|
334
|
+
type DropTargetDelegate,
|
|
335
|
+
type DraggableCollectionStartEvent,
|
|
336
|
+
type DraggableCollectionMoveEvent,
|
|
337
|
+
type DraggableCollectionEndEvent,
|
|
338
|
+
type DragPreviewRenderer,
|
|
339
|
+
type DroppableCollectionUtilityOptions,
|
|
340
|
+
type DroppableCollectionBaseProps,
|
|
341
|
+
type DroppableCollectionProps,
|
|
342
|
+
type DraggableCollectionProps,
|
|
343
|
+
// Drag State
|
|
344
|
+
createDragState,
|
|
345
|
+
type DragStateOptions,
|
|
346
|
+
type DragState,
|
|
347
|
+
// Drop State
|
|
348
|
+
createDropState,
|
|
349
|
+
type DropStateOptions,
|
|
350
|
+
type DropState,
|
|
351
|
+
// Draggable Collection State
|
|
352
|
+
createDraggableCollectionState,
|
|
353
|
+
type DraggableCollectionStateOptions,
|
|
354
|
+
type DraggableCollectionState,
|
|
355
|
+
// Droppable Collection State
|
|
356
|
+
createDroppableCollectionState,
|
|
357
|
+
DIRECTORY_DRAG_TYPE,
|
|
358
|
+
type DroppableCollectionStateOptions,
|
|
359
|
+
type DroppableCollectionState,
|
|
360
|
+
} from './dnd';
|
|
361
|
+
|
|
362
|
+
// Form
|
|
363
|
+
export {
|
|
364
|
+
createFormValidationState,
|
|
365
|
+
mergeValidation,
|
|
366
|
+
FormValidationContext,
|
|
367
|
+
privateValidationStateProp,
|
|
368
|
+
VALID_VALIDITY_STATE,
|
|
369
|
+
DEFAULT_VALIDATION_RESULT,
|
|
370
|
+
type FormValidationState,
|
|
371
|
+
type FormValidationProps,
|
|
372
|
+
type ValidationResult,
|
|
373
|
+
type ValidationErrors,
|
|
374
|
+
type ValidationFunction,
|
|
375
|
+
type ValidationBehavior,
|
|
376
|
+
type ValidityState,
|
|
377
|
+
} from './form';
|
|
378
|
+
|
|
30
379
|
// SSR
|
|
31
|
-
export { createIsSSR, createId, canUseDOM } from './ssr';
|
|
380
|
+
export { createIsSSR, createId, canUseDOM, isServer } from './ssr';
|
|
32
381
|
|
|
33
382
|
// Utils
|
|
34
383
|
export { access, isAccessor, type MaybeAccessor, type MaybeAccessorValue } from './utils';
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* State management for NumberField.
|
|
3
|
+
* Based on @react-stately/numberfield useNumberFieldState.
|
|
4
|
+
*/
|
|
5
|
+
import { type Accessor } from 'solid-js';
|
|
6
|
+
import { type MaybeAccessor } from '../utils';
|
|
7
|
+
export interface NumberFieldStateProps {
|
|
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
|
+
}
|
|
29
|
+
export interface NumberFieldState {
|
|
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
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Creates state for a number field.
|
|
63
|
+
*/
|
|
64
|
+
export declare function createNumberFieldState(props: MaybeAccessor<NumberFieldStateProps>): NumberFieldState;
|
|
65
|
+
//# sourceMappingURL=createNumberFieldState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createNumberFieldState.d.ts","sourceRoot":"","sources":["createNumberFieldState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAA4B,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,EAAU,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAEtD,MAAM,WAAW,qBAAqB;IACpC,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,yBAAyB;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sCAAsC;IACtC,UAAU,CAAC,EAAE,OA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