react-stately 3.45.0 → 3.46.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/.gitignore +7 -0
- package/Color/package.json +5 -0
- package/Item/package.json +5 -0
- package/Section/package.json +5 -0
- package/dist/exports/Color.cjs +23 -0
- package/dist/exports/Color.cjs.map +1 -0
- package/dist/exports/Color.js +17 -0
- package/dist/exports/Color.js.map +1 -0
- package/dist/exports/Color.mjs +17 -0
- package/dist/exports/Color.mjs.map +1 -0
- package/dist/exports/Item.cjs +22 -0
- package/dist/exports/Item.cjs.map +1 -0
- package/dist/exports/Item.js +17 -0
- package/dist/exports/Item.js.map +1 -0
- package/dist/exports/Item.mjs +17 -0
- package/dist/exports/Item.mjs.map +1 -0
- package/dist/exports/Section.cjs +22 -0
- package/dist/exports/Section.cjs.map +1 -0
- package/dist/exports/Section.js +17 -0
- package/dist/exports/Section.js.map +1 -0
- package/dist/exports/Section.mjs +17 -0
- package/dist/exports/Section.mjs.map +1 -0
- package/dist/exports/index.cjs +207 -0
- package/dist/exports/index.cjs.map +1 -0
- package/dist/exports/index.js +137 -0
- package/dist/exports/index.js.map +1 -0
- package/dist/exports/index.mjs +137 -0
- package/dist/exports/index.mjs.map +1 -0
- package/dist/exports/private/autocomplete/useAutocompleteState.cjs +12 -0
- package/dist/exports/private/autocomplete/useAutocompleteState.cjs.map +1 -0
- package/dist/exports/private/autocomplete/useAutocompleteState.js +7 -0
- package/dist/exports/private/autocomplete/useAutocompleteState.js.map +1 -0
- package/dist/exports/private/autocomplete/useAutocompleteState.mjs +7 -0
- package/dist/exports/private/autocomplete/useAutocompleteState.mjs.map +1 -0
- package/dist/exports/private/collections/CollectionBuilder.cjs +12 -0
- package/dist/exports/private/collections/CollectionBuilder.cjs.map +1 -0
- package/dist/exports/private/collections/CollectionBuilder.js +7 -0
- package/dist/exports/private/collections/CollectionBuilder.js.map +1 -0
- package/dist/exports/private/collections/CollectionBuilder.mjs +7 -0
- package/dist/exports/private/collections/CollectionBuilder.mjs.map +1 -0
- package/dist/exports/private/collections/getChildNodes.cjs +16 -0
- package/dist/exports/private/collections/getChildNodes.cjs.map +1 -0
- package/dist/exports/private/collections/getChildNodes.js +7 -0
- package/dist/exports/private/collections/getChildNodes.js.map +1 -0
- package/dist/exports/private/collections/getChildNodes.mjs +7 -0
- package/dist/exports/private/collections/getChildNodes.mjs.map +1 -0
- package/dist/exports/private/collections/getItemCount.cjs +12 -0
- package/dist/exports/private/collections/getItemCount.cjs.map +1 -0
- package/dist/exports/private/collections/getItemCount.js +7 -0
- package/dist/exports/private/collections/getItemCount.js.map +1 -0
- package/dist/exports/private/collections/getItemCount.mjs +7 -0
- package/dist/exports/private/collections/getItemCount.mjs.map +1 -0
- package/dist/exports/private/collections/types.cjs +3 -0
- package/dist/exports/private/collections/types.cjs.map +1 -0
- package/dist/exports/private/collections/types.js +3 -0
- package/dist/exports/private/collections/types.js.map +1 -0
- package/dist/exports/private/collections/types.mjs +3 -0
- package/dist/exports/private/collections/types.mjs.map +1 -0
- package/dist/exports/private/collections/useCollection.cjs +12 -0
- package/dist/exports/private/collections/useCollection.cjs.map +1 -0
- package/dist/exports/private/collections/useCollection.js +7 -0
- package/dist/exports/private/collections/useCollection.js.map +1 -0
- package/dist/exports/private/collections/useCollection.mjs +7 -0
- package/dist/exports/private/collections/useCollection.mjs.map +1 -0
- package/dist/exports/private/datepicker/utils.cjs +3 -0
- package/dist/exports/private/datepicker/utils.cjs.map +1 -0
- package/dist/exports/private/datepicker/utils.js +3 -0
- package/dist/exports/private/datepicker/utils.js.map +1 -0
- package/dist/exports/private/datepicker/utils.mjs +3 -0
- package/dist/exports/private/datepicker/utils.mjs.map +1 -0
- package/dist/exports/private/flags/flags.cjs +15 -0
- package/dist/exports/private/flags/flags.cjs.map +1 -0
- package/dist/exports/private/flags/flags.js +7 -0
- package/dist/exports/private/flags/flags.js.map +1 -0
- package/dist/exports/private/flags/flags.mjs +7 -0
- package/dist/exports/private/flags/flags.mjs.map +1 -0
- package/dist/exports/private/form/useFormValidationState.cjs +17 -0
- package/dist/exports/private/form/useFormValidationState.cjs.map +1 -0
- package/dist/exports/private/form/useFormValidationState.js +7 -0
- package/dist/exports/private/form/useFormValidationState.js.map +1 -0
- package/dist/exports/private/form/useFormValidationState.mjs +7 -0
- package/dist/exports/private/form/useFormValidationState.mjs.map +1 -0
- package/dist/exports/private/grid/GridCollection.cjs +12 -0
- package/dist/exports/private/grid/GridCollection.cjs.map +1 -0
- package/dist/exports/private/grid/GridCollection.js +7 -0
- package/dist/exports/private/grid/GridCollection.js.map +1 -0
- package/dist/exports/private/grid/GridCollection.mjs +7 -0
- package/dist/exports/private/grid/GridCollection.mjs.map +1 -0
- package/dist/exports/private/grid/useGridState.cjs +12 -0
- package/dist/exports/private/grid/useGridState.cjs.map +1 -0
- package/dist/exports/private/grid/useGridState.js +7 -0
- package/dist/exports/private/grid/useGridState.js.map +1 -0
- package/dist/exports/private/grid/useGridState.mjs +7 -0
- package/dist/exports/private/grid/useGridState.mjs.map +1 -0
- package/dist/exports/private/list/ListCollection.cjs +12 -0
- package/dist/exports/private/list/ListCollection.cjs.map +1 -0
- package/dist/exports/private/list/ListCollection.js +7 -0
- package/dist/exports/private/list/ListCollection.js.map +1 -0
- package/dist/exports/private/list/ListCollection.mjs +7 -0
- package/dist/exports/private/list/ListCollection.mjs.map +1 -0
- package/dist/exports/private/selection/SelectionManager.cjs +12 -0
- package/dist/exports/private/selection/SelectionManager.cjs.map +1 -0
- package/dist/exports/private/selection/SelectionManager.js +7 -0
- package/dist/exports/private/selection/SelectionManager.js.map +1 -0
- package/dist/exports/private/selection/SelectionManager.mjs +7 -0
- package/dist/exports/private/selection/SelectionManager.mjs.map +1 -0
- package/dist/exports/private/steplist/useStepListState.cjs +12 -0
- package/dist/exports/private/steplist/useStepListState.cjs.map +1 -0
- package/dist/exports/private/steplist/useStepListState.js +7 -0
- package/dist/exports/private/steplist/useStepListState.js.map +1 -0
- package/dist/exports/private/steplist/useStepListState.mjs +7 -0
- package/dist/exports/private/steplist/useStepListState.mjs.map +1 -0
- package/dist/exports/private/table/TableCollection.cjs +13 -0
- package/dist/exports/private/table/TableCollection.cjs.map +1 -0
- package/dist/exports/private/table/TableCollection.js +7 -0
- package/dist/exports/private/table/TableCollection.js.map +1 -0
- package/dist/exports/private/table/TableCollection.mjs +7 -0
- package/dist/exports/private/table/TableCollection.mjs.map +1 -0
- package/dist/exports/private/table/TableColumnLayout.cjs +12 -0
- package/dist/exports/private/table/TableColumnLayout.cjs.map +1 -0
- package/dist/exports/private/table/TableColumnLayout.js +7 -0
- package/dist/exports/private/table/TableColumnLayout.js.map +1 -0
- package/dist/exports/private/table/TableColumnLayout.mjs +7 -0
- package/dist/exports/private/table/TableColumnLayout.mjs.map +1 -0
- package/dist/exports/private/table/useTableState.cjs +3 -0
- package/dist/exports/private/table/useTableState.cjs.map +1 -0
- package/dist/exports/private/table/useTableState.js +3 -0
- package/dist/exports/private/table/useTableState.js.map +1 -0
- package/dist/exports/private/table/useTableState.mjs +3 -0
- package/dist/exports/private/table/useTableState.mjs.map +1 -0
- package/dist/exports/private/table/useTreeGridState.cjs +12 -0
- package/dist/exports/private/table/useTreeGridState.cjs.map +1 -0
- package/dist/exports/private/table/useTreeGridState.js +7 -0
- package/dist/exports/private/table/useTreeGridState.js.map +1 -0
- package/dist/exports/private/table/useTreeGridState.mjs +7 -0
- package/dist/exports/private/table/useTreeGridState.mjs.map +1 -0
- package/dist/exports/private/tree/TreeCollection.cjs +12 -0
- package/dist/exports/private/tree/TreeCollection.cjs.map +1 -0
- package/dist/exports/private/tree/TreeCollection.js +7 -0
- package/dist/exports/private/tree/TreeCollection.js.map +1 -0
- package/dist/exports/private/tree/TreeCollection.mjs +7 -0
- package/dist/exports/private/tree/TreeCollection.mjs.map +1 -0
- package/dist/exports/private/utils/number.cjs +14 -0
- package/dist/exports/private/utils/number.cjs.map +1 -0
- package/dist/exports/private/utils/number.js +7 -0
- package/dist/exports/private/utils/number.js.map +1 -0
- package/dist/exports/private/utils/number.mjs +7 -0
- package/dist/exports/private/utils/number.mjs.map +1 -0
- package/dist/exports/useAsyncList.cjs +22 -0
- package/dist/exports/useAsyncList.cjs.map +1 -0
- package/dist/exports/useAsyncList.js +17 -0
- package/dist/exports/useAsyncList.js.map +1 -0
- package/dist/exports/useAsyncList.mjs +17 -0
- package/dist/exports/useAsyncList.mjs.map +1 -0
- package/dist/exports/useCalendarState.cjs +22 -0
- package/dist/exports/useCalendarState.cjs.map +1 -0
- package/dist/exports/useCalendarState.js +17 -0
- package/dist/exports/useCalendarState.js.map +1 -0
- package/dist/exports/useCalendarState.mjs +17 -0
- package/dist/exports/useCalendarState.mjs.map +1 -0
- package/dist/exports/useCheckboxGroupState.cjs +22 -0
- package/dist/exports/useCheckboxGroupState.cjs.map +1 -0
- package/dist/exports/useCheckboxGroupState.js +17 -0
- package/dist/exports/useCheckboxGroupState.js.map +1 -0
- package/dist/exports/useCheckboxGroupState.mjs +17 -0
- package/dist/exports/useCheckboxGroupState.mjs.map +1 -0
- package/dist/exports/useColorAreaState.cjs +22 -0
- package/dist/exports/useColorAreaState.cjs.map +1 -0
- package/dist/exports/useColorAreaState.js +17 -0
- package/dist/exports/useColorAreaState.js.map +1 -0
- package/dist/exports/useColorAreaState.mjs +17 -0
- package/dist/exports/useColorAreaState.mjs.map +1 -0
- package/dist/exports/useColorFieldState.cjs +25 -0
- package/dist/exports/useColorFieldState.cjs.map +1 -0
- package/dist/exports/useColorFieldState.js +19 -0
- package/dist/exports/useColorFieldState.js.map +1 -0
- package/dist/exports/useColorFieldState.mjs +19 -0
- package/dist/exports/useColorFieldState.mjs.map +1 -0
- package/dist/exports/useColorPickerState.cjs +22 -0
- package/dist/exports/useColorPickerState.cjs.map +1 -0
- package/dist/exports/useColorPickerState.js +17 -0
- package/dist/exports/useColorPickerState.js.map +1 -0
- package/dist/exports/useColorPickerState.mjs +17 -0
- package/dist/exports/useColorPickerState.mjs.map +1 -0
- package/dist/exports/useColorSliderState.cjs +22 -0
- package/dist/exports/useColorSliderState.cjs.map +1 -0
- package/dist/exports/useColorSliderState.js +17 -0
- package/dist/exports/useColorSliderState.js.map +1 -0
- package/dist/exports/useColorSliderState.mjs +17 -0
- package/dist/exports/useColorSliderState.mjs.map +1 -0
- package/dist/exports/useColorWheelState.cjs +22 -0
- package/dist/exports/useColorWheelState.cjs.map +1 -0
- package/dist/exports/useColorWheelState.js +17 -0
- package/dist/exports/useColorWheelState.js.map +1 -0
- package/dist/exports/useColorWheelState.mjs +17 -0
- package/dist/exports/useColorWheelState.mjs.map +1 -0
- package/dist/exports/useComboBoxState.cjs +22 -0
- package/dist/exports/useComboBoxState.cjs.map +1 -0
- package/dist/exports/useComboBoxState.js +17 -0
- package/dist/exports/useComboBoxState.js.map +1 -0
- package/dist/exports/useComboBoxState.mjs +17 -0
- package/dist/exports/useComboBoxState.mjs.map +1 -0
- package/dist/exports/useControlledState.cjs +12 -0
- package/dist/exports/useControlledState.cjs.map +1 -0
- package/dist/exports/useControlledState.js +7 -0
- package/dist/exports/useControlledState.js.map +1 -0
- package/dist/exports/useControlledState.mjs +7 -0
- package/dist/exports/useControlledState.mjs.map +1 -0
- package/dist/exports/useDateFieldState.cjs +22 -0
- package/dist/exports/useDateFieldState.cjs.map +1 -0
- package/dist/exports/useDateFieldState.js +17 -0
- package/dist/exports/useDateFieldState.js.map +1 -0
- package/dist/exports/useDateFieldState.mjs +17 -0
- package/dist/exports/useDateFieldState.mjs.map +1 -0
- package/dist/exports/useDatePickerState.cjs +22 -0
- package/dist/exports/useDatePickerState.cjs.map +1 -0
- package/dist/exports/useDatePickerState.js +17 -0
- package/dist/exports/useDatePickerState.js.map +1 -0
- package/dist/exports/useDatePickerState.mjs +17 -0
- package/dist/exports/useDatePickerState.mjs.map +1 -0
- package/dist/exports/useDateRangePickerState.cjs +22 -0
- package/dist/exports/useDateRangePickerState.cjs.map +1 -0
- package/dist/exports/useDateRangePickerState.js +17 -0
- package/dist/exports/useDateRangePickerState.js.map +1 -0
- package/dist/exports/useDateRangePickerState.mjs +17 -0
- package/dist/exports/useDateRangePickerState.mjs.map +1 -0
- package/dist/exports/useDisclosureGroupState.cjs +22 -0
- package/dist/exports/useDisclosureGroupState.cjs.map +1 -0
- package/dist/exports/useDisclosureGroupState.js +17 -0
- package/dist/exports/useDisclosureGroupState.js.map +1 -0
- package/dist/exports/useDisclosureGroupState.mjs +17 -0
- package/dist/exports/useDisclosureGroupState.mjs.map +1 -0
- package/dist/exports/useDisclosureState.cjs +22 -0
- package/dist/exports/useDisclosureState.cjs.map +1 -0
- package/dist/exports/useDisclosureState.js +17 -0
- package/dist/exports/useDisclosureState.js.map +1 -0
- package/dist/exports/useDisclosureState.mjs +17 -0
- package/dist/exports/useDisclosureState.mjs.map +1 -0
- package/dist/exports/useDraggableCollectionState.cjs +22 -0
- package/dist/exports/useDraggableCollectionState.cjs.map +1 -0
- package/dist/exports/useDraggableCollectionState.js +17 -0
- package/dist/exports/useDraggableCollectionState.js.map +1 -0
- package/dist/exports/useDraggableCollectionState.mjs +17 -0
- package/dist/exports/useDraggableCollectionState.mjs.map +1 -0
- package/dist/exports/useDroppableCollectionState.cjs +22 -0
- package/dist/exports/useDroppableCollectionState.cjs.map +1 -0
- package/dist/exports/useDroppableCollectionState.js +17 -0
- package/dist/exports/useDroppableCollectionState.js.map +1 -0
- package/dist/exports/useDroppableCollectionState.mjs +17 -0
- package/dist/exports/useDroppableCollectionState.mjs.map +1 -0
- package/dist/exports/useListData.cjs +22 -0
- package/dist/exports/useListData.cjs.map +1 -0
- package/dist/exports/useListData.js +17 -0
- package/dist/exports/useListData.js.map +1 -0
- package/dist/exports/useListData.mjs +17 -0
- package/dist/exports/useListData.mjs.map +1 -0
- package/dist/exports/useListState.cjs +23 -0
- package/dist/exports/useListState.cjs.map +1 -0
- package/dist/exports/useListState.js +17 -0
- package/dist/exports/useListState.js.map +1 -0
- package/dist/exports/useListState.mjs +17 -0
- package/dist/exports/useListState.mjs.map +1 -0
- package/dist/exports/useMenuTriggerState.cjs +25 -0
- package/dist/exports/useMenuTriggerState.cjs.map +1 -0
- package/dist/exports/useMenuTriggerState.js +19 -0
- package/dist/exports/useMenuTriggerState.js.map +1 -0
- package/dist/exports/useMenuTriggerState.mjs +19 -0
- package/dist/exports/useMenuTriggerState.mjs.map +1 -0
- package/dist/exports/useMultipleSelectionState.cjs +22 -0
- package/dist/exports/useMultipleSelectionState.cjs.map +1 -0
- package/dist/exports/useMultipleSelectionState.js +17 -0
- package/dist/exports/useMultipleSelectionState.js.map +1 -0
- package/dist/exports/useMultipleSelectionState.mjs +17 -0
- package/dist/exports/useMultipleSelectionState.mjs.map +1 -0
- package/dist/exports/useNumberFieldState.cjs +22 -0
- package/dist/exports/useNumberFieldState.cjs.map +1 -0
- package/dist/exports/useNumberFieldState.js +17 -0
- package/dist/exports/useNumberFieldState.js.map +1 -0
- package/dist/exports/useNumberFieldState.mjs +17 -0
- package/dist/exports/useNumberFieldState.mjs.map +1 -0
- package/dist/exports/useOverlayTriggerState.cjs +22 -0
- package/dist/exports/useOverlayTriggerState.cjs.map +1 -0
- package/dist/exports/useOverlayTriggerState.js +17 -0
- package/dist/exports/useOverlayTriggerState.js.map +1 -0
- package/dist/exports/useOverlayTriggerState.mjs +17 -0
- package/dist/exports/useOverlayTriggerState.mjs.map +1 -0
- package/dist/exports/useRadioGroupState.cjs +22 -0
- package/dist/exports/useRadioGroupState.cjs.map +1 -0
- package/dist/exports/useRadioGroupState.js +17 -0
- package/dist/exports/useRadioGroupState.js.map +1 -0
- package/dist/exports/useRadioGroupState.mjs +17 -0
- package/dist/exports/useRadioGroupState.mjs.map +1 -0
- package/dist/exports/useRangeCalendarState.cjs +22 -0
- package/dist/exports/useRangeCalendarState.cjs.map +1 -0
- package/dist/exports/useRangeCalendarState.js +17 -0
- package/dist/exports/useRangeCalendarState.js.map +1 -0
- package/dist/exports/useRangeCalendarState.mjs +17 -0
- package/dist/exports/useRangeCalendarState.mjs.map +1 -0
- package/dist/exports/useSearchFieldState.cjs +22 -0
- package/dist/exports/useSearchFieldState.cjs.map +1 -0
- package/dist/exports/useSearchFieldState.js +17 -0
- package/dist/exports/useSearchFieldState.js.map +1 -0
- package/dist/exports/useSearchFieldState.mjs +17 -0
- package/dist/exports/useSearchFieldState.mjs.map +1 -0
- package/dist/exports/useSelectState.cjs +22 -0
- package/dist/exports/useSelectState.cjs.map +1 -0
- package/dist/exports/useSelectState.js +17 -0
- package/dist/exports/useSelectState.js.map +1 -0
- package/dist/exports/useSelectState.mjs +17 -0
- package/dist/exports/useSelectState.mjs.map +1 -0
- package/dist/exports/useSingleSelectListState.cjs +22 -0
- package/dist/exports/useSingleSelectListState.cjs.map +1 -0
- package/dist/exports/useSingleSelectListState.js +17 -0
- package/dist/exports/useSingleSelectListState.js.map +1 -0
- package/dist/exports/useSingleSelectListState.mjs +17 -0
- package/dist/exports/useSingleSelectListState.mjs.map +1 -0
- package/dist/exports/useSliderState.cjs +22 -0
- package/dist/exports/useSliderState.cjs.map +1 -0
- package/dist/exports/useSliderState.js +17 -0
- package/dist/exports/useSliderState.js.map +1 -0
- package/dist/exports/useSliderState.mjs +17 -0
- package/dist/exports/useSliderState.mjs.map +1 -0
- package/dist/exports/useTabListState.cjs +22 -0
- package/dist/exports/useTabListState.cjs.map +1 -0
- package/dist/exports/useTabListState.js +17 -0
- package/dist/exports/useTabListState.js.map +1 -0
- package/dist/exports/useTabListState.mjs +17 -0
- package/dist/exports/useTabListState.mjs.map +1 -0
- package/dist/exports/useTableState.cjs +41 -0
- package/dist/exports/useTableState.cjs.map +1 -0
- package/dist/exports/useTableState.js +29 -0
- package/dist/exports/useTableState.js.map +1 -0
- package/dist/exports/useTableState.mjs +29 -0
- package/dist/exports/useTableState.mjs.map +1 -0
- package/dist/exports/useTimeFieldState.cjs +22 -0
- package/dist/exports/useTimeFieldState.cjs.map +1 -0
- package/dist/exports/useTimeFieldState.js +17 -0
- package/dist/exports/useTimeFieldState.js.map +1 -0
- package/dist/exports/useTimeFieldState.mjs +17 -0
- package/dist/exports/useTimeFieldState.mjs.map +1 -0
- package/dist/exports/useToastState.cjs +24 -0
- package/dist/exports/useToastState.cjs.map +1 -0
- package/dist/exports/useToastState.js +17 -0
- package/dist/exports/useToastState.js.map +1 -0
- package/dist/exports/useToastState.mjs +17 -0
- package/dist/exports/useToastState.mjs.map +1 -0
- package/dist/exports/useToggleGroupState.cjs +22 -0
- package/dist/exports/useToggleGroupState.cjs.map +1 -0
- package/dist/exports/useToggleGroupState.js +17 -0
- package/dist/exports/useToggleGroupState.js.map +1 -0
- package/dist/exports/useToggleGroupState.mjs +17 -0
- package/dist/exports/useToggleGroupState.mjs.map +1 -0
- package/dist/exports/useToggleState.cjs +22 -0
- package/dist/exports/useToggleState.cjs.map +1 -0
- package/dist/exports/useToggleState.js +17 -0
- package/dist/exports/useToggleState.js.map +1 -0
- package/dist/exports/useToggleState.mjs +17 -0
- package/dist/exports/useToggleState.mjs.map +1 -0
- package/dist/exports/useTooltipTriggerState.cjs +22 -0
- package/dist/exports/useTooltipTriggerState.cjs.map +1 -0
- package/dist/exports/useTooltipTriggerState.js +17 -0
- package/dist/exports/useTooltipTriggerState.js.map +1 -0
- package/dist/exports/useTooltipTriggerState.mjs +17 -0
- package/dist/exports/useTooltipTriggerState.mjs.map +1 -0
- package/dist/exports/useTreeData.cjs +22 -0
- package/dist/exports/useTreeData.cjs.map +1 -0
- package/dist/exports/useTreeData.js +17 -0
- package/dist/exports/useTreeData.js.map +1 -0
- package/dist/exports/useTreeData.mjs +17 -0
- package/dist/exports/useTreeData.mjs.map +1 -0
- package/dist/exports/useTreeState.cjs +22 -0
- package/dist/exports/useTreeState.cjs.map +1 -0
- package/dist/exports/useTreeState.js +17 -0
- package/dist/exports/useTreeState.js.map +1 -0
- package/dist/exports/useTreeState.mjs +17 -0
- package/dist/exports/useTreeState.mjs.map +1 -0
- package/dist/exports/useVirtualizerState.cjs +42 -0
- package/dist/exports/useVirtualizerState.cjs.map +1 -0
- package/dist/exports/useVirtualizerState.js +27 -0
- package/dist/exports/useVirtualizerState.js.map +1 -0
- package/dist/exports/useVirtualizerState.mjs +27 -0
- package/dist/exports/useVirtualizerState.mjs.map +1 -0
- package/dist/private/autocomplete/useAutocompleteState.cjs +38 -0
- package/dist/private/autocomplete/useAutocompleteState.cjs.map +1 -0
- package/dist/private/autocomplete/useAutocompleteState.js +33 -0
- package/dist/private/autocomplete/useAutocompleteState.js.map +1 -0
- package/dist/private/autocomplete/useAutocompleteState.mjs +33 -0
- package/dist/private/autocomplete/useAutocompleteState.mjs.map +1 -0
- package/dist/private/calendar/useCalendarState.cjs +297 -0
- package/dist/private/calendar/useCalendarState.cjs.map +1 -0
- package/dist/private/calendar/useCalendarState.js +294 -0
- package/dist/private/calendar/useCalendarState.js.map +1 -0
- package/dist/private/calendar/useCalendarState.mjs +292 -0
- package/dist/private/calendar/useCalendarState.mjs.map +1 -0
- package/dist/private/calendar/useRangeCalendarState.cjs +185 -0
- package/dist/private/calendar/useRangeCalendarState.cjs.map +1 -0
- package/dist/private/calendar/useRangeCalendarState.js +181 -0
- package/dist/private/calendar/useRangeCalendarState.js.map +1 -0
- package/dist/private/calendar/useRangeCalendarState.mjs +180 -0
- package/dist/private/calendar/useRangeCalendarState.mjs.map +1 -0
- package/dist/private/calendar/utils.cjs +90 -0
- package/dist/private/calendar/utils.cjs.map +1 -0
- package/dist/private/calendar/utils.js +79 -0
- package/dist/private/calendar/utils.js.map +1 -0
- package/dist/private/calendar/utils.mjs +79 -0
- package/dist/private/calendar/utils.mjs.map +1 -0
- package/dist/private/checkbox/useCheckboxGroupState.cjs +78 -0
- package/dist/private/checkbox/useCheckboxGroupState.cjs.map +1 -0
- package/dist/private/checkbox/useCheckboxGroupState.js +74 -0
- package/dist/private/checkbox/useCheckboxGroupState.js.map +1 -0
- package/dist/private/checkbox/useCheckboxGroupState.mjs +73 -0
- package/dist/private/checkbox/useCheckboxGroupState.mjs.map +1 -0
- package/dist/private/collections/CollectionBuilder.cjs +216 -0
- package/dist/private/collections/CollectionBuilder.cjs.map +1 -0
- package/dist/private/collections/CollectionBuilder.js +214 -0
- package/dist/private/collections/CollectionBuilder.js.map +1 -0
- package/dist/private/collections/CollectionBuilder.mjs +207 -0
- package/dist/private/collections/CollectionBuilder.mjs.map +1 -0
- package/dist/private/collections/Item.cjs +68 -0
- package/dist/private/collections/Item.cjs.map +1 -0
- package/dist/private/collections/Item.js +59 -0
- package/dist/private/collections/Item.js.map +1 -0
- package/dist/private/collections/Item.mjs +59 -0
- package/dist/private/collections/Item.mjs.map +1 -0
- package/dist/private/collections/Section.cjs +60 -0
- package/dist/private/collections/Section.cjs.map +1 -0
- package/dist/private/collections/Section.js +51 -0
- package/dist/private/collections/Section.js.map +1 -0
- package/dist/private/collections/Section.mjs +51 -0
- package/dist/private/collections/Section.mjs.map +1 -0
- package/dist/private/collections/getChildNodes.cjs +81 -0
- package/dist/private/collections/getChildNodes.cjs.map +1 -0
- package/dist/private/collections/getChildNodes.js +72 -0
- package/dist/private/collections/getChildNodes.js.map +1 -0
- package/dist/private/collections/getChildNodes.mjs +72 -0
- package/dist/private/collections/getChildNodes.mjs.map +1 -0
- package/dist/private/collections/getItemCount.cjs +38 -0
- package/dist/private/collections/getItemCount.cjs.map +1 -0
- package/dist/private/collections/getItemCount.js +33 -0
- package/dist/private/collections/getItemCount.js.map +1 -0
- package/dist/private/collections/getItemCount.mjs +33 -0
- package/dist/private/collections/getItemCount.mjs.map +1 -0
- package/dist/private/collections/useCollection.cjs +44 -0
- package/dist/private/collections/useCollection.cjs.map +1 -0
- package/dist/private/collections/useCollection.js +39 -0
- package/dist/private/collections/useCollection.js.map +1 -0
- package/dist/private/collections/useCollection.mjs +39 -0
- package/dist/private/collections/useCollection.mjs.map +1 -0
- package/dist/private/color/Color.cjs +769 -0
- package/dist/private/color/Color.cjs.map +1 -0
- package/dist/private/color/Color.js +759 -0
- package/dist/private/color/Color.js.map +1 -0
- package/dist/private/color/Color.mjs +762 -0
- package/dist/private/color/Color.mjs.map +1 -0
- package/dist/private/color/intlStrings.cjs +108 -0
- package/dist/private/color/intlStrings.cjs.map +1 -0
- package/dist/private/color/intlStrings.js +110 -0
- package/dist/private/color/intlStrings.js.map +1 -0
- package/dist/private/color/intlStrings.mjs +110 -0
- package/dist/private/color/intlStrings.mjs.map +1 -0
- package/dist/private/color/useColor.cjs +36 -0
- package/dist/private/color/useColor.cjs.map +1 -0
- package/dist/private/color/useColor.js +31 -0
- package/dist/private/color/useColor.js.map +1 -0
- package/dist/private/color/useColor.mjs +31 -0
- package/dist/private/color/useColor.mjs.map +1 -0
- package/dist/private/color/useColorAreaState.cjs +135 -0
- package/dist/private/color/useColorAreaState.cjs.map +1 -0
- package/dist/private/color/useColorAreaState.js +130 -0
- package/dist/private/color/useColorAreaState.js.map +1 -0
- package/dist/private/color/useColorAreaState.mjs +130 -0
- package/dist/private/color/useColorAreaState.mjs.map +1 -0
- package/dist/private/color/useColorChannelFieldState.cjs +65 -0
- package/dist/private/color/useColorChannelFieldState.cjs.map +1 -0
- package/dist/private/color/useColorChannelFieldState.js +60 -0
- package/dist/private/color/useColorChannelFieldState.js.map +1 -0
- package/dist/private/color/useColorChannelFieldState.mjs +60 -0
- package/dist/private/color/useColorChannelFieldState.mjs.map +1 -0
- package/dist/private/color/useColorFieldState.cjs +139 -0
- package/dist/private/color/useColorFieldState.cjs.map +1 -0
- package/dist/private/color/useColorFieldState.js +137 -0
- package/dist/private/color/useColorFieldState.js.map +1 -0
- package/dist/private/color/useColorFieldState.mjs +134 -0
- package/dist/private/color/useColorFieldState.mjs.map +1 -0
- package/dist/private/color/useColorPickerState.cjs +27 -0
- package/dist/private/color/useColorPickerState.cjs.map +1 -0
- package/dist/private/color/useColorPickerState.js +22 -0
- package/dist/private/color/useColorPickerState.js.map +1 -0
- package/dist/private/color/useColorPickerState.mjs +22 -0
- package/dist/private/color/useColorPickerState.mjs.map +1 -0
- package/dist/private/color/useColorSliderState.cjs +93 -0
- package/dist/private/color/useColorSliderState.cjs.map +1 -0
- package/dist/private/color/useColorSliderState.js +88 -0
- package/dist/private/color/useColorSliderState.js.map +1 -0
- package/dist/private/color/useColorSliderState.mjs +88 -0
- package/dist/private/color/useColorSliderState.mjs.map +1 -0
- package/dist/private/color/useColorWheelState.cjs +135 -0
- package/dist/private/color/useColorWheelState.cjs.map +1 -0
- package/dist/private/color/useColorWheelState.js +130 -0
- package/dist/private/color/useColorWheelState.js.map +1 -0
- package/dist/private/color/useColorWheelState.mjs +130 -0
- package/dist/private/color/useColorWheelState.mjs.map +1 -0
- package/dist/private/combobox/useComboBoxState.cjs +377 -0
- package/dist/private/combobox/useComboBoxState.cjs.map +1 -0
- package/dist/private/combobox/useComboBoxState.js +393 -0
- package/dist/private/combobox/useComboBoxState.js.map +1 -0
- package/dist/private/combobox/useComboBoxState.mjs +372 -0
- package/dist/private/combobox/useComboBoxState.mjs.map +1 -0
- package/dist/private/data/useAsyncList.cjs +274 -0
- package/dist/private/data/useAsyncList.cjs.map +1 -0
- package/dist/private/data/useAsyncList.js +285 -0
- package/dist/private/data/useAsyncList.js.map +1 -0
- package/dist/private/data/useAsyncList.mjs +269 -0
- package/dist/private/data/useAsyncList.mjs.map +1 -0
- package/dist/private/data/useListData.cjs +253 -0
- package/dist/private/data/useListData.cjs.map +1 -0
- package/dist/private/data/useListData.js +250 -0
- package/dist/private/data/useListData.js.map +1 -0
- package/dist/private/data/useListData.mjs +247 -0
- package/dist/private/data/useListData.mjs.map +1 -0
- package/dist/private/data/useTreeData.cjs +329 -0
- package/dist/private/data/useTreeData.cjs.map +1 -0
- package/dist/private/data/useTreeData.js +337 -0
- package/dist/private/data/useTreeData.js.map +1 -0
- package/dist/private/data/useTreeData.mjs +324 -0
- package/dist/private/data/useTreeData.mjs.map +1 -0
- package/dist/private/datepicker/IncompleteDate.cjs +317 -0
- package/dist/private/datepicker/IncompleteDate.cjs.map +1 -0
- package/dist/private/datepicker/IncompleteDate.js +330 -0
- package/dist/private/datepicker/IncompleteDate.js.map +1 -0
- package/dist/private/datepicker/IncompleteDate.mjs +312 -0
- package/dist/private/datepicker/IncompleteDate.mjs.map +1 -0
- package/dist/private/datepicker/intlStrings.cjs +108 -0
- package/dist/private/datepicker/intlStrings.cjs.map +1 -0
- package/dist/private/datepicker/intlStrings.js +110 -0
- package/dist/private/datepicker/intlStrings.js.map +1 -0
- package/dist/private/datepicker/intlStrings.mjs +110 -0
- package/dist/private/datepicker/intlStrings.mjs.map +1 -0
- package/dist/private/datepicker/placeholders.cjs +419 -0
- package/dist/private/datepicker/placeholders.cjs.map +1 -0
- package/dist/private/datepicker/placeholders.js +414 -0
- package/dist/private/datepicker/placeholders.js.map +1 -0
- package/dist/private/datepicker/placeholders.mjs +414 -0
- package/dist/private/datepicker/placeholders.mjs.map +1 -0
- package/dist/private/datepicker/useDateFieldState.cjs +368 -0
- package/dist/private/datepicker/useDateFieldState.cjs.map +1 -0
- package/dist/private/datepicker/useDateFieldState.js +372 -0
- package/dist/private/datepicker/useDateFieldState.js.map +1 -0
- package/dist/private/datepicker/useDateFieldState.mjs +363 -0
- package/dist/private/datepicker/useDateFieldState.mjs.map +1 -0
- package/dist/private/datepicker/useDatePickerState.cjs +139 -0
- package/dist/private/datepicker/useDatePickerState.cjs.map +1 -0
- package/dist/private/datepicker/useDatePickerState.js +136 -0
- package/dist/private/datepicker/useDatePickerState.js.map +1 -0
- package/dist/private/datepicker/useDatePickerState.mjs +134 -0
- package/dist/private/datepicker/useDatePickerState.mjs.map +1 -0
- package/dist/private/datepicker/useDateRangePickerState.cjs +262 -0
- package/dist/private/datepicker/useDateRangePickerState.cjs.map +1 -0
- package/dist/private/datepicker/useDateRangePickerState.js +263 -0
- package/dist/private/datepicker/useDateRangePickerState.js.map +1 -0
- package/dist/private/datepicker/useDateRangePickerState.mjs +257 -0
- package/dist/private/datepicker/useDateRangePickerState.mjs.map +1 -0
- package/dist/private/datepicker/useTimeFieldState.cjs +89 -0
- package/dist/private/datepicker/useTimeFieldState.cjs.map +1 -0
- package/dist/private/datepicker/useTimeFieldState.js +84 -0
- package/dist/private/datepicker/useTimeFieldState.js.map +1 -0
- package/dist/private/datepicker/useTimeFieldState.mjs +84 -0
- package/dist/private/datepicker/useTimeFieldState.mjs.map +1 -0
- package/dist/private/datepicker/utils.cjs +197 -0
- package/dist/private/datepicker/utils.cjs.map +1 -0
- package/dist/private/datepicker/utils.js +189 -0
- package/dist/private/datepicker/utils.js.map +1 -0
- package/dist/private/datepicker/utils.mjs +186 -0
- package/dist/private/datepicker/utils.mjs.map +1 -0
- package/dist/private/disclosure/useDisclosureGroupState.cjs +58 -0
- package/dist/private/disclosure/useDisclosureGroupState.cjs.map +1 -0
- package/dist/private/disclosure/useDisclosureGroupState.js +53 -0
- package/dist/private/disclosure/useDisclosureGroupState.js.map +1 -0
- package/dist/private/disclosure/useDisclosureGroupState.mjs +53 -0
- package/dist/private/disclosure/useDisclosureGroupState.mjs.map +1 -0
- package/dist/private/disclosure/useDisclosureState.cjs +50 -0
- package/dist/private/disclosure/useDisclosureState.cjs.map +1 -0
- package/dist/private/disclosure/useDisclosureState.js +45 -0
- package/dist/private/disclosure/useDisclosureState.js.map +1 -0
- package/dist/private/disclosure/useDisclosureState.mjs +45 -0
- package/dist/private/disclosure/useDisclosureState.mjs.map +1 -0
- package/dist/private/dnd/useDraggableCollectionState.cjs +108 -0
- package/dist/private/dnd/useDraggableCollectionState.cjs.map +1 -0
- package/dist/private/dnd/useDraggableCollectionState.js +104 -0
- package/dist/private/dnd/useDraggableCollectionState.js.map +1 -0
- package/dist/private/dnd/useDraggableCollectionState.mjs +103 -0
- package/dist/private/dnd/useDraggableCollectionState.mjs.map +1 -0
- package/dist/private/dnd/useDroppableCollectionState.cjs +140 -0
- package/dist/private/dnd/useDroppableCollectionState.cjs.map +1 -0
- package/dist/private/dnd/useDroppableCollectionState.js +135 -0
- package/dist/private/dnd/useDroppableCollectionState.js.map +1 -0
- package/dist/private/dnd/useDroppableCollectionState.mjs +135 -0
- package/dist/private/dnd/useDroppableCollectionState.mjs.map +1 -0
- package/dist/private/flags/flags.cjs +36 -0
- package/dist/private/flags/flags.cjs.map +1 -0
- package/dist/private/flags/flags.js +28 -0
- package/dist/private/flags/flags.js.map +1 -0
- package/dist/private/flags/flags.mjs +28 -0
- package/dist/private/flags/flags.mjs.map +1 -0
- package/dist/private/form/useFormValidationState.cjs +201 -0
- package/dist/private/form/useFormValidationState.cjs.map +1 -0
- package/dist/private/form/useFormValidationState.js +192 -0
- package/dist/private/form/useFormValidationState.js.map +1 -0
- package/dist/private/form/useFormValidationState.mjs +191 -0
- package/dist/private/form/useFormValidationState.mjs.map +1 -0
- package/dist/private/grid/GridCollection.cjs +139 -0
- package/dist/private/grid/GridCollection.cjs.map +1 -0
- package/dist/private/grid/GridCollection.js +143 -0
- package/dist/private/grid/GridCollection.js.map +1 -0
- package/dist/private/grid/GridCollection.mjs +134 -0
- package/dist/private/grid/GridCollection.mjs.map +1 -0
- package/dist/private/grid/useGridState.cjs +91 -0
- package/dist/private/grid/useGridState.cjs.map +1 -0
- package/dist/private/grid/useGridState.js +88 -0
- package/dist/private/grid/useGridState.js.map +1 -0
- package/dist/private/grid/useGridState.mjs +86 -0
- package/dist/private/grid/useGridState.mjs.map +1 -0
- package/dist/private/intl/color/ar-AE.cjs +42 -0
- package/dist/private/intl/color/ar-AE.cjs.map +1 -0
- package/dist/private/intl/color/ar-AE.js +44 -0
- package/dist/private/intl/color/ar-AE.js.map +1 -0
- package/dist/private/intl/color/ar-AE.mjs +44 -0
- package/dist/private/intl/color/ar-AE.mjs.map +1 -0
- package/dist/private/intl/color/bg-BG.cjs +42 -0
- package/dist/private/intl/color/bg-BG.cjs.map +1 -0
- package/dist/private/intl/color/bg-BG.js +44 -0
- package/dist/private/intl/color/bg-BG.js.map +1 -0
- package/dist/private/intl/color/bg-BG.mjs +44 -0
- package/dist/private/intl/color/bg-BG.mjs.map +1 -0
- package/dist/private/intl/color/cs-CZ.cjs +42 -0
- package/dist/private/intl/color/cs-CZ.cjs.map +1 -0
- package/dist/private/intl/color/cs-CZ.js +44 -0
- package/dist/private/intl/color/cs-CZ.js.map +1 -0
- package/dist/private/intl/color/cs-CZ.mjs +44 -0
- package/dist/private/intl/color/cs-CZ.mjs.map +1 -0
- package/dist/private/intl/color/da-DK.cjs +42 -0
- package/dist/private/intl/color/da-DK.cjs.map +1 -0
- package/dist/private/intl/color/da-DK.js +44 -0
- package/dist/private/intl/color/da-DK.js.map +1 -0
- package/dist/private/intl/color/da-DK.mjs +44 -0
- package/dist/private/intl/color/da-DK.mjs.map +1 -0
- package/dist/private/intl/color/de-DE.cjs +42 -0
- package/dist/private/intl/color/de-DE.cjs.map +1 -0
- package/dist/private/intl/color/de-DE.js +44 -0
- package/dist/private/intl/color/de-DE.js.map +1 -0
- package/dist/private/intl/color/de-DE.mjs +44 -0
- package/dist/private/intl/color/de-DE.mjs.map +1 -0
- package/dist/private/intl/color/el-GR.cjs +42 -0
- package/dist/private/intl/color/el-GR.cjs.map +1 -0
- package/dist/private/intl/color/el-GR.js +44 -0
- package/dist/private/intl/color/el-GR.js.map +1 -0
- package/dist/private/intl/color/el-GR.mjs +44 -0
- package/dist/private/intl/color/el-GR.mjs.map +1 -0
- package/dist/private/intl/color/en-US.cjs +42 -0
- package/dist/private/intl/color/en-US.cjs.map +1 -0
- package/dist/private/intl/color/en-US.js +44 -0
- package/dist/private/intl/color/en-US.js.map +1 -0
- package/dist/private/intl/color/en-US.mjs +44 -0
- package/dist/private/intl/color/en-US.mjs.map +1 -0
- package/dist/private/intl/color/es-ES.cjs +42 -0
- package/dist/private/intl/color/es-ES.cjs.map +1 -0
- package/dist/private/intl/color/es-ES.js +44 -0
- package/dist/private/intl/color/es-ES.js.map +1 -0
- package/dist/private/intl/color/es-ES.mjs +44 -0
- package/dist/private/intl/color/es-ES.mjs.map +1 -0
- package/dist/private/intl/color/et-EE.cjs +42 -0
- package/dist/private/intl/color/et-EE.cjs.map +1 -0
- package/dist/private/intl/color/et-EE.js +44 -0
- package/dist/private/intl/color/et-EE.js.map +1 -0
- package/dist/private/intl/color/et-EE.mjs +44 -0
- package/dist/private/intl/color/et-EE.mjs.map +1 -0
- package/dist/private/intl/color/fi-FI.cjs +42 -0
- package/dist/private/intl/color/fi-FI.cjs.map +1 -0
- package/dist/private/intl/color/fi-FI.js +44 -0
- package/dist/private/intl/color/fi-FI.js.map +1 -0
- package/dist/private/intl/color/fi-FI.mjs +44 -0
- package/dist/private/intl/color/fi-FI.mjs.map +1 -0
- package/dist/private/intl/color/fr-FR.cjs +42 -0
- package/dist/private/intl/color/fr-FR.cjs.map +1 -0
- package/dist/private/intl/color/fr-FR.js +44 -0
- package/dist/private/intl/color/fr-FR.js.map +1 -0
- package/dist/private/intl/color/fr-FR.mjs +44 -0
- package/dist/private/intl/color/fr-FR.mjs.map +1 -0
- package/dist/private/intl/color/he-IL.cjs +42 -0
- package/dist/private/intl/color/he-IL.cjs.map +1 -0
- package/dist/private/intl/color/he-IL.js +44 -0
- package/dist/private/intl/color/he-IL.js.map +1 -0
- package/dist/private/intl/color/he-IL.mjs +44 -0
- package/dist/private/intl/color/he-IL.mjs.map +1 -0
- package/dist/private/intl/color/hr-HR.cjs +42 -0
- package/dist/private/intl/color/hr-HR.cjs.map +1 -0
- package/dist/private/intl/color/hr-HR.js +44 -0
- package/dist/private/intl/color/hr-HR.js.map +1 -0
- package/dist/private/intl/color/hr-HR.mjs +44 -0
- package/dist/private/intl/color/hr-HR.mjs.map +1 -0
- package/dist/private/intl/color/hu-HU.cjs +42 -0
- package/dist/private/intl/color/hu-HU.cjs.map +1 -0
- package/dist/private/intl/color/hu-HU.js +44 -0
- package/dist/private/intl/color/hu-HU.js.map +1 -0
- package/dist/private/intl/color/hu-HU.mjs +44 -0
- package/dist/private/intl/color/hu-HU.mjs.map +1 -0
- package/dist/private/intl/color/it-IT.cjs +42 -0
- package/dist/private/intl/color/it-IT.cjs.map +1 -0
- package/dist/private/intl/color/it-IT.js +44 -0
- package/dist/private/intl/color/it-IT.js.map +1 -0
- package/dist/private/intl/color/it-IT.mjs +44 -0
- package/dist/private/intl/color/it-IT.mjs.map +1 -0
- package/dist/private/intl/color/ja-JP.cjs +42 -0
- package/dist/private/intl/color/ja-JP.cjs.map +1 -0
- package/dist/private/intl/color/ja-JP.js +44 -0
- package/dist/private/intl/color/ja-JP.js.map +1 -0
- package/dist/private/intl/color/ja-JP.mjs +44 -0
- package/dist/private/intl/color/ja-JP.mjs.map +1 -0
- package/dist/private/intl/color/ko-KR.cjs +42 -0
- package/dist/private/intl/color/ko-KR.cjs.map +1 -0
- package/dist/private/intl/color/ko-KR.js +44 -0
- package/dist/private/intl/color/ko-KR.js.map +1 -0
- package/dist/private/intl/color/ko-KR.mjs +44 -0
- package/dist/private/intl/color/ko-KR.mjs.map +1 -0
- package/dist/private/intl/color/lt-LT.cjs +42 -0
- package/dist/private/intl/color/lt-LT.cjs.map +1 -0
- package/dist/private/intl/color/lt-LT.js +44 -0
- package/dist/private/intl/color/lt-LT.js.map +1 -0
- package/dist/private/intl/color/lt-LT.mjs +44 -0
- package/dist/private/intl/color/lt-LT.mjs.map +1 -0
- package/dist/private/intl/color/lv-LV.cjs +42 -0
- package/dist/private/intl/color/lv-LV.cjs.map +1 -0
- package/dist/private/intl/color/lv-LV.js +44 -0
- package/dist/private/intl/color/lv-LV.js.map +1 -0
- package/dist/private/intl/color/lv-LV.mjs +44 -0
- package/dist/private/intl/color/lv-LV.mjs.map +1 -0
- package/dist/private/intl/color/nb-NO.cjs +42 -0
- package/dist/private/intl/color/nb-NO.cjs.map +1 -0
- package/dist/private/intl/color/nb-NO.js +44 -0
- package/dist/private/intl/color/nb-NO.js.map +1 -0
- package/dist/private/intl/color/nb-NO.mjs +44 -0
- package/dist/private/intl/color/nb-NO.mjs.map +1 -0
- package/dist/private/intl/color/nl-NL.cjs +42 -0
- package/dist/private/intl/color/nl-NL.cjs.map +1 -0
- package/dist/private/intl/color/nl-NL.js +44 -0
- package/dist/private/intl/color/nl-NL.js.map +1 -0
- package/dist/private/intl/color/nl-NL.mjs +44 -0
- package/dist/private/intl/color/nl-NL.mjs.map +1 -0
- package/dist/private/intl/color/pl-PL.cjs +42 -0
- package/dist/private/intl/color/pl-PL.cjs.map +1 -0
- package/dist/private/intl/color/pl-PL.js +44 -0
- package/dist/private/intl/color/pl-PL.js.map +1 -0
- package/dist/private/intl/color/pl-PL.mjs +44 -0
- package/dist/private/intl/color/pl-PL.mjs.map +1 -0
- package/dist/private/intl/color/pt-BR.cjs +42 -0
- package/dist/private/intl/color/pt-BR.cjs.map +1 -0
- package/dist/private/intl/color/pt-BR.js +44 -0
- package/dist/private/intl/color/pt-BR.js.map +1 -0
- package/dist/private/intl/color/pt-BR.mjs +44 -0
- package/dist/private/intl/color/pt-BR.mjs.map +1 -0
- package/dist/private/intl/color/pt-PT.cjs +42 -0
- package/dist/private/intl/color/pt-PT.cjs.map +1 -0
- package/dist/private/intl/color/pt-PT.js +44 -0
- package/dist/private/intl/color/pt-PT.js.map +1 -0
- package/dist/private/intl/color/pt-PT.mjs +44 -0
- package/dist/private/intl/color/pt-PT.mjs.map +1 -0
- package/dist/private/intl/color/ro-RO.cjs +42 -0
- package/dist/private/intl/color/ro-RO.cjs.map +1 -0
- package/dist/private/intl/color/ro-RO.js +44 -0
- package/dist/private/intl/color/ro-RO.js.map +1 -0
- package/dist/private/intl/color/ro-RO.mjs +44 -0
- package/dist/private/intl/color/ro-RO.mjs.map +1 -0
- package/dist/private/intl/color/ru-RU.cjs +42 -0
- package/dist/private/intl/color/ru-RU.cjs.map +1 -0
- package/dist/private/intl/color/ru-RU.js +44 -0
- package/dist/private/intl/color/ru-RU.js.map +1 -0
- package/dist/private/intl/color/ru-RU.mjs +44 -0
- package/dist/private/intl/color/ru-RU.mjs.map +1 -0
- package/dist/private/intl/color/sk-SK.cjs +42 -0
- package/dist/private/intl/color/sk-SK.cjs.map +1 -0
- package/dist/private/intl/color/sk-SK.js +44 -0
- package/dist/private/intl/color/sk-SK.js.map +1 -0
- package/dist/private/intl/color/sk-SK.mjs +44 -0
- package/dist/private/intl/color/sk-SK.mjs.map +1 -0
- package/dist/private/intl/color/sl-SI.cjs +42 -0
- package/dist/private/intl/color/sl-SI.cjs.map +1 -0
- package/dist/private/intl/color/sl-SI.js +44 -0
- package/dist/private/intl/color/sl-SI.js.map +1 -0
- package/dist/private/intl/color/sl-SI.mjs +44 -0
- package/dist/private/intl/color/sl-SI.mjs.map +1 -0
- package/dist/private/intl/color/sr-SP.cjs +42 -0
- package/dist/private/intl/color/sr-SP.cjs.map +1 -0
- package/dist/private/intl/color/sr-SP.js +44 -0
- package/dist/private/intl/color/sr-SP.js.map +1 -0
- package/dist/private/intl/color/sr-SP.mjs +44 -0
- package/dist/private/intl/color/sr-SP.mjs.map +1 -0
- package/dist/private/intl/color/sv-SE.cjs +42 -0
- package/dist/private/intl/color/sv-SE.cjs.map +1 -0
- package/dist/private/intl/color/sv-SE.js +44 -0
- package/dist/private/intl/color/sv-SE.js.map +1 -0
- package/dist/private/intl/color/sv-SE.mjs +44 -0
- package/dist/private/intl/color/sv-SE.mjs.map +1 -0
- package/dist/private/intl/color/tr-TR.cjs +42 -0
- package/dist/private/intl/color/tr-TR.cjs.map +1 -0
- package/dist/private/intl/color/tr-TR.js +44 -0
- package/dist/private/intl/color/tr-TR.js.map +1 -0
- package/dist/private/intl/color/tr-TR.mjs +44 -0
- package/dist/private/intl/color/tr-TR.mjs.map +1 -0
- package/dist/private/intl/color/uk-UA.cjs +42 -0
- package/dist/private/intl/color/uk-UA.cjs.map +1 -0
- package/dist/private/intl/color/uk-UA.js +44 -0
- package/dist/private/intl/color/uk-UA.js.map +1 -0
- package/dist/private/intl/color/uk-UA.mjs +44 -0
- package/dist/private/intl/color/uk-UA.mjs.map +1 -0
- package/dist/private/intl/color/zh-CN.cjs +42 -0
- package/dist/private/intl/color/zh-CN.cjs.map +1 -0
- package/dist/private/intl/color/zh-CN.js +44 -0
- package/dist/private/intl/color/zh-CN.js.map +1 -0
- package/dist/private/intl/color/zh-CN.mjs +44 -0
- package/dist/private/intl/color/zh-CN.mjs.map +1 -0
- package/dist/private/intl/color/zh-TW.cjs +42 -0
- package/dist/private/intl/color/zh-TW.cjs.map +1 -0
- package/dist/private/intl/color/zh-TW.js +44 -0
- package/dist/private/intl/color/zh-TW.js.map +1 -0
- package/dist/private/intl/color/zh-TW.mjs +44 -0
- package/dist/private/intl/color/zh-TW.mjs.map +1 -0
- package/dist/private/intl/datepicker/ar-AE.cjs +9 -0
- package/dist/private/intl/datepicker/ar-AE.cjs.map +1 -0
- package/dist/private/intl/datepicker/ar-AE.js +11 -0
- package/dist/private/intl/datepicker/ar-AE.js.map +1 -0
- package/dist/private/intl/datepicker/ar-AE.mjs +11 -0
- package/dist/private/intl/datepicker/ar-AE.mjs.map +1 -0
- package/dist/private/intl/datepicker/bg-BG.cjs +9 -0
- package/dist/private/intl/datepicker/bg-BG.cjs.map +1 -0
- package/dist/private/intl/datepicker/bg-BG.js +11 -0
- package/dist/private/intl/datepicker/bg-BG.js.map +1 -0
- package/dist/private/intl/datepicker/bg-BG.mjs +11 -0
- package/dist/private/intl/datepicker/bg-BG.mjs.map +1 -0
- package/dist/private/intl/datepicker/cs-CZ.cjs +9 -0
- package/dist/private/intl/datepicker/cs-CZ.cjs.map +1 -0
- package/dist/private/intl/datepicker/cs-CZ.js +11 -0
- package/dist/private/intl/datepicker/cs-CZ.js.map +1 -0
- package/dist/private/intl/datepicker/cs-CZ.mjs +11 -0
- package/dist/private/intl/datepicker/cs-CZ.mjs.map +1 -0
- package/dist/private/intl/datepicker/da-DK.cjs +9 -0
- package/dist/private/intl/datepicker/da-DK.cjs.map +1 -0
- package/dist/private/intl/datepicker/da-DK.js +11 -0
- package/dist/private/intl/datepicker/da-DK.js.map +1 -0
- package/dist/private/intl/datepicker/da-DK.mjs +11 -0
- package/dist/private/intl/datepicker/da-DK.mjs.map +1 -0
- package/dist/private/intl/datepicker/de-DE.cjs +9 -0
- package/dist/private/intl/datepicker/de-DE.cjs.map +1 -0
- package/dist/private/intl/datepicker/de-DE.js +11 -0
- package/dist/private/intl/datepicker/de-DE.js.map +1 -0
- package/dist/private/intl/datepicker/de-DE.mjs +11 -0
- package/dist/private/intl/datepicker/de-DE.mjs.map +1 -0
- package/dist/private/intl/datepicker/el-GR.cjs +9 -0
- package/dist/private/intl/datepicker/el-GR.cjs.map +1 -0
- package/dist/private/intl/datepicker/el-GR.js +11 -0
- package/dist/private/intl/datepicker/el-GR.js.map +1 -0
- package/dist/private/intl/datepicker/el-GR.mjs +11 -0
- package/dist/private/intl/datepicker/el-GR.mjs.map +1 -0
- package/dist/private/intl/datepicker/en-US.cjs +9 -0
- package/dist/private/intl/datepicker/en-US.cjs.map +1 -0
- package/dist/private/intl/datepicker/en-US.js +11 -0
- package/dist/private/intl/datepicker/en-US.js.map +1 -0
- package/dist/private/intl/datepicker/en-US.mjs +11 -0
- package/dist/private/intl/datepicker/en-US.mjs.map +1 -0
- package/dist/private/intl/datepicker/es-ES.cjs +9 -0
- package/dist/private/intl/datepicker/es-ES.cjs.map +1 -0
- package/dist/private/intl/datepicker/es-ES.js +11 -0
- package/dist/private/intl/datepicker/es-ES.js.map +1 -0
- package/dist/private/intl/datepicker/es-ES.mjs +11 -0
- package/dist/private/intl/datepicker/es-ES.mjs.map +1 -0
- package/dist/private/intl/datepicker/et-EE.cjs +9 -0
- package/dist/private/intl/datepicker/et-EE.cjs.map +1 -0
- package/dist/private/intl/datepicker/et-EE.js +11 -0
- package/dist/private/intl/datepicker/et-EE.js.map +1 -0
- package/dist/private/intl/datepicker/et-EE.mjs +11 -0
- package/dist/private/intl/datepicker/et-EE.mjs.map +1 -0
- package/dist/private/intl/datepicker/fi-FI.cjs +9 -0
- package/dist/private/intl/datepicker/fi-FI.cjs.map +1 -0
- package/dist/private/intl/datepicker/fi-FI.js +11 -0
- package/dist/private/intl/datepicker/fi-FI.js.map +1 -0
- package/dist/private/intl/datepicker/fi-FI.mjs +11 -0
- package/dist/private/intl/datepicker/fi-FI.mjs.map +1 -0
- package/dist/private/intl/datepicker/fr-FR.cjs +9 -0
- package/dist/private/intl/datepicker/fr-FR.cjs.map +1 -0
- package/dist/private/intl/datepicker/fr-FR.js +11 -0
- package/dist/private/intl/datepicker/fr-FR.js.map +1 -0
- package/dist/private/intl/datepicker/fr-FR.mjs +11 -0
- package/dist/private/intl/datepicker/fr-FR.mjs.map +1 -0
- package/dist/private/intl/datepicker/he-IL.cjs +9 -0
- package/dist/private/intl/datepicker/he-IL.cjs.map +1 -0
- package/dist/private/intl/datepicker/he-IL.js +11 -0
- package/dist/private/intl/datepicker/he-IL.js.map +1 -0
- package/dist/private/intl/datepicker/he-IL.mjs +11 -0
- package/dist/private/intl/datepicker/he-IL.mjs.map +1 -0
- package/dist/private/intl/datepicker/hr-HR.cjs +9 -0
- package/dist/private/intl/datepicker/hr-HR.cjs.map +1 -0
- package/dist/private/intl/datepicker/hr-HR.js +11 -0
- package/dist/private/intl/datepicker/hr-HR.js.map +1 -0
- package/dist/private/intl/datepicker/hr-HR.mjs +11 -0
- package/dist/private/intl/datepicker/hr-HR.mjs.map +1 -0
- package/dist/private/intl/datepicker/hu-HU.cjs +9 -0
- package/dist/private/intl/datepicker/hu-HU.cjs.map +1 -0
- package/dist/private/intl/datepicker/hu-HU.js +11 -0
- package/dist/private/intl/datepicker/hu-HU.js.map +1 -0
- package/dist/private/intl/datepicker/hu-HU.mjs +11 -0
- package/dist/private/intl/datepicker/hu-HU.mjs.map +1 -0
- package/dist/private/intl/datepicker/it-IT.cjs +9 -0
- package/dist/private/intl/datepicker/it-IT.cjs.map +1 -0
- package/dist/private/intl/datepicker/it-IT.js +11 -0
- package/dist/private/intl/datepicker/it-IT.js.map +1 -0
- package/dist/private/intl/datepicker/it-IT.mjs +11 -0
- package/dist/private/intl/datepicker/it-IT.mjs.map +1 -0
- package/dist/private/intl/datepicker/ja-JP.cjs +9 -0
- package/dist/private/intl/datepicker/ja-JP.cjs.map +1 -0
- package/dist/private/intl/datepicker/ja-JP.js +11 -0
- package/dist/private/intl/datepicker/ja-JP.js.map +1 -0
- package/dist/private/intl/datepicker/ja-JP.mjs +11 -0
- package/dist/private/intl/datepicker/ja-JP.mjs.map +1 -0
- package/dist/private/intl/datepicker/ko-KR.cjs +9 -0
- package/dist/private/intl/datepicker/ko-KR.cjs.map +1 -0
- package/dist/private/intl/datepicker/ko-KR.js +11 -0
- package/dist/private/intl/datepicker/ko-KR.js.map +1 -0
- package/dist/private/intl/datepicker/ko-KR.mjs +11 -0
- package/dist/private/intl/datepicker/ko-KR.mjs.map +1 -0
- package/dist/private/intl/datepicker/lt-LT.cjs +9 -0
- package/dist/private/intl/datepicker/lt-LT.cjs.map +1 -0
- package/dist/private/intl/datepicker/lt-LT.js +11 -0
- package/dist/private/intl/datepicker/lt-LT.js.map +1 -0
- package/dist/private/intl/datepicker/lt-LT.mjs +11 -0
- package/dist/private/intl/datepicker/lt-LT.mjs.map +1 -0
- package/dist/private/intl/datepicker/lv-LV.cjs +9 -0
- package/dist/private/intl/datepicker/lv-LV.cjs.map +1 -0
- package/dist/private/intl/datepicker/lv-LV.js +11 -0
- package/dist/private/intl/datepicker/lv-LV.js.map +1 -0
- package/dist/private/intl/datepicker/lv-LV.mjs +11 -0
- package/dist/private/intl/datepicker/lv-LV.mjs.map +1 -0
- package/dist/private/intl/datepicker/nb-NO.cjs +9 -0
- package/dist/private/intl/datepicker/nb-NO.cjs.map +1 -0
- package/dist/private/intl/datepicker/nb-NO.js +11 -0
- package/dist/private/intl/datepicker/nb-NO.js.map +1 -0
- package/dist/private/intl/datepicker/nb-NO.mjs +11 -0
- package/dist/private/intl/datepicker/nb-NO.mjs.map +1 -0
- package/dist/private/intl/datepicker/nl-NL.cjs +9 -0
- package/dist/private/intl/datepicker/nl-NL.cjs.map +1 -0
- package/dist/private/intl/datepicker/nl-NL.js +11 -0
- package/dist/private/intl/datepicker/nl-NL.js.map +1 -0
- package/dist/private/intl/datepicker/nl-NL.mjs +11 -0
- package/dist/private/intl/datepicker/nl-NL.mjs.map +1 -0
- package/dist/private/intl/datepicker/pl-PL.cjs +9 -0
- package/dist/private/intl/datepicker/pl-PL.cjs.map +1 -0
- package/dist/private/intl/datepicker/pl-PL.js +11 -0
- package/dist/private/intl/datepicker/pl-PL.js.map +1 -0
- package/dist/private/intl/datepicker/pl-PL.mjs +11 -0
- package/dist/private/intl/datepicker/pl-PL.mjs.map +1 -0
- package/dist/private/intl/datepicker/pt-BR.cjs +9 -0
- package/dist/private/intl/datepicker/pt-BR.cjs.map +1 -0
- package/dist/private/intl/datepicker/pt-BR.js +11 -0
- package/dist/private/intl/datepicker/pt-BR.js.map +1 -0
- package/dist/private/intl/datepicker/pt-BR.mjs +11 -0
- package/dist/private/intl/datepicker/pt-BR.mjs.map +1 -0
- package/dist/private/intl/datepicker/pt-PT.cjs +9 -0
- package/dist/private/intl/datepicker/pt-PT.cjs.map +1 -0
- package/dist/private/intl/datepicker/pt-PT.js +11 -0
- package/dist/private/intl/datepicker/pt-PT.js.map +1 -0
- package/dist/private/intl/datepicker/pt-PT.mjs +11 -0
- package/dist/private/intl/datepicker/pt-PT.mjs.map +1 -0
- package/dist/private/intl/datepicker/ro-RO.cjs +9 -0
- package/dist/private/intl/datepicker/ro-RO.cjs.map +1 -0
- package/dist/private/intl/datepicker/ro-RO.js +11 -0
- package/dist/private/intl/datepicker/ro-RO.js.map +1 -0
- package/dist/private/intl/datepicker/ro-RO.mjs +11 -0
- package/dist/private/intl/datepicker/ro-RO.mjs.map +1 -0
- package/dist/private/intl/datepicker/ru-RU.cjs +9 -0
- package/dist/private/intl/datepicker/ru-RU.cjs.map +1 -0
- package/dist/private/intl/datepicker/ru-RU.js +11 -0
- package/dist/private/intl/datepicker/ru-RU.js.map +1 -0
- package/dist/private/intl/datepicker/ru-RU.mjs +11 -0
- package/dist/private/intl/datepicker/ru-RU.mjs.map +1 -0
- package/dist/private/intl/datepicker/sk-SK.cjs +9 -0
- package/dist/private/intl/datepicker/sk-SK.cjs.map +1 -0
- package/dist/private/intl/datepicker/sk-SK.js +11 -0
- package/dist/private/intl/datepicker/sk-SK.js.map +1 -0
- package/dist/private/intl/datepicker/sk-SK.mjs +11 -0
- package/dist/private/intl/datepicker/sk-SK.mjs.map +1 -0
- package/dist/private/intl/datepicker/sl-SI.cjs +9 -0
- package/dist/private/intl/datepicker/sl-SI.cjs.map +1 -0
- package/dist/private/intl/datepicker/sl-SI.js +11 -0
- package/dist/private/intl/datepicker/sl-SI.js.map +1 -0
- package/dist/private/intl/datepicker/sl-SI.mjs +11 -0
- package/dist/private/intl/datepicker/sl-SI.mjs.map +1 -0
- package/dist/private/intl/datepicker/sr-SP.cjs +9 -0
- package/dist/private/intl/datepicker/sr-SP.cjs.map +1 -0
- package/dist/private/intl/datepicker/sr-SP.js +11 -0
- package/dist/private/intl/datepicker/sr-SP.js.map +1 -0
- package/dist/private/intl/datepicker/sr-SP.mjs +11 -0
- package/dist/private/intl/datepicker/sr-SP.mjs.map +1 -0
- package/dist/private/intl/datepicker/sv-SE.cjs +9 -0
- package/dist/private/intl/datepicker/sv-SE.cjs.map +1 -0
- package/dist/private/intl/datepicker/sv-SE.js +11 -0
- package/dist/private/intl/datepicker/sv-SE.js.map +1 -0
- package/dist/private/intl/datepicker/sv-SE.mjs +11 -0
- package/dist/private/intl/datepicker/sv-SE.mjs.map +1 -0
- package/dist/private/intl/datepicker/tr-TR.cjs +9 -0
- package/dist/private/intl/datepicker/tr-TR.cjs.map +1 -0
- package/dist/private/intl/datepicker/tr-TR.js +11 -0
- package/dist/private/intl/datepicker/tr-TR.js.map +1 -0
- package/dist/private/intl/datepicker/tr-TR.mjs +11 -0
- package/dist/private/intl/datepicker/tr-TR.mjs.map +1 -0
- package/dist/private/intl/datepicker/uk-UA.cjs +9 -0
- package/dist/private/intl/datepicker/uk-UA.cjs.map +1 -0
- package/dist/private/intl/datepicker/uk-UA.js +11 -0
- package/dist/private/intl/datepicker/uk-UA.js.map +1 -0
- package/dist/private/intl/datepicker/uk-UA.mjs +11 -0
- package/dist/private/intl/datepicker/uk-UA.mjs.map +1 -0
- package/dist/private/intl/datepicker/zh-CN.cjs +9 -0
- package/dist/private/intl/datepicker/zh-CN.cjs.map +1 -0
- package/dist/private/intl/datepicker/zh-CN.js +11 -0
- package/dist/private/intl/datepicker/zh-CN.js.map +1 -0
- package/dist/private/intl/datepicker/zh-CN.mjs +11 -0
- package/dist/private/intl/datepicker/zh-CN.mjs.map +1 -0
- package/dist/private/intl/datepicker/zh-TW.cjs +9 -0
- package/dist/private/intl/datepicker/zh-TW.cjs.map +1 -0
- package/dist/private/intl/datepicker/zh-TW.js +11 -0
- package/dist/private/intl/datepicker/zh-TW.js.map +1 -0
- package/dist/private/intl/datepicker/zh-TW.mjs +11 -0
- package/dist/private/intl/datepicker/zh-TW.mjs.map +1 -0
- package/dist/private/layout/GridLayout.cjs +244 -0
- package/dist/private/layout/GridLayout.cjs.map +1 -0
- package/dist/private/layout/GridLayout.js +239 -0
- package/dist/private/layout/GridLayout.js.map +1 -0
- package/dist/private/layout/GridLayout.mjs +239 -0
- package/dist/private/layout/GridLayout.mjs.map +1 -0
- package/dist/private/layout/ListLayout.cjs +494 -0
- package/dist/private/layout/ListLayout.cjs.map +1 -0
- package/dist/private/layout/ListLayout.js +513 -0
- package/dist/private/layout/ListLayout.js.map +1 -0
- package/dist/private/layout/ListLayout.mjs +489 -0
- package/dist/private/layout/ListLayout.mjs.map +1 -0
- package/dist/private/layout/TableLayout.cjs +517 -0
- package/dist/private/layout/TableLayout.cjs.map +1 -0
- package/dist/private/layout/TableLayout.js +526 -0
- package/dist/private/layout/TableLayout.js.map +1 -0
- package/dist/private/layout/TableLayout.mjs +512 -0
- package/dist/private/layout/TableLayout.mjs.map +1 -0
- package/dist/private/layout/WaterfallLayout.cjs +243 -0
- package/dist/private/layout/WaterfallLayout.cjs.map +1 -0
- package/dist/private/layout/WaterfallLayout.js +240 -0
- package/dist/private/layout/WaterfallLayout.js.map +1 -0
- package/dist/private/layout/WaterfallLayout.mjs +238 -0
- package/dist/private/layout/WaterfallLayout.mjs.map +1 -0
- package/dist/private/list/ListCollection.cjs +90 -0
- package/dist/private/list/ListCollection.cjs.map +1 -0
- package/dist/private/list/ListCollection.js +89 -0
- package/dist/private/list/ListCollection.js.map +1 -0
- package/dist/private/list/ListCollection.mjs +85 -0
- package/dist/private/list/ListCollection.mjs.map +1 -0
- package/dist/private/list/useListState.cjs +109 -0
- package/dist/private/list/useListState.cjs.map +1 -0
- package/dist/private/list/useListState.js +103 -0
- package/dist/private/list/useListState.js.map +1 -0
- package/dist/private/list/useListState.mjs +103 -0
- package/dist/private/list/useListState.mjs.map +1 -0
- package/dist/private/list/useSingleSelectListState.cjs +59 -0
- package/dist/private/list/useSingleSelectListState.cjs.map +1 -0
- package/dist/private/list/useSingleSelectListState.js +56 -0
- package/dist/private/list/useSingleSelectListState.js.map +1 -0
- package/dist/private/list/useSingleSelectListState.mjs +54 -0
- package/dist/private/list/useSingleSelectListState.mjs.map +1 -0
- package/dist/private/menu/useMenuTriggerState.cjs +67 -0
- package/dist/private/menu/useMenuTriggerState.cjs.map +1 -0
- package/dist/private/menu/useMenuTriggerState.js +62 -0
- package/dist/private/menu/useMenuTriggerState.js.map +1 -0
- package/dist/private/menu/useMenuTriggerState.mjs +62 -0
- package/dist/private/menu/useMenuTriggerState.mjs.map +1 -0
- package/dist/private/menu/useSubmenuTriggerState.cjs +78 -0
- package/dist/private/menu/useSubmenuTriggerState.cjs.map +1 -0
- package/dist/private/menu/useSubmenuTriggerState.js +73 -0
- package/dist/private/menu/useSubmenuTriggerState.js.map +1 -0
- package/dist/private/menu/useSubmenuTriggerState.mjs +73 -0
- package/dist/private/menu/useSubmenuTriggerState.mjs.map +1 -0
- package/dist/private/numberfield/useNumberFieldState.cjs +211 -0
- package/dist/private/numberfield/useNumberFieldState.cjs.map +1 -0
- package/dist/private/numberfield/useNumberFieldState.js +206 -0
- package/dist/private/numberfield/useNumberFieldState.js.map +1 -0
- package/dist/private/numberfield/useNumberFieldState.mjs +206 -0
- package/dist/private/numberfield/useNumberFieldState.mjs.map +1 -0
- package/dist/private/overlays/useOverlayTriggerState.cjs +50 -0
- package/dist/private/overlays/useOverlayTriggerState.cjs.map +1 -0
- package/dist/private/overlays/useOverlayTriggerState.js +45 -0
- package/dist/private/overlays/useOverlayTriggerState.js.map +1 -0
- package/dist/private/overlays/useOverlayTriggerState.mjs +45 -0
- package/dist/private/overlays/useOverlayTriggerState.mjs.map +1 -0
- package/dist/private/radio/useRadioGroupState.cjs +62 -0
- package/dist/private/radio/useRadioGroupState.cjs.map +1 -0
- package/dist/private/radio/useRadioGroupState.js +59 -0
- package/dist/private/radio/useRadioGroupState.js.map +1 -0
- package/dist/private/radio/useRadioGroupState.mjs +57 -0
- package/dist/private/radio/useRadioGroupState.mjs.map +1 -0
- package/dist/private/searchfield/useSearchFieldState.cjs +33 -0
- package/dist/private/searchfield/useSearchFieldState.cjs.map +1 -0
- package/dist/private/searchfield/useSearchFieldState.js +28 -0
- package/dist/private/searchfield/useSearchFieldState.js.map +1 -0
- package/dist/private/searchfield/useSearchFieldState.mjs +28 -0
- package/dist/private/searchfield/useSearchFieldState.mjs.map +1 -0
- package/dist/private/select/useSelectState.cjs +138 -0
- package/dist/private/select/useSelectState.cjs.map +1 -0
- package/dist/private/select/useSelectState.js +138 -0
- package/dist/private/select/useSelectState.js.map +1 -0
- package/dist/private/select/useSelectState.mjs +133 -0
- package/dist/private/select/useSelectState.mjs.map +1 -0
- package/dist/private/selection/Selection.cjs +31 -0
- package/dist/private/selection/Selection.cjs.map +1 -0
- package/dist/private/selection/Selection.js +26 -0
- package/dist/private/selection/Selection.js.map +1 -0
- package/dist/private/selection/Selection.mjs +26 -0
- package/dist/private/selection/Selection.mjs.map +1 -0
- package/dist/private/selection/SelectionManager.cjs +319 -0
- package/dist/private/selection/SelectionManager.cjs.map +1 -0
- package/dist/private/selection/SelectionManager.js +328 -0
- package/dist/private/selection/SelectionManager.js.map +1 -0
- package/dist/private/selection/SelectionManager.mjs +314 -0
- package/dist/private/selection/SelectionManager.mjs.map +1 -0
- package/dist/private/selection/useMultipleSelectionState.cjs +101 -0
- package/dist/private/selection/useMultipleSelectionState.cjs.map +1 -0
- package/dist/private/selection/useMultipleSelectionState.js +96 -0
- package/dist/private/selection/useMultipleSelectionState.js.map +1 -0
- package/dist/private/selection/useMultipleSelectionState.mjs +96 -0
- package/dist/private/selection/useMultipleSelectionState.mjs.map +1 -0
- package/dist/private/slider/useSliderState.cjs +179 -0
- package/dist/private/slider/useSliderState.cjs.map +1 -0
- package/dist/private/slider/useSliderState.js +177 -0
- package/dist/private/slider/useSliderState.js.map +1 -0
- package/dist/private/slider/useSliderState.mjs +174 -0
- package/dist/private/slider/useSliderState.mjs.map +1 -0
- package/dist/private/steplist/useStepListState.cjs +103 -0
- package/dist/private/steplist/useStepListState.cjs.map +1 -0
- package/dist/private/steplist/useStepListState.js +101 -0
- package/dist/private/steplist/useStepListState.js.map +1 -0
- package/dist/private/steplist/useStepListState.mjs +98 -0
- package/dist/private/steplist/useStepListState.mjs.map +1 -0
- package/dist/private/table/Cell.cjs +38 -0
- package/dist/private/table/Cell.cjs.map +1 -0
- package/dist/private/table/Cell.js +33 -0
- package/dist/private/table/Cell.js.map +1 -0
- package/dist/private/table/Cell.mjs +33 -0
- package/dist/private/table/Cell.mjs.map +1 -0
- package/dist/private/table/Column.cjs +75 -0
- package/dist/private/table/Column.cjs.map +1 -0
- package/dist/private/table/Column.js +66 -0
- package/dist/private/table/Column.js.map +1 -0
- package/dist/private/table/Column.mjs +66 -0
- package/dist/private/table/Column.mjs.map +1 -0
- package/dist/private/table/Row.cjs +101 -0
- package/dist/private/table/Row.cjs.map +1 -0
- package/dist/private/table/Row.js +93 -0
- package/dist/private/table/Row.js.map +1 -0
- package/dist/private/table/Row.mjs +92 -0
- package/dist/private/table/Row.mjs.map +1 -0
- package/dist/private/table/TableBody.cjs +61 -0
- package/dist/private/table/TableBody.cjs.map +1 -0
- package/dist/private/table/TableBody.js +52 -0
- package/dist/private/table/TableBody.js.map +1 -0
- package/dist/private/table/TableBody.mjs +52 -0
- package/dist/private/table/TableBody.mjs.map +1 -0
- package/dist/private/table/TableCollection.cjs +295 -0
- package/dist/private/table/TableCollection.cjs.map +1 -0
- package/dist/private/table/TableCollection.js +307 -0
- package/dist/private/table/TableCollection.js.map +1 -0
- package/dist/private/table/TableCollection.mjs +289 -0
- package/dist/private/table/TableCollection.mjs.map +1 -0
- package/dist/private/table/TableColumnLayout.cjs +102 -0
- package/dist/private/table/TableColumnLayout.cjs.map +1 -0
- package/dist/private/table/TableColumnLayout.js +108 -0
- package/dist/private/table/TableColumnLayout.js.map +1 -0
- package/dist/private/table/TableColumnLayout.mjs +97 -0
- package/dist/private/table/TableColumnLayout.mjs.map +1 -0
- package/dist/private/table/TableHeader.cjs +56 -0
- package/dist/private/table/TableHeader.cjs.map +1 -0
- package/dist/private/table/TableHeader.js +47 -0
- package/dist/private/table/TableHeader.js.map +1 -0
- package/dist/private/table/TableHeader.mjs +47 -0
- package/dist/private/table/TableHeader.mjs.map +1 -0
- package/dist/private/table/TableUtils.cjs +180 -0
- package/dist/private/table/TableUtils.cjs.map +1 -0
- package/dist/private/table/TableUtils.js +175 -0
- package/dist/private/table/TableUtils.js.map +1 -0
- package/dist/private/table/TableUtils.mjs +173 -0
- package/dist/private/table/TableUtils.mjs.map +1 -0
- package/dist/private/table/useTableColumnResizeState.cjs +109 -0
- package/dist/private/table/useTableColumnResizeState.cjs.map +1 -0
- package/dist/private/table/useTableColumnResizeState.js +104 -0
- package/dist/private/table/useTableColumnResizeState.js.map +1 -0
- package/dist/private/table/useTableColumnResizeState.mjs +104 -0
- package/dist/private/table/useTableColumnResizeState.mjs.map +1 -0
- package/dist/private/table/useTableState.cjs +97 -0
- package/dist/private/table/useTableState.cjs.map +1 -0
- package/dist/private/table/useTableState.js +93 -0
- package/dist/private/table/useTableState.js.map +1 -0
- package/dist/private/table/useTableState.mjs +91 -0
- package/dist/private/table/useTableState.mjs.map +1 -0
- package/dist/private/table/useTreeGridState.cjs +156 -0
- package/dist/private/table/useTreeGridState.cjs.map +1 -0
- package/dist/private/table/useTreeGridState.js +152 -0
- package/dist/private/table/useTreeGridState.js.map +1 -0
- package/dist/private/table/useTreeGridState.mjs +151 -0
- package/dist/private/table/useTreeGridState.mjs.map +1 -0
- package/dist/private/tabs/useTabListState.cjs +65 -0
- package/dist/private/tabs/useTabListState.cjs.map +1 -0
- package/dist/private/tabs/useTabListState.js +63 -0
- package/dist/private/tabs/useTabListState.js.map +1 -0
- package/dist/private/tabs/useTabListState.mjs +60 -0
- package/dist/private/tabs/useTabListState.mjs.map +1 -0
- package/dist/private/toast/useToastState.cjs +134 -0
- package/dist/private/toast/useToastState.cjs.map +1 -0
- package/dist/private/toast/useToastState.js +129 -0
- package/dist/private/toast/useToastState.js.map +1 -0
- package/dist/private/toast/useToastState.mjs +127 -0
- package/dist/private/toast/useToastState.mjs.map +1 -0
- package/dist/private/toggle/useToggleGroupState.cjs +52 -0
- package/dist/private/toggle/useToggleGroupState.cjs.map +1 -0
- package/dist/private/toggle/useToggleGroupState.js +47 -0
- package/dist/private/toggle/useToggleGroupState.js.map +1 -0
- package/dist/private/toggle/useToggleGroupState.mjs +47 -0
- package/dist/private/toggle/useToggleGroupState.mjs.map +1 -0
- package/dist/private/toggle/useToggleState.cjs +43 -0
- package/dist/private/toggle/useToggleState.cjs.map +1 -0
- package/dist/private/toggle/useToggleState.js +39 -0
- package/dist/private/toggle/useToggleState.js.map +1 -0
- package/dist/private/toggle/useToggleState.mjs +38 -0
- package/dist/private/toggle/useToggleState.mjs.map +1 -0
- package/dist/private/tooltip/useTooltipTriggerState.cjs +119 -0
- package/dist/private/tooltip/useTooltipTriggerState.cjs.map +1 -0
- package/dist/private/tooltip/useTooltipTriggerState.js +114 -0
- package/dist/private/tooltip/useTooltipTriggerState.js.map +1 -0
- package/dist/private/tooltip/useTooltipTriggerState.mjs +114 -0
- package/dist/private/tooltip/useTooltipTriggerState.mjs.map +1 -0
- package/dist/private/tree/TreeCollection.cjs +82 -0
- package/dist/private/tree/TreeCollection.cjs.map +1 -0
- package/dist/private/tree/TreeCollection.js +81 -0
- package/dist/private/tree/TreeCollection.js.map +1 -0
- package/dist/private/tree/TreeCollection.mjs +77 -0
- package/dist/private/tree/TreeCollection.mjs.map +1 -0
- package/dist/private/tree/useTreeState.cjs +70 -0
- package/dist/private/tree/useTreeState.cjs.map +1 -0
- package/dist/private/tree/useTreeState.js +65 -0
- package/dist/private/tree/useTreeState.js.map +1 -0
- package/dist/private/tree/useTreeState.mjs +65 -0
- package/dist/private/tree/useTreeState.mjs.map +1 -0
- package/dist/private/utils/number.cjs +61 -0
- package/dist/private/utils/number.cjs.map +1 -0
- package/dist/private/utils/number.js +54 -0
- package/dist/private/utils/number.js.map +1 -0
- package/dist/private/utils/number.mjs +54 -0
- package/dist/private/utils/number.mjs.map +1 -0
- package/dist/private/utils/useControlledState.cjs +71 -0
- package/dist/private/utils/useControlledState.cjs.map +1 -0
- package/dist/private/utils/useControlledState.js +63 -0
- package/dist/private/utils/useControlledState.js.map +1 -0
- package/dist/private/utils/useControlledState.mjs +62 -0
- package/dist/private/utils/useControlledState.mjs.map +1 -0
- package/dist/private/virtualizer/Layout.cjs +52 -0
- package/dist/private/virtualizer/Layout.cjs.map +1 -0
- package/dist/private/virtualizer/Layout.js +49 -0
- package/dist/private/virtualizer/Layout.js.map +1 -0
- package/dist/private/virtualizer/Layout.mjs +47 -0
- package/dist/private/virtualizer/Layout.mjs.map +1 -0
- package/dist/private/virtualizer/LayoutInfo.cjs +52 -0
- package/dist/private/virtualizer/LayoutInfo.cjs.map +1 -0
- package/dist/private/virtualizer/LayoutInfo.js +47 -0
- package/dist/private/virtualizer/LayoutInfo.js.map +1 -0
- package/dist/private/virtualizer/LayoutInfo.mjs +47 -0
- package/dist/private/virtualizer/LayoutInfo.mjs.map +1 -0
- package/dist/private/virtualizer/OverscanManager.cjs +50 -0
- package/dist/private/virtualizer/OverscanManager.cjs.map +1 -0
- package/dist/private/virtualizer/OverscanManager.js +45 -0
- package/dist/private/virtualizer/OverscanManager.js.map +1 -0
- package/dist/private/virtualizer/OverscanManager.mjs +45 -0
- package/dist/private/virtualizer/OverscanManager.mjs.map +1 -0
- package/dist/private/virtualizer/Point.cjs +40 -0
- package/dist/private/virtualizer/Point.cjs.map +1 -0
- package/dist/private/virtualizer/Point.js +35 -0
- package/dist/private/virtualizer/Point.js.map +1 -0
- package/dist/private/virtualizer/Point.mjs +35 -0
- package/dist/private/virtualizer/Point.mjs.map +1 -0
- package/dist/private/virtualizer/Rect.cjs +131 -0
- package/dist/private/virtualizer/Rect.cjs.map +1 -0
- package/dist/private/virtualizer/Rect.js +126 -0
- package/dist/private/virtualizer/Rect.js.map +1 -0
- package/dist/private/virtualizer/Rect.mjs +126 -0
- package/dist/private/virtualizer/Rect.mjs.map +1 -0
- package/dist/private/virtualizer/ReusableView.cjs +69 -0
- package/dist/private/virtualizer/ReusableView.cjs.map +1 -0
- package/dist/private/virtualizer/ReusableView.js +63 -0
- package/dist/private/virtualizer/ReusableView.js.map +1 -0
- package/dist/private/virtualizer/ReusableView.mjs +63 -0
- package/dist/private/virtualizer/ReusableView.mjs.map +1 -0
- package/dist/private/virtualizer/Size.cjs +40 -0
- package/dist/private/virtualizer/Size.cjs.map +1 -0
- package/dist/private/virtualizer/Size.js +35 -0
- package/dist/private/virtualizer/Size.js.map +1 -0
- package/dist/private/virtualizer/Size.mjs +35 -0
- package/dist/private/virtualizer/Size.mjs.map +1 -0
- package/dist/private/virtualizer/Virtualizer.cjs +245 -0
- package/dist/private/virtualizer/Virtualizer.cjs.map +1 -0
- package/dist/private/virtualizer/Virtualizer.js +240 -0
- package/dist/private/virtualizer/Virtualizer.js.map +1 -0
- package/dist/private/virtualizer/Virtualizer.mjs +240 -0
- package/dist/private/virtualizer/Virtualizer.mjs.map +1 -0
- package/dist/private/virtualizer/useVirtualizerState.cjs +109 -0
- package/dist/private/virtualizer/useVirtualizerState.cjs.map +1 -0
- package/dist/private/virtualizer/useVirtualizerState.js +100 -0
- package/dist/private/virtualizer/useVirtualizerState.js.map +1 -0
- package/dist/private/virtualizer/useVirtualizerState.mjs +100 -0
- package/dist/private/virtualizer/useVirtualizerState.mjs.map +1 -0
- package/dist/private/virtualizer/utils.cjs +27 -0
- package/dist/private/virtualizer/utils.cjs.map +1 -0
- package/dist/private/virtualizer/utils.js +22 -0
- package/dist/private/virtualizer/utils.js.map +1 -0
- package/dist/private/virtualizer/utils.mjs +22 -0
- package/dist/private/virtualizer/utils.mjs.map +1 -0
- package/dist/types/exports/Color.d.ts +2 -0
- package/dist/types/exports/Item.d.ts +2 -0
- package/dist/types/exports/Section.d.ts +2 -0
- package/dist/types/exports/index.d.ts +119 -0
- package/dist/types/exports/private/autocomplete/useAutocompleteState.d.ts +1 -0
- package/dist/types/exports/private/collections/CollectionBuilder.d.ts +1 -0
- package/dist/types/exports/private/collections/getChildNodes.d.ts +1 -0
- package/dist/types/exports/private/collections/getItemCount.d.ts +1 -0
- package/dist/types/exports/private/collections/types.d.ts +1 -0
- package/dist/types/exports/private/collections/useCollection.d.ts +1 -0
- package/dist/types/exports/private/datepicker/utils.d.ts +1 -0
- package/dist/types/exports/private/flags/flags.d.ts +1 -0
- package/dist/types/exports/private/form/useFormValidationState.d.ts +1 -0
- package/dist/types/exports/private/grid/GridCollection.d.ts +1 -0
- package/dist/types/exports/private/grid/useGridState.d.ts +1 -0
- package/dist/types/exports/private/list/ListCollection.d.ts +1 -0
- package/dist/types/exports/private/selection/SelectionManager.d.ts +1 -0
- package/dist/types/exports/private/steplist/useStepListState.d.ts +1 -0
- package/dist/types/exports/private/table/TableCollection.d.ts +1 -0
- package/dist/types/exports/private/table/TableColumnLayout.d.ts +1 -0
- package/dist/types/exports/private/table/useTableState.d.ts +1 -0
- package/dist/types/exports/private/table/useTreeGridState.d.ts +1 -0
- package/dist/types/exports/private/tree/TreeCollection.d.ts +1 -0
- package/dist/types/exports/private/utils/number.d.ts +1 -0
- package/dist/types/exports/useAsyncList.d.ts +2 -0
- package/dist/types/exports/useCalendarState.d.ts +3 -0
- package/dist/types/exports/useCheckboxGroupState.d.ts +2 -0
- package/dist/types/exports/useColorAreaState.d.ts +3 -0
- package/dist/types/exports/useColorFieldState.d.ts +4 -0
- package/dist/types/exports/useColorPickerState.d.ts +3 -0
- package/dist/types/exports/useColorSliderState.d.ts +4 -0
- package/dist/types/exports/useColorWheelState.d.ts +3 -0
- package/dist/types/exports/useComboBoxState.d.ts +2 -0
- package/dist/types/exports/useControlledState.d.ts +1 -0
- package/dist/types/exports/useDateFieldState.d.ts +3 -0
- package/dist/types/exports/useDatePickerState.d.ts +3 -0
- package/dist/types/exports/useDateRangePickerState.d.ts +3 -0
- package/dist/types/exports/useDisclosureGroupState.d.ts +2 -0
- package/dist/types/exports/useDisclosureState.d.ts +2 -0
- package/dist/types/exports/useDraggableCollectionState.d.ts +2 -0
- package/dist/types/exports/useDroppableCollectionState.d.ts +2 -0
- package/dist/types/exports/useListData.d.ts +2 -0
- package/dist/types/exports/useListState.d.ts +2 -0
- package/dist/types/exports/useMenuTriggerState.d.ts +4 -0
- package/dist/types/exports/useMultipleSelectionState.d.ts +4 -0
- package/dist/types/exports/useNumberFieldState.d.ts +3 -0
- package/dist/types/exports/useOverlayTriggerState.d.ts +2 -0
- package/dist/types/exports/useRadioGroupState.d.ts +2 -0
- package/dist/types/exports/useRangeCalendarState.d.ts +3 -0
- package/dist/types/exports/useSearchFieldState.d.ts +2 -0
- package/dist/types/exports/useSelectState.d.ts +2 -0
- package/dist/types/exports/useSingleSelectListState.d.ts +3 -0
- package/dist/types/exports/useSliderState.d.ts +2 -0
- package/dist/types/exports/useTabListState.d.ts +2 -0
- package/dist/types/exports/useTableState.d.ts +15 -0
- package/dist/types/exports/useTimeFieldState.d.ts +3 -0
- package/dist/types/exports/useToastState.d.ts +2 -0
- package/dist/types/exports/useToggleGroupState.d.ts +2 -0
- package/dist/types/exports/useToggleState.d.ts +2 -0
- package/dist/types/exports/useTooltipTriggerState.d.ts +2 -0
- package/dist/types/exports/useTreeData.d.ts +2 -0
- package/dist/types/exports/useTreeState.d.ts +2 -0
- package/dist/types/exports/useVirtualizerState.d.ts +12 -0
- package/dist/types/src/autocomplete/useAutocompleteState.d.ts +27 -0
- package/dist/types/src/calendar/types.d.ts +169 -0
- package/dist/types/src/calendar/useCalendarState.d.ts +31 -0
- package/dist/types/src/calendar/useRangeCalendarState.d.ts +37 -0
- package/dist/types/src/calendar/utils.d.ts +9 -0
- package/dist/types/src/checkbox/useCheckboxGroupState.d.ts +43 -0
- package/dist/types/src/collections/CollectionBuilder.d.ts +10 -0
- package/dist/types/src/collections/Item.d.ts +9 -0
- package/dist/types/src/collections/Section.d.ts +9 -0
- package/dist/types/src/collections/getChildNodes.d.ts +6 -0
- package/dist/types/src/collections/getItemCount.d.ts +2 -0
- package/dist/types/src/collections/types.d.ts +18 -0
- package/dist/types/src/collections/useCollection.d.ts +8 -0
- package/dist/types/src/color/Color.d.ts +10 -0
- package/dist/types/src/color/types.d.ts +81 -0
- package/dist/types/src/color/useColor.d.ts +2 -0
- package/dist/types/src/color/useColorAreaState.d.ts +75 -0
- package/dist/types/src/color/useColorChannelFieldState.d.ts +23 -0
- package/dist/types/src/color/useColorFieldState.d.ts +49 -0
- package/dist/types/src/color/useColorPickerState.d.ts +11 -0
- package/dist/types/src/color/useColorSliderState.d.ts +34 -0
- package/dist/types/src/color/useColorWheelState.d.ts +55 -0
- package/dist/types/src/combobox/useComboBoxState.d.ts +127 -0
- package/dist/types/src/data/useAsyncList.d.ts +71 -0
- package/dist/types/src/data/useListData.d.ts +111 -0
- package/dist/types/src/data/useTreeData.d.ts +106 -0
- package/dist/types/src/datepicker/IncompleteDate.d.ts +46 -0
- package/dist/types/src/datepicker/placeholders.d.ts +1 -0
- package/dist/types/src/datepicker/types.d.ts +90 -0
- package/dist/types/src/datepicker/useDateFieldState.d.ts +110 -0
- package/dist/types/src/datepicker/useDatePickerState.d.ts +59 -0
- package/dist/types/src/datepicker/useDateRangePickerState.d.ts +71 -0
- package/dist/types/src/datepicker/useTimeFieldState.d.ts +17 -0
- package/dist/types/src/datepicker/utils.d.ts +20 -0
- package/dist/types/src/disclosure/useDisclosureGroupState.d.ts +30 -0
- package/dist/types/src/disclosure/useDisclosureState.d.ts +25 -0
- package/dist/types/src/dnd/useDraggableCollectionState.d.ts +42 -0
- package/dist/types/src/dnd/useDroppableCollectionState.d.ts +38 -0
- package/dist/types/src/flags/flags.d.ts +4 -0
- package/dist/types/src/form/useFormValidationState.d.ts +26 -0
- package/dist/types/src/grid/GridCollection.d.ts +48 -0
- package/dist/types/src/grid/useGridState.d.ts +25 -0
- package/dist/types/src/layout/GridLayout.d.ts +73 -0
- package/dist/types/src/layout/ListLayout.d.ts +144 -0
- package/dist/types/src/layout/TableLayout.d.ts +72 -0
- package/dist/types/src/layout/WaterfallLayout.d.ts +61 -0
- package/dist/types/src/list/ListCollection.d.ts +19 -0
- package/dist/types/src/list/useListState.d.ts +31 -0
- package/dist/types/src/list/useSingleSelectListState.d.ts +21 -0
- package/dist/types/src/menu/useMenuTriggerState.d.ts +36 -0
- package/dist/types/src/menu/useSubmenuTriggerState.d.ts +30 -0
- package/dist/types/src/numberfield/useNumberFieldState.d.ts +76 -0
- package/dist/types/src/overlays/useOverlayTriggerState.d.ts +25 -0
- package/dist/types/src/radio/useRadioGroupState.d.ts +45 -0
- package/dist/types/src/searchfield/useSearchFieldState.d.ts +19 -0
- package/dist/types/src/select/useSelectState.d.ts +89 -0
- package/dist/types/src/selection/Selection.d.ts +10 -0
- package/dist/types/src/selection/SelectionManager.d.ts +122 -0
- package/dist/types/src/selection/types.d.ts +96 -0
- package/dist/types/src/selection/useMultipleSelectionState.d.ts +20 -0
- package/dist/types/src/slider/useSliderState.d.ts +152 -0
- package/dist/types/src/steplist/useStepListState.d.ts +23 -0
- package/dist/types/src/table/Cell.d.ts +22 -0
- package/dist/types/src/table/Column.d.ts +51 -0
- package/dist/types/src/table/Row.d.ts +30 -0
- package/dist/types/src/table/TableBody.d.ts +22 -0
- package/dist/types/src/table/TableCollection.d.ts +40 -0
- package/dist/types/src/table/TableColumnLayout.d.ts +27 -0
- package/dist/types/src/table/TableHeader.d.ts +20 -0
- package/dist/types/src/table/TableUtils.d.ts +40 -0
- package/dist/types/src/table/useTableColumnResizeState.d.ts +46 -0
- package/dist/types/src/table/useTableState.d.ts +78 -0
- package/dist/types/src/table/useTreeGridState.d.ts +26 -0
- package/dist/types/src/tabs/useTabListState.d.ts +26 -0
- package/dist/types/src/toast/useToastState.d.ts +82 -0
- package/dist/types/src/toggle/useToggleGroupState.d.ts +37 -0
- package/dist/types/src/toggle/useToggleState.d.ts +40 -0
- package/dist/types/src/tooltip/useTooltipTriggerState.d.ts +45 -0
- package/dist/types/src/tree/TreeCollection.d.ts +19 -0
- package/dist/types/src/tree/useTreeState.d.ts +25 -0
- package/dist/types/src/utils/number.d.ts +7 -0
- package/dist/types/src/utils/useControlledState.d.ts +3 -0
- package/dist/types/src/virtualizer/Layout.d.ts +68 -0
- package/dist/types/src/virtualizer/LayoutInfo.d.ts +70 -0
- package/dist/types/src/virtualizer/OverscanManager.d.ts +8 -0
- package/dist/types/src/virtualizer/Point.d.ts +19 -0
- package/dist/types/src/virtualizer/Rect.d.ts +82 -0
- package/dist/types/src/virtualizer/ReusableView.d.ts +34 -0
- package/dist/types/src/virtualizer/Size.d.ts +17 -0
- package/dist/types/src/virtualizer/Virtualizer.d.ts +74 -0
- package/dist/types/src/virtualizer/types.d.ts +30 -0
- package/dist/types/src/virtualizer/useVirtualizerState.d.ts +30 -0
- package/dist/types/src/virtualizer/utils.d.ts +2 -0
- package/package.json +71 -43
- package/private/autocomplete/useAutocompleteState/package.json +5 -0
- package/private/collections/CollectionBuilder/package.json +5 -0
- package/private/collections/getChildNodes/package.json +5 -0
- package/private/collections/getItemCount/package.json +5 -0
- package/private/collections/types/package.json +5 -0
- package/private/collections/useCollection/package.json +5 -0
- package/private/datepicker/utils/package.json +5 -0
- package/private/flags/flags/package.json +5 -0
- package/private/form/useFormValidationState/package.json +5 -0
- package/private/grid/GridCollection/package.json +5 -0
- package/private/grid/useGridState/package.json +5 -0
- package/private/list/ListCollection/package.json +5 -0
- package/private/selection/SelectionManager/package.json +5 -0
- package/private/steplist/useStepListState/package.json +5 -0
- package/private/table/TableCollection/package.json +5 -0
- package/private/table/TableColumnLayout/package.json +5 -0
- package/private/table/useTableState/package.json +5 -0
- package/private/table/useTreeGridState/package.json +5 -0
- package/private/tree/TreeCollection/package.json +5 -0
- package/private/utils/number/package.json +5 -0
- package/useAsyncList/package.json +5 -0
- package/useCalendarState/package.json +5 -0
- package/useCheckboxGroupState/package.json +5 -0
- package/useColorAreaState/package.json +5 -0
- package/useColorFieldState/package.json +5 -0
- package/useColorPickerState/package.json +5 -0
- package/useColorSliderState/package.json +5 -0
- package/useColorWheelState/package.json +5 -0
- package/useComboBoxState/package.json +5 -0
- package/useControlledState/package.json +5 -0
- package/useDateFieldState/package.json +5 -0
- package/useDatePickerState/package.json +5 -0
- package/useDateRangePickerState/package.json +5 -0
- package/useDisclosureGroupState/package.json +5 -0
- package/useDisclosureState/package.json +5 -0
- package/useDraggableCollectionState/package.json +5 -0
- package/useDroppableCollectionState/package.json +5 -0
- package/useListData/package.json +5 -0
- package/useListState/package.json +5 -0
- package/useMenuTriggerState/package.json +5 -0
- package/useMultipleSelectionState/package.json +5 -0
- package/useNumberFieldState/package.json +5 -0
- package/useOverlayTriggerState/package.json +5 -0
- package/useRadioGroupState/package.json +5 -0
- package/useRangeCalendarState/package.json +5 -0
- package/useSearchFieldState/package.json +5 -0
- package/useSelectState/package.json +5 -0
- package/useSingleSelectListState/package.json +5 -0
- package/useSliderState/package.json +5 -0
- package/useTabListState/package.json +5 -0
- package/useTableState/package.json +5 -0
- package/useTimeFieldState/package.json +5 -0
- package/useToastState/package.json +5 -0
- package/useToggleGroupState/package.json +5 -0
- package/useToggleState/package.json +5 -0
- package/useTooltipTriggerState/package.json +5 -0
- package/useTreeData/package.json +5 -0
- package/useTreeState/package.json +5 -0
- package/useVirtualizerState/package.json +5 -0
- package/dist/import.mjs +0 -38
- package/dist/main.js +0 -84
- package/dist/module.js +0 -38
- package/dist/types.d.ts +0 -62
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import {useNumberFieldState as $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c} from "../numberfield/useNumberFieldState.mjs";
|
|
2
|
+
import {useColor as $7d5d4eb4667f32af$export$5aadd9c0606af5c2} from "./useColor.mjs";
|
|
3
|
+
import {useControlledState as $3e6197669829fe11$export$40bfa8c7b0832715} from "../utils/useControlledState.mjs";
|
|
4
|
+
import {useState as $7kIzU$useState, useMemo as $7kIzU$useMemo} from "react";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
function $378fa61546b28d38$export$b9fc0d69c9190c4a(props) {
|
|
11
|
+
let { channel: channel, colorSpace: colorSpace, locale: locale } = props;
|
|
12
|
+
let initialValue = (0, $7d5d4eb4667f32af$export$5aadd9c0606af5c2)(props.value);
|
|
13
|
+
let initialDefaultValue = (0, $7d5d4eb4667f32af$export$5aadd9c0606af5c2)(props.defaultValue);
|
|
14
|
+
let [colorValue, setColor] = (0, $3e6197669829fe11$export$40bfa8c7b0832715)(initialValue, initialDefaultValue ?? null, props.onChange);
|
|
15
|
+
let color = $378fa61546b28d38$var$useConvertColor(colorValue, colorSpace);
|
|
16
|
+
let [initialColorValue] = (0, $7kIzU$useState)(colorValue);
|
|
17
|
+
let defaultColorValue = initialDefaultValue ?? initialColorValue;
|
|
18
|
+
let defaultColor = $378fa61546b28d38$var$useConvertColor(defaultColorValue, colorSpace);
|
|
19
|
+
let value = color.getChannelValue(channel);
|
|
20
|
+
let range = color.getChannelRange(channel);
|
|
21
|
+
let formatOptions = (0, $7kIzU$useMemo)(()=>color.getChannelFormatOptions(channel), [
|
|
22
|
+
color,
|
|
23
|
+
channel
|
|
24
|
+
]);
|
|
25
|
+
let multiplier = formatOptions.style === 'percent' && range.maxValue === 100 ? 100 : 1;
|
|
26
|
+
let numberFieldState = (0, $3d0ee518c6f3d04f$export$7f629e9dc1ecf37c)({
|
|
27
|
+
locale: locale,
|
|
28
|
+
value: colorValue === null ? NaN : value / multiplier,
|
|
29
|
+
defaultValue: defaultColorValue === null ? NaN : defaultColor.getChannelValue(channel) / multiplier,
|
|
30
|
+
onChange: (v)=>{
|
|
31
|
+
if (!Number.isNaN(v)) setColor(color.withChannelValue(channel, v * multiplier));
|
|
32
|
+
else setColor(null);
|
|
33
|
+
},
|
|
34
|
+
minValue: range.minValue / multiplier,
|
|
35
|
+
maxValue: range.maxValue / multiplier,
|
|
36
|
+
step: range.step / multiplier,
|
|
37
|
+
formatOptions: formatOptions
|
|
38
|
+
});
|
|
39
|
+
return {
|
|
40
|
+
...numberFieldState,
|
|
41
|
+
colorValue: color,
|
|
42
|
+
defaultColorValue: defaultColorValue,
|
|
43
|
+
setColorValue: setColor
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function $378fa61546b28d38$var$useConvertColor(colorValue, colorSpace) {
|
|
47
|
+
let black = (0, $7d5d4eb4667f32af$export$5aadd9c0606af5c2)('#000');
|
|
48
|
+
return (0, $7kIzU$useMemo)(()=>{
|
|
49
|
+
let nonNullColorValue = colorValue || black;
|
|
50
|
+
return colorSpace && nonNullColorValue ? nonNullColorValue.toFormat(colorSpace) : nonNullColorValue;
|
|
51
|
+
}, [
|
|
52
|
+
black,
|
|
53
|
+
colorValue,
|
|
54
|
+
colorSpace
|
|
55
|
+
]);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
export {$378fa61546b28d38$export$b9fc0d69c9190c4a as useColorChannelFieldState};
|
|
60
|
+
//# sourceMappingURL=useColorChannelFieldState.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;AA6BO,SAAS,0CAA0B,KAAoC;IAC5E,IAAI,WAAC,OAAO,cAAE,UAAU,UAAE,MAAM,EAAC,GAAG;IACpC,IAAI,eAAe,CAAA,GAAA,yCAAO,EAAE,MAAM,KAAK;IACvC,IAAI,sBAAsB,CAAA,GAAA,yCAAO,EAAE,MAAM,YAAY;IACrD,IAAI,CAAC,YAAY,SAAS,GAAG,CAAA,GAAA,yCAAiB,EAAE,cAAc,uBAAuB,MAAM,MAAM,QAAQ;IACzG,IAAI,QAAQ,sCAAgB,YAAY;IACxC,IAAI,CAAC,kBAAkB,GAAG,CAAA,GAAA,eAAO,EAAE;IACnC,IAAI,oBAAoB,uBAAuB;IAC/C,IAAI,eAAe,sCAAgB,mBAAmB;IACtD,IAAI,QAAQ,MAAM,eAAe,CAAC;IAClC,IAAI,QAAQ,MAAM,eAAe,CAAC;IAClC,IAAI,gBAAgB,CAAA,GAAA,cAAM,EAAE,IAAM,MAAM,uBAAuB,CAAC,UAAU;QAAC;QAAO;KAAQ;IAC1F,IAAI,aAAa,cAAc,KAAK,KAAK,aAAa,MAAM,QAAQ,KAAK,MAAM,MAAM;IAErF,IAAI,mBAAmB,CAAA,GAAA,yCAAkB,EAAE;gBACzC;QACA,OAAO,eAAe,OAAO,MAAM,QAAQ;QAC3C,cAAc,sBAAsB,OAAO,MAAM,aAAa,eAAe,CAAC,WAAW;QACzF,UAAU,CAAC;YACT,IAAI,CAAC,OAAO,KAAK,CAAC,IAChB,SAAS,MAAM,gBAAgB,CAAC,SAAS,IAAI;iBAE7C,SAAS;QAEb;QACA,UAAU,MAAM,QAAQ,GAAG;QAC3B,UAAU,MAAM,QAAQ,GAAG;QAC3B,MAAM,MAAM,IAAI,GAAG;uBACnB;IACF;IAEA,OAAO;QACL,GAAG,gBAAgB;QACnB,YAAY;2BACZ;QACA,eAAe;IACjB;AACF;AAEA,SAAS,sCAAgB,UAAwB,EAAE,UAAyC;IAC1F,IAAI,QAAQ,CAAA,GAAA,yCAAO,EAAE;IACrB,OAAO,CAAA,GAAA,cAAM,EAAE;QACb,IAAI,oBAAoB,cAAc;QACtC,OAAO,cAAc,oBAAoB,kBAAkB,QAAQ,CAAC,cAAc;IACpF,GAAG;QAAC;QAAO;QAAY;KAAW;AACpC","sources":["packages/react-stately/src/color/useColorChannelFieldState.ts"],"sourcesContent":["import {Color, ColorChannel, ColorSpace} from './types';\nimport {ColorFieldProps} from './useColorFieldState';\nimport {NumberFieldState, useNumberFieldState} from '../numberfield/useNumberFieldState';\nimport {useColor} from './useColor';\nimport {useControlledState} from '../utils/useControlledState';\nimport {useMemo, useState} from 'react';\n\nexport interface ColorChannelFieldProps extends ColorFieldProps {\n colorSpace?: ColorSpace,\n channel: ColorChannel\n}\n\nexport interface ColorChannelFieldStateOptions extends ColorChannelFieldProps {\n locale: string\n}\n\nexport interface ColorChannelFieldState extends NumberFieldState {\n /** The current value of the field. */\n colorValue: Color,\n /** The default value of the field. */\n defaultColorValue: Color | null,\n /** Sets the color value of the field. */\n setColorValue(value: Color | null): void\n}\n\n/**\n * Provides state management for a color channel field, allowing users to edit the\n * value of an individual color channel.\n */\nexport function useColorChannelFieldState(props: ColorChannelFieldStateOptions): ColorChannelFieldState {\n let {channel, colorSpace, locale} = props;\n let initialValue = useColor(props.value);\n let initialDefaultValue = useColor(props.defaultValue);\n let [colorValue, setColor] = useControlledState(initialValue, initialDefaultValue ?? null, props.onChange);\n let color = useConvertColor(colorValue, colorSpace);\n let [initialColorValue] = useState(colorValue);\n let defaultColorValue = initialDefaultValue ?? initialColorValue;\n let defaultColor = useConvertColor(defaultColorValue, colorSpace);\n let value = color.getChannelValue(channel);\n let range = color.getChannelRange(channel);\n let formatOptions = useMemo(() => color.getChannelFormatOptions(channel), [color, channel]);\n let multiplier = formatOptions.style === 'percent' && range.maxValue === 100 ? 100 : 1;\n\n let numberFieldState = useNumberFieldState({\n locale,\n value: colorValue === null ? NaN : value / multiplier,\n defaultValue: defaultColorValue === null ? NaN : defaultColor.getChannelValue(channel) / multiplier,\n onChange: (v) => {\n if (!Number.isNaN(v)) {\n setColor(color.withChannelValue(channel, v * multiplier));\n } else {\n setColor(null);\n }\n },\n minValue: range.minValue / multiplier,\n maxValue: range.maxValue / multiplier,\n step: range.step / multiplier,\n formatOptions\n });\n\n return {\n ...numberFieldState,\n colorValue: color,\n defaultColorValue,\n setColorValue: setColor\n };\n}\n\nfunction useConvertColor(colorValue: Color | null, colorSpace: ColorSpace | null | undefined) {\n let black = useColor('#000')!;\n return useMemo(() => {\n let nonNullColorValue = colorValue || black;\n return colorSpace && nonNullColorValue ? nonNullColorValue.toFormat(colorSpace) : nonNullColorValue;\n }, [black, colorValue, colorSpace]);\n}\n"],"names":[],"version":3,"file":"useColorChannelFieldState.mjs.map"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
var $a94d8588145c9b3d$exports = require("../form/useFormValidationState.cjs");
|
|
2
|
+
var $90c404755d945e7c$exports = require("./Color.cjs");
|
|
3
|
+
var $4e0e76ad3205925c$exports = require("./useColor.cjs");
|
|
4
|
+
var $14cedf286405cc4b$exports = require("../utils/useControlledState.cjs");
|
|
5
|
+
var $bzJBx$react = require("react");
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
function $parcel$export(e, n, v, s) {
|
|
9
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
$parcel$export(module.exports, "useColorFieldState", function () { return $2968dd6b3018eccd$export$d52a01683abdfcd6; });
|
|
13
|
+
/*
|
|
14
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
15
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
16
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
17
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
+
*
|
|
19
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
20
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
21
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
22
|
+
* governing permissions and limitations under the License.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
const $2968dd6b3018eccd$var$MIN_COLOR = (0, $90c404755d945e7c$exports.parseColor)('#000000');
|
|
29
|
+
const $2968dd6b3018eccd$var$MAX_COLOR = (0, $90c404755d945e7c$exports.parseColor)('#FFFFFF');
|
|
30
|
+
const $2968dd6b3018eccd$var$MIN_COLOR_INT = $2968dd6b3018eccd$var$MIN_COLOR.toHexInt();
|
|
31
|
+
const $2968dd6b3018eccd$var$MAX_COLOR_INT = $2968dd6b3018eccd$var$MAX_COLOR.toHexInt();
|
|
32
|
+
function $2968dd6b3018eccd$export$d52a01683abdfcd6(props) {
|
|
33
|
+
let { value: value, defaultValue: defaultValue, onChange: onChange } = props;
|
|
34
|
+
let { step: step } = $2968dd6b3018eccd$var$MIN_COLOR.getChannelRange('red');
|
|
35
|
+
let initialDefaultValue = (0, $4e0e76ad3205925c$exports.useColor)(defaultValue);
|
|
36
|
+
let [colorValue, setColorValue] = (0, $14cedf286405cc4b$exports.useControlledState)((0, $4e0e76ad3205925c$exports.useColor)(value), initialDefaultValue, onChange);
|
|
37
|
+
let [initialValue] = (0, $bzJBx$react.useState)(colorValue);
|
|
38
|
+
let [inputValue, setInputValue] = (0, $bzJBx$react.useState)(()=>(value || defaultValue) && colorValue ? colorValue.toString('hex') : '');
|
|
39
|
+
let validation = (0, $a94d8588145c9b3d$exports.useFormValidationState)({
|
|
40
|
+
...props,
|
|
41
|
+
value: colorValue
|
|
42
|
+
});
|
|
43
|
+
let safelySetColorValue = (newColor)=>{
|
|
44
|
+
if (!colorValue || !newColor) {
|
|
45
|
+
setColorValue(newColor);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (newColor.toHexInt() !== colorValue.toHexInt()) {
|
|
49
|
+
setColorValue(newColor);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
let [prevValue, setPrevValue] = (0, $bzJBx$react.useState)(colorValue);
|
|
54
|
+
if (prevValue !== colorValue) {
|
|
55
|
+
setInputValue(colorValue ? colorValue.toString('hex') : '');
|
|
56
|
+
setPrevValue(colorValue);
|
|
57
|
+
}
|
|
58
|
+
let parsedValue = (0, $bzJBx$react.useMemo)(()=>{
|
|
59
|
+
let color;
|
|
60
|
+
try {
|
|
61
|
+
color = (0, $90c404755d945e7c$exports.parseColor)(inputValue.startsWith('#') ? inputValue : `#${inputValue}`);
|
|
62
|
+
} catch {
|
|
63
|
+
color = null;
|
|
64
|
+
}
|
|
65
|
+
return color;
|
|
66
|
+
}, [
|
|
67
|
+
inputValue
|
|
68
|
+
]);
|
|
69
|
+
let commit = ()=>{
|
|
70
|
+
// Set to empty state if input value is empty
|
|
71
|
+
if (!inputValue.length) {
|
|
72
|
+
safelySetColorValue(null);
|
|
73
|
+
if (value === undefined || colorValue === null) setInputValue('');
|
|
74
|
+
else setInputValue(colorValue.toString('hex'));
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
// if it failed to parse, then reset input to formatted version of current number
|
|
78
|
+
if (parsedValue == null) {
|
|
79
|
+
setInputValue(colorValue ? colorValue.toString('hex') : '');
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
safelySetColorValue(parsedValue);
|
|
83
|
+
// in a controlled state, the numberValue won't change, so we won't go back to our old input without help
|
|
84
|
+
let newColorValue = '';
|
|
85
|
+
if (colorValue) newColorValue = colorValue.toString('hex');
|
|
86
|
+
setInputValue(newColorValue);
|
|
87
|
+
validation.commitValidation();
|
|
88
|
+
};
|
|
89
|
+
let increment = ()=>{
|
|
90
|
+
let newValue = $2968dd6b3018eccd$var$addColorValue(parsedValue, step);
|
|
91
|
+
// if we've arrived at the same value that was previously in the state, the
|
|
92
|
+
// input value should be updated to match
|
|
93
|
+
// ex type 4, press increment, highlight the number in the input, type 4 again, press increment
|
|
94
|
+
// you'd be at 5, then incrementing to 5 again, so no re-render would happen and 4 would be left in the input
|
|
95
|
+
if (newValue === colorValue) setInputValue(newValue.toString('hex'));
|
|
96
|
+
safelySetColorValue(newValue);
|
|
97
|
+
validation.commitValidation();
|
|
98
|
+
};
|
|
99
|
+
let decrement = ()=>{
|
|
100
|
+
let newValue = $2968dd6b3018eccd$var$addColorValue(parsedValue, -step);
|
|
101
|
+
// if we've arrived at the same value that was previously in the state, the
|
|
102
|
+
// input value should be updated to match
|
|
103
|
+
// ex type 4, press increment, highlight the number in the input, type 4 again, press increment
|
|
104
|
+
// you'd be at 5, then incrementing to 5 again, so no re-render would happen and 4 would be left in the input
|
|
105
|
+
if (newValue === colorValue) setInputValue(newValue.toString('hex'));
|
|
106
|
+
safelySetColorValue(newValue);
|
|
107
|
+
validation.commitValidation();
|
|
108
|
+
};
|
|
109
|
+
let incrementToMax = ()=>safelySetColorValue($2968dd6b3018eccd$var$MAX_COLOR);
|
|
110
|
+
let decrementToMin = ()=>safelySetColorValue($2968dd6b3018eccd$var$MIN_COLOR);
|
|
111
|
+
let validate = (value)=>value === '' || !!value.match(/^#?[0-9a-f]{0,6}$/i)?.[0];
|
|
112
|
+
return {
|
|
113
|
+
...validation,
|
|
114
|
+
validate: validate,
|
|
115
|
+
colorValue: colorValue,
|
|
116
|
+
defaultColorValue: initialDefaultValue ?? initialValue,
|
|
117
|
+
setColorValue: setColorValue,
|
|
118
|
+
inputValue: inputValue,
|
|
119
|
+
setInputValue: setInputValue,
|
|
120
|
+
commit: commit,
|
|
121
|
+
increment: increment,
|
|
122
|
+
incrementToMax: incrementToMax,
|
|
123
|
+
decrement: decrement,
|
|
124
|
+
decrementToMin: decrementToMin
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
function $2968dd6b3018eccd$var$addColorValue(color, step) {
|
|
128
|
+
let newColor = color ? color : $2968dd6b3018eccd$var$MIN_COLOR;
|
|
129
|
+
let colorInt = newColor.toHexInt();
|
|
130
|
+
let clampInt = Math.min(Math.max(colorInt + step, $2968dd6b3018eccd$var$MIN_COLOR_INT), $2968dd6b3018eccd$var$MAX_COLOR_INT);
|
|
131
|
+
if (clampInt !== colorInt) {
|
|
132
|
+
let newColorString = `#${clampInt.toString(16).padStart(6, '0').toUpperCase()}`;
|
|
133
|
+
newColor = (0, $90c404755d945e7c$exports.parseColor)(newColorString);
|
|
134
|
+
}
|
|
135
|
+
return newColor;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
//# sourceMappingURL=useColorFieldState.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"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","sources":["packages/react-stately/src/color/useColorFieldState.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Color} from './types';\nimport {FocusableProps, HelpTextProps, InputBase, LabelableProps, TextInputBase, Validation, ValueBase} from '@react-types/shared';\nimport {FormValidationState, useFormValidationState} from '../form/useFormValidationState';\nimport {parseColor} from './Color';\nimport {useColor} from './useColor';\nimport {useControlledState} from '../utils/useControlledState';\nimport {useMemo, useState} from 'react';\n\nexport interface ColorFieldProps extends Omit<ValueBase<string | Color | null>, 'onChange'>, InputBase, Validation<Color | null>, FocusableProps, TextInputBase, LabelableProps, HelpTextProps {\n /** Handler that is called when the value changes. */\n onChange?: (color: Color | null) => void\n}\n\nexport interface ColorFieldState extends FormValidationState {\n /**\n * The current text value of the input. Updated as the user types,\n * and formatted according to `formatOptions` on blur.\n */\n readonly inputValue: string,\n /**\n * The currently parsed color value, or null if the field is empty.\n * Updated based on the `inputValue` as the user types.\n */\n readonly colorValue: Color | null,\n /** The default value of the color field. */\n readonly defaultColorValue: Color | null,\n /** Sets the color value of the field. */\n setColorValue(value: Color | null): void,\n /** Sets the current text value of the input. */\n setInputValue(value: string): void,\n /**\n * Updates the input value based on the currently parsed color value.\n * Typically this is called when the field is blurred.\n */\n commit(): void,\n /** Increments the current input value to the next step boundary, and fires `onChange`. */\n increment(): void,\n /** Decrements the current input value to the next step boundary, and fires `onChange`. */\n decrement(): void,\n /** Sets the current value to the maximum color value, and fires `onChange`. */\n incrementToMax(): void,\n /** Sets the current value to the minimum color value, and fires `onChange`. */\n decrementToMin(): void,\n /**\n * Validates a user input string.\n * Values can be partially entered, and may be valid even if they cannot currently be parsed to a color.\n * Can be used to implement validation as a user types.\n */\n validate(value: string): boolean\n}\n\nconst MIN_COLOR = parseColor('#000000');\nconst MAX_COLOR = parseColor('#FFFFFF');\nconst MIN_COLOR_INT = MIN_COLOR.toHexInt();\nconst MAX_COLOR_INT = MAX_COLOR.toHexInt();\n\n/**\n * Provides state management for a color field component. Color fields allow\n * users to enter and adjust a hex color value.\n */\nexport function useColorFieldState(\n props: ColorFieldProps\n): ColorFieldState {\n let {\n value,\n defaultValue,\n onChange\n } = props;\n let {step} = MIN_COLOR.getChannelRange('red');\n\n let initialDefaultValue = useColor(defaultValue);\n let [colorValue, setColorValue] = useControlledState<Color | null>(useColor(value), initialDefaultValue!, onChange);\n let [initialValue] = useState(colorValue);\n let [inputValue, setInputValue] = useState(() => (value || defaultValue) && colorValue ? colorValue.toString('hex') : '');\n\n let validation = useFormValidationState({\n ...props,\n value: colorValue\n });\n\n let safelySetColorValue = (newColor: Color | null) => {\n if (!colorValue || !newColor) {\n setColorValue(newColor);\n return;\n }\n if (newColor.toHexInt() !== colorValue.toHexInt()) {\n setColorValue(newColor);\n return;\n }\n };\n\n let [prevValue, setPrevValue] = useState(colorValue);\n if (prevValue !== colorValue) {\n setInputValue(colorValue ? colorValue.toString('hex') : '');\n setPrevValue(colorValue);\n }\n\n let parsedValue = useMemo(() => {\n let color;\n try {\n color = parseColor(inputValue.startsWith('#') ? inputValue : `#${inputValue}`);\n } catch {\n color = null;\n }\n return color;\n }, [inputValue]);\n\n let commit = () => {\n // Set to empty state if input value is empty\n if (!inputValue.length) {\n safelySetColorValue(null);\n if (value === undefined || colorValue === null) {\n setInputValue('');\n } else {\n setInputValue(colorValue.toString('hex'));\n }\n return;\n }\n\n // if it failed to parse, then reset input to formatted version of current number\n if (parsedValue == null) {\n setInputValue(colorValue ? colorValue.toString('hex') : '');\n return;\n }\n\n safelySetColorValue(parsedValue);\n // in a controlled state, the numberValue won't change, so we won't go back to our old input without help\n let newColorValue = '';\n if (colorValue) {\n newColorValue = colorValue.toString('hex');\n }\n setInputValue(newColorValue);\n validation.commitValidation();\n };\n\n let increment = () => {\n let newValue = addColorValue(parsedValue, step);\n // if we've arrived at the same value that was previously in the state, the\n // input value should be updated to match\n // ex type 4, press increment, highlight the number in the input, type 4 again, press increment\n // you'd be at 5, then incrementing to 5 again, so no re-render would happen and 4 would be left in the input\n if (newValue === colorValue) {\n setInputValue(newValue.toString('hex'));\n }\n safelySetColorValue(newValue);\n validation.commitValidation();\n };\n let decrement = () => {\n let newValue = addColorValue(parsedValue, -step);\n // if we've arrived at the same value that was previously in the state, the\n // input value should be updated to match\n // ex type 4, press increment, highlight the number in the input, type 4 again, press increment\n // you'd be at 5, then incrementing to 5 again, so no re-render would happen and 4 would be left in the input\n if (newValue === colorValue) {\n setInputValue(newValue.toString('hex'));\n }\n safelySetColorValue(newValue);\n validation.commitValidation();\n };\n let incrementToMax = () => safelySetColorValue(MAX_COLOR);\n let decrementToMin = () => safelySetColorValue(MIN_COLOR);\n\n let validate = (value: string) => value === '' || !!value.match(/^#?[0-9a-f]{0,6}$/i)?.[0];\n\n return {\n ...validation,\n validate,\n colorValue,\n defaultColorValue: initialDefaultValue ?? initialValue,\n setColorValue,\n inputValue,\n setInputValue,\n commit,\n increment,\n incrementToMax,\n decrement,\n decrementToMin\n };\n}\n\nfunction addColorValue(color: Color, step: number) {\n let newColor = color ? color : MIN_COLOR;\n let colorInt = newColor.toHexInt();\n\n let clampInt = Math.min(Math.max(colorInt + step, MIN_COLOR_INT), MAX_COLOR_INT);\n if (clampInt !== colorInt) {\n let newColorString = `#${clampInt.toString(16).padStart(6, '0').toUpperCase()}`;\n newColor = parseColor(newColorString);\n }\n return newColor;\n}\n"],"names":[],"version":3,"file":"useColorFieldState.cjs.map"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import {useFormValidationState as $d085204f885ad67a$export$fc1a364ae1f3ff10} from "../form/useFormValidationState.js";
|
|
2
|
+
import {parseColor as $9be7d47340a9a2a9$export$6e865ea70d7724f} from "./Color.js";
|
|
3
|
+
import {useColor as $3c80253044a6b286$export$5aadd9c0606af5c2} from "./useColor.js";
|
|
4
|
+
import {useControlledState as $2a35a170cf8e413e$export$40bfa8c7b0832715} from "../utils/useControlledState.js";
|
|
5
|
+
import {useState as $hMBW6$useState, useMemo as $hMBW6$useMemo} from "react";
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
9
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
11
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
14
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
15
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
16
|
+
* governing permissions and limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
const $2e5226d69ff54a9d$var$MIN_COLOR = (0, $9be7d47340a9a2a9$export$6e865ea70d7724f)('#000000');
|
|
23
|
+
const $2e5226d69ff54a9d$var$MAX_COLOR = (0, $9be7d47340a9a2a9$export$6e865ea70d7724f)('#FFFFFF');
|
|
24
|
+
const $2e5226d69ff54a9d$var$MIN_COLOR_INT = $2e5226d69ff54a9d$var$MIN_COLOR.toHexInt();
|
|
25
|
+
const $2e5226d69ff54a9d$var$MAX_COLOR_INT = $2e5226d69ff54a9d$var$MAX_COLOR.toHexInt();
|
|
26
|
+
function $2e5226d69ff54a9d$export$d52a01683abdfcd6(props) {
|
|
27
|
+
let { value: value, defaultValue: defaultValue, onChange: onChange } = props;
|
|
28
|
+
let { step: step } = $2e5226d69ff54a9d$var$MIN_COLOR.getChannelRange('red');
|
|
29
|
+
let initialDefaultValue = (0, $3c80253044a6b286$export$5aadd9c0606af5c2)(defaultValue);
|
|
30
|
+
let [colorValue, setColorValue] = (0, $2a35a170cf8e413e$export$40bfa8c7b0832715)((0, $3c80253044a6b286$export$5aadd9c0606af5c2)(value), initialDefaultValue, onChange);
|
|
31
|
+
let [initialValue] = (0, $hMBW6$useState)(colorValue);
|
|
32
|
+
let [inputValue, setInputValue] = (0, $hMBW6$useState)(()=>(value || defaultValue) && colorValue ? colorValue.toString('hex') : '');
|
|
33
|
+
let validation = (0, $d085204f885ad67a$export$fc1a364ae1f3ff10)({
|
|
34
|
+
...props,
|
|
35
|
+
value: colorValue
|
|
36
|
+
});
|
|
37
|
+
let safelySetColorValue = (newColor)=>{
|
|
38
|
+
if (!colorValue || !newColor) {
|
|
39
|
+
setColorValue(newColor);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (newColor.toHexInt() !== colorValue.toHexInt()) {
|
|
43
|
+
setColorValue(newColor);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
let [prevValue, setPrevValue] = (0, $hMBW6$useState)(colorValue);
|
|
48
|
+
if (prevValue !== colorValue) {
|
|
49
|
+
setInputValue(colorValue ? colorValue.toString('hex') : '');
|
|
50
|
+
setPrevValue(colorValue);
|
|
51
|
+
}
|
|
52
|
+
let parsedValue = (0, $hMBW6$useMemo)(()=>{
|
|
53
|
+
let color;
|
|
54
|
+
try {
|
|
55
|
+
color = (0, $9be7d47340a9a2a9$export$6e865ea70d7724f)(inputValue.startsWith('#') ? inputValue : `#${inputValue}`);
|
|
56
|
+
} catch {
|
|
57
|
+
color = null;
|
|
58
|
+
}
|
|
59
|
+
return color;
|
|
60
|
+
}, [
|
|
61
|
+
inputValue
|
|
62
|
+
]);
|
|
63
|
+
let commit = ()=>{
|
|
64
|
+
// Set to empty state if input value is empty
|
|
65
|
+
if (!inputValue.length) {
|
|
66
|
+
safelySetColorValue(null);
|
|
67
|
+
if (value === undefined || colorValue === null) setInputValue('');
|
|
68
|
+
else setInputValue(colorValue.toString('hex'));
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
// if it failed to parse, then reset input to formatted version of current number
|
|
72
|
+
if (parsedValue == null) {
|
|
73
|
+
setInputValue(colorValue ? colorValue.toString('hex') : '');
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
safelySetColorValue(parsedValue);
|
|
77
|
+
// in a controlled state, the numberValue won't change, so we won't go back to our old input without help
|
|
78
|
+
let newColorValue = '';
|
|
79
|
+
if (colorValue) newColorValue = colorValue.toString('hex');
|
|
80
|
+
setInputValue(newColorValue);
|
|
81
|
+
validation.commitValidation();
|
|
82
|
+
};
|
|
83
|
+
let increment = ()=>{
|
|
84
|
+
let newValue = $2e5226d69ff54a9d$var$addColorValue(parsedValue, step);
|
|
85
|
+
// if we've arrived at the same value that was previously in the state, the
|
|
86
|
+
// input value should be updated to match
|
|
87
|
+
// ex type 4, press increment, highlight the number in the input, type 4 again, press increment
|
|
88
|
+
// you'd be at 5, then incrementing to 5 again, so no re-render would happen and 4 would be left in the input
|
|
89
|
+
if (newValue === colorValue) setInputValue(newValue.toString('hex'));
|
|
90
|
+
safelySetColorValue(newValue);
|
|
91
|
+
validation.commitValidation();
|
|
92
|
+
};
|
|
93
|
+
let decrement = ()=>{
|
|
94
|
+
let newValue = $2e5226d69ff54a9d$var$addColorValue(parsedValue, -step);
|
|
95
|
+
// if we've arrived at the same value that was previously in the state, the
|
|
96
|
+
// input value should be updated to match
|
|
97
|
+
// ex type 4, press increment, highlight the number in the input, type 4 again, press increment
|
|
98
|
+
// you'd be at 5, then incrementing to 5 again, so no re-render would happen and 4 would be left in the input
|
|
99
|
+
if (newValue === colorValue) setInputValue(newValue.toString('hex'));
|
|
100
|
+
safelySetColorValue(newValue);
|
|
101
|
+
validation.commitValidation();
|
|
102
|
+
};
|
|
103
|
+
let incrementToMax = ()=>safelySetColorValue($2e5226d69ff54a9d$var$MAX_COLOR);
|
|
104
|
+
let decrementToMin = ()=>safelySetColorValue($2e5226d69ff54a9d$var$MIN_COLOR);
|
|
105
|
+
let validate = (value)=>{
|
|
106
|
+
var _value_match;
|
|
107
|
+
return value === '' || !!((_value_match = value.match(/^#?[0-9a-f]{0,6}$/i)) === null || _value_match === void 0 ? void 0 : _value_match[0]);
|
|
108
|
+
};
|
|
109
|
+
return {
|
|
110
|
+
...validation,
|
|
111
|
+
validate: validate,
|
|
112
|
+
colorValue: colorValue,
|
|
113
|
+
defaultColorValue: initialDefaultValue !== null && initialDefaultValue !== void 0 ? initialDefaultValue : initialValue,
|
|
114
|
+
setColorValue: setColorValue,
|
|
115
|
+
inputValue: inputValue,
|
|
116
|
+
setInputValue: setInputValue,
|
|
117
|
+
commit: commit,
|
|
118
|
+
increment: increment,
|
|
119
|
+
incrementToMax: incrementToMax,
|
|
120
|
+
decrement: decrement,
|
|
121
|
+
decrementToMin: decrementToMin
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
function $2e5226d69ff54a9d$var$addColorValue(color, step) {
|
|
125
|
+
let newColor = color ? color : $2e5226d69ff54a9d$var$MIN_COLOR;
|
|
126
|
+
let colorInt = newColor.toHexInt();
|
|
127
|
+
let clampInt = Math.min(Math.max(colorInt + step, $2e5226d69ff54a9d$var$MIN_COLOR_INT), $2e5226d69ff54a9d$var$MAX_COLOR_INT);
|
|
128
|
+
if (clampInt !== colorInt) {
|
|
129
|
+
let newColorString = `#${clampInt.toString(16).padStart(6, '0').toUpperCase()}`;
|
|
130
|
+
newColor = (0, $9be7d47340a9a2a9$export$6e865ea70d7724f)(newColorString);
|
|
131
|
+
}
|
|
132
|
+
return newColor;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
export {$2e5226d69ff54a9d$export$d52a01683abdfcd6 as useColorFieldState};
|
|
137
|
+
//# sourceMappingURL=useColorFieldState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"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","sources":["packages/react-stately/src/color/useColorFieldState.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Color} from './types';\nimport {FocusableProps, HelpTextProps, InputBase, LabelableProps, TextInputBase, Validation, ValueBase} from '@react-types/shared';\nimport {FormValidationState, useFormValidationState} from '../form/useFormValidationState';\nimport {parseColor} from './Color';\nimport {useColor} from './useColor';\nimport {useControlledState} from '../utils/useControlledState';\nimport {useMemo, useState} from 'react';\n\nexport interface ColorFieldProps extends Omit<ValueBase<string | Color | null>, 'onChange'>, InputBase, Validation<Color | null>, FocusableProps, TextInputBase, LabelableProps, HelpTextProps {\n /** Handler that is called when the value changes. */\n onChange?: (color: Color | null) => void\n}\n\nexport interface ColorFieldState extends FormValidationState {\n /**\n * The current text value of the input. Updated as the user types,\n * and formatted according to `formatOptions` on blur.\n */\n readonly inputValue: string,\n /**\n * The currently parsed color value, or null if the field is empty.\n * Updated based on the `inputValue` as the user types.\n */\n readonly colorValue: Color | null,\n /** The default value of the color field. */\n readonly defaultColorValue: Color | null,\n /** Sets the color value of the field. */\n setColorValue(value: Color | null): void,\n /** Sets the current text value of the input. */\n setInputValue(value: string): void,\n /**\n * Updates the input value based on the currently parsed color value.\n * Typically this is called when the field is blurred.\n */\n commit(): void,\n /** Increments the current input value to the next step boundary, and fires `onChange`. */\n increment(): void,\n /** Decrements the current input value to the next step boundary, and fires `onChange`. */\n decrement(): void,\n /** Sets the current value to the maximum color value, and fires `onChange`. */\n incrementToMax(): void,\n /** Sets the current value to the minimum color value, and fires `onChange`. */\n decrementToMin(): void,\n /**\n * Validates a user input string.\n * Values can be partially entered, and may be valid even if they cannot currently be parsed to a color.\n * Can be used to implement validation as a user types.\n */\n validate(value: string): boolean\n}\n\nconst MIN_COLOR = parseColor('#000000');\nconst MAX_COLOR = parseColor('#FFFFFF');\nconst MIN_COLOR_INT = MIN_COLOR.toHexInt();\nconst MAX_COLOR_INT = MAX_COLOR.toHexInt();\n\n/**\n * Provides state management for a color field component. Color fields allow\n * users to enter and adjust a hex color value.\n */\nexport function useColorFieldState(\n props: ColorFieldProps\n): ColorFieldState {\n let {\n value,\n defaultValue,\n onChange\n } = props;\n let {step} = MIN_COLOR.getChannelRange('red');\n\n let initialDefaultValue = useColor(defaultValue);\n let [colorValue, setColorValue] = useControlledState<Color | null>(useColor(value), initialDefaultValue!, onChange);\n let [initialValue] = useState(colorValue);\n let [inputValue, setInputValue] = useState(() => (value || defaultValue) && colorValue ? colorValue.toString('hex') : '');\n\n let validation = useFormValidationState({\n ...props,\n value: colorValue\n });\n\n let safelySetColorValue = (newColor: Color | null) => {\n if (!colorValue || !newColor) {\n setColorValue(newColor);\n return;\n }\n if (newColor.toHexInt() !== colorValue.toHexInt()) {\n setColorValue(newColor);\n return;\n }\n };\n\n let [prevValue, setPrevValue] = useState(colorValue);\n if (prevValue !== colorValue) {\n setInputValue(colorValue ? colorValue.toString('hex') : '');\n setPrevValue(colorValue);\n }\n\n let parsedValue = useMemo(() => {\n let color;\n try {\n color = parseColor(inputValue.startsWith('#') ? inputValue : `#${inputValue}`);\n } catch {\n color = null;\n }\n return color;\n }, [inputValue]);\n\n let commit = () => {\n // Set to empty state if input value is empty\n if (!inputValue.length) {\n safelySetColorValue(null);\n if (value === undefined || colorValue === null) {\n setInputValue('');\n } else {\n setInputValue(colorValue.toString('hex'));\n }\n return;\n }\n\n // if it failed to parse, then reset input to formatted version of current number\n if (parsedValue == null) {\n setInputValue(colorValue ? colorValue.toString('hex') : '');\n return;\n }\n\n safelySetColorValue(parsedValue);\n // in a controlled state, the numberValue won't change, so we won't go back to our old input without help\n let newColorValue = '';\n if (colorValue) {\n newColorValue = colorValue.toString('hex');\n }\n setInputValue(newColorValue);\n validation.commitValidation();\n };\n\n let increment = () => {\n let newValue = addColorValue(parsedValue, step);\n // if we've arrived at the same value that was previously in the state, the\n // input value should be updated to match\n // ex type 4, press increment, highlight the number in the input, type 4 again, press increment\n // you'd be at 5, then incrementing to 5 again, so no re-render would happen and 4 would be left in the input\n if (newValue === colorValue) {\n setInputValue(newValue.toString('hex'));\n }\n safelySetColorValue(newValue);\n validation.commitValidation();\n };\n let decrement = () => {\n let newValue = addColorValue(parsedValue, -step);\n // if we've arrived at the same value that was previously in the state, the\n // input value should be updated to match\n // ex type 4, press increment, highlight the number in the input, type 4 again, press increment\n // you'd be at 5, then incrementing to 5 again, so no re-render would happen and 4 would be left in the input\n if (newValue === colorValue) {\n setInputValue(newValue.toString('hex'));\n }\n safelySetColorValue(newValue);\n validation.commitValidation();\n };\n let incrementToMax = () => safelySetColorValue(MAX_COLOR);\n let decrementToMin = () => safelySetColorValue(MIN_COLOR);\n\n let validate = (value: string) => value === '' || !!value.match(/^#?[0-9a-f]{0,6}$/i)?.[0];\n\n return {\n ...validation,\n validate,\n colorValue,\n defaultColorValue: initialDefaultValue ?? initialValue,\n setColorValue,\n inputValue,\n setInputValue,\n commit,\n increment,\n incrementToMax,\n decrement,\n decrementToMin\n };\n}\n\nfunction addColorValue(color: Color, step: number) {\n let newColor = color ? color : MIN_COLOR;\n let colorInt = newColor.toHexInt();\n\n let clampInt = Math.min(Math.max(colorInt + step, MIN_COLOR_INT), MAX_COLOR_INT);\n if (clampInt !== colorInt) {\n let newColorString = `#${clampInt.toString(16).padStart(6, '0').toUpperCase()}`;\n newColor = parseColor(newColorString);\n }\n return newColor;\n}\n"],"names":[],"version":3,"file":"useColorFieldState.js.map"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import {useFormValidationState as $fd2148440a13ec26$export$fc1a364ae1f3ff10} from "../form/useFormValidationState.mjs";
|
|
2
|
+
import {parseColor as $890783418b00a858$export$6e865ea70d7724f} from "./Color.mjs";
|
|
3
|
+
import {useColor as $7d5d4eb4667f32af$export$5aadd9c0606af5c2} from "./useColor.mjs";
|
|
4
|
+
import {useControlledState as $3e6197669829fe11$export$40bfa8c7b0832715} from "../utils/useControlledState.mjs";
|
|
5
|
+
import {useState as $999Vs$useState, useMemo as $999Vs$useMemo} from "react";
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
9
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
11
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
14
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
15
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
16
|
+
* governing permissions and limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
const $83c2160a93ad557c$var$MIN_COLOR = (0, $890783418b00a858$export$6e865ea70d7724f)('#000000');
|
|
23
|
+
const $83c2160a93ad557c$var$MAX_COLOR = (0, $890783418b00a858$export$6e865ea70d7724f)('#FFFFFF');
|
|
24
|
+
const $83c2160a93ad557c$var$MIN_COLOR_INT = $83c2160a93ad557c$var$MIN_COLOR.toHexInt();
|
|
25
|
+
const $83c2160a93ad557c$var$MAX_COLOR_INT = $83c2160a93ad557c$var$MAX_COLOR.toHexInt();
|
|
26
|
+
function $83c2160a93ad557c$export$d52a01683abdfcd6(props) {
|
|
27
|
+
let { value: value, defaultValue: defaultValue, onChange: onChange } = props;
|
|
28
|
+
let { step: step } = $83c2160a93ad557c$var$MIN_COLOR.getChannelRange('red');
|
|
29
|
+
let initialDefaultValue = (0, $7d5d4eb4667f32af$export$5aadd9c0606af5c2)(defaultValue);
|
|
30
|
+
let [colorValue, setColorValue] = (0, $3e6197669829fe11$export$40bfa8c7b0832715)((0, $7d5d4eb4667f32af$export$5aadd9c0606af5c2)(value), initialDefaultValue, onChange);
|
|
31
|
+
let [initialValue] = (0, $999Vs$useState)(colorValue);
|
|
32
|
+
let [inputValue, setInputValue] = (0, $999Vs$useState)(()=>(value || defaultValue) && colorValue ? colorValue.toString('hex') : '');
|
|
33
|
+
let validation = (0, $fd2148440a13ec26$export$fc1a364ae1f3ff10)({
|
|
34
|
+
...props,
|
|
35
|
+
value: colorValue
|
|
36
|
+
});
|
|
37
|
+
let safelySetColorValue = (newColor)=>{
|
|
38
|
+
if (!colorValue || !newColor) {
|
|
39
|
+
setColorValue(newColor);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (newColor.toHexInt() !== colorValue.toHexInt()) {
|
|
43
|
+
setColorValue(newColor);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
let [prevValue, setPrevValue] = (0, $999Vs$useState)(colorValue);
|
|
48
|
+
if (prevValue !== colorValue) {
|
|
49
|
+
setInputValue(colorValue ? colorValue.toString('hex') : '');
|
|
50
|
+
setPrevValue(colorValue);
|
|
51
|
+
}
|
|
52
|
+
let parsedValue = (0, $999Vs$useMemo)(()=>{
|
|
53
|
+
let color;
|
|
54
|
+
try {
|
|
55
|
+
color = (0, $890783418b00a858$export$6e865ea70d7724f)(inputValue.startsWith('#') ? inputValue : `#${inputValue}`);
|
|
56
|
+
} catch {
|
|
57
|
+
color = null;
|
|
58
|
+
}
|
|
59
|
+
return color;
|
|
60
|
+
}, [
|
|
61
|
+
inputValue
|
|
62
|
+
]);
|
|
63
|
+
let commit = ()=>{
|
|
64
|
+
// Set to empty state if input value is empty
|
|
65
|
+
if (!inputValue.length) {
|
|
66
|
+
safelySetColorValue(null);
|
|
67
|
+
if (value === undefined || colorValue === null) setInputValue('');
|
|
68
|
+
else setInputValue(colorValue.toString('hex'));
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
// if it failed to parse, then reset input to formatted version of current number
|
|
72
|
+
if (parsedValue == null) {
|
|
73
|
+
setInputValue(colorValue ? colorValue.toString('hex') : '');
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
safelySetColorValue(parsedValue);
|
|
77
|
+
// in a controlled state, the numberValue won't change, so we won't go back to our old input without help
|
|
78
|
+
let newColorValue = '';
|
|
79
|
+
if (colorValue) newColorValue = colorValue.toString('hex');
|
|
80
|
+
setInputValue(newColorValue);
|
|
81
|
+
validation.commitValidation();
|
|
82
|
+
};
|
|
83
|
+
let increment = ()=>{
|
|
84
|
+
let newValue = $83c2160a93ad557c$var$addColorValue(parsedValue, step);
|
|
85
|
+
// if we've arrived at the same value that was previously in the state, the
|
|
86
|
+
// input value should be updated to match
|
|
87
|
+
// ex type 4, press increment, highlight the number in the input, type 4 again, press increment
|
|
88
|
+
// you'd be at 5, then incrementing to 5 again, so no re-render would happen and 4 would be left in the input
|
|
89
|
+
if (newValue === colorValue) setInputValue(newValue.toString('hex'));
|
|
90
|
+
safelySetColorValue(newValue);
|
|
91
|
+
validation.commitValidation();
|
|
92
|
+
};
|
|
93
|
+
let decrement = ()=>{
|
|
94
|
+
let newValue = $83c2160a93ad557c$var$addColorValue(parsedValue, -step);
|
|
95
|
+
// if we've arrived at the same value that was previously in the state, the
|
|
96
|
+
// input value should be updated to match
|
|
97
|
+
// ex type 4, press increment, highlight the number in the input, type 4 again, press increment
|
|
98
|
+
// you'd be at 5, then incrementing to 5 again, so no re-render would happen and 4 would be left in the input
|
|
99
|
+
if (newValue === colorValue) setInputValue(newValue.toString('hex'));
|
|
100
|
+
safelySetColorValue(newValue);
|
|
101
|
+
validation.commitValidation();
|
|
102
|
+
};
|
|
103
|
+
let incrementToMax = ()=>safelySetColorValue($83c2160a93ad557c$var$MAX_COLOR);
|
|
104
|
+
let decrementToMin = ()=>safelySetColorValue($83c2160a93ad557c$var$MIN_COLOR);
|
|
105
|
+
let validate = (value)=>value === '' || !!value.match(/^#?[0-9a-f]{0,6}$/i)?.[0];
|
|
106
|
+
return {
|
|
107
|
+
...validation,
|
|
108
|
+
validate: validate,
|
|
109
|
+
colorValue: colorValue,
|
|
110
|
+
defaultColorValue: initialDefaultValue ?? initialValue,
|
|
111
|
+
setColorValue: setColorValue,
|
|
112
|
+
inputValue: inputValue,
|
|
113
|
+
setInputValue: setInputValue,
|
|
114
|
+
commit: commit,
|
|
115
|
+
increment: increment,
|
|
116
|
+
incrementToMax: incrementToMax,
|
|
117
|
+
decrement: decrement,
|
|
118
|
+
decrementToMin: decrementToMin
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
function $83c2160a93ad557c$var$addColorValue(color, step) {
|
|
122
|
+
let newColor = color ? color : $83c2160a93ad557c$var$MIN_COLOR;
|
|
123
|
+
let colorInt = newColor.toHexInt();
|
|
124
|
+
let clampInt = Math.min(Math.max(colorInt + step, $83c2160a93ad557c$var$MIN_COLOR_INT), $83c2160a93ad557c$var$MAX_COLOR_INT);
|
|
125
|
+
if (clampInt !== colorInt) {
|
|
126
|
+
let newColorString = `#${clampInt.toString(16).padStart(6, '0').toUpperCase()}`;
|
|
127
|
+
newColor = (0, $890783418b00a858$export$6e865ea70d7724f)(newColorString);
|
|
128
|
+
}
|
|
129
|
+
return newColor;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
export {$83c2160a93ad557c$export$d52a01683abdfcd6 as useColorFieldState};
|
|
134
|
+
//# sourceMappingURL=useColorFieldState.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"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","sources":["packages/react-stately/src/color/useColorFieldState.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {Color} from './types';\nimport {FocusableProps, HelpTextProps, InputBase, LabelableProps, TextInputBase, Validation, ValueBase} from '@react-types/shared';\nimport {FormValidationState, useFormValidationState} from '../form/useFormValidationState';\nimport {parseColor} from './Color';\nimport {useColor} from './useColor';\nimport {useControlledState} from '../utils/useControlledState';\nimport {useMemo, useState} from 'react';\n\nexport interface ColorFieldProps extends Omit<ValueBase<string | Color | null>, 'onChange'>, InputBase, Validation<Color | null>, FocusableProps, TextInputBase, LabelableProps, HelpTextProps {\n /** Handler that is called when the value changes. */\n onChange?: (color: Color | null) => void\n}\n\nexport interface ColorFieldState extends FormValidationState {\n /**\n * The current text value of the input. Updated as the user types,\n * and formatted according to `formatOptions` on blur.\n */\n readonly inputValue: string,\n /**\n * The currently parsed color value, or null if the field is empty.\n * Updated based on the `inputValue` as the user types.\n */\n readonly colorValue: Color | null,\n /** The default value of the color field. */\n readonly defaultColorValue: Color | null,\n /** Sets the color value of the field. */\n setColorValue(value: Color | null): void,\n /** Sets the current text value of the input. */\n setInputValue(value: string): void,\n /**\n * Updates the input value based on the currently parsed color value.\n * Typically this is called when the field is blurred.\n */\n commit(): void,\n /** Increments the current input value to the next step boundary, and fires `onChange`. */\n increment(): void,\n /** Decrements the current input value to the next step boundary, and fires `onChange`. */\n decrement(): void,\n /** Sets the current value to the maximum color value, and fires `onChange`. */\n incrementToMax(): void,\n /** Sets the current value to the minimum color value, and fires `onChange`. */\n decrementToMin(): void,\n /**\n * Validates a user input string.\n * Values can be partially entered, and may be valid even if they cannot currently be parsed to a color.\n * Can be used to implement validation as a user types.\n */\n validate(value: string): boolean\n}\n\nconst MIN_COLOR = parseColor('#000000');\nconst MAX_COLOR = parseColor('#FFFFFF');\nconst MIN_COLOR_INT = MIN_COLOR.toHexInt();\nconst MAX_COLOR_INT = MAX_COLOR.toHexInt();\n\n/**\n * Provides state management for a color field component. Color fields allow\n * users to enter and adjust a hex color value.\n */\nexport function useColorFieldState(\n props: ColorFieldProps\n): ColorFieldState {\n let {\n value,\n defaultValue,\n onChange\n } = props;\n let {step} = MIN_COLOR.getChannelRange('red');\n\n let initialDefaultValue = useColor(defaultValue);\n let [colorValue, setColorValue] = useControlledState<Color | null>(useColor(value), initialDefaultValue!, onChange);\n let [initialValue] = useState(colorValue);\n let [inputValue, setInputValue] = useState(() => (value || defaultValue) && colorValue ? colorValue.toString('hex') : '');\n\n let validation = useFormValidationState({\n ...props,\n value: colorValue\n });\n\n let safelySetColorValue = (newColor: Color | null) => {\n if (!colorValue || !newColor) {\n setColorValue(newColor);\n return;\n }\n if (newColor.toHexInt() !== colorValue.toHexInt()) {\n setColorValue(newColor);\n return;\n }\n };\n\n let [prevValue, setPrevValue] = useState(colorValue);\n if (prevValue !== colorValue) {\n setInputValue(colorValue ? colorValue.toString('hex') : '');\n setPrevValue(colorValue);\n }\n\n let parsedValue = useMemo(() => {\n let color;\n try {\n color = parseColor(inputValue.startsWith('#') ? inputValue : `#${inputValue}`);\n } catch {\n color = null;\n }\n return color;\n }, [inputValue]);\n\n let commit = () => {\n // Set to empty state if input value is empty\n if (!inputValue.length) {\n safelySetColorValue(null);\n if (value === undefined || colorValue === null) {\n setInputValue('');\n } else {\n setInputValue(colorValue.toString('hex'));\n }\n return;\n }\n\n // if it failed to parse, then reset input to formatted version of current number\n if (parsedValue == null) {\n setInputValue(colorValue ? colorValue.toString('hex') : '');\n return;\n }\n\n safelySetColorValue(parsedValue);\n // in a controlled state, the numberValue won't change, so we won't go back to our old input without help\n let newColorValue = '';\n if (colorValue) {\n newColorValue = colorValue.toString('hex');\n }\n setInputValue(newColorValue);\n validation.commitValidation();\n };\n\n let increment = () => {\n let newValue = addColorValue(parsedValue, step);\n // if we've arrived at the same value that was previously in the state, the\n // input value should be updated to match\n // ex type 4, press increment, highlight the number in the input, type 4 again, press increment\n // you'd be at 5, then incrementing to 5 again, so no re-render would happen and 4 would be left in the input\n if (newValue === colorValue) {\n setInputValue(newValue.toString('hex'));\n }\n safelySetColorValue(newValue);\n validation.commitValidation();\n };\n let decrement = () => {\n let newValue = addColorValue(parsedValue, -step);\n // if we've arrived at the same value that was previously in the state, the\n // input value should be updated to match\n // ex type 4, press increment, highlight the number in the input, type 4 again, press increment\n // you'd be at 5, then incrementing to 5 again, so no re-render would happen and 4 would be left in the input\n if (newValue === colorValue) {\n setInputValue(newValue.toString('hex'));\n }\n safelySetColorValue(newValue);\n validation.commitValidation();\n };\n let incrementToMax = () => safelySetColorValue(MAX_COLOR);\n let decrementToMin = () => safelySetColorValue(MIN_COLOR);\n\n let validate = (value: string) => value === '' || !!value.match(/^#?[0-9a-f]{0,6}$/i)?.[0];\n\n return {\n ...validation,\n validate,\n colorValue,\n defaultColorValue: initialDefaultValue ?? initialValue,\n setColorValue,\n inputValue,\n setInputValue,\n commit,\n increment,\n incrementToMax,\n decrement,\n decrementToMin\n };\n}\n\nfunction addColorValue(color: Color, step: number) {\n let newColor = color ? color : MIN_COLOR;\n let colorInt = newColor.toHexInt();\n\n let clampInt = Math.min(Math.max(colorInt + step, MIN_COLOR_INT), MAX_COLOR_INT);\n if (clampInt !== colorInt) {\n let newColorString = `#${clampInt.toString(16).padStart(6, '0').toUpperCase()}`;\n newColor = parseColor(newColorString);\n }\n return newColor;\n}\n"],"names":[],"version":3,"file":"useColorFieldState.mjs.map"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var $90c404755d945e7c$exports = require("./Color.cjs");
|
|
2
|
+
var $4e0e76ad3205925c$exports = require("./useColor.cjs");
|
|
3
|
+
var $14cedf286405cc4b$exports = require("../utils/useControlledState.cjs");
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
function $parcel$export(e, n, v, s) {
|
|
7
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
$parcel$export(module.exports, "useColorPickerState", function () { return $dcddb119933ec704$export$dc6b73b623f8645f; });
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
function $dcddb119933ec704$export$dc6b73b623f8645f(props) {
|
|
15
|
+
let value = (0, $4e0e76ad3205925c$exports.useColor)(props.value);
|
|
16
|
+
let defaultValue = (0, $4e0e76ad3205925c$exports.useColor)(props.defaultValue || '#000000');
|
|
17
|
+
let [color, setColor] = (0, $14cedf286405cc4b$exports.useControlledState)(value || undefined, defaultValue, props.onChange);
|
|
18
|
+
return {
|
|
19
|
+
color: color,
|
|
20
|
+
setColor (color) {
|
|
21
|
+
if (color != null) setColor(color || (0, $90c404755d945e7c$exports.parseColor)('#000000'));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=useColorPickerState.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;AAeO,SAAS,0CAAoB,KAAuB;IACzD,IAAI,QAAQ,CAAA,GAAA,kCAAO,EAAE,MAAM,KAAK;IAChC,IAAI,eAAe,CAAA,GAAA,kCAAO,EAAE,MAAM,YAAY,IAAI;IAClD,IAAI,CAAC,OAAO,SAAS,GAAG,CAAA,GAAA,4CAAiB,EAAE,SAAS,WAAW,cAAc,MAAM,QAAQ;IAE3F,OAAO;eACL;QACA,UAAS,KAAK;YACZ,IAAI,SAAS,MACX,SAAS,SAAS,CAAA,GAAA,oCAAS,EAAE;QAEjC;IACF;AACF","sources":["packages/react-stately/src/color/useColorPickerState.ts"],"sourcesContent":["import {Color} from './types';\nimport {parseColor} from './Color';\nimport {useColor} from './useColor';\nimport {useControlledState} from '../utils/useControlledState';\nimport {ValueBase} from '@react-types/shared';\n\nexport interface ColorPickerProps extends ValueBase<string | Color, Color> {}\n\nexport interface ColorPickerState {\n /** The current color value of the color picker. */\n color: Color,\n /** Sets the current color value of the color picker. */\n setColor(color: Color | null): void\n}\n\nexport function useColorPickerState(props: ColorPickerProps): ColorPickerState {\n let value = useColor(props.value);\n let defaultValue = useColor(props.defaultValue || '#000000')!;\n let [color, setColor] = useControlledState(value || undefined, defaultValue, props.onChange);\n \n return {\n color,\n setColor(color) {\n if (color != null) {\n setColor(color || parseColor('#000000'));\n }\n }\n };\n}\n"],"names":[],"version":3,"file":"useColorPickerState.cjs.map"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {parseColor as $9be7d47340a9a2a9$export$6e865ea70d7724f} from "./Color.js";
|
|
2
|
+
import {useColor as $3c80253044a6b286$export$5aadd9c0606af5c2} from "./useColor.js";
|
|
3
|
+
import {useControlledState as $2a35a170cf8e413e$export$40bfa8c7b0832715} from "../utils/useControlledState.js";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
function $875b5a7eabc5c5bf$export$dc6b73b623f8645f(props) {
|
|
9
|
+
let value = (0, $3c80253044a6b286$export$5aadd9c0606af5c2)(props.value);
|
|
10
|
+
let defaultValue = (0, $3c80253044a6b286$export$5aadd9c0606af5c2)(props.defaultValue || '#000000');
|
|
11
|
+
let [color, setColor] = (0, $2a35a170cf8e413e$export$40bfa8c7b0832715)(value || undefined, defaultValue, props.onChange);
|
|
12
|
+
return {
|
|
13
|
+
color: color,
|
|
14
|
+
setColor (color) {
|
|
15
|
+
if (color != null) setColor(color || (0, $9be7d47340a9a2a9$export$6e865ea70d7724f)('#000000'));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
export {$875b5a7eabc5c5bf$export$dc6b73b623f8645f as useColorPickerState};
|
|
22
|
+
//# sourceMappingURL=useColorPickerState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;AAeO,SAAS,0CAAoB,KAAuB;IACzD,IAAI,QAAQ,CAAA,GAAA,yCAAO,EAAE,MAAM,KAAK;IAChC,IAAI,eAAe,CAAA,GAAA,yCAAO,EAAE,MAAM,YAAY,IAAI;IAClD,IAAI,CAAC,OAAO,SAAS,GAAG,CAAA,GAAA,yCAAiB,EAAE,SAAS,WAAW,cAAc,MAAM,QAAQ;IAE3F,OAAO;eACL;QACA,UAAS,KAAK;YACZ,IAAI,SAAS,MACX,SAAS,SAAS,CAAA,GAAA,wCAAS,EAAE;QAEjC;IACF;AACF","sources":["packages/react-stately/src/color/useColorPickerState.ts"],"sourcesContent":["import {Color} from './types';\nimport {parseColor} from './Color';\nimport {useColor} from './useColor';\nimport {useControlledState} from '../utils/useControlledState';\nimport {ValueBase} from '@react-types/shared';\n\nexport interface ColorPickerProps extends ValueBase<string | Color, Color> {}\n\nexport interface ColorPickerState {\n /** The current color value of the color picker. */\n color: Color,\n /** Sets the current color value of the color picker. */\n setColor(color: Color | null): void\n}\n\nexport function useColorPickerState(props: ColorPickerProps): ColorPickerState {\n let value = useColor(props.value);\n let defaultValue = useColor(props.defaultValue || '#000000')!;\n let [color, setColor] = useControlledState(value || undefined, defaultValue, props.onChange);\n \n return {\n color,\n setColor(color) {\n if (color != null) {\n setColor(color || parseColor('#000000'));\n }\n }\n };\n}\n"],"names":[],"version":3,"file":"useColorPickerState.js.map"}
|