burne-ui 1.8.6 → 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 +20305 -16413
- package/dist/internal.cjs +1 -1
- package/dist/internal.js +1 -1
- package/dist/themeRuntimeContext-BveSYUe9.cjs +14 -0
- package/dist/{themeRuntimeContext-DELPwtpL.js → themeRuntimeContext-DCicI7AC.js} +640 -614
- package/dist/ui.css +43 -0
- package/package.json +4 -3
- package/dist/themeRuntimeContext-DknZO7q3.cjs +0 -14
|
@@ -9,21 +9,22 @@ export declare const CheckboxGroup: import('react').ForwardRefExoticComponent<Om
|
|
|
9
9
|
size?: import('../../..').ComponentSize;
|
|
10
10
|
children?: import('react').ReactNode;
|
|
11
11
|
classNames?: import('../../..').Prettify<import('./checkboxGroupTypes').CheckboxGroupClassNames>;
|
|
12
|
-
motion?: import('../../..').Prettify<import('./checkboxGroupTypes').CheckboxGroupMotion
|
|
12
|
+
motion?: import('../../..').Prettify<import('../../..').MotionMapWithEvents<import('./checkboxGroupTypes').CheckboxGroupMotion>>;
|
|
13
|
+
motionController?: import('../../..').MotionController;
|
|
13
14
|
} & import('react').RefAttributes<HTMLFieldSetElement>> & {
|
|
14
|
-
Legend: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
15
|
+
Legend: import('react').ForwardRefExoticComponent<import('../utils/optionGroupFieldset').OptionGroupLegendProps & {
|
|
16
|
+
motion?: import('../../..').Prettify<import('./checkboxGroupTypes').CheckboxGroupPartMotion>;
|
|
17
|
+
} & import('react').RefAttributes<HTMLLegendElement>>;
|
|
18
18
|
Label: import('../../core/Label').LabelComponent;
|
|
19
|
-
Hint: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
Hint: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
20
|
+
children?: import('react').ReactNode;
|
|
21
|
+
id?: string;
|
|
22
|
+
} & {
|
|
23
|
+
motion?: import('../../..').Prettify<import('./checkboxGroupTypes').CheckboxGroupPartMotion>;
|
|
24
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
25
|
+
Error: import('react').ForwardRefExoticComponent<Omit<import('../../..').FieldErrorProps, "motion"> & {
|
|
26
|
+
motion?: import('../../..').Prettify<import('./checkboxGroupTypes').CheckboxGroupPartMotion>;
|
|
27
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
27
28
|
List: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
28
29
|
orientation?: import('../utils/optionGroupFieldset').OptionGroupOrientation;
|
|
29
30
|
} & {
|
|
@@ -31,13 +32,12 @@ export declare const CheckboxGroup: import('react').ForwardRefExoticComponent<Om
|
|
|
31
32
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
32
33
|
Group: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
33
34
|
children?: import('react').ReactNode;
|
|
34
|
-
motion?: import('../../..').Prettify<import('
|
|
35
|
+
motion?: import('../../..').Prettify<import('../../..').FieldPartMotion>;
|
|
35
36
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
36
|
-
Actions: import('react').ForwardRefExoticComponent<import('
|
|
37
|
-
|
|
38
|
-
motion?: import('../../..').Prettify<import('../../core/Field').FieldPartMotion>;
|
|
37
|
+
Actions: import('react').ForwardRefExoticComponent<Omit<import('../../..').FieldSetActionsProps, "motion"> & {
|
|
38
|
+
motion?: import('../../..').Prettify<import('./checkboxGroupTypes').CheckboxGroupPartMotion>;
|
|
39
39
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
40
40
|
};
|
|
41
|
-
export type { CheckboxGroupProps, CheckboxGroupSelection, CheckboxGroupOrientation, CheckboxGroupClassNames, CheckboxGroupHintProps, CheckboxGroupLabelProps, CheckboxGroupLegendProps, CheckboxGroupListProps, CheckboxGroupErrorProps, CheckboxGroupMotion, CheckboxGroupPartMotion, } from './checkboxGroupTypes';
|
|
41
|
+
export type { CheckboxGroupProps, CheckboxGroupSelection, CheckboxGroupOrientation, CheckboxGroupClassNames, CheckboxGroupHintProps, CheckboxGroupLabelProps, CheckboxGroupLegendProps, CheckboxGroupListProps, CheckboxGroupErrorProps, CheckboxGroupActionsProps, CheckboxGroupMotion, CheckboxGroupPartMotion, } from './checkboxGroupTypes';
|
|
42
42
|
export type { CheckboxGroupContextValue } from './checkboxGroupTypes';
|
|
43
43
|
export { useCheckboxGroupContext, useOptionalCheckboxGroupContext, } from './checkboxGroupContext';
|
|
@@ -17,6 +17,7 @@ export declare const FormRoot: import('react').ForwardRefExoticComponent<Omit<im
|
|
|
17
17
|
onSubmit?: (values: import('./formTypes').FormValues) => void | Promise<void>;
|
|
18
18
|
onSubmitError?: (errors: Record<string, string>) => void;
|
|
19
19
|
errorSummary?: ReactNode | ((entries: Array<[string, string]>) => ReactNode);
|
|
20
|
-
motion?: import('../../..').Prettify<import('./formTypes').FormMotion
|
|
20
|
+
motion?: import('../../..').Prettify<import('../../..').MotionMapWithEvents<import('./formTypes').FormMotion>>;
|
|
21
|
+
motionController?: import('../../..').MotionController;
|
|
21
22
|
} & import('react').RefAttributes<HTMLFormElement>>;
|
|
22
23
|
export { FormSection, FormHeader, FormTitle, FormDescription, FormActions, FormErrorSummary, FormAnnounce, FormField, };
|
|
@@ -18,10 +18,14 @@ export declare function useFormSize(): FormSize;
|
|
|
18
18
|
export declare function useOptionalFormBindingContext(): FormBindingContextValue | null;
|
|
19
19
|
export declare function useFormBindingContext(): FormBindingContextValue;
|
|
20
20
|
/** Scope only. Defaults and host play live in `formAnimations.ts`. */
|
|
21
|
-
export declare const FormMotionProvider: ({ motion, defaults, params, children, }: {
|
|
22
|
-
motion?: import('../../core/utils/slotMotion').
|
|
21
|
+
export declare const FormMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
22
|
+
motion?: import('../../core/utils/slotMotion/motionEvents').MotionRootInput;
|
|
23
23
|
defaults?: import('../../core/utils/slotMotion').MotionSlotMap;
|
|
24
24
|
params?: import('../../core/utils/slotMotion').MotionRecipeParams;
|
|
25
|
+
controller?: import('../../core/utils/slotMotion').MotionController;
|
|
26
|
+
motionState?: string;
|
|
27
|
+
motionPayload?: unknown;
|
|
28
|
+
playInitialState?: boolean;
|
|
25
29
|
children: ReactNode;
|
|
26
30
|
}) => import("react/jsx-runtime").JSX.Element, useFormMotionScope: () => import('../../core/utils/slotMotion').MotionScopeValue, useOptionalFormMotionScope: () => import('../../core/utils/slotMotion').MotionScopeValue | null;
|
|
27
31
|
export { FormBindingContext };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const FormSection: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
2
2
|
classNames?: import('../../..').Prettify<Pick<import('./formTypes').FormClassNames, "section">>;
|
|
3
3
|
motion?: import('../../..').Prettify<import('./formTypes').FormPartMotion>;
|
|
4
|
+
motionController?: import('../../core/utils/slotMotion').MotionController;
|
|
4
5
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
6
|
export declare const FormHeader: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
6
7
|
classNames?: import('../../..').Prettify<Pick<import('./formTypes').FormClassNames, "header">>;
|
|
@@ -28,4 +29,5 @@ export declare const FormField: import('react').ForwardRefExoticComponent<import
|
|
|
28
29
|
rules?: import('./formTypes').FormFieldRules;
|
|
29
30
|
classNames?: import('../../..').Prettify<Pick<import('./formTypes').FormClassNames, "field">>;
|
|
30
31
|
motion?: import('../../..').Prettify<import('./formTypes').FormPartMotion>;
|
|
32
|
+
motionController?: import('../../core/utils/slotMotion').MotionController;
|
|
31
33
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { ComponentSize } from '../../core/utils/sizeLayout';
|
|
3
3
|
import { Prettify } from '../../../utils/prettify';
|
|
4
|
-
import { MotionValue } from '../../core/utils/slotMotion';
|
|
4
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../../core/utils/slotMotion';
|
|
5
5
|
export type FormValues = Record<string, unknown>;
|
|
6
6
|
export type FormValidateMode = "onSubmit" | "onBlur" | "onChange";
|
|
7
7
|
/** Form chrome size — Header / Title / Description / Section / Actions. Not cascaded to fields. */
|
|
@@ -124,12 +124,24 @@ export type FormProps = Omit<FormHTMLAttributes<HTMLFormElement>, "onSubmit"> &
|
|
|
124
124
|
/**
|
|
125
125
|
* Per-slot motion (`root`, `header`, `title`, `description`, `actions`, `errorSummary`,
|
|
126
126
|
* `announce`, `section`, `field`). Does not steal child Input motion. Defaults are empty.
|
|
127
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
127
128
|
*/
|
|
128
|
-
motion?: Prettify<FormMotion
|
|
129
|
+
motion?: Prettify<MotionMapWithEvents<FormMotion>>;
|
|
130
|
+
/**
|
|
131
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
132
|
+
* One handle → this Form scope (not nested `Form.Field` / `Form.Section`, not Input).
|
|
133
|
+
* Not placed on the DOM.
|
|
134
|
+
*/
|
|
135
|
+
motionController?: MotionController;
|
|
129
136
|
};
|
|
130
137
|
export type FormSectionProps = HTMLAttributes<HTMLDivElement> & {
|
|
131
138
|
classNames?: Prettify<Pick<FormClassNames, "section">>;
|
|
132
139
|
motion?: Prettify<FormPartMotion>;
|
|
140
|
+
/**
|
|
141
|
+
* Handle for the nested Section scope (no `root` — `playSlot("section")`).
|
|
142
|
+
* Separate from the Form root handle.
|
|
143
|
+
*/
|
|
144
|
+
motionController?: MotionController;
|
|
133
145
|
};
|
|
134
146
|
export type FormHeaderProps = HTMLAttributes<HTMLDivElement> & {
|
|
135
147
|
classNames?: Prettify<Pick<FormClassNames, "header">>;
|
|
@@ -161,6 +173,11 @@ export type FormFieldProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
161
173
|
rules?: FormFieldRules;
|
|
162
174
|
classNames?: Prettify<Pick<FormClassNames, "field">>;
|
|
163
175
|
motion?: Prettify<FormPartMotion>;
|
|
176
|
+
/**
|
|
177
|
+
* Handle for the nested Field scope (no `root` — `playSlot("field")`).
|
|
178
|
+
* Separate from the Form root handle. Does not steal child Input motion.
|
|
179
|
+
*/
|
|
180
|
+
motionController?: MotionController;
|
|
164
181
|
};
|
|
165
182
|
export type UseFormRootStateProps = FormProps;
|
|
166
183
|
export type FormShellIds = {
|
|
@@ -13,11 +13,13 @@ export declare const Form: import('react').ForwardRefExoticComponent<Omit<import
|
|
|
13
13
|
onSubmit?: (values: import('./formTypes').FormValues) => void | Promise<void>;
|
|
14
14
|
onSubmitError?: (errors: Record<string, string>) => void;
|
|
15
15
|
errorSummary?: import('react').ReactNode | ((entries: Array<[string, string]>) => import('react').ReactNode);
|
|
16
|
-
motion?: import('../../..').Prettify<import('./formTypes').FormMotion
|
|
16
|
+
motion?: import('../../..').Prettify<import('../../..').MotionMapWithEvents<import('./formTypes').FormMotion>>;
|
|
17
|
+
motionController?: import('../../..').MotionController;
|
|
17
18
|
} & import('react').RefAttributes<HTMLFormElement>> & {
|
|
18
19
|
Section: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
19
20
|
classNames?: import('../../..').Prettify<Pick<import('./formTypes').FormClassNames, "section">>;
|
|
20
21
|
motion?: import('../../..').Prettify<import('./formTypes').FormPartMotion>;
|
|
22
|
+
motionController?: import('../../..').MotionController;
|
|
21
23
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
22
24
|
Header: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
23
25
|
classNames?: import('../../..').Prettify<Pick<import('./formTypes').FormClassNames, "header">>;
|
|
@@ -45,6 +47,7 @@ export declare const Form: import('react').ForwardRefExoticComponent<Omit<import
|
|
|
45
47
|
rules?: import('./formTypes').FormFieldRules;
|
|
46
48
|
classNames?: import('../../..').Prettify<Pick<import('./formTypes').FormClassNames, "field">>;
|
|
47
49
|
motion?: import('../../..').Prettify<import('./formTypes').FormPartMotion>;
|
|
50
|
+
motionController?: import('../../..').MotionController;
|
|
48
51
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
49
52
|
};
|
|
50
53
|
export type { FormProps, FormSectionProps, FormHeaderProps, FormTitleProps, FormDescriptionProps, FormActionsProps, FormErrorSummaryProps, FormAnnounceProps, FormFieldProps, FormClassNames, FormSize, FormMotion, FormPartMotion, } from './Form';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RadioGroupError, RadioGroupHint, RadioGroupLegend, RadioGroupList } from './radioGroupParts';
|
|
2
|
-
export type { RadioGroupProps, RadioGroupOrientation, RadioGroupClassNames, RadioGroupHintProps, RadioGroupLabelProps, RadioGroupLegendProps, RadioGroupListProps, RadioGroupErrorProps, } from './radioGroupTypes';
|
|
1
|
+
import { RadioGroupActions, RadioGroupError, RadioGroupHint, RadioGroupLegend, RadioGroupList } from './radioGroupParts';
|
|
2
|
+
export type { RadioGroupProps, RadioGroupOrientation, RadioGroupClassNames, RadioGroupHintProps, RadioGroupLabelProps, RadioGroupLegendProps, RadioGroupListProps, RadioGroupErrorProps, RadioGroupActionsProps, RadioGroupMotion, RadioGroupPartMotion, } from './radioGroupTypes';
|
|
3
3
|
export declare const RadioGroupRoot: import('react').ForwardRefExoticComponent<Omit<import('react').FieldsetHTMLAttributes<HTMLFieldSetElement>, "children" | "onChange"> & {
|
|
4
4
|
required?: boolean;
|
|
5
5
|
value?: string | null;
|
|
@@ -10,5 +10,6 @@ export declare const RadioGroupRoot: import('react').ForwardRefExoticComponent<O
|
|
|
10
10
|
size?: import('../../..').ComponentSize;
|
|
11
11
|
children?: import('react').ReactNode;
|
|
12
12
|
classNames?: import('../../..').Prettify<import('./radioGroupTypes').RadioGroupClassNames>;
|
|
13
|
+
motion?: import('../../..').Prettify<import('./radioGroupTypes').RadioGroupMotion>;
|
|
13
14
|
} & import('react').RefAttributes<HTMLFieldSetElement>>;
|
|
14
|
-
export { RadioGroupLegend, RadioGroupHint, RadioGroupError, RadioGroupList };
|
|
15
|
+
export { RadioGroupLegend, RadioGroupHint, RadioGroupError, RadioGroupActions, RadioGroupList, };
|
|
@@ -8,32 +8,34 @@ export declare const RadioGroup: import('react').ForwardRefExoticComponent<Omit<
|
|
|
8
8
|
size?: import('../../..').ComponentSize;
|
|
9
9
|
children?: import('react').ReactNode;
|
|
10
10
|
classNames?: import('../../..').Prettify<import('./radioGroupTypes').RadioGroupClassNames>;
|
|
11
|
+
motion?: import('../../..').Prettify<import('./radioGroupTypes').RadioGroupMotion>;
|
|
11
12
|
} & import('react').RefAttributes<HTMLFieldSetElement>> & {
|
|
12
|
-
Legend: {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
13
|
+
Legend: import('react').ForwardRefExoticComponent<import('../utils/optionGroupFieldset').OptionGroupLegendProps & {
|
|
14
|
+
motion?: import('../../..').Prettify<import('./radioGroupTypes').RadioGroupPartMotion>;
|
|
15
|
+
} & import('react').RefAttributes<HTMLLegendElement>>;
|
|
16
16
|
Label: import('../../core/Label').LabelComponent;
|
|
17
|
-
Hint: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
Hint: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
18
|
+
children?: import('react').ReactNode;
|
|
19
|
+
id?: string;
|
|
20
|
+
} & {
|
|
21
|
+
motion?: import('../../..').Prettify<import('./radioGroupTypes').RadioGroupPartMotion>;
|
|
22
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
23
|
+
Error: import('react').ForwardRefExoticComponent<Omit<import('../../..').FieldErrorProps, "motion"> & {
|
|
24
|
+
motion?: import('../../..').Prettify<import('./radioGroupTypes').RadioGroupPartMotion>;
|
|
25
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
25
26
|
List: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
26
27
|
orientation?: import('../utils/optionGroupFieldset').OptionGroupOrientation;
|
|
28
|
+
} & {
|
|
29
|
+
motion?: import('../../..').Prettify<import('./radioGroupTypes').RadioGroupPartMotion>;
|
|
27
30
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
28
31
|
Group: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
29
32
|
children?: import('react').ReactNode;
|
|
30
|
-
motion?: import('../../..').Prettify<import('
|
|
33
|
+
motion?: import('../../..').Prettify<import('../../..').FieldPartMotion>;
|
|
31
34
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
32
|
-
Actions: import('react').ForwardRefExoticComponent<import('
|
|
33
|
-
|
|
34
|
-
motion?: import('../../..').Prettify<import('../../core/Field').FieldPartMotion>;
|
|
35
|
+
Actions: import('react').ForwardRefExoticComponent<Omit<import('../../..').FieldSetActionsProps, "motion"> & {
|
|
36
|
+
motion?: import('../../..').Prettify<import('./radioGroupTypes').RadioGroupPartMotion>;
|
|
35
37
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
36
38
|
};
|
|
37
|
-
export type { RadioGroupProps, RadioGroupOrientation, RadioGroupClassNames, RadioGroupHintProps, RadioGroupErrorProps, RadioGroupLabelProps, RadioGroupLegendProps, RadioGroupListProps, } from './radioGroupTypes';
|
|
39
|
+
export type { RadioGroupProps, RadioGroupOrientation, RadioGroupClassNames, RadioGroupHintProps, RadioGroupErrorProps, RadioGroupActionsProps, RadioGroupLabelProps, RadioGroupLegendProps, RadioGroupListProps, RadioGroupMotion, RadioGroupPartMotion, } from './radioGroupTypes';
|
|
38
40
|
export type { RadioGroupContextValue } from './radioGroupTypes';
|
|
39
41
|
export { useRadioGroupContext, useOptionalRadioGroupContext, } from './radioGroupContext';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ForwardedRef, PointerEvent as ReactPointerEvent } from 'react';
|
|
2
|
+
import { RadioGroupMotion, RadioGroupPartMotion } from './radioGroupTypes';
|
|
3
|
+
export type RadioGroupMotionSlot = keyof RadioGroupMotion;
|
|
4
|
+
export declare function resolveRadioGroupMotionDefaults(): RadioGroupMotion;
|
|
5
|
+
export declare function useRadioGroupRootMotion({ motion, forwardedRef, selectionIdentity, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }: {
|
|
6
|
+
motion?: RadioGroupPartMotion;
|
|
7
|
+
forwardedRef?: ForwardedRef<HTMLFieldSetElement>;
|
|
8
|
+
selectionIdentity: string;
|
|
9
|
+
onPointerOver?: (e: ReactPointerEvent<HTMLFieldSetElement>) => void;
|
|
10
|
+
onPointerOut?: (e: ReactPointerEvent<HTMLFieldSetElement>) => void;
|
|
11
|
+
onPointerDown?: (e: ReactPointerEvent<HTMLFieldSetElement>) => void;
|
|
12
|
+
onPointerUp?: (e: ReactPointerEvent<HTMLFieldSetElement>) => void;
|
|
13
|
+
}): {
|
|
14
|
+
setRef: (node: HTMLFieldSetElement | null) => void;
|
|
15
|
+
targetRef: import('react').RefObject<HTMLFieldSetElement | null>;
|
|
16
|
+
pointerHandlers: {
|
|
17
|
+
onPointerOver: (e: ReactPointerEvent<HTMLFieldSetElement>) => void;
|
|
18
|
+
onPointerOut: (e: ReactPointerEvent<HTMLFieldSetElement>) => void;
|
|
19
|
+
onPointerDown: (e: ReactPointerEvent<HTMLFieldSetElement>) => void;
|
|
20
|
+
onPointerUp: (e: ReactPointerEvent<HTMLFieldSetElement>) => void;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare function useRadioGroupSlotMotion<T extends HTMLElement>(slot: Exclude<RadioGroupMotionSlot, "root">, options?: {
|
|
24
|
+
motion?: RadioGroupPartMotion;
|
|
25
|
+
forwardedRef?: ForwardedRef<T>;
|
|
26
|
+
onPointerOver?: (e: ReactPointerEvent<T>) => void;
|
|
27
|
+
onPointerOut?: (e: ReactPointerEvent<T>) => void;
|
|
28
|
+
onPointerDown?: (e: ReactPointerEvent<T>) => void;
|
|
29
|
+
onPointerUp?: (e: ReactPointerEvent<T>) => void;
|
|
30
|
+
}): {
|
|
31
|
+
setRef: (node: T | null) => void;
|
|
32
|
+
targetRef: import('react').RefObject<T | null>;
|
|
33
|
+
pointerHandlers: {
|
|
34
|
+
onPointerOver: (e: ReactPointerEvent<T>) => void;
|
|
35
|
+
onPointerOut: (e: ReactPointerEvent<T>) => void;
|
|
36
|
+
onPointerDown: (e: ReactPointerEvent<T>) => void;
|
|
37
|
+
onPointerUp: (e: ReactPointerEvent<T>) => void;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -9,4 +9,15 @@ export declare function RadioGroupProvider({ value, children, }: {
|
|
|
9
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export declare function useRadioGroupContext(): RadioGroupContextValue;
|
|
11
11
|
export declare function useOptionalRadioGroupContext(): RadioGroupContextValue | null;
|
|
12
|
+
/** Scope only. Defaults and host play live in `radioGroupAnimations.ts`. */
|
|
13
|
+
export declare const RadioGroupMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
14
|
+
motion?: import('../../core/utils/slotMotion/motionEvents').MotionRootInput;
|
|
15
|
+
defaults?: import('../../core/utils/slotMotion').MotionSlotMap;
|
|
16
|
+
params?: import('../../core/utils/slotMotion').MotionRecipeParams;
|
|
17
|
+
controller?: import('../../core/utils/slotMotion').MotionController;
|
|
18
|
+
motionState?: string;
|
|
19
|
+
motionPayload?: unknown;
|
|
20
|
+
playInitialState?: boolean;
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
}) => import("react/jsx-runtime").JSX.Element, useRadioGroupMotionScope: () => import('../../core/utils/slotMotion').MotionScopeValue, useOptionalRadioGroupMotionScope: () => import('../../core/utils/slotMotion').MotionScopeValue | null;
|
|
12
23
|
export { RadioGroupContext };
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
export declare const RadioGroupLegend: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
1
|
+
export declare const RadioGroupLegend: import('react').ForwardRefExoticComponent<import('../utils/optionGroupFieldset').OptionGroupLegendProps & {
|
|
2
|
+
motion?: import('../../..').Prettify<import('./radioGroupTypes').RadioGroupPartMotion>;
|
|
3
|
+
} & import('react').RefAttributes<HTMLLegendElement>>;
|
|
4
|
+
export declare const RadioGroupHint: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
5
|
+
children?: import('react').ReactNode;
|
|
6
|
+
id?: string;
|
|
7
|
+
} & {
|
|
8
|
+
motion?: import('../../..').Prettify<import('./radioGroupTypes').RadioGroupPartMotion>;
|
|
9
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
10
|
+
export declare const RadioGroupError: import('react').ForwardRefExoticComponent<Omit<import('../../core/Field').FieldErrorProps, "motion"> & {
|
|
11
|
+
motion?: import('../../..').Prettify<import('./radioGroupTypes').RadioGroupPartMotion>;
|
|
12
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
13
|
+
export declare const RadioGroupActions: import('react').ForwardRefExoticComponent<Omit<import('../../core/Field').FieldSetActionsProps, "motion"> & {
|
|
14
|
+
motion?: import('../../..').Prettify<import('./radioGroupTypes').RadioGroupPartMotion>;
|
|
15
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
16
|
export declare const RadioGroupList: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
14
|
-
orientation?: import('
|
|
17
|
+
orientation?: import('../utils/optionGroupFieldset').OptionGroupOrientation;
|
|
18
|
+
} & {
|
|
19
|
+
motion?: import('../../..').Prettify<import('./radioGroupTypes').RadioGroupPartMotion>;
|
|
15
20
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FieldsetHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
|
-
import {
|
|
3
|
+
import { MotionValue } from '../../core/utils/slotMotion';
|
|
4
|
+
import { FieldErrorProps, FieldSetActionsProps } from '../../core/Field';
|
|
4
5
|
import { LabelProps } from '../../core/Label';
|
|
5
6
|
import { ComponentSize } from '../../core/utils/sizeLayout';
|
|
6
7
|
import { OptionGroupHintProps, OptionGroupLegendProps, OptionGroupListProps, OptionGroupOrientation } from '../utils/optionGroupFieldset';
|
|
@@ -18,6 +19,23 @@ export type RadioGroupContextValue = {
|
|
|
18
19
|
/** First option in the group claims native `required` when `required`. */
|
|
19
20
|
claimRequiredAnchor: () => boolean;
|
|
20
21
|
};
|
|
22
|
+
export type RadioGroupPartMotion = {
|
|
23
|
+
hoverIn?: MotionValue;
|
|
24
|
+
hoverOut?: MotionValue;
|
|
25
|
+
pressIn?: MotionValue;
|
|
26
|
+
pressOut?: MotionValue;
|
|
27
|
+
enter?: MotionValue;
|
|
28
|
+
leave?: MotionValue;
|
|
29
|
+
change?: MotionValue;
|
|
30
|
+
};
|
|
31
|
+
export type RadioGroupMotion = {
|
|
32
|
+
root?: RadioGroupPartMotion;
|
|
33
|
+
list?: RadioGroupPartMotion;
|
|
34
|
+
legend?: RadioGroupPartMotion;
|
|
35
|
+
hint?: RadioGroupPartMotion;
|
|
36
|
+
error?: RadioGroupPartMotion;
|
|
37
|
+
actions?: RadioGroupPartMotion;
|
|
38
|
+
};
|
|
21
39
|
export type RadioGroupProps = Omit<FieldsetHTMLAttributes<HTMLFieldSetElement>, "children" | "onChange"> & {
|
|
22
40
|
required?: boolean;
|
|
23
41
|
value?: string | null;
|
|
@@ -30,10 +48,27 @@ export type RadioGroupProps = Omit<FieldsetHTMLAttributes<HTMLFieldSetElement>,
|
|
|
30
48
|
size?: ComponentSize;
|
|
31
49
|
children?: ReactNode;
|
|
32
50
|
classNames?: Prettify<RadioGroupClassNames>;
|
|
51
|
+
/**
|
|
52
|
+
* Per-slot motion (`root`, `list`, `legend`, `hint`, `error`, `actions`).
|
|
53
|
+
* Items keep Radio motion. `change` plays on `root` when value updates.
|
|
54
|
+
* `Group` is not a slot. Defaults are empty.
|
|
55
|
+
*/
|
|
56
|
+
motion?: Prettify<RadioGroupMotion>;
|
|
33
57
|
};
|
|
34
58
|
export type UseRadioGroupRootStateProps = RadioGroupProps;
|
|
35
|
-
export type RadioGroupHintProps = OptionGroupHintProps
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
export type
|
|
59
|
+
export type RadioGroupHintProps = OptionGroupHintProps & {
|
|
60
|
+
motion?: Prettify<RadioGroupPartMotion>;
|
|
61
|
+
};
|
|
62
|
+
export type RadioGroupLegendProps = OptionGroupLegendProps & {
|
|
63
|
+
motion?: Prettify<RadioGroupPartMotion>;
|
|
64
|
+
};
|
|
65
|
+
export type RadioGroupListProps = OptionGroupListProps & {
|
|
66
|
+
motion?: Prettify<RadioGroupPartMotion>;
|
|
67
|
+
};
|
|
68
|
+
export type RadioGroupErrorProps = Omit<FieldErrorProps, "motion"> & {
|
|
69
|
+
motion?: Prettify<RadioGroupPartMotion>;
|
|
70
|
+
};
|
|
71
|
+
export type RadioGroupActionsProps = Omit<FieldSetActionsProps, "motion"> & {
|
|
72
|
+
motion?: Prettify<RadioGroupPartMotion>;
|
|
73
|
+
};
|
|
39
74
|
export type RadioGroupLabelProps = LabelProps;
|
|
@@ -12,5 +12,6 @@ export declare const ToggleButtonGroupRoot: import('react').ForwardRefExoticComp
|
|
|
12
12
|
defaultValue?: string | string[];
|
|
13
13
|
onValueChange?: (value: string | string[]) => void;
|
|
14
14
|
classNames?: import('../../..').Prettify<import('./toggleButtonGroupTypes').ToggleButtonGroupClassNames>;
|
|
15
|
-
motion?: import('../../..').Prettify<import('./toggleButtonGroupTypes').ToggleButtonGroupMotion
|
|
15
|
+
motion?: import('../../..').Prettify<import('../../..').MotionMapWithEvents<import('./toggleButtonGroupTypes').ToggleButtonGroupMotion>>;
|
|
16
|
+
motionController?: import('../../..').MotionController;
|
|
16
17
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -10,7 +10,8 @@ export declare const ToggleButtonGroup: import('react').ForwardRefExoticComponen
|
|
|
10
10
|
defaultValue?: string | string[];
|
|
11
11
|
onValueChange?: (value: string | string[]) => void;
|
|
12
12
|
classNames?: import('../../..').Prettify<import('./toggleButtonGroupTypes').ToggleButtonGroupClassNames>;
|
|
13
|
-
motion?: import('../../..').Prettify<import('./toggleButtonGroupTypes').ToggleButtonGroupMotion
|
|
13
|
+
motion?: import('../../..').Prettify<import('../../..').MotionMapWithEvents<import('./toggleButtonGroupTypes').ToggleButtonGroupMotion>>;
|
|
14
|
+
motionController?: import('../../..').MotionController;
|
|
14
15
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
16
|
export { ToggleButtonGroupRoot, type ToggleButtonGroupProps, type ToggleButtonGroupType, type ToggleButtonGroupOrientation, type ToggleButtonGroupContextValue, type ToggleButtonGroupClassNames, type ToggleButtonGroupMotion, type ToggleButtonGroupPartMotion, } from './ToggleButtonGroup';
|
|
16
17
|
export { ToggleButtonGroupContext, useOptionalToggleButtonGroupContext, } from '../../core/ToggleButton/toggleButtonContext';
|
|
@@ -2,9 +2,13 @@ import { ToggleButtonGroupClassNames, ToggleButtonGroupClassNamesProviderProps }
|
|
|
2
2
|
export declare function ToggleButtonGroupClassNamesProvider({ classNames, children, }: ToggleButtonGroupClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export declare function useToggleButtonGroupClassNames(): ToggleButtonGroupClassNames;
|
|
4
4
|
/** Scope only. Defaults and host play live in `toggleButtonGroupAnimations.ts`. */
|
|
5
|
-
export declare const ToggleButtonGroupMotionProvider: ({ motion, defaults, params, children, }: {
|
|
6
|
-
motion?: import('../../core/utils/slotMotion').
|
|
5
|
+
export declare const ToggleButtonGroupMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
6
|
+
motion?: import('../../core/utils/slotMotion/motionEvents').MotionRootInput;
|
|
7
7
|
defaults?: import('../../core/utils/slotMotion').MotionSlotMap;
|
|
8
8
|
params?: import('../../core/utils/slotMotion').MotionRecipeParams;
|
|
9
|
+
controller?: import('../../core/utils/slotMotion').MotionController;
|
|
10
|
+
motionState?: string;
|
|
11
|
+
motionPayload?: unknown;
|
|
12
|
+
playInitialState?: boolean;
|
|
9
13
|
children: import('react').ReactNode;
|
|
10
14
|
}) => import("react/jsx-runtime").JSX.Element, useToggleButtonGroupMotionScope: () => import('../../core/utils/slotMotion').MotionScopeValue, useOptionalToggleButtonGroupMotionScope: () => import('../../core/utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
|
-
import { MotionValue } from '../../core/utils/slotMotion';
|
|
3
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../../core/utils/slotMotion';
|
|
4
4
|
import { ToggleButtonGroupOrientation, ToggleButtonGroupType, ToggleButtonSize, ToggleButtonVariant } from '../../core/ToggleButton/toggleButtonTypes';
|
|
5
5
|
export type { ToggleButtonGroupType, ToggleButtonGroupOrientation, ToggleButtonGroupContextValue, } from '../../core/ToggleButton/toggleButtonTypes';
|
|
6
6
|
export type ToggleButtonGroupClassNames = {
|
|
@@ -39,8 +39,14 @@ export type ToggleButtonGroupProps = Omit<HTMLAttributes<HTMLDivElement>, "defau
|
|
|
39
39
|
/**
|
|
40
40
|
* Per-slot motion (`root`). Items keep ToggleButton motion — group does not wrap item hosts.
|
|
41
41
|
* `change` plays when selection identity updates. Defaults are empty.
|
|
42
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
42
43
|
*/
|
|
43
|
-
motion?: Prettify<ToggleButtonGroupMotion
|
|
44
|
+
motion?: Prettify<MotionMapWithEvents<ToggleButtonGroupMotion>>;
|
|
45
|
+
/**
|
|
46
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
47
|
+
* Forwarded to the motion Provider (`controller`), not onto the DOM.
|
|
48
|
+
*/
|
|
49
|
+
motionController?: MotionController;
|
|
44
50
|
};
|
|
45
51
|
export type ToggleButtonGroupClassNamesProviderProps = {
|
|
46
52
|
classNames?: Prettify<ToggleButtonGroupClassNames>;
|
|
@@ -12,7 +12,11 @@ export declare const AlertRoot: import('react').ForwardRefExoticComponent<Omit<H
|
|
|
12
12
|
icon?: ReactNode | null;
|
|
13
13
|
action?: ReactNode;
|
|
14
14
|
classNames?: import('../../..').Prettify<AlertClassNames>;
|
|
15
|
-
motion?: import('../../..').Prettify<AlertMotion
|
|
15
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<AlertMotion>>;
|
|
16
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
17
|
+
motionState?: string;
|
|
18
|
+
motionPayload?: unknown;
|
|
19
|
+
playInitialState?: boolean;
|
|
16
20
|
hoverLift?: boolean;
|
|
17
21
|
shadow?: ShadowLevel;
|
|
18
22
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -3,10 +3,14 @@ import { Prettify } from '../../../utils/prettify';
|
|
|
3
3
|
import { AlertClassNames, AlertContextValue } from './alertTypes';
|
|
4
4
|
declare const AlertContext: import('react').Context<AlertContextValue | null>;
|
|
5
5
|
/** Scope only. Defaults and host play live in `alertAnimations.ts`. */
|
|
6
|
-
export declare const AlertMotionProvider: ({ motion, defaults, params, children, }: {
|
|
7
|
-
motion?: import('../utils/slotMotion').
|
|
6
|
+
export declare const AlertMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
7
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
8
8
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
9
9
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
10
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
11
|
+
motionState?: string;
|
|
12
|
+
motionPayload?: unknown;
|
|
13
|
+
playInitialState?: boolean;
|
|
10
14
|
children: ReactNode;
|
|
11
15
|
}) => import("react/jsx-runtime").JSX.Element, useAlertMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalAlertMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
12
16
|
export declare function AlertClassNamesProvider({ classNames, children, }: {
|
|
@@ -2,7 +2,7 @@ import { ForwardedRef, HTMLAttributes, PointerEvent, 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
|
import { ShadowLevel } from '../../../tokens/shadows';
|
|
7
7
|
export type AlertSize = MessageBannerSize;
|
|
8
8
|
export type AlertVariant = "default" | "outline" | "secondary" | "gloss";
|
|
@@ -45,8 +45,30 @@ export type AlertProps = Omit<HTMLAttributes<HTMLDivElement>, "role"> & {
|
|
|
45
45
|
/**
|
|
46
46
|
* Per-slot motion (`root`, `indicator`, `title`, `description`, `action`).
|
|
47
47
|
* `Alert.Message` / `Alert.Content` are `display: contents` and are not targets.
|
|
48
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
49
|
+
* `states` — app modes for `motionState` (not a DOM slot, not a phase).
|
|
48
50
|
*/
|
|
49
|
-
motion?: Prettify<AlertMotion
|
|
51
|
+
motion?: Prettify<MotionMapWithEvents<AlertMotion>>;
|
|
52
|
+
/**
|
|
53
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
54
|
+
* Forwarded to the motion Provider (`controller`), not onto the DOM.
|
|
55
|
+
* Plays built-in phases and `motion.events` (`play` / `playSlot` / `playAll` / `set` / `cancel`).
|
|
56
|
+
*/
|
|
57
|
+
motionController?: MotionController;
|
|
58
|
+
/**
|
|
59
|
+
* App mode (`idle` / `loading` / `success`). Same value again does not replay.
|
|
60
|
+
* Pair with `motion.states`. Not a `MotionPhaseName`. Not on the DOM.
|
|
61
|
+
*/
|
|
62
|
+
motionState?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Opaque snapshot for the transition factory (`ctx.payload`).
|
|
65
|
+
* Updating this without changing `motionState` does not replay.
|
|
66
|
+
*/
|
|
67
|
+
motionPayload?: unknown;
|
|
68
|
+
/**
|
|
69
|
+
* Play `motion.states[motionState]` on mount. Default skip so first paint stays CSS rest.
|
|
70
|
+
*/
|
|
71
|
+
playInitialState?: boolean;
|
|
50
72
|
/**
|
|
51
73
|
* Hover lift + stronger shadow in the same `shadow` family (`--shadow-{shadow}-hover`).
|
|
52
74
|
* Rest elevation stays when `false`. Shorthand for `motion.root.hoverIn/Out: false`.
|
|
@@ -9,7 +9,11 @@ export declare const Alert: import('react').ForwardRefExoticComponent<Omit<impor
|
|
|
9
9
|
icon?: import('react').ReactNode | null;
|
|
10
10
|
action?: import('react').ReactNode;
|
|
11
11
|
classNames?: import('../../..').Prettify<import('./alertTypes').AlertClassNames>;
|
|
12
|
-
motion?: import('../../..').Prettify<import('./alertTypes').AlertMotion
|
|
12
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./alertTypes').AlertMotion>>;
|
|
13
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
14
|
+
motionState?: string;
|
|
15
|
+
motionPayload?: unknown;
|
|
16
|
+
playInitialState?: boolean;
|
|
13
17
|
hoverLift?: boolean;
|
|
14
18
|
shadow?: import('../../..').ShadowLevel;
|
|
15
19
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
@@ -12,5 +12,6 @@ export declare const AvatarRoot: import('react').ForwardRefExoticComponent<impor
|
|
|
12
12
|
tooltipStatus?: import('../utils/semanticStatusIcons').SemanticStatus;
|
|
13
13
|
tooltipSide?: import('../Tooltip').TooltipSide;
|
|
14
14
|
classNames?: import('../../..').Prettify<import('./avatarTypes').AvatarClassNames>;
|
|
15
|
-
motion?: import('../../..').Prettify<import('./avatarTypes').AvatarMotion
|
|
15
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./avatarTypes').AvatarMotion>>;
|
|
16
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
16
17
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { AvatarClassNames, AvatarClassNamesProviderProps, AvatarContextValue, AvatarGroupMotionProviderProps, AvatarMotion } from './avatarTypes';
|
|
2
2
|
/** Scope only. Defaults and host play live in `avatarAnimations.ts`. */
|
|
3
|
-
export declare const AvatarMotionProvider: ({ motion, defaults, params, children, }: {
|
|
4
|
-
motion?: import('../utils/slotMotion').
|
|
3
|
+
export declare const AvatarMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
4
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
5
5
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
6
6
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
7
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
8
|
+
motionState?: string;
|
|
9
|
+
motionPayload?: unknown;
|
|
10
|
+
playInitialState?: boolean;
|
|
7
11
|
children: import('react').ReactNode;
|
|
8
12
|
}) => import("react/jsx-runtime").JSX.Element, useAvatarMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalAvatarMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
9
13
|
declare const AvatarContext: import('react').Context<AvatarContextValue | null>;
|
|
@@ -2,7 +2,7 @@ import { HTMLAttributes, ImgHTMLAttributes, ReactNode } from 'react';
|
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
3
|
import { TooltipSide, TooltipSize, TooltipVariant } from '../Tooltip';
|
|
4
4
|
import { SemanticStatus } from '../utils/semanticStatusIcons';
|
|
5
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
5
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
6
6
|
export type AvatarSize = "small" | "base" | "mid" | "large";
|
|
7
7
|
export type AvatarVariant = "default" | "gloss";
|
|
8
8
|
export type ImageStatus = "idle" | "loaded" | "error";
|
|
@@ -50,8 +50,14 @@ export type AvatarProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
50
50
|
/**
|
|
51
51
|
* Per-slot motion (`root`, `image`, `fallback`). Image fade: `enter` / `leave`.
|
|
52
52
|
* Group item hover is `motion.groupItem` on `Avatar.Group`.
|
|
53
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
53
54
|
*/
|
|
54
|
-
motion?: Prettify<AvatarMotion
|
|
55
|
+
motion?: Prettify<MotionMapWithEvents<AvatarMotion>>;
|
|
56
|
+
/**
|
|
57
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
58
|
+
* Forwarded to the motion Provider (`controller`), not onto the DOM.
|
|
59
|
+
*/
|
|
60
|
+
motionController?: MotionController;
|
|
55
61
|
};
|
|
56
62
|
export type UseAvatarRootStateProps = Pick<AvatarProps, "variant" | "size" | "label" | "nickname" | "tooltipSize" | "tooltipVariant" | "tooltipStatus" | "tooltipSide" | "children" | "role"> & {
|
|
57
63
|
"aria-label"?: string;
|