react-stately 3.46.0 → 3.47.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/dist/exports/Color.cjs.map +1 -1
- package/dist/exports/Color.js.map +1 -1
- package/dist/exports/Color.mjs.map +1 -1
- package/dist/exports/index.cjs.map +1 -1
- package/dist/exports/index.js.map +1 -1
- package/dist/exports/index.mjs.map +1 -1
- package/dist/exports/private/autocomplete/useAutocompleteState.cjs.map +1 -1
- package/dist/exports/private/autocomplete/useAutocompleteState.js.map +1 -1
- package/dist/exports/private/autocomplete/useAutocompleteState.mjs.map +1 -1
- package/dist/exports/private/collections/getChildNodes.cjs.map +1 -1
- package/dist/exports/private/collections/getChildNodes.js.map +1 -1
- package/dist/exports/private/collections/getChildNodes.mjs.map +1 -1
- package/dist/exports/private/flags/flags.cjs.map +1 -1
- package/dist/exports/private/flags/flags.js.map +1 -1
- package/dist/exports/private/flags/flags.mjs.map +1 -1
- package/dist/exports/private/form/useFormValidationState.cjs.map +1 -1
- package/dist/exports/private/form/useFormValidationState.js.map +1 -1
- package/dist/exports/private/form/useFormValidationState.mjs.map +1 -1
- package/dist/exports/private/grid/GridCollection.cjs.map +1 -1
- package/dist/exports/private/grid/GridCollection.js.map +1 -1
- package/dist/exports/private/grid/GridCollection.mjs.map +1 -1
- package/dist/exports/private/steplist/useStepListState.cjs.map +1 -1
- package/dist/exports/private/steplist/useStepListState.js.map +1 -1
- package/dist/exports/private/steplist/useStepListState.mjs.map +1 -1
- package/dist/exports/private/table/TableCollection.cjs.map +1 -1
- package/dist/exports/private/table/TableCollection.js.map +1 -1
- package/dist/exports/private/table/TableCollection.mjs.map +1 -1
- package/dist/exports/private/table/useTreeGridState.cjs.map +1 -1
- package/dist/exports/private/table/useTreeGridState.js.map +1 -1
- package/dist/exports/private/table/useTreeGridState.mjs.map +1 -1
- package/dist/exports/useAsyncList.cjs.map +1 -1
- package/dist/exports/useAsyncList.js.map +1 -1
- package/dist/exports/useAsyncList.mjs.map +1 -1
- package/dist/exports/useCalendarState.cjs.map +1 -1
- package/dist/exports/useCalendarState.js.map +1 -1
- package/dist/exports/useCalendarState.mjs.map +1 -1
- package/dist/exports/useColorAreaState.cjs.map +1 -1
- package/dist/exports/useColorAreaState.js.map +1 -1
- package/dist/exports/useColorAreaState.mjs.map +1 -1
- package/dist/exports/useColorFieldState.cjs.map +1 -1
- package/dist/exports/useColorFieldState.js.map +1 -1
- package/dist/exports/useColorFieldState.mjs.map +1 -1
- package/dist/exports/useColorPickerState.cjs.map +1 -1
- package/dist/exports/useColorPickerState.js.map +1 -1
- package/dist/exports/useColorPickerState.mjs.map +1 -1
- package/dist/exports/useColorSliderState.cjs.map +1 -1
- package/dist/exports/useColorSliderState.js.map +1 -1
- package/dist/exports/useColorSliderState.mjs.map +1 -1
- package/dist/exports/useColorWheelState.cjs.map +1 -1
- package/dist/exports/useColorWheelState.js.map +1 -1
- package/dist/exports/useColorWheelState.mjs.map +1 -1
- package/dist/exports/useComboBoxState.cjs +1 -1
- package/dist/exports/useComboBoxState.cjs.map +1 -1
- package/dist/exports/useComboBoxState.js +1 -1
- package/dist/exports/useComboBoxState.js.map +1 -1
- package/dist/exports/useComboBoxState.mjs +1 -1
- package/dist/exports/useComboBoxState.mjs.map +1 -1
- package/dist/exports/useDateFieldState.cjs.map +1 -1
- package/dist/exports/useDateFieldState.js.map +1 -1
- package/dist/exports/useDateFieldState.mjs.map +1 -1
- package/dist/exports/useDatePickerState.cjs.map +1 -1
- package/dist/exports/useDatePickerState.js.map +1 -1
- package/dist/exports/useDatePickerState.mjs.map +1 -1
- package/dist/exports/useDateRangePickerState.cjs.map +1 -1
- package/dist/exports/useDateRangePickerState.js.map +1 -1
- package/dist/exports/useDateRangePickerState.mjs.map +1 -1
- package/dist/exports/useDisclosureGroupState.cjs.map +1 -1
- package/dist/exports/useDisclosureGroupState.js.map +1 -1
- package/dist/exports/useDisclosureGroupState.mjs.map +1 -1
- package/dist/exports/useDraggableCollectionState.cjs.map +1 -1
- package/dist/exports/useDraggableCollectionState.js.map +1 -1
- package/dist/exports/useDraggableCollectionState.mjs.map +1 -1
- package/dist/exports/useDroppableCollectionState.cjs.map +1 -1
- package/dist/exports/useDroppableCollectionState.js.map +1 -1
- package/dist/exports/useDroppableCollectionState.mjs.map +1 -1
- package/dist/exports/useMenuTriggerState.cjs.map +1 -1
- package/dist/exports/useMenuTriggerState.js.map +1 -1
- package/dist/exports/useMenuTriggerState.mjs.map +1 -1
- package/dist/exports/useMultipleSelectionState.cjs.map +1 -1
- package/dist/exports/useMultipleSelectionState.js.map +1 -1
- package/dist/exports/useMultipleSelectionState.mjs.map +1 -1
- package/dist/exports/useOverlayTriggerState.cjs.map +1 -1
- package/dist/exports/useOverlayTriggerState.js.map +1 -1
- package/dist/exports/useOverlayTriggerState.mjs.map +1 -1
- package/dist/exports/useRangeCalendarState.cjs.map +1 -1
- package/dist/exports/useRangeCalendarState.js.map +1 -1
- package/dist/exports/useRangeCalendarState.mjs.map +1 -1
- package/dist/exports/useSelectState.cjs.map +1 -1
- package/dist/exports/useSelectState.js.map +1 -1
- package/dist/exports/useSelectState.mjs.map +1 -1
- package/dist/exports/useSingleSelectListState.cjs.map +1 -1
- package/dist/exports/useSingleSelectListState.js.map +1 -1
- package/dist/exports/useSingleSelectListState.mjs.map +1 -1
- package/dist/exports/useTableState.cjs.map +1 -1
- package/dist/exports/useTableState.js.map +1 -1
- package/dist/exports/useTableState.mjs.map +1 -1
- package/dist/exports/useTimeFieldState.cjs.map +1 -1
- package/dist/exports/useTimeFieldState.js.map +1 -1
- package/dist/exports/useTimeFieldState.mjs.map +1 -1
- package/dist/exports/useToastState.cjs.map +1 -1
- package/dist/exports/useToastState.js.map +1 -1
- package/dist/exports/useToastState.mjs.map +1 -1
- package/dist/private/autocomplete/useAutocompleteState.cjs.map +1 -1
- package/dist/private/autocomplete/useAutocompleteState.js.map +1 -1
- package/dist/private/autocomplete/useAutocompleteState.mjs.map +1 -1
- package/dist/private/calendar/useCalendarState.cjs +82 -30
- package/dist/private/calendar/useCalendarState.cjs.map +1 -1
- package/dist/private/calendar/useCalendarState.js +85 -32
- package/dist/private/calendar/useCalendarState.js.map +1 -1
- package/dist/private/calendar/useCalendarState.mjs +84 -32
- package/dist/private/calendar/useCalendarState.mjs.map +1 -1
- package/dist/private/calendar/useRangeCalendarState.cjs +53 -40
- package/dist/private/calendar/useRangeCalendarState.cjs.map +1 -1
- package/dist/private/calendar/useRangeCalendarState.js +55 -43
- package/dist/private/calendar/useRangeCalendarState.js.map +1 -1
- package/dist/private/calendar/useRangeCalendarState.mjs +55 -42
- package/dist/private/calendar/useRangeCalendarState.mjs.map +1 -1
- package/dist/private/calendar/utils.cjs +6 -1
- package/dist/private/calendar/utils.cjs.map +1 -1
- package/dist/private/calendar/utils.js +6 -2
- package/dist/private/calendar/utils.js.map +1 -1
- package/dist/private/calendar/utils.mjs +6 -2
- package/dist/private/calendar/utils.mjs.map +1 -1
- package/dist/private/checkbox/useCheckboxGroupState.cjs.map +1 -1
- package/dist/private/checkbox/useCheckboxGroupState.js.map +1 -1
- package/dist/private/checkbox/useCheckboxGroupState.mjs.map +1 -1
- package/dist/private/collections/CollectionBuilder.cjs.map +1 -1
- package/dist/private/collections/CollectionBuilder.js.map +1 -1
- package/dist/private/collections/CollectionBuilder.mjs.map +1 -1
- package/dist/private/collections/Item.cjs +1 -0
- package/dist/private/collections/Item.cjs.map +1 -1
- package/dist/private/collections/Item.js +1 -0
- package/dist/private/collections/Item.js.map +1 -1
- package/dist/private/collections/Item.mjs +1 -0
- package/dist/private/collections/Item.mjs.map +1 -1
- package/dist/private/collections/Section.cjs +1 -0
- package/dist/private/collections/Section.cjs.map +1 -1
- package/dist/private/collections/Section.js +1 -0
- package/dist/private/collections/Section.js.map +1 -1
- package/dist/private/collections/Section.mjs +1 -0
- package/dist/private/collections/Section.mjs.map +1 -1
- package/dist/private/collections/getChildNodes.cjs.map +1 -1
- package/dist/private/collections/getChildNodes.js.map +1 -1
- package/dist/private/collections/getChildNodes.mjs.map +1 -1
- package/dist/private/collections/useCollection.cjs.map +1 -1
- package/dist/private/collections/useCollection.js.map +1 -1
- package/dist/private/collections/useCollection.mjs.map +1 -1
- package/dist/private/color/Color.cjs +15 -9
- package/dist/private/color/Color.cjs.map +1 -1
- package/dist/private/color/Color.js +15 -9
- package/dist/private/color/Color.js.map +1 -1
- package/dist/private/color/Color.mjs +15 -9
- package/dist/private/color/Color.mjs.map +1 -1
- package/dist/private/color/useColorAreaState.cjs.map +1 -1
- package/dist/private/color/useColorAreaState.js.map +1 -1
- package/dist/private/color/useColorAreaState.mjs.map +1 -1
- package/dist/private/color/useColorChannelFieldState.cjs.map +1 -1
- package/dist/private/color/useColorChannelFieldState.js.map +1 -1
- package/dist/private/color/useColorChannelFieldState.mjs.map +1 -1
- package/dist/private/color/useColorFieldState.cjs.map +1 -1
- package/dist/private/color/useColorFieldState.js.map +1 -1
- package/dist/private/color/useColorFieldState.mjs.map +1 -1
- package/dist/private/color/useColorPickerState.cjs.map +1 -1
- package/dist/private/color/useColorPickerState.js.map +1 -1
- package/dist/private/color/useColorPickerState.mjs.map +1 -1
- package/dist/private/color/useColorSliderState.cjs +5 -3
- package/dist/private/color/useColorSliderState.cjs.map +1 -1
- package/dist/private/color/useColorSliderState.js +5 -3
- package/dist/private/color/useColorSliderState.js.map +1 -1
- package/dist/private/color/useColorSliderState.mjs +5 -3
- package/dist/private/color/useColorSliderState.mjs.map +1 -1
- package/dist/private/color/useColorWheelState.cjs.map +1 -1
- package/dist/private/color/useColorWheelState.js.map +1 -1
- package/dist/private/color/useColorWheelState.mjs.map +1 -1
- package/dist/private/combobox/useComboBoxState.cjs +8 -2
- package/dist/private/combobox/useComboBoxState.cjs.map +1 -1
- package/dist/private/combobox/useComboBoxState.js +8 -2
- package/dist/private/combobox/useComboBoxState.js.map +1 -1
- package/dist/private/combobox/useComboBoxState.mjs +8 -2
- package/dist/private/combobox/useComboBoxState.mjs.map +1 -1
- package/dist/private/data/useAsyncList.cjs.map +1 -1
- package/dist/private/data/useAsyncList.js.map +1 -1
- package/dist/private/data/useAsyncList.mjs.map +1 -1
- package/dist/private/data/useListData.cjs.map +1 -1
- package/dist/private/data/useListData.js.map +1 -1
- package/dist/private/data/useListData.mjs.map +1 -1
- package/dist/private/data/useTreeData.cjs.map +1 -1
- package/dist/private/data/useTreeData.js.map +1 -1
- package/dist/private/data/useTreeData.mjs.map +1 -1
- package/dist/private/datepicker/IncompleteDate.cjs +8 -2
- package/dist/private/datepicker/IncompleteDate.cjs.map +1 -1
- package/dist/private/datepicker/IncompleteDate.js +8 -2
- package/dist/private/datepicker/IncompleteDate.js.map +1 -1
- package/dist/private/datepicker/IncompleteDate.mjs +8 -2
- package/dist/private/datepicker/IncompleteDate.mjs.map +1 -1
- package/dist/private/datepicker/placeholders.cjs +5 -0
- package/dist/private/datepicker/placeholders.cjs.map +1 -1
- package/dist/private/datepicker/placeholders.js +5 -0
- package/dist/private/datepicker/placeholders.js.map +1 -1
- package/dist/private/datepicker/placeholders.mjs +5 -0
- package/dist/private/datepicker/placeholders.mjs.map +1 -1
- package/dist/private/datepicker/useDateFieldState.cjs.map +1 -1
- package/dist/private/datepicker/useDateFieldState.js.map +1 -1
- package/dist/private/datepicker/useDateFieldState.mjs.map +1 -1
- package/dist/private/datepicker/useDatePickerState.cjs.map +1 -1
- package/dist/private/datepicker/useDatePickerState.js.map +1 -1
- package/dist/private/datepicker/useDatePickerState.mjs.map +1 -1
- package/dist/private/datepicker/useDateRangePickerState.cjs +1 -1
- package/dist/private/datepicker/useDateRangePickerState.cjs.map +1 -1
- package/dist/private/datepicker/useDateRangePickerState.js +1 -1
- package/dist/private/datepicker/useDateRangePickerState.js.map +1 -1
- package/dist/private/datepicker/useDateRangePickerState.mjs +1 -1
- package/dist/private/datepicker/useDateRangePickerState.mjs.map +1 -1
- package/dist/private/datepicker/useTimeFieldState.cjs.map +1 -1
- package/dist/private/datepicker/useTimeFieldState.js.map +1 -1
- package/dist/private/datepicker/useTimeFieldState.mjs.map +1 -1
- package/dist/private/datepicker/utils.cjs +2 -2
- package/dist/private/datepicker/utils.cjs.map +1 -1
- package/dist/private/datepicker/utils.js +2 -2
- package/dist/private/datepicker/utils.js.map +1 -1
- package/dist/private/datepicker/utils.mjs +2 -2
- package/dist/private/datepicker/utils.mjs.map +1 -1
- package/dist/private/disclosure/useDisclosureGroupState.cjs.map +1 -1
- package/dist/private/disclosure/useDisclosureGroupState.js.map +1 -1
- package/dist/private/disclosure/useDisclosureGroupState.mjs.map +1 -1
- package/dist/private/disclosure/useDisclosureState.cjs.map +1 -1
- package/dist/private/disclosure/useDisclosureState.js.map +1 -1
- package/dist/private/disclosure/useDisclosureState.mjs.map +1 -1
- package/dist/private/dnd/useDraggableCollectionState.cjs.map +1 -1
- package/dist/private/dnd/useDraggableCollectionState.js.map +1 -1
- package/dist/private/dnd/useDraggableCollectionState.mjs.map +1 -1
- package/dist/private/dnd/useDroppableCollectionState.cjs.map +1 -1
- package/dist/private/dnd/useDroppableCollectionState.js.map +1 -1
- package/dist/private/dnd/useDroppableCollectionState.mjs.map +1 -1
- package/dist/private/form/useFormValidationState.cjs.map +1 -1
- package/dist/private/form/useFormValidationState.js.map +1 -1
- package/dist/private/form/useFormValidationState.mjs.map +1 -1
- package/dist/private/grid/GridCollection.cjs.map +1 -1
- package/dist/private/grid/GridCollection.js.map +1 -1
- package/dist/private/grid/GridCollection.mjs.map +1 -1
- package/dist/private/grid/useGridState.cjs.map +1 -1
- package/dist/private/grid/useGridState.js.map +1 -1
- package/dist/private/grid/useGridState.mjs.map +1 -1
- package/dist/private/layout/GridLayout.cjs +8 -3
- package/dist/private/layout/GridLayout.cjs.map +1 -1
- package/dist/private/layout/GridLayout.js +8 -3
- package/dist/private/layout/GridLayout.js.map +1 -1
- package/dist/private/layout/GridLayout.mjs +8 -3
- package/dist/private/layout/GridLayout.mjs.map +1 -1
- package/dist/private/layout/ListLayout.cjs +1 -1
- package/dist/private/layout/ListLayout.cjs.map +1 -1
- package/dist/private/layout/ListLayout.js +2 -1
- package/dist/private/layout/ListLayout.js.map +1 -1
- package/dist/private/layout/ListLayout.mjs +1 -1
- package/dist/private/layout/ListLayout.mjs.map +1 -1
- package/dist/private/layout/TableLayout.cjs +60 -35
- package/dist/private/layout/TableLayout.cjs.map +1 -1
- package/dist/private/layout/TableLayout.js +65 -38
- package/dist/private/layout/TableLayout.js.map +1 -1
- package/dist/private/layout/TableLayout.mjs +61 -36
- package/dist/private/layout/TableLayout.mjs.map +1 -1
- package/dist/private/layout/WaterfallLayout.cjs.map +1 -1
- package/dist/private/layout/WaterfallLayout.js.map +1 -1
- package/dist/private/layout/WaterfallLayout.mjs.map +1 -1
- package/dist/private/list/ListCollection.cjs.map +1 -1
- package/dist/private/list/ListCollection.js.map +1 -1
- package/dist/private/list/ListCollection.mjs.map +1 -1
- package/dist/private/list/useListState.cjs.map +1 -1
- package/dist/private/list/useListState.js.map +1 -1
- package/dist/private/list/useListState.mjs.map +1 -1
- package/dist/private/list/useSingleSelectListState.cjs.map +1 -1
- package/dist/private/list/useSingleSelectListState.js.map +1 -1
- package/dist/private/list/useSingleSelectListState.mjs.map +1 -1
- package/dist/private/menu/useMenuTriggerState.cjs.map +1 -1
- package/dist/private/menu/useMenuTriggerState.js.map +1 -1
- package/dist/private/menu/useMenuTriggerState.mjs.map +1 -1
- package/dist/private/menu/useSubmenuTriggerState.cjs.map +1 -1
- package/dist/private/menu/useSubmenuTriggerState.js.map +1 -1
- package/dist/private/menu/useSubmenuTriggerState.mjs.map +1 -1
- package/dist/private/numberfield/useNumberFieldState.cjs +13 -1
- package/dist/private/numberfield/useNumberFieldState.cjs.map +1 -1
- package/dist/private/numberfield/useNumberFieldState.js +13 -1
- package/dist/private/numberfield/useNumberFieldState.js.map +1 -1
- package/dist/private/numberfield/useNumberFieldState.mjs +13 -1
- package/dist/private/numberfield/useNumberFieldState.mjs.map +1 -1
- package/dist/private/overlays/useOverlayTriggerState.cjs.map +1 -1
- package/dist/private/overlays/useOverlayTriggerState.js.map +1 -1
- package/dist/private/overlays/useOverlayTriggerState.mjs.map +1 -1
- package/dist/private/radio/useRadioGroupState.cjs.map +1 -1
- package/dist/private/radio/useRadioGroupState.js.map +1 -1
- package/dist/private/radio/useRadioGroupState.mjs.map +1 -1
- package/dist/private/searchfield/useSearchFieldState.cjs.map +1 -1
- package/dist/private/searchfield/useSearchFieldState.js.map +1 -1
- package/dist/private/searchfield/useSearchFieldState.mjs.map +1 -1
- package/dist/private/select/useSelectState.cjs.map +1 -1
- package/dist/private/select/useSelectState.js.map +1 -1
- package/dist/private/select/useSelectState.mjs.map +1 -1
- package/dist/private/selection/SelectionManager.cjs +2 -1
- package/dist/private/selection/SelectionManager.cjs.map +1 -1
- package/dist/private/selection/SelectionManager.js +3 -2
- package/dist/private/selection/SelectionManager.js.map +1 -1
- package/dist/private/selection/SelectionManager.mjs +2 -1
- package/dist/private/selection/SelectionManager.mjs.map +1 -1
- package/dist/private/selection/useMultipleSelectionState.cjs.map +1 -1
- package/dist/private/selection/useMultipleSelectionState.js.map +1 -1
- package/dist/private/selection/useMultipleSelectionState.mjs.map +1 -1
- package/dist/private/slider/useSliderState.cjs +22 -2
- package/dist/private/slider/useSliderState.cjs.map +1 -1
- package/dist/private/slider/useSliderState.js +22 -2
- package/dist/private/slider/useSliderState.js.map +1 -1
- package/dist/private/slider/useSliderState.mjs +22 -2
- package/dist/private/slider/useSliderState.mjs.map +1 -1
- package/dist/private/steplist/useStepListState.cjs.map +1 -1
- package/dist/private/steplist/useStepListState.js.map +1 -1
- package/dist/private/steplist/useStepListState.mjs.map +1 -1
- package/dist/private/table/Cell.cjs +2 -1
- package/dist/private/table/Cell.cjs.map +1 -1
- package/dist/private/table/Cell.js +2 -1
- package/dist/private/table/Cell.js.map +1 -1
- package/dist/private/table/Cell.mjs +2 -1
- package/dist/private/table/Cell.mjs.map +1 -1
- package/dist/private/table/Column.cjs +1 -0
- package/dist/private/table/Column.cjs.map +1 -1
- package/dist/private/table/Column.js +1 -0
- package/dist/private/table/Column.js.map +1 -1
- package/dist/private/table/Column.mjs +1 -0
- package/dist/private/table/Column.mjs.map +1 -1
- package/dist/private/table/Row.cjs +2 -1
- package/dist/private/table/Row.cjs.map +1 -1
- package/dist/private/table/Row.js +2 -1
- package/dist/private/table/Row.js.map +1 -1
- package/dist/private/table/Row.mjs +2 -1
- package/dist/private/table/Row.mjs.map +1 -1
- package/dist/private/table/TableBody.cjs +4 -2
- package/dist/private/table/TableBody.cjs.map +1 -1
- package/dist/private/table/TableBody.js +4 -2
- package/dist/private/table/TableBody.js.map +1 -1
- package/dist/private/table/TableBody.mjs +4 -2
- package/dist/private/table/TableBody.mjs.map +1 -1
- package/dist/private/table/TableCollection.cjs +1 -1
- package/dist/private/table/TableCollection.cjs.map +1 -1
- package/dist/private/table/TableCollection.js +1 -1
- package/dist/private/table/TableCollection.js.map +1 -1
- package/dist/private/table/TableCollection.mjs +1 -1
- package/dist/private/table/TableCollection.mjs.map +1 -1
- package/dist/private/table/TableColumnLayout.cjs +4 -1
- package/dist/private/table/TableColumnLayout.cjs.map +1 -1
- package/dist/private/table/TableColumnLayout.js +4 -1
- package/dist/private/table/TableColumnLayout.js.map +1 -1
- package/dist/private/table/TableColumnLayout.mjs +4 -1
- package/dist/private/table/TableColumnLayout.mjs.map +1 -1
- package/dist/private/table/TableHeader.cjs +4 -2
- package/dist/private/table/TableHeader.cjs.map +1 -1
- package/dist/private/table/TableHeader.js +4 -2
- package/dist/private/table/TableHeader.js.map +1 -1
- package/dist/private/table/TableHeader.mjs +4 -2
- package/dist/private/table/TableHeader.mjs.map +1 -1
- package/dist/private/table/TableUtils.cjs +1 -1
- package/dist/private/table/TableUtils.cjs.map +1 -1
- package/dist/private/table/TableUtils.js +1 -1
- package/dist/private/table/TableUtils.js.map +1 -1
- package/dist/private/table/TableUtils.mjs +1 -1
- package/dist/private/table/TableUtils.mjs.map +1 -1
- package/dist/private/table/useTableColumnResizeState.cjs.map +1 -1
- package/dist/private/table/useTableColumnResizeState.js.map +1 -1
- package/dist/private/table/useTableColumnResizeState.mjs.map +1 -1
- package/dist/private/table/useTableState.cjs +2 -1
- package/dist/private/table/useTableState.cjs.map +1 -1
- package/dist/private/table/useTableState.js +2 -1
- package/dist/private/table/useTableState.js.map +1 -1
- package/dist/private/table/useTableState.mjs +2 -1
- package/dist/private/table/useTableState.mjs.map +1 -1
- package/dist/private/table/useTreeGridState.cjs +2 -1
- package/dist/private/table/useTreeGridState.cjs.map +1 -1
- package/dist/private/table/useTreeGridState.js +2 -1
- package/dist/private/table/useTreeGridState.js.map +1 -1
- package/dist/private/table/useTreeGridState.mjs +2 -1
- package/dist/private/table/useTreeGridState.mjs.map +1 -1
- package/dist/private/tabs/useTabListState.cjs.map +1 -1
- package/dist/private/tabs/useTabListState.js.map +1 -1
- package/dist/private/tabs/useTabListState.mjs.map +1 -1
- package/dist/private/toast/useToastState.cjs.map +1 -1
- package/dist/private/toast/useToastState.js.map +1 -1
- package/dist/private/toast/useToastState.mjs.map +1 -1
- package/dist/private/toggle/useToggleGroupState.cjs.map +1 -1
- package/dist/private/toggle/useToggleGroupState.js.map +1 -1
- package/dist/private/toggle/useToggleGroupState.mjs.map +1 -1
- package/dist/private/toggle/useToggleState.cjs.map +1 -1
- package/dist/private/toggle/useToggleState.js.map +1 -1
- package/dist/private/toggle/useToggleState.mjs.map +1 -1
- package/dist/private/tooltip/useTooltipTriggerState.cjs.map +1 -1
- package/dist/private/tooltip/useTooltipTriggerState.js.map +1 -1
- package/dist/private/tooltip/useTooltipTriggerState.mjs.map +1 -1
- package/dist/private/tree/TreeCollection.cjs.map +1 -1
- package/dist/private/tree/TreeCollection.js.map +1 -1
- package/dist/private/tree/TreeCollection.mjs.map +1 -1
- package/dist/private/tree/useTreeState.cjs.map +1 -1
- package/dist/private/tree/useTreeState.js.map +1 -1
- package/dist/private/tree/useTreeState.mjs.map +1 -1
- package/dist/private/utils/number.cjs +2 -1
- package/dist/private/utils/number.cjs.map +1 -1
- package/dist/private/utils/number.js +2 -1
- package/dist/private/utils/number.js.map +1 -1
- package/dist/private/utils/number.mjs +2 -1
- package/dist/private/utils/number.mjs.map +1 -1
- package/dist/private/utils/useControlledState.cjs.map +1 -1
- package/dist/private/utils/useControlledState.js.map +1 -1
- package/dist/private/utils/useControlledState.mjs.map +1 -1
- package/dist/private/virtualizer/Layout.cjs.map +1 -1
- package/dist/private/virtualizer/Layout.js.map +1 -1
- package/dist/private/virtualizer/Layout.mjs.map +1 -1
- package/dist/private/virtualizer/LayoutInfo.cjs +4 -2
- package/dist/private/virtualizer/LayoutInfo.cjs.map +1 -1
- package/dist/private/virtualizer/LayoutInfo.js +4 -2
- package/dist/private/virtualizer/LayoutInfo.js.map +1 -1
- package/dist/private/virtualizer/LayoutInfo.mjs +4 -2
- package/dist/private/virtualizer/LayoutInfo.mjs.map +1 -1
- package/dist/private/virtualizer/Rect.cjs +4 -0
- package/dist/private/virtualizer/Rect.cjs.map +1 -1
- package/dist/private/virtualizer/Rect.js +4 -0
- package/dist/private/virtualizer/Rect.js.map +1 -1
- package/dist/private/virtualizer/Rect.mjs +4 -0
- package/dist/private/virtualizer/Rect.mjs.map +1 -1
- package/dist/private/virtualizer/ReusableView.cjs.map +1 -1
- package/dist/private/virtualizer/ReusableView.js.map +1 -1
- package/dist/private/virtualizer/ReusableView.mjs.map +1 -1
- package/dist/private/virtualizer/Size.cjs.map +1 -1
- package/dist/private/virtualizer/Size.js.map +1 -1
- package/dist/private/virtualizer/Size.mjs.map +1 -1
- package/dist/private/virtualizer/Virtualizer.cjs +4 -4
- package/dist/private/virtualizer/Virtualizer.cjs.map +1 -1
- package/dist/private/virtualizer/Virtualizer.js +4 -4
- package/dist/private/virtualizer/Virtualizer.js.map +1 -1
- package/dist/private/virtualizer/Virtualizer.mjs +4 -4
- package/dist/private/virtualizer/Virtualizer.mjs.map +1 -1
- package/dist/private/virtualizer/useVirtualizerState.cjs.map +1 -1
- package/dist/private/virtualizer/useVirtualizerState.js.map +1 -1
- package/dist/private/virtualizer/useVirtualizerState.mjs.map +1 -1
- package/dist/types/exports/useCalendarState.d.ts +1 -1
- package/dist/types/src/autocomplete/useAutocompleteState.d.ts +4 -1
- package/dist/types/src/calendar/types.d.ts +50 -14
- package/dist/types/src/calendar/useCalendarState.d.ts +20 -6
- package/dist/types/src/calendar/useRangeCalendarState.d.ts +14 -5
- package/dist/types/src/calendar/utils.d.ts +1 -0
- package/dist/types/src/checkbox/useCheckboxGroupState.d.ts +1 -0
- package/dist/types/src/collections/useCollection.d.ts +1 -1
- package/dist/types/src/color/useColorAreaState.d.ts +21 -8
- package/dist/types/src/color/useColorFieldState.d.ts +2 -3
- package/dist/types/src/color/useColorSliderState.d.ts +4 -1
- package/dist/types/src/color/useColorWheelState.d.ts +5 -1
- package/dist/types/src/combobox/useComboBoxState.d.ts +19 -6
- package/dist/types/src/data/useAsyncList.d.ts +2 -2
- package/dist/types/src/data/useListData.d.ts +13 -1
- package/dist/types/src/data/useTreeData.d.ts +11 -0
- package/dist/types/src/datepicker/IncompleteDate.d.ts +11 -5
- package/dist/types/src/datepicker/types.d.ts +37 -11
- package/dist/types/src/datepicker/useDateFieldState.d.ts +13 -4
- package/dist/types/src/datepicker/useDatePickerState.d.ts +10 -4
- package/dist/types/src/datepicker/useDateRangePickerState.d.ts +12 -3
- package/dist/types/src/dnd/useDraggableCollectionState.d.ts +4 -1
- package/dist/types/src/form/useFormValidationState.d.ts +4 -1
- package/dist/types/src/grid/GridCollection.d.ts +2 -1
- package/dist/types/src/grid/useGridState.d.ts +7 -3
- package/dist/types/src/layout/GridLayout.d.ts +18 -2
- package/dist/types/src/layout/ListLayout.d.ts +34 -12
- package/dist/types/src/layout/TableLayout.d.ts +11 -4
- package/dist/types/src/layout/WaterfallLayout.d.ts +9 -2
- package/dist/types/src/list/useListState.d.ts +2 -2
- package/dist/types/src/menu/useMenuTriggerState.d.ts +3 -1
- package/dist/types/src/menu/useSubmenuTriggerState.d.ts +2 -2
- package/dist/types/src/numberfield/useNumberFieldState.d.ts +15 -11
- package/dist/types/src/radio/useRadioGroupState.d.ts +4 -1
- package/dist/types/src/select/useSelectState.d.ts +13 -2
- package/dist/types/src/selection/types.d.ts +4 -1
- package/dist/types/src/selection/useMultipleSelectionState.d.ts +2 -0
- package/dist/types/src/slider/useSliderState.d.ts +22 -2
- package/dist/types/src/table/Column.d.ts +4 -1
- package/dist/types/src/table/Row.d.ts +5 -3
- package/dist/types/src/table/TableBody.d.ts +3 -2
- package/dist/types/src/table/TableCollection.d.ts +4 -1
- package/dist/types/src/table/TableColumnLayout.d.ts +4 -1
- package/dist/types/src/table/TableHeader.d.ts +7 -3
- package/dist/types/src/table/TableUtils.d.ts +19 -16
- package/dist/types/src/table/useTableColumnResizeState.d.ts +5 -3
- package/dist/types/src/table/useTableState.d.ts +15 -6
- package/dist/types/src/table/useTreeGridState.d.ts +3 -2
- package/dist/types/src/toggle/useToggleGroupState.d.ts +1 -0
- package/dist/types/src/toggle/useToggleState.d.ts +2 -1
- package/dist/types/src/tooltip/useTooltipTriggerState.d.ts +8 -2
- package/dist/types/src/tree/useTreeState.d.ts +1 -1
- package/dist/types/src/utils/number.d.ts +2 -1
- package/dist/types/src/virtualizer/Layout.d.ts +5 -2
- package/dist/types/src/virtualizer/LayoutInfo.d.ts +10 -3
- package/dist/types/src/virtualizer/Rect.d.ts +4 -0
- package/dist/types/src/virtualizer/Virtualizer.d.ts +5 -4
- package/package.json +8 -7
|
@@ -14,7 +14,10 @@ export interface FormValidationState {
|
|
|
14
14
|
realtimeValidation: ValidationResult;
|
|
15
15
|
/** Currently displayed validation results, updated when the user commits their changes. */
|
|
16
16
|
displayValidation: ValidationResult;
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Updates the current validation result. Not displayed to the user until `commitValidation` is
|
|
19
|
+
* called.
|
|
20
|
+
*/
|
|
18
21
|
updateValidation(result: ValidationResult): void;
|
|
19
22
|
/** Resets the displayed validation state to valid when the user resets the form. */
|
|
20
23
|
resetValidation(): void;
|
|
@@ -14,10 +14,11 @@ export interface GridNode<T> extends Node<T> {
|
|
|
14
14
|
column?: GridNode<T>;
|
|
15
15
|
/**
|
|
16
16
|
* The number of columns spanned by this cell. Use `colSpan` instead.
|
|
17
|
+
*
|
|
17
18
|
* @deprecated
|
|
18
19
|
*/
|
|
19
20
|
colspan?: number;
|
|
20
|
-
/** The number of columns spanned by this cell.
|
|
21
|
+
/** The number of columns spanned by this cell. */
|
|
21
22
|
colSpan?: number | null;
|
|
22
23
|
/** The column index of this cell, accounting for any colSpans. */
|
|
23
24
|
colIndex?: number | null;
|
|
@@ -9,17 +9,21 @@ export interface GridState<T, C extends IGridCollection<T>> {
|
|
|
9
9
|
disabledKeys: Set<Key>;
|
|
10
10
|
/** A selection manager to read and update row selection state. */
|
|
11
11
|
selectionManager: SelectionManager;
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Whether keyboard navigation is disabled, such as when the arrow keys should be handled by a
|
|
14
|
+
* component within a cell.
|
|
15
|
+
*/
|
|
13
16
|
isKeyboardNavigationDisabled: boolean;
|
|
14
17
|
}
|
|
15
18
|
export interface GridStateOptions<T, C extends IGridCollection<T>> extends MultipleSelectionStateProps {
|
|
16
19
|
collection: C;
|
|
17
20
|
disabledKeys?: Iterable<Key>;
|
|
18
21
|
focusMode?: 'row' | 'cell';
|
|
19
|
-
/** @private -
|
|
22
|
+
/** @private - Do not use unless you know what you're doing. */
|
|
20
23
|
UNSAFE_selectionState?: MultipleSelectionState;
|
|
21
24
|
}
|
|
22
25
|
/**
|
|
23
|
-
* Provides state management for a grid component. Handles row selection and focusing a grid cell's
|
|
26
|
+
* Provides state management for a grid component. Handles row selection and focusing a grid cell's
|
|
27
|
+
* focusable child if applicable.
|
|
24
28
|
*/
|
|
25
29
|
export declare function useGridState<T extends object, C extends IGridCollection<T>>(props: GridStateOptions<T, C>): GridState<T, C>;
|
|
@@ -7,11 +7,13 @@ import { Size } from '../virtualizer/Size';
|
|
|
7
7
|
export interface GridLayoutOptions {
|
|
8
8
|
/**
|
|
9
9
|
* The minimum item size.
|
|
10
|
+
*
|
|
10
11
|
* @default 200 x 200
|
|
11
12
|
*/
|
|
12
13
|
minItemSize?: Size;
|
|
13
14
|
/**
|
|
14
15
|
* The maximum item size.
|
|
16
|
+
*
|
|
15
17
|
* @default Infinity
|
|
16
18
|
*/
|
|
17
19
|
maxItemSize?: Size;
|
|
@@ -19,35 +21,48 @@ export interface GridLayoutOptions {
|
|
|
19
21
|
* Whether to preserve the aspect ratio of the `minItemSize`.
|
|
20
22
|
* By default, grid rows may have variable heights. When `preserveAspectRatio`
|
|
21
23
|
* is true, all rows will have equal heights.
|
|
24
|
+
*
|
|
22
25
|
* @default false
|
|
23
26
|
*/
|
|
24
27
|
preserveAspectRatio?: boolean;
|
|
25
28
|
/**
|
|
26
29
|
* The minimum space required between items.
|
|
30
|
+
*
|
|
27
31
|
* @default 18 x 18
|
|
28
32
|
*/
|
|
29
33
|
minSpace?: Size;
|
|
30
34
|
/**
|
|
31
35
|
* The maximum allowed horizontal space between items.
|
|
36
|
+
*
|
|
32
37
|
* @default Infinity
|
|
33
38
|
*/
|
|
34
39
|
maxHorizontalSpace?: number;
|
|
35
40
|
/**
|
|
36
41
|
* The maximum number of columns.
|
|
42
|
+
*
|
|
37
43
|
* @default Infinity
|
|
38
44
|
*/
|
|
39
45
|
maxColumns?: number;
|
|
40
46
|
/**
|
|
41
47
|
* The thickness of the drop indicator.
|
|
48
|
+
*
|
|
42
49
|
* @default 2
|
|
43
50
|
*/
|
|
44
51
|
dropIndicatorThickness?: number;
|
|
45
52
|
/**
|
|
46
|
-
* The fixed height of a loader element in px. This loader is specifically for
|
|
47
|
-
*
|
|
53
|
+
* The fixed height of a loader element in px. This loader is specifically for "load more"
|
|
54
|
+
* elements rendered when loading more rows at the root level or inside nested row/sections.
|
|
55
|
+
*
|
|
48
56
|
* @default 48
|
|
49
57
|
*/
|
|
50
58
|
loaderHeight?: number;
|
|
59
|
+
/**
|
|
60
|
+
* The layout direction. When `'rtl'`, drop target positions (`'before'`/`'after'`)
|
|
61
|
+
* are computed correctly for right-to-left locales in multi-column grids.
|
|
62
|
+
*
|
|
63
|
+
* @default 'ltr'
|
|
64
|
+
*/
|
|
65
|
+
direction?: 'ltr' | 'rtl';
|
|
51
66
|
}
|
|
52
67
|
/**
|
|
53
68
|
* GridLayout is a virtualizer Layout implementation
|
|
@@ -59,6 +74,7 @@ export declare class GridLayout<T, O extends GridLayoutOptions = GridLayoutOptio
|
|
|
59
74
|
protected gap: Size;
|
|
60
75
|
protected dropIndicatorThickness: number;
|
|
61
76
|
protected numColumns: number;
|
|
77
|
+
protected direction: 'ltr' | 'rtl';
|
|
62
78
|
private contentSize;
|
|
63
79
|
private layoutInfos;
|
|
64
80
|
private margin;
|
|
@@ -6,70 +6,92 @@ import { Rect } from '../virtualizer/Rect';
|
|
|
6
6
|
import { Size } from '../virtualizer/Size';
|
|
7
7
|
export interface ListLayoutOptions {
|
|
8
8
|
/**
|
|
9
|
-
* The primary orientation of the items. Usually this is the direction that the collection
|
|
9
|
+
* The primary orientation of the items. Usually this is the direction that the collection
|
|
10
|
+
* scrolls.
|
|
11
|
+
*
|
|
10
12
|
* @default 'vertical'
|
|
11
13
|
*/
|
|
12
14
|
orientation?: Orientation;
|
|
13
15
|
/**
|
|
14
16
|
* The fixed size of a row in px with respect to the applied orientation.
|
|
17
|
+
*
|
|
15
18
|
* @default 48
|
|
16
19
|
*/
|
|
17
20
|
rowSize?: number;
|
|
18
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* The estimated size of a row in px with respect to the applied orientation, when row sizes are
|
|
23
|
+
* variable.
|
|
24
|
+
*/
|
|
19
25
|
estimatedRowSize?: number;
|
|
20
26
|
/**
|
|
21
27
|
* The fixed size of a section header in px with respect to the applied orientation.
|
|
28
|
+
*
|
|
22
29
|
* @default 48
|
|
23
30
|
*/
|
|
24
31
|
headingSize?: number;
|
|
25
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* The estimated size of a section header in px with respect to the applied orientation, when
|
|
34
|
+
* heading sizes are variable.
|
|
35
|
+
*/
|
|
26
36
|
estimatedHeadingSize?: number;
|
|
27
37
|
/**
|
|
28
|
-
* The fixed size of a loader element in px with respect to the applied orientation. This loader
|
|
29
|
-
* "load more" elements rendered when loading more rows at the root level or
|
|
38
|
+
* The fixed size of a loader element in px with respect to the applied orientation. This loader
|
|
39
|
+
* is specifically for "load more" elements rendered when loading more rows at the root level or
|
|
40
|
+
* inside nested row/sections.
|
|
41
|
+
*
|
|
30
42
|
* @default 48
|
|
31
43
|
*/
|
|
32
44
|
loaderSize?: number;
|
|
33
45
|
/**
|
|
34
46
|
* The thickness of the drop indicator.
|
|
47
|
+
*
|
|
35
48
|
* @default 2
|
|
36
49
|
*/
|
|
37
50
|
dropIndicatorThickness?: number;
|
|
38
51
|
/**
|
|
39
52
|
* The gap between items.
|
|
53
|
+
*
|
|
40
54
|
* @default 0
|
|
41
55
|
*/
|
|
42
56
|
gap?: number;
|
|
43
57
|
/**
|
|
44
58
|
* The padding around the list.
|
|
59
|
+
*
|
|
45
60
|
* @default 0
|
|
46
61
|
*/
|
|
47
62
|
padding?: number;
|
|
48
63
|
/**
|
|
49
64
|
* The fixed height of a row in px.
|
|
50
|
-
*
|
|
65
|
+
*
|
|
51
66
|
* @deprecated Use `rowSize` instead.
|
|
67
|
+
* @default 48
|
|
52
68
|
*/
|
|
53
69
|
rowHeight?: number;
|
|
54
|
-
/**
|
|
70
|
+
/**
|
|
71
|
+
* The estimated height of a row, when row heights are variable.
|
|
72
|
+
*
|
|
55
73
|
* @deprecated Use `estimatedRowSize` instead.
|
|
56
74
|
*/
|
|
57
75
|
estimatedRowHeight?: number;
|
|
58
76
|
/**
|
|
59
77
|
* The fixed height of a section header in px.
|
|
60
|
-
*
|
|
78
|
+
*
|
|
61
79
|
* @deprecated Use `headingSize` instead.
|
|
80
|
+
* @default 48
|
|
62
81
|
*/
|
|
63
82
|
headingHeight?: number;
|
|
64
|
-
/**
|
|
83
|
+
/**
|
|
84
|
+
* The estimated height of a section header, when the height is variable.
|
|
85
|
+
*
|
|
65
86
|
* @deprecated Use `estimatedHeadingSize` instead.
|
|
66
87
|
*/
|
|
67
88
|
estimatedHeadingHeight?: number;
|
|
68
89
|
/**
|
|
69
|
-
* The fixed height of a loader element in px. This loader is specifically for
|
|
70
|
-
*
|
|
71
|
-
*
|
|
90
|
+
* The fixed height of a loader element in px. This loader is specifically for "load more"
|
|
91
|
+
* elements rendered when loading more rows at the root level or inside nested row/sections.
|
|
92
|
+
*
|
|
72
93
|
* @deprecated Use `loaderSize` instead.
|
|
94
|
+
* @default 48
|
|
73
95
|
*/
|
|
74
96
|
loaderHeight?: number;
|
|
75
97
|
}
|
|
@@ -8,23 +8,28 @@ import { ITableCollection as TableCollection } from '../table/TableCollection';
|
|
|
8
8
|
export interface TableLayoutProps extends Omit<ListLayoutOptions, 'orientation' | 'rowSize' | 'estimatedRowSize' | 'headingSize' | 'estimatedHeadingSize' | 'loaderSize'> {
|
|
9
9
|
/**
|
|
10
10
|
* The fixed height of a row in px.
|
|
11
|
+
*
|
|
11
12
|
* @default 48
|
|
12
13
|
*/
|
|
13
14
|
rowHeight?: number;
|
|
14
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The estimated height of a row, when row heights are variable.
|
|
15
17
|
*/
|
|
16
18
|
estimatedRowHeight?: number;
|
|
17
19
|
/**
|
|
18
20
|
* The fixed height of a section header in px.
|
|
21
|
+
*
|
|
19
22
|
* @default 48
|
|
20
23
|
*/
|
|
21
24
|
headingHeight?: number;
|
|
22
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* The estimated height of a section header, when the height is variable.
|
|
23
27
|
*/
|
|
24
28
|
estimatedHeadingHeight?: number;
|
|
25
29
|
/**
|
|
26
|
-
* The fixed height of a loader element in px. This loader is specifically for
|
|
27
|
-
*
|
|
30
|
+
* The fixed height of a loader element in px. This loader is specifically for "load more"
|
|
31
|
+
* elements rendered when loading more rows at the root level or inside nested row/sections.
|
|
32
|
+
*
|
|
28
33
|
* @default 48
|
|
29
34
|
*/
|
|
30
35
|
loaderHeight?: number;
|
|
@@ -60,6 +65,8 @@ export declare class TableLayout<T, O extends TableLayoutProps = TableLayoutProp
|
|
|
60
65
|
protected buildColumn(node: GridNode<T>, x: number, y: number): LayoutNode;
|
|
61
66
|
protected isStickyColumn(node: GridNode<T>): boolean;
|
|
62
67
|
protected buildBody(y: number): LayoutNode;
|
|
68
|
+
protected buildRowGroup(y: number, node: GridNode<T>): LayoutNode;
|
|
69
|
+
protected buildLoader(node: GridNode<T>, x: number, y: number): LayoutNode;
|
|
63
70
|
protected buildNode(node: GridNode<T>, x: number, y: number): LayoutNode;
|
|
64
71
|
protected buildRow(node: GridNode<T>, x: number, y: number): LayoutNode;
|
|
65
72
|
protected buildCell(node: GridNode<T>, x: number, y: number): LayoutNode;
|
|
@@ -7,37 +7,44 @@ import { Size } from '../virtualizer/Size';
|
|
|
7
7
|
export interface WaterfallLayoutOptions {
|
|
8
8
|
/**
|
|
9
9
|
* The minimum item size.
|
|
10
|
+
*
|
|
10
11
|
* @default 200 x 200
|
|
11
12
|
*/
|
|
12
13
|
minItemSize?: Size;
|
|
13
14
|
/**
|
|
14
15
|
* The maximum item size.
|
|
16
|
+
*
|
|
15
17
|
* @default Infinity
|
|
16
18
|
*/
|
|
17
19
|
maxItemSize?: Size;
|
|
18
20
|
/**
|
|
19
21
|
* The minimum space required between items.
|
|
22
|
+
*
|
|
20
23
|
* @default 18 x 18
|
|
21
24
|
*/
|
|
22
25
|
minSpace?: Size;
|
|
23
26
|
/**
|
|
24
27
|
* The maximum allowed horizontal space between items.
|
|
28
|
+
*
|
|
25
29
|
* @default Infinity
|
|
26
30
|
*/
|
|
27
31
|
maxHorizontalSpace?: number;
|
|
28
32
|
/**
|
|
29
33
|
* The maximum number of columns.
|
|
34
|
+
*
|
|
30
35
|
* @default Infinity
|
|
31
36
|
*/
|
|
32
37
|
maxColumns?: number;
|
|
33
38
|
/**
|
|
34
39
|
* The thickness of the drop indicator.
|
|
40
|
+
*
|
|
35
41
|
* @default 2
|
|
36
42
|
*/
|
|
37
43
|
dropIndicatorThickness?: number;
|
|
38
44
|
/**
|
|
39
|
-
* The fixed height of a loader element in px. This loader is specifically for
|
|
40
|
-
*
|
|
45
|
+
* The fixed height of a loader element in px. This loader is specifically for "load more"
|
|
46
|
+
* elements rendered when loading more rows at the root level or inside nested row/sections.
|
|
47
|
+
*
|
|
41
48
|
* @default 48
|
|
42
49
|
*/
|
|
43
50
|
loaderHeight?: number;
|
|
@@ -24,8 +24,8 @@ export interface ListState<T> {
|
|
|
24
24
|
* Provides state management for list-like components. Handles building a collection
|
|
25
25
|
* of items from props, and manages multiple selection state.
|
|
26
26
|
*/
|
|
27
|
-
export declare function useListState<T
|
|
27
|
+
export declare function useListState<T>(props: ListProps<T>): ListState<T>;
|
|
28
28
|
/**
|
|
29
29
|
* Filters a collection using the provided filter function and returns a new ListState.
|
|
30
30
|
*/
|
|
31
|
-
export declare function UNSTABLE_useFilteredListState<T
|
|
31
|
+
export declare function UNSTABLE_useFilteredListState<T>(state: ListState<T>, filterFn: ((nodeValue: string, node: Node<T>) => boolean) | null | undefined): ListState<T>;
|
|
@@ -4,6 +4,7 @@ export type MenuTriggerType = 'press' | 'longPress';
|
|
|
4
4
|
export interface MenuTriggerProps extends OverlayTriggerProps {
|
|
5
5
|
/**
|
|
6
6
|
* How the menu is triggered.
|
|
7
|
+
*
|
|
7
8
|
* @default 'press'
|
|
8
9
|
*/
|
|
9
10
|
trigger?: MenuTriggerType;
|
|
@@ -21,7 +22,8 @@ export interface RootMenuTriggerState extends MenuTriggerState {
|
|
|
21
22
|
openSubmenu: (triggerKey: Key, level: number) => void;
|
|
22
23
|
/** Closes a specific submenu tied to a specific menu item at a specific level. */
|
|
23
24
|
closeSubmenu: (triggerKey: Key, level: number) => void;
|
|
24
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* An array of open submenu trigger keys within the menu tree.
|
|
25
27
|
* The index of key within array matches the submenu level in the tree.
|
|
26
28
|
*/
|
|
27
29
|
expandedKeysStack: Key[];
|
|
@@ -24,7 +24,7 @@ export interface SubmenuTriggerState extends OverlayTriggerState {
|
|
|
24
24
|
setOpen: () => void;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
* Manages state for a submenu trigger. Tracks whether the submenu is currently open, the level of
|
|
28
|
-
* controls which item will receive focus when it opens.
|
|
27
|
+
* Manages state for a submenu trigger. Tracks whether the submenu is currently open, the level of
|
|
28
|
+
* the submenu, and controls which item will receive focus when it opens.
|
|
29
29
|
*/
|
|
30
30
|
export declare function useSubmenuTriggerState(props: SubmenuTriggerProps, state: RootMenuTriggerState): SubmenuTriggerState;
|
|
@@ -7,9 +7,11 @@ export interface NumberFieldProps extends InputBase, Validation<number>, Focusab
|
|
|
7
7
|
*/
|
|
8
8
|
formatOptions?: Intl.NumberFormatOptions;
|
|
9
9
|
/**
|
|
10
|
-
* Controls the behavior of the number field when the user blurs the field after editing.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* Controls the behavior of the number field when the user blurs the field after editing. 'snap'
|
|
11
|
+
* will clamp the value to the min/max values, and snap to the nearest step value. 'validate' will
|
|
12
|
+
* not clamp the value, and will validate that the value is within the min/max range and on a
|
|
13
|
+
* valid step.
|
|
14
|
+
*
|
|
13
15
|
* @default 'snap'
|
|
14
16
|
*/
|
|
15
17
|
commitBehavior?: 'snap' | 'validate';
|
|
@@ -36,9 +38,9 @@ export interface NumberFieldState extends FormValidationState {
|
|
|
36
38
|
/** Whether the current value can be decremented according to the minimum value and step. */
|
|
37
39
|
canDecrement: boolean;
|
|
38
40
|
/**
|
|
39
|
-
* Validates a user input string according to the current locale and format options.
|
|
40
|
-
*
|
|
41
|
-
*
|
|
41
|
+
* Validates a user input string according to the current locale and format options. Values can be
|
|
42
|
+
* partially entered, and may be valid even if they cannot currently be parsed to a number. Can be
|
|
43
|
+
* used to implement validation as a user types.
|
|
42
44
|
*/
|
|
43
45
|
validate(value: string): boolean;
|
|
44
46
|
/** Sets the current text value of the input. */
|
|
@@ -46,10 +48,11 @@ export interface NumberFieldState extends FormValidationState {
|
|
|
46
48
|
/** Sets the number value. */
|
|
47
49
|
setNumberValue(val: number): void;
|
|
48
50
|
/**
|
|
49
|
-
* Commits the current input value. The value is parsed to a number, clamped according
|
|
50
|
-
*
|
|
51
|
-
*
|
|
51
|
+
* Commits the current input value. The value is parsed to a number, clamped according to the
|
|
52
|
+
* minimum and maximum values of the field, and snapped to the nearest step value. This will fire
|
|
53
|
+
* the `onChange` prop with the new value, and if uncontrolled, update the `numberValue`.
|
|
52
54
|
* Typically this is called when the field is blurred.
|
|
55
|
+
*
|
|
53
56
|
* @param value - The value to commit. If not provided, the current input value is used.
|
|
54
57
|
*/
|
|
55
58
|
commit(value?: string): void;
|
|
@@ -65,12 +68,13 @@ export interface NumberFieldState extends FormValidationState {
|
|
|
65
68
|
export interface NumberFieldStateOptions extends NumberFieldProps {
|
|
66
69
|
/**
|
|
67
70
|
* The locale that should be used for parsing.
|
|
71
|
+
*
|
|
68
72
|
* @default 'en-US'
|
|
69
73
|
*/
|
|
70
74
|
locale: string;
|
|
71
75
|
}
|
|
72
76
|
/**
|
|
73
|
-
* Provides state management for a number field component. Number fields allow users to enter a
|
|
74
|
-
* and increment or decrement the value using stepper buttons.
|
|
77
|
+
* Provides state management for a number field component. Number fields allow users to enter a
|
|
78
|
+
* number, and increment or decrement the value using stepper buttons.
|
|
75
79
|
*/
|
|
76
80
|
export declare function useNumberFieldState(props: NumberFieldStateOptions): NumberFieldState;
|
|
@@ -3,6 +3,7 @@ import { FormValidationState } from '../form/useFormValidationState';
|
|
|
3
3
|
export interface RadioGroupProps extends ValueBase<string | null, string>, InputBase, Pick<InputDOMProps, 'name'>, Validation<string>, LabelableProps, HelpTextProps, FocusEvents {
|
|
4
4
|
/**
|
|
5
5
|
* The axis the Radio Button(s) should align with.
|
|
6
|
+
*
|
|
6
7
|
* @default 'vertical'
|
|
7
8
|
*/
|
|
8
9
|
orientation?: Orientation;
|
|
@@ -10,8 +11,9 @@ export interface RadioGroupProps extends ValueBase<string | null, string>, Input
|
|
|
10
11
|
export interface RadioGroupState extends FormValidationState {
|
|
11
12
|
/**
|
|
12
13
|
* The name for the group, used for native form submission.
|
|
13
|
-
*
|
|
14
|
+
*
|
|
14
15
|
* @private
|
|
16
|
+
* @deprecated
|
|
15
17
|
*/
|
|
16
18
|
readonly name: string;
|
|
17
19
|
/** Whether the radio group is disabled. */
|
|
@@ -22,6 +24,7 @@ export interface RadioGroupState extends FormValidationState {
|
|
|
22
24
|
readonly isRequired: boolean;
|
|
23
25
|
/**
|
|
24
26
|
* Whether the radio group is valid or invalid.
|
|
27
|
+
*
|
|
25
28
|
* @deprecated Use `isInvalid` instead.
|
|
26
29
|
*/
|
|
27
30
|
readonly validationState: ValidationState | null;
|
|
@@ -9,21 +9,25 @@ type ValidationType<M extends SelectionMode> = M extends 'single' ? Key : Key[];
|
|
|
9
9
|
export interface SelectProps<T, M extends SelectionMode = 'single'> extends CollectionBase<T>, Omit<InputBase, 'isReadOnly'>, ValueBase<ValueType<M>, ChangeValueType<M>>, Validation<ValidationType<M>>, HelpTextProps, LabelableProps, TextInputBase, FocusableProps {
|
|
10
10
|
/**
|
|
11
11
|
* Whether single or multiple selection is enabled.
|
|
12
|
+
*
|
|
12
13
|
* @default 'single'
|
|
13
14
|
*/
|
|
14
15
|
selectionMode?: M;
|
|
15
16
|
/**
|
|
16
17
|
* The currently selected key in the collection (controlled).
|
|
18
|
+
*
|
|
17
19
|
* @deprecated
|
|
18
20
|
*/
|
|
19
21
|
selectedKey?: Key | null;
|
|
20
22
|
/**
|
|
21
23
|
* The initial selected key in the collection (uncontrolled).
|
|
24
|
+
*
|
|
22
25
|
* @deprecated
|
|
23
26
|
*/
|
|
24
27
|
defaultSelectedKey?: Key | null;
|
|
25
28
|
/**
|
|
26
29
|
* Handler that is called when the selection changes.
|
|
30
|
+
*
|
|
27
31
|
* @deprecated
|
|
28
32
|
*/
|
|
29
33
|
onSelectionChange?: (key: Key | null) => void;
|
|
@@ -33,7 +37,10 @@ export interface SelectProps<T, M extends SelectionMode = 'single'> extends Coll
|
|
|
33
37
|
defaultOpen?: boolean;
|
|
34
38
|
/** Method that is called when the open state of the menu changes. */
|
|
35
39
|
onOpenChange?: (isOpen: boolean) => void;
|
|
36
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
* Whether the Select should close when an item is selected. Defaults to true if selectionMode is
|
|
42
|
+
* single, false otherwise.
|
|
43
|
+
*/
|
|
37
44
|
shouldCloseOnSelect?: boolean;
|
|
38
45
|
/** Whether the select should be allowed to be open when the collection is empty. */
|
|
39
46
|
allowsEmptyCollection?: boolean;
|
|
@@ -43,16 +50,19 @@ export interface SelectStateOptions<T, M extends SelectionMode = 'single'> exten
|
|
|
43
50
|
export interface SelectState<T, M extends SelectionMode = 'single'> extends ListState<T>, OverlayTriggerState, FormValidationState {
|
|
44
51
|
/**
|
|
45
52
|
* The key for the first selected item.
|
|
53
|
+
*
|
|
46
54
|
* @deprecated
|
|
47
55
|
*/
|
|
48
56
|
readonly selectedKey: Key | null;
|
|
49
57
|
/**
|
|
50
58
|
* The default selected key.
|
|
59
|
+
*
|
|
51
60
|
* @deprecated
|
|
52
61
|
*/
|
|
53
62
|
readonly defaultSelectedKey: Key | null;
|
|
54
63
|
/**
|
|
55
64
|
* Sets the selected key.
|
|
65
|
+
*
|
|
56
66
|
* @deprecated
|
|
57
67
|
*/
|
|
58
68
|
setSelectedKey(key: Key | null): void;
|
|
@@ -64,6 +74,7 @@ export interface SelectState<T, M extends SelectionMode = 'single'> extends List
|
|
|
64
74
|
setValue(value: Key | readonly Key[] | null): void;
|
|
65
75
|
/**
|
|
66
76
|
* The value of the first selected item.
|
|
77
|
+
*
|
|
67
78
|
* @deprecated
|
|
68
79
|
*/
|
|
69
80
|
readonly selectedItem: Node<T> | null;
|
|
@@ -85,5 +96,5 @@ export interface SelectState<T, M extends SelectionMode = 'single'> extends List
|
|
|
85
96
|
* of items from props, handles the open state for the popup menu, and manages
|
|
86
97
|
* multiple selection state.
|
|
87
98
|
*/
|
|
88
|
-
export declare function useSelectState<T
|
|
99
|
+
export declare function useSelectState<T, M extends SelectionMode = 'single'>(props: SelectStateOptions<T, M>): SelectState<T, M>;
|
|
89
100
|
export {};
|
|
@@ -8,7 +8,10 @@ export interface FocusState {
|
|
|
8
8
|
readonly focusedKey: Key | null;
|
|
9
9
|
/** Whether the first or last child of the focused key should receive focus. */
|
|
10
10
|
readonly childFocusStrategy: FocusStrategy | null;
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Sets the focused key, and optionally, whether the first or last child of that key should
|
|
13
|
+
* receive focus.
|
|
14
|
+
*/
|
|
12
15
|
setFocusedKey(key: Key | null, child?: FocusStrategy): void;
|
|
13
16
|
}
|
|
14
17
|
export interface SingleSelectionState extends FocusState {
|
|
@@ -3,6 +3,7 @@ import { MultipleSelectionState } from './types';
|
|
|
3
3
|
export interface MultipleSelectionStateProps extends MultipleSelection {
|
|
4
4
|
/**
|
|
5
5
|
* How multiple selection should behave in the collection.
|
|
6
|
+
*
|
|
6
7
|
* @default 'toggle'
|
|
7
8
|
*/
|
|
8
9
|
selectionBehavior?: SelectionBehavior;
|
|
@@ -10,6 +11,7 @@ export interface MultipleSelectionStateProps extends MultipleSelection {
|
|
|
10
11
|
allowDuplicateSelectionEvents?: boolean;
|
|
11
12
|
/**
|
|
12
13
|
* Whether `disabledKeys` applies to all interactions, or only selection.
|
|
14
|
+
*
|
|
13
15
|
* @default 'all'
|
|
14
16
|
*/
|
|
15
17
|
disabledBehavior?: DisabledBehavior;
|