burne-ui 1.8.7 → 1.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/composite/Accordion/Accordion.d.ts +1 -1
- package/dist/components/composite/Accordion/accordionAnimations.d.ts +4 -4
- package/dist/components/composite/Accordion/accordionParts.d.ts +3 -5
- package/dist/components/composite/Accordion/accordionStyles.d.ts +4 -1
- package/dist/components/composite/Accordion/accordionTypes.d.ts +14 -5
- package/dist/components/composite/Accordion/index.d.ts +5 -4
- package/dist/components/composite/AlertDialog/AlertDialog.d.ts +1 -1
- package/dist/components/composite/AlertDialog/alertDialogContext.d.ts +6 -2
- package/dist/components/composite/AlertDialog/alertDialogParts.d.ts +9 -8
- package/dist/components/composite/AlertDialog/alertDialogTypes.d.ts +33 -7
- package/dist/components/composite/AlertDialog/index.d.ts +7 -3
- package/dist/components/composite/ButtonGroup/ButtonGroup.d.ts +2 -1
- package/dist/components/composite/ButtonGroup/buttonGroupContext.d.ts +6 -2
- package/dist/components/composite/ButtonGroup/buttonGroupTypes.d.ts +8 -2
- package/dist/components/composite/ButtonGroup/index.d.ts +2 -1
- package/dist/components/composite/CheckboxGroup/CheckboxGroup.d.ts +5 -4
- package/dist/components/composite/CheckboxGroup/checkboxGroupAnimations.d.ts +13 -12
- package/dist/components/composite/CheckboxGroup/checkboxGroupContext.d.ts +6 -2
- package/dist/components/composite/CheckboxGroup/checkboxGroupParts.d.ts +16 -13
- package/dist/components/composite/CheckboxGroup/checkboxGroupTypes.d.ts +29 -8
- package/dist/components/composite/CheckboxGroup/index.d.ts +18 -18
- package/dist/components/composite/Form/Form.d.ts +2 -1
- package/dist/components/composite/Form/formContext.d.ts +6 -2
- package/dist/components/composite/Form/formParts.d.ts +2 -0
- package/dist/components/composite/Form/formTypes.d.ts +19 -2
- package/dist/components/composite/Form/index.d.ts +4 -1
- package/dist/components/composite/RadioGroup/RadioGroup.d.ts +4 -3
- package/dist/components/composite/RadioGroup/index.d.ts +19 -17
- package/dist/components/composite/RadioGroup/radioGroupAnimations.d.ts +39 -0
- package/dist/components/composite/RadioGroup/radioGroupContext.d.ts +11 -0
- package/dist/components/composite/RadioGroup/radioGroupParts.d.ts +18 -13
- package/dist/components/composite/RadioGroup/radioGroupTypes.d.ts +40 -5
- package/dist/components/composite/ToggleButtonGroup/ToggleButtonGroup.d.ts +2 -1
- package/dist/components/composite/ToggleButtonGroup/index.d.ts +2 -1
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupContext.d.ts +6 -2
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupTypes.d.ts +8 -2
- package/dist/components/core/Alert/Alert.d.ts +5 -1
- package/dist/components/core/Alert/alertContext.d.ts +6 -2
- package/dist/components/core/Alert/alertTypes.d.ts +24 -2
- package/dist/components/core/Alert/index.d.ts +5 -1
- package/dist/components/core/Avatar/Avatar.d.ts +2 -1
- package/dist/components/core/Avatar/avatarContext.d.ts +6 -2
- package/dist/components/core/Avatar/avatarTypes.d.ts +8 -2
- package/dist/components/core/Avatar/index.d.ts +2 -1
- package/dist/components/core/Badge/Badge.d.ts +5 -1
- package/dist/components/core/Badge/badgeContext.d.ts +6 -2
- package/dist/components/core/Badge/badgeParts.d.ts +5 -1
- package/dist/components/core/Badge/badgeTypes.d.ts +43 -3
- package/dist/components/core/Badge/index.d.ts +10 -2
- package/dist/components/core/Breadcrumbs/Breadcrumbs.d.ts +2 -1
- package/dist/components/core/Breadcrumbs/breadcrumbsAnimations.d.ts +19 -1
- package/dist/components/core/Breadcrumbs/breadcrumbsContext.d.ts +6 -2
- package/dist/components/core/Breadcrumbs/breadcrumbsParts.d.ts +3 -1
- package/dist/components/core/Breadcrumbs/breadcrumbsTypes.d.ts +31 -2
- package/dist/components/core/Breadcrumbs/index.d.ts +3 -1
- package/dist/components/core/Button/Button.d.ts +5 -1
- package/dist/components/core/Button/buttonContext.d.ts +6 -2
- package/dist/components/core/Button/buttonParts.d.ts +15 -7
- package/dist/components/core/Button/buttonTypes.d.ts +46 -7
- package/dist/components/core/Button/index.d.ts +17 -5
- package/dist/components/core/Calendar/calendarAnimations.d.ts +19 -1
- package/dist/components/core/Calendar/calendarContext.d.ts +6 -2
- package/dist/components/core/Calendar/calendarParts.d.ts +13 -5
- package/dist/components/core/Calendar/calendarStyles.d.ts +1 -0
- package/dist/components/core/Calendar/calendarTypes.d.ts +43 -6
- package/dist/components/core/Calendar/index.d.ts +12 -4
- package/dist/components/core/Card/Card.d.ts +5 -1
- package/dist/components/core/Card/cardContext.d.ts +6 -2
- package/dist/components/core/Card/cardTypes.d.ts +23 -2
- package/dist/components/core/Card/index.d.ts +5 -1
- package/dist/components/core/Checkbox/Checkbox.d.ts +2 -1
- package/dist/components/core/Checkbox/checkboxAnimations.d.ts +26 -4
- package/dist/components/core/Checkbox/checkboxContext.d.ts +12 -2
- package/dist/components/core/Checkbox/checkboxParts.d.ts +11 -7
- package/dist/components/core/Checkbox/checkboxTypes.d.ts +45 -10
- package/dist/components/core/Checkbox/index.d.ts +5 -2
- package/dist/components/core/CloseButton/CloseButton.d.ts +2 -1
- package/dist/components/core/CloseButton/closeButtonContext.d.ts +6 -2
- package/dist/components/core/CloseButton/closeButtonStyles.d.ts +1 -1
- package/dist/components/core/CloseButton/closeButtonTypes.d.ts +12 -3
- package/dist/components/core/ColorPicker/ColorPicker.d.ts +4 -4
- package/dist/components/core/ColorPicker/ColorSlider.d.ts +3 -1
- package/dist/components/core/ColorPicker/ColorSwatch.d.ts +2 -1
- package/dist/components/core/ColorPicker/colorPickerContext.d.ts +6 -2
- package/dist/components/core/ColorPicker/colorPickerParts.d.ts +10 -2
- package/dist/components/core/ColorPicker/colorPickerTypes.d.ts +29 -9
- package/dist/components/core/ColorPicker/colorSliderContext.d.ts +6 -2
- package/dist/components/core/ColorPicker/colorSliderTypes.d.ts +16 -2
- package/dist/components/core/ColorPicker/colorSwatchContext.d.ts +6 -2
- package/dist/components/core/ColorPicker/colorSwatchTypes.d.ts +11 -2
- package/dist/components/core/ColorPicker/index.d.ts +14 -3
- package/dist/components/core/ComboBox/ComboBox.d.ts +2 -2
- package/dist/components/core/ComboBox/comboBoxAnimations.d.ts +19 -1
- package/dist/components/core/ComboBox/comboBoxContext.d.ts +6 -2
- package/dist/components/core/ComboBox/comboBoxFieldParts.d.ts +12 -14
- package/dist/components/core/ComboBox/comboBoxParts.d.ts +4 -1
- package/dist/components/core/ComboBox/comboBoxTypes.d.ts +27 -3
- package/dist/components/core/ComboBox/index.d.ts +15 -5
- package/dist/components/core/Dialog/Dialog.d.ts +1 -1
- package/dist/components/core/Dialog/dialogContext.d.ts +6 -2
- package/dist/components/core/Dialog/dialogParts.d.ts +10 -5
- package/dist/components/core/Dialog/dialogTypes.d.ts +33 -7
- package/dist/components/core/Dialog/index.d.ts +8 -3
- package/dist/components/core/Disclosure/Disclosure.d.ts +2 -1
- package/dist/components/core/Disclosure/disclosureContext.d.ts +6 -2
- package/dist/components/core/Disclosure/disclosureParts.d.ts +1 -1
- package/dist/components/core/Disclosure/disclosureTypes.d.ts +25 -7
- package/dist/components/core/Disclosure/index.d.ts +2 -1
- package/dist/components/core/Drawer/Drawer.d.ts +1 -1
- package/dist/components/core/Drawer/drawerContext.d.ts +6 -2
- package/dist/components/core/Drawer/drawerParts.d.ts +10 -5
- package/dist/components/core/Drawer/drawerTypes.d.ts +33 -7
- package/dist/components/core/Drawer/index.d.ts +8 -3
- package/dist/components/core/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/core/Dropdown/dropdownAnimations.d.ts +30 -8
- package/dist/components/core/Dropdown/dropdownContext.d.ts +6 -2
- package/dist/components/core/Dropdown/dropdownItemParts.d.ts +4 -3
- package/dist/components/core/Dropdown/dropdownParts.d.ts +8 -4
- package/dist/components/core/Dropdown/dropdownSubParts.d.ts +2 -0
- package/dist/components/core/Dropdown/dropdownTypes.d.ts +56 -12
- package/dist/components/core/Dropdown/index.d.ts +9 -2
- package/dist/components/core/Expandable/Expandable.d.ts +2 -1
- package/dist/components/core/Expandable/expandableContext.d.ts +6 -2
- package/dist/components/core/Expandable/expandableParts.d.ts +3 -3
- package/dist/components/core/Expandable/expandableTypes.d.ts +24 -6
- package/dist/components/core/Expandable/index.d.ts +2 -1
- package/dist/components/core/Field/Field.d.ts +2 -1
- package/dist/components/core/Field/fieldAnimations.d.ts +17 -17
- package/dist/components/core/Field/fieldContext.d.ts +12 -4
- package/dist/components/core/Field/fieldParts.d.ts +8 -9
- package/dist/components/core/Field/fieldTypes.d.ts +22 -6
- package/dist/components/core/Field/index.d.ts +7 -4
- package/dist/components/core/Input/Input.d.ts +2 -2
- package/dist/components/core/Input/index.d.ts +15 -5
- package/dist/components/core/Input/inputAnimations.d.ts +20 -2
- package/dist/components/core/Input/inputContext.d.ts +6 -2
- package/dist/components/core/Input/inputControlParts.d.ts +1 -0
- package/dist/components/core/Input/inputFieldParts.d.ts +12 -14
- package/dist/components/core/Input/inputTypes.d.ts +28 -3
- package/dist/components/core/Kbd/Kbd.d.ts +2 -1
- package/dist/components/core/Kbd/index.d.ts +10 -3
- package/dist/components/core/Kbd/kbdAnimations.d.ts +19 -3
- package/dist/components/core/Kbd/kbdContext.d.ts +6 -2
- package/dist/components/core/Kbd/kbdParts.d.ts +8 -5
- package/dist/components/core/Kbd/kbdTypes.d.ts +21 -3
- package/dist/components/core/Label/Label.d.ts +12 -2
- package/dist/components/core/Label/index.d.ts +1 -2
- package/dist/components/core/Label/labelContext.d.ts +6 -2
- package/dist/components/core/Label/labelTypes.d.ts +8 -2
- package/dist/components/core/Link/Link.d.ts +1 -1
- package/dist/components/core/Link/linkContext.d.ts +6 -2
- package/dist/components/core/Link/linkTypes.d.ts +26 -3
- package/dist/components/core/ListBox/ListBox.d.ts +1 -1
- package/dist/components/core/ListBox/index.d.ts +1 -0
- package/dist/components/core/ListBox/listBoxAnimations.d.ts +20 -2
- package/dist/components/core/ListBox/listBoxContext.d.ts +6 -2
- package/dist/components/core/ListBox/listBoxParts.d.ts +8 -7
- package/dist/components/core/ListBox/listBoxTypes.d.ts +38 -6
- package/dist/components/core/Loading/Loading.d.ts +2 -1
- package/dist/components/core/Loading/loadingContext.d.ts +6 -2
- package/dist/components/core/Loading/loadingTypes.d.ts +8 -2
- package/dist/components/core/Meter/Meter.d.ts +2 -2
- package/dist/components/core/Meter/index.d.ts +14 -5
- package/dist/components/core/Meter/meterAnimations.d.ts +30 -4
- package/dist/components/core/Meter/meterContext.d.ts +7 -3
- package/dist/components/core/Meter/meterParts.d.ts +13 -14
- package/dist/components/core/Meter/meterStyles.d.ts +1 -6
- package/dist/components/core/Meter/meterTypes.d.ts +36 -12
- package/dist/components/core/Meter/useMeterTrackState.d.ts +0 -2
- package/dist/components/core/Pagination/Pagination.d.ts +3 -2
- package/dist/components/core/Pagination/index.d.ts +18 -6
- package/dist/components/core/Pagination/paginationAnimations.d.ts +29 -2
- package/dist/components/core/Pagination/paginationContext.d.ts +6 -2
- package/dist/components/core/Pagination/paginationParts.d.ts +17 -6
- package/dist/components/core/Pagination/paginationTypes.d.ts +43 -5
- package/dist/components/core/Popover/Popover.d.ts +1 -1
- package/dist/components/core/Popover/index.d.ts +9 -3
- package/dist/components/core/Popover/popoverContext.d.ts +6 -2
- package/dist/components/core/Popover/popoverParts.d.ts +9 -4
- package/dist/components/core/Popover/popoverTypes.d.ts +41 -9
- package/dist/components/core/ProgressBar/ProgressBar.d.ts +2 -2
- package/dist/components/core/ProgressBar/index.d.ts +14 -5
- package/dist/components/core/ProgressBar/progressBarAnimations.d.ts +32 -4
- package/dist/components/core/ProgressBar/progressBarContext.d.ts +7 -3
- package/dist/components/core/ProgressBar/progressBarParts.d.ts +13 -14
- package/dist/components/core/ProgressBar/progressBarTypes.d.ts +35 -12
- package/dist/components/core/Radio/Radio.d.ts +2 -1
- package/dist/components/core/Radio/index.d.ts +5 -2
- package/dist/components/core/Radio/radioAnimations.d.ts +26 -4
- package/dist/components/core/Radio/radioContext.d.ts +12 -2
- package/dist/components/core/Radio/radioParts.d.ts +11 -7
- package/dist/components/core/Radio/radioTypes.d.ts +45 -10
- package/dist/components/core/SearchInput/searchInputContext.d.ts +6 -2
- package/dist/components/core/Select/Select.d.ts +2 -2
- package/dist/components/core/Select/index.d.ts +15 -5
- package/dist/components/core/Select/selectAnimations.d.ts +19 -1
- package/dist/components/core/Select/selectContext.d.ts +6 -2
- package/dist/components/core/Select/selectFieldParts.d.ts +12 -14
- package/dist/components/core/Select/selectParts.d.ts +3 -1
- package/dist/components/core/Select/selectTriggerParts.d.ts +1 -0
- package/dist/components/core/Select/selectTypes.d.ts +27 -3
- package/dist/components/core/SelectionIndicator/SelectionIndicator.d.ts +1 -1
- package/dist/components/core/SelectionIndicator/selectionIndicatorContext.d.ts +6 -2
- package/dist/components/core/SelectionIndicator/selectionIndicatorTypes.d.ts +12 -2
- package/dist/components/core/SelectionThumb/SelectionThumb.d.ts +1 -1
- package/dist/components/core/SelectionThumb/selectionThumbContext.d.ts +6 -2
- package/dist/components/core/SelectionThumb/selectionThumbTypes.d.ts +9 -2
- package/dist/components/core/Separator/Separator.d.ts +2 -1
- package/dist/components/core/Separator/separatorContext.d.ts +6 -2
- package/dist/components/core/Separator/separatorTypes.d.ts +8 -2
- package/dist/components/core/Skeleton/Skeleton.d.ts +2 -1
- package/dist/components/core/Skeleton/index.d.ts +10 -5
- package/dist/components/core/Skeleton/skeletonContext.d.ts +6 -2
- package/dist/components/core/Skeleton/skeletonParts.d.ts +9 -4
- package/dist/components/core/Skeleton/skeletonTypes.d.ts +33 -6
- package/dist/components/core/Slider/Slider.d.ts +2 -2
- package/dist/components/core/Slider/index.d.ts +13 -5
- package/dist/components/core/Slider/sliderAnimations.d.ts +20 -1
- package/dist/components/core/Slider/sliderContext.d.ts +6 -2
- package/dist/components/core/Slider/sliderParts.d.ts +13 -15
- package/dist/components/core/Slider/sliderScaleField.d.ts +4 -6
- package/dist/components/core/Slider/sliderThumbParts.d.ts +1 -1
- package/dist/components/core/Slider/sliderTypes.d.ts +27 -5
- package/dist/components/core/Slider/useSliderTrackState.d.ts +28 -28
- package/dist/components/core/Surface/Surface.d.ts +2 -1
- package/dist/components/core/Surface/surfaceContext.d.ts +6 -2
- package/dist/components/core/Surface/surfaceTypes.d.ts +8 -2
- package/dist/components/core/Switch/Switch.d.ts +2 -1
- package/dist/components/core/Switch/index.d.ts +3 -1
- package/dist/components/core/Switch/switchAnimations.d.ts +12 -1
- package/dist/components/core/Switch/switchContext.d.ts +6 -2
- package/dist/components/core/Switch/switchControlParts.d.ts +1 -0
- package/dist/components/core/Switch/switchFieldParts.d.ts +3 -3
- package/dist/components/core/Switch/switchTrackParts.d.ts +1 -1
- package/dist/components/core/Switch/switchTypes.d.ts +50 -7
- package/dist/components/core/Switch/useSwitchRootState.d.ts +17 -17
- package/dist/components/core/Table/Table.d.ts +5 -4
- package/dist/components/core/Table/index.d.ts +14 -4
- package/dist/components/core/Table/tableAPI.d.ts +3 -1
- package/dist/components/core/Table/tableAnimations.d.ts +3 -3
- package/dist/components/core/Table/tableContext.d.ts +6 -2
- package/dist/components/core/Table/tableParts.d.ts +12 -3
- package/dist/components/core/Table/tableTypes.d.ts +30 -8
- package/dist/components/core/Tabs/Tabs.d.ts +2 -1
- package/dist/components/core/Tabs/index.d.ts +4 -1
- package/dist/components/core/Tabs/tabsAnimations.d.ts +3 -2
- package/dist/components/core/Tabs/tabsContext.d.ts +6 -2
- package/dist/components/core/Tabs/tabsPanelPart.d.ts +1 -0
- package/dist/components/core/Tabs/tabsTabPart.d.ts +1 -0
- package/dist/components/core/Tabs/tabsTypes.d.ts +19 -2
- package/dist/components/core/Text/Text.d.ts +2 -1
- package/dist/components/core/Text/textContext.d.ts +6 -2
- package/dist/components/core/Text/textTypes.d.ts +8 -2
- package/dist/components/core/TextArea/TextArea.d.ts +2 -2
- package/dist/components/core/TextArea/index.d.ts +15 -5
- package/dist/components/core/TextArea/textAreaAnimations.d.ts +19 -1
- package/dist/components/core/TextArea/textAreaContext.d.ts +6 -2
- package/dist/components/core/TextArea/textAreaParts.d.ts +14 -14
- package/dist/components/core/TextArea/textAreaTypes.d.ts +29 -3
- package/dist/components/core/TimeField/TimeField.d.ts +2 -2
- package/dist/components/core/TimeField/index.d.ts +14 -5
- package/dist/components/core/TimeField/timeFieldAnimations.d.ts +20 -2
- package/dist/components/core/TimeField/timeFieldContext.d.ts +6 -2
- package/dist/components/core/TimeField/timeFieldParts.d.ts +13 -14
- package/dist/components/core/TimeField/timeFieldTypes.d.ts +28 -4
- package/dist/components/core/Toast/Toast.d.ts +2 -1
- package/dist/components/core/Toast/index.d.ts +2 -1
- package/dist/components/core/Toast/toastAnimations.d.ts +2 -1
- package/dist/components/core/Toast/toastContext.d.ts +6 -2
- package/dist/components/core/Toast/toastTypes.d.ts +26 -9
- package/dist/components/core/ToggleButton/ToggleButton.d.ts +2 -1
- package/dist/components/core/ToggleButton/index.d.ts +2 -1
- package/dist/components/core/ToggleButton/toggleButtonContext.d.ts +6 -2
- package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +8 -2
- package/dist/components/core/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/core/Tooltip/index.d.ts +3 -2
- package/dist/components/core/Tooltip/tooltipAnimations.d.ts +1 -0
- package/dist/components/core/Tooltip/tooltipContext.d.ts +6 -2
- package/dist/components/core/Tooltip/tooltipParts.d.ts +7 -6
- package/dist/components/core/Tooltip/tooltipTypes.d.ts +34 -7
- package/dist/components/core/Tooltip/useTooltipRootState.d.ts +2 -2
- package/dist/components/core/utils/motionConfig.d.ts +4 -4
- package/dist/components/core/utils/optionListItemParts.d.ts +4 -2
- package/dist/components/core/utils/overlayTriggerSqueeze.d.ts +39 -0
- package/dist/components/core/utils/slotMotion/createMotionScope.d.ts +18 -4
- package/dist/components/core/utils/slotMotion/enterHidesFirstPaint.d.ts +3 -7
- package/dist/components/core/utils/slotMotion/index.d.ts +7 -2
- package/dist/components/core/utils/slotMotion/kitMotionRecipeMeta.d.ts +8 -0
- package/dist/components/core/utils/slotMotion/motionController.d.ts +20 -0
- package/dist/components/core/utils/slotMotion/motionController.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/motionControllerApi.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/motionControllerTypes.d.ts +49 -0
- package/dist/components/core/utils/slotMotion/motionEvents.d.ts +67 -0
- package/dist/components/core/utils/slotMotion/motionEvents.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/motionRecipeRegistry.d.ts +6 -2
- package/dist/components/core/utils/slotMotion/motionTween.d.ts +49 -0
- package/dist/components/core/utils/slotMotion/motionTween.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/playMotionState.d.ts +29 -0
- package/dist/components/core/utils/slotMotion/playMotionState.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/recipes/collapsibleHeight.d.ts +1 -1
- package/dist/components/core/utils/slotMotion/recipes/progressFill.d.ts +9 -0
- package/dist/components/core/utils/slotMotion/recipes/progressFill.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/runMotionPhase.d.ts +5 -2
- package/dist/components/core/utils/slotMotion/slotMotionTypes.d.ts +115 -9
- package/dist/components/core/utils/slotMotion/useBarFillMotion.d.ts +21 -0
- package/dist/components/core/utils/slotMotion/useMotionPart.d.ts +5 -5
- package/dist/components/core/utils/useCollapsibleHeight.d.ts +9 -1
- package/dist/components/core/utils/useContainerPointerHoverHandlers.d.ts +5 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +31 -31
- package/dist/index.js +20166 -16841
- package/dist/internal.js +1 -1
- package/dist/{themeRuntimeContext-B1dAP9WW.js → themeRuntimeContext-DCicI7AC.js} +48 -48
- package/dist/ui.css +43 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, HTMLAttributes, LiHTMLAttributes, OlHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { IconBaseProps } from 'react-icons';
|
|
3
3
|
import { Prettify } from '../../../utils/prettify';
|
|
4
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
4
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
5
5
|
export type PaginationClassNames = {
|
|
6
6
|
/** Root `<nav>`. */
|
|
7
7
|
root?: string;
|
|
@@ -39,9 +39,17 @@ export type PaginationPartMotion = {
|
|
|
39
39
|
hoverOut?: MotionValue;
|
|
40
40
|
pressIn?: MotionValue;
|
|
41
41
|
pressOut?: MotionValue;
|
|
42
|
+
enter?: MotionValue;
|
|
43
|
+
};
|
|
44
|
+
export type PaginationSummaryPartMotion = PaginationPartMotion & {
|
|
45
|
+
change?: MotionValue;
|
|
42
46
|
};
|
|
43
47
|
export type PaginationMotion = {
|
|
44
48
|
control?: PaginationPartMotion;
|
|
49
|
+
previousIcon?: PaginationPartMotion;
|
|
50
|
+
nextIcon?: PaginationPartMotion;
|
|
51
|
+
summary?: PaginationSummaryPartMotion;
|
|
52
|
+
ellipsis?: PaginationPartMotion;
|
|
45
53
|
};
|
|
46
54
|
export type PaginationContextValue = {
|
|
47
55
|
page?: number;
|
|
@@ -57,29 +65,59 @@ export type PaginationProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
|
57
65
|
onPageChange?: (page: number) => void;
|
|
58
66
|
siblingCount?: number;
|
|
59
67
|
classNames?: Prettify<PaginationClassNames>;
|
|
60
|
-
|
|
68
|
+
/**
|
|
69
|
+
* Per-slot motion (`control`, `previousIcon`, `nextIcon`, `summary`, `ellipsis`).
|
|
70
|
+
* `Pagination.Content` / `Item` / `Page` are not separate slots (`control` covers buttons).
|
|
71
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
72
|
+
* There is no `root` slot — `play()` skips; use `playSlot("summary")` / `playAll`.
|
|
73
|
+
*/
|
|
74
|
+
motion?: Prettify<MotionMapWithEvents<PaginationMotion>>;
|
|
75
|
+
/**
|
|
76
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
77
|
+
* One handle → this pagination chrome scope (`summary` / `ellipsis`).
|
|
78
|
+
* Nested Previous / Next / Page are separate scopes — pass a handle there.
|
|
79
|
+
* FLIP on `<ol>` is kit-internal. Not placed on the DOM.
|
|
80
|
+
*/
|
|
81
|
+
motionController?: MotionController;
|
|
61
82
|
};
|
|
62
83
|
export type PaginationClassNamesProviderProps = {
|
|
63
84
|
classNames?: Prettify<PaginationClassNames>;
|
|
64
85
|
children: ReactNode;
|
|
65
86
|
};
|
|
66
87
|
export type UsePaginationRootStateProps = Omit<PaginationProps, "className" | "classNames" | "children">;
|
|
67
|
-
export type PaginationSummaryProps = HTMLAttributes<HTMLDivElement
|
|
88
|
+
export type PaginationSummaryProps = HTMLAttributes<HTMLDivElement> & {
|
|
89
|
+
motion?: Prettify<PaginationSummaryPartMotion>;
|
|
90
|
+
};
|
|
68
91
|
export type PaginationContentProps = OlHTMLAttributes<HTMLOListElement>;
|
|
69
92
|
export type PaginationItemProps = LiHTMLAttributes<HTMLLIElement>;
|
|
70
93
|
export type PaginationNavButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
71
94
|
motion?: Prettify<PaginationPartMotion>;
|
|
95
|
+
/**
|
|
96
|
+
* Handle for this control's nested scope. `play()` looks for `root` (skip) —
|
|
97
|
+
* use `playSlot("control")`. Icons live here.
|
|
98
|
+
*/
|
|
99
|
+
motionController?: MotionController;
|
|
72
100
|
};
|
|
73
101
|
export type PaginationPageProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
74
102
|
page: number;
|
|
75
103
|
active?: boolean;
|
|
76
104
|
children?: ReactNode;
|
|
77
105
|
motion?: Prettify<PaginationPartMotion>;
|
|
106
|
+
/**
|
|
107
|
+
* Handle for this page button's nested scope. `play()` looks for `root` (skip) —
|
|
108
|
+
* use `playSlot("control")`. Active page is a `<span>` (no control scope).
|
|
109
|
+
*/
|
|
110
|
+
motionController?: MotionController;
|
|
111
|
+
};
|
|
112
|
+
export type PaginationEllipsisProps = HTMLAttributes<HTMLSpanElement> & {
|
|
113
|
+
motion?: Prettify<PaginationPartMotion>;
|
|
78
114
|
};
|
|
79
|
-
export type PaginationEllipsisProps = HTMLAttributes<HTMLSpanElement>;
|
|
80
115
|
export type PaginationPagesProps = Record<string, never>;
|
|
81
116
|
export type PaginationInteractiveProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
82
117
|
children: ReactNode;
|
|
83
118
|
motion?: Prettify<PaginationPartMotion>;
|
|
119
|
+
motionController?: MotionController;
|
|
120
|
+
};
|
|
121
|
+
export type PaginationIconProps = IconBaseProps & {
|
|
122
|
+
motion?: Prettify<PaginationPartMotion>;
|
|
84
123
|
};
|
|
85
|
-
export type PaginationIconProps = IconBaseProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PopoverProps } from './popoverTypes';
|
|
2
2
|
export type { PopoverArrowProps, PopoverBodyProps, PopoverClassNames, PopoverContentGap, PopoverContentProps, PopoverHeaderProps, PopoverDescriptionProps, PopoverTitleProps, PopoverProps, PopoverSide, PopoverSize, PopoverTriggerProps, PopoverVariant, PopoverMotion, PopoverLifecycleMotion, PopoverPartMotion, } from './popoverTypes';
|
|
3
3
|
export { PopoverArrow, PopoverBody, PopoverContent, PopoverHeader, PopoverDescription, PopoverTitle, PopoverTrigger, } from './popoverParts';
|
|
4
|
-
export declare function PopoverRoot({ children, classNames, size, variant, side, open, defaultOpen, onOpenChange, anchorRef, shouldDismiss, portalContainer, motion, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function PopoverRoot({ children, classNames, size, variant, side, open, defaultOpen, onOpenChange, anchorRef, shouldDismiss, portalContainer, motion, motionController, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare namespace PopoverRoot {
|
|
6
6
|
var displayName: string;
|
|
7
7
|
}
|
|
@@ -2,6 +2,7 @@ import { PopoverRoot } from './Popover';
|
|
|
2
2
|
export declare const Popover: typeof PopoverRoot & {
|
|
3
3
|
Trigger: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLButtonElement> & {
|
|
4
4
|
asChild?: boolean;
|
|
5
|
+
motion?: import('../../..').Prettify<import('./popoverTypes').PopoverPartMotion>;
|
|
5
6
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
6
7
|
Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
7
8
|
showArrow?: boolean;
|
|
@@ -12,9 +13,12 @@ export declare const Popover: typeof PopoverRoot & {
|
|
|
12
13
|
unstyled?: boolean;
|
|
13
14
|
contentRole?: "dialog" | undefined;
|
|
14
15
|
portalContainer?: HTMLElement | null;
|
|
15
|
-
motion?: import('../../..').Prettify<import('./popoverTypes').PopoverMotion
|
|
16
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./popoverTypes').PopoverMotion>>;
|
|
17
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
18
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
19
|
+
Header: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
20
|
+
motion?: import('../../..').Prettify<import('./popoverTypes').PopoverLifecycleMotion>;
|
|
16
21
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
|
-
Header: import('react').ForwardRefExoticComponent<import('./popoverTypes').PopoverHeaderProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
18
22
|
Title: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLHeadingElement> & {
|
|
19
23
|
motion?: import('../../..').Prettify<import('./popoverTypes').PopoverPartMotion>;
|
|
20
24
|
} & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
@@ -24,7 +28,9 @@ export declare const Popover: typeof PopoverRoot & {
|
|
|
24
28
|
Body: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
25
29
|
motion?: import('../../..').Prettify<import('./popoverTypes').PopoverLifecycleMotion>;
|
|
26
30
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
27
|
-
Arrow: import('react').ForwardRefExoticComponent<import('
|
|
31
|
+
Arrow: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
32
|
+
motion?: import('../../..').Prettify<import('./popoverTypes').PopoverPartMotion>;
|
|
33
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
28
34
|
};
|
|
29
35
|
export type { PopoverProps, PopoverTriggerProps, PopoverContentProps, PopoverHeaderProps, PopoverTitleProps, PopoverDescriptionProps, PopoverBodyProps, PopoverArrowProps, PopoverSide, PopoverSize, PopoverVariant, PopoverContentGap, PopoverClassNames, PopoverMotion, PopoverLifecycleMotion, PopoverPartMotion, } from './Popover';
|
|
30
36
|
export type { FloatingAlign, FloatingAlign as PopoverAlign } from '../Tooltip/tooltipPosition';
|
|
@@ -20,9 +20,13 @@ export declare function usePopoverContentChrome(): {
|
|
|
20
20
|
unstyled: boolean;
|
|
21
21
|
};
|
|
22
22
|
/** Scope only. Defaults and host play live in `popoverAnimations.ts`. */
|
|
23
|
-
export declare const PopoverMotionProvider: ({ motion, defaults, params, children, }: {
|
|
24
|
-
motion?: import('../utils/slotMotion').
|
|
23
|
+
export declare const PopoverMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
24
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
25
25
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
26
26
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
27
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
28
|
+
motionState?: string;
|
|
29
|
+
motionPayload?: unknown;
|
|
30
|
+
playInitialState?: boolean;
|
|
27
31
|
children: ReactNode;
|
|
28
32
|
}) => import("react/jsx-runtime").JSX.Element, usePopoverMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalPopoverMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { PopoverArrowProps, PopoverHeaderProps } from './popoverTypes';
|
|
2
1
|
export declare const PopoverTrigger: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLButtonElement> & {
|
|
3
2
|
asChild?: boolean;
|
|
3
|
+
motion?: import('../../..').Prettify<import('./popoverTypes').PopoverPartMotion>;
|
|
4
4
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
5
|
-
export declare const PopoverArrow: import('react').ForwardRefExoticComponent<
|
|
6
|
-
|
|
5
|
+
export declare const PopoverArrow: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
6
|
+
motion?: import('../../..').Prettify<import('./popoverTypes').PopoverPartMotion>;
|
|
7
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
export declare const PopoverHeader: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
9
|
+
motion?: import('../../..').Prettify<import('./popoverTypes').PopoverLifecycleMotion>;
|
|
10
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
11
|
export declare const PopoverTitle: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLHeadingElement> & {
|
|
8
12
|
motion?: import('../../..').Prettify<import('./popoverTypes').PopoverPartMotion>;
|
|
9
13
|
} & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
@@ -22,5 +26,6 @@ export declare const PopoverContent: import('react').ForwardRefExoticComponent<i
|
|
|
22
26
|
unstyled?: boolean;
|
|
23
27
|
contentRole?: "dialog" | undefined;
|
|
24
28
|
portalContainer?: HTMLElement | null;
|
|
25
|
-
motion?: import('../../..').Prettify<import('./popoverTypes').PopoverMotion
|
|
29
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./popoverTypes').PopoverMotion>>;
|
|
30
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
26
31
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FieldHintProps } from '../Field';
|
|
2
2
|
import { FloatingAlign, TooltipSide } from '../Tooltip/tooltipPosition';
|
|
3
3
|
import { PanelSize } from '../utils/sizeLayout';
|
|
4
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
4
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
5
5
|
import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
6
6
|
import { Prettify } from '../../../utils/prettify';
|
|
7
7
|
export type PopoverSide = TooltipSide;
|
|
@@ -30,12 +30,27 @@ export type PopoverLifecycleMotion = {
|
|
|
30
30
|
export type PopoverPartMotion = PopoverLifecycleMotion & {
|
|
31
31
|
hoverIn?: MotionValue;
|
|
32
32
|
hoverOut?: MotionValue;
|
|
33
|
+
pressIn?: MotionValue;
|
|
34
|
+
pressOut?: MotionValue;
|
|
33
35
|
};
|
|
34
36
|
export type PopoverMotion = {
|
|
35
|
-
content?:
|
|
37
|
+
content?: PopoverPartMotion;
|
|
38
|
+
header?: PopoverLifecycleMotion;
|
|
36
39
|
title?: PopoverPartMotion;
|
|
37
40
|
description?: PopoverPartMotion;
|
|
38
41
|
body?: PopoverLifecycleMotion;
|
|
42
|
+
/** Repeated menu rows when Popover hosts Dropdown (or similar). */
|
|
43
|
+
item?: PopoverLifecycleMotion;
|
|
44
|
+
itemLabel?: PopoverPartMotion;
|
|
45
|
+
itemHint?: PopoverPartMotion;
|
|
46
|
+
itemIcon?: PopoverPartMotion;
|
|
47
|
+
/** Dropdown.Label / Dropdown.SubTrigger / Dropdown.Separator when Popover hosts the menu. */
|
|
48
|
+
label?: PopoverPartMotion;
|
|
49
|
+
subTrigger?: PopoverPartMotion;
|
|
50
|
+
separator?: PopoverPartMotion;
|
|
51
|
+
arrow?: PopoverPartMotion;
|
|
52
|
+
/** Open squeeze on `Popover.Trigger` (Root scope — outside Content). */
|
|
53
|
+
trigger?: PopoverPartMotion;
|
|
39
54
|
};
|
|
40
55
|
export type PopoverContextValue = {
|
|
41
56
|
open: boolean;
|
|
@@ -68,22 +83,34 @@ export type PopoverProps = {
|
|
|
68
83
|
portalContainer?: HTMLElement | null;
|
|
69
84
|
classNames?: Prettify<PopoverClassNames>;
|
|
70
85
|
/**
|
|
71
|
-
* Per-slot motion
|
|
72
|
-
*
|
|
86
|
+
* Per-slot motion (`content`, `header`, `title`, `description`, `body`, `arrow`, `trigger`, plus Dropdown pass-through).
|
|
87
|
+
* Root has no portal DOM — the host is `Popover.Content`. Trigger lives on Root.
|
|
88
|
+
* Default: `content.enter/leave` → `portalSurfaceEnter` / `portalSurfaceLeave`; `trigger.pressIn` → `pressSqueeze`.
|
|
89
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
73
90
|
*/
|
|
74
|
-
motion?: Prettify<PopoverMotion
|
|
91
|
+
motion?: Prettify<MotionMapWithEvents<PopoverMotion>>;
|
|
92
|
+
/**
|
|
93
|
+
* Handle for the Root trigger scope (`trigger`). Portal slots need a separate handle on `Popover.Content`.
|
|
94
|
+
* Not placed on the DOM.
|
|
95
|
+
*/
|
|
96
|
+
motionController?: MotionController;
|
|
75
97
|
};
|
|
76
98
|
export type PopoverClassNamesProviderProps = {
|
|
77
99
|
classNames?: Prettify<PopoverClassNames>;
|
|
78
100
|
children: ReactNode;
|
|
79
101
|
};
|
|
80
|
-
export type UsePopoverRootStateProps = Omit<PopoverProps, "classNames" | "motion">;
|
|
102
|
+
export type UsePopoverRootStateProps = Omit<PopoverProps, "classNames" | "motion" | "motionController">;
|
|
81
103
|
export type PopoverTriggerProps = HTMLAttributes<HTMLButtonElement> & {
|
|
82
104
|
/** Merge props onto the single child (Button, etc.) instead of rendering a `<button>` wrapper. */
|
|
83
105
|
asChild?: boolean;
|
|
106
|
+
motion?: Prettify<PopoverPartMotion>;
|
|
107
|
+
};
|
|
108
|
+
export type PopoverArrowProps = HTMLAttributes<HTMLSpanElement> & {
|
|
109
|
+
motion?: Prettify<PopoverPartMotion>;
|
|
110
|
+
};
|
|
111
|
+
export type PopoverHeaderProps = HTMLAttributes<HTMLDivElement> & {
|
|
112
|
+
motion?: Prettify<PopoverLifecycleMotion>;
|
|
84
113
|
};
|
|
85
|
-
export type PopoverArrowProps = HTMLAttributes<HTMLSpanElement>;
|
|
86
|
-
export type PopoverHeaderProps = HTMLAttributes<HTMLDivElement>;
|
|
87
114
|
export type PopoverTitleProps = HTMLAttributes<HTMLHeadingElement> & {
|
|
88
115
|
motion?: Prettify<PopoverPartMotion>;
|
|
89
116
|
};
|
|
@@ -103,7 +130,12 @@ export type PopoverContentProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
103
130
|
contentRole?: "dialog" | undefined;
|
|
104
131
|
/** Overrides Root `portalContainer`. Default: `document.body`. */
|
|
105
132
|
portalContainer?: HTMLElement | null;
|
|
106
|
-
motion?: Prettify<PopoverMotion
|
|
133
|
+
motion?: Prettify<MotionMapWithEvents<PopoverMotion>>;
|
|
134
|
+
/**
|
|
135
|
+
* Handle for the portal host (`content`, chrome). `play()` skips — there is no `root`.
|
|
136
|
+
* Use `playSlot("content")`. Not placed on the DOM.
|
|
137
|
+
*/
|
|
138
|
+
motionController?: MotionController;
|
|
107
139
|
};
|
|
108
140
|
export type UsePopoverContentLifecycleProps = {
|
|
109
141
|
open: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ProgressBarProps } from './progressBarTypes';
|
|
2
|
-
export type { ProgressBarClassNames, ProgressBarErrorProps, ProgressBarHeaderProps, ProgressBarHintProps, ProgressBarOrientation, ProgressBarProps, ProgressBarSize, ProgressBarTrackProps, ProgressBarValueProps, ProgressBarMotion, ProgressBarPartMotion, } from './progressBarTypes';
|
|
2
|
+
export type { ProgressBarClassNames, ProgressBarErrorProps, ProgressBarHeaderProps, ProgressBarHintProps, ProgressBarLabelProps, ProgressBarOrientation, ProgressBarProps, ProgressBarSize, ProgressBarTrackProps, ProgressBarValueProps, ProgressBarMotion, ProgressBarPartMotion, } from './progressBarTypes';
|
|
3
3
|
export { ProgressBarError, ProgressBarHeader, ProgressBarHint, ProgressBarLabel, ProgressBarSimpleBody, ProgressBarTrack, ProgressBarValue, } from './progressBarParts';
|
|
4
4
|
export { useProgressBarFieldContext, useOptionalProgressBarFieldContext, } from './progressBarContext';
|
|
5
|
-
export declare function ProgressBarRoot({ children, className, classNames, id, orientation, label, showValue, valueText, hint, error, value, indeterminate, min, max, size, thickness, color, formatValue, motion, ...divRest }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function ProgressBarRoot({ children, className, classNames, id, orientation, label, showValue, valueText, hint, error, value, indeterminate, min, max, size, thickness, color, formatValue, motion, motionController, ...divRest }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare namespace ProgressBarRoot {
|
|
7
7
|
var displayName: string;
|
|
8
8
|
}
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProgressBarHeader, ProgressBarRoot, ProgressBarValue } from './ProgressBar';
|
|
2
2
|
export declare const ProgressBar: typeof ProgressBarRoot & {
|
|
3
3
|
Header: typeof ProgressBarHeader;
|
|
4
|
-
Label:
|
|
4
|
+
Label: import('react').ForwardRefExoticComponent<Omit<import('../Label').LabelProps, "motion"> & {
|
|
5
|
+
motion?: import('../../..').Prettify<import('./progressBarTypes').ProgressBarPartMotion>;
|
|
6
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
5
7
|
Value: typeof ProgressBarValue;
|
|
6
|
-
Hint:
|
|
7
|
-
|
|
8
|
+
Hint: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
9
|
+
children?: import('react').ReactNode;
|
|
10
|
+
motion?: import('../../..').Prettify<import('./progressBarTypes').ProgressBarPartMotion>;
|
|
11
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
12
|
+
Error: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
13
|
+
children?: import('react').ReactNode;
|
|
14
|
+
motion?: import('../../..').Prettify<import('./progressBarTypes').ProgressBarPartMotion>;
|
|
15
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
8
16
|
Track: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
9
17
|
value?: number;
|
|
10
18
|
indeterminate?: boolean;
|
|
@@ -17,10 +25,11 @@ export declare const ProgressBar: typeof ProgressBarRoot & {
|
|
|
17
25
|
orientation?: import('./progressBarTypes').ProgressBarOrientation;
|
|
18
26
|
className?: string;
|
|
19
27
|
motion?: import('../../..').Prettify<import('./progressBarTypes').ProgressBarPartMotion>;
|
|
28
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
20
29
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
21
30
|
};
|
|
22
31
|
export type { ProgressBarTrackProps, ProgressBarSize, ProgressBarOrientation, ProgressBarClassNames, } from './ProgressBar';
|
|
23
32
|
export type { ProgressBarMotion, ProgressBarPartMotion, } from './progressBarTypes';
|
|
24
|
-
export type { ProgressBarProps, ProgressBarHeaderProps, ProgressBarValueProps, ProgressBarHintProps, ProgressBarErrorProps, } from './ProgressBar';
|
|
33
|
+
export type { ProgressBarProps, ProgressBarHeaderProps, ProgressBarValueProps, ProgressBarHintProps, ProgressBarErrorProps, ProgressBarLabelProps, } from './ProgressBar';
|
|
25
34
|
export { useProgressBarFieldContext, useOptionalProgressBarFieldContext, } from './ProgressBar';
|
|
26
35
|
export type { ProgressBarDisplayState, ProgressBarFieldContextValue, } from './progressBarTypes';
|
|
@@ -1,8 +1,36 @@
|
|
|
1
|
+
import { ForwardedRef, PointerEventHandler, RefObject } from 'react';
|
|
1
2
|
import { MotionScopeValue } from '../utils/slotMotion';
|
|
2
|
-
import {
|
|
3
|
-
|
|
3
|
+
import { progressScaleFromPercent } from '../utils/slotMotion/recipes/progressFill';
|
|
4
|
+
import { ProgressBarMotion, ProgressBarPartMotion } from './progressBarTypes';
|
|
5
|
+
export { progressScaleFromPercent };
|
|
6
|
+
export declare function resolveProgressBarMotionDefaults({ indeterminate, }?: {
|
|
7
|
+
indeterminate?: boolean;
|
|
8
|
+
}): ProgressBarMotion;
|
|
4
9
|
export declare function useProgressBarTrackSlotMotion(scope: MotionScopeValue | null, identity: string): void;
|
|
5
|
-
export declare function
|
|
6
|
-
|
|
10
|
+
export declare function useProgressBarFillMotion({ scope, percent, isHorizontal, indeterminate, fillRef, }: {
|
|
11
|
+
scope: MotionScopeValue | null;
|
|
12
|
+
percent: number;
|
|
13
|
+
isHorizontal: boolean;
|
|
14
|
+
indeterminate: boolean;
|
|
15
|
+
fillRef: RefObject<HTMLSpanElement | null>;
|
|
16
|
+
}): {
|
|
7
17
|
reduceMotion: boolean;
|
|
8
18
|
};
|
|
19
|
+
export type ProgressBarChromeSlot = "label" | "hint" | "error";
|
|
20
|
+
export declare function useProgressBarChromeSlot(slot: ProgressBarChromeSlot, { motion, forwardedRef, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }?: {
|
|
21
|
+
motion?: ProgressBarPartMotion;
|
|
22
|
+
forwardedRef?: ForwardedRef<HTMLElement>;
|
|
23
|
+
onPointerOver?: PointerEventHandler<HTMLElement>;
|
|
24
|
+
onPointerOut?: PointerEventHandler<HTMLElement>;
|
|
25
|
+
onPointerDown?: PointerEventHandler<HTMLElement>;
|
|
26
|
+
onPointerUp?: PointerEventHandler<HTMLElement>;
|
|
27
|
+
}): {
|
|
28
|
+
setRef: (node: HTMLElement | null) => void;
|
|
29
|
+
targetRef: RefObject<HTMLElement | null>;
|
|
30
|
+
pointerHandlers: {
|
|
31
|
+
onPointerOver: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
32
|
+
onPointerOut: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
33
|
+
onPointerDown: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
34
|
+
onPointerUp: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -8,11 +8,15 @@ export declare function ProgressBarClassNamesProvider({ classNames, children, }:
|
|
|
8
8
|
export declare function useProgressBarFieldContext(): ProgressBarFieldContextValue;
|
|
9
9
|
export declare function useOptionalProgressBarFieldContext(): ProgressBarFieldContextValue | null;
|
|
10
10
|
export declare function useProgressBarClassNames(): ProgressBarClassNames;
|
|
11
|
-
/** Scope only. Defaults
|
|
12
|
-
export declare const ProgressBarMotionProvider: ({ motion, defaults, params, children, }: {
|
|
13
|
-
motion?: import('../utils/slotMotion').
|
|
11
|
+
/** Scope only. Defaults + params + fill play live on Track (nested provider). */
|
|
12
|
+
export declare const ProgressBarMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
13
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
14
14
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
15
15
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
16
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
17
|
+
motionState?: string;
|
|
18
|
+
motionPayload?: unknown;
|
|
19
|
+
playInitialState?: boolean;
|
|
16
20
|
children: import('react').ReactNode;
|
|
17
21
|
}) => import("react/jsx-runtime").JSX.Element, useProgressBarMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalProgressBarMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
18
22
|
export { ProgressBarFieldContext };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ProgressBarErrorProps, ProgressBarHeaderProps, ProgressBarHintProps, ProgressBarSimpleBodyProps, ProgressBarValueProps } from './progressBarTypes';
|
|
1
|
+
import { ProgressBarHeaderProps, ProgressBarSimpleBodyProps, ProgressBarValueProps } from './progressBarTypes';
|
|
3
2
|
export declare function ProgressBarSimpleBody({ label, showValue, valueText, hint, error, trackProps, }: ProgressBarSimpleBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
3
|
+
export declare const ProgressBarLabel: import('react').ForwardRefExoticComponent<Omit<import('../Label').LabelProps, "motion"> & {
|
|
4
|
+
motion?: import('../../..').Prettify<import('./progressBarTypes').ProgressBarPartMotion>;
|
|
5
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
8
6
|
export declare function ProgressBarHeader({ children, className, motion, ...rest }: ProgressBarHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
7
|
export declare namespace ProgressBarHeader {
|
|
10
8
|
var displayName: string;
|
|
@@ -13,14 +11,14 @@ export declare function ProgressBarValue({ children, className, motion, ...rest
|
|
|
13
11
|
export declare namespace ProgressBarValue {
|
|
14
12
|
var displayName: string;
|
|
15
13
|
}
|
|
16
|
-
export declare
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
export declare
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
14
|
+
export declare const ProgressBarHint: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
15
|
+
children?: import('react').ReactNode;
|
|
16
|
+
motion?: import('../../..').Prettify<import('./progressBarTypes').ProgressBarPartMotion>;
|
|
17
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
18
|
+
export declare const ProgressBarError: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
19
|
+
children?: import('react').ReactNode;
|
|
20
|
+
motion?: import('../../..').Prettify<import('./progressBarTypes').ProgressBarPartMotion>;
|
|
21
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
24
22
|
export declare const ProgressBarTrack: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
25
23
|
value?: number;
|
|
26
24
|
indeterminate?: boolean;
|
|
@@ -33,4 +31,5 @@ export declare const ProgressBarTrack: import('react').ForwardRefExoticComponent
|
|
|
33
31
|
orientation?: import('./progressBarTypes').ProgressBarOrientation;
|
|
34
32
|
className?: string;
|
|
35
33
|
motion?: import('../../..').Prettify<import('./progressBarTypes').ProgressBarPartMotion>;
|
|
34
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
36
35
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
|
-
import {
|
|
3
|
+
import { LabelProps } from '../Label';
|
|
4
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
4
5
|
export type ProgressBarSize = "small" | "base" | "mid" | "large";
|
|
5
6
|
export type ProgressBarOrientation = "horizontal" | "vertical";
|
|
6
7
|
export type ProgressBarClassNames = {
|
|
@@ -21,7 +22,11 @@ export type ProgressBarPartMotion = {
|
|
|
21
22
|
pressOut?: MotionValue;
|
|
22
23
|
enter?: MotionValue;
|
|
23
24
|
leave?: MotionValue;
|
|
24
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* `track`: value / indeterminate identity.
|
|
27
|
+
* `fill`: determinate `progressFill` (scale) or `progressIndeterminate`.
|
|
28
|
+
* Opt-in `fill.enter` — first paint at 0, then fill to `getProgressScale()`.
|
|
29
|
+
*/
|
|
25
30
|
change?: MotionValue;
|
|
26
31
|
};
|
|
27
32
|
export type ProgressBarMotion = {
|
|
@@ -29,6 +34,9 @@ export type ProgressBarMotion = {
|
|
|
29
34
|
fill?: ProgressBarPartMotion;
|
|
30
35
|
header?: ProgressBarPartMotion;
|
|
31
36
|
value?: ProgressBarPartMotion;
|
|
37
|
+
label?: ProgressBarPartMotion;
|
|
38
|
+
hint?: ProgressBarPartMotion;
|
|
39
|
+
error?: ProgressBarPartMotion;
|
|
32
40
|
};
|
|
33
41
|
export type ProgressBarDisplayState = {
|
|
34
42
|
clampedValue: number;
|
|
@@ -59,6 +67,11 @@ export type ProgressBarTrackProps = Omit<HTMLAttributes<HTMLDivElement>, "childr
|
|
|
59
67
|
orientation?: ProgressBarOrientation;
|
|
60
68
|
className?: string;
|
|
61
69
|
motion?: Prettify<ProgressBarPartMotion>;
|
|
70
|
+
/**
|
|
71
|
+
* Deferred handle for the Track fill host (`track`, `fill`). One handle → this nested scope.
|
|
72
|
+
* Simple API: pass `motionController` on `ProgressBar` — it is forwarded here.
|
|
73
|
+
*/
|
|
74
|
+
motionController?: MotionController;
|
|
62
75
|
};
|
|
63
76
|
export type ProgressBarProps = HTMLAttributes<HTMLDivElement> & Partial<Omit<ProgressBarTrackProps, "motion">> & {
|
|
64
77
|
children?: ReactNode;
|
|
@@ -71,10 +84,21 @@ export type ProgressBarProps = HTMLAttributes<HTMLDivElement> & Partial<Omit<Pro
|
|
|
71
84
|
error?: ReactNode;
|
|
72
85
|
classNames?: Prettify<ProgressBarClassNames>;
|
|
73
86
|
/**
|
|
74
|
-
* Per-slot motion (`track`, `fill`, `header`, `value`).
|
|
75
|
-
* Fill
|
|
87
|
+
* Per-slot motion (`track`, `fill`, `header`, `value`, `label`, `hint`, `error`).
|
|
88
|
+
* Fill `change` defaults to `progressFill` / `progressIndeterminate`.
|
|
89
|
+
* `fill.enter` is opt-in (`"progressFill"` or a factory with `ctx.params.getProgressScale`).
|
|
90
|
+
* Chrome registers on the Root scope (siblings of Track). Track is the nested fill host.
|
|
91
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
92
|
+
* Simple API: `motionController` is forwarded to `ProgressBar.Track` (fill host).
|
|
93
|
+
* Compound: this handle attaches to the Root chrome scope; pass another handle on `Track`.
|
|
94
|
+
*/
|
|
95
|
+
motion?: Prettify<MotionMapWithEvents<ProgressBarMotion>>;
|
|
96
|
+
/**
|
|
97
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
98
|
+
* Simple API: forwarded to the Track nested Provider. Compound: Root chrome scope.
|
|
99
|
+
* Not placed on the DOM.
|
|
76
100
|
*/
|
|
77
|
-
|
|
101
|
+
motionController?: MotionController;
|
|
78
102
|
};
|
|
79
103
|
export type ProgressBarClassNamesProviderProps = {
|
|
80
104
|
classNames?: Prettify<ProgressBarClassNames>;
|
|
@@ -88,13 +112,18 @@ export type ProgressBarValueProps = HTMLAttributes<HTMLSpanElement> & {
|
|
|
88
112
|
children?: ReactNode;
|
|
89
113
|
motion?: Prettify<ProgressBarPartMotion>;
|
|
90
114
|
};
|
|
115
|
+
export type ProgressBarLabelProps = Omit<LabelProps, "motion"> & {
|
|
116
|
+
motion?: Prettify<ProgressBarPartMotion>;
|
|
117
|
+
};
|
|
91
118
|
export type ProgressBarHintProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
92
119
|
children?: ReactNode;
|
|
120
|
+
motion?: Prettify<ProgressBarPartMotion>;
|
|
93
121
|
};
|
|
94
122
|
export type ProgressBarErrorProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
95
123
|
children?: ReactNode;
|
|
124
|
+
motion?: Prettify<ProgressBarPartMotion>;
|
|
96
125
|
};
|
|
97
|
-
export type UseProgressBarRootStateProps = Omit<ProgressBarProps, "className" | "classNames" | "motion">;
|
|
126
|
+
export type UseProgressBarRootStateProps = Omit<ProgressBarProps, "className" | "classNames" | "motion" | "motionController">;
|
|
98
127
|
export type UseProgressBarTrackStateProps = Pick<ProgressBarTrackProps, "value" | "indeterminate" | "min" | "max" | "size" | "thickness" | "color" | "formatValue" | "orientation"> & {
|
|
99
128
|
"aria-describedby"?: string;
|
|
100
129
|
};
|
|
@@ -107,12 +136,6 @@ export type ProgressBarTrackAriaProps = {
|
|
|
107
136
|
labelId?: string;
|
|
108
137
|
ariaDescribedBy?: string;
|
|
109
138
|
};
|
|
110
|
-
export type UseProgressBarFillAnimationProps = {
|
|
111
|
-
indeterminate: boolean;
|
|
112
|
-
/** 0–100 progress for determinate fill scale. */
|
|
113
|
-
percent: number;
|
|
114
|
-
isHorizontal: boolean;
|
|
115
|
-
};
|
|
116
139
|
export type ProgressBarSimpleBodyProps = {
|
|
117
140
|
label?: ReactNode;
|
|
118
141
|
showValue?: boolean;
|
|
@@ -9,7 +9,8 @@ export declare const RadioRoot: import('react').ForwardRefExoticComponent<Omit<i
|
|
|
9
9
|
danger?: boolean;
|
|
10
10
|
className?: string;
|
|
11
11
|
classNames?: import('../../..').Prettify<import('./radioTypes').RadioClassNames>;
|
|
12
|
-
motion?: import('../../..').Prettify<import('./radioTypes').RadioMotion
|
|
12
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./radioTypes').RadioMotion>>;
|
|
13
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
13
14
|
onPointerDown?: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
|
|
14
15
|
} & import('react').RefAttributes<HTMLLabelElement>>;
|
|
15
16
|
export { RadioControl, RadioIndicator, RadioContent, RadioLabel, RadioHint, RadioError, } from './radioParts';
|
|
@@ -9,10 +9,13 @@ export declare const Radio: import('react').ForwardRefExoticComponent<Omit<impor
|
|
|
9
9
|
danger?: boolean;
|
|
10
10
|
className?: string;
|
|
11
11
|
classNames?: import('../../..').Prettify<import('./radioTypes').RadioClassNames>;
|
|
12
|
-
motion?: import('../../..').Prettify<import('./radioTypes').RadioMotion
|
|
12
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./radioTypes').RadioMotion>>;
|
|
13
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
13
14
|
onPointerDown?: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
|
|
14
15
|
} & import('react').RefAttributes<HTMLLabelElement>> & {
|
|
15
|
-
Control: import('react').ForwardRefExoticComponent<import('
|
|
16
|
+
Control: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
17
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
18
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
16
19
|
Indicator: typeof RadioIndicator & {
|
|
17
20
|
Fill: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
18
21
|
motion?: import('../../..').Prettify<import('../SelectionIndicator').SelectionIndicatorCheckMotion>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { MotionMapWithEvents } from '../utils/slotMotion';
|
|
1
2
|
import { SelectionIndicatorMotion } from '../SelectionIndicator';
|
|
2
|
-
import { RadioMotion, UseRadioAnimationsProps } from './radioTypes';
|
|
3
|
+
import { RadioCheckMotion, RadioMotion, UseRadioAnimationsProps } from './radioTypes';
|
|
3
4
|
/** Root Radio `motion` keys → SelectionIndicator slots. */
|
|
4
5
|
export declare const RADIO_MOTION_SLOT_MAP: {
|
|
5
6
|
readonly indicator: "root";
|
|
@@ -7,9 +8,9 @@ export declare const RADIO_MOTION_SLOT_MAP: {
|
|
|
7
8
|
readonly indicatorMark: "mark";
|
|
8
9
|
};
|
|
9
10
|
export declare function resolveRadioIndicatorMotion({ rootMotion, indicatorMotion, }: {
|
|
10
|
-
rootMotion?: RadioMotion
|
|
11
|
-
indicatorMotion?: SelectionIndicatorMotion
|
|
12
|
-
}): SelectionIndicatorMotion | undefined;
|
|
11
|
+
rootMotion?: MotionMapWithEvents<RadioMotion>;
|
|
12
|
+
indicatorMotion?: MotionMapWithEvents<SelectionIndicatorMotion>;
|
|
13
|
+
}): MotionMapWithEvents<SelectionIndicatorMotion> | undefined;
|
|
13
14
|
export declare function useRadioControlTrackAnimation(): import('react').RefObject<HTMLSpanElement | null>;
|
|
14
15
|
export declare function useRadioTextMotion({ isDisabled, enableTextMotion, textMotionRef, onPointerDown, onKeyDown, }: UseRadioAnimationsProps): {
|
|
15
16
|
handlePointerEnter: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
|
|
@@ -17,3 +18,24 @@ export declare function useRadioTextMotion({ isDisabled, enableTextMotion, textM
|
|
|
17
18
|
handlePointerDown: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
|
|
18
19
|
handleKeyDown: (e: import('react').KeyboardEvent<HTMLLabelElement>) => void;
|
|
19
20
|
};
|
|
21
|
+
export type RadioChromeSlot = "label" | "hint" | "error";
|
|
22
|
+
export declare function useRadioChromeSlot(slot: RadioChromeSlot, motion?: RadioCheckMotion): {
|
|
23
|
+
setRef: (node: HTMLElement | null) => void;
|
|
24
|
+
targetRef: import('react').RefObject<HTMLElement | null>;
|
|
25
|
+
pointerHandlers: {
|
|
26
|
+
onPointerOver: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
27
|
+
onPointerOut: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
28
|
+
onPointerDown: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
29
|
+
onPointerUp: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare function useRadioLabelSlot(motion?: RadioCheckMotion): {
|
|
33
|
+
setRef: (node: HTMLElement | null) => void;
|
|
34
|
+
targetRef: import('react').RefObject<HTMLElement | null>;
|
|
35
|
+
pointerHandlers: {
|
|
36
|
+
onPointerOver: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
37
|
+
onPointerOut: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
38
|
+
onPointerDown: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
39
|
+
onPointerUp: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
40
|
+
};
|
|
41
|
+
};
|