burne-ui 1.8.5 → 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/dropdownParts.d.ts +1 -0
- package/dist/components/core/Dropdown/dropdownSubParts.d.ts +1 -0
- package/dist/components/core/Dropdown/dropdownTypes.d.ts +30 -0
- package/dist/components/core/Dropdown/index.d.ts +7 -2
- 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 +36 -2
- 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 +6 -2
- 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 +3 -2
- package/dist/components/core/ListBox/listBoxTypes.d.ts +20 -8
- 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/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/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/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 +23101 -16687
- 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
|
@@ -2,6 +2,7 @@ import { HTMLAttributes, InputHTMLAttributes, KeyboardEvent, LabelHTMLAttributes
|
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
3
|
import { FieldErrorProps, FieldHintProps } from '../Field';
|
|
4
4
|
import { LabelProps } from '../Label';
|
|
5
|
+
import { MotionValue } from '../utils/slotMotion';
|
|
5
6
|
import { SwitchSize } from './switchGeometry';
|
|
6
7
|
export type { SwitchSize };
|
|
7
8
|
export type SwitchLabelPosition = "left" | "right";
|
|
@@ -22,6 +23,16 @@ export type SwitchClassNames = {
|
|
|
22
23
|
simpleLabelWrap?: string;
|
|
23
24
|
simpleLabelText?: string;
|
|
24
25
|
};
|
|
26
|
+
export type SwitchCheckMotion = {
|
|
27
|
+
check?: MotionValue;
|
|
28
|
+
uncheck?: MotionValue;
|
|
29
|
+
};
|
|
30
|
+
export type SwitchMotion = {
|
|
31
|
+
fill?: SwitchCheckMotion;
|
|
32
|
+
thumb?: SwitchCheckMotion;
|
|
33
|
+
iconOff?: SwitchCheckMotion;
|
|
34
|
+
iconOn?: SwitchCheckMotion;
|
|
35
|
+
};
|
|
25
36
|
export type SwitchFieldContextValue = {
|
|
26
37
|
switchId: string;
|
|
27
38
|
hintId: string;
|
|
@@ -73,15 +84,20 @@ export type SwitchTrackProps = HTMLAttributes<HTMLSpanElement> & {
|
|
|
73
84
|
iconOn?: ReactNode;
|
|
74
85
|
gloss?: boolean;
|
|
75
86
|
classNames?: Prettify<Pick<SwitchClassNames, "track" | "fill" | "thumb" | "thumbShell" | "icon">>;
|
|
87
|
+
motion?: Prettify<SwitchMotion>;
|
|
88
|
+
};
|
|
89
|
+
export type SwitchFillProps = HTMLAttributes<HTMLSpanElement> & {
|
|
90
|
+
motion?: Prettify<SwitchCheckMotion>;
|
|
76
91
|
};
|
|
77
|
-
export type SwitchFillProps = HTMLAttributes<HTMLSpanElement>;
|
|
78
92
|
export type SwitchThumbProps = HTMLAttributes<HTMLSpanElement> & {
|
|
79
93
|
children?: ReactNode;
|
|
94
|
+
motion?: Prettify<SwitchCheckMotion>;
|
|
80
95
|
};
|
|
81
96
|
export type SwitchIconWhen = "off" | "on";
|
|
82
97
|
export type SwitchIconProps = HTMLAttributes<HTMLSpanElement> & {
|
|
83
98
|
when: SwitchIconWhen;
|
|
84
99
|
children?: ReactNode;
|
|
100
|
+
motion?: Prettify<SwitchCheckMotion>;
|
|
85
101
|
};
|
|
86
102
|
export type SwitchProps = Omit<LabelHTMLAttributes<HTMLLabelElement>, "children" | "htmlFor" | "onChange" | "onPointerDown"> & {
|
|
87
103
|
children?: ReactNode;
|
|
@@ -93,6 +109,7 @@ export type SwitchProps = Omit<LabelHTMLAttributes<HTMLLabelElement>, "children"
|
|
|
93
109
|
disabled?: boolean;
|
|
94
110
|
className?: string;
|
|
95
111
|
classNames?: Prettify<SwitchClassNames>;
|
|
112
|
+
motion?: Prettify<SwitchMotion>;
|
|
96
113
|
onPointerDown?: (e: PointerEvent<HTMLLabelElement>) => void;
|
|
97
114
|
};
|
|
98
115
|
export type SwitchSimpleProps = SwitchProps & SwitchControlProps;
|
|
@@ -106,7 +123,7 @@ export type SwitchClassNamesProviderProps = {
|
|
|
106
123
|
classNames?: Prettify<SwitchClassNames>;
|
|
107
124
|
children: ReactNode;
|
|
108
125
|
};
|
|
109
|
-
export type UseSwitchRootStateProps = Omit<SwitchProps, "className" | "classNames" | "onPointerDown"> & Partial<SwitchControlProps>;
|
|
126
|
+
export type UseSwitchRootStateProps = Omit<SwitchProps, "className" | "classNames" | "onPointerDown" | "motion"> & Partial<SwitchControlProps>;
|
|
110
127
|
export type UseSwitchAnimationsProps = {
|
|
111
128
|
isDisabled?: boolean;
|
|
112
129
|
enableTextMotion: boolean;
|
|
@@ -120,6 +137,7 @@ export type UseSwitchTrackAnimationsProps = {
|
|
|
120
137
|
size: SwitchSize;
|
|
121
138
|
thickness?: number | string;
|
|
122
139
|
squeezeToken: number;
|
|
140
|
+
travelPxRef: RefObject<number>;
|
|
123
141
|
trackRef: RefObject<HTMLSpanElement | null>;
|
|
124
142
|
trackFillRef: RefObject<HTMLSpanElement | null>;
|
|
125
143
|
thumbRef: RefObject<HTMLSpanElement | null>;
|
|
@@ -33,6 +33,13 @@ export declare function useSwitchRootState({ children, label, hint, error, label
|
|
|
33
33
|
slot?: string | undefined;
|
|
34
34
|
style?: import('react').CSSProperties | undefined;
|
|
35
35
|
title?: string | undefined;
|
|
36
|
+
hidden?: boolean | undefined;
|
|
37
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
38
|
+
onPointerOver?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
39
|
+
onPointerOut?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
40
|
+
onPointerUp?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
41
|
+
dir?: string | undefined;
|
|
42
|
+
id?: string | undefined;
|
|
36
43
|
defaultChecked?: boolean | undefined;
|
|
37
44
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
38
45
|
suppressContentEditableWarning?: boolean | undefined;
|
|
@@ -42,11 +49,8 @@ export declare function useSwitchRootState({ children, label, hint, error, label
|
|
|
42
49
|
autoFocus?: boolean | undefined;
|
|
43
50
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
44
51
|
contextMenu?: string | undefined;
|
|
45
|
-
dir?: string | undefined;
|
|
46
52
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
47
53
|
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined;
|
|
48
|
-
hidden?: boolean | undefined;
|
|
49
|
-
id?: string | undefined;
|
|
50
54
|
lang?: string | undefined;
|
|
51
55
|
nonce?: string | undefined;
|
|
52
56
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
@@ -103,7 +107,6 @@ export declare function useSwitchRootState({ children, label, hint, error, label
|
|
|
103
107
|
"aria-flowto"?: string | undefined;
|
|
104
108
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
105
109
|
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
106
|
-
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
107
110
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
108
111
|
"aria-keyshortcuts"?: string | undefined;
|
|
109
112
|
"aria-label"?: string | undefined;
|
|
@@ -266,15 +269,12 @@ export declare function useSwitchRootState({ children, label, hint, error, label
|
|
|
266
269
|
onPointerDownCapture?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
267
270
|
onPointerMove?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
268
271
|
onPointerMoveCapture?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
269
|
-
onPointerUp?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
270
272
|
onPointerUpCapture?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
271
273
|
onPointerCancel?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
272
274
|
onPointerCancelCapture?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
273
275
|
onPointerEnter?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
274
276
|
onPointerLeave?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
275
|
-
onPointerOver?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
276
277
|
onPointerOverCapture?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
277
|
-
onPointerOut?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
278
278
|
onPointerOutCapture?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
279
279
|
onGotPointerCapture?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
280
280
|
onGotPointerCaptureCapture?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
@@ -305,12 +305,14 @@ export declare function useSwitchRootState({ children, label, hint, error, label
|
|
|
305
305
|
onPointerDown?: (import('react').PointerEventHandler<HTMLLabelElement> & import('react').PointerEventHandler<HTMLInputElement>) | undefined;
|
|
306
306
|
height?: number | string | undefined | undefined;
|
|
307
307
|
pattern?: string | undefined | undefined;
|
|
308
|
+
min?: number | string | undefined | undefined;
|
|
309
|
+
max?: number | string | undefined | undefined;
|
|
310
|
+
width?: number | string | undefined | undefined;
|
|
311
|
+
value?: string | number | readonly string[] | undefined;
|
|
312
|
+
name?: string | undefined | undefined;
|
|
308
313
|
onChange?: import('react').ChangeEventHandler<HTMLInputElement, HTMLInputElement> | undefined;
|
|
309
314
|
list?: string | undefined | undefined;
|
|
310
315
|
step?: number | string | undefined | undefined;
|
|
311
|
-
width?: number | string | undefined | undefined;
|
|
312
|
-
name?: string | undefined | undefined;
|
|
313
|
-
value?: string | number | readonly string[] | undefined;
|
|
314
316
|
multiple?: boolean | undefined | undefined;
|
|
315
317
|
required?: boolean | undefined | undefined;
|
|
316
318
|
autoComplete?: import('react').HTMLInputAutoCompleteAttribute | undefined;
|
|
@@ -323,9 +325,7 @@ export declare function useSwitchRootState({ children, label, hint, error, label
|
|
|
323
325
|
formMethod?: string | undefined | undefined;
|
|
324
326
|
formNoValidate?: boolean | undefined | undefined;
|
|
325
327
|
formTarget?: string | undefined | undefined;
|
|
326
|
-
max?: number | string | undefined | undefined;
|
|
327
328
|
maxLength?: number | undefined | undefined;
|
|
328
|
-
min?: number | string | undefined | undefined;
|
|
329
329
|
minLength?: number | undefined | undefined;
|
|
330
330
|
placeholder?: string | undefined | undefined;
|
|
331
331
|
readOnly?: boolean | undefined | undefined;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { TableBody, TableCell, TableColumn, TableContent, TableFooter, TableHeader, TableHeaderRow, TableLabel, TableRow, TableScrollContainer } from './tableParts';
|
|
2
|
-
export type { TableProps, TableVariant, TableRowTone, TableScrollContainerProps, TableContentProps, TableHeaderProps, TableHeaderRowProps, TableColumnProps, TableColumnRenderProps, TableColumnSortIconRenderProps, TableLabelProps, TableBodyProps, TableRowProps, TableCellProps, TableFooterProps, SortDescriptor, SortDirection, SelectionMode, Selection, TableClassNames, } from './tableTypes';
|
|
2
|
+
export type { TableProps, TableVariant, TableRowTone, TableScrollContainerProps, TableContentProps, TableHeaderProps, TableHeaderRowProps, TableColumnProps, TableColumnRenderProps, TableColumnSortIconRenderProps, TableLabelProps, TableBodyProps, TableRowProps, TableCellProps, TableFooterProps, SortDescriptor, SortDirection, SelectionMode, Selection, TableClassNames, TableMotion, TablePartMotion, } from './tableTypes';
|
|
3
3
|
export { TABLE_ROW_TONE_SURFACE } from './tableStyles';
|
|
4
4
|
export declare const TableRoot: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
5
5
|
variant?: import('./tableTypes').TableVariant;
|
|
6
6
|
classNames?: import('../../..').Prettify<import('./tableTypes').TableClassNames>;
|
|
7
|
+
motion?: import('../../..').Prettify<import('./tableTypes').TableMotion>;
|
|
7
8
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
8
9
|
export { TableScrollContainer, TableContent, TableHeader, TableHeaderRow, TableColumn, TableLabel, TableBody, TableRow, TableCell, TableFooter, };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export declare const Table: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
2
2
|
variant?: import('./tableTypes').TableVariant;
|
|
3
3
|
classNames?: import('../../..').Prettify<import('./tableTypes').TableClassNames>;
|
|
4
|
+
motion?: import('../../..').Prettify<import('./tableTypes').TableMotion>;
|
|
4
5
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
5
|
-
ScrollContainer: import('react').ForwardRefExoticComponent<import('
|
|
6
|
+
ScrollContainer: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
7
|
+
motion?: import('../../..').Prettify<import('./tableTypes').TablePartMotion>;
|
|
8
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
9
|
Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLTableElement> & {
|
|
7
10
|
"aria-label"?: string;
|
|
8
11
|
selectionMode?: import('./tableTypes').SelectionMode;
|
|
@@ -12,10 +15,12 @@ export declare const Table: import('react').ForwardRefExoticComponent<import('re
|
|
|
12
15
|
sortDescriptor?: import('./tableTypes').SortDescriptor;
|
|
13
16
|
defaultSortDescriptor?: import('./tableTypes').SortDescriptor;
|
|
14
17
|
onSortChange?: (descriptor: import('./tableTypes').SortDescriptor) => void;
|
|
18
|
+
motion?: import('../../..').Prettify<import('./tableTypes').TablePartMotion>;
|
|
15
19
|
} & import('react').RefAttributes<HTMLTableElement>>;
|
|
16
20
|
Header: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLTableSectionElement>, "children"> & {
|
|
17
21
|
columns?: any[];
|
|
18
22
|
children?: import('react').ReactNode | ((column: any) => import('react').ReactNode);
|
|
23
|
+
motion?: import('../../..').Prettify<import('./tableTypes').TablePartMotion>;
|
|
19
24
|
} & import('react').RefAttributes<HTMLTableSectionElement>>;
|
|
20
25
|
HeaderRow: import('react').ForwardRefExoticComponent<import('./tableTypes').TableHeaderRowProps & import('react').RefAttributes<HTMLTableRowElement>>;
|
|
21
26
|
Column: import('react').ForwardRefExoticComponent<Omit<import('react').ThHTMLAttributes<HTMLTableCellElement>, "children"> & {
|
|
@@ -24,6 +29,7 @@ export declare const Table: import('react').ForwardRefExoticComponent<import('re
|
|
|
24
29
|
isRowHeader?: boolean;
|
|
25
30
|
sortIcon?: import('react').ReactNode | ((props: import('./tableTypes').TableColumnSortIconRenderProps) => import('react').ReactNode);
|
|
26
31
|
children?: import('react').ReactNode | ((props: import('./tableTypes').TableColumnRenderProps) => import('react').ReactNode);
|
|
32
|
+
motion?: import('../../..').Prettify<import('./tableTypes').TablePartMotion>;
|
|
27
33
|
} & import('react').RefAttributes<HTMLTableCellElement>>;
|
|
28
34
|
Label: import('react').ForwardRefExoticComponent<import('./tableTypes').TableLabelProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
29
35
|
Body: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLTableSectionElement>, "children"> & {
|
|
@@ -34,9 +40,14 @@ export declare const Table: import('react').ForwardRefExoticComponent<import('re
|
|
|
34
40
|
Row: import('react').NamedExoticComponent<Omit<import('react').HTMLAttributes<HTMLTableRowElement>, "id"> & {
|
|
35
41
|
id?: string | number;
|
|
36
42
|
tone?: import('./tableStyles').TableRowTone;
|
|
43
|
+
motion?: import('../../..').Prettify<import('./tableTypes').TablePartMotion>;
|
|
37
44
|
} & import('react').RefAttributes<HTMLTableRowElement>>;
|
|
38
|
-
Cell: import('react').NamedExoticComponent<import('
|
|
39
|
-
|
|
45
|
+
Cell: import('react').NamedExoticComponent<import('react').TdHTMLAttributes<HTMLTableCellElement> & {
|
|
46
|
+
motion?: import('../../..').Prettify<import('./tableTypes').TablePartMotion>;
|
|
47
|
+
} & import('react').RefAttributes<HTMLTableCellElement>>;
|
|
48
|
+
Footer: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
49
|
+
motion?: import('../../..').Prettify<import('./tableTypes').TablePartMotion>;
|
|
50
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
40
51
|
};
|
|
41
52
|
export { TABLE_ROW_TONE_SURFACE } from './tableStyles';
|
|
42
|
-
export type { TableProps, TableVariant, TableRowTone, TableScrollContainerProps, TableContentProps, TableHeaderProps, TableHeaderRowProps, TableColumnProps, TableColumnRenderProps, TableColumnSortIconRenderProps, TableLabelProps, TableBodyProps, TableRowProps, TableCellProps, TableFooterProps, SortDescriptor, SortDirection, SelectionMode, Selection, TableClassNames, } from './tableTypes';
|
|
53
|
+
export type { TableProps, TableVariant, TableRowTone, TableScrollContainerProps, TableContentProps, TableHeaderProps, TableHeaderRowProps, TableColumnProps, TableColumnRenderProps, TableColumnSortIconRenderProps, TableLabelProps, TableBodyProps, TableRowProps, TableCellProps, TableFooterProps, SortDescriptor, SortDirection, SelectionMode, Selection, TableClassNames, TableMotion, TablePartMotion, } from './tableTypes';
|
|
@@ -1,5 +1,25 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { ForwardedRef, ReactNode, PointerEvent as ReactPointerEvent } from 'react';
|
|
2
|
+
import { MotionScopeValue } from '../utils/slotMotion';
|
|
3
|
+
import { SortDirection, TableMotion, TablePartMotion } from './tableTypes';
|
|
4
|
+
export declare function resolveTableMotionDefaults(): TableMotion;
|
|
5
|
+
export declare function useTableSlotMotion<T extends HTMLElement>(slot: keyof TableMotion, { motion, forwardedRef, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }?: {
|
|
6
|
+
motion?: TablePartMotion;
|
|
7
|
+
forwardedRef?: ForwardedRef<T>;
|
|
8
|
+
onPointerOver?: (e: ReactPointerEvent<T>) => void;
|
|
9
|
+
onPointerOut?: (e: ReactPointerEvent<T>) => void;
|
|
10
|
+
onPointerDown?: (e: ReactPointerEvent<T>) => void;
|
|
11
|
+
onPointerUp?: (e: ReactPointerEvent<T>) => void;
|
|
12
|
+
}): {
|
|
13
|
+
setRef: (node: T | null) => void;
|
|
14
|
+
targetRef: import('react').RefObject<T | null>;
|
|
15
|
+
pointerHandlers: {
|
|
16
|
+
onPointerOver: (e: ReactPointerEvent<T>) => void;
|
|
17
|
+
onPointerOut: (e: ReactPointerEvent<T>) => void;
|
|
18
|
+
onPointerDown: (e: ReactPointerEvent<T>) => void;
|
|
19
|
+
onPointerUp: (e: ReactPointerEvent<T>) => void;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare function useTableRowSelectionMotion(scope: MotionScopeValue | null, selected: boolean): void;
|
|
3
23
|
export declare function TableSortChevron({ direction, children, }: {
|
|
4
24
|
direction: SortDirection | undefined;
|
|
5
25
|
children?: ReactNode;
|
|
@@ -24,3 +24,10 @@ export declare function useTableRowIsSelected(id: string | number | undefined):
|
|
|
24
24
|
/** Per-row roving tab-stop — re-renders only when *this* row's focus target flips. */
|
|
25
25
|
export declare function useTableRowIsFocusTarget(id: string | number | undefined): boolean;
|
|
26
26
|
export { TableVariantContext, TableContentContext, TableRowContext };
|
|
27
|
+
/** Scope only. Defaults and host play live in `tableSlotMotion.ts` via `tableAnimations.tsx` helpers. */
|
|
28
|
+
export declare const TableMotionProvider: ({ motion, defaults, params, children, }: {
|
|
29
|
+
motion?: import('../utils/slotMotion').MotionSlotMap;
|
|
30
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
31
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
32
|
+
children: import('react').ReactNode;
|
|
33
|
+
}) => import("react/jsx-runtime").JSX.Element, useTableMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalTableMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const TableScrollContainer: import('react').ForwardRefExoticComponent<
|
|
2
|
+
import { TableColumnRenderProps, TableHeaderRowProps, TableLabelProps } from './tableTypes';
|
|
3
|
+
export declare const TableScrollContainer: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
motion?: import('../../..').Prettify<import('./tableTypes').TablePartMotion>;
|
|
5
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
4
6
|
export declare const TableContent: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLTableElement> & {
|
|
5
7
|
"aria-label"?: string;
|
|
6
8
|
selectionMode?: import('./tableTypes').SelectionMode;
|
|
@@ -10,11 +12,13 @@ export declare const TableContent: import('react').ForwardRefExoticComponent<imp
|
|
|
10
12
|
sortDescriptor?: import('./tableTypes').SortDescriptor;
|
|
11
13
|
defaultSortDescriptor?: import('./tableTypes').SortDescriptor;
|
|
12
14
|
onSortChange?: (descriptor: import('./tableTypes').SortDescriptor) => void;
|
|
15
|
+
motion?: import('../../..').Prettify<import('./tableTypes').TablePartMotion>;
|
|
13
16
|
} & import('react').RefAttributes<HTMLTableElement>>;
|
|
14
17
|
export declare const TableHeaderRow: import('react').ForwardRefExoticComponent<TableHeaderRowProps & import('react').RefAttributes<HTMLTableRowElement>>;
|
|
15
18
|
export declare const TableHeader: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLTableSectionElement>, "children"> & {
|
|
16
19
|
columns?: any[];
|
|
17
20
|
children?: ReactNode | ((column: any) => ReactNode);
|
|
21
|
+
motion?: import('../../..').Prettify<import('./tableTypes').TablePartMotion>;
|
|
18
22
|
} & import('react').RefAttributes<HTMLTableSectionElement>>;
|
|
19
23
|
export declare const TableLabel: import('react').ForwardRefExoticComponent<TableLabelProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
20
24
|
export declare const TableColumn: import('react').ForwardRefExoticComponent<Omit<import('react').ThHTMLAttributes<HTMLTableCellElement>, "children"> & {
|
|
@@ -23,6 +27,7 @@ export declare const TableColumn: import('react').ForwardRefExoticComponent<Omit
|
|
|
23
27
|
isRowHeader?: boolean;
|
|
24
28
|
sortIcon?: ReactNode | ((props: import('./tableTypes').TableColumnSortIconRenderProps) => ReactNode);
|
|
25
29
|
children?: ReactNode | ((props: TableColumnRenderProps) => ReactNode);
|
|
30
|
+
motion?: import('../../..').Prettify<import('./tableTypes').TablePartMotion>;
|
|
26
31
|
} & import('react').RefAttributes<HTMLTableCellElement>>;
|
|
27
32
|
export declare const TableBody: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLTableSectionElement>, "children"> & {
|
|
28
33
|
items?: any[];
|
|
@@ -32,6 +37,11 @@ export declare const TableBody: import('react').ForwardRefExoticComponent<Omit<i
|
|
|
32
37
|
export declare const TableRow: import('react').NamedExoticComponent<Omit<import('react').HTMLAttributes<HTMLTableRowElement>, "id"> & {
|
|
33
38
|
id?: string | number;
|
|
34
39
|
tone?: import('./tableStyles').TableRowTone;
|
|
40
|
+
motion?: import('../../..').Prettify<import('./tableTypes').TablePartMotion>;
|
|
35
41
|
} & import('react').RefAttributes<HTMLTableRowElement>>;
|
|
36
|
-
export declare const TableCell: import('react').NamedExoticComponent<
|
|
37
|
-
|
|
42
|
+
export declare const TableCell: import('react').NamedExoticComponent<import('react').TdHTMLAttributes<HTMLTableCellElement> & {
|
|
43
|
+
motion?: import('../../..').Prettify<import('./tableTypes').TablePartMotion>;
|
|
44
|
+
} & import('react').RefAttributes<HTMLTableCellElement>>;
|
|
45
|
+
export declare const TableFooter: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
46
|
+
motion?: import('../../..').Prettify<import('./tableTypes').TablePartMotion>;
|
|
47
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode, TdHTMLAttributes, ThHTMLAttributes } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
|
+
import { MotionValue } from '../utils/slotMotion';
|
|
3
4
|
import { TableRowTone } from './tableStyles';
|
|
4
5
|
export type { TableRowTone };
|
|
5
6
|
export type SortDirection = "ascending" | "descending";
|
|
@@ -27,12 +28,40 @@ export type TableClassNames = {
|
|
|
27
28
|
footer?: string;
|
|
28
29
|
emptyCell?: string;
|
|
29
30
|
};
|
|
31
|
+
export type TablePartMotion = {
|
|
32
|
+
hoverIn?: MotionValue;
|
|
33
|
+
hoverOut?: MotionValue;
|
|
34
|
+
pressIn?: MotionValue;
|
|
35
|
+
pressOut?: MotionValue;
|
|
36
|
+
enter?: MotionValue;
|
|
37
|
+
leave?: MotionValue;
|
|
38
|
+
check?: MotionValue;
|
|
39
|
+
uncheck?: MotionValue;
|
|
40
|
+
change?: MotionValue;
|
|
41
|
+
};
|
|
42
|
+
export type TableMotion = {
|
|
43
|
+
root?: TablePartMotion;
|
|
44
|
+
scrollContainer?: TablePartMotion;
|
|
45
|
+
content?: TablePartMotion;
|
|
46
|
+
header?: TablePartMotion;
|
|
47
|
+
footer?: TablePartMotion;
|
|
48
|
+
row?: TablePartMotion;
|
|
49
|
+
column?: TablePartMotion;
|
|
50
|
+
cell?: TablePartMotion;
|
|
51
|
+
};
|
|
30
52
|
export type TableProps = HTMLAttributes<HTMLDivElement> & {
|
|
31
53
|
variant?: TableVariant;
|
|
32
54
|
classNames?: Prettify<TableClassNames>;
|
|
55
|
+
/**
|
|
56
|
+
* Per-slot motion (`root`, `scrollContainer`, `content`, `header`, `footer`, `row`, `column`, `cell`).
|
|
57
|
+
* `glossContent` is not a slot. Sort chevron rotation is kit-internal. Defaults are empty.
|
|
58
|
+
*/
|
|
59
|
+
motion?: Prettify<TableMotion>;
|
|
33
60
|
};
|
|
34
61
|
export type UseTableRootStateProps = Pick<TableProps, "variant">;
|
|
35
|
-
export type TableScrollContainerProps = HTMLAttributes<HTMLDivElement
|
|
62
|
+
export type TableScrollContainerProps = HTMLAttributes<HTMLDivElement> & {
|
|
63
|
+
motion?: Prettify<TablePartMotion>;
|
|
64
|
+
};
|
|
36
65
|
export type TableContentProps = HTMLAttributes<HTMLTableElement> & {
|
|
37
66
|
"aria-label"?: string;
|
|
38
67
|
selectionMode?: SelectionMode;
|
|
@@ -42,10 +71,12 @@ export type TableContentProps = HTMLAttributes<HTMLTableElement> & {
|
|
|
42
71
|
sortDescriptor?: SortDescriptor;
|
|
43
72
|
defaultSortDescriptor?: SortDescriptor;
|
|
44
73
|
onSortChange?: (descriptor: SortDescriptor) => void;
|
|
74
|
+
motion?: Prettify<TablePartMotion>;
|
|
45
75
|
};
|
|
46
76
|
export type TableHeaderProps = Omit<HTMLAttributes<HTMLTableSectionElement>, "children"> & {
|
|
47
77
|
columns?: any[];
|
|
48
78
|
children?: ReactNode | ((column: any) => ReactNode);
|
|
79
|
+
motion?: Prettify<TablePartMotion>;
|
|
49
80
|
};
|
|
50
81
|
export type TableHeaderRowProps = HTMLAttributes<HTMLTableRowElement>;
|
|
51
82
|
export type TableColumnRenderProps = {
|
|
@@ -65,6 +96,7 @@ export type TableColumnProps = Omit<ThHTMLAttributes<HTMLTableCellElement>, "chi
|
|
|
65
96
|
*/
|
|
66
97
|
sortIcon?: ReactNode | ((props: TableColumnSortIconRenderProps) => ReactNode);
|
|
67
98
|
children?: ReactNode | ((props: TableColumnRenderProps) => ReactNode);
|
|
99
|
+
motion?: Prettify<TablePartMotion>;
|
|
68
100
|
};
|
|
69
101
|
export type TableBodyProps = Omit<HTMLAttributes<HTMLTableSectionElement>, "children"> & {
|
|
70
102
|
items?: any[];
|
|
@@ -74,9 +106,14 @@ export type TableBodyProps = Omit<HTMLAttributes<HTMLTableSectionElement>, "chil
|
|
|
74
106
|
export type TableRowProps = Omit<HTMLAttributes<HTMLTableRowElement>, "id"> & {
|
|
75
107
|
id?: string | number;
|
|
76
108
|
tone?: TableRowTone;
|
|
109
|
+
motion?: Prettify<TablePartMotion>;
|
|
110
|
+
};
|
|
111
|
+
export type TableCellProps = TdHTMLAttributes<HTMLTableCellElement> & {
|
|
112
|
+
motion?: Prettify<TablePartMotion>;
|
|
113
|
+
};
|
|
114
|
+
export type TableFooterProps = HTMLAttributes<HTMLDivElement> & {
|
|
115
|
+
motion?: Prettify<TablePartMotion>;
|
|
77
116
|
};
|
|
78
|
-
export type TableCellProps = TdHTMLAttributes<HTMLTableCellElement>;
|
|
79
|
-
export type TableFooterProps = HTMLAttributes<HTMLDivElement>;
|
|
80
117
|
export type TableContentContextValue = {
|
|
81
118
|
selectionMode: SelectionMode;
|
|
82
119
|
onRowSelect: (key: string | number) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TabsList, TabsPanel, TabsTab } from './tabsParts';
|
|
2
|
-
export type { TabsProps, TabsListProps, TabsTabProps, TabsPanelProps, TabsSize, TabsOrientation, TabsVariant, TabsClassNames, } from './tabsTypes';
|
|
2
|
+
export type { TabsProps, TabsListProps, TabsTabProps, TabsPanelProps, TabsSize, TabsOrientation, TabsVariant, TabsClassNames, TabsMotion, TabsPartMotion, } from './tabsTypes';
|
|
3
3
|
export declare const TabsRoot: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "defaultValue"> & {
|
|
4
4
|
children?: import('react').ReactNode;
|
|
5
5
|
value?: string;
|
|
@@ -10,5 +10,6 @@ export declare const TabsRoot: import('react').ForwardRefExoticComponent<Omit<im
|
|
|
10
10
|
variant?: import('./tabsTypes').TabsVariant;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
classNames?: import('../../..').Prettify<import('./tabsTypes').TabsClassNames>;
|
|
13
|
+
motion?: import('../../..').Prettify<import('./tabsTypes').TabsMotion>;
|
|
13
14
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
15
|
export { TabsList, TabsTab, TabsPanel };
|
|
@@ -8,17 +8,22 @@ export declare const Tabs: import('react').ForwardRefExoticComponent<Omit<import
|
|
|
8
8
|
variant?: import('./tabsTypes').TabsVariant;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
classNames?: import('../../..').Prettify<import('./tabsTypes').TabsClassNames>;
|
|
11
|
+
motion?: import('../../..').Prettify<import('./tabsTypes').TabsMotion>;
|
|
11
12
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
12
|
-
List: import('react').ForwardRefExoticComponent<import('
|
|
13
|
+
List: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
14
|
+
motion?: import('../../..').Prettify<import('./tabsTypes').TabsPartMotion>;
|
|
15
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
16
|
Tab: import('react').ForwardRefExoticComponent<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "value"> & {
|
|
14
17
|
value: string;
|
|
15
18
|
children?: import('react').ReactNode;
|
|
16
19
|
asChild?: boolean;
|
|
20
|
+
motion?: import('../../..').Prettify<import('./tabsTypes').TabsPartMotion>;
|
|
17
21
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
18
22
|
Panel: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
19
23
|
value: string;
|
|
20
24
|
children?: import('react').ReactNode;
|
|
25
|
+
motion?: import('../../..').Prettify<import('./tabsTypes').TabsPartMotion>;
|
|
21
26
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
22
27
|
};
|
|
23
28
|
export { useTabsContext, useTabsClassNames } from './tabsContext';
|
|
24
|
-
export type { TabsProps, TabsListProps, TabsTabProps, TabsPanelProps, TabsSize, TabsOrientation, TabsVariant, TabsClassNames, } from './tabsTypes';
|
|
29
|
+
export type { TabsProps, TabsListProps, TabsTabProps, TabsPanelProps, TabsSize, TabsOrientation, TabsVariant, TabsClassNames, TabsMotion, TabsPartMotion, } from './tabsTypes';
|
|
@@ -1,15 +1,29 @@
|
|
|
1
|
-
import { KeyboardEvent, PointerEvent
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { KeyboardEvent, PointerEvent } from 'react';
|
|
2
|
+
import { MotionScopeValue } from '../utils/slotMotion';
|
|
3
|
+
import { TabsMotion } from './tabsTypes';
|
|
4
|
+
export declare function resolveTabsMotionDefaults(): TabsMotion;
|
|
5
|
+
export declare function resolveTabsTabMotionDefaults({ selected, disabled, }: {
|
|
6
|
+
selected: boolean;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
}): TabsMotion;
|
|
9
|
+
export declare function useTabsRootEnter(scope: MotionScopeValue | null, value: string): void;
|
|
10
|
+
export declare function useTabsListEnter(scope: MotionScopeValue | null): void;
|
|
11
|
+
export declare function useTabsTabPointerMotion({ scope, isDisabled, onPointerEnter, onPointerLeave, onPointerDown, onPointerUp, onKeyDown, }: {
|
|
12
|
+
scope: MotionScopeValue;
|
|
4
13
|
isDisabled: boolean | undefined;
|
|
5
|
-
isSelected: boolean;
|
|
6
14
|
onPointerEnter?: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
7
15
|
onPointerLeave?: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
8
16
|
onPointerDown?: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
17
|
+
onPointerUp?: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
9
18
|
onKeyDown?: (e: KeyboardEvent<HTMLButtonElement>) => void;
|
|
10
19
|
}): {
|
|
11
20
|
handlePointerEnter: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
12
21
|
handlePointerLeave: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
13
22
|
handlePointerDown: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
23
|
+
handlePointerUp: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
14
24
|
handleKeyDown: (e: KeyboardEvent<HTMLButtonElement>) => void;
|
|
15
25
|
};
|
|
26
|
+
export declare function useTabsTabSelectionMotion(scope: MotionScopeValue, selected: boolean): void;
|
|
27
|
+
export declare function useTabsPanelLifecycle(scope: MotionScopeValue | null, isSelected: boolean): {
|
|
28
|
+
leaving: boolean;
|
|
29
|
+
};
|
|
@@ -3,4 +3,11 @@ declare const TabsContext: import('react').Context<TabsContextValue | null>;
|
|
|
3
3
|
export declare function TabsClassNamesProvider({ classNames, children, }: TabsClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare function useTabsContext(): TabsContextValue;
|
|
5
5
|
export declare function useTabsClassNames(): TabsClassNames;
|
|
6
|
+
/** Scope only. Defaults and host play live in `tabsAnimations.ts`. */
|
|
7
|
+
export declare const TabsMotionProvider: ({ motion, defaults, params, children, }: {
|
|
8
|
+
motion?: import('../utils/slotMotion').MotionSlotMap;
|
|
9
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
10
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
11
|
+
children: import('react').ReactNode;
|
|
12
|
+
}) => import("react/jsx-runtime").JSX.Element, useTabsMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalTabsMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
6
13
|
export { TabsContext };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const TabsPanel: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
2
2
|
value: string;
|
|
3
3
|
children?: import('react').ReactNode;
|
|
4
|
+
motion?: import('../../..').Prettify<import('./tabsTypes').TabsPartMotion>;
|
|
4
5
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const TabsList: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
2
|
+
motion?: import('../../..').Prettify<import('./tabsTypes').TabsPartMotion>;
|
|
3
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
4
|
export { TabsTab } from './tabsTabPart';
|
|
4
5
|
export { TabsPanel } from './tabsPanelPart';
|
|
@@ -3,4 +3,5 @@ export declare const TabsTab: import('react').ForwardRefExoticComponent<Omit<But
|
|
|
3
3
|
value: string;
|
|
4
4
|
children?: import('react').ReactNode;
|
|
5
5
|
asChild?: boolean;
|
|
6
|
+
motion?: import('../../..').Prettify<import('./tabsTypes').TabsPartMotion>;
|
|
6
7
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, HTMLAttributes, ReactNode, RefObject } 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 TabsOrientation = "horizontal" | "vertical";
|
|
5
6
|
export type TabsVariant = "default" | "outline" | "secondary" | "gloss";
|
|
@@ -12,6 +13,25 @@ export type TabsClassNames = {
|
|
|
12
13
|
tabText?: string;
|
|
13
14
|
panel?: string;
|
|
14
15
|
};
|
|
16
|
+
export type TabsPartMotion = {
|
|
17
|
+
hoverIn?: MotionValue;
|
|
18
|
+
hoverOut?: MotionValue;
|
|
19
|
+
pressIn?: MotionValue;
|
|
20
|
+
pressOut?: MotionValue;
|
|
21
|
+
enter?: MotionValue;
|
|
22
|
+
leave?: MotionValue;
|
|
23
|
+
check?: MotionValue;
|
|
24
|
+
uncheck?: MotionValue;
|
|
25
|
+
/** Plays on `root` when the selected tab value updates. */
|
|
26
|
+
change?: MotionValue;
|
|
27
|
+
};
|
|
28
|
+
export type TabsMotion = {
|
|
29
|
+
root?: TabsPartMotion;
|
|
30
|
+
list?: TabsPartMotion;
|
|
31
|
+
tab?: TabsPartMotion;
|
|
32
|
+
tabText?: TabsPartMotion;
|
|
33
|
+
panel?: TabsPartMotion;
|
|
34
|
+
};
|
|
15
35
|
export type TabsProps = Omit<HTMLAttributes<HTMLDivElement>, "defaultValue"> & {
|
|
16
36
|
children?: ReactNode;
|
|
17
37
|
value?: string;
|
|
@@ -22,17 +42,28 @@ export type TabsProps = Omit<HTMLAttributes<HTMLDivElement>, "defaultValue"> & {
|
|
|
22
42
|
variant?: TabsVariant;
|
|
23
43
|
disabled?: boolean;
|
|
24
44
|
classNames?: Prettify<TabsClassNames>;
|
|
45
|
+
/**
|
|
46
|
+
* Per-slot motion (`root`, `list`, `tab`, `tabText`, `panel`).
|
|
47
|
+
* Indicator FLIP is kit-internal — not a public slot. Do not tween `width`/`left` of the indicator.
|
|
48
|
+
* Inactive tabs default to `hoverLiftFirstLevel` + `pressSqueeze` on `tabText`.
|
|
49
|
+
* Phase `change` plays on `root` when the selected value updates.
|
|
50
|
+
*/
|
|
51
|
+
motion?: Prettify<TabsMotion>;
|
|
25
52
|
};
|
|
26
53
|
export type UseTabsRootStateProps = Pick<TabsProps, "value" | "defaultValue" | "onValueChange" | "orientation" | "size" | "variant" | "disabled">;
|
|
27
|
-
export type TabsListProps = HTMLAttributes<HTMLDivElement
|
|
54
|
+
export type TabsListProps = HTMLAttributes<HTMLDivElement> & {
|
|
55
|
+
motion?: Prettify<TabsPartMotion>;
|
|
56
|
+
};
|
|
28
57
|
export type TabsTabProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "value"> & {
|
|
29
58
|
value: string;
|
|
30
59
|
children?: ReactNode;
|
|
31
60
|
asChild?: boolean;
|
|
61
|
+
motion?: Prettify<TabsPartMotion>;
|
|
32
62
|
};
|
|
33
63
|
export type TabsPanelProps = HTMLAttributes<HTMLDivElement> & {
|
|
34
64
|
value: string;
|
|
35
65
|
children?: ReactNode;
|
|
66
|
+
motion?: Prettify<TabsPartMotion>;
|
|
36
67
|
};
|
|
37
68
|
export type TabsContextValue = {
|
|
38
69
|
value: string;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export type { TextProps, TextVariant, TextMotion, TextPartMotion } from './textTypes';
|
|
3
|
+
export declare const Text: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLElement>, "className"> & {
|
|
3
4
|
variant: import('./textTypes').TextVariant;
|
|
4
5
|
as?: import('react').ElementType;
|
|
5
6
|
inheritColor?: boolean;
|
|
6
7
|
className?: string;
|
|
8
|
+
motion?: import('../../..').Prettify<import('./textTypes').TextMotion>;
|
|
7
9
|
} & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Text, type TextProps, type TextVariant } from './Text';
|
|
1
|
+
export { Text, type TextProps, type TextVariant, type TextMotion, type TextPartMotion, } from './Text';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ForwardedRef, PointerEvent as ReactPointerEvent } from 'react';
|
|
2
|
+
import { TextMotion, TextPartMotion } from './textTypes';
|
|
3
|
+
export declare function resolveTextMotionDefaults(): TextMotion;
|
|
4
|
+
export declare function useTextRootMotion({ forwardedRef, motion, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }: {
|
|
5
|
+
forwardedRef?: ForwardedRef<HTMLElement>;
|
|
6
|
+
motion?: TextPartMotion;
|
|
7
|
+
onPointerOver?: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
8
|
+
onPointerOut?: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
9
|
+
onPointerDown?: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
10
|
+
onPointerUp?: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
11
|
+
}): {
|
|
12
|
+
setRef: (node: HTMLElement | null) => void;
|
|
13
|
+
targetRef: import('react').RefObject<HTMLElement | null>;
|
|
14
|
+
pointerHandlers: {
|
|
15
|
+
onPointerOver: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
16
|
+
onPointerOut: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
17
|
+
onPointerDown: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
18
|
+
onPointerUp: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare function useOptionalTextRootMotion(): import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Scope only. Defaults and host play live in `textAnimations.ts`. */
|
|
2
|
+
export declare const TextMotionProvider: ({ 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, useTextMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalTextMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|