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, ReactNode } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
4
|
-
import { ColorSwatchSize } from './ColorSwatch';
|
|
3
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
4
|
+
import { ColorSwatchShape, ColorSwatchSize } from './ColorSwatch';
|
|
5
5
|
import { HSVA } from './colorUtils';
|
|
6
6
|
export type ColorPickerSize = "small" | "base" | "mid" | "large";
|
|
7
7
|
export type ColorPickerVariant = "default" | "gloss";
|
|
@@ -33,7 +33,6 @@ export type ColorPickerPartMotion = {
|
|
|
33
33
|
pressIn?: MotionValue;
|
|
34
34
|
pressOut?: MotionValue;
|
|
35
35
|
enter?: MotionValue;
|
|
36
|
-
leave?: MotionValue;
|
|
37
36
|
change?: MotionValue;
|
|
38
37
|
};
|
|
39
38
|
export type ColorPickerMotion = {
|
|
@@ -41,9 +40,13 @@ export type ColorPickerMotion = {
|
|
|
41
40
|
area?: ColorPickerPartMotion;
|
|
42
41
|
areaThumb?: ColorPickerPartMotion;
|
|
43
42
|
hexInput?: ColorPickerPartMotion;
|
|
43
|
+
alphaInput?: ColorPickerPartMotion;
|
|
44
44
|
presets?: ColorPickerPartMotion;
|
|
45
45
|
hueSlider?: ColorPickerPartMotion;
|
|
46
46
|
alphaSlider?: ColorPickerPartMotion;
|
|
47
|
+
previewSwatch?: ColorPickerPartMotion;
|
|
48
|
+
/** Pass-through to `Popover.Trigger` (nested Popover scope). */
|
|
49
|
+
trigger?: ColorPickerPartMotion;
|
|
47
50
|
};
|
|
48
51
|
export type ColorPickerProps = {
|
|
49
52
|
children?: ReactNode;
|
|
@@ -59,24 +62,39 @@ export type ColorPickerProps = {
|
|
|
59
62
|
disabled?: boolean;
|
|
60
63
|
classNames?: Prettify<ColorPickerClassNames>;
|
|
61
64
|
/**
|
|
62
|
-
* Per-slot motion (`contentPanel`, `area`, `areaThumb`, `hexInput`, `presets`, `hueSlider`, `alphaSlider`).
|
|
63
|
-
* Root is a portal-host map (like Dropdown).
|
|
64
|
-
*
|
|
65
|
+
* Per-slot motion (`contentPanel`, `area`, `areaThumb`, `hexInput`, `alphaInput`, `presets`, `hueSlider`, `alphaSlider`, `previewSwatch`).
|
|
66
|
+
* Root is a portal-host map (like Dropdown). `contentPanel` / `hexInput` / `alphaInput` / `presets` / `previewSwatch` play opt-in `enter`.
|
|
67
|
+
* `area` plays `change` on hex (not mount `enter` — drag surface). Thumb `left`/`top` is kit-internal.
|
|
68
|
+
* `trigger` is pass-through to Popover. Defaults are empty. Pass `hueSlider` / `alphaSlider` through to ColorSlider (nested scope does not inherit).
|
|
69
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
65
70
|
*/
|
|
66
|
-
motion?: Prettify<ColorPickerMotion
|
|
71
|
+
motion?: Prettify<MotionMapWithEvents<ColorPickerMotion>>;
|
|
72
|
+
/**
|
|
73
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
74
|
+
* Provider lives on Root; slots register when `Content` is open. No `root` slot — use `playSlot("contentPanel")`.
|
|
75
|
+
* Not placed on the DOM. Nested ColorSlider / ColorSwatch keep their own scopes.
|
|
76
|
+
*/
|
|
77
|
+
motionController?: MotionController;
|
|
67
78
|
};
|
|
68
79
|
export type ColorPickerTriggerProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "color"> & {
|
|
69
80
|
swatchSize?: ColorSwatchSize;
|
|
70
81
|
/** Pass-through to `Popover.Trigger` (default `true` there). */
|
|
71
82
|
asChild?: boolean;
|
|
72
83
|
children?: ReactNode;
|
|
84
|
+
motion?: Prettify<ColorPickerPartMotion>;
|
|
85
|
+
};
|
|
86
|
+
export type ColorPickerPreviewProps = Omit<HTMLAttributes<HTMLSpanElement>, "color"> & {
|
|
87
|
+
color?: string;
|
|
88
|
+
size?: ColorSwatchSize;
|
|
89
|
+
shape?: ColorSwatchShape;
|
|
90
|
+
motion?: Prettify<ColorPickerPartMotion>;
|
|
73
91
|
};
|
|
74
92
|
export type ColorPickerContentProps = Omit<HTMLAttributes<HTMLDivElement>, "color"> & {
|
|
75
93
|
showAlpha?: boolean;
|
|
76
94
|
presets?: string[];
|
|
77
95
|
/**
|
|
78
96
|
* Custom panel body. Default layout: Area, sliders, hex/alpha inputs, presets.
|
|
79
|
-
* Compose with `ColorPicker.Area` / `HexInput` / `AlphaInput` / `Presets`.
|
|
97
|
+
* Compose with `ColorPicker.Area` / `Preview` / `HexInput` / `AlphaInput` / `Presets`.
|
|
80
98
|
*/
|
|
81
99
|
children?: ReactNode;
|
|
82
100
|
motion?: Prettify<ColorPickerPartMotion>;
|
|
@@ -87,7 +105,9 @@ export type ColorPickerAreaProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
87
105
|
export type ColorPickerHexInputProps = HTMLAttributes<HTMLDivElement> & {
|
|
88
106
|
motion?: Prettify<ColorPickerPartMotion>;
|
|
89
107
|
};
|
|
90
|
-
export type ColorPickerAlphaInputProps = HTMLAttributes<HTMLDivElement
|
|
108
|
+
export type ColorPickerAlphaInputProps = HTMLAttributes<HTMLDivElement> & {
|
|
109
|
+
motion?: Prettify<ColorPickerPartMotion>;
|
|
110
|
+
};
|
|
91
111
|
export type ColorPickerPresetsProps = HTMLAttributes<HTMLDivElement> & {
|
|
92
112
|
presets: string[];
|
|
93
113
|
motion?: Prettify<ColorPickerPartMotion>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/** Scope only. Defaults and host play live in `colorSliderAnimations.ts`. */
|
|
2
|
-
export declare const ColorSliderMotionProvider: ({ motion, defaults, params, children, }: {
|
|
3
|
-
motion?: import('../utils/slotMotion').
|
|
2
|
+
export declare const ColorSliderMotionProvider: ({ 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, useColorSliderMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalColorSliderMotionScope: () => 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 { SliderOrientation, SliderSize } from '../Slider/sliderTypes';
|
|
5
5
|
import { HSVA } from './colorUtils';
|
|
6
6
|
export type ColorChannel = "hue" | "saturation" | "value" | "alpha" | "red" | "green" | "blue";
|
|
@@ -33,6 +33,11 @@ export type ColorSliderTrackProps = Omit<HTMLAttributes<HTMLDivElement>, "color"
|
|
|
33
33
|
* Defaults are empty.
|
|
34
34
|
*/
|
|
35
35
|
motion?: Prettify<ColorSliderPartMotion>;
|
|
36
|
+
/**
|
|
37
|
+
* Handle for this Track nested host (`track`). Simple API: pass `motionController`
|
|
38
|
+
* on `ColorSlider` — it is forwarded here.
|
|
39
|
+
*/
|
|
40
|
+
motionController?: MotionController;
|
|
36
41
|
};
|
|
37
42
|
export type ColorSliderProps = Omit<HTMLAttributes<HTMLDivElement>, "color"> & {
|
|
38
43
|
channel: ColorChannel;
|
|
@@ -47,6 +52,15 @@ export type ColorSliderProps = Omit<HTMLAttributes<HTMLDivElement>, "color"> & {
|
|
|
47
52
|
/**
|
|
48
53
|
* Per-slot motion (`root`, `track`). Nested ColorSlider.Track does not inherit defaults.
|
|
49
54
|
* Pass `motion.track` through to Track. Defaults are empty.
|
|
55
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
56
|
+
* Simple API: `motionController` is forwarded to `ColorSlider.Track`.
|
|
57
|
+
* Compound: this handle attaches to the Root `root` slot; pass another handle on `Track`.
|
|
58
|
+
*/
|
|
59
|
+
motion?: Prettify<MotionMapWithEvents<ColorSliderMotion>>;
|
|
60
|
+
/**
|
|
61
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
62
|
+
* Simple API: forwarded to the Track nested Provider. Compound: Root scope (`root`).
|
|
63
|
+
* Not placed on the DOM.
|
|
50
64
|
*/
|
|
51
|
-
|
|
65
|
+
motionController?: MotionController;
|
|
52
66
|
};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/** Scope only. Defaults and host play live in `colorSwatchAnimations.ts`. */
|
|
2
|
-
export declare const ColorSwatchMotionProvider: ({ motion, defaults, params, children, }: {
|
|
3
|
-
motion?: import('../utils/slotMotion').
|
|
2
|
+
export declare const ColorSwatchMotionProvider: ({ 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, useColorSwatchMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalColorSwatchMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, KeyboardEvent, MutableRefObject, PointerEvent } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
3
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
4
4
|
export type ColorSwatchSize = "small" | "base" | "mid" | "large";
|
|
5
5
|
export type ColorSwatchShape = "square" | "circle" | "rounded";
|
|
6
6
|
export type ColorSwatchPartMotion = {
|
|
@@ -17,7 +17,16 @@ export type ColorSwatchProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "co
|
|
|
17
17
|
size?: ColorSwatchSize;
|
|
18
18
|
shape?: ColorSwatchShape;
|
|
19
19
|
selected?: boolean;
|
|
20
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Per-slot motion (`root`). Only the interactive button (`onClick`) mounts a scope.
|
|
22
|
+
* Decorative `<span>` has no Provider. `events` — namespaced app commands.
|
|
23
|
+
*/
|
|
24
|
+
motion?: Prettify<MotionMapWithEvents<ColorSwatchMotion>>;
|
|
25
|
+
/**
|
|
26
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
27
|
+
* Interactive swatch only. Not placed on the DOM.
|
|
28
|
+
*/
|
|
29
|
+
motionController?: MotionController;
|
|
21
30
|
};
|
|
22
31
|
export type UseColorSwatchAnimationsProps = {
|
|
23
32
|
disabled: boolean;
|
|
@@ -4,6 +4,7 @@ export declare const ColorPicker: typeof ColorPickerRoot & {
|
|
|
4
4
|
swatchSize?: import('./colorSwatchTypes').ColorSwatchSize;
|
|
5
5
|
asChild?: boolean;
|
|
6
6
|
children?: import('react').ReactNode;
|
|
7
|
+
motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
|
|
7
8
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
8
9
|
Content: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "color"> & {
|
|
9
10
|
showAlpha?: boolean;
|
|
@@ -14,10 +15,18 @@ export declare const ColorPicker: typeof ColorPickerRoot & {
|
|
|
14
15
|
Area: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
15
16
|
motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
|
|
16
17
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
18
|
+
Preview: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLSpanElement>, "color"> & {
|
|
19
|
+
color?: string;
|
|
20
|
+
size?: import('./colorSwatchTypes').ColorSwatchSize;
|
|
21
|
+
shape?: import('./colorSwatchTypes').ColorSwatchShape;
|
|
22
|
+
motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
|
|
23
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
17
24
|
HexInput: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
18
25
|
motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
|
|
19
26
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
20
|
-
AlphaInput: import('react').ForwardRefExoticComponent<import('
|
|
27
|
+
AlphaInput: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
28
|
+
motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
|
|
29
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
21
30
|
Presets: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
22
31
|
presets: string[];
|
|
23
32
|
motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
|
|
@@ -33,7 +42,8 @@ export declare const ColorSlider: import('react').ForwardRefExoticComponent<Omit
|
|
|
33
42
|
size?: import('./colorSliderTypes').ColorSliderSize;
|
|
34
43
|
orientation?: import('./colorSliderTypes').ColorSliderOrientation;
|
|
35
44
|
disabled?: boolean;
|
|
36
|
-
motion?: import('../../..').Prettify<import('./colorSliderTypes').ColorSliderMotion
|
|
45
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./colorSliderTypes').ColorSliderMotion>>;
|
|
46
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
37
47
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
38
48
|
Track: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "color"> & {
|
|
39
49
|
channel: import('./colorSliderTypes').ColorChannel;
|
|
@@ -45,10 +55,11 @@ export declare const ColorSlider: import('react').ForwardRefExoticComponent<Omit
|
|
|
45
55
|
orientation?: import('./colorSliderTypes').ColorSliderOrientation;
|
|
46
56
|
disabled?: boolean;
|
|
47
57
|
motion?: import('../../..').Prettify<import('./colorSliderTypes').ColorSliderPartMotion>;
|
|
58
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
48
59
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
49
60
|
};
|
|
50
61
|
export { useColorPicker } from './colorPickerContext';
|
|
51
|
-
export type { ColorPickerProps, ColorPickerTriggerProps, ColorPickerContentProps, ColorPickerAreaProps, ColorPickerHexInputProps, ColorPickerAlphaInputProps, ColorPickerPresetsProps, ColorPickerSize, ColorPickerVariant, ColorPickerClassNames, ColorPickerMotion, ColorPickerPartMotion, } from './colorPickerTypes';
|
|
62
|
+
export type { ColorPickerProps, ColorPickerTriggerProps, ColorPickerContentProps, ColorPickerAreaProps, ColorPickerHexInputProps, ColorPickerAlphaInputProps, ColorPickerPresetsProps, ColorPickerPreviewProps, ColorPickerSize, ColorPickerVariant, ColorPickerClassNames, ColorPickerMotion, ColorPickerPartMotion, } from './colorPickerTypes';
|
|
52
63
|
export type { ColorSliderTrackProps, ColorSliderProps, ColorChannel, ColorSliderSize, ColorSliderOrientation, ColorSliderMotion, ColorSliderPartMotion, } from './ColorSlider';
|
|
53
64
|
export { ColorSwatch, type ColorSwatchProps, type ColorSwatchSize, type ColorSwatchShape, type ColorSwatchMotion, type ColorSwatchPartMotion, } from './ColorSwatch';
|
|
54
65
|
export { hsvaToHex, hexToHsva, hsvaToRgba, rgbaToHsva, rgbaToHex, hexToRgba, hsvaToColorString, hueToRgbString, type HSVA, type RGBA, } from './colorUtils';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComboBoxError, ComboBoxHint, ComboBoxLabel, ComboBoxInput, ComboBoxInputGroup, ComboBoxPopover, ComboBoxTrigger } from './comboBoxParts';
|
|
2
2
|
import { ComboBoxProps } from './comboBoxTypes';
|
|
3
|
-
export type { ComboBoxProps, ComboBoxSimpleProps, ComboBoxHintProps, ComboBoxErrorProps, ComboBoxInputGroupProps, ComboBoxInputProps, ComboBoxTriggerProps, ComboBoxPopoverProps, ComboBoxOption, ComboBoxClassNames, ComboBoxMotion, ComboBoxPartMotion, } from './comboBoxTypes';
|
|
4
|
-
export declare function ComboBoxRoot({ children, label, hint, error, className, classNames, id, required, status, size, options, value, defaultValue, onValueChange, open, defaultOpen, onOpenChange, variant, disabled, placeholder, menuMaxHeight, name, motion, ...rest }: ComboBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export type { ComboBoxProps, ComboBoxSimpleProps, ComboBoxHintProps, ComboBoxLabelProps, ComboBoxErrorProps, ComboBoxInputGroupProps, ComboBoxInputProps, ComboBoxTriggerProps, ComboBoxPopoverProps, ComboBoxOption, ComboBoxClassNames, ComboBoxMotion, ComboBoxPartMotion, } from './comboBoxTypes';
|
|
4
|
+
export declare function ComboBoxRoot({ children, label, hint, error, className, classNames, id, required, status, size, options, value, defaultValue, onValueChange, open, defaultOpen, onOpenChange, variant, disabled, placeholder, menuMaxHeight, name, motion, motionController, ...rest }: ComboBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare namespace ComboBoxRoot {
|
|
6
6
|
var displayName: string;
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MutableRefObject, RefObject } from 'react';
|
|
1
|
+
import { ForwardedRef, MutableRefObject, PointerEventHandler, RefObject } from 'react';
|
|
2
2
|
import { ComboBoxMotion, ComboBoxPartMotion, UseComboBoxShellAnimationsProps } from './comboBoxTypes';
|
|
3
3
|
export declare function resolveComboBoxMotionDefaults({ isGloss, disabled, groupSegment, }: {
|
|
4
4
|
isGloss: boolean;
|
|
@@ -46,3 +46,21 @@ export declare function useComboBoxShellAnimations({ shellRef, disabled, variant
|
|
|
46
46
|
"data-gloss-disabled"?: undefined;
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
|
+
export type ComboBoxChromeSlot = "label" | "hint" | "error";
|
|
50
|
+
export declare function useComboBoxChromeSlot(slot: ComboBoxChromeSlot, { motion, forwardedRef, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }?: {
|
|
51
|
+
motion?: ComboBoxPartMotion;
|
|
52
|
+
forwardedRef?: ForwardedRef<HTMLElement>;
|
|
53
|
+
onPointerOver?: PointerEventHandler<HTMLElement>;
|
|
54
|
+
onPointerOut?: PointerEventHandler<HTMLElement>;
|
|
55
|
+
onPointerDown?: PointerEventHandler<HTMLElement>;
|
|
56
|
+
onPointerUp?: PointerEventHandler<HTMLElement>;
|
|
57
|
+
}): {
|
|
58
|
+
setRef: (node: HTMLElement | null) => void;
|
|
59
|
+
targetRef: RefObject<HTMLElement | null>;
|
|
60
|
+
pointerHandlers: {
|
|
61
|
+
onPointerOver: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
62
|
+
onPointerOut: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
63
|
+
onPointerDown: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
64
|
+
onPointerUp: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -13,9 +13,13 @@ export declare function useComboBoxFieldContext(): ComboBoxFieldContextValue;
|
|
|
13
13
|
export declare function ComboBoxClassNamesProvider({ classNames, children, }: ComboBoxClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export declare function useComboBoxClassNames(): ComboBoxClassNames;
|
|
15
15
|
/** Scope only. Defaults and host play live in `comboBoxAnimations.ts`. */
|
|
16
|
-
export declare const ComboBoxMotionProvider: ({ motion, defaults, params, children, }: {
|
|
17
|
-
motion?: import('../utils/slotMotion').
|
|
16
|
+
export declare const ComboBoxMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
17
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
18
18
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
19
19
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
20
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
21
|
+
motionState?: string;
|
|
22
|
+
motionPayload?: unknown;
|
|
23
|
+
playInitialState?: boolean;
|
|
20
24
|
children: ReactNode;
|
|
21
25
|
}) => import("react/jsx-runtime").JSX.Element, useComboBoxMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalComboBoxMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
export declare
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var displayName: string;
|
|
14
|
-
}
|
|
1
|
+
export declare const ComboBoxLabel: import('react').ForwardRefExoticComponent<Omit<import('../Label').LabelProps, "motion" | "motionController"> & {
|
|
2
|
+
motion?: import('../../..').Prettify<import('./comboBoxTypes').ComboBoxPartMotion>;
|
|
3
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
4
|
+
export declare const ComboBoxHint: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
5
|
+
children?: import('react').ReactNode;
|
|
6
|
+
status?: Exclude<import('../Input').InputStatus, "danger"> | "default";
|
|
7
|
+
motion?: import('../../..').Prettify<import('./comboBoxTypes').ComboBoxPartMotion>;
|
|
8
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
9
|
+
export declare const ComboBoxError: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
10
|
+
children?: import('react').ReactNode;
|
|
11
|
+
motion?: import('../../..').Prettify<import('./comboBoxTypes').ComboBoxPartMotion>;
|
|
12
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { MotionController } from '../utils/slotMotion';
|
|
1
2
|
export declare const ComboBoxInputGroup: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
2
3
|
groupSegment?: import('../Button/buttonContext').ButtonGroupSegment;
|
|
3
4
|
motion?: import('../../..').Prettify<import('./comboBoxTypes').ComboBoxPartMotion>;
|
|
5
|
+
motionController?: MotionController;
|
|
4
6
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
7
|
export declare const ComboBoxInput: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "defaultValue"> & {
|
|
6
8
|
motion?: import('../../..').Prettify<import('./comboBoxTypes').ComboBoxPartMotion>;
|
|
@@ -15,10 +17,11 @@ export declare const ComboBoxPopover: import('react').ForwardRefExoticComponent<
|
|
|
15
17
|
offset?: number;
|
|
16
18
|
listBoxProps?: Omit<import('../ListBox').ListBoxProps, "children" | "value" | "defaultValue" | "onValueChange" | "activeValue" | "onActiveValueChange" | "listId">;
|
|
17
19
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
18
|
-
export declare function ComboBoxSimpleBody({ label, hint, error, labelId, }: {
|
|
20
|
+
export declare function ComboBoxSimpleBody({ label, hint, error, labelId, motionController, }: {
|
|
19
21
|
label: React.ReactNode;
|
|
20
22
|
hint: React.ReactNode;
|
|
21
23
|
error: React.ReactNode;
|
|
22
24
|
labelId: string;
|
|
25
|
+
motionController?: MotionController;
|
|
23
26
|
}): import("react/jsx-runtime").JSX.Element;
|
|
24
27
|
export { ComboBoxError, ComboBoxHint, ComboBoxLabel } from './comboBoxFieldParts';
|
|
@@ -2,9 +2,10 @@ import { HTMLAttributes, InputHTMLAttributes, MutableRefObject, ReactNode, RefOb
|
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
3
|
import { ButtonGroupSegment } from '../../composite/ButtonGroup/buttonGroupTypes';
|
|
4
4
|
import { InputSize, InputStatus, InputVariant } from '../Input';
|
|
5
|
+
import { LabelProps } from '../Label';
|
|
5
6
|
import { ListBoxProps } from '../ListBox';
|
|
6
7
|
import { PopoverSide } from '../Popover';
|
|
7
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
8
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
8
9
|
import { FloatingAlign } from '../Tooltip/tooltipPosition';
|
|
9
10
|
export type ComboBoxOption = {
|
|
10
11
|
value: string;
|
|
@@ -47,6 +48,9 @@ export type ComboBoxMotion = {
|
|
|
47
48
|
input?: ComboBoxPartMotion;
|
|
48
49
|
trigger?: ComboBoxPartMotion;
|
|
49
50
|
triggerIcon?: ComboBoxPartMotion;
|
|
51
|
+
label?: ComboBoxPartMotion;
|
|
52
|
+
hint?: ComboBoxPartMotion;
|
|
53
|
+
error?: ComboBoxPartMotion;
|
|
50
54
|
};
|
|
51
55
|
export type ComboBoxProps = HTMLAttributes<HTMLDivElement> & {
|
|
52
56
|
children?: ReactNode;
|
|
@@ -71,10 +75,20 @@ export type ComboBoxProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
71
75
|
menuMaxHeight?: string;
|
|
72
76
|
classNames?: Prettify<ComboBoxClassNames>;
|
|
73
77
|
/**
|
|
74
|
-
* Per-slot motion (`inputGroup`, `input`, `trigger`, `triggerIcon`).
|
|
78
|
+
* Per-slot motion (`inputGroup`, `input`, `trigger`, `triggerIcon`, `label`, `hint`, `error`).
|
|
75
79
|
* Menu enter lives on Popover — not duplicated here.
|
|
80
|
+
* Chrome registers on the Root scope (siblings of InputGroup). InputGroup is the nested shell host.
|
|
81
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
82
|
+
* Simple API: `motionController` is forwarded to `ComboBox.InputGroup` (shell host).
|
|
83
|
+
* Compound: this handle attaches to the Root chrome scope; pass another handle on `InputGroup`.
|
|
76
84
|
*/
|
|
77
|
-
motion?: Prettify<ComboBoxMotion
|
|
85
|
+
motion?: Prettify<MotionMapWithEvents<ComboBoxMotion>>;
|
|
86
|
+
/**
|
|
87
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
88
|
+
* Simple API: forwarded to the InputGroup nested Provider. Compound: Root chrome scope.
|
|
89
|
+
* Not placed on the DOM.
|
|
90
|
+
*/
|
|
91
|
+
motionController?: MotionController;
|
|
78
92
|
};
|
|
79
93
|
export type ComboBoxSimpleProps = ComboBoxProps & {
|
|
80
94
|
options: ComboBoxOption[];
|
|
@@ -121,6 +135,11 @@ export type ComboBoxInputGroupProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
121
135
|
groupSegment?: ButtonGroupSegment;
|
|
122
136
|
/** Part motion for the `inputGroup` host slot. Root `motion.inputGroup` still applies. */
|
|
123
137
|
motion?: Prettify<ComboBoxPartMotion>;
|
|
138
|
+
/**
|
|
139
|
+
* Deferred handle for the InputGroup host (`inputGroup`, `input`, `trigger`, `triggerIcon`).
|
|
140
|
+
* One handle → this nested scope. Simple API: pass `motionController` on `ComboBox` — it is forwarded here.
|
|
141
|
+
*/
|
|
142
|
+
motionController?: MotionController;
|
|
124
143
|
};
|
|
125
144
|
export type ComboBoxInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "defaultValue" | "size"> & {
|
|
126
145
|
motion?: Prettify<ComboBoxPartMotion>;
|
|
@@ -146,11 +165,16 @@ export type ComboBoxPopoverProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
146
165
|
/** Props forwarded to the inner `ListBox` (controlled selection props are owned by ComboBox). */
|
|
147
166
|
listBoxProps?: Omit<ListBoxProps, "children" | "value" | "defaultValue" | "onValueChange" | "activeValue" | "onActiveValueChange" | "listId">;
|
|
148
167
|
};
|
|
168
|
+
export type ComboBoxLabelProps = Omit<LabelProps, "motion" | "motionController"> & {
|
|
169
|
+
motion?: Prettify<ComboBoxPartMotion>;
|
|
170
|
+
};
|
|
149
171
|
export type ComboBoxHintProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
150
172
|
children?: ReactNode;
|
|
151
173
|
status?: Exclude<InputStatus, "danger"> | "default";
|
|
174
|
+
motion?: Prettify<ComboBoxPartMotion>;
|
|
152
175
|
};
|
|
153
176
|
export type ComboBoxErrorProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
154
177
|
children?: ReactNode;
|
|
178
|
+
motion?: Prettify<ComboBoxPartMotion>;
|
|
155
179
|
};
|
|
156
180
|
export type UseComboBoxRootStateProps = ComboBoxProps;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComboBoxRoot } from './ComboBox';
|
|
2
2
|
export declare const ComboBox: typeof ComboBoxRoot & {
|
|
3
|
-
Label:
|
|
3
|
+
Label: import('react').ForwardRefExoticComponent<Omit<import('../Label').LabelProps, "motion" | "motionController"> & {
|
|
4
|
+
motion?: import('../../..').Prettify<import('./comboBoxTypes').ComboBoxPartMotion>;
|
|
5
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
4
6
|
InputGroup: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
5
7
|
groupSegment?: import('../Button/buttonContext').ButtonGroupSegment;
|
|
6
8
|
motion?: import('../../..').Prettify<import('./comboBoxTypes').ComboBoxPartMotion>;
|
|
9
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
7
10
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
8
11
|
Input: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "defaultValue"> & {
|
|
9
12
|
motion?: import('../../..').Prettify<import('./comboBoxTypes').ComboBoxPartMotion>;
|
|
@@ -18,9 +21,16 @@ export declare const ComboBox: typeof ComboBoxRoot & {
|
|
|
18
21
|
offset?: number;
|
|
19
22
|
listBoxProps?: Omit<import('../ListBox').ListBoxProps, "children" | "value" | "defaultValue" | "onValueChange" | "activeValue" | "onActiveValueChange" | "listId">;
|
|
20
23
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
21
|
-
Hint:
|
|
22
|
-
|
|
24
|
+
Hint: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
25
|
+
children?: import('react').ReactNode;
|
|
26
|
+
status?: Exclude<import('../Input').InputStatus, "danger"> | "default";
|
|
27
|
+
motion?: import('../../..').Prettify<import('./comboBoxTypes').ComboBoxPartMotion>;
|
|
28
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
29
|
+
Error: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
30
|
+
children?: import('react').ReactNode;
|
|
31
|
+
motion?: import('../../..').Prettify<import('./comboBoxTypes').ComboBoxPartMotion>;
|
|
32
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
23
33
|
};
|
|
24
34
|
export type { ComboBoxOption } from './comboBoxTypes';
|
|
25
|
-
export type { ComboBoxProps, ComboBoxSimpleProps, ComboBoxHintProps, ComboBoxErrorProps, ComboBoxInputGroupProps, ComboBoxInputProps, ComboBoxTriggerProps, ComboBoxPopoverProps, ComboBoxClassNames, ComboBoxMotion, ComboBoxPartMotion, } from './comboBoxTypes';
|
|
35
|
+
export type { ComboBoxProps, ComboBoxSimpleProps, ComboBoxHintProps, ComboBoxLabelProps, ComboBoxErrorProps, ComboBoxInputGroupProps, ComboBoxInputProps, ComboBoxTriggerProps, ComboBoxPopoverProps, ComboBoxClassNames, ComboBoxMotion, ComboBoxPartMotion, } from './comboBoxTypes';
|
|
26
36
|
export { comboBoxFilteredValues } from './comboBoxAPI';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogHeadingBlock, DialogPanel, DialogTitle, DialogTrigger } from './dialogParts';
|
|
2
2
|
import { DialogProps } from './dialogTypes';
|
|
3
3
|
export type { DialogProps, DialogPanelProps, DialogTriggerProps, DialogVariant, DialogSize, DialogHeaderProps, DialogTitleProps, DialogDescriptionProps, DialogBodyProps, DialogFooterProps, DialogCloseProps, DialogContentProps, DialogHeadingBlockProps, DialogClassNames, DialogMotion, DialogLifecycleMotion, DialogPartMotion, } from './dialogTypes';
|
|
4
|
-
export declare function DialogRoot({ open, defaultOpen, onOpenChange, size, children, classNames, motion, portalContainer, }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function DialogRoot({ open, defaultOpen, onOpenChange, size, children, classNames, motion, motionController, portalContainer, }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare namespace DialogRoot {
|
|
6
6
|
var displayName: string;
|
|
7
7
|
}
|
|
@@ -7,9 +7,13 @@ export declare function DialogClassNamesProvider({ classNames, children, }: Dial
|
|
|
7
7
|
export declare function useDialog(): DialogContextValue;
|
|
8
8
|
export declare function useDialogClassNames(): DialogClassNames;
|
|
9
9
|
/** Scope only. Defaults and host play live in `dialogAnimations.ts`. */
|
|
10
|
-
export declare const DialogMotionProvider: ({ motion, defaults, params, children, }: {
|
|
11
|
-
motion?: import('../utils/slotMotion').
|
|
10
|
+
export declare const DialogMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
11
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
12
12
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
13
13
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
14
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
15
|
+
motionState?: string;
|
|
16
|
+
motionPayload?: unknown;
|
|
17
|
+
playInitialState?: boolean;
|
|
14
18
|
children: import('react').ReactNode;
|
|
15
19
|
}) => import("react/jsx-runtime").JSX.Element, useDialogMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalDialogMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DialogHeadingBlockProps, DialogPortalShellProps } from './dialogTypes';
|
|
2
2
|
export declare const DialogContent: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
3
3
|
motion?: import('../../..').Prettify<import('./dialogTypes').DialogLifecycleMotion>;
|
|
4
4
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -11,7 +11,7 @@ export declare const DialogTitle: import('react').ForwardRefExoticComponent<impo
|
|
|
11
11
|
export declare const DialogDescription: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
12
12
|
motion?: import('../../..').Prettify<import('./dialogTypes').DialogPartMotion>;
|
|
13
13
|
} & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
14
|
-
export declare function DialogHeadingBlock({ className, ...rest }: DialogHeadingBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function DialogHeadingBlock({ className, motion, onPointerOver, onPointerOut, ...rest }: DialogHeadingBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export declare namespace DialogHeadingBlock {
|
|
16
16
|
var displayName: string;
|
|
17
17
|
}
|
|
@@ -20,23 +20,28 @@ export declare const DialogClose: import('react').ForwardRefExoticComponent<Omit
|
|
|
20
20
|
size?: import('../CloseButton').CloseButtonSize;
|
|
21
21
|
ripple?: boolean;
|
|
22
22
|
classNames?: import('../../..').Prettify<import('../CloseButton').CloseButtonClassNames>;
|
|
23
|
-
motion?: import('../../..').Prettify<import('../CloseButton').CloseButtonMotion
|
|
23
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('../CloseButton').CloseButtonMotion>>;
|
|
24
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
24
25
|
} & {
|
|
25
26
|
motion?: import('../../..').Prettify<import('./dialogTypes').DialogLifecycleMotion>;
|
|
26
27
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
27
|
-
export declare const DialogBody: import('react').ForwardRefExoticComponent<
|
|
28
|
+
export declare const DialogBody: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
29
|
+
motion?: import('../../..').Prettify<import('./dialogTypes').DialogLifecycleMotion>;
|
|
30
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
28
31
|
export declare const DialogFooter: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
29
32
|
motion?: import('../../..').Prettify<import('./dialogTypes').DialogLifecycleMotion>;
|
|
30
33
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
31
34
|
export declare const DialogTrigger: import('react').ForwardRefExoticComponent<import('react').ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
32
35
|
asChild?: boolean;
|
|
33
36
|
children?: import('react').ReactNode;
|
|
37
|
+
motion?: import('../../..').Prettify<import('./dialogTypes').DialogPartMotion>;
|
|
34
38
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
35
39
|
export declare const DialogPanel: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
36
40
|
variant?: import('./dialogTypes').DialogVariant;
|
|
37
41
|
dismissOnBackdrop?: boolean;
|
|
38
42
|
themeAnchor?: HTMLElement | null;
|
|
39
43
|
portalContainer?: HTMLElement | null;
|
|
40
|
-
motion?: import('../../..').Prettify<import('./dialogTypes').DialogMotion
|
|
44
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./dialogTypes').DialogMotion>>;
|
|
45
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
41
46
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
42
47
|
export declare function DialogPortalShell({ children, className, style, variant, sizePreset, portalTheme, lightUi, titleId, descriptionId, hasTitle, hasDescription, dialogRef, overlayRef, panelRef, panelForwardedRef, panelRest, bindGlossPanelRef, onBackdropMouseDown, onDialogClose, onDialogCancel, contained, }: DialogPortalShellProps): import("react/jsx-runtime").JSX.Element;
|