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
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { MouseEvent } from 'react';
|
|
2
|
-
import { ButtonAsyncLayerKind, ButtonAsyncState, ButtonExpandRippleHandle, UseButtonAnimationsProps } from './buttonTypes';
|
|
1
|
+
import { MouseEvent, KeyboardEvent, PointerEvent } from 'react';
|
|
2
|
+
import { ButtonAsyncLayerKind, ButtonAsyncState, ButtonExpandRippleHandle, ButtonMotion, ButtonVariant, UseButtonAnimationsProps } from './buttonTypes';
|
|
3
3
|
export declare function createButtonAsyncLayerRefCallback(ref: React.RefObject<HTMLElement | null>, initialState: ButtonAsyncState, layer: ButtonAsyncLayerKind): (node: HTMLElement | null) => void;
|
|
4
|
-
export declare function
|
|
4
|
+
export declare function resolveButtonMotionDefaults({ variant, }: {
|
|
5
|
+
variant: ButtonVariant;
|
|
6
|
+
}): ButtonMotion;
|
|
7
|
+
export declare function useButtonAnimations({ variant, asyncState, isControlled, blocked, groupSegment, motion, hoverPointerInsideRef, forwardedRef, onPointerEnter, onPointerLeave, onPointerOver, onPointerOut, onPointerDown, onPointerUp, onKeyDown, }: UseButtonAnimationsProps): {
|
|
5
8
|
setRefs: (node: HTMLButtonElement | null) => void;
|
|
6
9
|
contentMotionRef: import('react').RefObject<HTMLSpanElement | null>;
|
|
7
10
|
bindLabelRef: (node: HTMLElement | null) => void;
|
|
@@ -10,10 +13,17 @@ export declare function useButtonAnimations({ variant, asyncState, isControlled,
|
|
|
10
13
|
bindErrorRef: (node: HTMLElement | null) => void;
|
|
11
14
|
expandRippleLayerRef: import('react').RefObject<ButtonExpandRippleHandle | null>;
|
|
12
15
|
pushExpandRipple: (tone: "success" | "error") => void;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
pointerHandlers: {
|
|
17
|
+
onPointerOver: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
18
|
+
onPointerOut: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
19
|
+
onPointerDown: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
20
|
+
onPointerUp: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
21
|
+
};
|
|
22
|
+
handlePointerEnter: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
23
|
+
handlePointerLeave: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
24
|
+
handlePointerDown: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
25
|
+
handlePointerUp: (e: PointerEvent<HTMLButtonElement>) => void;
|
|
26
|
+
handleKeyDown: (e: KeyboardEvent<HTMLButtonElement>) => void;
|
|
17
27
|
createAsyncClickHandler: (onClick: ((e: MouseEvent<HTMLButtonElement>) => void) | undefined, onAsyncClick: ((e: MouseEvent<HTMLButtonElement>) => Promise<boolean>) | undefined, isControlledArg: boolean, internalAsync: ButtonAsyncState, setUncontrolledAsync: (next: ButtonAsyncState) => void, scheduleAsyncIdleReset: () => void) => (e: MouseEvent<HTMLButtonElement>) => void;
|
|
18
28
|
asyncInFlight: import('react').RefObject<boolean>;
|
|
19
29
|
asyncMotionReady: boolean;
|
|
@@ -2,6 +2,13 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
3
|
import { ButtonGroupSegment } from '../../composite/ButtonGroup';
|
|
4
4
|
import { ButtonAsyncState, ButtonClassNames, ButtonContextValue } from './buttonTypes';
|
|
5
|
+
/** Scope only. Defaults and host play live in `buttonAnimations.ts`. */
|
|
6
|
+
export declare const ButtonMotionProvider: ({ motion, defaults, params, children, }: {
|
|
7
|
+
motion?: import('../utils/slotMotion').MotionSlotMap;
|
|
8
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
9
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element, useButtonMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalButtonMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
5
12
|
export declare function ButtonClassNamesProvider({ classNames, children, }: {
|
|
6
13
|
classNames?: Prettify<ButtonClassNames>;
|
|
7
14
|
children: ReactNode;
|
|
@@ -2,6 +2,7 @@ import { ButtonHTMLAttributes, HTMLAttributes, MouseEvent, ReactNode, RefObject
|
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
3
|
import { ComponentSize } from '../utils/sizeLayout';
|
|
4
4
|
import { IconPosition } from '../utils/iconPosition';
|
|
5
|
+
import { MotionValue } from '../utils/slotMotion';
|
|
5
6
|
import { ButtonGroupSegment } from '../../composite/ButtonGroup';
|
|
6
7
|
export type ButtonVariant = "default" | "primary" | "outline" | "secondary" | "ghost" | "gloss";
|
|
7
8
|
export type ButtonStatus = "default" | "danger" | "success" | "info" | "warning";
|
|
@@ -41,6 +42,15 @@ export type ButtonContextValue = {
|
|
|
41
42
|
bindErrorRef: (node: HTMLSpanElement | null) => void;
|
|
42
43
|
contentMotionRef: RefObject<HTMLSpanElement | null>;
|
|
43
44
|
};
|
|
45
|
+
export type ButtonPartMotion = {
|
|
46
|
+
hoverIn?: MotionValue;
|
|
47
|
+
hoverOut?: MotionValue;
|
|
48
|
+
pressIn?: MotionValue;
|
|
49
|
+
pressOut?: MotionValue;
|
|
50
|
+
};
|
|
51
|
+
export type ButtonMotion = {
|
|
52
|
+
root?: ButtonPartMotion;
|
|
53
|
+
};
|
|
44
54
|
export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
45
55
|
asChild?: boolean;
|
|
46
56
|
groupSegment?: ButtonGroupSegment;
|
|
@@ -56,6 +66,11 @@ export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
56
66
|
/** @default "start" */
|
|
57
67
|
iconPosition?: IconPosition;
|
|
58
68
|
classNames?: Prettify<ButtonClassNames>;
|
|
69
|
+
/**
|
|
70
|
+
* Per-slot motion (`root` = the button, or the inner content span in a ButtonGroup segment).
|
|
71
|
+
* Hover/press defaults: `hoverLiftFirstLevel` / `pressSqueeze` (gloss → `hoverLiftGloss` / `pressSqueezeGloss`).
|
|
72
|
+
*/
|
|
73
|
+
motion?: Prettify<ButtonMotion>;
|
|
59
74
|
/**
|
|
60
75
|
* Enable converge-ripple from the press point (`<Ripple />` inside the button, tone under `variant`).
|
|
61
76
|
* @default false
|
|
@@ -93,10 +108,15 @@ export type UseButtonAnimationsProps = {
|
|
|
93
108
|
isControlled: boolean;
|
|
94
109
|
blocked: boolean;
|
|
95
110
|
groupSegment: ButtonGroupSegment | undefined;
|
|
111
|
+
motion?: ButtonMotion;
|
|
112
|
+
hoverPointerInsideRef: RefObject<boolean>;
|
|
96
113
|
forwardedRef: React.ForwardedRef<HTMLButtonElement>;
|
|
97
114
|
onPointerEnter?: React.PointerEventHandler<HTMLButtonElement>;
|
|
98
115
|
onPointerLeave?: React.PointerEventHandler<HTMLButtonElement>;
|
|
116
|
+
onPointerOver?: React.PointerEventHandler<HTMLButtonElement>;
|
|
117
|
+
onPointerOut?: React.PointerEventHandler<HTMLButtonElement>;
|
|
99
118
|
onPointerDown?: React.PointerEventHandler<HTMLButtonElement>;
|
|
119
|
+
onPointerUp?: React.PointerEventHandler<HTMLButtonElement>;
|
|
100
120
|
onKeyDown?: React.KeyboardEventHandler<HTMLButtonElement>;
|
|
101
121
|
};
|
|
102
122
|
export type ButtonFeedbackExpandRippleProps = {
|
|
@@ -13,6 +13,7 @@ export declare const Button: import('react').ForwardRefExoticComponent<import('r
|
|
|
13
13
|
icon?: import('react').ReactNode;
|
|
14
14
|
iconPosition?: import('../utils/iconPosition').IconPosition;
|
|
15
15
|
classNames?: import('../../..').Prettify<import('./buttonTypes').ButtonClassNames>;
|
|
16
|
+
motion?: import('../../..').Prettify<import('./buttonTypes').ButtonMotion>;
|
|
16
17
|
ripple?: boolean;
|
|
17
18
|
} & import('react').RefAttributes<HTMLButtonElement>> & {
|
|
18
19
|
Content: import('react').ForwardRefExoticComponent<import('./buttonTypes').ButtonContentProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
@@ -23,6 +24,6 @@ export declare const Button: import('react').ForwardRefExoticComponent<import('r
|
|
|
23
24
|
Success: import('react').ForwardRefExoticComponent<import('./buttonTypes').ButtonSuccessProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
24
25
|
Error: import('react').ForwardRefExoticComponent<import('./buttonTypes').ButtonErrorProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
25
26
|
};
|
|
26
|
-
export type { ButtonProps, ButtonAsyncState, ButtonSize, ButtonVariant, ButtonStatus, ButtonClassNames, ButtonContentProps, ButtonLabelProps, ButtonIconProps, ButtonTextProps, ButtonLoaderProps, ButtonSuccessProps, ButtonErrorProps, } from './Button';
|
|
27
|
+
export type { ButtonProps, ButtonAsyncState, ButtonSize, ButtonVariant, ButtonStatus, ButtonClassNames, ButtonMotion, ButtonPartMotion, ButtonContentProps, ButtonLabelProps, ButtonIconProps, ButtonTextProps, ButtonLoaderProps, ButtonSuccessProps, ButtonErrorProps, } from './Button';
|
|
27
28
|
/** Public helper: Ripple tone for Button variant/status. Style class helpers live in `burne-ui/internal`. */
|
|
28
29
|
export { buttonRippleTone } from './buttonStyles';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CalendarProps } from './calendarTypes';
|
|
2
|
-
export type { CalendarProps, CalendarHeaderProps, CalendarGridProps, CalendarFooterProps, CalendarNavPrevProps, CalendarNavNextProps, CalendarTitleProps, CalendarDayProps, CalendarDayRenderState, CalendarRenderDay, CalendarMode, CalendarView, CalendarVariant, CalendarSize, CalendarRangeValue, CalendarLocale, CalendarClassNames, } from './calendarTypes';
|
|
2
|
+
export type { CalendarProps, CalendarHeaderProps, CalendarGridProps, CalendarFooterProps, CalendarNavPrevProps, CalendarNavNextProps, CalendarTitleProps, CalendarDayProps, CalendarDayRenderState, CalendarRenderDay, CalendarMode, CalendarView, CalendarVariant, CalendarSize, CalendarRangeValue, CalendarLocale, CalendarClassNames, CalendarMotion, CalendarPartMotion, } from './calendarTypes';
|
|
3
3
|
export { useCalendar } from './calendarContext';
|
|
4
4
|
export declare const CalendarRoot: import('react').ForwardRefExoticComponent<CalendarProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export { CalendarHeader, CalendarGrid, CalendarFooter, CalendarNavPrev, CalendarNavNext, CalendarTitle, CalendarDay, } from './calendarParts';
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* (includes `killMotion` cleanup on unmount).
|
|
5
|
-
*/
|
|
6
|
-
export declare function useCalendarPressableAnimations(disabled?: boolean): {
|
|
7
|
-
buttonRef: import('react').RefObject<HTMLButtonElement | null>;
|
|
8
|
-
handlePointerEnter: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
|
|
9
|
-
handlePointerLeave: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
|
|
10
|
-
handlePointerDown: (e: import('react').PointerEvent<HTMLButtonElement>) => void;
|
|
11
|
-
handleKeyDown: (e: import('react').KeyboardEvent<HTMLButtonElement>) => void;
|
|
12
|
-
};
|
|
1
|
+
import { CalendarMotion } from './calendarTypes';
|
|
2
|
+
export declare function resolveCalendarMotionDefaults(): CalendarMotion;
|
|
3
|
+
export declare function resolveCalendarCellMotionDefaults(): CalendarMotion;
|
|
@@ -3,3 +3,10 @@ export declare function CalendarProvider({ value, children }: CalendarProviderPr
|
|
|
3
3
|
export declare function CalendarClassNamesProvider({ classNames, children, }: CalendarClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare function useCalendar(): CalendarContextValue;
|
|
5
5
|
export declare function useCalendarClassNames(): CalendarClassNames;
|
|
6
|
+
/** Scope only. Defaults and host play live in `calendarAnimations.ts`. */
|
|
7
|
+
export declare const CalendarMotionProvider: ({ motion, defaults, params, children, }: {
|
|
8
|
+
motion?: import('../utils/slotMotion').MotionSlotMap;
|
|
9
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
10
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
11
|
+
children: import('react').ReactNode;
|
|
12
|
+
}) => import("react/jsx-runtime").JSX.Element, useCalendarMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalCalendarMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CalendarFooterProps, CalendarGridProps, CalendarHeaderProps, CalendarInteractiveCellProps, CalendarNavButtonProps, CalendarTitleProps } from './calendarTypes';
|
|
2
|
-
export declare const CalendarNavPrev: import('react').ForwardRefExoticComponent<Omit<CalendarNavButtonProps, "size" | "
|
|
2
|
+
export declare const CalendarNavPrev: import('react').ForwardRefExoticComponent<Omit<CalendarNavButtonProps, "size" | "direction" | "onClick"> & {
|
|
3
3
|
size?: import('./calendarTypes').CalendarSize;
|
|
4
4
|
onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
|
5
5
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
export declare const CalendarNavNext: import('react').ForwardRefExoticComponent<Omit<CalendarNavButtonProps, "size" | "
|
|
6
|
+
export declare const CalendarNavNext: import('react').ForwardRefExoticComponent<Omit<CalendarNavButtonProps, "size" | "direction" | "onClick"> & {
|
|
7
7
|
size?: import('./calendarTypes').CalendarSize;
|
|
8
8
|
onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
|
9
9
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -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
|
export type CalendarLocale = {
|
|
4
5
|
/** 7 items: Mon → Sun */
|
|
5
6
|
weekDays: string[];
|
|
@@ -59,6 +60,17 @@ export type CalendarClassNames = {
|
|
|
59
60
|
footerToday?: string;
|
|
60
61
|
footerClear?: string;
|
|
61
62
|
};
|
|
63
|
+
export type CalendarPartMotion = {
|
|
64
|
+
hoverIn?: MotionValue;
|
|
65
|
+
hoverOut?: MotionValue;
|
|
66
|
+
pressIn?: MotionValue;
|
|
67
|
+
pressOut?: MotionValue;
|
|
68
|
+
};
|
|
69
|
+
export type CalendarMotion = {
|
|
70
|
+
navPrev?: CalendarPartMotion;
|
|
71
|
+
navNext?: CalendarPartMotion;
|
|
72
|
+
cell?: CalendarPartMotion;
|
|
73
|
+
};
|
|
62
74
|
type CalendarCommonProps = HTMLAttributes<HTMLDivElement> & {
|
|
63
75
|
variant?: CalendarVariant;
|
|
64
76
|
size?: CalendarSize;
|
|
@@ -77,6 +89,7 @@ type CalendarCommonProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
77
89
|
*/
|
|
78
90
|
renderDay?: CalendarRenderDay;
|
|
79
91
|
classNames?: Prettify<CalendarClassNames>;
|
|
92
|
+
motion?: Prettify<CalendarMotion>;
|
|
80
93
|
};
|
|
81
94
|
export type CalendarProps = (CalendarCommonProps & {
|
|
82
95
|
mode?: "single";
|
|
@@ -148,6 +161,7 @@ export type CalendarNavButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement
|
|
|
148
161
|
direction: "prev" | "next";
|
|
149
162
|
size: CalendarSize;
|
|
150
163
|
children?: ReactNode;
|
|
164
|
+
motion?: Prettify<CalendarPartMotion>;
|
|
151
165
|
};
|
|
152
166
|
export type CalendarNavPrevProps = Omit<CalendarNavButtonProps, "direction" | "size" | "onClick"> & {
|
|
153
167
|
size?: CalendarSize;
|
|
@@ -2,11 +2,11 @@ export declare const Calendar: import('react').ForwardRefExoticComponent<import(
|
|
|
2
2
|
Header: import('react').ForwardRefExoticComponent<import('./calendarTypes').CalendarHeaderProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
3
3
|
Grid: import('react').ForwardRefExoticComponent<import('./calendarTypes').CalendarGridProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
4
4
|
Footer: import('react').ForwardRefExoticComponent<import('./calendarTypes').CalendarFooterProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
5
|
-
NavPrev: import('react').ForwardRefExoticComponent<Omit<import('./calendarTypes').CalendarNavButtonProps, "size" | "
|
|
5
|
+
NavPrev: import('react').ForwardRefExoticComponent<Omit<import('./calendarTypes').CalendarNavButtonProps, "size" | "direction" | "onClick"> & {
|
|
6
6
|
size?: import('./calendarTypes').CalendarSize;
|
|
7
7
|
onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
|
8
8
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
9
|
-
NavNext: import('react').ForwardRefExoticComponent<Omit<import('./calendarTypes').CalendarNavButtonProps, "size" | "
|
|
9
|
+
NavNext: import('react').ForwardRefExoticComponent<Omit<import('./calendarTypes').CalendarNavButtonProps, "size" | "direction" | "onClick"> & {
|
|
10
10
|
size?: import('./calendarTypes').CalendarSize;
|
|
11
11
|
onClick?: import('react').ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
|
12
12
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -17,4 +17,4 @@ export declare const Calendar: import('react').ForwardRefExoticComponent<import(
|
|
|
17
17
|
};
|
|
18
18
|
export { EN_LOCALE } from './calendarLocale';
|
|
19
19
|
export { useCalendar } from './calendarContext';
|
|
20
|
-
export type { CalendarProps, CalendarHeaderProps, CalendarGridProps, CalendarFooterProps, CalendarNavPrevProps, CalendarNavNextProps, CalendarTitleProps, CalendarDayProps, CalendarDayRenderState, CalendarRenderDay, CalendarMode, CalendarView, CalendarVariant, CalendarSize, CalendarRangeValue, CalendarLocale, CalendarClassNames, } from './calendarTypes';
|
|
20
|
+
export type { CalendarProps, CalendarHeaderProps, CalendarGridProps, CalendarFooterProps, CalendarNavPrevProps, CalendarNavNextProps, CalendarTitleProps, CalendarDayProps, CalendarDayRenderState, CalendarRenderDay, CalendarMode, CalendarView, CalendarVariant, CalendarSize, CalendarRangeValue, CalendarLocale, CalendarClassNames, CalendarMotion, CalendarPartMotion, } from './calendarTypes';
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
1
2
|
import { CardBody, CardDescription, CardFooter, CardHeader, CardHeadingBlock, CardTitle } from './cardParts';
|
|
2
|
-
import { CardVariant } from './cardTypes';
|
|
3
|
-
export type { CardPressEvent, CardProps, CardSize, CardVariant, CardHeaderProps, CardHeadingBlockProps, CardBodyProps, CardTitleProps, CardDescriptionProps, CardFooterProps, CardClassNames, } from './cardTypes';
|
|
4
|
-
export declare const CardRoot: import('react').ForwardRefExoticComponent<Omit<
|
|
3
|
+
import { CardMotion, CardVariant } from './cardTypes';
|
|
4
|
+
export type { CardPressEvent, CardProps, CardSize, CardVariant, CardHeaderProps, CardHeadingBlockProps, CardBodyProps, CardTitleProps, CardDescriptionProps, CardFooterProps, CardClassNames, CardMotion, CardPartMotion, CardRootMotion, CardPointerMotion, } from './cardTypes';
|
|
5
|
+
export declare const CardRoot: import('react').ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLElement>, "onKeyDown" | "onClick"> & {
|
|
5
6
|
variant?: CardVariant;
|
|
6
|
-
size?: import('./
|
|
7
|
+
size?: import('./cardTypes').CardSize;
|
|
7
8
|
shadow?: import('../../..').ShadowLevel;
|
|
8
9
|
pressable?: boolean;
|
|
9
10
|
onPress?: (event: import('./cardTypes').CardPressEvent) => void;
|
|
10
|
-
onClick?:
|
|
11
|
-
onKeyDown?:
|
|
11
|
+
onClick?: HTMLAttributes<HTMLElement>["onClick"];
|
|
12
|
+
onKeyDown?: HTMLAttributes<HTMLElement>["onKeyDown"];
|
|
12
13
|
classNames?: import('../../..').Prettify<import('./cardTypes').CardClassNames>;
|
|
14
|
+
motion?: import('../../..').Prettify<CardMotion>;
|
|
13
15
|
} & import('react').RefAttributes<HTMLElement>>;
|
|
14
16
|
export { CardHeader, CardHeadingBlock, CardBody, CardTitle, CardDescription, CardFooter, };
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { KeyboardEvent, MouseEvent, PointerEvent } from 'react';
|
|
2
|
-
import { UseCardAnimationsProps } from './cardTypes';
|
|
3
|
-
export declare function
|
|
2
|
+
import { CardMotion, CardVariant, UseCardAnimationsProps } from './cardTypes';
|
|
3
|
+
export declare function resolveCardMotionDefaults({ variant, pressable, }: {
|
|
4
|
+
variant: CardVariant;
|
|
5
|
+
pressable: boolean;
|
|
6
|
+
}): CardMotion;
|
|
7
|
+
export declare function useCardAnimations({ pressable, isGloss, shadow, motion, onPress, onClick: onClickProp, onKeyDown: onKeyDownProp, onPointerDown: onPointerDownProp, onPointerUp: onPointerUpProp, onPointerOver: onPointerOverProp, onPointerOut: onPointerOutProp, hoverPointerInsideRef, forwardedRef, }: UseCardAnimationsProps): {
|
|
4
8
|
setRootRef: (node: HTMLElement | null) => void;
|
|
5
9
|
pressableLiftMotionClass: string;
|
|
6
10
|
handlePointerDown: (e: PointerEvent<HTMLElement>) => void;
|
|
11
|
+
handlePointerUp: (e: PointerEvent<HTMLElement>) => void;
|
|
7
12
|
handleClick: (e: MouseEvent<HTMLElement>) => void;
|
|
8
13
|
handleKeyDown: (e: KeyboardEvent<HTMLElement>) => void;
|
|
9
14
|
onPointerOver: (e: PointerEvent<HTMLElement>) => void;
|
|
10
15
|
onPointerOut: (e: PointerEvent<HTMLElement>) => void;
|
|
11
16
|
onPointerDownProp: import('react').PointerEventHandler<HTMLElement> | undefined;
|
|
17
|
+
onPointerUpProp: import('react').PointerEventHandler<HTMLElement> | undefined;
|
|
12
18
|
onClickProp: import('react').MouseEventHandler<HTMLElement> | undefined;
|
|
13
19
|
onKeyDownProp: import('react').KeyboardEventHandler<HTMLElement> | undefined;
|
|
14
20
|
};
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { CardSize } from './cardStyles';
|
|
2
2
|
import { CardClassNames, CardProviderProps } from './cardTypes';
|
|
3
|
+
/** Scope only. Defaults and host play live in `cardAnimations.ts`. */
|
|
4
|
+
export declare const CardMotionProvider: ({ motion, defaults, params, children, }: {
|
|
5
|
+
motion?: import('../utils/slotMotion').MotionSlotMap;
|
|
6
|
+
defaults?: import('../utils/slotMotion').MotionSlotMap;
|
|
7
|
+
params?: import('../utils/slotMotion').MotionRecipeParams;
|
|
8
|
+
children: import('react').ReactNode;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element, useCardMotionScope: () => import('../utils/slotMotion').MotionScopeValue, useOptionalCardMotionScope: () => import('../utils/slotMotion').MotionScopeValue | null;
|
|
3
10
|
export type CardContextValue = {
|
|
4
11
|
classNames: CardClassNames;
|
|
5
12
|
size: CardSize;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { CardBodyProps,
|
|
2
|
-
export declare function CardHeader({ className, ...rest }: CardHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare function CardHeadingBlock({ className, ...rest }: CardHeadingBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare function CardBody({ className, ...rest }: CardBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export declare const CardTitle: import('react').ForwardRefExoticComponent<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare
|
|
1
|
+
import { CardBodyProps, CardFooterProps, CardHeaderProps, CardHeadingBlockProps, CardRootShellProps } from './cardTypes';
|
|
2
|
+
export declare function CardHeader({ className, motion, onPointerOver, onPointerOut, ...rest }: CardHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function CardHeadingBlock({ className, motion, onPointerOver, onPointerOut, ...rest }: CardHeadingBlockProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function CardBody({ className, motion, onPointerOver, onPointerOut, ...rest }: CardBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const CardTitle: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLHeadingElement> & {
|
|
6
|
+
motion?: import('../../..').Prettify<import('./cardTypes').CardPartMotion>;
|
|
7
|
+
} & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
8
|
+
export declare const CardDescription: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
9
|
+
motion?: import('../../..').Prettify<import('./cardTypes').CardPartMotion>;
|
|
10
|
+
} & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
11
|
+
export declare function CardFooter({ className, motion, onPointerOver, onPointerOut, ...rest }: CardFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function CardRootShell({ pressable, isGloss, renderAsButton, glossPanelClass, rootClassName, setRootRef, rest, children, onPointerOver, onPointerOut, onPointerDown, onPointerUp, onClick, onKeyDown, }: CardRootShellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes, KeyboardEvent, MouseEvent, ReactNode } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
3
|
import { ShadowLevel } from '../../../tokens/shadows';
|
|
4
|
+
import { MotionValue } from '../utils/slotMotion';
|
|
4
5
|
import { CardSize } from './cardStyles';
|
|
5
6
|
export type { CardSize } from './cardStyles';
|
|
6
7
|
export type CardVariant = "default" | "outline" | "secondary" | "gloss";
|
|
@@ -16,6 +17,24 @@ export type CardClassNames = {
|
|
|
16
17
|
body?: string;
|
|
17
18
|
footer?: string;
|
|
18
19
|
};
|
|
20
|
+
export type CardPointerMotion = {
|
|
21
|
+
hoverIn?: MotionValue;
|
|
22
|
+
hoverOut?: MotionValue;
|
|
23
|
+
};
|
|
24
|
+
export type CardRootMotion = CardPointerMotion & {
|
|
25
|
+
pressIn?: MotionValue;
|
|
26
|
+
pressOut?: MotionValue;
|
|
27
|
+
};
|
|
28
|
+
export type CardPartMotion = CardPointerMotion;
|
|
29
|
+
export type CardMotion = {
|
|
30
|
+
root?: CardRootMotion;
|
|
31
|
+
title?: CardPartMotion;
|
|
32
|
+
description?: CardPartMotion;
|
|
33
|
+
header?: CardPartMotion;
|
|
34
|
+
headingBlock?: CardPartMotion;
|
|
35
|
+
body?: CardPartMotion;
|
|
36
|
+
footer?: CardPartMotion;
|
|
37
|
+
};
|
|
19
38
|
export type CardProps = Omit<HTMLAttributes<HTMLElement>, "onClick" | "onKeyDown"> & {
|
|
20
39
|
variant?: CardVariant;
|
|
21
40
|
/** Radius, padding and title/description type scale. @default "base" */
|
|
@@ -36,13 +55,30 @@ export type CardProps = Omit<HTMLAttributes<HTMLElement>, "onClick" | "onKeyDown
|
|
|
36
55
|
onClick?: HTMLAttributes<HTMLElement>["onClick"];
|
|
37
56
|
onKeyDown?: HTMLAttributes<HTMLElement>["onKeyDown"];
|
|
38
57
|
classNames?: Prettify<CardClassNames>;
|
|
58
|
+
/**
|
|
59
|
+
* Per-slot motion (`root`, `title`, `description`, `header`, `headingBlock`, `body`, `footer`).
|
|
60
|
+
* Pressable defaults: second-level hover lift + squeeze (gloss recipes when gloss).
|
|
61
|
+
*/
|
|
62
|
+
motion?: Prettify<CardMotion>;
|
|
63
|
+
};
|
|
64
|
+
export type CardHeaderProps = HTMLAttributes<HTMLDivElement> & {
|
|
65
|
+
motion?: Prettify<CardPartMotion>;
|
|
66
|
+
};
|
|
67
|
+
export type CardHeadingBlockProps = HTMLAttributes<HTMLDivElement> & {
|
|
68
|
+
motion?: Prettify<CardPartMotion>;
|
|
69
|
+
};
|
|
70
|
+
export type CardBodyProps = HTMLAttributes<HTMLDivElement> & {
|
|
71
|
+
motion?: Prettify<CardPartMotion>;
|
|
72
|
+
};
|
|
73
|
+
export type CardTitleProps = HTMLAttributes<HTMLHeadingElement> & {
|
|
74
|
+
motion?: Prettify<CardPartMotion>;
|
|
75
|
+
};
|
|
76
|
+
export type CardDescriptionProps = HTMLAttributes<HTMLParagraphElement> & {
|
|
77
|
+
motion?: Prettify<CardPartMotion>;
|
|
78
|
+
};
|
|
79
|
+
export type CardFooterProps = HTMLAttributes<HTMLDivElement> & {
|
|
80
|
+
motion?: Prettify<CardPartMotion>;
|
|
39
81
|
};
|
|
40
|
-
export type CardHeaderProps = HTMLAttributes<HTMLDivElement>;
|
|
41
|
-
export type CardHeadingBlockProps = HTMLAttributes<HTMLDivElement>;
|
|
42
|
-
export type CardBodyProps = HTMLAttributes<HTMLDivElement>;
|
|
43
|
-
export type CardTitleProps = HTMLAttributes<HTMLHeadingElement>;
|
|
44
|
-
export type CardDescriptionProps = HTMLAttributes<HTMLParagraphElement>;
|
|
45
|
-
export type CardFooterProps = HTMLAttributes<HTMLDivElement>;
|
|
46
82
|
export type CardProviderProps = {
|
|
47
83
|
classNames?: Prettify<CardClassNames>;
|
|
48
84
|
size: CardSize;
|
|
@@ -53,12 +89,15 @@ export type UseCardAnimationsProps = {
|
|
|
53
89
|
pressable: boolean;
|
|
54
90
|
isGloss: boolean;
|
|
55
91
|
shadow?: ShadowLevel;
|
|
92
|
+
motion?: CardMotion;
|
|
56
93
|
onPress?: (event: CardPressEvent) => void;
|
|
57
94
|
onClick?: HTMLAttributes<HTMLElement>["onClick"];
|
|
58
95
|
onKeyDown?: HTMLAttributes<HTMLElement>["onKeyDown"];
|
|
59
96
|
onPointerDown?: HTMLAttributes<HTMLElement>["onPointerDown"];
|
|
97
|
+
onPointerUp?: HTMLAttributes<HTMLElement>["onPointerUp"];
|
|
60
98
|
onPointerOver?: HTMLAttributes<HTMLElement>["onPointerOver"];
|
|
61
99
|
onPointerOut?: HTMLAttributes<HTMLElement>["onPointerOut"];
|
|
100
|
+
hoverPointerInsideRef: React.RefObject<boolean>;
|
|
62
101
|
forwardedRef: React.ForwardedRef<HTMLElement>;
|
|
63
102
|
};
|
|
64
103
|
export type CardRootShellProps = {
|
|
@@ -74,6 +113,7 @@ export type CardRootShellProps = {
|
|
|
74
113
|
onPointerOver?: HTMLAttributes<HTMLElement>["onPointerOver"];
|
|
75
114
|
onPointerOut?: HTMLAttributes<HTMLElement>["onPointerOut"];
|
|
76
115
|
onPointerDown?: HTMLAttributes<HTMLElement>["onPointerDown"];
|
|
116
|
+
onPointerUp?: HTMLAttributes<HTMLElement>["onPointerUp"];
|
|
77
117
|
onClick?: HTMLAttributes<HTMLElement>["onClick"];
|
|
78
118
|
onKeyDown?: HTMLAttributes<HTMLElement>["onKeyDown"];
|
|
79
119
|
};
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import { CardBody, CardFooter, CardHeader, CardHeadingBlock } from './Card';
|
|
2
2
|
export declare const Card: import('react').ForwardRefExoticComponent<Omit<import('react').HTMLAttributes<HTMLElement>, "onKeyDown" | "onClick"> & {
|
|
3
3
|
variant?: import('./cardTypes').CardVariant;
|
|
4
|
-
size?: import('./
|
|
4
|
+
size?: import('./cardTypes').CardSize;
|
|
5
5
|
shadow?: import('../../..').ShadowLevel;
|
|
6
6
|
pressable?: boolean;
|
|
7
7
|
onPress?: (event: import('./cardTypes').CardPressEvent) => void;
|
|
8
8
|
onClick?: import('react').HTMLAttributes<HTMLElement>["onClick"];
|
|
9
9
|
onKeyDown?: import('react').HTMLAttributes<HTMLElement>["onKeyDown"];
|
|
10
10
|
classNames?: import('../../..').Prettify<import('./cardTypes').CardClassNames>;
|
|
11
|
+
motion?: import('../../..').Prettify<import('./cardTypes').CardMotion>;
|
|
11
12
|
} & import('react').RefAttributes<HTMLElement>> & {
|
|
12
13
|
Header: typeof CardHeader;
|
|
13
14
|
HeadingBlock: typeof CardHeadingBlock;
|
|
14
|
-
Title: import('react').ForwardRefExoticComponent<import('
|
|
15
|
-
|
|
15
|
+
Title: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLHeadingElement> & {
|
|
16
|
+
motion?: import('../../..').Prettify<import('./cardTypes').CardPartMotion>;
|
|
17
|
+
} & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
18
|
+
Description: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & {
|
|
19
|
+
motion?: import('../../..').Prettify<import('./cardTypes').CardPartMotion>;
|
|
20
|
+
} & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
16
21
|
Body: typeof CardBody;
|
|
17
22
|
Footer: typeof CardFooter;
|
|
18
23
|
};
|
|
19
|
-
export type { CardPressEvent, CardProps, CardSize, CardVariant, CardHeaderProps, CardHeadingBlockProps, CardBodyProps, CardTitleProps, CardDescriptionProps, CardFooterProps, CardClassNames, } from './cardTypes';
|
|
24
|
+
export type { CardPressEvent, CardProps, CardSize, CardVariant, CardHeaderProps, CardHeadingBlockProps, CardBodyProps, CardTitleProps, CardDescriptionProps, CardFooterProps, CardClassNames, CardMotion, CardPartMotion, } from './cardTypes';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CheckboxContent, CheckboxControl, CheckboxError, CheckboxHint, CheckboxIndicator, CheckboxLabel } from './checkboxParts';
|
|
2
|
-
export type { CheckboxProps, CheckboxControlProps, CheckboxIndicatorProps, CheckboxContentProps, CheckboxLabelProps, CheckboxHintProps, CheckboxErrorProps, CheckboxSize, CheckboxVariant, CheckboxClassNames, } from './checkboxTypes';
|
|
3
|
-
export declare const CheckboxRoot: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "
|
|
2
|
+
export type { CheckboxProps, CheckboxControlProps, CheckboxIndicatorProps, CheckboxContentProps, CheckboxLabelProps, CheckboxHintProps, CheckboxErrorProps, CheckboxSize, CheckboxVariant, CheckboxClassNames, CheckboxMotion, CheckboxCheckMotion, } from './checkboxTypes';
|
|
3
|
+
export declare const CheckboxRoot: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "onPointerDown" | "onChange" | "htmlFor"> & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "children" | "className"> & {
|
|
4
4
|
children?: import('react').ReactNode;
|
|
5
5
|
label?: import('react').ReactNode;
|
|
6
6
|
hint?: import('react').ReactNode;
|
|
@@ -11,6 +11,7 @@ export declare const CheckboxRoot: import('react').ForwardRefExoticComponent<Omi
|
|
|
11
11
|
icon?: import('react').ReactNode;
|
|
12
12
|
className?: string;
|
|
13
13
|
classNames?: import('../../..').Prettify<import('./checkboxTypes').CheckboxClassNames>;
|
|
14
|
+
motion?: import('../../..').Prettify<import('./checkboxTypes').CheckboxMotion>;
|
|
14
15
|
onPointerDown?: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
15
16
|
} & import('react').RefAttributes<HTMLLabelElement>>;
|
|
16
17
|
export { CheckboxControl, CheckboxIndicator, CheckboxContent, CheckboxLabel, CheckboxHint, CheckboxError, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { Prettify } from '../../../utils/prettify';
|
|
3
|
-
import { SelectionIndicatorClassNames, SelectionIndicatorVariant } from '../SelectionIndicator';
|
|
4
3
|
import { CheckboxClassNames, CheckboxIndicatorClassNames, CheckboxVariant } from './checkboxTypes';
|
|
4
|
+
import { SelectionIndicatorClassNames, SelectionIndicatorVariant } from '../SelectionIndicator';
|
|
5
5
|
export declare function checkboxVariantToIndicator(variant: CheckboxVariant): SelectionIndicatorVariant;
|
|
6
6
|
export declare function resolveCheckboxIndicatorClassNames({ slotClassNames, classNames, className, }: {
|
|
7
7
|
slotClassNames: CheckboxClassNames;
|
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SelectionIndicatorMotion } from '../SelectionIndicator';
|
|
2
|
+
import { CheckboxMotion, UseCheckboxAnimationsProps } from './checkboxTypes';
|
|
3
|
+
/** Root Checkbox `motion` keys → SelectionIndicator slots. */
|
|
4
|
+
export declare const CHECKBOX_MOTION_SLOT_MAP: {
|
|
5
|
+
readonly indicator: "root";
|
|
6
|
+
readonly indicatorFill: "fill";
|
|
7
|
+
readonly indicatorMark: "mark";
|
|
8
|
+
};
|
|
9
|
+
export declare function resolveCheckboxIndicatorMotion({ rootMotion, indicatorMotion, }: {
|
|
10
|
+
rootMotion?: CheckboxMotion;
|
|
11
|
+
indicatorMotion?: SelectionIndicatorMotion;
|
|
12
|
+
}): SelectionIndicatorMotion | undefined;
|
|
2
13
|
export declare function useCheckboxControlTrackAnimation(): import('react').RefObject<HTMLSpanElement | null>;
|
|
3
14
|
export declare function useCheckboxTextMotion({ isDisabled, enableTextMotion, textMotionRef, onPointerDown, onKeyDown, }: UseCheckboxAnimationsProps): {
|
|
4
15
|
handlePointerEnter: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckboxClassNames, CheckboxClassNamesProviderProps, CheckboxFieldContextValue } from './checkboxTypes';
|
|
1
|
+
import { CheckboxClassNames, CheckboxClassNamesProviderProps, CheckboxFieldContextValue, CheckboxMotion, CheckboxMotionProviderProps } from './checkboxTypes';
|
|
2
2
|
export declare function CheckboxFieldProvider({ value, children, }: {
|
|
3
3
|
value: CheckboxFieldContextValue;
|
|
4
4
|
children: React.ReactNode;
|
|
@@ -6,3 +6,5 @@ export declare function CheckboxFieldProvider({ value, children, }: {
|
|
|
6
6
|
export declare function CheckboxClassNamesProvider({ classNames, children, }: CheckboxClassNamesProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export declare function useCheckboxFieldContext(): CheckboxFieldContextValue;
|
|
8
8
|
export declare function useCheckboxClassNames(): CheckboxClassNames;
|
|
9
|
+
export declare function CheckboxMotionProvider({ motion, children, }: CheckboxMotionProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function useCheckboxMotion(): CheckboxMotion | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CheckboxControlProps, CheckboxErrorProps, CheckboxHintProps, CheckboxIndicatorProps, CheckboxLabelProps, CheckboxSize } from './checkboxTypes';
|
|
2
2
|
export declare const CheckboxControl: import('react').ForwardRefExoticComponent<CheckboxControlProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
3
|
-
export declare function CheckboxIndicator({ children, className, classNames: classNamesProp, size: sizeProp, ...rest }: CheckboxIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function CheckboxIndicator({ children, className, classNames: classNamesProp, size: sizeProp, motion: motionProp, ...rest }: CheckboxIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare namespace CheckboxIndicator {
|
|
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
|
import { SemanticStatus } from '../utils/semanticStatusIcons';
|
|
7
8
|
export type CheckboxVariant = "default" | "secondary" | "outline" | "gloss";
|
|
8
9
|
export type CheckboxSize = "small" | "base" | "mid" | "large";
|
|
@@ -23,6 +24,16 @@ export type CheckboxClassNames = {
|
|
|
23
24
|
simpleLabelText?: string;
|
|
24
25
|
input?: string;
|
|
25
26
|
};
|
|
27
|
+
export type CheckboxCheckMotion = {
|
|
28
|
+
check?: MotionValue;
|
|
29
|
+
uncheck?: MotionValue;
|
|
30
|
+
};
|
|
31
|
+
/** Root map. Keys → SelectionIndicator slots in `checkboxAnimations.ts`. */
|
|
32
|
+
export type CheckboxMotion = {
|
|
33
|
+
indicator?: CheckboxCheckMotion;
|
|
34
|
+
indicatorFill?: CheckboxCheckMotion;
|
|
35
|
+
indicatorMark?: CheckboxCheckMotion;
|
|
36
|
+
};
|
|
26
37
|
export type CheckboxProps = Omit<LabelHTMLAttributes<HTMLLabelElement>, "children" | "htmlFor" | "onChange" | "onPointerDown"> & Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size" | "children" | "className"> & {
|
|
27
38
|
children?: ReactNode;
|
|
28
39
|
label?: ReactNode;
|
|
@@ -34,6 +45,7 @@ export type CheckboxProps = Omit<LabelHTMLAttributes<HTMLLabelElement>, "childre
|
|
|
34
45
|
icon?: ReactNode;
|
|
35
46
|
className?: string;
|
|
36
47
|
classNames?: Prettify<CheckboxClassNames>;
|
|
48
|
+
motion?: Prettify<CheckboxMotion>;
|
|
37
49
|
onPointerDown?: (e: PointerEvent<HTMLElement>) => void;
|
|
38
50
|
};
|
|
39
51
|
export type CheckboxControlProps = HTMLAttributes<HTMLSpanElement>;
|
|
@@ -42,6 +54,7 @@ export type CheckboxIndicatorProps = HTMLAttributes<HTMLSpanElement> & {
|
|
|
42
54
|
children?: ReactNode;
|
|
43
55
|
size?: CheckboxSize;
|
|
44
56
|
classNames?: Prettify<CheckboxIndicatorClassNames>;
|
|
57
|
+
motion?: Prettify<SelectionIndicatorMotion>;
|
|
45
58
|
};
|
|
46
59
|
export type CheckboxContentProps = HTMLAttributes<HTMLDivElement> & {
|
|
47
60
|
children?: ReactNode;
|
|
@@ -90,6 +103,10 @@ export type CheckboxClassNamesProviderProps = {
|
|
|
90
103
|
classNames?: Prettify<CheckboxClassNames>;
|
|
91
104
|
children: ReactNode;
|
|
92
105
|
};
|
|
106
|
+
export type CheckboxMotionProviderProps = {
|
|
107
|
+
motion?: Prettify<CheckboxMotion>;
|
|
108
|
+
children: ReactNode;
|
|
109
|
+
};
|
|
93
110
|
export type UseCheckboxRootStateProps = Omit<CheckboxProps, "children" | "className" | "classNames">;
|
|
94
111
|
export type UseCheckboxAnimationsProps = {
|
|
95
112
|
isDisabled: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CheckboxError, CheckboxHint, CheckboxIndicator, CheckboxLabel } from './Checkbox';
|
|
2
|
-
export declare const Checkbox: import('react').ForwardRefExoticComponent<Omit<import('react').LabelHTMLAttributes<HTMLLabelElement>, "children" | "
|
|
2
|
+
export declare const Checkbox: 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;
|
|
@@ -10,13 +10,17 @@ export declare const Checkbox: import('react').ForwardRefExoticComponent<Omit<im
|
|
|
10
10
|
icon?: import('react').ReactNode;
|
|
11
11
|
className?: string;
|
|
12
12
|
classNames?: import('../../..').Prettify<import('./checkboxTypes').CheckboxClassNames>;
|
|
13
|
+
motion?: import('../../..').Prettify<import('./checkboxTypes').CheckboxMotion>;
|
|
13
14
|
onPointerDown?: (e: import('react').PointerEvent<HTMLElement>) => void;
|
|
14
15
|
} & import('react').RefAttributes<HTMLLabelElement>> & {
|
|
15
16
|
Control: import('react').ForwardRefExoticComponent<import('./checkboxTypes').CheckboxControlProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
16
17
|
Indicator: typeof CheckboxIndicator & {
|
|
17
|
-
Fill: import('react').ForwardRefExoticComponent<import('
|
|
18
|
+
Fill: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
19
|
+
motion?: import('../../..').Prettify<import('../SelectionIndicator').SelectionIndicatorCheckMotion>;
|
|
20
|
+
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
18
21
|
Mark: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLSpanElement> & {
|
|
19
22
|
children?: import('react').ReactNode;
|
|
23
|
+
motion?: import('../../..').Prettify<import('../SelectionIndicator').SelectionIndicatorCheckMotion>;
|
|
20
24
|
} & import('react').RefAttributes<HTMLSpanElement>>;
|
|
21
25
|
};
|
|
22
26
|
Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
@@ -26,4 +30,4 @@ export declare const Checkbox: import('react').ForwardRefExoticComponent<Omit<im
|
|
|
26
30
|
Hint: typeof CheckboxHint;
|
|
27
31
|
Error: typeof CheckboxError;
|
|
28
32
|
};
|
|
29
|
-
export type { CheckboxProps, CheckboxControlProps, CheckboxIndicatorProps, CheckboxContentProps, CheckboxLabelProps, CheckboxHintProps, CheckboxErrorProps, CheckboxSize, CheckboxVariant, CheckboxClassNames, } from './checkboxTypes';
|
|
33
|
+
export type { CheckboxProps, CheckboxControlProps, CheckboxIndicatorProps, CheckboxContentProps, CheckboxLabelProps, CheckboxHintProps, CheckboxErrorProps, CheckboxSize, CheckboxVariant, CheckboxClassNames, CheckboxMotion, CheckboxCheckMotion, } from './checkboxTypes';
|