@cube-dev/ui-kit 0.0.0-canary-b19612f → 0.0.0-canary-35de927
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/_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 +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/AutoCollapseObserver.js +1 -1
- package/dist/components/actions/Button/Button.js +2 -3
- package/dist/components/actions/Button/Button.js.map +1 -1
- package/dist/components/actions/Button/index.js +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +2 -3
- package/dist/components/actions/ButtonSplit/ButtonSplit.js.map +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/ItemActionsWrapper.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/MenuCollectionItem.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/actions-run.js +1 -1
- package/dist/components/actions/use-action.js +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 +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +1 -1
- package/dist/components/content/Divider/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/Item/ItemWithNativeLinks.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/LayoutPanelTransition.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 +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.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/checked-keys.js +1 -1
- package/dist/components/content/Tree/rowId.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/data/DataTable/DataTable.js +1 -1
- package/dist/components/data/ItemTable/ItemTable.js +1 -1
- package/dist/components/data/ItemTable/ItemTableBulkBar.js +1 -1
- package/dist/components/data/ItemTable/ItemTableDragPreview.js +1 -1
- package/dist/components/data/ItemTable/ItemTableFooter.js +1 -1
- package/dist/components/data/ItemTable/ItemTableToolbar.js +1 -1
- package/dist/components/data/ItemTable/item-table-sections.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-column-widths.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-drag-drop.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-pagination.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-selection.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-sort.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-tree-model.js +1 -1
- package/dist/components/data/TableBase/ColumnResizer.js +1 -1
- package/dist/components/data/TableBase/RowCollection.js +1 -1
- package/dist/components/data/TableBase/TableHeaderCell.js +1 -1
- package/dist/components/data/TableBase/TableRow.js +1 -1
- package/dist/components/data/TableBase/TableRowLink.js +1 -1
- package/dist/components/data/TableBase/TableView.js +1 -1
- package/dist/components/data/TableBase/TreeGridTable.js +1 -1
- package/dist/components/data/TableBase/column-header.js +1 -1
- package/dist/components/data/TableBase/column-menu.js +1 -1
- package/dist/components/data/TableBase/column-styles.js +1 -1
- package/dist/components/data/TableBase/column-tint.js +1 -1
- package/dist/components/data/TableBase/row-menu.js +1 -1
- package/dist/components/data/TableBase/styled.js +1 -1
- package/dist/components/data/TableBase/table-body-sections.js +1 -1
- package/dist/components/data/TableBase/table-tree.js +1 -1
- package/dist/components/data/TableBase/types.js +1 -1
- package/dist/components/data/TableBase/use-cell-selection.js +0 -0
- package/dist/components/data/TableBase/use-column-menu.js +1 -1
- package/dist/components/data/TableBase/use-column-order.js +1 -1
- package/dist/components/data/TableBase/use-column-window.js +1 -1
- package/dist/components/data/TableBase/use-container-width.js +1 -1
- package/dist/components/data/TableBase/use-row-move-animation.js +1 -1
- package/dist/components/data/TableBase/use-scrollability.js +1 -1
- package/dist/components/data/TableBase/use-table-columns.js +1 -1
- package/dist/components/data/TableBase/use-table-search.js +1 -1
- package/dist/components/data/TableBase/use-table-selection.js +1 -1
- package/dist/components/data/TableBase/use-table-sort.js +1 -1
- package/dist/components/data/TableBase/use-table-sorts.js +1 -1
- package/dist/components/data/TableBase/use-table-storage.js +1 -1
- package/dist/components/data/TableBase/use-table-tooltip-refresh.js +1 -1
- package/dist/components/data/TableBase/use-table-tree-state.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/ColorInput/ColorInput.js +1 -1
- package/dist/components/fields/ColorPicker/ColorPicker.js +1 -1
- package/dist/components/fields/ColorSwatch/ColorSwatch.js +1 -1
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +1 -1
- package/dist/components/fields/ComboBox/ComboBox.js +1 -1
- package/dist/components/fields/ComboBox/comboBoxOptions.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/CalendarPopover.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/MonthPicker.js +1 -1
- package/dist/components/fields/DatePicker/PeriodPicker.js +1 -1
- package/dist/components/fields/DatePicker/QuarterPicker.js +1 -1
- package/dist/components/fields/DatePicker/TimeInput.js +1 -1
- package/dist/components/fields/DatePicker/WeekPicker.js +1 -1
- package/dist/components/fields/DatePicker/YearPicker.js +1 -1
- package/dist/components/fields/DatePicker/parseDate.js +1 -1
- package/dist/components/fields/DatePicker/period.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/FilterListBox/styled.js +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.js +1 -1
- package/dist/components/fields/FilterPicker/FilterTree.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/ListBox/empty-row.js +1 -1
- package/dist/components/fields/ListBox/optionId.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/TagInput/TagInput.js +1 -1
- package/dist/components/fields/TagInput/TagList.js +1 -1
- package/dist/components/fields/TagInput/useActiveOption.js +1 -1
- package/dist/components/fields/TagInput/useTagError.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/TextInput/displayed-validation.js +1 -1
- package/dist/components/fields/TextInput/useAutoSizeTextArea.js +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
- package/dist/components/fields/TriggerActions.js +1 -1
- package/dist/components/fields/color/ColorPanel.js +1 -1
- package/dist/components/fields/color/channels.js +1 -1
- package/dist/components/fields/color/color.js +1 -1
- package/dist/components/fields/color/context.js +1 -1
- package/dist/components/fields/option-origin-press.js +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.js +1 -1
- package/dist/components/form/FieldWrapper/field-description.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/FormContext.js +1 -1
- package/dist/components/form/Form/FormElement.js +1 -1
- package/dist/components/form/Form/ModernFormRoot.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/backend.js +1 -1
- package/dist/components/form/Form/index.js +1 -1
- package/dist/components/form/Form/modern/actions.js +1 -1
- package/dist/components/form/Form/modern/context.js +1 -1
- package/dist/components/form/Form/modern/controller.js +1 -1
- package/dist/components/form/Form/modern/field-binding.js +1 -1
- package/dist/components/form/Form/modern/field.js +1 -1
- package/dist/components/form/Form/modern/react.js +1 -1
- package/dist/components/form/Form/modern/store.js +1 -1
- package/dist/components/form/Form/modern/validation.js +1 -1
- package/dist/components/form/Form/modern/values.js +1 -1
- package/dist/components/form/Form/reset-unbound-controls.js +1 -1
- package/dist/components/form/Form/use-field/use-field-binding.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/field-chrome.js +1 -1
- package/dist/components/form/field-layout.js +1 -1
- package/dist/components/form/legacy-tooltip.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/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/Pagination/Pagination.js +1 -1
- package/dist/components/navigation/Pagination/use-pagination.js +1 -1
- package/dist/components/navigation/Tabs/BoardDragActiveProvider.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/segmented-styles.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/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/CalendarHeader.js +1 -1
- package/dist/components/other/Calendar/CalendarPanel.js +1 -1
- package/dist/components/other/Calendar/PeriodCalendar.js +1 -1
- package/dist/components/other/Calendar/PeriodGrid.js +1 -1
- package/dist/components/other/Calendar/RangeCalendar.js +1 -1
- package/dist/components/other/Calendar/styled.js +1 -1
- package/dist/components/other/CubeLogo/CubeLogo.js +1 -1
- package/dist/components/other/NoDataIcon/NoDataIcon.js +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/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/ModernDialogForm.js +1 -1
- package/dist/components/overlays/Dialog/context.js +1 -1
- package/dist/components/overlays/Dialog/default-button-text.js +1 -1
- package/dist/components/overlays/Dialog/use-content-overflow.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-open-sync.js +1 -1
- package/dist/components/overlays/Dialog/use-dismiss-confirmation.js +1 -1
- package/dist/components/overlays/Dialog/use-retained-dialog-focus.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/Modal/modal-containment.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/overlays/Tooltip/split-trigger-props.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 +1 -1
- package/dist/data/themes.js +1 -1
- package/dist/eslint-plugin/defaults.generated.js +1 -1
- package/dist/eslint-plugin/index.js +1 -1
- package/dist/eslint-plugin/rules/no-redundant-default-prop.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/namespace.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/ArrowNarrowDownIcon.js +1 -1
- package/dist/icons/ArrowNarrowUpIcon.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/PipetteIcon.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.js +1 -1
- package/dist/probe/canonicalize.js +1 -1
- package/dist/probe/css.js +1 -1
- package/dist/probe/index.js +1 -1
- package/dist/provider.js +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigation-url.js +1 -1
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/providers/use-navigation.js +1 -1
- package/dist/tokens/all-tokens.js +1 -1
- package/dist/tokens/base.js +1 -1
- package/dist/tokens/color-seed.js +1 -1
- package/dist/tokens/color-theme.js +1 -1
- package/dist/tokens/colors.js +1 -1
- package/dist/tokens/layout.js +1 -1
- package/dist/tokens/lazy-styles.js +1 -1
- package/dist/tokens/legacy-color.js +1 -1
- package/dist/tokens/palette-config.js +1 -1
- package/dist/tokens/palette.js +1 -1
- package/dist/tokens/resolve.js +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.js +1 -1
- package/dist/utils/ResizeSensor.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/dotize.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/disabledProps.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/overlayKeyPropagation.js +1 -1
- package/dist/utils/react/programmaticFocus.js +1 -1
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/sharedStore.js +1 -1
- package/dist/utils/react/useBufferedValue.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/useOverlayEscapeGuard.js +1 -1
- package/dist/utils/react/usePopoverSync.js +1 -1
- package/dist/utils/react/useQaProps.js +1 -1
- package/dist/utils/react/useScheme.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 +3 -3
- package/docs/BaseProperties.md +1 -1
- package/docs/Usage.md +31 -28
- package/docs/components/actions/ButtonSplit.md +0 -19
- package/docs/components/fields/RadioGroup.md +2 -2
- package/docs/llms.txt +173 -0
- package/harness/dev.harnesspm/patches/glaze-colors.patch.md +4 -0
- package/harness/dev.harnesspm/patches/tasty-usage.patch.md +3 -0
- package/harness/dev.harnesspm/rules/usage.md +12 -0
- package/harness/dev.harnesspm/scripts/tokens.mjs +302 -0
- package/harness/plugin.json +25 -0
- package/package.json +5 -5
- package/docs/glaze/contrast.mdx +0 -751
- package/docs/glaze/exporting.mdx +0 -635
- package/docs/glaze/getting-started.mdx +0 -487
- package/docs/glaze/hdr.mdx +0 -523
- package/docs/glaze/methodology.mdx +0 -979
- package/docs/glaze/migration.md +0 -542
- package/docs/glaze/mixes.mdx +0 -348
- package/docs/glaze/okhst.mdx +0 -692
- package/docs/glaze/reference/color-definitions.md +0 -552
- package/docs/glaze/reference/color-tokens.md +0 -421
- package/docs/glaze/reference/configuration.md +0 -532
- package/docs/glaze/reference/contrast.md +0 -279
- package/docs/glaze/reference/index.md +0 -225
- package/docs/glaze/reference/output.md +0 -714
- package/docs/glaze/reference/palette.md +0 -435
- package/docs/glaze/reference/theme.md +0 -332
- package/docs/glaze/reference/utilities.md +0 -646
- package/docs/glaze/schemes.mdx +0 -644
- package/docs/glaze/shadows-and-glows.mdx +0 -550
- package/docs/tasty/README.md +0 -42
- package/docs/tasty/adoption.md +0 -331
- package/docs/tasty/ai-agents.md +0 -259
- package/docs/tasty/comparison.md +0 -449
- package/docs/tasty/configuration.md +0 -957
- package/docs/tasty/debug.md +0 -333
- package/docs/tasty/design-system.md +0 -569
- package/docs/tasty/dsl.md +0 -1231
- package/docs/tasty/getting-started.md +0 -297
- package/docs/tasty/injector.md +0 -635
- package/docs/tasty/methodology.md +0 -673
- package/docs/tasty/migration-v3.md +0 -285
- package/docs/tasty/pipeline.md +0 -768
- package/docs/tasty/plugins.md +0 -333
- package/docs/tasty/react-api.md +0 -746
- package/docs/tasty/runtime-benchmarks.md +0 -388
- package/docs/tasty/ssr.md +0 -636
- package/docs/tasty/styles.md +0 -781
- package/docs/tasty/tasty-static.md +0 -700
package/docs/Usage.md
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This guide covers the design system foundations — tokens, presets, colors, units, and patterns — needed to build and maintain components in Cube UI Kit.
|
|
4
4
|
|
|
5
|
-
For styling engine internals see the [Tasty documentation](
|
|
5
|
+
For styling engine internals see the [Tasty documentation](https://github.com/tenphi/tasty/tree/main/docs). Agents in projects that use [harnesspm](https://www.npmjs.com/package/@tenphi/harnesspm) get these pages for the installed Tasty through UI Kit's harness.
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
7
|
+
- [React API](https://github.com/tenphi/tasty/blob/main/docs/react-api.md) — `tasty()` component creation, state mappings, sub-elements, variants, extending components, style functions.
|
|
8
|
+
- [Configuration](https://github.com/tenphi/tasty/blob/main/docs/configuration.md) — `configure()` options: tokens, recipes, custom units, style handlers, TypeScript module augmentation.
|
|
9
|
+
- [Style properties](https://github.com/tenphi/tasty/blob/main/docs/styles.md) — Complete reference for all enhanced style properties (`fill`, `flow`, `preset`, `border`, `radius`, `transition`, etc.).
|
|
10
|
+
- [Debug utilities](https://github.com/tenphi/tasty/blob/main/docs/debug.md) — `tastyDebug` runtime API for inspecting injected CSS and troubleshooting.
|
|
11
|
+
- [Injector](https://github.com/tenphi/tasty/blob/main/docs/injector.md) — Low-level style injector: `inject()`, `injectGlobal()`, deduplication, SSR.
|
|
12
|
+
- [Zero-runtime mode](https://github.com/tenphi/tasty/blob/main/docs/tasty-static.md) — Zero-runtime `tastyStatic()`, Babel plugin, Next.js/Vite integration.
|
|
13
13
|
|
|
14
14
|
## Navigation
|
|
15
15
|
|
|
@@ -255,27 +255,30 @@ Full contract, caveats and a live playground: [Theming](./Theming.md).
|
|
|
255
255
|
|
|
256
256
|
The previous token names continue to work as aliases (defined at the bottom of `src/tokens/colors.ts`). New code should prefer the Glaze tokens, but existing components do not need to be migrated:
|
|
257
257
|
|
|
258
|
-
| Legacy
|
|
259
|
-
|
|
|
260
|
-
| `#text`
|
|
261
|
-
| `#dark` / `#dark-01`
|
|
262
|
-
| `#dark-02`
|
|
263
|
-
| `#dark-03`
|
|
264
|
-
| `#dark-04`
|
|
265
|
-
| `#dark-05`
|
|
266
|
-
| `#minor`
|
|
267
|
-
| `#shadow`
|
|
268
|
-
| `#light`
|
|
269
|
-
| `#dark-bg`
|
|
270
|
-
|
|
|
271
|
-
|
|
|
272
|
-
|
|
|
273
|
-
|
|
|
274
|
-
| `#<
|
|
275
|
-
| `#<
|
|
276
|
-
| `#<
|
|
277
|
-
| `#<
|
|
278
|
-
|
|
|
258
|
+
| Legacy | Resolves to |
|
|
259
|
+
| --- | --- |
|
|
260
|
+
| `#text` | `#surface-text-soft` |
|
|
261
|
+
| `#dark` / `#dark-01` | `#surface-text` |
|
|
262
|
+
| `#dark-02` | `#surface-text-soft` |
|
|
263
|
+
| `#dark-03` | `#surface-text-soft-2` |
|
|
264
|
+
| `#dark-04` | `#placeholder` |
|
|
265
|
+
| `#dark-05` | `#border` |
|
|
266
|
+
| `#minor` | `#surface-text-soft.65` |
|
|
267
|
+
| `#shadow` | `#shadow-md` |
|
|
268
|
+
| `#light` | `#surface-3` |
|
|
269
|
+
| `#dark-bg` | `#surface-2` |
|
|
270
|
+
| `#<theme>` | `#<theme>-accent-surface` |
|
|
271
|
+
| `#<theme>-text` | `#<theme>-accent-text` |
|
|
272
|
+
| `#<theme>-text-soft` | `#<theme>-accent-text-soft` |
|
|
273
|
+
| `#<theme>-bg` | `#<theme>-surface` |
|
|
274
|
+
| `#<theme>-icon` | `#<theme>-accent-icon` |
|
|
275
|
+
| `#<theme>-hover` | `#<theme>-accent-surface-hover` |
|
|
276
|
+
| `#<theme>-desaturated` (all but `purple`) | `#<theme>-accent-surface-2` |
|
|
277
|
+
| `#<theme>-disabled` | `#disabled` |
|
|
278
|
+
| `#purple-01` / `#purple-02` / `#purple-03` | `#purple-accent-surface` / `-2` / `-3` |
|
|
279
|
+
| `#purple-04` | `#purple-surface` |
|
|
280
|
+
|
|
281
|
+
`<theme>` is `primary`, `purple`, `success`, `danger`, `warning` or `note`; the `purple-*` tokens are the legacy name of the `primary-*` ones and resolve to the same colors.
|
|
279
282
|
|
|
280
283
|
`#white`, `#black`, and `#clear` are not defined in the palette — `#white` and `#black` are tasty's built-in named colors, and `#clear` is an alias for `transparent`.
|
|
281
284
|
|
|
@@ -157,25 +157,6 @@ More than two buttons are supported. Middle buttons have no border radius.
|
|
|
157
157
|
</Button.Split>
|
|
158
158
|
```
|
|
159
159
|
|
|
160
|
-
### Toggles
|
|
161
|
-
|
|
162
|
-
A split can also join independent toggle buttons, each on or off by itself. A selected button (`isSelected`) draws above its neighbours, so its border shows on every side, and a focused one draws above it. The split is a stacking context of its own, so a raised button never paints over the page around it.
|
|
163
|
-
|
|
164
|
-
For one choice among several, use [`Radio.Group type="button"`](../fields/RadioGroup.md) when the choice is a value the user sets (it draws this joined look), or [`Tabs type="radio"`](../navigation/Tabs.md), a segmented control, when it switches the view on screen. Both expose a single choice to assistive technology, which separate toggles don't.
|
|
165
|
-
|
|
166
|
-
```jsx
|
|
167
|
-
<Button.Split size="small" aria-label="Text style">
|
|
168
|
-
<Button icon={<IconBold />} aria-label="Bold" isSelected={isBold} onPress={toggleBold} />
|
|
169
|
-
<Button icon={<IconItalic />} aria-label="Italic" isSelected={isItalic} onPress={toggleItalic} />
|
|
170
|
-
<Button
|
|
171
|
-
icon={<IconUnderline />}
|
|
172
|
-
aria-label="Underline"
|
|
173
|
-
isSelected={isUnderline}
|
|
174
|
-
onPress={toggleUnderline}
|
|
175
|
-
/>
|
|
176
|
-
</Button.Split>
|
|
177
|
-
```
|
|
178
|
-
|
|
179
160
|
## Examples
|
|
180
161
|
|
|
181
162
|
### Variants
|
|
@@ -112,7 +112,7 @@ Each `Radio` carries **`readonly`** while its group is `isReadOnly`. A classic r
|
|
|
112
112
|
### Type
|
|
113
113
|
|
|
114
114
|
- `radio` - Traditional radio button appearance (default)
|
|
115
|
-
- `button` - Button-style options
|
|
115
|
+
- `button` - Button-style radio options with spacing
|
|
116
116
|
- `tabs` - A segmented control. It takes the look of [Tabs](../navigation/Tabs.md) `type="radio"` from one shared style definition: the track, the white chip on the selected option, hover, the keyboard focus ring on the focused option, the disabled look (the selected chip stays, the labels fade) and the text size. Recolor it through the tokens [Tabs → Theming](../navigation/Tabs.md#theming) lists. An invalid or valid group also tints its idle labels. Only the layout differs: its options size to their labels, while tabs share the track equally.
|
|
117
117
|
|
|
118
118
|
**Default Orientation:**
|
|
@@ -339,7 +339,7 @@ A disabled option with a tooltip stays in this navigation so its tooltip can be
|
|
|
339
339
|
</Radio.Group>
|
|
340
340
|
```
|
|
341
341
|
|
|
342
|
-
3. **Visual Type**: pick by the shape of the choice, not by the look you want — `Radio.Tabs` for a compact connected group _inside a form_, `type="button"` for
|
|
342
|
+
3. **Visual Type**: pick by the shape of the choice, not by the look you want — `Radio.Tabs` for a compact connected group _inside a form_, `type="button"` for spaced selections, traditional radios for longer or descriptive option lists
|
|
343
343
|
|
|
344
344
|
```jsx
|
|
345
345
|
{/* Good for a compact form field that gates the fields below it */}
|
package/docs/llms.txt
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
# Cube UI Kit docs
|
|
2
|
+
|
|
3
|
+
> Guides and components for `@cube-dev/ui-kit`. Tasty's and Glaze's docs have their own indexes.
|
|
4
|
+
|
|
5
|
+
## Guides
|
|
6
|
+
|
|
7
|
+
- [Base Properties](BaseProperties.md)
|
|
8
|
+
- [Colors](Colors.md)
|
|
9
|
+
- [Layout Guide](ComplexLayout.md)
|
|
10
|
+
- [Create Component](CreateComponent.md)
|
|
11
|
+
- [Field Properties](FieldProperties.md)
|
|
12
|
+
- [Cube UI Kit](Introduction.md)
|
|
13
|
+
- [RenderCache](RenderCache.md)
|
|
14
|
+
- [Layout examples](SimpleLayout.md)
|
|
15
|
+
- [Theming](Theming.md)
|
|
16
|
+
- [Typography](Typography.md)
|
|
17
|
+
- [Usage Guide](Usage.md)
|
|
18
|
+
- [Utilities](Utilities.md)
|
|
19
|
+
- [Modern Form: choose the API for the job](modern-form-guide.md)
|
|
20
|
+
- [Migrating a form to the modern controller](modern-form-migration.md)
|
|
21
|
+
- [Modern Form: Cloud type-check comparison](modern-form-typecheck.md)
|
|
22
|
+
|
|
23
|
+
## Components
|
|
24
|
+
|
|
25
|
+
- [Block](components/Block.md)
|
|
26
|
+
- [CollectionItem](components/CollectionItem.md)
|
|
27
|
+
- [GridProvider](components/GridProvider.md)
|
|
28
|
+
- [Root](components/Root.md)
|
|
29
|
+
|
|
30
|
+
## Components: actions
|
|
31
|
+
|
|
32
|
+
- [Action](components/actions/Action.md)
|
|
33
|
+
- [Banner](components/actions/Banner.md)
|
|
34
|
+
- [Button](components/actions/Button.md)
|
|
35
|
+
- [ButtonGroup](components/actions/ButtonGroup.md)
|
|
36
|
+
- [Button.Split](components/actions/ButtonSplit.md)
|
|
37
|
+
- [CommandMenu](components/actions/CommandMenu.md)
|
|
38
|
+
- [ItemAction](components/actions/ItemAction.md)
|
|
39
|
+
- [ItemButton](components/actions/ItemButton.md)
|
|
40
|
+
- [Link](components/actions/Link.md)
|
|
41
|
+
- [Menu](components/actions/Menu.md)
|
|
42
|
+
- [MenuTrigger](components/actions/MenuTrigger.md)
|
|
43
|
+
- [SubMenuTrigger](components/actions/SubMenuTrigger.md)
|
|
44
|
+
- [`useAnchoredMenu` Hook](components/actions/use-anchored-menu.md)
|
|
45
|
+
- [`useContextMenu` Hook](components/actions/use-context-menu.md)
|
|
46
|
+
|
|
47
|
+
## Components: content
|
|
48
|
+
|
|
49
|
+
- [ActiveZone](components/content/ActiveZone.md)
|
|
50
|
+
- [Alert](components/content/Alert.md)
|
|
51
|
+
- [Avatar](components/content/Avatar.md)
|
|
52
|
+
- [Badge](components/content/Badge.md)
|
|
53
|
+
- [Card](components/content/Card.md)
|
|
54
|
+
- [Content](components/content/Content.md)
|
|
55
|
+
- [CopyPasteBlock](components/content/CopyPasteBlock.md)
|
|
56
|
+
- [CopySnippet](components/content/CopySnippet.md)
|
|
57
|
+
- [Disclosure](components/content/Disclosure.md)
|
|
58
|
+
- [Divider](components/content/Divider.md)
|
|
59
|
+
- [Footer](components/content/Footer.md)
|
|
60
|
+
- [Header](components/content/Header.md)
|
|
61
|
+
- [HotKeys](components/content/HotKeys.md)
|
|
62
|
+
- [InfoBadge](components/content/InfoBadge.md)
|
|
63
|
+
- [InlineInput](components/content/InlineInput.md)
|
|
64
|
+
- [Item](components/content/Item.md)
|
|
65
|
+
- [ItemBadge](components/content/ItemBadge.md)
|
|
66
|
+
- [ItemCard](components/content/ItemCard.md)
|
|
67
|
+
- [Layout](components/content/Layout.md)
|
|
68
|
+
- [Paragraph](components/content/Paragraph.md)
|
|
69
|
+
- [Placeholder](components/content/Placeholder.md)
|
|
70
|
+
- [PrismCode](components/content/PrismCode.md)
|
|
71
|
+
- [PrismDiffCode](components/content/PrismDiffCode.md)
|
|
72
|
+
- [Result](components/content/Result.md)
|
|
73
|
+
- [Skeleton](components/content/Skeleton.md)
|
|
74
|
+
- [Tag](components/content/Tag.md)
|
|
75
|
+
- [Text](components/content/Text.md)
|
|
76
|
+
- [TextItem](components/content/TextItem.md)
|
|
77
|
+
- [Title](components/content/Title.md)
|
|
78
|
+
- [Tree](components/content/Tree.md)
|
|
79
|
+
|
|
80
|
+
## Components: data
|
|
81
|
+
|
|
82
|
+
- [DataTable](components/data/DataTable.md)
|
|
83
|
+
- [ItemTable](components/data/ItemTable.md)
|
|
84
|
+
|
|
85
|
+
## Components: fields
|
|
86
|
+
|
|
87
|
+
- [Checkbox](components/fields/Checkbox.md)
|
|
88
|
+
- [ColorInput](components/fields/ColorInput.md)
|
|
89
|
+
- [ColorPicker](components/fields/ColorPicker.md)
|
|
90
|
+
- [ColorSwatch](components/fields/ColorSwatch.md)
|
|
91
|
+
- [ColorSwatchGroup](components/fields/ColorSwatchGroup.md)
|
|
92
|
+
- [ComboBox](components/fields/ComboBox.md)
|
|
93
|
+
- [CommandTextArea](components/fields/CommandTextArea.md)
|
|
94
|
+
- [DatePicker](components/fields/DatePicker.md)
|
|
95
|
+
- [FileInput](components/fields/FileInput.md)
|
|
96
|
+
- [FilterListBox](components/fields/FilterListBox.md)
|
|
97
|
+
- [FilterPicker](components/fields/FilterPicker.md)
|
|
98
|
+
- [HueSlider](components/fields/HueSlider.md)
|
|
99
|
+
- [ListBox](components/fields/ListBox.md)
|
|
100
|
+
- [NumberInput](components/fields/NumberInput.md)
|
|
101
|
+
- [PasswordInput](components/fields/PasswordInput.md)
|
|
102
|
+
- [Period Pickers](components/fields/PeriodPicker.md)
|
|
103
|
+
- [Picker](components/fields/Picker.md)
|
|
104
|
+
- [RadioGroup](components/fields/RadioGroup.md)
|
|
105
|
+
- [SearchComboBox](components/fields/SearchComboBox.md)
|
|
106
|
+
- [SearchInput](components/fields/SearchInput.md)
|
|
107
|
+
- [Select](components/fields/Select.md)
|
|
108
|
+
- [Slider](components/fields/Slider.md)
|
|
109
|
+
- [Switch](components/fields/Switch.md)
|
|
110
|
+
- [TagInput](components/fields/TagInput.md)
|
|
111
|
+
- [TextArea](components/fields/TextArea.md)
|
|
112
|
+
- [TextInput](components/fields/TextInput.md)
|
|
113
|
+
- [TextInputMapper](components/fields/TextInputMapper.md)
|
|
114
|
+
|
|
115
|
+
## Components: form
|
|
116
|
+
|
|
117
|
+
- [Field (legacy)](components/form/Field.md)
|
|
118
|
+
- [Form](components/form/Form.md)
|
|
119
|
+
- [FormInstance (legacy)](components/form/FormInstance.md)
|
|
120
|
+
|
|
121
|
+
## Components: helpers
|
|
122
|
+
|
|
123
|
+
- [DisplayTransition](components/helpers/DisplayTransition.md)
|
|
124
|
+
- [IconSwitch](components/helpers/IconSwitch.md)
|
|
125
|
+
|
|
126
|
+
## Components: layout
|
|
127
|
+
|
|
128
|
+
- [Flex](components/layout/Flex.md)
|
|
129
|
+
- [Flow](components/layout/Flow.md)
|
|
130
|
+
- [Grid](components/layout/Grid.md)
|
|
131
|
+
- [Panel](components/layout/Panel.md)
|
|
132
|
+
- [Prefix](components/layout/Prefix.md)
|
|
133
|
+
- [ResizablePanel](components/layout/ResizablePanel.md)
|
|
134
|
+
- [Space](components/layout/Space.md)
|
|
135
|
+
- [Suffix](components/layout/Suffix.md)
|
|
136
|
+
|
|
137
|
+
## Components: navigation
|
|
138
|
+
|
|
139
|
+
- [Pagination](components/navigation/Pagination.md)
|
|
140
|
+
- [Tabs](components/navigation/Tabs.md)
|
|
141
|
+
|
|
142
|
+
## Components: organisms
|
|
143
|
+
|
|
144
|
+
- [StatsCard](components/organisms/StatsCard.md)
|
|
145
|
+
|
|
146
|
+
## Components: other
|
|
147
|
+
|
|
148
|
+
- [Calendar](components/other/Calendar.md)
|
|
149
|
+
- [CubeLogo / CubeFullLogo](components/other/CubeLogo.md)
|
|
150
|
+
- [NoDataIcon](components/other/NoDataIcon.md)
|
|
151
|
+
|
|
152
|
+
## Components: overlays
|
|
153
|
+
|
|
154
|
+
- [AlertDialog](components/overlays/AlertDialog.md)
|
|
155
|
+
- [Dialog](components/overlays/Dialog.md)
|
|
156
|
+
- [DialogContainer](components/overlays/DialogContainer.md)
|
|
157
|
+
- [DialogForm](components/overlays/DialogForm.md)
|
|
158
|
+
- [DialogTrigger](components/overlays/DialogTrigger.md)
|
|
159
|
+
- [Notification](components/overlays/Notifications.md)
|
|
160
|
+
- [Toast](components/overlays/Toast.md)
|
|
161
|
+
- [Tooltip](components/overlays/Tooltip.md)
|
|
162
|
+
- [TooltipProvider](components/overlays/TooltipProvider.md)
|
|
163
|
+
- [TooltipTrigger](components/overlays/TooltipTrigger.md)
|
|
164
|
+
- [useDialogContainer](components/overlays/UseDialogContainer.md)
|
|
165
|
+
|
|
166
|
+
## Components: portal
|
|
167
|
+
|
|
168
|
+
- [Portal](components/portal/Portal.md)
|
|
169
|
+
|
|
170
|
+
## Components: status
|
|
171
|
+
|
|
172
|
+
- [LoadingAnimation](components/status/LoadingAnimation.md)
|
|
173
|
+
- [Spin](components/status/Spin.md)
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
## Where colors come from
|
|
2
|
+
|
|
3
|
+
- In an app on UI Kit, colors are UI Kit palette tokens: follow the UI Kit rule.
|
|
4
|
+
- A color the palette lacks comes from your own Glaze theme or `glaze.color()` token. Do not write its dark or high-contrast values by hand. To create or change one, use the `glaze-theme` skill.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# UI Kit
|
|
2
|
+
|
|
3
|
+
## Components
|
|
4
|
+
|
|
5
|
+
- Build screens from `@cube-dev/ui-kit` components before writing your own. Before you use a component, read its page in the UI Kit docs index.
|
|
6
|
+
- For a new form, use `Form.useController`. Read the modern form guide in the UI Kit docs index first.
|
|
7
|
+
|
|
8
|
+
## Styling
|
|
9
|
+
|
|
10
|
+
- Style with Tasty (the `styles` prop and `tasty()`) and UI Kit's tokens, units and presets.
|
|
11
|
+
- Colors are UI Kit palette tokens, written `#name`, such as `#surface`, `#surface-text` or `#danger-accent-text`. Never paste raw `#rrggbb`, `rgb()` or `hsl()` values.
|
|
12
|
+
- To find a token, run `uikit:tokens <part of its name>`. It shows the token's values in light, dark and high contrast, its contrast against the base it was made for, and what an alias such as `#dark` resolves to. Put a text token on its base. The Usage guide lists the legacy aliases that new code avoids.
|
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* uikit:tokens — UI Kit's color tokens by the names Tasty styles use, with
|
|
3
|
+
* their values in light, dark and both high-contrast schemes, and each token's
|
|
4
|
+
* contrast against its base.
|
|
5
|
+
*
|
|
6
|
+
* Built on Glaze's public measuring module, `@tenphi/glaze/harness/measure`
|
|
7
|
+
* (the one behind `glaze:inspect`), so a ✓ or ✗ here means what a Glaze
|
|
8
|
+
* warning means.
|
|
9
|
+
*/
|
|
10
|
+
import { existsSync, realpathSync } from 'node:fs';
|
|
11
|
+
import { fileURLToPath } from 'node:url';
|
|
12
|
+
|
|
13
|
+
const USAGE = `Usage: npx harnesspm run uikit:tokens [<part of a name>...] [--format <format>] [--json]
|
|
14
|
+
|
|
15
|
+
Lists UI Kit's color tokens by the names Tasty styles use, such as #surface or
|
|
16
|
+
#danger-accent-text, with their values in light, dark and both high-contrast
|
|
17
|
+
schemes. Every part you give must appear in the name.
|
|
18
|
+
|
|
19
|
+
A token made against a base shows its contrast against that base, measured as
|
|
20
|
+
Glaze's solver measures it: ✓ meets the token's floor and ✗ misses it. An
|
|
21
|
+
alias, such as #dark or #clear, shows the token or value it resolves to; the
|
|
22
|
+
Usage guide says which aliases are legacy. A context hook, such as
|
|
23
|
+
#current-fill, shows its default, which a container may replace. Values are
|
|
24
|
+
for UI Kit's default palette configuration.
|
|
25
|
+
|
|
26
|
+
--format how to print colors: hex (default), okhsl, okhst, rgb, hsl or oklch
|
|
27
|
+
--json print the result as JSON`;
|
|
28
|
+
|
|
29
|
+
/** Tasty token-name prefix of each palette theme. The default theme has none. */
|
|
30
|
+
const prefixOf = (theme) => (theme === 'default' ? '' : `${theme}-`);
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Every emitted color token, then every alias, optionally filtered.
|
|
34
|
+
* `tokenNames` are the keys of `getPaletteTokens()`, so only a color the
|
|
35
|
+
* palette emits is listed. `aliases` maps each other `#name` that
|
|
36
|
+
* `getColorTokens()` defines by value or reference (legacy names such as
|
|
37
|
+
* `#dark`, current ones such as `#clear`, and the context hook `#current-fill`,
|
|
38
|
+
* by its default) to that value, such as `#surface-text`,
|
|
39
|
+
* `#surface-text-soft.65` or `transparent`.
|
|
40
|
+
*/
|
|
41
|
+
export function listTokens(
|
|
42
|
+
g,
|
|
43
|
+
measure,
|
|
44
|
+
{ palette, codeTheme, tokenNames, aliases },
|
|
45
|
+
{ filters = [], format = 'hex' } = {},
|
|
46
|
+
) {
|
|
47
|
+
const parts = filters.map((f) => f.replace(/^#/, '').toLowerCase());
|
|
48
|
+
const sources = [
|
|
49
|
+
...palette.list().map((name) => [name, palette.theme(name)]),
|
|
50
|
+
['code', codeTheme],
|
|
51
|
+
];
|
|
52
|
+
const matches = (token) => parts.every((part) => token.includes(part));
|
|
53
|
+
const all = [];
|
|
54
|
+
|
|
55
|
+
for (const [themeName, theme] of sources) {
|
|
56
|
+
const prefix = themeName === 'code' ? '' : prefixOf(themeName);
|
|
57
|
+
const inspected = measure.inspectTheme(g, theme, themeName, format);
|
|
58
|
+
|
|
59
|
+
for (const color of inspected.colors) {
|
|
60
|
+
const token = `#${prefix}${color.name}`;
|
|
61
|
+
|
|
62
|
+
// Like `pickCodeTokens` in palette.ts: the code theme emits only `code-*`.
|
|
63
|
+
if (themeName === 'code' && !color.name.startsWith('code-')) continue;
|
|
64
|
+
if (!tokenNames.has(token)) continue;
|
|
65
|
+
|
|
66
|
+
all.push({
|
|
67
|
+
token,
|
|
68
|
+
theme: themeName,
|
|
69
|
+
values: color.values,
|
|
70
|
+
...(color.contrast
|
|
71
|
+
? {
|
|
72
|
+
contrast: {
|
|
73
|
+
...color.contrast,
|
|
74
|
+
base: `#${prefix}${color.contrast.base}`,
|
|
75
|
+
},
|
|
76
|
+
}
|
|
77
|
+
: {}),
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const byToken = new Map(all.map((entry) => [entry.token, entry]));
|
|
83
|
+
const aliasEntries = [...aliases].map(([token, value]) => {
|
|
84
|
+
// `#surface-text-soft.65` is that token at 65% opacity.
|
|
85
|
+
const target = byToken.get(/^(#[\w-]+?)(\.\d+)?$/.exec(value)?.[1]);
|
|
86
|
+
const values = Object.fromEntries(
|
|
87
|
+
measure.SCHEMES.map((s) => [
|
|
88
|
+
s.key,
|
|
89
|
+
target?.values[s.key] ?? literal(g, measure, value, format),
|
|
90
|
+
]),
|
|
91
|
+
);
|
|
92
|
+
|
|
93
|
+
return { token, aliasOf: value, values };
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
return [...all, ...aliasEntries].filter((entry) => matches(entry.token));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** A literal alias value, such as `okhsl(5 100% 67%)`, in the chosen format. */
|
|
100
|
+
function literal(g, measure, value, format) {
|
|
101
|
+
try {
|
|
102
|
+
return measure.formatVariant(g, measure.parseColor(g, value), format);
|
|
103
|
+
} catch {
|
|
104
|
+
// Not a color Glaze parses, such as `transparent`: print it as it is.
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* What `listTokens` reads, from UI Kit's palette and color-token modules: the
|
|
111
|
+
* built ones in the tool, the source ones in the spec.
|
|
112
|
+
*/
|
|
113
|
+
export function sourceFrom({
|
|
114
|
+
getPalette,
|
|
115
|
+
getCodeTheme,
|
|
116
|
+
getPaletteTokens,
|
|
117
|
+
getColorTokens,
|
|
118
|
+
}) {
|
|
119
|
+
const tokenNames = new Set(Object.keys(getPaletteTokens()));
|
|
120
|
+
const aliases = new Map(
|
|
121
|
+
Object.entries(getColorTokens()).filter(
|
|
122
|
+
([name, value]) => typeof value === 'string' && !tokenNames.has(name),
|
|
123
|
+
),
|
|
124
|
+
);
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
palette: getPalette(),
|
|
128
|
+
codeTheme: getCodeTheme(),
|
|
129
|
+
tokenNames,
|
|
130
|
+
aliases,
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Glaze's measuring module. It resolves like the `@tenphi/glaze` import in
|
|
136
|
+
* `main()`, so both come from the same Glaze.
|
|
137
|
+
*/
|
|
138
|
+
export function loadMeasure() {
|
|
139
|
+
return import('@tenphi/glaze/harness/measure');
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function number(metric, value) {
|
|
143
|
+
return metric === 'apca' ? value.toFixed(1) : value.toFixed(2);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
function floorLabel(pair) {
|
|
147
|
+
const normal = pair.schemes.light?.target;
|
|
148
|
+
const high = pair.schemes.lightContrast?.target;
|
|
149
|
+
const metric = pair.metric.toUpperCase();
|
|
150
|
+
|
|
151
|
+
if (normal === undefined && high === undefined) return `${metric}, no floor`;
|
|
152
|
+
|
|
153
|
+
const short = (target) => String(Number(target.toFixed(2)));
|
|
154
|
+
|
|
155
|
+
return `${metric} ≥ ${normal === high ? short(normal) : `${short(normal)}/${short(high)}`}`;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function cell(pair, result) {
|
|
159
|
+
if (result.translucent) return 'translucent';
|
|
160
|
+
|
|
161
|
+
const value = number(pair.metric, result.value);
|
|
162
|
+
|
|
163
|
+
return result.pass === undefined
|
|
164
|
+
? value
|
|
165
|
+
: `${result.pass ? '✓' : '✗'} ${value}`;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function table(rows) {
|
|
169
|
+
const widths = [];
|
|
170
|
+
|
|
171
|
+
for (const row of rows) {
|
|
172
|
+
row.forEach((text, i) => {
|
|
173
|
+
widths[i] = Math.max(widths[i] ?? 0, text.length);
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
return rows
|
|
178
|
+
.map((row) =>
|
|
179
|
+
row
|
|
180
|
+
.map((text, i) =>
|
|
181
|
+
i === row.length - 1 ? text : text.padEnd(widths[i]),
|
|
182
|
+
)
|
|
183
|
+
.join(' ')
|
|
184
|
+
.trimEnd(),
|
|
185
|
+
)
|
|
186
|
+
.join('\n');
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export function render(tokens, schemes, total) {
|
|
190
|
+
const rows = [['token', '', ...schemes.map((s) => s.label)]];
|
|
191
|
+
|
|
192
|
+
for (const entry of tokens) {
|
|
193
|
+
rows.push([
|
|
194
|
+
entry.token,
|
|
195
|
+
entry.aliasOf ? `→ ${entry.aliasOf}` : '',
|
|
196
|
+
...schemes.map((s) => entry.values[s.key]),
|
|
197
|
+
]);
|
|
198
|
+
|
|
199
|
+
const pair = entry.contrast;
|
|
200
|
+
|
|
201
|
+
if (pair) {
|
|
202
|
+
rows.push([
|
|
203
|
+
` vs ${pair.base}`,
|
|
204
|
+
floorLabel(pair),
|
|
205
|
+
...schemes.map((s) => cell(pair, pair.schemes[s.key])),
|
|
206
|
+
]);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
return `${table(rows)}\n\n${tokens.length} of ${total} tokens.`;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
async function main(argv) {
|
|
214
|
+
const filters = [];
|
|
215
|
+
let format = 'hex';
|
|
216
|
+
let json = false;
|
|
217
|
+
|
|
218
|
+
for (let i = 0; i < argv.length; i++) {
|
|
219
|
+
const arg = argv[i];
|
|
220
|
+
|
|
221
|
+
if (arg === '--help' || arg === '-h') {
|
|
222
|
+
console.log(USAGE);
|
|
223
|
+
|
|
224
|
+
return 0;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (arg === '--json') json = true;
|
|
228
|
+
else if (arg === '--format') format = argv[++i];
|
|
229
|
+
else if (arg.startsWith('--format='))
|
|
230
|
+
format = arg.slice('--format='.length);
|
|
231
|
+
else if (arg.startsWith('--')) {
|
|
232
|
+
console.error(`uikit:tokens: unknown option ${arg}\n\n${USAGE}`);
|
|
233
|
+
|
|
234
|
+
return 2;
|
|
235
|
+
} else filters.push(arg);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// Glaze reports a floor it cannot meet with console.warn; the ✗ in the table
|
|
239
|
+
// says the same, so keep the lookup's output to the table.
|
|
240
|
+
const warn = console.warn;
|
|
241
|
+
|
|
242
|
+
console.warn = () => {};
|
|
243
|
+
|
|
244
|
+
try {
|
|
245
|
+
const g = await import('@tenphi/glaze');
|
|
246
|
+
const measure = await loadMeasure();
|
|
247
|
+
|
|
248
|
+
if (!measure.FORMATS.includes(format)) {
|
|
249
|
+
console.error(
|
|
250
|
+
`uikit:tokens: --format must be one of ${measure.FORMATS.join(', ')}`,
|
|
251
|
+
);
|
|
252
|
+
|
|
253
|
+
return 2;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
const build = new URL('../../../dist/tokens/palette.js', import.meta.url);
|
|
257
|
+
|
|
258
|
+
if (!existsSync(build)) {
|
|
259
|
+
console.error(
|
|
260
|
+
`uikit:tokens: cannot find UI Kit's build at ${fileURLToPath(build)}. In the UI Kit repository, run \`pnpm build\` first.`,
|
|
261
|
+
);
|
|
262
|
+
|
|
263
|
+
return 2;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
const source = sourceFrom({
|
|
267
|
+
...(await import(build.href)),
|
|
268
|
+
...(await import(
|
|
269
|
+
new URL('../../../dist/tokens/colors.js', import.meta.url).href
|
|
270
|
+
)),
|
|
271
|
+
});
|
|
272
|
+
const tokens = listTokens(g, measure, source, { filters, format });
|
|
273
|
+
|
|
274
|
+
if (json) {
|
|
275
|
+
console.log(JSON.stringify(tokens, null, 2));
|
|
276
|
+
} else if (tokens.length === 0) {
|
|
277
|
+
console.log(
|
|
278
|
+
`No token matches ${filters.map((f) => `"${f}"`).join(' and ')}. Try a shorter part of the name.`,
|
|
279
|
+
);
|
|
280
|
+
} else {
|
|
281
|
+
console.log(
|
|
282
|
+
render(
|
|
283
|
+
tokens,
|
|
284
|
+
measure.SCHEMES,
|
|
285
|
+
source.tokenNames.size + source.aliases.size,
|
|
286
|
+
),
|
|
287
|
+
);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
return 0;
|
|
291
|
+
} finally {
|
|
292
|
+
console.warn = warn;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
// pnpm and harnesspm may start this file through a symlink.
|
|
297
|
+
if (
|
|
298
|
+
process.argv[1] &&
|
|
299
|
+
realpathSync(process.argv[1]) === realpathSync(fileURLToPath(import.meta.url))
|
|
300
|
+
) {
|
|
301
|
+
process.exitCode = await main(process.argv.slice(2));
|
|
302
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
|
|
3
|
+
"name": "uikit",
|
|
4
|
+
"description": "Cube UI Kit: the component docs, a rule for building with UI Kit, Tasty's and Glaze's harnesses adapted to UI Kit, and a tool that looks up palette tokens",
|
|
5
|
+
"homepage": "https://cube-ui-kit.vercel.app/",
|
|
6
|
+
"repository": "https://github.com/cube-js/cube-ui-kit",
|
|
7
|
+
"keywords": ["ui-kit", "react", "tasty", "glaze", "design-system"],
|
|
8
|
+
"extensions": {
|
|
9
|
+
"dev.harnesspm": {
|
|
10
|
+
"extends": ["@tenphi/glaze", "@tenphi/tasty"],
|
|
11
|
+
"docs": "../docs",
|
|
12
|
+
"patch": {
|
|
13
|
+
"glaze:rules/colors": "./dev.harnesspm/patches/glaze-colors.patch.md",
|
|
14
|
+
"tasty:rules/usage": "./dev.harnesspm/patches/tasty-usage.patch.md"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"tokens": {
|
|
18
|
+
"file": "./dev.harnesspm/scripts/tokens.mjs",
|
|
19
|
+
"description": "Look up UI Kit color tokens by name: values in light, dark and high contrast, and contrast against their base",
|
|
20
|
+
"allow": true
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cube-dev/ui-kit",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-35de927",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "UIKit for Cube Projects",
|
|
6
6
|
"repository": {
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"dist/README.md",
|
|
33
33
|
"dist/CHANGELOG.md",
|
|
34
34
|
"docs/components",
|
|
35
|
-
"docs/tasty",
|
|
36
|
-
"docs/glaze",
|
|
37
35
|
"docs/*.md",
|
|
36
|
+
"docs/llms.txt",
|
|
37
|
+
"harness",
|
|
38
38
|
"tasty.config.ts",
|
|
39
39
|
"tasty.config.generated.ts"
|
|
40
40
|
],
|
|
@@ -115,8 +115,8 @@
|
|
|
115
115
|
"@react-types/shared": "^3.36.1",
|
|
116
116
|
"@tabler/icons-react": "^3.31.0",
|
|
117
117
|
"@tanstack/react-virtual": "^3.13.12",
|
|
118
|
-
"@tenphi/glaze": "3.0
|
|
119
|
-
"@tenphi/tasty": "3.
|
|
118
|
+
"@tenphi/glaze": "3.1.0",
|
|
119
|
+
"@tenphi/tasty": "3.19.0",
|
|
120
120
|
"clipboard-copy": "^4.0.1",
|
|
121
121
|
"clsx": "^1.1.1",
|
|
122
122
|
"diff": "^8.0.3",
|