burne-ui 1.8.5 → 1.8.7
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/README.md +1 -1
- package/dist/components/composite/Accordion/Accordion.d.ts +3 -2
- package/dist/components/composite/Accordion/accordionAnimations.d.ts +6 -1
- package/dist/components/composite/Accordion/accordionParts.d.ts +7 -3
- package/dist/components/composite/Accordion/accordionTypes.d.ts +16 -2
- package/dist/components/composite/Accordion/index.d.ts +8 -3
- package/dist/components/composite/Accordion/useAccordionRootState.d.ts +1 -1
- package/dist/components/composite/AlertDialog/AlertDialog.d.ts +2 -2
- package/dist/components/composite/AlertDialog/alertDialogAnimations.d.ts +7 -2
- package/dist/components/composite/AlertDialog/alertDialogContext.d.ts +7 -0
- package/dist/components/composite/AlertDialog/alertDialogParts.d.ts +25 -23
- package/dist/components/composite/AlertDialog/alertDialogTypes.d.ts +47 -6
- package/dist/components/composite/AlertDialog/index.d.ts +25 -8
- package/dist/components/composite/ButtonGroup/ButtonGroup.d.ts +5 -3
- package/dist/components/composite/ButtonGroup/buttonGroupAnimations.d.ts +20 -0
- package/dist/components/composite/ButtonGroup/buttonGroupContext.d.ts +7 -0
- package/dist/components/composite/ButtonGroup/buttonGroupParts.d.ts +1 -0
- package/dist/components/composite/ButtonGroup/buttonGroupTypes.d.ts +19 -0
- package/dist/components/composite/ButtonGroup/index.d.ts +4 -2
- package/dist/components/composite/CheckboxGroup/CheckboxGroup.d.ts +2 -1
- package/dist/components/composite/CheckboxGroup/checkboxGroupAnimations.d.ts +38 -0
- package/dist/components/composite/CheckboxGroup/checkboxGroupContext.d.ts +7 -0
- package/dist/components/composite/CheckboxGroup/checkboxGroupParts.d.ts +2 -0
- package/dist/components/composite/CheckboxGroup/checkboxGroupTypes.d.ts +22 -1
- package/dist/components/composite/CheckboxGroup/index.d.ts +6 -1
- package/dist/components/composite/Form/Form.d.ts +7 -4
- package/dist/components/composite/Form/formAnimations.d.ts +23 -0
- package/dist/components/composite/Form/formContext.d.ts +7 -0
- package/dist/components/composite/Form/formParts.d.ts +14 -4
- package/dist/components/composite/Form/formTypes.d.ts +40 -3
- package/dist/components/composite/Form/index.d.ts +16 -4
- package/dist/components/composite/RadioGroup/index.d.ts +2 -0
- package/dist/components/composite/ToggleButtonGroup/ToggleButtonGroup.d.ts +5 -3
- package/dist/components/composite/ToggleButtonGroup/index.d.ts +2 -1
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupAnimations.d.ts +21 -0
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupContext.d.ts +7 -0
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupTypes.d.ts +18 -0
- package/dist/components/composite/ToggleButtonGroup/useToggleButtonGroupRootState.d.ts +1 -0
- package/dist/components/composite/utils/optionGroupFieldset.d.ts +2 -0
- package/dist/components/core/Alert/Alert.d.ts +16 -12
- package/dist/components/core/Alert/alertAnimations.d.ts +7 -13
- package/dist/components/core/Alert/alertContext.d.ts +7 -0
- package/dist/components/core/Alert/alertParts.d.ts +14 -17
- package/dist/components/core/Alert/alertTypes.d.ts +41 -5
- package/dist/components/core/Alert/index.d.ts +16 -6
- package/dist/components/core/Avatar/Avatar.d.ts +2 -1
- package/dist/components/core/Avatar/avatarAnimations.d.ts +5 -6
- package/dist/components/core/Avatar/avatarContext.d.ts +10 -1
- package/dist/components/core/Avatar/avatarParts.d.ts +8 -3
- package/dist/components/core/Avatar/avatarTypes.d.ts +32 -2
- package/dist/components/core/Avatar/index.d.ts +9 -3
- package/dist/components/core/Badge/Badge.d.ts +5 -3
- package/dist/components/core/Badge/badgeAnimations.d.ts +17 -5
- package/dist/components/core/Badge/badgeContext.d.ts +7 -0
- package/dist/components/core/Badge/badgeParts.d.ts +3 -1
- package/dist/components/core/Badge/badgeStyles.d.ts +8 -5
- package/dist/components/core/Badge/badgeTypes.d.ts +17 -0
- package/dist/components/core/Badge/index.d.ts +3 -1
- package/dist/components/core/Breadcrumbs/Breadcrumbs.d.ts +2 -1
- package/dist/components/core/Breadcrumbs/breadcrumbsAnimations.d.ts +3 -5
- package/dist/components/core/Breadcrumbs/breadcrumbsContext.d.ts +7 -0
- package/dist/components/core/Breadcrumbs/breadcrumbsTypes.d.ts +13 -0
- package/dist/components/core/Breadcrumbs/index.d.ts +2 -1
- package/dist/components/core/Button/Button.d.ts +3 -1
- package/dist/components/core/Button/buttonAnimations.d.ts +17 -7
- package/dist/components/core/Button/buttonContext.d.ts +7 -0
- package/dist/components/core/Button/buttonTypes.d.ts +20 -0
- package/dist/components/core/Button/index.d.ts +2 -1
- package/dist/components/core/Calendar/Calendar.d.ts +1 -1
- package/dist/components/core/Calendar/calendarAnimations.d.ts +3 -12
- package/dist/components/core/Calendar/calendarContext.d.ts +7 -0
- package/dist/components/core/Calendar/calendarParts.d.ts +2 -2
- package/dist/components/core/Calendar/calendarTypes.d.ts +14 -0
- package/dist/components/core/Calendar/index.d.ts +3 -3
- package/dist/components/core/Card/Card.d.ts +8 -6
- package/dist/components/core/Card/cardAnimations.d.ts +8 -2
- package/dist/components/core/Card/cardContext.d.ts +7 -0
- package/dist/components/core/Card/cardParts.d.ts +12 -8
- package/dist/components/core/Card/cardTypes.d.ts +46 -6
- package/dist/components/core/Card/index.d.ts +9 -4
- package/dist/components/core/Checkbox/Checkbox.d.ts +3 -2
- package/dist/components/core/Checkbox/checkboxAPI.d.ts +1 -1
- package/dist/components/core/Checkbox/checkboxAnimations.d.ts +12 -1
- package/dist/components/core/Checkbox/checkboxAnimations.test.d.ts +1 -0
- package/dist/components/core/Checkbox/checkboxContext.d.ts +3 -1
- package/dist/components/core/Checkbox/checkboxParts.d.ts +1 -1
- package/dist/components/core/Checkbox/checkboxTypes.d.ts +18 -1
- package/dist/components/core/Checkbox/index.d.ts +7 -3
- package/dist/components/core/CloseButton/CloseButton.d.ts +2 -1
- package/dist/components/core/CloseButton/closeButtonAnimations.d.ts +25 -6
- package/dist/components/core/CloseButton/closeButtonContext.d.ts +7 -0
- package/dist/components/core/CloseButton/closeButtonTypes.d.ts +19 -2
- package/dist/components/core/CloseButton/index.d.ts +1 -1
- package/dist/components/core/ColorPicker/ColorPicker.d.ts +2 -2
- package/dist/components/core/ColorPicker/ColorSlider.d.ts +3 -1
- package/dist/components/core/ColorPicker/ColorSwatch.d.ts +3 -8
- package/dist/components/core/ColorPicker/colorPickerAnimations.d.ts +22 -1
- package/dist/components/core/ColorPicker/colorPickerContext.d.ts +7 -0
- package/dist/components/core/ColorPicker/colorPickerParts.d.ts +10 -4
- package/dist/components/core/ColorPicker/colorPickerTypes.d.ts +33 -2
- package/dist/components/core/ColorPicker/colorSliderAnimations.d.ts +36 -0
- package/dist/components/core/ColorPicker/colorSliderContext.d.ts +7 -0
- package/dist/components/core/ColorPicker/colorSliderTypes.d.ts +25 -0
- package/dist/components/core/ColorPicker/colorSwatchAnimations.d.ts +25 -0
- package/dist/components/core/ColorPicker/colorSwatchContext.d.ts +7 -0
- package/dist/components/core/ColorPicker/colorSwatchTypes.d.ts +34 -0
- package/dist/components/core/ColorPicker/index.d.ts +14 -6
- package/dist/components/core/ComboBox/ComboBox.d.ts +2 -2
- package/dist/components/core/ComboBox/comboBoxAnimations.d.ts +48 -0
- package/dist/components/core/ComboBox/comboBoxContext.d.ts +7 -0
- package/dist/components/core/ComboBox/comboBoxParts.d.ts +7 -3
- package/dist/components/core/ComboBox/comboBoxTypes.d.ts +37 -3
- package/dist/components/core/ComboBox/index.d.ts +8 -3
- package/dist/components/core/Dialog/Dialog.d.ts +2 -2
- package/dist/components/core/Dialog/dialogAnimations.d.ts +7 -2
- package/dist/components/core/Dialog/dialogContext.d.ts +7 -0
- package/dist/components/core/Dialog/dialogParts.d.ts +20 -6
- package/dist/components/core/Dialog/dialogTypes.d.ts +41 -6
- package/dist/components/core/Dialog/index.d.ts +20 -6
- package/dist/components/core/Disclosure/Disclosure.d.ts +2 -1
- package/dist/components/core/Disclosure/disclosureAnimations.d.ts +9 -4
- package/dist/components/core/Disclosure/disclosureContentPart.d.ts +1 -0
- package/dist/components/core/Disclosure/disclosureContext.d.ts +7 -0
- package/dist/components/core/Disclosure/disclosureGroup.d.ts +1 -0
- package/dist/components/core/Disclosure/disclosureParts.d.ts +2 -1
- package/dist/components/core/Disclosure/disclosureTypes.d.ts +42 -1
- package/dist/components/core/Disclosure/index.d.ts +5 -1
- package/dist/components/core/Disclosure/useDisclosureGroupRootState.d.ts +1 -1
- package/dist/components/core/Drawer/Drawer.d.ts +2 -2
- package/dist/components/core/Drawer/drawerAPI.d.ts +2 -7
- package/dist/components/core/Drawer/drawerAnimations.d.ts +7 -2
- package/dist/components/core/Drawer/drawerContext.d.ts +7 -0
- package/dist/components/core/Drawer/drawerParts.d.ts +21 -10
- package/dist/components/core/Drawer/drawerTypes.d.ts +42 -6
- package/dist/components/core/Drawer/index.d.ts +21 -7
- package/dist/components/core/Dropdown/Dropdown.d.ts +2 -2
- package/dist/components/core/Dropdown/dropdownAnimations.d.ts +19 -3
- package/dist/components/core/Dropdown/dropdownContext.d.ts +7 -0
- package/dist/components/core/Dropdown/dropdownParts.d.ts +1 -0
- package/dist/components/core/Dropdown/dropdownSubParts.d.ts +1 -0
- package/dist/components/core/Dropdown/dropdownTypes.d.ts +30 -0
- package/dist/components/core/Dropdown/index.d.ts +7 -2
- package/dist/components/core/Expandable/Expandable.d.ts +2 -1
- package/dist/components/core/Expandable/expandableAnimations.d.ts +9 -5
- package/dist/components/core/Expandable/expandableContext.d.ts +7 -0
- package/dist/components/core/Expandable/expandableParts.d.ts +7 -3
- package/dist/components/core/Expandable/expandableTypes.d.ts +33 -2
- package/dist/components/core/Expandable/index.d.ts +6 -2
- package/dist/components/core/Field/Field.d.ts +2 -1
- package/dist/components/core/Field/fieldAnimations.d.ts +38 -0
- package/dist/components/core/Field/fieldContext.d.ts +13 -0
- package/dist/components/core/Field/fieldParts.d.ts +9 -5
- package/dist/components/core/Field/fieldTypes.d.ts +37 -0
- package/dist/components/core/Field/index.d.ts +9 -1
- package/dist/components/core/Input/Input.d.ts +2 -2
- package/dist/components/core/Input/index.d.ts +2 -1
- package/dist/components/core/Input/inputAffixParts.d.ts +4 -0
- package/dist/components/core/Input/inputAnimations.d.ts +23 -12
- package/dist/components/core/Input/inputContext.d.ts +7 -0
- package/dist/components/core/Input/inputControlParts.d.ts +2 -0
- package/dist/components/core/Input/inputTypes.d.ts +36 -2
- package/dist/components/core/Kbd/Kbd.d.ts +5 -2
- package/dist/components/core/Kbd/index.d.ts +2 -1
- package/dist/components/core/Kbd/kbdAnimations.d.ts +8 -5
- package/dist/components/core/Kbd/kbdContext.d.ts +7 -0
- package/dist/components/core/Kbd/kbdTextPart.d.ts +2 -7
- package/dist/components/core/Kbd/kbdTypes.d.ts +19 -0
- package/dist/components/core/Label/Label.d.ts +3 -3
- package/dist/components/core/Label/index.d.ts +1 -1
- package/dist/components/core/Label/labelAnimations.d.ts +20 -0
- package/dist/components/core/Label/labelContext.d.ts +7 -0
- package/dist/components/core/Label/labelTypes.d.ts +18 -0
- package/dist/components/core/Link/Link.d.ts +2 -2
- package/dist/components/core/Link/index.d.ts +1 -1
- package/dist/components/core/Link/linkAnchorBodyPart.d.ts +1 -1
- package/dist/components/core/Link/linkAnimations.d.ts +13 -6
- package/dist/components/core/Link/linkContext.d.ts +7 -0
- package/dist/components/core/Link/linkTypes.d.ts +23 -1
- package/dist/components/core/ListBox/ListBox.d.ts +2 -2
- package/dist/components/core/ListBox/index.d.ts +6 -2
- package/dist/components/core/ListBox/listBoxAnimations.d.ts +4 -7
- package/dist/components/core/ListBox/listBoxContext.d.ts +7 -0
- package/dist/components/core/ListBox/listBoxParts.d.ts +3 -2
- package/dist/components/core/ListBox/listBoxTypes.d.ts +20 -8
- package/dist/components/core/Loading/Loading.d.ts +2 -1
- package/dist/components/core/Loading/index.d.ts +1 -1
- package/dist/components/core/Loading/loadingAnimations.d.ts +2 -1
- package/dist/components/core/Loading/loadingContext.d.ts +7 -0
- package/dist/components/core/Loading/loadingTypes.d.ts +19 -0
- package/dist/components/core/Meter/Meter.d.ts +2 -2
- package/dist/components/core/Meter/index.d.ts +2 -0
- package/dist/components/core/Meter/meterAnimations.d.ts +4 -1
- package/dist/components/core/Meter/meterContext.d.ts +7 -0
- package/dist/components/core/Meter/meterParts.d.ts +3 -2
- package/dist/components/core/Meter/meterTypes.d.ts +28 -2
- package/dist/components/core/Pagination/Pagination.d.ts +2 -1
- package/dist/components/core/Pagination/index.d.ts +9 -3
- package/dist/components/core/Pagination/paginationAnimations.d.ts +2 -0
- package/dist/components/core/Pagination/paginationContext.d.ts +7 -0
- package/dist/components/core/Pagination/paginationParts.d.ts +8 -3
- package/dist/components/core/Pagination/paginationTypes.d.ts +16 -1
- package/dist/components/core/Popover/Popover.d.ts +2 -2
- package/dist/components/core/Popover/index.d.ts +11 -4
- package/dist/components/core/Popover/popoverAnimations.d.ts +7 -2
- package/dist/components/core/Popover/popoverContext.d.ts +7 -0
- package/dist/components/core/Popover/popoverParts.d.ts +11 -4
- package/dist/components/core/Popover/popoverTypes.d.ts +31 -4
- package/dist/components/core/ProgressBar/ProgressBar.d.ts +2 -2
- package/dist/components/core/ProgressBar/index.d.ts +2 -0
- package/dist/components/core/ProgressBar/progressBarAnimations.d.ts +4 -1
- package/dist/components/core/ProgressBar/progressBarContext.d.ts +7 -0
- package/dist/components/core/ProgressBar/progressBarParts.d.ts +3 -2
- package/dist/components/core/ProgressBar/progressBarTypes.d.ts +27 -2
- package/dist/components/core/Radio/Radio.d.ts +3 -2
- package/dist/components/core/Radio/index.d.ts +7 -3
- package/dist/components/core/Radio/radioAnimations.d.ts +12 -1
- package/dist/components/core/Radio/radioContext.d.ts +3 -1
- package/dist/components/core/Radio/radioParts.d.ts +1 -1
- package/dist/components/core/Radio/radioTypes.d.ts +18 -1
- package/dist/components/core/SearchInput/SearchInput.d.ts +5 -2
- package/dist/components/core/SearchInput/index.d.ts +1 -1
- package/dist/components/core/SearchInput/searchInputAnimations.d.ts +40 -5
- package/dist/components/core/SearchInput/searchInputContext.d.ts +7 -0
- package/dist/components/core/SearchInput/searchInputParts.d.ts +8 -0
- package/dist/components/core/SearchInput/searchInputStyles.d.ts +2 -2
- package/dist/components/core/SearchInput/searchInputTypes.d.ts +28 -2
- package/dist/components/core/SearchInput/useSearchInputRootState.d.ts +7 -11
- package/dist/components/core/Select/Select.d.ts +2 -2
- package/dist/components/core/Select/index.d.ts +6 -2
- package/dist/components/core/Select/selectAnimations.d.ts +48 -0
- package/dist/components/core/Select/selectContext.d.ts +7 -0
- package/dist/components/core/Select/selectTriggerParts.d.ts +5 -2
- package/dist/components/core/Select/selectTypes.d.ts +35 -2
- package/dist/components/core/SelectionIndicator/SelectionIndicator.d.ts +1 -1
- package/dist/components/core/SelectionIndicator/index.d.ts +6 -3
- package/dist/components/core/SelectionIndicator/selectionIndicatorAnimations.d.ts +9 -0
- package/dist/components/core/SelectionIndicator/selectionIndicatorContext.d.ts +7 -0
- package/dist/components/core/SelectionIndicator/selectionIndicatorParts.d.ts +4 -2
- package/dist/components/core/SelectionIndicator/selectionIndicatorTypes.d.ts +15 -1
- package/dist/components/core/SelectionThumb/SelectionThumb.d.ts +3 -3
- package/dist/components/core/SelectionThumb/index.d.ts +2 -2
- package/dist/components/core/SelectionThumb/selectionThumbAnimations.d.ts +2 -0
- package/dist/components/core/SelectionThumb/selectionThumbContext.d.ts +7 -0
- package/dist/components/core/SelectionThumb/selectionThumbTypes.d.ts +21 -2
- package/dist/components/core/Separator/Separator.d.ts +2 -1
- package/dist/components/core/Separator/index.d.ts +1 -1
- package/dist/components/core/Separator/separatorAnimations.d.ts +20 -0
- package/dist/components/core/Separator/separatorContext.d.ts +7 -0
- package/dist/components/core/Separator/separatorTypes.d.ts +17 -0
- package/dist/components/core/Skeleton/Skeleton.d.ts +2 -1
- package/dist/components/core/Skeleton/index.d.ts +6 -1
- package/dist/components/core/Skeleton/skeletonAnimations.d.ts +19 -0
- package/dist/components/core/Skeleton/skeletonContext.d.ts +7 -0
- package/dist/components/core/Skeleton/skeletonParts.d.ts +5 -1
- package/dist/components/core/Skeleton/skeletonTypes.d.ts +22 -0
- package/dist/components/core/Slider/Slider.d.ts +2 -2
- package/dist/components/core/Slider/index.d.ts +2 -1
- package/dist/components/core/Slider/sliderAnimations.d.ts +7 -7
- package/dist/components/core/Slider/sliderContext.d.ts +7 -0
- package/dist/components/core/Slider/sliderScaleField.d.ts +8 -2
- package/dist/components/core/Slider/sliderThumbParts.d.ts +2 -1
- package/dist/components/core/Slider/sliderTrackParts.d.ts +1 -0
- package/dist/components/core/Slider/sliderTypes.d.ts +32 -2
- package/dist/components/core/Slider/useSliderTrackState.d.ts +18 -16
- package/dist/components/core/Surface/Surface.d.ts +2 -1
- package/dist/components/core/Surface/index.d.ts +1 -1
- package/dist/components/core/Surface/surfaceAnimations.d.ts +20 -0
- package/dist/components/core/Surface/surfaceContext.d.ts +7 -0
- package/dist/components/core/Surface/surfaceTypes.d.ts +17 -0
- package/dist/components/core/Switch/Switch.d.ts +3 -2
- package/dist/components/core/Switch/index.d.ts +4 -3
- package/dist/components/core/Switch/switchAnimations.d.ts +3 -2
- package/dist/components/core/Switch/switchContext.d.ts +7 -0
- package/dist/components/core/Switch/switchControlParts.d.ts +1 -1
- package/dist/components/core/Switch/switchTrackParts.d.ts +4 -4
- package/dist/components/core/Switch/switchTypes.d.ts +20 -2
- package/dist/components/core/Switch/useSwitchRootState.d.ts +12 -12
- package/dist/components/core/Table/Table.d.ts +2 -1
- package/dist/components/core/Table/index.d.ts +15 -4
- package/dist/components/core/Table/tableAnimations.d.ts +22 -2
- package/dist/components/core/Table/tableContext.d.ts +7 -0
- package/dist/components/core/Table/tableParts.d.ts +14 -4
- package/dist/components/core/Table/tableTypes.d.ts +40 -3
- package/dist/components/core/Tabs/Tabs.d.ts +2 -1
- package/dist/components/core/Tabs/index.d.ts +7 -2
- package/dist/components/core/Tabs/tabsAnimations.d.ts +18 -4
- package/dist/components/core/Tabs/tabsContext.d.ts +7 -0
- package/dist/components/core/Tabs/tabsPanelPart.d.ts +1 -0
- package/dist/components/core/Tabs/tabsParts.d.ts +3 -2
- package/dist/components/core/Tabs/tabsTabPart.d.ts +1 -0
- package/dist/components/core/Tabs/tabsTypes.d.ts +32 -1
- package/dist/components/core/Text/Text.d.ts +4 -2
- package/dist/components/core/Text/index.d.ts +1 -1
- package/dist/components/core/Text/textAnimations.d.ts +21 -0
- package/dist/components/core/Text/textContext.d.ts +7 -0
- package/dist/components/core/Text/textTypes.d.ts +18 -0
- package/dist/components/core/TextArea/TextArea.d.ts +2 -2
- package/dist/components/core/TextArea/index.d.ts +2 -1
- package/dist/components/core/TextArea/textAreaAnimations.d.ts +20 -10
- package/dist/components/core/TextArea/textAreaContext.d.ts +7 -0
- package/dist/components/core/TextArea/textAreaParts.d.ts +2 -1
- package/dist/components/core/TextArea/textAreaStyles.d.ts +8 -5
- package/dist/components/core/TextArea/textAreaTypes.d.ts +30 -2
- package/dist/components/core/TimeField/TimeField.d.ts +2 -2
- package/dist/components/core/TimeField/index.d.ts +2 -1
- package/dist/components/core/TimeField/timeFieldAnimations.d.ts +22 -9
- package/dist/components/core/TimeField/timeFieldContext.d.ts +7 -0
- package/dist/components/core/TimeField/timeFieldParts.d.ts +4 -3
- package/dist/components/core/TimeField/timeFieldTypes.d.ts +31 -1
- package/dist/components/core/TimeField/useTimeFieldControlState.d.ts +2 -14
- package/dist/components/core/Toast/Toast.d.ts +2 -1
- package/dist/components/core/Toast/index.d.ts +15 -5
- package/dist/components/core/Toast/toastAnimations.d.ts +16 -3
- package/dist/components/core/Toast/toastContext.d.ts +7 -0
- package/dist/components/core/Toast/toastParts.d.ts +14 -5
- package/dist/components/core/Toast/toastProvider.d.ts +1 -1
- package/dist/components/core/Toast/toastTypes.d.ts +37 -4
- package/dist/components/core/ToggleButton/ToggleButton.d.ts +4 -2
- package/dist/components/core/ToggleButton/index.d.ts +12 -5
- package/dist/components/core/ToggleButton/toggleButtonAnimations.d.ts +10 -6
- package/dist/components/core/ToggleButton/toggleButtonContext.d.ts +7 -0
- package/dist/components/core/ToggleButton/toggleButtonParts.d.ts +13 -7
- package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +47 -4
- package/dist/components/core/ToggleButton/useToggleButtonFillAnimation.d.ts +4 -1
- package/dist/components/core/ToggleButton/useToggleButtonRootState.d.ts +2 -1
- package/dist/components/core/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/core/Tooltip/index.d.ts +2 -1
- package/dist/components/core/Tooltip/tooltipAnimations.d.ts +5 -1
- package/dist/components/core/Tooltip/tooltipContext.d.ts +7 -0
- package/dist/components/core/Tooltip/tooltipParts.d.ts +1 -0
- package/dist/components/core/Tooltip/tooltipTypes.d.ts +14 -0
- package/dist/components/core/utils/bindAbortSignal.d.ts +2 -0
- package/dist/components/core/utils/drawerSlide.d.ts +7 -0
- package/dist/components/core/utils/focusElement.d.ts +26 -12
- package/dist/components/core/utils/focusElement.test.d.ts +1 -0
- package/dist/components/core/utils/glossInteractiveMotion.d.ts +6 -2
- package/dist/components/core/utils/gsapMotion.d.ts +42 -11
- package/dist/components/core/utils/gsapMotion.geometry.test.d.ts +1 -0
- package/dist/components/core/utils/hoverInteractiveLift.abort.test.d.ts +1 -0
- package/dist/components/core/utils/hoverInteractiveLift.d.ts +8 -4
- package/dist/components/core/utils/modalSurfaceMotion.d.ts +17 -3
- package/dist/components/core/utils/motionConfig.d.ts +85 -6
- package/dist/components/core/utils/motionConfig.test.d.ts +1 -0
- package/dist/components/core/utils/motionConfigContext.d.ts +23 -0
- package/dist/components/core/utils/motionConfigValidation.d.ts +33 -0
- package/dist/components/core/utils/optionListItemParts.d.ts +7 -4
- package/dist/components/core/utils/runOpenAfterSqueeze.d.ts +4 -1
- package/dist/components/core/utils/searchInputExpandMotion.d.ts +22 -0
- package/dist/components/core/utils/searchInputExpandMotion.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/createMotionRegistry.d.ts +27 -0
- package/dist/components/core/utils/slotMotion/createMotionScope.d.ts +63 -0
- package/dist/components/core/utils/slotMotion/createMotionScope.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/enterHidesFirstPaint.d.ts +14 -0
- package/dist/components/core/utils/slotMotion/enterHidesFirstPaint.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/index.d.ts +19 -0
- package/dist/components/core/utils/slotMotion/modalSlotMotionHost.d.ts +15 -0
- package/dist/components/core/utils/slotMotion/motionRecipeRegistry.d.ts +27 -0
- package/dist/components/core/utils/slotMotion/motionRecipeRegistry.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/motionValueApi.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/motionVarsApi.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/recipes/chevronRotate.d.ts +2 -0
- package/dist/components/core/utils/slotMotion/recipes/collapsibleHeight.d.ts +3 -0
- package/dist/components/core/utils/slotMotion/recipes/contentFade.d.ts +4 -0
- package/dist/components/core/utils/slotMotion/recipes/drawerSlide.d.ts +5 -0
- package/dist/components/core/utils/slotMotion/recipes/fileRowExit.d.ts +4 -0
- package/dist/components/core/utils/slotMotion/recipes/hoverLiftFirstLevel.d.ts +2 -0
- package/dist/components/core/utils/slotMotion/recipes/hoverLiftGloss.d.ts +2 -0
- package/dist/components/core/utils/slotMotion/recipes/hoverLiftSecondLevel.d.ts +2 -0
- package/dist/components/core/utils/slotMotion/recipes/index.d.ts +2 -0
- package/dist/components/core/utils/slotMotion/recipes/modalSurface.d.ts +7 -0
- package/dist/components/core/utils/slotMotion/recipes/portalSurface.d.ts +3 -0
- package/dist/components/core/utils/slotMotion/recipes/pressSqueeze.d.ts +4 -0
- package/dist/components/core/utils/slotMotion/recipes/searchExpand.d.ts +5 -0
- package/dist/components/core/utils/slotMotion/recipes/selectionFill.d.ts +2 -0
- package/dist/components/core/utils/slotMotion/recipes/selectionMark.d.ts +2 -0
- package/dist/components/core/utils/slotMotion/recipes/switchThumb.d.ts +8 -0
- package/dist/components/core/utils/slotMotion/recipes/toastSurface.d.ts +4 -0
- package/dist/components/core/utils/slotMotion/resolveMotionValue.d.ts +8 -0
- package/dist/components/core/utils/slotMotion/resolveMotionValue.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/runMotionPhase.d.ts +22 -0
- package/dist/components/core/utils/slotMotion/runMotionPhase.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/scheduleNestedEnterBroadcast.d.ts +16 -0
- package/dist/components/core/utils/slotMotion/scheduleNestedEnterBroadcast.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/slotMotionTypes.d.ts +165 -0
- package/dist/components/core/utils/slotMotion/useMotionPart.d.ts +39 -0
- package/dist/components/core/utils/slotMotion/useMotionPointerPhases.d.ts +12 -0
- package/dist/components/core/utils/slotMotion/useSlotLifecycle.d.ts +25 -0
- package/dist/components/core/utils/slotMotion/useSlotLifecycle.test.d.ts +1 -0
- package/dist/components/core/utils/slotMotion/waitForLeaveGeneration.d.ts +14 -0
- package/dist/components/core/utils/useChevronRotation.d.ts +9 -0
- package/dist/components/core/utils/useCollapsibleHeight.d.ts +10 -1
- package/dist/components/core/utils/useCollapsibleHeight.test.d.ts +1 -0
- package/dist/components/core/utils/useModalMotion.d.ts +12 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +39 -36
- package/dist/index.js +23940 -16959
- package/dist/internal.cjs +1 -1
- package/dist/internal.d.ts +4 -3
- package/dist/internal.js +83 -78
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/themeDefaults.d.ts +7 -0
- package/dist/{themeRuntimeContext-CFUwV5z2.js → themeRuntimeContext-B1dAP9WW.js} +1833 -1551
- package/dist/themeRuntimeContext-BveSYUe9.cjs +14 -0
- package/dist/ui.css +49 -51
- package/package.json +6 -4
- package/dist/components/core/SelectionIndicator/useSelectionIndicatorAnimation.d.ts +0 -2
- package/dist/themeRuntimeContext-POhnqI3h.cjs +0 -14
|
@@ -10,3 +10,16 @@ export declare function FieldSetSizeProvider({ size, children, }: {
|
|
|
10
10
|
}): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export declare function useOptionalFieldSize(): FieldSize | null;
|
|
12
12
|
export declare function useFieldSetSize(): FieldSize;
|
|
13
|
+
/** Scope only. Defaults and host play live in `fieldAnimations.ts`. */
|
|
14
|
+
export declare const FieldMotionProvider: ({ motion, defaults, params, children, }: {
|
|
15
|
+
motion?: import('../utils/slotMotion').MotionSlotMap;
|
|
16
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
17
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element, useFieldMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalFieldMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
20
|
+
export declare const FieldSetMotionProvider: ({ motion, defaults, params, children, }: {
|
|
21
|
+
motion?: import('../utils/slotMotion').MotionSlotMap;
|
|
22
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
23
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
24
|
+
children: ReactNode;
|
|
25
|
+
}) => import("react/jsx-runtime").JSX.Element, useFieldSetMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalFieldSetMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { FieldErrorProps, FieldLabelProps, FieldLegendHeaderProps, FieldProps, FieldSetProps, UseFieldSetRootStateResult } from './fieldTypes';
|
|
3
|
-
export declare function FieldRootShell({ className, size: sizeProp, children, ...rest }: Omit<FieldProps, "classNames">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare function FieldRoot({ classNames, size, children, ...rest }: FieldProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function FieldRootShell({ className, size: sizeProp, children, onPointerOver, onPointerOut, onPointerDown, onPointerUp, ...rest }: Omit<FieldProps, "classNames" | "motion">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function FieldRoot({ classNames, size, children, motion, ...rest }: FieldProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare const FieldHint: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLElement> & {
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
status?: import('./fieldTypes').FieldHintStatus;
|
|
8
8
|
as?: "p" | "span";
|
|
9
9
|
variant?: import('../Text').TextVariant;
|
|
10
|
+
motion?: import('../../..').Prettify<import('./fieldTypes').FieldPartMotion>;
|
|
10
11
|
} & import('react').RefAttributes<HTMLElement>>;
|
|
11
12
|
export declare function FieldLabel({ variant: variantProp, ...rest }: FieldLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export declare namespace FieldLabel {
|
|
13
14
|
var displayName: string;
|
|
14
15
|
}
|
|
15
|
-
export declare function FieldError({ role, className, ...props }: FieldErrorProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function FieldError({ role, className, motion, onPointerOver, onPointerOut, onPointerDown, onPointerUp, ...props }: FieldErrorProps): import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export declare const FieldLegend: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLLegendElement> & {
|
|
17
18
|
children?: ReactNode;
|
|
19
|
+
motion?: import('../../..').Prettify<import('./fieldTypes').FieldPartMotion>;
|
|
18
20
|
} & import('react').RefAttributes<HTMLLegendElement>>;
|
|
19
|
-
export declare function FieldLegendHeader({ children, className, ...rest }: FieldLegendHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function FieldLegendHeader({ children, className, motion, onPointerOver, onPointerOut, onPointerDown, onPointerUp, ...rest }: FieldLegendHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
20
22
|
export declare const FieldSetGroup: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
21
23
|
children?: ReactNode;
|
|
24
|
+
motion?: import('../../..').Prettify<import('./fieldTypes').FieldPartMotion>;
|
|
22
25
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
23
26
|
export declare const FieldSetActions: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
24
27
|
children?: ReactNode;
|
|
28
|
+
motion?: import('../../..').Prettify<import('./fieldTypes').FieldPartMotion>;
|
|
25
29
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
26
30
|
export declare function FieldSetStack({ legend, loose, groups, actions, }: UseFieldSetRootStateResult): import("react/jsx-runtime").JSX.Element | null;
|
|
27
|
-
export declare const FieldSetRootInner: import('react').ForwardRefExoticComponent<Omit<FieldSetProps, "size" | "children" | "classNames"> & {
|
|
31
|
+
export declare const FieldSetRootInner: import('react').ForwardRefExoticComponent<Omit<FieldSetProps, "size" | "motion" | "children" | "classNames"> & {
|
|
28
32
|
state: UseFieldSetRootStateResult;
|
|
29
33
|
} & import('react').RefAttributes<HTMLFieldSetElement>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FieldsetHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
|
+
import { MotionValue } from '../utils/slotMotion';
|
|
3
4
|
import { LabelProps } from '../Label';
|
|
4
5
|
import { TextVariant } from '../Text';
|
|
5
6
|
import { ComponentSize } from '../utils/sizeLayout';
|
|
@@ -12,6 +13,27 @@ export type FieldClassNames = {
|
|
|
12
13
|
hint?: string;
|
|
13
14
|
error?: string;
|
|
14
15
|
};
|
|
16
|
+
export type FieldPartMotion = {
|
|
17
|
+
hoverIn?: MotionValue;
|
|
18
|
+
hoverOut?: MotionValue;
|
|
19
|
+
pressIn?: MotionValue;
|
|
20
|
+
pressOut?: MotionValue;
|
|
21
|
+
enter?: MotionValue;
|
|
22
|
+
leave?: MotionValue;
|
|
23
|
+
};
|
|
24
|
+
export type FieldMotion = {
|
|
25
|
+
root?: FieldPartMotion;
|
|
26
|
+
hint?: FieldPartMotion;
|
|
27
|
+
error?: FieldPartMotion;
|
|
28
|
+
};
|
|
29
|
+
export type FieldSetMotion = {
|
|
30
|
+
root?: FieldPartMotion;
|
|
31
|
+
stack?: FieldPartMotion;
|
|
32
|
+
legend?: FieldPartMotion;
|
|
33
|
+
legendHeader?: FieldPartMotion;
|
|
34
|
+
group?: FieldPartMotion;
|
|
35
|
+
actions?: FieldPartMotion;
|
|
36
|
+
};
|
|
15
37
|
export type FieldSetClassNames = {
|
|
16
38
|
root?: string;
|
|
17
39
|
stack?: string;
|
|
@@ -29,6 +51,11 @@ export type FieldProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
29
51
|
* Does not cascade into embedded controls.
|
|
30
52
|
*/
|
|
31
53
|
size?: FieldSize;
|
|
54
|
+
/**
|
|
55
|
+
* Per-slot motion (`root`, `hint`, `error`). Does not steal child Input motion.
|
|
56
|
+
* Defaults are empty.
|
|
57
|
+
*/
|
|
58
|
+
motion?: Prettify<FieldMotion>;
|
|
32
59
|
};
|
|
33
60
|
export type FieldClassNamesProviderProps = {
|
|
34
61
|
classNames?: Prettify<FieldClassNames>;
|
|
@@ -43,20 +70,25 @@ export type FieldHintProps = HTMLAttributes<HTMLElement> & {
|
|
|
43
70
|
status?: FieldHintStatus;
|
|
44
71
|
as?: "p" | "span";
|
|
45
72
|
variant?: TextVariant;
|
|
73
|
+
motion?: Prettify<FieldPartMotion>;
|
|
46
74
|
};
|
|
47
75
|
export type FieldLabelProps = LabelProps;
|
|
48
76
|
export type FieldErrorProps = Omit<FieldHintProps, "status">;
|
|
49
77
|
export type FieldLegendProps = HTMLAttributes<HTMLLegendElement> & {
|
|
50
78
|
children?: ReactNode;
|
|
79
|
+
motion?: Prettify<FieldPartMotion>;
|
|
51
80
|
};
|
|
52
81
|
export type FieldLegendHeaderProps = HTMLAttributes<HTMLSpanElement> & {
|
|
53
82
|
children?: ReactNode;
|
|
83
|
+
motion?: Prettify<FieldPartMotion>;
|
|
54
84
|
};
|
|
55
85
|
export type FieldSetGroupProps = HTMLAttributes<HTMLDivElement> & {
|
|
56
86
|
children?: ReactNode;
|
|
87
|
+
motion?: Prettify<FieldPartMotion>;
|
|
57
88
|
};
|
|
58
89
|
export type FieldSetActionsProps = HTMLAttributes<HTMLDivElement> & {
|
|
59
90
|
children?: ReactNode;
|
|
91
|
+
motion?: Prettify<FieldPartMotion>;
|
|
60
92
|
};
|
|
61
93
|
export type FieldSetProps = Omit<FieldsetHTMLAttributes<HTMLFieldSetElement>, "children"> & {
|
|
62
94
|
children?: ReactNode;
|
|
@@ -68,6 +100,11 @@ export type FieldSetProps = Omit<FieldsetHTMLAttributes<HTMLFieldSetElement>, "c
|
|
|
68
100
|
*/
|
|
69
101
|
size?: FieldSetSize;
|
|
70
102
|
classNames?: Prettify<FieldSetClassNames>;
|
|
103
|
+
/**
|
|
104
|
+
* Per-slot motion (`root`, `stack`, `legend`, `legendHeader`, `group`, `actions`).
|
|
105
|
+
* Defaults are empty.
|
|
106
|
+
*/
|
|
107
|
+
motion?: Prettify<FieldSetMotion>;
|
|
71
108
|
};
|
|
72
109
|
export type UseFieldSetRootStateResult = {
|
|
73
110
|
legend: ReactNode;
|
|
@@ -6,6 +6,7 @@ export declare const Field: typeof FieldRoot & {
|
|
|
6
6
|
status?: import('./fieldTypes').FieldHintStatus;
|
|
7
7
|
as?: "p" | "span";
|
|
8
8
|
variant?: import('../Text').TextVariant;
|
|
9
|
+
motion?: import('../../..').Prettify<import('./fieldTypes').FieldPartMotion>;
|
|
9
10
|
} & import('react').RefAttributes<HTMLElement>>;
|
|
10
11
|
Label: typeof FieldLabel;
|
|
11
12
|
Error: typeof FieldError;
|
|
@@ -15,28 +16,35 @@ export declare const Field: typeof FieldRoot & {
|
|
|
15
16
|
errorId?: string;
|
|
16
17
|
size?: import('./fieldTypes').FieldSetSize;
|
|
17
18
|
classNames?: import('../../..').Prettify<import('./fieldTypes').FieldSetClassNames>;
|
|
19
|
+
motion?: import('../../..').Prettify<import('./fieldTypes').FieldSetMotion>;
|
|
18
20
|
} & import('react').RefAttributes<HTMLFieldSetElement>> & {
|
|
19
21
|
Legend: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLLegendElement> & {
|
|
20
22
|
children?: import('react').ReactNode;
|
|
23
|
+
motion?: import('../../..').Prettify<import('./fieldTypes').FieldPartMotion>;
|
|
21
24
|
} & import('react').RefAttributes<HTMLLegendElement>>;
|
|
22
25
|
LegendHeader: typeof FieldLegendHeader;
|
|
23
26
|
Group: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
24
27
|
children?: import('react').ReactNode;
|
|
28
|
+
motion?: import('../../..').Prettify<import('./fieldTypes').FieldPartMotion>;
|
|
25
29
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
26
30
|
Actions: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
27
31
|
children?: import('react').ReactNode;
|
|
32
|
+
motion?: import('../../..').Prettify<import('./fieldTypes').FieldPartMotion>;
|
|
28
33
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
29
34
|
};
|
|
30
35
|
Legend: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLLegendElement> & {
|
|
31
36
|
children?: import('react').ReactNode;
|
|
37
|
+
motion?: import('../../..').Prettify<import('./fieldTypes').FieldPartMotion>;
|
|
32
38
|
} & import('react').RefAttributes<HTMLLegendElement>>;
|
|
33
39
|
LegendHeader: typeof FieldLegendHeader;
|
|
34
40
|
Group: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
35
41
|
children?: import('react').ReactNode;
|
|
42
|
+
motion?: import('../../..').Prettify<import('./fieldTypes').FieldPartMotion>;
|
|
36
43
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
37
44
|
Actions: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
38
45
|
children?: import('react').ReactNode;
|
|
46
|
+
motion?: import('../../..').Prettify<import('./fieldTypes').FieldPartMotion>;
|
|
39
47
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
40
48
|
};
|
|
41
49
|
export { useFieldSetHintId, useFieldSetErrorId, joinFieldDescribedBy, fieldHintId, fieldErrorId, };
|
|
42
|
-
export type { FieldProps, FieldHintProps, FieldHintStatus, FieldLabelProps, FieldErrorProps, FieldSetProps, FieldSetGroupProps, FieldSetActionsProps, FieldLegendProps, FieldLegendHeaderProps, FieldSetSize, FieldSize, FieldClassNames, FieldSetClassNames, } from './fieldTypes';
|
|
50
|
+
export type { FieldProps, FieldHintProps, FieldHintStatus, FieldLabelProps, FieldErrorProps, FieldSetProps, FieldSetGroupProps, FieldSetActionsProps, FieldLegendProps, FieldLegendHeaderProps, FieldSetSize, FieldSize, FieldClassNames, FieldSetClassNames, FieldMotion, FieldPartMotion, FieldSetMotion, } from './fieldTypes';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { InputSimpleProps } from './inputTypes';
|
|
2
|
-
export type { InputClassNames, InputErrorProps, InputHintProps, InputControlProps, InputProps, InputSimpleProps, InputSize, InputStatus, InputVariant, } from './inputTypes';
|
|
2
|
+
export type { InputClassNames, InputErrorProps, InputHintProps, InputControlProps, InputProps, InputSimpleProps, InputSize, InputStatus, InputVariant, InputMotion, InputPartMotion, } from './inputTypes';
|
|
3
3
|
export { InputControl, InputError, InputHint, InputLabel } from './inputParts';
|
|
4
|
-
export declare function InputRoot({ children, label, hint, error, className, classNames, id: idProp, required, status, size, ...rest }: InputSimpleProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function InputRoot({ children, label, hint, error, className, classNames, id: idProp, required, status, size, motion, ...rest }: InputSimpleProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,8 +11,9 @@ export declare const Input: typeof InputRoot & {
|
|
|
11
11
|
suffix?: import('react').ReactNode;
|
|
12
12
|
onPointerDown?: import('react').PointerEventHandler<HTMLDivElement>;
|
|
13
13
|
classNames?: import('../../..').Prettify<import('./inputTypes').InputClassNames>;
|
|
14
|
+
motion?: import('../../..').Prettify<import('./inputTypes').InputPartMotion>;
|
|
14
15
|
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
15
16
|
Hint: typeof InputHint;
|
|
16
17
|
Error: typeof InputError;
|
|
17
18
|
};
|
|
18
|
-
export type { InputClassNames, InputErrorProps, InputHintProps, InputControlProps, InputProps, InputSimpleProps, InputSize, InputStatus, InputVariant, } from './inputTypes';
|
|
19
|
+
export type { InputClassNames, InputErrorProps, InputHintProps, InputControlProps, InputProps, InputSimpleProps, InputSize, InputStatus, InputVariant, InputMotion, InputPartMotion, } from './inputTypes';
|
|
@@ -20,3 +20,7 @@ export declare function FileRemoveButton({ disabled, onRemove, }: {
|
|
|
20
20
|
disabled?: boolean;
|
|
21
21
|
onRemove: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
22
22
|
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function InputFileRow({ className, children, }: {
|
|
24
|
+
className?: string;
|
|
25
|
+
children: ReactNode;
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { InputVariant } from './inputTypes';
|
|
3
|
-
export declare function
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { MutableRefObject, PointerEvent } from 'react';
|
|
2
|
+
import { InputMotion, InputVariant, UseInputShellAnimationsProps } from './inputTypes';
|
|
3
|
+
export declare function resolveInputMotionDefaults({ isGloss, blocked, groupSegment, }: {
|
|
4
|
+
isGloss: boolean;
|
|
5
|
+
blocked: boolean;
|
|
6
|
+
groupSegment?: unknown;
|
|
7
|
+
}): InputMotion;
|
|
8
|
+
export declare function resolveInputMotionParams({ blocked, isGloss, groupSegment, pointerInside, }: {
|
|
6
9
|
blocked: boolean;
|
|
7
|
-
|
|
8
|
-
groupSegment
|
|
9
|
-
|
|
10
|
+
isGloss: boolean;
|
|
11
|
+
groupSegment?: unknown;
|
|
12
|
+
pointerInside: MutableRefObject<boolean>;
|
|
10
13
|
}): {
|
|
14
|
+
shadowSize: "base";
|
|
15
|
+
hasHoverShadow: boolean;
|
|
16
|
+
isGloss: boolean;
|
|
17
|
+
pointerInside: MutableRefObject<boolean>;
|
|
18
|
+
};
|
|
19
|
+
export declare function useInputShellAnimations({ shellRef, blocked, variant, groupSegment, motion, pointerInsideRef, onPointerDown, }: UseInputShellAnimationsProps): {
|
|
11
20
|
isGloss: boolean;
|
|
12
|
-
|
|
13
|
-
|
|
21
|
+
bindShellRef: (node: HTMLDivElement | null) => void;
|
|
22
|
+
playFileRowLeave: (rowEl: HTMLElement | null) => Promise<void>;
|
|
14
23
|
shellPointerDown: (e: PointerEvent<HTMLDivElement>) => void;
|
|
15
|
-
|
|
16
|
-
|
|
24
|
+
shellPointerUp: () => void;
|
|
25
|
+
shellPointerEnter: (e: PointerEvent<HTMLDivElement>) => void;
|
|
26
|
+
shellPointerLeave: (e: PointerEvent<HTMLDivElement>) => void;
|
|
17
27
|
shellFocusCapture: (() => void) | undefined;
|
|
18
28
|
shellBlurCapture: ((e: React.FocusEvent<HTMLElement>) => void) | undefined;
|
|
19
29
|
shellHoverMotionClass: string;
|
|
@@ -23,3 +33,4 @@ export declare function useInputShellMotion({ shellRef, blocked, variant, groupS
|
|
|
23
33
|
"data-gloss-disabled"?: undefined;
|
|
24
34
|
};
|
|
25
35
|
};
|
|
36
|
+
export type { InputVariant };
|
|
@@ -7,3 +7,10 @@ export declare function InputClassNamesProvider({ classNames, children, }: Input
|
|
|
7
7
|
export declare function useInputFieldContext(): InputFieldContextValue;
|
|
8
8
|
export declare function useOptionalInputFieldContext(): InputFieldContextValue | null;
|
|
9
9
|
export declare function useInputClassNames(): InputClassNames;
|
|
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').MotionSlotMap;
|
|
13
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
14
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
15
|
+
children: import('react').ReactNode;
|
|
16
|
+
}) => import("react/jsx-runtime").JSX.Element, useInputMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalInputMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InputPartMotion } from './inputTypes';
|
|
1
2
|
export declare const InputControl: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "prefix" | "onPointerDown"> & {
|
|
2
3
|
variant?: import('./inputTypes').InputVariant;
|
|
3
4
|
size?: import('./inputTypes').InputSize;
|
|
@@ -8,4 +9,5 @@ export declare const InputControl: import('react').ForwardRefExoticComponent<Omi
|
|
|
8
9
|
suffix?: import('react').ReactNode;
|
|
9
10
|
onPointerDown?: import('react').PointerEventHandler<HTMLDivElement>;
|
|
10
11
|
classNames?: import('../../..').Prettify<import('./inputTypes').InputClassNames>;
|
|
12
|
+
motion?: import('../../..').Prettify<InputPartMotion>;
|
|
11
13
|
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { HTMLAttributes, InputHTMLAttributes, PointerEventHandler, ReactNode } from 'react';
|
|
1
|
+
import { HTMLAttributes, InputHTMLAttributes, MutableRefObject, PointerEvent, PointerEventHandler, ReactNode, RefObject } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
3
|
import { ButtonGroupSegment } from '../../composite/ButtonGroup/buttonGroupTypes';
|
|
4
4
|
import { ComponentSize } from '../utils/sizeLayout';
|
|
5
5
|
import { SemanticStatus } from '../utils/semanticStatusIcons';
|
|
6
|
+
import { MotionValue } from '../utils/slotMotion';
|
|
6
7
|
export type InputVariant = "default" | "outline" | "secondary" | "gloss";
|
|
7
8
|
export type InputStatus = SemanticStatus;
|
|
8
9
|
export type InputSize = ComponentSize;
|
|
@@ -23,6 +24,23 @@ export type InputClassNames = {
|
|
|
23
24
|
hint?: string;
|
|
24
25
|
error?: string;
|
|
25
26
|
};
|
|
27
|
+
export type InputPartMotion = {
|
|
28
|
+
hoverIn?: MotionValue;
|
|
29
|
+
hoverOut?: MotionValue;
|
|
30
|
+
pressIn?: MotionValue;
|
|
31
|
+
pressOut?: MotionValue;
|
|
32
|
+
enter?: MotionValue;
|
|
33
|
+
leave?: MotionValue;
|
|
34
|
+
};
|
|
35
|
+
export type InputMotion = {
|
|
36
|
+
shell?: InputPartMotion;
|
|
37
|
+
control?: InputPartMotion;
|
|
38
|
+
prefix?: InputPartMotion;
|
|
39
|
+
suffix?: InputPartMotion;
|
|
40
|
+
passwordToggle?: InputPartMotion;
|
|
41
|
+
fileRow?: Pick<InputPartMotion, "leave" | "hoverIn" | "hoverOut">;
|
|
42
|
+
fileRemove?: InputPartMotion;
|
|
43
|
+
};
|
|
26
44
|
export type InputControlProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "prefix" | "onPointerDown"> & {
|
|
27
45
|
variant?: InputVariant;
|
|
28
46
|
size?: InputSize;
|
|
@@ -33,6 +51,8 @@ export type InputControlProps = Omit<InputHTMLAttributes<HTMLInputElement>, "siz
|
|
|
33
51
|
suffix?: ReactNode;
|
|
34
52
|
onPointerDown?: PointerEventHandler<HTMLDivElement>;
|
|
35
53
|
classNames?: Prettify<InputClassNames>;
|
|
54
|
+
/** Shell part motion. Root `motion.shell` still applies; this wins on the Control host. */
|
|
55
|
+
motion?: Prettify<InputPartMotion>;
|
|
36
56
|
};
|
|
37
57
|
export type InputFieldContextValue = {
|
|
38
58
|
inputId: string;
|
|
@@ -59,8 +79,22 @@ export type InputProps = Omit<HTMLAttributes<HTMLDivElement>, "prefix"> & {
|
|
|
59
79
|
status?: InputStatus;
|
|
60
80
|
size?: InputSize;
|
|
61
81
|
classNames?: Prettify<InputClassNames>;
|
|
82
|
+
/**
|
|
83
|
+
* Per-slot motion (`shell`, `control`, `prefix`, `suffix`, `passwordToggle`, `fileRow`, `fileRemove`).
|
|
84
|
+
* File remove leave: `fileRow.leave` (`fileRowExit`).
|
|
85
|
+
*/
|
|
86
|
+
motion?: Prettify<InputMotion>;
|
|
87
|
+
};
|
|
88
|
+
export type InputSimpleProps = InputProps & Omit<InputControlProps, "motion">;
|
|
89
|
+
export type UseInputShellAnimationsProps = {
|
|
90
|
+
shellRef: RefObject<HTMLDivElement | null>;
|
|
91
|
+
blocked: boolean;
|
|
92
|
+
variant: InputVariant;
|
|
93
|
+
groupSegment: unknown;
|
|
94
|
+
motion?: InputPartMotion;
|
|
95
|
+
pointerInsideRef: MutableRefObject<boolean>;
|
|
96
|
+
onPointerDown?: (e: PointerEvent<HTMLDivElement>) => void;
|
|
62
97
|
};
|
|
63
|
-
export type InputSimpleProps = InputProps & InputControlProps;
|
|
64
98
|
export type InputHintProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
65
99
|
children?: ReactNode;
|
|
66
100
|
status?: Exclude<InputStatus, "danger"> | "default";
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { KbdMotion } from './kbdTypes';
|
|
3
|
+
export type { KbdProps, KbdVariant, KbdSize, KbdClassNames, KbdGroupProps, KbdMotion, KbdPartMotion, KbdTextProps, } from './kbdTypes';
|
|
4
|
+
export declare const KbdRoot: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
3
5
|
variant?: import('./kbdTypes').KbdVariant;
|
|
4
6
|
size?: import('./kbdTypes').KbdSize;
|
|
5
7
|
classNames?: import('../../..').Prettify<import('./kbdTypes').KbdClassNames>;
|
|
6
8
|
children?: import('react').ReactNode;
|
|
7
9
|
hoverLift?: boolean;
|
|
10
|
+
motion?: import('../../..').Prettify<KbdMotion>;
|
|
8
11
|
} & import('react').RefAttributes<HTMLElement>>;
|
|
@@ -5,8 +5,9 @@ export declare const Kbd: import('react').ForwardRefExoticComponent<Omit<import(
|
|
|
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
9
|
} & import('react').RefAttributes<HTMLElement>> & {
|
|
9
10
|
Group: typeof KbdGroup;
|
|
10
11
|
Text: typeof KbdText;
|
|
11
12
|
};
|
|
12
|
-
export type { KbdProps, KbdVariant, KbdSize, KbdClassNames, KbdGroupProps, } from './Kbd';
|
|
13
|
+
export type { KbdProps, KbdVariant, KbdSize, KbdClassNames, KbdGroupProps, KbdMotion, KbdPartMotion, KbdTextProps, } from './Kbd';
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { UseKbdAnimationsProps } from './kbdTypes';
|
|
2
|
-
export declare function
|
|
1
|
+
import { KbdMotion, KbdVariant, UseKbdAnimationsProps } from './kbdTypes';
|
|
2
|
+
export declare function resolveKbdMotionDefaults({ variant, hoverLift, }: {
|
|
3
|
+
variant: KbdVariant;
|
|
4
|
+
hoverLift: boolean;
|
|
5
|
+
}): KbdMotion;
|
|
6
|
+
export declare function useKbdAnimations({ variant, hoverLift, motion, forwardedRef, onPointerOver: onPointerOverProp, onPointerOut: onPointerOutProp, }: UseKbdAnimationsProps): {
|
|
3
7
|
setMergedRef: (node: HTMLElement | null) => void;
|
|
4
8
|
motionClass: string;
|
|
5
|
-
glossMotionClass: string;
|
|
6
9
|
pointerHandlers: {
|
|
7
|
-
onPointerOver: (e:
|
|
8
|
-
onPointerOut: (e:
|
|
10
|
+
onPointerOver: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
11
|
+
onPointerOut: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
9
12
|
};
|
|
10
13
|
};
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import { KbdClassNames, KbdClassNamesProviderProps } from './kbdTypes';
|
|
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').MotionSlotMap;
|
|
5
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
6
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
7
|
+
children: import('react').ReactNode;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element, useKbdMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalKbdMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
2
9
|
export declare function KbdClassNamesProvider({ classNames, children, }: KbdClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
3
10
|
export declare function useKbdClassNames(): KbdClassNames;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare function KbdText({ size, className, children, }: {
|
|
4
|
-
size: KbdSize;
|
|
5
|
-
className?: string;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { KbdTextProps } from './kbdTypes';
|
|
2
|
+
export declare function KbdText({ size, className, children, motion, onPointerOver, onPointerOut, ...rest }: KbdTextProps): import("react/jsx-runtime").JSX.Element;
|
|
8
3
|
export declare namespace KbdText {
|
|
9
4
|
var displayName: string;
|
|
10
5
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MotionValue } from '../utils/slotMotion';
|
|
1
2
|
import { ForwardedRef, HTMLAttributes, PointerEvent as ReactPointerEvent, ReactNode } from 'react';
|
|
2
3
|
import { Prettify } from '../../../utils/prettify';
|
|
3
4
|
export type KbdVariant = "default" | "primary" | "outline" | "secondary" | "gloss";
|
|
@@ -9,6 +10,14 @@ export type KbdClassNames = {
|
|
|
9
10
|
/** Separator between keys in `Kbd.Group` (prop `separator`, not a compound part). */
|
|
10
11
|
separator?: string;
|
|
11
12
|
};
|
|
13
|
+
export type KbdPartMotion = {
|
|
14
|
+
hoverIn?: MotionValue;
|
|
15
|
+
hoverOut?: MotionValue;
|
|
16
|
+
};
|
|
17
|
+
export type KbdMotion = {
|
|
18
|
+
root?: KbdPartMotion;
|
|
19
|
+
text?: KbdPartMotion;
|
|
20
|
+
};
|
|
12
21
|
export type KbdProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
13
22
|
variant?: KbdVariant;
|
|
14
23
|
size?: KbdSize;
|
|
@@ -16,9 +25,14 @@ export type KbdProps = Omit<HTMLAttributes<HTMLElement>, "children"> & {
|
|
|
16
25
|
children?: ReactNode;
|
|
17
26
|
/**
|
|
18
27
|
* Hover lift + stronger shadow in the same family (like `Badge`). Rest elevation stays when `false`.
|
|
28
|
+
* Shorthand for `motion.root.hoverIn/Out: false`. An explicit `motion.root.hoverIn` wins.
|
|
19
29
|
* @default true
|
|
20
30
|
*/
|
|
21
31
|
hoverLift?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Per-slot motion (`root`, `text`).
|
|
34
|
+
*/
|
|
35
|
+
motion?: Prettify<KbdMotion>;
|
|
22
36
|
};
|
|
23
37
|
export type KbdGroupProps = Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
|
24
38
|
classNames?: Prettify<KbdClassNames>;
|
|
@@ -42,7 +56,12 @@ export type UseKbdRootStateProps = {
|
|
|
42
56
|
export type UseKbdAnimationsProps = {
|
|
43
57
|
variant: KbdVariant;
|
|
44
58
|
hoverLift?: boolean;
|
|
59
|
+
motion?: KbdMotion;
|
|
45
60
|
forwardedRef: ForwardedRef<HTMLElement>;
|
|
46
61
|
onPointerOver?: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
47
62
|
onPointerOut?: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
48
63
|
};
|
|
64
|
+
export type KbdTextProps = HTMLAttributes<HTMLSpanElement> & {
|
|
65
|
+
size: KbdSize;
|
|
66
|
+
motion?: Prettify<KbdPartMotion>;
|
|
67
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LabelSlot } from './labelParts';
|
|
2
2
|
import { LabelProps } from './labelTypes';
|
|
3
|
-
export type { LabelProps, LabelClassNames, FieldLabelContextValue, } from './labelTypes';
|
|
4
|
-
export declare function LabelRoot({ children, className, required: requiredProp, htmlFor: htmlForProp, id: idProp, variant, ...rest }: Omit<LabelProps, "classNames">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare function Label({ classNames, ...rest }: LabelProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
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">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function Label({ classNames, motion, ...rest }: LabelProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export { LabelSlot };
|
|
@@ -5,5 +5,5 @@ export type LabelComponent = ((props: LabelProps) => ReturnType<typeof Label>) &
|
|
|
5
5
|
};
|
|
6
6
|
declare const LabelCompound: LabelComponent;
|
|
7
7
|
export { LabelCompound as Label, LabelRoot, LabelSlot };
|
|
8
|
-
export type { LabelProps, LabelClassNames, FieldLabelContextValue } from './labelTypes';
|
|
8
|
+
export type { LabelProps, LabelClassNames, LabelMotion, LabelPartMotion, FieldLabelContextValue } from './labelTypes';
|
|
9
9
|
export { FieldLabelContext, useOptionalFieldLabelContext, } from './labelContext';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ForwardedRef, PointerEvent as ReactPointerEvent } from 'react';
|
|
2
|
+
import { LabelMotion, LabelPartMotion } from './labelTypes';
|
|
3
|
+
export declare function resolveLabelMotionDefaults(): LabelMotion;
|
|
4
|
+
export declare function useLabelRootMotion({ forwardedRef, motion, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }: {
|
|
5
|
+
forwardedRef?: ForwardedRef<HTMLElement>;
|
|
6
|
+
motion?: LabelPartMotion;
|
|
7
|
+
onPointerOver?: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
8
|
+
onPointerOut?: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
9
|
+
onPointerDown?: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
10
|
+
onPointerUp?: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
11
|
+
}): {
|
|
12
|
+
setRef: (node: HTMLElement | null) => void;
|
|
13
|
+
targetRef: import('react').RefObject<HTMLElement | null>;
|
|
14
|
+
pointerHandlers: {
|
|
15
|
+
onPointerOver: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
16
|
+
onPointerOut: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
17
|
+
onPointerDown: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
18
|
+
onPointerUp: (e: ReactPointerEvent<HTMLElement>) => void;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -7,4 +7,11 @@ export declare function FieldLabelContextProvider({ value, children, }: {
|
|
|
7
7
|
export declare function LabelClassNamesProvider({ classNames, children, }: LabelClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export declare function useOptionalFieldLabelContext(): FieldLabelContextValue | null;
|
|
9
9
|
export declare function useLabelClassNames(): LabelClassNames;
|
|
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').MotionSlotMap;
|
|
13
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
14
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
15
|
+
children: import('react').ReactNode;
|
|
16
|
+
}) => import("react/jsx-runtime").JSX.Element, useLabelMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalLabelMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
10
17
|
export { FieldLabelContext };
|
|
@@ -1,17 +1,35 @@
|
|
|
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
5
|
export type LabelClassNames = {
|
|
5
6
|
root?: string;
|
|
6
7
|
text?: string;
|
|
7
8
|
required?: string;
|
|
8
9
|
};
|
|
10
|
+
export type LabelPartMotion = {
|
|
11
|
+
hoverIn?: MotionValue;
|
|
12
|
+
hoverOut?: MotionValue;
|
|
13
|
+
pressIn?: MotionValue;
|
|
14
|
+
pressOut?: MotionValue;
|
|
15
|
+
enter?: MotionValue;
|
|
16
|
+
leave?: MotionValue;
|
|
17
|
+
};
|
|
18
|
+
export type LabelMotion = {
|
|
19
|
+
root?: LabelPartMotion;
|
|
20
|
+
text?: LabelPartMotion;
|
|
21
|
+
required?: LabelPartMotion;
|
|
22
|
+
};
|
|
9
23
|
export type LabelProps = Omit<LabelHTMLAttributes<HTMLLabelElement>, "children"> & {
|
|
10
24
|
children?: ReactNode;
|
|
11
25
|
required?: boolean;
|
|
12
26
|
/** Text size for the label copy. Default `base`. */
|
|
13
27
|
variant?: TextVariant;
|
|
14
28
|
classNames?: Prettify<LabelClassNames>;
|
|
29
|
+
/**
|
|
30
|
+
* Per-slot motion (`root`, `text`, `required`). Defaults are empty — custom factories are opt-in.
|
|
31
|
+
*/
|
|
32
|
+
motion?: Prettify<LabelMotion>;
|
|
15
33
|
};
|
|
16
34
|
export type LabelClassNamesProviderProps = {
|
|
17
35
|
classNames?: Prettify<LabelClassNames>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LinkIcon } from './linkParts';
|
|
2
2
|
import { LinkProps } from './linkTypes';
|
|
3
|
-
export type { LinkProps, LinkSize, LinkIconPos, LinkIconProps, LinkClassNames, } from './linkTypes';
|
|
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, "classNames"> & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
5
|
+
export declare const LinkRoot: import('react').ForwardRefExoticComponent<Omit<LinkProps, "motion" | "classNames"> & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
6
6
|
export declare const Link: import('react').ForwardRefExoticComponent<LinkProps & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
@@ -6,4 +6,4 @@ export type LinkComponent = ((props: LinkProps & RefAttributes<HTMLAnchorElement
|
|
|
6
6
|
};
|
|
7
7
|
declare const LinkCompound: LinkComponent;
|
|
8
8
|
export { LinkCompound as Link };
|
|
9
|
-
export type { LinkProps, LinkSize, LinkIconPos, LinkIconProps, LinkClassNames, } from './linkTypes';
|
|
9
|
+
export type { LinkProps, LinkSize, LinkIconPos, LinkIconProps, LinkClassNames, LinkMotion, LinkPartMotion, } from './linkTypes';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LinkAnchorBodyProps, LinkBodyContentProps } from './linkTypes';
|
|
2
2
|
export declare function LinkBodyContent({ size, underline, textVariant, textChildren, startIcon, endIcon, startIconMuted, endIconMuted, usesDefaultAtStart, usesDefaultAtEnd, }: LinkBodyContentProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare function LinkAnchorBody({ href, size, underline, textVariant, textChildren, startIcon, endIcon, startIconMuted, endIconMuted, usesDefaultAtStart, usesDefaultAtEnd, className, setAnchorRef, handlePointerEnter, handlePointerLeave,
|
|
3
|
+
export declare function LinkAnchorBody({ href, size, underline, textVariant, textChildren, startIcon, endIcon, startIconMuted, endIconMuted, usesDefaultAtStart, usesDefaultAtEnd, className, setAnchorRef, handlePointerEnter, handlePointerLeave, pointerHandlers, handleKeyDown, ...rest }: LinkAnchorBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { KeyboardEvent, PointerEvent } from 'react';
|
|
2
|
+
import { LinkMotion, UseLinkAnimationsProps } from './linkTypes';
|
|
3
|
+
export declare function resolveLinkMotionDefaults(): LinkMotion;
|
|
4
|
+
export declare function useLinkAnimations({ forwardedRef, onPointerEnter, onPointerLeave, onPointerOver, onPointerOut, onPointerDown, onPointerUp, onKeyDown, }: UseLinkAnimationsProps): {
|
|
3
5
|
setAnchorRef: (node: HTMLAnchorElement | null) => void;
|
|
4
|
-
handlePointerEnter: (e:
|
|
5
|
-
handlePointerLeave: (e:
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
handlePointerEnter: (e: PointerEvent<HTMLAnchorElement>) => void;
|
|
7
|
+
handlePointerLeave: (e: PointerEvent<HTMLAnchorElement>) => void;
|
|
8
|
+
handleKeyDown: (e: KeyboardEvent<HTMLAnchorElement>) => void;
|
|
9
|
+
pointerHandlers: {
|
|
10
|
+
onPointerOver: (e: PointerEvent<HTMLAnchorElement>) => void;
|
|
11
|
+
onPointerOut: (e: PointerEvent<HTMLAnchorElement>) => void;
|
|
12
|
+
onPointerDown: (e: PointerEvent<HTMLAnchorElement>) => void;
|
|
13
|
+
onPointerUp: (e: PointerEvent<HTMLAnchorElement>) => void;
|
|
14
|
+
};
|
|
8
15
|
};
|