burne-ui 2.1.2 → 2.1.4
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 +8 -4
- package/cli/burne-ui.js +4 -3
- package/cli/init.js +83 -19
- package/cli/skin-live-slots.json +1 -1
- package/cli/skin-slots.json +2 -0
- package/cli/skin-validate.mjs +83 -2
- package/cli/tailwind.css +20 -0
- package/cli/theme-bridge.css +6 -0
- package/dist/authoring.d.ts +2 -0
- package/dist/authoring.js +8 -0
- package/dist/components/composite/Accordion/accordionStyles.js +1 -1
- package/dist/components/composite/Accordion/useAccordionRootState.js +6 -2
- package/dist/components/composite/AlertDialog/AlertDialog.d.ts +1 -1
- package/dist/components/composite/AlertDialog/AlertDialog.js +1 -0
- package/dist/components/composite/AlertDialog/alertDialogAnimations.d.ts +1 -0
- package/dist/components/composite/AlertDialog/alertDialogAnimations.js +1 -0
- package/dist/components/composite/AlertDialog/alertDialogParts.d.ts +5 -7
- package/dist/components/composite/AlertDialog/alertDialogParts.js +92 -37
- package/dist/components/composite/AlertDialog/alertDialogStyles.d.ts +3 -2
- package/dist/components/composite/AlertDialog/alertDialogStyles.js +5 -3
- package/dist/components/composite/AlertDialog/alertDialogTypes.d.ts +8 -8
- package/dist/components/composite/AlertDialog/index.d.ts +4 -6
- package/dist/components/composite/AlertDialog/useAlertDialogRootState.d.ts +1 -1
- package/dist/components/composite/AlertDialog/useAlertDialogRootState.js +13 -1
- package/dist/components/composite/ButtonGroup/ButtonGroup.d.ts +1 -0
- package/dist/components/composite/ButtonGroup/ButtonGroup.js +59 -25
- package/dist/components/composite/ButtonGroup/buttonGroupAPI.d.ts +1 -0
- package/dist/components/composite/ButtonGroup/buttonGroupAPI.js +7 -1
- package/dist/components/composite/ButtonGroup/buttonGroupContext.d.ts +3 -2
- package/dist/components/composite/ButtonGroup/buttonGroupContext.js +4 -3
- package/dist/components/composite/ButtonGroup/buttonGroupStyles.js +1 -1
- package/dist/components/composite/ButtonGroup/buttonGroupTypes.d.ts +3 -1
- package/dist/components/composite/ButtonGroup/index.d.ts +1 -0
- package/dist/components/composite/CheckboxGroup/CheckboxGroup.js +25 -7
- package/dist/components/composite/CheckboxGroup/useCheckboxGroupRootState.d.ts +5 -1
- package/dist/components/composite/CheckboxGroup/useCheckboxGroupRootState.js +74 -23
- package/dist/components/composite/Form/Form.js +6 -0
- package/dist/components/composite/Form/formAPI.d.ts +2 -0
- package/dist/components/composite/Form/formAPI.js +29 -2
- package/dist/components/composite/Form/formContext.js +4 -0
- package/dist/components/composite/Form/formParts.js +20 -6
- package/dist/components/composite/Form/formStyles.js +4 -4
- package/dist/components/composite/Form/useFormControlProps.js +25 -15
- package/dist/components/composite/Form/useFormFieldBinding.js +22 -14
- package/dist/components/composite/Form/useFormRootState.d.ts +2 -1
- package/dist/components/composite/Form/useFormRootState.js +151 -89
- package/dist/components/composite/RadioGroup/RadioGroup.js +30 -10
- package/dist/components/composite/RadioGroup/radioGroupA11y.d.ts +10 -0
- package/dist/components/composite/RadioGroup/radioGroupA11y.js +75 -0
- package/dist/components/composite/RadioGroup/radioGroupTypes.d.ts +2 -2
- package/dist/components/composite/RadioGroup/useRadioGroupRootState.d.ts +7 -1
- package/dist/components/composite/RadioGroup/useRadioGroupRootState.js +105 -34
- package/dist/components/composite/ToggleButtonGroup/ToggleButtonGroup.js +3 -1
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupA11y.d.ts +1 -1
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupA11y.js +13 -7
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupAPI.d.ts +2 -0
- package/dist/components/composite/ToggleButtonGroup/toggleButtonGroupAPI.js +19 -4
- package/dist/components/composite/ToggleButtonGroup/useToggleButtonGroupRootState.js +20 -7
- package/dist/components/composite/utils/optionGroupFieldset.d.ts +1 -1
- package/dist/components/core/Alert/Alert.js +3 -1
- package/dist/components/core/Alert/alertAnimations.js +14 -3
- package/dist/components/core/Alert/alertStyles.d.ts +1 -1
- package/dist/components/core/Alert/alertStyles.js +1 -1
- package/dist/components/core/AppShell/AppShell.js +16 -4
- package/dist/components/core/AppShell/appShellAnimations.js +1 -1
- package/dist/components/core/AppShell/appShellStyles.d.ts +3 -2
- package/dist/components/core/AppShell/appShellStyles.js +8 -2
- package/dist/components/core/AspectRatio/AspectRatio.js +6 -3
- package/dist/components/core/AspectRatio/aspectRatioAnimations.js +1 -1
- package/dist/components/core/AspectRatio/aspectRatioStyles.d.ts +5 -2
- package/dist/components/core/AspectRatio/aspectRatioStyles.js +27 -3
- package/dist/components/core/Avatar/avatarParts.js +26 -6
- package/dist/components/core/Avatar/avatarTypes.d.ts +1 -0
- package/dist/components/core/Avatar/useAvatarRootState.d.ts +1 -0
- package/dist/components/core/Avatar/useAvatarRootState.js +6 -2
- package/dist/components/core/Badge/Badge.js +9 -3
- package/dist/components/core/Badge/badgeA11y.js +6 -0
- package/dist/components/core/Badge/badgeAPI.js +4 -4
- package/dist/components/core/Badge/badgeAnimations.js +18 -3
- package/dist/components/core/Badge/badgeParts.d.ts +1 -1
- package/dist/components/core/Badge/badgeParts.js +6 -3
- package/dist/components/core/Badge/badgeStyles.d.ts +1 -0
- package/dist/components/core/Badge/badgeStyles.js +2 -0
- package/dist/components/core/Badge/badgeTypes.d.ts +2 -0
- package/dist/components/core/Badge/useBadgeRootState.d.ts +1 -0
- package/dist/components/core/Badge/useBadgeRootState.js +2 -1
- package/dist/components/core/Breadcrumbs/breadcrumbsAPI.js +11 -5
- package/dist/components/core/Breadcrumbs/breadcrumbsParts.js +21 -6
- package/dist/components/core/Breadcrumbs/breadcrumbsStyles.js +4 -4
- package/dist/components/core/Button/Button.js +34 -18
- package/dist/components/core/Button/buttonAnimations.d.ts +1 -1
- package/dist/components/core/Button/buttonAnimations.js +18 -7
- package/dist/components/core/Button/buttonParts.js +2 -2
- package/dist/components/core/Button/buttonStyles.d.ts +4 -3
- package/dist/components/core/Button/buttonStyles.js +11 -10
- package/dist/components/core/Button/buttonTypes.d.ts +2 -1
- package/dist/components/core/Button/useButtonRootState.d.ts +2 -1
- package/dist/components/core/Button/useButtonRootState.js +10 -4
- package/dist/components/core/Calendar/Calendar.js +15 -4
- package/dist/components/core/Calendar/calendarAPI.d.ts +10 -6
- package/dist/components/core/Calendar/calendarAPI.js +110 -30
- package/dist/components/core/Calendar/calendarParts.js +173 -72
- package/dist/components/core/Calendar/calendarStyles.d.ts +5 -5
- package/dist/components/core/Calendar/calendarStyles.js +8 -8
- package/dist/components/core/Calendar/calendarTypes.d.ts +8 -0
- package/dist/components/core/Calendar/useCalendarRootState.js +60 -19
- package/dist/components/core/Calendar/useCalendarViewModels.js +6 -6
- package/dist/components/core/Card/Card.d.ts +1 -0
- package/dist/components/core/Card/Card.js +17 -7
- package/dist/components/core/Card/cardAPI.d.ts +1 -0
- package/dist/components/core/Card/cardAPI.js +23 -1
- package/dist/components/core/Card/cardAnimations.d.ts +1 -1
- package/dist/components/core/Card/cardAnimations.js +41 -10
- package/dist/components/core/Card/cardParts.d.ts +1 -1
- package/dist/components/core/Card/cardParts.js +26 -6
- package/dist/components/core/Card/cardStyles.d.ts +5 -4
- package/dist/components/core/Card/cardStyles.js +9 -6
- package/dist/components/core/Card/cardTypes.d.ts +4 -0
- package/dist/components/core/Card/index.d.ts +1 -0
- package/dist/components/core/Checkbox/Checkbox.js +9 -1
- package/dist/components/core/Checkbox/checkboxAPI.d.ts +2 -0
- package/dist/components/core/Checkbox/checkboxAPI.js +36 -0
- package/dist/components/core/Checkbox/checkboxParts.d.ts +5 -4
- package/dist/components/core/Checkbox/checkboxParts.js +74 -48
- package/dist/components/core/Checkbox/checkboxStyles.d.ts +4 -3
- package/dist/components/core/Checkbox/checkboxStyles.js +5 -3
- package/dist/components/core/Checkbox/checkboxTypes.d.ts +2 -0
- package/dist/components/core/Checkbox/index.d.ts +1 -1
- package/dist/components/core/Checkbox/useCheckboxRootState.d.ts +4 -1
- package/dist/components/core/Checkbox/useCheckboxRootState.js +43 -30
- package/dist/components/core/CloseButton/CloseButton.js +2 -1
- package/dist/components/core/CloseButton/closeButtonAnimations.js +38 -9
- package/dist/components/core/CloseButton/closeButtonParts.js +3 -4
- package/dist/components/core/ColorPicker/ColorPicker.js +27 -8
- package/dist/components/core/ColorPicker/ColorSlider.d.ts +2 -0
- package/dist/components/core/ColorPicker/ColorSlider.js +131 -53
- package/dist/components/core/ColorPicker/ColorSwatch.js +22 -4
- package/dist/components/core/ColorPicker/colorPickerAnimations.d.ts +1 -1
- package/dist/components/core/ColorPicker/colorPickerAnimations.js +33 -8
- package/dist/components/core/ColorPicker/colorPickerParts.js +125 -32
- package/dist/components/core/ColorPicker/colorPickerStyles.d.ts +11 -3
- package/dist/components/core/ColorPicker/colorPickerStyles.js +13 -3
- package/dist/components/core/ColorPicker/colorPickerTypes.d.ts +4 -0
- package/dist/components/core/ColorPicker/colorSliderStyles.d.ts +2 -2
- package/dist/components/core/ColorPicker/colorSliderStyles.js +4 -4
- package/dist/components/core/ColorPicker/colorSliderTypes.d.ts +2 -0
- package/dist/components/core/ColorPicker/colorSwatchStyles.d.ts +1 -0
- package/dist/components/core/ColorPicker/colorSwatchStyles.js +4 -0
- package/dist/components/core/ColorPicker/colorUtils.d.ts +2 -1
- package/dist/components/core/ColorPicker/colorUtils.js +33 -10
- package/dist/components/core/ColorPicker/index.d.ts +2 -0
- package/dist/components/core/ColorPicker/useColorPickerRootState.d.ts +3 -1
- package/dist/components/core/ColorPicker/useColorPickerRootState.js +65 -30
- package/dist/components/core/ComboBox/ComboBox.js +13 -1
- package/dist/components/core/ComboBox/comboBoxAnimations.d.ts +3 -2
- package/dist/components/core/ComboBox/comboBoxAnimations.js +5 -2
- package/dist/components/core/ComboBox/comboBoxFieldParts.js +1 -1
- package/dist/components/core/ComboBox/comboBoxParts.d.ts +3 -1
- package/dist/components/core/ComboBox/comboBoxParts.js +114 -28
- package/dist/components/core/ComboBox/comboBoxStyles.d.ts +4 -4
- package/dist/components/core/ComboBox/comboBoxStyles.js +4 -4
- package/dist/components/core/ComboBox/comboBoxTypes.d.ts +5 -0
- package/dist/components/core/ComboBox/useComboBoxInputState.d.ts +3 -2
- package/dist/components/core/ComboBox/useComboBoxInputState.js +130 -62
- package/dist/components/core/ComboBox/useComboBoxRootState.js +44 -18
- package/dist/components/core/Container/Container.js +3 -0
- package/dist/components/core/Container/containerStyles.d.ts +2 -1
- package/dist/components/core/Container/containerStyles.js +2 -1
- package/dist/components/core/ContextMenu/ContextMenu.d.ts +3 -1
- package/dist/components/core/ContextMenu/ContextMenu.js +177 -19
- package/dist/components/core/ContextMenu/contextMenuStyles.d.ts +1 -1
- package/dist/components/core/ContextMenu/contextMenuStyles.js +1 -1
- package/dist/components/core/ContextMenu/index.d.ts +3 -1
- package/dist/components/core/DatePicker/DatePicker.js +8 -3
- package/dist/components/core/DatePicker/datePickerAPI.d.ts +2 -0
- package/dist/components/core/DatePicker/datePickerAPI.js +43 -0
- package/dist/components/core/DatePicker/datePickerAnimations.d.ts +2 -1
- package/dist/components/core/DatePicker/datePickerAnimations.js +9 -5
- package/dist/components/core/DatePicker/datePickerParts.js +29 -5
- package/dist/components/core/DatePicker/datePickerStyles.d.ts +2 -2
- package/dist/components/core/DatePicker/datePickerStyles.js +2 -2
- package/dist/components/core/DatePicker/datePickerTypes.d.ts +2 -0
- package/dist/components/core/DatePicker/useDatePickerRootState.d.ts +2 -0
- package/dist/components/core/DatePicker/useDatePickerRootState.js +63 -24
- package/dist/components/core/Dialog/Dialog.d.ts +1 -1
- package/dist/components/core/Dialog/Dialog.js +2 -0
- package/dist/components/core/Dialog/dialogAnimations.d.ts +1 -0
- package/dist/components/core/Dialog/dialogAnimations.js +1 -0
- package/dist/components/core/Dialog/dialogParts.d.ts +1 -1
- package/dist/components/core/Dialog/dialogParts.js +8 -3
- package/dist/components/core/Dialog/dialogStyles.d.ts +1 -1
- package/dist/components/core/Dialog/dialogStyles.js +2 -2
- package/dist/components/core/Dialog/dialogTypes.d.ts +4 -1
- package/dist/components/core/Dialog/useDialogRootState.d.ts +1 -1
- package/dist/components/core/Dialog/useDialogRootState.js +2 -0
- package/dist/components/core/Disclosure/Disclosure.js +10 -4
- package/dist/components/core/Disclosure/disclosureAnimations.js +7 -5
- package/dist/components/core/Disclosure/disclosureContentPart.js +3 -0
- package/dist/components/core/Disclosure/disclosureParts.js +29 -20
- package/dist/components/core/Disclosure/disclosureStyles.d.ts +1 -1
- package/dist/components/core/Disclosure/disclosureStyles.js +3 -3
- package/dist/components/core/Disclosure/useDisclosureContentDrag.js +3 -1
- package/dist/components/core/Disclosure/useDisclosureGroupRootState.js +17 -7
- package/dist/components/core/Disclosure/useDisclosureRootState.js +12 -12
- package/dist/components/core/Drawer/Drawer.d.ts +1 -1
- package/dist/components/core/Drawer/Drawer.js +2 -0
- package/dist/components/core/Drawer/drawerAnimations.d.ts +1 -0
- package/dist/components/core/Drawer/drawerAnimations.js +1 -0
- package/dist/components/core/Drawer/drawerParts.js +14 -9
- package/dist/components/core/Drawer/drawerStyles.d.ts +1 -1
- package/dist/components/core/Drawer/drawerStyles.js +2 -2
- package/dist/components/core/Drawer/drawerTypes.d.ts +4 -1
- package/dist/components/core/Drawer/useDrawerHandleDrag.d.ts +2 -0
- package/dist/components/core/Drawer/useDrawerHandleDrag.js +117 -35
- package/dist/components/core/Drawer/useDrawerRootState.d.ts +1 -1
- package/dist/components/core/Drawer/useDrawerRootState.js +3 -0
- package/dist/components/core/Dropdown/dropdownA11y.js +4 -1
- package/dist/components/core/Dropdown/dropdownAnimations.d.ts +3 -2
- package/dist/components/core/Dropdown/dropdownAnimations.js +79 -29
- package/dist/components/core/Dropdown/dropdownItemParts.d.ts +3 -1
- package/dist/components/core/Dropdown/dropdownItemParts.js +25 -5
- package/dist/components/core/Dropdown/dropdownParts.js +40 -11
- package/dist/components/core/Dropdown/dropdownStyles.d.ts +3 -3
- package/dist/components/core/Dropdown/dropdownStyles.js +3 -3
- package/dist/components/core/Dropdown/dropdownSubParts.js +47 -16
- package/dist/components/core/Dropdown/dropdownTypes.d.ts +13 -2
- package/dist/components/core/Dropdown/index.d.ts +3 -1
- package/dist/components/core/Dropdown/useDropdownItemState.d.ts +5 -1
- package/dist/components/core/Dropdown/useDropdownItemState.js +3 -1
- package/dist/components/core/Dropdown/useDropdownRootState.js +16 -5
- package/dist/components/core/Expandable/expandableA11y.d.ts +1 -0
- package/dist/components/core/Expandable/expandableA11y.js +5 -0
- package/dist/components/core/Expandable/expandableAPI.d.ts +1 -0
- package/dist/components/core/Expandable/expandableAPI.js +19 -11
- package/dist/components/core/Expandable/expandableAnimations.d.ts +1 -1
- package/dist/components/core/Expandable/expandableAnimations.js +9 -9
- package/dist/components/core/Expandable/expandableParts.js +31 -23
- package/dist/components/core/Expandable/expandableStyles.d.ts +1 -1
- package/dist/components/core/Expandable/expandableStyles.js +1 -1
- package/dist/components/core/Expandable/useExpandableRootState.js +5 -3
- package/dist/components/core/Field/fieldParts.d.ts +2 -2
- package/dist/components/core/Field/fieldParts.js +2 -1
- package/dist/components/core/Field/fieldStyles.js +1 -1
- package/dist/components/core/Grid/Grid.js +3 -0
- package/dist/components/core/Grid/gridStyles.d.ts +2 -1
- package/dist/components/core/Grid/gridStyles.js +2 -1
- package/dist/components/core/Header/Header.js +3 -1
- package/dist/components/core/Header/headerStyles.d.ts +3 -2
- package/dist/components/core/Header/headerStyles.js +9 -2
- package/dist/components/core/HoverCard/hoverCardParts.js +23 -11
- package/dist/components/core/Input/inputAffixParts.js +6 -0
- package/dist/components/core/Input/inputAnimations.js +3 -1
- package/dist/components/core/Input/inputControlParts.js +48 -14
- package/dist/components/core/Input/inputFieldParts.js +1 -1
- package/dist/components/core/Input/inputStyles.d.ts +5 -5
- package/dist/components/core/Input/inputStyles.js +5 -5
- package/dist/components/core/Input/inputTypes.d.ts +1 -0
- package/dist/components/core/Input/useInputRootState.js +2 -1
- package/dist/components/core/Kbd/Kbd.js +3 -1
- package/dist/components/core/Kbd/kbdAnimations.js +16 -4
- package/dist/components/core/Kbd/kbdParts.js +6 -4
- package/dist/components/core/Kbd/kbdStyles.d.ts +1 -1
- package/dist/components/core/Kbd/kbdStyles.js +1 -1
- package/dist/components/core/Kbd/kbdTextPart.js +5 -2
- package/dist/components/core/Kbd/useKbdRootState.js +6 -2
- package/dist/components/core/Label/Label.d.ts +2 -1
- package/dist/components/core/Label/Label.js +8 -1
- package/dist/components/core/Label/labelParts.d.ts +1 -0
- package/dist/components/core/Label/labelTypes.d.ts +3 -1
- package/dist/components/core/Label/useLabelRootState.d.ts +2 -1
- package/dist/components/core/Label/useLabelRootState.js +3 -1
- package/dist/components/core/Link/Link.d.ts +1 -1
- package/dist/components/core/Link/Link.js +38 -25
- package/dist/components/core/Link/linkAPI.d.ts +3 -1
- package/dist/components/core/Link/linkAPI.js +8 -4
- package/dist/components/core/Link/linkAnchorBodyPart.d.ts +2 -2
- package/dist/components/core/Link/linkAnchorBodyPart.js +48 -8
- package/dist/components/core/Link/linkAnimations.d.ts +1 -1
- package/dist/components/core/Link/linkAnimations.js +29 -14
- package/dist/components/core/Link/linkIconSlotPart.d.ts +1 -1
- package/dist/components/core/Link/linkIconSlotPart.js +3 -3
- package/dist/components/core/Link/linkStyles.d.ts +5 -3
- package/dist/components/core/Link/linkStyles.js +6 -3
- package/dist/components/core/Link/linkTypes.d.ts +14 -1
- package/dist/components/core/Link/useLinkRootState.d.ts +2 -0
- package/dist/components/core/ListBox/ListBox.d.ts +1 -0
- package/dist/components/core/ListBox/ListBox.js +2 -0
- package/dist/components/core/ListBox/index.d.ts +1 -0
- package/dist/components/core/ListBox/listBoxAnimations.d.ts +5 -2
- package/dist/components/core/ListBox/listBoxAnimations.js +15 -3
- package/dist/components/core/ListBox/listBoxParts.js +21 -5
- package/dist/components/core/ListBox/listBoxStyles.d.ts +3 -3
- package/dist/components/core/ListBox/listBoxStyles.js +3 -3
- package/dist/components/core/ListBox/listBoxTypes.d.ts +5 -1
- package/dist/components/core/ListBox/useListBoxItemState.d.ts +1 -1
- package/dist/components/core/ListBox/useListBoxRootState.d.ts +1 -1
- package/dist/components/core/ListBox/useListBoxRootState.js +31 -6
- package/dist/components/core/ListBox/useListBoxVirtualWindow.d.ts +1 -0
- package/dist/components/core/ListBox/useListBoxVirtualWindow.js +11 -4
- package/dist/components/core/Loading/Loading.js +1 -1
- package/dist/components/core/Loading/loadingAnimations.d.ts +2 -2
- package/dist/components/core/Loading/loadingAnimations.js +12 -5
- package/dist/components/core/Loading/loadingParts.js +1 -1
- package/dist/components/core/Loading/loadingStyles.js +1 -1
- package/dist/components/core/Meter/Meter.js +21 -3
- package/dist/components/core/Meter/meterAPI.d.ts +4 -0
- package/dist/components/core/Meter/meterAPI.js +13 -2
- package/dist/components/core/Meter/meterParts.js +6 -2
- package/dist/components/core/Meter/meterStyles.d.ts +1 -1
- package/dist/components/core/Meter/meterStyles.js +1 -1
- package/dist/components/core/Meter/meterTypes.d.ts +1 -0
- package/dist/components/core/Meter/useMeterRootState.js +3 -2
- package/dist/components/core/Meter/useMeterTrackState.d.ts +1 -1
- package/dist/components/core/Meter/useMeterTrackState.js +15 -10
- package/dist/components/core/NumberInput/NumberInput.js +13 -2
- package/dist/components/core/NumberInput/numberInputParts.d.ts +4 -1
- package/dist/components/core/NumberInput/numberInputParts.js +30 -4
- package/dist/components/core/NumberInput/numberInputStyles.js +2 -2
- package/dist/components/core/NumberInput/useNumberInputRootState.js +47 -33
- package/dist/components/core/Pagination/paginationAPI.d.ts +4 -1
- package/dist/components/core/Pagination/paginationAPI.js +60 -17
- package/dist/components/core/Pagination/paginationAnimations.js +6 -0
- package/dist/components/core/Pagination/paginationParts.d.ts +1 -1
- package/dist/components/core/Pagination/paginationParts.js +82 -22
- package/dist/components/core/Pagination/paginationStyles.d.ts +7 -6
- package/dist/components/core/Pagination/paginationStyles.js +7 -6
- package/dist/components/core/Pagination/paginationTypes.d.ts +1 -0
- package/dist/components/core/Pagination/usePaginationRootState.js +12 -6
- package/dist/components/core/PinInput/pinInputAnimations.d.ts +6 -1
- package/dist/components/core/PinInput/pinInputAnimations.js +13 -4
- package/dist/components/core/PinInput/pinInputParts.js +84 -20
- package/dist/components/core/PinInput/pinInputStyles.d.ts +1 -1
- package/dist/components/core/PinInput/pinInputStyles.js +2 -2
- package/dist/components/core/PinInput/pinInputTypes.d.ts +4 -0
- package/dist/components/core/PinInput/usePinInputRootState.js +71 -33
- package/dist/components/core/Popover/popoverAnimations.d.ts +1 -0
- package/dist/components/core/Popover/popoverAnimations.js +33 -7
- package/dist/components/core/Popover/popoverParts.js +62 -14
- package/dist/components/core/Popover/popoverStyles.d.ts +1 -1
- package/dist/components/core/Popover/popoverStyles.js +1 -1
- package/dist/components/core/Popover/popoverTypes.d.ts +1 -0
- package/dist/components/core/Popover/usePopoverRootState.js +46 -14
- package/dist/components/core/ProgressBar/ProgressBar.js +21 -3
- package/dist/components/core/ProgressBar/progressBarA11y.d.ts +1 -1
- package/dist/components/core/ProgressBar/progressBarA11y.js +4 -2
- package/dist/components/core/ProgressBar/progressBarAPI.d.ts +4 -0
- package/dist/components/core/ProgressBar/progressBarAPI.js +13 -2
- package/dist/components/core/ProgressBar/progressBarParts.js +6 -2
- package/dist/components/core/ProgressBar/progressBarStyles.d.ts +1 -1
- package/dist/components/core/ProgressBar/progressBarStyles.js +1 -1
- package/dist/components/core/ProgressBar/progressBarTypes.d.ts +3 -0
- package/dist/components/core/ProgressBar/useProgressBarRootState.js +6 -3
- package/dist/components/core/ProgressBar/useProgressBarTrackState.d.ts +1 -1
- package/dist/components/core/ProgressBar/useProgressBarTrackState.js +18 -11
- package/dist/components/core/Radio/Radio.js +6 -1
- package/dist/components/core/Radio/radioParts.js +6 -3
- package/dist/components/core/Radio/radioStyles.d.ts +3 -3
- package/dist/components/core/Radio/radioStyles.js +3 -3
- package/dist/components/core/Radio/radioTypes.d.ts +1 -0
- package/dist/components/core/Radio/useRadioRootState.d.ts +5 -2
- package/dist/components/core/Radio/useRadioRootState.js +80 -36
- package/dist/components/core/Resizable/Resizable.js +185 -20
- package/dist/components/core/Resizable/index.d.ts +1 -0
- package/dist/components/core/Resizable/resizableAnimations.js +1 -1
- package/dist/components/core/Resizable/resizableParts.d.ts +1 -0
- package/dist/components/core/Resizable/resizableParts.js +96 -42
- package/dist/components/core/Resizable/resizableStyles.d.ts +3 -2
- package/dist/components/core/Resizable/resizableStyles.js +3 -2
- package/dist/components/core/Resizable/resizableTypes.d.ts +10 -2
- package/dist/components/core/Ripple/Ripple.js +3 -2
- package/dist/components/core/Ripple/rippleAPI.d.ts +1 -0
- package/dist/components/core/Ripple/rippleAPI.js +7 -0
- package/dist/components/core/Ripple/rippleStyles.d.ts +1 -1
- package/dist/components/core/Ripple/rippleStyles.js +1 -1
- package/dist/components/core/ScrollArea/ScrollArea.js +1 -1
- package/dist/components/core/ScrollArea/scrollAreaAPI.d.ts +11 -2
- package/dist/components/core/ScrollArea/scrollAreaAPI.js +65 -9
- package/dist/components/core/ScrollArea/scrollAreaParts.js +31 -10
- package/dist/components/core/ScrollArea/scrollAreaStyles.d.ts +1 -1
- package/dist/components/core/ScrollArea/scrollAreaStyles.js +1 -1
- package/dist/components/core/ScrollArea/scrollAreaTypes.d.ts +4 -0
- package/dist/components/core/ScrollArea/useScrollAreaRootState.d.ts +1 -1
- package/dist/components/core/ScrollArea/useScrollAreaRootState.js +49 -10
- package/dist/components/core/SearchInput/SearchInput.js +24 -9
- package/dist/components/core/SearchInput/searchInputAnimations.d.ts +7 -6
- package/dist/components/core/SearchInput/searchInputAnimations.js +23 -18
- package/dist/components/core/SearchInput/searchInputParts.d.ts +2 -2
- package/dist/components/core/SearchInput/searchInputParts.js +22 -10
- package/dist/components/core/SearchInput/searchInputStyles.d.ts +5 -3
- package/dist/components/core/SearchInput/searchInputStyles.js +6 -5
- package/dist/components/core/SearchInput/searchInputTypes.d.ts +1 -0
- package/dist/components/core/SearchInput/useSearchInputRootState.d.ts +3 -3
- package/dist/components/core/SearchInput/useSearchInputRootState.js +52 -34
- package/dist/components/core/Select/Select.js +13 -1
- package/dist/components/core/Select/selectAnimations.d.ts +3 -2
- package/dist/components/core/Select/selectAnimations.js +5 -2
- package/dist/components/core/Select/selectParts.d.ts +3 -1
- package/dist/components/core/Select/selectParts.js +2 -1
- package/dist/components/core/Select/selectStyles.d.ts +3 -3
- package/dist/components/core/Select/selectStyles.js +3 -3
- package/dist/components/core/Select/selectTriggerParts.js +79 -28
- package/dist/components/core/Select/selectTypes.d.ts +1 -0
- package/dist/components/core/Select/useSelectRootState.js +33 -16
- package/dist/components/core/SelectionIndicator/selectionIndicatorAnimations.js +23 -3
- package/dist/components/core/SelectionThumb/SelectionThumb.js +1 -1
- package/dist/components/core/Separator/Separator.d.ts +2 -1
- package/dist/components/core/Separator/Separator.js +3 -1
- package/dist/components/core/Separator/index.d.ts +1 -1
- package/dist/components/core/Separator/separatorStyles.d.ts +2 -2
- package/dist/components/core/Separator/separatorStyles.js +2 -2
- package/dist/components/core/Separator/separatorTypes.d.ts +4 -0
- package/dist/components/core/Sidebar/Sidebar.js +15 -2
- package/dist/components/core/Sidebar/sidebarAnimations.d.ts +2 -2
- package/dist/components/core/Sidebar/sidebarAnimations.js +4 -3
- package/dist/components/core/Sidebar/sidebarStyles.d.ts +2 -1
- package/dist/components/core/Sidebar/sidebarStyles.js +2 -1
- package/dist/components/core/Skeleton/skeletonParts.js +8 -5
- package/dist/components/core/Skeleton/skeletonStyles.d.ts +10 -0
- package/dist/components/core/Skeleton/skeletonStyles.js +20 -0
- package/dist/components/core/Slider/Slider.js +9 -3
- package/dist/components/core/Slider/sliderAPI.d.ts +5 -4
- package/dist/components/core/Slider/sliderAPI.js +86 -42
- package/dist/components/core/Slider/sliderAnimations.d.ts +1 -1
- package/dist/components/core/Slider/sliderAnimations.js +2 -2
- package/dist/components/core/Slider/sliderParts.js +11 -2
- package/dist/components/core/Slider/sliderStyles.d.ts +4 -4
- package/dist/components/core/Slider/sliderStyles.js +18 -6
- package/dist/components/core/Slider/sliderThumbParts.d.ts +2 -0
- package/dist/components/core/Slider/sliderThumbParts.js +16 -4
- package/dist/components/core/Slider/sliderTrackParts.js +10 -4
- package/dist/components/core/Slider/sliderTypes.d.ts +9 -1
- package/dist/components/core/Slider/useSliderRootState.d.ts +3 -2
- package/dist/components/core/Slider/useSliderRootState.js +104 -49
- package/dist/components/core/Slider/useSliderTrackState.js +198 -39
- package/dist/components/core/Stack/Stack.js +3 -0
- package/dist/components/core/Stack/stackStyles.d.ts +2 -1
- package/dist/components/core/Stack/stackStyles.js +2 -1
- package/dist/components/core/Stepper/index.d.ts +10 -1
- package/dist/components/core/Stepper/stepperAPI.d.ts +2 -2
- package/dist/components/core/Stepper/stepperAPI.js +4 -3
- package/dist/components/core/Stepper/stepperAnimations.d.ts +1 -0
- package/dist/components/core/Stepper/stepperAnimations.js +28 -2
- package/dist/components/core/Stepper/stepperParts.d.ts +11 -2
- package/dist/components/core/Stepper/stepperParts.js +38 -9
- package/dist/components/core/Stepper/stepperStyles.js +3 -1
- package/dist/components/core/Stepper/stepperTypes.d.ts +3 -2
- package/dist/components/core/Stepper/useStepperRootState.js +10 -3
- package/dist/components/core/Surface/Surface.js +3 -1
- package/dist/components/core/Switch/Switch.js +12 -1
- package/dist/components/core/Switch/switchAPI.d.ts +2 -0
- package/dist/components/core/Switch/switchAPI.js +18 -1
- package/dist/components/core/Switch/switchAnimations.js +29 -9
- package/dist/components/core/Switch/switchControlParts.js +93 -30
- package/dist/components/core/Switch/switchGeometry.js +2 -2
- package/dist/components/core/Switch/switchSimpleParts.d.ts +2 -1
- package/dist/components/core/Switch/switchSimpleParts.js +3 -1
- package/dist/components/core/Switch/switchStyles.d.ts +3 -3
- package/dist/components/core/Switch/switchStyles.js +3 -3
- package/dist/components/core/Switch/switchTypes.d.ts +8 -0
- package/dist/components/core/Switch/useSwitchRootState.js +54 -17
- package/dist/components/core/Table/Table.d.ts +1 -0
- package/dist/components/core/Table/Table.js +2 -0
- package/dist/components/core/Table/index.d.ts +1 -0
- package/dist/components/core/Table/tableAPI.d.ts +6 -1
- package/dist/components/core/Table/tableAPI.js +73 -5
- package/dist/components/core/Table/tableContext.js +6 -1
- package/dist/components/core/Table/tableParts.js +77 -34
- package/dist/components/core/Table/tableStyles.d.ts +13 -2
- package/dist/components/core/Table/tableStyles.js +26 -3
- package/dist/components/core/Table/tableTypes.d.ts +4 -0
- package/dist/components/core/Table/tableVirtualRows.js +140 -27
- package/dist/components/core/Table/useTableContentState.d.ts +2 -1
- package/dist/components/core/Table/useTableContentState.js +32 -6
- package/dist/components/core/Tabs/tabsA11y.d.ts +4 -3
- package/dist/components/core/Tabs/tabsA11y.js +5 -4
- package/dist/components/core/Tabs/tabsContext.d.ts +5 -0
- package/dist/components/core/Tabs/tabsContext.js +12 -0
- package/dist/components/core/Tabs/tabsPanelPart.js +11 -1
- package/dist/components/core/Tabs/tabsParts.js +70 -32
- package/dist/components/core/Tabs/tabsStyles.d.ts +5 -2
- package/dist/components/core/Tabs/tabsStyles.js +13 -4
- package/dist/components/core/Tabs/tabsTabPart.js +55 -50
- package/dist/components/core/Tabs/tabsTypes.d.ts +2 -2
- package/dist/components/core/Tabs/useSlidingTabIndicator.d.ts +1 -1
- package/dist/components/core/Tabs/useSlidingTabIndicator.js +25 -10
- package/dist/components/core/Tabs/useTabsRootState.js +13 -5
- package/dist/components/core/TagsInput/TagsInput.js +13 -2
- package/dist/components/core/TagsInput/index.d.ts +2 -0
- package/dist/components/core/TagsInput/tagsInputParts.d.ts +6 -2
- package/dist/components/core/TagsInput/tagsInputParts.js +81 -14
- package/dist/components/core/TagsInput/tagsInputStyles.js +2 -2
- package/dist/components/core/TagsInput/tagsInputTypes.d.ts +3 -0
- package/dist/components/core/TagsInput/useTagsInputRootState.js +78 -33
- package/dist/components/core/Text/Text.d.ts +2 -1
- package/dist/components/core/Text/Text.js +3 -1
- package/dist/components/core/Text/index.d.ts +1 -1
- package/dist/components/core/Text/textTypes.d.ts +4 -0
- package/dist/components/core/TextArea/textAreaAnimations.js +5 -3
- package/dist/components/core/TextArea/textAreaParts.js +94 -12
- package/dist/components/core/TextArea/textAreaStyles.d.ts +3 -3
- package/dist/components/core/TextArea/textAreaStyles.js +2 -2
- package/dist/components/core/TextArea/textAreaTypes.d.ts +1 -0
- package/dist/components/core/TextArea/useTextAreaRootState.js +2 -1
- package/dist/components/core/TimeField/TimeField.js +6 -1
- package/dist/components/core/TimeField/timeFieldAnimations.d.ts +3 -2
- package/dist/components/core/TimeField/timeFieldAnimations.js +13 -4
- package/dist/components/core/TimeField/timeFieldParts.js +50 -30
- package/dist/components/core/TimeField/timeFieldStyles.d.ts +1 -1
- package/dist/components/core/TimeField/timeFieldStyles.js +1 -1
- package/dist/components/core/TimeField/timeFieldTypes.d.ts +2 -0
- package/dist/components/core/TimeField/useTimeFieldControlState.d.ts +4 -1
- package/dist/components/core/TimeField/useTimeFieldControlState.js +141 -39
- package/dist/components/core/TimeField/useTimeFieldRootState.js +3 -1
- package/dist/components/core/Toast/toastA11y.js +17 -7
- package/dist/components/core/Toast/toastAPI.d.ts +17 -1
- package/dist/components/core/Toast/toastAPI.js +82 -0
- package/dist/components/core/Toast/toastAnimations.d.ts +1 -1
- package/dist/components/core/Toast/toastAnimations.js +106 -98
- package/dist/components/core/Toast/toastProvider.js +25 -3
- package/dist/components/core/Toast/toastStyles.d.ts +5 -3
- package/dist/components/core/Toast/toastStyles.js +5 -3
- package/dist/components/core/Toast/toastTypes.d.ts +9 -0
- package/dist/components/core/Toast/useToastProviderState.js +61 -6
- package/dist/components/core/ToggleButton/ToggleButton.js +23 -7
- package/dist/components/core/ToggleButton/toggleButtonAnimations.d.ts +4 -2
- package/dist/components/core/ToggleButton/toggleButtonAnimations.js +64 -41
- package/dist/components/core/ToggleButton/toggleButtonStyles.d.ts +2 -1
- package/dist/components/core/ToggleButton/toggleButtonStyles.js +21 -2
- package/dist/components/core/ToggleButton/toggleButtonTypes.d.ts +3 -0
- package/dist/components/core/ToggleButton/useToggleButtonRootState.d.ts +1 -1
- package/dist/components/core/ToggleButton/useToggleButtonRootState.js +4 -7
- package/dist/components/core/Tooltip/tooltipAnimations.js +17 -1
- package/dist/components/core/Tooltip/tooltipParts.js +83 -26
- package/dist/components/core/Tooltip/tooltipPosition.js +57 -32
- package/dist/components/core/Tooltip/tooltipStyles.d.ts +2 -2
- package/dist/components/core/Tooltip/tooltipStyles.js +2 -2
- package/dist/components/core/Tooltip/tooltipTypes.d.ts +5 -0
- package/dist/components/core/Tooltip/useTooltipRootState.js +59 -10
- package/dist/components/core/utils/bodyScrollLock.js +12 -3
- package/dist/components/core/utils/clampNumber.d.ts +1 -1
- package/dist/components/core/utils/clampNumber.js +4 -1
- package/dist/components/core/utils/containedEscape.js +12 -0
- package/dist/components/core/utils/fieldFormDom.d.ts +24 -0
- package/dist/components/core/utils/fieldFormDom.js +37 -2
- package/dist/components/core/utils/focusElement.js +2 -2
- package/dist/components/core/utils/hoverInteractiveLift.d.ts +12 -0
- package/dist/components/core/utils/hoverInteractiveLift.js +43 -2
- package/dist/components/core/utils/inputAffixStyles.js +1 -1
- package/dist/components/core/utils/mergeAsChildProps.d.ts +7 -0
- package/dist/components/core/utils/mergeAsChildProps.js +23 -2
- package/dist/components/core/utils/optionListItemStyles.d.ts +2 -2
- package/dist/components/core/utils/optionListItemStyles.js +2 -2
- package/dist/components/core/utils/overlayLayer.d.ts +39 -0
- package/dist/components/core/utils/overlayLayer.js +164 -2
- package/dist/components/core/utils/overlayTriggerSqueeze.js +5 -4
- package/dist/components/core/utils/portalContainer.d.ts +27 -5
- package/dist/components/core/utils/portalContainer.js +38 -4
- package/dist/components/core/utils/pressRipple.js +2 -1
- package/dist/components/core/utils/readingDirection.js +8 -0
- package/dist/components/core/utils/runOpenAfterSqueeze.d.ts +7 -0
- package/dist/components/core/utils/runOpenAfterSqueeze.js +10 -3
- package/dist/components/core/utils/semanticStatusSurface.js +4 -4
- package/dist/components/core/utils/sizeLayout/panel.js +4 -4
- package/dist/components/core/utils/slotMotion/recipes/loadKitRecipe.js +2 -0
- package/dist/components/core/utils/slotMotion/recipes/switchThumb.js +3 -0
- package/dist/components/core/utils/slotMotion/resolveMotionValue.js +1 -1
- package/dist/components/core/utils/slotMotion/slotMount.js +1 -1
- package/dist/components/core/utils/slotMotion/useBarFillMotion.js +8 -3
- package/dist/components/core/utils/useCollapsibleHeight.js +2 -1
- package/dist/components/core/utils/useConvergeRipples.js +4 -1
- package/dist/components/core/utils/useModalMotion.d.ts +2 -0
- package/dist/components/core/utils/useModalMotion.js +19 -3
- package/dist/components/core/utils/usePressableElementTextMotion.js +4 -5
- package/dist/components/core/utils/useShadowMotion.js +28 -7
- package/dist/index.d.ts +3 -3
- package/dist/skins/resolveVariantVisual.d.ts +1 -1
- package/dist/skins/resolveVariantVisual.js +2 -2
- package/dist/skins/skinContext.js +6 -5
- package/dist/skins/skinLiveSlots.generated.d.ts +1 -1
- package/dist/skins/skinLiveSlots.generated.js +1 -1
- package/dist/skins/skinShell.js +9 -4
- package/dist/skins/skinSlots.generated.d.ts +1 -1
- package/dist/skins/skinSlots.generated.js +2 -0
- package/dist/studio/colorPresets.d.ts +1 -1
- package/dist/studio/colorPresets.js +8 -1
- package/dist/studio.d.ts +1 -1
- package/dist/studio.js +13 -1
- package/dist/theme/namedPalettes.d.ts +12 -0
- package/dist/theme/namedPalettes.js +697 -1
- package/dist/theme/themeDefaults.js +6 -3
- package/dist/tokens/config.d.ts +8 -2
- package/dist/tokens/config.js +15 -2
- package/dist/tokens/index.d.ts +1 -1
- package/dist/tokens/index.js +9 -0
- package/dist/ui.css +499 -55
- package/dist/utils/cn.js +89 -2
- package/package.json +1 -1
- package/dist/components/composite/utils/useOptionGroupRequiredAnchor.js +0 -17
- package/dist/components/composite/utils/useOptionGroupSingleValue.js +0 -24
|
@@ -107,6 +107,7 @@ function animateCollapsibleHeight(shell, inner, open, options) {
|
|
|
107
107
|
overwrite: "auto"
|
|
108
108
|
};
|
|
109
109
|
if (open) {
|
|
110
|
+
const fromHeight = Math.max(0, shell.getBoundingClientRect().height);
|
|
110
111
|
const toHeight = measureCollapsibleContentHeight(inner);
|
|
111
112
|
shell.style.overflow = "hidden";
|
|
112
113
|
const finishOpen = () => {
|
|
@@ -115,7 +116,7 @@ function animateCollapsibleHeight(shell, inner, open, options) {
|
|
|
115
116
|
};
|
|
116
117
|
const tween = gsap.fromTo(
|
|
117
118
|
shell,
|
|
118
|
-
{ height:
|
|
119
|
+
{ height: fromHeight },
|
|
119
120
|
{
|
|
120
121
|
height: toHeight,
|
|
121
122
|
...vars,
|
|
@@ -7,6 +7,7 @@ function useConvergeRipples() {
|
|
|
7
7
|
const dismiss = useCallback((id) => {
|
|
8
8
|
setRipples((prev) => prev.filter((rp) => rp.id !== id));
|
|
9
9
|
}, []);
|
|
10
|
+
const MAX_CONCURRENT_RIPPLES = 8;
|
|
10
11
|
const pushAtClientCoords = useCallback(
|
|
11
12
|
(target, clientX, clientY) => {
|
|
12
13
|
const id = ++idRef.current;
|
|
@@ -16,7 +17,9 @@ function useConvergeRipples() {
|
|
|
16
17
|
clientY,
|
|
17
18
|
id
|
|
18
19
|
);
|
|
19
|
-
setRipples(
|
|
20
|
+
setRipples(
|
|
21
|
+
(prev) => prev.length >= MAX_CONCURRENT_RIPPLES ? [...prev.slice(prev.length - MAX_CONCURRENT_RIPPLES + 1), ripple] : [...prev, ripple]
|
|
22
|
+
);
|
|
20
23
|
},
|
|
21
24
|
[]
|
|
22
25
|
);
|
|
@@ -57,6 +57,8 @@ export type UseModalMotionResult = {
|
|
|
57
57
|
mounted: boolean;
|
|
58
58
|
/** `open || mounted` — keep portal in DOM for exit animation. */
|
|
59
59
|
showPortal: boolean;
|
|
60
|
+
/** Stable LIFO layer id for `<OverlayLayerProvider>`. */
|
|
61
|
+
layerId: symbol;
|
|
60
62
|
dialogRef: RefObject<HTMLDialogElement | null>;
|
|
61
63
|
overlayRef: RefObject<HTMLDivElement | null>;
|
|
62
64
|
panelRef: RefObject<HTMLDivElement | null>;
|
|
@@ -3,7 +3,7 @@ import { lockBodyScroll, unlockBodyScroll } from "./bodyScrollLock.js";
|
|
|
3
3
|
import { shouldHandleContainedEscape } from "./containedEscape.js";
|
|
4
4
|
import { killMotion } from "./gsapMotion.js";
|
|
5
5
|
import { isFocusVisibleElement, focusOnOpen, focusPanelOnOpen } from "./focusElement.js";
|
|
6
|
-
import { overlayShouldClose } from "./overlayLayer.js";
|
|
6
|
+
import { useRegisterOverlayLayer, overlayShouldClose, hasOverlayLayerAbove, isEscapeKeydownInFlight, dismissTopmostOverlayAbove } from "./overlayLayer.js";
|
|
7
7
|
import { isReducedModalMotion, animateModalClose, captureModalFocusReturn, flushDialogOpenLayout, applyReducedModalMotion, animateModalOpen, completeModalDialogClose } from "./modalSurfaceMotion.js";
|
|
8
8
|
import { motionModalFor } from "./motionConfig.js";
|
|
9
9
|
import { prefersReducedMotion } from "./reducedMotion.js";
|
|
@@ -45,6 +45,11 @@ function useModalMotion({
|
|
|
45
45
|
preparePanelRef.current = preparePanel;
|
|
46
46
|
slotMotionRef.current = slotMotion;
|
|
47
47
|
const showPortal = open || mounted;
|
|
48
|
+
const layerId = useRegisterOverlayLayer({
|
|
49
|
+
enabled: open,
|
|
50
|
+
kind: "modal",
|
|
51
|
+
containsNode: (node) => Boolean(dialogRef.current?.contains(node))
|
|
52
|
+
});
|
|
48
53
|
useLayoutEffect(() => {
|
|
49
54
|
if (open) {
|
|
50
55
|
skipCloseAnimRef.current = false;
|
|
@@ -61,6 +66,8 @@ function useModalMotion({
|
|
|
61
66
|
useEffect(() => {
|
|
62
67
|
if (!open || !contained || !enableContainedEscape || !onOpenChange) return;
|
|
63
68
|
const onKeyDown = (e) => {
|
|
69
|
+
if (e.isComposing || e.keyCode === 229) return;
|
|
70
|
+
if (hasOverlayLayerAbove(layerId)) return;
|
|
64
71
|
if (!shouldHandleContainedEscape(e, dialogRef.current)) return;
|
|
65
72
|
e.preventDefault();
|
|
66
73
|
if (!overlayShouldClose(e, onEscapeKeyDown, closeOnEscape)) return;
|
|
@@ -68,7 +75,7 @@ function useModalMotion({
|
|
|
68
75
|
};
|
|
69
76
|
document.addEventListener("keydown", onKeyDown);
|
|
70
77
|
return () => document.removeEventListener("keydown", onKeyDown);
|
|
71
|
-
}, [open, contained, enableContainedEscape, closeOnEscape, onEscapeKeyDown, onOpenChange]);
|
|
78
|
+
}, [open, contained, enableContainedEscape, closeOnEscape, onEscapeKeyDown, onOpenChange, layerId]);
|
|
72
79
|
useLayoutEffect(() => {
|
|
73
80
|
if (open || !mounted) return;
|
|
74
81
|
const overlay = overlayRef.current;
|
|
@@ -171,6 +178,7 @@ function useModalMotion({
|
|
|
171
178
|
}, [config, open, mounted, contained, shouldFocusOnOpen, initialFocus, panelMotionKey]);
|
|
172
179
|
const handleBackdropPointerDown = useCallback(
|
|
173
180
|
(e) => {
|
|
181
|
+
if ("button" in e && e.button !== 0) return;
|
|
174
182
|
if (e.target !== e.currentTarget) return;
|
|
175
183
|
if (!overlayShouldClose(e, onInteractOutside, closeOnInteractOutside)) return;
|
|
176
184
|
onOpenChange?.(false);
|
|
@@ -179,6 +187,13 @@ function useModalMotion({
|
|
|
179
187
|
);
|
|
180
188
|
const handleDialogCancel = useCallback(
|
|
181
189
|
(event) => {
|
|
190
|
+
if (hasOverlayLayerAbove(layerId)) {
|
|
191
|
+
event.preventDefault();
|
|
192
|
+
if (!isEscapeKeydownInFlight()) {
|
|
193
|
+
dismissTopmostOverlayAbove(layerId, event.target);
|
|
194
|
+
}
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
182
197
|
let userPrevented = false;
|
|
183
198
|
const userEvent = {
|
|
184
199
|
preventDefault() {
|
|
@@ -193,11 +208,12 @@ function useModalMotion({
|
|
|
193
208
|
if (!overlayShouldClose(userEvent, onEscapeKeyDown, closeOnEscape)) return;
|
|
194
209
|
onOpenChange?.(false);
|
|
195
210
|
},
|
|
196
|
-
[closeOnEscape, onEscapeKeyDown, onOpenChange]
|
|
211
|
+
[closeOnEscape, layerId, onEscapeKeyDown, onOpenChange]
|
|
197
212
|
);
|
|
198
213
|
return {
|
|
199
214
|
mounted,
|
|
200
215
|
showPortal,
|
|
216
|
+
layerId,
|
|
201
217
|
dialogRef,
|
|
202
218
|
overlayRef,
|
|
203
219
|
panelRef,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useRef, useCallback, useEffect } from "react";
|
|
3
|
-
import { killMotion } from "./gsapMotion.js";
|
|
3
|
+
import { killMotion, clearMotionTransform } from "./gsapMotion.js";
|
|
4
4
|
import { animateInteractivePressSqueeze, shouldSkipInteractiveHoverLift, animateInteractiveHoverLift, isInteractivePressKey } from "./hoverInteractiveLift.js";
|
|
5
5
|
import { usePrefersReducedMotion } from "./reducedMotion.js";
|
|
6
6
|
import { useMotionConfig } from "./motionConfigContext.js";
|
|
@@ -31,11 +31,10 @@ function usePressableElementTextMotion({
|
|
|
31
31
|
}, []);
|
|
32
32
|
useEffect(() => {
|
|
33
33
|
const el = textMotionRef.current;
|
|
34
|
-
if (!el || !isDisabled) return;
|
|
34
|
+
if (!el || !isDisabled && enabled) return;
|
|
35
35
|
hoverInsideRef.current = false;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}, [isDisabled, textMotionRef]);
|
|
36
|
+
clearMotionTransform(el);
|
|
37
|
+
}, [enabled, isDisabled, textMotionRef]);
|
|
39
38
|
const runPressSqueeze = useCallback(() => {
|
|
40
39
|
if (reduceMotion) return;
|
|
41
40
|
const el = textMotionRef.current;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useMemo, useLayoutEffect, useCallback } from "react";
|
|
3
|
-
import { shadowNone, shadowCssVar,
|
|
3
|
+
import { shadowNone, shadowCssVar, resetInteractiveLiftScale, initElementShadow, animateInteractiveHoverLift, shouldSkipInteractiveHoverLift, useInteractiveHoverLiftContainerHandlers, shadowBase } from "./hoverInteractiveLift.js";
|
|
4
4
|
import { useMotionConfig } from "./motionConfigContext.js";
|
|
5
|
+
import { removeShadowFadeHost } from "./shadowFade.js";
|
|
5
6
|
import { useContainerPointerHoverHandlers } from "./useContainerPointerHoverHandlers.js";
|
|
6
7
|
const SHADOW_LIFT_MOTION_CLASS = "animate-shadow origin-center";
|
|
7
8
|
function shadowMotionFor(size = "base") {
|
|
@@ -20,8 +21,14 @@ function shadowMotionFor(size = "base") {
|
|
|
20
21
|
}
|
|
21
22
|
function usePersistentElShadow(ref, enabled, resolveShadow = shadowBase, syncKey) {
|
|
22
23
|
useLayoutEffect(() => {
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
const el = ref.current;
|
|
25
|
+
if (!el) return;
|
|
26
|
+
if (!enabled) {
|
|
27
|
+
el.style.removeProperty("--el-shadow");
|
|
28
|
+
removeShadowFadeHost(el);
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
initElementShadow(el, resolveShadow());
|
|
25
32
|
}, [enabled, ref, resolveShadow, syncKey]);
|
|
26
33
|
}
|
|
27
34
|
function useSecondLevelShadow(targetRef, enabled, options) {
|
|
@@ -32,8 +39,15 @@ function useSecondLevelShadow(targetRef, enabled, options) {
|
|
|
32
39
|
const liftScale = options?.liftScale;
|
|
33
40
|
const config = useMotionConfig();
|
|
34
41
|
useLayoutEffect(() => {
|
|
35
|
-
|
|
36
|
-
|
|
42
|
+
const el = targetRef.current;
|
|
43
|
+
if (!el) return;
|
|
44
|
+
if (!enabled) {
|
|
45
|
+
resetInteractiveLiftScale(el);
|
|
46
|
+
el.style.removeProperty("--el-shadow");
|
|
47
|
+
removeShadowFadeHost(el);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
initElementShadow(el, idleShadow);
|
|
37
51
|
}, [enabled, targetRef, idleShadow, options?.idleSyncKey]);
|
|
38
52
|
useLayoutEffect(() => {
|
|
39
53
|
if (!enabled || interactive) return;
|
|
@@ -79,8 +93,15 @@ function useSecondLevelShadowContainer(liftedRef, enabled, options) {
|
|
|
79
93
|
const shadow = useMemo(() => shadowMotionFor(shadowSize), [shadowSize]);
|
|
80
94
|
const idleShadow = options?.resolveIdle?.() ?? shadow.idle ?? shadowNone();
|
|
81
95
|
useLayoutEffect(() => {
|
|
82
|
-
|
|
83
|
-
|
|
96
|
+
const el = liftedRef.current;
|
|
97
|
+
if (!el) return;
|
|
98
|
+
if (!enabled) {
|
|
99
|
+
resetInteractiveLiftScale(el);
|
|
100
|
+
el.style.removeProperty("--el-shadow");
|
|
101
|
+
removeShadowFadeHost(el);
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
initElementShadow(el, idleShadow);
|
|
84
105
|
}, [enabled, liftedRef, idleShadow, options?.idleSyncKey]);
|
|
85
106
|
useLayoutEffect(() => {
|
|
86
107
|
if (!enabled || interactive) return;
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export { CheckboxGroup, type CheckboxGroupProps, type CheckboxGroupSelection, ty
|
|
|
15
15
|
export { RadioGroup, type RadioGroupProps, type RadioGroupOrientation, type RadioGroupSize, type RadioGroupClassNames, type RadioGroupHintProps, type RadioGroupErrorProps, type RadioGroupActionsProps, type RadioGroupItem, type RadioGroupLegendProps, type RadioGroupListProps, type RadioGroupContextValue, type RadioGroupMotion, type RadioGroupPartMotion, } from './components/composite/RadioGroup/index.js';
|
|
16
16
|
export { ButtonGroup, type ButtonGroupProps, type ButtonGroupTextProps, type ButtonGroupOrientation, type ButtonGroupSegment, type ButtonGroupClassNames, type ButtonGroupMotion, type ButtonGroupPartMotion, } from './components/composite/ButtonGroup/index.js';
|
|
17
17
|
export { ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonGroupType, type ToggleButtonGroupOrientation, type ToggleButtonGroupClassNames, type ToggleButtonGroupContextValue, type ToggleButtonGroupMotion, type ToggleButtonGroupPartMotion, type ToggleButtonGroupItem, } from './components/composite/ToggleButtonGroup/index.js';
|
|
18
|
-
export { AlertDialog, useAlertDialog, type AlertDialogProps, type AlertDialogPanelProps, type AlertDialogTriggerProps, type AlertDialogSize, type AlertDialogClassNames, type AlertDialogHeaderProps, type AlertDialogIndicatorProps, type AlertDialogHeadingBlockProps, type AlertDialogTitleProps, type AlertDialogDescriptionProps, type AlertDialogBodyProps, type AlertDialogFooterProps, type AlertDialogCloseProps, type AlertDialogContentProps, type AlertDialogContextValue, type AlertDialogMotion, type AlertDialogLifecycleMotion, type AlertDialogPartMotion, } from './components/composite/AlertDialog/index.js';
|
|
18
|
+
export { AlertDialog, useAlertDialog, type AlertDialogProps, type AlertDialogOverlayProps, type AlertDialogPanelProps, type AlertDialogTriggerProps, type AlertDialogSize, type AlertDialogClassNames, type AlertDialogHeaderProps, type AlertDialogIndicatorProps, type AlertDialogHeadingBlockProps, type AlertDialogTitleProps, type AlertDialogDescriptionProps, type AlertDialogBodyProps, type AlertDialogFooterProps, type AlertDialogCloseProps, type AlertDialogContentProps, type AlertDialogContextValue, type AlertDialogMotion, type AlertDialogLifecycleMotion, type AlertDialogPartMotion, } from './components/composite/AlertDialog/index.js';
|
|
19
19
|
export { Dialog, type DialogProps, type DialogPanelProps, type DialogOverlayProps, type DialogTriggerProps, type DialogSize, type DialogVariant, type DialogClassNames, type DialogMotion, type DialogLifecycleMotion, type DialogPartMotion, type DialogHeaderProps, type DialogHeadingBlockProps, type DialogTitleProps, type DialogDescriptionProps, type DialogBodyProps, type DialogFooterProps, type DialogCloseProps, type DialogContentProps, } from './components/core/Dialog/index.js';
|
|
20
20
|
export { Toast, useToast, toast, type ToastStatus, type ToastPlacement, type ToastProviderProps, type ToastContextValue, type ToastProps, type ToastIndicatorProps, type ToastMessageProps, type ToastContentProps, type ToastTitleProps, type ToastDescriptionProps, type ToastActionProps, type ToastCloseProps, type AddToastOpts, type PromiseToastOpts, type ToastEntry, type ToastVariant, type ToastSize, type ToastClassNames, type ToastMotion, type ToastLifecycleMotion, type ToastPartMotion, type ToastImperative, } from './components/core/Toast/index.js';
|
|
21
21
|
export { Drawer, type DrawerProps, type DrawerPanelProps, type DrawerTriggerProps, type DrawerSize, type DrawerPlacement, type DrawerExtent, type DrawerVariant, type DrawerClassNames, type DrawerOverlayProps, type DrawerHandleProps, type DrawerHeaderProps, type DrawerHeadingBlockProps, type DrawerTitleProps, type DrawerDescriptionProps, type DrawerBodyProps, type DrawerFooterProps, type DrawerCloseProps, type DrawerContentProps, type DrawerMotion, type DrawerLifecycleMotion, type DrawerPartMotion, } from './components/core/Drawer/index.js';
|
|
@@ -40,7 +40,7 @@ export { Slider, type SliderTrackProps, type SliderSingleProps, type SliderRange
|
|
|
40
40
|
export { Meter, type MeterTrackProps, type MeterSize, type MeterOrientation, type MeterProps, type MeterHeaderProps, type MeterValueProps, type MeterHintProps, type MeterErrorProps, type MeterLabelProps, type MeterClassNames, type MeterDisplayState, type MeterMotion, type MeterPartMotion, } from './components/core/Meter/index.js';
|
|
41
41
|
export { ProgressBar, type ProgressBarTrackProps, type ProgressBarSize, type ProgressBarOrientation, type ProgressBarProps, type ProgressBarClassNames, type ProgressBarHeaderProps, type ProgressBarValueProps, type ProgressBarHintProps, type ProgressBarErrorProps, type ProgressBarLabelProps, type ProgressBarDisplayState, type ProgressBarMotion, type ProgressBarPartMotion, } from './components/core/ProgressBar/index.js';
|
|
42
42
|
export { SearchInput, type SearchInputProps, type SearchInputSize, type SearchInputVariant, type SearchInputClassNames, type SearchInputMotion, type SearchInputPartMotion, } from './components/core/SearchInput/index.js';
|
|
43
|
-
export { Text, type TextProps, type TextVariant, type TextMotion, type TextPartMotion } from './components/core/Text/index.js';
|
|
43
|
+
export { Text, type TextClassNames, type TextProps, type TextVariant, type TextMotion, type TextPartMotion } from './components/core/Text/index.js';
|
|
44
44
|
export { Card, type CardProps, type CardSize, type CardVariant, type CardHeaderProps, type CardBodyProps, type CardTitleProps, type CardDescriptionProps, type CardFooterProps, type CardClassNames, type CardHeadingBlockProps, type CardMotion, type CardPartMotion, } from './components/core/Card/index.js';
|
|
45
45
|
export { Avatar, type AvatarProps, type AvatarClassNames, type AvatarVariant, type AvatarSize, type AvatarImageProps, type AvatarFallbackProps, type AvatarGroupProps, type AvatarMotion, type AvatarPartMotion, } from './components/core/Avatar/index.js';
|
|
46
46
|
export { Tooltip, type TooltipVariant, type TooltipSize, type TooltipStatus, type TooltipSide, type TooltipProps, type TooltipTriggerProps, type TooltipContentProps, type TooltipArrowProps, type TooltipPanelProps, type TooltipIndicatorProps, type TooltipMessageProps, type TooltipTitleProps, type TooltipDescriptionProps, type TooltipClassNames, type TooltipMotion, type TooltipLifecycleMotion, type TooltipPartMotion, } from './components/core/Tooltip/index.js';
|
|
@@ -49,7 +49,7 @@ export { HoverCard, type HoverCardClassNames, type HoverCardContentProps, type H
|
|
|
49
49
|
export { Breadcrumbs, type BreadcrumbsProps, type BreadcrumbsListProps, type BreadcrumbsItemProps, type BreadcrumbsClassNames, type BreadcrumbItem, type BreadcrumbsMotion, type BreadcrumbsPartMotion, } from './components/core/Breadcrumbs/index.js';
|
|
50
50
|
export { Pagination, type PaginationProps, type PaginationClassNames, type PaginationSummaryProps, type PaginationContentProps, type PaginationItemProps, type PaginationNavButtonProps, type PaginationPageProps, type PaginationEllipsisProps, type PaginationPagesProps, type PaginationMotion, type PaginationPartMotion, type PaginationSummaryPartMotion, } from './components/core/Pagination/index.js';
|
|
51
51
|
export { Stepper, type StepperClassNames, type StepperDescriptionProps, type StepperIndicatorProps, type StepperItemProps, type StepperMotion, type StepperOrientation, type StepperPartMotion, type StepperProps, type StepperSize, type StepperStep, type StepperStepState, type StepperTitleProps, type StepperTriggerProps, } from './components/core/Stepper/index.js';
|
|
52
|
-
export { Separator, type SeparatorProps, type SeparatorOrientation, type SeparatorMotion, type SeparatorPartMotion, } from './components/core/Separator/index.js';
|
|
52
|
+
export { Separator, type SeparatorClassNames, type SeparatorProps, type SeparatorOrientation, type SeparatorMotion, type SeparatorPartMotion, } from './components/core/Separator/index.js';
|
|
53
53
|
export { Stack, type StackAlign, type StackClassNames, type StackGap, type StackJustify, type StackMotion, type StackOrientation, type StackPartMotion, type StackProps, } from './components/core/Stack/index.js';
|
|
54
54
|
export { Grid, type GridAlign, type GridClassNames, type GridColumnCount, type GridColumns, type GridGap, type GridMinTrack, type GridMotion, type GridPartMotion, type GridProps, } from './components/core/Grid/index.js';
|
|
55
55
|
export { Container, type ContainerClassNames, type ContainerMotion, type ContainerPadding, type ContainerPartMotion, type ContainerProps, type ContainerMaxWidth, } from './components/core/Container/index.js';
|
|
@@ -33,7 +33,7 @@ export declare function resolveVariantVisual<K extends string>(variant: string,
|
|
|
33
33
|
* Layout roots (`header.root` and the other shells) read the live target list.
|
|
34
34
|
* The kit variant `default` keeps the kit classes; a skin may extend or replace them.
|
|
35
35
|
*/
|
|
36
|
-
export declare function layoutTargetClass(slot: SkinSlot): string | undefined;
|
|
36
|
+
export declare function layoutTargetClass(slot: SkinSlot, variant?: string): string | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* Slot surface classes: a string / `{ replace }` target swaps the kit classes,
|
|
39
39
|
* `{ extend }` lands after them.
|
|
@@ -45,8 +45,8 @@ function resolveVariantVisual(variant, kit, slot, fallback) {
|
|
|
45
45
|
const spec = targetSpec(skin.targets?.[slot]);
|
|
46
46
|
return { key, ...spec };
|
|
47
47
|
}
|
|
48
|
-
function layoutTargetClass(slot) {
|
|
49
|
-
const visual = resolveVariantVisual(
|
|
48
|
+
function layoutTargetClass(slot, variant = "default") {
|
|
49
|
+
const visual = resolveVariantVisual(variant, ["default"], slot);
|
|
50
50
|
return visual.extend ?? visual.className;
|
|
51
51
|
}
|
|
52
52
|
function skinVisualClass(visual, ...kitClasses) {
|
|
@@ -3,7 +3,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
3
3
|
import { useSyncExternalStore, useMemo, useContext, createContext, useLayoutEffect, useRef, useState } from "react";
|
|
4
4
|
import { MotionConfigProvider } from "../components/core/utils/motionConfigContext.js";
|
|
5
5
|
import { useBurneThemeOptional } from "../theme/themeContext.js";
|
|
6
|
-
import { useInstallSkinLookup, SkinCatalogContext, bindSkinLookup } from "./skinLookup.js";
|
|
6
|
+
import { useInstallSkinLookup, SkinCatalogContext, bindSkinLookup, lookupSkin } from "./skinLookup.js";
|
|
7
7
|
import { subscribeSkins, getSkinRevision, getSkin } from "./skinRegistry.js";
|
|
8
8
|
import { skinSurfaceStyle, applySkinVars, releaseSkinVars, resolveSkinTokens, baselineFor, skinThemeMode, skinThemeAnchor, captureKitTokens, sameTokenMap, skinTokenStyle } from "./resolveSkinTokens.js";
|
|
9
9
|
const SkinContext = createContext(null);
|
|
@@ -44,15 +44,16 @@ function SkinProvider({ skin, skins: skinsProp, root = null, children }) {
|
|
|
44
44
|
const [ownBaseline, setOwnBaseline] = useState({});
|
|
45
45
|
useSyncExternalStore(subscribeSkins, getSkinRevision, getSkinRevision);
|
|
46
46
|
const mode = islandMode ?? theme?.resolvedTheme ?? domMode;
|
|
47
|
-
const
|
|
47
|
+
const rawResolved = resolveNamed(skin, skinsProp);
|
|
48
48
|
const catalog = useMemo(() => {
|
|
49
49
|
const map = new Map(parentCatalog?.skins);
|
|
50
50
|
for (const item of skinsProp ?? []) map.set(item.name, item);
|
|
51
|
-
if (
|
|
51
|
+
if (rawResolved) map.set(rawResolved.name, rawResolved);
|
|
52
52
|
return { skins: map, registryFallback: true };
|
|
53
|
-
}, [parentCatalog, skinsProp,
|
|
54
|
-
const motionConfig = resolved?.motion?.config;
|
|
53
|
+
}, [parentCatalog, skinsProp, rawResolved]);
|
|
55
54
|
bindSkinLookup(catalog);
|
|
55
|
+
const resolved = rawResolved ? lookupSkin(rawResolved.name) ?? rawResolved : rawResolved;
|
|
56
|
+
const motionConfig = resolved?.motion?.config;
|
|
56
57
|
const own = useMemo(
|
|
57
58
|
() => resolved ? resolveSkinTokens(resolved, mode) : {},
|
|
58
59
|
[resolved, mode]
|
|
@@ -6,5 +6,5 @@ export type SkinTargetSlot = (typeof SKIN_TARGET_SLOTS)[number];
|
|
|
6
6
|
export declare const SKIN_LAYER_SLOTS: readonly ["alertDialog.panel", "card.root", "dialog.panel", "drawer.panel", "surface.root"];
|
|
7
7
|
export type SkinLayerSlot = (typeof SKIN_LAYER_SLOTS)[number];
|
|
8
8
|
/** Slots that `overlaySkinMotion` can reach: prefix plus a `useMotionPart` slot in that component. */
|
|
9
|
-
export declare const SKIN_MOTION_SLOTS: readonly ["alert.action", "alert.description", "alert.indicator", "alert.root", "alert.title", "alertDialog.body", "alertDialog.close", "alertDialog.content", "alertDialog.description", "alertDialog.footer", "alertDialog.header", "alertDialog.
|
|
9
|
+
export declare const SKIN_MOTION_SLOTS: readonly ["alert.action", "alert.description", "alert.indicator", "alert.root", "alert.title", "alertDialog.body", "alertDialog.close", "alertDialog.content", "alertDialog.description", "alertDialog.footer", "alertDialog.header", "alertDialog.indicator", "alertDialog.overlay", "alertDialog.panel", "alertDialog.title", "alertDialog.trigger", "avatar.fallback", "avatar.groupItem", "avatar.image", "avatar.root", "badge.anchor", "badge.root", "button.error", "button.icon", "button.label", "button.loader", "button.root", "button.success", "button.text", "calendar.cell", "calendar.cellFill", "calendar.cellText", "calendar.footer", "calendar.footerClear", "calendar.footerToday", "calendar.grid", "calendar.header", "calendar.navNext", "calendar.navPrev", "calendar.rangeHalfFill", "calendar.root", "calendar.title", "card.body", "card.description", "card.footer", "card.header", "card.headingBlock", "card.root", "card.title", "closeButton.icon", "closeButton.root", "comboBox.input", "comboBox.popover", "comboBox.shell", "comboBox.trigger", "comboBox.triggerIconWrap", "datePicker.icon", "datePicker.label", "datePicker.popover", "datePicker.trigger", "dialog.body", "dialog.close", "dialog.content", "dialog.description", "dialog.footer", "dialog.header", "dialog.headingBlock", "dialog.overlay", "dialog.panel", "dialog.title", "dialog.trigger", "disclosure.chevron", "disclosure.content", "disclosure.contentShell", "disclosure.icon", "disclosure.panelInner", "disclosure.root", "disclosure.title", "disclosure.titleLift", "drawer.body", "drawer.close", "drawer.content", "drawer.description", "drawer.footer", "drawer.handle", "drawer.header", "drawer.headingBlock", "drawer.overlay", "drawer.panel", "drawer.title", "drawer.trigger", "expandable.chevron", "expandable.description", "expandable.icon", "expandable.panel", "expandable.panelInner", "expandable.panelShell", "expandable.root", "expandable.title", "expandable.triggerLift", "input.control", "input.fileRemove", "input.fileRow", "input.passwordToggle", "input.shell", "kbd.group", "kbd.root", "kbd.text", "numberInput.control", "numberInput.decrement", "numberInput.increment", "numberInput.label", "numberInput.shell", "pinInput.control", "pinInput.label", "pinInput.shell", "popover.arrow", "popover.body", "popover.content", "popover.description", "popover.header", "popover.title", "popover.trigger", "searchInput.clear", "searchInput.expandTrigger", "searchInput.icon", "searchInput.input", "searchInput.root", "select.popover", "select.shell", "select.trigger", "select.triggerIconWrap", "select.value", "selectionIndicator.fill", "selectionIndicator.mark", "selectionIndicator.root", "selectionThumb.icon", "selectionThumb.root", "sidebar.root", "slider.fill", "slider.header", "slider.icon", "slider.rail", "slider.thumb", "slider.track", "slider.value", "surface.root", "switch.fill", "switch.thumb", "switch.track", "table.body", "table.caption", "table.cell", "table.column", "table.columnSortIcon", "table.content", "table.empty", "table.footer", "table.header", "table.headerRow", "table.label", "table.root", "table.row", "table.scrollContainer", "tabs.indicator", "tabs.list", "tabs.panel", "tabs.root", "tabs.tab", "tabs.tabText", "tagsInput.control", "tagsInput.label", "tagsInput.remove", "tagsInput.shell", "tagsInput.tag", "textArea.control", "textArea.resizeHandle", "textArea.shell", "timeField.segments", "timeField.shell", "toast.action", "toast.close", "toast.description", "toast.indicator", "toast.root", "toast.scrim", "toast.stackItem", "toast.title", "toggleButton.content", "toggleButton.fill", "toggleButton.iconEnd", "toggleButton.iconStart", "toggleButton.label", "toggleButton.root", "toggleButton.text", "tooltip.arrow", "tooltip.content", "tooltip.description", "tooltip.indicator", "tooltip.panel", "tooltip.title"];
|
|
10
10
|
export type SkinMotionSlot = (typeof SKIN_MOTION_SLOTS)[number];
|
|
@@ -79,7 +79,6 @@ const SKIN_MOTION_SLOTS = [
|
|
|
79
79
|
"alertDialog.description",
|
|
80
80
|
"alertDialog.footer",
|
|
81
81
|
"alertDialog.header",
|
|
82
|
-
"alertDialog.headingBlock",
|
|
83
82
|
"alertDialog.indicator",
|
|
84
83
|
"alertDialog.overlay",
|
|
85
84
|
"alertDialog.panel",
|
|
@@ -207,6 +206,7 @@ const SKIN_MOTION_SLOTS = [
|
|
|
207
206
|
"selectionIndicator.root",
|
|
208
207
|
"selectionThumb.icon",
|
|
209
208
|
"selectionThumb.root",
|
|
209
|
+
"sidebar.root",
|
|
210
210
|
"slider.fill",
|
|
211
211
|
"slider.header",
|
|
212
212
|
"slider.icon",
|
package/dist/skins/skinShell.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef, createElement, isValidElement, cloneElement } from "react";
|
|
4
|
+
import { mergeAsChildProps } from "../components/core/utils/mergeAsChildProps.js";
|
|
4
5
|
import { cn } from "../utils/cn.js";
|
|
5
6
|
import { resolveSkinLayer } from "./resolveSkinLayer.js";
|
|
6
7
|
import { useSkinRegistryRevision } from "./skinContext.js";
|
|
@@ -94,15 +95,19 @@ const SkinShell = forwardRef(function SkinShell2({
|
|
|
94
95
|
const after = layerNodes(declarative?.after, "after");
|
|
95
96
|
if (fallback && isValidElement(fallback)) {
|
|
96
97
|
const fallbackStyle = fallback.props.style;
|
|
97
|
-
|
|
98
|
+
const mergedFallbackProps = mergeAsChildProps(
|
|
98
99
|
fallback,
|
|
99
100
|
{
|
|
100
|
-
className:
|
|
101
|
+
className: shellClass,
|
|
101
102
|
...domRest,
|
|
102
103
|
style: mergeStyle(declarative?.wrapper?.style, fallbackStyle, restStyle),
|
|
103
|
-
...pointer
|
|
104
|
-
ref: partMotion.setRef
|
|
104
|
+
...pointer
|
|
105
105
|
},
|
|
106
|
+
partMotion.setRef
|
|
107
|
+
);
|
|
108
|
+
return cloneElement(
|
|
109
|
+
fallback,
|
|
110
|
+
mergedFallbackProps,
|
|
106
111
|
before,
|
|
107
112
|
body,
|
|
108
113
|
after
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** Generated by scripts/sync-skin-slots.mjs. Do not edit. */
|
|
2
|
-
export declare const SKIN_SLOTS: readonly ["accordion.body", "accordion.chevron", "accordion.content", "accordion.contentWrap", "accordion.description", "accordion.heading", "accordion.icon", "accordion.item", "accordion.message", "accordion.panel", "accordion.panelShell", "accordion.root", "accordion.title", "accordion.trigger", "accordion.triggerLift", "accordion.triggerRippleOverlay", "alert.action", "alert.content", "alert.description", "alert.indicator", "alert.message", "alert.root", "alert.title", "alertDialog.body", "alertDialog.close", "alertDialog.content", "alertDialog.description", "alertDialog.dialog", "alertDialog.footer", "alertDialog.header", "alertDialog.headingBlock", "alertDialog.indicator", "alertDialog.overlay", "alertDialog.panel", "alertDialog.title", "alertDialog.trigger", "appShell.body", "appShell.main", "appShell.root", "aspectRatio.content", "aspectRatio.root", "avatar.fallback", "avatar.group", "avatar.groupItem", "avatar.image", "avatar.root", "badge.anchor", "badge.dot", "badge.icon", "badge.iconOnly", "badge.root", "badge.splitShell", "badge.text", "breadcrumbs.dropdownItem", "breadcrumbs.ellipsisLiftWrapper", "breadcrumbs.ellipsisPopover", "breadcrumbs.ellipsisText", "breadcrumbs.ellipsisTrigger", "breadcrumbs.item", "breadcrumbs.itemActive", "breadcrumbs.itemLink", "breadcrumbs.itemLinkText", "breadcrumbs.itemLinkWrapper", "breadcrumbs.itemStatic", "breadcrumbs.list", "breadcrumbs.root", "breadcrumbs.separator", "breadcrumbs.separatorWrapper", "button.content", "button.error", "button.icon", "button.label", "button.loader", "button.root", "button.success", "button.text", "buttonGroup.root", "buttonGroup.separator", "buttonGroup.text", "buttonGroup.textLabel", "calendar.cell", "calendar.cellFill", "calendar.cellText", "calendar.cellTodayDot", "calendar.day", "calendar.dayCellWrapper", "calendar.dayEmpty", "calendar.daysGrid", "calendar.footer", "calendar.footerClear", "calendar.footerToday", "calendar.grid", "calendar.header", "calendar.monthCell", "calendar.monthsGrid", "calendar.navIcon", "calendar.navIconWrap", "calendar.navNext", "calendar.navPrev", "calendar.rangeHalfFill", "calendar.root", "calendar.title", "calendar.weekdayCell", "calendar.weekdayGrid", "calendar.yearCell", "calendar.yearsGrid", "card.body", "card.content", "card.description", "card.footer", "card.header", "card.headingBlock", "card.root", "card.title", "checkbox.content", "checkbox.control", "checkbox.controlTrack", "checkbox.error", "checkbox.hint", "checkbox.indicator", "checkbox.indicatorFill", "checkbox.indicatorMark", "checkbox.input", "checkbox.label", "checkbox.labelText", "checkbox.requiredMark", "checkbox.root", "checkbox.simpleLabelText", "checkbox.simpleLabelWrap", "checkboxGroup.actions", "checkboxGroup.error", "checkboxGroup.group", "checkboxGroup.hint", "checkboxGroup.legend", "checkboxGroup.legendHeader", "checkboxGroup.list", "checkboxGroup.root", "checkboxIndicator.fill", "checkboxIndicator.indicator", "checkboxIndicator.indicatorFill", "checkboxIndicator.indicatorMark", "checkboxIndicator.mark", "checkboxIndicator.root", "closeButton.icon", "closeButton.ripple", "closeButton.root", "colorPicker.alphaInput", "colorPicker.alphaInputField", "colorPicker.alphaSlider", "colorPicker.alphaSuffix", "colorPicker.area", "colorPicker.areaThumb", "colorPicker.content", "colorPicker.contentPanel", "colorPicker.error", "colorPicker.hexInput", "colorPicker.hexInputField", "colorPicker.hexPrefix", "colorPicker.hint", "colorPicker.hueSlider", "colorPicker.inputsRow", "colorPicker.label", "colorPicker.panel", "colorPicker.panelRelative", "colorPicker.presetSwatch", "colorPicker.presets", "colorPicker.previewSwatch", "colorPicker.root", "colorPicker.slidersRow", "colorPicker.slidersStack", "colorPicker.trigger", "colorSlider.label", "colorSlider.root", "colorSlider.thumb", "colorSlider.track", "colorSlider.value", "colorSwatch.root", "colorSwatch.selected", "comboBox.error", "comboBox.hint", "comboBox.input", "comboBox.label", "comboBox.listBox", "comboBox.listBoxEmpty", "comboBox.listBoxHeader", "comboBox.listBoxHeaderText", "comboBox.listBoxHint", "comboBox.listBoxIcon", "comboBox.listBoxItem", "comboBox.listBoxLabel", "comboBox.popover", "comboBox.popoverBody", "comboBox.root", "comboBox.shell", "comboBox.trigger", "comboBox.triggerIcon", "comboBox.triggerIconWrap", "container.root", "contextMenu.group", "contextMenu.item", "contextMenu.itemHint", "contextMenu.itemIcon", "contextMenu.itemIndicator", "contextMenu.itemIndicatorFill", "contextMenu.itemIndicatorMark", "contextMenu.itemIndicatorShell", "contextMenu.itemLabel", "contextMenu.label", "contextMenu.popover", "contextMenu.popoverBody", "contextMenu.root", "contextMenu.separator", "contextMenu.sub", "contextMenu.subPopover", "contextMenu.subPopoverBody", "contextMenu.subTrigger", "contextMenu.subTriggerIcon", "contextMenu.subTriggerLabelWrap", "contextMenu.trigger", "datePicker.calendar", "datePicker.error", "datePicker.hint", "datePicker.icon", "datePicker.label", "datePicker.popover", "datePicker.root", "datePicker.trigger", "datePicker.value", "dialog.body", "dialog.close", "dialog.content", "dialog.description", "dialog.dialog", "dialog.footer", "dialog.header", "dialog.headingBlock", "dialog.overlay", "dialog.panel", "dialog.title", "dialog.trigger", "disclosure.chevron", "disclosure.content", "disclosure.contentShell", "disclosure.contentWrap", "disclosure.group", "disclosure.handle", "disclosure.icon", "disclosure.root", "disclosure.title", "disclosure.titleLift", "disclosure.trigger", "drawer.body", "drawer.close", "drawer.content", "drawer.description", "drawer.dialog", "drawer.footer", "drawer.handle", "drawer.handleGrip", "drawer.header", "drawer.headingBlock", "drawer.overlay", "drawer.panel", "drawer.title", "drawer.trigger", "dropdown.group", "dropdown.item", "dropdown.itemHint", "dropdown.itemIcon", "dropdown.itemIndicator", "dropdown.itemIndicatorFill", "dropdown.itemIndicatorMark", "dropdown.itemIndicatorShell", "dropdown.itemLabel", "dropdown.label", "dropdown.popover", "dropdown.popoverBody", "dropdown.root", "dropdown.separator", "dropdown.sub", "dropdown.subPopover", "dropdown.subPopoverBody", "dropdown.subTrigger", "dropdown.subTriggerIcon", "dropdown.subTriggerLabelWrap", "dropdown.trigger", "dropdownItemIndicator.fill", "dropdownItemIndicator.itemIndicator", "dropdownItemIndicator.itemIndicatorFill", "dropdownItemIndicator.itemIndicatorMark", "dropdownItemIndicator.itemIndicatorShell", "dropdownItemIndicator.mark", "dropdownItemIndicator.root", "expandable.chevron", "expandable.content", "expandable.contentWrap", "expandable.description", "expandable.icon", "expandable.message", "expandable.panel", "expandable.panelShell", "expandable.root", "expandable.title", "expandable.trigger", "expandable.triggerLift", "expandable.triggerRippleOverlay", "field.error", "field.hint", "field.label", "field.root", "fieldSet.actions", "fieldSet.group", "fieldSet.legend", "fieldSet.legendHeader", "fieldSet.root", "fieldSet.stack", "form.actions", "form.announce", "form.description", "form.errorSummary", "form.field", "form.header", "form.root", "form.section", "form.title", "grid.root", "header.root", "hoverCard.arrow", "hoverCard.body", "hoverCard.content", "hoverCard.description", "hoverCard.header", "hoverCard.panel", "hoverCard.panelRelative", "hoverCard.title", "hoverCard.trigger", "input.control", "input.error", "input.fileArea", "input.fileEmpty", "input.fileGlyph", "input.filePreview", "input.fileRemove", "input.fileRow", "input.hint", "input.label", "input.passwordToggle", "input.prefix", "input.root", "input.shell", "input.suffix", "kbd.group", "kbd.root", "kbd.separator", "kbd.text", "label.required", "label.root", "label.text", "link.iconEnd", "link.iconStart", "link.root", "link.text", "listBox.empty", "listBox.header", "listBox.headerText", "listBox.hint", "listBox.icon", "listBox.item", "listBox.itemIndicator", "listBox.itemIndicatorFill", "listBox.itemIndicatorMark", "listBox.itemIndicatorShell", "listBox.label", "listBox.root", "listBox.section", "listBox.separator", "listBoxItemIndicator.fill", "listBoxItemIndicator.itemIndicator", "listBoxItemIndicator.itemIndicatorFill", "listBoxItemIndicator.itemIndicatorMark", "listBoxItemIndicator.itemIndicatorShell", "listBoxItemIndicator.mark", "listBoxItemIndicator.root", "loading.dot", "loading.dots", "loading.root", "loading.spinner", "meter.error", "meter.fill", "meter.header", "meter.hint", "meter.label", "meter.root", "meter.track", "meter.value", "numberInput.control", "numberInput.decrement", "numberInput.error", "numberInput.hint", "numberInput.increment", "numberInput.label", "numberInput.root", "numberInput.shell", "optionGroup.actions", "optionGroup.error", "optionGroup.group", "optionGroup.hint", "optionGroup.legend", "optionGroup.legendHeader", "optionGroup.list", "optionGroup.root", "pagination.content", "pagination.ellipsis", "pagination.item", "pagination.next", "pagination.nextIcon", "pagination.nextText", "pagination.page", "pagination.pageActive", "pagination.pageText", "pagination.previous", "pagination.previousIcon", "pagination.previousText", "pagination.root", "pagination.summary", "pagination.summaryText", "pinInput.control", "pinInput.error", "pinInput.hint", "pinInput.label", "pinInput.root", "pinInput.separator", "pinInput.shell", "popover.arrow", "popover.body", "popover.content", "popover.description", "popover.header", "popover.panel", "popover.panelRelative", "popover.title", "popover.trigger", "progressBar.error", "progressBar.fill", "progressBar.header", "progressBar.hint", "progressBar.indeterminateFill", "progressBar.label", "progressBar.root", "progressBar.track", "progressBar.value", "radio.content", "radio.control", "radio.controlTrack", "radio.error", "radio.hint", "radio.indicator", "radio.indicatorFill", "radio.indicatorMark", "radio.input", "radio.label", "radio.labelText", "radio.requiredMark", "radio.root", "radio.simpleLabelText", "radio.simpleLabelWrap", "radioGroup.actions", "radioGroup.error", "radioGroup.group", "radioGroup.hint", "radioGroup.legend", "radioGroup.legendHeader", "radioGroup.list", "radioGroup.root", "radioIndicator.fill", "radioIndicator.indicator", "radioIndicator.indicatorFill", "radioIndicator.indicatorMark", "radioIndicator.mark", "radioIndicator.root", "resizable.handle", "resizable.panel", "resizable.root", "scrollArea.corner", "scrollArea.root", "scrollArea.scrollbar", "scrollArea.thumb", "scrollArea.viewport", "searchInput.clear", "searchInput.expandTrigger", "searchInput.icon", "searchInput.input", "searchInput.root", "select.error", "select.hint", "select.label", "select.listBox", "select.listBoxEmpty", "select.listBoxHeader", "select.listBoxHeaderText", "select.listBoxHint", "select.listBoxIcon", "select.listBoxItem", "select.listBoxLabel", "select.popover", "select.popoverBody", "select.root", "select.shell", "select.trigger", "select.triggerIcon", "select.triggerIconWrap", "select.value", "selectionIndicator.fill", "selectionIndicator.mark", "selectionIndicator.root", "selectionThumb.root", "selectionThumbIcon.icon", "selectionThumbIcon.root", "sidebar.root", "skeleton.root", "skeleton.wave", "skeletonBlock.root", "skeletonBlock.wave", "skeletonCircle.root", "skeletonCircle.wave", "skeletonRegion.root", "skeletonText.line", "skeletonText.root", "skeletonText.wave", "slider.error", "slider.fill", "slider.header", "slider.hint", "slider.icon", "slider.label", "slider.mark", "slider.rail", "slider.root", "slider.thumb", "slider.thumbShell", "slider.track", "slider.value", "stack.root", "stepper.description", "stepper.indicator", "stepper.item", "stepper.root", "stepper.separator", "stepper.title", "stepper.trigger", "surface.root", "switch.content", "switch.control", "switch.error", "switch.fill", "switch.hint", "switch.iconOff", "switch.iconOn", "switch.input", "switch.label", "switch.labelText", "switch.root", "switch.simpleLabelText", "switch.simpleLabelWrap", "switch.thumb", "switch.thumbShell", "switch.track", "table.body", "table.caption", "table.cell", "table.column", "table.columnButton", "table.columnInner", "table.columnLabel", "table.columnSortIcon", "table.content", "table.emptyCell", "table.footer", "table.header", "table.headerRow", "table.root", "table.row", "table.scrollContainer", "tabs.indicator", "tabs.list", "tabs.panel", "tabs.root", "tabs.tab", "tabs.tabText", "tagsInput.control", "tagsInput.error", "tagsInput.hint", "tagsInput.label", "tagsInput.remove", "tagsInput.root", "tagsInput.shell", "tagsInput.tag", "tagsInput.tagText", "textArea.control", "textArea.error", "textArea.hint", "textArea.label", "textArea.resizeHandle", "textArea.root", "textArea.shell", "timeField.control", "timeField.error", "timeField.hint", "timeField.keyboardInput", "timeField.label", "timeField.prefix", "timeField.root", "timeField.segment", "timeField.segmentGroup", "timeField.segmentSeparator", "timeField.segments", "timeField.shell", "timeField.shellInner", "timeField.suffix", "toast.action", "toast.close", "toast.content", "toast.description", "toast.indicator", "toast.message", "toast.root", "toast.scrim", "toast.stack", "toast.stackItem", "toast.title", "toast.viewport", "toggleButton.content", "toggleButton.fill", "toggleButton.iconEnd", "toggleButton.iconStart", "toggleButton.label", "toggleButton.root", "toggleButton.text", "toggleButtonGroup.root", "toggleButtonGroup.separator", "tooltip.arrow", "tooltip.content", "tooltip.description", "tooltip.indicator", "tooltip.message", "tooltip.panel", "tooltip.panelRelative", "tooltip.title", "tooltip.trigger"];
|
|
2
|
+
export declare const SKIN_SLOTS: readonly ["accordion.body", "accordion.chevron", "accordion.content", "accordion.contentWrap", "accordion.description", "accordion.heading", "accordion.icon", "accordion.item", "accordion.message", "accordion.panel", "accordion.panelShell", "accordion.root", "accordion.title", "accordion.trigger", "accordion.triggerLift", "accordion.triggerRippleOverlay", "alert.action", "alert.content", "alert.description", "alert.indicator", "alert.message", "alert.root", "alert.title", "alertDialog.body", "alertDialog.close", "alertDialog.content", "alertDialog.description", "alertDialog.dialog", "alertDialog.footer", "alertDialog.header", "alertDialog.headingBlock", "alertDialog.indicator", "alertDialog.overlay", "alertDialog.panel", "alertDialog.title", "alertDialog.trigger", "appShell.body", "appShell.main", "appShell.root", "aspectRatio.content", "aspectRatio.root", "avatar.fallback", "avatar.group", "avatar.groupItem", "avatar.image", "avatar.root", "badge.anchor", "badge.dot", "badge.icon", "badge.iconOnly", "badge.root", "badge.splitShell", "badge.text", "breadcrumbs.dropdownItem", "breadcrumbs.ellipsisLiftWrapper", "breadcrumbs.ellipsisPopover", "breadcrumbs.ellipsisText", "breadcrumbs.ellipsisTrigger", "breadcrumbs.item", "breadcrumbs.itemActive", "breadcrumbs.itemLink", "breadcrumbs.itemLinkText", "breadcrumbs.itemLinkWrapper", "breadcrumbs.itemStatic", "breadcrumbs.list", "breadcrumbs.root", "breadcrumbs.separator", "breadcrumbs.separatorWrapper", "button.content", "button.error", "button.icon", "button.label", "button.loader", "button.root", "button.success", "button.text", "buttonGroup.root", "buttonGroup.separator", "buttonGroup.text", "buttonGroup.textLabel", "calendar.cell", "calendar.cellFill", "calendar.cellText", "calendar.cellTodayDot", "calendar.day", "calendar.dayCellWrapper", "calendar.dayEmpty", "calendar.daysGrid", "calendar.footer", "calendar.footerClear", "calendar.footerToday", "calendar.grid", "calendar.header", "calendar.monthCell", "calendar.monthsGrid", "calendar.navIcon", "calendar.navIconWrap", "calendar.navNext", "calendar.navPrev", "calendar.rangeHalfFill", "calendar.root", "calendar.title", "calendar.weekdayCell", "calendar.weekdayGrid", "calendar.yearCell", "calendar.yearsGrid", "card.body", "card.content", "card.description", "card.footer", "card.header", "card.headingBlock", "card.root", "card.title", "checkbox.content", "checkbox.control", "checkbox.controlTrack", "checkbox.error", "checkbox.hint", "checkbox.indicator", "checkbox.indicatorFill", "checkbox.indicatorMark", "checkbox.input", "checkbox.label", "checkbox.labelText", "checkbox.requiredMark", "checkbox.root", "checkbox.simpleLabelText", "checkbox.simpleLabelWrap", "checkboxGroup.actions", "checkboxGroup.error", "checkboxGroup.group", "checkboxGroup.hint", "checkboxGroup.legend", "checkboxGroup.legendHeader", "checkboxGroup.list", "checkboxGroup.root", "checkboxIndicator.fill", "checkboxIndicator.indicator", "checkboxIndicator.indicatorFill", "checkboxIndicator.indicatorMark", "checkboxIndicator.mark", "checkboxIndicator.root", "closeButton.icon", "closeButton.ripple", "closeButton.root", "colorPicker.alphaInput", "colorPicker.alphaInputField", "colorPicker.alphaSlider", "colorPicker.alphaSuffix", "colorPicker.area", "colorPicker.areaThumb", "colorPicker.content", "colorPicker.contentPanel", "colorPicker.error", "colorPicker.hexInput", "colorPicker.hexInputField", "colorPicker.hexPrefix", "colorPicker.hint", "colorPicker.hueSlider", "colorPicker.inputsRow", "colorPicker.label", "colorPicker.panel", "colorPicker.panelRelative", "colorPicker.presetSwatch", "colorPicker.presets", "colorPicker.previewSwatch", "colorPicker.root", "colorPicker.slidersRow", "colorPicker.slidersStack", "colorPicker.trigger", "colorSlider.label", "colorSlider.root", "colorSlider.thumb", "colorSlider.track", "colorSlider.value", "colorSwatch.root", "colorSwatch.selected", "comboBox.error", "comboBox.hint", "comboBox.input", "comboBox.label", "comboBox.listBox", "comboBox.listBoxEmpty", "comboBox.listBoxHeader", "comboBox.listBoxHeaderText", "comboBox.listBoxHint", "comboBox.listBoxIcon", "comboBox.listBoxItem", "comboBox.listBoxLabel", "comboBox.popover", "comboBox.popoverBody", "comboBox.root", "comboBox.shell", "comboBox.trigger", "comboBox.triggerIcon", "comboBox.triggerIconWrap", "container.root", "contextMenu.group", "contextMenu.item", "contextMenu.itemHint", "contextMenu.itemIcon", "contextMenu.itemIndicator", "contextMenu.itemIndicatorFill", "contextMenu.itemIndicatorMark", "contextMenu.itemIndicatorShell", "contextMenu.itemLabel", "contextMenu.label", "contextMenu.popover", "contextMenu.popoverBody", "contextMenu.root", "contextMenu.separator", "contextMenu.sub", "contextMenu.subPopover", "contextMenu.subPopoverBody", "contextMenu.subTrigger", "contextMenu.subTriggerIcon", "contextMenu.subTriggerLabelWrap", "contextMenu.trigger", "datePicker.calendar", "datePicker.error", "datePicker.hint", "datePicker.icon", "datePicker.label", "datePicker.popover", "datePicker.root", "datePicker.trigger", "datePicker.value", "dialog.body", "dialog.close", "dialog.content", "dialog.description", "dialog.dialog", "dialog.footer", "dialog.header", "dialog.headingBlock", "dialog.overlay", "dialog.panel", "dialog.title", "dialog.trigger", "disclosure.chevron", "disclosure.content", "disclosure.contentShell", "disclosure.contentWrap", "disclosure.group", "disclosure.handle", "disclosure.icon", "disclosure.root", "disclosure.title", "disclosure.titleLift", "disclosure.trigger", "drawer.body", "drawer.close", "drawer.content", "drawer.description", "drawer.dialog", "drawer.footer", "drawer.handle", "drawer.handleGrip", "drawer.header", "drawer.headingBlock", "drawer.overlay", "drawer.panel", "drawer.title", "drawer.trigger", "dropdown.group", "dropdown.item", "dropdown.itemHint", "dropdown.itemIcon", "dropdown.itemIndicator", "dropdown.itemIndicatorFill", "dropdown.itemIndicatorMark", "dropdown.itemIndicatorShell", "dropdown.itemLabel", "dropdown.label", "dropdown.popover", "dropdown.popoverBody", "dropdown.root", "dropdown.separator", "dropdown.sub", "dropdown.subPopover", "dropdown.subPopoverBody", "dropdown.subTrigger", "dropdown.subTriggerIcon", "dropdown.subTriggerLabelWrap", "dropdown.trigger", "dropdownItemIndicator.fill", "dropdownItemIndicator.itemIndicator", "dropdownItemIndicator.itemIndicatorFill", "dropdownItemIndicator.itemIndicatorMark", "dropdownItemIndicator.itemIndicatorShell", "dropdownItemIndicator.mark", "dropdownItemIndicator.root", "expandable.chevron", "expandable.content", "expandable.contentWrap", "expandable.description", "expandable.icon", "expandable.message", "expandable.panel", "expandable.panelShell", "expandable.root", "expandable.title", "expandable.trigger", "expandable.triggerLift", "expandable.triggerRippleOverlay", "field.error", "field.hint", "field.label", "field.root", "fieldSet.actions", "fieldSet.group", "fieldSet.legend", "fieldSet.legendHeader", "fieldSet.root", "fieldSet.stack", "form.actions", "form.announce", "form.description", "form.errorSummary", "form.field", "form.header", "form.root", "form.section", "form.title", "grid.root", "header.root", "hoverCard.arrow", "hoverCard.body", "hoverCard.content", "hoverCard.description", "hoverCard.header", "hoverCard.panel", "hoverCard.panelRelative", "hoverCard.title", "hoverCard.trigger", "input.control", "input.error", "input.fileArea", "input.fileEmpty", "input.fileGlyph", "input.filePreview", "input.fileRemove", "input.fileRow", "input.hint", "input.label", "input.passwordToggle", "input.prefix", "input.root", "input.shell", "input.suffix", "kbd.group", "kbd.root", "kbd.separator", "kbd.text", "label.required", "label.root", "label.text", "link.iconEnd", "link.iconStart", "link.root", "link.text", "listBox.empty", "listBox.header", "listBox.headerText", "listBox.hint", "listBox.icon", "listBox.item", "listBox.itemIndicator", "listBox.itemIndicatorFill", "listBox.itemIndicatorMark", "listBox.itemIndicatorShell", "listBox.label", "listBox.root", "listBox.section", "listBox.separator", "listBoxItemIndicator.fill", "listBoxItemIndicator.itemIndicator", "listBoxItemIndicator.itemIndicatorFill", "listBoxItemIndicator.itemIndicatorMark", "listBoxItemIndicator.itemIndicatorShell", "listBoxItemIndicator.mark", "listBoxItemIndicator.root", "loading.dot", "loading.dots", "loading.root", "loading.spinner", "meter.error", "meter.fill", "meter.header", "meter.hint", "meter.label", "meter.root", "meter.track", "meter.value", "numberInput.control", "numberInput.decrement", "numberInput.error", "numberInput.hint", "numberInput.increment", "numberInput.label", "numberInput.root", "numberInput.shell", "optionGroup.actions", "optionGroup.error", "optionGroup.group", "optionGroup.hint", "optionGroup.legend", "optionGroup.legendHeader", "optionGroup.list", "optionGroup.root", "pagination.content", "pagination.ellipsis", "pagination.item", "pagination.next", "pagination.nextIcon", "pagination.nextText", "pagination.page", "pagination.pageActive", "pagination.pageText", "pagination.previous", "pagination.previousIcon", "pagination.previousText", "pagination.root", "pagination.summary", "pagination.summaryText", "pinInput.control", "pinInput.error", "pinInput.hint", "pinInput.label", "pinInput.root", "pinInput.separator", "pinInput.shell", "popover.arrow", "popover.body", "popover.content", "popover.description", "popover.header", "popover.panel", "popover.panelRelative", "popover.title", "popover.trigger", "progressBar.error", "progressBar.fill", "progressBar.header", "progressBar.hint", "progressBar.indeterminateFill", "progressBar.label", "progressBar.root", "progressBar.track", "progressBar.value", "radio.content", "radio.control", "radio.controlTrack", "radio.error", "radio.hint", "radio.indicator", "radio.indicatorFill", "radio.indicatorMark", "radio.input", "radio.label", "radio.labelText", "radio.requiredMark", "radio.root", "radio.simpleLabelText", "radio.simpleLabelWrap", "radioGroup.actions", "radioGroup.error", "radioGroup.group", "radioGroup.hint", "radioGroup.legend", "radioGroup.legendHeader", "radioGroup.list", "radioGroup.root", "radioIndicator.fill", "radioIndicator.indicator", "radioIndicator.indicatorFill", "radioIndicator.indicatorMark", "radioIndicator.mark", "radioIndicator.root", "resizable.handle", "resizable.panel", "resizable.root", "scrollArea.corner", "scrollArea.root", "scrollArea.scrollbar", "scrollArea.thumb", "scrollArea.viewport", "searchInput.clear", "searchInput.expandTrigger", "searchInput.icon", "searchInput.input", "searchInput.root", "select.error", "select.hint", "select.label", "select.listBox", "select.listBoxEmpty", "select.listBoxHeader", "select.listBoxHeaderText", "select.listBoxHint", "select.listBoxIcon", "select.listBoxItem", "select.listBoxLabel", "select.popover", "select.popoverBody", "select.root", "select.shell", "select.trigger", "select.triggerIcon", "select.triggerIconWrap", "select.value", "selectionIndicator.fill", "selectionIndicator.mark", "selectionIndicator.root", "selectionThumb.root", "selectionThumbIcon.icon", "selectionThumbIcon.root", "separator.root", "sidebar.root", "skeleton.root", "skeleton.wave", "skeletonBlock.root", "skeletonBlock.wave", "skeletonCircle.root", "skeletonCircle.wave", "skeletonRegion.root", "skeletonText.line", "skeletonText.root", "skeletonText.wave", "slider.error", "slider.fill", "slider.header", "slider.hint", "slider.icon", "slider.label", "slider.mark", "slider.rail", "slider.root", "slider.thumb", "slider.thumbShell", "slider.track", "slider.value", "stack.root", "stepper.description", "stepper.indicator", "stepper.item", "stepper.root", "stepper.separator", "stepper.title", "stepper.trigger", "surface.root", "switch.content", "switch.control", "switch.error", "switch.fill", "switch.hint", "switch.iconOff", "switch.iconOn", "switch.input", "switch.label", "switch.labelText", "switch.root", "switch.simpleLabelText", "switch.simpleLabelWrap", "switch.thumb", "switch.thumbShell", "switch.track", "table.body", "table.caption", "table.cell", "table.column", "table.columnButton", "table.columnInner", "table.columnLabel", "table.columnSortIcon", "table.content", "table.emptyCell", "table.footer", "table.header", "table.headerRow", "table.root", "table.row", "table.scrollContainer", "tabs.indicator", "tabs.list", "tabs.panel", "tabs.root", "tabs.tab", "tabs.tabText", "tagsInput.control", "tagsInput.error", "tagsInput.hint", "tagsInput.label", "tagsInput.remove", "tagsInput.root", "tagsInput.shell", "tagsInput.tag", "tagsInput.tagText", "text.root", "textArea.control", "textArea.error", "textArea.hint", "textArea.label", "textArea.resizeHandle", "textArea.root", "textArea.shell", "timeField.control", "timeField.error", "timeField.hint", "timeField.keyboardInput", "timeField.label", "timeField.prefix", "timeField.root", "timeField.segment", "timeField.segmentGroup", "timeField.segmentSeparator", "timeField.segments", "timeField.shell", "timeField.shellInner", "timeField.suffix", "toast.action", "toast.close", "toast.content", "toast.description", "toast.indicator", "toast.message", "toast.root", "toast.scrim", "toast.stack", "toast.stackItem", "toast.title", "toast.viewport", "toggleButton.content", "toggleButton.fill", "toggleButton.iconEnd", "toggleButton.iconStart", "toggleButton.label", "toggleButton.root", "toggleButton.text", "toggleButtonGroup.root", "toggleButtonGroup.separator", "tooltip.arrow", "tooltip.content", "tooltip.description", "tooltip.indicator", "tooltip.message", "tooltip.panel", "tooltip.panelRelative", "tooltip.title", "tooltip.trigger"];
|
|
3
3
|
export type SkinSlot = (typeof SKIN_SLOTS)[number];
|
|
@@ -517,6 +517,7 @@ const SKIN_SLOTS = [
|
|
|
517
517
|
"selectionThumb.root",
|
|
518
518
|
"selectionThumbIcon.icon",
|
|
519
519
|
"selectionThumbIcon.root",
|
|
520
|
+
"separator.root",
|
|
520
521
|
"sidebar.root",
|
|
521
522
|
"skeleton.root",
|
|
522
523
|
"skeleton.wave",
|
|
@@ -597,6 +598,7 @@ const SKIN_SLOTS = [
|
|
|
597
598
|
"tagsInput.shell",
|
|
598
599
|
"tagsInput.tag",
|
|
599
600
|
"tagsInput.tagText",
|
|
601
|
+
"text.root",
|
|
600
602
|
"textArea.control",
|
|
601
603
|
"textArea.error",
|
|
602
604
|
"textArea.hint",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ThemeColors, ThemeMode } from '../theme/themeDefaults.js';
|
|
2
2
|
import { ThemeEditorState } from './themeEditorState.js';
|
|
3
|
-
export type ColorPresetKey = "default" | "contrast" | "ocean" | "violet" | "emerald" | "rose" | "amber" | "slate" | "toffee" | "berry" | "paprika" | "cherry" | "rustic" | "earthy" | "peach" | "sand" | "bold" | "autumn" | "harvest" | "mystic" | "dreamland" | "lavender";
|
|
3
|
+
export type ColorPresetKey = "default" | "contrast" | "zinc" | "stone" | "graphite" | "mist" | "sage" | "linen" | "ocean" | "violet" | "emerald" | "rose" | "amber" | "slate" | "toffee" | "berry" | "paprika" | "cherry" | "rustic" | "earthy" | "peach" | "sand" | "bold" | "autumn" | "harvest" | "mystic" | "dreamland" | "lavender";
|
|
4
4
|
export type ColorPresetSlice = {
|
|
5
5
|
colors: ThemeColors;
|
|
6
6
|
shadowOpacity?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ensureModePalettes, activateThemeModePalette } from "../theme/themeDefaults.js";
|
|
2
2
|
import { createDefaultEditorState } from "./themeEditorState.js";
|
|
3
|
-
import { LAVENDER_LIGHT_COLORS, LAVENDER_DARK_COLORS, DREAMLAND_LIGHT_COLORS, DREAMLAND_DARK_COLORS, MYSTIC_LIGHT_COLORS, MYSTIC_DARK_COLORS, HARVEST_LIGHT_COLORS, HARVEST_DARK_COLORS, AUTUMN_LIGHT_COLORS, AUTUMN_DARK_COLORS, BOLD_LIGHT_COLORS, BOLD_DARK_COLORS, SAND_LIGHT_COLORS, SAND_DARK_COLORS, PEACH_LIGHT_COLORS, PEACH_DARK_COLORS, EARTHY_LIGHT_COLORS, EARTHY_DARK_COLORS, RUSTIC_LIGHT_COLORS, RUSTIC_DARK_COLORS, CHERRY_LIGHT_COLORS, CHERRY_DARK_COLORS, PAPRIKA_LIGHT_COLORS, PAPRIKA_DARK_COLORS, BERRY_LIGHT_COLORS, BERRY_DARK_COLORS, TOFFEE_LIGHT_COLORS, TOFFEE_DARK_COLORS, SLATE_LIGHT_COLORS, SLATE_DARK_COLORS, AMBER_LIGHT_COLORS, AMBER_DARK_COLORS, ROSE_LIGHT_COLORS, ROSE_DARK_COLORS, EMERALD_LIGHT_COLORS, EMERALD_DARK_COLORS, VIOLET_LIGHT_COLORS, VIOLET_DARK_COLORS, OCEAN_LIGHT_COLORS, OCEAN_DARK_COLORS, CONTRAST_LIGHT_COLORS, CONTRAST_DARK_COLORS } from "../theme/namedPalettes.js";
|
|
3
|
+
import { LAVENDER_LIGHT_COLORS, LAVENDER_DARK_COLORS, DREAMLAND_LIGHT_COLORS, DREAMLAND_DARK_COLORS, MYSTIC_LIGHT_COLORS, MYSTIC_DARK_COLORS, HARVEST_LIGHT_COLORS, HARVEST_DARK_COLORS, AUTUMN_LIGHT_COLORS, AUTUMN_DARK_COLORS, BOLD_LIGHT_COLORS, BOLD_DARK_COLORS, SAND_LIGHT_COLORS, SAND_DARK_COLORS, PEACH_LIGHT_COLORS, PEACH_DARK_COLORS, EARTHY_LIGHT_COLORS, EARTHY_DARK_COLORS, RUSTIC_LIGHT_COLORS, RUSTIC_DARK_COLORS, CHERRY_LIGHT_COLORS, CHERRY_DARK_COLORS, PAPRIKA_LIGHT_COLORS, PAPRIKA_DARK_COLORS, BERRY_LIGHT_COLORS, BERRY_DARK_COLORS, TOFFEE_LIGHT_COLORS, TOFFEE_DARK_COLORS, SLATE_LIGHT_COLORS, SLATE_DARK_COLORS, AMBER_LIGHT_COLORS, AMBER_DARK_COLORS, ROSE_LIGHT_COLORS, ROSE_DARK_COLORS, EMERALD_LIGHT_COLORS, EMERALD_DARK_COLORS, VIOLET_LIGHT_COLORS, VIOLET_DARK_COLORS, OCEAN_LIGHT_COLORS, OCEAN_DARK_COLORS, LINEN_LIGHT_COLORS, LINEN_DARK_COLORS, SAGE_LIGHT_COLORS, SAGE_DARK_COLORS, MIST_LIGHT_COLORS, MIST_DARK_COLORS, GRAPHITE_LIGHT_COLORS, GRAPHITE_DARK_COLORS, STONE_LIGHT_COLORS, STONE_DARK_COLORS, ZINC_LIGHT_COLORS, ZINC_DARK_COLORS, CONTRAST_LIGHT_COLORS, CONTRAST_DARK_COLORS } from "../theme/namedPalettes.js";
|
|
4
4
|
import { LIGHT_COLORS, DARK_COLORS } from "../theme/themePalettes.js";
|
|
5
5
|
function def(dark, light) {
|
|
6
6
|
return { dark, light };
|
|
@@ -11,6 +11,13 @@ const COLOR_PRESET_DEFINITIONS = {
|
|
|
11
11
|
{ colors: CONTRAST_DARK_COLORS, shadowOpacity: 1.25 },
|
|
12
12
|
{ colors: CONTRAST_LIGHT_COLORS, shadowOpacity: 1.25 }
|
|
13
13
|
),
|
|
14
|
+
// Neutral presets — low-chroma surfaces with gray / ink primaries.
|
|
15
|
+
zinc: def({ colors: ZINC_DARK_COLORS }, { colors: ZINC_LIGHT_COLORS }),
|
|
16
|
+
stone: def({ colors: STONE_DARK_COLORS }, { colors: STONE_LIGHT_COLORS }),
|
|
17
|
+
graphite: def({ colors: GRAPHITE_DARK_COLORS }, { colors: GRAPHITE_LIGHT_COLORS }),
|
|
18
|
+
mist: def({ colors: MIST_DARK_COLORS }, { colors: MIST_LIGHT_COLORS }),
|
|
19
|
+
sage: def({ colors: SAGE_DARK_COLORS }, { colors: SAGE_LIGHT_COLORS }),
|
|
20
|
+
linen: def({ colors: LINEN_DARK_COLORS }, { colors: LINEN_LIGHT_COLORS }),
|
|
14
21
|
ocean: def({ colors: OCEAN_DARK_COLORS }, { colors: OCEAN_LIGHT_COLORS }),
|
|
15
22
|
violet: def({ colors: VIOLET_DARK_COLORS }, { colors: VIOLET_LIGHT_COLORS }),
|
|
16
23
|
emerald: def({ colors: EMERALD_DARK_COLORS }, { colors: EMERALD_LIGHT_COLORS }),
|
package/dist/studio.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export { designToSkin } from './studio/designDocument.js';
|
|
|
17
17
|
export { createDefaultEditorState, type ThemeEditorState, } from './studio/themeEditorState.js';
|
|
18
18
|
export { applyColorPresetToState, applyThemeModeToState, COLOR_PRESET_DEFINITIONS, colorPresetSlice, type ColorPresetDefinition, type ColorPresetKey, type ColorPresetSlice, } from './studio/colorPresets.js';
|
|
19
19
|
export { applyThemePresetToState, FONT_PRESETS, LAYOUT_PRESETS, MONO_FONT_PRESETS, THEME_PRESETS, THEME_PRESET_LIST, type LayoutPresetKey, type ThemePresetDefinition, type ThemePresetKey, type ThemePresetTokenOverrides, type ThemePresetTokens, } from './studio/themePresets.js';
|
|
20
|
-
export { AMBER_DARK_COLORS, AMBER_LIGHT_COLORS, AUTUMN_DARK_COLORS, AUTUMN_LIGHT_COLORS, BERRY_DARK_COLORS, BERRY_LIGHT_COLORS, BOLD_DARK_COLORS, BOLD_LIGHT_COLORS, CHERRY_DARK_COLORS, CHERRY_LIGHT_COLORS, CONTRAST_DARK_COLORS, CONTRAST_LIGHT_COLORS, DARK_COLORS, DREAMLAND_DARK_COLORS, DREAMLAND_LIGHT_COLORS, EARTHY_DARK_COLORS, EARTHY_LIGHT_COLORS, EMERALD_DARK_COLORS, EMERALD_LIGHT_COLORS, HARVEST_DARK_COLORS, HARVEST_LIGHT_COLORS, LAVENDER_DARK_COLORS, LAVENDER_LIGHT_COLORS, LIGHT_COLORS, MYSTIC_DARK_COLORS, MYSTIC_LIGHT_COLORS, OCEAN_DARK_COLORS, OCEAN_LIGHT_COLORS, PAPRIKA_DARK_COLORS, PAPRIKA_LIGHT_COLORS, PEACH_DARK_COLORS, PEACH_LIGHT_COLORS, ROSE_DARK_COLORS, ROSE_LIGHT_COLORS, RUSTIC_DARK_COLORS, RUSTIC_LIGHT_COLORS, SAND_DARK_COLORS, SAND_LIGHT_COLORS, SLATE_DARK_COLORS, SLATE_LIGHT_COLORS, TOFFEE_DARK_COLORS, TOFFEE_LIGHT_COLORS, VIOLET_DARK_COLORS, VIOLET_LIGHT_COLORS, } from './theme/namedPalettes.js';
|
|
20
|
+
export { AMBER_DARK_COLORS, AMBER_LIGHT_COLORS, AUTUMN_DARK_COLORS, AUTUMN_LIGHT_COLORS, BERRY_DARK_COLORS, BERRY_LIGHT_COLORS, BOLD_DARK_COLORS, BOLD_LIGHT_COLORS, CHERRY_DARK_COLORS, CHERRY_LIGHT_COLORS, CONTRAST_DARK_COLORS, CONTRAST_LIGHT_COLORS, DARK_COLORS, DREAMLAND_DARK_COLORS, DREAMLAND_LIGHT_COLORS, EARTHY_DARK_COLORS, EARTHY_LIGHT_COLORS, EMERALD_DARK_COLORS, EMERALD_LIGHT_COLORS, GRAPHITE_DARK_COLORS, GRAPHITE_LIGHT_COLORS, HARVEST_DARK_COLORS, HARVEST_LIGHT_COLORS, LAVENDER_DARK_COLORS, LAVENDER_LIGHT_COLORS, LIGHT_COLORS, LINEN_DARK_COLORS, LINEN_LIGHT_COLORS, MIST_DARK_COLORS, MIST_LIGHT_COLORS, MYSTIC_DARK_COLORS, MYSTIC_LIGHT_COLORS, OCEAN_DARK_COLORS, OCEAN_LIGHT_COLORS, PAPRIKA_DARK_COLORS, PAPRIKA_LIGHT_COLORS, PEACH_DARK_COLORS, PEACH_LIGHT_COLORS, ROSE_DARK_COLORS, ROSE_LIGHT_COLORS, RUSTIC_DARK_COLORS, RUSTIC_LIGHT_COLORS, SAGE_DARK_COLORS, SAGE_LIGHT_COLORS, SAND_DARK_COLORS, SAND_LIGHT_COLORS, SLATE_DARK_COLORS, SLATE_LIGHT_COLORS, STONE_DARK_COLORS, STONE_LIGHT_COLORS, TOFFEE_DARK_COLORS, TOFFEE_LIGHT_COLORS, VIOLET_DARK_COLORS, VIOLET_LIGHT_COLORS, ZINC_DARK_COLORS, ZINC_LIGHT_COLORS, } from './theme/namedPalettes.js';
|
|
21
21
|
export { applyThemeTokens, clearThemeInlineTokens, createDefaultThemeState, exportThemeCss, motionConfigFromThemeState, type ThemeColors, type ThemeTokenState, } from './theme/themeDefaults.js';
|
|
22
22
|
export { resolveThemeTokenState, themeTokenStateToConfig } from './theme/themeConfig.js';
|
|
23
23
|
export { KIT_MOTION_RECIPE_META } from './components/core/utils/slotMotion/kitMotionRecipeMeta.js';
|
package/dist/studio.js
CHANGED
|
@@ -9,7 +9,7 @@ import { paletteFromBrand } from "./studio/paletteFromBrand.js";
|
|
|
9
9
|
import { createDefaultEditorState } from "./studio/themeEditorState.js";
|
|
10
10
|
import { COLOR_PRESET_DEFINITIONS, applyColorPresetToState, applyThemeModeToState, colorPresetSlice } from "./studio/colorPresets.js";
|
|
11
11
|
import { FONT_PRESETS, LAYOUT_PRESETS, MONO_FONT_PRESETS, THEME_PRESETS, THEME_PRESET_LIST, applyThemePresetToState } from "./studio/themePresets.js";
|
|
12
|
-
import { AMBER_DARK_COLORS, AMBER_LIGHT_COLORS, AUTUMN_DARK_COLORS, AUTUMN_LIGHT_COLORS, BERRY_DARK_COLORS, BERRY_LIGHT_COLORS, BOLD_DARK_COLORS, BOLD_LIGHT_COLORS, CHERRY_DARK_COLORS, CHERRY_LIGHT_COLORS, CONTRAST_DARK_COLORS, CONTRAST_LIGHT_COLORS, DREAMLAND_DARK_COLORS, DREAMLAND_LIGHT_COLORS, EARTHY_DARK_COLORS, EARTHY_LIGHT_COLORS, EMERALD_DARK_COLORS, EMERALD_LIGHT_COLORS, HARVEST_DARK_COLORS, HARVEST_LIGHT_COLORS, LAVENDER_DARK_COLORS, LAVENDER_LIGHT_COLORS, MYSTIC_DARK_COLORS, MYSTIC_LIGHT_COLORS, OCEAN_DARK_COLORS, OCEAN_LIGHT_COLORS, PAPRIKA_DARK_COLORS, PAPRIKA_LIGHT_COLORS, PEACH_DARK_COLORS, PEACH_LIGHT_COLORS, ROSE_DARK_COLORS, ROSE_LIGHT_COLORS, RUSTIC_DARK_COLORS, RUSTIC_LIGHT_COLORS, SAND_DARK_COLORS, SAND_LIGHT_COLORS, SLATE_DARK_COLORS, SLATE_LIGHT_COLORS, TOFFEE_DARK_COLORS, TOFFEE_LIGHT_COLORS, VIOLET_DARK_COLORS, VIOLET_LIGHT_COLORS } from "./theme/namedPalettes.js";
|
|
12
|
+
import { AMBER_DARK_COLORS, AMBER_LIGHT_COLORS, AUTUMN_DARK_COLORS, AUTUMN_LIGHT_COLORS, BERRY_DARK_COLORS, BERRY_LIGHT_COLORS, BOLD_DARK_COLORS, BOLD_LIGHT_COLORS, CHERRY_DARK_COLORS, CHERRY_LIGHT_COLORS, CONTRAST_DARK_COLORS, CONTRAST_LIGHT_COLORS, DREAMLAND_DARK_COLORS, DREAMLAND_LIGHT_COLORS, EARTHY_DARK_COLORS, EARTHY_LIGHT_COLORS, EMERALD_DARK_COLORS, EMERALD_LIGHT_COLORS, GRAPHITE_DARK_COLORS, GRAPHITE_LIGHT_COLORS, HARVEST_DARK_COLORS, HARVEST_LIGHT_COLORS, LAVENDER_DARK_COLORS, LAVENDER_LIGHT_COLORS, LINEN_DARK_COLORS, LINEN_LIGHT_COLORS, MIST_DARK_COLORS, MIST_LIGHT_COLORS, MYSTIC_DARK_COLORS, MYSTIC_LIGHT_COLORS, OCEAN_DARK_COLORS, OCEAN_LIGHT_COLORS, PAPRIKA_DARK_COLORS, PAPRIKA_LIGHT_COLORS, PEACH_DARK_COLORS, PEACH_LIGHT_COLORS, ROSE_DARK_COLORS, ROSE_LIGHT_COLORS, RUSTIC_DARK_COLORS, RUSTIC_LIGHT_COLORS, SAGE_DARK_COLORS, SAGE_LIGHT_COLORS, SAND_DARK_COLORS, SAND_LIGHT_COLORS, SLATE_DARK_COLORS, SLATE_LIGHT_COLORS, STONE_DARK_COLORS, STONE_LIGHT_COLORS, TOFFEE_DARK_COLORS, TOFFEE_LIGHT_COLORS, VIOLET_DARK_COLORS, VIOLET_LIGHT_COLORS, ZINC_DARK_COLORS, ZINC_LIGHT_COLORS } from "./theme/namedPalettes.js";
|
|
13
13
|
import { applyThemeTokens, clearThemeInlineTokens, createDefaultThemeState, exportThemeCss, motionConfigFromThemeState } from "./theme/themeDefaults.js";
|
|
14
14
|
import { resolveThemeTokenState, themeTokenStateToConfig } from "./theme/themeConfig.js";
|
|
15
15
|
import { KIT_MOTION_RECIPE_META } from "./components/core/utils/slotMotion/kitMotionRecipeMeta.js";
|
|
@@ -42,6 +42,8 @@ export {
|
|
|
42
42
|
EMERALD_LIGHT_COLORS,
|
|
43
43
|
FONT_PRESETS,
|
|
44
44
|
FORCE_STATE_TOKENS,
|
|
45
|
+
GRAPHITE_DARK_COLORS,
|
|
46
|
+
GRAPHITE_LIGHT_COLORS,
|
|
45
47
|
HARVEST_DARK_COLORS,
|
|
46
48
|
HARVEST_LIGHT_COLORS,
|
|
47
49
|
KIT_MOTION_RECIPE_META,
|
|
@@ -49,6 +51,10 @@ export {
|
|
|
49
51
|
LAVENDER_LIGHT_COLORS,
|
|
50
52
|
LAYOUT_PRESETS,
|
|
51
53
|
LIGHT_COLORS,
|
|
54
|
+
LINEN_DARK_COLORS,
|
|
55
|
+
LINEN_LIGHT_COLORS,
|
|
56
|
+
MIST_DARK_COLORS,
|
|
57
|
+
MIST_LIGHT_COLORS,
|
|
52
58
|
MONO_FONT_PRESETS,
|
|
53
59
|
MYSTIC_DARK_COLORS,
|
|
54
60
|
MYSTIC_LIGHT_COLORS,
|
|
@@ -62,6 +68,8 @@ export {
|
|
|
62
68
|
ROSE_LIGHT_COLORS,
|
|
63
69
|
RUSTIC_DARK_COLORS,
|
|
64
70
|
RUSTIC_LIGHT_COLORS,
|
|
71
|
+
SAGE_DARK_COLORS,
|
|
72
|
+
SAGE_LIGHT_COLORS,
|
|
65
73
|
SAND_DARK_COLORS,
|
|
66
74
|
SAND_LIGHT_COLORS,
|
|
67
75
|
SKIN_LAYER_SLOTS,
|
|
@@ -69,6 +77,8 @@ export {
|
|
|
69
77
|
SKIN_TARGET_SLOTS,
|
|
70
78
|
SLATE_DARK_COLORS,
|
|
71
79
|
SLATE_LIGHT_COLORS,
|
|
80
|
+
STONE_DARK_COLORS,
|
|
81
|
+
STONE_LIGHT_COLORS,
|
|
72
82
|
StudioModeProvider,
|
|
73
83
|
THEME_PRESETS,
|
|
74
84
|
THEME_PRESET_LIST,
|
|
@@ -77,6 +87,8 @@ export {
|
|
|
77
87
|
TOFFEE_LIGHT_COLORS,
|
|
78
88
|
VIOLET_DARK_COLORS,
|
|
79
89
|
VIOLET_LIGHT_COLORS,
|
|
90
|
+
ZINC_DARK_COLORS,
|
|
91
|
+
ZINC_LIGHT_COLORS,
|
|
80
92
|
applyColorPresetToState,
|
|
81
93
|
applyThemeModeToState,
|
|
82
94
|
applyThemePresetToState,
|
|
@@ -43,3 +43,15 @@ export declare const TOFFEE_DARK_COLORS: ThemeColors;
|
|
|
43
43
|
export declare const TOFFEE_LIGHT_COLORS: ThemeColors;
|
|
44
44
|
export declare const VIOLET_DARK_COLORS: ThemeColors;
|
|
45
45
|
export declare const VIOLET_LIGHT_COLORS: ThemeColors;
|
|
46
|
+
export declare const ZINC_DARK_COLORS: ThemeColors;
|
|
47
|
+
export declare const ZINC_LIGHT_COLORS: ThemeColors;
|
|
48
|
+
export declare const STONE_DARK_COLORS: ThemeColors;
|
|
49
|
+
export declare const STONE_LIGHT_COLORS: ThemeColors;
|
|
50
|
+
export declare const GRAPHITE_DARK_COLORS: ThemeColors;
|
|
51
|
+
export declare const GRAPHITE_LIGHT_COLORS: ThemeColors;
|
|
52
|
+
export declare const MIST_DARK_COLORS: ThemeColors;
|
|
53
|
+
export declare const MIST_LIGHT_COLORS: ThemeColors;
|
|
54
|
+
export declare const SAGE_DARK_COLORS: ThemeColors;
|
|
55
|
+
export declare const SAGE_LIGHT_COLORS: ThemeColors;
|
|
56
|
+
export declare const LINEN_DARK_COLORS: ThemeColors;
|
|
57
|
+
export declare const LINEN_LIGHT_COLORS: ThemeColors;
|