burne-ui 1.8.5 → 1.8.6
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 +23101 -16687
- 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-DELPwtpL.js} +1764 -1508
- package/dist/themeRuntimeContext-DknZO7q3.cjs +14 -0
- package/dist/ui.css +49 -51
- package/package.json +3 -2
- package/dist/components/core/SelectionIndicator/useSelectionIndicatorAnimation.d.ts +0 -2
- package/dist/themeRuntimeContext-POhnqI3h.cjs +0 -14
|
@@ -12,12 +12,19 @@ export declare const Popover: typeof PopoverRoot & {
|
|
|
12
12
|
unstyled?: boolean;
|
|
13
13
|
contentRole?: "dialog" | undefined;
|
|
14
14
|
portalContainer?: HTMLElement | null;
|
|
15
|
+
motion?: import('../../..').Prettify<import('./popoverTypes').PopoverMotion>;
|
|
15
16
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
16
17
|
Header: import('react').ForwardRefExoticComponent<import('./popoverTypes').PopoverHeaderProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
|
-
Title: import('react').ForwardRefExoticComponent<import('
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
Title: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLHeadingElement> & {
|
|
19
|
+
motion?: import('../../..').Prettify<import('./popoverTypes').PopoverPartMotion>;
|
|
20
|
+
} & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
21
|
+
Description: import('react').ForwardRefExoticComponent<Omit<import('../Field').FieldHintProps, "id" | "as"> & {
|
|
22
|
+
motion?: import('../../..').Prettify<import('./popoverTypes').PopoverPartMotion>;
|
|
23
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
24
|
+
Body: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
25
|
+
motion?: import('../../..').Prettify<import('./popoverTypes').PopoverLifecycleMotion>;
|
|
26
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
20
27
|
Arrow: import('react').ForwardRefExoticComponent<import('./popoverTypes').PopoverArrowProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
21
28
|
};
|
|
22
|
-
export type { PopoverProps, PopoverTriggerProps, PopoverContentProps, PopoverHeaderProps, PopoverTitleProps, PopoverDescriptionProps, PopoverBodyProps, PopoverArrowProps, PopoverSide, PopoverSize, PopoverVariant, PopoverContentGap, PopoverClassNames, } from './Popover';
|
|
29
|
+
export type { PopoverProps, PopoverTriggerProps, PopoverContentProps, PopoverHeaderProps, PopoverTitleProps, PopoverDescriptionProps, PopoverBodyProps, PopoverArrowProps, PopoverSide, PopoverSize, PopoverVariant, PopoverContentGap, PopoverClassNames, PopoverMotion, PopoverLifecycleMotion, PopoverPartMotion, } from './Popover';
|
|
23
30
|
export type { FloatingAlign, FloatingAlign as PopoverAlign } from '../Tooltip/tooltipPosition';
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { FloatingAlign } from '../Tooltip/tooltipPosition';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { MotionScopeValue } from '../utils/slotMotion';
|
|
3
|
+
import { PopoverMotion, UsePopoverContentLifecycleProps } from './popoverTypes';
|
|
4
|
+
export declare const POPOVER_MOTION_HOST_SLOTS: readonly ["content"];
|
|
5
|
+
export declare const POPOVER_MOTION_DEFAULTS: PopoverMotion;
|
|
6
|
+
export declare function usePopoverContentLifecycle({ open, side, offset, align, matchAnchorWidth, showArrow, isGloss, forwardedRef, contentRef, triggerRef, anchorRef, portalContainer, motionScope, }: UsePopoverContentLifecycleProps & {
|
|
7
|
+
motionScope: MotionScopeValue;
|
|
8
|
+
}): {
|
|
4
9
|
panelRef: import('react').RefObject<HTMLDivElement | null>;
|
|
5
10
|
setPanelRef: (node: HTMLDivElement | null) => void;
|
|
6
11
|
bindGlossPanelRef: (node: HTMLElement | null) => void;
|
|
@@ -19,3 +19,10 @@ export declare function PopoverContentChromeProvider({ unstyled, children, }: {
|
|
|
19
19
|
export declare function usePopoverContentChrome(): {
|
|
20
20
|
unstyled: boolean;
|
|
21
21
|
};
|
|
22
|
+
/** Scope only. Defaults and host play live in `popoverAnimations.ts`. */
|
|
23
|
+
export declare const PopoverMotionProvider: ({ motion, defaults, params, children, }: {
|
|
24
|
+
motion?: import('../utils/slotMotion').MotionSlotMap;
|
|
25
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
26
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
}) => import("react/jsx-runtime").JSX.Element, usePopoverMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalPopoverMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import { PopoverArrowProps,
|
|
1
|
+
import { PopoverArrowProps, PopoverHeaderProps } from './popoverTypes';
|
|
2
2
|
export declare const PopoverTrigger: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLButtonElement> & {
|
|
3
3
|
asChild?: boolean;
|
|
4
4
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
export declare const PopoverArrow: import('react').ForwardRefExoticComponent<PopoverArrowProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
6
6
|
export declare const PopoverHeader: import('react').ForwardRefExoticComponent<PopoverHeaderProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export declare const PopoverTitle: import('react').ForwardRefExoticComponent<
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
export declare const PopoverTitle: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLHeadingElement> & {
|
|
8
|
+
motion?: import('../../..').Prettify<import('./popoverTypes').PopoverPartMotion>;
|
|
9
|
+
} & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
10
|
+
export declare const PopoverDescription: import('react').ForwardRefExoticComponent<Omit<import('../Field').FieldHintProps, "id" | "as"> & {
|
|
11
|
+
motion?: import('../../..').Prettify<import('./popoverTypes').PopoverPartMotion>;
|
|
12
|
+
} & import('react').RefAttributes<HTMLElement>>;
|
|
13
|
+
export declare const PopoverBody: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
14
|
+
motion?: import('../../..').Prettify<import('./popoverTypes').PopoverLifecycleMotion>;
|
|
15
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
16
|
export declare const PopoverContent: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
11
17
|
showArrow?: boolean;
|
|
12
18
|
offset?: number;
|
|
@@ -16,4 +22,5 @@ export declare const PopoverContent: import('react').ForwardRefExoticComponent<i
|
|
|
16
22
|
unstyled?: boolean;
|
|
17
23
|
contentRole?: "dialog" | undefined;
|
|
18
24
|
portalContainer?: HTMLElement | null;
|
|
25
|
+
motion?: import('../../..').Prettify<import('./popoverTypes').PopoverMotion>;
|
|
19
26
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FieldHintProps } from '../Field';
|
|
2
2
|
import { FloatingAlign, TooltipSide } from '../Tooltip/tooltipPosition';
|
|
3
3
|
import { PanelSize } from '../utils/sizeLayout';
|
|
4
|
+
import { MotionValue } from '../utils/slotMotion';
|
|
4
5
|
import { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
5
6
|
import { Prettify } from '../../../utils/prettify';
|
|
6
7
|
export type PopoverSide = TooltipSide;
|
|
@@ -22,6 +23,20 @@ export type PopoverClassNames = {
|
|
|
22
23
|
hint?: string;
|
|
23
24
|
body?: string;
|
|
24
25
|
};
|
|
26
|
+
export type PopoverLifecycleMotion = {
|
|
27
|
+
enter?: MotionValue;
|
|
28
|
+
leave?: MotionValue;
|
|
29
|
+
};
|
|
30
|
+
export type PopoverPartMotion = PopoverLifecycleMotion & {
|
|
31
|
+
hoverIn?: MotionValue;
|
|
32
|
+
hoverOut?: MotionValue;
|
|
33
|
+
};
|
|
34
|
+
export type PopoverMotion = {
|
|
35
|
+
content?: PopoverLifecycleMotion;
|
|
36
|
+
title?: PopoverPartMotion;
|
|
37
|
+
description?: PopoverPartMotion;
|
|
38
|
+
body?: PopoverLifecycleMotion;
|
|
39
|
+
};
|
|
25
40
|
export type PopoverContextValue = {
|
|
26
41
|
open: boolean;
|
|
27
42
|
setOpen: (open: boolean) => void;
|
|
@@ -52,21 +67,32 @@ export type PopoverProps = {
|
|
|
52
67
|
/** DOM node for the portal. Default: `document.body`. */
|
|
53
68
|
portalContainer?: HTMLElement | null;
|
|
54
69
|
classNames?: Prettify<PopoverClassNames>;
|
|
70
|
+
/**
|
|
71
|
+
* Per-slot motion. Root has no portal DOM — the host is `Popover.Content`.
|
|
72
|
+
* Default: `content.enter/leave` → `portalSurfaceEnter` / `portalSurfaceLeave`.
|
|
73
|
+
*/
|
|
74
|
+
motion?: Prettify<PopoverMotion>;
|
|
55
75
|
};
|
|
56
76
|
export type PopoverClassNamesProviderProps = {
|
|
57
77
|
classNames?: Prettify<PopoverClassNames>;
|
|
58
78
|
children: ReactNode;
|
|
59
79
|
};
|
|
60
|
-
export type UsePopoverRootStateProps = Omit<PopoverProps, "classNames">;
|
|
80
|
+
export type UsePopoverRootStateProps = Omit<PopoverProps, "classNames" | "motion">;
|
|
61
81
|
export type PopoverTriggerProps = HTMLAttributes<HTMLButtonElement> & {
|
|
62
82
|
/** Merge props onto the single child (Button, etc.) instead of rendering a `<button>` wrapper. */
|
|
63
83
|
asChild?: boolean;
|
|
64
84
|
};
|
|
65
85
|
export type PopoverArrowProps = HTMLAttributes<HTMLSpanElement>;
|
|
66
86
|
export type PopoverHeaderProps = HTMLAttributes<HTMLDivElement>;
|
|
67
|
-
export type PopoverTitleProps = HTMLAttributes<HTMLHeadingElement
|
|
68
|
-
|
|
69
|
-
|
|
87
|
+
export type PopoverTitleProps = HTMLAttributes<HTMLHeadingElement> & {
|
|
88
|
+
motion?: Prettify<PopoverPartMotion>;
|
|
89
|
+
};
|
|
90
|
+
export type PopoverDescriptionProps = Omit<FieldHintProps, "id" | "as"> & {
|
|
91
|
+
motion?: Prettify<PopoverPartMotion>;
|
|
92
|
+
};
|
|
93
|
+
export type PopoverBodyProps = HTMLAttributes<HTMLDivElement> & {
|
|
94
|
+
motion?: Prettify<PopoverLifecycleMotion>;
|
|
95
|
+
};
|
|
70
96
|
export type PopoverContentProps = HTMLAttributes<HTMLDivElement> & {
|
|
71
97
|
showArrow?: boolean;
|
|
72
98
|
offset?: number;
|
|
@@ -77,6 +103,7 @@ export type PopoverContentProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
77
103
|
contentRole?: "dialog" | undefined;
|
|
78
104
|
/** Overrides Root `portalContainer`. Default: `document.body`. */
|
|
79
105
|
portalContainer?: HTMLElement | null;
|
|
106
|
+
motion?: Prettify<PopoverMotion>;
|
|
80
107
|
};
|
|
81
108
|
export type UsePopoverContentLifecycleProps = {
|
|
82
109
|
open: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ProgressBarProps } from './progressBarTypes';
|
|
2
|
-
export type { ProgressBarClassNames, ProgressBarErrorProps, ProgressBarHeaderProps, ProgressBarHintProps, ProgressBarOrientation, ProgressBarProps, ProgressBarSize, ProgressBarTrackProps, ProgressBarValueProps, } from './progressBarTypes';
|
|
2
|
+
export type { ProgressBarClassNames, ProgressBarErrorProps, ProgressBarHeaderProps, ProgressBarHintProps, ProgressBarOrientation, ProgressBarProps, ProgressBarSize, ProgressBarTrackProps, ProgressBarValueProps, ProgressBarMotion, ProgressBarPartMotion, } from './progressBarTypes';
|
|
3
3
|
export { ProgressBarError, ProgressBarHeader, ProgressBarHint, ProgressBarLabel, ProgressBarSimpleBody, ProgressBarTrack, ProgressBarValue, } from './progressBarParts';
|
|
4
4
|
export { useProgressBarFieldContext, useOptionalProgressBarFieldContext, } from './progressBarContext';
|
|
5
|
-
export declare function ProgressBarRoot({ children, className, classNames, id, orientation, label, showValue, valueText, hint, error, value, indeterminate, min, max, size, thickness, color, formatValue, ...divRest }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function ProgressBarRoot({ children, className, classNames, id, orientation, label, showValue, valueText, hint, error, value, indeterminate, min, max, size, thickness, color, formatValue, motion, ...divRest }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare namespace ProgressBarRoot {
|
|
7
7
|
var displayName: string;
|
|
8
8
|
}
|
|
@@ -16,9 +16,11 @@ export declare const ProgressBar: typeof ProgressBarRoot & {
|
|
|
16
16
|
formatValue?: (value: number) => string;
|
|
17
17
|
orientation?: import('./progressBarTypes').ProgressBarOrientation;
|
|
18
18
|
className?: string;
|
|
19
|
+
motion?: import('../../..').Prettify<import('./progressBarTypes').ProgressBarPartMotion>;
|
|
19
20
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
20
21
|
};
|
|
21
22
|
export type { ProgressBarTrackProps, ProgressBarSize, ProgressBarOrientation, ProgressBarClassNames, } from './ProgressBar';
|
|
23
|
+
export type { ProgressBarMotion, ProgressBarPartMotion, } from './progressBarTypes';
|
|
22
24
|
export type { ProgressBarProps, ProgressBarHeaderProps, ProgressBarValueProps, ProgressBarHintProps, ProgressBarErrorProps, } from './ProgressBar';
|
|
23
25
|
export { useProgressBarFieldContext, useOptionalProgressBarFieldContext, } from './ProgressBar';
|
|
24
26
|
export type { ProgressBarDisplayState, ProgressBarFieldContextValue, } from './progressBarTypes';
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MotionScopeValue } from '../utils/slotMotion';
|
|
2
|
+
import { ProgressBarMotion, UseProgressBarFillAnimationProps } from './progressBarTypes';
|
|
3
|
+
export declare function resolveProgressBarMotionDefaults(): ProgressBarMotion;
|
|
4
|
+
export declare function useProgressBarTrackSlotMotion(scope: MotionScopeValue | null, identity: string): void;
|
|
2
5
|
export declare function useProgressBarFillAnimation({ indeterminate, percent, isHorizontal, }: UseProgressBarFillAnimationProps): {
|
|
3
6
|
fillRef: import('react').RefObject<HTMLSpanElement | null>;
|
|
4
7
|
reduceMotion: boolean;
|
|
@@ -8,4 +8,11 @@ export declare function ProgressBarClassNamesProvider({ classNames, children, }:
|
|
|
8
8
|
export declare function useProgressBarFieldContext(): ProgressBarFieldContextValue;
|
|
9
9
|
export declare function useOptionalProgressBarFieldContext(): ProgressBarFieldContextValue | null;
|
|
10
10
|
export declare function useProgressBarClassNames(): ProgressBarClassNames;
|
|
11
|
+
/** Scope only. Defaults and host play live in `progressBarAnimations.ts`. */
|
|
12
|
+
export declare const ProgressBarMotionProvider: ({ motion, defaults, params, children, }: {
|
|
13
|
+
motion?: import('../utils/slotMotion').MotionSlotMap;
|
|
14
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
15
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
16
|
+
children: import('react').ReactNode;
|
|
17
|
+
}) => import("react/jsx-runtime").JSX.Element, useProgressBarMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalProgressBarMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
11
18
|
export { ProgressBarFieldContext };
|
|
@@ -5,11 +5,11 @@ export declare function ProgressBarLabel({ className, classNames, ...rest }: Lab
|
|
|
5
5
|
export declare namespace ProgressBarLabel {
|
|
6
6
|
var displayName: string;
|
|
7
7
|
}
|
|
8
|
-
export declare function ProgressBarHeader({ children, className, ...rest }: ProgressBarHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function ProgressBarHeader({ children, className, motion, ...rest }: ProgressBarHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export declare namespace ProgressBarHeader {
|
|
10
10
|
var displayName: string;
|
|
11
11
|
}
|
|
12
|
-
export declare function ProgressBarValue({ children, className, ...rest }: ProgressBarValueProps): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
export declare function ProgressBarValue({ children, className, motion, ...rest }: ProgressBarValueProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
13
|
export declare namespace ProgressBarValue {
|
|
14
14
|
var displayName: string;
|
|
15
15
|
}
|
|
@@ -32,4 +32,5 @@ export declare const ProgressBarTrack: import('react').ForwardRefExoticComponent
|
|
|
32
32
|
formatValue?: (value: number) => string;
|
|
33
33
|
orientation?: import('./progressBarTypes').ProgressBarOrientation;
|
|
34
34
|
className?: string;
|
|
35
|
+
motion?: import('../../..').Prettify<import('./progressBarTypes').ProgressBarPartMotion>;
|
|
35
36
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
|
+
import { MotionValue } from '../utils/slotMotion';
|
|
3
4
|
export type ProgressBarSize = "small" | "base" | "mid" | "large";
|
|
4
5
|
export type ProgressBarOrientation = "horizontal" | "vertical";
|
|
5
6
|
export type ProgressBarClassNames = {
|
|
@@ -13,6 +14,22 @@ export type ProgressBarClassNames = {
|
|
|
13
14
|
hint?: string;
|
|
14
15
|
error?: string;
|
|
15
16
|
};
|
|
17
|
+
export type ProgressBarPartMotion = {
|
|
18
|
+
hoverIn?: MotionValue;
|
|
19
|
+
hoverOut?: MotionValue;
|
|
20
|
+
pressIn?: MotionValue;
|
|
21
|
+
pressOut?: MotionValue;
|
|
22
|
+
enter?: MotionValue;
|
|
23
|
+
leave?: MotionValue;
|
|
24
|
+
/** Plays when `value` / indeterminate identity changes. Fill scale stays kit-internal. */
|
|
25
|
+
change?: MotionValue;
|
|
26
|
+
};
|
|
27
|
+
export type ProgressBarMotion = {
|
|
28
|
+
track?: ProgressBarPartMotion;
|
|
29
|
+
fill?: ProgressBarPartMotion;
|
|
30
|
+
header?: ProgressBarPartMotion;
|
|
31
|
+
value?: ProgressBarPartMotion;
|
|
32
|
+
};
|
|
16
33
|
export type ProgressBarDisplayState = {
|
|
17
34
|
clampedValue: number;
|
|
18
35
|
statusText: string;
|
|
@@ -41,8 +58,9 @@ export type ProgressBarTrackProps = Omit<HTMLAttributes<HTMLDivElement>, "childr
|
|
|
41
58
|
formatValue?: (value: number) => string;
|
|
42
59
|
orientation?: ProgressBarOrientation;
|
|
43
60
|
className?: string;
|
|
61
|
+
motion?: Prettify<ProgressBarPartMotion>;
|
|
44
62
|
};
|
|
45
|
-
export type ProgressBarProps = HTMLAttributes<HTMLDivElement> & Partial<ProgressBarTrackProps
|
|
63
|
+
export type ProgressBarProps = HTMLAttributes<HTMLDivElement> & Partial<Omit<ProgressBarTrackProps, "motion">> & {
|
|
46
64
|
children?: ReactNode;
|
|
47
65
|
id?: string;
|
|
48
66
|
orientation?: ProgressBarOrientation;
|
|
@@ -52,6 +70,11 @@ export type ProgressBarProps = HTMLAttributes<HTMLDivElement> & Partial<Progress
|
|
|
52
70
|
hint?: ReactNode;
|
|
53
71
|
error?: ReactNode;
|
|
54
72
|
classNames?: Prettify<ProgressBarClassNames>;
|
|
73
|
+
/**
|
|
74
|
+
* Per-slot motion (`track`, `fill`, `header`, `value`).
|
|
75
|
+
* Fill scale / indeterminate travel is kit-internal. Phase `change` plays on `track`.
|
|
76
|
+
*/
|
|
77
|
+
motion?: Prettify<ProgressBarMotion>;
|
|
55
78
|
};
|
|
56
79
|
export type ProgressBarClassNamesProviderProps = {
|
|
57
80
|
classNames?: Prettify<ProgressBarClassNames>;
|
|
@@ -59,9 +82,11 @@ export type ProgressBarClassNamesProviderProps = {
|
|
|
59
82
|
};
|
|
60
83
|
export type ProgressBarHeaderProps = HTMLAttributes<HTMLDivElement> & {
|
|
61
84
|
children?: ReactNode;
|
|
85
|
+
motion?: Prettify<ProgressBarPartMotion>;
|
|
62
86
|
};
|
|
63
87
|
export type ProgressBarValueProps = HTMLAttributes<HTMLSpanElement> & {
|
|
64
88
|
children?: ReactNode;
|
|
89
|
+
motion?: Prettify<ProgressBarPartMotion>;
|
|
65
90
|
};
|
|
66
91
|
export type ProgressBarHintProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
67
92
|
children?: ReactNode;
|
|
@@ -69,7 +94,7 @@ export type ProgressBarHintProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
|
69
94
|
export type ProgressBarErrorProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
70
95
|
children?: ReactNode;
|
|
71
96
|
};
|
|
72
|
-
export type UseProgressBarRootStateProps = Omit<ProgressBarProps, "className" | "classNames">;
|
|
97
|
+
export type UseProgressBarRootStateProps = Omit<ProgressBarProps, "className" | "classNames" | "motion">;
|
|
73
98
|
export type UseProgressBarTrackStateProps = Pick<ProgressBarTrackProps, "value" | "indeterminate" | "min" | "max" | "size" | "thickness" | "color" | "formatValue" | "orientation"> & {
|
|
74
99
|
"aria-describedby"?: string;
|
|
75
100
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type { RadioProps, RadioControlProps, RadioIndicatorProps, RadioContentProps, RadioLabelProps, RadioHintProps, RadioErrorProps, RadioSize, RadioVariant, RadioClassNames, } from './radioTypes';
|
|
2
|
-
export declare const RadioRoot: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "
|
|
1
|
+
export type { RadioProps, RadioControlProps, RadioIndicatorProps, RadioContentProps, RadioLabelProps, RadioHintProps, RadioErrorProps, RadioSize, RadioVariant, RadioClassNames, RadioMotion, RadioCheckMotion, } from './radioTypes';
|
|
2
|
+
export declare const RadioRoot: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onPointerDown" | "onChange" | "htmlFor"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "children" | "className"> & {
|
|
3
3
|
children?: import('react').ReactNode;
|
|
4
4
|
label?: import('react').ReactNode;
|
|
5
5
|
hint?: import('react').ReactNode;
|
|
@@ -9,6 +9,7 @@ export declare const RadioRoot: import('react').ForwardRefExoticComponent<Omit<i
|
|
|
9
9
|
danger?: boolean;
|
|
10
10
|
className?: string;
|
|
11
11
|
classNames?: import('../../..').Prettify<import('./radioTypes').RadioClassNames>;
|
|
12
|
+
motion?: import('../../..').Prettify<import('./radioTypes').RadioMotion>;
|
|
12
13
|
onPointerDown?: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
|
|
13
14
|
} & import('react').RefAttributes<HTMLLabelElement>>;
|
|
14
15
|
export { RadioControl, RadioIndicator, RadioContent, RadioLabel, RadioHint, RadioError, } from './radioParts';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RadioError, RadioHint, RadioIndicator, RadioLabel } from './Radio';
|
|
2
|
-
export declare const Radio: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "
|
|
2
|
+
export declare const Radio: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onPointerDown" | "onChange" | "htmlFor"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "children" | "className"> & {
|
|
3
3
|
children?: import('react').ReactNode;
|
|
4
4
|
label?: import('react').ReactNode;
|
|
5
5
|
hint?: import('react').ReactNode;
|
|
@@ -9,13 +9,17 @@ export declare const Radio: import('react').ForwardRefExoticComponent<Omit<impor
|
|
|
9
9
|
danger?: boolean;
|
|
10
10
|
className?: string;
|
|
11
11
|
classNames?: import('../../..').Prettify<import('./radioTypes').RadioClassNames>;
|
|
12
|
+
motion?: import('../../..').Prettify<import('./radioTypes').RadioMotion>;
|
|
12
13
|
onPointerDown?: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
|
|
13
14
|
} & import('react').RefAttributes<HTMLLabelElement>> & {
|
|
14
15
|
Control: import('react').ForwardRefExoticComponent<import('./radioTypes').RadioControlProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
15
16
|
Indicator: typeof RadioIndicator & {
|
|
16
|
-
Fill: import('react').ForwardRefExoticComponent<import('
|
|
17
|
+
Fill: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
18
|
+
motion?: import('../../..').Prettify<import('../SelectionIndicator').SelectionIndicatorCheckMotion>;
|
|
19
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
17
20
|
Mark: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
18
21
|
children?: import('react').ReactNode;
|
|
22
|
+
motion?: import('../../..').Prettify<import('../SelectionIndicator').SelectionIndicatorCheckMotion>;
|
|
19
23
|
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
20
24
|
};
|
|
21
25
|
Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
@@ -25,4 +29,4 @@ export declare const Radio: import('react').ForwardRefExoticComponent<Omit<impor
|
|
|
25
29
|
Hint: typeof RadioHint;
|
|
26
30
|
Error: typeof RadioError;
|
|
27
31
|
};
|
|
28
|
-
export type { RadioProps, RadioControlProps, RadioIndicatorProps, RadioContentProps, RadioLabelProps, RadioHintProps, RadioErrorProps, RadioSize, RadioVariant, RadioClassNames, } from './radioTypes';
|
|
32
|
+
export type { RadioProps, RadioControlProps, RadioIndicatorProps, RadioContentProps, RadioLabelProps, RadioHintProps, RadioErrorProps, RadioSize, RadioVariant, RadioClassNames, RadioMotion, RadioCheckMotion, } from './radioTypes';
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SelectionIndicatorMotion } from '../SelectionIndicator';
|
|
2
|
+
import { RadioMotion, UseRadioAnimationsProps } from './radioTypes';
|
|
3
|
+
/** Root Radio `motion` keys → SelectionIndicator slots. */
|
|
4
|
+
export declare const RADIO_MOTION_SLOT_MAP: {
|
|
5
|
+
readonly indicator: "root";
|
|
6
|
+
readonly indicatorFill: "fill";
|
|
7
|
+
readonly indicatorMark: "mark";
|
|
8
|
+
};
|
|
9
|
+
export declare function resolveRadioIndicatorMotion({ rootMotion, indicatorMotion, }: {
|
|
10
|
+
rootMotion?: RadioMotion;
|
|
11
|
+
indicatorMotion?: SelectionIndicatorMotion;
|
|
12
|
+
}): SelectionIndicatorMotion | undefined;
|
|
2
13
|
export declare function useRadioControlTrackAnimation(): import('react').RefObject<HTMLSpanElement | null>;
|
|
3
14
|
export declare function useRadioTextMotion({ isDisabled, enableTextMotion, textMotionRef, onPointerDown, onKeyDown, }: UseRadioAnimationsProps): {
|
|
4
15
|
handlePointerEnter: (e: import('react').PointerEvent<HTMLLabelElement>) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RadioClassNames, RadioClassNamesProviderProps, RadioFieldContextValue } from './radioTypes';
|
|
1
|
+
import { RadioClassNames, RadioClassNamesProviderProps, RadioFieldContextValue, RadioMotion, RadioMotionProviderProps } from './radioTypes';
|
|
2
2
|
declare const RadioFieldContext: import('react').Context<RadioFieldContextValue | null>;
|
|
3
3
|
export declare function RadioFieldProvider({ value, children, }: {
|
|
4
4
|
value: RadioFieldContextValue;
|
|
@@ -8,4 +8,6 @@ export declare function RadioClassNamesProvider({ classNames, children, }: Radio
|
|
|
8
8
|
export declare function useRadioFieldContext(): RadioFieldContextValue;
|
|
9
9
|
export declare function useOptionalRadioFieldContext(): RadioFieldContextValue | null;
|
|
10
10
|
export declare function useRadioClassNames(): RadioClassNames;
|
|
11
|
+
export declare function RadioMotionProvider({ motion, children, }: RadioMotionProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function useRadioMotion(): RadioMotion | undefined;
|
|
11
13
|
export { RadioFieldContext };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RadioControlProps, RadioErrorProps, RadioHintProps, RadioIndicatorProps, RadioLabelProps, RadioSize } from './radioTypes';
|
|
2
2
|
export declare const RadioControl: import('react').ForwardRefExoticComponent<RadioControlProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
3
|
-
export declare function RadioIndicator({ children, className, classNames: classNamesProp, size: sizeProp, ...rest }: RadioIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function RadioIndicator({ children, className, classNames: classNamesProp, size: sizeProp, motion: motionProp, ...rest }: RadioIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare namespace RadioIndicator {
|
|
5
5
|
var displayName: string;
|
|
6
6
|
}
|
|
@@ -2,7 +2,8 @@ import { ChangeEvent, HTMLAttributes, InputHTMLAttributes, KeyboardEvent, LabelH
|
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
3
|
import { FieldErrorProps, FieldHintProps } from '../Field';
|
|
4
4
|
import { LabelProps } from '../Label';
|
|
5
|
-
import {
|
|
5
|
+
import { MotionValue } from '../utils/slotMotion';
|
|
6
|
+
import { SelectionIndicatorClassNames, SelectionIndicatorMotion } from '../SelectionIndicator';
|
|
6
7
|
export type RadioVariant = "default" | "secondary" | "outline" | "gloss";
|
|
7
8
|
export type RadioSize = "small" | "base" | "mid" | "large";
|
|
8
9
|
export type RadioClassNames = {
|
|
@@ -22,6 +23,16 @@ export type RadioClassNames = {
|
|
|
22
23
|
simpleLabelText?: string;
|
|
23
24
|
input?: string;
|
|
24
25
|
};
|
|
26
|
+
export type RadioCheckMotion = {
|
|
27
|
+
check?: MotionValue;
|
|
28
|
+
uncheck?: MotionValue;
|
|
29
|
+
};
|
|
30
|
+
/** Root map. Keys → SelectionIndicator slots in `radioAnimations.ts`. */
|
|
31
|
+
export type RadioMotion = {
|
|
32
|
+
indicator?: RadioCheckMotion;
|
|
33
|
+
indicatorFill?: RadioCheckMotion;
|
|
34
|
+
indicatorMark?: RadioCheckMotion;
|
|
35
|
+
};
|
|
25
36
|
export type RadioProps = Omit<LabelHTMLAttributes<HTMLLabelElement>, "children" | "htmlFor" | "onChange" | "onPointerDown"> & Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "children" | "className"> & {
|
|
26
37
|
children?: ReactNode;
|
|
27
38
|
label?: ReactNode;
|
|
@@ -32,6 +43,7 @@ export type RadioProps = Omit<LabelHTMLAttributes<HTMLLabelElement>, "children"
|
|
|
32
43
|
danger?: boolean;
|
|
33
44
|
className?: string;
|
|
34
45
|
classNames?: Prettify<RadioClassNames>;
|
|
46
|
+
motion?: Prettify<RadioMotion>;
|
|
35
47
|
onPointerDown?: (e: PointerEvent<HTMLLabelElement>) => void;
|
|
36
48
|
};
|
|
37
49
|
export type RadioControlProps = HTMLAttributes<HTMLSpanElement>;
|
|
@@ -40,6 +52,7 @@ export type RadioIndicatorProps = HTMLAttributes<HTMLSpanElement> & {
|
|
|
40
52
|
children?: ReactNode;
|
|
41
53
|
size?: RadioSize;
|
|
42
54
|
classNames?: Prettify<RadioIndicatorClassNames>;
|
|
55
|
+
motion?: Prettify<SelectionIndicatorMotion>;
|
|
43
56
|
};
|
|
44
57
|
export type RadioContentProps = HTMLAttributes<HTMLDivElement> & {
|
|
45
58
|
children?: ReactNode;
|
|
@@ -85,6 +98,10 @@ export type RadioClassNamesProviderProps = {
|
|
|
85
98
|
classNames?: Prettify<RadioClassNames>;
|
|
86
99
|
children: ReactNode;
|
|
87
100
|
};
|
|
101
|
+
export type RadioMotionProviderProps = {
|
|
102
|
+
motion?: Prettify<RadioMotion>;
|
|
103
|
+
children: ReactNode;
|
|
104
|
+
};
|
|
88
105
|
export type UseRadioRootStateProps = Omit<RadioProps, "children" | "className" | "classNames" | "onPointerDown" | "onClick">;
|
|
89
106
|
export type UseRadioAnimationsProps = {
|
|
90
107
|
isDisabled: boolean;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { SearchInputMotion } from './searchInputTypes';
|
|
3
|
+
export type { SearchInputProps, SearchInputSize, SearchInputVariant, SearchInputClassNames, SearchInputMotion, SearchInputPartMotion, } from './searchInputTypes';
|
|
4
|
+
export declare const SearchInput: import('react').ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
|
|
3
5
|
size?: import('./searchInputTypes').SearchInputSize;
|
|
4
6
|
variant?: import('./searchInputTypes').SearchInputVariant;
|
|
5
7
|
expandedWidth?: number;
|
|
@@ -11,4 +13,5 @@ export declare const SearchInput: import('react').ForwardRefExoticComponent<Omit
|
|
|
11
13
|
groupSegment?: import('../Button/buttonContext').ButtonGroupSegment;
|
|
12
14
|
"aria-label"?: string;
|
|
13
15
|
classNames?: import('../../..').Prettify<import('./searchInputTypes').SearchInputClassNames>;
|
|
16
|
+
motion?: import('../../..').Prettify<SearchInputMotion>;
|
|
14
17
|
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { SearchInput } from './SearchInput';
|
|
2
|
-
export type { SearchInputProps, SearchInputSize, SearchInputVariant, SearchInputClassNames, } from './searchInputTypes';
|
|
2
|
+
export type { SearchInputProps, SearchInputSize, SearchInputVariant, SearchInputClassNames, SearchInputMotion, SearchInputPartMotion, } from './searchInputTypes';
|
|
@@ -1,14 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
import { SearchInputMotion, SearchInputSize, SearchSizeLayout, UseSearchInputAnimationsProps } from './searchInputTypes';
|
|
3
|
+
export declare function resolveSearchInputMotionDefaults({ isGloss, blocked, groupSegment, expanded, }: {
|
|
4
|
+
isGloss: boolean;
|
|
5
|
+
blocked: boolean;
|
|
6
|
+
groupSegment?: unknown;
|
|
7
|
+
expanded: boolean;
|
|
8
|
+
}): SearchInputMotion;
|
|
9
|
+
export declare function resolveSearchInputMotionParams({ size, layout, targetW, expanded, blocked, isGloss, groupSegment, pointerInside, }: {
|
|
10
|
+
size: SearchInputSize;
|
|
11
|
+
layout: SearchSizeLayout;
|
|
12
|
+
targetW: number;
|
|
13
|
+
expanded: boolean;
|
|
14
|
+
blocked: boolean;
|
|
15
|
+
isGloss: boolean;
|
|
16
|
+
groupSegment?: unknown;
|
|
17
|
+
pointerInside: MutableRefObject<boolean>;
|
|
18
|
+
}): {
|
|
19
|
+
targetW: number;
|
|
20
|
+
collapsedDim: number;
|
|
21
|
+
expandedRadius: number;
|
|
22
|
+
padX: number;
|
|
23
|
+
iconBox: number;
|
|
24
|
+
iconLeftCollapsedCss: string;
|
|
25
|
+
shadowSize: "none" | "base";
|
|
26
|
+
hasHoverShadow: boolean;
|
|
27
|
+
isGloss: boolean;
|
|
28
|
+
pointerInside: MutableRefObject<boolean>;
|
|
29
|
+
};
|
|
30
|
+
export declare function useSearchInputAnimations({ size, expanded, blocked, isGloss, groupSegment, layout, targetW, motion, rootRef, iconRef, pointerInsideRef, }: UseSearchInputAnimationsProps): {
|
|
4
31
|
bindRootRef: (node: HTMLDivElement | null) => void;
|
|
5
32
|
bindIconRef: (node: HTMLSpanElement | null) => void;
|
|
6
33
|
beginPressSqueeze: () => void;
|
|
7
34
|
awaitPressSqueeze: () => Promise<void>;
|
|
8
|
-
handlePointerEnter: (e: import('react').PointerEvent<
|
|
9
|
-
handlePointerLeave: (e: import('react').PointerEvent<
|
|
35
|
+
handlePointerEnter: (e: import('react').PointerEvent<HTMLDivElement>) => void;
|
|
36
|
+
handlePointerLeave: (e: import('react').PointerEvent<HTMLDivElement>) => void;
|
|
10
37
|
onShellFocusIn: (() => void) | undefined;
|
|
11
38
|
onShellFocusOut: ((e: React.FocusEvent<HTMLElement>) => void) | undefined;
|
|
12
39
|
shellHoverMotionClass: string;
|
|
13
40
|
standardMotionClass: string;
|
|
41
|
+
expandMetrics: {
|
|
42
|
+
targetW: number;
|
|
43
|
+
collapsedDim: number;
|
|
44
|
+
expandedRadius: number;
|
|
45
|
+
padX: number;
|
|
46
|
+
iconBox: number;
|
|
47
|
+
iconLeftCollapsedCss: string;
|
|
48
|
+
};
|
|
14
49
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Scope only. Defaults and host play live in `searchInputAnimations.ts`. */
|
|
2
|
+
export declare const SearchInputMotionProvider: ({ motion, defaults, params, children, }: {
|
|
3
|
+
motion?: import('../utils/slotMotion').MotionSlotMap;
|
|
4
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
5
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
6
|
+
children: import('react').ReactNode;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element, useSearchInputMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalSearchInputMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -3,6 +3,14 @@ import { SearchSizeLayout } from './searchInputTypes';
|
|
|
3
3
|
export declare function SearchInputRipple({ disabled }: {
|
|
4
4
|
disabled: boolean;
|
|
5
5
|
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function SearchInputExpandTrigger({ blocked, inputId, collapseA11yLabel, className, onClick, onKeyDown, }: {
|
|
7
|
+
blocked: boolean;
|
|
8
|
+
inputId: string;
|
|
9
|
+
collapseA11yLabel: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
onClick: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
12
|
+
onKeyDown: (e: KeyboardEvent<HTMLButtonElement>) => void;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
14
|
export declare function SearchInputIcon({ bindIconRef, layout, className, }: {
|
|
7
15
|
bindIconRef: (node: HTMLSpanElement | null) => void;
|
|
8
16
|
layout: SearchSizeLayout;
|
|
@@ -5,8 +5,8 @@ export declare const SEARCH_INPUT_EXPAND_TRIGGER_CLASS = "absolute inset-0 z-[2]
|
|
|
5
5
|
export declare const SEARCH_INPUT_ICON_WRAP_CLASS = "pointer-events-none absolute inset-y-0 z-[1] flex items-center justify-center text-muted";
|
|
6
6
|
export declare const SEARCH_INPUT_ICON_CLASS = "shrink-0";
|
|
7
7
|
export declare const SEARCH_INPUT_CONTROL_BASE_CLASS = "box-border min-h-0 w-full border-0 bg-transparent text-foreground outline-none placeholder:text-muted [&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none disabled:cursor-not-allowed disabled:opacity-100";
|
|
8
|
-
export declare const SEARCH_INPUT_CONTROL_EXPANDED_CLASS = "
|
|
9
|
-
export declare const SEARCH_INPUT_CONTROL_COLLAPSED_CLASS = "pointer-events-none absolute inset-0 opacity-0";
|
|
8
|
+
export declare const SEARCH_INPUT_CONTROL_EXPANDED_CLASS = "pointer-events-auto absolute inset-0 z-[2] opacity-100";
|
|
9
|
+
export declare const SEARCH_INPUT_CONTROL_COLLAPSED_CLASS = "pointer-events-none absolute inset-0 z-[2] opacity-0";
|
|
10
10
|
export declare const SEARCH_INPUT_CLEAR_BUTTON_CLASS = "absolute top-1/2 z-[3] flex -translate-y-1/2 items-center justify-center rounded-full border-0 bg-transparent p-0 text-foreground outline-none focus-ring-inset cursor-pointer";
|
|
11
11
|
export declare const SEARCH_INPUT_CLEAR_ICON_CLASS = "shrink-0";
|
|
12
12
|
export declare const SEARCH_INPUT_ROOT_BASE_CLASS = "relative box-border inline-block overflow-hidden text-left";
|