@proyecto-viviana/solid-stately 0.5.1 → 0.6.0-rc.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/LICENSE-APACHE-2.0 +201 -0
- package/NOTICE +91 -0
- package/README.md +59 -29
- package/dist/autocomplete/createAutocompleteState.d.ts +2 -1
- package/dist/autocomplete/createAutocompleteState.d.ts.map +1 -0
- package/dist/autocomplete/index.d.ts +1 -0
- package/dist/autocomplete/index.d.ts.map +1 -0
- package/dist/calendar/IncompleteDate.d.ts +2 -1
- package/dist/calendar/IncompleteDate.d.ts.map +1 -0
- package/dist/calendar/createCalendarState.d.ts +10 -9
- package/dist/calendar/createCalendarState.d.ts.map +1 -0
- package/dist/calendar/createDateFieldState.d.ts +4 -20
- package/dist/calendar/createDateFieldState.d.ts.map +1 -0
- package/dist/calendar/createDatePickerState.d.ts +4 -7
- package/dist/calendar/createDatePickerState.d.ts.map +1 -0
- package/dist/calendar/createRangeCalendarState.d.ts +9 -7
- package/dist/calendar/createRangeCalendarState.d.ts.map +1 -0
- package/dist/calendar/createTimeFieldState.d.ts +5 -24
- package/dist/calendar/createTimeFieldState.d.ts.map +1 -0
- package/dist/calendar/index.d.ts +1 -0
- package/dist/calendar/index.d.ts.map +1 -0
- package/dist/calendar/intl/index.d.ts +1 -0
- package/dist/calendar/intl/index.d.ts.map +1 -0
- package/dist/checkbox/createCheckboxGroupState.d.ts +3 -0
- package/dist/checkbox/createCheckboxGroupState.d.ts.map +1 -0
- package/dist/checkbox/index.d.ts +1 -0
- package/dist/checkbox/index.d.ts.map +1 -0
- package/dist/collections/ListCollection.d.ts +5 -0
- package/dist/collections/ListCollection.d.ts.map +1 -0
- package/dist/collections/createListState.d.ts +2 -6
- package/dist/collections/createListState.d.ts.map +1 -0
- package/dist/collections/createMenuState.d.ts +74 -13
- package/dist/collections/createMenuState.d.ts.map +1 -0
- package/dist/collections/createSelectionState.d.ts +2 -5
- package/dist/collections/createSelectionState.d.ts.map +1 -0
- package/dist/collections/getChildNodes.d.ts +6 -3
- package/dist/collections/getChildNodes.d.ts.map +1 -0
- package/dist/collections/index.d.ts +2 -1
- package/dist/collections/index.d.ts.map +1 -0
- package/dist/collections/types.d.ts +36 -2
- package/dist/collections/types.d.ts.map +1 -0
- package/dist/color/Color.d.ts +7 -1
- package/dist/color/Color.d.ts.map +1 -0
- package/dist/color/createColorAreaState.d.ts +6 -5
- package/dist/color/createColorAreaState.d.ts.map +1 -0
- package/dist/color/createColorFieldState.d.ts +4 -5
- package/dist/color/createColorFieldState.d.ts.map +1 -0
- package/dist/color/createColorSliderState.d.ts +4 -5
- package/dist/color/createColorSliderState.d.ts.map +1 -0
- package/dist/color/createColorWheelState.d.ts +2 -5
- package/dist/color/createColorWheelState.d.ts.map +1 -0
- package/dist/color/getColorChannels.d.ts +3 -0
- package/dist/color/getColorChannels.d.ts.map +1 -0
- package/dist/color/index.d.ts +2 -1
- package/dist/color/index.d.ts.map +1 -0
- package/dist/color/intl/index.d.ts +1 -0
- package/dist/color/intl/index.d.ts.map +1 -0
- package/dist/color/types.d.ts +2 -1
- package/dist/color/types.d.ts.map +1 -0
- package/dist/combobox/createComboBoxState.d.ts +92 -29
- package/dist/combobox/createComboBoxState.d.ts.map +1 -0
- package/dist/combobox/index.d.ts +2 -1
- package/dist/combobox/index.d.ts.map +1 -0
- package/dist/data/createAsyncList.d.ts +1 -7
- package/dist/data/createAsyncList.d.ts.map +1 -0
- package/dist/data/createListData.d.ts +1 -6
- package/dist/data/createListData.d.ts.map +1 -0
- package/dist/data/createTreeData.d.ts +1 -6
- package/dist/data/createTreeData.d.ts.map +1 -0
- package/dist/data/index.d.ts +1 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/datepicker/index.d.ts +1 -0
- package/dist/datepicker/index.d.ts.map +1 -0
- package/dist/disclosure/createDisclosureState.d.ts +2 -5
- package/dist/disclosure/createDisclosureState.d.ts.map +1 -0
- package/dist/disclosure/index.d.ts +1 -0
- package/dist/disclosure/index.d.ts.map +1 -0
- package/dist/dnd/createDragState.d.ts +2 -6
- package/dist/dnd/createDragState.d.ts.map +1 -0
- package/dist/dnd/createDraggableCollectionState.d.ts +44 -11
- package/dist/dnd/createDraggableCollectionState.d.ts.map +1 -0
- package/dist/dnd/createDropState.d.ts +2 -6
- package/dist/dnd/createDropState.d.ts.map +1 -0
- package/dist/dnd/createDroppableCollectionState.d.ts +34 -11
- package/dist/dnd/createDroppableCollectionState.d.ts.map +1 -0
- package/dist/dnd/index.d.ts +3 -2
- package/dist/dnd/index.d.ts.map +1 -0
- package/dist/dnd/types.d.ts +17 -0
- package/dist/dnd/types.d.ts.map +1 -0
- package/dist/form/createFormValidationState.d.ts +2 -9
- package/{src → dist}/form/createFormValidationState.d.ts.map +1 -1
- package/dist/form/index.d.ts +1 -0
- package/dist/form/index.d.ts.map +1 -0
- package/dist/grid/createGridState.d.ts +4 -3
- package/dist/grid/createGridState.d.ts.map +1 -0
- package/dist/grid/index.d.ts +1 -0
- package/dist/grid/index.d.ts.map +1 -0
- package/dist/grid/types.d.ts +23 -1
- package/dist/grid/types.d.ts.map +1 -0
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2947 -969
- package/dist/index.js.map +1 -1
- package/dist/menu/index.d.ts +3 -1
- package/dist/menu/index.d.ts.map +1 -0
- package/dist/numberfield/createNumberFieldState.d.ts +37 -9
- package/dist/numberfield/createNumberFieldState.d.ts.map +1 -0
- package/dist/numberfield/index.d.ts +1 -0
- package/dist/numberfield/index.d.ts.map +1 -0
- package/dist/overlays/createOverlayTriggerState.d.ts +12 -1
- package/dist/overlays/createOverlayTriggerState.d.ts.map +1 -0
- package/dist/overlays/index.d.ts +1 -0
- package/dist/overlays/index.d.ts.map +1 -0
- package/dist/private/flags/flags.d.ts +5 -0
- package/dist/private/flags/flags.d.ts.map +1 -0
- package/dist/private/flags/flags.js +26 -0
- package/dist/private/flags/flags.js.map +1 -0
- package/dist/radio/createRadioGroupState.d.ts +1 -0
- package/dist/radio/createRadioGroupState.d.ts.map +1 -0
- package/dist/radio/index.d.ts +1 -0
- package/dist/radio/index.d.ts.map +1 -0
- package/dist/searchfield/createSearchFieldState.d.ts +2 -5
- package/dist/searchfield/createSearchFieldState.d.ts.map +1 -0
- package/dist/searchfield/index.d.ts +1 -0
- package/dist/searchfield/index.d.ts.map +1 -0
- package/dist/select/createSelectState.d.ts +100 -33
- package/dist/select/createSelectState.d.ts.map +1 -0
- package/dist/select/index.d.ts +2 -1
- package/dist/select/index.d.ts.map +1 -0
- package/dist/selection/Selection.d.ts +2 -1
- package/dist/selection/Selection.d.ts.map +1 -0
- package/dist/selection/SelectionManager.d.ts +1 -19
- package/dist/selection/SelectionManager.d.ts.map +1 -0
- package/dist/selection/createMultipleSelectionState.d.ts +2 -13
- package/dist/selection/createMultipleSelectionState.d.ts.map +1 -0
- package/dist/selection/index.d.ts +1 -0
- package/dist/selection/index.d.ts.map +1 -0
- package/dist/slider/createSliderState.d.ts +37 -14
- package/dist/slider/createSliderState.d.ts.map +1 -0
- package/dist/slider/index.d.ts +1 -0
- package/dist/slider/index.d.ts.map +1 -0
- package/dist/ssr/index.d.ts +2 -13
- package/dist/ssr/index.d.ts.map +1 -0
- package/dist/steplist/createStepListState.d.ts +10 -18
- package/dist/steplist/createStepListState.d.ts.map +1 -0
- package/dist/steplist/index.d.ts +1 -0
- package/dist/steplist/index.d.ts.map +1 -0
- package/dist/table/TableCollection.d.ts +1 -0
- package/dist/table/TableCollection.d.ts.map +1 -0
- package/dist/table/createTableColumnResizeState.d.ts +2 -9
- package/dist/table/createTableColumnResizeState.d.ts.map +1 -0
- package/dist/table/createTableState.d.ts +3 -6
- package/dist/table/createTableState.d.ts.map +1 -0
- package/dist/table/createTreeGridState.d.ts +3 -9
- package/dist/table/createTreeGridState.d.ts.map +1 -0
- package/dist/table/index.d.ts +1 -0
- package/dist/table/index.d.ts.map +1 -0
- package/dist/table/types.d.ts +37 -3
- package/dist/table/types.d.ts.map +1 -0
- package/dist/tabs/createTabListState.d.ts +2 -5
- package/dist/tabs/createTabListState.d.ts.map +1 -0
- package/dist/tabs/index.d.ts +1 -0
- package/dist/tabs/index.d.ts.map +1 -0
- package/dist/textfield/createTextFieldState.d.ts +1 -0
- package/dist/textfield/createTextFieldState.d.ts.map +1 -0
- package/dist/textfield/index.d.ts +1 -0
- package/dist/textfield/index.d.ts.map +1 -0
- package/dist/toast/createToastState.d.ts +2 -5
- package/dist/toast/createToastState.d.ts.map +1 -0
- package/dist/toast/index.d.ts +1 -0
- package/dist/toast/index.d.ts.map +1 -0
- package/dist/toggle/createToggleGroupState.d.ts +1 -0
- package/dist/toggle/createToggleGroupState.d.ts.map +1 -0
- package/dist/toggle/createToggleState.d.ts +1 -0
- package/dist/toggle/createToggleState.d.ts.map +1 -0
- package/dist/toggle/index.d.ts +1 -0
- package/dist/toggle/index.d.ts.map +1 -0
- package/dist/tokenfield/TokenFieldValue.d.ts +96 -0
- package/dist/tokenfield/TokenFieldValue.d.ts.map +1 -0
- package/dist/tokenfield/createTokenFieldState.d.ts +33 -0
- package/dist/tokenfield/createTokenFieldState.d.ts.map +1 -0
- package/dist/tokenfield/index.d.ts +3 -0
- package/dist/tokenfield/index.d.ts.map +1 -0
- package/dist/tooltip/createTooltipTriggerState.d.ts +9 -8
- package/dist/tooltip/createTooltipTriggerState.d.ts.map +1 -0
- package/dist/tooltip/index.d.ts +1 -0
- package/dist/tooltip/index.d.ts.map +1 -0
- package/dist/tree/TreeCollection.d.ts +1 -0
- package/dist/tree/TreeCollection.d.ts.map +1 -0
- package/dist/tree/createTreeState.d.ts +3 -8
- package/dist/tree/createTreeState.d.ts.map +1 -0
- package/dist/tree/index.d.ts +1 -0
- package/dist/tree/index.d.ts.map +1 -0
- package/dist/tree/types.d.ts +19 -1
- package/dist/tree/types.d.ts.map +1 -0
- package/dist/utils/index.d.ts +3 -1
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/owner.d.ts +9 -0
- package/dist/utils/owner.d.ts.map +1 -0
- package/dist/utils/reactivity.d.ts +24 -0
- package/dist/utils/reactivity.d.ts.map +1 -0
- package/package.json +21 -9
- package/src/autocomplete/createAutocompleteState.ts +18 -4
- package/src/calendar/IncompleteDate.ts +15 -1
- package/src/calendar/createCalendarState.ts +321 -125
- package/src/calendar/createDateFieldState.ts +45 -31
- package/src/calendar/createDatePickerState.ts +47 -26
- package/src/calendar/createRangeCalendarState.ts +173 -86
- package/src/calendar/createTimeFieldState.ts +26 -7
- package/src/calendar/intl/index.ts +37 -2
- package/src/checkbox/createCheckboxGroupState.ts +45 -13
- package/src/collections/ListCollection.ts +31 -0
- package/src/collections/createListState.ts +27 -10
- package/src/collections/createMenuState.ts +190 -15
- package/src/collections/createSelectionState.ts +33 -13
- package/src/collections/getChildNodes.ts +20 -3
- package/src/collections/index.ts +6 -0
- package/src/collections/types.ts +35 -2
- package/src/color/Color.ts +61 -22
- package/src/color/createColorAreaState.ts +48 -4
- package/src/color/createColorFieldState.ts +114 -38
- package/src/color/createColorSliderState.ts +61 -9
- package/src/color/createColorWheelState.ts +29 -9
- package/src/color/getColorChannels.ts +16 -0
- package/src/color/index.ts +1 -0
- package/src/color/intl/index.ts +38 -3
- package/src/color/types.ts +1 -1
- package/src/combobox/createComboBoxState.ts +530 -297
- package/src/combobox/index.ts +4 -0
- package/src/data/createAsyncList.ts +41 -6
- package/src/data/createListData.ts +27 -4
- package/src/data/createTreeData.ts +30 -6
- package/src/disclosure/createDisclosureState.ts +40 -19
- package/src/dnd/createDragState.ts +22 -4
- package/src/dnd/createDraggableCollectionState.ts +145 -11
- package/src/dnd/createDropState.ts +21 -3
- package/src/dnd/createDroppableCollectionState.ts +127 -11
- package/src/dnd/index.ts +4 -0
- package/src/dnd/types.ts +16 -0
- package/src/form/createFormValidationState.ts +69 -37
- package/src/grid/createGridState.ts +196 -111
- package/src/grid/types.ts +22 -1
- package/src/index.ts +33 -2
- package/src/menu/index.ts +7 -0
- package/src/numberfield/createNumberFieldState.ts +247 -98
- package/src/overlays/createOverlayTriggerState.ts +31 -4
- package/src/private/flags/flags.ts +25 -0
- package/src/radio/createRadioGroupState.ts +23 -6
- package/src/searchfield/createSearchFieldState.ts +18 -3
- package/src/select/createSelectState.ts +317 -130
- package/src/select/index.ts +8 -1
- package/src/selection/Selection.ts +15 -1
- package/src/selection/SelectionManager.ts +17 -1
- package/src/selection/createMultipleSelectionState.ts +45 -26
- package/src/slider/createSliderState.ts +243 -104
- package/src/ssr/index.ts +34 -4
- package/src/steplist/createStepListState.ts +184 -130
- package/src/table/TableCollection.ts +14 -0
- package/src/table/createTableColumnResizeState.ts +71 -14
- package/src/table/createTableState.ts +26 -4
- package/src/table/createTreeGridState.ts +22 -6
- package/src/table/types.ts +38 -5
- package/src/tabs/createTabListState.ts +63 -43
- package/src/textfield/createTextFieldState.ts +17 -3
- package/src/toast/createToastState.ts +28 -3
- package/src/toggle/createToggleGroupState.ts +20 -5
- package/src/toggle/createToggleState.ts +19 -4
- package/src/tokenfield/TokenFieldValue.ts +499 -0
- package/src/tokenfield/createTokenFieldState.ts +88 -0
- package/src/tokenfield/index.ts +15 -0
- package/src/tooltip/createTooltipTriggerState.ts +49 -13
- package/src/tree/TreeCollection.ts +14 -0
- package/src/tree/createTreeState.ts +70 -36
- package/src/tree/types.ts +18 -1
- package/src/utils/index.ts +10 -1
- package/src/utils/owner.ts +20 -0
- package/src/utils/reactivity.ts +53 -1
- package/src/autocomplete/createAutocompleteState.d.ts +0 -48
- package/src/autocomplete/createAutocompleteState.d.ts.map +0 -1
- package/src/autocomplete/index.d.ts +0 -6
- package/src/autocomplete/index.d.ts.map +0 -1
- package/src/calendar/createCalendarState.d.ts +0 -152
- package/src/calendar/createCalendarState.d.ts.map +0 -1
- package/src/calendar/createDateFieldState.d.ts +0 -145
- package/src/calendar/createDateFieldState.d.ts.map +0 -1
- package/src/calendar/createRangeCalendarState.d.ts +0 -171
- package/src/calendar/createRangeCalendarState.d.ts.map +0 -1
- package/src/calendar/createTimeFieldState.d.ts +0 -97
- package/src/calendar/createTimeFieldState.d.ts.map +0 -1
- package/src/calendar/index.d.ts +0 -80
- package/src/calendar/index.d.ts.map +0 -1
- package/src/checkbox/createCheckboxGroupState.d.ts +0 -73
- package/src/checkbox/createCheckboxGroupState.d.ts.map +0 -1
- package/src/checkbox/index.d.ts +0 -6
- package/src/checkbox/index.d.ts.map +0 -1
- package/src/collections/ListCollection.d.ts +0 -40
- package/src/collections/ListCollection.d.ts.map +0 -1
- package/src/collections/createListState.d.ts +0 -94
- package/src/collections/createListState.d.ts.map +0 -1
- package/src/collections/createMenuState.d.ts +0 -55
- package/src/collections/createMenuState.d.ts.map +0 -1
- package/src/collections/createSelectionState.d.ts +0 -89
- package/src/collections/createSelectionState.d.ts.map +0 -1
- package/src/collections/index.d.ts +0 -38
- package/src/collections/index.d.ts.map +0 -1
- package/src/collections/types.d.ts +0 -147
- package/src/collections/types.d.ts.map +0 -1
- package/src/color/Color.d.ts +0 -43
- package/src/color/Color.d.ts.map +0 -1
- package/src/color/createColorAreaState.d.ts +0 -78
- package/src/color/createColorAreaState.d.ts.map +0 -1
- package/src/color/createColorFieldState.d.ts +0 -57
- package/src/color/createColorFieldState.d.ts.map +0 -1
- package/src/color/createColorSliderState.d.ts +0 -69
- package/src/color/createColorSliderState.d.ts.map +0 -1
- package/src/color/createColorWheelState.d.ts +0 -53
- package/src/color/createColorWheelState.d.ts.map +0 -1
- package/src/color/index.d.ts +0 -39
- package/src/color/index.d.ts.map +0 -1
- package/src/color/types.d.ts +0 -111
- package/src/color/types.d.ts.map +0 -1
- package/src/combobox/createComboBoxState.d.ts +0 -127
- package/src/combobox/createComboBoxState.d.ts.map +0 -1
- package/src/combobox/index.d.ts +0 -13
- package/src/combobox/index.d.ts.map +0 -1
- package/src/disclosure/createDisclosureState.d.ts +0 -68
- package/src/disclosure/createDisclosureState.d.ts.map +0 -1
- package/src/disclosure/index.d.ts +0 -10
- package/src/disclosure/index.d.ts.map +0 -1
- package/src/dnd/createDragState.d.ts +0 -68
- package/src/dnd/createDragState.d.ts.map +0 -1
- package/src/dnd/createDraggableCollectionState.d.ts +0 -68
- package/src/dnd/createDraggableCollectionState.d.ts.map +0 -1
- package/src/dnd/createDropState.d.ts +0 -80
- package/src/dnd/createDropState.d.ts.map +0 -1
- package/src/dnd/createDroppableCollectionState.d.ts +0 -107
- package/src/dnd/createDroppableCollectionState.d.ts.map +0 -1
- package/src/dnd/index.d.ts +0 -60
- package/src/dnd/index.d.ts.map +0 -1
- package/src/dnd/types.d.ts +0 -277
- package/src/dnd/types.d.ts.map +0 -1
- package/src/form/createFormValidationState.d.ts +0 -102
- package/src/form/index.d.ts +0 -16
- package/src/form/index.d.ts.map +0 -1
- package/src/grid/createGridState.d.ts +0 -15
- package/src/grid/createGridState.d.ts.map +0 -1
- package/src/grid/index.d.ts +0 -7
- package/src/grid/index.d.ts.map +0 -1
- package/src/grid/types.d.ts +0 -163
- package/src/grid/types.d.ts.map +0 -1
- package/src/index.d.ts +0 -311
- package/src/index.d.ts.map +0 -1
- package/src/numberfield/createNumberFieldState.d.ts +0 -67
- package/src/numberfield/createNumberFieldState.d.ts.map +0 -1
- package/src/numberfield/index.d.ts +0 -6
- package/src/numberfield/index.d.ts.map +0 -1
- package/src/overlays/createOverlayTriggerState.d.ts +0 -34
- package/src/overlays/createOverlayTriggerState.d.ts.map +0 -1
- package/src/overlays/index.d.ts +0 -6
- package/src/overlays/index.d.ts.map +0 -1
- package/src/radio/createRadioGroupState.d.ts +0 -79
- package/src/radio/createRadioGroupState.d.ts.map +0 -1
- package/src/radio/index.d.ts +0 -7
- package/src/radio/index.d.ts.map +0 -1
- package/src/searchfield/createSearchFieldState.d.ts +0 -27
- package/src/searchfield/createSearchFieldState.d.ts.map +0 -1
- package/src/searchfield/index.d.ts +0 -3
- package/src/searchfield/index.d.ts.map +0 -1
- package/src/select/createSelectState.d.ts +0 -75
- package/src/select/createSelectState.d.ts.map +0 -1
- package/src/select/index.d.ts +0 -2
- package/src/select/index.d.ts.map +0 -1
- package/src/slider/createSliderState.d.ts +0 -72
- package/src/slider/createSliderState.d.ts.map +0 -1
- package/src/slider/index.d.ts +0 -3
- package/src/slider/index.d.ts.map +0 -1
- package/src/ssr/index.d.ts +0 -28
- package/src/ssr/index.d.ts.map +0 -1
- package/src/table/TableCollection.d.ts +0 -54
- package/src/table/TableCollection.d.ts.map +0 -1
- package/src/table/createTableState.d.ts +0 -15
- package/src/table/createTableState.d.ts.map +0 -1
- package/src/table/index.d.ts +0 -18
- package/src/table/index.d.ts.map +0 -1
- package/src/table/types.d.ts +0 -145
- package/src/table/types.d.ts.map +0 -1
- package/src/tabs/createTabListState.d.ts +0 -70
- package/src/tabs/createTabListState.d.ts.map +0 -1
- package/src/tabs/index.d.ts +0 -8
- package/src/tabs/index.d.ts.map +0 -1
- package/src/textfield/createTextFieldState.d.ts +0 -32
- package/src/textfield/createTextFieldState.d.ts.map +0 -1
- package/src/textfield/index.d.ts +0 -6
- package/src/textfield/index.d.ts.map +0 -1
- package/src/toast/createToastState.d.ts +0 -129
- package/src/toast/createToastState.d.ts.map +0 -1
- package/src/toast/index.d.ts +0 -12
- package/src/toast/index.d.ts.map +0 -1
- package/src/toggle/createToggleState.d.ts +0 -34
- package/src/toggle/createToggleState.d.ts.map +0 -1
- package/src/toggle/index.d.ts +0 -2
- package/src/toggle/index.d.ts.map +0 -1
- package/src/tooltip/createTooltipTriggerState.d.ts +0 -39
- package/src/tooltip/createTooltipTriggerState.d.ts.map +0 -1
- package/src/tooltip/index.d.ts +0 -7
- package/src/tooltip/index.d.ts.map +0 -1
- package/src/tree/TreeCollection.d.ts +0 -43
- package/src/tree/TreeCollection.d.ts.map +0 -1
- package/src/tree/createTreeState.d.ts +0 -17
- package/src/tree/createTreeState.d.ts.map +0 -1
- package/src/tree/index.d.ts +0 -13
- package/src/tree/index.d.ts.map +0 -1
- package/src/tree/types.d.ts +0 -162
- package/src/tree/types.d.ts.map +0 -1
- package/src/utils/index.d.ts +0 -2
- package/src/utils/index.d.ts.map +0 -1
- package/src/utils/reactivity.d.ts +0 -28
- package/src/utils/reactivity.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,uDAAuD;AACvD,MAAM,MAAM,GAAG,GAAG,MAAM,GAAG,MAAM,CAAC;AAElC,qDAAqD;AACrD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE3D,oDAAoD;AACpD,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,SAAS,CAAC;AAErD,8CAA8C;AAC9C,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;AAEzC,gDAAgD;AAChD,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;AAE7C,gEAAgE;AAChE,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,KAAK,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,OAAO;IACzC,6CAA6C;IAC7C,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,iCAAiC;IACjC,GAAG,EAAE,GAAG,CAAC;IACT,6CAA6C;IAC7C,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IAChB,wDAAwD;IACxD,SAAS,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC;IACtB,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,0CAA0C;IAC1C,SAAS,EAAE,GAAG,GAAG,IAAI,CAAC;IACtB,yCAAyC;IACzC,aAAa,EAAE,OAAO,CAAC;IAC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IAC7C,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,KAAK,IAAI,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,0BAA0B;IAC1B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,0CAA0C;IAC1C,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,gDAAgD;IAChD,YAAY,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IACrC,gDAAgD;IAChD,mBAAmB,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC5C,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IAC9C,8BAA8B;IAC9B,YAAY,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;CAC9B"}
|
package/src/color/Color.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Color class implementation.
|
|
3
|
-
* Based on @react-stately/color.
|
|
4
|
-
*
|
|
5
|
-
* Provides color manipulation, conversion, and formatting.
|
|
6
|
-
*/
|
|
7
|
-
import type { Color } from "./types";
|
|
8
|
-
/**
|
|
9
|
-
* Parse a color string into a Color object.
|
|
10
|
-
*/
|
|
11
|
-
export declare function parseColor(value: string): Color;
|
|
12
|
-
/**
|
|
13
|
-
* Create an RGB color.
|
|
14
|
-
*/
|
|
15
|
-
export declare function createRGBColor(
|
|
16
|
-
red: number,
|
|
17
|
-
green: number,
|
|
18
|
-
blue: number,
|
|
19
|
-
alpha?: number,
|
|
20
|
-
): Color;
|
|
21
|
-
/**
|
|
22
|
-
* Create an HSL color.
|
|
23
|
-
*/
|
|
24
|
-
export declare function createHSLColor(
|
|
25
|
-
hue: number,
|
|
26
|
-
saturation: number,
|
|
27
|
-
lightness: number,
|
|
28
|
-
alpha?: number,
|
|
29
|
-
): Color;
|
|
30
|
-
/**
|
|
31
|
-
* Create an HSB color.
|
|
32
|
-
*/
|
|
33
|
-
export declare function createHSBColor(
|
|
34
|
-
hue: number,
|
|
35
|
-
saturation: number,
|
|
36
|
-
brightness: number,
|
|
37
|
-
alpha?: number,
|
|
38
|
-
): Color;
|
|
39
|
-
/**
|
|
40
|
-
* Normalize a color value (string or Color) to a Color object.
|
|
41
|
-
*/
|
|
42
|
-
export declare function normalizeColor(value: string | Color): Color;
|
|
43
|
-
//# sourceMappingURL=Color.d.ts.map
|
package/src/color/Color.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Color.d.ts","sourceRoot":"","sources":["Color.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,KAAK,EASN,MAAM,SAAS,CAAC;AAi0BjB;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAkE/C;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,KAAK,CAEjG;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,KAAK,CAE3G;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,KAAK,CAE5G;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,GAAG,KAAK,CAK3D"}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ColorArea state management.
|
|
3
|
-
* Based on @react-stately/color useColorAreaState.
|
|
4
|
-
*/
|
|
5
|
-
import { type Accessor } from "solid-js";
|
|
6
|
-
import type { Color, ColorChannel } from "./types";
|
|
7
|
-
export interface ColorAreaStateOptions {
|
|
8
|
-
/** The current color value (controlled). */
|
|
9
|
-
value?: Color | string;
|
|
10
|
-
/** The default color value (uncontrolled). */
|
|
11
|
-
defaultValue?: Color | string;
|
|
12
|
-
/** Handler called when the color changes. */
|
|
13
|
-
onChange?: (color: Color) => void;
|
|
14
|
-
/** Handler called when dragging ends. */
|
|
15
|
-
onChangeEnd?: (color: Color) => void;
|
|
16
|
-
/** The color channel for the X axis. */
|
|
17
|
-
xChannel?: ColorChannel;
|
|
18
|
-
/** The color channel for the Y axis. */
|
|
19
|
-
yChannel?: ColorChannel;
|
|
20
|
-
/** Whether the area is disabled. */
|
|
21
|
-
isDisabled?: boolean;
|
|
22
|
-
}
|
|
23
|
-
export interface ColorAreaState {
|
|
24
|
-
/** The current color value. */
|
|
25
|
-
readonly value: Color;
|
|
26
|
-
/** The X axis channel. */
|
|
27
|
-
readonly xChannel: ColorChannel;
|
|
28
|
-
/** The Y axis channel. */
|
|
29
|
-
readonly yChannel: ColorChannel;
|
|
30
|
-
/** The Z axis channel (the third channel). */
|
|
31
|
-
readonly zChannel: ColorChannel;
|
|
32
|
-
/** Whether the area is being dragged. */
|
|
33
|
-
readonly isDragging: boolean;
|
|
34
|
-
/** Whether the area is disabled. */
|
|
35
|
-
readonly isDisabled: boolean;
|
|
36
|
-
/** Step for X channel. */
|
|
37
|
-
readonly xChannelStep: number;
|
|
38
|
-
/** Step for Y channel. */
|
|
39
|
-
readonly yChannelStep: number;
|
|
40
|
-
/** Page step for X channel. */
|
|
41
|
-
readonly xChannelPageStep: number;
|
|
42
|
-
/** Page step for Y channel. */
|
|
43
|
-
readonly yChannelPageStep: number;
|
|
44
|
-
/** Get the X channel value. */
|
|
45
|
-
getXValue(): number;
|
|
46
|
-
/** Get the Y channel value. */
|
|
47
|
-
getYValue(): number;
|
|
48
|
-
/** Set the X channel value. */
|
|
49
|
-
setXValue(value: number): void;
|
|
50
|
-
/** Set the Y channel value. */
|
|
51
|
-
setYValue(value: number): void;
|
|
52
|
-
/** Set color from a point (0-1, 0-1). */
|
|
53
|
-
setColorFromPoint(x: number, y: number): void;
|
|
54
|
-
/** Get the thumb position as percentages. */
|
|
55
|
-
getThumbPosition(): {
|
|
56
|
-
x: number;
|
|
57
|
-
y: number;
|
|
58
|
-
};
|
|
59
|
-
/** Increment X value. */
|
|
60
|
-
incrementX(stepSize?: number): void;
|
|
61
|
-
/** Decrement X value. */
|
|
62
|
-
decrementX(stepSize?: number): void;
|
|
63
|
-
/** Increment Y value. */
|
|
64
|
-
incrementY(stepSize?: number): void;
|
|
65
|
-
/** Decrement Y value. */
|
|
66
|
-
decrementY(stepSize?: number): void;
|
|
67
|
-
/** Set the dragging state. */
|
|
68
|
-
setDragging(isDragging: boolean): void;
|
|
69
|
-
/** Get the display color (with alpha = 1). */
|
|
70
|
-
getDisplayColor(): Color;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Creates state for a color area (2D color picker).
|
|
74
|
-
*/
|
|
75
|
-
export declare function createColorAreaState(
|
|
76
|
-
options: Accessor<ColorAreaStateOptions>,
|
|
77
|
-
): ColorAreaState;
|
|
78
|
-
//# sourceMappingURL=createColorAreaState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createColorAreaState.d.ts","sourceRoot":"","sources":["createColorAreaState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAA4B,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAa,MAAM,SAAS,CAAC;AAG9D,MAAM,WAAW,qBAAqB;IACpC,4CAA4C;IAC5C,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACvB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC9B,6CAA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AC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9C,6CAA6C;IAC7C,gBAAgB,IAAI;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7C,yBAAyB;IACzB,UAAU,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,yBAAyB;IACzB,UAAU,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,yBAAyB;IACzB,UAAU,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,yBAAyB;IACzB,UAAU,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,8BAA8B;IAC9B,WAAW,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IACvC,8CAA8C;IAC9C,eAAe,IAAI,KAAK,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,QAAQ,CAAC,qBAAqB,CAAC,GACvC,cAAc,CAqNhB"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ColorField state management.
|
|
3
|
-
* Based on @react-stately/color useColorFieldState.
|
|
4
|
-
*/
|
|
5
|
-
import { type Accessor } from "solid-js";
|
|
6
|
-
import type { Color, ColorChannel, ColorFormat } from "./types";
|
|
7
|
-
export interface ColorFieldStateOptions {
|
|
8
|
-
/** The current color value (controlled). */
|
|
9
|
-
value?: Color | string | null;
|
|
10
|
-
/** The default color value (uncontrolled). */
|
|
11
|
-
defaultValue?: Color | string;
|
|
12
|
-
/** Handler called when the color changes. */
|
|
13
|
-
onChange?: (color: Color | null) => void;
|
|
14
|
-
/** The color channel to edit (for single channel mode). */
|
|
15
|
-
channel?: ColorChannel;
|
|
16
|
-
/** The color format for parsing/displaying. */
|
|
17
|
-
colorFormat?: ColorFormat;
|
|
18
|
-
/** Whether the field is disabled. */
|
|
19
|
-
isDisabled?: boolean;
|
|
20
|
-
/** Whether the field is read-only. */
|
|
21
|
-
isReadOnly?: boolean;
|
|
22
|
-
}
|
|
23
|
-
export interface ColorFieldState {
|
|
24
|
-
/** The current color value (null if invalid). */
|
|
25
|
-
readonly value: Color | null;
|
|
26
|
-
/** The current input text. */
|
|
27
|
-
readonly inputValue: string;
|
|
28
|
-
/** Whether the input is invalid. */
|
|
29
|
-
readonly isInvalid: boolean;
|
|
30
|
-
/** Whether the field is disabled. */
|
|
31
|
-
readonly isDisabled: boolean;
|
|
32
|
-
/** Whether the field is read-only. */
|
|
33
|
-
readonly isReadOnly: boolean;
|
|
34
|
-
/** The color channel being edited (if single channel mode). */
|
|
35
|
-
readonly channel: ColorChannel | undefined;
|
|
36
|
-
/** Set the input text value. */
|
|
37
|
-
setInputValue(value: string): void;
|
|
38
|
-
/** Commit the current input value. */
|
|
39
|
-
commit(): void;
|
|
40
|
-
/** Increment the color channel value. */
|
|
41
|
-
increment(): void;
|
|
42
|
-
/** Decrement the color channel value. */
|
|
43
|
-
decrement(): void;
|
|
44
|
-
/** Increment by page size. */
|
|
45
|
-
incrementToMax(): void;
|
|
46
|
-
/** Decrement to minimum. */
|
|
47
|
-
decrementToMin(): void;
|
|
48
|
-
/** Validate the current input. */
|
|
49
|
-
validate(): boolean;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Creates state for a color field (text input for color values).
|
|
53
|
-
*/
|
|
54
|
-
export declare function createColorFieldState(
|
|
55
|
-
options: Accessor<ColorFieldStateOptions>,
|
|
56
|
-
): ColorFieldState;
|
|
57
|
-
//# sourceMappingURL=createColorFieldState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createColorFieldState.d.ts","sourceRoot":"","sources":["createColorFieldState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAA4B,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,KAAK,EAAE,KAAK,EAAE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AClC,QAAQ,IAAI,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,QAAQ,CAAC,sBAAsB,CAAC,GACxC,eAAe,CAsOjB"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ColorSlider state management.
|
|
3
|
-
* Based on @react-stately/color useColorSliderState.
|
|
4
|
-
*/
|
|
5
|
-
import { type Accessor } from "solid-js";
|
|
6
|
-
import type { Color, ColorChannel } from "./types";
|
|
7
|
-
export interface ColorSliderStateOptions {
|
|
8
|
-
/** The current color value (controlled). */
|
|
9
|
-
value?: Color | string;
|
|
10
|
-
/** The default color value (uncontrolled). */
|
|
11
|
-
defaultValue?: Color | string;
|
|
12
|
-
/** Handler called when the color changes. */
|
|
13
|
-
onChange?: (color: Color) => void;
|
|
14
|
-
/** Handler called when dragging ends. */
|
|
15
|
-
onChangeEnd?: (color: Color) => void;
|
|
16
|
-
/** The color channel this slider controls. */
|
|
17
|
-
channel: ColorChannel;
|
|
18
|
-
/** Whether the slider is disabled. */
|
|
19
|
-
isDisabled?: boolean;
|
|
20
|
-
/** The locale for formatting. */
|
|
21
|
-
locale?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface ColorSliderState {
|
|
24
|
-
/** The current color value. */
|
|
25
|
-
readonly value: Color;
|
|
26
|
-
/** Whether the slider is being dragged. */
|
|
27
|
-
readonly isDragging: boolean;
|
|
28
|
-
/** The color channel being controlled. */
|
|
29
|
-
readonly channel: ColorChannel;
|
|
30
|
-
/** The step value for the channel. */
|
|
31
|
-
readonly step: number;
|
|
32
|
-
/** The page step value for the channel. */
|
|
33
|
-
readonly pageSize: number;
|
|
34
|
-
/** The minimum value for the channel. */
|
|
35
|
-
readonly minValue: number;
|
|
36
|
-
/** The maximum value for the channel. */
|
|
37
|
-
readonly maxValue: number;
|
|
38
|
-
/** Whether the slider is disabled. */
|
|
39
|
-
readonly isDisabled: boolean;
|
|
40
|
-
/** Get the current channel value. */
|
|
41
|
-
getThumbValue(): number;
|
|
42
|
-
/** Get the minimum percent. */
|
|
43
|
-
getThumbMinValue(): number;
|
|
44
|
-
/** Get the maximum percent. */
|
|
45
|
-
getThumbMaxValue(): number;
|
|
46
|
-
/** Get the thumb value as a percentage. */
|
|
47
|
-
getThumbPercent(): number;
|
|
48
|
-
/** Set the channel value. */
|
|
49
|
-
setThumbValue(value: number): void;
|
|
50
|
-
/** Set the thumb value from a percentage (0-1). */
|
|
51
|
-
setThumbPercent(percent: number): void;
|
|
52
|
-
/** Increment the channel value. */
|
|
53
|
-
incrementThumb(stepSize?: number): void;
|
|
54
|
-
/** Decrement the channel value. */
|
|
55
|
-
decrementThumb(stepSize?: number): void;
|
|
56
|
-
/** Set the dragging state. */
|
|
57
|
-
setDragging(isDragging: boolean): void;
|
|
58
|
-
/** Get the display color (with alpha = 1). */
|
|
59
|
-
getDisplayColor(): Color;
|
|
60
|
-
/** Get the formatted value label. */
|
|
61
|
-
getThumbValueLabel(): string;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Creates state for a color slider.
|
|
65
|
-
*/
|
|
66
|
-
export declare function createColorSliderState(
|
|
67
|
-
options: Accessor<ColorSliderStateOptions>,
|
|
68
|
-
): ColorSliderState;
|
|
69
|
-
//# sourceMappingURL=createColorSliderState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createColorSliderState.d.ts","sourceRoot":"","sources":["createColorSliderState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAA4B,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGnD,MAAM,WAAW,uBAAuB;IACtC,4CAA4C;IAC5C,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACvB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;I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CAAmC;IACnC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,8BAA8B;IAC9B,WAAW,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IACvC,8CAA8C;IAC9C,eAAe,IAAI,KAAK,CAAC;IACzB,qCAAqC;IACrC,kBAAkB,IAAI,MAAM,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,QAAQ,CAAC,uBAAuB,CAAC,GACzC,gBAAgB,CAuKlB"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ColorWheel state management.
|
|
3
|
-
* Based on @react-stately/color useColorWheelState.
|
|
4
|
-
*/
|
|
5
|
-
import { type Accessor } from "solid-js";
|
|
6
|
-
import type { Color } from "./types";
|
|
7
|
-
export interface ColorWheelStateOptions {
|
|
8
|
-
/** The current color value (controlled). */
|
|
9
|
-
value?: Color | string;
|
|
10
|
-
/** The default color value (uncontrolled). */
|
|
11
|
-
defaultValue?: Color | string;
|
|
12
|
-
/** Handler called when the color changes. */
|
|
13
|
-
onChange?: (color: Color) => void;
|
|
14
|
-
/** Handler called when dragging ends. */
|
|
15
|
-
onChangeEnd?: (color: Color) => void;
|
|
16
|
-
/** Whether the wheel is disabled. */
|
|
17
|
-
isDisabled?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export interface ColorWheelState {
|
|
20
|
-
/** The current color value. */
|
|
21
|
-
readonly value: Color;
|
|
22
|
-
/** Whether the wheel is being dragged. */
|
|
23
|
-
readonly isDragging: boolean;
|
|
24
|
-
/** Whether the wheel is disabled. */
|
|
25
|
-
readonly isDisabled: boolean;
|
|
26
|
-
/** Step value for hue changes. */
|
|
27
|
-
readonly step: number;
|
|
28
|
-
/** Page step value for hue changes. */
|
|
29
|
-
readonly pageStep: number;
|
|
30
|
-
/** Get the current hue value (0-360). */
|
|
31
|
-
getHue(): number;
|
|
32
|
-
/** Set the hue value. */
|
|
33
|
-
setHue(value: number): void;
|
|
34
|
-
/** Set hue from an angle in radians. */
|
|
35
|
-
setHueFromAngle(angle: number): void;
|
|
36
|
-
/** Get the thumb angle in radians (0 = right, increases counterclockwise). */
|
|
37
|
-
getThumbAngle(): number;
|
|
38
|
-
/** Increment hue value. */
|
|
39
|
-
increment(stepSize?: number): void;
|
|
40
|
-
/** Decrement hue value. */
|
|
41
|
-
decrement(stepSize?: number): void;
|
|
42
|
-
/** Set the dragging state. */
|
|
43
|
-
setDragging(isDragging: boolean): void;
|
|
44
|
-
/** Get the display color (with full saturation/brightness for wheel). */
|
|
45
|
-
getDisplayColor(): Color;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Creates state for a color wheel (circular hue picker).
|
|
49
|
-
*/
|
|
50
|
-
export declare function createColorWheelState(
|
|
51
|
-
options: Accessor<ColorWheelStateOptions>,
|
|
52
|
-
): ColorWheelState;
|
|
53
|
-
//# sourceMappingURL=createColorWheelState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createColorWheelState.d.ts","sourceRoot":"","sources":["createColorWheelState.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAA4B,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,KAAK,EAAE,KAAK,EAAgB,MAAM,SAAS,CAAC;AAGnD,MAAM,WAAW,sBAAsB;IACrC,4CAA4C;IAC5C,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACvB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC9B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAClC,yCAAyC;IACzC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACrC,qCAAqC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,+BAA+B;IAC/B,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,0CAA0C;IAC1C,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,qCAAqC;IACrC,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,kCAAkC;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B,yCAAyC;IACzC,MAAM,IAAI,MAAM,CAAC;IACjB,yBAAyB;IACzB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,wCAAwC;IACxC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,8EAA8E;IAC9E,aAAa,IAAI,MAAM,CAAC;IACxB,2BAA2B;IAC3B,SAAS,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,2BAA2B;IAC3B,SAAS,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,8BAA8B;IAC9B,WAAW,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IACvC,yEAAyE;IACzE,eAAe,IAAI,KAAK,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,QAAQ,CAAC,sBAAsB,CAAC,GACxC,eAAe,CAyJjB"}
|
package/src/color/index.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Color state management exports.
|
|
3
|
-
*/
|
|
4
|
-
export type {
|
|
5
|
-
Color,
|
|
6
|
-
ColorFormat,
|
|
7
|
-
ColorSpace,
|
|
8
|
-
ColorChannel,
|
|
9
|
-
ColorChannelRange,
|
|
10
|
-
ColorAxes,
|
|
11
|
-
} from "./types";
|
|
12
|
-
export {
|
|
13
|
-
parseColor,
|
|
14
|
-
normalizeColor,
|
|
15
|
-
createRGBColor,
|
|
16
|
-
createHSLColor,
|
|
17
|
-
createHSBColor,
|
|
18
|
-
} from "./Color";
|
|
19
|
-
export {
|
|
20
|
-
createColorSliderState,
|
|
21
|
-
type ColorSliderStateOptions,
|
|
22
|
-
type ColorSliderState,
|
|
23
|
-
} from "./createColorSliderState";
|
|
24
|
-
export {
|
|
25
|
-
createColorAreaState,
|
|
26
|
-
type ColorAreaStateOptions,
|
|
27
|
-
type ColorAreaState,
|
|
28
|
-
} from "./createColorAreaState";
|
|
29
|
-
export {
|
|
30
|
-
createColorWheelState,
|
|
31
|
-
type ColorWheelStateOptions,
|
|
32
|
-
type ColorWheelState,
|
|
33
|
-
} from "./createColorWheelState";
|
|
34
|
-
export {
|
|
35
|
-
createColorFieldState,
|
|
36
|
-
type ColorFieldStateOptions,
|
|
37
|
-
type ColorFieldState,
|
|
38
|
-
} from "./createColorFieldState";
|
|
39
|
-
//# sourceMappingURL=index.d.ts.map
|
package/src/color/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,YAAY,EACV,KAAK,EACL,WAAW,EACX,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,SAAS,GACV,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,GACf,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,sBAAsB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,GACtB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,oBAAoB,EACpB,KAAK,qBAAqB,EAC1B,KAAK,cAAc,GACpB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,qBAAqB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,GACrB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,qBAAqB,EACrB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,GACrB,MAAM,yBAAyB,CAAC"}
|
package/src/color/types.d.ts
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Color types for color picker components.
|
|
3
|
-
* Based on @react-stately/color.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Supported color formats.
|
|
7
|
-
*/
|
|
8
|
-
export type ColorFormat = "hex" | "hexa" | "rgb" | "rgba" | "hsl" | "hsla" | "hsb" | "hsba";
|
|
9
|
-
/**
|
|
10
|
-
* Color spaces.
|
|
11
|
-
*/
|
|
12
|
-
export type ColorSpace = "rgb" | "hsl" | "hsb";
|
|
13
|
-
/**
|
|
14
|
-
* Color channels.
|
|
15
|
-
*/
|
|
16
|
-
export type ColorChannel =
|
|
17
|
-
| "hue"
|
|
18
|
-
| "saturation"
|
|
19
|
-
| "brightness"
|
|
20
|
-
| "lightness"
|
|
21
|
-
| "red"
|
|
22
|
-
| "green"
|
|
23
|
-
| "blue"
|
|
24
|
-
| "alpha";
|
|
25
|
-
/**
|
|
26
|
-
* Range for a color channel.
|
|
27
|
-
*/
|
|
28
|
-
export interface ColorChannelRange {
|
|
29
|
-
/** Minimum value. */
|
|
30
|
-
minValue: number;
|
|
31
|
-
/** Maximum value. */
|
|
32
|
-
maxValue: number;
|
|
33
|
-
/** Step for keyboard increment. */
|
|
34
|
-
step: number;
|
|
35
|
-
/** Page step for larger increments. */
|
|
36
|
-
pageSize: number;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Color axes for a color space.
|
|
40
|
-
*/
|
|
41
|
-
export interface ColorAxes {
|
|
42
|
-
/** X-axis channel. */
|
|
43
|
-
xChannel: ColorChannel;
|
|
44
|
-
/** Y-axis channel. */
|
|
45
|
-
yChannel: ColorChannel;
|
|
46
|
-
/** Z-axis channel (the one not on x or y). */
|
|
47
|
-
zChannel: ColorChannel;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Color interface representing a color value.
|
|
51
|
-
*/
|
|
52
|
-
export interface Color {
|
|
53
|
-
/** Convert to a different format. */
|
|
54
|
-
toFormat(format: ColorFormat): Color;
|
|
55
|
-
/** Convert to a CSS string. */
|
|
56
|
-
toString(format?: ColorFormat | "css"): string;
|
|
57
|
-
/** Clone this color. */
|
|
58
|
-
clone(): Color;
|
|
59
|
-
/** Get the hex value as an integer. */
|
|
60
|
-
toHexInt(): number;
|
|
61
|
-
/** Get the value of a specific channel. */
|
|
62
|
-
getChannelValue(channel: ColorChannel): number;
|
|
63
|
-
/** Create a new color with a channel value changed. */
|
|
64
|
-
withChannelValue(channel: ColorChannel, value: number): Color;
|
|
65
|
-
/** Get the range for a channel. */
|
|
66
|
-
getChannelRange(channel: ColorChannel): ColorChannelRange;
|
|
67
|
-
/** Get the localized name of a channel. */
|
|
68
|
-
getChannelName(channel: ColorChannel, locale: string): string;
|
|
69
|
-
/** Get the format options for a channel. */
|
|
70
|
-
getChannelFormatOptions(channel: ColorChannel): Intl.NumberFormatOptions;
|
|
71
|
-
/** Format the value of a channel. */
|
|
72
|
-
formatChannelValue(channel: ColorChannel, locale: string): string;
|
|
73
|
-
/** Get the color space. */
|
|
74
|
-
getColorSpace(): ColorSpace;
|
|
75
|
-
/** Get the axes for a color space. */
|
|
76
|
-
getColorSpaceAxes(xyChannels?: { xChannel?: ColorChannel; yChannel?: ColorChannel }): ColorAxes;
|
|
77
|
-
/** Get all channels for this color space. */
|
|
78
|
-
getColorChannels(): [ColorChannel, ColorChannel, ColorChannel];
|
|
79
|
-
/** Get a human-readable color name. */
|
|
80
|
-
getColorName(locale: string): string;
|
|
81
|
-
/** Get the hue name (e.g., "red", "blue"). */
|
|
82
|
-
getHueName(locale: string): string;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* RGB color value.
|
|
86
|
-
*/
|
|
87
|
-
export interface RGBColor {
|
|
88
|
-
red: number;
|
|
89
|
-
green: number;
|
|
90
|
-
blue: number;
|
|
91
|
-
alpha: number;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* HSL color value.
|
|
95
|
-
*/
|
|
96
|
-
export interface HSLColor {
|
|
97
|
-
hue: number;
|
|
98
|
-
saturation: number;
|
|
99
|
-
lightness: number;
|
|
100
|
-
alpha: number;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* HSB color value.
|
|
104
|
-
*/
|
|
105
|
-
export interface HSBColor {
|
|
106
|
-
hue: number;
|
|
107
|
-
saturation: number;
|
|
108
|
-
brightness: number;
|
|
109
|
-
alpha: number;
|
|
110
|
-
}
|
|
111
|
-
//# sourceMappingURL=types.d.ts.map
|
package/src/color/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,MAAM,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,YAAY,GACpB,KAAK,GACL,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,KAAK,GACL,OAAO,GACP,MAAM,GACN,OAAO,CAAC;AAEZ;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,qBAAqB;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,qBAAqB;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,sBAAsB;IACtB,QAAQ,EAAE,YAAY,CAAC;IACvB,sBAAsB;IACtB,QAAQ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8CAA8C;IAC9C,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* State management for ComboBox components.
|
|
3
|
-
* Based on @react-stately/combobox useComboBoxState.
|
|
4
|
-
*
|
|
5
|
-
* ComboBox combines a text input with a dropdown list, allowing users to
|
|
6
|
-
* either type to filter options or select from a list.
|
|
7
|
-
*/
|
|
8
|
-
import { type Accessor } from "solid-js";
|
|
9
|
-
import { type MaybeAccessor } from "../utils";
|
|
10
|
-
import type { Key, CollectionNode, Collection, FocusStrategy } from "../collections/types";
|
|
11
|
-
export type MenuTriggerAction = "focus" | "input" | "manual";
|
|
12
|
-
export type { FocusStrategy } from "../collections/types";
|
|
13
|
-
export type FilterFn = (textValue: string, inputValue: string) => boolean;
|
|
14
|
-
export interface ComboBoxStateProps<T = unknown> {
|
|
15
|
-
/** The items to display in the combobox dropdown. */
|
|
16
|
-
items?: T[];
|
|
17
|
-
/** Default items when uncontrolled. */
|
|
18
|
-
defaultItems?: T[];
|
|
19
|
-
/** Function to get the key for an item. */
|
|
20
|
-
getKey?: (item: T) => Key;
|
|
21
|
-
/** Function to get the text value for an item. */
|
|
22
|
-
getTextValue?: (item: T) => string;
|
|
23
|
-
/** Function to check if an item is disabled. */
|
|
24
|
-
getDisabled?: (item: T) => boolean;
|
|
25
|
-
/** Keys of disabled items. */
|
|
26
|
-
disabledKeys?: Iterable<Key>;
|
|
27
|
-
/** The currently selected key (controlled). */
|
|
28
|
-
selectedKey?: Key | null;
|
|
29
|
-
/** The default selected key (uncontrolled). */
|
|
30
|
-
defaultSelectedKey?: Key | null;
|
|
31
|
-
/** Handler called when the selection changes. */
|
|
32
|
-
onSelectionChange?: (key: Key | null) => void;
|
|
33
|
-
/** The current input value (controlled). */
|
|
34
|
-
inputValue?: string;
|
|
35
|
-
/** The default input value (uncontrolled). */
|
|
36
|
-
defaultInputValue?: string;
|
|
37
|
-
/** Handler called when the input value changes. */
|
|
38
|
-
onInputChange?: (value: string) => void;
|
|
39
|
-
/** Whether the combobox is open (controlled). */
|
|
40
|
-
isOpen?: boolean;
|
|
41
|
-
/** Whether the combobox is open by default (uncontrolled). */
|
|
42
|
-
defaultOpen?: boolean;
|
|
43
|
-
/** Handler called when the open state changes. */
|
|
44
|
-
onOpenChange?: (isOpen: boolean, trigger?: MenuTriggerAction) => void;
|
|
45
|
-
/** Whether the combobox is disabled. */
|
|
46
|
-
isDisabled?: boolean;
|
|
47
|
-
/** Whether the combobox is read-only. */
|
|
48
|
-
isReadOnly?: boolean;
|
|
49
|
-
/** Whether the combobox is required. */
|
|
50
|
-
isRequired?: boolean;
|
|
51
|
-
/** The filter function to use when filtering items. */
|
|
52
|
-
defaultFilter?: FilterFn;
|
|
53
|
-
/** Whether to allow the menu to open when there are no items. */
|
|
54
|
-
allowsEmptyCollection?: boolean;
|
|
55
|
-
/** Whether to allow custom values that don't match any option. */
|
|
56
|
-
allowsCustomValue?: boolean;
|
|
57
|
-
/** What triggers the menu to open. */
|
|
58
|
-
menuTrigger?: MenuTriggerAction;
|
|
59
|
-
/** Whether to close the menu on blur. */
|
|
60
|
-
shouldCloseOnBlur?: boolean;
|
|
61
|
-
}
|
|
62
|
-
export interface ComboBoxState<T = unknown> {
|
|
63
|
-
/** The collection of items (may be filtered). */
|
|
64
|
-
readonly collection: Accessor<Collection<T>>;
|
|
65
|
-
/** Whether the combobox dropdown is open. */
|
|
66
|
-
readonly isOpen: Accessor<boolean>;
|
|
67
|
-
/** Open the combobox dropdown. */
|
|
68
|
-
open(focusStrategy?: FocusStrategy | null, trigger?: MenuTriggerAction): void;
|
|
69
|
-
/** Close the combobox dropdown. */
|
|
70
|
-
close(): void;
|
|
71
|
-
/** Toggle the combobox dropdown. */
|
|
72
|
-
toggle(focusStrategy?: FocusStrategy | null, trigger?: MenuTriggerAction): void;
|
|
73
|
-
/** The currently selected key. */
|
|
74
|
-
readonly selectedKey: Accessor<Key | null>;
|
|
75
|
-
/** The default selected key. */
|
|
76
|
-
readonly defaultSelectedKey: Key | null;
|
|
77
|
-
/** The currently selected item. */
|
|
78
|
-
readonly selectedItem: Accessor<CollectionNode<T> | null>;
|
|
79
|
-
/** Set the selected key. */
|
|
80
|
-
setSelectedKey(key: Key | null): void;
|
|
81
|
-
/** The current input value. */
|
|
82
|
-
readonly inputValue: Accessor<string>;
|
|
83
|
-
/** The default input value. */
|
|
84
|
-
readonly defaultInputValue: string;
|
|
85
|
-
/** Set the input value. */
|
|
86
|
-
setInputValue(value: string): void;
|
|
87
|
-
/** The currently focused key in the list. */
|
|
88
|
-
readonly focusedKey: Accessor<Key | null>;
|
|
89
|
-
/** Set the focused key. */
|
|
90
|
-
setFocusedKey(key: Key | null): void;
|
|
91
|
-
/** Whether the combobox input has focus. */
|
|
92
|
-
readonly isFocused: Accessor<boolean>;
|
|
93
|
-
/** Set whether the combobox has focus. */
|
|
94
|
-
setFocused(isFocused: boolean): void;
|
|
95
|
-
/** The focus strategy to use when opening. */
|
|
96
|
-
readonly focusStrategy: Accessor<FocusStrategy | null>;
|
|
97
|
-
/** Commit the current selection (select focused item or custom value). */
|
|
98
|
-
commit(): void;
|
|
99
|
-
/** Revert input to the selected item's text and close menu. */
|
|
100
|
-
revert(): void;
|
|
101
|
-
/** Whether a specific key is disabled. */
|
|
102
|
-
isKeyDisabled(key: Key): boolean;
|
|
103
|
-
/** Select a key and close the menu (for ListState compatibility). */
|
|
104
|
-
select(key: Key): void;
|
|
105
|
-
/** The selection mode (always 'single' for combobox). */
|
|
106
|
-
readonly selectionMode: Accessor<"single">;
|
|
107
|
-
/** Check if a key is selected. */
|
|
108
|
-
isSelected(key: Key): boolean;
|
|
109
|
-
/** Whether the combobox is disabled. */
|
|
110
|
-
readonly isDisabled: boolean;
|
|
111
|
-
/** Whether the combobox is read-only. */
|
|
112
|
-
readonly isReadOnly: boolean;
|
|
113
|
-
/** Whether the combobox is required. */
|
|
114
|
-
readonly isRequired: boolean;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Default filter function that does case-insensitive "contains" matching.
|
|
118
|
-
*/
|
|
119
|
-
export declare const defaultContainsFilter: FilterFn;
|
|
120
|
-
/**
|
|
121
|
-
* Creates state for a combobox component.
|
|
122
|
-
* Combines list state with input value management and filtering.
|
|
123
|
-
*/
|
|
124
|
-
export declare function createComboBoxState<T = unknown>(
|
|
125
|
-
props: MaybeAccessor<ComboBoxStateProps<T>>,
|
|
126
|
-
): ComboBoxState<T>;
|
|
127
|
-
//# sourceMappingURL=createComboBoxState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createComboBoxState.d.ts","sourceRoot":"","sources":["createComboBoxState.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAA0C,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AACjF,OAAO,EAAU,KAAK,aAAa,EAAE,MAAM,UAAU,CAAC;AAGtD,OAAO,KAAK,EAAE,GAAG,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAM3F,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,OAAO,GAAG,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,UAAU,EAAE,OAAO,CAAC;CAC9B;AAMD;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,QAEnC,CAAC;AAMF;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,GAAG,OAAO,EAC7C,KAAK,EAAE,aAAa,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,GAC1C,aAAa,CAAC,CAAC,CAAC,CAuZlB"}
|
package/src/combobox/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ComboBox state management for Solid Stately.
|
|
3
|
-
*/
|
|
4
|
-
export {
|
|
5
|
-
createComboBoxState,
|
|
6
|
-
defaultContainsFilter,
|
|
7
|
-
type ComboBoxState,
|
|
8
|
-
type ComboBoxStateProps,
|
|
9
|
-
type FilterFn,
|
|
10
|
-
type MenuTriggerAction,
|
|
11
|
-
type FocusStrategy,
|
|
12
|
-
} from "./createComboBoxState";
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,QAAQ,EACb,KAAK,iBAAiB,EACtB,KAAK,aAAa,GACnB,MAAM,uBAAuB,CAAC"}
|