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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RefObject, PointerEvent as ReactPointerEvent } from 'react';
|
|
2
|
+
import { MotionConfig } from './motionConfig';
|
|
2
3
|
import { ShadowInteraction, ShadowSize } from '../../../tokens/shadows';
|
|
3
4
|
/**
|
|
4
5
|
* Shadow tiers for lift / press. Values are live `var(--shadow-*)` refs.
|
|
@@ -57,16 +58,16 @@ export declare function readShadowSize(size: ShadowSize, from?: Element | null):
|
|
|
57
58
|
*/
|
|
58
59
|
export declare function initElementShadow(element: HTMLElement | null, shadow: string): void;
|
|
59
60
|
/** Hover lift and shadow change: off for reduced-motion, touch and viewport ≤ tablet. */
|
|
60
|
-
export declare function shouldSkipInteractiveHoverLift(): boolean;
|
|
61
|
-
export declare function resolveAdaptiveHoverLiftScale(element: HTMLElement): number;
|
|
62
|
-
export declare function resolveAdaptivePressSqueezeScale(element: HTMLElement): number;
|
|
61
|
+
export declare function shouldSkipInteractiveHoverLift(config?: Readonly<MotionConfig>): boolean;
|
|
62
|
+
export declare function resolveAdaptiveHoverLiftScale(element: HTMLElement, config?: Readonly<MotionConfig>): number;
|
|
63
|
+
export declare function resolveAdaptivePressSqueezeScale(element: HTMLElement, config?: Readonly<MotionConfig>): number;
|
|
63
64
|
/**
|
|
64
65
|
* Hover-lift + optional shadow in one GSAP tween (same structure as gloss).
|
|
65
66
|
* Replay while already inside is prevented by pointerover/out guards
|
|
66
67
|
* (`cameFromOutsideContainer`) — not by a local lifted-state flag (that desynced
|
|
67
68
|
* with press-squeeze release).
|
|
68
69
|
*/
|
|
69
|
-
export declare function animateInteractiveHoverLift(element: HTMLElement, lifted: boolean, liftScale?: number, shadow?: HoverShadowConfig): void;
|
|
70
|
+
export declare function animateInteractiveHoverLift(element: HTMLElement, lifted: boolean, liftScale?: number, shadow?: HoverShadowConfig, config?: Readonly<MotionConfig>): void;
|
|
70
71
|
export declare function isInteractivePressKey(e: {
|
|
71
72
|
key: string;
|
|
72
73
|
repeat?: boolean;
|
|
@@ -80,6 +81,9 @@ export type AnimateInteractivePressSqueezeOptions = {
|
|
|
80
81
|
liftScale?: number;
|
|
81
82
|
shadow?: HoverShadowConfig;
|
|
82
83
|
onReleaseStart?: () => void;
|
|
84
|
+
/** When aborted, kill the timeline and skip `onReleaseStart` / release tween. */
|
|
85
|
+
signal?: AbortSignal;
|
|
86
|
+
config?: Readonly<MotionConfig>;
|
|
83
87
|
};
|
|
84
88
|
/**
|
|
85
89
|
* Press-squeeze + optional shadow in the same tweens as scale (gloss-style timeline).
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { gsap as gsapInstance } from './gsapMotion';
|
|
2
|
+
import { MotionConfig } from './motionConfig';
|
|
2
3
|
/** Panel enter scale — intentional visual constant (not in `configureMotion`). */
|
|
3
4
|
export declare const MODAL_PANEL_SCALE_FROM = 0.97;
|
|
4
5
|
export type GsapMotionVars = NonNullable<Parameters<typeof gsapInstance.to>[1]>;
|
|
5
|
-
export declare function isReducedModalMotion(): boolean;
|
|
6
|
+
export declare function isReducedModalMotion(config?: Readonly<MotionConfig>): boolean;
|
|
6
7
|
/** Initial inline style for modal backdrop overlay before enter animation. */
|
|
7
8
|
export declare function modalOverlayEnterStyle(): {
|
|
8
9
|
opacity: number;
|
|
@@ -28,14 +29,27 @@ export declare function animateModalClose({ overlay, panel, vars, onComplete, pa
|
|
|
28
29
|
}): gsap.core.Timeline;
|
|
29
30
|
/** Skip GSAP and reset portal surface (reduced motion). */
|
|
30
31
|
export declare function applyReducedPortalMotion(surface: HTMLElement | null): void;
|
|
31
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Wrapper stays opaque so gloss backdrop-filter works during enter.
|
|
34
|
+
* Also keeps `visibility` visible so keyboard focus (`:focus-visible`) can
|
|
35
|
+
* paint on controls inside the surface. Do not start enter with `autoAlpha: 0`
|
|
36
|
+
* on a surface that contains the focused control — that sets `visibility:
|
|
37
|
+
* hidden` and UA heuristics skip the ring. Fade with `opacity` instead, or
|
|
38
|
+
* call this then tween only transform (kit `portalSurfaceEnter`).
|
|
39
|
+
*/
|
|
32
40
|
export declare function preparePortalSurfaceForEnter(surface: HTMLElement): void;
|
|
41
|
+
/**
|
|
42
|
+
* Flush layout after native `<dialog showModal()>`.
|
|
43
|
+
* UA goes `display: none` → `[open]`; GSAP `fromTo` must not record while hidden.
|
|
44
|
+
* Portal nested enter does **not** flush — see `scheduleNestedEnterBroadcast`.
|
|
45
|
+
*/
|
|
46
|
+
export declare function flushDialogOpenLayout(dialog: HTMLElement): void;
|
|
33
47
|
export declare function animatePortalOpen({ surface, vars, from, to, }: {
|
|
34
48
|
surface: HTMLElement;
|
|
35
49
|
vars: GsapMotionVars;
|
|
36
50
|
from?: GsapMotionVars;
|
|
37
51
|
to?: GsapMotionVars;
|
|
38
|
-
}):
|
|
52
|
+
}): gsap.core.Tween;
|
|
39
53
|
export declare function animatePortalClose({ surface, vars, onComplete, exit, }: {
|
|
40
54
|
surface: HTMLElement;
|
|
41
55
|
vars: GsapMotionVars;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Centralized animation configuration for Burne UI (GSAP + CSS motion tokens).
|
|
3
3
|
*
|
|
4
|
-
*
|
|
4
|
+
* `configureMotion()` sets the **app default** (global singleton). Nested
|
|
5
|
+
* `BurneUIProvider` / `MotionConfigProvider` overlay a resolved config for that
|
|
6
|
+
* React tree (portals inherit via context, not DOM). Safe without `document`
|
|
7
|
+
* (SSR). Invalid fields are skipped; finite out-of-range numbers are clamped
|
|
8
|
+
* (`MOTION_CONFIG_LIMITS`).
|
|
5
9
|
*
|
|
6
10
|
* @example
|
|
7
11
|
* import { configureMotion } from "burne-ui";
|
|
@@ -19,6 +23,7 @@
|
|
|
19
23
|
* enableAnimations: false, // global kill-switch
|
|
20
24
|
* });
|
|
21
25
|
*/
|
|
26
|
+
export { MOTION_CONFIG_LIMITS } from './motionConfigValidation';
|
|
22
27
|
/** CSS custom properties written by `applyMotionCssTokens` / theme apply. */
|
|
23
28
|
export declare const MOTION_CSS_VAR: {
|
|
24
29
|
readonly surfaceDuration: "--motion-surface-duration";
|
|
@@ -200,95 +205,169 @@ export interface MotionConfig {
|
|
|
200
205
|
}
|
|
201
206
|
/** Canonical motion defaults — imported by theme `MOTION_DEFAULTS` (single source). */
|
|
202
207
|
export declare const MOTION_CONFIG_DEFAULTS: MotionConfig;
|
|
203
|
-
/**
|
|
208
|
+
/**
|
|
209
|
+
* Subscribe to `configureMotion()` revision bumps (`useSyncExternalStore`).
|
|
210
|
+
* New slot-motion plays read the updated default; already-running phases keep
|
|
211
|
+
* the snapshot from play start. React-owned loops (Loading dots, ProgressBar
|
|
212
|
+
* indeterminate) rebuild because their effects depend on `useMotionConfig()`.
|
|
213
|
+
*/
|
|
204
214
|
export declare function subscribeMotionConfig(onStoreChange: () => void): () => void;
|
|
205
215
|
/** Motion config revision counter — for `useSyncExternalStore`. */
|
|
206
216
|
export declare function getMotionConfigRevision(): number;
|
|
207
217
|
/**
|
|
208
218
|
* Write / clear `--motion-surface-duration` on a root (diff vs kit defaults).
|
|
209
219
|
* Called from `configureMotion` (documentElement) and theme `applyMotionFromState`.
|
|
220
|
+
* Uses `root` when passed; otherwise `document.documentElement` if `document` exists.
|
|
210
221
|
*/
|
|
211
222
|
export declare function applyMotionCssTokens(root: HTMLElement | null | undefined, config?: Pick<MotionConfig, "surfaceTransitionDuration">): void;
|
|
212
223
|
/**
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
|
|
224
|
+
* Overlay `motion` keys onto a base config (provider scope).
|
|
225
|
+
* Empty / fully invalid overlay returns `base` (same reference).
|
|
226
|
+
*/
|
|
227
|
+
export declare function overlayMotionConfig(base: Readonly<MotionConfig>, overlay?: Partial<MotionConfig> | null): MotionConfig;
|
|
228
|
+
/** `config` when passed, otherwise the live global default. */
|
|
229
|
+
export declare function resolveMotionConfig(config?: Readonly<MotionConfig> | null): Readonly<MotionConfig>;
|
|
230
|
+
/**
|
|
231
|
+
* Override any subset of the **global default** motion config.
|
|
232
|
+
* Nested trees overlay via `BurneUIProvider` / `MotionConfigProvider`, not this call.
|
|
233
|
+
* Call once before your app renders (or from a single theme editor root).
|
|
234
|
+
* SSR-safe: CSS tokens are written only when `document` exists.
|
|
235
|
+
* Invalid fields are skipped (dev warning); the rest of the override still applies.
|
|
236
|
+
* Identical values are a no-op (revision does not bump).
|
|
216
237
|
*/
|
|
217
238
|
export declare function configureMotion(overrides: Partial<MotionConfig>): void;
|
|
218
|
-
/** Returns the current (
|
|
239
|
+
/** Returns the current global default (not a provider overlay). */
|
|
219
240
|
export declare function getMotionConfig(): Readonly<MotionConfig>;
|
|
241
|
+
export declare function isMotionEnabledFor(config: Readonly<MotionConfig>): boolean;
|
|
220
242
|
/** Master kill-switch — `false` disables all GSAP feature flags. */
|
|
221
243
|
export declare function isMotionEnabled(): boolean;
|
|
244
|
+
export declare function isMotionFeatureEnabledFor(config: Readonly<MotionConfig>, flag: MotionFeatureFlag): boolean;
|
|
222
245
|
/**
|
|
223
246
|
* Whether a feature flag is on under the current master kill-switch.
|
|
224
247
|
* Equivalent to `enableAnimations && config[flag]`.
|
|
225
248
|
*/
|
|
226
249
|
export declare function isMotionFeatureEnabled(flag: MotionFeatureFlag): boolean;
|
|
250
|
+
export declare function motionInteractiveFor(config: Readonly<MotionConfig>): {
|
|
251
|
+
readonly duration: number;
|
|
252
|
+
readonly ease: string;
|
|
253
|
+
};
|
|
227
254
|
/** Returns `{ duration, ease }` for standard interactive GSAP tweens (duration in seconds). */
|
|
228
255
|
export declare function motionInteractive(): {
|
|
229
256
|
readonly duration: number;
|
|
230
257
|
readonly ease: string;
|
|
231
258
|
};
|
|
259
|
+
export declare function motionModalFor(config: Readonly<MotionConfig>): {
|
|
260
|
+
readonly duration: number;
|
|
261
|
+
readonly ease: string;
|
|
262
|
+
};
|
|
232
263
|
/** Dialog / AlertDialog / Drawer enter/leave. */
|
|
233
264
|
export declare function motionModal(): {
|
|
234
265
|
readonly duration: number;
|
|
235
266
|
readonly ease: string;
|
|
236
267
|
};
|
|
268
|
+
export declare function motionHoverLiftFor(config: Readonly<MotionConfig>): {
|
|
269
|
+
readonly duration: number;
|
|
270
|
+
readonly ease: string;
|
|
271
|
+
};
|
|
237
272
|
/** Returns `{ duration, ease }` for hover-lift GSAP tweens (duration in seconds). */
|
|
238
273
|
export declare function motionHoverLift(): {
|
|
239
274
|
readonly duration: number;
|
|
240
275
|
readonly ease: string;
|
|
241
276
|
};
|
|
277
|
+
export declare function motionPressSqueezeTotalFor(config: Readonly<MotionConfig>): number;
|
|
242
278
|
/**
|
|
243
279
|
* Full press-squeeze timeline duration in seconds
|
|
244
280
|
* (`interactiveDuration × pressSqueezeDurationFactor`).
|
|
245
281
|
* Used by squeeze animations and as the open-after-squeeze delay.
|
|
246
282
|
*/
|
|
247
283
|
export declare function motionPressSqueezeTotal(): number;
|
|
284
|
+
export declare function motionSelectionFillFor(config: Readonly<MotionConfig>): {
|
|
285
|
+
readonly duration: number;
|
|
286
|
+
readonly ease: string;
|
|
287
|
+
};
|
|
248
288
|
/** Selection fill (ToggleButton, Calendar, Checkbox/Radio indicator fill). */
|
|
249
289
|
export declare function motionSelectionFill(): {
|
|
250
290
|
readonly duration: number;
|
|
251
291
|
readonly ease: string;
|
|
252
292
|
};
|
|
293
|
+
export declare function motionTooltipFor(config: Readonly<MotionConfig>): {
|
|
294
|
+
readonly duration: number;
|
|
295
|
+
readonly ease: string;
|
|
296
|
+
};
|
|
253
297
|
/** Returns `{ duration, ease }` for tooltip / popover GSAP tweens (duration in seconds). */
|
|
254
298
|
export declare function motionTooltip(): {
|
|
255
299
|
readonly duration: number;
|
|
256
300
|
readonly ease: string;
|
|
257
301
|
};
|
|
302
|
+
export declare function motionSwitchThumbFor(config: Readonly<MotionConfig>): {
|
|
303
|
+
readonly duration: number;
|
|
304
|
+
readonly ease: string;
|
|
305
|
+
};
|
|
258
306
|
/** Returns `{ duration, ease }` for the Switch thumb GSAP tween (duration in seconds). */
|
|
259
307
|
export declare function motionSwitchThumb(): {
|
|
260
308
|
readonly duration: number;
|
|
261
309
|
readonly ease: string;
|
|
262
310
|
};
|
|
311
|
+
export declare function motionExpandFor(config: Readonly<MotionConfig>): {
|
|
312
|
+
readonly duration: number;
|
|
313
|
+
readonly ease: string;
|
|
314
|
+
};
|
|
263
315
|
/** Collapsible panel (Expandable, Accordion) — in/out are symmetric. */
|
|
264
316
|
export declare function motionExpand(): {
|
|
265
317
|
readonly duration: number;
|
|
266
318
|
readonly ease: string;
|
|
267
319
|
};
|
|
320
|
+
export declare function motionContentFadeFor(config: Readonly<MotionConfig>): {
|
|
321
|
+
readonly duration: number;
|
|
322
|
+
readonly ease: string;
|
|
323
|
+
};
|
|
268
324
|
/** Quick fade (Avatar image, Calendar range tint). */
|
|
269
325
|
export declare function motionContentFade(): {
|
|
270
326
|
readonly duration: number;
|
|
271
327
|
readonly ease: string;
|
|
272
328
|
};
|
|
329
|
+
export declare function motionFeedbackExpandFor(config: Readonly<MotionConfig>): {
|
|
330
|
+
readonly duration: number;
|
|
331
|
+
};
|
|
273
332
|
/** Feedback-expand ring after async button. Easing — `ensureRippleEase()` at call site. */
|
|
274
333
|
export declare function motionFeedbackExpand(): {
|
|
275
334
|
readonly duration: number;
|
|
276
335
|
};
|
|
336
|
+
export declare function motionProgressFillFor(config: Readonly<MotionConfig>): {
|
|
337
|
+
readonly duration: number;
|
|
338
|
+
readonly ease: string;
|
|
339
|
+
};
|
|
277
340
|
/** Smooth ProgressBar fill when `value` changes. */
|
|
278
341
|
export declare function motionProgressFill(): {
|
|
279
342
|
readonly duration: number;
|
|
280
343
|
readonly ease: string;
|
|
281
344
|
};
|
|
345
|
+
export declare function motionProgressIndeterminateFor(config: Readonly<MotionConfig>): {
|
|
346
|
+
readonly duration: number;
|
|
347
|
+
readonly ease: string;
|
|
348
|
+
};
|
|
282
349
|
/** ProgressBar indeterminate translate loop. */
|
|
283
350
|
export declare function motionProgressIndeterminate(): {
|
|
284
351
|
readonly duration: number;
|
|
285
352
|
readonly ease: string;
|
|
286
353
|
};
|
|
354
|
+
export declare function motionToastDismissFor(config: Readonly<MotionConfig>): {
|
|
355
|
+
readonly duration: number;
|
|
356
|
+
readonly ease: string;
|
|
357
|
+
};
|
|
287
358
|
/** Toast dismiss slide + last-scrim fade-out. */
|
|
288
359
|
export declare function motionToastDismiss(): {
|
|
289
360
|
readonly duration: number;
|
|
290
361
|
readonly ease: string;
|
|
291
362
|
};
|
|
363
|
+
export declare function motionLoadingDotsFor(config: Readonly<MotionConfig>): {
|
|
364
|
+
readonly cycleSec: number;
|
|
365
|
+
readonly staggerSec: number;
|
|
366
|
+
readonly halfCycleSec: number;
|
|
367
|
+
readonly easeUp: string;
|
|
368
|
+
readonly easeDown: string;
|
|
369
|
+
readonly enabled: boolean;
|
|
370
|
+
};
|
|
292
371
|
/** Bouncing Loading dots — wave with fixed step duration / 3. */
|
|
293
372
|
export declare function motionLoadingDots(): {
|
|
294
373
|
readonly cycleSec: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { MotionConfig } from './motionConfig';
|
|
3
|
+
export type MotionConfigProviderProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Overlay on the parent scope (or the global `configureMotion` default).
|
|
6
|
+
* Unspecified keys inherit. Empty / invalid overlay is a no-op.
|
|
7
|
+
*/
|
|
8
|
+
motion?: Partial<MotionConfig> | null;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Scoped GSAP motion config for a React tree (including portals).
|
|
13
|
+
* `BurneUIProvider` wraps the app with this. Use it directly to overlay
|
|
14
|
+
* timings/flags on an island without a second theme root.
|
|
15
|
+
*/
|
|
16
|
+
export declare function MotionConfigProvider({ motion, children }: MotionConfigProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
/**
|
|
18
|
+
* Resolved motion config for the current tree: provider overlay, else global
|
|
19
|
+
* `configureMotion()` default. Subscribes to global revision so unspecified
|
|
20
|
+
* keys follow `configureMotion()` on the **next** play (running slot phases
|
|
21
|
+
* keep their snapshot). Looping React effects that depend on this hook rebuild.
|
|
22
|
+
*/
|
|
23
|
+
export declare function useMotionConfig(): Readonly<MotionConfig>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { MotionConfig } from './motionConfig';
|
|
2
|
+
export declare const MOTION_CONFIG_LIMITS: {
|
|
3
|
+
readonly durationMs: {
|
|
4
|
+
readonly min: 0;
|
|
5
|
+
readonly max: 60000;
|
|
6
|
+
};
|
|
7
|
+
readonly scale: {
|
|
8
|
+
readonly min: 0.5;
|
|
9
|
+
readonly max: 2;
|
|
10
|
+
};
|
|
11
|
+
readonly pressSqueezeScale: {
|
|
12
|
+
readonly min: 0.5;
|
|
13
|
+
readonly max: 2;
|
|
14
|
+
};
|
|
15
|
+
readonly factor: {
|
|
16
|
+
readonly min: 0;
|
|
17
|
+
readonly max: 4;
|
|
18
|
+
};
|
|
19
|
+
readonly opacity: {
|
|
20
|
+
readonly min: 0;
|
|
21
|
+
readonly max: 1;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Parse `rippleEaseCss` (`cubic-bezier(x1, y1, x2, y2)`).
|
|
26
|
+
* Allows negatives, leading-dot (`.25`), values > 1, and flexible whitespace.
|
|
27
|
+
*/
|
|
28
|
+
export declare function parseRippleEaseCss(css: string): readonly [number, number, number, number] | null;
|
|
29
|
+
/**
|
|
30
|
+
* Validate a `Partial<MotionConfig>` without touching live state.
|
|
31
|
+
* Returns only accepted fields; invalid keys are omitted.
|
|
32
|
+
*/
|
|
33
|
+
export declare function normalizeMotionConfig(overrides: Partial<MotionConfig>): Partial<MotionConfig>;
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
1
|
+
import { HTMLAttributes, ReactNode, Ref } from 'react';
|
|
2
2
|
import { TextVariant } from '../Text';
|
|
3
3
|
export type OptionListItemLabelProps = HTMLAttributes<HTMLSpanElement> & {
|
|
4
4
|
/** Typography for the label text. @default "base" */
|
|
5
5
|
textVariant?: TextVariant;
|
|
6
|
+
ref?: Ref<HTMLSpanElement>;
|
|
6
7
|
};
|
|
7
|
-
export declare function OptionListItemLabel({ className, children, textVariant, ...rest }: OptionListItemLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function OptionListItemLabel({ className, children, textVariant, ref, ...rest }: OptionListItemLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export type OptionListItemHintProps = HTMLAttributes<HTMLSpanElement>;
|
|
9
10
|
export declare function OptionListItemHint({ className, children, ...rest }: OptionListItemHintProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export type OptionListItemIconProps = HTMLAttributes<HTMLSpanElement
|
|
11
|
+
export type OptionListItemIconProps = HTMLAttributes<HTMLSpanElement> & {
|
|
12
|
+
ref?: Ref<HTMLSpanElement>;
|
|
13
|
+
};
|
|
11
14
|
export declare function OptionListItemIconText({ children }: {
|
|
12
15
|
children: string;
|
|
13
16
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export declare function OptionListItemIcon({ className, children, ...rest }: OptionListItemIconProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function OptionListItemIcon({ className, children, ref, ...rest }: OptionListItemIconProps): import("react/jsx-runtime").JSX.Element;
|
|
15
18
|
export type OptionListItemIndicatorShellProps = HTMLAttributes<HTMLSpanElement> & {
|
|
16
19
|
children?: ReactNode;
|
|
17
20
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
+
import { MotionConfig } from './motionConfig';
|
|
2
3
|
export type RunOpenAfterSqueezeOptions = {
|
|
3
4
|
triggerRef: RefObject<HTMLElement | null>;
|
|
4
5
|
openingRef: RefObject<boolean>;
|
|
@@ -12,6 +13,8 @@ export type RunOpenAfterSqueezeOptions = {
|
|
|
12
13
|
* Gloss / other surface plugins can inject their own squeeze without forking this helper.
|
|
13
14
|
*/
|
|
14
15
|
runSqueeze?: (el: HTMLElement) => Promise<void>;
|
|
16
|
+
/** Scoped motion config for the default squeeze. */
|
|
17
|
+
config?: Readonly<MotionConfig>;
|
|
15
18
|
};
|
|
16
19
|
/**
|
|
17
20
|
* Runs a press-squeeze animation on `triggerRef.current`, then calls `setOpen(true)`.
|
|
@@ -26,6 +29,6 @@ export type RunOpenAfterSqueezeOptions = {
|
|
|
26
29
|
*
|
|
27
30
|
* Use `useOpeningRef()` to create the required `openingRef`.
|
|
28
31
|
*/
|
|
29
|
-
export declare function runOpenAfterSqueeze({ triggerRef, openingRef, setOpen, disabled, onOpened, runSqueeze, }: RunOpenAfterSqueezeOptions): void;
|
|
32
|
+
export declare function runOpenAfterSqueeze({ triggerRef, openingRef, setOpen, disabled, onOpened, config, runSqueeze, }: RunOpenAfterSqueezeOptions): void;
|
|
30
33
|
/** Creates the guard ref used by `runOpenAfterSqueeze`. */
|
|
31
34
|
export declare function useOpeningRef(): RefObject<boolean>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MotionConfig } from './motionConfig';
|
|
2
|
+
export type SearchExpandMetrics = {
|
|
3
|
+
targetW: number;
|
|
4
|
+
collapsedDim: number;
|
|
5
|
+
expandedRadius: number;
|
|
6
|
+
padX: number;
|
|
7
|
+
iconBox: number;
|
|
8
|
+
iconLeftCollapsedCss: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function iconLeftCollapsedPx(metrics: SearchExpandMetrics, borderPx: number): number;
|
|
11
|
+
/** Layout snap only. Visual FLIP transforms are cleared. */
|
|
12
|
+
export declare function applySearchExpandInstant(el: HTMLElement, iconEl: HTMLElement | null, open: boolean, metrics: SearchExpandMetrics): void;
|
|
13
|
+
/**
|
|
14
|
+
* FLIP the shell from the last recorded visual box (handles right-aligned toolbars).
|
|
15
|
+
* Layout width snaps; visual interpolation is `x` + `scaleX` from the top-left.
|
|
16
|
+
*/
|
|
17
|
+
export declare function animateSearchShellExpand(el: HTMLElement, open: boolean, metrics: SearchExpandMetrics, config?: Readonly<MotionConfig>): gsap.core.Tween;
|
|
18
|
+
/**
|
|
19
|
+
* FLIP the icon in parent space: layout `left` snaps, visual `x`.
|
|
20
|
+
* `scaleX` counters the parent shell FLIP so the glyph is not stretched.
|
|
21
|
+
*/
|
|
22
|
+
export declare function animateSearchIconShift(iconEl: HTMLElement, shellEl: HTMLElement, open: boolean, metrics: SearchExpandMetrics, config?: Readonly<MotionConfig>): gsap.core.Tween;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MotionPartPhases } from './slotMotionTypes';
|
|
2
|
+
export type MotionRegistration = {
|
|
3
|
+
id: symbol;
|
|
4
|
+
slot: string;
|
|
5
|
+
node: HTMLElement;
|
|
6
|
+
motion?: MotionPartPhases;
|
|
7
|
+
};
|
|
8
|
+
export type MotionRegisterInput = {
|
|
9
|
+
id?: symbol;
|
|
10
|
+
slot: string;
|
|
11
|
+
node: HTMLElement | null;
|
|
12
|
+
motion?: MotionPartPhases;
|
|
13
|
+
};
|
|
14
|
+
export type MotionRegistry = {
|
|
15
|
+
register: (input: MotionRegisterInput) => () => void;
|
|
16
|
+
unregister: (id: symbol) => void;
|
|
17
|
+
getRegistrations: (slot?: string) => readonly MotionRegistration[];
|
|
18
|
+
getTarget: (slot: string) => HTMLElement | null;
|
|
19
|
+
getTargets: (slot: string) => readonly HTMLElement[];
|
|
20
|
+
snapshotTargets: () => Record<string, HTMLElement | null>;
|
|
21
|
+
find: (slot: string, node?: HTMLElement | null) => MotionRegistration | undefined;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Multi-instance slot registry. One slot name may have many live DOM nodes.
|
|
25
|
+
* `register` upserts by `id`; the disposer / `unregister` remove only that id.
|
|
26
|
+
*/
|
|
27
|
+
export declare function createMotionRegistry(): MotionRegistry;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { MotionConfig } from '../motionConfig';
|
|
3
|
+
import { MotionRegisterInput, MotionRegistration, MotionRegistry } from './createMotionRegistry';
|
|
4
|
+
import { MotionPartPhases, MotionPhaseName, MotionRecipeParams, MotionRun, MotionSlotMap, MotionValue } from './slotMotionTypes';
|
|
5
|
+
export type { MotionRegisterInput, MotionRegistration, MotionRegistry } from './createMotionRegistry';
|
|
6
|
+
export { createMotionRegistry } from './createMotionRegistry';
|
|
7
|
+
export type PlaySlotPhaseOptions = {
|
|
8
|
+
partValue?: MotionValue;
|
|
9
|
+
partMotion?: MotionPartPhases;
|
|
10
|
+
el?: HTMLElement | null;
|
|
11
|
+
waitForComplete?: boolean;
|
|
12
|
+
complete?: () => void;
|
|
13
|
+
};
|
|
14
|
+
export type PlayBroadcastOptions = {
|
|
15
|
+
waitForComplete?: boolean;
|
|
16
|
+
complete?: () => void;
|
|
17
|
+
exclude?: string[];
|
|
18
|
+
extraPartMotion?: MotionSlotMap;
|
|
19
|
+
};
|
|
20
|
+
export type MotionScopeValue = {
|
|
21
|
+
getRootMotion: () => MotionSlotMap | undefined;
|
|
22
|
+
getDefaults: () => MotionSlotMap | undefined;
|
|
23
|
+
getParams: () => MotionRecipeParams;
|
|
24
|
+
/** Unique / first live instance of a slot. Repeated slots: `getTargets(slot)`. */
|
|
25
|
+
getTarget: (slot: string) => HTMLElement | null;
|
|
26
|
+
/** All live DOM instances of a slot (deduped by node). */
|
|
27
|
+
getTargets: (slot: string) => readonly HTMLElement[];
|
|
28
|
+
getRegistrations: (slot?: string) => readonly MotionRegistration[];
|
|
29
|
+
/**
|
|
30
|
+
* Unique host upsert (one registration per slot name). Parts use `register`
|
|
31
|
+
* with a stable instance id — do not share this with repeated siblings.
|
|
32
|
+
*/
|
|
33
|
+
registerTarget: (slot: string, node: HTMLElement | null) => void;
|
|
34
|
+
/** Instance-scoped upsert. Disposer removes only this `id`. */
|
|
35
|
+
register: (input: MotionRegisterInput) => () => void;
|
|
36
|
+
resolve: (slot: string, phase: MotionPhaseName, partMotion?: MotionPartPhases) => MotionValue | undefined;
|
|
37
|
+
play: (slot: string, phase: MotionPhaseName, options?: PlaySlotPhaseOptions) => MotionRun;
|
|
38
|
+
playBroadcast: (phase: MotionPhaseName, options?: PlayBroadcastOptions) => Promise<void>;
|
|
39
|
+
};
|
|
40
|
+
export type CreateMotionScopeControllerOptions = {
|
|
41
|
+
getRootMotion: () => MotionSlotMap | undefined;
|
|
42
|
+
getDefaults: () => MotionSlotMap | undefined;
|
|
43
|
+
getParams: () => MotionRecipeParams;
|
|
44
|
+
getConfig?: () => Readonly<MotionConfig>;
|
|
45
|
+
registry?: MotionRegistry;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Scope methods without React. Provider holds refs and passes getters here.
|
|
49
|
+
*/
|
|
50
|
+
export declare function createMotionScopeController({ getRootMotion, getDefaults, getParams, getConfig, registry, }: CreateMotionScopeControllerOptions): MotionScopeValue;
|
|
51
|
+
export declare function createMotionScope(debugName: string): {
|
|
52
|
+
MotionScopeProvider: ({ motion, defaults, params, children, }: {
|
|
53
|
+
motion?: MotionSlotMap;
|
|
54
|
+
defaults?: MotionSlotMap;
|
|
55
|
+
params?: MotionRecipeParams;
|
|
56
|
+
children: ReactNode;
|
|
57
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
useMotionScope: () => MotionScopeValue;
|
|
59
|
+
useOptionalMotionScope: () => MotionScopeValue | null;
|
|
60
|
+
};
|
|
61
|
+
export declare function killMotionScope(scope: Pick<MotionScopeValue, "getRegistrations">): void;
|
|
62
|
+
/** Hide nested enter slots that start hidden so they do not FOUC. */
|
|
63
|
+
export declare function hideNestedEnterSlots(scope: MotionScopeValue, exclude: readonly string[]): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MotionValue } from './slotMotionTypes';
|
|
2
|
+
/**
|
|
3
|
+
* Kit enter recipes that start hidden. Used by `hideNestedEnterSlots` so a
|
|
4
|
+
* string recipe does not FOUC. Host portal recipes (`portalSurfaceEnter`,
|
|
5
|
+
* `modalPanelEnter`, `toastSurfaceEnter`) are **not** listed — they keep the
|
|
6
|
+
* surface visible (`opacity` / `preparePortalSurfaceForEnter`).
|
|
7
|
+
*/
|
|
8
|
+
export declare const KIT_ENTER_HIDES_FIRST_PAINT: ReadonlySet<string>;
|
|
9
|
+
/**
|
|
10
|
+
* Whether nested `enter` should `gsap.set(autoAlpha: 0)` before play.
|
|
11
|
+
* Factory functions cannot be inspected — use `{ recipe: "name", firstPaint: "hidden" }`
|
|
12
|
+
* or vars with `autoAlpha` / `firstPaint: "hidden"`.
|
|
13
|
+
*/
|
|
14
|
+
export declare function enterHidesFirstPaint(value: MotionValue | undefined): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-slot GSAP engine (`createMotionScope`, `useMotionPart`, recipes).
|
|
3
|
+
*
|
|
4
|
+
* Component file contract — Types (`XxxMotion`) → Context (`createMotionScope`) →
|
|
5
|
+
* Animations (defaults + host play + embed map) → Parts (`useMotionPart` only).
|
|
6
|
+
* See kit Slot motion API rules and site docs `content/docs/motion`.
|
|
7
|
+
*/
|
|
8
|
+
export { KIT_MOTION_RECIPES, MOTION_PHASE_NAMES, isMotionFactory, isMotionVarsObject, isMotionRunActive, LEAVE_COMPLETE_FALLBACK_MS, type KitRecipeName, type MotionAnimation, type MotionCancelReason, type MotionContext, type MotionFactory, type MotionPartPhases, type MotionPhaseName, type MotionRecipe, type MotionRecipeName, type MotionRecipeParams, type MotionRun, type MotionTransformVars, type MotionRunStatus, type MotionSlotMap, type MotionValue, type MotionVars, } from './slotMotionTypes';
|
|
9
|
+
export { registerMotionRecipe, unregisterMotionRecipe, hasMotionRecipe, listMotionRecipes, isKitMotionRecipe, getMotionRecipe, type RegisterMotionRecipeOptions, } from './motionRecipeRegistry';
|
|
10
|
+
export { mergeMotionSlotMaps, resolveMotionValue, resolveSlotPhase, } from './resolveMotionValue';
|
|
11
|
+
export { killStoredMotion, runMotionPhase, type RunMotionPhaseOptions, } from './runMotionPhase';
|
|
12
|
+
export { waitForLeaveGeneration } from './waitForLeaveGeneration';
|
|
13
|
+
export { enterHidesFirstPaint, KIT_ENTER_HIDES_FIRST_PAINT } from './enterHidesFirstPaint';
|
|
14
|
+
export { scheduleNestedEnterBroadcast, invalidateEnterFrame } from './scheduleNestedEnterBroadcast';
|
|
15
|
+
export { createMotionRegistry, createMotionScope, createMotionScopeController, hideNestedEnterSlots, killMotionScope, type MotionRegisterInput, type MotionRegistration, type MotionRegistry, type MotionScopeValue, type PlayBroadcastOptions, type PlaySlotPhaseOptions, } from './createMotionScope';
|
|
16
|
+
export { useMotionPointerPhases } from './useMotionPointerPhases';
|
|
17
|
+
export { mergeMotionPointerHandlers, mergeMotionPressHandlers, useMotionPart } from './useMotionPart';
|
|
18
|
+
export { hasPointerPhases, slotHasPointerPhases, useOptionalEnterOnMount, useSlotPhaseOnChange, } from './useSlotLifecycle';
|
|
19
|
+
export { registerKitMotionRecipes } from './recipes';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MotionScopeValue } from './createMotionScope';
|
|
2
|
+
export declare const MODAL_MOTION_HOST_SLOTS: readonly ["overlay", "panel"];
|
|
3
|
+
export type ModalHostSlot = (typeof MODAL_MOTION_HOST_SLOTS)[number];
|
|
4
|
+
export type ModalSlotMotionController = {
|
|
5
|
+
playEnter: (overlay: HTMLElement, panel: HTMLElement) => void;
|
|
6
|
+
playLeave: (overlay: HTMLElement, panel: HTMLElement, onComplete: () => void) => {
|
|
7
|
+
kill: () => void;
|
|
8
|
+
};
|
|
9
|
+
/** Cancel a pending nested-enter rAF (unmount / superseded play). */
|
|
10
|
+
cancelEnterFrame: () => void;
|
|
11
|
+
};
|
|
12
|
+
export declare function useModalSlotMotionController({ motionScope, applyInstant, }: {
|
|
13
|
+
motionScope?: MotionScopeValue | null;
|
|
14
|
+
applyInstant?: (slot: ModalHostSlot, el: HTMLElement, phase: "enter" | "leave") => void;
|
|
15
|
+
}): ModalSlotMotionController | undefined;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { KitRecipeName, MotionRecipe } from './slotMotionTypes';
|
|
2
|
+
export type RegisterMotionRecipeOptions = {
|
|
3
|
+
/**
|
|
4
|
+
* Replace a kit recipe (`hoverLiftSecondLevel`, …).
|
|
5
|
+
* Custom names never need this — re-registering them just replaces the previous app entry.
|
|
6
|
+
*/
|
|
7
|
+
override?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function isKitMotionRecipe(name: string): name is KitRecipeName;
|
|
10
|
+
/**
|
|
11
|
+
* Write the kit layer only. Does not touch app overrides, so a later
|
|
12
|
+
* `registerKitMotionRecipes()` (HMR / re-import) cannot wipe `{ override: true }`.
|
|
13
|
+
*/
|
|
14
|
+
export declare function registerKitMotionRecipe(name: KitRecipeName, recipe: MotionRecipe): void;
|
|
15
|
+
/**
|
|
16
|
+
* Register an app recipe. Custom names always write.
|
|
17
|
+
* Kit names no-op in dev with a warning unless `{ override: true }`.
|
|
18
|
+
*/
|
|
19
|
+
export declare function registerMotionRecipe(name: string, recipe: MotionRecipe, options?: RegisterMotionRecipeOptions): void;
|
|
20
|
+
/** Remove an app entry. Kit names fall back to the kit default. */
|
|
21
|
+
export declare function unregisterMotionRecipe(name: string): boolean;
|
|
22
|
+
export declare function getMotionRecipe(name: string): MotionRecipe | undefined;
|
|
23
|
+
export declare function hasMotionRecipe(name: string): boolean;
|
|
24
|
+
/** Kit names plus any app custom / override names, sorted. */
|
|
25
|
+
export declare function listMotionRecipes(): string[];
|
|
26
|
+
/** Test helper — clears app overrides/custom names, not kit defaults. */
|
|
27
|
+
export declare function clearMotionRecipesForTests(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { MotionAnimation, MotionContext } from '../slotMotionTypes';
|
|
2
|
+
/** Enter/leave panel height. Snapshot `scrollHeight` inside `animateCollapsibleHeight` — not a GSAP function value. */
|
|
3
|
+
export declare function collapsibleHeightRecipe(ctx: MotionContext): MotionAnimation | undefined;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MotionAnimation, MotionContext } from '../slotMotionTypes';
|
|
2
|
+
export declare function applyContentFadeInstant(el: HTMLElement, visible: boolean): void;
|
|
3
|
+
/** Fade `autoAlpha` 0 ↔ 1. `enter` shows, `leave` hides. */
|
|
4
|
+
export declare function contentFadeRecipe(ctx: MotionContext): MotionAnimation | undefined;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DrawerSlidePlacement } from '../../drawerSlide';
|
|
2
|
+
import { MotionAnimation, MotionContext } from '../slotMotionTypes';
|
|
3
|
+
export declare function applyDrawerPanelInstant(el: HTMLElement, placement: DrawerSlidePlacement, open: boolean): void;
|
|
4
|
+
export declare function drawerSlideEnterRecipe(ctx: MotionContext): MotionAnimation | undefined;
|
|
5
|
+
export declare function drawerSlideLeaveRecipe(ctx: MotionContext): MotionAnimation | undefined;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { MotionAnimation, MotionContext } from '../slotMotionTypes';
|
|
2
|
+
export declare function applyFileRowExitInstant(el: HTMLElement, hidden: boolean): void;
|
|
3
|
+
/** File chip leave: scale + y + autoAlpha. `leave` hides; other phases restore. */
|
|
4
|
+
export declare function fileRowExitRecipe(ctx: MotionContext): MotionAnimation | undefined;
|