burne-ui 1.8.4 → 1.8.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/composite/Accordion/Accordion.d.ts +3 -2
- package/dist/components/composite/Accordion/accordionAnimations.d.ts +6 -1
- package/dist/components/composite/Accordion/accordionParts.d.ts +7 -3
- package/dist/components/composite/Accordion/accordionTypes.d.ts +16 -2
- package/dist/components/composite/Accordion/index.d.ts +8 -3
- package/dist/components/composite/Accordion/useAccordionRootState.d.ts +1 -1
- package/dist/components/composite/AlertDialog/AlertDialog.d.ts +2 -2
- package/dist/components/composite/AlertDialog/alertDialogAnimations.d.ts +7 -2
- package/dist/components/composite/AlertDialog/alertDialogContext.d.ts +7 -0
- package/dist/components/composite/AlertDialog/alertDialogParts.d.ts +25 -23
- package/dist/components/composite/AlertDialog/alertDialogTypes.d.ts +47 -6
- package/dist/components/composite/AlertDialog/index.d.ts +25 -8
- package/dist/components/composite/ButtonGroup/ButtonGroup.d.ts +5 -3
- package/dist/components/composite/ButtonGroup/buttonGroupAnimations.d.ts +20 -0
- package/dist/components/composite/ButtonGroup/buttonGroupContext.d.ts +7 -0
- package/dist/components/composite/ButtonGroup/buttonGroupParts.d.ts +1 -0
- package/dist/components/composite/ButtonGroup/buttonGroupTypes.d.ts +19 -0
- package/dist/components/composite/ButtonGroup/index.d.ts +4 -2
- package/dist/components/composite/CheckboxGroup/CheckboxGroup.d.ts +2 -1
- package/dist/components/composite/CheckboxGroup/checkboxGroupAnimations.d.ts +38 -0
- package/dist/components/composite/CheckboxGroup/checkboxGroupContext.d.ts +7 -0
- package/dist/components/composite/CheckboxGroup/checkboxGroupParts.d.ts +2 -0
- package/dist/components/composite/CheckboxGroup/checkboxGroupTypes.d.ts +22 -1
- package/dist/components/composite/CheckboxGroup/index.d.ts +6 -1
- package/dist/components/composite/Form/Form.d.ts +7 -4
- package/dist/components/composite/Form/formAnimations.d.ts +23 -0
- package/dist/components/composite/Form/formContext.d.ts +7 -0
- package/dist/components/composite/Form/formParts.d.ts +14 -4
- package/dist/components/composite/Form/formTypes.d.ts +40 -3
- package/dist/components/composite/Form/index.d.ts +16 -4
- package/dist/components/composite/RadioGroup/index.d.ts +2 -0
- package/dist/components/composite/ToggleButtonGroup/ToggleButtonGroup.d.ts +5 -3
- package/dist/components/composite/ToggleButtonGroup/index.d.ts +2 -1
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupAnimations.d.ts +21 -0
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupContext.d.ts +7 -0
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupTypes.d.ts +18 -0
- package/dist/components/composite/ToggleButtonGroup/useToggleButtonGroupRootState.d.ts +1 -0
- package/dist/components/composite/utils/optionGroupFieldset.d.ts +2 -0
- package/dist/components/core/Alert/Alert.d.ts +16 -12
- package/dist/components/core/Alert/alertAnimations.d.ts +7 -13
- package/dist/components/core/Alert/alertContext.d.ts +7 -0
- package/dist/components/core/Alert/alertParts.d.ts +14 -17
- package/dist/components/core/Alert/alertTypes.d.ts +41 -5
- package/dist/components/core/Alert/index.d.ts +16 -6
- package/dist/components/core/Avatar/Avatar.d.ts +2 -1
- package/dist/components/core/Avatar/avatarAnimations.d.ts +5 -6
- package/dist/components/core/Avatar/avatarContext.d.ts +10 -1
- package/dist/components/core/Avatar/avatarParts.d.ts +8 -3
- package/dist/components/core/Avatar/avatarTypes.d.ts +32 -2
- package/dist/components/core/Avatar/index.d.ts +9 -3
- package/dist/components/core/Badge/Badge.d.ts +5 -3
- package/dist/components/core/Badge/badgeAnimations.d.ts +17 -5
- package/dist/components/core/Badge/badgeContext.d.ts +7 -0
- package/dist/components/core/Badge/badgeParts.d.ts +3 -1
- package/dist/components/core/Badge/badgeStyles.d.ts +8 -5
- package/dist/components/core/Badge/badgeTypes.d.ts +17 -0
- package/dist/components/core/Badge/index.d.ts +3 -1
- package/dist/components/core/Breadcrumbs/Breadcrumbs.d.ts +2 -1
- package/dist/components/core/Breadcrumbs/breadcrumbsAnimations.d.ts +3 -5
- package/dist/components/core/Breadcrumbs/breadcrumbsContext.d.ts +7 -0
- package/dist/components/core/Breadcrumbs/breadcrumbsTypes.d.ts +13 -0
- package/dist/components/core/Breadcrumbs/index.d.ts +2 -1
- package/dist/components/core/Button/Button.d.ts +3 -1
- package/dist/components/core/Button/buttonAnimations.d.ts +17 -7
- package/dist/components/core/Button/buttonContext.d.ts +7 -0
- package/dist/components/core/Button/buttonTypes.d.ts +20 -0
- package/dist/components/core/Button/index.d.ts +2 -1
- package/dist/components/core/Calendar/Calendar.d.ts +1 -1
- package/dist/components/core/Calendar/calendarAnimations.d.ts +3 -12
- package/dist/components/core/Calendar/calendarContext.d.ts +7 -0
- package/dist/components/core/Calendar/calendarParts.d.ts +2 -2
- package/dist/components/core/Calendar/calendarTypes.d.ts +14 -0
- package/dist/components/core/Calendar/index.d.ts +3 -3
- package/dist/components/core/Card/Card.d.ts +8 -6
- package/dist/components/core/Card/cardAnimations.d.ts +8 -2
- package/dist/components/core/Card/cardContext.d.ts +7 -0
- package/dist/components/core/Card/cardParts.d.ts +12 -8
- package/dist/components/core/Card/cardTypes.d.ts +46 -6
- package/dist/components/core/Card/index.d.ts +9 -4
- package/dist/components/core/Checkbox/Checkbox.d.ts +3 -2
- package/dist/components/core/Checkbox/checkboxAPI.d.ts +1 -1
- package/dist/components/core/Checkbox/checkboxAnimations.d.ts +12 -1
- package/dist/components/core/Checkbox/checkboxAnimations.test.d.ts +1 -0
- package/dist/components/core/Checkbox/checkboxContext.d.ts +3 -1
- package/dist/components/core/Checkbox/checkboxParts.d.ts +1 -1
- package/dist/components/core/Checkbox/checkboxTypes.d.ts +18 -1
- package/dist/components/core/Checkbox/index.d.ts +7 -3
- package/dist/components/core/CloseButton/CloseButton.d.ts +2 -1
- package/dist/components/core/CloseButton/closeButtonAnimations.d.ts +25 -6
- package/dist/components/core/CloseButton/closeButtonContext.d.ts +7 -0
- package/dist/components/core/CloseButton/closeButtonTypes.d.ts +19 -2
- package/dist/components/core/CloseButton/index.d.ts +1 -1
- package/dist/components/core/ColorPicker/ColorPicker.d.ts +2 -2
- package/dist/components/core/ColorPicker/ColorSlider.d.ts +3 -1
- package/dist/components/core/ColorPicker/ColorSwatch.d.ts +3 -8
- package/dist/components/core/ColorPicker/colorPickerAnimations.d.ts +22 -1
- package/dist/components/core/ColorPicker/colorPickerContext.d.ts +7 -0
- package/dist/components/core/ColorPicker/colorPickerParts.d.ts +10 -4
- package/dist/components/core/ColorPicker/colorPickerTypes.d.ts +33 -2
- package/dist/components/core/ColorPicker/colorSliderAnimations.d.ts +36 -0
- package/dist/components/core/ColorPicker/colorSliderContext.d.ts +7 -0
- package/dist/components/core/ColorPicker/colorSliderTypes.d.ts +25 -0
- package/dist/components/core/ColorPicker/colorSwatchAnimations.d.ts +25 -0
- package/dist/components/core/ColorPicker/colorSwatchContext.d.ts +7 -0
- package/dist/components/core/ColorPicker/colorSwatchTypes.d.ts +34 -0
- package/dist/components/core/ColorPicker/index.d.ts +14 -6
- package/dist/components/core/ComboBox/ComboBox.d.ts +2 -2
- package/dist/components/core/ComboBox/comboBoxAnimations.d.ts +48 -0
- package/dist/components/core/ComboBox/comboBoxContext.d.ts +7 -0
- package/dist/components/core/ComboBox/comboBoxParts.d.ts +7 -3
- package/dist/components/core/ComboBox/comboBoxTypes.d.ts +37 -3
- package/dist/components/core/ComboBox/index.d.ts +8 -3
- package/dist/components/core/Dialog/Dialog.d.ts +2 -2
- package/dist/components/core/Dialog/dialogAnimations.d.ts +7 -2
- package/dist/components/core/Dialog/dialogContext.d.ts +7 -0
- package/dist/components/core/Dialog/dialogParts.d.ts +20 -6
- package/dist/components/core/Dialog/dialogTypes.d.ts +41 -6
- package/dist/components/core/Dialog/index.d.ts +20 -6
- package/dist/components/core/Disclosure/Disclosure.d.ts +2 -1
- package/dist/components/core/Disclosure/disclosureAnimations.d.ts +9 -4
- package/dist/components/core/Disclosure/disclosureContentPart.d.ts +1 -0
- package/dist/components/core/Disclosure/disclosureContext.d.ts +7 -0
- package/dist/components/core/Disclosure/disclosureGroup.d.ts +1 -0
- package/dist/components/core/Disclosure/disclosureParts.d.ts +2 -1
- package/dist/components/core/Disclosure/disclosureTypes.d.ts +42 -1
- package/dist/components/core/Disclosure/index.d.ts +5 -1
- package/dist/components/core/Disclosure/useDisclosureGroupRootState.d.ts +1 -1
- package/dist/components/core/Drawer/Drawer.d.ts +2 -2
- package/dist/components/core/Drawer/drawerAPI.d.ts +2 -7
- package/dist/components/core/Drawer/drawerAnimations.d.ts +7 -2
- package/dist/components/core/Drawer/drawerContext.d.ts +7 -0
- package/dist/components/core/Drawer/drawerParts.d.ts +21 -10
- package/dist/components/core/Drawer/drawerTypes.d.ts +42 -6
- package/dist/components/core/Drawer/index.d.ts +21 -7
- package/dist/components/core/Dropdown/Dropdown.d.ts +2 -2
- package/dist/components/core/Dropdown/dropdownAnimations.d.ts +19 -3
- package/dist/components/core/Dropdown/dropdownContext.d.ts +7 -0
- package/dist/components/core/Dropdown/dropdownItemParts.d.ts +1 -0
- package/dist/components/core/Dropdown/dropdownParts.d.ts +1 -0
- package/dist/components/core/Dropdown/dropdownSubParts.d.ts +1 -0
- package/dist/components/core/Dropdown/dropdownTypes.d.ts +32 -0
- package/dist/components/core/Dropdown/index.d.ts +8 -2
- package/dist/components/core/Dropdown/useDropdownItemState.d.ts +2 -1
- package/dist/components/core/Expandable/Expandable.d.ts +2 -1
- package/dist/components/core/Expandable/expandableAnimations.d.ts +9 -5
- package/dist/components/core/Expandable/expandableContext.d.ts +7 -0
- package/dist/components/core/Expandable/expandableParts.d.ts +7 -3
- package/dist/components/core/Expandable/expandableTypes.d.ts +33 -2
- package/dist/components/core/Expandable/index.d.ts +6 -2
- package/dist/components/core/Field/Field.d.ts +2 -1
- package/dist/components/core/Field/fieldAnimations.d.ts +38 -0
- package/dist/components/core/Field/fieldContext.d.ts +13 -0
- package/dist/components/core/Field/fieldParts.d.ts +9 -5
- package/dist/components/core/Field/fieldTypes.d.ts +37 -0
- package/dist/components/core/Field/index.d.ts +9 -1
- package/dist/components/core/Input/Input.d.ts +2 -2
- package/dist/components/core/Input/index.d.ts +2 -1
- package/dist/components/core/Input/inputAffixParts.d.ts +4 -0
- package/dist/components/core/Input/inputAnimations.d.ts +23 -12
- package/dist/components/core/Input/inputContext.d.ts +7 -0
- package/dist/components/core/Input/inputControlParts.d.ts +2 -0
- package/dist/components/core/Input/inputTypes.d.ts +37 -3
- package/dist/components/core/Kbd/Kbd.d.ts +5 -2
- package/dist/components/core/Kbd/index.d.ts +2 -1
- package/dist/components/core/Kbd/kbdAnimations.d.ts +8 -5
- package/dist/components/core/Kbd/kbdContext.d.ts +7 -0
- package/dist/components/core/Kbd/kbdTextPart.d.ts +2 -7
- package/dist/components/core/Kbd/kbdTypes.d.ts +19 -0
- package/dist/components/core/Label/Label.d.ts +3 -3
- package/dist/components/core/Label/index.d.ts +1 -1
- package/dist/components/core/Label/labelAnimations.d.ts +20 -0
- package/dist/components/core/Label/labelContext.d.ts +7 -0
- package/dist/components/core/Label/labelTypes.d.ts +18 -0
- package/dist/components/core/Link/Link.d.ts +2 -2
- package/dist/components/core/Link/index.d.ts +1 -1
- package/dist/components/core/Link/linkAnchorBodyPart.d.ts +1 -1
- package/dist/components/core/Link/linkAnimations.d.ts +13 -6
- package/dist/components/core/Link/linkContext.d.ts +7 -0
- package/dist/components/core/Link/linkTypes.d.ts +23 -1
- package/dist/components/core/ListBox/ListBox.d.ts +2 -2
- package/dist/components/core/ListBox/index.d.ts +7 -2
- package/dist/components/core/ListBox/listBoxAPI.d.ts +2 -3
- package/dist/components/core/ListBox/listBoxAnimations.d.ts +4 -7
- package/dist/components/core/ListBox/listBoxContext.d.ts +7 -0
- package/dist/components/core/ListBox/listBoxParts.d.ts +4 -2
- package/dist/components/core/ListBox/listBoxTypes.d.ts +23 -11
- package/dist/components/core/ListBox/useListBoxItemState.d.ts +2 -1
- package/dist/components/core/ListBox/useListBoxRootState.d.ts +1 -1
- package/dist/components/core/Loading/Loading.d.ts +2 -1
- package/dist/components/core/Loading/index.d.ts +1 -1
- package/dist/components/core/Loading/loadingAnimations.d.ts +2 -1
- package/dist/components/core/Loading/loadingContext.d.ts +7 -0
- package/dist/components/core/Loading/loadingTypes.d.ts +19 -0
- package/dist/components/core/Meter/Meter.d.ts +2 -2
- package/dist/components/core/Meter/index.d.ts +2 -0
- package/dist/components/core/Meter/meterAnimations.d.ts +4 -1
- package/dist/components/core/Meter/meterContext.d.ts +7 -0
- package/dist/components/core/Meter/meterParts.d.ts +3 -2
- package/dist/components/core/Meter/meterTypes.d.ts +28 -2
- package/dist/components/core/Pagination/Pagination.d.ts +2 -1
- package/dist/components/core/Pagination/index.d.ts +9 -3
- package/dist/components/core/Pagination/paginationAnimations.d.ts +2 -0
- package/dist/components/core/Pagination/paginationContext.d.ts +7 -0
- package/dist/components/core/Pagination/paginationParts.d.ts +8 -3
- package/dist/components/core/Pagination/paginationTypes.d.ts +16 -1
- package/dist/components/core/Popover/Popover.d.ts +2 -2
- package/dist/components/core/Popover/index.d.ts +11 -4
- package/dist/components/core/Popover/popoverAnimations.d.ts +7 -2
- package/dist/components/core/Popover/popoverContext.d.ts +7 -0
- package/dist/components/core/Popover/popoverParts.d.ts +11 -4
- package/dist/components/core/Popover/popoverStyles.d.ts +1 -1
- package/dist/components/core/Popover/popoverTypes.d.ts +31 -4
- package/dist/components/core/ProgressBar/ProgressBar.d.ts +2 -2
- package/dist/components/core/ProgressBar/index.d.ts +2 -0
- package/dist/components/core/ProgressBar/progressBarAnimations.d.ts +4 -1
- package/dist/components/core/ProgressBar/progressBarContext.d.ts +7 -0
- package/dist/components/core/ProgressBar/progressBarParts.d.ts +3 -2
- package/dist/components/core/ProgressBar/progressBarTypes.d.ts +27 -2
- package/dist/components/core/Radio/Radio.d.ts +3 -2
- package/dist/components/core/Radio/index.d.ts +7 -3
- package/dist/components/core/Radio/radioAnimations.d.ts +12 -1
- package/dist/components/core/Radio/radioContext.d.ts +3 -1
- package/dist/components/core/Radio/radioParts.d.ts +1 -1
- package/dist/components/core/Radio/radioTypes.d.ts +18 -1
- package/dist/components/core/SearchInput/SearchInput.d.ts +5 -2
- package/dist/components/core/SearchInput/index.d.ts +1 -1
- package/dist/components/core/SearchInput/searchInputAnimations.d.ts +40 -5
- package/dist/components/core/SearchInput/searchInputContext.d.ts +7 -0
- package/dist/components/core/SearchInput/searchInputParts.d.ts +8 -0
- package/dist/components/core/SearchInput/searchInputStyles.d.ts +2 -2
- package/dist/components/core/SearchInput/searchInputTypes.d.ts +28 -2
- package/dist/components/core/SearchInput/useSearchInputRootState.d.ts +7 -11
- package/dist/components/core/Select/Select.d.ts +2 -2
- package/dist/components/core/Select/index.d.ts +6 -2
- package/dist/components/core/Select/selectAnimations.d.ts +48 -0
- package/dist/components/core/Select/selectContext.d.ts +7 -0
- package/dist/components/core/Select/selectTriggerParts.d.ts +5 -2
- package/dist/components/core/Select/selectTypes.d.ts +35 -2
- package/dist/components/core/SelectionIndicator/SelectionIndicator.d.ts +1 -1
- package/dist/components/core/SelectionIndicator/index.d.ts +6 -3
- package/dist/components/core/SelectionIndicator/selectionIndicatorAnimations.d.ts +9 -0
- package/dist/components/core/SelectionIndicator/selectionIndicatorContext.d.ts +7 -0
- package/dist/components/core/SelectionIndicator/selectionIndicatorParts.d.ts +4 -2
- package/dist/components/core/SelectionIndicator/selectionIndicatorTypes.d.ts +15 -1
- package/dist/components/core/SelectionThumb/SelectionThumb.d.ts +3 -3
- package/dist/components/core/SelectionThumb/index.d.ts +2 -2
- package/dist/components/core/SelectionThumb/selectionThumbAnimations.d.ts +2 -0
- package/dist/components/core/SelectionThumb/selectionThumbContext.d.ts +7 -0
- package/dist/components/core/SelectionThumb/selectionThumbTypes.d.ts +21 -2
- package/dist/components/core/Separator/Separator.d.ts +2 -1
- package/dist/components/core/Separator/index.d.ts +1 -1
- package/dist/components/core/Separator/separatorAnimations.d.ts +20 -0
- package/dist/components/core/Separator/separatorContext.d.ts +7 -0
- package/dist/components/core/Separator/separatorTypes.d.ts +17 -0
- package/dist/components/core/Skeleton/Skeleton.d.ts +2 -1
- package/dist/components/core/Skeleton/index.d.ts +6 -1
- package/dist/components/core/Skeleton/skeletonAnimations.d.ts +19 -0
- package/dist/components/core/Skeleton/skeletonContext.d.ts +7 -0
- package/dist/components/core/Skeleton/skeletonParts.d.ts +5 -1
- package/dist/components/core/Skeleton/skeletonTypes.d.ts +22 -0
- package/dist/components/core/Slider/Slider.d.ts +2 -2
- package/dist/components/core/Slider/index.d.ts +2 -1
- package/dist/components/core/Slider/sliderAnimations.d.ts +7 -7
- package/dist/components/core/Slider/sliderContext.d.ts +7 -0
- package/dist/components/core/Slider/sliderScaleField.d.ts +8 -2
- package/dist/components/core/Slider/sliderThumbParts.d.ts +2 -1
- package/dist/components/core/Slider/sliderTrackParts.d.ts +1 -0
- package/dist/components/core/Slider/sliderTypes.d.ts +32 -2
- package/dist/components/core/Slider/useSliderTrackState.d.ts +18 -16
- package/dist/components/core/Surface/Surface.d.ts +2 -1
- package/dist/components/core/Surface/index.d.ts +1 -1
- package/dist/components/core/Surface/surfaceAnimations.d.ts +20 -0
- package/dist/components/core/Surface/surfaceContext.d.ts +7 -0
- package/dist/components/core/Surface/surfaceTypes.d.ts +17 -0
- package/dist/components/core/Switch/Switch.d.ts +3 -2
- package/dist/components/core/Switch/index.d.ts +4 -3
- package/dist/components/core/Switch/switchAnimations.d.ts +3 -2
- package/dist/components/core/Switch/switchContext.d.ts +7 -0
- package/dist/components/core/Switch/switchControlParts.d.ts +1 -1
- package/dist/components/core/Switch/switchTrackParts.d.ts +4 -4
- package/dist/components/core/Switch/switchTypes.d.ts +20 -2
- package/dist/components/core/Switch/useSwitchRootState.d.ts +12 -12
- package/dist/components/core/Table/Table.d.ts +2 -1
- package/dist/components/core/Table/index.d.ts +15 -4
- package/dist/components/core/Table/tableAnimations.d.ts +22 -2
- package/dist/components/core/Table/tableContext.d.ts +7 -0
- package/dist/components/core/Table/tableParts.d.ts +14 -4
- package/dist/components/core/Table/tableTypes.d.ts +40 -3
- package/dist/components/core/Tabs/Tabs.d.ts +2 -1
- package/dist/components/core/Tabs/index.d.ts +7 -2
- package/dist/components/core/Tabs/tabsAnimations.d.ts +18 -4
- package/dist/components/core/Tabs/tabsContext.d.ts +7 -0
- package/dist/components/core/Tabs/tabsPanelPart.d.ts +1 -0
- package/dist/components/core/Tabs/tabsParts.d.ts +3 -2
- package/dist/components/core/Tabs/tabsTabPart.d.ts +1 -0
- package/dist/components/core/Tabs/tabsTypes.d.ts +32 -1
- package/dist/components/core/Text/Text.d.ts +4 -2
- package/dist/components/core/Text/index.d.ts +1 -1
- package/dist/components/core/Text/textAnimations.d.ts +21 -0
- package/dist/components/core/Text/textContext.d.ts +7 -0
- package/dist/components/core/Text/textTypes.d.ts +18 -0
- package/dist/components/core/TextArea/TextArea.d.ts +2 -2
- package/dist/components/core/TextArea/index.d.ts +2 -1
- package/dist/components/core/TextArea/textAreaAnimations.d.ts +20 -10
- package/dist/components/core/TextArea/textAreaContext.d.ts +7 -0
- package/dist/components/core/TextArea/textAreaParts.d.ts +2 -1
- package/dist/components/core/TextArea/textAreaStyles.d.ts +8 -5
- package/dist/components/core/TextArea/textAreaTypes.d.ts +30 -2
- package/dist/components/core/TimeField/TimeField.d.ts +2 -2
- package/dist/components/core/TimeField/index.d.ts +2 -1
- package/dist/components/core/TimeField/timeFieldAnimations.d.ts +22 -9
- package/dist/components/core/TimeField/timeFieldContext.d.ts +7 -0
- package/dist/components/core/TimeField/timeFieldParts.d.ts +4 -3
- package/dist/components/core/TimeField/timeFieldTypes.d.ts +31 -1
- package/dist/components/core/TimeField/useTimeFieldControlState.d.ts +2 -14
- package/dist/components/core/Toast/Toast.d.ts +2 -1
- package/dist/components/core/Toast/index.d.ts +15 -5
- package/dist/components/core/Toast/toastAnimations.d.ts +16 -3
- package/dist/components/core/Toast/toastContext.d.ts +7 -0
- package/dist/components/core/Toast/toastParts.d.ts +14 -5
- package/dist/components/core/Toast/toastProvider.d.ts +1 -1
- package/dist/components/core/Toast/toastTypes.d.ts +37 -4
- package/dist/components/core/ToggleButton/ToggleButton.d.ts +4 -2
- package/dist/components/core/ToggleButton/index.d.ts +12 -5
- package/dist/components/core/ToggleButton/toggleButtonAnimations.d.ts +10 -6
- package/dist/components/core/ToggleButton/toggleButtonContext.d.ts +7 -0
- package/dist/components/core/ToggleButton/toggleButtonParts.d.ts +13 -7
- package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +47 -4
- package/dist/components/core/ToggleButton/useToggleButtonFillAnimation.d.ts +4 -1
- package/dist/components/core/ToggleButton/useToggleButtonRootState.d.ts +2 -1
- package/dist/components/core/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/core/Tooltip/index.d.ts +2 -1
- package/dist/components/core/Tooltip/tooltipAnimations.d.ts +5 -1
- package/dist/components/core/Tooltip/tooltipContext.d.ts +7 -0
- package/dist/components/core/Tooltip/tooltipParts.d.ts +1 -0
- package/dist/components/core/Tooltip/tooltipStyles.d.ts +1 -1
- package/dist/components/core/Tooltip/tooltipTypes.d.ts +14 -0
- package/dist/components/core/utils/bindAbortSignal.d.ts +2 -0
- package/dist/components/core/utils/drawerSlide.d.ts +7 -0
- package/dist/components/core/utils/focusElement.d.ts +26 -12
- package/dist/components/core/utils/focusElement.test.d.ts +1 -0
- package/dist/components/core/utils/glossInteractiveMotion.d.ts +6 -2
- package/dist/components/core/utils/gsapMotion.d.ts +42 -11
- package/dist/components/core/utils/gsapMotion.geometry.test.d.ts +1 -0
- package/dist/components/core/utils/hoverInteractiveLift.abort.test.d.ts +1 -0
- package/dist/components/core/utils/hoverInteractiveLift.d.ts +8 -4
- package/dist/components/core/utils/modalSurfaceMotion.d.ts +17 -3
- package/dist/components/core/utils/motionConfig.d.ts +85 -6
- package/dist/components/core/utils/motionConfig.test.d.ts +1 -0
- package/dist/components/core/utils/motionConfigContext.d.ts +23 -0
- package/dist/components/core/utils/motionConfigValidation.d.ts +33 -0
- package/dist/components/core/utils/optionListItemParts.d.ts +7 -4
- package/dist/components/core/utils/optionListItemStyles.d.ts +4 -1
- package/dist/components/core/utils/runOpenAfterSqueeze.d.ts +4 -1
- package/dist/components/core/utils/searchInputExpandMotion.d.ts +22 -0
- package/dist/components/core/utils/searchInputExpandMotion.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/createMotionRegistry.d.ts +27 -0
- package/dist/components/core/utils/slotMotion/createMotionScope.d.ts +63 -0
- package/dist/components/core/utils/slotMotion/createMotionScope.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/enterHidesFirstPaint.d.ts +14 -0
- package/dist/components/core/utils/slotMotion/enterHidesFirstPaint.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/index.d.ts +19 -0
- package/dist/components/core/utils/slotMotion/modalSlotMotionHost.d.ts +15 -0
- package/dist/components/core/utils/slotMotion/motionRecipeRegistry.d.ts +27 -0
- package/dist/components/core/utils/slotMotion/motionRecipeRegistry.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/motionValueApi.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/motionVarsApi.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/recipes/chevronRotate.d.ts +2 -0
- package/dist/components/core/utils/slotMotion/recipes/collapsibleHeight.d.ts +3 -0
- package/dist/components/core/utils/slotMotion/recipes/contentFade.d.ts +4 -0
- package/dist/components/core/utils/slotMotion/recipes/drawerSlide.d.ts +5 -0
- package/dist/components/core/utils/slotMotion/recipes/fileRowExit.d.ts +4 -0
- package/dist/components/core/utils/slotMotion/recipes/hoverLiftFirstLevel.d.ts +2 -0
- package/dist/components/core/utils/slotMotion/recipes/hoverLiftGloss.d.ts +2 -0
- package/dist/components/core/utils/slotMotion/recipes/hoverLiftSecondLevel.d.ts +2 -0
- package/dist/components/core/utils/slotMotion/recipes/index.d.ts +2 -0
- package/dist/components/core/utils/slotMotion/recipes/modalSurface.d.ts +7 -0
- package/dist/components/core/utils/slotMotion/recipes/portalSurface.d.ts +3 -0
- package/dist/components/core/utils/slotMotion/recipes/pressSqueeze.d.ts +4 -0
- package/dist/components/core/utils/slotMotion/recipes/searchExpand.d.ts +5 -0
- package/dist/components/core/utils/slotMotion/recipes/selectionFill.d.ts +2 -0
- package/dist/components/core/utils/slotMotion/recipes/selectionMark.d.ts +2 -0
- package/dist/components/core/utils/slotMotion/recipes/switchThumb.d.ts +8 -0
- package/dist/components/core/utils/slotMotion/recipes/toastSurface.d.ts +4 -0
- package/dist/components/core/utils/slotMotion/resolveMotionValue.d.ts +8 -0
- package/dist/components/core/utils/slotMotion/resolveMotionValue.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/runMotionPhase.d.ts +22 -0
- package/dist/components/core/utils/slotMotion/runMotionPhase.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/scheduleNestedEnterBroadcast.d.ts +16 -0
- package/dist/components/core/utils/slotMotion/scheduleNestedEnterBroadcast.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/slotMotionTypes.d.ts +165 -0
- package/dist/components/core/utils/slotMotion/useMotionPart.d.ts +39 -0
- package/dist/components/core/utils/slotMotion/useMotionPointerPhases.d.ts +12 -0
- package/dist/components/core/utils/slotMotion/useSlotLifecycle.d.ts +25 -0
- package/dist/components/core/utils/slotMotion/useSlotLifecycle.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/waitForLeaveGeneration.d.ts +14 -0
- package/dist/components/core/utils/useChevronRotation.d.ts +9 -0
- package/dist/components/core/utils/useCollapsibleHeight.d.ts +10 -1
- package/dist/components/core/utils/useCollapsibleHeight.test.d.ts +1 -0
- package/dist/components/core/utils/useModalMotion.d.ts +12 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +39 -36
- package/dist/index.js +23253 -16825
- package/dist/internal.cjs +1 -1
- package/dist/internal.d.ts +4 -3
- package/dist/internal.js +83 -78
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/themeDefaults.d.ts +7 -0
- package/dist/{themeRuntimeContext-CFUwV5z2.js → themeRuntimeContext-DELPwtpL.js} +1764 -1508
- package/dist/themeRuntimeContext-DknZO7q3.cjs +14 -0
- package/dist/ui.css +49 -51
- package/package.json +3 -2
- package/dist/components/core/SelectionIndicator/useSelectionIndicatorAnimation.d.ts +0 -2
- package/dist/themeRuntimeContext-POhnqI3h.cjs +0 -14
|
@@ -6,4 +6,4 @@ export type LinkComponent = ((props: LinkProps & RefAttributes<HTMLAnchorElement
|
|
|
6
6
|
};
|
|
7
7
|
declare const LinkCompound: LinkComponent;
|
|
8
8
|
export { LinkCompound as Link };
|
|
9
|
-
export type { LinkProps, LinkSize, LinkIconPos, LinkIconProps, LinkClassNames, } from './linkTypes';
|
|
9
|
+
export type { LinkProps, LinkSize, LinkIconPos, LinkIconProps, LinkClassNames, LinkMotion, LinkPartMotion, } from './linkTypes';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LinkAnchorBodyProps, LinkBodyContentProps } from './linkTypes';
|
|
2
2
|
export declare function LinkBodyContent({ size, underline, textVariant, textChildren, startIcon, endIcon, startIconMuted, endIconMuted, usesDefaultAtStart, usesDefaultAtEnd, }: LinkBodyContentProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare function LinkAnchorBody({ href, size, underline, textVariant, textChildren, startIcon, endIcon, startIconMuted, endIconMuted, usesDefaultAtStart, usesDefaultAtEnd, className, setAnchorRef, handlePointerEnter, handlePointerLeave,
|
|
3
|
+
export declare function LinkAnchorBody({ href, size, underline, textVariant, textChildren, startIcon, endIcon, startIconMuted, endIconMuted, usesDefaultAtStart, usesDefaultAtEnd, className, setAnchorRef, handlePointerEnter, handlePointerLeave, pointerHandlers, handleKeyDown, ...rest }: LinkAnchorBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { KeyboardEvent, PointerEvent } from 'react';
|
|
2
|
+
import { LinkMotion, UseLinkAnimationsProps } from './linkTypes';
|
|
3
|
+
export declare function resolveLinkMotionDefaults(): LinkMotion;
|
|
4
|
+
export declare function useLinkAnimations({ forwardedRef, onPointerEnter, onPointerLeave, onPointerOver, onPointerOut, onPointerDown, onPointerUp, onKeyDown, }: UseLinkAnimationsProps): {
|
|
3
5
|
setAnchorRef: (node: HTMLAnchorElement | null) => void;
|
|
4
|
-
handlePointerEnter: (e:
|
|
5
|
-
handlePointerLeave: (e:
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
handlePointerEnter: (e: PointerEvent<HTMLAnchorElement>) => void;
|
|
7
|
+
handlePointerLeave: (e: PointerEvent<HTMLAnchorElement>) => void;
|
|
8
|
+
handleKeyDown: (e: KeyboardEvent<HTMLAnchorElement>) => void;
|
|
9
|
+
pointerHandlers: {
|
|
10
|
+
onPointerOver: (e: PointerEvent<HTMLAnchorElement>) => void;
|
|
11
|
+
onPointerOut: (e: PointerEvent<HTMLAnchorElement>) => void;
|
|
12
|
+
onPointerDown: (e: PointerEvent<HTMLAnchorElement>) => void;
|
|
13
|
+
onPointerUp: (e: PointerEvent<HTMLAnchorElement>) => void;
|
|
14
|
+
};
|
|
8
15
|
};
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import { LinkClassNames, LinkClassNamesProviderProps } from './linkTypes';
|
|
2
2
|
export declare function LinkClassNamesProvider({ classNames, children, }: LinkClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export declare function useLinkClassNames(): LinkClassNames;
|
|
4
|
+
/** Scope only. Defaults and host play live in `linkAnimations.ts`. */
|
|
5
|
+
export declare const LinkMotionProvider: ({ motion, defaults, params, children, }: {
|
|
6
|
+
motion?: import('../utils/slotMotion').MotionSlotMap;
|
|
7
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
8
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
9
|
+
children: import('react').ReactNode;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element, useLinkMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalLinkMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes, ForwardedRef, KeyboardEvent, PointerEvent, ReactNode } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
|
+
import { MotionValue } from '../utils/slotMotion';
|
|
3
4
|
import { ComponentSize } from '../utils/sizeLayout';
|
|
4
5
|
import { IconPosition } from '../utils/iconPosition';
|
|
5
6
|
export type LinkSize = ComponentSize;
|
|
@@ -12,6 +13,17 @@ export type LinkClassNames = {
|
|
|
12
13
|
/** Icon wrapper (both start and end positions). */
|
|
13
14
|
icon?: string;
|
|
14
15
|
};
|
|
16
|
+
export type LinkPartMotion = {
|
|
17
|
+
hoverIn?: MotionValue;
|
|
18
|
+
hoverOut?: MotionValue;
|
|
19
|
+
pressIn?: MotionValue;
|
|
20
|
+
pressOut?: MotionValue;
|
|
21
|
+
};
|
|
22
|
+
export type LinkMotion = {
|
|
23
|
+
root?: LinkPartMotion;
|
|
24
|
+
text?: LinkPartMotion;
|
|
25
|
+
icon?: LinkPartMotion;
|
|
26
|
+
};
|
|
15
27
|
type LinkSharedProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "href"> & {
|
|
16
28
|
children?: ReactNode;
|
|
17
29
|
size?: LinkSize;
|
|
@@ -22,6 +34,8 @@ type LinkSharedProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children"
|
|
|
22
34
|
showDefaultIcon?: boolean;
|
|
23
35
|
defaultIconPosition?: LinkIconPos;
|
|
24
36
|
classNames?: Prettify<LinkClassNames>;
|
|
37
|
+
/** Per-slot motion (`root`, `text`, `icon`). No hover shadow. */
|
|
38
|
+
motion?: Prettify<LinkMotion>;
|
|
25
39
|
};
|
|
26
40
|
export type LinkProps = (LinkSharedProps & {
|
|
27
41
|
/** Merge Link styles onto the single child (router `Link`, custom `<a>`). */
|
|
@@ -72,7 +86,12 @@ export type LinkAnchorBodyProps = LinkBodyContentProps & {
|
|
|
72
86
|
setAnchorRef: (node: HTMLAnchorElement | null) => void;
|
|
73
87
|
handlePointerEnter: (event: PointerEvent<HTMLAnchorElement>) => void;
|
|
74
88
|
handlePointerLeave: (event: PointerEvent<HTMLAnchorElement>) => void;
|
|
75
|
-
|
|
89
|
+
pointerHandlers: {
|
|
90
|
+
onPointerOver: (event: PointerEvent<HTMLAnchorElement>) => void;
|
|
91
|
+
onPointerOut: (event: PointerEvent<HTMLAnchorElement>) => void;
|
|
92
|
+
onPointerDown: (event: PointerEvent<HTMLAnchorElement>) => void;
|
|
93
|
+
onPointerUp: (event: PointerEvent<HTMLAnchorElement>) => void;
|
|
94
|
+
};
|
|
76
95
|
handleKeyDown: (event: KeyboardEvent<HTMLAnchorElement>) => void;
|
|
77
96
|
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children" | "href" | "className">;
|
|
78
97
|
export type LinkIconSlotProps = {
|
|
@@ -85,7 +104,10 @@ export type UseLinkAnimationsProps = {
|
|
|
85
104
|
forwardedRef: ForwardedRef<HTMLAnchorElement>;
|
|
86
105
|
onPointerEnter?: (event: PointerEvent<HTMLAnchorElement>) => void;
|
|
87
106
|
onPointerLeave?: (event: PointerEvent<HTMLAnchorElement>) => void;
|
|
107
|
+
onPointerOver?: (event: PointerEvent<HTMLAnchorElement>) => void;
|
|
108
|
+
onPointerOut?: (event: PointerEvent<HTMLAnchorElement>) => void;
|
|
88
109
|
onPointerDown?: (event: PointerEvent<HTMLAnchorElement>) => void;
|
|
110
|
+
onPointerUp?: (event: PointerEvent<HTMLAnchorElement>) => void;
|
|
89
111
|
onKeyDown?: (event: KeyboardEvent<HTMLAnchorElement>) => void;
|
|
90
112
|
};
|
|
91
113
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ListBoxProps } from './listBoxTypes';
|
|
2
|
-
export type { ListBoxProps, ListBoxSectionProps, ListBoxHeaderProps, ListBoxSeparatorProps, ListBoxEmptyProps, ListBoxItemProps, ListBoxLabelProps, ListBoxHintProps, ListBoxIconProps, ListBoxItemIndicatorProps, ListBoxSize, ListBoxVariant, ListBoxClassNames, } from './listBoxTypes';
|
|
2
|
+
export type { ListBoxProps, ListBoxSectionProps, ListBoxHeaderProps, ListBoxSeparatorProps, ListBoxEmptyProps, ListBoxItemProps, ListBoxLabelProps, ListBoxHintProps, ListBoxIconProps, ListBoxItemIndicatorProps, ListBoxSize, ListBoxVariant, ListBoxClassNames, ListBoxMotion, ListBoxPartMotion, } from './listBoxTypes';
|
|
3
3
|
export { ListBoxRootShell, ListBoxSection, ListBoxHeader, ListBoxSeparator, ListBoxEmpty, ListBoxItem, ListBoxLabel, ListBoxHint, ListBoxIcon, ListBoxItemIndicator, } from './listBoxParts';
|
|
4
4
|
export { useListBox, useListBoxActiveValue } from './listBoxContext';
|
|
5
|
-
export declare function ListBoxRoot({ classNames, children, className, size, variant, multiple, value, defaultValue, onValueChange,
|
|
5
|
+
export declare function ListBoxRoot({ classNames, children, className, size, variant, multiple, value, defaultValue, onValueChange, disabled, activeValue, onActiveValueChange, listId: listIdProp, "aria-label": ariaLabelProp, "aria-labelledby": ariaLabelledByProp, motion, ...rest }: ListBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare namespace ListBoxRoot {
|
|
7
7
|
var displayName: string;
|
|
8
8
|
}
|
|
@@ -10,16 +10,21 @@ export declare const ListBox: typeof ListBoxRoot & {
|
|
|
10
10
|
label?: import('react').ReactNode;
|
|
11
11
|
hint?: import('react').ReactNode;
|
|
12
12
|
icon?: import('react').ReactNode;
|
|
13
|
+
indicator?: boolean;
|
|
14
|
+
motion?: import('../../..').Prettify<import('./listBoxTypes').ListBoxPartMotion>;
|
|
13
15
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
14
16
|
Label: typeof ListBoxLabel;
|
|
15
17
|
Hint: typeof ListBoxHint;
|
|
16
18
|
Icon: typeof ListBoxIcon;
|
|
17
19
|
ItemIndicator: typeof ListBoxItemIndicator & {
|
|
18
|
-
Fill: import('react').ForwardRefExoticComponent<import('
|
|
20
|
+
Fill: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
21
|
+
motion?: import('../../..').Prettify<import('../SelectionIndicator').SelectionIndicatorCheckMotion>;
|
|
22
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
19
23
|
Mark: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
20
24
|
children?: import('react').ReactNode;
|
|
25
|
+
motion?: import('../../..').Prettify<import('../SelectionIndicator').SelectionIndicatorCheckMotion>;
|
|
21
26
|
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
22
27
|
};
|
|
23
28
|
};
|
|
24
29
|
export { useListBox, useListBoxActiveValue };
|
|
25
|
-
export type { ListBoxProps, ListBoxSectionProps, ListBoxHeaderProps, ListBoxSeparatorProps, ListBoxEmptyProps, ListBoxItemProps, ListBoxLabelProps, ListBoxHintProps, ListBoxIconProps, ListBoxItemIndicatorProps, ListBoxSize, ListBoxVariant, ListBoxClassNames, } from './ListBox';
|
|
30
|
+
export type { ListBoxProps, ListBoxSectionProps, ListBoxHeaderProps, ListBoxSeparatorProps, ListBoxEmptyProps, ListBoxItemProps, ListBoxLabelProps, ListBoxHintProps, ListBoxIconProps, ListBoxItemIndicatorProps, ListBoxSize, ListBoxVariant, ListBoxClassNames, ListBoxMotion, ListBoxPartMotion, } from './ListBox';
|
|
@@ -11,13 +11,12 @@ export declare function resolveListBoxItemIndicatorClassNames({ slotClassNames,
|
|
|
11
11
|
}): SelectionIndicatorClassNames;
|
|
12
12
|
export declare function normalizeListBoxValues(value: string | string[] | undefined): string[];
|
|
13
13
|
export declare function partitionListBoxItemChildren(children: ReactNode): import('../utils/optionListItemChildren').OptionListItemParts;
|
|
14
|
-
export declare function resolveListBoxItemLayout({ children, label, hint, icon,
|
|
15
|
-
showIndicator: boolean;
|
|
16
|
-
}): {
|
|
14
|
+
export declare function resolveListBoxItemLayout({ children, label, hint, icon, indicator, }: Pick<UseListBoxItemStateProps, "children" | "label" | "hint" | "icon" | "indicator">): {
|
|
17
15
|
parts: import('../utils/optionListItemChildren').OptionListItemParts;
|
|
18
16
|
hasCompoundIndicator: boolean;
|
|
19
17
|
hasHint: boolean;
|
|
20
18
|
hasIcon: boolean;
|
|
19
|
+
hasRest: boolean;
|
|
21
20
|
isCompound: boolean;
|
|
22
21
|
hasLabel: boolean;
|
|
23
22
|
showIndicatorSlot: boolean;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { MotionScopeValue } from '../utils/slotMotion';
|
|
2
|
+
import { ListBoxMotion } from './listBoxTypes';
|
|
1
3
|
import { RefObject } from 'react';
|
|
2
|
-
import { UseListBoxItemAnimationsProps } from './listBoxTypes';
|
|
3
4
|
export declare function useListBoxRootGlossRef(isGloss: boolean): (node: HTMLElement | null) => void;
|
|
5
|
+
export declare function resolveListBoxMotionDefaults(): ListBoxMotion;
|
|
6
|
+
export declare function playListBoxItemPress(scope: MotionScopeValue, el: HTMLElement | null): void;
|
|
4
7
|
/**
|
|
5
8
|
* Sync `data-active` on the active option. Highlight CSS is the static
|
|
6
9
|
* `data-active:bg-default-hover` class on every item — no React `isActive`.
|
|
@@ -10,9 +13,3 @@ export declare function useListBoxActiveOptionHighlight({ listId, activeValue, r
|
|
|
10
13
|
activeValue: string | null;
|
|
11
14
|
rootRef: RefObject<HTMLElement | null>;
|
|
12
15
|
}): void;
|
|
13
|
-
export declare function useListBoxItemAnimations({ disabled, hasLabel, onPointerDown, onKeyDown, }: UseListBoxItemAnimationsProps): {
|
|
14
|
-
labelMotionRef: RefObject<HTMLElement | null>;
|
|
15
|
-
enableLabelMotion: boolean;
|
|
16
|
-
handlePointerDown: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
|
|
17
|
-
handleKeyDown: (e: import('react').KeyboardEvent<HTMLButtonElement>) => void;
|
|
18
|
-
};
|
|
@@ -18,3 +18,10 @@ export declare function ListBoxSectionLabelProvider({ value, children, }: {
|
|
|
18
18
|
children: ReactNode;
|
|
19
19
|
}): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export declare function useListBoxSectionLabelRegister(): ((id: string | undefined) => void) | null;
|
|
21
|
+
/** Scope only. Defaults and host play live in `listBoxAnimations.ts`. */
|
|
22
|
+
export declare const ListBoxMotionProvider: ({ motion, defaults, params, children, }: {
|
|
23
|
+
motion?: import('../utils/slotMotion').MotionSlotMap;
|
|
24
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
25
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
}) => import("react/jsx-runtime").JSX.Element, useListBoxMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalListBoxMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -25,8 +25,10 @@ export declare const ListBoxItem: import('react').NamedExoticComponent<Omit<impo
|
|
|
25
25
|
label?: import('react').ReactNode;
|
|
26
26
|
hint?: import('react').ReactNode;
|
|
27
27
|
icon?: import('react').ReactNode;
|
|
28
|
+
indicator?: boolean;
|
|
29
|
+
motion?: import('../../..').Prettify<import('./listBoxTypes').ListBoxPartMotion>;
|
|
28
30
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
29
|
-
export declare function ListBoxLabel({ className, ...props }: ListBoxLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare function ListBoxLabel({ className, motion, ...props }: ListBoxLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
30
32
|
export declare namespace ListBoxLabel {
|
|
31
33
|
var displayName: string;
|
|
32
34
|
}
|
|
@@ -34,7 +36,7 @@ export declare function ListBoxHint({ className, ...props }: ListBoxHintProps):
|
|
|
34
36
|
export declare namespace ListBoxHint {
|
|
35
37
|
var displayName: string;
|
|
36
38
|
}
|
|
37
|
-
export declare function ListBoxIcon({ className, ...props }: ListBoxIconProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export declare function ListBoxIcon({ className, motion, ...props }: ListBoxIconProps): import("react/jsx-runtime").JSX.Element;
|
|
38
40
|
export declare namespace ListBoxIcon {
|
|
39
41
|
var displayName: string;
|
|
40
42
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
3
|
import { SelectionIndicatorSize, SelectionIndicatorVariant, SelectionIndicatorClassNames } from '../SelectionIndicator';
|
|
4
|
+
import { MotionValue } from '../utils/slotMotion';
|
|
4
5
|
export type ListBoxSize = "small" | "base" | "mid" | "large";
|
|
5
6
|
export type ListBoxVariant = "default" | "gloss";
|
|
6
7
|
export type ListBoxClassNames = {
|
|
@@ -31,6 +32,17 @@ export type ListBoxClassNames = {
|
|
|
31
32
|
itemIndicatorFill?: string;
|
|
32
33
|
itemIndicatorMark?: string;
|
|
33
34
|
};
|
|
35
|
+
export type ListBoxPartMotion = {
|
|
36
|
+
hoverIn?: MotionValue;
|
|
37
|
+
hoverOut?: MotionValue;
|
|
38
|
+
pressIn?: MotionValue;
|
|
39
|
+
pressOut?: MotionValue;
|
|
40
|
+
};
|
|
41
|
+
export type ListBoxMotion = {
|
|
42
|
+
item?: ListBoxPartMotion;
|
|
43
|
+
label?: ListBoxPartMotion;
|
|
44
|
+
icon?: ListBoxPartMotion;
|
|
45
|
+
};
|
|
34
46
|
export type ListBoxContextValue = {
|
|
35
47
|
listId: string;
|
|
36
48
|
size: ListBoxSize;
|
|
@@ -38,7 +50,6 @@ export type ListBoxContextValue = {
|
|
|
38
50
|
selected: Set<string>;
|
|
39
51
|
selectItem: (value: string) => void;
|
|
40
52
|
setActiveValue: (value: string | null) => void;
|
|
41
|
-
showIndicator: boolean;
|
|
42
53
|
indicatorMode: "radio" | "multi";
|
|
43
54
|
disabled?: boolean;
|
|
44
55
|
/**
|
|
@@ -55,12 +66,12 @@ export type ListBoxProps = Omit<HTMLAttributes<HTMLDivElement>, "children" | "on
|
|
|
55
66
|
value?: string | string[];
|
|
56
67
|
defaultValue?: string | string[];
|
|
57
68
|
onValueChange?: (value: string | string[]) => void;
|
|
58
|
-
selectionIndicator?: boolean;
|
|
59
69
|
disabled?: boolean;
|
|
60
70
|
activeValue?: string | null;
|
|
61
71
|
onActiveValueChange?: (value: string | null) => void;
|
|
62
72
|
listId?: string;
|
|
63
73
|
classNames?: Prettify<ListBoxClassNames>;
|
|
74
|
+
motion?: Prettify<ListBoxMotion>;
|
|
64
75
|
};
|
|
65
76
|
export type ListBoxClassNamesProviderProps = {
|
|
66
77
|
classNames?: Prettify<ListBoxClassNames>;
|
|
@@ -80,10 +91,17 @@ export type ListBoxItemProps = Omit<HTMLAttributes<HTMLButtonElement>, "value">
|
|
|
80
91
|
label?: ReactNode;
|
|
81
92
|
hint?: ReactNode;
|
|
82
93
|
icon?: ReactNode;
|
|
94
|
+
/** Simple API: render selection indicator (same as `<ListBox.ItemIndicator />`). */
|
|
95
|
+
indicator?: boolean;
|
|
96
|
+
motion?: Prettify<ListBoxPartMotion>;
|
|
97
|
+
};
|
|
98
|
+
export type ListBoxLabelProps = HTMLAttributes<HTMLSpanElement> & {
|
|
99
|
+
motion?: Prettify<ListBoxPartMotion>;
|
|
83
100
|
};
|
|
84
|
-
export type ListBoxLabelProps = HTMLAttributes<HTMLSpanElement>;
|
|
85
101
|
export type ListBoxHintProps = HTMLAttributes<HTMLSpanElement>;
|
|
86
|
-
export type ListBoxIconProps = HTMLAttributes<HTMLSpanElement
|
|
102
|
+
export type ListBoxIconProps = HTMLAttributes<HTMLSpanElement> & {
|
|
103
|
+
motion?: Prettify<ListBoxPartMotion>;
|
|
104
|
+
};
|
|
87
105
|
export type ListBoxItemIndicatorClassNames = SelectionIndicatorClassNames & Partial<Pick<ListBoxClassNames, "itemIndicator" | "itemIndicatorShell" | "itemIndicatorFill" | "itemIndicatorMark">>;
|
|
88
106
|
export type ListBoxItemIndicatorProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
89
107
|
variant?: SelectionIndicatorVariant;
|
|
@@ -99,10 +117,4 @@ export type ListBoxRootShellProps = Omit<HTMLAttributes<HTMLDivElement>, "childr
|
|
|
99
117
|
ariaLabelledBy?: string;
|
|
100
118
|
children?: ReactNode;
|
|
101
119
|
};
|
|
102
|
-
export type UseListBoxItemStateProps = Pick<ListBoxItemProps, "children" | "label" | "hint" | "icon" | "value" | "disabled">;
|
|
103
|
-
export type UseListBoxItemAnimationsProps = {
|
|
104
|
-
disabled: boolean;
|
|
105
|
-
hasLabel: boolean;
|
|
106
|
-
onPointerDown?: HTMLAttributes<HTMLButtonElement>["onPointerDown"];
|
|
107
|
-
onKeyDown?: HTMLAttributes<HTMLButtonElement>["onKeyDown"];
|
|
108
|
-
};
|
|
120
|
+
export type UseListBoxItemStateProps = Pick<ListBoxItemProps, "children" | "label" | "hint" | "icon" | "indicator" | "value" | "disabled">;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { UseListBoxItemStateProps } from './listBoxTypes';
|
|
2
|
-
export declare function useListBoxItemState({ children, label, hint, icon, value, disabled: disabledProp, }: UseListBoxItemStateProps): {
|
|
2
|
+
export declare function useListBoxItemState({ children, label, hint, icon, indicator, value, disabled: disabledProp, }: UseListBoxItemStateProps): {
|
|
3
3
|
parts: import('../utils/optionListItemChildren').OptionListItemParts;
|
|
4
4
|
hasCompoundIndicator: boolean;
|
|
5
5
|
hasHint: boolean;
|
|
6
6
|
hasIcon: boolean;
|
|
7
|
+
hasRest: boolean;
|
|
7
8
|
isCompound: boolean;
|
|
8
9
|
hasLabel: boolean;
|
|
9
10
|
showIndicatorSlot: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ListBoxContextValue, UseListBoxRootStateProps } from './listBoxTypes';
|
|
2
|
-
export declare function useListBoxRootState({ size, multiple, value: valueProp, defaultValue, onValueChange,
|
|
2
|
+
export declare function useListBoxRootState({ size, multiple, value: valueProp, defaultValue, onValueChange, disabled, activeValue: activeValueProp, onActiveValueChange, listId: listIdProp, }: UseListBoxRootStateProps): {
|
|
3
3
|
listId: string;
|
|
4
4
|
contextValue: ListBoxContextValue;
|
|
5
5
|
activeValue: string | null;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export type { LoadingClassNames, LoadingColor, LoadingProps, LoadingSize, LoadingType, } from './loadingTypes';
|
|
1
|
+
export type { LoadingClassNames, LoadingColor, LoadingMotion, LoadingPartMotion, LoadingProps, LoadingSize, LoadingType, } from './loadingTypes';
|
|
2
2
|
export declare const Loading: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
3
3
|
type?: import('./loadingTypes').LoadingType;
|
|
4
4
|
size?: import('./loadingTypes').LoadingSize;
|
|
5
5
|
color?: import('./loadingTypes').LoadingColor;
|
|
6
6
|
label?: string;
|
|
7
7
|
classNames?: import('../../..').Prettify<import('./loadingTypes').LoadingClassNames>;
|
|
8
|
+
motion?: import('../../..').Prettify<import('./loadingTypes').LoadingMotion>;
|
|
8
9
|
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Loading, type LoadingProps, type LoadingSize, type LoadingColor, type LoadingType, type LoadingClassNames, } from './Loading';
|
|
1
|
+
export { Loading, type LoadingProps, type LoadingSize, type LoadingColor, type LoadingType, type LoadingClassNames, type LoadingMotion, type LoadingPartMotion, } from './Loading';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
import { LoadingSize } from './loadingTypes';
|
|
2
|
+
import { LoadingMotion, LoadingSize } from './loadingTypes';
|
|
3
3
|
export declare function useLoadingDotsAnimation(trackRef: RefObject<HTMLElement | null>, size: LoadingSize): void;
|
|
4
|
+
export declare function resolveLoadingMotionDefaults(): LoadingMotion;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Scope only. Defaults and host play live in `loadingAnimations.ts`. */
|
|
2
|
+
export declare const LoadingMotionProvider: ({ motion, defaults, params, children, }: {
|
|
3
|
+
motion?: import('../utils/slotMotion').MotionSlotMap;
|
|
4
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
5
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
6
|
+
children: import('react').ReactNode;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element, useLoadingMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalLoadingMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
|
+
import { MotionValue } from '../utils/slotMotion';
|
|
3
4
|
import { ComponentSize } from '../utils/sizeLayout';
|
|
4
5
|
export type LoadingSize = ComponentSize;
|
|
5
6
|
export type LoadingType = "spinner" | "dots";
|
|
@@ -10,12 +11,30 @@ export type LoadingClassNames = {
|
|
|
10
11
|
dots?: string;
|
|
11
12
|
dot?: string;
|
|
12
13
|
};
|
|
14
|
+
export type LoadingPartMotion = {
|
|
15
|
+
hoverIn?: MotionValue;
|
|
16
|
+
hoverOut?: MotionValue;
|
|
17
|
+
pressIn?: MotionValue;
|
|
18
|
+
pressOut?: MotionValue;
|
|
19
|
+
enter?: MotionValue;
|
|
20
|
+
leave?: MotionValue;
|
|
21
|
+
};
|
|
22
|
+
export type LoadingMotion = {
|
|
23
|
+
root?: LoadingPartMotion;
|
|
24
|
+
spinner?: LoadingPartMotion;
|
|
25
|
+
dots?: LoadingPartMotion;
|
|
26
|
+
};
|
|
13
27
|
export type LoadingProps = HTMLAttributes<HTMLSpanElement> & {
|
|
14
28
|
type?: LoadingType;
|
|
15
29
|
size?: LoadingSize;
|
|
16
30
|
color?: LoadingColor;
|
|
17
31
|
label?: string;
|
|
18
32
|
classNames?: Prettify<LoadingClassNames>;
|
|
33
|
+
/**
|
|
34
|
+
* Per-slot motion (`root`, `spinner`, `dots`). Dot wave stays kit-internal.
|
|
35
|
+
* Defaults are empty — `enter` runs on mount only when set.
|
|
36
|
+
*/
|
|
37
|
+
motion?: Prettify<LoadingMotion>;
|
|
19
38
|
};
|
|
20
39
|
export type LoadingDotsLayout = {
|
|
21
40
|
dotClass: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MeterProps } from './meterTypes';
|
|
2
|
-
export type { MeterClassNames, MeterErrorProps, MeterHeaderProps, MeterHintProps, MeterOrientation, MeterProps, MeterSize, MeterTrackProps, MeterValueProps, } from './meterTypes';
|
|
2
|
+
export type { MeterClassNames, MeterErrorProps, MeterHeaderProps, MeterHintProps, MeterOrientation, MeterProps, MeterSize, MeterTrackProps, MeterValueProps, MeterMotion, MeterPartMotion, } from './meterTypes';
|
|
3
3
|
export { MeterError, MeterHeader, MeterHint, MeterLabel, MeterSimpleBody, MeterTrack, MeterValue, } from './meterParts';
|
|
4
4
|
export { useMeterFieldContext, useOptionalMeterFieldContext, } from './meterContext';
|
|
5
|
-
export declare function MeterRoot({ children, className, classNames, id, orientation, label, showValue, valueText, hint, error, value, min, max, size, thickness, color, formatValue, ...divRest }: MeterProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function MeterRoot({ children, className, classNames, id, orientation, label, showValue, valueText, hint, error, value, min, max, size, thickness, color, formatValue, motion, ...divRest }: MeterProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare namespace MeterRoot {
|
|
7
7
|
var displayName: string;
|
|
8
8
|
}
|
|
@@ -16,9 +16,11 @@ export declare const Meter: typeof MeterRoot & {
|
|
|
16
16
|
formatValue?: (value: number) => string;
|
|
17
17
|
orientation?: import('./meterTypes').MeterOrientation;
|
|
18
18
|
className?: string;
|
|
19
|
+
motion?: import('../../..').Prettify<import('./meterTypes').MeterPartMotion>;
|
|
19
20
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
20
21
|
};
|
|
21
22
|
export type { MeterTrackProps, MeterSize, MeterOrientation, MeterClassNames, } from './Meter';
|
|
23
|
+
export type { MeterMotion, MeterPartMotion, } from './meterTypes';
|
|
22
24
|
export type { MeterProps, MeterHeaderProps, MeterValueProps, MeterHintProps, MeterErrorProps, } from './Meter';
|
|
23
25
|
export { useMeterFieldContext, useOptionalMeterFieldContext, } from './Meter';
|
|
24
26
|
export type { MeterDisplayState, MeterFieldContextValue } from './meterTypes';
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MotionScopeValue } from '../utils/slotMotion';
|
|
2
|
+
import { MeterMotion, UseMeterFillAnimationProps } from './meterTypes';
|
|
3
|
+
export declare function resolveMeterMotionDefaults(): MeterMotion;
|
|
4
|
+
export declare function useMeterTrackSlotMotion(scope: MotionScopeValue | null, value: number): void;
|
|
2
5
|
export declare function useMeterFillAnimation({ fillTargetStyle, isHorizontal, }: UseMeterFillAnimationProps): {
|
|
3
6
|
fillRef: import('react').RefObject<HTMLSpanElement | null>;
|
|
4
7
|
};
|
|
@@ -8,4 +8,11 @@ export declare function MeterClassNamesProvider({ classNames, children, }: Meter
|
|
|
8
8
|
export declare function useMeterFieldContext(): MeterFieldContextValue;
|
|
9
9
|
export declare function useOptionalMeterFieldContext(): MeterFieldContextValue | null;
|
|
10
10
|
export declare function useMeterClassNames(): MeterClassNames;
|
|
11
|
+
/** Scope only. Defaults and host play live in `meterAnimations.ts`. */
|
|
12
|
+
export declare const MeterMotionProvider: ({ motion, defaults, params, children, }: {
|
|
13
|
+
motion?: import('../utils/slotMotion').MotionSlotMap;
|
|
14
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
15
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
16
|
+
children: import('react').ReactNode;
|
|
17
|
+
}) => import("react/jsx-runtime").JSX.Element, useMeterMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalMeterMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
11
18
|
export { MeterFieldContext };
|
|
@@ -5,11 +5,11 @@ export declare function MeterLabel({ className, classNames, ...rest }: LabelProp
|
|
|
5
5
|
export declare namespace MeterLabel {
|
|
6
6
|
var displayName: string;
|
|
7
7
|
}
|
|
8
|
-
export declare function MeterHeader({ children, className, ...rest }: MeterHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function MeterHeader({ children, className, motion, ...rest }: MeterHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export declare namespace MeterHeader {
|
|
10
10
|
var displayName: string;
|
|
11
11
|
}
|
|
12
|
-
export declare function MeterValue({ children, className, ...rest }: MeterValueProps): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
export declare function MeterValue({ children, className, motion, ...rest }: MeterValueProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
13
|
export declare namespace MeterValue {
|
|
14
14
|
var displayName: string;
|
|
15
15
|
}
|
|
@@ -31,4 +31,5 @@ export declare const MeterTrack: import('react').ForwardRefExoticComponent<Omit<
|
|
|
31
31
|
formatValue?: (value: number) => string;
|
|
32
32
|
orientation?: import('./meterTypes').MeterOrientation;
|
|
33
33
|
className?: string;
|
|
34
|
+
motion?: import('../../..').Prettify<import('./meterTypes').MeterPartMotion>;
|
|
34
35
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
|
+
import { MotionValue } from '../utils/slotMotion';
|
|
3
4
|
export type MeterSize = "small" | "base" | "mid" | "large";
|
|
4
5
|
export type MeterOrientation = "horizontal" | "vertical";
|
|
5
6
|
export type MeterClassNames = {
|
|
@@ -20,6 +21,22 @@ export type MeterClassNames = {
|
|
|
20
21
|
/** `Meter.Error`. */
|
|
21
22
|
error?: string;
|
|
22
23
|
};
|
|
24
|
+
export type MeterPartMotion = {
|
|
25
|
+
hoverIn?: MotionValue;
|
|
26
|
+
hoverOut?: MotionValue;
|
|
27
|
+
pressIn?: MotionValue;
|
|
28
|
+
pressOut?: MotionValue;
|
|
29
|
+
enter?: MotionValue;
|
|
30
|
+
leave?: MotionValue;
|
|
31
|
+
/** Plays when `value` changes. Fill width/height stays kit-internal. */
|
|
32
|
+
change?: MotionValue;
|
|
33
|
+
};
|
|
34
|
+
export type MeterMotion = {
|
|
35
|
+
track?: MeterPartMotion;
|
|
36
|
+
fill?: MeterPartMotion;
|
|
37
|
+
header?: MeterPartMotion;
|
|
38
|
+
value?: MeterPartMotion;
|
|
39
|
+
};
|
|
23
40
|
export type MeterDisplayState = {
|
|
24
41
|
clampedValue: number;
|
|
25
42
|
statusText: string;
|
|
@@ -47,8 +64,9 @@ export type MeterTrackProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> &
|
|
|
47
64
|
formatValue?: (value: number) => string;
|
|
48
65
|
orientation?: MeterOrientation;
|
|
49
66
|
className?: string;
|
|
67
|
+
motion?: Prettify<MeterPartMotion>;
|
|
50
68
|
};
|
|
51
|
-
export type MeterProps = HTMLAttributes<HTMLDivElement> & Partial<MeterTrackProps
|
|
69
|
+
export type MeterProps = HTMLAttributes<HTMLDivElement> & Partial<Omit<MeterTrackProps, "motion">> & {
|
|
52
70
|
children?: ReactNode;
|
|
53
71
|
id?: string;
|
|
54
72
|
orientation?: MeterOrientation;
|
|
@@ -58,6 +76,12 @@ export type MeterProps = HTMLAttributes<HTMLDivElement> & Partial<MeterTrackProp
|
|
|
58
76
|
hint?: ReactNode;
|
|
59
77
|
error?: ReactNode;
|
|
60
78
|
classNames?: Prettify<MeterClassNames>;
|
|
79
|
+
/**
|
|
80
|
+
* Per-slot motion (`track`, `fill`, `header`, `value`).
|
|
81
|
+
* Fill geometry (`width`/`height`) is kit-internal. Phase `change` plays on `track`
|
|
82
|
+
* when value updates (not on `fill`, so the kit tween is not killed).
|
|
83
|
+
*/
|
|
84
|
+
motion?: Prettify<MeterMotion>;
|
|
61
85
|
};
|
|
62
86
|
export type MeterClassNamesProviderProps = {
|
|
63
87
|
classNames?: Prettify<MeterClassNames>;
|
|
@@ -65,9 +89,11 @@ export type MeterClassNamesProviderProps = {
|
|
|
65
89
|
};
|
|
66
90
|
export type MeterHeaderProps = HTMLAttributes<HTMLDivElement> & {
|
|
67
91
|
children?: ReactNode;
|
|
92
|
+
motion?: Prettify<MeterPartMotion>;
|
|
68
93
|
};
|
|
69
94
|
export type MeterValueProps = HTMLAttributes<HTMLSpanElement> & {
|
|
70
95
|
children?: ReactNode;
|
|
96
|
+
motion?: Prettify<MeterPartMotion>;
|
|
71
97
|
};
|
|
72
98
|
export type MeterHintProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
73
99
|
children?: ReactNode;
|
|
@@ -75,7 +101,7 @@ export type MeterHintProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
|
75
101
|
export type MeterErrorProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
76
102
|
children?: ReactNode;
|
|
77
103
|
};
|
|
78
|
-
export type UseMeterRootStateProps = Omit<MeterProps, "className" | "classNames">;
|
|
104
|
+
export type UseMeterRootStateProps = Omit<MeterProps, "className" | "classNames" | "motion">;
|
|
79
105
|
export type UseMeterTrackStateProps = Pick<MeterTrackProps, "value" | "min" | "max" | "size" | "thickness" | "color" | "formatValue" | "orientation"> & {
|
|
80
106
|
"aria-describedby"?: string;
|
|
81
107
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { PaginationClassNames, PaginationContentProps, PaginationEllipsisProps, PaginationItemProps, PaginationNavButtonProps, PaginationPageProps, PaginationPagesProps, PaginationProps, PaginationSummaryProps, } from './paginationTypes';
|
|
1
|
+
export type { PaginationClassNames, PaginationContentProps, PaginationEllipsisProps, PaginationItemProps, PaginationNavButtonProps, PaginationPageProps, PaginationPagesProps, PaginationProps, PaginationSummaryProps, PaginationMotion, PaginationPartMotion, } from './paginationTypes';
|
|
2
2
|
export { PaginationContent, PaginationEllipsis, PaginationItem, PaginationNext, PaginationNextIcon, PaginationPage, PaginationPages, PaginationPrevious, PaginationPreviousIcon, PaginationRootShell, PaginationSummary, } from './paginationParts';
|
|
3
3
|
export declare const PaginationRoot: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLElement>, "children"> & {
|
|
4
4
|
children?: import('react').ReactNode;
|
|
@@ -8,4 +8,5 @@ export declare const PaginationRoot: import('react').ForwardRefExoticComponent<O
|
|
|
8
8
|
onPageChange?: (page: number) => void;
|
|
9
9
|
siblingCount?: number;
|
|
10
10
|
classNames?: import('../../..').Prettify<import('./paginationTypes').PaginationClassNames>;
|
|
11
|
+
motion?: import('../../..').Prettify<import('./paginationTypes').PaginationMotion>;
|
|
11
12
|
} & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -7,20 +7,26 @@ export declare const Pagination: import('react').ForwardRefExoticComponent<Omit<
|
|
|
7
7
|
onPageChange?: (page: number) => void;
|
|
8
8
|
siblingCount?: number;
|
|
9
9
|
classNames?: import('../../..').Prettify<import('./paginationTypes').PaginationClassNames>;
|
|
10
|
+
motion?: import('../../..').Prettify<import('./paginationTypes').PaginationMotion>;
|
|
10
11
|
} & import('react').RefAttributes<HTMLElement>> & {
|
|
11
12
|
Summary: import('react').ForwardRefExoticComponent<import('./paginationTypes').PaginationSummaryProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
13
|
Content: import('react').ForwardRefExoticComponent<import('./paginationTypes').PaginationContentProps & import('react').RefAttributes<HTMLOListElement>>;
|
|
13
14
|
Item: import('react').ForwardRefExoticComponent<import('./paginationTypes').PaginationItemProps & import('react').RefAttributes<HTMLLIElement>>;
|
|
14
|
-
Previous: import('react').ForwardRefExoticComponent<import('
|
|
15
|
-
|
|
15
|
+
Previous: import('react').ForwardRefExoticComponent<import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
16
|
+
motion?: import('../../..').Prettify<import('./paginationTypes').PaginationPartMotion>;
|
|
17
|
+
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
Next: import('react').ForwardRefExoticComponent<import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
19
|
+
motion?: import('../../..').Prettify<import('./paginationTypes').PaginationPartMotion>;
|
|
20
|
+
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
16
21
|
PreviousIcon: import('react').ForwardRefExoticComponent<import('react-icons').IconBaseProps & import('react').RefAttributes<SVGSVGElement>>;
|
|
17
22
|
NextIcon: import('react').ForwardRefExoticComponent<import('react-icons').IconBaseProps & import('react').RefAttributes<SVGSVGElement>>;
|
|
18
23
|
Page: import('react').ForwardRefExoticComponent<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
19
24
|
page: number;
|
|
20
25
|
active?: boolean;
|
|
21
26
|
children?: import('react').ReactNode;
|
|
27
|
+
motion?: import('../../..').Prettify<import('./paginationTypes').PaginationPartMotion>;
|
|
22
28
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
23
29
|
Pages: typeof PaginationPages;
|
|
24
30
|
Ellipsis: import('react').ForwardRefExoticComponent<import('./paginationTypes').PaginationEllipsisProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
25
31
|
};
|
|
26
|
-
export type { PaginationProps, PaginationClassNames, PaginationSummaryProps, PaginationContentProps, PaginationItemProps, PaginationNavButtonProps, PaginationPageProps, PaginationEllipsisProps, PaginationPagesProps, } from './Pagination';
|
|
32
|
+
export type { PaginationProps, PaginationClassNames, PaginationSummaryProps, PaginationContentProps, PaginationItemProps, PaginationNavButtonProps, PaginationPageProps, PaginationEllipsisProps, PaginationPagesProps, PaginationMotion, PaginationPartMotion, } from './Pagination';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ForwardedRef, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { PaginationMotion } from './paginationTypes';
|
|
2
3
|
export type PaginationFlipIdentity = {
|
|
3
4
|
/** Current page — primary trigger for FLIP when using `Pagination.Pages`. */
|
|
4
5
|
page?: number;
|
|
@@ -16,3 +17,4 @@ export declare function usePaginationContentRef(forwardedRef: ForwardedRef<HTMLO
|
|
|
16
17
|
olRef: RefObject<HTMLOListElement | null>;
|
|
17
18
|
setRefs: (node: HTMLOListElement | null) => void;
|
|
18
19
|
};
|
|
20
|
+
export declare function resolvePaginationControlMotionDefaults(): PaginationMotion;
|
|
@@ -7,3 +7,10 @@ export declare function PaginationClassNamesProvider({ classNames, children, }:
|
|
|
7
7
|
export declare function usePagination(): PaginationContextValue;
|
|
8
8
|
export declare function useOptionalPagination(): PaginationContextValue | null;
|
|
9
9
|
export declare function usePaginationClassNames(): PaginationClassNames;
|
|
10
|
+
/** Scope only. Defaults and host play live in `paginationAnimations.ts`. */
|
|
11
|
+
export declare const PaginationMotionProvider: ({ motion, defaults, params, children, }: {
|
|
12
|
+
motion?: import('../utils/slotMotion').MotionSlotMap;
|
|
13
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
14
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
15
|
+
children: import('react').ReactNode;
|
|
16
|
+
}) => import("react/jsx-runtime").JSX.Element, usePaginationMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalPaginationMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|