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
|
@@ -11,7 +11,8 @@ export declare const Avatar: import('react').ForwardRefExoticComponent<import('r
|
|
|
11
11
|
tooltipStatus?: import('../utils/semanticStatusIcons').SemanticStatus;
|
|
12
12
|
tooltipSide?: import('../Tooltip').TooltipSide;
|
|
13
13
|
classNames?: import('../../..').Prettify<import('./avatarTypes').AvatarClassNames>;
|
|
14
|
-
motion?: import('../../..').Prettify<import('./avatarTypes').AvatarMotion
|
|
14
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./avatarTypes').AvatarMotion>>;
|
|
15
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
15
16
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
16
17
|
Image: import('react').ForwardRefExoticComponent<import('react').ImgHTMLAttributes<HTMLImageElement> & {
|
|
17
18
|
motion?: import('../../..').Prettify<Pick<import('./avatarTypes').AvatarPartMotion, "enter" | "leave">>;
|
|
@@ -13,5 +13,9 @@ export declare const BadgeRoot: import('react').ForwardRefExoticComponent<Omit<H
|
|
|
13
13
|
classNames?: import('../../..').Prettify<import('./badgeTypes').BadgeClassNames>;
|
|
14
14
|
children?: ReactNode;
|
|
15
15
|
hoverLift?: boolean;
|
|
16
|
-
motion?: import('../../..').Prettify<BadgeMotion
|
|
16
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<BadgeMotion>>;
|
|
17
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
18
|
+
motionState?: string;
|
|
19
|
+
motionPayload?: unknown;
|
|
20
|
+
playInitialState?: boolean;
|
|
17
21
|
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { BadgeClassNames, BadgeClassNamesProviderProps, BadgeDirectAnchorChildProviderProps, BadgeLiftContextValue, BadgeLiftTargetProviderProps } from './badgeTypes';
|
|
2
2
|
/** Scope only. Defaults and host play live in `badgeAnimations.ts`. */
|
|
3
|
-
export declare const BadgeMotionProvider: ({ motion, defaults, params, children, }: {
|
|
4
|
-
motion?: import('../utils/slotMotion').
|
|
3
|
+
export declare const BadgeMotionProvider: ({ 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, useBadgeMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalBadgeMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
9
13
|
export declare function useBadgeLiftContext(): BadgeLiftContextValue | null;
|
|
@@ -7,5 +7,9 @@ export declare const BadgeAnchor: import('react').ForwardRefExoticComponent<Omit
|
|
|
7
7
|
children?: ReactNode;
|
|
8
8
|
classNames?: import('../../..').Prettify<import('./badgeTypes').BadgeClassNames>;
|
|
9
9
|
hoverLift?: boolean;
|
|
10
|
-
motion?: import('../../..').Prettify<import('./badgeTypes').BadgeMotion
|
|
10
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./badgeTypes').BadgeMotion>>;
|
|
11
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
12
|
+
motionState?: string;
|
|
13
|
+
motionPayload?: unknown;
|
|
14
|
+
playInitialState?: boolean;
|
|
11
15
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ForwardedRef, HTMLAttributes, PointerEvent as ReactPointerEvent, ReactNode, Ref, RefObject } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
3
|
import { IconPosition } from '../utils/iconPosition';
|
|
4
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
4
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
5
5
|
export type BadgeVariant = "default" | "primary" | "outline" | "secondary" | "gloss";
|
|
6
6
|
export type BadgeStatus = "default" | "danger" | "success" | "info" | "warning";
|
|
7
7
|
export type BadgeSize = "small" | "base" | "mid" | "large";
|
|
@@ -101,7 +101,26 @@ export type BadgeAnchorProps = Omit<HTMLAttributes<HTMLDivElement>, "children">
|
|
|
101
101
|
* @default true
|
|
102
102
|
*/
|
|
103
103
|
hoverLift?: boolean;
|
|
104
|
-
motion?: Prettify<BadgeMotion
|
|
104
|
+
motion?: Prettify<MotionMapWithEvents<BadgeMotion>>;
|
|
105
|
+
/**
|
|
106
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
107
|
+
* Forwarded to the motion Provider (`controller`), not onto the DOM.
|
|
108
|
+
*/
|
|
109
|
+
motionController?: MotionController;
|
|
110
|
+
/**
|
|
111
|
+
* App mode (`idle` / `syncing` / `live`). Same value again does not replay.
|
|
112
|
+
* Pair with `motion.states`. Not a `MotionPhaseName`. Not on the DOM.
|
|
113
|
+
*/
|
|
114
|
+
motionState?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Opaque snapshot for the transition factory (`ctx.payload`).
|
|
117
|
+
* Updating this without changing `motionState` does not replay.
|
|
118
|
+
*/
|
|
119
|
+
motionPayload?: unknown;
|
|
120
|
+
/**
|
|
121
|
+
* Play `motion.states[motionState]` on mount. Default skip so first paint stays CSS rest.
|
|
122
|
+
*/
|
|
123
|
+
playInitialState?: boolean;
|
|
105
124
|
};
|
|
106
125
|
export type BadgeProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
107
126
|
variant?: BadgeVariant;
|
|
@@ -123,8 +142,29 @@ export type BadgeProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
|
123
142
|
hoverLift?: boolean;
|
|
124
143
|
/**
|
|
125
144
|
* Per-slot motion (`root` on Badge, `anchor` on `Badge.Anchor`).
|
|
145
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
146
|
+
* `states` — app modes for `motionState` (not a DOM slot, not a phase).
|
|
147
|
+
*/
|
|
148
|
+
motion?: Prettify<MotionMapWithEvents<BadgeMotion>>;
|
|
149
|
+
/**
|
|
150
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
151
|
+
* Forwarded to the motion Provider (`controller`), not onto the DOM.
|
|
152
|
+
*/
|
|
153
|
+
motionController?: MotionController;
|
|
154
|
+
/**
|
|
155
|
+
* App mode (`idle` / `syncing` / `live`). Same value again does not replay.
|
|
156
|
+
* Pair with `motion.states`. Not a `MotionPhaseName`. Not on the DOM.
|
|
157
|
+
*/
|
|
158
|
+
motionState?: string;
|
|
159
|
+
/**
|
|
160
|
+
* Opaque snapshot for the transition factory (`ctx.payload`).
|
|
161
|
+
* Updating this without changing `motionState` does not replay.
|
|
162
|
+
*/
|
|
163
|
+
motionPayload?: unknown;
|
|
164
|
+
/**
|
|
165
|
+
* Play `motion.states[motionState]` on mount. Default skip so first paint stays CSS rest.
|
|
126
166
|
*/
|
|
127
|
-
|
|
167
|
+
playInitialState?: boolean;
|
|
128
168
|
};
|
|
129
169
|
export type BadgeInlineChildProps = {
|
|
130
170
|
node: ReactNode;
|
|
@@ -10,13 +10,21 @@ export declare const Badge: import('react').ForwardRefExoticComponent<Omit<impor
|
|
|
10
10
|
classNames?: import('../../..').Prettify<import('./badgeTypes').BadgeClassNames>;
|
|
11
11
|
children?: import('react').ReactNode;
|
|
12
12
|
hoverLift?: boolean;
|
|
13
|
-
motion?: import('../../..').Prettify<import('./badgeTypes').BadgeMotion
|
|
13
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./badgeTypes').BadgeMotion>>;
|
|
14
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
15
|
+
motionState?: string;
|
|
16
|
+
motionPayload?: unknown;
|
|
17
|
+
playInitialState?: boolean;
|
|
14
18
|
} & import('react').RefAttributes<HTMLSpanElement>> & {
|
|
15
19
|
Anchor: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
16
20
|
children?: import('react').ReactNode;
|
|
17
21
|
classNames?: import('../../..').Prettify<import('./badgeTypes').BadgeClassNames>;
|
|
18
22
|
hoverLift?: boolean;
|
|
19
|
-
motion?: import('../../..').Prettify<import('./badgeTypes').BadgeMotion
|
|
23
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./badgeTypes').BadgeMotion>>;
|
|
24
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
25
|
+
motionState?: string;
|
|
26
|
+
motionPayload?: unknown;
|
|
27
|
+
playInitialState?: boolean;
|
|
20
28
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
21
29
|
};
|
|
22
30
|
export type { BadgeProps, BadgeVariant, BadgeStatus, BadgeSize, BadgePlacement, BadgeIconPosition, BadgeInlineIconPosition, BadgeClassNames, BadgeMotion, BadgePartMotion, } from './Badge';
|
|
@@ -5,7 +5,8 @@ export declare const BreadcrumbsRoot: import('react').ForwardRefExoticComponent<
|
|
|
5
5
|
classNames?: import('../../..').Prettify<import('./breadcrumbsTypes').BreadcrumbsClassNames>;
|
|
6
6
|
items?: import('./breadcrumbsTypes').BreadcrumbItem[];
|
|
7
7
|
children?: import('react').ReactNode;
|
|
8
|
-
motion?: import('../../..').Prettify<import('./breadcrumbsTypes').BreadcrumbsMotion
|
|
8
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./breadcrumbsTypes').BreadcrumbsMotion>>;
|
|
9
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
9
10
|
} & import('react').RefAttributes<HTMLElement>>;
|
|
10
11
|
export { BreadcrumbsItem, BreadcrumbsList, BreadcrumbsSeparator };
|
|
11
12
|
export { BreadcrumbsSimpleContent } from './breadcrumbsSimpleContent';
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ForwardedRef, PointerEvent as ReactPointerEvent } from 'react';
|
|
2
|
+
import { BreadcrumbsMotion, BreadcrumbsPartMotion } from './breadcrumbsTypes';
|
|
2
3
|
export declare function resolveBreadcrumbsItemMotionDefaults(): BreadcrumbsMotion;
|
|
3
4
|
export declare function resolveBreadcrumbsEllipsisMotionDefaults(): BreadcrumbsMotion;
|
|
5
|
+
export declare function useBreadcrumbsSlotMotion<T extends HTMLElement>(slot: "list" | "separator", { motion, forwardedRef, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }?: {
|
|
6
|
+
motion?: BreadcrumbsPartMotion;
|
|
7
|
+
forwardedRef?: ForwardedRef<T>;
|
|
8
|
+
onPointerOver?: (e: ReactPointerEvent<T>) => void;
|
|
9
|
+
onPointerOut?: (e: ReactPointerEvent<T>) => void;
|
|
10
|
+
onPointerDown?: (e: ReactPointerEvent<T>) => void;
|
|
11
|
+
onPointerUp?: (e: ReactPointerEvent<T>) => void;
|
|
12
|
+
}): {
|
|
13
|
+
setRef: (node: T | null) => void;
|
|
14
|
+
targetRef: import('react').RefObject<T | null>;
|
|
15
|
+
pointerHandlers: {
|
|
16
|
+
onPointerOver: (e: ReactPointerEvent<T>) => void;
|
|
17
|
+
onPointerOut: (e: ReactPointerEvent<T>) => void;
|
|
18
|
+
onPointerDown: (e: ReactPointerEvent<T>) => void;
|
|
19
|
+
onPointerUp: (e: ReactPointerEvent<T>) => void;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -4,9 +4,13 @@ export declare function useBreadcrumbsCollapse(): boolean;
|
|
|
4
4
|
export declare function BreadcrumbsClassNamesProvider({ classNames, children, }: BreadcrumbsClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare function useBreadcrumbsClassNames(): BreadcrumbsClassNames;
|
|
6
6
|
/** Scope only. Defaults and host play live in `breadcrumbsAnimations.ts`. */
|
|
7
|
-
export declare const BreadcrumbsMotionProvider: ({ motion, defaults, params, children, }: {
|
|
8
|
-
motion?: import('../utils/slotMotion').
|
|
7
|
+
export declare const BreadcrumbsMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
8
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
9
9
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
10
10
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
11
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
12
|
+
motionState?: string;
|
|
13
|
+
motionPayload?: unknown;
|
|
14
|
+
playInitialState?: boolean;
|
|
11
15
|
children: import('react').ReactNode;
|
|
12
16
|
}) => import("react/jsx-runtime").JSX.Element, useBreadcrumbsMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalBreadcrumbsMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -6,11 +6,13 @@ export declare namespace BreadcrumbsItem {
|
|
|
6
6
|
export declare const BreadcrumbsList: import('react').ForwardRefExoticComponent<import('react').OlHTMLAttributes<HTMLOListElement> & {
|
|
7
7
|
classNames?: import('../../..').Prettify<import('./breadcrumbsTypes').BreadcrumbsClassNames>;
|
|
8
8
|
children?: import('react').ReactNode;
|
|
9
|
+
motion?: import('../../..').Prettify<import('./breadcrumbsTypes').BreadcrumbsPartMotion>;
|
|
9
10
|
} & import('react').RefAttributes<HTMLOListElement>>;
|
|
10
11
|
export declare const BreadcrumbsPiecesList: import('react').ForwardRefExoticComponent<import('react').OlHTMLAttributes<HTMLOListElement> & {
|
|
11
12
|
pieces: import('./breadcrumbsTypes').DisplayPiece[];
|
|
13
|
+
motion?: import('../../..').Prettify<import('./breadcrumbsTypes').BreadcrumbsPartMotion>;
|
|
12
14
|
} & import('react').RefAttributes<HTMLOListElement>>;
|
|
13
|
-
export declare function BreadcrumbsSeparator({ className, iconClassName, ...rest }: BreadcrumbsSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function BreadcrumbsSeparator({ className, iconClassName, motion, onPointerOver, onPointerOut, onPointerDown, onPointerUp, ...rest }: BreadcrumbsSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
14
16
|
export declare namespace BreadcrumbsSeparator {
|
|
15
17
|
var displayName: string;
|
|
16
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes, MouseEvent, OlHTMLAttributes, ReactNode } 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 BreadcrumbsClassNames = {
|
|
5
5
|
/** Root `<nav>`. */
|
|
6
6
|
root?: string;
|
|
@@ -38,8 +38,11 @@ export type BreadcrumbsPartMotion = {
|
|
|
38
38
|
hoverOut?: MotionValue;
|
|
39
39
|
pressIn?: MotionValue;
|
|
40
40
|
pressOut?: MotionValue;
|
|
41
|
+
enter?: MotionValue;
|
|
41
42
|
};
|
|
42
43
|
export type BreadcrumbsMotion = {
|
|
44
|
+
list?: BreadcrumbsPartMotion;
|
|
45
|
+
separator?: BreadcrumbsPartMotion;
|
|
43
46
|
itemLink?: BreadcrumbsPartMotion;
|
|
44
47
|
itemLinkText?: BreadcrumbsPartMotion;
|
|
45
48
|
ellipsisLiftWrapper?: BreadcrumbsPartMotion;
|
|
@@ -50,6 +53,8 @@ export type BreadcrumbItem = {
|
|
|
50
53
|
onClick?: (event: MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
|
|
51
54
|
current?: boolean;
|
|
52
55
|
className?: string;
|
|
56
|
+
motion?: Prettify<BreadcrumbsPartMotion>;
|
|
57
|
+
motionController?: MotionController;
|
|
53
58
|
};
|
|
54
59
|
/** @internal */
|
|
55
60
|
export type BreadcrumbItemData = BreadcrumbItem;
|
|
@@ -70,11 +75,25 @@ export type BreadcrumbsProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
|
70
75
|
/** Simple API: chain items. Ignored in compound mode (`Breadcrumbs.List`). */
|
|
71
76
|
items?: BreadcrumbItem[];
|
|
72
77
|
children?: ReactNode;
|
|
73
|
-
|
|
78
|
+
/**
|
|
79
|
+
* Per-slot motion (`list`, `separator`, `itemLink`, `itemLinkText`, `ellipsisLiftWrapper`).
|
|
80
|
+
* `Breadcrumbs.Item` is data-only (not a slot).
|
|
81
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
82
|
+
* There is no `root` slot — `play()` skips; use `playSlot("list")` / `playAll`.
|
|
83
|
+
*/
|
|
84
|
+
motion?: Prettify<MotionMapWithEvents<BreadcrumbsMotion>>;
|
|
85
|
+
/**
|
|
86
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
87
|
+
* One handle → this breadcrumbs chrome scope (`list` / `separator`).
|
|
88
|
+
* Nested crumbs are separate scopes — pass a handle on `Breadcrumbs.Item`.
|
|
89
|
+
* Not placed on the DOM.
|
|
90
|
+
*/
|
|
91
|
+
motionController?: MotionController;
|
|
74
92
|
};
|
|
75
93
|
export type BreadcrumbsListProps = OlHTMLAttributes<HTMLOListElement> & {
|
|
76
94
|
classNames?: Prettify<BreadcrumbsClassNames>;
|
|
77
95
|
children?: ReactNode;
|
|
96
|
+
motion?: Prettify<BreadcrumbsPartMotion>;
|
|
78
97
|
};
|
|
79
98
|
export type BreadcrumbsItemProps = {
|
|
80
99
|
href?: string;
|
|
@@ -82,6 +101,12 @@ export type BreadcrumbsItemProps = {
|
|
|
82
101
|
current?: boolean;
|
|
83
102
|
className?: string;
|
|
84
103
|
children?: ReactNode;
|
|
104
|
+
motion?: Prettify<BreadcrumbsPartMotion>;
|
|
105
|
+
/**
|
|
106
|
+
* Handle for this crumb's nested scope. `play()` looks for `root` (skip) —
|
|
107
|
+
* use `playSlot("itemLink")`. Current/static segments have no scope.
|
|
108
|
+
*/
|
|
109
|
+
motionController?: MotionController;
|
|
85
110
|
};
|
|
86
111
|
export type InteractiveCrumbProps = {
|
|
87
112
|
href?: string;
|
|
@@ -91,6 +116,8 @@ export type InteractiveCrumbProps = {
|
|
|
91
116
|
innerClassName?: string;
|
|
92
117
|
textClassName?: string;
|
|
93
118
|
"aria-current"?: "page" | undefined;
|
|
119
|
+
motion?: Prettify<BreadcrumbsPartMotion>;
|
|
120
|
+
motionController?: MotionController;
|
|
94
121
|
};
|
|
95
122
|
export type BreadcrumbsEllipsisMenuProps = {
|
|
96
123
|
hiddenItems: BreadcrumbItemData[];
|
|
@@ -100,6 +127,7 @@ export type BreadcrumbsSimpleContentProps = Omit<OlHTMLAttributes<HTMLOListEleme
|
|
|
100
127
|
};
|
|
101
128
|
export type BreadcrumbsPiecesListProps = OlHTMLAttributes<HTMLOListElement> & {
|
|
102
129
|
pieces: DisplayPiece[];
|
|
130
|
+
motion?: Prettify<BreadcrumbsPartMotion>;
|
|
103
131
|
};
|
|
104
132
|
export type BreadcrumbListItemProps = {
|
|
105
133
|
piece: DisplayPiece;
|
|
@@ -107,6 +135,7 @@ export type BreadcrumbListItemProps = {
|
|
|
107
135
|
};
|
|
108
136
|
export type BreadcrumbsSeparatorProps = HTMLAttributes<HTMLSpanElement> & {
|
|
109
137
|
iconClassName?: string;
|
|
138
|
+
motion?: Prettify<BreadcrumbsPartMotion>;
|
|
110
139
|
};
|
|
111
140
|
export type BreadcrumbSegmentProps = {
|
|
112
141
|
piece: BreadcrumbSegmentPiece;
|
|
@@ -4,11 +4,13 @@ export declare const Breadcrumbs: import('react').ForwardRefExoticComponent<Omit
|
|
|
4
4
|
classNames?: import('../../..').Prettify<import('./breadcrumbsTypes').BreadcrumbsClassNames>;
|
|
5
5
|
items?: import('./breadcrumbsTypes').BreadcrumbItem[];
|
|
6
6
|
children?: import('react').ReactNode;
|
|
7
|
-
motion?: import('../../..').Prettify<import('./breadcrumbsTypes').BreadcrumbsMotion
|
|
7
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./breadcrumbsTypes').BreadcrumbsMotion>>;
|
|
8
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
8
9
|
} & import('react').RefAttributes<HTMLElement>> & {
|
|
9
10
|
List: import('react').ForwardRefExoticComponent<import('react').OlHTMLAttributes<HTMLOListElement> & {
|
|
10
11
|
classNames?: import('../../..').Prettify<import('./breadcrumbsTypes').BreadcrumbsClassNames>;
|
|
11
12
|
children?: import('react').ReactNode;
|
|
13
|
+
motion?: import('../../..').Prettify<import('./breadcrumbsTypes').BreadcrumbsPartMotion>;
|
|
12
14
|
} & import('react').RefAttributes<HTMLOListElement>>;
|
|
13
15
|
Item: typeof BreadcrumbsItem;
|
|
14
16
|
Separator: typeof BreadcrumbsSeparator;
|
|
@@ -16,6 +16,10 @@ export declare const ButtonRoot: import('react').ForwardRefExoticComponent<impor
|
|
|
16
16
|
icon?: ReactNode;
|
|
17
17
|
iconPosition?: import('../utils/iconPosition').IconPosition;
|
|
18
18
|
classNames?: import('../../..').Prettify<import('./buttonTypes').ButtonClassNames>;
|
|
19
|
-
motion?: import('../../..').Prettify<ButtonMotion
|
|
19
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<ButtonMotion>>;
|
|
20
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
21
|
+
motionState?: string;
|
|
22
|
+
motionPayload?: unknown;
|
|
23
|
+
playInitialState?: boolean;
|
|
20
24
|
ripple?: boolean;
|
|
21
25
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -3,10 +3,14 @@ import { Prettify } from '../../../utils/prettify';
|
|
|
3
3
|
import { ButtonGroupSegment } from '../../composite/ButtonGroup';
|
|
4
4
|
import { ButtonAsyncState, ButtonClassNames, ButtonContextValue } from './buttonTypes';
|
|
5
5
|
/** Scope only. Defaults and host play live in `buttonAnimations.ts`. */
|
|
6
|
-
export declare const ButtonMotionProvider: ({ motion, defaults, params, children, }: {
|
|
7
|
-
motion?: import('../utils/slotMotion').
|
|
6
|
+
export declare const ButtonMotionProvider: ({ 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, useButtonMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalButtonMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
12
16
|
export declare function ButtonClassNamesProvider({ classNames, children, }: {
|
|
@@ -1,19 +1,27 @@
|
|
|
1
|
-
import { ButtonContentProps,
|
|
1
|
+
import { ButtonContentProps, ButtonExpandRippleHandle, ButtonExpandRippleLayerProps, ButtonFeedbackExpandRippleProps, ButtonIconCheckProps, ButtonIconCrossProps, ButtonIconProps, ButtonSpinnerProps, ButtonTextProps } from './buttonTypes';
|
|
2
2
|
export declare function ButtonSpinner({ className }: ButtonSpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export declare function ButtonIconCheck({ className }: ButtonIconCheckProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare function ButtonIconCross({ className }: ButtonIconCrossProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare function ButtonFeedbackExpandRipple({ size, tone, onDone, }: ButtonFeedbackExpandRippleProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const ButtonContent: import('react').ForwardRefExoticComponent<ButtonContentProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
7
|
-
export declare const ButtonLabel: import('react').ForwardRefExoticComponent<
|
|
8
|
-
|
|
7
|
+
export declare const ButtonLabel: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
8
|
+
motion?: import('../../..').Prettify<import('./buttonTypes').ButtonPartMotion>;
|
|
9
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
10
|
+
export declare function ButtonIcon({ className, children, motion, onPointerOver, onPointerOut, ...rest }: ButtonIconProps): import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
export declare namespace ButtonIcon {
|
|
10
12
|
var displayName: string;
|
|
11
13
|
}
|
|
12
|
-
export declare function ButtonText({ className, children, ...rest }: ButtonTextProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function ButtonText({ className, children, motion, onPointerOver, onPointerOut, ...rest }: ButtonTextProps): import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
export declare namespace ButtonText {
|
|
14
16
|
var displayName: string;
|
|
15
17
|
}
|
|
16
|
-
export declare const ButtonLoader: import('react').ForwardRefExoticComponent<
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
export declare const ButtonLoader: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
19
|
+
motion?: import('../../..').Prettify<import('./buttonTypes').ButtonPartMotion>;
|
|
20
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
21
|
+
export declare const ButtonSuccess: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
22
|
+
motion?: import('../../..').Prettify<import('./buttonTypes').ButtonPartMotion>;
|
|
23
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
24
|
+
export declare const ButtonError: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
25
|
+
motion?: import('../../..').Prettify<import('./buttonTypes').ButtonPartMotion>;
|
|
26
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
19
27
|
export declare const ButtonExpandRippleLayer: import('react').NamedExoticComponent<ButtonExpandRippleLayerProps & import('react').RefAttributes<ButtonExpandRippleHandle>>;
|
|
@@ -2,7 +2,7 @@ import { ButtonHTMLAttributes, HTMLAttributes, MouseEvent, ReactNode, RefObject
|
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
3
|
import { ComponentSize } from '../utils/sizeLayout';
|
|
4
4
|
import { IconPosition } from '../utils/iconPosition';
|
|
5
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
5
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
6
6
|
import { ButtonGroupSegment } from '../../composite/ButtonGroup';
|
|
7
7
|
export type ButtonVariant = "default" | "primary" | "outline" | "secondary" | "ghost" | "gloss";
|
|
8
8
|
export type ButtonStatus = "default" | "danger" | "success" | "info" | "warning";
|
|
@@ -50,6 +50,12 @@ export type ButtonPartMotion = {
|
|
|
50
50
|
};
|
|
51
51
|
export type ButtonMotion = {
|
|
52
52
|
root?: ButtonPartMotion;
|
|
53
|
+
label?: ButtonPartMotion;
|
|
54
|
+
icon?: ButtonPartMotion;
|
|
55
|
+
text?: ButtonPartMotion;
|
|
56
|
+
loader?: ButtonPartMotion;
|
|
57
|
+
success?: ButtonPartMotion;
|
|
58
|
+
error?: ButtonPartMotion;
|
|
53
59
|
};
|
|
54
60
|
export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
55
61
|
asChild?: boolean;
|
|
@@ -67,10 +73,33 @@ export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
67
73
|
iconPosition?: IconPosition;
|
|
68
74
|
classNames?: Prettify<ButtonClassNames>;
|
|
69
75
|
/**
|
|
70
|
-
* Per-slot motion (`root` = the button, or the inner content span in a ButtonGroup segment
|
|
76
|
+
* Per-slot motion (`root` = the button, or the inner content span in a ButtonGroup segment;
|
|
77
|
+
* `label` / `icon` / `text`; async `loader` / `success` / `error` without replacing kit crossfade).
|
|
71
78
|
* Hover/press defaults: `hoverLiftFirstLevel` / `pressSqueeze` (gloss → `hoverLiftGloss` / `pressSqueezeGloss`).
|
|
79
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
80
|
+
* `states` — app modes for `motionState` (not a DOM slot, not a phase).
|
|
81
|
+
* Not `asyncState` (kit loader / success / error layers).
|
|
72
82
|
*/
|
|
73
|
-
motion?: Prettify<ButtonMotion
|
|
83
|
+
motion?: Prettify<MotionMapWithEvents<ButtonMotion>>;
|
|
84
|
+
/**
|
|
85
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
86
|
+
* Forwarded to the motion Provider (`controller`), not onto the DOM.
|
|
87
|
+
*/
|
|
88
|
+
motionController?: MotionController;
|
|
89
|
+
/**
|
|
90
|
+
* App mode (`idle` / `busy`). Same value again does not replay.
|
|
91
|
+
* Pair with `motion.states`. Not `asyncState` and not a `MotionPhaseName`. Not on the DOM.
|
|
92
|
+
*/
|
|
93
|
+
motionState?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Opaque snapshot for the transition factory (`ctx.payload`).
|
|
96
|
+
* Updating this without changing `motionState` does not replay.
|
|
97
|
+
*/
|
|
98
|
+
motionPayload?: unknown;
|
|
99
|
+
/**
|
|
100
|
+
* Play `motion.states[motionState]` on mount. Default skip so first paint stays CSS rest.
|
|
101
|
+
*/
|
|
102
|
+
playInitialState?: boolean;
|
|
74
103
|
/**
|
|
75
104
|
* Enable converge-ripple from the press point (`<Ripple />` inside the button, tone under `variant`).
|
|
76
105
|
* @default false
|
|
@@ -78,16 +107,26 @@ export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
78
107
|
ripple?: boolean;
|
|
79
108
|
};
|
|
80
109
|
export type ButtonContentProps = HTMLAttributes<HTMLSpanElement>;
|
|
81
|
-
export type ButtonLabelProps = HTMLAttributes<HTMLSpanElement
|
|
110
|
+
export type ButtonLabelProps = HTMLAttributes<HTMLSpanElement> & {
|
|
111
|
+
motion?: Prettify<ButtonPartMotion>;
|
|
112
|
+
};
|
|
82
113
|
export type ButtonIconProps = HTMLAttributes<HTMLSpanElement> & {
|
|
83
114
|
children?: ReactNode;
|
|
115
|
+
motion?: Prettify<ButtonPartMotion>;
|
|
84
116
|
};
|
|
85
117
|
export type ButtonTextProps = HTMLAttributes<HTMLSpanElement> & {
|
|
86
118
|
children?: ReactNode;
|
|
119
|
+
motion?: Prettify<ButtonPartMotion>;
|
|
120
|
+
};
|
|
121
|
+
export type ButtonLoaderProps = HTMLAttributes<HTMLSpanElement> & {
|
|
122
|
+
motion?: Prettify<ButtonPartMotion>;
|
|
123
|
+
};
|
|
124
|
+
export type ButtonSuccessProps = HTMLAttributes<HTMLSpanElement> & {
|
|
125
|
+
motion?: Prettify<ButtonPartMotion>;
|
|
126
|
+
};
|
|
127
|
+
export type ButtonErrorProps = HTMLAttributes<HTMLSpanElement> & {
|
|
128
|
+
motion?: Prettify<ButtonPartMotion>;
|
|
87
129
|
};
|
|
88
|
-
export type ButtonLoaderProps = HTMLAttributes<HTMLSpanElement>;
|
|
89
|
-
export type ButtonSuccessProps = HTMLAttributes<HTMLSpanElement>;
|
|
90
|
-
export type ButtonErrorProps = HTMLAttributes<HTMLSpanElement>;
|
|
91
130
|
export type ButtonSimpleContentProps = {
|
|
92
131
|
icon?: ReactNode;
|
|
93
132
|
iconPosition?: IconPosition;
|
|
@@ -13,16 +13,28 @@ export declare const Button: import('react').ForwardRefExoticComponent<import('r
|
|
|
13
13
|
icon?: import('react').ReactNode;
|
|
14
14
|
iconPosition?: import('../utils/iconPosition').IconPosition;
|
|
15
15
|
classNames?: import('../../..').Prettify<import('./buttonTypes').ButtonClassNames>;
|
|
16
|
-
motion?: import('../../..').Prettify<import('./buttonTypes').ButtonMotion
|
|
16
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./buttonTypes').ButtonMotion>>;
|
|
17
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
18
|
+
motionState?: string;
|
|
19
|
+
motionPayload?: unknown;
|
|
20
|
+
playInitialState?: boolean;
|
|
17
21
|
ripple?: boolean;
|
|
18
22
|
} & import('react').RefAttributes<HTMLButtonElement>> & {
|
|
19
23
|
Content: import('react').ForwardRefExoticComponent<import('./buttonTypes').ButtonContentProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
20
|
-
Label: import('react').ForwardRefExoticComponent<import('
|
|
24
|
+
Label: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
25
|
+
motion?: import('../../..').Prettify<import('./buttonTypes').ButtonPartMotion>;
|
|
26
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
21
27
|
Icon: typeof ButtonIcon;
|
|
22
28
|
Text: typeof ButtonText;
|
|
23
|
-
Loader: import('react').ForwardRefExoticComponent<import('
|
|
24
|
-
|
|
25
|
-
|
|
29
|
+
Loader: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
30
|
+
motion?: import('../../..').Prettify<import('./buttonTypes').ButtonPartMotion>;
|
|
31
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
32
|
+
Success: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
33
|
+
motion?: import('../../..').Prettify<import('./buttonTypes').ButtonPartMotion>;
|
|
34
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
35
|
+
Error: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
36
|
+
motion?: import('../../..').Prettify<import('./buttonTypes').ButtonPartMotion>;
|
|
37
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
26
38
|
};
|
|
27
39
|
export type { ButtonProps, ButtonAsyncState, ButtonSize, ButtonVariant, ButtonStatus, ButtonClassNames, ButtonMotion, ButtonPartMotion, ButtonContentProps, ButtonLabelProps, ButtonIconProps, ButtonTextProps, ButtonLoaderProps, ButtonSuccessProps, ButtonErrorProps, } from './Button';
|
|
28
40
|
/** Public helper: Ripple tone for Button variant/status. Style class helpers live in `burne-ui/internal`. */
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ForwardedRef, PointerEvent as ReactPointerEvent } from 'react';
|
|
2
|
+
import { CalendarMotion, CalendarPartMotion } from './calendarTypes';
|
|
2
3
|
export declare function resolveCalendarMotionDefaults(): CalendarMotion;
|
|
3
4
|
export declare function resolveCalendarCellMotionDefaults(): CalendarMotion;
|
|
5
|
+
export declare function useCalendarSlotMotion<T extends HTMLElement>(slot: "footerToday" | "footerClear", { motion, forwardedRef, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }?: {
|
|
6
|
+
motion?: CalendarPartMotion;
|
|
7
|
+
forwardedRef?: ForwardedRef<T>;
|
|
8
|
+
onPointerOver?: (e: ReactPointerEvent<T>) => void;
|
|
9
|
+
onPointerOut?: (e: ReactPointerEvent<T>) => void;
|
|
10
|
+
onPointerDown?: (e: ReactPointerEvent<T>) => void;
|
|
11
|
+
onPointerUp?: (e: ReactPointerEvent<T>) => void;
|
|
12
|
+
}): {
|
|
13
|
+
setRef: (node: T | null) => void;
|
|
14
|
+
targetRef: import('react').RefObject<T | null>;
|
|
15
|
+
pointerHandlers: {
|
|
16
|
+
onPointerOver: (e: ReactPointerEvent<T>) => void;
|
|
17
|
+
onPointerOut: (e: ReactPointerEvent<T>) => void;
|
|
18
|
+
onPointerDown: (e: ReactPointerEvent<T>) => void;
|
|
19
|
+
onPointerUp: (e: ReactPointerEvent<T>) => void;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -4,9 +4,13 @@ export declare function CalendarClassNamesProvider({ classNames, children, }: Ca
|
|
|
4
4
|
export declare function useCalendar(): CalendarContextValue;
|
|
5
5
|
export declare function useCalendarClassNames(): CalendarClassNames;
|
|
6
6
|
/** Scope only. Defaults and host play live in `calendarAnimations.ts`. */
|
|
7
|
-
export declare const CalendarMotionProvider: ({ motion, defaults, params, children, }: {
|
|
8
|
-
motion?: import('../utils/slotMotion').
|
|
7
|
+
export declare const CalendarMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
8
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
9
9
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
10
10
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
11
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
12
|
+
motionState?: string;
|
|
13
|
+
motionPayload?: unknown;
|
|
14
|
+
playInitialState?: boolean;
|
|
11
15
|
children: import('react').ReactNode;
|
|
12
16
|
}) => import("react/jsx-runtime").JSX.Element, useCalendarMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalCalendarMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CalendarInteractiveCellProps, CalendarNavButtonProps } from './calendarTypes';
|
|
2
2
|
export declare const CalendarNavPrev: import('react').ForwardRefExoticComponent<Omit<CalendarNavButtonProps, "size" | "direction" | "onClick"> & {
|
|
3
3
|
size?: import('./calendarTypes').CalendarSize;
|
|
4
4
|
onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
|
@@ -10,8 +10,16 @@ export declare const CalendarNavNext: import('react').ForwardRefExoticComponent<
|
|
|
10
10
|
export declare const CalendarDay: import('react').ForwardRefExoticComponent<Omit<CalendarInteractiveCellProps, "size"> & {
|
|
11
11
|
size?: import('./calendarTypes').CalendarSize;
|
|
12
12
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
13
|
-
export declare const CalendarTitle: import('react').ForwardRefExoticComponent<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export declare const
|
|
13
|
+
export declare const CalendarTitle: import('react').ForwardRefExoticComponent<import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
14
|
+
motion?: import('../../..').Prettify<import('./calendarTypes').CalendarPartMotion>;
|
|
15
|
+
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
16
|
+
export declare const CalendarHeader: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
17
|
+
motion?: import('../../..').Prettify<import('./calendarTypes').CalendarPartMotion>;
|
|
18
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
19
|
+
export declare const CalendarGrid: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
20
|
+
motion?: import('../../..').Prettify<import('./calendarTypes').CalendarPartMotion>;
|
|
21
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
22
|
+
export declare const CalendarFooter: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
23
|
+
motion?: import('../../..').Prettify<import('./calendarTypes').CalendarPartMotion>;
|
|
24
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
25
|
export declare function CalendarDefaultContent(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -36,6 +36,7 @@ export declare const CALENDAR_CELL_TEXT_CLASS = "relative z-[1] min-w-0 shrink-0
|
|
|
36
36
|
/** Today marker — 3× border-width so it stays a hairline dot on the size scale. */
|
|
37
37
|
export declare const CALENDAR_CELL_TODAY_DOT_CLASS = "absolute bottom-[length:calc(var(--border-width)*3)] left-1/2 z-[1] h-[length:calc(var(--border-width)*3)] w-[length:calc(var(--border-width)*3)] -translate-x-1/2 rounded-full bg-primary";
|
|
38
38
|
export declare const CALENDAR_NAV_ICON_CLASS = "icon-xsmall";
|
|
39
|
+
export declare const CALENDAR_NAV_ICON_WRAP_CLASS = "inline-flex items-center justify-center";
|
|
39
40
|
export declare const CALENDAR_CELL_SELECTED_CLASS = "bg-transparent font-w-mid text-primary-foreground";
|
|
40
41
|
export declare const CALENDAR_CELL_CURRENT_CLASS = "font-w-mid text-primary";
|
|
41
42
|
export declare const CALENDAR_CELL_DEFAULT_CLASS = "text-foreground";
|