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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
3
|
import { SelectionIndicatorSize, SelectionIndicatorVariant, SelectionIndicatorClassNames } from '../SelectionIndicator';
|
|
4
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
4
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
5
5
|
export type ListBoxSize = "small" | "base" | "mid" | "large";
|
|
6
6
|
export type ListBoxVariant = "default" | "gloss";
|
|
7
7
|
export type ListBoxClassNames = {
|
|
@@ -37,11 +37,18 @@ export type ListBoxPartMotion = {
|
|
|
37
37
|
hoverOut?: MotionValue;
|
|
38
38
|
pressIn?: MotionValue;
|
|
39
39
|
pressOut?: MotionValue;
|
|
40
|
+
enter?: MotionValue;
|
|
41
|
+
leave?: MotionValue;
|
|
40
42
|
};
|
|
41
43
|
export type ListBoxMotion = {
|
|
42
44
|
item?: ListBoxPartMotion;
|
|
43
45
|
label?: ListBoxPartMotion;
|
|
46
|
+
hint?: ListBoxPartMotion;
|
|
44
47
|
icon?: ListBoxPartMotion;
|
|
48
|
+
section?: ListBoxPartMotion;
|
|
49
|
+
header?: ListBoxPartMotion;
|
|
50
|
+
empty?: ListBoxPartMotion;
|
|
51
|
+
separator?: ListBoxPartMotion;
|
|
45
52
|
};
|
|
46
53
|
export type ListBoxContextValue = {
|
|
47
54
|
listId: string;
|
|
@@ -71,20 +78,38 @@ export type ListBoxProps = Omit<HTMLAttributes<HTMLDivElement>, "children" | "on
|
|
|
71
78
|
onActiveValueChange?: (value: string | null) => void;
|
|
72
79
|
listId?: string;
|
|
73
80
|
classNames?: Prettify<ListBoxClassNames>;
|
|
74
|
-
|
|
81
|
+
/**
|
|
82
|
+
* Per-slot motion (`item`, `label`, `header`, `section` …).
|
|
83
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
84
|
+
* There is no `root` slot — `play()` skips; use `playSlot("header")` / `playAll`.
|
|
85
|
+
*/
|
|
86
|
+
motion?: Prettify<MotionMapWithEvents<ListBoxMotion>>;
|
|
87
|
+
/**
|
|
88
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
89
|
+
* One handle → this list chrome scope (`section` / `header` / `empty` / `separator`).
|
|
90
|
+
* Nested `ListBox.Item` is a separate scope — pass a handle there. Not placed on the DOM.
|
|
91
|
+
*/
|
|
92
|
+
motionController?: MotionController;
|
|
75
93
|
};
|
|
76
94
|
export type ListBoxClassNamesProviderProps = {
|
|
77
95
|
classNames?: Prettify<ListBoxClassNames>;
|
|
78
96
|
children: ReactNode;
|
|
79
97
|
};
|
|
80
98
|
export type UseListBoxRootStateProps = Omit<ListBoxProps, "classNames" | "className">;
|
|
81
|
-
export type ListBoxSectionProps = HTMLAttributes<HTMLDivElement
|
|
99
|
+
export type ListBoxSectionProps = HTMLAttributes<HTMLDivElement> & {
|
|
100
|
+
motion?: Prettify<ListBoxPartMotion>;
|
|
101
|
+
};
|
|
82
102
|
export type ListBoxHeaderProps = HTMLAttributes<HTMLDivElement> & {
|
|
83
103
|
/** Classes for the inner `Text` in the header (per-instance; merges after `classNames.headerText`). */
|
|
84
104
|
textClassName?: string;
|
|
105
|
+
motion?: Prettify<ListBoxPartMotion>;
|
|
106
|
+
};
|
|
107
|
+
export type ListBoxSeparatorProps = HTMLAttributes<HTMLDivElement> & {
|
|
108
|
+
motion?: Prettify<ListBoxPartMotion>;
|
|
109
|
+
};
|
|
110
|
+
export type ListBoxEmptyProps = HTMLAttributes<HTMLElement> & {
|
|
111
|
+
motion?: Prettify<ListBoxPartMotion>;
|
|
85
112
|
};
|
|
86
|
-
export type ListBoxSeparatorProps = HTMLAttributes<HTMLDivElement>;
|
|
87
|
-
export type ListBoxEmptyProps = HTMLAttributes<HTMLParagraphElement>;
|
|
88
113
|
export type ListBoxItemProps = Omit<HTMLAttributes<HTMLButtonElement>, "value"> & {
|
|
89
114
|
value: string;
|
|
90
115
|
disabled?: boolean;
|
|
@@ -94,11 +119,18 @@ export type ListBoxItemProps = Omit<HTMLAttributes<HTMLButtonElement>, "value">
|
|
|
94
119
|
/** Simple API: render selection indicator (same as `<ListBox.ItemIndicator />`). */
|
|
95
120
|
indicator?: boolean;
|
|
96
121
|
motion?: Prettify<ListBoxPartMotion>;
|
|
122
|
+
/**
|
|
123
|
+
* Handle for this item's nested scope. `play()` looks for `root` (skip) —
|
|
124
|
+
* use `playSlot("item")`. Label / hint / icon live here.
|
|
125
|
+
*/
|
|
126
|
+
motionController?: MotionController;
|
|
97
127
|
};
|
|
98
128
|
export type ListBoxLabelProps = HTMLAttributes<HTMLSpanElement> & {
|
|
99
129
|
motion?: Prettify<ListBoxPartMotion>;
|
|
100
130
|
};
|
|
101
|
-
export type ListBoxHintProps = HTMLAttributes<HTMLSpanElement
|
|
131
|
+
export type ListBoxHintProps = HTMLAttributes<HTMLSpanElement> & {
|
|
132
|
+
motion?: Prettify<ListBoxPartMotion>;
|
|
133
|
+
};
|
|
102
134
|
export type ListBoxIconProps = HTMLAttributes<HTMLSpanElement> & {
|
|
103
135
|
motion?: Prettify<ListBoxPartMotion>;
|
|
104
136
|
};
|
|
@@ -5,5 +5,6 @@ export declare const Loading: import('react').ForwardRefExoticComponent<import('
|
|
|
5
5
|
color?: import('./loadingTypes').LoadingColor;
|
|
6
6
|
label?: string;
|
|
7
7
|
classNames?: import('../../..').Prettify<import('./loadingTypes').LoadingClassNames>;
|
|
8
|
-
motion?: import('../../..').Prettify<import('./loadingTypes').LoadingMotion
|
|
8
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./loadingTypes').LoadingMotion>>;
|
|
9
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
9
10
|
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/** Scope only. Defaults and host play live in `loadingAnimations.ts`. */
|
|
2
|
-
export declare const LoadingMotionProvider: ({ motion, defaults, params, children, }: {
|
|
3
|
-
motion?: import('../utils/slotMotion').
|
|
2
|
+
export declare const LoadingMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
3
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
4
4
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
5
5
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
6
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
7
|
+
motionState?: string;
|
|
8
|
+
motionPayload?: unknown;
|
|
9
|
+
playInitialState?: boolean;
|
|
6
10
|
children: import('react').ReactNode;
|
|
7
11
|
}) => import("react/jsx-runtime").JSX.Element, useLoadingMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalLoadingMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
3
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
4
4
|
import { ComponentSize } from '../utils/sizeLayout';
|
|
5
5
|
export type LoadingSize = ComponentSize;
|
|
6
6
|
export type LoadingType = "spinner" | "dots";
|
|
@@ -33,8 +33,14 @@ export type LoadingProps = HTMLAttributes<HTMLSpanElement> & {
|
|
|
33
33
|
/**
|
|
34
34
|
* Per-slot motion (`root`, `spinner`, `dots`). Dot wave stays kit-internal.
|
|
35
35
|
* Defaults are empty — `enter` runs on mount only when set.
|
|
36
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
36
37
|
*/
|
|
37
|
-
motion?: Prettify<LoadingMotion
|
|
38
|
+
motion?: Prettify<MotionMapWithEvents<LoadingMotion>>;
|
|
39
|
+
/**
|
|
40
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
41
|
+
* Forwarded to the motion Provider (`controller`), not onto the DOM.
|
|
42
|
+
*/
|
|
43
|
+
motionController?: MotionController;
|
|
38
44
|
};
|
|
39
45
|
export type LoadingDotsLayout = {
|
|
40
46
|
dotClass: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MeterProps } from './meterTypes';
|
|
2
|
-
export type { MeterClassNames, MeterErrorProps, MeterHeaderProps, MeterHintProps, MeterOrientation, MeterProps, MeterSize, MeterTrackProps, MeterValueProps, MeterMotion, MeterPartMotion, } from './meterTypes';
|
|
2
|
+
export type { MeterClassNames, MeterErrorProps, MeterHeaderProps, MeterHintProps, MeterLabelProps, MeterOrientation, MeterProps, MeterSize, MeterTrackProps, MeterValueProps, MeterMotion, MeterPartMotion, } from './meterTypes';
|
|
3
3
|
export { MeterError, MeterHeader, MeterHint, MeterLabel, MeterSimpleBody, MeterTrack, MeterValue, } from './meterParts';
|
|
4
4
|
export { useMeterFieldContext, useOptionalMeterFieldContext, } from './meterContext';
|
|
5
|
-
export declare function MeterRoot({ children, className, classNames, id, orientation, label, showValue, valueText, hint, error, value, min, max, size, thickness, color, formatValue, motion, ...divRest }: MeterProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function MeterRoot({ children, className, classNames, id, orientation, label, showValue, valueText, hint, error, value, min, max, size, thickness, color, formatValue, motion, motionController, ...divRest }: MeterProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare namespace MeterRoot {
|
|
7
7
|
var displayName: string;
|
|
8
8
|
}
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import { MeterRoot } from './Meter';
|
|
2
|
-
import {
|
|
2
|
+
import { MeterHeader, MeterValue } from './meterParts';
|
|
3
3
|
export declare const Meter: typeof MeterRoot & {
|
|
4
4
|
Header: typeof MeterHeader;
|
|
5
|
-
Label:
|
|
5
|
+
Label: import('react').ForwardRefExoticComponent<Omit<import('../Label').LabelProps, "motion"> & {
|
|
6
|
+
motion?: import('../../..').Prettify<import('./meterTypes').MeterPartMotion>;
|
|
7
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
6
8
|
Value: typeof MeterValue;
|
|
7
|
-
Hint:
|
|
8
|
-
|
|
9
|
+
Hint: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
10
|
+
children?: import('react').ReactNode;
|
|
11
|
+
motion?: import('../../..').Prettify<import('./meterTypes').MeterPartMotion>;
|
|
12
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
13
|
+
Error: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
14
|
+
children?: import('react').ReactNode;
|
|
15
|
+
motion?: import('../../..').Prettify<import('./meterTypes').MeterPartMotion>;
|
|
16
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
9
17
|
Track: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
10
18
|
value: number;
|
|
11
19
|
min?: number;
|
|
@@ -17,10 +25,11 @@ export declare const Meter: typeof MeterRoot & {
|
|
|
17
25
|
orientation?: import('./meterTypes').MeterOrientation;
|
|
18
26
|
className?: string;
|
|
19
27
|
motion?: import('../../..').Prettify<import('./meterTypes').MeterPartMotion>;
|
|
28
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
20
29
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
21
30
|
};
|
|
22
31
|
export type { MeterTrackProps, MeterSize, MeterOrientation, MeterClassNames, } from './Meter';
|
|
23
32
|
export type { MeterMotion, MeterPartMotion, } from './meterTypes';
|
|
24
|
-
export type { MeterProps, MeterHeaderProps, MeterValueProps, MeterHintProps, MeterErrorProps, } from './Meter';
|
|
33
|
+
export type { MeterProps, MeterHeaderProps, MeterValueProps, MeterHintProps, MeterErrorProps, MeterLabelProps, } from './Meter';
|
|
25
34
|
export { useMeterFieldContext, useOptionalMeterFieldContext, } from './Meter';
|
|
26
35
|
export type { MeterDisplayState, MeterFieldContextValue } from './meterTypes';
|
|
@@ -1,7 +1,33 @@
|
|
|
1
|
+
import { ForwardedRef, PointerEventHandler, RefObject } from 'react';
|
|
1
2
|
import { MotionScopeValue } from '../utils/slotMotion';
|
|
2
|
-
import {
|
|
3
|
+
import { progressScaleFromPercent } from '../utils/slotMotion/recipes/progressFill';
|
|
4
|
+
import { MeterMotion, MeterPartMotion } from './meterTypes';
|
|
5
|
+
export { progressScaleFromPercent };
|
|
3
6
|
export declare function resolveMeterMotionDefaults(): MeterMotion;
|
|
4
|
-
export declare function useMeterTrackSlotMotion(scope: MotionScopeValue | null,
|
|
5
|
-
export declare function
|
|
6
|
-
|
|
7
|
+
export declare function useMeterTrackSlotMotion(scope: MotionScopeValue | null, identity: string): void;
|
|
8
|
+
export declare function useMeterFillMotion({ scope, percent, isHorizontal, fillRef, }: {
|
|
9
|
+
scope: MotionScopeValue | null;
|
|
10
|
+
percent: number;
|
|
11
|
+
isHorizontal: boolean;
|
|
12
|
+
fillRef: RefObject<HTMLSpanElement | null>;
|
|
13
|
+
}): {
|
|
14
|
+
reduceMotion: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type MeterChromeSlot = "label" | "hint" | "error";
|
|
17
|
+
export declare function useMeterChromeSlot(slot: MeterChromeSlot, { motion, forwardedRef, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }?: {
|
|
18
|
+
motion?: MeterPartMotion;
|
|
19
|
+
forwardedRef?: ForwardedRef<HTMLElement>;
|
|
20
|
+
onPointerOver?: PointerEventHandler<HTMLElement>;
|
|
21
|
+
onPointerOut?: PointerEventHandler<HTMLElement>;
|
|
22
|
+
onPointerDown?: PointerEventHandler<HTMLElement>;
|
|
23
|
+
onPointerUp?: PointerEventHandler<HTMLElement>;
|
|
24
|
+
}): {
|
|
25
|
+
setRef: (node: HTMLElement | null) => void;
|
|
26
|
+
targetRef: RefObject<HTMLElement | null>;
|
|
27
|
+
pointerHandlers: {
|
|
28
|
+
onPointerOver: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
29
|
+
onPointerOut: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
30
|
+
onPointerDown: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
31
|
+
onPointerUp: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
32
|
+
};
|
|
7
33
|
};
|
|
@@ -8,11 +8,15 @@ export declare function MeterClassNamesProvider({ classNames, children, }: Meter
|
|
|
8
8
|
export declare function useMeterFieldContext(): MeterFieldContextValue;
|
|
9
9
|
export declare function useOptionalMeterFieldContext(): MeterFieldContextValue | null;
|
|
10
10
|
export declare function useMeterClassNames(): MeterClassNames;
|
|
11
|
-
/** Scope only. Defaults
|
|
12
|
-
export declare const MeterMotionProvider: ({ 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 MeterMotionProvider: ({ 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, useMeterMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalMeterMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
18
22
|
export { MeterFieldContext };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { MeterErrorProps, MeterHeaderProps, MeterHintProps, MeterSimpleBodyProps, MeterValueProps } from './meterTypes';
|
|
1
|
+
import { MeterHeaderProps, MeterSimpleBodyProps, MeterValueProps } from './meterTypes';
|
|
3
2
|
export declare function MeterSimpleBody({ label, showValue, valueText, hint, error, trackProps, }: MeterSimpleBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
3
|
+
export declare const MeterLabel: import('react').ForwardRefExoticComponent<Omit<import('../Label').LabelProps, "motion"> & {
|
|
4
|
+
motion?: import('../../..').Prettify<import('./meterTypes').MeterPartMotion>;
|
|
5
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
8
6
|
export declare function MeterHeader({ children, className, motion, ...rest }: MeterHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
7
|
export declare namespace MeterHeader {
|
|
10
8
|
var displayName: string;
|
|
@@ -13,14 +11,14 @@ export declare function MeterValue({ children, className, motion, ...rest }: Met
|
|
|
13
11
|
export declare namespace MeterValue {
|
|
14
12
|
var displayName: string;
|
|
15
13
|
}
|
|
16
|
-
export declare
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
export declare
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
14
|
+
export declare const MeterHint: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
15
|
+
children?: import('react').ReactNode;
|
|
16
|
+
motion?: import('../../..').Prettify<import('./meterTypes').MeterPartMotion>;
|
|
17
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
18
|
+
export declare const MeterError: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
19
|
+
children?: import('react').ReactNode;
|
|
20
|
+
motion?: import('../../..').Prettify<import('./meterTypes').MeterPartMotion>;
|
|
21
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
24
22
|
export declare const MeterTrack: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
25
23
|
value: number;
|
|
26
24
|
min?: number;
|
|
@@ -32,4 +30,5 @@ export declare const MeterTrack: import('react').ForwardRefExoticComponent<Omit<
|
|
|
32
30
|
orientation?: import('./meterTypes').MeterOrientation;
|
|
33
31
|
className?: string;
|
|
34
32
|
motion?: import('../../..').Prettify<import('./meterTypes').MeterPartMotion>;
|
|
33
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
35
34
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -44,12 +44,7 @@ export declare function meterTrackCrossStyle({ isHorizontal, thickness, }: {
|
|
|
44
44
|
thickness?: number | string;
|
|
45
45
|
}): CSSProperties | undefined;
|
|
46
46
|
export declare function meterFillColorStyle(color?: string): CSSProperties | undefined;
|
|
47
|
-
export declare function
|
|
47
|
+
export declare function meterDeterminateFillStyle({ isHorizontal, fillColorStyle, }: {
|
|
48
48
|
isHorizontal: boolean;
|
|
49
|
-
percent: number;
|
|
50
|
-
}): CSSProperties;
|
|
51
|
-
export declare function meterFillInitialStyle({ isHorizontal, percent, fillColorStyle, }: {
|
|
52
|
-
isHorizontal: boolean;
|
|
53
|
-
percent: number;
|
|
54
49
|
fillColorStyle?: CSSProperties;
|
|
55
50
|
}): CSSProperties;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
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 MeterSize = "small" | "base" | "mid" | "large";
|
|
5
6
|
export type MeterOrientation = "horizontal" | "vertical";
|
|
6
7
|
export type MeterClassNames = {
|
|
@@ -28,7 +29,11 @@ export type MeterPartMotion = {
|
|
|
28
29
|
pressOut?: MotionValue;
|
|
29
30
|
enter?: MotionValue;
|
|
30
31
|
leave?: MotionValue;
|
|
31
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* `track`: value identity.
|
|
34
|
+
* `fill`: `progressFill` (scale). Opt-in `fill.enter` — first paint at 0,
|
|
35
|
+
* then fill to `getProgressScale()`.
|
|
36
|
+
*/
|
|
32
37
|
change?: MotionValue;
|
|
33
38
|
};
|
|
34
39
|
export type MeterMotion = {
|
|
@@ -36,6 +41,9 @@ export type MeterMotion = {
|
|
|
36
41
|
fill?: MeterPartMotion;
|
|
37
42
|
header?: MeterPartMotion;
|
|
38
43
|
value?: MeterPartMotion;
|
|
44
|
+
label?: MeterPartMotion;
|
|
45
|
+
hint?: MeterPartMotion;
|
|
46
|
+
error?: MeterPartMotion;
|
|
39
47
|
};
|
|
40
48
|
export type MeterDisplayState = {
|
|
41
49
|
clampedValue: number;
|
|
@@ -65,6 +73,11 @@ export type MeterTrackProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> &
|
|
|
65
73
|
orientation?: MeterOrientation;
|
|
66
74
|
className?: string;
|
|
67
75
|
motion?: Prettify<MeterPartMotion>;
|
|
76
|
+
/**
|
|
77
|
+
* Deferred handle for the Track fill host (`track`, `fill`). One handle → this nested scope.
|
|
78
|
+
* Simple API: pass `motionController` on `Meter` — it is forwarded here.
|
|
79
|
+
*/
|
|
80
|
+
motionController?: MotionController;
|
|
68
81
|
};
|
|
69
82
|
export type MeterProps = HTMLAttributes<HTMLDivElement> & Partial<Omit<MeterTrackProps, "motion">> & {
|
|
70
83
|
children?: ReactNode;
|
|
@@ -77,11 +90,21 @@ export type MeterProps = HTMLAttributes<HTMLDivElement> & Partial<Omit<MeterTrac
|
|
|
77
90
|
error?: ReactNode;
|
|
78
91
|
classNames?: Prettify<MeterClassNames>;
|
|
79
92
|
/**
|
|
80
|
-
* Per-slot motion (`track`, `fill`, `header`, `value`).
|
|
81
|
-
* Fill
|
|
82
|
-
*
|
|
93
|
+
* Per-slot motion (`track`, `fill`, `header`, `value`, `label`, `hint`, `error`).
|
|
94
|
+
* Fill `change` defaults to `progressFill`. `fill.enter` is opt-in
|
|
95
|
+
* (`"progressFill"` or a factory with `ctx.params.getProgressScale`).
|
|
96
|
+
* Chrome registers on the Root scope (siblings of Track). Track is the nested fill host.
|
|
97
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
98
|
+
* Simple API: `motionController` is forwarded to `Meter.Track` (fill host).
|
|
99
|
+
* Compound: this handle attaches to the Root chrome scope; pass another handle on `Track`.
|
|
100
|
+
*/
|
|
101
|
+
motion?: Prettify<MotionMapWithEvents<MeterMotion>>;
|
|
102
|
+
/**
|
|
103
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
104
|
+
* Simple API: forwarded to the Track nested Provider. Compound: Root chrome scope.
|
|
105
|
+
* Not placed on the DOM.
|
|
83
106
|
*/
|
|
84
|
-
|
|
107
|
+
motionController?: MotionController;
|
|
85
108
|
};
|
|
86
109
|
export type MeterClassNamesProviderProps = {
|
|
87
110
|
classNames?: Prettify<MeterClassNames>;
|
|
@@ -95,13 +118,18 @@ export type MeterValueProps = HTMLAttributes<HTMLSpanElement> & {
|
|
|
95
118
|
children?: ReactNode;
|
|
96
119
|
motion?: Prettify<MeterPartMotion>;
|
|
97
120
|
};
|
|
121
|
+
export type MeterLabelProps = Omit<LabelProps, "motion"> & {
|
|
122
|
+
motion?: Prettify<MeterPartMotion>;
|
|
123
|
+
};
|
|
98
124
|
export type MeterHintProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
99
125
|
children?: ReactNode;
|
|
126
|
+
motion?: Prettify<MeterPartMotion>;
|
|
100
127
|
};
|
|
101
128
|
export type MeterErrorProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
102
129
|
children?: ReactNode;
|
|
130
|
+
motion?: Prettify<MeterPartMotion>;
|
|
103
131
|
};
|
|
104
|
-
export type UseMeterRootStateProps = Omit<MeterProps, "className" | "classNames" | "motion">;
|
|
132
|
+
export type UseMeterRootStateProps = Omit<MeterProps, "className" | "classNames" | "motion" | "motionController">;
|
|
105
133
|
export type UseMeterTrackStateProps = Pick<MeterTrackProps, "value" | "min" | "max" | "size" | "thickness" | "color" | "formatValue" | "orientation"> & {
|
|
106
134
|
"aria-describedby"?: string;
|
|
107
135
|
};
|
|
@@ -114,10 +142,6 @@ export type MeterTrackAriaProps = {
|
|
|
114
142
|
labelId?: string;
|
|
115
143
|
ariaDescribedBy?: string;
|
|
116
144
|
};
|
|
117
|
-
export type UseMeterFillAnimationProps = {
|
|
118
|
-
fillTargetStyle: CSSProperties;
|
|
119
|
-
isHorizontal: boolean;
|
|
120
|
-
};
|
|
121
145
|
export type MeterSimpleBodyProps = {
|
|
122
146
|
label?: ReactNode;
|
|
123
147
|
showValue?: boolean;
|
|
@@ -16,6 +16,4 @@ export declare function useMeterTrackState({ value, min, max, size, thickness, c
|
|
|
16
16
|
};
|
|
17
17
|
trackCrossStyle: import('react').CSSProperties | undefined;
|
|
18
18
|
fillColorStyle: import('react').CSSProperties | undefined;
|
|
19
|
-
fillTargetStyle: import('react').CSSProperties;
|
|
20
|
-
fillInitialStyle: import('react').CSSProperties;
|
|
21
19
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { PaginationClassNames, PaginationContentProps, PaginationEllipsisProps, PaginationItemProps, PaginationNavButtonProps, PaginationPageProps, PaginationPagesProps, PaginationProps, PaginationSummaryProps, PaginationMotion, PaginationPartMotion, } from './paginationTypes';
|
|
1
|
+
export type { PaginationClassNames, PaginationContentProps, PaginationEllipsisProps, PaginationItemProps, PaginationNavButtonProps, PaginationPageProps, PaginationPagesProps, PaginationProps, PaginationSummaryProps, PaginationMotion, PaginationPartMotion, PaginationSummaryPartMotion, } from './paginationTypes';
|
|
2
2
|
export { PaginationContent, PaginationEllipsis, PaginationItem, PaginationNext, PaginationNextIcon, PaginationPage, PaginationPages, PaginationPrevious, PaginationPreviousIcon, PaginationRootShell, PaginationSummary, } from './paginationParts';
|
|
3
3
|
export declare const PaginationRoot: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLElement>, "children"> & {
|
|
4
4
|
children?: import('react').ReactNode;
|
|
@@ -8,5 +8,6 @@ export declare const PaginationRoot: import('react').ForwardRefExoticComponent<O
|
|
|
8
8
|
onPageChange?: (page: number) => void;
|
|
9
9
|
siblingCount?: number;
|
|
10
10
|
classNames?: import('../../..').Prettify<import('./paginationTypes').PaginationClassNames>;
|
|
11
|
-
motion?: import('../../..').Prettify<import('./paginationTypes').PaginationMotion
|
|
11
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./paginationTypes').PaginationMotion>>;
|
|
12
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
12
13
|
} & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -7,26 +7,38 @@ export declare const Pagination: import('react').ForwardRefExoticComponent<Omit<
|
|
|
7
7
|
onPageChange?: (page: number) => void;
|
|
8
8
|
siblingCount?: number;
|
|
9
9
|
classNames?: import('../../..').Prettify<import('./paginationTypes').PaginationClassNames>;
|
|
10
|
-
motion?: import('../../..').Prettify<import('./paginationTypes').PaginationMotion
|
|
10
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./paginationTypes').PaginationMotion>>;
|
|
11
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
11
12
|
} & import('react').RefAttributes<HTMLElement>> & {
|
|
12
|
-
Summary: import('react').ForwardRefExoticComponent<import('
|
|
13
|
+
Summary: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
14
|
+
motion?: import('../../..').Prettify<import('./paginationTypes').PaginationSummaryPartMotion>;
|
|
15
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
16
|
Content: import('react').ForwardRefExoticComponent<import('./paginationTypes').PaginationContentProps & import('react').RefAttributes<HTMLOListElement>>;
|
|
14
17
|
Item: import('react').ForwardRefExoticComponent<import('./paginationTypes').PaginationItemProps & import('react').RefAttributes<HTMLLIElement>>;
|
|
15
18
|
Previous: import('react').ForwardRefExoticComponent<import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
16
19
|
motion?: import('../../..').Prettify<import('./paginationTypes').PaginationPartMotion>;
|
|
20
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
17
21
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
18
22
|
Next: import('react').ForwardRefExoticComponent<import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
19
23
|
motion?: import('../../..').Prettify<import('./paginationTypes').PaginationPartMotion>;
|
|
24
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
20
25
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
21
|
-
PreviousIcon: import('react').ForwardRefExoticComponent<import('react-icons').IconBaseProps &
|
|
22
|
-
|
|
26
|
+
PreviousIcon: import('react').ForwardRefExoticComponent<import('react-icons').IconBaseProps & {
|
|
27
|
+
motion?: import('../../..').Prettify<import('./paginationTypes').PaginationPartMotion>;
|
|
28
|
+
} & import('react').RefAttributes<SVGSVGElement>>;
|
|
29
|
+
NextIcon: import('react').ForwardRefExoticComponent<import('react-icons').IconBaseProps & {
|
|
30
|
+
motion?: import('../../..').Prettify<import('./paginationTypes').PaginationPartMotion>;
|
|
31
|
+
} & import('react').RefAttributes<SVGSVGElement>>;
|
|
23
32
|
Page: import('react').ForwardRefExoticComponent<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
24
33
|
page: number;
|
|
25
34
|
active?: boolean;
|
|
26
35
|
children?: import('react').ReactNode;
|
|
27
36
|
motion?: import('../../..').Prettify<import('./paginationTypes').PaginationPartMotion>;
|
|
37
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
28
38
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
29
39
|
Pages: typeof PaginationPages;
|
|
30
|
-
Ellipsis: import('react').ForwardRefExoticComponent<import('
|
|
40
|
+
Ellipsis: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
41
|
+
motion?: import('../../..').Prettify<import('./paginationTypes').PaginationPartMotion>;
|
|
42
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
31
43
|
};
|
|
32
|
-
export type { PaginationProps, PaginationClassNames, PaginationSummaryProps, PaginationContentProps, PaginationItemProps, PaginationNavButtonProps, PaginationPageProps, PaginationEllipsisProps, PaginationPagesProps, PaginationMotion, PaginationPartMotion, } from './Pagination';
|
|
44
|
+
export type { PaginationProps, PaginationClassNames, PaginationSummaryProps, PaginationContentProps, PaginationItemProps, PaginationNavButtonProps, PaginationPageProps, PaginationEllipsisProps, PaginationPagesProps, PaginationMotion, PaginationPartMotion, PaginationSummaryPartMotion, } from './Pagination';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ForwardedRef, ReactNode, RefObject } from 'react';
|
|
2
|
-
import { PaginationMotion } from './paginationTypes';
|
|
1
|
+
import { ForwardedRef, PointerEvent as ReactPointerEvent, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { PaginationMotion, PaginationPartMotion, PaginationSummaryPartMotion } from './paginationTypes';
|
|
3
3
|
export type PaginationFlipIdentity = {
|
|
4
4
|
/** Current page — primary trigger for FLIP when using `Pagination.Pages`. */
|
|
5
5
|
page?: number;
|
|
@@ -18,3 +18,30 @@ export declare function usePaginationContentRef(forwardedRef: ForwardedRef<HTMLO
|
|
|
18
18
|
setRefs: (node: HTMLOListElement | null) => void;
|
|
19
19
|
};
|
|
20
20
|
export declare function resolvePaginationControlMotionDefaults(): PaginationMotion;
|
|
21
|
+
export declare function usePaginationSummarySlot(motion?: PaginationSummaryPartMotion, forwardedRef?: ForwardedRef<HTMLDivElement>): {
|
|
22
|
+
setRef: (node: HTMLDivElement | null) => void;
|
|
23
|
+
targetRef: RefObject<HTMLDivElement | null>;
|
|
24
|
+
pointerHandlers: {
|
|
25
|
+
onPointerOver: (e: ReactPointerEvent<HTMLDivElement>) => void;
|
|
26
|
+
onPointerOut: (e: ReactPointerEvent<HTMLDivElement>) => void;
|
|
27
|
+
onPointerDown: (e: ReactPointerEvent<HTMLDivElement>) => void;
|
|
28
|
+
onPointerUp: (e: ReactPointerEvent<HTMLDivElement>) => void;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare function usePaginationEllipsisSlot({ motion, forwardedRef, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }?: {
|
|
32
|
+
motion?: PaginationPartMotion;
|
|
33
|
+
forwardedRef?: ForwardedRef<HTMLSpanElement>;
|
|
34
|
+
onPointerOver?: (e: ReactPointerEvent<HTMLSpanElement>) => void;
|
|
35
|
+
onPointerOut?: (e: ReactPointerEvent<HTMLSpanElement>) => void;
|
|
36
|
+
onPointerDown?: (e: ReactPointerEvent<HTMLSpanElement>) => void;
|
|
37
|
+
onPointerUp?: (e: ReactPointerEvent<HTMLSpanElement>) => void;
|
|
38
|
+
}): {
|
|
39
|
+
setRef: (node: HTMLSpanElement | null) => void;
|
|
40
|
+
targetRef: RefObject<HTMLSpanElement | null>;
|
|
41
|
+
pointerHandlers: {
|
|
42
|
+
onPointerOver: (e: ReactPointerEvent<HTMLSpanElement>) => void;
|
|
43
|
+
onPointerOut: (e: ReactPointerEvent<HTMLSpanElement>) => void;
|
|
44
|
+
onPointerDown: (e: ReactPointerEvent<HTMLSpanElement>) => void;
|
|
45
|
+
onPointerUp: (e: ReactPointerEvent<HTMLSpanElement>) => void;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -8,9 +8,13 @@ export declare function usePagination(): PaginationContextValue;
|
|
|
8
8
|
export declare function useOptionalPagination(): PaginationContextValue | null;
|
|
9
9
|
export declare function usePaginationClassNames(): PaginationClassNames;
|
|
10
10
|
/** Scope only. Defaults and host play live in `paginationAnimations.ts`. */
|
|
11
|
-
export declare const PaginationMotionProvider: ({ motion, defaults, params, children, }: {
|
|
12
|
-
motion?: import('../utils/slotMotion').
|
|
11
|
+
export declare const PaginationMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
12
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
13
13
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
14
14
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
15
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
16
|
+
motionState?: string;
|
|
17
|
+
motionPayload?: unknown;
|
|
18
|
+
playInitialState?: boolean;
|
|
15
19
|
children: import('react').ReactNode;
|
|
16
20
|
}) => import("react/jsx-runtime").JSX.Element, usePaginationMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalPaginationMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,25 +1,36 @@
|
|
|
1
1
|
import { IconBaseProps } from 'react-icons';
|
|
2
2
|
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
-
import { PaginationContentProps,
|
|
4
|
-
export declare const PaginationRootShell: ForwardRefExoticComponent<Omit<PaginationProps, "classNames"> & RefAttributes<HTMLElement>>;
|
|
5
|
-
export declare const PaginationSummary: ForwardRefExoticComponent<
|
|
3
|
+
import { PaginationContentProps, PaginationItemProps, PaginationPartMotion, PaginationProps } from './paginationTypes';
|
|
4
|
+
export declare const PaginationRootShell: ForwardRefExoticComponent<Omit<PaginationProps, "motion" | "motionController" | "classNames"> & RefAttributes<HTMLElement>>;
|
|
5
|
+
export declare const PaginationSummary: ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
motion?: import('../../..').Prettify<import('./paginationTypes').PaginationSummaryPartMotion>;
|
|
7
|
+
} & RefAttributes<HTMLDivElement>>;
|
|
6
8
|
export declare const PaginationContent: ForwardRefExoticComponent<PaginationContentProps & RefAttributes<HTMLOListElement>>;
|
|
7
9
|
export declare const PaginationItem: ForwardRefExoticComponent<PaginationItemProps & RefAttributes<HTMLLIElement>>;
|
|
8
10
|
export declare const PaginationPrevious: ForwardRefExoticComponent<import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
9
11
|
motion?: import('../../..').Prettify<PaginationPartMotion>;
|
|
12
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
10
13
|
} & RefAttributes<HTMLButtonElement>>;
|
|
11
14
|
export declare const PaginationNext: ForwardRefExoticComponent<import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
12
15
|
motion?: import('../../..').Prettify<PaginationPartMotion>;
|
|
16
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
13
17
|
} & RefAttributes<HTMLButtonElement>>;
|
|
14
|
-
export declare const PaginationPreviousIcon: ForwardRefExoticComponent<IconBaseProps &
|
|
15
|
-
|
|
18
|
+
export declare const PaginationPreviousIcon: ForwardRefExoticComponent<IconBaseProps & {
|
|
19
|
+
motion?: import('../../..').Prettify<PaginationPartMotion>;
|
|
20
|
+
} & RefAttributes<SVGSVGElement>>;
|
|
21
|
+
export declare const PaginationNextIcon: ForwardRefExoticComponent<IconBaseProps & {
|
|
22
|
+
motion?: import('../../..').Prettify<PaginationPartMotion>;
|
|
23
|
+
} & RefAttributes<SVGSVGElement>>;
|
|
16
24
|
export declare const PaginationPage: ForwardRefExoticComponent<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
17
25
|
page: number;
|
|
18
26
|
active?: boolean;
|
|
19
27
|
children?: import('react').ReactNode;
|
|
20
28
|
motion?: import('../../..').Prettify<PaginationPartMotion>;
|
|
29
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
21
30
|
} & RefAttributes<HTMLButtonElement>>;
|
|
22
|
-
export declare const PaginationEllipsis: ForwardRefExoticComponent<
|
|
31
|
+
export declare const PaginationEllipsis: ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
32
|
+
motion?: import('../../..').Prettify<PaginationPartMotion>;
|
|
33
|
+
} & RefAttributes<HTMLSpanElement>>;
|
|
23
34
|
export declare function PaginationPages(): import("react/jsx-runtime").JSX.Element;
|
|
24
35
|
export declare namespace PaginationPages {
|
|
25
36
|
var displayName: string;
|