@cube-dev/ui-kit 0.149.2 → 0.151.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 +51 -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.js +1 -1
- package/dist/components/CollectionItem.js +1 -1
- package/dist/components/GlobalStyles.js +7 -7
- package/dist/components/GlobalStyles.js.map +1 -1
- package/dist/components/GridProvider.js +1 -1
- package/dist/components/HiddenInput.js +1 -1
- package/dist/components/Root.js +1 -1
- package/dist/components/actions/Action/Action.js +1 -1
- package/dist/components/actions/Banner/Banner.js +1 -1
- package/dist/components/actions/Button/Button.js +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.js +1 -1
- package/dist/components/actions/CommandMenu/styled.js +1 -1
- package/dist/components/actions/ItemAction/ItemAction.js +1 -1
- package/dist/components/actions/ItemActionContext.js +1 -1
- package/dist/components/actions/ItemButton/ItemButton.js +1 -1
- package/dist/components/actions/Link/Link.js +1 -1
- package/dist/components/actions/Menu/Menu.js +1 -1
- package/dist/components/actions/Menu/MenuItem.js +1 -1
- package/dist/components/actions/Menu/MenuSection.js +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 +1 -1
- package/dist/components/actions/index.js +1 -1
- package/dist/components/actions/use-action.js +1 -1
- 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.js +1 -1
- package/dist/components/content/Alert/Alert.js +1 -1
- package/dist/components/content/Alert/use-alert.js +1 -1
- package/dist/components/content/Avatar/Avatar.js +1 -1
- package/dist/components/content/Badge/Badge.js +1 -1
- package/dist/components/content/Card/Card.js +1 -1
- package/dist/components/content/Content.js +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.js +5 -1
- package/dist/components/content/CopySnippet/CopySnippet.js.map +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +1 -1
- package/dist/components/content/Divider.js +1 -1
- package/dist/components/content/Footer.js +1 -1
- package/dist/components/content/Header.js +1 -1
- package/dist/components/content/HotKeys/HotKeys.js +1 -1
- package/dist/components/content/InfoBadge/InfoBadge.js +1 -1
- package/dist/components/content/InlineInput/InlineInput.js +1 -1
- package/dist/components/content/Item/Item.js +1 -1
- package/dist/components/content/ItemBadge/ItemBadge.js +1 -1
- package/dist/components/content/ItemCard/ItemCard.js +1 -1
- package/dist/components/content/Layout/GridLayout.js +1 -1
- package/dist/components/content/Layout/Layout.js +1 -1
- package/dist/components/content/Layout/LayoutBlock.js +1 -1
- package/dist/components/content/Layout/LayoutCenter.js +1 -1
- package/dist/components/content/Layout/LayoutContainer.js +1 -1
- package/dist/components/content/Layout/LayoutContent.js +1 -1
- package/dist/components/content/Layout/LayoutContext.js +1 -1
- package/dist/components/content/Layout/LayoutFlex.js +1 -1
- package/dist/components/content/Layout/LayoutFooter.js +1 -1
- package/dist/components/content/Layout/LayoutGrid.js +1 -1
- package/dist/components/content/Layout/LayoutHeader.js +1 -1
- package/dist/components/content/Layout/LayoutPane.js +1 -1
- package/dist/components/content/Layout/LayoutPanel.js +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +1 -1
- package/dist/components/content/Layout/LayoutToolbar.js +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.js +1 -1
- package/dist/components/content/Placeholder/Placeholder.js +1 -1
- package/dist/components/content/PrismCode/PrismCode.js +6 -2
- 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.js +1 -1
- package/dist/components/content/Result/Result.js +1 -1
- package/dist/components/content/Skeleton/Skeleton.js +1 -1
- package/dist/components/content/Tag/Tag.js +1 -1
- package/dist/components/content/Text.d.ts +7 -7
- package/dist/components/content/Text.js +1 -1
- package/dist/components/content/TextItem/TextItem.js +1 -1
- package/dist/components/content/Title.js +1 -1
- package/dist/components/content/Tree/Tree.js +1 -1
- package/dist/components/content/Tree/TreeNode.js +1 -1
- package/dist/components/content/Tree/styled.js +1 -1
- package/dist/components/content/Tree/tree-index.js +1 -1
- package/dist/components/content/Tree/use-checkbox-tree.js +1 -1
- package/dist/components/content/Tree/use-load-data.js +1 -1
- package/dist/components/content/highlightText.js +1 -1
- package/dist/components/content/use-auto-tooltip.js +1 -1
- package/dist/components/fields/Checkbox/Checkbox.js +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.js +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ComboBox/ComboBox.js +1 -1
- package/dist/components/fields/CommandTextArea/CommandTextArea.js +1 -1
- package/dist/components/fields/CommandTextArea/caretPosition.js +1 -1
- package/dist/components/fields/CommandTextArea/useCaretAnchor.js +1 -1
- package/dist/components/fields/DatePicker/DateInput.js +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
- package/dist/components/fields/DatePicker/DatePicker.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.js +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +1 -1
- package/dist/components/fields/DatePicker/TimeInput.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.js +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.js +1 -1
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
- package/dist/components/fields/ListBox/ListBox.js +1 -1
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.js +1 -1
- package/dist/components/fields/ListBoxPopover/listNavigation.js +1 -1
- package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +1 -1
- package/dist/components/fields/NumberInput/NumberInput.js +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/fields/Picker/Picker.js +1 -1
- package/dist/components/fields/RadioGroup/Radio.js +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/SearchComboBox/SearchComboBox.js +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +1 -1
- package/dist/components/fields/Select/Select.js +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/RangeSlider.js +1 -1
- package/dist/components/fields/Slider/Slider.js +1 -1
- package/dist/components/fields/Slider/SliderBase.js +1 -1
- package/dist/components/fields/Slider/SliderThumb.js +1 -1
- package/dist/components/fields/Slider/SliderTrack.js +1 -1
- package/dist/components/fields/Slider/elements.js +1 -1
- package/dist/components/fields/Slider/index.js +1 -1
- package/dist/components/fields/Switch/Switch.js +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.js +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.js +1 -1
- package/dist/components/form/Form/Field.js +1 -1
- package/dist/components/form/Form/Form.js +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 +1 -1
- package/dist/components/form/Form/validation.js +1 -1
- package/dist/components/form/Label.js +1 -1
- package/dist/components/form/validation/ValidationIndicator.js +1 -1
- package/dist/components/form/validation/resolve-validation-props.js +1 -1
- package/dist/components/form/validation/use-validation-props.js +1 -1
- package/dist/components/form/wrapper.js +1 -1
- package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
- package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
- package/dist/components/layout/Board/Board.js +1 -1
- package/dist/components/layout/Board/BoardProvider.js +1 -1
- package/dist/components/layout/Board/BoardResponsive.js +1 -1
- package/dist/components/layout/Board/Widget.js +1 -1
- package/dist/components/layout/Board/WidgetHost.js +1 -1
- package/dist/components/layout/Board/board-context.js +1 -1
- package/dist/components/layout/Board/board-store.js +1 -1
- package/dist/components/layout/Board/grid-core/calculate.js +1 -1
- package/dist/components/layout/Board/grid-core/collision.js +1 -1
- package/dist/components/layout/Board/grid-core/compactors.js +1 -1
- package/dist/components/layout/Board/grid-core/constraints.js +1 -1
- package/dist/components/layout/Board/grid-core/layout.js +1 -1
- package/dist/components/layout/Board/grid-core/sort.js +1 -1
- package/dist/components/layout/Board/index.js +1 -1
- package/dist/components/layout/Board/responsive-utils.js +1 -1
- package/dist/components/layout/Board/use-board-layout.js +1 -1
- package/dist/components/layout/Board/use-board-registry.js +1 -1
- package/dist/components/layout/Flex.js +1 -1
- package/dist/components/layout/Flow.js +1 -1
- package/dist/components/layout/Grid.js +1 -1
- package/dist/components/layout/Panel.js +1 -1
- package/dist/components/layout/Prefix.js +1 -1
- package/dist/components/layout/ResizablePanel.js +1 -1
- package/dist/components/layout/Space.js +1 -1
- package/dist/components/layout/Suffix.js +1 -1
- package/dist/components/navigation/Tabs/DraggableTabList.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/TabPicker.js +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +1 -1
- package/dist/components/navigation/Tabs/TabsAction.js +1 -1
- package/dist/components/navigation/Tabs/TabsContext.js +1 -1
- package/dist/components/navigation/Tabs/popover-placement.js +1 -1
- package/dist/components/navigation/Tabs/styled.js +1 -1
- package/dist/components/navigation/Tabs/types.js +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.js +1 -1
- package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
- package/dist/components/other/Calendar/Calendar.js +1 -1
- package/dist/components/other/Calendar/CalendarCell.js +1 -1
- package/dist/components/other/Calendar/CalendarGrid.js +1 -1
- package/dist/components/other/Calendar/RangeCalendar.js +1 -1
- package/dist/components/other/CubeLogo/CubeLogo.d.ts +10 -0
- package/dist/components/other/CubeLogo/CubeLogo.js +120 -0
- package/dist/components/other/CubeLogo/CubeLogo.js.map +1 -0
- 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/Dialog/Dialog.js +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.js +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.js +1 -1
- package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
- package/dist/components/overlays/Modal/Overlay.js +1 -1
- package/dist/components/overlays/Modal/Popover.js +1 -1
- package/dist/components/overlays/Modal/Tray.js +1 -1
- package/dist/components/overlays/Modal/Underlay.js +1 -1
- package/dist/components/overlays/Notifications/Notification.js +1 -1
- package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
- package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +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/use-notification-state.js +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 +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +1 -1
- package/dist/components/overlays/Toast/index.js +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useToast.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
- package/dist/components/overlays/Tooltip/context.js +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/DraggableCollection.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 +1 -1
- package/dist/components/status/Spin/Cube.js +1 -1
- package/dist/components/status/Spin/InternalSpinner.js +1 -1
- package/dist/components/status/Spin/Spin.js +1 -1
- package/dist/components/status/Spin/SpinsContainer.js +1 -1
- package/dist/data/item-themes.js +5 -3
- package/dist/data/item-themes.js.map +1 -1
- package/dist/data/themes.js +1 -1
- package/dist/i18n/I18nProvider.js +1 -1
- package/dist/i18n/createFormatter.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/instance.js +1 -1
- package/dist/i18n/locales/de-DE/uikit.js +1 -1
- package/dist/i18n/locales/en-US/uikit.js +1 -1
- package/dist/i18n/locales/es-ES/uikit.js +1 -1
- package/dist/i18n/locales/es-MX/uikit.js +1 -1
- package/dist/i18n/locales/fr-FR/uikit.js +1 -1
- package/dist/i18n/locales/it-IT/uikit.js +1 -1
- package/dist/i18n/locales/ja-JP/uikit.js +1 -1
- package/dist/i18n/locales/nb-NO/uikit.js +1 -1
- package/dist/i18n/locales/pt-BR/uikit.js +1 -1
- package/dist/i18n/locales/pt-PT/uikit.js +1 -1
- package/dist/i18n/locales/sv-SE/uikit.js +1 -1
- package/dist/i18n/locales/vi-VN/uikit.js +1 -1
- package/dist/i18n/locales.js +1 -1
- package/dist/i18n/useFormatter.js +1 -1
- package/dist/i18n/useI18n.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 +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/GripVerticalIcon.js +1 -1
- package/dist/icons/HierarchyIcon.js +1 -1
- package/dist/icons/HierarchyOpenIcon.js +1 -1
- package/dist/icons/Icon.js +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 +6 -5
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/provider.js +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/tokens/base.js +1 -1
- package/dist/tokens/colors.d.ts +2 -7
- package/dist/tokens/colors.js +16 -7
- package/dist/tokens/colors.js.map +1 -1
- package/dist/tokens/index.d.ts +5 -17
- package/dist/tokens/index.js +23 -13
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/layout.js +1 -1
- package/dist/tokens/lazy-styles.js +33 -0
- package/dist/tokens/lazy-styles.js.map +1 -0
- package/dist/tokens/palette.d.ts +15 -0
- package/dist/tokens/palette.js +166 -123
- package/dist/tokens/palette.js.map +1 -1
- package/dist/tokens/shadows.js +1 -1
- package/dist/tokens/sizes.js +1 -1
- package/dist/tokens/spacing.js +1 -1
- package/dist/tokens/typography.d.ts +1 -0
- package/dist/tokens/typography.js +29 -1
- package/dist/tokens/typography.js.map +1 -1
- package/dist/utils/ResizeSensor.js +1 -1
- package/dist/utils/is-dev-env.js +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.js +1 -1
- 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.js +1 -1
- package/dist/utils/react/nullableValue.js +1 -1
- package/dist/utils/react/resolveIcon.js +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.js +1 -1
- package/dist/utils/react/usePopoverSync.js +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/selection.js +1 -1
- package/dist/utils/styles.js +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/version.js +2 -2
- package/docs/Colors.md +77 -0
- package/docs/Typography.md +1 -1
- package/docs/Usage.md +10 -0
- package/docs/components/content/CopySnippet.md +1 -1
- package/docs/components/content/PrismCode.md +1 -0
- package/docs/components/other/CubeLogo.md +58 -0
- package/docs/glaze/api.md +1033 -414
- package/docs/glaze/methodology.md +536 -208
- package/docs/glaze/migration.md +127 -49
- package/docs/glaze/okhst.md +190 -0
- package/package.json +2 -2
- package/dist/components/other/CloudLogo/CloudLogo.d.ts +0 -11
- package/dist/components/other/CloudLogo/CloudLogo.js +0 -110
- package/dist/components/other/CloudLogo/CloudLogo.js.map +0 -1
- package/docs/components/other/CloudLogo.md +0 -45
package/dist/tokens/palette.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.151.0 | Cube Dev Team */
|
|
2
|
+
import { lazyStyles } from "./lazy-styles.js";
|
|
2
3
|
import { glaze } from "@tenphi/glaze";
|
|
3
4
|
|
|
4
5
|
//#region src/tokens/palette.ts
|
|
@@ -8,7 +9,7 @@ import { glaze } from "@tenphi/glaze";
|
|
|
8
9
|
* Produces light, dark, and high-contrast color variants from a single
|
|
9
10
|
* source of truth. Every color token is emitted as a tasty state map:
|
|
10
11
|
*
|
|
11
|
-
* '#surface': { '': '
|
|
12
|
+
* '#surface': { '': 'oklch(...)', '@dark': 'oklch(...)', '@hc': 'oklch(...)' }
|
|
12
13
|
*
|
|
13
14
|
* The `@dark` and `@hc` state aliases are wired up globally in
|
|
14
15
|
* `src/components/Root.tsx` (see `setGlobalPredefinedStates`).
|
|
@@ -20,6 +21,11 @@ const WARNING_HUE = 84.3;
|
|
|
20
21
|
const NOTE_HUE = 302.3;
|
|
21
22
|
/** Seed saturation; per-color saturation factors below are 0–1 of this seed. */
|
|
22
23
|
const SEED_SATURATION = 80;
|
|
24
|
+
const TEXT_TONE = -98;
|
|
25
|
+
const TEXT_SOFT_TONE = -72;
|
|
26
|
+
const TEXT_SOFT2_TONE = -52;
|
|
27
|
+
const SURFACE_2_TEXT_OFFSET = 2;
|
|
28
|
+
const SURFACE_3_TEXT_OFFSET = 4;
|
|
23
29
|
glaze.configure({
|
|
24
30
|
states: {
|
|
25
31
|
dark: "@dark",
|
|
@@ -28,259 +34,263 @@ glaze.configure({
|
|
|
28
34
|
modes: {
|
|
29
35
|
dark: true,
|
|
30
36
|
highContrast: true
|
|
31
|
-
}
|
|
37
|
+
},
|
|
38
|
+
darkTone: [14, 95],
|
|
39
|
+
darkDesaturation: 0
|
|
32
40
|
});
|
|
33
41
|
const defaultTheme = glaze(PURPLE_HUE, SEED_SATURATION);
|
|
34
42
|
defaultTheme.colors({
|
|
35
43
|
surface: {
|
|
36
|
-
|
|
37
|
-
saturation: .
|
|
44
|
+
tone: 100,
|
|
45
|
+
saturation: .12
|
|
38
46
|
},
|
|
39
47
|
"surface-2": {
|
|
40
48
|
base: "surface",
|
|
41
|
-
|
|
42
|
-
saturation: .
|
|
49
|
+
tone: "-2",
|
|
50
|
+
saturation: .1,
|
|
43
51
|
inherit: false
|
|
44
52
|
},
|
|
45
53
|
"surface-3": {
|
|
46
54
|
base: "surface",
|
|
47
|
-
|
|
48
|
-
saturation: .
|
|
55
|
+
tone: "-4",
|
|
56
|
+
saturation: .1,
|
|
49
57
|
inherit: false
|
|
50
58
|
},
|
|
51
59
|
"surface-4": {
|
|
52
60
|
base: "surface",
|
|
53
|
-
|
|
54
|
-
saturation: .
|
|
61
|
+
tone: "-6",
|
|
62
|
+
saturation: .1,
|
|
55
63
|
inherit: false
|
|
56
64
|
},
|
|
57
65
|
"surface-text": {
|
|
58
66
|
base: "surface",
|
|
59
|
-
|
|
60
|
-
saturation: .
|
|
67
|
+
tone: `${TEXT_TONE - 2}`,
|
|
68
|
+
saturation: .2,
|
|
69
|
+
contrast: ["AA", "AAA"]
|
|
61
70
|
},
|
|
62
71
|
"surface-text-soft": {
|
|
63
72
|
base: "surface",
|
|
64
|
-
|
|
65
|
-
saturation: .
|
|
66
|
-
contrast: [
|
|
73
|
+
tone: `${TEXT_SOFT_TONE - 2}`,
|
|
74
|
+
saturation: .2,
|
|
75
|
+
contrast: ["AA", "AAA"],
|
|
67
76
|
inherit: false
|
|
68
77
|
},
|
|
69
78
|
"surface-text-soft-2": {
|
|
70
79
|
base: "surface",
|
|
71
|
-
|
|
72
|
-
saturation: .
|
|
73
|
-
contrast: [
|
|
80
|
+
tone: `${TEXT_SOFT2_TONE - 2}`,
|
|
81
|
+
saturation: .2,
|
|
82
|
+
contrast: ["AA", "AAA"],
|
|
74
83
|
inherit: false
|
|
75
84
|
},
|
|
76
85
|
"surface-2-text": {
|
|
77
86
|
base: "surface-2",
|
|
78
|
-
|
|
79
|
-
saturation: .
|
|
87
|
+
tone: `${TEXT_TONE + SURFACE_2_TEXT_OFFSET}`,
|
|
88
|
+
saturation: .2,
|
|
89
|
+
contrast: ["AA", "AAA"],
|
|
80
90
|
inherit: false
|
|
81
91
|
},
|
|
82
92
|
"surface-2-text-soft": {
|
|
83
93
|
base: "surface-2",
|
|
84
|
-
|
|
85
|
-
saturation: .
|
|
86
|
-
contrast: [
|
|
94
|
+
tone: `${TEXT_SOFT_TONE + SURFACE_2_TEXT_OFFSET}`,
|
|
95
|
+
saturation: .2,
|
|
96
|
+
contrast: ["AA", "AAA"],
|
|
87
97
|
inherit: false
|
|
88
98
|
},
|
|
89
99
|
"surface-3-text": {
|
|
90
100
|
base: "surface-3",
|
|
91
|
-
|
|
92
|
-
saturation: .
|
|
101
|
+
tone: `${TEXT_TONE + SURFACE_3_TEXT_OFFSET}`,
|
|
102
|
+
saturation: .2,
|
|
103
|
+
contrast: ["AA", "AAA"],
|
|
93
104
|
inherit: false
|
|
94
105
|
},
|
|
95
106
|
"surface-3-text-soft": {
|
|
96
107
|
base: "surface-3",
|
|
97
|
-
|
|
98
|
-
saturation: .
|
|
99
|
-
contrast: [
|
|
108
|
+
tone: `${TEXT_SOFT_TONE + SURFACE_3_TEXT_OFFSET}`,
|
|
109
|
+
saturation: .2,
|
|
110
|
+
contrast: ["AA", "AAA"],
|
|
100
111
|
inherit: false
|
|
101
112
|
},
|
|
102
113
|
border: {
|
|
103
114
|
base: "surface",
|
|
104
|
-
|
|
115
|
+
tone: ["-10", "-20"],
|
|
105
116
|
saturation: .175
|
|
106
117
|
},
|
|
107
118
|
placeholder: {
|
|
108
119
|
base: "surface",
|
|
109
|
-
|
|
120
|
+
tone: "-33",
|
|
110
121
|
saturation: .175,
|
|
111
122
|
inherit: false
|
|
112
123
|
},
|
|
113
124
|
focus: {
|
|
114
125
|
base: "surface",
|
|
115
|
-
|
|
126
|
+
tone: "-29",
|
|
116
127
|
saturation: .8625,
|
|
117
128
|
inherit: false
|
|
118
129
|
},
|
|
119
130
|
disabled: {
|
|
120
|
-
|
|
131
|
+
tone: 80.8,
|
|
121
132
|
saturation: .4,
|
|
122
133
|
inherit: false
|
|
123
134
|
},
|
|
124
135
|
"disabled-surface": {
|
|
125
136
|
base: "surface",
|
|
126
|
-
|
|
137
|
+
tone: "-3.5",
|
|
127
138
|
saturation: .2,
|
|
128
|
-
contrast: [1.1, 1.2],
|
|
129
139
|
inherit: false
|
|
130
140
|
},
|
|
131
141
|
"disabled-surface-text": {
|
|
132
142
|
base: "surface",
|
|
133
|
-
|
|
143
|
+
tone: "-23",
|
|
134
144
|
saturation: .3,
|
|
135
|
-
contrast: [2, 2.5],
|
|
136
145
|
inherit: false
|
|
137
146
|
},
|
|
138
147
|
"surface-inverse": {
|
|
139
|
-
|
|
148
|
+
tone: 12,
|
|
140
149
|
saturation: .475,
|
|
141
150
|
mode: "fixed",
|
|
142
151
|
inherit: false
|
|
143
152
|
},
|
|
144
153
|
"accent-surface-text": {
|
|
145
|
-
|
|
154
|
+
tone: 100,
|
|
146
155
|
mode: "fixed"
|
|
147
156
|
},
|
|
148
157
|
"accent-surface": {
|
|
149
158
|
base: "accent-surface-text",
|
|
150
|
-
|
|
151
|
-
contrast: [
|
|
159
|
+
tone: "-49",
|
|
160
|
+
contrast: ["AA", "AAA"],
|
|
152
161
|
mode: "fixed"
|
|
153
162
|
},
|
|
154
163
|
"accent-surface-2": {
|
|
155
164
|
base: "accent-surface-text",
|
|
156
|
-
|
|
157
|
-
contrast: [
|
|
165
|
+
tone: "-52",
|
|
166
|
+
contrast: ["AA", "AAA"],
|
|
158
167
|
mode: "fixed"
|
|
159
168
|
},
|
|
160
169
|
"accent-surface-3": {
|
|
161
170
|
base: "accent-surface-text",
|
|
162
|
-
|
|
163
|
-
contrast: [
|
|
171
|
+
tone: "-55",
|
|
172
|
+
contrast: ["AA", "AAA"],
|
|
164
173
|
mode: "fixed"
|
|
165
174
|
},
|
|
166
175
|
"accent-surface-hover": {
|
|
167
176
|
base: "accent-surface-text",
|
|
168
|
-
|
|
169
|
-
contrast: [
|
|
177
|
+
tone: "-58",
|
|
178
|
+
contrast: ["AA", "AAA"],
|
|
170
179
|
mode: "fixed"
|
|
171
180
|
},
|
|
172
181
|
"accent-surface-border": {
|
|
173
182
|
base: "accent-surface",
|
|
174
|
-
|
|
175
|
-
contrast: [1.4, 1.8],
|
|
183
|
+
tone: "+13",
|
|
176
184
|
mode: "fixed"
|
|
177
185
|
},
|
|
178
|
-
"accent-
|
|
186
|
+
"accent-selected-fill": {
|
|
187
|
+
type: "mix",
|
|
179
188
|
base: "surface",
|
|
180
|
-
|
|
189
|
+
target: "accent-surface",
|
|
190
|
+
value: 9,
|
|
191
|
+
space: "srgb"
|
|
192
|
+
},
|
|
193
|
+
"accent-text": {
|
|
194
|
+
base: "accent-selected-fill",
|
|
195
|
+
tone: "-49",
|
|
181
196
|
saturation: 1,
|
|
182
|
-
contrast: [6
|
|
197
|
+
contrast: [6, 11]
|
|
183
198
|
},
|
|
184
199
|
"accent-text-soft": {
|
|
185
|
-
base: "
|
|
186
|
-
|
|
200
|
+
base: "accent-selected-fill",
|
|
201
|
+
tone: "-49",
|
|
187
202
|
saturation: 1,
|
|
188
|
-
contrast: [
|
|
203
|
+
contrast: ["AA", "AAA"]
|
|
189
204
|
},
|
|
190
205
|
"accent-icon": {
|
|
191
206
|
base: "surface",
|
|
192
|
-
|
|
193
|
-
saturation: .9375
|
|
194
|
-
contrast: [3.2, 5]
|
|
207
|
+
tone: "-38",
|
|
208
|
+
saturation: .9375
|
|
195
209
|
},
|
|
196
210
|
"accent-disabled-surface": {
|
|
197
211
|
base: "surface",
|
|
198
|
-
|
|
212
|
+
tone: "-13",
|
|
199
213
|
saturation: .5,
|
|
200
|
-
|
|
214
|
+
mode: "fixed"
|
|
201
215
|
},
|
|
202
216
|
"accent-disabled-surface-text": {
|
|
203
217
|
base: "accent-disabled-surface",
|
|
204
|
-
|
|
218
|
+
tone: "max",
|
|
205
219
|
saturation: .4,
|
|
206
|
-
contrast: 1.51,
|
|
207
220
|
mode: "fixed"
|
|
208
221
|
},
|
|
209
222
|
"code-comment": {
|
|
210
223
|
base: "surface",
|
|
211
224
|
hue: 280,
|
|
212
225
|
saturation: .1,
|
|
213
|
-
|
|
214
|
-
contrast: [
|
|
226
|
+
tone: "-50",
|
|
227
|
+
contrast: ["AA", "AAA"],
|
|
215
228
|
inherit: false
|
|
216
229
|
},
|
|
217
230
|
"code-punctuation": {
|
|
218
231
|
base: "surface",
|
|
219
232
|
hue: 348,
|
|
220
233
|
saturation: .4,
|
|
221
|
-
|
|
222
|
-
contrast: [
|
|
234
|
+
tone: "-50",
|
|
235
|
+
contrast: ["AA", "AAA"],
|
|
223
236
|
inherit: false
|
|
224
237
|
},
|
|
225
238
|
"code-keyword": {
|
|
226
239
|
base: "surface",
|
|
227
240
|
hue: 348,
|
|
228
241
|
saturation: 1,
|
|
229
|
-
|
|
230
|
-
contrast: [
|
|
242
|
+
tone: "-54",
|
|
243
|
+
contrast: ["AA", "AAA"],
|
|
231
244
|
inherit: false
|
|
232
245
|
},
|
|
233
246
|
"code-string": {
|
|
234
247
|
base: "surface",
|
|
235
248
|
hue: PURPLE_HUE,
|
|
236
249
|
saturation: 1,
|
|
237
|
-
|
|
238
|
-
contrast: [
|
|
250
|
+
tone: "-50",
|
|
251
|
+
contrast: ["AA", "AAA"],
|
|
239
252
|
inherit: false
|
|
240
253
|
},
|
|
241
254
|
"code-number": {
|
|
242
255
|
base: "surface",
|
|
243
256
|
hue: 156,
|
|
244
257
|
saturation: .9,
|
|
245
|
-
|
|
246
|
-
contrast: [
|
|
258
|
+
tone: "-50",
|
|
259
|
+
contrast: ["AA", "AAA"],
|
|
247
260
|
inherit: false
|
|
248
261
|
},
|
|
249
262
|
"code-function": {
|
|
250
263
|
base: "surface",
|
|
251
264
|
hue: 348,
|
|
252
265
|
saturation: 1,
|
|
253
|
-
|
|
254
|
-
contrast: [
|
|
266
|
+
tone: "-54",
|
|
267
|
+
contrast: ["AA", "AAA"],
|
|
255
268
|
inherit: false
|
|
256
269
|
},
|
|
257
270
|
"code-attribute": {
|
|
258
271
|
base: "surface",
|
|
259
272
|
hue: 200,
|
|
260
273
|
saturation: 1,
|
|
261
|
-
|
|
262
|
-
contrast: [
|
|
274
|
+
tone: "-50",
|
|
275
|
+
contrast: ["AA", "AAA"],
|
|
263
276
|
inherit: false
|
|
264
277
|
},
|
|
265
278
|
"loading-face-1": {
|
|
266
279
|
base: "surface",
|
|
267
|
-
|
|
280
|
+
tone: "-2",
|
|
268
281
|
saturation: .3,
|
|
269
|
-
contrast: [1.04, 1.5],
|
|
270
282
|
inherit: false
|
|
271
283
|
},
|
|
272
284
|
"loading-face-2": {
|
|
273
285
|
base: "surface",
|
|
274
|
-
|
|
286
|
+
tone: "-9",
|
|
275
287
|
saturation: .62,
|
|
276
|
-
contrast: [1.24, 2.5],
|
|
277
288
|
inherit: false
|
|
278
289
|
},
|
|
279
290
|
"loading-face-3": {
|
|
280
291
|
base: "surface",
|
|
281
|
-
|
|
292
|
+
tone: "-21",
|
|
282
293
|
saturation: .66,
|
|
283
|
-
contrast: [1.75, 4],
|
|
284
294
|
inherit: false
|
|
285
295
|
},
|
|
286
296
|
"shadow-sm": {
|
|
@@ -305,29 +315,49 @@ defaultTheme.colors({
|
|
|
305
315
|
inherit: false
|
|
306
316
|
},
|
|
307
317
|
overlay: {
|
|
308
|
-
|
|
318
|
+
tone: 10,
|
|
309
319
|
opacity: .5,
|
|
310
320
|
inherit: false
|
|
311
321
|
}
|
|
312
322
|
});
|
|
323
|
+
const TINTED_SURFACE_SATURATION = .2;
|
|
324
|
+
const TINTED_SURFACE_TONE_OFFSET = 2;
|
|
313
325
|
/**
|
|
314
326
|
* Per-colored-theme overrides on top of `defaultTheme`:
|
|
315
327
|
* - `surface` — bumped saturation so the banner bg is visibly tinted.
|
|
316
328
|
* - `border` — bumped saturation so OUTLINE-variant borders pick up the
|
|
317
329
|
* theme hue (used by `#<theme>-border` in `item-themes.ts`). Mirrors the
|
|
318
|
-
* default-theme `border` shape (`base: 'surface'`,
|
|
330
|
+
* default-theme `border` shape (`base: 'surface'`, tone window) but
|
|
319
331
|
* with higher saturation. Glaze's `extend({ colors })` redefines each
|
|
320
332
|
* listed color from scratch, so we restate the full definition here.
|
|
321
333
|
*/
|
|
322
334
|
const TINTED_SURFACE_OVERRIDE = {
|
|
323
335
|
surface: {
|
|
324
|
-
|
|
325
|
-
saturation:
|
|
336
|
+
tone: 100 - TINTED_SURFACE_TONE_OFFSET,
|
|
337
|
+
saturation: TINTED_SURFACE_SATURATION
|
|
326
338
|
},
|
|
327
339
|
border: {
|
|
328
340
|
base: "surface",
|
|
329
|
-
|
|
341
|
+
tone: ["-10", "-20"],
|
|
330
342
|
saturation: .5
|
|
343
|
+
},
|
|
344
|
+
"surface-text": {
|
|
345
|
+
base: "surface",
|
|
346
|
+
tone: `${TEXT_TONE - TINTED_SURFACE_TONE_OFFSET}`,
|
|
347
|
+
saturation: .25,
|
|
348
|
+
contrast: ["AA", "AAA"]
|
|
349
|
+
},
|
|
350
|
+
"surface-text-soft": {
|
|
351
|
+
base: "surface",
|
|
352
|
+
tone: `${TEXT_SOFT_TONE - TINTED_SURFACE_TONE_OFFSET}`,
|
|
353
|
+
saturation: .25,
|
|
354
|
+
contrast: ["AA", "AAA"]
|
|
355
|
+
},
|
|
356
|
+
"surface-text-soft-2": {
|
|
357
|
+
base: "surface",
|
|
358
|
+
tone: `${TEXT_SOFT2_TONE - TINTED_SURFACE_TONE_OFFSET}`,
|
|
359
|
+
saturation: .25,
|
|
360
|
+
contrast: ["AA", "AAA"]
|
|
331
361
|
}
|
|
332
362
|
};
|
|
333
363
|
const primaryTheme = defaultTheme.extend({ colors: TINTED_SURFACE_OVERRIDE });
|
|
@@ -372,68 +402,66 @@ const noteTheme = defaultTheme.extend({
|
|
|
372
402
|
* pressed/focused border on the brand-purple primary fill. Matches the
|
|
373
403
|
* legacy `#fixed-primary-text` alias (= `#primary-accent-surface-hover`).
|
|
374
404
|
* - `accent-disabled-surface` / `accent-disabled-surface-text` —
|
|
375
|
-
* brand-tinted disabled chip + label,
|
|
376
|
-
* dark `surface` so the disabled state is
|
|
405
|
+
* brand-tinted disabled chip + label, positioned with relative tone
|
|
406
|
+
* deltas against the fixed dark `surface` so the disabled state is
|
|
407
|
+
* scheme-symmetric.
|
|
377
408
|
*/
|
|
378
409
|
const specialTheme = glaze(PURPLE_HUE, SEED_SATURATION);
|
|
379
410
|
specialTheme.colors({
|
|
380
411
|
surface: {
|
|
381
|
-
|
|
412
|
+
tone: 12,
|
|
382
413
|
saturation: .475,
|
|
383
414
|
mode: "fixed"
|
|
384
415
|
},
|
|
385
416
|
"accent-surface-text": {
|
|
386
|
-
|
|
417
|
+
tone: 100,
|
|
387
418
|
mode: "fixed"
|
|
388
419
|
},
|
|
389
420
|
"accent-surface": {
|
|
390
421
|
base: "accent-surface-text",
|
|
391
|
-
|
|
392
|
-
contrast: [
|
|
422
|
+
tone: "-49",
|
|
423
|
+
contrast: ["AA", "AAA"],
|
|
393
424
|
mode: "fixed"
|
|
394
425
|
},
|
|
395
426
|
"accent-surface-2": {
|
|
396
427
|
base: "accent-surface-text",
|
|
397
|
-
|
|
398
|
-
contrast: [
|
|
428
|
+
tone: "-52",
|
|
429
|
+
contrast: ["AA", "AAA"],
|
|
399
430
|
mode: "fixed"
|
|
400
431
|
},
|
|
401
432
|
"accent-surface-3": {
|
|
402
433
|
base: "accent-surface-text",
|
|
403
|
-
|
|
404
|
-
contrast: [
|
|
434
|
+
tone: "-55",
|
|
435
|
+
contrast: ["AA", "AAA"],
|
|
405
436
|
mode: "fixed"
|
|
406
437
|
},
|
|
407
438
|
"accent-surface-border": {
|
|
408
439
|
base: "accent-surface",
|
|
409
|
-
|
|
410
|
-
contrast: [1.4, 1.8],
|
|
440
|
+
tone: "+13",
|
|
411
441
|
mode: "fixed"
|
|
412
442
|
},
|
|
413
443
|
"accent-surface-hover": {
|
|
414
444
|
base: "accent-surface-text",
|
|
415
|
-
|
|
416
|
-
contrast: [
|
|
445
|
+
tone: "-58",
|
|
446
|
+
contrast: ["AA", "AAA"],
|
|
417
447
|
mode: "fixed"
|
|
418
448
|
},
|
|
419
449
|
"accent-text": {
|
|
420
450
|
base: "accent-surface-text",
|
|
421
|
-
|
|
422
|
-
contrast: [
|
|
451
|
+
tone: "-58",
|
|
452
|
+
contrast: ["AA", "AAA"],
|
|
423
453
|
mode: "fixed"
|
|
424
454
|
},
|
|
425
455
|
"accent-disabled-surface": {
|
|
426
456
|
base: "surface",
|
|
427
|
-
|
|
457
|
+
tone: "+4",
|
|
428
458
|
saturation: .5,
|
|
429
|
-
contrast: [1.4, 1.5],
|
|
430
459
|
mode: "fixed"
|
|
431
460
|
},
|
|
432
461
|
"accent-disabled-surface-text": {
|
|
433
462
|
base: "accent-disabled-surface",
|
|
434
|
-
|
|
463
|
+
tone: "+18",
|
|
435
464
|
saturation: .4,
|
|
436
|
-
contrast: 1.51,
|
|
437
465
|
mode: "fixed"
|
|
438
466
|
}
|
|
439
467
|
});
|
|
@@ -458,25 +486,40 @@ const palette = glaze.palette({
|
|
|
458
486
|
special: specialTheme
|
|
459
487
|
});
|
|
460
488
|
/**
|
|
461
|
-
*
|
|
489
|
+
* Resolve Glaze palette tokens against the **live** `glaze` global config.
|
|
462
490
|
*
|
|
463
|
-
*
|
|
464
|
-
*
|
|
491
|
+
* Memoized on first call so subsequent reads are free. Resolution is deferred
|
|
492
|
+
* (not done at module import) so host apps can call `glaze.configure(...)`
|
|
493
|
+
* after importing `@cube-dev/ui-kit` and still affect these tokens — as long as
|
|
494
|
+
* configure runs before the first `getPaletteTokens()` / `<Root>` paint.
|
|
465
495
|
*
|
|
466
|
-
*
|
|
467
|
-
*
|
|
496
|
+
* Keys use `#name` syntax; values are state maps:
|
|
497
|
+
* '#surface': { '': 'oklch(...)', '@dark': 'oklch(...)', '@hc': 'oklch(...)' }
|
|
498
|
+
*/
|
|
499
|
+
let paletteTokensCache = null;
|
|
500
|
+
function getPaletteTokens() {
|
|
501
|
+
if (!paletteTokensCache) paletteTokensCache = palette.tasty({
|
|
502
|
+
prefix: {
|
|
503
|
+
default: "",
|
|
504
|
+
primary: "primary-",
|
|
505
|
+
purple: "purple-",
|
|
506
|
+
success: "success-",
|
|
507
|
+
danger: "danger-",
|
|
508
|
+
warning: "warning-",
|
|
509
|
+
note: "note-",
|
|
510
|
+
special: "special-"
|
|
511
|
+
},
|
|
512
|
+
format: "oklch"
|
|
513
|
+
});
|
|
514
|
+
return paletteTokensCache;
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* Lazy proxy of {@link getPaletteTokens}. Prefer `getPaletteTokens()` in new
|
|
518
|
+
* code. First property / enumeration access resolves against the live glaze
|
|
519
|
+
* config (same memo as the getter).
|
|
468
520
|
*/
|
|
469
|
-
const PALETTE_TOKENS =
|
|
470
|
-
default: "",
|
|
471
|
-
primary: "primary-",
|
|
472
|
-
purple: "purple-",
|
|
473
|
-
success: "success-",
|
|
474
|
-
danger: "danger-",
|
|
475
|
-
warning: "warning-",
|
|
476
|
-
note: "note-",
|
|
477
|
-
special: "special-"
|
|
478
|
-
} });
|
|
521
|
+
const PALETTE_TOKENS = lazyStyles(getPaletteTokens);
|
|
479
522
|
|
|
480
523
|
//#endregion
|
|
481
|
-
export { PALETTE_TOKENS };
|
|
524
|
+
export { PALETTE_TOKENS, getPaletteTokens };
|
|
482
525
|
//# sourceMappingURL=palette.js.map
|