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,6 +1,6 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, HTMLAttributes, ReactNode, RefObject } 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 TabsOrientation = "horizontal" | "vertical";
|
|
6
6
|
export type TabsVariant = "default" | "outline" | "secondary" | "gloss";
|
|
@@ -47,8 +47,15 @@ export type TabsProps = Omit<HTMLAttributes<HTMLDivElement>, "defaultValue"> & {
|
|
|
47
47
|
* Indicator FLIP is kit-internal — not a public slot. Do not tween `width`/`left` of the indicator.
|
|
48
48
|
* Inactive tabs default to `hoverLiftFirstLevel` + `pressSqueeze` on `tabText`.
|
|
49
49
|
* Phase `change` plays on `root` when the selected value updates.
|
|
50
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
50
51
|
*/
|
|
51
|
-
motion?: Prettify<TabsMotion
|
|
52
|
+
motion?: Prettify<MotionMapWithEvents<TabsMotion>>;
|
|
53
|
+
/**
|
|
54
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
55
|
+
* One handle → this Tabs chrome scope (`root` / `list`). Nested `Tabs.Tab` /
|
|
56
|
+
* `Tabs.Panel` are separate scopes — pass a handle there. Not placed on the DOM.
|
|
57
|
+
*/
|
|
58
|
+
motionController?: MotionController;
|
|
52
59
|
};
|
|
53
60
|
export type UseTabsRootStateProps = Pick<TabsProps, "value" | "defaultValue" | "onValueChange" | "orientation" | "size" | "variant" | "disabled">;
|
|
54
61
|
export type TabsListProps = HTMLAttributes<HTMLDivElement> & {
|
|
@@ -59,11 +66,21 @@ export type TabsTabProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "value"
|
|
|
59
66
|
children?: ReactNode;
|
|
60
67
|
asChild?: boolean;
|
|
61
68
|
motion?: Prettify<TabsPartMotion>;
|
|
69
|
+
/**
|
|
70
|
+
* Handle for this tab's nested scope. `play()` looks for `root` (skip) —
|
|
71
|
+
* use `playSlot("tab")` / `playSlot("tabText")`.
|
|
72
|
+
*/
|
|
73
|
+
motionController?: MotionController;
|
|
62
74
|
};
|
|
63
75
|
export type TabsPanelProps = HTMLAttributes<HTMLDivElement> & {
|
|
64
76
|
value: string;
|
|
65
77
|
children?: ReactNode;
|
|
66
78
|
motion?: Prettify<TabsPartMotion>;
|
|
79
|
+
/**
|
|
80
|
+
* Handle for this panel's nested scope. `play()` looks for `root` (skip) —
|
|
81
|
+
* use `playSlot("panel")`.
|
|
82
|
+
*/
|
|
83
|
+
motionController?: MotionController;
|
|
67
84
|
};
|
|
68
85
|
export type TabsContextValue = {
|
|
69
86
|
value: string;
|
|
@@ -5,5 +5,6 @@ export declare const Text: import('react').ForwardRefExoticComponent<Omit<HTMLAt
|
|
|
5
5
|
as?: import('react').ElementType;
|
|
6
6
|
inheritColor?: boolean;
|
|
7
7
|
className?: string;
|
|
8
|
-
motion?: import('../../..').Prettify<import('./textTypes').TextMotion
|
|
8
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./textTypes').TextMotion>>;
|
|
9
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
9
10
|
} & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
/** Scope only. Defaults and host play live in `textAnimations.ts`. */
|
|
2
|
-
export declare const TextMotionProvider: ({ motion, defaults, params, children, }: {
|
|
3
|
-
motion?: import('../utils/slotMotion').
|
|
2
|
+
export declare const TextMotionProvider: ({ 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, useTextMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalTextMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementType, 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
|
export type TextVariant = "accent-header" | "header-1" | "header-2" | "large" | "mid" | "base" | "small" | "xsmall";
|
|
5
5
|
export type TextPartMotion = {
|
|
6
6
|
hoverIn?: MotionValue;
|
|
@@ -21,6 +21,12 @@ export type TextProps = Omit<HTMLAttributes<HTMLElement>, "className"> & {
|
|
|
21
21
|
/**
|
|
22
22
|
* Per-slot motion (`root`). Defaults are empty — custom factories are opt-in.
|
|
23
23
|
* `enter` runs on mount only when set.
|
|
24
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
24
25
|
*/
|
|
25
|
-
motion?: Prettify<TextMotion
|
|
26
|
+
motion?: Prettify<MotionMapWithEvents<TextMotion>>;
|
|
27
|
+
/**
|
|
28
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
29
|
+
* Forwarded to the motion Provider (`controller`), not onto the DOM.
|
|
30
|
+
*/
|
|
31
|
+
motionController?: MotionController;
|
|
26
32
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TextAreaSimpleProps } from './textAreaTypes';
|
|
2
|
-
export type { TextAreaClassNames, TextAreaErrorProps, TextAreaHintProps, TextAreaControlProps, TextAreaProps, TextAreaSimpleProps, TextAreaSize, TextAreaStatus, TextAreaVariant, TextAreaMotion, TextAreaPartMotion, } from './textAreaTypes';
|
|
2
|
+
export type { TextAreaClassNames, TextAreaErrorProps, TextAreaHintProps, TextAreaLabelProps, TextAreaControlProps, TextAreaProps, TextAreaSimpleProps, TextAreaSize, TextAreaStatus, TextAreaVariant, TextAreaMotion, TextAreaPartMotion, } from './textAreaTypes';
|
|
3
3
|
export { TextAreaControl, TextAreaError, TextAreaHint, TextAreaLabel } from './textAreaParts';
|
|
4
|
-
export declare function TextAreaRoot({ children, label, hint, error, className, classNames, id: idProp, required, status, size, motion, ...rest }: TextAreaSimpleProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function TextAreaRoot({ children, label, hint, error, className, classNames, id: idProp, required, status, size, motion, motionController, ...rest }: TextAreaSimpleProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare namespace TextAreaRoot {
|
|
6
6
|
var displayName: string;
|
|
7
7
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TextAreaRoot } from './TextArea';
|
|
2
2
|
export declare const TextArea: typeof TextAreaRoot & {
|
|
3
|
-
Label:
|
|
3
|
+
Label: import('react').ForwardRefExoticComponent<Omit<import('../Label').LabelProps, "motion" | "motionController"> & {
|
|
4
|
+
motion?: import('../../..').Prettify<import('./textAreaTypes').TextAreaPartMotion>;
|
|
5
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
4
6
|
Control: import('react').ForwardRefExoticComponent<Omit<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> & {
|
|
5
7
|
variant?: import('./textAreaTypes').TextAreaVariant;
|
|
6
8
|
size?: import('./textAreaTypes').TextAreaSize;
|
|
@@ -9,9 +11,17 @@ export declare const TextArea: typeof TextAreaRoot & {
|
|
|
9
11
|
resizable?: boolean;
|
|
10
12
|
onPointerDown?: import('react').PointerEventHandler<HTMLDivElement>;
|
|
11
13
|
motion?: import('../../..').Prettify<import('./textAreaTypes').TextAreaPartMotion>;
|
|
14
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
12
15
|
} & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
13
|
-
Hint:
|
|
14
|
-
|
|
16
|
+
Hint: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
17
|
+
children?: import('react').ReactNode;
|
|
18
|
+
status?: Exclude<import('./textAreaTypes').TextAreaStatus, "danger"> | "default";
|
|
19
|
+
motion?: import('../../..').Prettify<import('./textAreaTypes').TextAreaPartMotion>;
|
|
20
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
21
|
+
Error: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
22
|
+
children?: import('react').ReactNode;
|
|
23
|
+
motion?: import('../../..').Prettify<import('./textAreaTypes').TextAreaPartMotion>;
|
|
24
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
15
25
|
};
|
|
16
|
-
export type { TextAreaClassNames, TextAreaControlProps, TextAreaSize, TextAreaStatus, TextAreaVariant, TextAreaProps, TextAreaHintProps, TextAreaErrorProps, TextAreaSimpleProps, TextAreaMotion, TextAreaPartMotion, } from './textAreaTypes';
|
|
26
|
+
export type { TextAreaClassNames, TextAreaControlProps, TextAreaSize, TextAreaStatus, TextAreaVariant, TextAreaProps, TextAreaHintProps, TextAreaLabelProps, TextAreaErrorProps, TextAreaSimpleProps, TextAreaMotion, TextAreaPartMotion, } from './textAreaTypes';
|
|
17
27
|
export { useTextAreaFieldContext, useOptionalTextAreaFieldContext, useTextAreaClassNames, } from './textAreaContext';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MutableRefObject, PointerEvent } from 'react';
|
|
1
|
+
import { ForwardedRef, MutableRefObject, PointerEvent, PointerEventHandler } from 'react';
|
|
2
2
|
import { TextAreaMotion, TextAreaPartMotion, UseTextAreaShellAnimationsProps } from './textAreaTypes';
|
|
3
3
|
export declare function resolveTextAreaMotionDefaults({ isGloss, blocked, }: {
|
|
4
4
|
isGloss: boolean;
|
|
@@ -27,3 +27,21 @@ export declare function useTextAreaShellAnimations({ shellRef, blocked, variant,
|
|
|
27
27
|
standardShellHoverMotionClass: string;
|
|
28
28
|
};
|
|
29
29
|
export type { TextAreaPartMotion };
|
|
30
|
+
export type TextAreaChromeSlot = "label" | "hint" | "error";
|
|
31
|
+
export declare function useTextAreaChromeSlot(slot: TextAreaChromeSlot, { motion, forwardedRef, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }?: {
|
|
32
|
+
motion?: TextAreaPartMotion;
|
|
33
|
+
forwardedRef?: ForwardedRef<HTMLElement>;
|
|
34
|
+
onPointerOver?: PointerEventHandler<HTMLElement>;
|
|
35
|
+
onPointerOut?: PointerEventHandler<HTMLElement>;
|
|
36
|
+
onPointerDown?: PointerEventHandler<HTMLElement>;
|
|
37
|
+
onPointerUp?: PointerEventHandler<HTMLElement>;
|
|
38
|
+
}): {
|
|
39
|
+
setRef: (node: HTMLElement | null) => void;
|
|
40
|
+
targetRef: import('react').RefObject<HTMLElement | null>;
|
|
41
|
+
pointerHandlers: {
|
|
42
|
+
onPointerOver: (e: PointerEvent<HTMLElement>) => void;
|
|
43
|
+
onPointerOut: (e: PointerEvent<HTMLElement>) => void;
|
|
44
|
+
onPointerDown: (e: PointerEvent<HTMLElement>) => void;
|
|
45
|
+
onPointerUp: (e: PointerEvent<HTMLElement>) => void;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -9,10 +9,14 @@ export declare function useTextAreaFieldContext(): TextAreaFieldContextValue;
|
|
|
9
9
|
export declare function useOptionalTextAreaFieldContext(): TextAreaFieldContextValue | null;
|
|
10
10
|
export declare function useTextAreaClassNames(): TextAreaClassNames;
|
|
11
11
|
/** Scope only. Defaults and host play live in `textAreaAnimations.ts`. */
|
|
12
|
-
export declare const TextAreaMotionProvider: ({ motion, defaults, params, children, }: {
|
|
13
|
-
motion?: import('../utils/slotMotion').
|
|
12
|
+
export declare const TextAreaMotionProvider: ({ 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, useTextAreaMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalTextAreaMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
18
22
|
export { TextAreaFieldContext };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PointerEventHandler } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { TextAreaErrorProps, TextAreaHintProps, TextAreaPartMotion, TextAreaSimpleBodyProps } from './textAreaTypes';
|
|
2
|
+
import { TextAreaPartMotion, TextAreaSimpleBodyProps } from './textAreaTypes';
|
|
4
3
|
export declare const TextAreaControl: import('react').ForwardRefExoticComponent<Omit<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> & {
|
|
5
4
|
variant?: import('./textAreaTypes').TextAreaVariant;
|
|
6
5
|
size?: import('./textAreaTypes').TextAreaSize;
|
|
@@ -9,17 +8,18 @@ export declare const TextAreaControl: import('react').ForwardRefExoticComponent<
|
|
|
9
8
|
resizable?: boolean;
|
|
10
9
|
onPointerDown?: PointerEventHandler<HTMLDivElement>;
|
|
11
10
|
motion?: import('../../..').Prettify<TextAreaPartMotion>;
|
|
11
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
12
12
|
} & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
13
|
-
export declare
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
export declare
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
13
|
+
export declare const TextAreaLabel: import('react').ForwardRefExoticComponent<Omit<import('../Label').LabelProps, "motion" | "motionController"> & {
|
|
14
|
+
motion?: import('../../..').Prettify<TextAreaPartMotion>;
|
|
15
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
16
|
+
export declare const TextAreaHint: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
17
|
+
children?: import('react').ReactNode;
|
|
18
|
+
status?: Exclude<import('./textAreaTypes').TextAreaStatus, "danger"> | "default";
|
|
19
|
+
motion?: import('../../..').Prettify<TextAreaPartMotion>;
|
|
20
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
21
|
+
export declare const TextAreaError: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
22
|
+
children?: import('react').ReactNode;
|
|
23
|
+
motion?: import('../../..').Prettify<TextAreaPartMotion>;
|
|
24
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
25
25
|
export declare function TextAreaSimpleBody({ label, hint, error, textareaId, labelId, size, status, controlProps, }: TextAreaSimpleBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { HTMLAttributes, MutableRefObject, PointerEvent, PointerEventHandler, ReactNode, RefObject, TextareaHTMLAttributes } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
3
|
import { ComponentSize } from '../utils/sizeLayout';
|
|
4
|
+
import { LabelProps } from '../Label';
|
|
4
5
|
import { SemanticStatus } from '../utils/semanticStatusIcons';
|
|
5
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
6
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
6
7
|
export type TextAreaVariant = "default" | "outline" | "secondary" | "gloss";
|
|
7
8
|
export type TextAreaStatus = SemanticStatus;
|
|
8
9
|
export type TextAreaSize = ComponentSize;
|
|
@@ -20,11 +21,16 @@ export type TextAreaPartMotion = {
|
|
|
20
21
|
hoverOut?: MotionValue;
|
|
21
22
|
pressIn?: MotionValue;
|
|
22
23
|
pressOut?: MotionValue;
|
|
24
|
+
enter?: MotionValue;
|
|
25
|
+
leave?: MotionValue;
|
|
23
26
|
};
|
|
24
27
|
export type TextAreaMotion = {
|
|
25
28
|
shell?: TextAreaPartMotion;
|
|
26
29
|
control?: TextAreaPartMotion;
|
|
27
30
|
resizeHandle?: TextAreaPartMotion;
|
|
31
|
+
label?: TextAreaPartMotion;
|
|
32
|
+
hint?: TextAreaPartMotion;
|
|
33
|
+
error?: TextAreaPartMotion;
|
|
28
34
|
};
|
|
29
35
|
export type TextAreaControlProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> & {
|
|
30
36
|
variant?: TextAreaVariant;
|
|
@@ -35,6 +41,11 @@ export type TextAreaControlProps = Omit<TextareaHTMLAttributes<HTMLTextAreaEleme
|
|
|
35
41
|
onPointerDown?: PointerEventHandler<HTMLDivElement>;
|
|
36
42
|
/** Shell part motion. Root `motion.shell` still applies; this wins on the Control host. */
|
|
37
43
|
motion?: Prettify<TextAreaPartMotion>;
|
|
44
|
+
/**
|
|
45
|
+
* Deferred handle for the Control host (`shell`, `control`, `resizeHandle`).
|
|
46
|
+
* One handle → this nested scope. Simple API: pass `motionController` on `TextArea` — it is forwarded here.
|
|
47
|
+
*/
|
|
48
|
+
motionController?: MotionController;
|
|
38
49
|
};
|
|
39
50
|
export type TextAreaFieldContextValue = {
|
|
40
51
|
textareaId: string;
|
|
@@ -62,10 +73,20 @@ export type TextAreaProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
62
73
|
size?: TextAreaSize;
|
|
63
74
|
classNames?: Prettify<TextAreaClassNames>;
|
|
64
75
|
/**
|
|
65
|
-
* Per-slot motion (`shell`, `control`, `resizeHandle`).
|
|
76
|
+
* Per-slot motion (`shell`, `control`, `resizeHandle`, `label`, `hint`, `error`).
|
|
66
77
|
* Resize drag height is kit-internal, not a public MotionVars layout tween.
|
|
78
|
+
* Chrome registers on the Root scope (siblings of Control). Control is the nested shell host.
|
|
79
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
80
|
+
* Simple API: `motionController` is forwarded to `TextArea.Control` (shell host).
|
|
81
|
+
* Compound: this handle attaches to the Root chrome scope; pass another handle on `Control`.
|
|
82
|
+
*/
|
|
83
|
+
motion?: Prettify<MotionMapWithEvents<TextAreaMotion>>;
|
|
84
|
+
/**
|
|
85
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
86
|
+
* Simple API: forwarded to the Control nested Provider. Compound: Root chrome scope.
|
|
87
|
+
* Not placed on the DOM.
|
|
67
88
|
*/
|
|
68
|
-
|
|
89
|
+
motionController?: MotionController;
|
|
69
90
|
};
|
|
70
91
|
export type TextAreaSimpleProps = TextAreaProps & Omit<TextAreaControlProps, "motion">;
|
|
71
92
|
export type UseTextAreaShellAnimationsProps = {
|
|
@@ -77,12 +98,17 @@ export type UseTextAreaShellAnimationsProps = {
|
|
|
77
98
|
pointerInsideRef: MutableRefObject<boolean>;
|
|
78
99
|
onPointerDown?: (e: PointerEvent<HTMLDivElement>) => void;
|
|
79
100
|
};
|
|
101
|
+
export type TextAreaLabelProps = Omit<LabelProps, "motion" | "motionController"> & {
|
|
102
|
+
motion?: Prettify<TextAreaPartMotion>;
|
|
103
|
+
};
|
|
80
104
|
export type TextAreaHintProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
81
105
|
children?: ReactNode;
|
|
82
106
|
status?: Exclude<TextAreaStatus, "danger"> | "default";
|
|
107
|
+
motion?: Prettify<TextAreaPartMotion>;
|
|
83
108
|
};
|
|
84
109
|
export type TextAreaErrorProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
85
110
|
children?: ReactNode;
|
|
111
|
+
motion?: Prettify<TextAreaPartMotion>;
|
|
86
112
|
};
|
|
87
113
|
export type UseTextAreaRootStateProps = TextAreaSimpleProps;
|
|
88
114
|
export type TextAreaSimpleBodyProps = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TimeFieldProps } from './timeFieldTypes';
|
|
2
|
-
export type { TimeFieldClassNames, TimeFieldControlProps, TimeFieldErrorProps, TimeFieldFormat, TimeFieldHintProps, TimeFieldProps, TimeFieldSize, TimeFieldStatus, TimeFieldVariant, TimeFieldMotion, TimeFieldPartMotion, } from './timeFieldTypes';
|
|
2
|
+
export type { TimeFieldClassNames, TimeFieldControlProps, TimeFieldErrorProps, TimeFieldFormat, TimeFieldHintProps, TimeFieldLabelProps, TimeFieldProps, TimeFieldSize, TimeFieldStatus, TimeFieldVariant, TimeFieldMotion, TimeFieldPartMotion, } from './timeFieldTypes';
|
|
3
3
|
export { TimeFieldControl, TimeFieldError, TimeFieldHint, TimeFieldLabel } from './timeFieldParts';
|
|
4
|
-
export declare function TimeFieldRoot({ children, label, hint, error, className, classNames, id: idProp, required, status, size, variant, value, defaultValue, onValueChange, format, disabled, compact, prefix, suffix, segmentSeparator, motion, ...rest }: TimeFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function TimeFieldRoot({ children, label, hint, error, className, classNames, id: idProp, required, status, size, variant, value, defaultValue, onValueChange, format, disabled, compact, prefix, suffix, segmentSeparator, motion, motionController, ...rest }: TimeFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare namespace TimeFieldRoot {
|
|
6
6
|
var displayName: string;
|
|
7
7
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TimeFieldRoot } from './TimeField';
|
|
2
2
|
export declare const TimeField: typeof TimeFieldRoot & {
|
|
3
|
-
Label:
|
|
3
|
+
Label: import('react').ForwardRefExoticComponent<Omit<import('../Field').FieldLabelProps, "motion" | "motionController"> & {
|
|
4
|
+
motion?: import('../../..').Prettify<import('./timeFieldTypes').TimeFieldPartMotion>;
|
|
5
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
4
6
|
Control: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLFieldSetElement>, "prefix" | "onChange" | "suffix"> & {
|
|
5
7
|
value?: string;
|
|
6
8
|
defaultValue?: string;
|
|
@@ -16,9 +18,16 @@ export declare const TimeField: typeof TimeFieldRoot & {
|
|
|
16
18
|
segmentSeparator?: import('react').ReactNode;
|
|
17
19
|
onPointerDown?: import('react').PointerEventHandler<HTMLFieldSetElement>;
|
|
18
20
|
motion?: import('../../..').Prettify<import('./timeFieldTypes').TimeFieldPartMotion>;
|
|
21
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
19
22
|
} & import('react').RefAttributes<HTMLFieldSetElement>>;
|
|
20
|
-
Hint:
|
|
21
|
-
|
|
23
|
+
Hint: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
24
|
+
children?: import('react').ReactNode;
|
|
25
|
+
motion?: import('../../..').Prettify<import('./timeFieldTypes').TimeFieldPartMotion>;
|
|
26
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
27
|
+
Error: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
28
|
+
children?: import('react').ReactNode;
|
|
29
|
+
motion?: import('../../..').Prettify<import('./timeFieldTypes').TimeFieldPartMotion>;
|
|
30
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
22
31
|
};
|
|
23
|
-
export type { TimeFieldClassNames, TimeFieldProps, TimeFieldControlProps, TimeFieldHintProps, TimeFieldErrorProps, TimeFieldSize, TimeFieldStatus, TimeFieldVariant, TimeFieldFormat, TimeFieldMotion, TimeFieldPartMotion, } from './timeFieldTypes';
|
|
32
|
+
export type { TimeFieldClassNames, TimeFieldProps, TimeFieldControlProps, TimeFieldHintProps, TimeFieldErrorProps, TimeFieldLabelProps, TimeFieldSize, TimeFieldStatus, TimeFieldVariant, TimeFieldFormat, TimeFieldMotion, TimeFieldPartMotion, } from './timeFieldTypes';
|
|
24
33
|
export { useTimeFieldContext, useOptionalTimeFieldContext, useTimeFieldClassNames, } from './timeFieldContext';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MutableRefObject, PointerEvent } from 'react';
|
|
2
|
-
import { TimeFieldMotion, UseTimeFieldShellAnimationsProps } from './timeFieldTypes';
|
|
1
|
+
import { ForwardedRef, MutableRefObject, PointerEvent, PointerEventHandler } from 'react';
|
|
2
|
+
import { TimeFieldMotion, TimeFieldPartMotion, UseTimeFieldShellAnimationsProps } from './timeFieldTypes';
|
|
3
3
|
export declare function resolveTimeFieldMotionDefaults({ isGloss, disabled, }: {
|
|
4
4
|
isGloss: boolean;
|
|
5
5
|
disabled: boolean;
|
|
@@ -31,3 +31,21 @@ export declare function useTimeFieldShellAnimations({ shellRef, disabled, varian
|
|
|
31
31
|
"data-gloss-disabled"?: undefined;
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
+
export type TimeFieldChromeSlot = "label" | "hint" | "error";
|
|
35
|
+
export declare function useTimeFieldChromeSlot(slot: TimeFieldChromeSlot, { motion, forwardedRef, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }?: {
|
|
36
|
+
motion?: TimeFieldPartMotion;
|
|
37
|
+
forwardedRef?: ForwardedRef<HTMLElement>;
|
|
38
|
+
onPointerOver?: PointerEventHandler<HTMLElement>;
|
|
39
|
+
onPointerOut?: PointerEventHandler<HTMLElement>;
|
|
40
|
+
onPointerDown?: PointerEventHandler<HTMLElement>;
|
|
41
|
+
onPointerUp?: PointerEventHandler<HTMLElement>;
|
|
42
|
+
}): {
|
|
43
|
+
setRef: (node: HTMLElement | null) => void;
|
|
44
|
+
targetRef: import('react').RefObject<HTMLElement | null>;
|
|
45
|
+
pointerHandlers: {
|
|
46
|
+
onPointerOver: (e: PointerEvent<HTMLElement>) => void;
|
|
47
|
+
onPointerOut: (e: PointerEvent<HTMLElement>) => void;
|
|
48
|
+
onPointerDown: (e: PointerEvent<HTMLElement>) => void;
|
|
49
|
+
onPointerUp: (e: PointerEvent<HTMLElement>) => void;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -9,10 +9,14 @@ export declare function useTimeFieldContext(): TimeFieldFieldContextValue;
|
|
|
9
9
|
export declare function useOptionalTimeFieldContext(): TimeFieldFieldContextValue | null;
|
|
10
10
|
export declare function useTimeFieldClassNames(): TimeFieldClassNames;
|
|
11
11
|
/** Scope only. Defaults and host play live in `timeFieldAnimations.ts`. */
|
|
12
|
-
export declare const TimeFieldMotionProvider: ({ motion, defaults, params, children, }: {
|
|
13
|
-
motion?: import('../utils/slotMotion').
|
|
12
|
+
export declare const TimeFieldMotionProvider: ({ 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, useTimeFieldMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalTimeFieldMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
18
22
|
export { TimeFieldContext };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PointerEventHandler, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { TimeFieldErrorProps, TimeFieldHintProps, TimeFieldPartMotion, TimeFieldSimpleBodyProps } from './timeFieldTypes';
|
|
2
|
+
import { TimeFieldPartMotion, TimeFieldSimpleBodyProps } from './timeFieldTypes';
|
|
4
3
|
export declare const TimeFieldControl: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLFieldSetElement>, "prefix" | "onChange" | "suffix"> & {
|
|
5
4
|
value?: string;
|
|
6
5
|
defaultValue?: string;
|
|
@@ -16,17 +15,17 @@ export declare const TimeFieldControl: import('react').ForwardRefExoticComponent
|
|
|
16
15
|
segmentSeparator?: ReactNode;
|
|
17
16
|
onPointerDown?: PointerEventHandler<HTMLFieldSetElement>;
|
|
18
17
|
motion?: import('../../..').Prettify<TimeFieldPartMotion>;
|
|
18
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
19
19
|
} & import('react').RefAttributes<HTMLFieldSetElement>>;
|
|
20
|
-
export declare
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
20
|
+
export declare const TimeFieldLabel: import('react').ForwardRefExoticComponent<Omit<import('../Field').FieldLabelProps, "motion" | "motionController"> & {
|
|
21
|
+
motion?: import('../../..').Prettify<TimeFieldPartMotion>;
|
|
22
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
23
|
+
export declare const TimeFieldHint: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
24
|
+
children?: ReactNode;
|
|
25
|
+
motion?: import('../../..').Prettify<TimeFieldPartMotion>;
|
|
26
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
27
|
+
export declare const TimeFieldError: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
28
|
+
children?: ReactNode;
|
|
29
|
+
motion?: import('../../..').Prettify<TimeFieldPartMotion>;
|
|
30
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
32
31
|
export declare function TimeFieldSimpleBody({ label, hint, error, labelId, controlProps, }: TimeFieldSimpleBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { HTMLAttributes, MutableRefObject, PointerEvent, PointerEventHandler, ReactNode, RefObject } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
|
+
import { FieldLabelProps } from '../Field';
|
|
3
4
|
import { ComponentSize } from '../utils/sizeLayout';
|
|
4
5
|
import { SemanticStatus } from '../utils/semanticStatusIcons';
|
|
5
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
6
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
6
7
|
export type TimeFieldSize = ComponentSize;
|
|
7
8
|
export type TimeFieldStatus = SemanticStatus;
|
|
8
9
|
export type TimeFieldVariant = "default" | "outline" | "secondary" | "segmented" | "gloss";
|
|
@@ -41,6 +42,9 @@ export type TimeFieldMotion = {
|
|
|
41
42
|
prefix?: TimeFieldPartMotion;
|
|
42
43
|
suffix?: TimeFieldPartMotion;
|
|
43
44
|
segments?: TimeFieldPartMotion;
|
|
45
|
+
label?: TimeFieldPartMotion;
|
|
46
|
+
hint?: TimeFieldPartMotion;
|
|
47
|
+
error?: TimeFieldPartMotion;
|
|
44
48
|
};
|
|
45
49
|
export type TimeFieldFieldContextValue = {
|
|
46
50
|
fieldId: string;
|
|
@@ -77,6 +81,11 @@ export type TimeFieldControlProps = Omit<HTMLAttributes<HTMLFieldSetElement>, "o
|
|
|
77
81
|
onPointerDown?: PointerEventHandler<HTMLFieldSetElement>;
|
|
78
82
|
/** Shell part motion. Root `motion.shell` still applies; this wins on the Control host. */
|
|
79
83
|
motion?: Prettify<TimeFieldPartMotion>;
|
|
84
|
+
/**
|
|
85
|
+
* Deferred handle for the Control host (`shell`, `prefix`, `suffix`, `segments`).
|
|
86
|
+
* One handle → this nested scope. Simple API: pass `motionController` on `TimeField` — it is forwarded here.
|
|
87
|
+
*/
|
|
88
|
+
motionController?: MotionController;
|
|
80
89
|
};
|
|
81
90
|
export type TimeFieldProps = Omit<HTMLAttributes<HTMLDivElement>, "prefix" | "suffix"> & {
|
|
82
91
|
children?: ReactNode;
|
|
@@ -100,10 +109,20 @@ export type TimeFieldProps = Omit<HTMLAttributes<HTMLDivElement>, "prefix" | "su
|
|
|
100
109
|
segmentSeparator?: ReactNode;
|
|
101
110
|
classNames?: Prettify<TimeFieldClassNames>;
|
|
102
111
|
/**
|
|
103
|
-
* Per-slot motion (`shell`, `prefix`, `suffix`, `segments`).
|
|
112
|
+
* Per-slot motion (`shell`, `prefix`, `suffix`, `segments`, `label`, `hint`, `error`).
|
|
113
|
+
* Chrome registers on the Root scope (siblings of Control). Control is the nested shell host.
|
|
104
114
|
* Segment spinbuttons are not individual slots.
|
|
115
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
116
|
+
* Simple API: `motionController` is forwarded to `TimeField.Control` (shell host).
|
|
117
|
+
* Compound: this handle attaches to the Root chrome scope; pass another handle on `Control`.
|
|
118
|
+
*/
|
|
119
|
+
motion?: Prettify<MotionMapWithEvents<TimeFieldMotion>>;
|
|
120
|
+
/**
|
|
121
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
122
|
+
* Simple API: forwarded to the Control nested Provider. Compound: Root chrome scope.
|
|
123
|
+
* Not placed on the DOM.
|
|
105
124
|
*/
|
|
106
|
-
|
|
125
|
+
motionController?: MotionController;
|
|
107
126
|
};
|
|
108
127
|
export type UseTimeFieldShellAnimationsProps = {
|
|
109
128
|
shellRef: RefObject<HTMLFieldSetElement | null>;
|
|
@@ -113,11 +132,16 @@ export type UseTimeFieldShellAnimationsProps = {
|
|
|
113
132
|
pointerInsideRef: MutableRefObject<boolean>;
|
|
114
133
|
onPointerDown?: (e: PointerEvent<HTMLFieldSetElement>) => void;
|
|
115
134
|
};
|
|
135
|
+
export type TimeFieldLabelProps = Omit<FieldLabelProps, "motion" | "motionController"> & {
|
|
136
|
+
motion?: Prettify<TimeFieldPartMotion>;
|
|
137
|
+
};
|
|
116
138
|
export type TimeFieldHintProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
117
139
|
children?: ReactNode;
|
|
140
|
+
motion?: Prettify<TimeFieldPartMotion>;
|
|
118
141
|
};
|
|
119
142
|
export type TimeFieldErrorProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
120
143
|
children?: ReactNode;
|
|
144
|
+
motion?: Prettify<TimeFieldPartMotion>;
|
|
121
145
|
};
|
|
122
146
|
export type TimeFieldSimpleBodyProps = {
|
|
123
147
|
label?: ReactNode;
|
|
@@ -134,4 +158,4 @@ export type TimeFieldSimpleBodyProps = {
|
|
|
134
158
|
suffix?: ReactNode;
|
|
135
159
|
};
|
|
136
160
|
};
|
|
137
|
-
export type UseTimeFieldRootStateProps = TimeFieldProps
|
|
161
|
+
export type UseTimeFieldRootStateProps = Omit<TimeFieldProps, "motion" | "motionController">;
|
|
@@ -11,6 +11,7 @@ export declare const ToastRoot: import('react').ForwardRefExoticComponent<Omit<i
|
|
|
11
11
|
loading?: boolean;
|
|
12
12
|
onClose?: () => void;
|
|
13
13
|
classNames?: import('../../..').Prettify<import('./toastTypes').ToastClassNames>;
|
|
14
|
-
motion?: import('../../..').Prettify<import('./toastTypes').ToastMotion
|
|
14
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./toastTypes').ToastMotion>>;
|
|
15
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
15
16
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
16
17
|
export { ToastIndicator, ToastMessage, ToastContent, ToastTitle, ToastDescription, ToastAction, ToastClose, };
|
|
@@ -9,7 +9,8 @@ export declare const Toast: import('react').ForwardRefExoticComponent<Omit<impor
|
|
|
9
9
|
loading?: boolean;
|
|
10
10
|
onClose?: () => void;
|
|
11
11
|
classNames?: import('../../..').Prettify<import('./toastTypes').ToastClassNames>;
|
|
12
|
-
motion?: import('../../..').Prettify<import('./toastTypes').ToastMotion
|
|
12
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./toastTypes').ToastMotion>>;
|
|
13
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
13
14
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
14
15
|
Provider: typeof ToastProviderRoot;
|
|
15
16
|
Message: import('react').ForwardRefExoticComponent<import('./toastTypes').ToastMessageProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -7,7 +7,8 @@ import { ToastItemWrapperProps, ToastMotion, ToastViewportProps } from './toastT
|
|
|
7
7
|
* viewport height and scrim stay kit-internal.
|
|
8
8
|
*
|
|
9
9
|
* Host: `ToastItemWrapper` plays `enter` / `leave` on `root` and broadcasts
|
|
10
|
-
* nested slots.
|
|
10
|
+
* nested slots (`scheduleNestedEnterBroadcast`). Nested parts do not own mount enter.
|
|
11
|
+
* Defaults wrap the item host (`TOAST_MOTION_DEFAULTS`).
|
|
11
12
|
* `Toast.Provider` / `add().motion` pass the map (like Dialog root).
|
|
12
13
|
*/
|
|
13
14
|
export declare const TOAST_MOTION_HOST_SLOTS: readonly ["root"];
|
|
@@ -2,10 +2,14 @@ import { ToastClassNames, ToastClassNamesProviderProps, ToastContextValue, Toast
|
|
|
2
2
|
declare const ToastContext: import('react').Context<ToastContextValue | null>;
|
|
3
3
|
declare const ToastItemContext: import('react').Context<ToastItemContextValue | null>;
|
|
4
4
|
/** Scope only. Defaults and host play live in `toastAnimations.tsx`. */
|
|
5
|
-
export declare const ToastMotionProvider: ({ motion, defaults, params, children, }: {
|
|
6
|
-
motion?: import('../utils/slotMotion').
|
|
5
|
+
export declare const ToastMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
6
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
7
7
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
8
8
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
9
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
10
|
+
motionState?: string;
|
|
11
|
+
motionPayload?: unknown;
|
|
12
|
+
playInitialState?: boolean;
|
|
9
13
|
children: import('react').ReactNode;
|
|
10
14
|
}) => import("react/jsx-runtime").JSX.Element, useToastMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalToastMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
11
15
|
export declare function ToastClassNamesProvider({ classNames, children, }: ToastClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|