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
|
@@ -8,9 +8,13 @@ export declare function useInputFieldContext(): InputFieldContextValue;
|
|
|
8
8
|
export declare function useOptionalInputFieldContext(): InputFieldContextValue | null;
|
|
9
9
|
export declare function useInputClassNames(): InputClassNames;
|
|
10
10
|
/** Scope only. Defaults and host play live in `inputAnimations.ts`. */
|
|
11
|
-
export declare const InputMotionProvider: ({ motion, defaults, params, children, }: {
|
|
12
|
-
motion?: import('../utils/slotMotion').
|
|
11
|
+
export declare const InputMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
12
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
13
13
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
14
14
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
15
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
16
|
+
motionState?: string;
|
|
17
|
+
motionPayload?: unknown;
|
|
18
|
+
playInitialState?: boolean;
|
|
15
19
|
children: import('react').ReactNode;
|
|
16
20
|
}) => import("react/jsx-runtime").JSX.Element, useInputMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalInputMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -10,4 +10,5 @@ export declare const InputControl: import('react').ForwardRefExoticComponent<Omi
|
|
|
10
10
|
onPointerDown?: import('react').PointerEventHandler<HTMLDivElement>;
|
|
11
11
|
classNames?: import('../../..').Prettify<import('./inputTypes').InputClassNames>;
|
|
12
12
|
motion?: import('../../..').Prettify<InputPartMotion>;
|
|
13
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
13
14
|
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -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 InputLabel: import('react').ForwardRefExoticComponent<Omit<import('../Label').LabelProps, "motion" | "motionController"> & {
|
|
2
|
+
motion?: import('../../..').Prettify<import('./inputTypes').InputPartMotion>;
|
|
3
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
4
|
+
export declare const InputHint: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
5
|
+
children?: import('react').ReactNode;
|
|
6
|
+
status?: Exclude<import('./inputTypes').InputStatus, "danger"> | "default";
|
|
7
|
+
motion?: import('../../..').Prettify<import('./inputTypes').InputPartMotion>;
|
|
8
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
9
|
+
export declare const InputError: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
10
|
+
children?: import('react').ReactNode;
|
|
11
|
+
motion?: import('../../..').Prettify<import('./inputTypes').InputPartMotion>;
|
|
12
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -2,8 +2,9 @@ import { HTMLAttributes, InputHTMLAttributes, MutableRefObject, PointerEvent, Po
|
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
3
|
import { ButtonGroupSegment } from '../../composite/ButtonGroup/buttonGroupTypes';
|
|
4
4
|
import { ComponentSize } from '../utils/sizeLayout';
|
|
5
|
+
import { LabelProps } from '../Label';
|
|
5
6
|
import { SemanticStatus } from '../utils/semanticStatusIcons';
|
|
6
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
7
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
7
8
|
export type InputVariant = "default" | "outline" | "secondary" | "gloss";
|
|
8
9
|
export type InputStatus = SemanticStatus;
|
|
9
10
|
export type InputSize = ComponentSize;
|
|
@@ -40,6 +41,9 @@ export type InputMotion = {
|
|
|
40
41
|
passwordToggle?: InputPartMotion;
|
|
41
42
|
fileRow?: Pick<InputPartMotion, "leave" | "hoverIn" | "hoverOut">;
|
|
42
43
|
fileRemove?: InputPartMotion;
|
|
44
|
+
label?: InputPartMotion;
|
|
45
|
+
hint?: InputPartMotion;
|
|
46
|
+
error?: InputPartMotion;
|
|
43
47
|
};
|
|
44
48
|
export type InputControlProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "prefix" | "onPointerDown"> & {
|
|
45
49
|
variant?: InputVariant;
|
|
@@ -53,6 +57,11 @@ export type InputControlProps = Omit<InputHTMLAttributes<HTMLInputElement>, "siz
|
|
|
53
57
|
classNames?: Prettify<InputClassNames>;
|
|
54
58
|
/** Shell part motion. Root `motion.shell` still applies; this wins on the Control host. */
|
|
55
59
|
motion?: Prettify<InputPartMotion>;
|
|
60
|
+
/**
|
|
61
|
+
* Deferred handle for the Control host (`shell`, `control`, affixes, file slots).
|
|
62
|
+
* One handle → this nested scope. Simple API: pass `motionController` on `Input` — it is forwarded here.
|
|
63
|
+
*/
|
|
64
|
+
motionController?: MotionController;
|
|
56
65
|
};
|
|
57
66
|
export type InputFieldContextValue = {
|
|
58
67
|
inputId: string;
|
|
@@ -80,10 +89,21 @@ export type InputProps = Omit<HTMLAttributes<HTMLDivElement>, "prefix"> & {
|
|
|
80
89
|
size?: InputSize;
|
|
81
90
|
classNames?: Prettify<InputClassNames>;
|
|
82
91
|
/**
|
|
83
|
-
* Per-slot motion (`shell`, `control`, `prefix`, `suffix`, `passwordToggle`,
|
|
92
|
+
* Per-slot motion (`shell`, `control`, `prefix`, `suffix`, `passwordToggle`,
|
|
93
|
+
* `fileRow`, `fileRemove`, `label`, `hint`, `error`).
|
|
84
94
|
* File remove leave: `fileRow.leave` (`fileRowExit`).
|
|
95
|
+
* Chrome registers on the Root scope (siblings of Control). Control is the nested shell host.
|
|
96
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
97
|
+
* Simple API: `motionController` is forwarded to `Input.Control` (shell host).
|
|
98
|
+
* Compound: this handle attaches to the Root chrome scope; pass another handle on `Control`.
|
|
99
|
+
*/
|
|
100
|
+
motion?: Prettify<MotionMapWithEvents<InputMotion>>;
|
|
101
|
+
/**
|
|
102
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
103
|
+
* Simple API: forwarded to the Control nested Provider. Compound: Root chrome scope.
|
|
104
|
+
* Not placed on the DOM.
|
|
85
105
|
*/
|
|
86
|
-
|
|
106
|
+
motionController?: MotionController;
|
|
87
107
|
};
|
|
88
108
|
export type InputSimpleProps = InputProps & Omit<InputControlProps, "motion">;
|
|
89
109
|
export type UseInputShellAnimationsProps = {
|
|
@@ -95,12 +115,17 @@ export type UseInputShellAnimationsProps = {
|
|
|
95
115
|
pointerInsideRef: MutableRefObject<boolean>;
|
|
96
116
|
onPointerDown?: (e: PointerEvent<HTMLDivElement>) => void;
|
|
97
117
|
};
|
|
118
|
+
export type InputLabelProps = Omit<LabelProps, "motion" | "motionController"> & {
|
|
119
|
+
motion?: Prettify<InputPartMotion>;
|
|
120
|
+
};
|
|
98
121
|
export type InputHintProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
99
122
|
children?: ReactNode;
|
|
100
123
|
status?: Exclude<InputStatus, "danger"> | "default";
|
|
124
|
+
motion?: Prettify<InputPartMotion>;
|
|
101
125
|
};
|
|
102
126
|
export type InputErrorProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
103
127
|
children?: ReactNode;
|
|
128
|
+
motion?: Prettify<InputPartMotion>;
|
|
104
129
|
};
|
|
105
130
|
export type UseInputRootStateProps = InputSimpleProps;
|
|
106
131
|
export type PickedFileEntry = {
|
|
@@ -7,5 +7,6 @@ export declare const KbdRoot: import('react').ForwardRefExoticComponent<Omit<HTM
|
|
|
7
7
|
classNames?: import('../../..').Prettify<import('./kbdTypes').KbdClassNames>;
|
|
8
8
|
children?: import('react').ReactNode;
|
|
9
9
|
hoverLift?: boolean;
|
|
10
|
-
motion?: import('../../..').Prettify<KbdMotion
|
|
10
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<KbdMotion>>;
|
|
11
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
11
12
|
} & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { KbdText } from './kbdParts';
|
|
2
2
|
export declare const Kbd: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLElement>, "children"> & {
|
|
3
3
|
variant?: import('./kbdTypes').KbdVariant;
|
|
4
4
|
size?: import('./kbdTypes').KbdSize;
|
|
5
5
|
classNames?: import('../../..').Prettify<import('./kbdTypes').KbdClassNames>;
|
|
6
6
|
children?: import('react').ReactNode;
|
|
7
7
|
hoverLift?: boolean;
|
|
8
|
-
motion?: import('../../..').Prettify<import('./kbdTypes').KbdMotion
|
|
8
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./kbdTypes').KbdMotion>>;
|
|
9
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
9
10
|
} & import('react').RefAttributes<HTMLElement>> & {
|
|
10
|
-
Group:
|
|
11
|
+
Group: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
12
|
+
classNames?: import('../../..').Prettify<import('./kbdTypes').KbdClassNames>;
|
|
13
|
+
separator?: import('react').ReactNode | null;
|
|
14
|
+
children?: import('react').ReactNode;
|
|
15
|
+
motion?: import('../../..').Prettify<import('./kbdTypes').KbdPartMotion>;
|
|
16
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
17
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
11
18
|
Text: typeof KbdText;
|
|
12
19
|
};
|
|
13
20
|
export type { KbdProps, KbdVariant, KbdSize, KbdClassNames, KbdGroupProps, KbdMotion, KbdPartMotion, KbdTextProps, } from './Kbd';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ForwardedRef, PointerEvent as ReactPointerEvent } from 'react';
|
|
2
|
+
import { KbdMotion, KbdPartMotion, KbdVariant, UseKbdAnimationsProps } from './kbdTypes';
|
|
2
3
|
export declare function resolveKbdMotionDefaults({ variant, hoverLift, }: {
|
|
3
4
|
variant: KbdVariant;
|
|
4
5
|
hoverLift: boolean;
|
|
@@ -7,7 +8,22 @@ export declare function useKbdAnimations({ variant, hoverLift, motion, forwarded
|
|
|
7
8
|
setMergedRef: (node: HTMLElement | null) => void;
|
|
8
9
|
motionClass: string;
|
|
9
10
|
pointerHandlers: {
|
|
10
|
-
onPointerOver: (e:
|
|
11
|
-
onPointerOut: (e:
|
|
11
|
+
onPointerOver: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
12
|
+
onPointerOut: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare function useKbdGroupSlotMotion({ motion, forwardedRef, onPointerOver, onPointerOut, }?: {
|
|
16
|
+
motion?: KbdPartMotion;
|
|
17
|
+
forwardedRef?: ForwardedRef<HTMLSpanElement>;
|
|
18
|
+
onPointerOver?: (e: ReactPointerEvent<HTMLSpanElement>) => void;
|
|
19
|
+
onPointerOut?: (e: ReactPointerEvent<HTMLSpanElement>) => void;
|
|
20
|
+
}): {
|
|
21
|
+
setRef: (node: HTMLSpanElement | null) => void;
|
|
22
|
+
targetRef: import('react').RefObject<HTMLSpanElement | null>;
|
|
23
|
+
pointerHandlers: {
|
|
24
|
+
onPointerOver: (e: ReactPointerEvent<HTMLSpanElement>) => void;
|
|
25
|
+
onPointerOut: (e: ReactPointerEvent<HTMLSpanElement>) => void;
|
|
26
|
+
onPointerDown: (e: ReactPointerEvent<HTMLSpanElement>) => void;
|
|
27
|
+
onPointerUp: (e: ReactPointerEvent<HTMLSpanElement>) => void;
|
|
12
28
|
};
|
|
13
29
|
};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { KbdClassNames, KbdClassNamesProviderProps } from './kbdTypes';
|
|
2
2
|
/** Scope only. Defaults and host play live in `kbdAnimations.ts`. */
|
|
3
|
-
export declare const KbdMotionProvider: ({ motion, defaults, params, children, }: {
|
|
4
|
-
motion?: import('../utils/slotMotion').
|
|
3
|
+
export declare const KbdMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
4
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
5
5
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
6
6
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
7
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
8
|
+
motionState?: string;
|
|
9
|
+
motionPayload?: unknown;
|
|
10
|
+
playInitialState?: boolean;
|
|
7
11
|
children: import('react').ReactNode;
|
|
8
12
|
}) => import("react/jsx-runtime").JSX.Element, useKbdMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalKbdMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
9
13
|
export declare function KbdClassNamesProvider({ classNames, children, }: KbdClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare const KbdGroup: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
3
|
+
classNames?: import('../../..').Prettify<import('./kbdTypes').KbdClassNames>;
|
|
4
|
+
separator?: ReactNode | null;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
motion?: import('../../..').Prettify<import('./kbdTypes').KbdPartMotion>;
|
|
7
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
8
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
6
9
|
export { KbdText } from './kbdTextPart';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
1
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
2
2
|
import { ForwardedRef, HTMLAttributes, PointerEvent as ReactPointerEvent, ReactNode } from 'react';
|
|
3
3
|
import { Prettify } from '../../../utils/prettify';
|
|
4
4
|
export type KbdVariant = "default" | "primary" | "outline" | "secondary" | "gloss";
|
|
@@ -13,10 +13,12 @@ export type KbdClassNames = {
|
|
|
13
13
|
export type KbdPartMotion = {
|
|
14
14
|
hoverIn?: MotionValue;
|
|
15
15
|
hoverOut?: MotionValue;
|
|
16
|
+
enter?: MotionValue;
|
|
16
17
|
};
|
|
17
18
|
export type KbdMotion = {
|
|
18
19
|
root?: KbdPartMotion;
|
|
19
20
|
text?: KbdPartMotion;
|
|
21
|
+
group?: KbdPartMotion;
|
|
20
22
|
};
|
|
21
23
|
export type KbdProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
22
24
|
variant?: KbdVariant;
|
|
@@ -30,9 +32,15 @@ export type KbdProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
|
30
32
|
*/
|
|
31
33
|
hoverLift?: boolean;
|
|
32
34
|
/**
|
|
33
|
-
* Per-slot motion (`root`, `text`).
|
|
35
|
+
* Per-slot motion (`root`, `text`, `group`).
|
|
36
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
34
37
|
*/
|
|
35
|
-
motion?: Prettify<KbdMotion
|
|
38
|
+
motion?: Prettify<MotionMapWithEvents<KbdMotion>>;
|
|
39
|
+
/**
|
|
40
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
41
|
+
* Forwarded to the motion Provider (`controller`), not onto the DOM.
|
|
42
|
+
*/
|
|
43
|
+
motionController?: MotionController;
|
|
36
44
|
};
|
|
37
45
|
export type KbdGroupProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
38
46
|
classNames?: Prettify<KbdClassNames>;
|
|
@@ -42,6 +50,16 @@ export type KbdGroupProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> &
|
|
|
42
50
|
*/
|
|
43
51
|
separator?: ReactNode | null;
|
|
44
52
|
children?: ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* Part motion for the wrapping `<span>` (`group` slot).
|
|
55
|
+
* Standalone Group (no Kbd ancestor) creates its own scope when this or `motionController` is set.
|
|
56
|
+
*/
|
|
57
|
+
motion?: Prettify<KbdPartMotion>;
|
|
58
|
+
/**
|
|
59
|
+
* Deferred handle for a standalone Group (no parent Kbd). Inside `<Kbd>` use the Root handle.
|
|
60
|
+
* Not placed on the DOM.
|
|
61
|
+
*/
|
|
62
|
+
motionController?: MotionController;
|
|
45
63
|
};
|
|
46
64
|
export type KbdClassNamesProviderProps = {
|
|
47
65
|
classNames?: Prettify<KbdClassNames>;
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
+
import { ForwardedRef } from 'react';
|
|
1
2
|
import { LabelSlot } from './labelParts';
|
|
2
3
|
import { LabelProps } from './labelTypes';
|
|
3
4
|
export type { LabelProps, LabelClassNames, LabelMotion, LabelPartMotion, FieldLabelContextValue, } from './labelTypes';
|
|
4
|
-
export declare function LabelRoot({ children, className, required: requiredProp, htmlFor: htmlForProp, id: idProp, variant, onPointerOver, onPointerOut, onPointerDown, onPointerUp, ...rest }: Omit<LabelProps, "classNames" | "motion"
|
|
5
|
-
|
|
5
|
+
export declare function LabelRoot({ children, className, required: requiredProp, htmlFor: htmlForProp, id: idProp, variant, forwardedRef, onPointerOver, onPointerOut, onPointerDown, onPointerUp, ...rest }: Omit<LabelProps, "classNames" | "motion" | "motionController"> & {
|
|
6
|
+
forwardedRef?: ForwardedRef<HTMLElement>;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const Label: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children"> & {
|
|
9
|
+
children?: import('react').ReactNode;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
variant?: import('../Text').TextVariant;
|
|
12
|
+
classNames?: import('../../..').Prettify<import('./labelTypes').LabelClassNames>;
|
|
13
|
+
motion?: import('../../..').Prettify<import('../utils/slotMotion').MotionMapWithEvents<import('./labelTypes').LabelMotion>>;
|
|
14
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
15
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
6
16
|
export { LabelSlot };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Label, LabelRoot, LabelSlot } from './Label';
|
|
2
|
-
|
|
3
|
-
export type LabelComponent = ((props: LabelProps) => ReturnType<typeof Label>) & {
|
|
2
|
+
export type LabelComponent = typeof Label & {
|
|
4
3
|
Slot: typeof LabelSlot;
|
|
5
4
|
};
|
|
6
5
|
declare const LabelCompound: LabelComponent;
|
|
@@ -8,10 +8,14 @@ export declare function LabelClassNamesProvider({ classNames, children, }: Label
|
|
|
8
8
|
export declare function useOptionalFieldLabelContext(): FieldLabelContextValue | null;
|
|
9
9
|
export declare function useLabelClassNames(): LabelClassNames;
|
|
10
10
|
/** Scope only. Defaults and host play live in `labelAnimations.ts`. */
|
|
11
|
-
export declare const LabelMotionProvider: ({ motion, defaults, params, children, }: {
|
|
12
|
-
motion?: import('../utils/slotMotion').
|
|
11
|
+
export declare const LabelMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
12
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
13
13
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
14
14
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
15
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
16
|
+
motionState?: string;
|
|
17
|
+
motionPayload?: unknown;
|
|
18
|
+
playInitialState?: boolean;
|
|
15
19
|
children: import('react').ReactNode;
|
|
16
20
|
}) => import("react/jsx-runtime").JSX.Element, useLabelMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalLabelMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
17
21
|
export { FieldLabelContext };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LabelHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { TextVariant } from '../Text';
|
|
3
3
|
import { Prettify } from '../../../utils/prettify';
|
|
4
|
-
import { MotionValue } from '../utils/slotMotion';
|
|
4
|
+
import { MotionController, MotionMapWithEvents, MotionValue } from '../utils/slotMotion';
|
|
5
5
|
export type LabelClassNames = {
|
|
6
6
|
root?: string;
|
|
7
7
|
text?: string;
|
|
@@ -28,8 +28,14 @@ export type LabelProps = Omit<LabelHTMLAttributes<HTMLLabelElement>, "children">
|
|
|
28
28
|
classNames?: Prettify<LabelClassNames>;
|
|
29
29
|
/**
|
|
30
30
|
* Per-slot motion (`root`, `text`, `required`). Defaults are empty — custom factories are opt-in.
|
|
31
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
31
32
|
*/
|
|
32
|
-
motion?: Prettify<LabelMotion
|
|
33
|
+
motion?: Prettify<MotionMapWithEvents<LabelMotion>>;
|
|
34
|
+
/**
|
|
35
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
36
|
+
* Forwarded to the motion Provider (`controller`), not onto the DOM.
|
|
37
|
+
*/
|
|
38
|
+
motionController?: MotionController;
|
|
33
39
|
};
|
|
34
40
|
export type LabelClassNamesProviderProps = {
|
|
35
41
|
classNames?: Prettify<LabelClassNames>;
|
|
@@ -2,5 +2,5 @@ import { LinkIcon } from './linkParts';
|
|
|
2
2
|
import { LinkProps } from './linkTypes';
|
|
3
3
|
export type { LinkProps, LinkSize, LinkIconPos, LinkIconProps, LinkClassNames, LinkMotion, LinkPartMotion, } from './linkTypes';
|
|
4
4
|
export { LinkIcon };
|
|
5
|
-
export declare const LinkRoot: import('react').ForwardRefExoticComponent<Omit<LinkProps, "motion" | "classNames"> & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
5
|
+
export declare const LinkRoot: import('react').ForwardRefExoticComponent<Omit<LinkProps, "motion" | "motionState" | "motionPayload" | "playInitialState" | "motionController" | "classNames"> & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
6
6
|
export declare const Link: import('react').ForwardRefExoticComponent<LinkProps & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
@@ -2,9 +2,13 @@ import { LinkClassNames, LinkClassNamesProviderProps } from './linkTypes';
|
|
|
2
2
|
export declare function LinkClassNamesProvider({ classNames, children, }: LinkClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export declare function useLinkClassNames(): LinkClassNames;
|
|
4
4
|
/** Scope only. Defaults and host play live in `linkAnimations.ts`. */
|
|
5
|
-
export declare const LinkMotionProvider: ({ motion, defaults, params, children, }: {
|
|
6
|
-
motion?: import('../utils/slotMotion').
|
|
5
|
+
export declare const LinkMotionProvider: ({ 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, useLinkMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalLinkMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes, ForwardedRef, KeyboardEvent, PointerEvent, ReactNode } 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
|
import { IconPosition } from '../utils/iconPosition';
|
|
6
6
|
export type LinkSize = ComponentSize;
|
|
@@ -34,8 +34,31 @@ type LinkSharedProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "children"
|
|
|
34
34
|
showDefaultIcon?: boolean;
|
|
35
35
|
defaultIconPosition?: LinkIconPos;
|
|
36
36
|
classNames?: Prettify<LinkClassNames>;
|
|
37
|
-
/**
|
|
38
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Per-slot motion (`root`, `text`, `icon`). No hover shadow.
|
|
39
|
+
* `events` — namespaced app commands for `MotionController.play` (not a DOM slot).
|
|
40
|
+
* `states` — app modes for `motionState` (not a DOM slot, not a phase).
|
|
41
|
+
*/
|
|
42
|
+
motion?: Prettify<MotionMapWithEvents<LinkMotion>>;
|
|
43
|
+
/**
|
|
44
|
+
* Deferred handle from `createMotionController()` / `useMotionControllerHandle()`.
|
|
45
|
+
* Forwarded to the motion Provider (`controller`), not onto the DOM.
|
|
46
|
+
*/
|
|
47
|
+
motionController?: MotionController;
|
|
48
|
+
/**
|
|
49
|
+
* App mode (`idle` / `sharing` / `copied`). Same value again does not replay.
|
|
50
|
+
* Pair with `motion.states`. Not a `MotionPhaseName`. Not on the DOM.
|
|
51
|
+
*/
|
|
52
|
+
motionState?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Opaque snapshot for the transition factory (`ctx.payload`).
|
|
55
|
+
* Updating this without changing `motionState` does not replay.
|
|
56
|
+
*/
|
|
57
|
+
motionPayload?: unknown;
|
|
58
|
+
/**
|
|
59
|
+
* Play `motion.states[motionState]` on mount. Default skip so first paint stays CSS rest.
|
|
60
|
+
*/
|
|
61
|
+
playInitialState?: boolean;
|
|
39
62
|
};
|
|
40
63
|
export type LinkProps = (LinkSharedProps & {
|
|
41
64
|
/** Merge Link styles onto the single child (router `Link`, custom `<a>`). */
|
|
@@ -2,7 +2,7 @@ import { ListBoxProps } from './listBoxTypes';
|
|
|
2
2
|
export type { ListBoxProps, ListBoxSectionProps, ListBoxHeaderProps, ListBoxSeparatorProps, ListBoxEmptyProps, ListBoxItemProps, ListBoxLabelProps, ListBoxHintProps, ListBoxIconProps, ListBoxItemIndicatorProps, ListBoxSize, ListBoxVariant, ListBoxClassNames, ListBoxMotion, ListBoxPartMotion, } from './listBoxTypes';
|
|
3
3
|
export { ListBoxRootShell, ListBoxSection, ListBoxHeader, ListBoxSeparator, ListBoxEmpty, ListBoxItem, ListBoxLabel, ListBoxHint, ListBoxIcon, ListBoxItemIndicator, } from './listBoxParts';
|
|
4
4
|
export { useListBox, useListBoxActiveValue } from './listBoxContext';
|
|
5
|
-
export declare function ListBoxRoot({ classNames, children, className, size, variant, multiple, value, defaultValue, onValueChange, disabled, activeValue, onActiveValueChange, listId: listIdProp, "aria-label": ariaLabelProp, "aria-labelledby": ariaLabelledByProp, motion, ...rest }: ListBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function ListBoxRoot({ classNames, children, className, size, variant, multiple, value, defaultValue, onValueChange, disabled, activeValue, onActiveValueChange, listId: listIdProp, "aria-label": ariaLabelProp, "aria-labelledby": ariaLabelledByProp, motion, motionController, ...rest }: ListBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare namespace ListBoxRoot {
|
|
7
7
|
var displayName: string;
|
|
8
8
|
}
|
|
@@ -12,6 +12,7 @@ export declare const ListBox: typeof ListBoxRoot & {
|
|
|
12
12
|
icon?: import('react').ReactNode;
|
|
13
13
|
indicator?: boolean;
|
|
14
14
|
motion?: import('../../..').Prettify<import('./listBoxTypes').ListBoxPartMotion>;
|
|
15
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
15
16
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
16
17
|
Label: typeof ListBoxLabel;
|
|
17
18
|
Hint: typeof ListBoxHint;
|
|
@@ -1,8 +1,26 @@
|
|
|
1
|
+
import { ForwardedRef, RefObject, PointerEvent as ReactPointerEvent } from 'react';
|
|
1
2
|
import { MotionScopeValue } from '../utils/slotMotion';
|
|
2
|
-
import { ListBoxMotion } from './listBoxTypes';
|
|
3
|
-
import { RefObject } from 'react';
|
|
3
|
+
import { ListBoxMotion, ListBoxPartMotion } from './listBoxTypes';
|
|
4
4
|
export declare function useListBoxRootGlossRef(isGloss: boolean): (node: HTMLElement | null) => void;
|
|
5
5
|
export declare function resolveListBoxMotionDefaults(): ListBoxMotion;
|
|
6
|
+
export type ListBoxMotionSlot = keyof ListBoxMotion;
|
|
7
|
+
export declare function useListBoxSlotMotion<T extends HTMLElement>(slot: Exclude<ListBoxMotionSlot, "item">, { motion, forwardedRef, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }?: {
|
|
8
|
+
motion?: ListBoxPartMotion;
|
|
9
|
+
forwardedRef?: ForwardedRef<T>;
|
|
10
|
+
onPointerOver?: (e: ReactPointerEvent<T>) => void;
|
|
11
|
+
onPointerOut?: (e: ReactPointerEvent<T>) => void;
|
|
12
|
+
onPointerDown?: (e: ReactPointerEvent<T>) => void;
|
|
13
|
+
onPointerUp?: (e: ReactPointerEvent<T>) => void;
|
|
14
|
+
}): {
|
|
15
|
+
setRef: (node: T | null) => void;
|
|
16
|
+
targetRef: RefObject<T | null>;
|
|
17
|
+
pointerHandlers: {
|
|
18
|
+
onPointerOver: (e: ReactPointerEvent<T>) => void;
|
|
19
|
+
onPointerOut: (e: ReactPointerEvent<T>) => void;
|
|
20
|
+
onPointerDown: (e: ReactPointerEvent<T>) => void;
|
|
21
|
+
onPointerUp: (e: ReactPointerEvent<T>) => void;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
6
24
|
export declare function playListBoxItemPress(scope: MotionScopeValue, el: HTMLElement | null): void;
|
|
7
25
|
/**
|
|
8
26
|
* Sync `data-active` on the active option. Highlight CSS is the static
|
|
@@ -19,9 +19,13 @@ export declare function ListBoxSectionLabelProvider({ value, children, }: {
|
|
|
19
19
|
}): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export declare function useListBoxSectionLabelRegister(): ((id: string | undefined) => void) | null;
|
|
21
21
|
/** Scope only. Defaults and host play live in `listBoxAnimations.ts`. */
|
|
22
|
-
export declare const ListBoxMotionProvider: ({ motion, defaults, params, children, }: {
|
|
23
|
-
motion?: import('../utils/slotMotion').
|
|
22
|
+
export declare const ListBoxMotionProvider: ({ motion, defaults, params, controller: appController, motionState, motionPayload, playInitialState, children, }: {
|
|
23
|
+
motion?: import('../utils/slotMotion/motionEvents').MotionRootInput;
|
|
24
24
|
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
25
25
|
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
26
|
+
controller?: import('../utils/slotMotion').MotionController;
|
|
27
|
+
motionState?: string;
|
|
28
|
+
motionPayload?: unknown;
|
|
29
|
+
playInitialState?: boolean;
|
|
26
30
|
children: ReactNode;
|
|
27
31
|
}) => import("react/jsx-runtime").JSX.Element, useListBoxMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalListBoxMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -3,19 +3,19 @@ export declare function ListBoxRootShell({ listId, variant, className, ariaLabel
|
|
|
3
3
|
export declare namespace ListBoxRootShell {
|
|
4
4
|
var displayName: string;
|
|
5
5
|
}
|
|
6
|
-
export declare function ListBoxSection({ className, children, ...rest }: ListBoxSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function ListBoxSection({ className, children, motion, onPointerOver, onPointerOut, onPointerDown, onPointerUp, ...rest }: ListBoxSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare namespace ListBoxSection {
|
|
8
8
|
var displayName: string;
|
|
9
9
|
}
|
|
10
|
-
export declare function ListBoxHeader({ className, textClassName, children, id: idProp, ...rest }: ListBoxHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function ListBoxHeader({ className, textClassName, children, id: idProp, motion, onPointerOver, onPointerOut, onPointerDown, onPointerUp, ...rest }: ListBoxHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export declare namespace ListBoxHeader {
|
|
12
12
|
var displayName: string;
|
|
13
13
|
}
|
|
14
|
-
export declare function ListBoxSeparator({ className, ...rest }: ListBoxSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function ListBoxSeparator({ className, motion, onPointerOver, onPointerOut, onPointerDown, onPointerUp, ...rest }: ListBoxSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export declare namespace ListBoxSeparator {
|
|
16
16
|
var displayName: string;
|
|
17
17
|
}
|
|
18
|
-
export declare function ListBoxEmpty({ className, children, ...rest }: ListBoxEmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function ListBoxEmpty({ className, children, motion, onPointerOver, onPointerOut, onPointerDown, onPointerUp, ...rest }: ListBoxEmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export declare namespace ListBoxEmpty {
|
|
20
20
|
var displayName: string;
|
|
21
21
|
}
|
|
@@ -27,16 +27,17 @@ export declare const ListBoxItem: import('react').NamedExoticComponent<Omit<impo
|
|
|
27
27
|
icon?: import('react').ReactNode;
|
|
28
28
|
indicator?: boolean;
|
|
29
29
|
motion?: import('../../..').Prettify<import('./listBoxTypes').ListBoxPartMotion>;
|
|
30
|
+
motionController?: import('../utils/slotMotion').MotionController;
|
|
30
31
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
31
|
-
export declare function ListBoxLabel({ className, motion, ...props }: ListBoxLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare function ListBoxLabel({ className, motion, onPointerOver, onPointerOut, onPointerDown, onPointerUp, ...props }: ListBoxLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
32
33
|
export declare namespace ListBoxLabel {
|
|
33
34
|
var displayName: string;
|
|
34
35
|
}
|
|
35
|
-
export declare function ListBoxHint({ className, ...props }: ListBoxHintProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare function ListBoxHint({ className, motion, onPointerOver, onPointerOut, onPointerDown, onPointerUp, ...props }: ListBoxHintProps): import("react/jsx-runtime").JSX.Element;
|
|
36
37
|
export declare namespace ListBoxHint {
|
|
37
38
|
var displayName: string;
|
|
38
39
|
}
|
|
39
|
-
export declare function ListBoxIcon({ className, motion, ...props }: ListBoxIconProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export declare function ListBoxIcon({ className, motion, onPointerOver, onPointerOut, onPointerDown, onPointerUp, ...props }: ListBoxIconProps): import("react/jsx-runtime").JSX.Element;
|
|
40
41
|
export declare namespace ListBoxIcon {
|
|
41
42
|
var displayName: string;
|
|
42
43
|
}
|