burne-ui 1.8.7 → 1.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/composite/Accordion/Accordion.d.ts +1 -1
- package/dist/components/composite/Accordion/accordionAnimations.d.ts +4 -4
- package/dist/components/composite/Accordion/accordionParts.d.ts +3 -5
- package/dist/components/composite/Accordion/accordionStyles.d.ts +4 -1
- package/dist/components/composite/Accordion/accordionTypes.d.ts +14 -5
- package/dist/components/composite/Accordion/index.d.ts +5 -4
- package/dist/components/composite/AlertDialog/AlertDialog.d.ts +1 -1
- package/dist/components/composite/AlertDialog/alertDialogContext.d.ts +6 -2
- package/dist/components/composite/AlertDialog/alertDialogParts.d.ts +9 -8
- package/dist/components/composite/AlertDialog/alertDialogTypes.d.ts +33 -7
- package/dist/components/composite/AlertDialog/index.d.ts +7 -3
- package/dist/components/composite/ButtonGroup/ButtonGroup.d.ts +2 -1
- package/dist/components/composite/ButtonGroup/buttonGroupContext.d.ts +6 -2
- package/dist/components/composite/ButtonGroup/buttonGroupTypes.d.ts +8 -2
- package/dist/components/composite/ButtonGroup/index.d.ts +2 -1
- package/dist/components/composite/CheckboxGroup/CheckboxGroup.d.ts +5 -4
- package/dist/components/composite/CheckboxGroup/checkboxGroupAnimations.d.ts +13 -12
- package/dist/components/composite/CheckboxGroup/checkboxGroupContext.d.ts +6 -2
- package/dist/components/composite/CheckboxGroup/checkboxGroupParts.d.ts +16 -13
- package/dist/components/composite/CheckboxGroup/checkboxGroupTypes.d.ts +29 -8
- package/dist/components/composite/CheckboxGroup/index.d.ts +18 -18
- package/dist/components/composite/Form/Form.d.ts +2 -1
- package/dist/components/composite/Form/formContext.d.ts +6 -2
- package/dist/components/composite/Form/formParts.d.ts +2 -0
- package/dist/components/composite/Form/formTypes.d.ts +19 -2
- package/dist/components/composite/Form/index.d.ts +4 -1
- package/dist/components/composite/RadioGroup/RadioGroup.d.ts +4 -3
- package/dist/components/composite/RadioGroup/index.d.ts +19 -17
- package/dist/components/composite/RadioGroup/radioGroupAnimations.d.ts +39 -0
- package/dist/components/composite/RadioGroup/radioGroupContext.d.ts +11 -0
- package/dist/components/composite/RadioGroup/radioGroupParts.d.ts +18 -13
- package/dist/components/composite/RadioGroup/radioGroupTypes.d.ts +40 -5
- package/dist/components/composite/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -1
- package/dist/components/composite/ToggleButtonGroup/index.d.ts +2 -1
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupContext.d.ts +6 -2
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupTypes.d.ts +8 -2
- package/dist/components/core/Alert/Alert.d.ts +5 -1
- package/dist/components/core/Alert/alertContext.d.ts +6 -2
- package/dist/components/core/Alert/alertTypes.d.ts +24 -2
- package/dist/components/core/Alert/index.d.ts +5 -1
- package/dist/components/core/Avatar/Avatar.d.ts +2 -1
- package/dist/components/core/Avatar/avatarContext.d.ts +6 -2
- package/dist/components/core/Avatar/avatarTypes.d.ts +8 -2
- package/dist/components/core/Avatar/index.d.ts +2 -1
- package/dist/components/core/Badge/Badge.d.ts +5 -1
- package/dist/components/core/Badge/badgeContext.d.ts +6 -2
- package/dist/components/core/Badge/badgeParts.d.ts +5 -1
- package/dist/components/core/Badge/badgeTypes.d.ts +43 -3
- package/dist/components/core/Badge/index.d.ts +10 -2
- package/dist/components/core/Breadcrumbs/Breadcrumbs.d.ts +2 -1
- package/dist/components/core/Breadcrumbs/breadcrumbsAnimations.d.ts +19 -1
- package/dist/components/core/Breadcrumbs/breadcrumbsContext.d.ts +6 -2
- package/dist/components/core/Breadcrumbs/breadcrumbsParts.d.ts +3 -1
- package/dist/components/core/Breadcrumbs/breadcrumbsTypes.d.ts +31 -2
- package/dist/components/core/Breadcrumbs/index.d.ts +3 -1
- package/dist/components/core/Button/Button.d.ts +5 -1
- package/dist/components/core/Button/buttonContext.d.ts +6 -2
- package/dist/components/core/Button/buttonParts.d.ts +15 -7
- package/dist/components/core/Button/buttonTypes.d.ts +46 -7
- package/dist/components/core/Button/index.d.ts +17 -5
- package/dist/components/core/Calendar/calendarAnimations.d.ts +19 -1
- package/dist/components/core/Calendar/calendarContext.d.ts +6 -2
- package/dist/components/core/Calendar/calendarParts.d.ts +13 -5
- package/dist/components/core/Calendar/calendarStyles.d.ts +1 -0
- package/dist/components/core/Calendar/calendarTypes.d.ts +43 -6
- package/dist/components/core/Calendar/index.d.ts +12 -4
- package/dist/components/core/Card/Card.d.ts +5 -1
- package/dist/components/core/Card/cardContext.d.ts +6 -2
- package/dist/components/core/Card/cardTypes.d.ts +23 -2
- package/dist/components/core/Card/index.d.ts +5 -1
- package/dist/components/core/Checkbox/Checkbox.d.ts +2 -1
- package/dist/components/core/Checkbox/checkboxAnimations.d.ts +26 -4
- package/dist/components/core/Checkbox/checkboxContext.d.ts +12 -2
- package/dist/components/core/Checkbox/checkboxParts.d.ts +11 -7
- package/dist/components/core/Checkbox/checkboxTypes.d.ts +45 -10
- package/dist/components/core/Checkbox/index.d.ts +5 -2
- package/dist/components/core/CloseButton/CloseButton.d.ts +2 -1
- package/dist/components/core/CloseButton/closeButtonContext.d.ts +6 -2
- package/dist/components/core/CloseButton/closeButtonStyles.d.ts +1 -1
- package/dist/components/core/CloseButton/closeButtonTypes.d.ts +12 -3
- package/dist/components/core/ColorPicker/ColorPicker.d.ts +4 -4
- package/dist/components/core/ColorPicker/ColorSlider.d.ts +3 -1
- package/dist/components/core/ColorPicker/ColorSwatch.d.ts +2 -1
- package/dist/components/core/ColorPicker/colorPickerContext.d.ts +6 -2
- package/dist/components/core/ColorPicker/colorPickerParts.d.ts +10 -2
- package/dist/components/core/ColorPicker/colorPickerTypes.d.ts +29 -9
- package/dist/components/core/ColorPicker/colorSliderContext.d.ts +6 -2
- package/dist/components/core/ColorPicker/colorSliderTypes.d.ts +16 -2
- package/dist/components/core/ColorPicker/colorSwatchContext.d.ts +6 -2
- package/dist/components/core/ColorPicker/colorSwatchTypes.d.ts +11 -2
- package/dist/components/core/ColorPicker/index.d.ts +14 -3
- package/dist/components/core/ComboBox/ComboBox.d.ts +2 -2
- package/dist/components/core/ComboBox/comboBoxAnimations.d.ts +19 -1
- package/dist/components/core/ComboBox/comboBoxContext.d.ts +6 -2
- package/dist/components/core/ComboBox/comboBoxFieldParts.d.ts +12 -14
- package/dist/components/core/ComboBox/comboBoxParts.d.ts +4 -1
- package/dist/components/core/ComboBox/comboBoxTypes.d.ts +27 -3
- package/dist/components/core/ComboBox/index.d.ts +15 -5
- package/dist/components/core/Dialog/Dialog.d.ts +1 -1
- package/dist/components/core/Dialog/dialogContext.d.ts +6 -2
- package/dist/components/core/Dialog/dialogParts.d.ts +10 -5
- package/dist/components/core/Dialog/dialogTypes.d.ts +33 -7
- package/dist/components/core/Dialog/index.d.ts +8 -3
- package/dist/components/core/Disclosure/Disclosure.d.ts +2 -1
- package/dist/components/core/Disclosure/disclosureContext.d.ts +6 -2
- package/dist/components/core/Disclosure/disclosureParts.d.ts +1 -1
- package/dist/components/core/Disclosure/disclosureTypes.d.ts +25 -7
- package/dist/components/core/Disclosure/index.d.ts +2 -1
- package/dist/components/core/Drawer/Drawer.d.ts +1 -1
- package/dist/components/core/Drawer/drawerContext.d.ts +6 -2
- package/dist/components/core/Drawer/drawerParts.d.ts +10 -5
- package/dist/components/core/Drawer/drawerTypes.d.ts +33 -7
- package/dist/components/core/Drawer/index.d.ts +8 -3
- package/dist/components/core/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/core/Dropdown/dropdownAnimations.d.ts +30 -8
- package/dist/components/core/Dropdown/dropdownContext.d.ts +6 -2
- package/dist/components/core/Dropdown/dropdownItemParts.d.ts +4 -3
- package/dist/components/core/Dropdown/dropdownParts.d.ts +8 -4
- package/dist/components/core/Dropdown/dropdownSubParts.d.ts +2 -0
- package/dist/components/core/Dropdown/dropdownTypes.d.ts +56 -12
- package/dist/components/core/Dropdown/index.d.ts +9 -2
- package/dist/components/core/Expandable/Expandable.d.ts +2 -1
- package/dist/components/core/Expandable/expandableContext.d.ts +6 -2
- package/dist/components/core/Expandable/expandableParts.d.ts +3 -3
- package/dist/components/core/Expandable/expandableTypes.d.ts +24 -6
- package/dist/components/core/Expandable/index.d.ts +2 -1
- package/dist/components/core/Field/Field.d.ts +2 -1
- package/dist/components/core/Field/fieldAnimations.d.ts +17 -17
- package/dist/components/core/Field/fieldContext.d.ts +12 -4
- package/dist/components/core/Field/fieldParts.d.ts +8 -9
- package/dist/components/core/Field/fieldTypes.d.ts +22 -6
- package/dist/components/core/Field/index.d.ts +7 -4
- package/dist/components/core/Input/Input.d.ts +2 -2
- package/dist/components/core/Input/index.d.ts +15 -5
- package/dist/components/core/Input/inputAnimations.d.ts +20 -2
- package/dist/components/core/Input/inputContext.d.ts +6 -2
- package/dist/components/core/Input/inputControlParts.d.ts +1 -0
- package/dist/components/core/Input/inputFieldParts.d.ts +12 -14
- package/dist/components/core/Input/inputTypes.d.ts +28 -3
- package/dist/components/core/Kbd/Kbd.d.ts +2 -1
- package/dist/components/core/Kbd/index.d.ts +10 -3
- package/dist/components/core/Kbd/kbdAnimations.d.ts +19 -3
- package/dist/components/core/Kbd/kbdContext.d.ts +6 -2
- package/dist/components/core/Kbd/kbdParts.d.ts +8 -5
- package/dist/components/core/Kbd/kbdTypes.d.ts +21 -3
- package/dist/components/core/Label/Label.d.ts +12 -2
- package/dist/components/core/Label/index.d.ts +1 -2
- package/dist/components/core/Label/labelContext.d.ts +6 -2
- package/dist/components/core/Label/labelTypes.d.ts +8 -2
- package/dist/components/core/Link/Link.d.ts +1 -1
- package/dist/components/core/Link/linkContext.d.ts +6 -2
- package/dist/components/core/Link/linkTypes.d.ts +26 -3
- package/dist/components/core/ListBox/ListBox.d.ts +1 -1
- package/dist/components/core/ListBox/index.d.ts +1 -0
- package/dist/components/core/ListBox/listBoxAnimations.d.ts +20 -2
- package/dist/components/core/ListBox/listBoxContext.d.ts +6 -2
- package/dist/components/core/ListBox/listBoxParts.d.ts +8 -7
- package/dist/components/core/ListBox/listBoxTypes.d.ts +38 -6
- package/dist/components/core/Loading/Loading.d.ts +2 -1
- package/dist/components/core/Loading/loadingContext.d.ts +6 -2
- package/dist/components/core/Loading/loadingTypes.d.ts +8 -2
- package/dist/components/core/Meter/Meter.d.ts +2 -2
- package/dist/components/core/Meter/index.d.ts +14 -5
- package/dist/components/core/Meter/meterAnimations.d.ts +30 -4
- package/dist/components/core/Meter/meterContext.d.ts +7 -3
- package/dist/components/core/Meter/meterParts.d.ts +13 -14
- package/dist/components/core/Meter/meterStyles.d.ts +1 -6
- package/dist/components/core/Meter/meterTypes.d.ts +36 -12
- package/dist/components/core/Meter/useMeterTrackState.d.ts +0 -2
- package/dist/components/core/Pagination/Pagination.d.ts +3 -2
- package/dist/components/core/Pagination/index.d.ts +18 -6
- package/dist/components/core/Pagination/paginationAnimations.d.ts +29 -2
- package/dist/components/core/Pagination/paginationContext.d.ts +6 -2
- package/dist/components/core/Pagination/paginationParts.d.ts +17 -6
- package/dist/components/core/Pagination/paginationTypes.d.ts +43 -5
- package/dist/components/core/Popover/Popover.d.ts +1 -1
- package/dist/components/core/Popover/index.d.ts +9 -3
- package/dist/components/core/Popover/popoverContext.d.ts +6 -2
- package/dist/components/core/Popover/popoverParts.d.ts +9 -4
- package/dist/components/core/Popover/popoverTypes.d.ts +41 -9
- package/dist/components/core/ProgressBar/ProgressBar.d.ts +2 -2
- package/dist/components/core/ProgressBar/index.d.ts +14 -5
- package/dist/components/core/ProgressBar/progressBarAnimations.d.ts +32 -4
- package/dist/components/core/ProgressBar/progressBarContext.d.ts +7 -3
- package/dist/components/core/ProgressBar/progressBarParts.d.ts +13 -14
- package/dist/components/core/ProgressBar/progressBarTypes.d.ts +35 -12
- package/dist/components/core/Radio/Radio.d.ts +2 -1
- package/dist/components/core/Radio/index.d.ts +5 -2
- package/dist/components/core/Radio/radioAnimations.d.ts +26 -4
- package/dist/components/core/Radio/radioContext.d.ts +12 -2
- package/dist/components/core/Radio/radioParts.d.ts +11 -7
- package/dist/components/core/Radio/radioTypes.d.ts +45 -10
- package/dist/components/core/SearchInput/searchInputContext.d.ts +6 -2
- package/dist/components/core/Select/Select.d.ts +2 -2
- package/dist/components/core/Select/index.d.ts +15 -5
- package/dist/components/core/Select/selectAnimations.d.ts +19 -1
- package/dist/components/core/Select/selectContext.d.ts +6 -2
- package/dist/components/core/Select/selectFieldParts.d.ts +12 -14
- package/dist/components/core/Select/selectParts.d.ts +3 -1
- package/dist/components/core/Select/selectTriggerParts.d.ts +1 -0
- package/dist/components/core/Select/selectTypes.d.ts +27 -3
- package/dist/components/core/SelectionIndicator/SelectionIndicator.d.ts +1 -1
- package/dist/components/core/SelectionIndicator/selectionIndicatorContext.d.ts +6 -2
- package/dist/components/core/SelectionIndicator/selectionIndicatorTypes.d.ts +12 -2
- package/dist/components/core/SelectionThumb/SelectionThumb.d.ts +1 -1
- package/dist/components/core/SelectionThumb/selectionThumbContext.d.ts +6 -2
- package/dist/components/core/SelectionThumb/selectionThumbTypes.d.ts +9 -2
- package/dist/components/core/Separator/Separator.d.ts +2 -1
- package/dist/components/core/Separator/separatorContext.d.ts +6 -2
- package/dist/components/core/Separator/separatorTypes.d.ts +8 -2
- package/dist/components/core/Skeleton/Skeleton.d.ts +2 -1
- package/dist/components/core/Skeleton/index.d.ts +10 -5
- package/dist/components/core/Skeleton/skeletonContext.d.ts +6 -2
- package/dist/components/core/Skeleton/skeletonParts.d.ts +9 -4
- package/dist/components/core/Skeleton/skeletonTypes.d.ts +33 -6
- package/dist/components/core/Slider/Slider.d.ts +2 -2
- package/dist/components/core/Slider/index.d.ts +13 -5
- package/dist/components/core/Slider/sliderAnimations.d.ts +20 -1
- package/dist/components/core/Slider/sliderContext.d.ts +6 -2
- package/dist/components/core/Slider/sliderParts.d.ts +13 -15
- package/dist/components/core/Slider/sliderScaleField.d.ts +4 -6
- package/dist/components/core/Slider/sliderThumbParts.d.ts +1 -1
- package/dist/components/core/Slider/sliderTypes.d.ts +27 -5
- package/dist/components/core/Slider/useSliderTrackState.d.ts +28 -28
- package/dist/components/core/Surface/Surface.d.ts +2 -1
- package/dist/components/core/Surface/surfaceContext.d.ts +6 -2
- package/dist/components/core/Surface/surfaceTypes.d.ts +8 -2
- package/dist/components/core/Switch/Switch.d.ts +2 -1
- package/dist/components/core/Switch/index.d.ts +3 -1
- package/dist/components/core/Switch/switchAnimations.d.ts +12 -1
- package/dist/components/core/Switch/switchContext.d.ts +6 -2
- package/dist/components/core/Switch/switchControlParts.d.ts +1 -0
- package/dist/components/core/Switch/switchFieldParts.d.ts +3 -3
- package/dist/components/core/Switch/switchTrackParts.d.ts +1 -1
- package/dist/components/core/Switch/switchTypes.d.ts +50 -7
- package/dist/components/core/Switch/useSwitchRootState.d.ts +17 -17
- package/dist/components/core/Table/Table.d.ts +5 -4
- package/dist/components/core/Table/index.d.ts +14 -4
- package/dist/components/core/Table/tableAPI.d.ts +3 -1
- package/dist/components/core/Table/tableAnimations.d.ts +3 -3
- package/dist/components/core/Table/tableContext.d.ts +6 -2
- package/dist/components/core/Table/tableParts.d.ts +12 -3
- package/dist/components/core/Table/tableTypes.d.ts +30 -8
- package/dist/components/core/Tabs/Tabs.d.ts +2 -1
- package/dist/components/core/Tabs/index.d.ts +4 -1
- package/dist/components/core/Tabs/tabsAnimations.d.ts +3 -2
- package/dist/components/core/Tabs/tabsContext.d.ts +6 -2
- package/dist/components/core/Tabs/tabsPanelPart.d.ts +1 -0
- package/dist/components/core/Tabs/tabsTabPart.d.ts +1 -0
- package/dist/components/core/Tabs/tabsTypes.d.ts +19 -2
- package/dist/components/core/Text/Text.d.ts +2 -1
- package/dist/components/core/Text/textContext.d.ts +6 -2
- package/dist/components/core/Text/textTypes.d.ts +8 -2
- package/dist/components/core/TextArea/TextArea.d.ts +2 -2
- package/dist/components/core/TextArea/index.d.ts +15 -5
- package/dist/components/core/TextArea/textAreaAnimations.d.ts +19 -1
- package/dist/components/core/TextArea/textAreaContext.d.ts +6 -2
- package/dist/components/core/TextArea/textAreaParts.d.ts +14 -14
- package/dist/components/core/TextArea/textAreaTypes.d.ts +29 -3
- package/dist/components/core/TimeField/TimeField.d.ts +2 -2
- package/dist/components/core/TimeField/index.d.ts +14 -5
- package/dist/components/core/TimeField/timeFieldAnimations.d.ts +20 -2
- package/dist/components/core/TimeField/timeFieldContext.d.ts +6 -2
- package/dist/components/core/TimeField/timeFieldParts.d.ts +13 -14
- package/dist/components/core/TimeField/timeFieldTypes.d.ts +28 -4
- package/dist/components/core/Toast/Toast.d.ts +2 -1
- package/dist/components/core/Toast/index.d.ts +2 -1
- package/dist/components/core/Toast/toastAnimations.d.ts +2 -1
- package/dist/components/core/Toast/toastContext.d.ts +6 -2
- package/dist/components/core/Toast/toastTypes.d.ts +26 -9
- package/dist/components/core/ToggleButton/ToggleButton.d.ts +2 -1
- package/dist/components/core/ToggleButton/index.d.ts +2 -1
- package/dist/components/core/ToggleButton/toggleButtonContext.d.ts +6 -2
- package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +8 -2
- package/dist/components/core/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/core/Tooltip/index.d.ts +3 -2
- package/dist/components/core/Tooltip/tooltipAnimations.d.ts +1 -0
- package/dist/components/core/Tooltip/tooltipContext.d.ts +6 -2
- package/dist/components/core/Tooltip/tooltipParts.d.ts +7 -6
- package/dist/components/core/Tooltip/tooltipTypes.d.ts +34 -7
- package/dist/components/core/Tooltip/useTooltipRootState.d.ts +2 -2
- package/dist/components/core/utils/motionConfig.d.ts +4 -4
- package/dist/components/core/utils/optionListItemParts.d.ts +4 -2
- package/dist/components/core/utils/overlayTriggerSqueeze.d.ts +39 -0
- package/dist/components/core/utils/slotMotion/createMotionScope.d.ts +18 -4
- package/dist/components/core/utils/slotMotion/enterHidesFirstPaint.d.ts +3 -7
- package/dist/components/core/utils/slotMotion/index.d.ts +7 -2
- package/dist/components/core/utils/slotMotion/kitMotionRecipeMeta.d.ts +8 -0
- package/dist/components/core/utils/slotMotion/motionController.d.ts +20 -0
- package/dist/components/core/utils/slotMotion/motionController.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/motionControllerApi.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/motionControllerTypes.d.ts +49 -0
- package/dist/components/core/utils/slotMotion/motionEvents.d.ts +67 -0
- package/dist/components/core/utils/slotMotion/motionEvents.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/motionRecipeRegistry.d.ts +6 -2
- package/dist/components/core/utils/slotMotion/motionTween.d.ts +49 -0
- package/dist/components/core/utils/slotMotion/motionTween.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/playMotionState.d.ts +29 -0
- package/dist/components/core/utils/slotMotion/playMotionState.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/recipes/collapsibleHeight.d.ts +1 -1
- package/dist/components/core/utils/slotMotion/recipes/progressFill.d.ts +9 -0
- package/dist/components/core/utils/slotMotion/recipes/progressFill.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/runMotionPhase.d.ts +5 -2
- package/dist/components/core/utils/slotMotion/slotMotionTypes.d.ts +115 -9
- package/dist/components/core/utils/slotMotion/useBarFillMotion.d.ts +21 -0
- package/dist/components/core/utils/slotMotion/useMotionPart.d.ts +5 -5
- package/dist/components/core/utils/useCollapsibleHeight.d.ts +9 -1
- package/dist/components/core/utils/useContainerPointerHoverHandlers.d.ts +5 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +31 -31
- package/dist/index.js +20166 -16841
- package/dist/internal.js +1 -1
- package/dist/{themeRuntimeContext-B1dAP9WW.js → themeRuntimeContext-DCicI7AC.js} +48 -48
- package/dist/ui.css +43 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
3
|
import { MessageBannerGridSlots } from '../utils/messageBannerGridLayout';
|
|
4
4
|
import { MessageBannerSize, MessageBannerSizePreset } from '../utils/sizeLayout';
|
|
5
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
5
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
6
6
|
export type ToastSize = MessageBannerSize;
|
|
7
7
|
export type ToastStatus = "default" | "success" | "danger" | "info" | "warning";
|
|
8
8
|
export type ToastVariant = "default" | "gloss";
|
|
@@ -16,7 +16,7 @@ export type ToastPartMotion = ToastLifecycleMotion & {
|
|
|
16
16
|
hoverOut?: MotionValue;
|
|
17
17
|
};
|
|
18
18
|
export type ToastMotion = {
|
|
19
|
-
root?:
|
|
19
|
+
root?: ToastPartMotion;
|
|
20
20
|
indicator?: ToastLifecycleMotion;
|
|
21
21
|
title?: ToastPartMotion;
|
|
22
22
|
description?: ToastPartMotion;
|
|
@@ -49,7 +49,12 @@ export type AddToastOpts = {
|
|
|
49
49
|
id?: string;
|
|
50
50
|
loading?: boolean;
|
|
51
51
|
classNames?: Prettify<ToastClassNames>;
|
|
52
|
-
motion?: Prettify<ToastMotion
|
|
52
|
+
motion?: Prettify<MotionMapWithEvents<ToastMotion>>;
|
|
53
|
+
/**
|
|
54
|
+
* Handle for this toast item scope (`root`, chrome). Stack host is `ToastItemWrapper`.
|
|
55
|
+
* `play()` targets `root`. Not placed on the DOM.
|
|
56
|
+
*/
|
|
57
|
+
motionController?: MotionController;
|
|
53
58
|
};
|
|
54
59
|
export type PromiseToastOpts<T> = {
|
|
55
60
|
loading?: ReactNode;
|
|
@@ -58,7 +63,8 @@ export type PromiseToastOpts<T> = {
|
|
|
58
63
|
placement?: ToastPlacement;
|
|
59
64
|
timeout?: number;
|
|
60
65
|
classNames?: Prettify<ToastClassNames>;
|
|
61
|
-
motion?: Prettify<ToastMotion
|
|
66
|
+
motion?: Prettify<MotionMapWithEvents<ToastMotion>>;
|
|
67
|
+
motionController?: MotionController;
|
|
62
68
|
};
|
|
63
69
|
export type ToastEntry = {
|
|
64
70
|
id: string;
|
|
@@ -73,7 +79,8 @@ export type ToastEntry = {
|
|
|
73
79
|
createdAt: number;
|
|
74
80
|
loading: boolean;
|
|
75
81
|
classNames?: Prettify<ToastClassNames>;
|
|
76
|
-
motion?: Prettify<ToastMotion
|
|
82
|
+
motion?: Prettify<MotionMapWithEvents<ToastMotion>>;
|
|
83
|
+
motionController?: MotionController;
|
|
77
84
|
};
|
|
78
85
|
export type ToastLiveAnnouncement = {
|
|
79
86
|
text: string;
|
|
@@ -108,7 +115,7 @@ export type ToastProviderProps = {
|
|
|
108
115
|
/** DOM node for viewport portals. Default: `document.body`. */
|
|
109
116
|
portalContainer?: HTMLElement | null;
|
|
110
117
|
classNames?: Prettify<ToastClassNames>;
|
|
111
|
-
motion?: Prettify<ToastMotion
|
|
118
|
+
motion?: Prettify<MotionMapWithEvents<ToastMotion>>;
|
|
112
119
|
};
|
|
113
120
|
export type ToastProps = Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
114
121
|
status?: ToastStatus;
|
|
@@ -120,7 +127,17 @@ export type ToastProps = Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
|
120
127
|
loading?: boolean;
|
|
121
128
|
onClose?: () => void;
|
|
122
129
|
classNames?: Prettify<ToastClassNames>;
|
|
123
|
-
|
|
130
|
+
/**
|
|
131
|
+
* Per-slot motion (`root`, `indicator`, `title`, `description`, `action`, `close`).
|
|
132
|
+
* Standalone `<Toast>` mounts its own scope. Stack items inherit from `Toast.Provider` / `add()`.
|
|
133
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
134
|
+
*/
|
|
135
|
+
motion?: Prettify<MotionMapWithEvents<ToastMotion>>;
|
|
136
|
+
/**
|
|
137
|
+
* Handle for the standalone card scope. Stack: pass `motionController` on `toast.show()` instead.
|
|
138
|
+
* `play()` targets `root`. Not placed on the DOM.
|
|
139
|
+
*/
|
|
140
|
+
motionController?: MotionController;
|
|
124
141
|
};
|
|
125
142
|
export type UseToastRootStateProps = Pick<ToastProps, "status" | "size" | "title" | "description" | "action" | "loading" | "onClose" | "children">;
|
|
126
143
|
export type ToastIndicatorProps = HTMLAttributes<HTMLSpanElement> & {
|
|
@@ -158,7 +175,7 @@ export type ToastItemWrapperProps = {
|
|
|
158
175
|
onRemoveFinal: (id: string) => void;
|
|
159
176
|
onHeightChange: (id: string, h: number) => void;
|
|
160
177
|
providerClassNames?: ToastClassNames;
|
|
161
|
-
providerMotion?: ToastMotion
|
|
178
|
+
providerMotion?: Prettify<MotionMapWithEvents<ToastMotion>>;
|
|
162
179
|
};
|
|
163
180
|
export type ToastViewportProps = {
|
|
164
181
|
placement: ToastPlacement;
|
|
@@ -167,6 +184,6 @@ export type ToastViewportProps = {
|
|
|
167
184
|
onDismiss: (id: string) => void;
|
|
168
185
|
onRemoveFinal: (id: string) => void;
|
|
169
186
|
classNames?: Prettify<ToastClassNames>;
|
|
170
|
-
motion?: Prettify<ToastMotion
|
|
187
|
+
motion?: Prettify<MotionMapWithEvents<ToastMotion>>;
|
|
171
188
|
defaultSize?: ToastSize;
|
|
172
189
|
};
|
|
@@ -14,5 +14,6 @@ export declare const ToggleButtonRoot: import('react').ForwardRefExoticComponent
|
|
|
14
14
|
icon?: import('react').ReactNode;
|
|
15
15
|
iconPosition?: import('../utils/iconPosition').IconPosition;
|
|
16
16
|
classNames?: import('../../..').Prettify<import('./toggleButtonTypes').ToggleButtonClassNames>;
|
|
17
|
-
motion?: import('../../..').Prettify<ToggleButtonMotion
|
|
17
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<ToggleButtonMotion>>;
|
|
18
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
18
19
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -13,7 +13,8 @@ export declare const ToggleButton: import('react').ForwardRefExoticComponent<Omi
|
|
|
13
13
|
icon?: import('react').ReactNode;
|
|
14
14
|
iconPosition?: import('../utils/iconPosition').IconPosition;
|
|
15
15
|
classNames?: import('../../..').Prettify<import('./toggleButtonTypes').ToggleButtonClassNames>;
|
|
16
|
-
motion?: import('../../..').Prettify<import('./toggleButtonTypes').ToggleButtonMotion
|
|
16
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./toggleButtonTypes').ToggleButtonMotion>>;
|
|
17
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
17
18
|
} & import('react').RefAttributes<HTMLButtonElement>> & {
|
|
18
19
|
Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
19
20
|
motion?: import('../../..').Prettify<import('./toggleButtonTypes').ToggleButtonPartMotion>;
|
|
@@ -2,10 +2,14 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
3
|
import { ToggleButtonClassNames, ToggleButtonContextValue, ToggleButtonGroupContextValue } from './toggleButtonTypes';
|
|
4
4
|
/** Scope only. Defaults and host play live in `toggleButtonAnimations.ts`. */
|
|
5
|
-
export declare const ToggleButtonMotionProvider: ({ motion, defaults, params, children, }: {
|
|
6
|
-
motion?: import('../utils/slotMotion').
|
|
5
|
+
export declare const ToggleButtonMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
6
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
7
7
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
8
8
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
9
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
10
|
+
motionState?: string;
|
|
11
|
+
motionPayload?: unknown;
|
|
12
|
+
playInitialState?: boolean;
|
|
9
13
|
children: ReactNode;
|
|
10
14
|
}) => import("react/jsx-runtime").JSX.Element, useToggleButtonMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalToggleButtonMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
11
15
|
declare const ToggleButtonGroupContext: import('react').Context<ToggleButtonGroupContextValue | null>;
|
|
@@ -3,7 +3,7 @@ import { Prettify } from '../../../utils/prettify';
|
|
|
3
3
|
import { ButtonGroupSegment } from '../../composite/ButtonGroup/buttonGroupTypes';
|
|
4
4
|
import { ComponentSize } from '../utils/sizeLayout';
|
|
5
5
|
import { IconPosition } from '../utils/iconPosition';
|
|
6
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
6
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
7
7
|
export type ToggleButtonSize = ComponentSize;
|
|
8
8
|
export type ToggleButtonVariant = "default" | "outline" | "ghost" | "gloss";
|
|
9
9
|
export type ToggleButtonGroupType = "multiple" | "single";
|
|
@@ -65,8 +65,14 @@ export type ToggleButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "a
|
|
|
65
65
|
* Per-slot motion (`root`, `fill`, `content`, `label`, `iconStart`, `iconEnd`, `text`).
|
|
66
66
|
* Root defaults: first-level lift + squeeze (gloss recipes when gloss).
|
|
67
67
|
* Fill defaults: `selectionFill` on `check` / `uncheck`.
|
|
68
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
68
69
|
*/
|
|
69
|
-
motion?: Prettify<ToggleButtonMotion
|
|
70
|
+
motion?: Prettify<MotionMapWithEvents<ToggleButtonMotion>>;
|
|
71
|
+
/**
|
|
72
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
73
|
+
* Forwarded to the motion Provider (`controller`), not onto the DOM.
|
|
74
|
+
*/
|
|
75
|
+
motionController?: MotionController;
|
|
70
76
|
};
|
|
71
77
|
export type ToggleButtonFillProps = HTMLAttributes<HTMLSpanElement> & {
|
|
72
78
|
motion?: Prettify<ToggleButtonCheckMotion>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TooltipProps } from './tooltipTypes';
|
|
2
2
|
import { TooltipArrow, TooltipContent, TooltipDescription, TooltipIcon, TooltipIndicator, TooltipMessage, TooltipPanel, TooltipTitle, TooltipTrigger } from './tooltipParts';
|
|
3
|
-
export declare function TooltipRoot({ children, classNames, size, variant, status, delayShowMs, side, icon, showIcon, portalContainer, motion, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function TooltipRoot({ children, classNames, size, variant, status, delayShowMs, side, icon, showIcon, open, defaultOpen, onOpenChange, portalContainer, motion, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare namespace TooltipRoot {
|
|
5
5
|
var displayName: string;
|
|
6
6
|
}
|
|
@@ -7,7 +7,8 @@ export declare const Tooltip: typeof TooltipRoot & {
|
|
|
7
7
|
showArrow?: boolean;
|
|
8
8
|
offset?: number;
|
|
9
9
|
portalContainer?: HTMLElement | null;
|
|
10
|
-
motion?: import('../../..').Prettify<import('./tooltipTypes').TooltipMotion
|
|
10
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./tooltipTypes').TooltipMotion>>;
|
|
11
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
11
12
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
13
|
Arrow: typeof TooltipArrow;
|
|
13
14
|
Panel: typeof TooltipPanel;
|
|
@@ -17,4 +18,4 @@ export declare const Tooltip: typeof TooltipRoot & {
|
|
|
17
18
|
Title: typeof TooltipTitle;
|
|
18
19
|
Description: typeof TooltipDescription;
|
|
19
20
|
};
|
|
20
|
-
export type { TooltipVariant, TooltipSize, TooltipSide, TooltipClassNames, TooltipProps, TooltipTriggerProps, TooltipContentProps, TooltipArrowProps, TooltipPanelProps, TooltipIndicatorProps, TooltipIconProps, TooltipMessageProps, TooltipTitleProps, TooltipDescriptionProps, TooltipMotion, TooltipLifecycleMotion, } from './tooltipTypes';
|
|
21
|
+
export type { TooltipVariant, TooltipSize, TooltipSide, TooltipClassNames, TooltipProps, TooltipTriggerProps, TooltipContentProps, TooltipArrowProps, TooltipPanelProps, TooltipIndicatorProps, TooltipIconProps, TooltipMessageProps, TooltipTitleProps, TooltipDescriptionProps, TooltipMotion, TooltipLifecycleMotion, TooltipPartMotion, } from './tooltipTypes';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { MotionScopeValue } from '../utils/slotMotion';
|
|
3
3
|
import { TooltipMotion } from './tooltipTypes';
|
|
4
|
+
export declare const TOOLTIP_MOTION_HOST_SLOTS: readonly ["content"];
|
|
4
5
|
export declare const TOOLTIP_MOTION_DEFAULTS: TooltipMotion;
|
|
5
6
|
export declare function useTooltipPortalMotion({ open, portalMounted, setPortalMounted, tipRef, scope, }: {
|
|
6
7
|
open: boolean;
|
|
@@ -4,10 +4,14 @@ declare const TooltipContext: import('react').Context<TooltipContextValue | null
|
|
|
4
4
|
declare const TooltipResolvedSideContext: import('react').Context<TooltipSide>;
|
|
5
5
|
declare const TooltipBodyContext: import('react').Context<TooltipBodyContextValue | null>;
|
|
6
6
|
/** Scope only. Defaults and host play live in `tooltipAnimations.ts`. */
|
|
7
|
-
export declare const TooltipMotionProvider: ({ motion, defaults, params, children, }: {
|
|
8
|
-
motion?: import('../utils/slotMotion').
|
|
7
|
+
export declare const TooltipMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
8
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
9
9
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
10
10
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
11
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
12
|
+
motionState?: string;
|
|
13
|
+
motionPayload?: unknown;
|
|
14
|
+
playInitialState?: boolean;
|
|
11
15
|
children: import('react').ReactNode;
|
|
12
16
|
}) => import("react/jsx-runtime").JSX.Element, useTooltipMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalTooltipMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
13
17
|
export declare function TooltipClassNamesProvider({ classNames, children, }: TooltipClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TooltipArrowProps, TooltipDescriptionProps, TooltipIconProps, TooltipIndicatorProps, TooltipMessageProps, TooltipPanelProps, TooltipTitleProps } from './tooltipTypes';
|
|
2
|
-
export declare function TooltipIndicator({ className, children, showIcon: showIconProp, ...rest }: TooltipIndicatorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
2
|
+
export declare function TooltipIndicator({ className, children, showIcon: showIconProp, motion, onPointerOver, onPointerOut, ...rest }: TooltipIndicatorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
3
3
|
export declare namespace TooltipIndicator {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|
|
@@ -11,22 +11,22 @@ export declare function TooltipMessage({ className, ...rest }: TooltipMessagePro
|
|
|
11
11
|
export declare namespace TooltipMessage {
|
|
12
12
|
var displayName: string;
|
|
13
13
|
}
|
|
14
|
-
export declare function TooltipTitle({ className, ...rest }: TooltipTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function TooltipTitle({ className, motion, onPointerOver, onPointerOut, ...rest }: TooltipTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export declare namespace TooltipTitle {
|
|
16
16
|
var displayName: string;
|
|
17
17
|
}
|
|
18
|
-
export declare function TooltipDescription({ className, ...rest }: TooltipDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function TooltipDescription({ className, motion, onPointerOver, onPointerOut, ...rest }: TooltipDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export declare namespace TooltipDescription {
|
|
20
20
|
var displayName: string;
|
|
21
21
|
}
|
|
22
|
-
export declare function TooltipPanel({ variant, status, size, icon, showIcon, title, description, className, children, glossPanelRef, ...rest }: TooltipPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function TooltipPanel({ variant, status, size, icon, showIcon, title, description, className, children, glossPanelRef, motion, onPointerOver, onPointerOut, onPointerDown, onPointerUp, ...rest }: TooltipPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
export declare namespace TooltipPanel {
|
|
24
24
|
var displayName: string;
|
|
25
25
|
}
|
|
26
26
|
export declare const TooltipTrigger: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
27
27
|
asChild?: boolean;
|
|
28
28
|
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
29
|
-
export declare function TooltipArrow({ className, ...rest }: TooltipArrowProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare function TooltipArrow({ className, motion, onPointerOver, onPointerOut, ...rest }: TooltipArrowProps): import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
export declare namespace TooltipArrow {
|
|
31
31
|
var displayName: string;
|
|
32
32
|
}
|
|
@@ -34,5 +34,6 @@ export declare const TooltipContent: import('react').ForwardRefExoticComponent<i
|
|
|
34
34
|
showArrow?: boolean;
|
|
35
35
|
offset?: number;
|
|
36
36
|
portalContainer?: HTMLElement | null;
|
|
37
|
-
motion?: import('../../..').Prettify<import('./tooltipTypes').TooltipMotion
|
|
37
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./tooltipTypes').TooltipMotion>>;
|
|
38
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
38
39
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -2,7 +2,7 @@ import { HTMLAttributes, ReactNode, Ref } from 'react';
|
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
3
|
import { MessageBannerGridSlots } from '../utils/messageBannerGridLayout';
|
|
4
4
|
import { SemanticStatus } from '../utils/semanticStatusIcons';
|
|
5
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
5
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
6
6
|
import { TooltipSide } from './tooltipPosition';
|
|
7
7
|
export type { TooltipSide };
|
|
8
8
|
export type TooltipVariant = "default" | "outline" | "secondary" | "gloss";
|
|
@@ -25,8 +25,17 @@ export type TooltipLifecycleMotion = {
|
|
|
25
25
|
enter?: MotionValue;
|
|
26
26
|
leave?: MotionValue;
|
|
27
27
|
};
|
|
28
|
+
export type TooltipPartMotion = TooltipLifecycleMotion & {
|
|
29
|
+
hoverIn?: MotionValue;
|
|
30
|
+
hoverOut?: MotionValue;
|
|
31
|
+
};
|
|
28
32
|
export type TooltipMotion = {
|
|
29
|
-
content?:
|
|
33
|
+
content?: TooltipPartMotion;
|
|
34
|
+
title?: TooltipPartMotion;
|
|
35
|
+
description?: TooltipPartMotion;
|
|
36
|
+
indicator?: TooltipPartMotion;
|
|
37
|
+
arrow?: TooltipPartMotion;
|
|
38
|
+
panel?: TooltipPartMotion;
|
|
30
39
|
};
|
|
31
40
|
export type TooltipProps = {
|
|
32
41
|
children?: ReactNode;
|
|
@@ -37,14 +46,19 @@ export type TooltipProps = {
|
|
|
37
46
|
side?: TooltipSide;
|
|
38
47
|
icon?: ReactNode;
|
|
39
48
|
showIcon?: boolean;
|
|
49
|
+
open?: boolean;
|
|
50
|
+
defaultOpen?: boolean;
|
|
51
|
+
onOpenChange?: (open: boolean) => void;
|
|
40
52
|
/** DOM node for the portal. Default: `document.body`. */
|
|
41
53
|
portalContainer?: HTMLElement | null;
|
|
42
54
|
classNames?: Prettify<TooltipClassNames>;
|
|
43
55
|
/**
|
|
44
56
|
* Per-slot motion. Root has no portal DOM — the host is `Tooltip.Content`.
|
|
45
57
|
* Default: `content.enter/leave` → `portalSurfaceEnter` / `portalSurfaceLeave`.
|
|
58
|
+
* Nested `title` / `description` / `indicator` / `arrow` / `panel` are broadcast on enter/leave.
|
|
59
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
46
60
|
*/
|
|
47
|
-
motion?: Prettify<TooltipMotion
|
|
61
|
+
motion?: Prettify<MotionMapWithEvents<TooltipMotion>>;
|
|
48
62
|
};
|
|
49
63
|
export type TooltipTriggerProps = HTMLAttributes<HTMLSpanElement> & {
|
|
50
64
|
/** Merge props onto the single child (Button, etc.) instead of wrapping in `<span>`. */
|
|
@@ -55,9 +69,16 @@ export type TooltipContentProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
55
69
|
offset?: number;
|
|
56
70
|
/** Overrides Root `portalContainer`. Default: `document.body`. */
|
|
57
71
|
portalContainer?: HTMLElement | null;
|
|
58
|
-
motion?: Prettify<TooltipMotion
|
|
72
|
+
motion?: Prettify<MotionMapWithEvents<TooltipMotion>>;
|
|
73
|
+
/**
|
|
74
|
+
* Handle for the portal host (`content`, `panel`, chrome). `play()` skips — there is no `root`.
|
|
75
|
+
* Use `playSlot("content")`. Not placed on the DOM.
|
|
76
|
+
*/
|
|
77
|
+
motionController?: MotionController;
|
|
78
|
+
};
|
|
79
|
+
export type TooltipArrowProps = HTMLAttributes<HTMLSpanElement> & {
|
|
80
|
+
motion?: Prettify<TooltipPartMotion>;
|
|
59
81
|
};
|
|
60
|
-
export type TooltipArrowProps = HTMLAttributes<HTMLSpanElement>;
|
|
61
82
|
export type TooltipPanelProps = HTMLAttributes<HTMLDivElement> & {
|
|
62
83
|
variant?: TooltipVariant;
|
|
63
84
|
status?: SemanticStatus;
|
|
@@ -67,14 +88,20 @@ export type TooltipPanelProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
67
88
|
title?: ReactNode;
|
|
68
89
|
description?: ReactNode;
|
|
69
90
|
glossPanelRef?: Ref<HTMLDivElement>;
|
|
91
|
+
motion?: Prettify<TooltipPartMotion>;
|
|
70
92
|
};
|
|
71
93
|
export type TooltipIndicatorProps = HTMLAttributes<HTMLSpanElement> & {
|
|
72
94
|
showIcon?: boolean;
|
|
95
|
+
motion?: Prettify<TooltipPartMotion>;
|
|
73
96
|
};
|
|
74
97
|
export type TooltipIconProps = TooltipIndicatorProps;
|
|
75
98
|
export type TooltipMessageProps = HTMLAttributes<HTMLDivElement>;
|
|
76
|
-
export type TooltipTitleProps = HTMLAttributes<HTMLDivElement
|
|
77
|
-
|
|
99
|
+
export type TooltipTitleProps = HTMLAttributes<HTMLDivElement> & {
|
|
100
|
+
motion?: Prettify<TooltipPartMotion>;
|
|
101
|
+
};
|
|
102
|
+
export type TooltipDescriptionProps = HTMLAttributes<HTMLDivElement> & {
|
|
103
|
+
motion?: Prettify<TooltipPartMotion>;
|
|
104
|
+
};
|
|
78
105
|
export type TooltipContextValue = {
|
|
79
106
|
open: boolean;
|
|
80
107
|
tooltipId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TooltipContextValue, TooltipProps } from './tooltipTypes';
|
|
2
|
-
export type UseTooltipRootStateProps = Omit<TooltipProps, "classNames" | "children">;
|
|
3
|
-
export declare function useTooltipRootState({ size, variant, status, delayShowMs, side, icon, showIcon, portalContainer, }: UseTooltipRootStateProps): {
|
|
2
|
+
export type UseTooltipRootStateProps = Omit<TooltipProps, "classNames" | "children" | "motion">;
|
|
3
|
+
export declare function useTooltipRootState({ size, variant, status, delayShowMs, side, icon, showIcon, open: openProp, defaultOpen, onOpenChange, portalContainer, }: UseTooltipRootStateProps): {
|
|
4
4
|
contextValue: TooltipContextValue;
|
|
5
5
|
};
|
|
@@ -161,14 +161,14 @@ export interface MotionConfig {
|
|
|
161
161
|
enableContentFade: boolean;
|
|
162
162
|
/** Async button success/error expand ring. @default true */
|
|
163
163
|
enableFeedbackExpand: boolean;
|
|
164
|
-
/** Duration (ms) for ProgressBar fill when `value` changes. @default 600 */
|
|
164
|
+
/** Duration (ms) for Meter / ProgressBar fill when `value` changes. @default 600 */
|
|
165
165
|
progressFillDuration: number;
|
|
166
166
|
/**
|
|
167
|
-
* GSAP easing for ProgressBar fill animation.
|
|
167
|
+
* GSAP easing for Meter / ProgressBar fill animation.
|
|
168
168
|
* @default "power2.out"
|
|
169
169
|
*/
|
|
170
170
|
progressFillEase: string;
|
|
171
|
-
/** Animate ProgressBar fill on value change. @default true */
|
|
171
|
+
/** Animate Meter / ProgressBar fill on value change. @default true */
|
|
172
172
|
enableProgressFill: boolean;
|
|
173
173
|
/**
|
|
174
174
|
* Duration (ms) of one ProgressBar indeterminate loop (translate across track).
|
|
@@ -337,7 +337,7 @@ export declare function motionProgressFillFor(config: Readonly<MotionConfig>): {
|
|
|
337
337
|
readonly duration: number;
|
|
338
338
|
readonly ease: string;
|
|
339
339
|
};
|
|
340
|
-
/** Smooth ProgressBar fill when `value` changes. */
|
|
340
|
+
/** Smooth Meter / ProgressBar fill when `value` changes. */
|
|
341
341
|
export declare function motionProgressFill(): {
|
|
342
342
|
readonly duration: number;
|
|
343
343
|
readonly ease: string;
|
|
@@ -6,8 +6,10 @@ export type OptionListItemLabelProps = HTMLAttributes<HTMLSpanElement> & {
|
|
|
6
6
|
ref?: Ref<HTMLSpanElement>;
|
|
7
7
|
};
|
|
8
8
|
export declare function OptionListItemLabel({ className, children, textVariant, ref, ...rest }: OptionListItemLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export type OptionListItemHintProps = HTMLAttributes<HTMLSpanElement
|
|
10
|
-
|
|
9
|
+
export type OptionListItemHintProps = HTMLAttributes<HTMLSpanElement> & {
|
|
10
|
+
ref?: Ref<HTMLElement>;
|
|
11
|
+
};
|
|
12
|
+
export declare function OptionListItemHint({ className, children, ref, ...rest }: OptionListItemHintProps): import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
export type OptionListItemIconProps = HTMLAttributes<HTMLSpanElement> & {
|
|
12
14
|
ref?: Ref<HTMLSpanElement>;
|
|
13
15
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ForwardedRef, PointerEventHandler } from 'react';
|
|
2
|
+
import { MotionConfig } from './motionConfig';
|
|
3
|
+
import { MotionPartPhases, MotionScopeValue } from './slotMotion';
|
|
4
|
+
/** Defaults for overlay `trigger` — live on Root so Trigger (outside Panel) sees them. */
|
|
5
|
+
export declare const OVERLAY_TRIGGER_MOTION_DEFAULTS: {
|
|
6
|
+
trigger: {
|
|
7
|
+
pressIn: "pressSqueeze";
|
|
8
|
+
pressOut: false;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare function playOverlayTriggerOpenSqueeze({ scope, el, partMotion, config, }: {
|
|
12
|
+
scope: MotionScopeValue | null;
|
|
13
|
+
el: HTMLElement;
|
|
14
|
+
partMotion?: MotionPartPhases;
|
|
15
|
+
config?: Readonly<MotionConfig>;
|
|
16
|
+
}): Promise<void>;
|
|
17
|
+
export declare function useOverlayTriggerSlot<T extends HTMLElement>({ scope, slot, motion, forwardedRef, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }: {
|
|
18
|
+
scope: MotionScopeValue | null;
|
|
19
|
+
slot?: string;
|
|
20
|
+
motion?: MotionPartPhases;
|
|
21
|
+
forwardedRef?: ForwardedRef<T>;
|
|
22
|
+
onPointerOver?: PointerEventHandler<T>;
|
|
23
|
+
onPointerOut?: PointerEventHandler<T>;
|
|
24
|
+
onPointerDown?: PointerEventHandler<T>;
|
|
25
|
+
onPointerUp?: PointerEventHandler<T>;
|
|
26
|
+
}): {
|
|
27
|
+
part: {
|
|
28
|
+
setRef: (node: T | null) => void;
|
|
29
|
+
targetRef: import('react').RefObject<T | null>;
|
|
30
|
+
pointerHandlers: {
|
|
31
|
+
onPointerOver: (e: import('react').PointerEvent<T>) => void;
|
|
32
|
+
onPointerOut: (e: import('react').PointerEvent<T>) => void;
|
|
33
|
+
onPointerDown: (e: import('react').PointerEvent<T>) => void;
|
|
34
|
+
onPointerUp: (e: import('react').PointerEvent<T>) => void;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
openingRef: import('react').RefObject<boolean>;
|
|
38
|
+
openAfterSqueeze: (setOpen: (open: boolean) => void) => void;
|
|
39
|
+
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { MotionConfig } from '../motionConfig';
|
|
3
3
|
import { MotionRegisterInput, MotionRegistration, MotionRegistry } from './createMotionRegistry';
|
|
4
|
+
import { MotionController } from './motionControllerTypes';
|
|
5
|
+
import { MotionEvents, MotionRootInput, MotionStates } from './motionEvents';
|
|
4
6
|
import { MotionPartPhases, MotionPhaseName, MotionRecipeParams, MotionRun, MotionSlotMap, MotionValue } from './slotMotionTypes';
|
|
5
7
|
export type { MotionRegisterInput, MotionRegistration, MotionRegistry } from './createMotionRegistry';
|
|
6
8
|
export { createMotionRegistry } from './createMotionRegistry';
|
|
@@ -10,6 +12,9 @@ export type PlaySlotPhaseOptions = {
|
|
|
10
12
|
el?: HTMLElement | null;
|
|
11
13
|
waitForComplete?: boolean;
|
|
12
14
|
complete?: () => void;
|
|
15
|
+
fromState?: string;
|
|
16
|
+
toState?: string;
|
|
17
|
+
payload?: unknown;
|
|
13
18
|
};
|
|
14
19
|
export type PlayBroadcastOptions = {
|
|
15
20
|
waitForComplete?: boolean;
|
|
@@ -19,6 +24,8 @@ export type PlayBroadcastOptions = {
|
|
|
19
24
|
};
|
|
20
25
|
export type MotionScopeValue = {
|
|
21
26
|
getRootMotion: () => MotionSlotMap | undefined;
|
|
27
|
+
getEvents: () => MotionEvents | undefined;
|
|
28
|
+
getStates: () => MotionStates | undefined;
|
|
22
29
|
getDefaults: () => MotionSlotMap | undefined;
|
|
23
30
|
getParams: () => MotionRecipeParams;
|
|
24
31
|
/** Unique / first live instance of a slot. Repeated slots: `getTargets(slot)`. */
|
|
@@ -34,11 +41,13 @@ export type MotionScopeValue = {
|
|
|
34
41
|
/** Instance-scoped upsert. Disposer removes only this `id`. */
|
|
35
42
|
register: (input: MotionRegisterInput) => () => void;
|
|
36
43
|
resolve: (slot: string, phase: MotionPhaseName, partMotion?: MotionPartPhases) => MotionValue | undefined;
|
|
37
|
-
play: (slot: string,
|
|
44
|
+
play: (slot: string, name: string, options?: PlaySlotPhaseOptions) => MotionRun;
|
|
38
45
|
playBroadcast: (phase: MotionPhaseName, options?: PlayBroadcastOptions) => Promise<void>;
|
|
46
|
+
/** Bound controller for this scope (`createMotionControllerFromScope`). */
|
|
47
|
+
controller: MotionController;
|
|
39
48
|
};
|
|
40
49
|
export type CreateMotionScopeControllerOptions = {
|
|
41
|
-
getRootMotion: () =>
|
|
50
|
+
getRootMotion: () => MotionRootInput | undefined;
|
|
42
51
|
getDefaults: () => MotionSlotMap | undefined;
|
|
43
52
|
getParams: () => MotionRecipeParams;
|
|
44
53
|
getConfig?: () => Readonly<MotionConfig>;
|
|
@@ -49,10 +58,15 @@ export type CreateMotionScopeControllerOptions = {
|
|
|
49
58
|
*/
|
|
50
59
|
export declare function createMotionScopeController({ getRootMotion, getDefaults, getParams, getConfig, registry, }: CreateMotionScopeControllerOptions): MotionScopeValue;
|
|
51
60
|
export declare function createMotionScope(debugName: string): {
|
|
52
|
-
MotionScopeProvider: ({ motion, defaults, params, children, }: {
|
|
53
|
-
motion?:
|
|
61
|
+
MotionScopeProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
62
|
+
motion?: MotionRootInput;
|
|
54
63
|
defaults?: MotionSlotMap;
|
|
55
64
|
params?: MotionRecipeParams;
|
|
65
|
+
/** Deferred handle from `createMotionController()` — attach for the Provider lifetime. */
|
|
66
|
+
controller?: MotionController;
|
|
67
|
+
motionState?: string;
|
|
68
|
+
motionPayload?: unknown;
|
|
69
|
+
playInitialState?: boolean;
|
|
56
70
|
children: ReactNode;
|
|
57
71
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
58
72
|
useMotionScope: () => MotionScopeValue;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
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>;
|
|
2
|
+
export { KIT_ENTER_HIDES_FIRST_PAINT } from './kitMotionRecipeMeta';
|
|
9
3
|
/**
|
|
10
4
|
* Whether nested `enter` should `gsap.set(autoAlpha: 0)` before play.
|
|
5
|
+
* Named recipes use `MotionRecipeMetadata.hidesFirstPaint` (kit: `contentFade`;
|
|
6
|
+
* app: `registerMotionRecipe("myFade", fn, { hidesFirstPaint: true })`).
|
|
11
7
|
* Factory functions cannot be inspected — use `{ recipe: "name", firstPaint: "hidden" }`
|
|
12
8
|
* or vars with `autoAlpha` / `firstPaint: "hidden"`.
|
|
13
9
|
*/
|
|
@@ -5,8 +5,13 @@
|
|
|
5
5
|
* Animations (defaults + host play + embed map) → Parts (`useMotionPart` only).
|
|
6
6
|
* See kit Slot motion API rules and site docs `content/docs/motion`.
|
|
7
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 {
|
|
8
|
+
export { KIT_MOTION_RECIPES, MOTION_PHASE_NAMES, MOTION_RECIPE_METADATA_DEFAULTS, isMotionFactory, isMotionVarsObject, isMotionRunActive, isMotionPhaseName, LEAVE_COMPLETE_FALLBACK_MS, type KitRecipeName, type MotionAnimation, type MotionCancelReason, type MotionContext, type MotionDurationToken, type MotionDelay, type MotionFactory, type MotionPartPhases, type MotionPhaseName, type MotionRecipe, type MotionRecipeMetadata, type MotionRecipeName, type MotionRecipeParams, type MotionReducedStrategy, type MotionRun, type MotionTransformVars, type MotionTweenVars, type MotionTimeline, type MotionTimelinePosition, type MotionReplay, type MotionRunStatus, type MotionSlotMap, type MotionValue, type MotionVars, } from './slotMotionTypes';
|
|
9
|
+
export { KIT_MOTION_RECIPE_META } from './kitMotionRecipeMeta';
|
|
10
|
+
export { createMotionEvents, createMotionStates, splitMotionRootMap, } from './motionEvents';
|
|
11
|
+
export type { MotionEvents, MotionMapWithEvents, MotionStateHostProps, MotionStateSlots, MotionStates, } from './motionEvents';
|
|
12
|
+
export { attachMotionController, createMotionController, createMotionControllerFromScope, useMotionController, useMotionControllerHandle, useOptionalMotionController, MotionControllerProvider, } from './motionController';
|
|
13
|
+
export type { MotionBroadcastOptions, MotionController, MotionPlayEvent, MotionPlayOptions, MotionRunResult, } from './motionControllerTypes';
|
|
14
|
+
export { registerMotionRecipe, unregisterMotionRecipe, hasMotionRecipe, listMotionRecipes, isKitMotionRecipe, getMotionRecipe, getMotionRecipeMetadata, type RegisterMotionRecipeOptions, } from './motionRecipeRegistry';
|
|
10
15
|
export { mergeMotionSlotMaps, resolveMotionValue, resolveSlotPhase, } from './resolveMotionValue';
|
|
11
16
|
export { killStoredMotion, runMotionPhase, type RunMotionPhaseOptions, } from './runMotionPhase';
|
|
12
17
|
export { waitForLeaveGeneration } from './waitForLeaveGeneration';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { KitRecipeName, MotionRecipeMetadata } from './slotMotionTypes';
|
|
2
|
+
/**
|
|
3
|
+
* Kit recipe passport. Single source for first-paint hide, layout, leave, and duration token.
|
|
4
|
+
* `registerKitMotionRecipe` reads this table — do not duplicate flags in `enterHidesFirstPaint`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const KIT_MOTION_RECIPE_META: Record<KitRecipeName, MotionRecipeMetadata>;
|
|
7
|
+
/** Kit names whose nested enter must hide first paint (`contentFade`). Prefer live `getMotionRecipeMetadata`. */
|
|
8
|
+
export declare const KIT_ENTER_HIDES_FIRST_PAINT: ReadonlySet<string>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { MotionScopeValue } from './createMotionScope';
|
|
3
|
+
import { MotionController } from './motionControllerTypes';
|
|
4
|
+
/** Deferred handle. Pass to `motionController` / Provider `controller`; attach on mount. */
|
|
5
|
+
export declare function createMotionController(): MotionController;
|
|
6
|
+
export declare function createMotionController<TEvent extends string>(): MotionController<TEvent>;
|
|
7
|
+
/** Stable handle for the current scope (tests / `createMotionScopeController`). */
|
|
8
|
+
export declare function createMotionControllerFromScope(scope: MotionScopeValue): MotionController;
|
|
9
|
+
/** Bind a deferred handle to a live scope. `null` detaches (unmount). One handle → one scope. */
|
|
10
|
+
export declare function attachMotionController(controller: MotionController<string>, scope: MotionScopeValue | null): void;
|
|
11
|
+
export declare function MotionControllerProvider({ controller, children, }: {
|
|
12
|
+
controller: MotionController;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
/** Nearest motion scope (Alert / Dialog / …). Throws outside a scope. */
|
|
16
|
+
export declare function useMotionController(): MotionController;
|
|
17
|
+
export declare function useOptionalMotionController(): MotionController | null;
|
|
18
|
+
/** Stable `createMotionController()` for the lifetime of the component. */
|
|
19
|
+
export declare function useMotionControllerHandle(): MotionController;
|
|
20
|
+
export declare function useMotionControllerHandle<TEvent extends string>(): MotionController<TEvent>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { MotionCancelReason, MotionPhaseName, MotionRun, MotionRunStatus, MotionTransformVars, MotionValue } from './slotMotionTypes';
|
|
2
|
+
export type MotionPlayOptions = {
|
|
3
|
+
/** Unique / first instance. Default for `play()` is `"root"`. */
|
|
4
|
+
slot?: string;
|
|
5
|
+
/** Repeated slot: this DOM node. Otherwise `getTarget(slot)`. */
|
|
6
|
+
el?: HTMLElement | null;
|
|
7
|
+
waitForComplete?: boolean;
|
|
8
|
+
/** External abort — cancels the run (`killed`). */
|
|
9
|
+
signal?: AbortSignal;
|
|
10
|
+
/** Override the resolved phase value (tests / W3.2 events). */
|
|
11
|
+
value?: MotionValue;
|
|
12
|
+
};
|
|
13
|
+
export type MotionBroadcastOptions = {
|
|
14
|
+
exclude?: readonly string[];
|
|
15
|
+
waitForComplete?: boolean;
|
|
16
|
+
signal?: AbortSignal;
|
|
17
|
+
/**
|
|
18
|
+
* Delay between instance starts, in **seconds** (GSAP-style).
|
|
19
|
+
* `0` / omit — all plays start in registration order with no delay.
|
|
20
|
+
*/
|
|
21
|
+
stagger?: number;
|
|
22
|
+
};
|
|
23
|
+
export type MotionRunResult = {
|
|
24
|
+
runs: readonly MotionRun[];
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Argument to `play` / `playSlot` / `playAll`.
|
|
28
|
+
* Default `TEvent` is `string & {}`: lifecycle phases stay in autocomplete, and
|
|
29
|
+
* namespaced app events (`checkout:saving`) type-check without a generic.
|
|
30
|
+
* `never` (empty generic inference) is treated as the same loose default.
|
|
31
|
+
* Pass `keyof typeof events` to reject unknown event names; phases stay in the union.
|
|
32
|
+
*/
|
|
33
|
+
export type MotionPlayEvent<TEvent extends string = string & {}> = [TEvent] extends [never] ? MotionPhaseName | (string & {}) : MotionPhaseName | TEvent;
|
|
34
|
+
/**
|
|
35
|
+
* App handle over a live motion scope.
|
|
36
|
+
* Built-in phases (`MotionPhaseName`) are always accepted; namespaced app events
|
|
37
|
+
* resolve `motion.events`. Default `TEvent` is loose (`string & {}`).
|
|
38
|
+
*/
|
|
39
|
+
export type MotionController<TEvent extends string = string & {}> = {
|
|
40
|
+
play(event: MotionPlayEvent<TEvent>, options?: MotionPlayOptions): MotionRun;
|
|
41
|
+
playSlot(slot: string, event: MotionPlayEvent<TEvent>, options?: MotionPlayOptions): MotionRun;
|
|
42
|
+
playAll(event: MotionPlayEvent<TEvent>, options?: MotionBroadcastOptions): Promise<MotionRunResult>;
|
|
43
|
+
/** Instant compositor snap. No `MotionRun` / `finished`. */
|
|
44
|
+
set(slot: string, vars: MotionTransformVars): void;
|
|
45
|
+
cancel(slot?: string, reason?: MotionCancelReason): void;
|
|
46
|
+
getTarget(slot: string): HTMLElement | null;
|
|
47
|
+
getTargets(slot: string): readonly HTMLElement[];
|
|
48
|
+
};
|
|
49
|
+
export type MotionControllerStatus = MotionRunStatus;
|