@cube-dev/ui-kit 0.0.0-canary-b768106 → 0.0.0-canary-2a80a76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -0
- package/dist/README.md +64 -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 +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.d.ts +1 -0
- 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-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.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 +7 -7
- package/dist/components/content/Placeholder/Placeholder.js.map +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/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 -2
- package/dist/components/content/use-auto-tooltip.js.map +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/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/TableView.js +1 -1
- package/dist/components/data/TableBase/column-menu.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.d.ts +2 -1
- package/dist/components/data/TableBase/styled.js +7 -7
- package/dist/components/data/TableBase/styled.js.map +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.d.ts +1 -0
- package/dist/components/data/TableBase/use-cell-selection.js +0 -0
- package/dist/components/data/TableBase/use-column-order.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-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/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/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/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/index.d.ts +1 -0
- package/dist/components/fields/ListBoxPopover/listNavigation.js +1 -1
- package/dist/components/fields/ListBoxPopover/useCompositeFocus.d.ts +2 -0
- 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/TextInput/useAutoSizeTextArea.js +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.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/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-modes.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/group-move.js +1 -1
- package/dist/components/layout/Board/grid-core/layout.js +1 -1
- package/dist/components/layout/Board/grid-core/placement.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/Board/use-board-select-modifier-key.js +1 -1
- package/dist/components/layout/Board/use-board-selection.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/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/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/context.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
- package/dist/components/overlays/Modal/Modal.d.ts +2 -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.d.ts +1 -0
- 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/types.d.ts +1 -0
- 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.d.ts +2 -0
- 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.d.ts +2 -0
- package/dist/components/portal/PortalProvider.js +1 -1
- package/dist/components/portal/index.d.ts +1 -0
- 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/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/precompile/index.d.ts +45 -0
- package/dist/precompile/index.js +52 -0
- package/dist/precompile/index.js.map +1 -0
- package/dist/precompiled/index.d.ts +1 -0
- package/dist/precompiled/index.js +2 -0
- package/dist/precompiled/manifest.d.ts +4 -0
- package/dist/precompiled/manifest.js +2944 -0
- package/dist/precompiled/manifest.json +2942 -0
- package/dist/precompiled/register.d.ts +1 -0
- package/dist/precompiled/register.js +4 -0
- package/dist/precompiled/report.json +1548 -0
- package/dist/precompiled/styles.css +3416 -0
- package/dist/precompiled/styles.d.ts +1 -0
- 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/navigationAdapter.default.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/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/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/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/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/tasty/README.md +3 -1
- package/docs/tasty/debug.md +17 -6
- package/docs/tasty/precompile.md +186 -0
- package/docs/tasty/runtime-benchmarks.md +10 -1
- package/docs/tasty/ssr.md +151 -31
- package/package.json +35 -5
- package/scripts/precompile-tasty-catalog.mjs +727 -0
|
@@ -0,0 +1,727 @@
|
|
|
1
|
+
import { Fragment, createElement as h } from 'react';
|
|
2
|
+
|
|
3
|
+
const BUTTON_THEMES = [
|
|
4
|
+
'current',
|
|
5
|
+
'default',
|
|
6
|
+
'danger',
|
|
7
|
+
'success',
|
|
8
|
+
'warning',
|
|
9
|
+
'note',
|
|
10
|
+
'special',
|
|
11
|
+
];
|
|
12
|
+
const BUTTON_TYPES = ['primary', 'outline', 'outline-2', 'clear', 'link'];
|
|
13
|
+
const ITEM_ACTION_TYPES = ['primary', 'outline', 'clear'];
|
|
14
|
+
|
|
15
|
+
function group(...children) {
|
|
16
|
+
return h(Fragment, null, ...children);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function matrix(Component, values, props = {}) {
|
|
20
|
+
return values.map((value) =>
|
|
21
|
+
h(Component, { ...props, ...value, key: JSON.stringify(value) }, 'Example'),
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function item(Component, key, label = String(key)) {
|
|
26
|
+
return h(Component.Item, { key }, label);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function catalogCase(id, components, render, structuralReason) {
|
|
30
|
+
return {
|
|
31
|
+
id,
|
|
32
|
+
components,
|
|
33
|
+
structuralReason,
|
|
34
|
+
async render() {
|
|
35
|
+
try {
|
|
36
|
+
const ui = await import('../dist/index.js');
|
|
37
|
+
return h(
|
|
38
|
+
ui.I18nProvider,
|
|
39
|
+
null,
|
|
40
|
+
h(ui.Provider, null, h(ui.OverlayProvider, null, render(ui))),
|
|
41
|
+
);
|
|
42
|
+
} catch (error) {
|
|
43
|
+
throw new Error(`UI Kit precompile case "${id}" failed.`, {
|
|
44
|
+
cause: error,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export const runtimeOnlyComponents = {
|
|
52
|
+
AlertDialog:
|
|
53
|
+
'Its styled subtree is mounted only after the imperative dialog state opens.',
|
|
54
|
+
Board:
|
|
55
|
+
'Its external store has no server snapshot and its layout is finalized from browser measurements.',
|
|
56
|
+
BoardResponsive:
|
|
57
|
+
'Its breakpoint selection requires ResizeObserver measurements.',
|
|
58
|
+
BoardWidget:
|
|
59
|
+
'It renders only inside Board, whose external store and geometry are runtime-only.',
|
|
60
|
+
DialogContainer:
|
|
61
|
+
'It mounts a portal only after controlled client state creates a dialog.',
|
|
62
|
+
DialogForm:
|
|
63
|
+
'It is covered structurally by Dialog and Form; submission state is runtime-only.',
|
|
64
|
+
DialogTrigger:
|
|
65
|
+
'Its dialog subtree is interaction-mounted; the trigger itself is supplied by the caller.',
|
|
66
|
+
MenuTrigger:
|
|
67
|
+
'Its menu subtree is interaction-mounted; Menu is cataloged directly.',
|
|
68
|
+
Notification:
|
|
69
|
+
'The declarative component registers with the notification store and returns null.',
|
|
70
|
+
OverlayProvider:
|
|
71
|
+
'It is a state provider; its styled overlay subtree is covered by notification cases.',
|
|
72
|
+
Portal: 'It has no styles and needs a browser portal target.',
|
|
73
|
+
Root: 'It intentionally renders dynamic GlobalStyles, which are excluded from this artifact.',
|
|
74
|
+
SubMenuTrigger:
|
|
75
|
+
'Its submenu subtree is interaction-mounted; Menu is cataloged directly.',
|
|
76
|
+
Toast: 'The imperative component writes to the toast store and returns null.',
|
|
77
|
+
TooltipProvider:
|
|
78
|
+
'Its tooltip subtree is interaction-mounted; Tooltip is cataloged directly.',
|
|
79
|
+
TooltipTrigger:
|
|
80
|
+
'Its tooltip subtree is interaction-mounted; Tooltip is cataloged directly.',
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export const publicStyledComponents = [
|
|
84
|
+
'Action',
|
|
85
|
+
'ActiveZone',
|
|
86
|
+
'Alert',
|
|
87
|
+
'AlertDialog',
|
|
88
|
+
'Avatar',
|
|
89
|
+
'Badge',
|
|
90
|
+
'Banner',
|
|
91
|
+
'BannerAction',
|
|
92
|
+
'BannerLink',
|
|
93
|
+
'Block',
|
|
94
|
+
'Board',
|
|
95
|
+
'BoardResponsive',
|
|
96
|
+
'BoardWidget',
|
|
97
|
+
'Button',
|
|
98
|
+
'ButtonGroup',
|
|
99
|
+
'ButtonSplit',
|
|
100
|
+
'Card',
|
|
101
|
+
'Checkbox',
|
|
102
|
+
'CheckboxGroup',
|
|
103
|
+
'ColorInput',
|
|
104
|
+
'ColorPicker',
|
|
105
|
+
'ColorSwatch',
|
|
106
|
+
'ColorSwatchGroup',
|
|
107
|
+
'ComboBox',
|
|
108
|
+
'CommandMenu',
|
|
109
|
+
'CommandTextArea',
|
|
110
|
+
'Content',
|
|
111
|
+
'CopyPasteBlock',
|
|
112
|
+
'CopySnippet',
|
|
113
|
+
'CubeFullLogo',
|
|
114
|
+
'CubeLogo',
|
|
115
|
+
'DataTable',
|
|
116
|
+
'DateInput',
|
|
117
|
+
'DatePicker',
|
|
118
|
+
'DateRangePicker',
|
|
119
|
+
'DateRangeSeparatedPicker',
|
|
120
|
+
'Dialog',
|
|
121
|
+
'DialogContainer',
|
|
122
|
+
'DialogForm',
|
|
123
|
+
'DialogTrigger',
|
|
124
|
+
'Disclosure',
|
|
125
|
+
'DisplayTransition',
|
|
126
|
+
'Divider',
|
|
127
|
+
'FileInput',
|
|
128
|
+
'FilterListBox',
|
|
129
|
+
'FilterPicker',
|
|
130
|
+
'Flex',
|
|
131
|
+
'Flow',
|
|
132
|
+
'Footer',
|
|
133
|
+
'Form',
|
|
134
|
+
'Grid',
|
|
135
|
+
'GridLayout',
|
|
136
|
+
'GridProvider',
|
|
137
|
+
'Header',
|
|
138
|
+
'HotKeys',
|
|
139
|
+
'HueSlider',
|
|
140
|
+
'IconSwitch',
|
|
141
|
+
'InfoBadge',
|
|
142
|
+
'InlineInput',
|
|
143
|
+
'Input',
|
|
144
|
+
'Item',
|
|
145
|
+
'ItemAction',
|
|
146
|
+
'ItemBadge',
|
|
147
|
+
'ItemButton',
|
|
148
|
+
'ItemCard',
|
|
149
|
+
'ItemTable',
|
|
150
|
+
'Layout',
|
|
151
|
+
'Link',
|
|
152
|
+
'ListBox',
|
|
153
|
+
'LoadingAnimation',
|
|
154
|
+
'Menu',
|
|
155
|
+
'MenuTrigger',
|
|
156
|
+
'MonthPicker',
|
|
157
|
+
'NoDataIcon',
|
|
158
|
+
'Notification',
|
|
159
|
+
'NotificationAction',
|
|
160
|
+
'NotificationCard',
|
|
161
|
+
'NotificationItem',
|
|
162
|
+
'NumberInput',
|
|
163
|
+
'OverlayProvider',
|
|
164
|
+
'Pagination',
|
|
165
|
+
'Panel',
|
|
166
|
+
'Paragraph',
|
|
167
|
+
'PasswordInput',
|
|
168
|
+
'PeriodPicker',
|
|
169
|
+
'PersistentNotificationsList',
|
|
170
|
+
'Picker',
|
|
171
|
+
'Placeholder',
|
|
172
|
+
'Portal',
|
|
173
|
+
'Prefix',
|
|
174
|
+
'PrismCode',
|
|
175
|
+
'PrismDiffCode',
|
|
176
|
+
'QuarterPicker',
|
|
177
|
+
'Radio',
|
|
178
|
+
'RadioGroup',
|
|
179
|
+
'RangeSlider',
|
|
180
|
+
'ResizablePanel',
|
|
181
|
+
'Result',
|
|
182
|
+
'Root',
|
|
183
|
+
'SearchComboBox',
|
|
184
|
+
'SearchInput',
|
|
185
|
+
'Select',
|
|
186
|
+
'Skeleton',
|
|
187
|
+
'Slider',
|
|
188
|
+
'Space',
|
|
189
|
+
'Spin',
|
|
190
|
+
'StatsCard',
|
|
191
|
+
'SubMenuTrigger',
|
|
192
|
+
'Suffix',
|
|
193
|
+
'Switch',
|
|
194
|
+
'Tab',
|
|
195
|
+
'Tabs',
|
|
196
|
+
'TabsAction',
|
|
197
|
+
'Tag',
|
|
198
|
+
'Text',
|
|
199
|
+
'TextArea',
|
|
200
|
+
'TextInput',
|
|
201
|
+
'TextInputMapper',
|
|
202
|
+
'TextItem',
|
|
203
|
+
'TimeInput',
|
|
204
|
+
'Title',
|
|
205
|
+
'Toast',
|
|
206
|
+
'ToastItem',
|
|
207
|
+
'Tooltip',
|
|
208
|
+
'TooltipProvider',
|
|
209
|
+
'TooltipTrigger',
|
|
210
|
+
'Tree',
|
|
211
|
+
'WeekPicker',
|
|
212
|
+
'YearPicker',
|
|
213
|
+
];
|
|
214
|
+
|
|
215
|
+
export const cases = [
|
|
216
|
+
catalogCase(
|
|
217
|
+
'layout/primitives',
|
|
218
|
+
[
|
|
219
|
+
'Block',
|
|
220
|
+
'Grid',
|
|
221
|
+
'GridProvider',
|
|
222
|
+
'Flex',
|
|
223
|
+
'Space',
|
|
224
|
+
'Flow',
|
|
225
|
+
'Panel',
|
|
226
|
+
'Prefix',
|
|
227
|
+
'Suffix',
|
|
228
|
+
],
|
|
229
|
+
(ui) =>
|
|
230
|
+
group(
|
|
231
|
+
h(ui.Block, null, 'Block'),
|
|
232
|
+
h(ui.Grid, { columns: 2 }, h('span', null, 'A'), h('span', null, 'B')),
|
|
233
|
+
h(ui.GridProvider, { initialWidth: '400px' }, 'Grid provider'),
|
|
234
|
+
h(ui.Flex, null, 'Flex'),
|
|
235
|
+
h(ui.Space, null, 'Space'),
|
|
236
|
+
h(ui.Flow, null, 'Flow'),
|
|
237
|
+
h(ui.Panel, null, 'Panel'),
|
|
238
|
+
h(ui.Prefix, null, 'Prefix'),
|
|
239
|
+
h(ui.Suffix, null, 'Suffix'),
|
|
240
|
+
),
|
|
241
|
+
),
|
|
242
|
+
catalogCase(
|
|
243
|
+
'layout/content',
|
|
244
|
+
['Content', 'Header', 'Footer', 'GridLayout', 'Layout'],
|
|
245
|
+
(ui) =>
|
|
246
|
+
group(
|
|
247
|
+
h(ui.Content, null, 'Content'),
|
|
248
|
+
h(ui.Header, null, 'Header'),
|
|
249
|
+
h(ui.Footer, null, 'Footer'),
|
|
250
|
+
h(ui.GridLayout, null, 'Grid layout'),
|
|
251
|
+
h(
|
|
252
|
+
ui.Layout,
|
|
253
|
+
null,
|
|
254
|
+
h(ui.Layout.Header, null, 'Header'),
|
|
255
|
+
h(ui.Layout.Toolbar, null, 'Toolbar'),
|
|
256
|
+
h(ui.Layout.Content, null, 'Content'),
|
|
257
|
+
h(ui.Layout.Footer, null, 'Footer'),
|
|
258
|
+
),
|
|
259
|
+
),
|
|
260
|
+
),
|
|
261
|
+
catalogCase(
|
|
262
|
+
'typography/all',
|
|
263
|
+
['Text', 'TextItem', 'Title', 'Paragraph'],
|
|
264
|
+
(ui) =>
|
|
265
|
+
group(
|
|
266
|
+
h(ui.Text, null, 'Text'),
|
|
267
|
+
h(ui.TextItem, null, 'Text item'),
|
|
268
|
+
h(ui.Title, null, 'Title'),
|
|
269
|
+
h(ui.Paragraph, null, 'Paragraph'),
|
|
270
|
+
),
|
|
271
|
+
),
|
|
272
|
+
catalogCase('action/base', ['Action', 'Link'], (ui) =>
|
|
273
|
+
group(h(ui.Action, null, 'Action'), h(ui.Link, { href: '#' }, 'Link')),
|
|
274
|
+
),
|
|
275
|
+
catalogCase('button/variants', ['Button'], (ui) =>
|
|
276
|
+
group(
|
|
277
|
+
...matrix(
|
|
278
|
+
ui.Button,
|
|
279
|
+
BUTTON_THEMES.flatMap((theme) =>
|
|
280
|
+
BUTTON_TYPES.map((type) => ({ theme, type })),
|
|
281
|
+
),
|
|
282
|
+
),
|
|
283
|
+
...matrix(ui.Button, [
|
|
284
|
+
{ size: 'xsmall' },
|
|
285
|
+
{ size: 'small' },
|
|
286
|
+
{ size: 'medium' },
|
|
287
|
+
{ size: 'large' },
|
|
288
|
+
{ size: 'xlarge' },
|
|
289
|
+
{ size: 'inline' },
|
|
290
|
+
{ isLoading: true },
|
|
291
|
+
{ isSelected: true },
|
|
292
|
+
]),
|
|
293
|
+
),
|
|
294
|
+
),
|
|
295
|
+
catalogCase('button/compound', ['ButtonGroup', 'ButtonSplit'], (ui) =>
|
|
296
|
+
group(
|
|
297
|
+
h(
|
|
298
|
+
ui.ButtonGroup,
|
|
299
|
+
null,
|
|
300
|
+
h(ui.Button, null, 'One'),
|
|
301
|
+
h(ui.Button, null, 'Two'),
|
|
302
|
+
),
|
|
303
|
+
h(ui.ButtonSplit, null, h(ui.Button, null, 'Split')),
|
|
304
|
+
),
|
|
305
|
+
),
|
|
306
|
+
catalogCase('item-action/variants', ['ItemAction'], (ui) =>
|
|
307
|
+
group(
|
|
308
|
+
...matrix(
|
|
309
|
+
ui.ItemAction,
|
|
310
|
+
BUTTON_THEMES.flatMap((theme) =>
|
|
311
|
+
ITEM_ACTION_TYPES.map((type) => ({ theme, type })),
|
|
312
|
+
),
|
|
313
|
+
),
|
|
314
|
+
h(ui.ItemAction, { icon: 'checkmark', isSelected: true }, 'Selected'),
|
|
315
|
+
h(ui.ItemAction, { isLoading: true }, 'Loading'),
|
|
316
|
+
),
|
|
317
|
+
),
|
|
318
|
+
catalogCase('item-badge/variants', ['ItemBadge'], (ui) =>
|
|
319
|
+
group(
|
|
320
|
+
...matrix(
|
|
321
|
+
ui.ItemBadge,
|
|
322
|
+
['current', 'default', 'danger', 'success', 'special'].flatMap(
|
|
323
|
+
(theme) => ITEM_ACTION_TYPES.map((type) => ({ theme, type })),
|
|
324
|
+
),
|
|
325
|
+
),
|
|
326
|
+
),
|
|
327
|
+
),
|
|
328
|
+
catalogCase('item/content', ['Item', 'ItemCard', 'ItemButton'], (ui) =>
|
|
329
|
+
group(
|
|
330
|
+
h(ui.Item, null, 'Item'),
|
|
331
|
+
h(
|
|
332
|
+
ui.Item,
|
|
333
|
+
{ icon: h(ui.InfoIcon), description: 'Description' },
|
|
334
|
+
'Detailed',
|
|
335
|
+
),
|
|
336
|
+
h(ui.ItemCard, null, 'Card item'),
|
|
337
|
+
h(ui.ItemButton, null, 'Button item'),
|
|
338
|
+
),
|
|
339
|
+
),
|
|
340
|
+
catalogCase(
|
|
341
|
+
'banner/variants',
|
|
342
|
+
['Banner', 'BannerAction', 'BannerLink'],
|
|
343
|
+
(ui) =>
|
|
344
|
+
group(
|
|
345
|
+
...['note', 'success', 'warning', 'danger'].map((theme) =>
|
|
346
|
+
h(
|
|
347
|
+
ui.Banner,
|
|
348
|
+
{ key: theme, theme },
|
|
349
|
+
`${theme} banner`,
|
|
350
|
+
h(ui.BannerAction, null, 'Action'),
|
|
351
|
+
h(ui.BannerLink, { href: '#' }, 'Link'),
|
|
352
|
+
),
|
|
353
|
+
),
|
|
354
|
+
),
|
|
355
|
+
),
|
|
356
|
+
catalogCase('content/surfaces', ['Card', 'ActiveZone', 'Divider'], (ui) =>
|
|
357
|
+
group(
|
|
358
|
+
h(ui.Card, null, 'Card'),
|
|
359
|
+
h(ui.ActiveZone, null, 'Active zone'),
|
|
360
|
+
h(ui.Divider),
|
|
361
|
+
),
|
|
362
|
+
),
|
|
363
|
+
catalogCase('content/status', ['Alert', 'Badge', 'Tag', 'Result'], (ui) =>
|
|
364
|
+
group(
|
|
365
|
+
...['note', 'success', 'warning', 'danger'].flatMap((theme) => [
|
|
366
|
+
h(ui.Alert, { key: `alert-${theme}`, theme }, `${theme} alert`),
|
|
367
|
+
h(ui.Badge, { key: `badge-${theme}`, theme }, theme),
|
|
368
|
+
h(ui.Tag, { key: `tag-${theme}`, theme }, theme),
|
|
369
|
+
]),
|
|
370
|
+
h(ui.Alert, { shape: 'sharp' }, 'Sharp alert'),
|
|
371
|
+
h(ui.Result, { status: 'success', title: 'Complete' }),
|
|
372
|
+
),
|
|
373
|
+
),
|
|
374
|
+
catalogCase(
|
|
375
|
+
'content/feedback',
|
|
376
|
+
['Avatar', 'InfoBadge', 'Placeholder', 'Skeleton'],
|
|
377
|
+
(ui) =>
|
|
378
|
+
group(
|
|
379
|
+
h(ui.Avatar, { name: 'Ada Lovelace' }),
|
|
380
|
+
h(ui.InfoBadge, null, 'Information'),
|
|
381
|
+
h(ui.Placeholder),
|
|
382
|
+
h(ui.Placeholder, { circle: true, isStatic: true }),
|
|
383
|
+
h(ui.Skeleton, null, h(ui.Skeleton.Text, { lines: 2 })),
|
|
384
|
+
),
|
|
385
|
+
),
|
|
386
|
+
catalogCase('content/code', ['PrismCode', 'PrismDiffCode'], (ui) =>
|
|
387
|
+
group(
|
|
388
|
+
h(ui.PrismCode, { code: 'const value = 1;', language: 'javascript' }),
|
|
389
|
+
h(ui.PrismDiffCode, {
|
|
390
|
+
original: 'const value = 1;',
|
|
391
|
+
modified: 'const value = 2;',
|
|
392
|
+
language: 'javascript',
|
|
393
|
+
}),
|
|
394
|
+
),
|
|
395
|
+
),
|
|
396
|
+
catalogCase('content/copy', ['CopySnippet', 'CopyPasteBlock'], (ui) =>
|
|
397
|
+
group(
|
|
398
|
+
h(ui.CopySnippet, { text: 'copy me' }),
|
|
399
|
+
h(ui.CopyPasteBlock, { value: 'copy me' }),
|
|
400
|
+
),
|
|
401
|
+
),
|
|
402
|
+
catalogCase('content/inline', ['InlineInput', 'HotKeys'], (ui) =>
|
|
403
|
+
group(
|
|
404
|
+
h(ui.InlineInput, { defaultValue: 'Editable' }),
|
|
405
|
+
h(ui.HotKeys, null, '⌘ K'),
|
|
406
|
+
),
|
|
407
|
+
),
|
|
408
|
+
catalogCase('content/disclosure', ['Disclosure'], (ui) =>
|
|
409
|
+
h(
|
|
410
|
+
ui.Disclosure.Group,
|
|
411
|
+
{ defaultExpandedKeys: ['one'] },
|
|
412
|
+
h(ui.Disclosure, { id: 'one', title: 'Details' }, 'Expanded content'),
|
|
413
|
+
h(ui.Disclosure, { id: 'two', title: 'More' }, 'More content'),
|
|
414
|
+
),
|
|
415
|
+
),
|
|
416
|
+
catalogCase('content/tree', ['Tree'], (ui) =>
|
|
417
|
+
h(ui.Tree, {
|
|
418
|
+
treeData: [
|
|
419
|
+
{
|
|
420
|
+
key: 'src',
|
|
421
|
+
title: 'src',
|
|
422
|
+
children: [
|
|
423
|
+
{ key: 'index', title: 'index.ts' },
|
|
424
|
+
{ key: 'button', title: 'Button.tsx' },
|
|
425
|
+
],
|
|
426
|
+
},
|
|
427
|
+
],
|
|
428
|
+
defaultExpandedKeys: ['src'],
|
|
429
|
+
isCheckable: true,
|
|
430
|
+
}),
|
|
431
|
+
),
|
|
432
|
+
catalogCase(
|
|
433
|
+
'field/text',
|
|
434
|
+
['Input', 'TextInput', 'TextArea', 'PasswordInput'],
|
|
435
|
+
(ui) =>
|
|
436
|
+
group(
|
|
437
|
+
h(ui.Input, { 'aria-label': 'Input', defaultValue: 'Value' }),
|
|
438
|
+
h(ui.TextInput, { label: 'Text input', defaultValue: 'Value' }),
|
|
439
|
+
h(ui.TextArea, { label: 'Text area', defaultValue: 'Value' }),
|
|
440
|
+
h(ui.PasswordInput, { label: 'Password', defaultValue: 'secret' }),
|
|
441
|
+
),
|
|
442
|
+
),
|
|
443
|
+
catalogCase('field/search-number', ['SearchInput', 'NumberInput'], (ui) =>
|
|
444
|
+
group(
|
|
445
|
+
h(ui.SearchInput, { 'aria-label': 'Search', defaultValue: 'Query' }),
|
|
446
|
+
h(ui.NumberInput, { label: 'Count', defaultValue: 42 }),
|
|
447
|
+
),
|
|
448
|
+
),
|
|
449
|
+
catalogCase(
|
|
450
|
+
'field/choice',
|
|
451
|
+
['Checkbox', 'CheckboxGroup', 'Radio', 'RadioGroup', 'Switch'],
|
|
452
|
+
(ui) =>
|
|
453
|
+
group(
|
|
454
|
+
h(ui.Checkbox, { defaultSelected: true }, 'Checkbox'),
|
|
455
|
+
h(
|
|
456
|
+
ui.CheckboxGroup,
|
|
457
|
+
{ label: 'Checkbox group', defaultValue: ['one'] },
|
|
458
|
+
h(ui.Checkbox, { value: 'one' }, 'One'),
|
|
459
|
+
h(ui.Checkbox, { value: 'two' }, 'Two'),
|
|
460
|
+
),
|
|
461
|
+
h(
|
|
462
|
+
ui.RadioGroup,
|
|
463
|
+
{ label: 'Radio group', defaultValue: 'one' },
|
|
464
|
+
h(ui.Radio, { value: 'one' }, 'One'),
|
|
465
|
+
h(ui.Radio, { value: 'two' }, 'Two'),
|
|
466
|
+
),
|
|
467
|
+
h(ui.Switch, { defaultSelected: true }, 'Switch'),
|
|
468
|
+
),
|
|
469
|
+
),
|
|
470
|
+
catalogCase('field/slider', ['Slider', 'RangeSlider', 'HueSlider'], (ui) =>
|
|
471
|
+
group(
|
|
472
|
+
h(ui.Slider, { label: 'Slider', defaultValue: 40 }),
|
|
473
|
+
h(ui.RangeSlider, { label: 'Range', defaultValue: [20, 80] }),
|
|
474
|
+
h(ui.HueSlider, { 'aria-label': 'Hue', defaultValue: 180 }),
|
|
475
|
+
),
|
|
476
|
+
),
|
|
477
|
+
catalogCase('field/select', ['Select', 'ListBox'], (ui) =>
|
|
478
|
+
group(
|
|
479
|
+
h(
|
|
480
|
+
ui.Select,
|
|
481
|
+
{ label: 'Select', defaultSelectedKey: 'one' },
|
|
482
|
+
item(ui.Select, 'one', 'One'),
|
|
483
|
+
item(ui.Select, 'two', 'Two'),
|
|
484
|
+
),
|
|
485
|
+
h(
|
|
486
|
+
ui.ListBox,
|
|
487
|
+
{ 'aria-label': 'List box', selectionMode: 'single' },
|
|
488
|
+
item(ui.ListBox, 'one', 'One'),
|
|
489
|
+
item(ui.ListBox, 'two', 'Two'),
|
|
490
|
+
),
|
|
491
|
+
),
|
|
492
|
+
),
|
|
493
|
+
catalogCase(
|
|
494
|
+
'field/combo',
|
|
495
|
+
['ComboBox', 'SearchComboBox'],
|
|
496
|
+
(ui) =>
|
|
497
|
+
group(
|
|
498
|
+
h(
|
|
499
|
+
ui.ComboBox,
|
|
500
|
+
{ label: 'Combo box' },
|
|
501
|
+
item(ui.ComboBox, 'one', 'One'),
|
|
502
|
+
item(ui.ComboBox, 'two', 'Two'),
|
|
503
|
+
),
|
|
504
|
+
h(
|
|
505
|
+
ui.SearchComboBox,
|
|
506
|
+
{ label: 'Search combo' },
|
|
507
|
+
item(ui.SearchComboBox, 'one', 'One'),
|
|
508
|
+
item(ui.SearchComboBox, 'two', 'Two'),
|
|
509
|
+
),
|
|
510
|
+
),
|
|
511
|
+
'Retained as the required public defaults; their styled input and list primitives are already introduced by earlier field cases.',
|
|
512
|
+
),
|
|
513
|
+
catalogCase(
|
|
514
|
+
'field/pickers',
|
|
515
|
+
['Picker', 'FilterPicker', 'FilterListBox'],
|
|
516
|
+
(ui) =>
|
|
517
|
+
group(
|
|
518
|
+
h(
|
|
519
|
+
ui.Picker,
|
|
520
|
+
{ label: 'Picker', defaultSelectedKey: 'one' },
|
|
521
|
+
item(ui.Picker, 'one', 'One'),
|
|
522
|
+
item(ui.Picker, 'two', 'Two'),
|
|
523
|
+
),
|
|
524
|
+
h(
|
|
525
|
+
ui.FilterPicker,
|
|
526
|
+
{ label: 'Filter picker', defaultSelectedKeys: ['one'] },
|
|
527
|
+
item(ui.FilterPicker, 'one', 'One'),
|
|
528
|
+
item(ui.FilterPicker, 'two', 'Two'),
|
|
529
|
+
),
|
|
530
|
+
h(
|
|
531
|
+
ui.FilterListBox,
|
|
532
|
+
{ 'aria-label': 'Filter list', defaultSelectedKeys: ['one'] },
|
|
533
|
+
item(ui.FilterListBox, 'one', 'One'),
|
|
534
|
+
item(ui.FilterListBox, 'two', 'Two'),
|
|
535
|
+
),
|
|
536
|
+
),
|
|
537
|
+
),
|
|
538
|
+
catalogCase(
|
|
539
|
+
'field/color',
|
|
540
|
+
['ColorInput', 'ColorPicker', 'ColorSwatch', 'ColorSwatchGroup'],
|
|
541
|
+
(ui) =>
|
|
542
|
+
group(
|
|
543
|
+
h(ui.ColorInput, { label: 'Color', defaultValue: '#7a4dbf' }),
|
|
544
|
+
h(ui.ColorPicker, { label: 'Color picker', defaultValue: '#7a4dbf' }),
|
|
545
|
+
h(ui.ColorSwatch, { color: '#7a4dbf' }),
|
|
546
|
+
h(
|
|
547
|
+
ui.ColorSwatchGroup,
|
|
548
|
+
{ 'aria-label': 'Colors', defaultValue: '#7a4dbf' },
|
|
549
|
+
h(ui.ColorSwatch, { color: '#7a4dbf' }),
|
|
550
|
+
h(ui.ColorSwatch, { color: '#26fcb2' }),
|
|
551
|
+
),
|
|
552
|
+
),
|
|
553
|
+
),
|
|
554
|
+
catalogCase('field/date-inputs', ['DateInput', 'TimeInput'], (ui) => {
|
|
555
|
+
const date = new ui.CalendarDate(2026, 8, 30);
|
|
556
|
+
return group(
|
|
557
|
+
h(ui.DateInput, { label: 'Date', defaultValue: date }),
|
|
558
|
+
h(ui.TimeInput, { label: 'Time' }),
|
|
559
|
+
);
|
|
560
|
+
}),
|
|
561
|
+
catalogCase(
|
|
562
|
+
'field/date-pickers',
|
|
563
|
+
['DatePicker', 'DateRangePicker', 'DateRangeSeparatedPicker'],
|
|
564
|
+
(ui) => {
|
|
565
|
+
const start = new ui.CalendarDate(2026, 8, 30);
|
|
566
|
+
const end = new ui.CalendarDate(2026, 9, 2);
|
|
567
|
+
return group(
|
|
568
|
+
h(ui.DatePicker, { label: 'Date picker', defaultValue: start }),
|
|
569
|
+
h(ui.DateRangePicker, { label: 'Range', defaultValue: { start, end } }),
|
|
570
|
+
h(ui.DateRangeSeparatedPicker, {
|
|
571
|
+
label: 'Separated range',
|
|
572
|
+
defaultValue: { start, end },
|
|
573
|
+
}),
|
|
574
|
+
);
|
|
575
|
+
},
|
|
576
|
+
),
|
|
577
|
+
catalogCase(
|
|
578
|
+
'field/period-pickers',
|
|
579
|
+
[
|
|
580
|
+
'PeriodPicker',
|
|
581
|
+
'MonthPicker',
|
|
582
|
+
'QuarterPicker',
|
|
583
|
+
'WeekPicker',
|
|
584
|
+
'YearPicker',
|
|
585
|
+
],
|
|
586
|
+
(ui) => {
|
|
587
|
+
const date = new ui.CalendarDate(2026, 8, 30);
|
|
588
|
+
return group(
|
|
589
|
+
h(ui.PeriodPicker, { label: 'Period', defaultValue: date }),
|
|
590
|
+
h(ui.MonthPicker, { label: 'Month', defaultValue: date }),
|
|
591
|
+
h(ui.QuarterPicker, { label: 'Quarter', defaultValue: date }),
|
|
592
|
+
h(ui.WeekPicker, { label: 'Week', defaultValue: date }),
|
|
593
|
+
h(ui.YearPicker, { label: 'Year', defaultValue: date }),
|
|
594
|
+
);
|
|
595
|
+
},
|
|
596
|
+
),
|
|
597
|
+
catalogCase('field/file-command', ['FileInput', 'CommandTextArea'], (ui) =>
|
|
598
|
+
group(
|
|
599
|
+
h(ui.FileInput, { label: 'File' }),
|
|
600
|
+
h(ui.CommandTextArea, { label: 'Command', commands: [] }),
|
|
601
|
+
),
|
|
602
|
+
),
|
|
603
|
+
catalogCase('field/mapper', ['TextInputMapper'], (ui) =>
|
|
604
|
+
h(ui.TextInputMapper, { label: 'Mapper', defaultValue: [] }),
|
|
605
|
+
),
|
|
606
|
+
catalogCase('form/default', ['Form'], (ui) =>
|
|
607
|
+
h(ui.Form, null, h(ui.TextInput, { name: 'name', label: 'Name' })),
|
|
608
|
+
),
|
|
609
|
+
catalogCase('navigation/tabs', ['Tabs', 'Tab', 'TabsAction'], (ui) =>
|
|
610
|
+
h(
|
|
611
|
+
ui.Tabs,
|
|
612
|
+
{ defaultSelectedKey: 'one' },
|
|
613
|
+
h(ui.Tab, { id: 'one', title: 'One' }, 'First panel'),
|
|
614
|
+
h(ui.Tab, { id: 'two', title: 'Two' }, 'Second panel'),
|
|
615
|
+
h(ui.TabsAction, null, 'Action'),
|
|
616
|
+
),
|
|
617
|
+
),
|
|
618
|
+
catalogCase('navigation/pagination', ['Pagination'], (ui) =>
|
|
619
|
+
h(ui.Pagination, { page: 2, total: 10, onChange: () => {} }),
|
|
620
|
+
),
|
|
621
|
+
catalogCase('overlay/menu', ['Menu', 'CommandMenu'], (ui) =>
|
|
622
|
+
group(
|
|
623
|
+
h(
|
|
624
|
+
ui.Menu,
|
|
625
|
+
{ 'aria-label': 'Menu' },
|
|
626
|
+
item(ui.Menu, 'one', 'One'),
|
|
627
|
+
item(ui.Menu, 'two', 'Two'),
|
|
628
|
+
),
|
|
629
|
+
h(ui.CommandMenu, { items: [{ id: 'one', name: 'One' }] }),
|
|
630
|
+
),
|
|
631
|
+
),
|
|
632
|
+
catalogCase('overlay/dialog', ['Dialog'], (ui) =>
|
|
633
|
+
h(ui.Dialog, { title: 'Dialog' }, 'Dialog content'),
|
|
634
|
+
),
|
|
635
|
+
catalogCase('overlay/tooltip', ['Tooltip'], (ui) =>
|
|
636
|
+
group(
|
|
637
|
+
h(ui.Tooltip, null, 'Tooltip'),
|
|
638
|
+
h(ui.Tooltip, { type: 'light' }, 'Light tooltip'),
|
|
639
|
+
),
|
|
640
|
+
),
|
|
641
|
+
catalogCase(
|
|
642
|
+
'notification/cards',
|
|
643
|
+
[
|
|
644
|
+
'NotificationCard',
|
|
645
|
+
'NotificationItem',
|
|
646
|
+
'NotificationAction',
|
|
647
|
+
'PersistentNotificationsList',
|
|
648
|
+
'ToastItem',
|
|
649
|
+
],
|
|
650
|
+
(ui) =>
|
|
651
|
+
group(
|
|
652
|
+
h(ui.NotificationCard, {
|
|
653
|
+
id: 'notice',
|
|
654
|
+
title: 'Notification',
|
|
655
|
+
description: 'Description',
|
|
656
|
+
}),
|
|
657
|
+
h(ui.NotificationItem, {
|
|
658
|
+
notification: {
|
|
659
|
+
id: 'item',
|
|
660
|
+
internalId: 'item',
|
|
661
|
+
title: 'Item',
|
|
662
|
+
description: 'Description',
|
|
663
|
+
},
|
|
664
|
+
onDismiss: () => {},
|
|
665
|
+
}),
|
|
666
|
+
h(ui.NotificationAction, null, 'Action'),
|
|
667
|
+
h(ui.PersistentNotificationsList, { emptyState: 'No notifications' }),
|
|
668
|
+
h(ui.ToastItem, { title: 'Toast', description: 'Description' }),
|
|
669
|
+
),
|
|
670
|
+
),
|
|
671
|
+
catalogCase('status/all', ['Spin', 'LoadingAnimation'], (ui) =>
|
|
672
|
+
group(h(ui.Spin), h(ui.LoadingAnimation)),
|
|
673
|
+
),
|
|
674
|
+
catalogCase('other/logos', ['CubeLogo', 'CubeFullLogo', 'NoDataIcon'], (ui) =>
|
|
675
|
+
group(h(ui.CubeLogo), h(ui.CubeFullLogo), h(ui.NoDataIcon)),
|
|
676
|
+
),
|
|
677
|
+
catalogCase(
|
|
678
|
+
'helpers/all',
|
|
679
|
+
['DisplayTransition', 'IconSwitch'],
|
|
680
|
+
(ui) =>
|
|
681
|
+
group(
|
|
682
|
+
h(
|
|
683
|
+
ui.DisplayTransition,
|
|
684
|
+
{ isShown: true, animateOnMount: false },
|
|
685
|
+
({ phase, ref }) => h('div', { ref, 'data-phase': phase }, 'Visible'),
|
|
686
|
+
),
|
|
687
|
+
h(ui.IconSwitch, null, h(ui.InfoIcon)),
|
|
688
|
+
),
|
|
689
|
+
'Retained as the required public defaults; DisplayTransition is style-free and IconSwitch is already covered inside earlier components.',
|
|
690
|
+
),
|
|
691
|
+
catalogCase('organism/stats-card', ['StatsCard'], (ui) =>
|
|
692
|
+
h(ui.StatsCard, { title: 'Revenue', value: '$42k' }),
|
|
693
|
+
),
|
|
694
|
+
catalogCase('layout/resizable-panel', ['ResizablePanel'], (ui) =>
|
|
695
|
+
h(ui.ResizablePanel, { size: 240 }, 'Resizable'),
|
|
696
|
+
),
|
|
697
|
+
catalogCase('data/tables', ['DataTable', 'ItemTable'], (ui) => {
|
|
698
|
+
const data = [
|
|
699
|
+
{ id: 'one', name: 'Alpha', count: 42 },
|
|
700
|
+
{ id: 'two', name: 'Beta', count: 7 },
|
|
701
|
+
];
|
|
702
|
+
const columns = [
|
|
703
|
+
{ key: 'name', title: 'Name', isRowHeader: true },
|
|
704
|
+
{ key: 'count', title: 'Count', dataType: 'number' },
|
|
705
|
+
];
|
|
706
|
+
return group(
|
|
707
|
+
h(ui.DataTable, {
|
|
708
|
+
data,
|
|
709
|
+
columns,
|
|
710
|
+
ariaLabel: 'Data table',
|
|
711
|
+
isLoading: true,
|
|
712
|
+
}),
|
|
713
|
+
h(ui.ItemTable, { data, columns, ariaLabel: 'Item table' }),
|
|
714
|
+
);
|
|
715
|
+
}),
|
|
716
|
+
];
|
|
717
|
+
|
|
718
|
+
const coveredComponents = new Set(cases.flatMap((item) => item.components));
|
|
719
|
+
const missingComponents = publicStyledComponents.filter(
|
|
720
|
+
(name) => !coveredComponents.has(name) && !(name in runtimeOnlyComponents),
|
|
721
|
+
);
|
|
722
|
+
|
|
723
|
+
if (missingComponents.length > 0) {
|
|
724
|
+
throw new Error(
|
|
725
|
+
`Precompiled catalog coverage is missing: ${missingComponents.join(', ')}`,
|
|
726
|
+
);
|
|
727
|
+
}
|