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
|
@@ -3,7 +3,7 @@ import { Prettify } from '../../../utils/prettify';
|
|
|
3
3
|
import { ButtonSize } from '../Button';
|
|
4
4
|
import { CloseButtonProps } from '../CloseButton';
|
|
5
5
|
import { PanelSize, PanelSizeLayout } from '../utils/sizeLayout';
|
|
6
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
6
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
7
7
|
export type DialogVariant = "default" | "gloss";
|
|
8
8
|
export type DialogSize = PanelSize;
|
|
9
9
|
/** Size tokens from shared `PANEL_SIZE_LAYOUT` (Dialog slice). */
|
|
@@ -32,16 +32,22 @@ export type DialogLifecycleMotion = {
|
|
|
32
32
|
export type DialogPartMotion = DialogLifecycleMotion & {
|
|
33
33
|
hoverIn?: MotionValue;
|
|
34
34
|
hoverOut?: MotionValue;
|
|
35
|
+
pressIn?: MotionValue;
|
|
36
|
+
pressOut?: MotionValue;
|
|
35
37
|
};
|
|
36
38
|
export type DialogMotion = {
|
|
37
39
|
overlay?: DialogLifecycleMotion;
|
|
38
|
-
panel?:
|
|
40
|
+
panel?: DialogPartMotion;
|
|
39
41
|
title?: DialogPartMotion;
|
|
40
42
|
description?: DialogPartMotion;
|
|
41
43
|
close?: DialogLifecycleMotion;
|
|
42
44
|
header?: DialogLifecycleMotion;
|
|
45
|
+
headingBlock?: DialogPartMotion;
|
|
43
46
|
footer?: DialogLifecycleMotion;
|
|
44
47
|
content?: DialogLifecycleMotion;
|
|
48
|
+
body?: DialogLifecycleMotion;
|
|
49
|
+
/** Open squeeze on `Dialog.Trigger` (Root scope — outside Panel). */
|
|
50
|
+
trigger?: DialogPartMotion;
|
|
45
51
|
};
|
|
46
52
|
export type DialogProps = {
|
|
47
53
|
open?: boolean;
|
|
@@ -52,8 +58,18 @@ export type DialogProps = {
|
|
|
52
58
|
/** DOM node for the portal. Default: `document.body`. */
|
|
53
59
|
portalContainer?: HTMLElement | null;
|
|
54
60
|
classNames?: Prettify<DialogClassNames>;
|
|
55
|
-
/**
|
|
56
|
-
|
|
61
|
+
/**
|
|
62
|
+
* Per-slot enter/leave (`overlay`, `panel`, `title`, `description`, `close`, `header`, `headingBlock`, `footer`, `content`, `body`) plus `trigger` press on Root.
|
|
63
|
+
* Overlay/panel defaults are kit modal recipes; trigger defaults to `pressSqueeze`.
|
|
64
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
65
|
+
* Root has no portal DOM — portal slots live on `Dialog.Panel`.
|
|
66
|
+
*/
|
|
67
|
+
motion?: Prettify<MotionMapWithEvents<DialogMotion>>;
|
|
68
|
+
/**
|
|
69
|
+
* Handle for the Root trigger scope (`trigger`). Portal slots need a separate handle on `Dialog.Panel`.
|
|
70
|
+
* Not placed on the DOM.
|
|
71
|
+
*/
|
|
72
|
+
motionController?: MotionController;
|
|
57
73
|
};
|
|
58
74
|
export type DialogPanelProps = HTMLAttributes<HTMLDivElement> & {
|
|
59
75
|
variant?: DialogVariant;
|
|
@@ -61,12 +77,18 @@ export type DialogPanelProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
61
77
|
themeAnchor?: HTMLElement | null;
|
|
62
78
|
/** Overrides Root `portalContainer`. Default: `document.body`. */
|
|
63
79
|
portalContainer?: HTMLElement | null;
|
|
64
|
-
motion?: Prettify<DialogMotion
|
|
80
|
+
motion?: Prettify<MotionMapWithEvents<DialogMotion>>;
|
|
81
|
+
/**
|
|
82
|
+
* Handle for the portal host (`panel`, `overlay`, chrome). `play()` skips — there is no `root`.
|
|
83
|
+
* Use `playSlot("panel")`. Not placed on the DOM.
|
|
84
|
+
*/
|
|
85
|
+
motionController?: MotionController;
|
|
65
86
|
};
|
|
66
87
|
export type DialogTriggerProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
67
88
|
/** Render trigger as a child element (the child receives all trigger props). */
|
|
68
89
|
asChild?: boolean;
|
|
69
90
|
children?: ReactNode;
|
|
91
|
+
motion?: Prettify<DialogPartMotion>;
|
|
70
92
|
};
|
|
71
93
|
export type DialogContextValue = {
|
|
72
94
|
/** Whether the dialog is currently open. */
|
|
@@ -97,7 +119,9 @@ export type DialogTitleProps = HTMLAttributes<HTMLHeadingElement> & {
|
|
|
97
119
|
export type DialogDescriptionProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
98
120
|
motion?: Prettify<DialogPartMotion>;
|
|
99
121
|
};
|
|
100
|
-
export type DialogBodyProps = HTMLAttributes<HTMLDivElement
|
|
122
|
+
export type DialogBodyProps = HTMLAttributes<HTMLDivElement> & {
|
|
123
|
+
motion?: Prettify<DialogLifecycleMotion>;
|
|
124
|
+
};
|
|
101
125
|
export type DialogFooterProps = HTMLAttributes<HTMLDivElement> & {
|
|
102
126
|
motion?: Prettify<DialogLifecycleMotion>;
|
|
103
127
|
};
|
|
@@ -107,7 +131,9 @@ export type DialogCloseProps = CloseButtonProps & {
|
|
|
107
131
|
export type DialogContentProps = HTMLAttributes<HTMLDivElement> & {
|
|
108
132
|
motion?: Prettify<DialogLifecycleMotion>;
|
|
109
133
|
};
|
|
110
|
-
export type DialogHeadingBlockProps = HTMLAttributes<HTMLDivElement
|
|
134
|
+
export type DialogHeadingBlockProps = HTMLAttributes<HTMLDivElement> & {
|
|
135
|
+
motion?: Prettify<DialogPartMotion>;
|
|
136
|
+
};
|
|
111
137
|
export type UseDialogRootStateProps = Pick<DialogProps, "open" | "defaultOpen" | "onOpenChange" | "size" | "portalContainer">;
|
|
112
138
|
export type UseDialogModalMotionProps = {
|
|
113
139
|
open: boolean;
|
|
@@ -3,13 +3,15 @@ export declare const Dialog: typeof DialogRoot & {
|
|
|
3
3
|
Trigger: import('react').ForwardRefExoticComponent<import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
4
4
|
asChild?: boolean;
|
|
5
5
|
children?: import('react').ReactNode;
|
|
6
|
+
motion?: import('../../..').Prettify<import('./dialogTypes').DialogPartMotion>;
|
|
6
7
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
7
8
|
Panel: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
8
9
|
variant?: import('./dialogTypes').DialogVariant;
|
|
9
10
|
dismissOnBackdrop?: boolean;
|
|
10
11
|
themeAnchor?: HTMLElement | null;
|
|
11
12
|
portalContainer?: HTMLElement | null;
|
|
12
|
-
motion?: import('../../..').Prettify<import('./dialogTypes').DialogMotion
|
|
13
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./dialogTypes').DialogMotion>>;
|
|
14
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
13
15
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
16
|
Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
15
17
|
motion?: import('../../..').Prettify<import('./dialogTypes').DialogLifecycleMotion>;
|
|
@@ -29,11 +31,14 @@ export declare const Dialog: typeof DialogRoot & {
|
|
|
29
31
|
size?: import('../CloseButton').CloseButtonSize;
|
|
30
32
|
ripple?: boolean;
|
|
31
33
|
classNames?: import('../../..').Prettify<import('../CloseButton').CloseButtonClassNames>;
|
|
32
|
-
motion?: import('../../..').Prettify<import('../CloseButton').CloseButtonMotion
|
|
34
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('../CloseButton').CloseButtonMotion>>;
|
|
35
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
33
36
|
} & {
|
|
34
37
|
motion?: import('../../..').Prettify<import('./dialogTypes').DialogLifecycleMotion>;
|
|
35
38
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
36
|
-
Body: import('react').ForwardRefExoticComponent<import('
|
|
39
|
+
Body: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
40
|
+
motion?: import('../../..').Prettify<import('./dialogTypes').DialogLifecycleMotion>;
|
|
41
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
37
42
|
Footer: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
38
43
|
motion?: import('../../..').Prettify<import('./dialogTypes').DialogLifecycleMotion>;
|
|
39
44
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -12,6 +12,7 @@ export declare const DisclosureRoot: import('react').ForwardRefExoticComponent<i
|
|
|
12
12
|
chevronPosition?: import('../utils/iconPosition').IconPosition;
|
|
13
13
|
dragHandle?: boolean;
|
|
14
14
|
classNames?: import('../../..').Prettify<import('./disclosureTypes').DisclosureClassNames>;
|
|
15
|
-
motion?: import('../../..').Prettify<import('./disclosureTypes').DisclosureMotion
|
|
15
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./disclosureTypes').DisclosureMotion>>;
|
|
16
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
16
17
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
18
|
export { DisclosureTrigger, DisclosureHandleInner, DisclosureContent, DisclosureIcon, DisclosureChevron, };
|
|
@@ -13,9 +13,13 @@ export declare function useDisclosureGroupContext(): DisclosureGroupContextValue
|
|
|
13
13
|
export declare function DisclosureClassNamesProvider({ classNames, children, }: DisclosureClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export declare function useDisclosureClassNames(): DisclosureClassNames;
|
|
15
15
|
/** Scope only. Defaults and host play live in `disclosureAnimations.ts`. */
|
|
16
|
-
export declare const DisclosureMotionProvider: ({ motion, defaults, params, children, }: {
|
|
17
|
-
motion?: import('../utils/slotMotion').
|
|
16
|
+
export declare const DisclosureMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
17
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
18
18
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
19
19
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
20
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
21
|
+
motionState?: string;
|
|
22
|
+
motionPayload?: unknown;
|
|
23
|
+
playInitialState?: boolean;
|
|
20
24
|
children: ReactNode;
|
|
21
25
|
}) => import("react/jsx-runtime").JSX.Element, useDisclosureMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalDisclosureMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { DisclosureChevronProps, DisclosureIconProps } from './disclosureTypes';
|
|
3
|
-
export declare function DisclosureIcon({ className, children, ...props }: DisclosureIconProps): import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
+
export declare function DisclosureIcon({ className, children, motion, onPointerOver, onPointerOut, onPointerDown, onPointerUp, ...props }: DisclosureIconProps): import("react/jsx-runtime").JSX.Element | null;
|
|
4
4
|
export declare namespace DisclosureIcon {
|
|
5
5
|
var displayName: string;
|
|
6
6
|
}
|
|
@@ -2,7 +2,7 @@ import { HTMLAttributes, ReactNode, Ref, RefObject } from 'react';
|
|
|
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
|
export type DisclosureVariant = "default" | "outline" | "secondary" | "card" | "ghost" | "gloss";
|
|
7
7
|
export type DisclosureSize = ComponentSize;
|
|
8
8
|
/** Alias of shared `IconPosition` (chevron start/end). */
|
|
@@ -21,10 +21,15 @@ export type DisclosureClassNames = {
|
|
|
21
21
|
glossContent?: string;
|
|
22
22
|
handle?: string;
|
|
23
23
|
group?: string;
|
|
24
|
+
body?: string;
|
|
24
25
|
};
|
|
25
26
|
export type DisclosureLifecycleMotion = {
|
|
26
27
|
enter?: MotionValue;
|
|
27
28
|
leave?: MotionValue;
|
|
29
|
+
hoverIn?: MotionValue;
|
|
30
|
+
hoverOut?: MotionValue;
|
|
31
|
+
pressIn?: MotionValue;
|
|
32
|
+
pressOut?: MotionValue;
|
|
28
33
|
};
|
|
29
34
|
export type DisclosureTitleLiftMotion = {
|
|
30
35
|
hoverIn?: MotionValue;
|
|
@@ -33,14 +38,17 @@ export type DisclosureTitleLiftMotion = {
|
|
|
33
38
|
pressOut?: MotionValue;
|
|
34
39
|
};
|
|
35
40
|
/**
|
|
36
|
-
* Per-slot motion. DOM slots: `titleLift` (`classNames.titleLift`), `chevron`,
|
|
37
|
-
* `contentShell
|
|
41
|
+
* Per-slot motion. DOM slots: `titleLift` (`classNames.titleLift`), `title`, `chevron`,
|
|
42
|
+
* `contentShell`, `icon`, `body` (Content `<section>`). `panelInner` is an internal height-recipe target, not a public slot.
|
|
38
43
|
* Handle-drag is kit-internal (not a slot).
|
|
39
44
|
*/
|
|
40
45
|
export type DisclosureMotion = {
|
|
41
46
|
titleLift?: DisclosureTitleLiftMotion;
|
|
47
|
+
title?: DisclosureLifecycleMotion;
|
|
42
48
|
chevron?: DisclosureLifecycleMotion;
|
|
43
49
|
contentShell?: DisclosureLifecycleMotion;
|
|
50
|
+
icon?: DisclosureLifecycleMotion;
|
|
51
|
+
body?: DisclosureLifecycleMotion;
|
|
44
52
|
};
|
|
45
53
|
export type DisclosureGroupContextValue = {
|
|
46
54
|
openValue: string | null;
|
|
@@ -83,10 +91,18 @@ export type DisclosureProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
83
91
|
dragHandle?: boolean;
|
|
84
92
|
classNames?: Prettify<DisclosureClassNames>;
|
|
85
93
|
/**
|
|
86
|
-
* Per-slot motion: `titleLift` (hover/press), `chevron` (enter/leave rotate),
|
|
87
|
-
* `contentShell` (height). Group `motion` is merged into each item.
|
|
94
|
+
* Per-slot motion: `titleLift` (hover/press), `title` (enter/leave broadcast), `chevron` (enter/leave rotate),
|
|
95
|
+
* `contentShell` (height), `icon` / `body` (broadcast on open). Group `motion` is merged into each item.
|
|
96
|
+
* There is no `root` slot — `play()` skips; use `playSlot("titleLift")` / `playAll`.
|
|
97
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
88
98
|
*/
|
|
89
|
-
motion?: Prettify<DisclosureMotion
|
|
99
|
+
motion?: Prettify<MotionMapWithEvents<DisclosureMotion>>;
|
|
100
|
+
/**
|
|
101
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
102
|
+
* One handle → this Disclosure scope. `Disclosure.Group` has no scope — pass a handle per item.
|
|
103
|
+
* Not placed on the DOM.
|
|
104
|
+
*/
|
|
105
|
+
motionController?: MotionController;
|
|
90
106
|
};
|
|
91
107
|
export type DisclosureGroupProps = HTMLAttributes<HTMLDivElement> & {
|
|
92
108
|
children?: ReactNode;
|
|
@@ -110,7 +126,9 @@ export type DisclosureTriggerProps = HTMLAttributes<HTMLButtonElement> & {
|
|
|
110
126
|
asChild?: boolean;
|
|
111
127
|
motion?: Prettify<DisclosureTitleLiftMotion>;
|
|
112
128
|
};
|
|
113
|
-
export type DisclosureIconProps = HTMLAttributes<HTMLSpanElement
|
|
129
|
+
export type DisclosureIconProps = HTMLAttributes<HTMLSpanElement> & {
|
|
130
|
+
motion?: Prettify<DisclosureLifecycleMotion>;
|
|
131
|
+
};
|
|
114
132
|
export type DisclosureChevronProps = HTMLAttributes<HTMLSpanElement> & {
|
|
115
133
|
motion?: Prettify<DisclosureLifecycleMotion>;
|
|
116
134
|
};
|
|
@@ -11,7 +11,8 @@ export declare const Disclosure: import('react').ForwardRefExoticComponent<impor
|
|
|
11
11
|
chevronPosition?: import('../utils/iconPosition').IconPosition;
|
|
12
12
|
dragHandle?: boolean;
|
|
13
13
|
classNames?: import('../../..').Prettify<import('./disclosureTypes').DisclosureClassNames>;
|
|
14
|
-
motion?: import('../../..').Prettify<import('./disclosureTypes').DisclosureMotion
|
|
14
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./disclosureTypes').DisclosureMotion>>;
|
|
15
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
15
16
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
16
17
|
Trigger: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLButtonElement> & {
|
|
17
18
|
children?: import('react').ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DrawerBackdropInner, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHandleInner, DrawerHeader, DrawerHeadingBlock, DrawerPanel, DrawerTitle, DrawerTrigger } from './drawerParts';
|
|
2
2
|
import { DrawerProps } from './drawerTypes';
|
|
3
3
|
export type { DrawerProps, DrawerPanelProps, DrawerTriggerProps, DrawerPlacement, DrawerExtent, DrawerSize, DrawerVariant, DrawerClassNames, DrawerBackdropProps, DrawerHandleProps, DrawerHeaderProps, DrawerHeadingBlockProps, DrawerTitleProps, DrawerDescriptionProps, DrawerBodyProps, DrawerFooterProps, DrawerCloseProps, DrawerContentProps, DrawerMotion, DrawerLifecycleMotion, DrawerPartMotion, } from './drawerTypes';
|
|
4
|
-
export declare function DrawerRoot({ open, defaultOpen, onOpenChange, placement, size, children, classNames, motion, portalContainer, }: DrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function DrawerRoot({ open, defaultOpen, onOpenChange, placement, size, children, classNames, motion, motionController, portalContainer, }: DrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare namespace DrawerRoot {
|
|
6
6
|
var displayName: string;
|
|
7
7
|
}
|
|
@@ -7,9 +7,13 @@ export declare function DrawerClassNamesProvider({ classNames, children, }: Draw
|
|
|
7
7
|
export declare function useDrawer(): DrawerContextValue;
|
|
8
8
|
export declare function useDrawerClassNames(): DrawerClassNames;
|
|
9
9
|
/** Scope only. Defaults and host play live in `drawerAnimations.ts`. */
|
|
10
|
-
export declare const DrawerMotionProvider: ({ motion, defaults, params, children, }: {
|
|
11
|
-
motion?: import('../utils/slotMotion').
|
|
10
|
+
export declare const DrawerMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
11
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
12
12
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
13
13
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
14
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
15
|
+
motionState?: string;
|
|
16
|
+
motionPayload?: unknown;
|
|
17
|
+
playInitialState?: boolean;
|
|
14
18
|
children: import('react').ReactNode;
|
|
15
19
|
}) => import("react/jsx-runtime").JSX.Element, useDrawerMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalDrawerMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DrawerBackdropProps,
|
|
1
|
+
import { DrawerBackdropProps, DrawerHandleProps, DrawerHeadingBlockProps, DrawerPortalShellProps, DrawerVariant } from './drawerTypes';
|
|
2
2
|
export declare function DrawerBackdropInner(_props: DrawerBackdropProps): null;
|
|
3
3
|
export declare namespace DrawerBackdropInner {
|
|
4
4
|
var displayName: string;
|
|
@@ -13,7 +13,7 @@ export declare namespace DrawerHandleInner {
|
|
|
13
13
|
export declare const DrawerHeader: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
14
14
|
motion?: import('../../..').Prettify<import('./drawerTypes').DrawerLifecycleMotion>;
|
|
15
15
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
16
|
-
export declare function DrawerHeadingBlock({ className, ...rest }: DrawerHeadingBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function DrawerHeadingBlock({ className, motion, onPointerOver, onPointerOut, ...rest }: DrawerHeadingBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export declare namespace DrawerHeadingBlock {
|
|
18
18
|
var displayName: string;
|
|
19
19
|
}
|
|
@@ -28,23 +28,28 @@ export declare const DrawerClose: import('react').ForwardRefExoticComponent<Omit
|
|
|
28
28
|
size?: import('../CloseButton').CloseButtonSize;
|
|
29
29
|
ripple?: boolean;
|
|
30
30
|
classNames?: import('../../..').Prettify<import('../CloseButton').CloseButtonClassNames>;
|
|
31
|
-
motion?: import('../../..').Prettify<import('../CloseButton').CloseButtonMotion
|
|
31
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('../CloseButton').CloseButtonMotion>>;
|
|
32
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
32
33
|
} & {
|
|
33
34
|
motion?: import('../../..').Prettify<import('./drawerTypes').DrawerLifecycleMotion>;
|
|
34
35
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
35
|
-
export declare const DrawerBody: import('react').ForwardRefExoticComponent<
|
|
36
|
+
export declare const DrawerBody: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
37
|
+
motion?: import('../../..').Prettify<import('./drawerTypes').DrawerLifecycleMotion>;
|
|
38
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
36
39
|
export declare const DrawerFooter: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
37
40
|
motion?: import('../../..').Prettify<import('./drawerTypes').DrawerLifecycleMotion>;
|
|
38
41
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
39
42
|
export declare const DrawerTrigger: import('react').ForwardRefExoticComponent<import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
40
43
|
asChild?: boolean;
|
|
41
44
|
children?: import('react').ReactNode;
|
|
45
|
+
motion?: import('../../..').Prettify<import('./drawerTypes').DrawerPartMotion>;
|
|
42
46
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
43
47
|
export declare const DrawerPanel: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
44
48
|
extent?: import('./drawerTypes').DrawerExtent;
|
|
45
49
|
variant?: DrawerVariant;
|
|
46
50
|
themeAnchor?: HTMLElement | null;
|
|
47
51
|
portalContainer?: HTMLElement | null;
|
|
48
|
-
motion?: import('../../..').Prettify<import('./drawerTypes').DrawerMotion
|
|
52
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./drawerTypes').DrawerMotion>>;
|
|
53
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
49
54
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
50
55
|
export declare function DrawerPortalShell({ className, style, variant, placement, extent, portalTheme, lightUi, titleId, descriptionId, hasTitle, hasDescription, backdropIsDismissable, panelSegments, dialogRef, overlayRef, panelRef, panelForwardedRef, panelRest, bindGlossPanelRef, onBackdropMouseDown, onDialogClose, onDialogCancel, contained, }: DrawerPortalShellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { Prettify } from '../../../utils/prettify';
|
|
|
3
3
|
import { ButtonSize } from '../Button';
|
|
4
4
|
import { CloseButtonProps } from '../CloseButton';
|
|
5
5
|
import { PanelSize, PanelSizeLayout } from '../utils/sizeLayout';
|
|
6
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
6
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
7
7
|
export type DrawerPlacement = "left" | "right" | "top" | "bottom";
|
|
8
8
|
/** Viewport extent of the panel (orthogonal to chrome `size`). */
|
|
9
9
|
export type DrawerExtent = "default" | "mid" | "full";
|
|
@@ -36,17 +36,23 @@ export type DrawerLifecycleMotion = {
|
|
|
36
36
|
export type DrawerPartMotion = DrawerLifecycleMotion & {
|
|
37
37
|
hoverIn?: MotionValue;
|
|
38
38
|
hoverOut?: MotionValue;
|
|
39
|
+
pressIn?: MotionValue;
|
|
40
|
+
pressOut?: MotionValue;
|
|
39
41
|
};
|
|
40
42
|
export type DrawerMotion = {
|
|
41
43
|
overlay?: DrawerLifecycleMotion;
|
|
42
|
-
panel?:
|
|
44
|
+
panel?: DrawerPartMotion;
|
|
43
45
|
title?: DrawerPartMotion;
|
|
44
46
|
description?: DrawerPartMotion;
|
|
45
47
|
close?: DrawerLifecycleMotion;
|
|
46
48
|
header?: DrawerLifecycleMotion;
|
|
49
|
+
headingBlock?: DrawerPartMotion;
|
|
47
50
|
footer?: DrawerLifecycleMotion;
|
|
48
51
|
content?: DrawerLifecycleMotion;
|
|
52
|
+
body?: DrawerLifecycleMotion;
|
|
49
53
|
handle?: DrawerLifecycleMotion;
|
|
54
|
+
/** Open squeeze on `Drawer.Trigger` (Root scope — outside Panel). */
|
|
55
|
+
trigger?: DrawerPartMotion;
|
|
50
56
|
};
|
|
51
57
|
export type DrawerProps = {
|
|
52
58
|
open?: boolean;
|
|
@@ -60,8 +66,18 @@ export type DrawerProps = {
|
|
|
60
66
|
/** DOM node for the portal. Default: `document.body`. */
|
|
61
67
|
portalContainer?: HTMLElement | null;
|
|
62
68
|
classNames?: Prettify<DrawerClassNames>;
|
|
63
|
-
/**
|
|
64
|
-
|
|
69
|
+
/**
|
|
70
|
+
* Per-slot enter/leave (`overlay`, `panel`, `title`, `description`, `close`, `header`, `headingBlock`, `footer`, `content`, `body`, `handle`) plus `trigger` press on Root.
|
|
71
|
+
* Overlay/panel defaults are kit overlay + drawer slide recipes; trigger defaults to `pressSqueeze`.
|
|
72
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
73
|
+
* Root has no portal DOM — portal slots live on `Drawer.Panel`.
|
|
74
|
+
*/
|
|
75
|
+
motion?: Prettify<MotionMapWithEvents<DrawerMotion>>;
|
|
76
|
+
/**
|
|
77
|
+
* Handle for the Root trigger scope (`trigger`). Portal slots need a separate handle on `Drawer.Panel`.
|
|
78
|
+
* Not placed on the DOM.
|
|
79
|
+
*/
|
|
80
|
+
motionController?: MotionController;
|
|
65
81
|
};
|
|
66
82
|
export type DrawerPanelProps = HTMLAttributes<HTMLDivElement> & {
|
|
67
83
|
extent?: DrawerExtent;
|
|
@@ -69,12 +85,18 @@ export type DrawerPanelProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
69
85
|
themeAnchor?: HTMLElement | null;
|
|
70
86
|
/** Overrides Root `portalContainer`. Default: `document.body`. */
|
|
71
87
|
portalContainer?: HTMLElement | null;
|
|
72
|
-
motion?: Prettify<DrawerMotion
|
|
88
|
+
motion?: Prettify<MotionMapWithEvents<DrawerMotion>>;
|
|
89
|
+
/**
|
|
90
|
+
* Handle for the portal host (`panel`, `overlay`, chrome). `play()` skips — there is no `root`.
|
|
91
|
+
* Use `playSlot("panel")`. Not placed on the DOM.
|
|
92
|
+
*/
|
|
93
|
+
motionController?: MotionController;
|
|
73
94
|
};
|
|
74
95
|
export type DrawerTriggerProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
75
96
|
/** Render trigger as a child element (the child receives all trigger props). */
|
|
76
97
|
asChild?: boolean;
|
|
77
98
|
children?: ReactNode;
|
|
99
|
+
motion?: Prettify<DrawerPartMotion>;
|
|
78
100
|
};
|
|
79
101
|
export type DrawerContextValue = {
|
|
80
102
|
/** Whether the drawer is currently open. */
|
|
@@ -112,14 +134,18 @@ export type DrawerHandleProps = Omit<HTMLAttributes<HTMLDivElement>, "onKeyDown"
|
|
|
112
134
|
export type DrawerHeaderProps = HTMLAttributes<HTMLDivElement> & {
|
|
113
135
|
motion?: Prettify<DrawerLifecycleMotion>;
|
|
114
136
|
};
|
|
115
|
-
export type DrawerHeadingBlockProps = HTMLAttributes<HTMLDivElement
|
|
137
|
+
export type DrawerHeadingBlockProps = HTMLAttributes<HTMLDivElement> & {
|
|
138
|
+
motion?: Prettify<DrawerPartMotion>;
|
|
139
|
+
};
|
|
116
140
|
export type DrawerTitleProps = HTMLAttributes<HTMLHeadingElement> & {
|
|
117
141
|
motion?: Prettify<DrawerPartMotion>;
|
|
118
142
|
};
|
|
119
143
|
export type DrawerDescriptionProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
120
144
|
motion?: Prettify<DrawerPartMotion>;
|
|
121
145
|
};
|
|
122
|
-
export type DrawerBodyProps = HTMLAttributes<HTMLDivElement
|
|
146
|
+
export type DrawerBodyProps = HTMLAttributes<HTMLDivElement> & {
|
|
147
|
+
motion?: Prettify<DrawerLifecycleMotion>;
|
|
148
|
+
};
|
|
123
149
|
export type DrawerFooterProps = HTMLAttributes<HTMLDivElement> & {
|
|
124
150
|
motion?: Prettify<DrawerLifecycleMotion>;
|
|
125
151
|
};
|
|
@@ -3,13 +3,15 @@ export declare const Drawer: typeof DrawerRoot & {
|
|
|
3
3
|
Trigger: import('react').ForwardRefExoticComponent<import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
4
4
|
asChild?: boolean;
|
|
5
5
|
children?: import('react').ReactNode;
|
|
6
|
+
motion?: import('../../..').Prettify<import('./drawerTypes').DrawerPartMotion>;
|
|
6
7
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
7
8
|
Panel: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
8
9
|
extent?: import('./drawerTypes').DrawerExtent;
|
|
9
10
|
variant?: import('./drawerTypes').DrawerVariant;
|
|
10
11
|
themeAnchor?: HTMLElement | null;
|
|
11
12
|
portalContainer?: HTMLElement | null;
|
|
12
|
-
motion?: import('../../..').Prettify<import('./drawerTypes').DrawerMotion
|
|
13
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./drawerTypes').DrawerMotion>>;
|
|
14
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
13
15
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
16
|
Backdrop: typeof DrawerBackdropInner;
|
|
15
17
|
Handle: typeof DrawerHandleInner;
|
|
@@ -31,11 +33,14 @@ export declare const Drawer: typeof DrawerRoot & {
|
|
|
31
33
|
size?: import('../CloseButton').CloseButtonSize;
|
|
32
34
|
ripple?: boolean;
|
|
33
35
|
classNames?: import('../../..').Prettify<import('../CloseButton').CloseButtonClassNames>;
|
|
34
|
-
motion?: import('../../..').Prettify<import('../CloseButton').CloseButtonMotion
|
|
36
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('../CloseButton').CloseButtonMotion>>;
|
|
37
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
35
38
|
} & {
|
|
36
39
|
motion?: import('../../..').Prettify<import('./drawerTypes').DrawerLifecycleMotion>;
|
|
37
40
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
38
|
-
Body: import('react').ForwardRefExoticComponent<import('
|
|
41
|
+
Body: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
42
|
+
motion?: import('../../..').Prettify<import('./drawerTypes').DrawerLifecycleMotion>;
|
|
43
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
39
44
|
Footer: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
40
45
|
motion?: import('../../..').Prettify<import('./drawerTypes').DrawerLifecycleMotion>;
|
|
41
46
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DropdownGroup, DropdownItem, DropdownItemHint, DropdownItemIcon, DropdownItemIndicator, DropdownItemLabel, DropdownLabel, DropdownPopover, DropdownSeparator, DropdownSub, DropdownSubContent, DropdownSubTrigger, DropdownTrigger } from './dropdownParts';
|
|
2
2
|
import { DropdownProps } from './dropdownTypes';
|
|
3
3
|
export type { DropdownProps, DropdownClassNames, DropdownTriggerProps, DropdownPopoverProps, DropdownGroupProps, DropdownLabelProps, DropdownSeparatorProps, DropdownItemProps, DropdownItemLabelProps, DropdownItemHintProps, DropdownItemIconProps, DropdownItemIndicatorProps, DropdownItemStatus, DropdownSubProps, DropdownSubTriggerProps, DropdownSubContentProps, DropdownMotion, DropdownLifecycleMotion, DropdownPartMotion, DropdownPopoverMotion, } from './dropdownTypes';
|
|
4
|
-
export declare function DropdownRoot({ children, className, classNames, open, defaultOpen, onOpenChange, multiple, value, defaultValue, onValueChange, selectionIndicator, closeOnSelect, popoverVariant, portalContainer, motion, ...rest }: DropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function DropdownRoot({ children, className, classNames, open, defaultOpen, onOpenChange, multiple, value, defaultValue, onValueChange, selectionIndicator, closeOnSelect, popoverVariant, portalContainer, motion, motionController, ...rest }: DropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare namespace DropdownRoot {
|
|
6
6
|
var displayName: string;
|
|
7
7
|
}
|
|
@@ -1,20 +1,42 @@
|
|
|
1
1
|
import { PopoverMotion } from '../Popover';
|
|
2
|
-
import {
|
|
2
|
+
import { MotionMapWithEvents } from '../utils/slotMotion';
|
|
3
|
+
import { ForwardedRef, PointerEvent as ReactPointerEvent } from 'react';
|
|
4
|
+
import { DropdownMotion, DropdownPartMotion, DropdownPopoverMotion, UseDropdownPopoverMenuProps, UseDropdownSubContentPortalProps, UseDropdownSubmenuKeyboardProps } from './dropdownTypes';
|
|
3
5
|
/**
|
|
4
6
|
* Slot motion for Dropdown — look here first.
|
|
5
7
|
*
|
|
6
|
-
* Main menu is an embedder: `content` / `title` / `description` / `body`
|
|
7
|
-
*
|
|
8
|
-
* `
|
|
8
|
+
* Main menu is an embedder: `content` / `title` / `description` / `body` /
|
|
9
|
+
* `item` / `itemLabel` / `itemHint` / `itemIcon` / `label` / `subTrigger` / `separator`
|
|
10
|
+
* are forwarded to Popover (`resolveDropdownPopoverMotion`). Host play lives
|
|
11
|
+
* in `popoverAnimations.ts`. Trigger press is a Dropdown Root slot (`pressSqueeze`).
|
|
9
12
|
*
|
|
10
13
|
* Submenu is a portal host: `subContent` (`useDropdownSubContentPortal` +
|
|
11
|
-
* `DROPDOWN_SUB_MOTION_DEFAULTS` on `Dropdown.SubContent`).
|
|
14
|
+
* `DROPDOWN_SUB_MOTION_DEFAULTS` on `Dropdown.SubContent`). Nested `subTrigger`
|
|
15
|
+
* falls back to the Dropdown scope (Popover context does not reach the portal).
|
|
12
16
|
*/
|
|
13
17
|
export declare const DROPDOWN_SUB_MOTION_DEFAULTS: DropdownMotion;
|
|
14
18
|
export declare function resolveDropdownPopoverMotion({ rootMotion, popoverMotion, }: {
|
|
15
|
-
rootMotion?: DropdownMotion
|
|
16
|
-
popoverMotion?: DropdownPopoverMotion
|
|
17
|
-
}): PopoverMotion | undefined;
|
|
19
|
+
rootMotion?: MotionMapWithEvents<DropdownMotion>;
|
|
20
|
+
popoverMotion?: MotionMapWithEvents<DropdownPopoverMotion>;
|
|
21
|
+
}): MotionMapWithEvents<PopoverMotion> | undefined;
|
|
22
|
+
export type DropdownMenuChromeSlot = "label" | "subTrigger" | "separator";
|
|
23
|
+
export declare function useDropdownMenuSlotMotion<T extends HTMLElement>(slot: DropdownMenuChromeSlot, { motion, forwardedRef, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }?: {
|
|
24
|
+
motion?: DropdownPartMotion;
|
|
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
|
+
};
|
|
18
40
|
export declare function useDropdownPopoverMenu({ open, setOpen, contentRef, triggerRef, }: UseDropdownPopoverMenuProps): void;
|
|
19
41
|
/** Keyboard nav inside an open submenu panel (APG menu). */
|
|
20
42
|
export declare function useDropdownSubmenuKeyboard({ subOpen, portalMounted, panelRef, triggerRef, setOpen, }: UseDropdownSubmenuKeyboardProps): void;
|
|
@@ -22,9 +22,13 @@ export declare function useDropdownIndicatorPreference(): boolean;
|
|
|
22
22
|
export declare function useDropdownGroupLabelRegister(): ((id: string | undefined) => void) | null;
|
|
23
23
|
export declare function useDropdownSub(): DropdownSubContextValue;
|
|
24
24
|
/** Scope only. Defaults and host play live in `dropdownAnimations.ts`. */
|
|
25
|
-
export declare const DropdownMotionProvider: ({ motion, defaults, params, children, }: {
|
|
26
|
-
motion?: import('../utils/slotMotion').
|
|
25
|
+
export declare const DropdownMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
26
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
27
27
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
28
28
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
29
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
30
|
+
motionState?: string;
|
|
31
|
+
motionPayload?: unknown;
|
|
32
|
+
playInitialState?: boolean;
|
|
29
33
|
children: import('react').ReactNode;
|
|
30
34
|
}) => import("react/jsx-runtime").JSX.Element, useDropdownMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalDropdownMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { DropdownItemHintProps, DropdownItemIconProps, DropdownItemIndicatorProps, DropdownItemLabelProps } from './dropdownTypes';
|
|
3
|
-
export declare function DropdownItemLabel({ className, ...props }: DropdownItemLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function DropdownItemLabel({ className, motion, onPointerOver, onPointerOut, ...props }: DropdownItemLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare namespace DropdownItemLabel {
|
|
5
5
|
var displayName: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function DropdownItemHint({ className, ...props }: DropdownItemHintProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function DropdownItemHint({ className, motion, onPointerOver, onPointerOut, ...props }: DropdownItemHintProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export declare namespace DropdownItemHint {
|
|
9
9
|
var displayName: string;
|
|
10
10
|
}
|
|
11
|
-
export declare function DropdownItemIcon({ className, ...props }: DropdownItemIconProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function DropdownItemIcon({ className, motion, onPointerOver, onPointerOut, ...props }: DropdownItemIconProps): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export declare namespace DropdownItemIcon {
|
|
13
13
|
var displayName: string;
|
|
14
14
|
}
|
|
@@ -23,4 +23,5 @@ export declare const DropdownItem: import('react').NamedExoticComponent<Omit<HTM
|
|
|
23
23
|
selection?: boolean;
|
|
24
24
|
status?: import('./dropdownTypes').DropdownItemStatus;
|
|
25
25
|
indicator?: boolean;
|
|
26
|
+
motion?: import('../../..').Prettify<import('./dropdownTypes').DropdownLifecycleMotion>;
|
|
26
27
|
} & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { DROPDOWN_ROOT_CLASS } from './dropdownStyles';
|
|
2
|
-
import {
|
|
2
|
+
import { DropdownSeparatorProps } from './dropdownTypes';
|
|
3
3
|
export declare const DropdownTrigger: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLElement> & {
|
|
4
4
|
asChild?: boolean;
|
|
5
|
+
motion?: import('../../..').Prettify<import('./dropdownTypes').DropdownPartMotion>;
|
|
5
6
|
} & import('react').RefAttributes<HTMLElement>>;
|
|
6
7
|
export declare const DropdownPopover: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
7
8
|
variant?: import('../Popover').PopoverVariant;
|
|
@@ -10,13 +11,16 @@ export declare const DropdownPopover: import('react').ForwardRefExoticComponent<
|
|
|
10
11
|
align?: import('../Popover').FloatingAlign;
|
|
11
12
|
offset?: number;
|
|
12
13
|
portalContainer?: HTMLElement | null;
|
|
13
|
-
motion?: import('../../..').Prettify<import('./dropdownTypes').DropdownPopoverMotion
|
|
14
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./dropdownTypes').DropdownPopoverMotion>>;
|
|
15
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
14
16
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
17
|
export declare const DropdownGroup: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
16
18
|
selectionIndicator?: boolean;
|
|
17
19
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
18
|
-
export declare const DropdownLabel: import('react').ForwardRefExoticComponent<
|
|
19
|
-
|
|
20
|
+
export declare const DropdownLabel: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
21
|
+
motion?: import('../../..').Prettify<import('./dropdownTypes').DropdownPartMotion>;
|
|
22
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
23
|
+
export declare function DropdownSeparator({ className, motion, onPointerOver, onPointerOut, onPointerDown, onPointerUp, ...rest }: DropdownSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
20
24
|
export declare namespace DropdownSeparator {
|
|
21
25
|
var displayName: string;
|
|
22
26
|
}
|
|
@@ -4,8 +4,10 @@ export declare const DropdownSub: import('react').ForwardRefExoticComponent<Drop
|
|
|
4
4
|
export declare const DropdownSubTrigger: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
5
5
|
asChild?: boolean;
|
|
6
6
|
icon?: import('react').ReactNode;
|
|
7
|
+
motion?: import('../../..').Prettify<import('./dropdownTypes').DropdownPartMotion>;
|
|
7
8
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
8
9
|
export declare const DropdownSubContent: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
9
10
|
portalContainer?: HTMLElement | null;
|
|
10
11
|
motion?: import('../../..').Prettify<import('./dropdownTypes').DropdownLifecycleMotion>;
|
|
12
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
11
13
|
} & import('react').RefAttributes<HTMLDivElement>>;
|