@cube-dev/ui-kit 0.0.0-canary-434a15e → 0.0.0-canary-58fb859
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/Button.d.ts +0 -1
- package/dist/components/actions/Button/Button.js +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.js +1 -1
- package/dist/components/actions/CommandMenu/styled.js +1 -1
- package/dist/components/actions/ItemAction/ItemAction.js +1 -1
- package/dist/components/actions/ItemActionContext.js +1 -1
- package/dist/components/actions/ItemButton/ItemButton.js +1 -1
- package/dist/components/actions/Link/Link.js +1 -1
- package/dist/components/actions/Menu/Menu.js +1 -1
- package/dist/components/actions/Menu/MenuItem.js +1 -1
- package/dist/components/actions/Menu/MenuSection.js +1 -1
- package/dist/components/actions/Menu/MenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/actions/Menu/context.js +1 -1
- package/dist/components/actions/Menu/styled.js +1 -1
- package/dist/components/actions/index.js +1 -1
- package/dist/components/actions/use-action.js +1 -1
- package/dist/components/actions/use-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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/components/content/Layout/LayoutPanel.js +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +2 -2
- 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 +2 -2
- 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/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 +2 -2
- 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 +1 -2
- package/dist/components/data/TableBase/styled.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.d.ts +0 -1
- 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 +2 -2
- package/dist/components/fields/Checkbox/CheckboxGroup.js +2 -2
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ColorInput/ColorInput.js +2 -2
- package/dist/components/fields/ColorPicker/ColorPicker.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +2 -2
- package/dist/components/fields/DatePicker/MonthPicker.js +1 -1
- package/dist/components/fields/DatePicker/PeriodPicker.js +2 -2
- 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 +3 -3
- 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 +4 -4
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.js +1 -1
- package/dist/components/fields/ListBoxPopover/index.d.ts +0 -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 +2 -2
- package/dist/components/fields/NumberInput/StepButton.js +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +2 -2
- package/dist/components/fields/Picker/Picker.js +3 -3
- package/dist/components/fields/RadioGroup/Radio.js +2 -2
- package/dist/components/fields/RadioGroup/RadioGroup.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/components/fields/TextArea/TextArea.js +2 -2
- package/dist/components/fields/TextInput/TextInput.js +2 -2
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
- package/dist/components/overlays/Dialog/DialogForm.js +4 -4
- 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 +1 -2
- 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 +0 -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/types.d.ts +0 -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.d.ts +0 -2
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +1 -1
- package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
- package/dist/components/overlays/Notifications/index.js +1 -1
- package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
- package/dist/components/overlays/Notifications/use-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +1 -1
- package/dist/components/overlays/Toast/index.js +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useToast.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
- package/dist/components/overlays/Tooltip/context.js +1 -1
- package/dist/components/portal/Portal.js +1 -1
- package/dist/components/portal/PortalProvider.js +1 -1
- package/dist/components/portal/index.d.ts +0 -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 -16
- package/dist/i18n/locales/en-US/uikit.js +1 -16
- package/dist/i18n/locales/en-US/uikit.json.d.ts +1 -17
- package/dist/i18n/locales/es-ES/uikit.js +1 -16
- package/dist/i18n/locales/es-MX/uikit.js +1 -16
- package/dist/i18n/locales/fr-FR/uikit.js +1 -16
- package/dist/i18n/locales/it-IT/uikit.js +1 -16
- package/dist/i18n/locales/ja-JP/uikit.js +1 -16
- package/dist/i18n/locales/nb-NO/uikit.js +1 -16
- package/dist/i18n/locales/pt-BR/uikit.js +1 -16
- package/dist/i18n/locales/pt-PT/uikit.js +1 -16
- package/dist/i18n/locales/sv-SE/uikit.js +1 -16
- package/dist/i18n/locales/vi-VN/uikit.js +1 -16
- 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/index.d.ts +0 -1
- package/dist/icons/wrap-icon.js +1 -1
- package/dist/index.d.ts +1 -4
- package/dist/index.js +48 -50
- package/dist/index.js.map +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/navigationAdapter.default.js +1 -1
- package/dist/tokens/all-tokens.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/debug.md +13 -0
- package/docs/tasty/runtime-benchmarks.md +185 -12
- package/docs/tasty/ssr.md +151 -31
- package/package.json +2 -2
- package/dist/components/fields/ListBoxPopover/useCompositeFocus.d.ts +0 -2
- package/dist/components/layout/Dashboard/Dashboard.d.ts +0 -199
- package/dist/components/layout/Dashboard/Dashboard.js +0 -2049
- package/dist/components/layout/Dashboard/Dashboard.js.map +0 -1
- package/dist/components/layout/Dashboard/index.d.ts +0 -2
- package/dist/components/portal/PortalProvider.d.ts +0 -2
- package/dist/icons/CirclePlusIcon.d.ts +0 -12
- package/dist/icons/CirclePlusIcon.js +0 -11
- package/dist/icons/CirclePlusIcon.js.map +0 -1
- package/docs/components/layout/Dashboard.md +0 -385
|
@@ -1,385 +0,0 @@
|
|
|
1
|
-
# Dashboard
|
|
2
|
-
|
|
3
|
-
Dashboard is a standalone compound layout for authoring full-width dashboards on one shared 12-column scale. A nested container exposes its own current column span as child capacity, while all containers share one row height and gap configuration. Consumers register their widget and container types, then retain ownership of the serializable layout state and custom widget rendering.
|
|
4
|
-
|
|
5
|
-
## When to Use
|
|
6
|
-
|
|
7
|
-
- Analytics and reporting pages with mixed widget sizes
|
|
8
|
-
- User-customizable dashboards with selectable widgets and containers
|
|
9
|
-
- Nested dashboard sections that need one consistent column system
|
|
10
|
-
|
|
11
|
-
## Component
|
|
12
|
-
|
|
13
|
-
The Playground owns a recursive serializable tree and registers three constrained widget types plus the available container types with Dashboard. The permanent root add button creates Grid, HorizontalStack, VerticalStack, or Tabs containers. Hovering a Grid reveals only that Grid's vacant cells and moves its add button to the current cell; crossing a gap preserves the last valid cell. The entire outlined cell is pressable, and its matching resting fill transitions directly to the hovered colors while the CirclePlus icon appears. An open menu keeps that trigger and destination locked while the pointer crosses into the popover. HorizontalStack and VerticalStack expose one insertion point at the end. Every tab owns an independent layout and, while empty, offers one full-panel add button for Grid, HorizontalStack, or VerticalStack only. The menu disables registered items that cannot fit and stops offering nested containers at depth three.
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## Components
|
|
18
|
-
|
|
19
|
-
- **`Dashboard`** — Full-width root that owns metrics and selection.
|
|
20
|
-
- **`Dashboard.Grid`** — Explicit row and column placement.
|
|
21
|
-
- **`Dashboard.HorizontalStack`** — Children arranged across one row and stretched vertically within their row constraints.
|
|
22
|
-
- **`Dashboard.VerticalStack`** — Children arranged vertically and stretched horizontally within their column constraints.
|
|
23
|
-
- **`Dashboard.Tabs`** — Root-only tabbed container.
|
|
24
|
-
- **`Dashboard.Tab`** — Declarative panel inside `Dashboard.Tabs`.
|
|
25
|
-
- **`Dashboard.Widget`** — Customizable widget surface.
|
|
26
|
-
|
|
27
|
-
## Properties
|
|
28
|
-
|
|
29
|
-
### Dashboard
|
|
30
|
-
|
|
31
|
-
- **`rowHeight`** `number` (default: `80`) — Height in pixels of a content row in every container.
|
|
32
|
-
- **`gap`** `number | [number, number]` (default: `16`) — Shared gap, or horizontal and vertical gaps, in pixels.
|
|
33
|
-
- **`isEditing`** `boolean` (default: `false`) — Reveals transparent, rounded container boundaries on hover; boundaries persist during resize, every boundary is revealed during a move, and a newly mounted container remains revealed briefly.
|
|
34
|
-
- **`selectionMode`** `'none' | 'single' | 'multiple'` (default: `'multiple'`) — Whether and how Dashboard nodes can be selected.
|
|
35
|
-
- **`selectedKeys`** `string[]` — Controlled selected widget and container ids.
|
|
36
|
-
- **`defaultSelectedKeys`** `string[]` (default: `[]`) — Initial selection for uncontrolled usage.
|
|
37
|
-
- **`onSelectionChange`** `(keys: string[]) => void` — Called with the normalized selection.
|
|
38
|
-
- **`addItems`** `readonly DashboardAddItemDefinition[]` — Consumer registry used by Dashboard's contextual add menus.
|
|
39
|
-
- **`onAddItem`** `(itemId, info) => void` — Reports the selected registry id, exact placement, parent kind/depth, and tab identity when applicable.
|
|
40
|
-
|
|
41
|
-
### Containers
|
|
42
|
-
|
|
43
|
-
- **`id`** `string` (required) — Stable layout and selection identity.
|
|
44
|
-
- **`title`** `ReactNode` — Optional accessible title for Tabs. Grid, HorizontalStack, and VerticalStack never render a heading.
|
|
45
|
-
- **`column`** `number` (default: `0`) — Zero-based starting column inside a Grid or tab panel.
|
|
46
|
-
- **`row`** `number` (default: `0`) — Zero-based starting row inside a Grid or tab panel.
|
|
47
|
-
- **`columns`** `number` (default: `12`, clamped to the parent) — Width in the immediate parent's available columns and the capacity exposed to this container's children.
|
|
48
|
-
- **`rows`** `number` (default: `1`) — Reserved height in content rows.
|
|
49
|
-
- **`isSelectable`** `boolean` (default: `true`) — Whether the container participates in selection.
|
|
50
|
-
- **`isMovable`** `boolean` (default: `false`) — Makes the non-action area of the container draggable when `onPlacementChange` is supplied.
|
|
51
|
-
- **`isResizable`** `boolean` (default: `false`) — Makes a context-sensitive resize handle available after the container is selected when `onPlacementChange` is supplied.
|
|
52
|
-
- **`minColumns`** `number` (default: `1`) — Explicit minimum width; occupied child bounds may raise it.
|
|
53
|
-
- **`maxColumns`** `number` (default: `12`, clamped to the parent) — Maximum nested-container width.
|
|
54
|
-
- **`minRows`** `number` (default: `1`) — Explicit minimum height; occupied child bounds may raise it.
|
|
55
|
-
- **`maxRows`** `number` (default: `12` at root or parent rows when nested) — Maximum container height.
|
|
56
|
-
- **`onPlacementChange`** `(placement, info) => void` — Reports preview and committed container movement/resizing. A selected sibling group is reported atomically through `info.items`.
|
|
57
|
-
- **`moveLabel`** `string` — Accessible name for the focused movable container.
|
|
58
|
-
- **`resizeLabel`** `string` — Accessible label for the container resize handle.
|
|
59
|
-
- **`onSettingsPress`** `(event: PressEvent) => void` — Enables the standard settings action after the container is selected.
|
|
60
|
-
- **`settingsLabel`** `string` — Accessible label for the container settings action.
|
|
61
|
-
- **`onDeletePress`** `(event: PressEvent) => void` — Enables the standard delete action after the container is selected.
|
|
62
|
-
- **`deleteLabel`** `string` — Accessible label for the container delete action.
|
|
63
|
-
- **`aria-label`** `string` — Accessible name; falls back to a string title and then the id.
|
|
64
|
-
|
|
65
|
-
### Tabs
|
|
66
|
-
|
|
67
|
-
- **`activeKey`** `string` — Controlled active tab id.
|
|
68
|
-
- **`defaultActiveKey`** `string` — Initially active tab id for uncontrolled usage.
|
|
69
|
-
- **`onActiveChange`** `(key: string) => void` — Called when the active tab changes.
|
|
70
|
-
|
|
71
|
-
Tabs is root-only. Its tab strip ends with a delimiter and keeps a `1x` gap before the active layout. Each tab is a separate, layout-less 12-column destination and therefore accepts exactly one Grid, HorizontalStack, or VerticalStack container as its layout root. An empty tab shows its add button permanently; a populated tab has no additional tab-level insertion point. Widgets cannot be direct tab children.
|
|
72
|
-
|
|
73
|
-
### Tab
|
|
74
|
-
|
|
75
|
-
- **`id`** `string` (required) — Stable tab id.
|
|
76
|
-
- **`title`** `ReactNode` (required) — Tab label.
|
|
77
|
-
- **`keepMounted`** `boolean` (default: `true`) — Whether the panel remains mounted while inactive.
|
|
78
|
-
|
|
79
|
-
### Widget
|
|
80
|
-
|
|
81
|
-
- **`id`** `string` (required) — Stable layout and selection identity.
|
|
82
|
-
- **`column`** `number` (default: `0`) — Zero-based starting column inside a Grid or tab panel.
|
|
83
|
-
- **`row`** `number` (default: `0`) — Zero-based starting row inside a Grid or tab panel.
|
|
84
|
-
- **`columns`** `number` (default: `12`, clamped to the parent) — Width in the immediate parent's available columns.
|
|
85
|
-
- **`rows`** `number` (default: `1`) — Reserved height in content rows.
|
|
86
|
-
- **`isCard`** `boolean` (default: `false`) — Adds the widget's outside card shadow. Widgets remain rounded by default.
|
|
87
|
-
- **`isSelectable`** `boolean` (default: `true`) — Whether the widget participates in selection.
|
|
88
|
-
- **`isMovable`** `boolean` (default: `false`) — Makes the non-action area of the widget draggable when `onPlacementChange` is supplied.
|
|
89
|
-
- **`isResizable`** `boolean` (default: `false`) — Makes a resize handle available after the widget is selected when at least one configured size axis can change.
|
|
90
|
-
- **`minColumns`** `number` (default: `1`) — Minimum widget width in columns.
|
|
91
|
-
- **`maxColumns`** `number` (default: `12`, clamped to the parent) — Maximum widget width in columns.
|
|
92
|
-
- **`minRows`** `number` (default: `1`) — Minimum widget height in rows.
|
|
93
|
-
- **`maxRows`** `number` (default: parent row count) — Maximum widget height in rows.
|
|
94
|
-
- **`onPlacementChange`** `(placement, info) => void` — Reports preview and committed movement/resizing. A selected sibling group is reported atomically through `info.items`; the consumer owns layout state and collision handling.
|
|
95
|
-
- **`moveLabel`** `string` — Accessible name for the focused movable widget.
|
|
96
|
-
- **`resizeLabel`** `string` — Accessible label for the resize handle.
|
|
97
|
-
- **`onSettingsPress`** `(event: PressEvent) => void` — Enables the standard settings control on the selected widget and reports its activation.
|
|
98
|
-
- **`settingsLabel`** `string` — Accessible label for the settings control.
|
|
99
|
-
- **`onDeletePress`** `(event: PressEvent) => void` — Enables the danger-outline delete control on the selected widget and reports its activation.
|
|
100
|
-
- **`deleteLabel`** `string` — Accessible label for the delete control.
|
|
101
|
-
- **`aria-label`** `string` — Accessible widget name; falls back to the id.
|
|
102
|
-
|
|
103
|
-
### Base Properties
|
|
104
|
-
|
|
105
|
-
Supports [Base properties](../../BaseProperties.md).
|
|
106
|
-
|
|
107
|
-
### Styling Properties
|
|
108
|
-
|
|
109
|
-
The root, containers, and widgets accept `styles` plus direct container style props. Widget styles apply to the rounded content surface; placement remains controlled by Dashboard.
|
|
110
|
-
|
|
111
|
-
### Style Properties
|
|
112
|
-
|
|
113
|
-
These properties allow direct style application without using the `styles` prop:
|
|
114
|
-
|
|
115
|
-
- **Base:** `display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`
|
|
116
|
-
- **Position:** `gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`, `scrollMargin`
|
|
117
|
-
- **Dimension:** `width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`
|
|
118
|
-
- **Block:** `border`, `radius`, `shadow`, `outline`, `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`
|
|
119
|
-
- **Color:** `color`, `fill`, `fade`, `image`
|
|
120
|
-
- **Flow:** `flow`, `place`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`
|
|
121
|
-
|
|
122
|
-
### Modifiers
|
|
123
|
-
|
|
124
|
-
Dashboard owns these visual modifiers. Consumer `mods` are merged underneath them.
|
|
125
|
-
|
|
126
|
-
| Modifier | Applies to | Description |
|
|
127
|
-
| --- | --- | --- |
|
|
128
|
-
| `selected` | Container and Widget | Draws the selected treatment. |
|
|
129
|
-
| `hovered` | Container and Widget | Draws the hover treatment. |
|
|
130
|
-
| `arriving` | Container | Briefly reveals a container mounted after the initial layout. |
|
|
131
|
-
| `empty` | Container | Keeps an empty container's neutral outline visible while editing. |
|
|
132
|
-
| `focus-within` | Container and Widget | Keeps controls and chrome visible for keyboard users. |
|
|
133
|
-
| `editing` | Container and Widget | Enables authoring chrome. |
|
|
134
|
-
| `dragging` | Container and Widget | Reveals every container with a neutral one-pixel boundary while any node is moving. |
|
|
135
|
-
| `movable` | Container and Widget | Enables the surface grab cursor. |
|
|
136
|
-
| `moving` | Container and Widget | Gives the node that owns the active move its two-pixel brand boundary. |
|
|
137
|
-
| `resizing` | Container and Widget | Indicates the node that owns the active resize. |
|
|
138
|
-
| `depth` | Container | Selects depth-one, depth-two, or depth-three chrome. |
|
|
139
|
-
| `titled` | Tabs | Reserves an optional heading above the tab list. |
|
|
140
|
-
| `card` | Widget | Draws the opt-in card shadow. |
|
|
141
|
-
|
|
142
|
-
Containers have no visible fill or CSS border. At rest, a populated container has no boundary, while an empty container keeps a neutral outline visible in edit mode. All chrome uses a rounded outside shadow: hover, resize, emptiness, and arrival use a neutral one-pixel boundary; selection and the actively moved container use a two-pixel brand boundary. While any node is moving, every other container receives the neutral boundary so destinations remain legible without appearing selected. A container mounted after the initial layout keeps its boundary for one second. The arrival treatment covers both newly added containers and containers reparented by a cross-container move, including the case where the stationary pointer is already inside the new surface. Each depth balances padding with an equal negative margin (`8px`, `5px`, then `2px`), keeping child grid tracks aligned to the parent's top-left origin while the selectable container box protrudes into the surrounding gap.
|
|
143
|
-
|
|
144
|
-
The widget placement wrapper never paints a border or outline. All widget chrome follows the rounded surface: `isCard` draws its resting one-pixel boundary with an outside shadow, keyboard focus uses a rounded focus shadow, and selection or active movement replaces either treatment with a two-pixel `#primary` brand shadow. The surface itself has no CSS border.
|
|
145
|
-
|
|
146
|
-
## Examples
|
|
147
|
-
|
|
148
|
-
### Registered authoring items
|
|
149
|
-
|
|
150
|
-
Dashboard owns the contextual controls and fit checks, while the consumer owns the catalog metadata and layout mutation. `kind` defaults to `widget`; container definitions use `grid`, `horizontal-stack`, `vertical-stack`, or `tabs`. The callback receives the exact cell chosen by the user rather than asking the consumer to scan for a vacancy again.
|
|
151
|
-
|
|
152
|
-
```jsx
|
|
153
|
-
const addItems = [
|
|
154
|
-
{
|
|
155
|
-
id: 'compact',
|
|
156
|
-
name: 'Compact KPI',
|
|
157
|
-
description: 'Fixed 1×1',
|
|
158
|
-
defaultColumns: 1,
|
|
159
|
-
defaultRows: 1,
|
|
160
|
-
minColumns: 1,
|
|
161
|
-
maxColumns: 1,
|
|
162
|
-
minRows: 1,
|
|
163
|
-
maxRows: 1,
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
id: 'wide',
|
|
167
|
-
name: 'Wide metric',
|
|
168
|
-
defaultColumns: 2,
|
|
169
|
-
defaultRows: 1,
|
|
170
|
-
minColumns: 2,
|
|
171
|
-
maxColumns: 6,
|
|
172
|
-
minRows: 1,
|
|
173
|
-
maxRows: 1,
|
|
174
|
-
},
|
|
175
|
-
{ id: 'grid', name: 'Grid', kind: 'grid', defaultColumns: 12, defaultRows: 3 },
|
|
176
|
-
];
|
|
177
|
-
|
|
178
|
-
<Dashboard
|
|
179
|
-
isEditing
|
|
180
|
-
addItems={addItems}
|
|
181
|
-
onAddItem={(itemId, { parentId, placement, tabsId, tabId }) => {
|
|
182
|
-
insertLayoutItem({ itemId, parentId, placement, tabsId, tabId });
|
|
183
|
-
}}
|
|
184
|
-
>
|
|
185
|
-
{renderLayout(layout)}
|
|
186
|
-
</Dashboard>;
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
Dashboard applies the following contextual filtering before the menu opens:
|
|
190
|
-
|
|
191
|
-
- The root offers registered container kinds only and always keeps one add button after the top-level content.
|
|
192
|
-
- Grid offers every widget or nestable container that fits the hovered vacant origin.
|
|
193
|
-
- HorizontalStack and VerticalStack expose only their single trailing insertion point.
|
|
194
|
-
- An empty tab offers Grid, HorizontalStack, and VerticalStack only; Tabs and widgets are disabled there.
|
|
195
|
-
- Nestable containers are disabled when adding them would exceed depth three.
|
|
196
|
-
- `isDisabled` lets product logic disable a type in addition to Dashboard's geometric checks.
|
|
197
|
-
|
|
198
|
-
### Basic grid
|
|
199
|
-
|
|
200
|
-
```jsx
|
|
201
|
-
import { Dashboard } from '@cube-dev/ui-kit';
|
|
202
|
-
|
|
203
|
-
<Dashboard rowHeight={72} gap={16}>
|
|
204
|
-
<Dashboard.Grid id="overview" aria-label="Overview" rows={2}>
|
|
205
|
-
<Dashboard.Widget
|
|
206
|
-
id="revenue"
|
|
207
|
-
column={0}
|
|
208
|
-
row={0}
|
|
209
|
-
columns={4}
|
|
210
|
-
rows={1}
|
|
211
|
-
isCard
|
|
212
|
-
>
|
|
213
|
-
<RevenueMetric />
|
|
214
|
-
</Dashboard.Widget>
|
|
215
|
-
<Dashboard.Widget
|
|
216
|
-
id="trend"
|
|
217
|
-
column={4}
|
|
218
|
-
row={0}
|
|
219
|
-
columns={8}
|
|
220
|
-
rows={2}
|
|
221
|
-
isCard
|
|
222
|
-
>
|
|
223
|
-
<RevenueChart />
|
|
224
|
-
</Dashboard.Widget>
|
|
225
|
-
</Dashboard.Grid>
|
|
226
|
-
</Dashboard>;
|
|
227
|
-
```
|
|
228
|
-
|
|
229
|
-
### Nested containers
|
|
230
|
-
|
|
231
|
-
```jsx
|
|
232
|
-
<Dashboard>
|
|
233
|
-
<Dashboard.Grid id="root-section" rows={2}>
|
|
234
|
-
<Dashboard.VerticalStack
|
|
235
|
-
id="metrics"
|
|
236
|
-
column={0}
|
|
237
|
-
row={0}
|
|
238
|
-
columns={5}
|
|
239
|
-
rows={2}
|
|
240
|
-
>
|
|
241
|
-
<Dashboard.Widget id="orders" rows={1} isCard>
|
|
242
|
-
<OrdersMetric />
|
|
243
|
-
</Dashboard.Widget>
|
|
244
|
-
<Dashboard.Widget id="customers" rows={1} isCard>
|
|
245
|
-
<CustomersMetric />
|
|
246
|
-
</Dashboard.Widget>
|
|
247
|
-
</Dashboard.VerticalStack>
|
|
248
|
-
</Dashboard.Grid>
|
|
249
|
-
</Dashboard>
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
### Consumer-owned settings panel
|
|
253
|
-
|
|
254
|
-
```jsx
|
|
255
|
-
const [settingsId, setSettingsId] = useState(null);
|
|
256
|
-
|
|
257
|
-
return (
|
|
258
|
-
<div style={{ position: 'relative' }}>
|
|
259
|
-
<Dashboard>
|
|
260
|
-
<Dashboard.Grid id="main" rows={2}>
|
|
261
|
-
<Dashboard.Widget
|
|
262
|
-
id="trend"
|
|
263
|
-
columns={12}
|
|
264
|
-
rows={2}
|
|
265
|
-
isCard
|
|
266
|
-
settingsLabel="Settings for revenue trend"
|
|
267
|
-
onSettingsPress={() => setSettingsId('trend')}
|
|
268
|
-
>
|
|
269
|
-
<RevenueChart />
|
|
270
|
-
</Dashboard.Widget>
|
|
271
|
-
</Dashboard.Grid>
|
|
272
|
-
</Dashboard>
|
|
273
|
-
{settingsId ? <Panel isFloating>{/* settings form */}</Panel> : null}
|
|
274
|
-
</div>
|
|
275
|
-
);
|
|
276
|
-
```
|
|
277
|
-
|
|
278
|
-
### Controlled movement and resizing
|
|
279
|
-
|
|
280
|
-
Dashboard quantizes pointer and keyboard gestures to whole grid units, applies the node's bounds, and reports the proposed placement. A move starts from any point on a movable widget or container except buttons, inputs, links, tabs, resize grips, and descendants marked with `data-dashboard-no-move`. The consumer accepts a placement by writing it to state; this keeps collision policy and persistence outside the component.
|
|
281
|
-
|
|
282
|
-
```jsx
|
|
283
|
-
const [placement, setPlacement] = useState({
|
|
284
|
-
column: 0,
|
|
285
|
-
row: 0,
|
|
286
|
-
columns: 2,
|
|
287
|
-
rows: 1,
|
|
288
|
-
});
|
|
289
|
-
|
|
290
|
-
<Dashboard rowHeight={96} gap={16}>
|
|
291
|
-
<Dashboard.Grid id="editor" rows={6}>
|
|
292
|
-
<Dashboard.Widget
|
|
293
|
-
id="revenue"
|
|
294
|
-
{...placement}
|
|
295
|
-
minColumns={2}
|
|
296
|
-
maxColumns={6}
|
|
297
|
-
minRows={1}
|
|
298
|
-
maxRows={1}
|
|
299
|
-
isMovable
|
|
300
|
-
isResizable
|
|
301
|
-
moveLabel="Move revenue"
|
|
302
|
-
resizeLabel="Resize revenue"
|
|
303
|
-
onPlacementChange={(nextPlacement) => {
|
|
304
|
-
if (!collides(nextPlacement)) {
|
|
305
|
-
setPlacement(nextPlacement);
|
|
306
|
-
}
|
|
307
|
-
}}
|
|
308
|
-
>
|
|
309
|
-
<RevenueMetric />
|
|
310
|
-
</Dashboard.Widget>
|
|
311
|
-
</Dashboard.Grid>
|
|
312
|
-
</Dashboard>;
|
|
313
|
-
```
|
|
314
|
-
|
|
315
|
-
`info.phase` is `'preview'` while a gesture is active and `'commit'` when it ends. `info.reason` identifies a move or resize, and `info.input` identifies pointer or keyboard input. When a pointer crosses into another container, the move proposal is expressed in that destination's local coordinates and `info.sourceParentId` plus `info.destinationParentId` identify the atomic tree transfer. The destination id is `null` for the Dashboard root. Those fields are omitted for movement within one parent and for resizing.
|
|
316
|
-
|
|
317
|
-
Containers use the same controlled placement callback for movement and resizing. Inside one parent, a top-level container moves vertically, a HorizontalStack child horizontally, a VerticalStack child vertically, and Grid children on both axes. A tab panel holds one layout root and primarily acts as a cross-parent origin or destination. When a node enters a HorizontalStack, its proposed `rows` expands to the lesser of the stack height and its `maxRows`; when it enters a VerticalStack, its proposed `columns` expands to the lesser of the stack width and its `maxColumns`. A node that reaches its constraint before filling the cross axis remains aligned to the top in HorizontalStack or the left in VerticalStack. Pointer movement may also target the deepest valid container under the pointer. Widgets cannot target the Dashboard root or a tab panel, Tabs cannot target a nested container, and containers cannot target themselves, descendants, or a fourth nesting level. Keyboard movement remains within the immediate parent. A root container resizes vertically; a nested container resizes on the axes its parent layout permits. Dashboard derives a minimum from the occupied bounds of direct children, so a container cannot be resized across existing content. A nested container's current `columns` and `rows` are its child capacity; child placement and resizing are clamped to those bounds and never grow the parent.
|
|
318
|
-
|
|
319
|
-
```jsx
|
|
320
|
-
<Dashboard.Grid
|
|
321
|
-
id="section"
|
|
322
|
-
aria-label="Section"
|
|
323
|
-
rows={4}
|
|
324
|
-
maxRows={10}
|
|
325
|
-
isResizable
|
|
326
|
-
onPlacementChange={setSectionPlacement}
|
|
327
|
-
>
|
|
328
|
-
{children}
|
|
329
|
-
</Dashboard.Grid>
|
|
330
|
-
```
|
|
331
|
-
|
|
332
|
-
## Selection
|
|
333
|
-
|
|
334
|
-
Plain click selects one node. Shift-click, Command-click, or Control-click toggles sibling nodes in `multiple` mode. A descendant cannot be added while its ancestor is selected, and items from different immediate parents cannot form a multi-selection. Clicking Dashboard whitespace outside every widget and container clears the selection.
|
|
335
|
-
|
|
336
|
-
Use controlled selection when another editor surface needs to coordinate with Dashboard:
|
|
337
|
-
|
|
338
|
-
```jsx
|
|
339
|
-
const [selectedKeys, setSelectedKeys] = useState([]);
|
|
340
|
-
|
|
341
|
-
<Dashboard
|
|
342
|
-
selectedKeys={selectedKeys}
|
|
343
|
-
onSelectionChange={setSelectedKeys}
|
|
344
|
-
>
|
|
345
|
-
{/* containers */}
|
|
346
|
-
</Dashboard>;
|
|
347
|
-
```
|
|
348
|
-
|
|
349
|
-
## Accessibility
|
|
350
|
-
|
|
351
|
-
### Keyboard Navigation
|
|
352
|
-
|
|
353
|
-
- `Tab` moves among selectable nodes and their interactive contents.
|
|
354
|
-
- `Space` selects a focused Dashboard node.
|
|
355
|
-
- Arrow keys on a focused movable widget or container move it by one unit on the axes its parent permits.
|
|
356
|
-
- Selecting a widget or container reveals its available settings, delete, and resize controls and adds them to the keyboard sequence. Settings stays on the top-right corner, with its danger-outline Delete action immediately to the left.
|
|
357
|
-
- Arrow keys on a focused resize handle resize the selected widget or container by one column or row on its available axes.
|
|
358
|
-
- Settings buttons and Tabs retain their standard keyboard behavior.
|
|
359
|
-
|
|
360
|
-
### Screen Reader Support
|
|
361
|
-
|
|
362
|
-
Containers and widgets are named groups with descriptive role descriptions. Supply meaningful `aria-label` values for non-text titles and user-visible widgets. `settingsLabel` should describe the target, for example “Settings for revenue trend”.
|
|
363
|
-
|
|
364
|
-
### Interaction Scope
|
|
365
|
-
|
|
366
|
-
This release supplies surface-based pointer and keyboard movement, cross-container pointer destinations, selected-sibling pointer groups, controlled resizing, contextual free-cell affordances, and registered add menus. Dashboard renders one destination placeholder per moving item: primary when the landing is available, danger when the geometry fits but occupancy blocks the drop, and no placeholder when the destination cannot satisfy the minimum geometry. If that placeholder covers Dashboard's add slot, Dashboard temporarily hides the add control so the two affordances never overlap. The Playground resolves same-parent previews by moving blockers in stacks and swapping two Grid occupants when both exchanged placements fit. Cross-parent previews keep the source mounted for the active gesture, then atomically remove and insert a single item or selected sibling group on commit.
|
|
367
|
-
|
|
368
|
-
## Best Practices
|
|
369
|
-
|
|
370
|
-
1. Keep every id stable across renders and persistence cycles.
|
|
371
|
-
2. Express placement relative to the immediate parent, not the root.
|
|
372
|
-
3. Use `isCard` for widgets that need an outside boundary; rounding is already provided.
|
|
373
|
-
4. Keep layout state, collision policy, widget rendering, data configuration, and settings panels in consumer code; pass catalog names and size constraints through `addItems` so Dashboard can provide consistent contextual menus.
|
|
374
|
-
5. Do not nest `Dashboard.Tabs`; Tabs is root-only.
|
|
375
|
-
6. Hide nested-container actions at depth three rather than allowing Dashboard's development error to become an authoring dead end.
|
|
376
|
-
|
|
377
|
-
## Suggested Improvements
|
|
378
|
-
|
|
379
|
-
- Add a compact floating group preview, source-vacancy placeholders, and Escape cancellation.
|
|
380
|
-
- Add an optional consumer hook for product-specific availability rules that depend on the destination, beyond the static `isDisabled` flag.
|
|
381
|
-
|
|
382
|
-
## Related Components
|
|
383
|
-
|
|
384
|
-
- [Panel](./Panel.md) — A consumer-owned surface for widget settings.
|
|
385
|
-
- [Tabs](../navigation/Tabs.md) — The tab primitive composed by `Dashboard.Tabs`.
|