burne-ui 1.8.4 → 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/dropdownItemParts.d.ts +1 -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 +32 -0
- package/dist/components/core/Dropdown/index.d.ts +8 -2
- package/dist/components/core/Dropdown/useDropdownItemState.d.ts +2 -1
- 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 +37 -3
- 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 +7 -2
- package/dist/components/core/ListBox/listBoxAPI.d.ts +2 -3
- 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 +4 -2
- package/dist/components/core/ListBox/listBoxTypes.d.ts +23 -11
- package/dist/components/core/ListBox/useListBoxItemState.d.ts +2 -1
- package/dist/components/core/ListBox/useListBoxRootState.d.ts +1 -1
- 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/popoverStyles.d.ts +1 -1
- 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/tooltipStyles.d.ts +1 -1
- 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/optionListItemStyles.d.ts +4 -1
- 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 +23253 -16825
- 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
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export type { CloseButtonProps, CloseButtonSize, CloseButtonVariant, CloseButtonClassNames, } from './closeButtonTypes';
|
|
1
|
+
export type { CloseButtonProps, CloseButtonSize, CloseButtonVariant, CloseButtonClassNames, CloseButtonMotion, CloseButtonPartMotion, } from './closeButtonTypes';
|
|
2
2
|
export declare const CloseButton: import('react').ForwardRefExoticComponent<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
3
3
|
variant?: import('./closeButtonTypes').CloseButtonVariant;
|
|
4
4
|
size?: import('./closeButtonTypes').CloseButtonSize;
|
|
5
5
|
ripple?: boolean;
|
|
6
6
|
classNames?: import('../../..').Prettify<import('./closeButtonTypes').CloseButtonClassNames>;
|
|
7
|
+
motion?: import('../../..').Prettify<import('./closeButtonTypes').CloseButtonMotion>;
|
|
7
8
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,8 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { KeyboardEvent, PointerEvent } from 'react';
|
|
2
|
+
import { CloseButtonMotion, CloseButtonVariant, UseCloseButtonAnimationsProps } from './closeButtonTypes';
|
|
3
|
+
export declare function resolveCloseButtonMotionDefaults({ variant, disabled, }: {
|
|
4
|
+
variant: CloseButtonVariant;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
}): CloseButtonMotion;
|
|
7
|
+
export declare function resolveCloseButtonMotionParams({ variant, disabled, pointerInside, }: {
|
|
8
|
+
variant: CloseButtonVariant;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
pointerInside: React.MutableRefObject<boolean>;
|
|
11
|
+
}): {
|
|
12
|
+
pointerInside: import('react').MutableRefObject<boolean>;
|
|
13
|
+
hasHoverShadow: boolean;
|
|
14
|
+
isGloss: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare function useCloseButtonAnimations({ variant, disabled, forwardedRef, motion, hoverPointerInsideRef, onPointerDown, onPointerUp, onPointerEnter, onPointerLeave, onPointerOver, onPointerOut, onKeyDown, }: UseCloseButtonAnimationsProps): {
|
|
3
17
|
setRefs: (node: HTMLButtonElement | null) => void;
|
|
4
|
-
handlePointerEnter: (e:
|
|
5
|
-
handlePointerLeave: (e:
|
|
6
|
-
handlePointerDown: (e:
|
|
7
|
-
|
|
18
|
+
handlePointerEnter: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
19
|
+
handlePointerLeave: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
20
|
+
handlePointerDown: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
21
|
+
handlePointerUp: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
22
|
+
handleKeyDown: (e: KeyboardEvent<HTMLButtonElement>) => void;
|
|
23
|
+
pointerHandlers: {
|
|
24
|
+
onPointerOver: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
25
|
+
onPointerOut: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
26
|
+
};
|
|
8
27
|
};
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import { CloseButtonClassNames, CloseButtonClassNamesProviderProps } from './closeButtonTypes';
|
|
2
2
|
export declare function CloseButtonClassNamesProvider({ classNames, children, }: CloseButtonClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export declare function useCloseButtonClassNames(): CloseButtonClassNames;
|
|
4
|
+
/** Scope only. Defaults and host play live in `closeButtonAnimations.ts`. */
|
|
5
|
+
export declare const CloseButtonMotionProvider: ({ motion, defaults, params, children, }: {
|
|
6
|
+
motion?: import('../utils/slotMotion').MotionSlotMap;
|
|
7
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
8
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
9
|
+
children: import('react').ReactNode;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element, useCloseButtonMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalCloseButtonMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, KeyboardEvent, PointerEvent } from 'react';
|
|
1
|
+
import { ButtonHTMLAttributes, KeyboardEvent, MutableRefObject, PointerEvent } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
3
|
import { ComponentSize } from '../utils/sizeLayout';
|
|
4
|
+
import { MotionValue } from '../utils/slotMotion';
|
|
4
5
|
export type CloseButtonVariant = "default" | "primary" | "outline" | "secondary" | "ghost" | "gloss";
|
|
5
6
|
export type CloseButtonSize = ComponentSize;
|
|
6
7
|
export type CloseButtonClassNames = {
|
|
@@ -8,23 +9,39 @@ export type CloseButtonClassNames = {
|
|
|
8
9
|
icon?: string;
|
|
9
10
|
ripple?: string;
|
|
10
11
|
};
|
|
12
|
+
export type CloseButtonPartMotion = {
|
|
13
|
+
hoverIn?: MotionValue;
|
|
14
|
+
hoverOut?: MotionValue;
|
|
15
|
+
pressIn?: MotionValue;
|
|
16
|
+
pressOut?: MotionValue;
|
|
17
|
+
};
|
|
18
|
+
export type CloseButtonMotion = {
|
|
19
|
+
root?: CloseButtonPartMotion;
|
|
20
|
+
icon?: CloseButtonPartMotion;
|
|
21
|
+
};
|
|
11
22
|
export type CloseButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
|
|
12
23
|
variant?: CloseButtonVariant;
|
|
13
24
|
size?: CloseButtonSize;
|
|
14
25
|
ripple?: boolean;
|
|
15
26
|
classNames?: Prettify<CloseButtonClassNames>;
|
|
27
|
+
motion?: Prettify<CloseButtonMotion>;
|
|
16
28
|
};
|
|
17
29
|
export type CloseButtonClassNamesProviderProps = {
|
|
18
30
|
classNames?: Prettify<CloseButtonClassNames>;
|
|
19
31
|
children: React.ReactNode;
|
|
20
32
|
};
|
|
21
|
-
export type UseCloseButtonRootStateProps = Omit<CloseButtonProps, "onPointerDown" | "onPointerEnter" | "onPointerLeave" | "onKeyDown">;
|
|
33
|
+
export type UseCloseButtonRootStateProps = Omit<CloseButtonProps, "onPointerDown" | "onPointerUp" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOut" | "onKeyDown" | "motion">;
|
|
22
34
|
export type UseCloseButtonAnimationsProps = {
|
|
23
35
|
variant: CloseButtonVariant;
|
|
24
36
|
disabled: boolean;
|
|
25
37
|
forwardedRef: React.ForwardedRef<HTMLButtonElement>;
|
|
38
|
+
motion?: CloseButtonMotion;
|
|
39
|
+
hoverPointerInsideRef: MutableRefObject<boolean>;
|
|
26
40
|
onPointerDown?: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
41
|
+
onPointerUp?: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
27
42
|
onPointerEnter?: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
28
43
|
onPointerLeave?: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
44
|
+
onPointerOver?: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
45
|
+
onPointerOut?: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
29
46
|
onKeyDown?: (e: KeyboardEvent<HTMLButtonElement>) => void;
|
|
30
47
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { CloseButton } from './CloseButton';
|
|
2
|
-
export type { CloseButtonProps, CloseButtonSize, CloseButtonVariant, CloseButtonClassNames, } from './closeButtonTypes';
|
|
2
|
+
export type { CloseButtonProps, CloseButtonSize, CloseButtonVariant, CloseButtonClassNames, CloseButtonMotion, CloseButtonPartMotion, } from './closeButtonTypes';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ColorPickerAlphaInput, ColorPickerArea, ColorPickerContent, ColorPickerHexInput, ColorPickerPresets, ColorPickerTrigger } from './colorPickerParts';
|
|
2
2
|
import { ColorPickerProps } from './colorPickerTypes';
|
|
3
|
-
export type { ColorPickerProps, ColorPickerTriggerProps, ColorPickerContentProps, ColorPickerAreaProps, ColorPickerHexInputProps, ColorPickerAlphaInputProps, ColorPickerPresetsProps, ColorPickerSize, ColorPickerVariant, ColorPickerClassNames, } from './colorPickerTypes';
|
|
3
|
+
export type { ColorPickerProps, ColorPickerTriggerProps, ColorPickerContentProps, ColorPickerAreaProps, ColorPickerHexInputProps, ColorPickerAlphaInputProps, ColorPickerPresetsProps, ColorPickerSize, ColorPickerVariant, ColorPickerClassNames, ColorPickerMotion, ColorPickerPartMotion, } from './colorPickerTypes';
|
|
4
4
|
export { useColorPicker } from './colorPickerContext';
|
|
5
|
-
export declare function ColorPickerRoot({ children, value, defaultValue, onValueChange, open: openProp, defaultOpen, onOpenChange, size, variant, side, disabled, classNames, }: ColorPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function ColorPickerRoot({ children, value, defaultValue, onValueChange, open: openProp, defaultOpen, onOpenChange, size, variant, side, disabled, classNames, motion, }: ColorPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare namespace ColorPickerRoot {
|
|
7
7
|
var displayName: string;
|
|
8
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColorChannel } from './colorSliderTypes';
|
|
2
|
-
export type { ColorChannel, ColorSliderOrientation, ColorSliderProps, ColorSliderSize, ColorSliderTrackProps, } from './colorSliderTypes';
|
|
2
|
+
export type { ColorChannel, ColorSliderOrientation, ColorSliderProps, ColorSliderSize, ColorSliderTrackProps, ColorSliderMotion, ColorSliderPartMotion, } from './colorSliderTypes';
|
|
3
3
|
export declare const ColorSliderTrack: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "color"> & {
|
|
4
4
|
channel: ColorChannel;
|
|
5
5
|
color?: import('./colorUtils').HSVA;
|
|
@@ -9,6 +9,7 @@ export declare const ColorSliderTrack: import('react').ForwardRefExoticComponent
|
|
|
9
9
|
size?: import('./colorSliderTypes').ColorSliderSize;
|
|
10
10
|
orientation?: import('./colorSliderTypes').ColorSliderOrientation;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
+
motion?: import('../../..').Prettify<import('./colorSliderTypes').ColorSliderPartMotion>;
|
|
12
13
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
14
|
export declare const ColorSliderRoot: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "color"> & {
|
|
14
15
|
channel: ColorChannel;
|
|
@@ -20,4 +21,5 @@ export declare const ColorSliderRoot: import('react').ForwardRefExoticComponent<
|
|
|
20
21
|
size?: import('./colorSliderTypes').ColorSliderSize;
|
|
21
22
|
orientation?: import('./colorSliderTypes').ColorSliderOrientation;
|
|
22
23
|
disabled?: boolean;
|
|
24
|
+
motion?: import('../../..').Prettify<import('./colorSliderTypes').ColorSliderMotion>;
|
|
23
25
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
-
|
|
3
|
-
export type
|
|
4
|
-
export type ColorSwatchProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "color"> & {
|
|
5
|
-
color?: string;
|
|
6
|
-
size?: ColorSwatchSize;
|
|
7
|
-
shape?: ColorSwatchShape;
|
|
8
|
-
selected?: boolean;
|
|
9
|
-
};
|
|
2
|
+
import { ColorSwatchShape, ColorSwatchSize } from './colorSwatchTypes';
|
|
3
|
+
export type { ColorSwatchMotion, ColorSwatchPartMotion, ColorSwatchProps, ColorSwatchShape, ColorSwatchSize, } from './colorSwatchTypes';
|
|
10
4
|
export declare const ColorSwatch: import('react').ForwardRefExoticComponent<Omit<ButtonHTMLAttributes<HTMLButtonElement>, "color"> & {
|
|
11
5
|
color?: string;
|
|
12
6
|
size?: ColorSwatchSize;
|
|
13
7
|
shape?: ColorSwatchShape;
|
|
14
8
|
selected?: boolean;
|
|
9
|
+
motion?: import('../../..').Prettify<import('./colorSwatchTypes').ColorSwatchMotion>;
|
|
15
10
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ForwardedRef, PointerEvent as ReactPointerEvent } from 'react';
|
|
2
|
+
import { ColorPickerMotion, ColorPickerPartMotion, UseColorPickerAreaDragProps } from './colorPickerTypes';
|
|
3
|
+
export declare function resolveColorPickerMotionDefaults(): ColorPickerMotion;
|
|
4
|
+
export declare function useColorPickerSlotMotion<T extends HTMLElement>(slot: keyof ColorPickerMotion, { motion, forwardedRef, onPointerOver, onPointerOut, onPointerDown, onPointerUp, playEnter, }?: {
|
|
5
|
+
motion?: ColorPickerPartMotion;
|
|
6
|
+
forwardedRef?: ForwardedRef<T>;
|
|
7
|
+
onPointerOver?: (e: ReactPointerEvent<T>) => void;
|
|
8
|
+
onPointerOut?: (e: ReactPointerEvent<T>) => void;
|
|
9
|
+
onPointerDown?: (e: ReactPointerEvent<T>) => void;
|
|
10
|
+
onPointerUp?: (e: ReactPointerEvent<T>) => void;
|
|
11
|
+
playEnter?: boolean;
|
|
12
|
+
}): {
|
|
13
|
+
setRef: (node: T | null) => void;
|
|
14
|
+
targetRef: import('react').RefObject<T | null>;
|
|
15
|
+
pointerHandlers: {
|
|
16
|
+
onPointerOver: (e: ReactPointerEvent<T>) => void;
|
|
17
|
+
onPointerOut: (e: ReactPointerEvent<T>) => void;
|
|
18
|
+
onPointerDown: (e: ReactPointerEvent<T>) => void;
|
|
19
|
+
onPointerUp: (e: ReactPointerEvent<T>) => void;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare function useColorPickerAreaChange(hex: string): void;
|
|
2
23
|
export declare function useColorPickerAreaDrag({ hsva, setHsva }: UseColorPickerAreaDragProps): {
|
|
3
24
|
areaRef: import('react').RefObject<HTMLDivElement | null>;
|
|
4
25
|
thumbRef: import('react').RefObject<HTMLButtonElement | null>;
|
|
@@ -6,3 +6,10 @@ export declare function ColorPickerProvider({ value, children, }: {
|
|
|
6
6
|
export declare function ColorPickerClassNamesProvider({ classNames, children, }: ColorPickerClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare function useColorPicker(): ColorPickerContextValue;
|
|
8
8
|
export declare function useColorPickerClassNames(): ColorPickerClassNames;
|
|
9
|
+
/** Scope only. Defaults and host play live in `colorPickerAnimations.ts`. */
|
|
10
|
+
export declare const ColorPickerMotionProvider: ({ motion, defaults, params, children, }: {
|
|
11
|
+
motion?: import('../utils/slotMotion').MotionSlotMap;
|
|
12
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
13
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
14
|
+
children: import('react').ReactNode;
|
|
15
|
+
}) => import("react/jsx-runtime").JSX.Element, useColorPickerMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalColorPickerMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { ColorPickerAlphaInputProps
|
|
2
|
-
export declare const ColorPickerArea: import('react').ForwardRefExoticComponent<
|
|
3
|
-
|
|
1
|
+
import { ColorPickerAlphaInputProps } from './colorPickerTypes';
|
|
2
|
+
export declare const ColorPickerArea: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
|
|
4
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export declare const ColorPickerHexInput: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
|
|
7
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
4
8
|
export declare const ColorPickerAlphaInput: import('react').ForwardRefExoticComponent<ColorPickerAlphaInputProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
9
|
export declare const ColorPickerPresets: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
6
10
|
presets: string[];
|
|
11
|
+
motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
|
|
7
12
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
8
13
|
export declare const ColorPickerTrigger: import('react').ForwardRefExoticComponent<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "color"> & {
|
|
9
|
-
swatchSize?: import('./
|
|
14
|
+
swatchSize?: import('./colorSwatchTypes').ColorSwatchSize;
|
|
10
15
|
asChild?: boolean;
|
|
11
16
|
children?: import('react').ReactNode;
|
|
12
17
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -14,4 +19,5 @@ export declare const ColorPickerContent: import('react').ForwardRefExoticCompone
|
|
|
14
19
|
showAlpha?: boolean;
|
|
15
20
|
presets?: string[];
|
|
16
21
|
children?: import('react').ReactNode;
|
|
22
|
+
motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
|
|
17
23
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
|
+
import { MotionValue } from '../utils/slotMotion';
|
|
3
4
|
import { ColorSwatchSize } from './ColorSwatch';
|
|
4
5
|
import { HSVA } from './colorUtils';
|
|
5
6
|
export type ColorPickerSize = "small" | "base" | "mid" | "large";
|
|
@@ -26,6 +27,24 @@ export type ColorPickerClassNames = {
|
|
|
26
27
|
presets?: string;
|
|
27
28
|
presetSwatch?: string;
|
|
28
29
|
};
|
|
30
|
+
export type ColorPickerPartMotion = {
|
|
31
|
+
hoverIn?: MotionValue;
|
|
32
|
+
hoverOut?: MotionValue;
|
|
33
|
+
pressIn?: MotionValue;
|
|
34
|
+
pressOut?: MotionValue;
|
|
35
|
+
enter?: MotionValue;
|
|
36
|
+
leave?: MotionValue;
|
|
37
|
+
change?: MotionValue;
|
|
38
|
+
};
|
|
39
|
+
export type ColorPickerMotion = {
|
|
40
|
+
contentPanel?: ColorPickerPartMotion;
|
|
41
|
+
area?: ColorPickerPartMotion;
|
|
42
|
+
areaThumb?: ColorPickerPartMotion;
|
|
43
|
+
hexInput?: ColorPickerPartMotion;
|
|
44
|
+
presets?: ColorPickerPartMotion;
|
|
45
|
+
hueSlider?: ColorPickerPartMotion;
|
|
46
|
+
alphaSlider?: ColorPickerPartMotion;
|
|
47
|
+
};
|
|
29
48
|
export type ColorPickerProps = {
|
|
30
49
|
children?: ReactNode;
|
|
31
50
|
value?: string;
|
|
@@ -39,6 +58,12 @@ export type ColorPickerProps = {
|
|
|
39
58
|
side?: "top" | "bottom" | "left" | "right";
|
|
40
59
|
disabled?: boolean;
|
|
41
60
|
classNames?: Prettify<ColorPickerClassNames>;
|
|
61
|
+
/**
|
|
62
|
+
* Per-slot motion (`contentPanel`, `area`, `areaThumb`, `hexInput`, `presets`, `hueSlider`, `alphaSlider`).
|
|
63
|
+
* Root is a portal-host map (like Dropdown). Thumb drag `left`/`top` is kit-internal.
|
|
64
|
+
* Defaults are empty. Pass `hueSlider` / `alphaSlider` through to ColorSlider (nested scope does not inherit).
|
|
65
|
+
*/
|
|
66
|
+
motion?: Prettify<ColorPickerMotion>;
|
|
42
67
|
};
|
|
43
68
|
export type ColorPickerTriggerProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "color"> & {
|
|
44
69
|
swatchSize?: ColorSwatchSize;
|
|
@@ -54,12 +79,18 @@ export type ColorPickerContentProps = Omit<HTMLAttributes<HTMLDivElement>, "colo
|
|
|
54
79
|
* Compose with `ColorPicker.Area` / `HexInput` / `AlphaInput` / `Presets`.
|
|
55
80
|
*/
|
|
56
81
|
children?: ReactNode;
|
|
82
|
+
motion?: Prettify<ColorPickerPartMotion>;
|
|
83
|
+
};
|
|
84
|
+
export type ColorPickerAreaProps = HTMLAttributes<HTMLDivElement> & {
|
|
85
|
+
motion?: Prettify<ColorPickerPartMotion>;
|
|
86
|
+
};
|
|
87
|
+
export type ColorPickerHexInputProps = HTMLAttributes<HTMLDivElement> & {
|
|
88
|
+
motion?: Prettify<ColorPickerPartMotion>;
|
|
57
89
|
};
|
|
58
|
-
export type ColorPickerAreaProps = HTMLAttributes<HTMLDivElement>;
|
|
59
|
-
export type ColorPickerHexInputProps = HTMLAttributes<HTMLDivElement>;
|
|
60
90
|
export type ColorPickerAlphaInputProps = HTMLAttributes<HTMLDivElement>;
|
|
61
91
|
export type ColorPickerPresetsProps = HTMLAttributes<HTMLDivElement> & {
|
|
62
92
|
presets: string[];
|
|
93
|
+
motion?: Prettify<ColorPickerPartMotion>;
|
|
63
94
|
};
|
|
64
95
|
export type ColorPickerContextValue = {
|
|
65
96
|
hsva: HSVA;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ForwardedRef, PointerEvent as ReactPointerEvent } from 'react';
|
|
2
|
+
import { mergeMotionSlotMaps } from '../utils/slotMotion';
|
|
3
|
+
import { ColorSliderMotion, ColorSliderPartMotion } from './colorSliderTypes';
|
|
4
|
+
export declare function resolveColorSliderMotionDefaults(): ColorSliderMotion;
|
|
5
|
+
export { mergeMotionSlotMaps };
|
|
6
|
+
export declare function useColorSliderTrackMotion({ motion, forwardedRef, valueIdentity, onPointerOver, onPointerOut, onPointerDown, onPointerUp, }: {
|
|
7
|
+
motion?: ColorSliderPartMotion;
|
|
8
|
+
forwardedRef?: ForwardedRef<HTMLDivElement>;
|
|
9
|
+
valueIdentity: number;
|
|
10
|
+
onPointerOver?: (e: ReactPointerEvent<HTMLDivElement>) => void;
|
|
11
|
+
onPointerOut?: (e: ReactPointerEvent<HTMLDivElement>) => void;
|
|
12
|
+
onPointerDown?: (e: ReactPointerEvent<HTMLDivElement>) => void;
|
|
13
|
+
onPointerUp?: (e: ReactPointerEvent<HTMLDivElement>) => void;
|
|
14
|
+
}): {
|
|
15
|
+
setRef: (node: HTMLDivElement | null) => void;
|
|
16
|
+
targetRef: import('react').RefObject<HTMLDivElement | null>;
|
|
17
|
+
pointerHandlers: {
|
|
18
|
+
onPointerOver: (e: ReactPointerEvent<HTMLDivElement>) => void;
|
|
19
|
+
onPointerOut: (e: ReactPointerEvent<HTMLDivElement>) => void;
|
|
20
|
+
onPointerDown: (e: ReactPointerEvent<HTMLDivElement>) => void;
|
|
21
|
+
onPointerUp: (e: ReactPointerEvent<HTMLDivElement>) => void;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare function useColorSliderRootMotion({ motion, forwardedRef, }: {
|
|
25
|
+
motion?: ColorSliderPartMotion;
|
|
26
|
+
forwardedRef?: ForwardedRef<HTMLDivElement>;
|
|
27
|
+
}): {
|
|
28
|
+
setRef: (node: HTMLDivElement | null) => void;
|
|
29
|
+
targetRef: import('react').RefObject<HTMLDivElement | null>;
|
|
30
|
+
pointerHandlers: {
|
|
31
|
+
onPointerOver: (e: ReactPointerEvent<HTMLDivElement>) => void;
|
|
32
|
+
onPointerOut: (e: ReactPointerEvent<HTMLDivElement>) => void;
|
|
33
|
+
onPointerDown: (e: ReactPointerEvent<HTMLDivElement>) => void;
|
|
34
|
+
onPointerUp: (e: ReactPointerEvent<HTMLDivElement>) => void;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Scope only. Defaults and host play live in `colorSliderAnimations.ts`. */
|
|
2
|
+
export declare const ColorSliderMotionProvider: ({ motion, defaults, params, children, }: {
|
|
3
|
+
motion?: import('../utils/slotMotion').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, useColorSliderMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalColorSliderMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
3
|
+
import { MotionValue } from '../utils/slotMotion';
|
|
2
4
|
import { SliderOrientation, SliderSize } from '../Slider/sliderTypes';
|
|
3
5
|
import { HSVA } from './colorUtils';
|
|
4
6
|
export type ColorChannel = "hue" | "saturation" | "value" | "alpha" | "red" | "green" | "blue";
|
|
5
7
|
export type ColorSliderSize = SliderSize;
|
|
6
8
|
export type ColorSliderOrientation = SliderOrientation;
|
|
9
|
+
export type ColorSliderPartMotion = {
|
|
10
|
+
hoverIn?: MotionValue;
|
|
11
|
+
hoverOut?: MotionValue;
|
|
12
|
+
pressIn?: MotionValue;
|
|
13
|
+
pressOut?: MotionValue;
|
|
14
|
+
enter?: MotionValue;
|
|
15
|
+
leave?: MotionValue;
|
|
16
|
+
change?: MotionValue;
|
|
17
|
+
};
|
|
18
|
+
export type ColorSliderMotion = {
|
|
19
|
+
root?: ColorSliderPartMotion;
|
|
20
|
+
track?: ColorSliderPartMotion;
|
|
21
|
+
};
|
|
7
22
|
export type ColorSliderTrackProps = Omit<HTMLAttributes<HTMLDivElement>, "color"> & {
|
|
8
23
|
channel: ColorChannel;
|
|
9
24
|
color?: HSVA;
|
|
@@ -13,6 +28,11 @@ export type ColorSliderTrackProps = Omit<HTMLAttributes<HTMLDivElement>, "color"
|
|
|
13
28
|
size?: ColorSliderSize;
|
|
14
29
|
orientation?: ColorSliderOrientation;
|
|
15
30
|
disabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Per-slot motion for the track (`enter` / `change`). Thumb geometry stays kit-internal.
|
|
33
|
+
* Defaults are empty.
|
|
34
|
+
*/
|
|
35
|
+
motion?: Prettify<ColorSliderPartMotion>;
|
|
16
36
|
};
|
|
17
37
|
export type ColorSliderProps = Omit<HTMLAttributes<HTMLDivElement>, "color"> & {
|
|
18
38
|
channel: ColorChannel;
|
|
@@ -24,4 +44,9 @@ export type ColorSliderProps = Omit<HTMLAttributes<HTMLDivElement>, "color"> & {
|
|
|
24
44
|
size?: ColorSliderSize;
|
|
25
45
|
orientation?: ColorSliderOrientation;
|
|
26
46
|
disabled?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Per-slot motion (`root`, `track`). Nested ColorSlider.Track does not inherit defaults.
|
|
49
|
+
* Pass `motion.track` through to Track. Defaults are empty.
|
|
50
|
+
*/
|
|
51
|
+
motion?: Prettify<ColorSliderMotion>;
|
|
27
52
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { KeyboardEvent, PointerEvent } from 'react';
|
|
2
|
+
import { ColorSwatchMotion, UseColorSwatchAnimationsProps } from './colorSwatchTypes';
|
|
3
|
+
export declare function resolveColorSwatchMotionDefaults({ disabled, }: {
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
}): ColorSwatchMotion;
|
|
6
|
+
export declare function resolveColorSwatchMotionParams({ disabled, pointerInside, }: {
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
pointerInside: React.MutableRefObject<boolean>;
|
|
9
|
+
}): {
|
|
10
|
+
pointerInside: import('react').MutableRefObject<boolean>;
|
|
11
|
+
hasHoverShadow: boolean;
|
|
12
|
+
isGloss: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare function useColorSwatchAnimations({ disabled, forwardedRef, motion, hoverPointerInsideRef, onPointerDown, onPointerUp, onPointerEnter, onPointerLeave, onPointerOver, onPointerOut, onKeyDown, }: UseColorSwatchAnimationsProps): {
|
|
15
|
+
setRefs: (node: HTMLButtonElement | null) => void;
|
|
16
|
+
handlePointerEnter: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
17
|
+
handlePointerLeave: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
18
|
+
handlePointerDown: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
19
|
+
handlePointerUp: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
20
|
+
handleKeyDown: (e: KeyboardEvent<HTMLButtonElement>) => void;
|
|
21
|
+
pointerHandlers: {
|
|
22
|
+
onPointerOver: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
23
|
+
onPointerOut: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Scope only. Defaults and host play live in `colorSwatchAnimations.ts`. */
|
|
2
|
+
export declare const ColorSwatchMotionProvider: ({ motion, defaults, params, children, }: {
|
|
3
|
+
motion?: import('../utils/slotMotion').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, useColorSwatchMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalColorSwatchMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes, KeyboardEvent, MutableRefObject, PointerEvent } from 'react';
|
|
2
|
+
import { Prettify } from '../../../utils/prettify';
|
|
3
|
+
import { MotionValue } from '../utils/slotMotion';
|
|
4
|
+
export type ColorSwatchSize = "small" | "base" | "mid" | "large";
|
|
5
|
+
export type ColorSwatchShape = "square" | "circle" | "rounded";
|
|
6
|
+
export type ColorSwatchPartMotion = {
|
|
7
|
+
hoverIn?: MotionValue;
|
|
8
|
+
hoverOut?: MotionValue;
|
|
9
|
+
pressIn?: MotionValue;
|
|
10
|
+
pressOut?: MotionValue;
|
|
11
|
+
};
|
|
12
|
+
export type ColorSwatchMotion = {
|
|
13
|
+
root?: ColorSwatchPartMotion;
|
|
14
|
+
};
|
|
15
|
+
export type ColorSwatchProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "color"> & {
|
|
16
|
+
color?: string;
|
|
17
|
+
size?: ColorSwatchSize;
|
|
18
|
+
shape?: ColorSwatchShape;
|
|
19
|
+
selected?: boolean;
|
|
20
|
+
motion?: Prettify<ColorSwatchMotion>;
|
|
21
|
+
};
|
|
22
|
+
export type UseColorSwatchAnimationsProps = {
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
forwardedRef: React.ForwardedRef<HTMLButtonElement>;
|
|
25
|
+
motion?: ColorSwatchMotion;
|
|
26
|
+
hoverPointerInsideRef: MutableRefObject<boolean>;
|
|
27
|
+
onPointerDown?: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
28
|
+
onPointerUp?: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
29
|
+
onPointerEnter?: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
30
|
+
onPointerLeave?: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
31
|
+
onPointerOver?: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
32
|
+
onPointerOut?: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
33
|
+
onKeyDown?: (e: KeyboardEvent<HTMLButtonElement>) => void;
|
|
34
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColorPickerRoot } from './ColorPicker';
|
|
2
2
|
export declare const ColorPicker: typeof ColorPickerRoot & {
|
|
3
3
|
Trigger: import('react').ForwardRefExoticComponent<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "color"> & {
|
|
4
|
-
swatchSize?: import('./
|
|
4
|
+
swatchSize?: import('./colorSwatchTypes').ColorSwatchSize;
|
|
5
5
|
asChild?: boolean;
|
|
6
6
|
children?: import('react').ReactNode;
|
|
7
7
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -9,12 +9,18 @@ export declare const ColorPicker: typeof ColorPickerRoot & {
|
|
|
9
9
|
showAlpha?: boolean;
|
|
10
10
|
presets?: string[];
|
|
11
11
|
children?: import('react').ReactNode;
|
|
12
|
+
motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
|
|
13
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Area: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
15
|
+
motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
|
|
16
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
|
+
HexInput: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
18
|
+
motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
|
|
12
19
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
|
-
Area: import('react').ForwardRefExoticComponent<import('./colorPickerTypes').ColorPickerAreaProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
|
-
HexInput: import('react').ForwardRefExoticComponent<import('./colorPickerTypes').ColorPickerHexInputProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
20
|
AlphaInput: import('react').ForwardRefExoticComponent<import('./colorPickerTypes').ColorPickerAlphaInputProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
16
21
|
Presets: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
17
22
|
presets: string[];
|
|
23
|
+
motion?: import('../../..').Prettify<import('./colorPickerTypes').ColorPickerPartMotion>;
|
|
18
24
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
19
25
|
};
|
|
20
26
|
export declare const ColorSlider: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "color"> & {
|
|
@@ -27,6 +33,7 @@ export declare const ColorSlider: import('react').ForwardRefExoticComponent<Omit
|
|
|
27
33
|
size?: import('./colorSliderTypes').ColorSliderSize;
|
|
28
34
|
orientation?: import('./colorSliderTypes').ColorSliderOrientation;
|
|
29
35
|
disabled?: boolean;
|
|
36
|
+
motion?: import('../../..').Prettify<import('./colorSliderTypes').ColorSliderMotion>;
|
|
30
37
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
31
38
|
Track: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLDivElement>, "color"> & {
|
|
32
39
|
channel: import('./colorSliderTypes').ColorChannel;
|
|
@@ -37,10 +44,11 @@ export declare const ColorSlider: import('react').ForwardRefExoticComponent<Omit
|
|
|
37
44
|
size?: import('./colorSliderTypes').ColorSliderSize;
|
|
38
45
|
orientation?: import('./colorSliderTypes').ColorSliderOrientation;
|
|
39
46
|
disabled?: boolean;
|
|
47
|
+
motion?: import('../../..').Prettify<import('./colorSliderTypes').ColorSliderPartMotion>;
|
|
40
48
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
41
49
|
};
|
|
42
50
|
export { useColorPicker } from './colorPickerContext';
|
|
43
|
-
export type { ColorPickerProps, ColorPickerTriggerProps, ColorPickerContentProps, ColorPickerAreaProps, ColorPickerHexInputProps, ColorPickerAlphaInputProps, ColorPickerPresetsProps, ColorPickerSize, ColorPickerVariant, ColorPickerClassNames, } from './colorPickerTypes';
|
|
44
|
-
export type { ColorSliderTrackProps, ColorSliderProps, ColorChannel, ColorSliderSize, ColorSliderOrientation, } from './ColorSlider';
|
|
45
|
-
export { ColorSwatch, type ColorSwatchProps, type ColorSwatchSize, type ColorSwatchShape, } from './ColorSwatch';
|
|
51
|
+
export type { ColorPickerProps, ColorPickerTriggerProps, ColorPickerContentProps, ColorPickerAreaProps, ColorPickerHexInputProps, ColorPickerAlphaInputProps, ColorPickerPresetsProps, ColorPickerSize, ColorPickerVariant, ColorPickerClassNames, ColorPickerMotion, ColorPickerPartMotion, } from './colorPickerTypes';
|
|
52
|
+
export type { ColorSliderTrackProps, ColorSliderProps, ColorChannel, ColorSliderSize, ColorSliderOrientation, ColorSliderMotion, ColorSliderPartMotion, } from './ColorSlider';
|
|
53
|
+
export { ColorSwatch, type ColorSwatchProps, type ColorSwatchSize, type ColorSwatchShape, type ColorSwatchMotion, type ColorSwatchPartMotion, } from './ColorSwatch';
|
|
46
54
|
export { hsvaToHex, hexToHsva, hsvaToRgba, rgbaToHsva, rgbaToHex, hexToRgba, hsvaToColorString, hueToRgbString, type HSVA, type RGBA, } from './colorUtils';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComboBoxError, ComboBoxHint, ComboBoxLabel, ComboBoxInput, ComboBoxInputGroup, ComboBoxPopover, ComboBoxTrigger } from './comboBoxParts';
|
|
2
2
|
import { ComboBoxProps } from './comboBoxTypes';
|
|
3
|
-
export type { ComboBoxProps, ComboBoxSimpleProps, ComboBoxHintProps, ComboBoxErrorProps, ComboBoxInputGroupProps, ComboBoxInputProps, ComboBoxTriggerProps, ComboBoxPopoverProps, ComboBoxOption, ComboBoxClassNames, } from './comboBoxTypes';
|
|
4
|
-
export declare function ComboBoxRoot({ children, label, hint, error, className, classNames, id, required, status, size, options, value, defaultValue, onValueChange, open, defaultOpen, onOpenChange, variant, disabled, placeholder, menuMaxHeight, name, ...rest }: ComboBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export type { ComboBoxProps, ComboBoxSimpleProps, ComboBoxHintProps, ComboBoxErrorProps, ComboBoxInputGroupProps, ComboBoxInputProps, ComboBoxTriggerProps, ComboBoxPopoverProps, ComboBoxOption, ComboBoxClassNames, ComboBoxMotion, ComboBoxPartMotion, } from './comboBoxTypes';
|
|
4
|
+
export declare function ComboBoxRoot({ children, label, hint, error, className, classNames, id, required, status, size, options, value, defaultValue, onValueChange, open, defaultOpen, onOpenChange, variant, disabled, placeholder, menuMaxHeight, name, motion, ...rest }: ComboBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare namespace ComboBoxRoot {
|
|
6
6
|
var displayName: string;
|
|
7
7
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { MutableRefObject, RefObject } from 'react';
|
|
2
|
+
import { ComboBoxMotion, ComboBoxPartMotion, UseComboBoxShellAnimationsProps } from './comboBoxTypes';
|
|
3
|
+
export declare function resolveComboBoxMotionDefaults({ isGloss, disabled, groupSegment, }: {
|
|
4
|
+
isGloss: boolean;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
groupSegment?: unknown;
|
|
7
|
+
}): ComboBoxMotion;
|
|
8
|
+
export declare function resolveComboBoxMotionParams({ disabled, isGloss, groupSegment, pointerInside, }: {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
isGloss: boolean;
|
|
11
|
+
groupSegment?: unknown;
|
|
12
|
+
pointerInside: MutableRefObject<boolean>;
|
|
13
|
+
}): {
|
|
14
|
+
shadowSize: "base";
|
|
15
|
+
hasHoverShadow: boolean;
|
|
16
|
+
isGloss: boolean;
|
|
17
|
+
pointerInside: MutableRefObject<boolean>;
|
|
18
|
+
};
|
|
19
|
+
export declare function useComboBoxOpenAfterSqueeze({ triggerRef, disabled, isGloss, partMotionRef, glossOnPointerDown, }: {
|
|
20
|
+
triggerRef: RefObject<HTMLElement | null>;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
isGloss: boolean;
|
|
23
|
+
partMotionRef?: MutableRefObject<ComboBoxPartMotion | undefined>;
|
|
24
|
+
glossOnPointerDown?: () => void;
|
|
25
|
+
}): (opts: {
|
|
26
|
+
setOpen: (open: boolean) => void;
|
|
27
|
+
onOpened?: () => void;
|
|
28
|
+
}) => void;
|
|
29
|
+
export declare function useComboBoxShellAnimations({ shellRef, disabled, variant, groupSegment, motion, pointerInsideRef, }: UseComboBoxShellAnimationsProps): {
|
|
30
|
+
isGloss: boolean;
|
|
31
|
+
bindShellRef: (node: HTMLDivElement | null) => void;
|
|
32
|
+
squeezeThenOpen: (opts: {
|
|
33
|
+
setOpen: (open: boolean) => void;
|
|
34
|
+
onOpened?: () => void;
|
|
35
|
+
}) => void;
|
|
36
|
+
playShell: (phase: "hoverIn" | "hoverOut" | "pressIn" | "pressOut") => void;
|
|
37
|
+
shellPointerUp: () => void;
|
|
38
|
+
shellPointerEnter: (e: import('react').PointerEvent<HTMLDivElement>) => void;
|
|
39
|
+
shellPointerLeave: (e: import('react').PointerEvent<HTMLDivElement>) => void;
|
|
40
|
+
shellFocusCapture: (() => void) | undefined;
|
|
41
|
+
shellBlurCapture: ((e: React.FocusEvent<HTMLElement>) => void) | undefined;
|
|
42
|
+
shellHoverMotionClass: string;
|
|
43
|
+
glossDisabledAttr: {
|
|
44
|
+
"data-gloss-disabled": string;
|
|
45
|
+
} | {
|
|
46
|
+
"data-gloss-disabled"?: undefined;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -12,3 +12,10 @@ export declare function ComboBoxFieldProvider({ value, children, }: {
|
|
|
12
12
|
export declare function useComboBoxFieldContext(): ComboBoxFieldContextValue;
|
|
13
13
|
export declare function ComboBoxClassNamesProvider({ classNames, children, }: ComboBoxClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export declare function useComboBoxClassNames(): ComboBoxClassNames;
|
|
15
|
+
/** Scope only. Defaults and host play live in `comboBoxAnimations.ts`. */
|
|
16
|
+
export declare const ComboBoxMotionProvider: ({ motion, defaults, params, children, }: {
|
|
17
|
+
motion?: import('../utils/slotMotion').MotionSlotMap;
|
|
18
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
19
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
}) => import("react/jsx-runtime").JSX.Element, useComboBoxMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalComboBoxMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { ComboBoxInputProps, ComboBoxTriggerProps } from './comboBoxTypes';
|
|
2
1
|
export declare const ComboBoxInputGroup: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
3
2
|
groupSegment?: import('../Button/buttonContext').ButtonGroupSegment;
|
|
3
|
+
motion?: import('../../..').Prettify<import('./comboBoxTypes').ComboBoxPartMotion>;
|
|
4
4
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
|
-
export declare const ComboBoxInput: import('react').ForwardRefExoticComponent<
|
|
6
|
-
|
|
5
|
+
export declare const ComboBoxInput: import('react').ForwardRefExoticComponent<Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "defaultValue"> & {
|
|
6
|
+
motion?: import('../../..').Prettify<import('./comboBoxTypes').ComboBoxPartMotion>;
|
|
7
|
+
} & import('react').RefAttributes<HTMLInputElement>>;
|
|
8
|
+
export declare const ComboBoxTrigger: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLButtonElement> & {
|
|
9
|
+
motion?: import('../../..').Prettify<import('./comboBoxTypes').ComboBoxPartMotion>;
|
|
10
|
+
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
7
11
|
export declare const ComboBoxPopover: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
8
12
|
children?: import('react').ReactNode;
|
|
9
13
|
side?: import('../Popover').PopoverSide;
|