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
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/** Scope only. Defaults and host play live in `skeletonAnimations.ts`. */
|
|
2
|
-
export declare const SkeletonMotionProvider: ({ motion, defaults, params, children, }: {
|
|
3
|
-
motion?: import('../utils/slotMotion').
|
|
2
|
+
export declare const SkeletonMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
3
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
4
4
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
5
5
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
6
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
7
|
+
motionState?: string;
|
|
8
|
+
motionPayload?: unknown;
|
|
9
|
+
playInitialState?: boolean;
|
|
6
10
|
children: import('react').ReactNode;
|
|
7
11
|
}) => import("react/jsx-runtime").JSX.Element, useSkeletonMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalSkeletonMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,25 +1,30 @@
|
|
|
1
|
+
import { MotionController, MotionMapWithEvents } from '../utils/slotMotion';
|
|
1
2
|
import { SkeletonMotion, SkeletonWaveProps } from './skeletonTypes';
|
|
2
3
|
export declare function SkeletonWave({ className, style }: SkeletonWaveProps): import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export declare const SkeletonCircle: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
4
5
|
animation?: import('./skeletonTypes').SkeletonAnimation;
|
|
5
6
|
size?: string;
|
|
6
7
|
classNames?: import('../../..').Prettify<import('./skeletonTypes').SkeletonCircleClassNames>;
|
|
7
|
-
motion?: import('../../..').Prettify<SkeletonMotion
|
|
8
|
+
motion?: import('../../..').Prettify<MotionMapWithEvents<SkeletonMotion>>;
|
|
9
|
+
motionController?: MotionController;
|
|
8
10
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
9
11
|
export declare const SkeletonText: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
10
12
|
animation?: import('./skeletonTypes').SkeletonAnimation;
|
|
11
13
|
lines?: number;
|
|
12
14
|
lastShort?: boolean;
|
|
13
15
|
classNames?: import('../../..').Prettify<import('./skeletonTypes').SkeletonTextClassNames>;
|
|
14
|
-
motion?: import('../../..').Prettify<SkeletonMotion
|
|
16
|
+
motion?: import('../../..').Prettify<MotionMapWithEvents<SkeletonMotion>>;
|
|
17
|
+
motionController?: MotionController;
|
|
15
18
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
16
19
|
export declare const SkeletonBlock: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
17
20
|
animation?: import('./skeletonTypes').SkeletonAnimation;
|
|
18
21
|
classNames?: import('../../..').Prettify<import('./skeletonTypes').SkeletonBlockClassNames>;
|
|
19
|
-
motion?: import('../../..').Prettify<SkeletonMotion
|
|
22
|
+
motion?: import('../../..').Prettify<MotionMapWithEvents<SkeletonMotion>>;
|
|
23
|
+
motionController?: MotionController;
|
|
20
24
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
21
25
|
export declare const SkeletonRegion: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
22
26
|
busy?: boolean;
|
|
23
27
|
classNames?: import('../../..').Prettify<import('./skeletonTypes').SkeletonRegionClassNames>;
|
|
24
|
-
motion?: import('../../..').Prettify<SkeletonMotion
|
|
28
|
+
motion?: import('../../..').Prettify<MotionMapWithEvents<SkeletonMotion>>;
|
|
29
|
+
motionController?: MotionController;
|
|
25
30
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties, HTMLAttributes } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
3
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
4
4
|
export type SkeletonAnimation = "pulse" | "wave" | "shimmer" | "none";
|
|
5
5
|
export type SkeletonRadius = "none" | "small" | "mid" | "full";
|
|
6
6
|
export type SkeletonClassNames = {
|
|
@@ -42,34 +42,61 @@ export type SkeletonProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
42
42
|
/**
|
|
43
43
|
* Per-slot motion (`root`). Wave overlay is CSS, not a motion slot.
|
|
44
44
|
* Defaults are empty — `enter` runs on mount only when set.
|
|
45
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
45
46
|
*/
|
|
46
|
-
motion?: Prettify<SkeletonMotion
|
|
47
|
+
motion?: Prettify<MotionMapWithEvents<SkeletonMotion>>;
|
|
48
|
+
/**
|
|
49
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
50
|
+
* Attaches to this part's nested scope (`root`). Not placed on the DOM.
|
|
51
|
+
*/
|
|
52
|
+
motionController?: MotionController;
|
|
47
53
|
};
|
|
48
54
|
export type UseSkeletonRootStateProps = Pick<SkeletonProps, "animation" | "radius">;
|
|
49
55
|
export type SkeletonCircleProps = HTMLAttributes<HTMLDivElement> & {
|
|
50
56
|
animation?: SkeletonAnimation;
|
|
51
57
|
size?: string;
|
|
52
58
|
classNames?: Prettify<SkeletonCircleClassNames>;
|
|
53
|
-
motion?: Prettify<SkeletonMotion
|
|
59
|
+
motion?: Prettify<MotionMapWithEvents<SkeletonMotion>>;
|
|
60
|
+
/**
|
|
61
|
+
* Handle for this Circle nested scope (`root`). One handle → one part.
|
|
62
|
+
* Not placed on the DOM.
|
|
63
|
+
*/
|
|
64
|
+
motionController?: MotionController;
|
|
54
65
|
};
|
|
55
66
|
export type SkeletonTextProps = HTMLAttributes<HTMLDivElement> & {
|
|
56
67
|
animation?: SkeletonAnimation;
|
|
57
68
|
lines?: number;
|
|
58
69
|
lastShort?: boolean;
|
|
59
70
|
classNames?: Prettify<SkeletonTextClassNames>;
|
|
60
|
-
motion?: Prettify<SkeletonMotion
|
|
71
|
+
motion?: Prettify<MotionMapWithEvents<SkeletonMotion>>;
|
|
72
|
+
/**
|
|
73
|
+
* Handle for this Text nested scope (`root`). One handle → one part.
|
|
74
|
+
* Not placed on the DOM.
|
|
75
|
+
*/
|
|
76
|
+
motionController?: MotionController;
|
|
61
77
|
};
|
|
62
78
|
export type SkeletonBlockProps = HTMLAttributes<HTMLDivElement> & {
|
|
63
79
|
animation?: SkeletonAnimation;
|
|
64
80
|
classNames?: Prettify<SkeletonBlockClassNames>;
|
|
65
|
-
motion?: Prettify<SkeletonMotion
|
|
81
|
+
motion?: Prettify<MotionMapWithEvents<SkeletonMotion>>;
|
|
82
|
+
/**
|
|
83
|
+
* Handle for this Block nested scope (`root`). One handle → one part.
|
|
84
|
+
* Not placed on the DOM.
|
|
85
|
+
*/
|
|
86
|
+
motionController?: MotionController;
|
|
66
87
|
};
|
|
67
88
|
/** Semantic parent for loading placeholders — sets `aria-busy` / `aria-live`. */
|
|
68
89
|
export type SkeletonRegionProps = HTMLAttributes<HTMLDivElement> & {
|
|
69
90
|
/** When true, region is loading (`aria-busy`). Default `true`. */
|
|
70
91
|
busy?: boolean;
|
|
71
92
|
classNames?: Prettify<SkeletonRegionClassNames>;
|
|
72
|
-
motion?: Prettify<SkeletonMotion
|
|
93
|
+
motion?: Prettify<MotionMapWithEvents<SkeletonMotion>>;
|
|
94
|
+
/**
|
|
95
|
+
* Handle for this Region nested scope (`region`). Children (Circle/Text/Block)
|
|
96
|
+
* keep their own scopes — one handle ≠ those bones.
|
|
97
|
+
* Not placed on the DOM.
|
|
98
|
+
*/
|
|
99
|
+
motionController?: MotionController;
|
|
73
100
|
};
|
|
74
101
|
export type SkeletonWaveProps = {
|
|
75
102
|
className?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SliderProps } from './sliderTypes';
|
|
2
|
-
export type { SliderClassNames, SliderErrorProps, SliderHeaderProps, SliderHintProps, SliderOrientation, SliderRangeProps, SliderProps, SliderSingleProps, SliderSize, SliderThickness, SliderTrackProps, SliderValueProps, SliderFillProps, SliderIconProps, SliderRailProps, SliderThumbProps, SliderThumbKind, SliderMotion, SliderPartMotion, } from './sliderTypes';
|
|
2
|
+
export type { SliderClassNames, SliderErrorProps, SliderHeaderProps, SliderHintProps, SliderLabelProps, SliderOrientation, SliderRangeProps, SliderProps, SliderSingleProps, SliderSize, SliderThickness, SliderTrackProps, SliderValueProps, SliderFillProps, SliderIconProps, SliderRailProps, SliderThumbProps, SliderThumbKind, SliderMotion, SliderPartMotion, } from './sliderTypes';
|
|
3
3
|
export { SliderTrack, SliderFill, SliderRail, SliderCompoundThumb as SliderThumb, SliderIcon, SliderHeader, SliderLabel, SliderValue, SliderHint, SliderError, } from './sliderParts';
|
|
4
|
-
export declare function SliderRoot({ children, className, classNames, id, orientation, label, showValue, valueText, hint, error, range, value, defaultValue, onValueChange, min, max, step, marks, size, thickness, formatValue, icon, disabled, ariaLabel, gloss, thumbClassName, motion, ...divRest }: SliderProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function SliderRoot({ children, className, classNames, id, orientation, label, showValue, valueText, hint, error, range, value, defaultValue, onValueChange, min, max, step, marks, size, thickness, formatValue, icon, disabled, ariaLabel, gloss, thumbClassName, motion, motionController, ...divRest }: SliderProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare namespace SliderRoot {
|
|
6
6
|
var displayName: string;
|
|
7
7
|
}
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SliderFill, SliderHeader, SliderRail, SliderRoot, SliderValue } from './Slider';
|
|
2
2
|
import { sliderThicknessToCss } from './sliderAPI';
|
|
3
3
|
import { useOptionalSliderFieldContext, useSliderFieldContext } from './sliderContext';
|
|
4
4
|
export declare const Slider: typeof SliderRoot & {
|
|
5
5
|
Header: typeof SliderHeader;
|
|
6
|
-
Label:
|
|
6
|
+
Label: import('react').ForwardRefExoticComponent<Omit<import('../Label').LabelProps, "motion" | "motionController"> & {
|
|
7
|
+
motion?: import('../../..').Prettify<import('./sliderTypes').SliderPartMotion>;
|
|
8
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
7
9
|
Value: typeof SliderValue;
|
|
8
|
-
Hint:
|
|
9
|
-
|
|
10
|
+
Hint: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
11
|
+
children?: import('react').ReactNode;
|
|
12
|
+
motion?: import('../../..').Prettify<import('./sliderTypes').SliderPartMotion>;
|
|
13
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
14
|
+
Error: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
15
|
+
children?: import('react').ReactNode;
|
|
16
|
+
motion?: import('../../..').Prettify<import('./sliderTypes').SliderPartMotion>;
|
|
17
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
10
18
|
Track: import('react').ForwardRefExoticComponent<import('./sliderTypes').SliderTrackProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
19
|
Rail: typeof SliderRail;
|
|
12
20
|
Fill: typeof SliderFill;
|
|
@@ -19,6 +27,6 @@ export declare const Slider: typeof SliderRoot & {
|
|
|
19
27
|
children?: import('react').ReactNode;
|
|
20
28
|
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
21
29
|
};
|
|
22
|
-
export type { SliderTrackProps, SliderSingleProps, SliderRangeProps, SliderOrientation, SliderSize, SliderThickness, SliderFillProps, SliderIconProps, SliderRailProps, SliderThumbProps, SliderThumbKind, SliderProps, SliderHeaderProps, SliderValueProps, SliderHintProps, SliderErrorProps, SliderClassNames, SliderMotion, SliderPartMotion, } from './sliderTypes';
|
|
30
|
+
export type { SliderTrackProps, SliderSingleProps, SliderRangeProps, SliderOrientation, SliderSize, SliderThickness, SliderFillProps, SliderIconProps, SliderRailProps, SliderThumbProps, SliderThumbKind, SliderProps, SliderHeaderProps, SliderValueProps, SliderLabelProps, SliderHintProps, SliderErrorProps, SliderClassNames, SliderMotion, SliderPartMotion, } from './sliderTypes';
|
|
23
31
|
export { sliderThicknessToCss };
|
|
24
32
|
export { useOptionalSliderFieldContext, useSliderFieldContext, };
|
|
@@ -1,10 +1,29 @@
|
|
|
1
|
+
import { ForwardedRef, PointerEventHandler } from 'react';
|
|
1
2
|
import { MotionScopeValue } from '../utils/slotMotion';
|
|
2
|
-
import { SliderMotion } from './sliderTypes';
|
|
3
|
+
import { SliderMotion, SliderPartMotion } from './sliderTypes';
|
|
3
4
|
export declare const SLIDER_MOTION_DEFAULTS: SliderMotion;
|
|
4
5
|
export declare function resolveSliderMotionDefaults({ disabled }: {
|
|
5
6
|
disabled?: boolean;
|
|
6
7
|
}): SliderMotion;
|
|
7
8
|
export declare function useSliderTrackSlotMotion(scope: MotionScopeValue | null, identity: string, disabled?: boolean): void;
|
|
9
|
+
export type SliderChromeSlot = "label" | "hint" | "error";
|
|
10
|
+
export declare function useSliderChromeSlot(slot: SliderChromeSlot, { motion, forwardedRef, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }?: {
|
|
11
|
+
motion?: SliderPartMotion;
|
|
12
|
+
forwardedRef?: ForwardedRef<HTMLElement>;
|
|
13
|
+
onPointerOver?: PointerEventHandler<HTMLElement>;
|
|
14
|
+
onPointerOut?: PointerEventHandler<HTMLElement>;
|
|
15
|
+
onPointerDown?: PointerEventHandler<HTMLElement>;
|
|
16
|
+
onPointerUp?: PointerEventHandler<HTMLElement>;
|
|
17
|
+
}): {
|
|
18
|
+
setRef: (node: HTMLElement | null) => void;
|
|
19
|
+
targetRef: import('react').RefObject<HTMLElement | null>;
|
|
20
|
+
pointerHandlers: {
|
|
21
|
+
onPointerOver: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
22
|
+
onPointerOut: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
23
|
+
onPointerDown: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
24
|
+
onPointerUp: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
8
27
|
export declare function useSliderThumbShellAnimation(disabled?: boolean): import('react').RefObject<HTMLSpanElement | null>;
|
|
9
28
|
export declare function useSliderFillCleanup(fillRef: React.RefObject<HTMLSpanElement | null>): void;
|
|
10
29
|
export declare function applySliderFillStyle(fill: HTMLSpanElement, style: {
|
|
@@ -16,9 +16,13 @@ export declare function SliderTrackProvider({ value, children, }: {
|
|
|
16
16
|
}): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export declare function useSliderTrackContext(): SliderTrackContextValue;
|
|
18
18
|
/** Scope only. Defaults live in `sliderAnimations.ts`. */
|
|
19
|
-
export declare const SliderMotionProvider: ({ motion, defaults, params, children, }: {
|
|
20
|
-
motion?: import('../utils/slotMotion').
|
|
19
|
+
export declare const SliderMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
20
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
21
21
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
22
22
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
23
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
24
|
+
motionState?: string;
|
|
25
|
+
motionPayload?: unknown;
|
|
26
|
+
playInitialState?: boolean;
|
|
23
27
|
children: ReactNode;
|
|
24
28
|
}) => import("react/jsx-runtime").JSX.Element, useSliderMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalSliderMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SliderErrorProps, SliderHeaderProps, SliderHintProps, SliderTrackProps, SliderValueProps } from './sliderTypes';
|
|
1
|
+
import { SliderHeaderProps, SliderTrackProps, SliderValueProps } from './sliderTypes';
|
|
3
2
|
export { SliderCompoundThumb, SliderFill, SliderIcon, SliderRail, } from './sliderTrackParts';
|
|
4
|
-
export declare function SliderSimpleBody({ label, showValue, valueText, hint, error,
|
|
3
|
+
export declare function SliderSimpleBody({ label, showValue, valueText, hint, error, trackProps, }: {
|
|
5
4
|
label?: React.ReactNode;
|
|
6
5
|
showValue?: boolean;
|
|
7
6
|
valueText?: React.ReactNode;
|
|
@@ -11,10 +10,9 @@ export declare function SliderSimpleBody({ label, showValue, valueText, hint, er
|
|
|
11
10
|
errorId?: string;
|
|
12
11
|
trackProps: SliderTrackProps;
|
|
13
12
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export declare
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
13
|
+
export declare const SliderLabel: import('react').ForwardRefExoticComponent<Omit<import('../Label').LabelProps, "motion" | "motionController"> & {
|
|
14
|
+
motion?: import('../../..').Prettify<import('./sliderTypes').SliderPartMotion>;
|
|
15
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
18
16
|
export declare function SliderHeader({ children, className, ...rest }: SliderHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
17
|
export declare namespace SliderHeader {
|
|
20
18
|
var displayName: string;
|
|
@@ -23,12 +21,12 @@ export declare function SliderValue({ children, className, ...rest }: SliderValu
|
|
|
23
21
|
export declare namespace SliderValue {
|
|
24
22
|
var displayName: string;
|
|
25
23
|
}
|
|
26
|
-
export declare
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
export declare
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
24
|
+
export declare const SliderHint: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
25
|
+
children?: import('react').ReactNode;
|
|
26
|
+
motion?: import('../../..').Prettify<import('./sliderTypes').SliderPartMotion>;
|
|
27
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
28
|
+
export declare const SliderError: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
29
|
+
children?: import('react').ReactNode;
|
|
30
|
+
motion?: import('../../..').Prettify<import('./sliderTypes').SliderPartMotion>;
|
|
31
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
34
32
|
export declare const SliderTrack: import('react').ForwardRefExoticComponent<SliderTrackProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -26,14 +26,12 @@ export type SliderSimpleLayoutParts = {
|
|
|
26
26
|
};
|
|
27
27
|
export type SliderSimpleLayoutProps = SliderSimpleLayoutParts & {
|
|
28
28
|
label?: ReactNode;
|
|
29
|
-
|
|
29
|
+
labelNode?: ReactNode;
|
|
30
30
|
showValue?: boolean;
|
|
31
31
|
valueText?: ReactNode;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
error?: ReactNode;
|
|
35
|
-
errorId?: string;
|
|
32
|
+
hintNode?: ReactNode;
|
|
33
|
+
errorNode?: ReactNode;
|
|
36
34
|
track: ReactNode;
|
|
37
35
|
};
|
|
38
36
|
/** Simple mode layout for Slider. */
|
|
39
|
-
export declare function renderSliderSimpleLayout({ label,
|
|
37
|
+
export declare function renderSliderSimpleLayout({ label, labelNode, showValue, valueText, hintNode, errorNode, Header, Value, track, }: SliderSimpleLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -19,4 +19,4 @@ export declare const SliderThumbButton: import('react').ForwardRefExoticComponen
|
|
|
19
19
|
motion?: import('./sliderTypes').SliderPartMotion;
|
|
20
20
|
onPointerDown: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
|
|
21
21
|
onKeyDown: (e: import('react').KeyboardEvent<HTMLButtonElement>) => void;
|
|
22
|
-
} & Omit<import('react').HTMLAttributes<HTMLButtonElement>, "type" | "style" | "children" | "
|
|
22
|
+
} & Omit<import('react').HTMLAttributes<HTMLButtonElement>, "type" | "style" | "children" | "className" | "role" | "onPointerDown" | "onKeyDown" | "disabled" | "active"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CSSProperties, HTMLAttributes, KeyboardEvent, PointerEvent, ReactNode, RefObject } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
|
-
import {
|
|
3
|
+
import { LabelProps } from '../Label';
|
|
4
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
4
5
|
export type SliderOrientation = "horizontal" | "vertical";
|
|
5
6
|
export type SliderSize = "small" | "base" | "mid" | "large";
|
|
6
7
|
export type SliderThickness = number | string;
|
|
@@ -37,6 +38,9 @@ export type SliderMotion = {
|
|
|
37
38
|
icon?: SliderPartMotion;
|
|
38
39
|
header?: SliderPartMotion;
|
|
39
40
|
value?: SliderPartMotion;
|
|
41
|
+
label?: SliderPartMotion;
|
|
42
|
+
hint?: SliderPartMotion;
|
|
43
|
+
error?: SliderPartMotion;
|
|
40
44
|
};
|
|
41
45
|
export type SliderDisplayState = {
|
|
42
46
|
valueLabel: string;
|
|
@@ -125,7 +129,12 @@ export type SliderRangeProps = SliderCommonProps & {
|
|
|
125
129
|
onValueChange?: (value: [number, number]) => void;
|
|
126
130
|
};
|
|
127
131
|
export type SliderTrackProps = (SliderSingleProps | SliderRangeProps) & {
|
|
128
|
-
motion?: Prettify<SliderMotion
|
|
132
|
+
motion?: Prettify<MotionMapWithEvents<SliderMotion>>;
|
|
133
|
+
/**
|
|
134
|
+
* Deferred handle for a standalone Track (no parent Slider Root).
|
|
135
|
+
* Inside `<Slider>` the Root handle covers track + chrome — do not pass a second handle here.
|
|
136
|
+
*/
|
|
137
|
+
motionController?: MotionController;
|
|
129
138
|
};
|
|
130
139
|
export type SliderProps = Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" | "value"> & {
|
|
131
140
|
children?: ReactNode;
|
|
@@ -138,11 +147,19 @@ export type SliderProps = Omit<HTMLAttributes<HTMLDivElement>, "defaultValue" |
|
|
|
138
147
|
error?: ReactNode;
|
|
139
148
|
classNames?: Prettify<SliderClassNames>;
|
|
140
149
|
/**
|
|
141
|
-
* Per-slot motion (`track`, `rail`, `fill`, `thumb`, `icon`, `header`, `value`).
|
|
150
|
+
* Per-slot motion (`track`, `rail`, `fill`, `thumb`, `icon`, `header`, `value`, `label`, `hint`, `error`).
|
|
142
151
|
* Thumb press default: `pressSqueeze` (`pressOut: false`). Fill geometry (`left`/`width`) is kit-internal.
|
|
143
152
|
* Phase `change` plays on `track` when value updates (broadcast; `fill` excluded).
|
|
153
|
+
* Chrome and Track share the Root scope (siblings). There is no `root` slot.
|
|
154
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
155
|
+
*/
|
|
156
|
+
motion?: Prettify<MotionMapWithEvents<SliderMotion>>;
|
|
157
|
+
/**
|
|
158
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
159
|
+
* One handle → Root scope (chrome + track/thumb). Standalone `Slider.Track` uses its own prop.
|
|
160
|
+
* Not placed on the DOM.
|
|
144
161
|
*/
|
|
145
|
-
|
|
162
|
+
motionController?: MotionController;
|
|
146
163
|
} & (Partial<Omit<SliderSingleProps, "orientation" | "className" | "classNames">> | Partial<Omit<SliderRangeProps, "orientation" | "className" | "classNames">>);
|
|
147
164
|
export type SliderClassNamesProviderProps = {
|
|
148
165
|
classNames?: Prettify<SliderClassNames>;
|
|
@@ -154,11 +171,16 @@ export type SliderHeaderProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
154
171
|
export type SliderValueProps = HTMLAttributes<HTMLSpanElement> & {
|
|
155
172
|
children?: ReactNode;
|
|
156
173
|
};
|
|
174
|
+
export type SliderLabelProps = Omit<LabelProps, "motion" | "motionController"> & {
|
|
175
|
+
motion?: Prettify<SliderPartMotion>;
|
|
176
|
+
};
|
|
157
177
|
export type SliderHintProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
158
178
|
children?: ReactNode;
|
|
179
|
+
motion?: Prettify<SliderPartMotion>;
|
|
159
180
|
};
|
|
160
181
|
export type SliderErrorProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
161
182
|
children?: ReactNode;
|
|
183
|
+
motion?: Prettify<SliderPartMotion>;
|
|
162
184
|
};
|
|
163
185
|
export type SliderFillProps = HTMLAttributes<HTMLSpanElement>;
|
|
164
186
|
export type SliderRailProps = HTMLAttributes<HTMLDivElement>;
|
|
@@ -193,7 +215,7 @@ export type SliderThumbButtonProps = {
|
|
|
193
215
|
onPointerDown: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
194
216
|
onKeyDown: (e: KeyboardEvent<HTMLButtonElement>) => void;
|
|
195
217
|
} & Omit<HTMLAttributes<HTMLButtonElement>, "children" | "className" | "style" | "disabled" | "onPointerDown" | "onKeyDown" | "role" | "type" | "active">;
|
|
196
|
-
export type UseSliderRootStateProps = Omit<SliderProps, "className" | "classNames" | "motion">;
|
|
218
|
+
export type UseSliderRootStateProps = Omit<SliderProps, "className" | "classNames" | "motion" | "motionController">;
|
|
197
219
|
export type FillSpan = {
|
|
198
220
|
start: number;
|
|
199
221
|
end: number;
|
|
@@ -870,28 +870,32 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
|
|
|
870
870
|
slot?: string | undefined | undefined;
|
|
871
871
|
title?: string | undefined | undefined;
|
|
872
872
|
hidden?: boolean | undefined | undefined;
|
|
873
|
+
part?: string | undefined | undefined;
|
|
873
874
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
874
|
-
|
|
875
|
-
onPointerOut?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
875
|
+
accessKey?: string | undefined | undefined;
|
|
876
876
|
dir?: string | undefined | undefined;
|
|
877
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
878
|
+
inert?: boolean | undefined | undefined;
|
|
879
|
+
lang?: string | undefined | undefined;
|
|
880
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
877
881
|
id?: string | undefined | undefined;
|
|
882
|
+
role?: import('react').AriaRole | undefined;
|
|
883
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
884
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
885
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
886
|
+
nonce?: string | undefined | undefined;
|
|
887
|
+
tabIndex?: number | undefined | undefined;
|
|
888
|
+
onPointerOver?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
889
|
+
onPointerOut?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
878
890
|
onPointerUp?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
879
891
|
defaultChecked?: boolean | undefined | undefined;
|
|
880
892
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
881
893
|
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
882
|
-
accessKey?: string | undefined | undefined;
|
|
883
894
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
884
895
|
autoFocus?: boolean | undefined | undefined;
|
|
885
|
-
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
886
896
|
contextMenu?: string | undefined | undefined;
|
|
887
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
888
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
889
|
-
lang?: string | undefined | undefined;
|
|
890
|
-
nonce?: string | undefined | undefined;
|
|
891
897
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
892
|
-
tabIndex?: number | undefined | undefined;
|
|
893
898
|
radioGroup?: string | undefined | undefined;
|
|
894
|
-
role?: import('react').AriaRole | undefined;
|
|
895
899
|
about?: string | undefined | undefined;
|
|
896
900
|
datatype?: string | undefined | undefined;
|
|
897
901
|
inlist?: any;
|
|
@@ -911,14 +915,10 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
|
|
|
911
915
|
results?: number | undefined | undefined;
|
|
912
916
|
security?: string | undefined | undefined;
|
|
913
917
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
914
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
915
918
|
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
916
919
|
popoverTarget?: string | undefined | undefined;
|
|
917
|
-
inert?: boolean | undefined | undefined;
|
|
918
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
919
920
|
is?: string | undefined | undefined;
|
|
920
921
|
exportparts?: string | undefined | undefined;
|
|
921
|
-
part?: string | undefined | undefined;
|
|
922
922
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
923
923
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
924
924
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
@@ -1143,28 +1143,32 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
|
|
|
1143
1143
|
slot?: string | undefined | undefined;
|
|
1144
1144
|
title?: string | undefined | undefined;
|
|
1145
1145
|
hidden?: boolean | undefined | undefined;
|
|
1146
|
+
part?: string | undefined | undefined;
|
|
1146
1147
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
1147
|
-
|
|
1148
|
-
onPointerOut?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1148
|
+
accessKey?: string | undefined | undefined;
|
|
1149
1149
|
dir?: string | undefined | undefined;
|
|
1150
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
1151
|
+
inert?: boolean | undefined | undefined;
|
|
1152
|
+
lang?: string | undefined | undefined;
|
|
1153
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
1150
1154
|
id?: string | undefined | undefined;
|
|
1155
|
+
role?: import('react').AriaRole | undefined;
|
|
1156
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
1157
|
+
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
1158
|
+
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
1159
|
+
nonce?: string | undefined | undefined;
|
|
1160
|
+
tabIndex?: number | undefined | undefined;
|
|
1161
|
+
onPointerOver?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1162
|
+
onPointerOut?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1151
1163
|
onPointerUp?: import('react').PointerEventHandler<HTMLDivElement> | undefined;
|
|
1152
1164
|
defaultChecked?: boolean | undefined | undefined;
|
|
1153
1165
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
1154
1166
|
suppressHydrationWarning?: boolean | undefined | undefined;
|
|
1155
|
-
accessKey?: string | undefined | undefined;
|
|
1156
1167
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
1157
1168
|
autoFocus?: boolean | undefined | undefined;
|
|
1158
|
-
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
1159
1169
|
contextMenu?: string | undefined | undefined;
|
|
1160
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
1161
|
-
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
1162
|
-
lang?: string | undefined | undefined;
|
|
1163
|
-
nonce?: string | undefined | undefined;
|
|
1164
1170
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
1165
|
-
tabIndex?: number | undefined | undefined;
|
|
1166
1171
|
radioGroup?: string | undefined | undefined;
|
|
1167
|
-
role?: import('react').AriaRole | undefined;
|
|
1168
1172
|
about?: string | undefined | undefined;
|
|
1169
1173
|
datatype?: string | undefined | undefined;
|
|
1170
1174
|
inlist?: any;
|
|
@@ -1184,14 +1188,10 @@ export declare function useSliderTrackState(props: SliderTrackProps, ref: React.
|
|
|
1184
1188
|
results?: number | undefined | undefined;
|
|
1185
1189
|
security?: string | undefined | undefined;
|
|
1186
1190
|
unselectable?: "on" | "off" | undefined | undefined;
|
|
1187
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
1188
1191
|
popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
|
|
1189
1192
|
popoverTarget?: string | undefined | undefined;
|
|
1190
|
-
inert?: boolean | undefined | undefined;
|
|
1191
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
1192
1193
|
is?: string | undefined | undefined;
|
|
1193
1194
|
exportparts?: string | undefined | undefined;
|
|
1194
|
-
part?: string | undefined | undefined;
|
|
1195
1195
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
1196
1196
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
1197
1197
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
@@ -5,5 +5,6 @@ export declare const Surface: import('react').ForwardRefExoticComponent<import('
|
|
|
5
5
|
padding?: import('./surfaceTypes').SurfacePadding;
|
|
6
6
|
radius?: import('./surfaceTypes').SurfaceRadius;
|
|
7
7
|
classNames?: import('../../..').Prettify<import('./surfaceTypes').SurfaceClassNames>;
|
|
8
|
-
motion?: import('../../..').Prettify<import('./surfaceTypes').SurfaceMotion
|
|
8
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./surfaceTypes').SurfaceMotion>>;
|
|
9
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
9
10
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/** Scope only. Defaults and host play live in `surfaceAnimations.ts`. */
|
|
2
|
-
export declare const SurfaceMotionProvider: ({ motion, defaults, params, children, }: {
|
|
3
|
-
motion?: import('../utils/slotMotion').
|
|
2
|
+
export declare const SurfaceMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
3
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
4
4
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
5
5
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
6
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
7
|
+
motionState?: string;
|
|
8
|
+
motionPayload?: unknown;
|
|
9
|
+
playInitialState?: boolean;
|
|
6
10
|
children: import('react').ReactNode;
|
|
7
11
|
}) => import("react/jsx-runtime").JSX.Element, useSurfaceMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalSurfaceMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
3
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
4
4
|
import { ShadowSize } from '../../../tokens/shadows';
|
|
5
5
|
export type SurfaceVariant = "default" | "secondary" | "tertiary" | "gloss";
|
|
6
6
|
export type SurfaceShadow = ShadowSize;
|
|
@@ -30,6 +30,12 @@ export type SurfaceProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
30
30
|
/**
|
|
31
31
|
* Per-slot motion (`root`). `glossContent` is a layout wrapper, not a motion slot.
|
|
32
32
|
* Defaults are empty — custom factories are opt-in.
|
|
33
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
33
34
|
*/
|
|
34
|
-
motion?: Prettify<SurfaceMotion
|
|
35
|
+
motion?: Prettify<MotionMapWithEvents<SurfaceMotion>>;
|
|
36
|
+
/**
|
|
37
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
38
|
+
* Forwarded to the motion Provider (`controller`), not onto the DOM.
|
|
39
|
+
*/
|
|
40
|
+
motionController?: MotionController;
|
|
35
41
|
};
|
|
@@ -12,7 +12,8 @@ export declare const SwitchRoot: import('react').ForwardRefExoticComponent<Omit<
|
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
className?: string;
|
|
14
14
|
classNames?: import('../../..').Prettify<import('./switchTypes').SwitchClassNames>;
|
|
15
|
-
motion?: import('../../..').Prettify<import('./switchTypes').SwitchMotion
|
|
15
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./switchTypes').SwitchMotion>>;
|
|
16
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
16
17
|
onPointerDown?: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
|
|
17
18
|
} & Partial<SwitchControlProps> & import('react').RefAttributes<HTMLLabelElement>>;
|
|
18
19
|
export { SwitchControl, SwitchTrack, SwitchFill, SwitchThumb, SwitchIcon, SwitchContent, SwitchLabel, SwitchHint, SwitchError, };
|
|
@@ -9,7 +9,8 @@ export declare const Switch: import('react').ForwardRefExoticComponent<Omit<impo
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
className?: string;
|
|
11
11
|
classNames?: import('../../..').Prettify<import('./switchTypes').SwitchClassNames>;
|
|
12
|
-
motion?: import('../../..').Prettify<import('./switchTypes').SwitchMotion
|
|
12
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./switchTypes').SwitchMotion>>;
|
|
13
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
13
14
|
onPointerDown?: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
|
|
14
15
|
} & Partial<import('./switchTypes').SwitchControlProps> & import('react').RefAttributes<HTMLLabelElement>> & {
|
|
15
16
|
Control: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onChange" | "htmlFor"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "children" | "className"> & {
|
|
@@ -22,6 +23,7 @@ export declare const Switch: import('react').ForwardRefExoticComponent<Omit<impo
|
|
|
22
23
|
className?: string;
|
|
23
24
|
classNames?: import('../../..').Prettify<Pick<import('./switchTypes').SwitchClassNames, "control" | "input" | "track" | "fill" | "thumb" | "thumbShell" | "icon">>;
|
|
24
25
|
children?: import('react').ReactNode;
|
|
26
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
25
27
|
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
26
28
|
Track: typeof SwitchTrack;
|
|
27
29
|
Fill: typeof SwitchFill;
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
import { SwitchMotion, UseSwitchAnimationsProps, UseSwitchTrackAnimationsProps } from './switchTypes';
|
|
1
|
+
import { SwitchCheckMotion, SwitchMotion, UseSwitchAnimationsProps, UseSwitchTrackAnimationsProps } from './switchTypes';
|
|
2
2
|
export declare const SWITCH_MOTION_DEFAULTS: SwitchMotion;
|
|
3
|
+
export type SwitchChromeSlot = "label" | "hint" | "error";
|
|
4
|
+
export declare function useSwitchChromeSlot(slot: SwitchChromeSlot, motion?: SwitchCheckMotion): {
|
|
5
|
+
setRef: (node: HTMLElement | null) => void;
|
|
6
|
+
targetRef: import('react').RefObject<HTMLElement | null>;
|
|
7
|
+
pointerHandlers: {
|
|
8
|
+
onPointerOver: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
9
|
+
onPointerOut: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
10
|
+
onPointerDown: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
11
|
+
onPointerUp: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
3
14
|
export declare function useSwitchTextMotion({ isDisabled, enableTextMotion, textMotionRef, onPointerDown, onKeyDown, }: UseSwitchAnimationsProps): {
|
|
4
15
|
handlePointerEnter: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
|
|
5
16
|
handlePointerLeave: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
|
|
@@ -16,9 +16,13 @@ export declare function SwitchTrackProvider({ value, children, }: {
|
|
|
16
16
|
}): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export declare function useSwitchTrackContext(): SwitchTrackContextValue;
|
|
18
18
|
/** Scope only. Defaults and host play live in `switchAnimations.ts`. */
|
|
19
|
-
export declare const SwitchMotionProvider: ({ motion, defaults, params, children, }: {
|
|
20
|
-
motion?: import('../utils/slotMotion').
|
|
19
|
+
export declare const SwitchMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
20
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
21
21
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
22
22
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
23
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
24
|
+
motionState?: string;
|
|
25
|
+
motionPayload?: unknown;
|
|
26
|
+
playInitialState?: boolean;
|
|
23
27
|
children: ReactNode;
|
|
24
28
|
}) => import("react/jsx-runtime").JSX.Element, useSwitchMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalSwitchMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -9,4 +9,5 @@ export declare const SwitchControl: import('react').ForwardRefExoticComponent<Om
|
|
|
9
9
|
className?: string;
|
|
10
10
|
classNames?: import('../../..').Prettify<Pick<import('./switchTypes').SwitchClassNames, "control" | "input" | "track" | "fill" | "thumb" | "thumbShell" | "icon">>;
|
|
11
11
|
children?: ReactNode;
|
|
12
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
12
13
|
} & import('react').RefAttributes<HTMLInputElement>>;
|