@cube-dev/ui-kit 0.117.0 → 0.119.0
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/dist/CHANGELOG.md +32 -0
- package/dist/_internal/hooks/use-chained-callback.js +1 -1
- package/dist/_internal/hooks/use-debounced-value.js +1 -1
- package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
- package/dist/_internal/hooks/use-event.js +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +1 -1
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
- package/dist/_internal/hooks/use-warn.js +1 -1
- package/dist/components/Block.d.ts +1 -2
- package/dist/components/Block.js +2 -5
- package/dist/components/Block.js.map +1 -1
- package/dist/components/CollectionItem.js +1 -1
- package/dist/components/GlobalStyles.js +2 -57
- package/dist/components/GlobalStyles.js.map +1 -1
- package/dist/components/GridProvider.d.ts +1 -2
- package/dist/components/GridProvider.js +2 -3
- package/dist/components/GridProvider.js.map +1 -1
- package/dist/components/HiddenInput.js +2 -2
- package/dist/components/HiddenInput.js.map +1 -1
- package/dist/components/Root.d.ts +1 -2
- package/dist/components/Root.js +2 -6
- package/dist/components/Root.js.map +1 -1
- package/dist/components/actions/Action/Action.d.ts +1 -2
- package/dist/components/actions/Action/Action.js +2 -4
- package/dist/components/actions/Action/Action.js.map +1 -1
- package/dist/components/actions/Banner/Banner.d.ts +1 -1
- package/dist/components/actions/Banner/Banner.js +5 -5
- package/dist/components/actions/Banner/Banner.js.map +1 -1
- package/dist/components/actions/Button/Button.d.ts +2 -1769
- package/dist/components/actions/Button/Button.js +2 -4
- package/dist/components/actions/Button/Button.js.map +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +2 -2
- package/dist/components/actions/ButtonGroup/ButtonGroup.js.map +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.d.ts +1 -3
- package/dist/components/actions/CommandMenu/CommandMenu.js +2 -4
- package/dist/components/actions/CommandMenu/CommandMenu.js.map +1 -1
- package/dist/components/actions/CommandMenu/styled.js +3 -3
- package/dist/components/actions/CommandMenu/styled.js.map +1 -1
- package/dist/components/actions/ItemAction/ItemAction.d.ts +1 -3
- package/dist/components/actions/ItemAction/ItemAction.js +2 -2
- package/dist/components/actions/ItemAction/ItemAction.js.map +1 -1
- package/dist/components/actions/ItemActionContext.js +1 -1
- package/dist/components/actions/ItemButton/ItemButton.d.ts +1 -2
- package/dist/components/actions/ItemButton/ItemButton.js +2 -2
- package/dist/components/actions/ItemButton/ItemButton.js.map +1 -1
- package/dist/components/actions/Link/Link.js +1 -1
- package/dist/components/actions/Menu/Menu.d.ts +1 -3
- package/dist/components/actions/Menu/Menu.js +2 -4
- package/dist/components/actions/Menu/Menu.js.map +1 -1
- package/dist/components/actions/Menu/MenuItem.d.ts +1 -2
- package/dist/components/actions/Menu/MenuItem.js +1 -1
- package/dist/components/actions/Menu/MenuItem.js.map +1 -1
- package/dist/components/actions/Menu/MenuSection.d.ts +1 -2
- package/dist/components/actions/Menu/MenuSection.js +1 -1
- package/dist/components/actions/Menu/MenuSection.js.map +1 -1
- package/dist/components/actions/Menu/MenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/actions/Menu/context.js +1 -1
- package/dist/components/actions/Menu/styled.js +2 -2
- package/dist/components/actions/Menu/styled.js.map +1 -1
- package/dist/components/actions/index.js +1 -1
- package/dist/components/actions/use-action.d.ts +1 -2
- package/dist/components/actions/use-action.js +2 -2
- package/dist/components/actions/use-action.js.map +1 -1
- package/dist/components/actions/use-anchored-menu.js +1 -1
- package/dist/components/actions/use-context-menu.js +1 -1
- package/dist/components/content/ActiveZone/ActiveZone.d.ts +1 -2
- package/dist/components/content/ActiveZone/ActiveZone.js +2 -5
- package/dist/components/content/ActiveZone/ActiveZone.js.map +1 -1
- package/dist/components/content/Alert/Alert.js +2 -2
- package/dist/components/content/Alert/Alert.js.map +1 -1
- package/dist/components/content/Alert/types.d.ts +1 -2
- package/dist/components/content/Alert/use-alert.js +2 -4
- package/dist/components/content/Alert/use-alert.js.map +1 -1
- package/dist/components/content/Avatar/Avatar.d.ts +1 -3
- package/dist/components/content/Avatar/Avatar.js +2 -5
- package/dist/components/content/Avatar/Avatar.js.map +1 -1
- package/dist/components/content/Badge/Badge.js +2 -2
- package/dist/components/content/Badge/Badge.js.map +1 -1
- package/dist/components/content/Card/Card.d.ts +1 -2
- package/dist/components/content/Card/Card.js +2 -5
- package/dist/components/content/Card/Card.js.map +1 -1
- package/dist/components/content/Content.d.ts +1 -2
- package/dist/components/content/Content.js +2 -5
- package/dist/components/content/Content.js.map +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.d.ts +1 -3
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +2 -4
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js.map +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.js +2 -2
- package/dist/components/content/CopySnippet/CopySnippet.js.map +1 -1
- package/dist/components/content/Disclosure/Disclosure.d.ts +1 -3
- package/dist/components/content/Disclosure/Disclosure.js +2 -4
- package/dist/components/content/Disclosure/Disclosure.js.map +1 -1
- package/dist/components/content/Divider.d.ts +1 -2
- package/dist/components/content/Divider.js +2 -4
- package/dist/components/content/Divider.js.map +1 -1
- package/dist/components/content/Footer.d.ts +1 -2
- package/dist/components/content/Footer.js +2 -5
- package/dist/components/content/Footer.js.map +1 -1
- package/dist/components/content/Header.d.ts +1 -2
- package/dist/components/content/Header.js +2 -5
- package/dist/components/content/Header.js.map +1 -1
- package/dist/components/content/HotKeys/HotKeys.d.ts +1 -2
- package/dist/components/content/HotKeys/HotKeys.js +2 -5
- package/dist/components/content/HotKeys/HotKeys.js.map +1 -1
- package/dist/components/content/Item/Item.d.ts +1 -3
- package/dist/components/content/Item/Item.js +2 -3
- package/dist/components/content/Item/Item.js.map +1 -1
- package/dist/components/content/ItemBadge/ItemBadge.d.ts +1 -2
- package/dist/components/content/ItemBadge/ItemBadge.js +2 -2
- package/dist/components/content/ItemBadge/ItemBadge.js.map +1 -1
- package/dist/components/content/Layout/GridLayout.d.ts +1 -2
- package/dist/components/content/Layout/GridLayout.js +2 -2
- package/dist/components/content/Layout/GridLayout.js.map +1 -1
- package/dist/components/content/Layout/Layout.d.ts +1 -3
- package/dist/components/content/Layout/Layout.js +3 -7
- package/dist/components/content/Layout/Layout.js.map +1 -1
- package/dist/components/content/Layout/LayoutBlock.js +2 -2
- package/dist/components/content/Layout/LayoutBlock.js.map +1 -1
- package/dist/components/content/Layout/LayoutCenter.js +2 -2
- package/dist/components/content/Layout/LayoutCenter.js.map +1 -1
- package/dist/components/content/Layout/LayoutContainer.d.ts +1 -3
- package/dist/components/content/Layout/LayoutContainer.js +2 -6
- package/dist/components/content/Layout/LayoutContainer.js.map +1 -1
- package/dist/components/content/Layout/LayoutContent.d.ts +1 -2
- package/dist/components/content/Layout/LayoutContent.js +2 -6
- package/dist/components/content/Layout/LayoutContent.js.map +1 -1
- package/dist/components/content/Layout/LayoutContext.js +1 -1
- package/dist/components/content/Layout/LayoutFlex.js +2 -2
- package/dist/components/content/Layout/LayoutFlex.js.map +1 -1
- package/dist/components/content/Layout/LayoutFooter.js +2 -2
- package/dist/components/content/Layout/LayoutFooter.js.map +1 -1
- package/dist/components/content/Layout/LayoutGrid.d.ts +1 -2
- package/dist/components/content/Layout/LayoutGrid.js +2 -2
- package/dist/components/content/Layout/LayoutGrid.js.map +1 -1
- package/dist/components/content/Layout/LayoutHeader.js +2 -2
- package/dist/components/content/Layout/LayoutHeader.js.map +1 -1
- package/dist/components/content/Layout/LayoutPane.d.ts +1 -3
- package/dist/components/content/Layout/LayoutPane.js +2 -6
- package/dist/components/content/Layout/LayoutPane.js.map +1 -1
- package/dist/components/content/Layout/LayoutPanel.d.ts +1 -3
- package/dist/components/content/Layout/LayoutPanel.js +2 -6
- package/dist/components/content/Layout/LayoutPanel.js.map +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.d.ts +1 -2
- package/dist/components/content/Layout/LayoutPanelHeader.js +2 -4
- package/dist/components/content/Layout/LayoutPanelHeader.js.map +1 -1
- package/dist/components/content/Layout/LayoutToolbar.js +2 -2
- package/dist/components/content/Layout/LayoutToolbar.js.map +1 -1
- package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
- package/dist/components/content/Layout/index.js +1 -1
- package/dist/components/content/Layout/utils.js +1 -1
- package/dist/components/content/Paragraph.d.ts +1 -2
- package/dist/components/content/Paragraph.js +2 -3
- package/dist/components/content/Paragraph.js.map +1 -1
- package/dist/components/content/Placeholder/Placeholder.d.ts +1 -3
- package/dist/components/content/Placeholder/Placeholder.js +2 -6
- package/dist/components/content/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/content/PrismCode/PrismCode.d.ts +1 -3
- package/dist/components/content/PrismCode/PrismCode.js +2 -3
- package/dist/components/content/PrismCode/PrismCode.js.map +1 -1
- package/dist/components/content/PrismCode/prismSetup.js +1 -1
- package/dist/components/content/PrismDiffCode/PrismDiffCode.d.ts +1 -3
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js.map +1 -1
- package/dist/components/content/Result/Result.d.ts +1 -2
- package/dist/components/content/Result/Result.js +2 -5
- package/dist/components/content/Result/Result.js.map +1 -1
- package/dist/components/content/Skeleton/Skeleton.d.ts +1 -2
- package/dist/components/content/Skeleton/Skeleton.js +1 -1
- package/dist/components/content/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/content/Tag/Tag.d.ts +1 -2
- package/dist/components/content/Tag/Tag.js +2 -2
- package/dist/components/content/Tag/Tag.js.map +1 -1
- package/dist/components/content/Text.d.ts +128 -159
- package/dist/components/content/Text.js +2 -5
- package/dist/components/content/Text.js.map +1 -1
- package/dist/components/content/TextItem/TextItem.d.ts +1 -2
- package/dist/components/content/TextItem/TextItem.js +2 -5
- package/dist/components/content/TextItem/TextItem.js.map +1 -1
- package/dist/components/content/Title.d.ts +1 -2
- package/dist/components/content/Title.js +2 -5
- package/dist/components/content/Title.js.map +1 -1
- package/dist/components/content/highlightText.js +1 -1
- package/dist/components/content/highlightText.js.map +1 -1
- package/dist/components/content/use-auto-tooltip.d.ts +1 -1
- package/dist/components/content/use-auto-tooltip.js +1 -1
- package/dist/components/content/use-auto-tooltip.js.map +1 -1
- package/dist/components/fields/Checkbox/Checkbox.d.ts +1 -3
- package/dist/components/fields/Checkbox/Checkbox.js +2 -5
- package/dist/components/fields/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.d.ts +1 -3
- package/dist/components/fields/Checkbox/CheckboxGroup.js +2 -4
- package/dist/components/fields/Checkbox/CheckboxGroup.js.map +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ComboBox/ComboBox.d.ts +1 -3
- package/dist/components/fields/ComboBox/ComboBox.js +2 -4
- package/dist/components/fields/ComboBox/ComboBox.js.map +1 -1
- package/dist/components/fields/DatePicker/DateInput.d.ts +1 -3
- package/dist/components/fields/DatePicker/DateInput.js +2 -3
- package/dist/components/fields/DatePicker/DateInput.js.map +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +2 -4
- package/dist/components/fields/DatePicker/DateInputBase.js.map +1 -1
- package/dist/components/fields/DatePicker/DatePicker.d.ts +1 -3
- package/dist/components/fields/DatePicker/DatePicker.js +2 -3
- package/dist/components/fields/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +2 -2
- package/dist/components/fields/DatePicker/DatePickerButton.js.map +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +2 -2
- package/dist/components/fields/DatePicker/DatePickerElement.js.map +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +2 -2
- package/dist/components/fields/DatePicker/DatePickerInput.js.map +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +2 -2
- package/dist/components/fields/DatePicker/DatePickerSegment.js.map +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.d.ts +1 -3
- package/dist/components/fields/DatePicker/DateRangePicker.js +2 -4
- package/dist/components/fields/DatePicker/DateRangePicker.js.map +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.d.ts +1 -3
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +2 -4
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js.map +1 -1
- package/dist/components/fields/DatePicker/TimeInput.d.ts +1 -3
- package/dist/components/fields/DatePicker/TimeInput.js +2 -3
- package/dist/components/fields/DatePicker/TimeInput.js.map +1 -1
- package/dist/components/fields/DatePicker/intl.js +1 -1
- package/dist/components/fields/DatePicker/parseDate.js +1 -1
- package/dist/components/fields/DatePicker/props.js +1 -1
- package/dist/components/fields/DatePicker/utils.js +1 -1
- package/dist/components/fields/FileInput/FileInput.d.ts +1 -3
- package/dist/components/fields/FileInput/FileInput.js +2 -4
- package/dist/components/fields/FileInput/FileInput.js.map +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.d.ts +1 -2
- package/dist/components/fields/FilterListBox/FilterListBox.js +5 -7
- package/dist/components/fields/FilterListBox/FilterListBox.js.map +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.d.ts +1 -3
- package/dist/components/fields/FilterPicker/FilterPicker.js +2 -5
- package/dist/components/fields/FilterPicker/FilterPicker.js.map +1 -1
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/ListBox.d.ts +1 -3
- package/dist/components/fields/ListBox/ListBox.js +2 -5
- package/dist/components/fields/ListBox/ListBox.js.map +1 -1
- package/dist/components/fields/NumberInput/NumberInput.js +2 -2
- package/dist/components/fields/NumberInput/NumberInput.js.map +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +2 -2
- package/dist/components/fields/NumberInput/StepButton.js.map +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/fields/Picker/Picker.d.ts +1 -3
- package/dist/components/fields/Picker/Picker.js +2 -5
- package/dist/components/fields/Picker/Picker.js.map +1 -1
- package/dist/components/fields/RadioGroup/Radio.d.ts +1 -2
- package/dist/components/fields/RadioGroup/Radio.js +2 -5
- package/dist/components/fields/RadioGroup/Radio.js.map +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.d.ts +1 -3
- package/dist/components/fields/RadioGroup/RadioGroup.js +2 -4
- package/dist/components/fields/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +1 -1
- package/dist/components/fields/Select/Select.d.ts +834 -836
- package/dist/components/fields/Select/Select.js +2 -4
- package/dist/components/fields/Select/Select.js.map +1 -1
- package/dist/components/fields/Slider/Gradation.js +1 -1
- package/dist/components/fields/Slider/HueSlider.js +1 -1
- package/dist/components/fields/Slider/HueSlider.js.map +1 -1
- package/dist/components/fields/Slider/RangeSlider.js +1 -1
- package/dist/components/fields/Slider/Slider.d.ts +1 -3
- package/dist/components/fields/Slider/Slider.js +2 -3
- package/dist/components/fields/Slider/Slider.js.map +1 -1
- package/dist/components/fields/Slider/SliderBase.js +2 -4
- package/dist/components/fields/Slider/SliderBase.js.map +1 -1
- package/dist/components/fields/Slider/SliderThumb.js +1 -1
- package/dist/components/fields/Slider/SliderThumb.js.map +1 -1
- package/dist/components/fields/Slider/SliderTrack.js +1 -1
- package/dist/components/fields/Slider/SliderTrack.js.map +1 -1
- package/dist/components/fields/Slider/elements.js +2 -2
- package/dist/components/fields/Slider/elements.js.map +1 -1
- package/dist/components/fields/Slider/index.js +1 -1
- package/dist/components/fields/Slider/types.d.ts +1 -3
- package/dist/components/fields/Switch/Switch.d.ts +1 -3
- package/dist/components/fields/Switch/Switch.js +2 -4
- package/dist/components/fields/Switch/Switch.js.map +1 -1
- package/dist/components/fields/TextArea/TextArea.js +1 -1
- package/dist/components/fields/TextInput/TextInput.js +1 -1
- package/dist/components/fields/TextInput/TextInputBase.d.ts +1 -3
- package/dist/components/fields/TextInput/TextInputBase.js +3 -5
- package/dist/components/fields/TextInput/TextInputBase.js.map +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.js +2 -2
- package/dist/components/form/FieldWrapper/FieldWrapper.js.map +1 -1
- package/dist/components/form/FieldWrapper/extract-field-wrapper-props.js +1 -1
- package/dist/components/form/FieldWrapper/types.d.ts +1 -3
- package/dist/components/form/Form/Field.d.ts +1 -2
- package/dist/components/form/Form/Field.js +1 -1
- package/dist/components/form/Form/Field.js.map +1 -1
- package/dist/components/form/Form/Form.d.ts +1 -3
- package/dist/components/form/Form/Form.js +2 -5
- package/dist/components/form/Form/Form.js.map +1 -1
- package/dist/components/form/Form/ResetButton/ResetButton.js +1 -1
- package/dist/components/form/Form/SubmitButton/SubmitButton.js +1 -1
- package/dist/components/form/Form/SubmitError.js +1 -1
- package/dist/components/form/Form/index.js +1 -1
- package/dist/components/form/Form/use-field/use-field-props.js +1 -1
- package/dist/components/form/Form/use-field/use-field.js +1 -1
- package/dist/components/form/Form/use-form.js +2 -2
- package/dist/components/form/Form/use-form.js.map +1 -1
- package/dist/components/form/Form/validation.js +1 -1
- package/dist/components/form/Label.d.ts +1 -3
- package/dist/components/form/Label.js +2 -5
- package/dist/components/form/Label.js.map +1 -1
- package/dist/components/form/wrapper.d.ts +1 -2
- package/dist/components/form/wrapper.js +1 -1
- package/dist/components/form/wrapper.js.map +1 -1
- package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
- package/dist/components/helpers/IconSwitch/IconSwitch.js +2 -2
- package/dist/components/helpers/IconSwitch/IconSwitch.js.map +1 -1
- package/dist/components/layout/Flex.d.ts +1 -2
- package/dist/components/layout/Flex.js +2 -5
- package/dist/components/layout/Flex.js.map +1 -1
- package/dist/components/layout/Flow.d.ts +1 -2
- package/dist/components/layout/Flow.js +2 -5
- package/dist/components/layout/Flow.js.map +1 -1
- package/dist/components/layout/Grid.d.ts +1 -2
- package/dist/components/layout/Grid.js +2 -5
- package/dist/components/layout/Grid.js.map +1 -1
- package/dist/components/layout/Panel.d.ts +1 -3
- package/dist/components/layout/Panel.js +2 -3
- package/dist/components/layout/Panel.js.map +1 -1
- package/dist/components/layout/Prefix.d.ts +1 -2
- package/dist/components/layout/Prefix.js +2 -5
- package/dist/components/layout/Prefix.js.map +1 -1
- package/dist/components/layout/ResizablePanel.d.ts +1 -2
- package/dist/components/layout/ResizablePanel.js +2 -2
- package/dist/components/layout/ResizablePanel.js.map +1 -1
- package/dist/components/layout/Space.d.ts +1 -2
- package/dist/components/layout/Space.js +2 -5
- package/dist/components/layout/Space.js.map +1 -1
- package/dist/components/layout/Suffix.d.ts +1 -2
- package/dist/components/layout/Suffix.js +2 -5
- package/dist/components/layout/Suffix.js.map +1 -1
- package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
- package/dist/components/navigation/Tabs/EditableTitle.js +1 -1
- package/dist/components/navigation/Tabs/TabButton.js +1 -1
- package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
- package/dist/components/navigation/Tabs/TabPanel.js +1 -1
- package/dist/components/navigation/Tabs/TabPanel.js.map +1 -1
- package/dist/components/navigation/Tabs/TabPicker.js +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +2 -4
- package/dist/components/navigation/Tabs/Tabs.js.map +1 -1
- package/dist/components/navigation/Tabs/TabsAction.js +2 -2
- package/dist/components/navigation/Tabs/TabsAction.js.map +1 -1
- package/dist/components/navigation/Tabs/TabsContext.js +1 -1
- package/dist/components/navigation/Tabs/styled.js +2 -2
- package/dist/components/navigation/Tabs/styled.js.map +1 -1
- package/dist/components/navigation/Tabs/types.d.ts +1 -3
- package/dist/components/navigation/Tabs/types.js +1 -1
- package/dist/components/navigation/Tabs/types.js.map +1 -1
- package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-indicator.js +1 -1
- package/dist/components/organisms/FileTabs/FileTabs.d.ts +1 -2
- package/dist/components/organisms/FileTabs/FileTabs.js +2 -2
- package/dist/components/organisms/FileTabs/FileTabs.js.map +1 -1
- package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
- package/dist/components/other/Calendar/Calendar.js +2 -2
- package/dist/components/other/Calendar/Calendar.js.map +1 -1
- package/dist/components/other/Calendar/CalendarCell.js +2 -2
- package/dist/components/other/Calendar/CalendarCell.js.map +1 -1
- package/dist/components/other/Calendar/CalendarGrid.js +2 -2
- package/dist/components/other/Calendar/CalendarGrid.js.map +1 -1
- package/dist/components/other/Calendar/RangeCalendar.js +2 -2
- package/dist/components/other/Calendar/RangeCalendar.js.map +1 -1
- package/dist/components/other/CloudLogo/CloudLogo.js +2 -2
- package/dist/components/other/CloudLogo/CloudLogo.js.map +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/dist/components/overlays/AlertDialog/types.d.ts +1 -1
- package/dist/components/overlays/Dialog/Dialog.d.ts +1 -3
- package/dist/components/overlays/Dialog/Dialog.js +2 -4
- package/dist/components/overlays/Dialog/Dialog.js.map +1 -1
- package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
- package/dist/components/overlays/Dialog/DialogForm.js +1 -1
- package/dist/components/overlays/Dialog/DialogTrigger.d.ts +1 -2
- package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
- package/dist/components/overlays/Dialog/DialogTrigger.js.map +1 -1
- package/dist/components/overlays/Dialog/context.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
- package/dist/components/overlays/Modal/Modal.d.ts +1 -1
- package/dist/components/overlays/Modal/Modal.js +2 -2
- package/dist/components/overlays/Modal/Modal.js.map +1 -1
- package/dist/components/overlays/Modal/OpenTransition.js +1 -1
- package/dist/components/overlays/Modal/Overlay.js +1 -1
- package/dist/components/overlays/Modal/Overlay.js.map +1 -1
- package/dist/components/overlays/Modal/Popover.d.ts +1 -1
- package/dist/components/overlays/Modal/Popover.js +2 -2
- package/dist/components/overlays/Modal/Popover.js.map +1 -1
- package/dist/components/overlays/Modal/Tray.d.ts +1 -1
- package/dist/components/overlays/Modal/Tray.js +2 -2
- package/dist/components/overlays/Modal/Tray.js.map +1 -1
- package/dist/components/overlays/Modal/Underlay.js +2 -2
- package/dist/components/overlays/Modal/Underlay.js.map +1 -1
- package/dist/components/overlays/Notifications/Notification.js +2 -2
- package/dist/components/overlays/Notifications/Notification.js.map +1 -1
- package/dist/components/overlays/Notifications/NotificationAction.js +10 -4
- package/dist/components/overlays/Notifications/NotificationAction.js.map +1 -1
- package/dist/components/overlays/Notifications/NotificationCard.d.ts +5 -2
- package/dist/components/overlays/Notifications/NotificationCard.js +9 -7
- package/dist/components/overlays/Notifications/NotificationCard.js.map +1 -1
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.d.ts +3 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +8 -7
- package/dist/components/overlays/Notifications/NotificationItem.js.map +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +6 -5
- package/dist/components/overlays/Notifications/OverlayContainer.js.map +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +2 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js.map +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +3 -3
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js.map +1 -1
- package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
- package/dist/components/overlays/Notifications/index.js +1 -1
- package/dist/components/overlays/Notifications/types.d.ts +4 -2
- package/dist/components/overlays/Notifications/use-notification-state.js +48 -2
- package/dist/components/overlays/Notifications/use-notification-state.js.map +1 -1
- package/dist/components/overlays/Notifications/use-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js +8 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js.map +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +2 -2
- package/dist/components/overlays/Toast/ToastItem.js.map +1 -1
- package/dist/components/overlays/Toast/index.js +1 -1
- package/dist/components/overlays/Toast/types.d.ts +2 -0
- package/dist/components/overlays/Toast/useProgressToast.js +49 -21
- package/dist/components/overlays/Toast/useProgressToast.js.map +1 -1
- package/dist/components/overlays/Toast/useToast.js +2 -2
- package/dist/components/overlays/Tooltip/Tooltip.d.ts +1 -3
- package/dist/components/overlays/Tooltip/Tooltip.js +2 -4
- package/dist/components/overlays/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.d.ts +1 -2
- package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.js.map +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
- package/dist/components/overlays/Tooltip/context.js +1 -1
- package/dist/components/overlays/Tooltip/context.js.map +1 -1
- package/dist/components/portal/Portal.js +1 -1
- package/dist/components/portal/PortalProvider.js +1 -1
- package/dist/components/portal/usePortal.js +1 -1
- package/dist/components/shared/InvalidIcon.js +1 -1
- package/dist/components/shared/ValidIcon.js +1 -1
- package/dist/components/status/LoadingAnimation/LoadingAnimation.js +2 -2
- package/dist/components/status/LoadingAnimation/LoadingAnimation.js.map +1 -1
- package/dist/components/status/Spin/Cube.js +2 -2
- package/dist/components/status/Spin/Cube.js.map +1 -1
- package/dist/components/status/Spin/InternalSpinner.js +2 -2
- package/dist/components/status/Spin/InternalSpinner.js.map +1 -1
- package/dist/components/status/Spin/Spin.js +2 -2
- package/dist/components/status/Spin/Spin.js.map +1 -1
- package/dist/components/status/Spin/SpinsContainer.js +2 -2
- package/dist/components/status/Spin/SpinsContainer.js.map +1 -1
- package/dist/components/status/Spin/types.d.ts +1 -2
- package/dist/data/item-themes.d.ts +1 -1
- package/dist/data/item-themes.js +1 -1
- package/dist/data/item-themes.js.map +1 -1
- package/dist/data/themes.js +1 -1
- package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
- package/dist/icons/AdjustmentsIcon.js +1 -1
- package/dist/icons/AiIcon.js +1 -1
- package/dist/icons/AreaChartIcon.js +1 -1
- package/dist/icons/BackwardIcon.js +1 -1
- package/dist/icons/BarChartIcon.js +1 -1
- package/dist/icons/BellFilledIcon.js +1 -1
- package/dist/icons/BellIcon.js +1 -1
- package/dist/icons/BooleanIcon.js +1 -1
- package/dist/icons/CalendarEditIcon.js +1 -1
- package/dist/icons/CalendarIcon.js +1 -1
- package/dist/icons/CaretDownIcon.js +1 -1
- package/dist/icons/CaretUpIcon.js +1 -1
- package/dist/icons/ChartAreaStackedIcon.js +1 -1
- package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarGroupedIcon.js +1 -1
- package/dist/icons/ChartBarHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarLineIcon.js +1 -1
- package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBoxPlot2Icon.js +1 -1
- package/dist/icons/ChartBoxPlotIcon.js +1 -1
- package/dist/icons/ChartBubbleIcon.js +1 -1
- package/dist/icons/ChartDonut2Icon.js +1 -1
- package/dist/icons/ChartFunnelIcon.js +1 -1
- package/dist/icons/ChartHeatmapIcon.js +1 -1
- package/dist/icons/ChartKPIIcon.js +1 -1
- package/dist/icons/ChartPie2Icon.js +1 -1
- package/dist/icons/ChartScatterIcon.js +1 -1
- package/dist/icons/CheckCircleFilledIcon.js +1 -1
- package/dist/icons/CheckCircleIcon.js +1 -1
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CircleFilledIcon.js +1 -1
- package/dist/icons/ClearIcon.js +1 -1
- package/dist/icons/CloseCircleFilledIcon.js +1 -1
- package/dist/icons/CloseCircleIcon.js +1 -1
- package/dist/icons/CloseIcon.js +1 -1
- package/dist/icons/CodeIcon.js +1 -1
- package/dist/icons/ColumnTotalIcon.js +1 -1
- package/dist/icons/CopyIcon.js +1 -1
- package/dist/icons/CountIcon.js +1 -1
- package/dist/icons/CubeIcon.js +1 -1
- package/dist/icons/CubePauseIcon.js +1 -1
- package/dist/icons/CubePlayIcon.js +1 -1
- package/dist/icons/CurrencyDollarIcon.js +1 -1
- package/dist/icons/DangerIcon.js +1 -1
- package/dist/icons/DashboardIcon.js +1 -1
- package/dist/icons/DatabaseIcon.js +1 -1
- package/dist/icons/DecimalDecreaseIcon.js +1 -1
- package/dist/icons/DecimalIncreaseIcon.js +1 -1
- package/dist/icons/DirectionIcon.js +2 -2
- package/dist/icons/DirectionIcon.js.map +1 -1
- package/dist/icons/DonutIcon.js +1 -1
- package/dist/icons/DownIcon.js +1 -1
- package/dist/icons/EditIcon.js +1 -1
- package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
- package/dist/icons/ExclamationCircleIcon.js +1 -1
- package/dist/icons/ExclamationIcon.js +1 -1
- package/dist/icons/EyeIcon.js +1 -1
- package/dist/icons/EyeInvisibleIcon.js +1 -1
- package/dist/icons/FilterIcon.js +1 -1
- package/dist/icons/FolderFilledIcon.js +1 -1
- package/dist/icons/FolderIcon.js +1 -1
- package/dist/icons/FolderOpenFilledIcon.js +1 -1
- package/dist/icons/FolderOpenIcon.js +1 -1
- package/dist/icons/ForwardIcon.js +1 -1
- package/dist/icons/HierarchyIcon.js +1 -1
- package/dist/icons/HierarchyOpenIcon.js +1 -1
- package/dist/icons/Icon.d.ts +1 -3
- package/dist/icons/Icon.js +2 -3
- package/dist/icons/Icon.js.map +1 -1
- package/dist/icons/InfoCircleIcon.js +1 -1
- package/dist/icons/InfoIcon.js +1 -1
- package/dist/icons/KeyIcon.js +1 -1
- package/dist/icons/LeftIcon.js +1 -1
- package/dist/icons/LineChartIcon.js +1 -1
- package/dist/icons/LoadingIcon.js +1 -1
- package/dist/icons/LockFilledIcon.js +1 -1
- package/dist/icons/LockIcon.js +1 -1
- package/dist/icons/MoreIcon.js +1 -1
- package/dist/icons/NotAllowedIcon.js +1 -1
- package/dist/icons/Number123Icon.js +1 -1
- package/dist/icons/NumberIcon.js +1 -1
- package/dist/icons/PauseCircleFilledIcon.js +1 -1
- package/dist/icons/PauseCircleIcon.js +1 -1
- package/dist/icons/PauseIcon.js +1 -1
- package/dist/icons/PercentageIcon.js +1 -1
- package/dist/icons/PieChartIcon.js +1 -1
- package/dist/icons/PlayCircleIcon.js +1 -1
- package/dist/icons/PlayIcon.js +1 -1
- package/dist/icons/PlusIcon.js +1 -1
- package/dist/icons/ProgressBarIcon.js +1 -1
- package/dist/icons/ReloadIcon.js +1 -1
- package/dist/icons/ReportIcon.js +1 -1
- package/dist/icons/ReturnIcon.js +1 -1
- package/dist/icons/RightIcon.js +1 -1
- package/dist/icons/RowTotalsIcon.js +1 -1
- package/dist/icons/SchemeIcon.js +1 -1
- package/dist/icons/SearchIcon.js +1 -1
- package/dist/icons/SemanticQueryIcon.js +1 -1
- package/dist/icons/SettingsIcon.js +1 -1
- package/dist/icons/ShieldFilledIcon.js +1 -1
- package/dist/icons/ShieldIcon.js +1 -1
- package/dist/icons/SlashIcon.js +1 -1
- package/dist/icons/SparklesIcon.js +1 -1
- package/dist/icons/SqlIcon.js +1 -1
- package/dist/icons/StatsIcon.js +1 -1
- package/dist/icons/StopIcon.js +1 -1
- package/dist/icons/StringIcon.js +1 -1
- package/dist/icons/SubtotalsIcon.js +1 -1
- package/dist/icons/SwitchIcon.js +1 -1
- package/dist/icons/TableIcon.js +1 -1
- package/dist/icons/ThumbsDownIcon.js +1 -1
- package/dist/icons/ThumbsUpIcon.js +1 -1
- package/dist/icons/ThunderboltCrossedIcon.js +1 -1
- package/dist/icons/ThunderboltFilledIcon.js +1 -1
- package/dist/icons/ThunderboltIcon.js +1 -1
- package/dist/icons/TimeIcon.js +1 -1
- package/dist/icons/TrashIcon.js +1 -1
- package/dist/icons/UnlockIcon.js +1 -1
- package/dist/icons/UpIcon.js +1 -1
- package/dist/icons/UserGroupIcon.js +1 -1
- package/dist/icons/UserIcon.js +1 -1
- package/dist/icons/UserLockIcon.js +1 -1
- package/dist/icons/ViewIcon.js +1 -1
- package/dist/icons/WarningFilledIcon.js +1 -1
- package/dist/icons/WarningIcon.js +1 -1
- package/dist/icons/wrap-icon.js +1 -1
- package/dist/index.d.ts +4 -35
- package/dist/index.js +5 -31
- package/dist/index.js.map +1 -1
- package/dist/provider.d.ts +1 -2
- package/dist/provider.js +1 -1
- package/dist/provider.js.map +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/shared/form.d.ts +1 -3
- package/dist/tokens/base.d.ts +1 -1
- package/dist/tokens/base.js +1 -1
- package/dist/tokens/base.js.map +1 -1
- package/dist/tokens/colors.d.ts +1 -1
- package/dist/tokens/colors.js +1 -1
- package/dist/tokens/colors.js.map +1 -1
- package/dist/tokens/index.d.ts +1 -2
- package/dist/tokens/index.js +2 -3
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/layout.d.ts +1 -1
- package/dist/tokens/layout.js +1 -1
- package/dist/tokens/layout.js.map +1 -1
- package/dist/tokens/shadows.d.ts +1 -1
- package/dist/tokens/shadows.js +1 -1
- package/dist/tokens/shadows.js.map +1 -1
- package/dist/tokens/sizes.d.ts +1 -1
- package/dist/tokens/sizes.js +1 -1
- package/dist/tokens/sizes.js.map +1 -1
- package/dist/tokens/spacing.d.ts +1 -1
- package/dist/tokens/spacing.js +1 -1
- package/dist/tokens/spacing.js.map +1 -1
- package/dist/utils/ResizeSensor.js +1 -1
- package/dist/utils/index.d.ts +1 -2
- package/dist/utils/is-dev-env.js +5 -10
- package/dist/utils/is-dev-env.js.map +1 -1
- package/dist/utils/modules.js +1 -1
- package/dist/utils/promise.js +1 -1
- package/dist/utils/raf.js +1 -1
- package/dist/utils/random.js +1 -1
- package/dist/utils/range.js +1 -1
- package/dist/utils/react/RenderCache.js +1 -1
- package/dist/utils/react/Slots.js +1 -1
- package/dist/utils/react/chain.js +1 -1
- package/dist/utils/react/forwardRefWithGenerics.js +1 -1
- package/dist/utils/react/index.d.ts +3 -3
- package/dist/utils/react/index.js +20 -0
- package/dist/utils/react/interactions.js +1 -1
- package/dist/utils/react/isTextOnly.js +1 -1
- package/dist/utils/react/mapProps.js +1 -1
- package/dist/utils/react/mergeProps.d.ts +1 -2
- package/dist/utils/react/mergeProps.js +2 -2
- package/dist/utils/react/mergeProps.js.map +1 -1
- package/dist/utils/react/nullableValue.d.ts +1 -2
- package/dist/utils/react/nullableValue.js +1 -1
- package/dist/utils/react/nullableValue.js.map +1 -1
- package/dist/utils/react/resolveIcon.d.ts +1 -2
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/resolveIcon.js.map +1 -1
- package/dist/utils/react/sharedStore.js +1 -1
- package/dist/utils/react/useCombinedRefs.js +1 -1
- package/dist/utils/react/useControlledFocusVisible.js +1 -1
- package/dist/utils/react/useEventBus.js +1 -1
- package/dist/utils/react/useId.js +1 -1
- package/dist/utils/react/useIsDarwin.js +1 -1
- package/dist/utils/react/useKeySymbols.js +1 -1
- package/dist/utils/react/useLayoutEffect.js +1 -1
- package/dist/utils/react/useLocalStorage.js +1 -1
- package/dist/utils/react/useMergeStyles.d.ts +1 -2
- package/dist/utils/react/useMergeStyles.js +2 -2
- package/dist/utils/react/useMergeStyles.js.map +1 -1
- package/dist/utils/react/useQaProps.js +1 -1
- package/dist/utils/react/useViewportSize.js +1 -1
- package/dist/utils/react/wrapNodeIfPlain.js +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/version.js +2 -2
- package/package.json +4 -21
- package/dist/_virtual/_rolldown/runtime.js +0 -8
- package/dist/chunks/cacheKey.js +0 -71
- package/dist/chunks/cacheKey.js.map +0 -1
- package/dist/chunks/definitions.js +0 -261
- package/dist/chunks/definitions.js.map +0 -1
- package/dist/chunks/renderChunk.js +0 -68
- package/dist/chunks/renderChunk.js.map +0 -1
- package/dist/config.js +0 -232
- package/dist/config.js.map +0 -1
- package/dist/css-writer.d.ts +0 -46
- package/dist/css-writer.js +0 -75
- package/dist/css-writer.js.map +0 -1
- package/dist/extractor.d.ts +0 -25
- package/dist/extractor.js +0 -151
- package/dist/extractor.js.map +0 -1
- package/dist/injector/injector.js +0 -401
- package/dist/injector/injector.js.map +0 -1
- package/dist/injector/sheet-manager.js +0 -715
- package/dist/injector/sheet-manager.js.map +0 -1
- package/dist/injector/types.d.ts +0 -19
- package/dist/keyframes/index.js +0 -157
- package/dist/keyframes/index.js.map +0 -1
- package/dist/parser/classify.js +0 -320
- package/dist/parser/classify.js.map +0 -1
- package/dist/parser/const.js +0 -34
- package/dist/parser/const.js.map +0 -1
- package/dist/parser/lru.js +0 -110
- package/dist/parser/lru.js.map +0 -1
- package/dist/parser/parser.js +0 -117
- package/dist/parser/parser.js.map +0 -1
- package/dist/parser/tokenizer.js +0 -70
- package/dist/parser/tokenizer.js.map +0 -1
- package/dist/parser/types.d.ts +0 -38
- package/dist/parser/types.js +0 -47
- package/dist/parser/types.js.map +0 -1
- package/dist/pipeline/conditions.js +0 -378
- package/dist/pipeline/conditions.js.map +0 -1
- package/dist/pipeline/exclusive.js +0 -232
- package/dist/pipeline/exclusive.js.map +0 -1
- package/dist/pipeline/index.js +0 -633
- package/dist/pipeline/index.js.map +0 -1
- package/dist/pipeline/materialize.js +0 -822
- package/dist/pipeline/materialize.js.map +0 -1
- package/dist/pipeline/parseStateKey.js +0 -422
- package/dist/pipeline/parseStateKey.js.map +0 -1
- package/dist/pipeline/simplify.js +0 -558
- package/dist/pipeline/simplify.js.map +0 -1
- package/dist/plugins/okhsl-plugin.js +0 -346
- package/dist/plugins/okhsl-plugin.js.map +0 -1
- package/dist/plugins/types.d.ts +0 -52
- package/dist/properties/index.js +0 -142
- package/dist/properties/index.js.map +0 -1
- package/dist/states/index.js +0 -162
- package/dist/states/index.js.map +0 -1
- package/dist/styles/align.js +0 -15
- package/dist/styles/align.js.map +0 -1
- package/dist/styles/border.js +0 -115
- package/dist/styles/border.js.map +0 -1
- package/dist/styles/color.js +0 -24
- package/dist/styles/color.js.map +0 -1
- package/dist/styles/createStyle.js +0 -78
- package/dist/styles/createStyle.js.map +0 -1
- package/dist/styles/dimension.js +0 -100
- package/dist/styles/dimension.js.map +0 -1
- package/dist/styles/display.js +0 -68
- package/dist/styles/display.js.map +0 -1
- package/dist/styles/fade.js +0 -58
- package/dist/styles/fade.js.map +0 -1
- package/dist/styles/fill.js +0 -52
- package/dist/styles/fill.js.map +0 -1
- package/dist/styles/flow.js +0 -13
- package/dist/styles/flow.js.map +0 -1
- package/dist/styles/gap.js +0 -37
- package/dist/styles/gap.js.map +0 -1
- package/dist/styles/height.js +0 -21
- package/dist/styles/height.js.map +0 -1
- package/dist/styles/index.js +0 -10
- package/dist/styles/index.js.map +0 -1
- package/dist/styles/inset.js +0 -143
- package/dist/styles/inset.js.map +0 -1
- package/dist/styles/justify.js +0 -15
- package/dist/styles/justify.js.map +0 -1
- package/dist/styles/margin.js +0 -97
- package/dist/styles/margin.js.map +0 -1
- package/dist/styles/outline.js +0 -66
- package/dist/styles/outline.js.map +0 -1
- package/dist/styles/padding.js +0 -97
- package/dist/styles/padding.js.map +0 -1
- package/dist/styles/predefined.js +0 -233
- package/dist/styles/predefined.js.map +0 -1
- package/dist/styles/preset.js +0 -126
- package/dist/styles/preset.js.map +0 -1
- package/dist/styles/radius.js +0 -52
- package/dist/styles/radius.js.map +0 -1
- package/dist/styles/scrollbar.js +0 -109
- package/dist/styles/scrollbar.js.map +0 -1
- package/dist/styles/shadow.js +0 -28
- package/dist/styles/shadow.js.map +0 -1
- package/dist/styles/styledScrollbar.js +0 -39
- package/dist/styles/styledScrollbar.js.map +0 -1
- package/dist/styles/transition.js +0 -139
- package/dist/styles/transition.js.map +0 -1
- package/dist/styles/types.d.ts +0 -495
- package/dist/styles/width.js +0 -21
- package/dist/styles/width.js.map +0 -1
- package/dist/tasty/chunks/cacheKey.d.ts +0 -2
- package/dist/tasty/chunks/cacheKey.js +0 -71
- package/dist/tasty/chunks/cacheKey.js.map +0 -1
- package/dist/tasty/chunks/definitions.d.ts +0 -38
- package/dist/tasty/chunks/definitions.js +0 -261
- package/dist/tasty/chunks/definitions.js.map +0 -1
- package/dist/tasty/chunks/index.d.ts +0 -4
- package/dist/tasty/chunks/renderChunk.d.ts +0 -3
- package/dist/tasty/chunks/renderChunk.js +0 -68
- package/dist/tasty/chunks/renderChunk.js.map +0 -1
- package/dist/tasty/config.d.ts +0 -283
- package/dist/tasty/config.js +0 -401
- package/dist/tasty/config.js.map +0 -1
- package/dist/tasty/debug.d.ts +0 -200
- package/dist/tasty/debug.js +0 -734
- package/dist/tasty/debug.js.map +0 -1
- package/dist/tasty/hooks/index.d.ts +0 -6
- package/dist/tasty/hooks/useGlobalStyles.d.ts +0 -28
- package/dist/tasty/hooks/useGlobalStyles.js +0 -57
- package/dist/tasty/hooks/useGlobalStyles.js.map +0 -1
- package/dist/tasty/hooks/useKeyframes.d.ts +0 -57
- package/dist/tasty/hooks/useKeyframes.js +0 -55
- package/dist/tasty/hooks/useKeyframes.js.map +0 -1
- package/dist/tasty/hooks/useProperty.d.ts +0 -80
- package/dist/tasty/hooks/useProperty.js +0 -92
- package/dist/tasty/hooks/useProperty.js.map +0 -1
- package/dist/tasty/hooks/useRawCSS.d.ts +0 -54
- package/dist/tasty/hooks/useRawCSS.js +0 -29
- package/dist/tasty/hooks/useRawCSS.js.map +0 -1
- package/dist/tasty/hooks/useStyles.d.ts +0 -41
- package/dist/tasty/hooks/useStyles.js +0 -170
- package/dist/tasty/hooks/useStyles.js.map +0 -1
- package/dist/tasty/index.d.ts +0 -38
- package/dist/tasty/injector/index.d.ts +0 -158
- package/dist/tasty/injector/index.js +0 -155
- package/dist/tasty/injector/index.js.map +0 -1
- package/dist/tasty/injector/injector.d.ts +0 -137
- package/dist/tasty/injector/injector.js +0 -401
- package/dist/tasty/injector/injector.js.map +0 -1
- package/dist/tasty/injector/sheet-manager.d.ts +0 -128
- package/dist/tasty/injector/sheet-manager.js +0 -715
- package/dist/tasty/injector/sheet-manager.js.map +0 -1
- package/dist/tasty/injector/types.d.ts +0 -136
- package/dist/tasty/keyframes/index.js +0 -207
- package/dist/tasty/keyframes/index.js.map +0 -1
- package/dist/tasty/parser/classify.js +0 -320
- package/dist/tasty/parser/classify.js.map +0 -1
- package/dist/tasty/parser/const.js +0 -34
- package/dist/tasty/parser/const.js.map +0 -1
- package/dist/tasty/parser/lru.js +0 -110
- package/dist/tasty/parser/lru.js.map +0 -1
- package/dist/tasty/parser/parser.d.ts +0 -26
- package/dist/tasty/parser/parser.js +0 -117
- package/dist/tasty/parser/parser.js.map +0 -1
- package/dist/tasty/parser/tokenizer.js +0 -70
- package/dist/tasty/parser/tokenizer.js.map +0 -1
- package/dist/tasty/parser/types.d.ts +0 -47
- package/dist/tasty/parser/types.js +0 -47
- package/dist/tasty/parser/types.js.map +0 -1
- package/dist/tasty/pipeline/conditions.js +0 -378
- package/dist/tasty/pipeline/conditions.js.map +0 -1
- package/dist/tasty/pipeline/exclusive.d.ts +0 -2
- package/dist/tasty/pipeline/exclusive.js +0 -232
- package/dist/tasty/pipeline/exclusive.js.map +0 -1
- package/dist/tasty/pipeline/index.d.ts +0 -54
- package/dist/tasty/pipeline/index.js +0 -639
- package/dist/tasty/pipeline/index.js.map +0 -1
- package/dist/tasty/pipeline/materialize.js +0 -822
- package/dist/tasty/pipeline/materialize.js.map +0 -1
- package/dist/tasty/pipeline/parseStateKey.d.ts +0 -2
- package/dist/tasty/pipeline/parseStateKey.js +0 -422
- package/dist/tasty/pipeline/parseStateKey.js.map +0 -1
- package/dist/tasty/pipeline/simplify.js +0 -558
- package/dist/tasty/pipeline/simplify.js.map +0 -1
- package/dist/tasty/plugins/index.d.ts +0 -3
- package/dist/tasty/plugins/okhsl-plugin.d.ts +0 -36
- package/dist/tasty/plugins/okhsl-plugin.js +0 -372
- package/dist/tasty/plugins/okhsl-plugin.js.map +0 -1
- package/dist/tasty/plugins/types.d.ts +0 -72
- package/dist/tasty/properties/index.js +0 -159
- package/dist/tasty/properties/index.js.map +0 -1
- package/dist/tasty/states/index.d.ts +0 -46
- package/dist/tasty/states/index.js +0 -390
- package/dist/tasty/states/index.js.map +0 -1
- package/dist/tasty/static/index.d.ts +0 -6
- package/dist/tasty/static/index.js +0 -6
- package/dist/tasty/static/tastyStatic.d.ts +0 -47
- package/dist/tasty/static/tastyStatic.js +0 -32
- package/dist/tasty/static/tastyStatic.js.map +0 -1
- package/dist/tasty/static/types.d.ts +0 -50
- package/dist/tasty/static/types.js +0 -25
- package/dist/tasty/static/types.js.map +0 -1
- package/dist/tasty/styles/align.d.ts +0 -16
- package/dist/tasty/styles/align.js +0 -15
- package/dist/tasty/styles/align.js.map +0 -1
- package/dist/tasty/styles/border.d.ts +0 -26
- package/dist/tasty/styles/border.js +0 -115
- package/dist/tasty/styles/border.js.map +0 -1
- package/dist/tasty/styles/color.d.ts +0 -15
- package/dist/tasty/styles/color.js +0 -24
- package/dist/tasty/styles/color.js.map +0 -1
- package/dist/tasty/styles/createStyle.js +0 -78
- package/dist/tasty/styles/createStyle.js.map +0 -1
- package/dist/tasty/styles/dimension.js +0 -100
- package/dist/tasty/styles/dimension.js.map +0 -1
- package/dist/tasty/styles/display.d.ts +0 -38
- package/dist/tasty/styles/display.js +0 -68
- package/dist/tasty/styles/display.js.map +0 -1
- package/dist/tasty/styles/fade.d.ts +0 -16
- package/dist/tasty/styles/fade.js +0 -58
- package/dist/tasty/styles/fade.js.map +0 -1
- package/dist/tasty/styles/fill.d.ts +0 -45
- package/dist/tasty/styles/fill.js +0 -52
- package/dist/tasty/styles/fill.js.map +0 -1
- package/dist/tasty/styles/flow.d.ts +0 -17
- package/dist/tasty/styles/flow.js +0 -13
- package/dist/tasty/styles/flow.js.map +0 -1
- package/dist/tasty/styles/gap.d.ts +0 -32
- package/dist/tasty/styles/gap.js +0 -37
- package/dist/tasty/styles/gap.js.map +0 -1
- package/dist/tasty/styles/height.d.ts +0 -18
- package/dist/tasty/styles/height.js +0 -21
- package/dist/tasty/styles/height.js.map +0 -1
- package/dist/tasty/styles/index.d.ts +0 -3
- package/dist/tasty/styles/index.js +0 -10
- package/dist/tasty/styles/index.js.map +0 -1
- package/dist/tasty/styles/inset.d.ts +0 -51
- package/dist/tasty/styles/inset.js +0 -143
- package/dist/tasty/styles/inset.js.map +0 -1
- package/dist/tasty/styles/justify.d.ts +0 -16
- package/dist/tasty/styles/justify.js +0 -15
- package/dist/tasty/styles/justify.js.map +0 -1
- package/dist/tasty/styles/list.d.ts +0 -17
- package/dist/tasty/styles/list.js +0 -99
- package/dist/tasty/styles/list.js.map +0 -1
- package/dist/tasty/styles/margin.d.ts +0 -29
- package/dist/tasty/styles/margin.js +0 -97
- package/dist/tasty/styles/margin.js.map +0 -1
- package/dist/tasty/styles/outline.d.ts +0 -30
- package/dist/tasty/styles/outline.js +0 -66
- package/dist/tasty/styles/outline.js.map +0 -1
- package/dist/tasty/styles/padding.d.ts +0 -29
- package/dist/tasty/styles/padding.js +0 -97
- package/dist/tasty/styles/padding.js.map +0 -1
- package/dist/tasty/styles/predefined.d.ts +0 -75
- package/dist/tasty/styles/predefined.js +0 -242
- package/dist/tasty/styles/predefined.js.map +0 -1
- package/dist/tasty/styles/preset.d.ts +0 -48
- package/dist/tasty/styles/preset.js +0 -126
- package/dist/tasty/styles/preset.js.map +0 -1
- package/dist/tasty/styles/radius.d.ts +0 -15
- package/dist/tasty/styles/radius.js +0 -52
- package/dist/tasty/styles/radius.js.map +0 -1
- package/dist/tasty/styles/scrollbar.d.ts +0 -22
- package/dist/tasty/styles/scrollbar.js +0 -109
- package/dist/tasty/styles/scrollbar.js.map +0 -1
- package/dist/tasty/styles/shadow.d.ts +0 -15
- package/dist/tasty/styles/shadow.js +0 -28
- package/dist/tasty/styles/shadow.js.map +0 -1
- package/dist/tasty/styles/styledScrollbar.d.ts +0 -48
- package/dist/tasty/styles/styledScrollbar.js +0 -39
- package/dist/tasty/styles/styledScrollbar.js.map +0 -1
- package/dist/tasty/styles/transition.d.ts +0 -15
- package/dist/tasty/styles/transition.js +0 -139
- package/dist/tasty/styles/transition.js.map +0 -1
- package/dist/tasty/styles/types.d.ts +0 -499
- package/dist/tasty/styles/width.d.ts +0 -18
- package/dist/tasty/styles/width.js +0 -21
- package/dist/tasty/styles/width.js.map +0 -1
- package/dist/tasty/tasty.d.ts +0 -937
- package/dist/tasty/tasty.js +0 -191
- package/dist/tasty/tasty.js.map +0 -1
- package/dist/tasty/types.d.ts +0 -192
- package/dist/tasty/utils/cache-wrapper.js +0 -25
- package/dist/tasty/utils/cache-wrapper.js.map +0 -1
- package/dist/tasty/utils/case-converter.js +0 -9
- package/dist/tasty/utils/case-converter.js.map +0 -1
- package/dist/tasty/utils/colors.d.ts +0 -6
- package/dist/tasty/utils/colors.js +0 -10
- package/dist/tasty/utils/colors.js.map +0 -1
- package/dist/tasty/utils/dotize.d.ts +0 -27
- package/dist/tasty/utils/dotize.js +0 -123
- package/dist/tasty/utils/dotize.js.map +0 -1
- package/dist/tasty/utils/filter-base-props.d.ts +0 -16
- package/dist/tasty/utils/filter-base-props.js +0 -46
- package/dist/tasty/utils/filter-base-props.js.map +0 -1
- package/dist/tasty/utils/get-display-name.d.ts +0 -8
- package/dist/tasty/utils/get-display-name.js +0 -11
- package/dist/tasty/utils/get-display-name.js.map +0 -1
- package/dist/tasty/utils/hsl-to-rgb.js +0 -39
- package/dist/tasty/utils/hsl-to-rgb.js.map +0 -1
- package/dist/tasty/utils/is-dev-env.js +0 -20
- package/dist/tasty/utils/is-dev-env.js.map +0 -1
- package/dist/tasty/utils/merge-styles.d.ts +0 -8
- package/dist/tasty/utils/merge-styles.js +0 -147
- package/dist/tasty/utils/merge-styles.js.map +0 -1
- package/dist/tasty/utils/mod-attrs.d.ts +0 -9
- package/dist/tasty/utils/mod-attrs.js +0 -22
- package/dist/tasty/utils/mod-attrs.js.map +0 -1
- package/dist/tasty/utils/okhsl-to-rgb.js +0 -297
- package/dist/tasty/utils/okhsl-to-rgb.js.map +0 -1
- package/dist/tasty/utils/process-tokens.d.ts +0 -32
- package/dist/tasty/utils/process-tokens.js +0 -172
- package/dist/tasty/utils/process-tokens.js.map +0 -1
- package/dist/tasty/utils/resolve-recipes.d.ts +0 -18
- package/dist/tasty/utils/resolve-recipes.js +0 -144
- package/dist/tasty/utils/resolve-recipes.js.map +0 -1
- package/dist/tasty/utils/string.js +0 -9
- package/dist/tasty/utils/string.js.map +0 -1
- package/dist/tasty/utils/styles.d.ts +0 -204
- package/dist/tasty/utils/styles.js +0 -577
- package/dist/tasty/utils/styles.js.map +0 -1
- package/dist/tasty/utils/typography.d.ts +0 -37
- package/dist/tasty/utils/typography.js +0 -54
- package/dist/tasty/utils/typography.js.map +0 -1
- package/dist/tasty/utils/warnings.d.ts +0 -17
- package/dist/tasty/utils/warnings.js +0 -17
- package/dist/tasty/utils/warnings.js.map +0 -1
- package/dist/tasty/zero/babel.d.ts +0 -111
- package/dist/tasty/zero/babel.js +0 -283
- package/dist/tasty/zero/babel.js.map +0 -1
- package/dist/tasty/zero/index.d.ts +0 -4
- package/dist/tasty/zero/index.js +0 -5
- package/dist/tasty/zero/next.d.ts +0 -61
- package/dist/tasty/zero/next.js +0 -79
- package/dist/tasty/zero/next.js.map +0 -1
- package/dist/tasty.config.ts +0 -311
- package/dist/tokens/typography.d.ts +0 -35
- package/dist/tokens/typography.js +0 -238
- package/dist/tokens/typography.js.map +0 -1
- package/dist/utils/cache-wrapper.js +0 -25
- package/dist/utils/cache-wrapper.js.map +0 -1
- package/dist/utils/case-converter.js +0 -9
- package/dist/utils/case-converter.js.map +0 -1
- package/dist/utils/hsl-to-rgb.js +0 -39
- package/dist/utils/hsl-to-rgb.js.map +0 -1
- package/dist/utils/merge-styles.js +0 -147
- package/dist/utils/merge-styles.js.map +0 -1
- package/dist/utils/okhsl-to-rgb.js +0 -297
- package/dist/utils/okhsl-to-rgb.js.map +0 -1
- package/dist/utils/process-tokens.js +0 -29
- package/dist/utils/process-tokens.js.map +0 -1
- package/dist/utils/resolve-recipes.js +0 -144
- package/dist/utils/resolve-recipes.js.map +0 -1
- package/dist/utils/string.js +0 -9
- package/dist/utils/string.js.map +0 -1
- package/dist/utils/styles.d.ts +0 -23
- package/dist/utils/styles.js +0 -338
- package/dist/utils/styles.js.map +0 -1
package/dist/styles/types.d.ts
DELETED
|
@@ -1,495 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { StyleValue, StyleValueStateMap } from "../utils/styles.js";
|
|
3
|
-
import { KeyframesSteps, PropertyDefinition } from "../injector/types.js";
|
|
4
|
-
import { CSSProperties } from "react";
|
|
5
|
-
|
|
6
|
-
//#region src/tasty/styles/types.d.ts
|
|
7
|
-
/**
|
|
8
|
-
* Extensible interface for named color tokens.
|
|
9
|
-
* Augment this interface to register project-specific color names
|
|
10
|
-
* for autocomplete in `fill`, `color`, `svgFill`, and other color style props.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```typescript
|
|
14
|
-
* declare module '@cube-dev/ui-kit' {
|
|
15
|
-
* interface TastyNamedColors {
|
|
16
|
-
* primary: true;
|
|
17
|
-
* danger: true;
|
|
18
|
-
* }
|
|
19
|
-
* }
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
interface TastyNamedColors {}
|
|
23
|
-
type NamedColorKey = Extract<keyof TastyNamedColors, string>;
|
|
24
|
-
type NamedColor = [NamedColorKey] extends [never] ? string : NamedColorKey;
|
|
25
|
-
/**
|
|
26
|
-
* Extensible interface for typography preset names.
|
|
27
|
-
* Augment this interface to register project-specific preset names for autocomplete.
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```typescript
|
|
31
|
-
* declare module '@cube-dev/ui-kit' {
|
|
32
|
-
* interface TastyPresetNames {
|
|
33
|
-
* h1: true;
|
|
34
|
-
* t3: true;
|
|
35
|
-
* }
|
|
36
|
-
* }
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
interface TastyPresetNames {}
|
|
40
|
-
type PresetNameKey = Extract<keyof TastyPresetNames, string>;
|
|
41
|
-
type PresetName = [PresetNameKey] extends [never] ? string : PresetNameKey;
|
|
42
|
-
type Digit = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
43
|
-
type OpaquePercentage = '' | `.${Digit}` | `.${Digit}${Digit}` | '.100';
|
|
44
|
-
interface StylesInterface extends Omit<CSSProperties, 'color' | 'fill' | 'font' | 'outline' | 'type' | 'gap' | 'padding' | 'margin' | 'width' | 'height' | 'border' | 'transition' | 'placeContent' | 'placeItems'> {
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated Use `flow` style instead.
|
|
47
|
-
*/
|
|
48
|
-
flexDirection: CSSProperties['flexDirection'];
|
|
49
|
-
/**
|
|
50
|
-
* @deprecated Use `placeContent`, `placeItems`, `gridColumns`, `gridRows`, and `gridTemplate` styles instead.
|
|
51
|
-
*/
|
|
52
|
-
grid: CSSProperties['grid'];
|
|
53
|
-
/**
|
|
54
|
-
* @deprecated Use `flexShrink`, `flexGrow`, and `flexBasis` styles instead.
|
|
55
|
-
*/
|
|
56
|
-
flex: CSSProperties['flex'];
|
|
57
|
-
/**
|
|
58
|
-
* Set the background color of the element. Shortcut for `background-color` with enhanced support for Tasty color tokens and syntaxes.
|
|
59
|
-
*
|
|
60
|
-
* Examples:
|
|
61
|
-
* - `fill="#purple.10"` // purple background with 10% opacity
|
|
62
|
-
* - `fill="#danger"` // danger theme color
|
|
63
|
-
* - `fill="rgb(255 128 0)"` // custom RGB color
|
|
64
|
-
* - `fill={true}` // default fill color
|
|
65
|
-
*/
|
|
66
|
-
fill?: `#${NamedColor}${OpaquePercentage}` | `rgb(${string})` | `rgba(${string})` | boolean | (string & {});
|
|
67
|
-
/**
|
|
68
|
-
* @deprecated Use `fill` instead.
|
|
69
|
-
*/
|
|
70
|
-
backgroundColor?: CSSProperties['backgroundColor'];
|
|
71
|
-
/**
|
|
72
|
-
* Set the background image of the element. Shortcut for `background-image` with enhanced support for Tasty tokens.
|
|
73
|
-
*
|
|
74
|
-
* Examples:
|
|
75
|
-
* - `image="url(/path/to/image.png)"` // image from URL
|
|
76
|
-
* - `image="linear-gradient(to right, #purple, #danger)"` // gradient
|
|
77
|
-
*/
|
|
78
|
-
image?: CSSProperties['backgroundImage'];
|
|
79
|
-
/**
|
|
80
|
-
* @deprecated Use `image` instead.
|
|
81
|
-
*/
|
|
82
|
-
backgroundImage?: CSSProperties['backgroundImage'];
|
|
83
|
-
/**
|
|
84
|
-
* @deprecated Use separate background styles (`fill`, `image`, `backgroundSize`, etc.) instead.
|
|
85
|
-
* When set, overrides all other background-related styles.
|
|
86
|
-
*/
|
|
87
|
-
background?: CSSProperties['background'];
|
|
88
|
-
/**
|
|
89
|
-
* Set the fill color of SVG elements. Outputs the native CSS `fill` property with enhanced support for Tasty color tokens and syntaxes.
|
|
90
|
-
*
|
|
91
|
-
* Examples:
|
|
92
|
-
* - `svgFill="#purple.10"` // purple fill with 10% opacity
|
|
93
|
-
* - `svgFill="#danger"` // danger theme color
|
|
94
|
-
* - `svgFill="rgb(255 128 0)"` // custom RGB color
|
|
95
|
-
* - `svgFill="currentColor"` // inherit from parent color
|
|
96
|
-
*/
|
|
97
|
-
svgFill?: `#${NamedColor}${OpaquePercentage}` | `rgb(${string})` | `rgba(${string})` | (string & {});
|
|
98
|
-
/**
|
|
99
|
-
* Set the text (current) color of the element. Shortcut for `color` with enhanced support for Tasty color tokens and syntaxes.
|
|
100
|
-
*
|
|
101
|
-
* Examples:
|
|
102
|
-
* - `color="#purple"` // purple text color
|
|
103
|
-
* - `color="#danger.6"` // danger color with 60% opacity
|
|
104
|
-
* - `color="red"` // CSS color name
|
|
105
|
-
* - `color={true}` // currentColor
|
|
106
|
-
*/
|
|
107
|
-
color?: `#${NamedColor}${OpaquePercentage}` | `rgb(${string})` | `rgba(${string})` | boolean | string;
|
|
108
|
-
/**
|
|
109
|
-
* The fade style applies gradient-based fading masks to the edges of an element. Replaces complex CSS mask gradients with a simple, declarative API.
|
|
110
|
-
*
|
|
111
|
-
* Syntax: `[width] [directions] [#from-color] [#to-color]`
|
|
112
|
-
*
|
|
113
|
-
* Multiple groups can be separated by commas to specify different colors per direction.
|
|
114
|
-
*
|
|
115
|
-
* Color tokens (optional):
|
|
116
|
-
* - First color: transparent start of gradient (default: `rgb(0 0 0 / 0)`)
|
|
117
|
-
* - Second color: opaque end of gradient (default: `rgb(0 0 0 / 1)`)
|
|
118
|
-
*
|
|
119
|
-
* Examples:
|
|
120
|
-
* - `fade="top"` // fade only top edge with default width
|
|
121
|
-
* - `fade="2x left right"` // fade left and right edges with 2x width
|
|
122
|
-
* - `fade="1x top"` // fade only top edge with 1x width
|
|
123
|
-
* - `fade="3x 1x top bottom"` // top: 3x width, bottom: 1x width
|
|
124
|
-
* - `fade="2x #transparent #dark"` // custom colors for gradient mask
|
|
125
|
-
* - `fade="1x top #clear #solid"` // top edge with custom mask colors
|
|
126
|
-
* - `fade="top #red #blue, bottom #green #yellow"` // different colors per direction
|
|
127
|
-
* - `fade="2x top #a #b, 1x bottom #c #d"` // different widths and colors per direction
|
|
128
|
-
*/
|
|
129
|
-
fade?: 'top' | 'right' | 'bottom' | 'left' | string;
|
|
130
|
-
/**
|
|
131
|
-
* @deprecated Use `scrollbar` style instead.
|
|
132
|
-
* Whether the element has styled scrollbar.
|
|
133
|
-
*/
|
|
134
|
-
styledScrollbar?: boolean;
|
|
135
|
-
/**
|
|
136
|
-
* The scrollbar style provides a powerful and flexible way to control the appearance and behavior of scrollbars across browsers. It supports custom sizing, color, visibility, and advanced modifiers for modern UI needs.
|
|
137
|
-
*
|
|
138
|
-
* Syntax: `[modifiers] [size] [color1] [color2] [color3]`
|
|
139
|
-
*
|
|
140
|
-
* Modifiers: `thin`, `none`, `auto`, `stable`, `both-edges`, `always`, `styled`
|
|
141
|
-
*
|
|
142
|
-
* Examples:
|
|
143
|
-
* - `scrollbar={true}` // thin scrollbar, default color
|
|
144
|
-
* - `scrollbar="thin 10px #purple.40 #dark.04"`
|
|
145
|
-
* - `scrollbar="styled 12px #purple.40 #dark.04 #white.10"`
|
|
146
|
-
* - `scrollbar="none"`
|
|
147
|
-
* - `scrollbar="always 8px #primary.50 #white.02"`
|
|
148
|
-
*/
|
|
149
|
-
scrollbar?: string | boolean | number;
|
|
150
|
-
/**
|
|
151
|
-
* Set font weight for bold texts.
|
|
152
|
-
*/
|
|
153
|
-
boldFontWeight?: number;
|
|
154
|
-
/**
|
|
155
|
-
* The gap style is a powerful, cross-layout shorthand for spacing between child elements. Works with flex, grid, and block layouts.
|
|
156
|
-
*
|
|
157
|
-
* For flex/grid: sets native `gap` property
|
|
158
|
-
* For block layouts: emulated using margin on children
|
|
159
|
-
*
|
|
160
|
-
* Examples:
|
|
161
|
-
* - `gap="2x"` // gap: 2x (or margin-bottom: 2x for block)
|
|
162
|
-
* - `gap="1x 2x"` // row gap: 1x, column gap: 2x
|
|
163
|
-
* - `gap={true}` // default gap (1x)
|
|
164
|
-
*/
|
|
165
|
-
gap?: CSSProperties['gap'] | string | boolean;
|
|
166
|
-
/**
|
|
167
|
-
* Shorthand for element padding. Supports custom units, directional modifiers, and design-system-driven defaults.
|
|
168
|
-
*
|
|
169
|
-
* Examples:
|
|
170
|
-
* - `padding="2x 1x"` // top/bottom: 2x, left/right: 1x
|
|
171
|
-
* - `padding="2x top"` // only top padding: 2x
|
|
172
|
-
* - `padding="1x left right"` // left and right padding: 1x
|
|
173
|
-
* - `padding={true}` // default padding on all sides
|
|
174
|
-
*/
|
|
175
|
-
padding?: CSSProperties['padding'] | string | boolean;
|
|
176
|
-
/**
|
|
177
|
-
* Shorthand for element margin. Supports custom units, directional modifiers, and design-system-driven defaults.
|
|
178
|
-
*
|
|
179
|
-
* Examples:
|
|
180
|
-
* - `margin="2x 1x"` // top/bottom: 2x, left/right: 1x
|
|
181
|
-
* - `margin="2x top"` // only top margin: 2x
|
|
182
|
-
* - `margin="1x left right"` // left and right margin: 1x
|
|
183
|
-
* - `margin={true}` // default margin on all sides
|
|
184
|
-
*/
|
|
185
|
-
margin?: CSSProperties['margin'] | string | boolean;
|
|
186
|
-
/**
|
|
187
|
-
* Concise shorthand for setting element width, including min-width and max-width. Supports custom units and advanced sizing keywords.
|
|
188
|
-
*
|
|
189
|
-
* Syntax: `[value]` | `[min max]` | `[min value max]` | `[modifier value]`
|
|
190
|
-
*
|
|
191
|
-
* Modifiers: `min`, `max`
|
|
192
|
-
* Keywords: `stretch`, `max-content`, `min-content`, `fit-content`
|
|
193
|
-
*
|
|
194
|
-
* Examples:
|
|
195
|
-
* - `width="10x"` // width: 10x
|
|
196
|
-
* - `width="1x 10x"` // min-width: 1x; max-width: 10x
|
|
197
|
-
* - `width="min 2x"` // min-width: 2x
|
|
198
|
-
* - `width="stretch"` // width: stretch (fill-available)
|
|
199
|
-
* - `width={true}` // width: auto
|
|
200
|
-
*/
|
|
201
|
-
width?: CSSProperties['width'] | string | boolean;
|
|
202
|
-
/**
|
|
203
|
-
* Concise shorthand for setting element height, including min-height and max-height. Supports custom units and advanced sizing keywords.
|
|
204
|
-
*
|
|
205
|
-
* Syntax: `[value]` | `[min max]` | `[min value max]` | `[modifier value]`
|
|
206
|
-
*
|
|
207
|
-
* Modifiers: `min`, `max`
|
|
208
|
-
* Keywords: `stretch`, `max-content`, `min-content`, `fit-content`
|
|
209
|
-
*
|
|
210
|
-
* Examples:
|
|
211
|
-
* - `height="100px"` // height: 100px
|
|
212
|
-
* - `height="1x 5x 10x"` // min-height: 1x; height: 5x; max-height: 10x
|
|
213
|
-
* - `height="min 2x"` // min-height: 2x
|
|
214
|
-
* - `height={true}` // height: auto
|
|
215
|
-
*/
|
|
216
|
-
height?: CSSProperties['height'] | string | boolean;
|
|
217
|
-
/**
|
|
218
|
-
* Shorthand for border width, style, and color. Supports directional modifiers and design-system defaults.
|
|
219
|
-
*
|
|
220
|
-
* Syntax: `[width] [style] [color] [directions]` | `[directions]` | `true`
|
|
221
|
-
*
|
|
222
|
-
* Multiple groups can be separated by commas. Later groups override earlier groups for conflicting directions.
|
|
223
|
-
*
|
|
224
|
-
* Examples:
|
|
225
|
-
* - `border={true}` // default border on all sides (1bw solid)
|
|
226
|
-
* - `border="2bw dashed #purple"` // 2bw dashed purple border
|
|
227
|
-
* - `border="2bw top"` // only top border: 2bw solid
|
|
228
|
-
* - `border="dotted #danger left right"` // left/right: 1bw dotted danger
|
|
229
|
-
* - `border="1bw #red, 2bw #blue top"` // all sides red 1bw, top overridden to blue 2bw
|
|
230
|
-
* - `border="1bw, dashed top bottom, #purple left right"` // base 1bw, dashed on top/bottom, purple on left/right
|
|
231
|
-
*/
|
|
232
|
-
border?: CSSProperties['border'] | string | boolean;
|
|
233
|
-
/**
|
|
234
|
-
* Powerful shorthand for CSS transitions using semantic names and design tokens. Supports grouped transitions for common UI effects.
|
|
235
|
-
*
|
|
236
|
-
* Semantic names: `fade`, `fill`, `border`, `radius`, `shadow`, `preset`, `gap`, `theme`
|
|
237
|
-
* Multiple transitions: separated by commas
|
|
238
|
-
*
|
|
239
|
-
* Examples:
|
|
240
|
-
* - `transition="fill 0.2s, radius 0.3s"` // transitions background-color and border-radius
|
|
241
|
-
* - `transition="fade 0.15s ease-in"` // transitions mask with easing
|
|
242
|
-
* - `transition="theme 0.3s"` // transitions all theme-related properties
|
|
243
|
-
* - `transition="preset 0.2s"` // transitions typography properties
|
|
244
|
-
*/
|
|
245
|
-
transition?: CSSProperties['transition'] | string;
|
|
246
|
-
/**
|
|
247
|
-
* Whether the element is hidden using `display: none`. Boolean shortcut for conditional element visibility.
|
|
248
|
-
*
|
|
249
|
-
* Examples:
|
|
250
|
-
* - `hide={true}` // display: none
|
|
251
|
-
* - `hide={false}` // element remains visible
|
|
252
|
-
*/
|
|
253
|
-
hide?: boolean;
|
|
254
|
-
/**
|
|
255
|
-
* The shadow style adds shadow effects around an element's frame. Supports multiple effects separated by commas with X/Y offsets, blur, spread radius, and color.
|
|
256
|
-
*
|
|
257
|
-
* Examples:
|
|
258
|
-
* - `shadow="1x .5x .5x #dark.50"` // custom shadow with Tasty units and colors
|
|
259
|
-
* - `shadow="0 1x 2x #dark.20"` // standard shadow syntax
|
|
260
|
-
* - `shadow={true}` // default shadow from design system
|
|
261
|
-
*/
|
|
262
|
-
shadow?: string | boolean;
|
|
263
|
-
/**
|
|
264
|
-
* The radius style rounds the corners of an element's outer border edge. Supports custom units, advanced shapes, and directional modifiers.
|
|
265
|
-
*
|
|
266
|
-
* Syntax: `[value] [modifiers]` | `[shape]` | `true`
|
|
267
|
-
*
|
|
268
|
-
* Shapes: `round` (fully rounded), `ellipse` (50%), `leaf`, `backleaf` (asymmetric)
|
|
269
|
-
* Directional modifiers: `top`, `right`, `bottom`, `left`
|
|
270
|
-
*
|
|
271
|
-
* Examples:
|
|
272
|
-
* - `radius="2r"` // border-radius: calc(var(--radius) * 2)
|
|
273
|
-
* - `radius={true}` // default radius (1r)
|
|
274
|
-
* - `radius="round"` // fully rounded (9999rem)
|
|
275
|
-
* - `radius="leaf"` // asymmetric leaf shape
|
|
276
|
-
* - `radius="1r top"` // round only top corners
|
|
277
|
-
*/
|
|
278
|
-
radius?: 'round' | 'ellipse' | 'leaf' | 'backleaf' | string | true;
|
|
279
|
-
/**
|
|
280
|
-
* The flow style is a unified shorthand for controlling layout direction and wrapping in both flex and grid containers. Replaces `flexDirection` and `gridAutoFlow`.
|
|
281
|
-
*
|
|
282
|
-
* For flex: sets `flex-flow` (direction + wrapping)
|
|
283
|
-
* For grid: sets `grid-auto-flow` (direction + density)
|
|
284
|
-
* For block: determines gap direction (row/column)
|
|
285
|
-
*
|
|
286
|
-
* Syntax: `[direction] [wrap|dense]`
|
|
287
|
-
*
|
|
288
|
-
* Examples:
|
|
289
|
-
* - `flow="row wrap"` // flex-flow: row wrap
|
|
290
|
-
* - `flow="column dense"` // grid-auto-flow: column dense
|
|
291
|
-
* - `flow="row"` // primary axis direction
|
|
292
|
-
*/
|
|
293
|
-
flow?: CSSProperties['flexFlow'] | CSSProperties['gridAutoFlow'] | string;
|
|
294
|
-
/**
|
|
295
|
-
* The gridAreas style specifies named grid areas, establishing cells in the grid and assigning them names.
|
|
296
|
-
*
|
|
297
|
-
* Examples:
|
|
298
|
-
* - `gridAreas='"header header" "sidebar content" "footer footer"'`
|
|
299
|
-
*/
|
|
300
|
-
gridAreas?: CSSProperties['gridTemplateAreas'];
|
|
301
|
-
/**
|
|
302
|
-
* The gridColumns style defines line names and track sizing functions of grid columns.
|
|
303
|
-
*
|
|
304
|
-
* Examples:
|
|
305
|
-
* - `gridColumns="1fr 2fr 1fr"` // three columns with flex ratios
|
|
306
|
-
* - `gridColumns={3}` // three equal columns (shorthand)
|
|
307
|
-
* - `gridColumns="repeat(auto-fit, minmax(200px, 1fr))"` // responsive columns
|
|
308
|
-
*/
|
|
309
|
-
gridColumns?: CSSProperties['gridTemplateColumns'] | number;
|
|
310
|
-
/**
|
|
311
|
-
* The gridRows style defines line names and track sizing functions of grid rows.
|
|
312
|
-
*
|
|
313
|
-
* Examples:
|
|
314
|
-
* - `gridRows="auto 1fr auto"` // header, content, footer layout
|
|
315
|
-
* - `gridRows={4}` // four equal rows (shorthand)
|
|
316
|
-
* - `gridRows="repeat(3, 100px)"` // three 100px rows
|
|
317
|
-
*/
|
|
318
|
-
gridRows?: CSSProperties['gridTemplateRows'] | number;
|
|
319
|
-
/**
|
|
320
|
-
* The gridTemplate style is a shorthand property for defining grid columns, rows, and areas simultaneously.
|
|
321
|
-
*
|
|
322
|
-
* Examples:
|
|
323
|
-
* - `gridTemplate='"header header" auto "content sidebar" 1fr / 2fr 1fr'`
|
|
324
|
-
*/
|
|
325
|
-
gridTemplate?: CSSProperties['gridTemplate'];
|
|
326
|
-
/**
|
|
327
|
-
* The font style specifies a prioritized list of font family names with design-system-driven defaults and fallbacks.
|
|
328
|
-
*
|
|
329
|
-
* Examples:
|
|
330
|
-
* - `font="monospace"` // monospace font stack
|
|
331
|
-
* - `font="Helvetica, Arial, sans-serif"` // custom font list
|
|
332
|
-
* - `font={true}` // default design system font
|
|
333
|
-
*/
|
|
334
|
-
font?: CSSProperties['fontFamily'] | boolean;
|
|
335
|
-
/**
|
|
336
|
-
* The outline style sets the outline for the element.
|
|
337
|
-
*
|
|
338
|
-
* Syntax: `[width] [style] [color] / [offset]` | `true`
|
|
339
|
-
*
|
|
340
|
-
* Examples:
|
|
341
|
-
* - `outline="2ow dashed #purple"` // 2ow dashed purple outline
|
|
342
|
-
* - `outline="2ow #danger / 1x"` // 2ow solid danger outline, 1x offset
|
|
343
|
-
* - `outline={true}` // default outline (1ow solid)
|
|
344
|
-
*/
|
|
345
|
-
outline?: string | boolean;
|
|
346
|
-
/**
|
|
347
|
-
* The outline offset style sets the offset of the outline.
|
|
348
|
-
*
|
|
349
|
-
* Examples:
|
|
350
|
-
* - `outlineOffset="4px"` // 4px offset
|
|
351
|
-
* - `outlineOffset="1x"` // 1x (8px) offset
|
|
352
|
-
*/
|
|
353
|
-
outlineOffset?: string | number;
|
|
354
|
-
/**
|
|
355
|
-
* The preset style sets base text settings according to named presets. Affects `font-size`, `line-height`, `letter-spacing`, `font-weight`, and `text-transform`.
|
|
356
|
-
*
|
|
357
|
-
* Preset names are project-specific. Augment `TastyPresetNames` to register them for autocomplete.
|
|
358
|
-
*
|
|
359
|
-
* Examples:
|
|
360
|
-
* - `preset="h1"` // heading 1 typography
|
|
361
|
-
* - `preset="h2 strong"` // bold heading 2
|
|
362
|
-
* - `preset="t3"` // text size 3
|
|
363
|
-
*/
|
|
364
|
-
preset?: PresetName | (string & {});
|
|
365
|
-
/**
|
|
366
|
-
* Shorthand for `align-items` and `align-content`. Sets both properties for unified vertical alignment in flex/grid layouts.
|
|
367
|
-
*
|
|
368
|
-
* Examples:
|
|
369
|
-
* - `align="center"` // align-items: center; align-content: center
|
|
370
|
-
* - `align="flex-start"` // align both to start
|
|
371
|
-
* - `align="space-between"` // distribute space between items
|
|
372
|
-
*/
|
|
373
|
-
align?: CSSProperties['alignItems'] | CSSProperties['alignContent'];
|
|
374
|
-
/**
|
|
375
|
-
* Shorthand for `justify-items` and `justify-content`. Sets both properties for unified horizontal alignment in flex/grid layouts.
|
|
376
|
-
*
|
|
377
|
-
* Examples:
|
|
378
|
-
* - `justify="center"` // justify-items: center; justify-content: center
|
|
379
|
-
* - `justify="space-between"` // distribute space between items
|
|
380
|
-
* - `justify="flex-end"` // align both to end
|
|
381
|
-
*/
|
|
382
|
-
justify?: CSSProperties['justifyItems'] | CSSProperties['justifyContent'];
|
|
383
|
-
/**
|
|
384
|
-
* Shorthand for `place-items` and `place-content`. Sets both properties for unified alignment of both axes in grid/flex layouts.
|
|
385
|
-
*
|
|
386
|
-
* Examples:
|
|
387
|
-
* - `place="center"` // place-items: center; place-content: center
|
|
388
|
-
* - `place="start end"` // place-items: start; place-content: end
|
|
389
|
-
* - `place="stretch"` // place both to stretch
|
|
390
|
-
*/
|
|
391
|
-
place?: CSSProperties['placeItems'] | CSSProperties['placeContent'] | string;
|
|
392
|
-
/**
|
|
393
|
-
* Sets `place-content` property for aligning and distributing content in grid/flex containers.
|
|
394
|
-
*
|
|
395
|
-
* Examples:
|
|
396
|
-
* - `placeContent="center"` // center content in both axes
|
|
397
|
-
* - `placeContent="space-between"` // distribute content with space between
|
|
398
|
-
*/
|
|
399
|
-
placeContent?: CSSProperties['placeContent'];
|
|
400
|
-
/**
|
|
401
|
-
* Sets `place-items` property for aligning items in grid/flex containers.
|
|
402
|
-
*
|
|
403
|
-
* Examples:
|
|
404
|
-
* - `placeItems="center"` // center items in both axes
|
|
405
|
-
* - `placeItems="start end"` // start on block axis, end on inline axis
|
|
406
|
-
*/
|
|
407
|
-
placeItems?: CSSProperties['placeItems'];
|
|
408
|
-
/**
|
|
409
|
-
* Shorthand for `top`, `right`, `bottom`, and `left` offsets. Supports custom units, directional modifiers, and positioning.
|
|
410
|
-
*
|
|
411
|
-
* Examples:
|
|
412
|
-
* - `inset="0"` // all sides: 0
|
|
413
|
-
* - `inset="2x top"` // only top offset: 2x
|
|
414
|
-
* - `inset="1x left right"` // left and right offsets: 1x
|
|
415
|
-
* - `inset={true}` // all sides: 0
|
|
416
|
-
*/
|
|
417
|
-
inset?: 'top' | 'right' | 'bottom' | 'left' | string | CSSProperties['inset'];
|
|
418
|
-
/**
|
|
419
|
-
* Local keyframes definitions for this component.
|
|
420
|
-
* Keys are animation names, values are keyframes step definitions.
|
|
421
|
-
* Local keyframes override global keyframes with the same name.
|
|
422
|
-
*
|
|
423
|
-
* Examples:
|
|
424
|
-
* - `'@keyframes': { fadeIn: { from: { opacity: 0 }, to: { opacity: 1 } } }`
|
|
425
|
-
* - `'@keyframes': { pulse: { '0%, 100%': { transform: 'scale(1)' }, '50%': { transform: 'scale(1.05)' } } }`
|
|
426
|
-
*/
|
|
427
|
-
'@keyframes'?: Record<string, KeyframesSteps>;
|
|
428
|
-
/**
|
|
429
|
-
* CSS @property definitions for custom properties using tasty token syntax.
|
|
430
|
-
* Properties are registered once and are permanent (never removed).
|
|
431
|
-
*
|
|
432
|
-
* Token formats:
|
|
433
|
-
* - `$name` for regular properties → `--name` (requires syntax to be specified)
|
|
434
|
-
* - `#name` for color properties → `--name-color` (auto-sets syntax: '<color>', defaults initialValue: 'transparent')
|
|
435
|
-
*
|
|
436
|
-
* Examples:
|
|
437
|
-
* - `'@properties': { '$rotation': { syntax: '<angle>', inherits: false, initialValue: '45deg' } }`
|
|
438
|
-
* - `'@properties': { '#theme': { initialValue: 'purple' } }` // syntax: '<color>' is auto-set
|
|
439
|
-
*/
|
|
440
|
-
'@properties'?: Record<string, PropertyDefinition>;
|
|
441
|
-
/**
|
|
442
|
-
* Apply one or more predefined style recipes by name.
|
|
443
|
-
* Recipes are defined globally via `configure({ recipes: { ... } })`.
|
|
444
|
-
* Multiple recipes are space-separated. Use `|` to separate base recipes
|
|
445
|
-
* (applied before component styles) from post recipes (applied after, via mergeStyles).
|
|
446
|
-
*
|
|
447
|
-
* Examples:
|
|
448
|
-
* - `recipe: 'card'` // Apply the 'card' recipe
|
|
449
|
-
* - `recipe: 'card elevated'` // Apply 'card' then 'elevated', then component styles
|
|
450
|
-
* - `recipe: 'reset input | input-autofill'` // Base recipes, then post recipe
|
|
451
|
-
* - `recipe: ''` // Clear recipes from base styles when extending
|
|
452
|
-
*/
|
|
453
|
-
recipe?: string;
|
|
454
|
-
}
|
|
455
|
-
/** Special style keys that should not be wrapped in StyleValue/StyleValueStateMap */
|
|
456
|
-
type SpecialStyleKeys = '@keyframes' | '@properties' | 'recipe';
|
|
457
|
-
type StylesWithoutSelectors = { [key in keyof StylesInterface as key extends SpecialStyleKeys ? never : key]?: StyleValue<StylesInterface[key]> | StyleValueStateMap<StylesInterface[key]> };
|
|
458
|
-
/**
|
|
459
|
-
* Index signature for recipe-specific arbitrary keys.
|
|
460
|
-
* Supports local predefined states (`@name`), vendor-prefixed CSS properties (`-webkit-*`),
|
|
461
|
-
* CSS custom properties (`$name`), and color tokens (`#name`).
|
|
462
|
-
* Unlike StylesIndexSignature, does NOT allow sub-element selectors (recipes are flat).
|
|
463
|
-
*/
|
|
464
|
-
interface RecipeIndexSignature {
|
|
465
|
-
[key: string]: StyleValue<string | number | boolean | undefined> | StyleValueStateMap<string | number | boolean | undefined>;
|
|
466
|
-
}
|
|
467
|
-
/**
|
|
468
|
-
* Style type for recipe definitions.
|
|
469
|
-
* Like StylesWithoutSelectors but also allows `@keyframes`, `@properties`,
|
|
470
|
-
* local predefined states, and vendor-prefixed CSS properties.
|
|
471
|
-
* Excludes `recipe` to prevent recursive references.
|
|
472
|
-
*/
|
|
473
|
-
type RecipeStyles = StylesWithoutSelectors & RecipeIndexSignature & {
|
|
474
|
-
'@keyframes'?: StylesInterface['@keyframes'];
|
|
475
|
-
'@properties'?: StylesInterface['@properties'];
|
|
476
|
-
};
|
|
477
|
-
/** Special properties that are not regular style values */
|
|
478
|
-
interface SpecialStyleProperties {
|
|
479
|
-
'@keyframes'?: StylesInterface['@keyframes'];
|
|
480
|
-
'@properties'?: StylesInterface['@properties'];
|
|
481
|
-
recipe?: StylesInterface['recipe'];
|
|
482
|
-
}
|
|
483
|
-
/** Index signature for arbitrary style keys (sub-elements, CSS variables, etc.) */
|
|
484
|
-
interface StylesIndexSignature {
|
|
485
|
-
[key: string]: StyleValue<string | number | boolean | undefined> | StyleValueStateMap<string | number | boolean | undefined> | Styles | false | StylesInterface['@keyframes'] | StylesInterface['@properties'];
|
|
486
|
-
/**
|
|
487
|
-
* Selector combinator: `undefined` (descendant, default), `'>'` (child), `'+'` (adjacent), `'~'` (sibling).
|
|
488
|
-
* Can chain with capitalized names: `'> Body > Row >'`. Spaces required around combinators.
|
|
489
|
-
*/
|
|
490
|
-
$?: string;
|
|
491
|
-
}
|
|
492
|
-
type Styles = StylesWithoutSelectors & SpecialStyleProperties & StylesIndexSignature;
|
|
493
|
-
//#endregion
|
|
494
|
-
export { RecipeStyles, Styles };
|
|
495
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/styles/width.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.117.0 | Cube Dev Team */
|
|
2
|
-
import { dimensionStyle } from "./dimension.js";
|
|
3
|
-
|
|
4
|
-
//#region src/tasty/styles/width.ts
|
|
5
|
-
const dimension = dimensionStyle("width");
|
|
6
|
-
function widthStyle({ width, minWidth, maxWidth }) {
|
|
7
|
-
return dimension({
|
|
8
|
-
value: width,
|
|
9
|
-
min: minWidth,
|
|
10
|
-
max: maxWidth
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
widthStyle.__lookupStyles = [
|
|
14
|
-
"width",
|
|
15
|
-
"minWidth",
|
|
16
|
-
"maxWidth"
|
|
17
|
-
];
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { widthStyle };
|
|
21
|
-
//# sourceMappingURL=width.js.map
|
package/dist/styles/width.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"width.js","names":[],"sources":["../../src/tasty/styles/width.ts"],"sourcesContent":["import { dimensionStyle } from './dimension';\n\nconst dimension = dimensionStyle('width');\n\ninterface WidthStyleProps {\n width?: string | number | boolean;\n minWidth?: string | number | boolean;\n maxWidth?: string | number | boolean;\n}\n\nexport function widthStyle({ width, minWidth, maxWidth }: WidthStyleProps) {\n return dimension({ value: width, min: minWidth, max: maxWidth });\n}\n\nwidthStyle.__lookupStyles = ['width', 'minWidth', 'maxWidth'];\n"],"mappings":";;;;AAEA,MAAM,YAAY,eAAe,QAAQ;AAQzC,SAAgB,WAAW,EAAE,OAAO,UAAU,YAA6B;AACzE,QAAO,UAAU;EAAE,OAAO;EAAO,KAAK;EAAU,KAAK;EAAU,CAAC;;AAGlE,WAAW,iBAAiB;CAAC;CAAS;CAAY;CAAW"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.117.0 | Cube Dev Team */
|
|
2
|
-
import { extractLocalPredefinedStates, extractPredefinedStateRefs } from "../states/index.js";
|
|
3
|
-
|
|
4
|
-
//#region src/tasty/chunks/cacheKey.ts
|
|
5
|
-
/**
|
|
6
|
-
* Chunk-specific cache key generation.
|
|
7
|
-
*
|
|
8
|
-
* Generates cache keys that only include styles relevant to a specific chunk,
|
|
9
|
-
* enabling more granular caching and reuse.
|
|
10
|
-
*
|
|
11
|
-
* Enhanced to support predefined states:
|
|
12
|
-
* - Global predefined states don't affect cache keys (constant across app)
|
|
13
|
-
* - Local predefined states only affect cache keys if referenced in the chunk
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* Recursively serialize a value with sorted keys for stable output.
|
|
17
|
-
* This ensures that {a: 1, b: 2} and {b: 2, a: 1} produce the same string.
|
|
18
|
-
*/
|
|
19
|
-
function stableStringify(value) {
|
|
20
|
-
if (value === null) return "null";
|
|
21
|
-
if (value === void 0) return "undefined";
|
|
22
|
-
if (typeof value !== "object") return JSON.stringify(value);
|
|
23
|
-
if (Array.isArray(value)) return "[" + value.map(stableStringify).join(",") + "]";
|
|
24
|
-
const obj = value;
|
|
25
|
-
const sortedKeys = Object.keys(obj).sort();
|
|
26
|
-
const parts = [];
|
|
27
|
-
for (const key of sortedKeys) if (obj[key] !== void 0) parts.push(`${JSON.stringify(key)}:${stableStringify(obj[key])}`);
|
|
28
|
-
return "{" + parts.join(",") + "}";
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Generate a cache key for a specific chunk.
|
|
32
|
-
*
|
|
33
|
-
* Only includes the styles that belong to this chunk, allowing
|
|
34
|
-
* chunks to be cached independently.
|
|
35
|
-
*
|
|
36
|
-
* Also includes relevant local predefined states that are referenced
|
|
37
|
-
* by this chunk's styles.
|
|
38
|
-
*
|
|
39
|
-
* @param styles - The full styles object
|
|
40
|
-
* @param chunkName - Name of the chunk
|
|
41
|
-
* @param styleKeys - Keys of styles belonging to this chunk
|
|
42
|
-
* @returns A stable cache key string
|
|
43
|
-
*/
|
|
44
|
-
function generateChunkCacheKey(styles, chunkName, styleKeys) {
|
|
45
|
-
const parts = [chunkName];
|
|
46
|
-
const sortedKeys = styleKeys.slice().sort();
|
|
47
|
-
let chunkStylesStr = "";
|
|
48
|
-
for (const key of sortedKeys) {
|
|
49
|
-
const value = styles[key];
|
|
50
|
-
if (value !== void 0) {
|
|
51
|
-
const serialized = stableStringify(value);
|
|
52
|
-
parts.push(`${key}:${serialized}`);
|
|
53
|
-
chunkStylesStr += serialized;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
const localStates = extractLocalPredefinedStates(styles);
|
|
57
|
-
if (Object.keys(localStates).length > 0) {
|
|
58
|
-
const referencedStates = extractPredefinedStateRefs(chunkStylesStr);
|
|
59
|
-
const relevantLocalStates = [];
|
|
60
|
-
for (const stateName of referencedStates) if (localStates[stateName]) relevantLocalStates.push(`${stateName}=${localStates[stateName]}`);
|
|
61
|
-
if (relevantLocalStates.length > 0) {
|
|
62
|
-
relevantLocalStates.sort();
|
|
63
|
-
parts.unshift(`[states:${relevantLocalStates.join("|")}]`);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return parts.join("\0");
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
//#endregion
|
|
70
|
-
export { generateChunkCacheKey };
|
|
71
|
-
//# sourceMappingURL=cacheKey.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cacheKey.js","names":[],"sources":["../../../src/tasty/chunks/cacheKey.ts"],"sourcesContent":["/**\n * Chunk-specific cache key generation.\n *\n * Generates cache keys that only include styles relevant to a specific chunk,\n * enabling more granular caching and reuse.\n *\n * Enhanced to support predefined states:\n * - Global predefined states don't affect cache keys (constant across app)\n * - Local predefined states only affect cache keys if referenced in the chunk\n */\n\nimport {\n extractLocalPredefinedStates,\n extractPredefinedStateRefs,\n} from '../states';\nimport { Styles } from '../styles/types';\n\n/**\n * Recursively serialize a value with sorted keys for stable output.\n * This ensures that {a: 1, b: 2} and {b: 2, a: 1} produce the same string.\n */\nfunction stableStringify(value: unknown): string {\n if (value === null) {\n return 'null';\n }\n if (value === undefined) {\n return 'undefined';\n }\n if (typeof value !== 'object') {\n return JSON.stringify(value);\n }\n if (Array.isArray(value)) {\n return '[' + value.map(stableStringify).join(',') + ']';\n }\n // Object: sort keys for stable order\n const obj = value as Record<string, unknown>;\n const sortedKeys = Object.keys(obj).sort();\n const parts: string[] = [];\n for (const key of sortedKeys) {\n if (obj[key] !== undefined) {\n parts.push(`${JSON.stringify(key)}:${stableStringify(obj[key])}`);\n }\n }\n return '{' + parts.join(',') + '}';\n}\n\n/**\n * Generate a cache key for a specific chunk.\n *\n * Only includes the styles that belong to this chunk, allowing\n * chunks to be cached independently.\n *\n * Also includes relevant local predefined states that are referenced\n * by this chunk's styles.\n *\n * @param styles - The full styles object\n * @param chunkName - Name of the chunk\n * @param styleKeys - Keys of styles belonging to this chunk\n * @returns A stable cache key string\n */\nexport function generateChunkCacheKey(\n styles: Styles,\n chunkName: string,\n styleKeys: string[],\n): string {\n // Start with chunk name for namespace separation\n const parts: string[] = [chunkName];\n\n // Sort keys for stable ordering\n const sortedKeys = styleKeys.slice().sort();\n\n // Build the chunk-specific styles string for predefined state detection\n let chunkStylesStr = '';\n\n for (const key of sortedKeys) {\n const value = styles[key];\n if (value !== undefined) {\n // Use stable stringify for consistent serialization regardless of key order\n const serialized = stableStringify(value);\n parts.push(`${key}:${serialized}`);\n chunkStylesStr += serialized;\n }\n }\n\n // Extract local predefined states from the full styles object\n const localStates = extractLocalPredefinedStates(styles);\n\n // Only include local predefined states that are actually referenced in this chunk\n if (Object.keys(localStates).length > 0) {\n const referencedStates = extractPredefinedStateRefs(chunkStylesStr);\n const relevantLocalStates: string[] = [];\n\n for (const stateName of referencedStates) {\n if (localStates[stateName]) {\n relevantLocalStates.push(`${stateName}=${localStates[stateName]}`);\n }\n }\n\n // Add relevant local states to the cache key (sorted for stability)\n if (relevantLocalStates.length > 0) {\n relevantLocalStates.sort();\n parts.unshift(`[states:${relevantLocalStates.join('|')}]`);\n }\n }\n\n // Use null character as separator (safe, not in JSON output)\n return parts.join('\\0');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAqBA,SAAS,gBAAgB,OAAwB;AAC/C,KAAI,UAAU,KACZ,QAAO;AAET,KAAI,UAAU,OACZ,QAAO;AAET,KAAI,OAAO,UAAU,SACnB,QAAO,KAAK,UAAU,MAAM;AAE9B,KAAI,MAAM,QAAQ,MAAM,CACtB,QAAO,MAAM,MAAM,IAAI,gBAAgB,CAAC,KAAK,IAAI,GAAG;CAGtD,MAAM,MAAM;CACZ,MAAM,aAAa,OAAO,KAAK,IAAI,CAAC,MAAM;CAC1C,MAAM,QAAkB,EAAE;AAC1B,MAAK,MAAM,OAAO,WAChB,KAAI,IAAI,SAAS,OACf,OAAM,KAAK,GAAG,KAAK,UAAU,IAAI,CAAC,GAAG,gBAAgB,IAAI,KAAK,GAAG;AAGrE,QAAO,MAAM,MAAM,KAAK,IAAI,GAAG;;;;;;;;;;;;;;;;AAiBjC,SAAgB,sBACd,QACA,WACA,WACQ;CAER,MAAM,QAAkB,CAAC,UAAU;CAGnC,MAAM,aAAa,UAAU,OAAO,CAAC,MAAM;CAG3C,IAAI,iBAAiB;AAErB,MAAK,MAAM,OAAO,YAAY;EAC5B,MAAM,QAAQ,OAAO;AACrB,MAAI,UAAU,QAAW;GAEvB,MAAM,aAAa,gBAAgB,MAAM;AACzC,SAAM,KAAK,GAAG,IAAI,GAAG,aAAa;AAClC,qBAAkB;;;CAKtB,MAAM,cAAc,6BAA6B,OAAO;AAGxD,KAAI,OAAO,KAAK,YAAY,CAAC,SAAS,GAAG;EACvC,MAAM,mBAAmB,2BAA2B,eAAe;EACnE,MAAM,sBAAgC,EAAE;AAExC,OAAK,MAAM,aAAa,iBACtB,KAAI,YAAY,WACd,qBAAoB,KAAK,GAAG,UAAU,GAAG,YAAY,aAAa;AAKtE,MAAI,oBAAoB,SAAS,GAAG;AAClC,uBAAoB,MAAM;AAC1B,SAAM,QAAQ,WAAW,oBAAoB,KAAK,IAAI,CAAC,GAAG;;;AAK9D,QAAO,MAAM,KAAK,KAAK"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region src/tasty/chunks/definitions.d.ts
|
|
3
|
-
declare const CHUNK_NAMES: {
|
|
4
|
-
/** Special chunk for styles that cannot be split (e.g., @starting-style) */readonly COMBINED: "combined";
|
|
5
|
-
readonly SUBCOMPONENTS: "subcomponents";
|
|
6
|
-
readonly APPEARANCE: "appearance";
|
|
7
|
-
readonly FONT: "font";
|
|
8
|
-
readonly DIMENSION: "dimension";
|
|
9
|
-
readonly DISPLAY: "display";
|
|
10
|
-
readonly LAYOUT: "layout";
|
|
11
|
-
readonly POSITION: "position";
|
|
12
|
-
readonly MISC: "misc";
|
|
13
|
-
};
|
|
14
|
-
type ChunkName = (typeof CHUNK_NAMES)[keyof typeof CHUNK_NAMES];
|
|
15
|
-
/**
|
|
16
|
-
* Pre-computed map for O(1) style-to-chunk lookup.
|
|
17
|
-
* Built once at module load time.
|
|
18
|
-
*/
|
|
19
|
-
declare const STYLE_TO_CHUNK: Map<string, ChunkName>;
|
|
20
|
-
interface ChunkInfo {
|
|
21
|
-
/** Name of the chunk */
|
|
22
|
-
name: ChunkName | string;
|
|
23
|
-
/** Style keys belonging to this chunk */
|
|
24
|
-
styleKeys: string[];
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Categorize style keys into chunks.
|
|
28
|
-
*
|
|
29
|
-
* Returns chunks in a deterministic order (by CHUNK_ORDER) regardless
|
|
30
|
-
* of the order of keys in the input styles object.
|
|
31
|
-
*
|
|
32
|
-
* @param styles - The styles object to categorize
|
|
33
|
-
* @returns Map of chunk name to array of style keys in that chunk (in priority order)
|
|
34
|
-
*/
|
|
35
|
-
declare function categorizeStyleKeys(styles: Record<string, unknown>): Map<string, string[]>;
|
|
36
|
-
//#endregion
|
|
37
|
-
export { CHUNK_NAMES, ChunkInfo, ChunkName, STYLE_TO_CHUNK, categorizeStyleKeys };
|
|
38
|
-
//# sourceMappingURL=definitions.d.ts.map
|