@cube-dev/ui-kit 0.0.0-canary-9831958 → 0.0.0-canary-b15d482
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CHANGELOG.md +26 -0
- 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.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 +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.d.ts +21 -21
- 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.js +1 -1
- package/dist/components/data/TableBase/table-tree.js +1 -1
- package/dist/components/data/TableBase/types.js +1 -1
- package/dist/components/data/TableBase/use-cell-selection.js +0 -0
- package/dist/components/data/TableBase/use-column-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/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/Dashboard/Dashboard.d.ts +19 -0
- package/dist/components/layout/Dashboard/Dashboard.js +213 -0
- package/dist/components/layout/Dashboard/Dashboard.js.map +1 -0
- package/dist/components/layout/Dashboard/DashboardContainer.d.ts +13 -0
- package/dist/components/layout/Dashboard/DashboardContainer.js +275 -0
- package/dist/components/layout/Dashboard/DashboardContainer.js.map +1 -0
- package/dist/components/layout/Dashboard/DashboardContainerContent.js +411 -0
- package/dist/components/layout/Dashboard/DashboardContainerContent.js.map +1 -0
- package/dist/components/layout/Dashboard/DashboardNodeActions.js +239 -0
- package/dist/components/layout/Dashboard/DashboardNodeActions.js.map +1 -0
- package/dist/components/layout/Dashboard/DashboardTabs.d.ts +14 -0
- package/dist/components/layout/Dashboard/DashboardTabs.js +86 -0
- package/dist/components/layout/Dashboard/DashboardTabs.js.map +1 -0
- package/dist/components/layout/Dashboard/DashboardWidget.d.ts +9 -0
- package/dist/components/layout/Dashboard/DashboardWidget.js +197 -0
- package/dist/components/layout/Dashboard/DashboardWidget.js.map +1 -0
- package/dist/components/layout/Dashboard/context.js +38 -0
- package/dist/components/layout/Dashboard/context.js.map +1 -0
- package/dist/components/layout/Dashboard/drag.js +627 -0
- package/dist/components/layout/Dashboard/drag.js.map +1 -0
- package/dist/components/layout/Dashboard/index.d.ts +6 -0
- package/dist/components/layout/Dashboard/occupancy.js +428 -0
- package/dist/components/layout/Dashboard/occupancy.js.map +1 -0
- package/dist/components/layout/Dashboard/placement.js +117 -0
- package/dist/components/layout/Dashboard/placement.js.map +1 -0
- package/dist/components/layout/Dashboard/styles.js +344 -0
- package/dist/components/layout/Dashboard/styles.js.map +1 -0
- package/dist/components/layout/Dashboard/types.d.ts +220 -0
- package/dist/components/layout/Dashboard/use-dashboard-gestures.js +376 -0
- package/dist/components/layout/Dashboard/use-dashboard-gestures.js.map +1 -0
- package/dist/components/layout/Dashboard/use-dashboard-node.js +93 -0
- package/dist/components/layout/Dashboard/use-dashboard-node.js.map +1 -0
- 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 +2 -2
- 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.js +1 -1
- package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
- package/dist/components/overlays/Modal/Overlay.js +1 -1
- package/dist/components/overlays/Modal/Popover.js +1 -1
- package/dist/components/overlays/Modal/Tray.js +1 -1
- package/dist/components/overlays/Modal/Underlay.js +1 -1
- package/dist/components/overlays/Notifications/Notification.js +1 -1
- package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
- package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +1 -1
- package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
- package/dist/components/overlays/Notifications/index.js +1 -1
- package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
- package/dist/components/overlays/Notifications/use-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +1 -1
- package/dist/components/overlays/Toast/index.js +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useToast.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
- package/dist/components/overlays/Tooltip/context.js +1 -1
- package/dist/components/portal/Portal.js +1 -1
- package/dist/components/portal/PortalProvider.js +1 -1
- package/dist/components/portal/usePortal.js +1 -1
- package/dist/components/shared/DraggableCollection.js +1 -1
- package/dist/components/shared/InvalidIcon.js +1 -1
- package/dist/components/shared/ValidIcon.js +1 -1
- package/dist/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/dist/components/status/Spin/Cube.js +1 -1
- package/dist/components/status/Spin/InternalSpinner.js +1 -1
- package/dist/components/status/Spin/Spin.js +1 -1
- package/dist/components/status/Spin/SpinsContainer.js +1 -1
- package/dist/data/item-themes.js +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 +25 -1
- package/dist/i18n/locales/en-US/uikit.js +25 -1
- package/dist/i18n/locales/en-US/uikit.json.d.ts +27 -1
- package/dist/i18n/locales/es-ES/uikit.js +25 -1
- package/dist/i18n/locales/es-MX/uikit.js +25 -1
- package/dist/i18n/locales/fr-FR/uikit.js +25 -1
- package/dist/i18n/locales/it-IT/uikit.js +25 -1
- package/dist/i18n/locales/ja-JP/uikit.js +25 -1
- package/dist/i18n/locales/nb-NO/uikit.js +25 -1
- package/dist/i18n/locales/pt-BR/uikit.js +25 -1
- package/dist/i18n/locales/pt-PT/uikit.js +25 -1
- package/dist/i18n/locales/sv-SE/uikit.js +25 -1
- package/dist/i18n/locales/vi-VN/uikit.js +25 -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/ArrowsHorizontalIcon.d.ts +12 -0
- package/dist/icons/ArrowsHorizontalIcon.js +11 -0
- package/dist/icons/ArrowsHorizontalIcon.js.map +1 -0
- package/dist/icons/ArrowsInHorizontalIcon.d.ts +20 -0
- package/dist/icons/ArrowsInHorizontalIcon.js +31 -0
- package/dist/icons/ArrowsInHorizontalIcon.js.map +1 -0
- package/dist/icons/ArrowsInVerticalIcon.d.ts +13 -0
- package/dist/icons/ArrowsInVerticalIcon.js +24 -0
- package/dist/icons/ArrowsInVerticalIcon.js.map +1 -0
- package/dist/icons/ArrowsMaximizeIcon.d.ts +12 -0
- package/dist/icons/ArrowsMaximizeIcon.js +11 -0
- package/dist/icons/ArrowsMaximizeIcon.js.map +1 -0
- package/dist/icons/ArrowsMinimizeIcon.d.ts +12 -0
- package/dist/icons/ArrowsMinimizeIcon.js +11 -0
- package/dist/icons/ArrowsMinimizeIcon.js.map +1 -0
- package/dist/icons/ArrowsVerticalIcon.d.ts +12 -0
- package/dist/icons/ArrowsVerticalIcon.js +11 -0
- package/dist/icons/ArrowsVerticalIcon.js.map +1 -0
- 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/CirclePlusIcon.d.ts +12 -0
- package/dist/icons/CirclePlusIcon.js +11 -0
- package/dist/icons/CirclePlusIcon.js.map +1 -0
- 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/MaximizeIcon.d.ts +12 -0
- package/dist/icons/MaximizeIcon.js +11 -0
- package/dist/icons/MaximizeIcon.js.map +1 -0
- 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 +8 -0
- package/dist/icons/wrap-icon.js +1 -1
- package/dist/index.d.ts +16 -2
- package/dist/index.js +62 -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/legacy-color.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/colors.js +1 -1
- package/dist/utils/index.d.ts +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.d.ts +1 -1
- package/dist/utils/react/index.js +2 -2
- 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.d.ts +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.d.ts +9 -1
- package/dist/utils/react/usePopoverSync.js +12 -2
- package/dist/utils/react/usePopoverSync.js.map +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 +2 -2
- package/docs/components/layout/Dashboard.md +411 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b15d482 | Cube Dev Team */
|
|
2
2
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
3
3
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
4
4
|
import { isDevEnv } from "../../../utils/is-dev-env.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b15d482 | Cube Dev Team */
|
|
2
2
|
//#region src/components/layout/Board/board-store.ts
|
|
3
3
|
/**
|
|
4
4
|
* A tiny external store mapping widget id -> registration.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b15d482 | Cube Dev Team */
|
|
2
2
|
//#region src/components/layout/Board/grid-core/calculate.ts
|
|
3
3
|
/** Calculate the width of a single grid column in pixels. */
|
|
4
4
|
function calcGridColWidth(positionParams) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b15d482 | Cube Dev Team */
|
|
2
2
|
//#region src/components/layout/Board/grid-core/collision-modes.ts
|
|
3
3
|
/** Whether a single grid cell is free of every item in `others`. */
|
|
4
4
|
function cellFree(others, x, y) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b15d482 | Cube Dev Team */
|
|
2
2
|
//#region src/components/layout/Board/grid-core/collision.ts
|
|
3
3
|
/**
|
|
4
4
|
* Check if two layout items collide (overlap).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b15d482 | Cube Dev Team */
|
|
2
2
|
import { collides, getFirstCollision } from "./collision.js";
|
|
3
3
|
import { sortLayoutItemsByColRow, sortLayoutItemsByRowCol } from "./sort.js";
|
|
4
4
|
import { bottom, cloneLayout, cloneLayoutItem, getStatics } from "./layout.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b15d482 | Cube Dev Team */
|
|
2
2
|
//#region src/components/layout/Board/grid-core/constraints.ts
|
|
3
3
|
function clamp(value, min, max) {
|
|
4
4
|
return Math.max(min, Math.min(max, value));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b15d482 | Cube Dev Team */
|
|
2
2
|
import { collides, getFirstCollision } from "./collision.js";
|
|
3
3
|
import { sortLayoutItemsByColRow, sortLayoutItemsByRowCol } from "./sort.js";
|
|
4
4
|
import { bottom, cloneLayout, cloneLayoutItem, getStatics } from "./layout.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b15d482 | Cube Dev Team */
|
|
2
2
|
import { getAllCollisions, getFirstCollision } from "./collision.js";
|
|
3
3
|
import { sortLayoutItems } from "./sort.js";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b15d482 | Cube Dev Team */
|
|
2
2
|
import { BoardDragActiveProvider } from "./board-context.js";
|
|
3
3
|
import { distributeEvenly, placeInFreeSlot } from "./grid-core/placement.js";
|
|
4
4
|
import { getCompactor, horizontalCompactor, noCompactor, verticalCompactor } from "./grid-core/compactors.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b15d482 | Cube Dev Team */
|
|
2
2
|
import { cloneLayout, correctBounds } from "./grid-core/layout.js";
|
|
3
3
|
|
|
4
4
|
//#region src/components/layout/Board/responsive-utils.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b15d482 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
3
3
|
import { cloneLayout } from "./grid-core/layout.js";
|
|
4
4
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b15d482 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
3
3
|
import { BoardWidgetStore } from "./board-store.js";
|
|
4
4
|
import { collides } from "./grid-core/collision.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b15d482 | Cube Dev Team */
|
|
2
2
|
import { useIsDarwin } from "../../../utils/react/useIsDarwin.js";
|
|
3
3
|
|
|
4
4
|
//#region src/components/layout/Board/use-board-select-modifier-key.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b15d482 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
3
3
|
import { useI18n } from "../../../i18n/useI18n.js";
|
|
4
4
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
import { CubeDashboardContainerProps, CubeDashboardProps, CubeDashboardTabProps, CubeDashboardTabsProps, CubeDashboardWidgetProps, DashboardAddItemDefinition, DashboardAddItemInfo, DashboardAddItemKind, DashboardContainerKind, DashboardNodeAction, DashboardParentKind, DashboardPlacement, DashboardPlacementChangeInfo, DashboardPlacementChangeInput, DashboardPlacementChangeItem, DashboardPlacementChangePhase, DashboardPlacementChangeReason, DashboardPlacementProps, DashboardSelectionMode } from "./types.js";
|
|
3
|
+
import { DashboardTab, DashboardTabs } from "./DashboardTabs.js";
|
|
4
|
+
import { DashboardGrid, DashboardHorizontalStack, DashboardVerticalStack } from "./DashboardContainer.js";
|
|
5
|
+
import { DashboardWidget } from "./DashboardWidget.js";
|
|
6
|
+
import * as react from "react";
|
|
7
|
+
|
|
8
|
+
//#region src/components/layout/Dashboard/Dashboard.d.ts
|
|
9
|
+
declare const Dashboard: react.ForwardRefExoticComponent<CubeDashboardProps & react.RefAttributes<HTMLDivElement>> & {
|
|
10
|
+
HorizontalStack: react.ForwardRefExoticComponent<CubeDashboardContainerProps & react.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
VerticalStack: react.ForwardRefExoticComponent<CubeDashboardContainerProps & react.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Grid: react.ForwardRefExoticComponent<CubeDashboardContainerProps & react.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Tabs: react.ForwardRefExoticComponent<CubeDashboardTabsProps & react.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Tab: typeof DashboardTab;
|
|
15
|
+
Widget: react.ForwardRefExoticComponent<CubeDashboardWidgetProps & react.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { Dashboard };
|
|
19
|
+
//# sourceMappingURL=Dashboard.d.ts.map
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b15d482 | Cube Dev Team */
|
|
2
|
+
import { extractStyles } from "../../../utils/styles.js";
|
|
3
|
+
import { useLayoutEffect as useLayoutEffect$1 } from "../../../utils/react/useLayoutEffect.js";
|
|
4
|
+
import { isInsideOpenPopover } from "../../../utils/react/usePopoverSync.js";
|
|
5
|
+
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
6
|
+
import { DashboardAuthoringContext, DashboardEditingContext, DashboardMetricsContext, DashboardSelectionContext, DashboardTreeContext } from "./context.js";
|
|
7
|
+
import { normalizeGap } from "./placement.js";
|
|
8
|
+
import { DashboardElement } from "./styles.js";
|
|
9
|
+
import { DashboardRootAddControl } from "./DashboardContainerContent.js";
|
|
10
|
+
import { DashboardGrid, DashboardHorizontalStack, DashboardVerticalStack } from "./DashboardContainer.js";
|
|
11
|
+
import { DashboardTab, DashboardTabs } from "./DashboardTabs.js";
|
|
12
|
+
import { DashboardWidget } from "./DashboardWidget.js";
|
|
13
|
+
import { CONTAINER_STYLES, filterBaseProps } from "@tenphi/tasty";
|
|
14
|
+
import { Children, forwardRef, useEffect, useMemo, useRef, useState } from "react";
|
|
15
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
+
|
|
17
|
+
//#region src/components/layout/Dashboard/Dashboard.tsx
|
|
18
|
+
const DashboardRoot = forwardRef(function DashboardRoot(props, ref) {
|
|
19
|
+
const { children, rowHeight = 80, gap = 16, isEditing = false, selectionMode = "multiple", selectedKeys: controlledSelectedKeys, defaultSelectedKeys = [], onSelectionChange, addItems = [], onAddItem, styles: explicitStyles, style, ...otherProps } = props;
|
|
20
|
+
const [columnGap, rowGap] = normalizeGap(gap);
|
|
21
|
+
const [uncontrolledSelectedKeys, setUncontrolledSelectedKeys] = useState(defaultSelectedKeys);
|
|
22
|
+
const [movingId, setMovingId] = useState(null);
|
|
23
|
+
const [arrivingIds, setArrivingIds] = useState(() => /* @__PURE__ */ new Set());
|
|
24
|
+
const acceptsArrivalsRef = useRef(false);
|
|
25
|
+
const arrivalTimerRef = useRef(null);
|
|
26
|
+
const registrationsRef = useRef(/* @__PURE__ */ new Map());
|
|
27
|
+
const isControlled = controlledSelectedKeys !== void 0;
|
|
28
|
+
const selectedKeys = selectionMode === "none" ? [] : controlledSelectedKeys ?? uncontrolledSelectedKeys;
|
|
29
|
+
const selectedKeySet = useMemo(() => new Set(selectedKeys), [selectedKeys]);
|
|
30
|
+
const commitSelection = useEvent((next) => {
|
|
31
|
+
if (!isControlled) setUncontrolledSelectedKeys(next);
|
|
32
|
+
onSelectionChange?.(next);
|
|
33
|
+
});
|
|
34
|
+
const register = useEvent((id, registration) => {
|
|
35
|
+
registrationsRef.current.set(id, registration);
|
|
36
|
+
return () => {
|
|
37
|
+
if (registrationsRef.current.get(id) === registration) registrationsRef.current.delete(id);
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
const select = useEvent((id, additive) => {
|
|
41
|
+
if (selectionMode === "none") return;
|
|
42
|
+
const registration = registrationsRef.current.get(id);
|
|
43
|
+
if (!registration) return;
|
|
44
|
+
if (selectionMode === "single" || !additive) {
|
|
45
|
+
commitSelection([id]);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const current = new Set(selectedKeySet);
|
|
49
|
+
if (current.has(id)) {
|
|
50
|
+
current.delete(id);
|
|
51
|
+
commitSelection([...current]);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
for (const selectedId of current) {
|
|
55
|
+
const selected = registrationsRef.current.get(selectedId);
|
|
56
|
+
if (!selected) continue;
|
|
57
|
+
if (registration.ancestorIds.includes(selectedId)) return;
|
|
58
|
+
if (selected.parentId !== registration.parentId) return;
|
|
59
|
+
if (selected.ancestorIds.includes(id)) current.delete(selectedId);
|
|
60
|
+
}
|
|
61
|
+
current.add(id);
|
|
62
|
+
commitSelection([...current]);
|
|
63
|
+
});
|
|
64
|
+
/**
|
|
65
|
+
* Any click that is not on a node clears the selection — Dashboard whitespace
|
|
66
|
+
* and the rest of the page alike. A selection that survives a click elsewhere
|
|
67
|
+
* reads as stuck: the node keeps its brand outline and its chrome while the
|
|
68
|
+
* user is plainly working somewhere else.
|
|
69
|
+
*
|
|
70
|
+
* This deliberately listens on `document` rather than on the root's `onClick`.
|
|
71
|
+
* React dispatches through the *React* tree, so a press inside a node's own
|
|
72
|
+
* portaled menu bubbles to the root as if it had landed on whitespace and
|
|
73
|
+
* deselects the node the menu belongs to. Three exclusions cover the rest:
|
|
74
|
+
* a node keeps its selection, overlay content is portaled out of the
|
|
75
|
+
* Dashboard's subtree so it has to be recognised by the popover registry
|
|
76
|
+
* rather than by containment, and a target already detached by the action
|
|
77
|
+
* that closed it can no longer be located at all.
|
|
78
|
+
*/
|
|
79
|
+
const hasSelection = selectedKeySet.size > 0;
|
|
80
|
+
useEffect(() => {
|
|
81
|
+
if (!hasSelection) return;
|
|
82
|
+
const onDocumentClick = (event) => {
|
|
83
|
+
const target = event.target;
|
|
84
|
+
if (!target?.isConnected) return;
|
|
85
|
+
if (target.closest("[data-dashboard-node]")) return;
|
|
86
|
+
if (isInsideOpenPopover(target)) return;
|
|
87
|
+
commitSelection([]);
|
|
88
|
+
};
|
|
89
|
+
document.addEventListener("click", onDocumentClick);
|
|
90
|
+
return () => document.removeEventListener("click", onDocumentClick);
|
|
91
|
+
}, [commitSelection, hasSelection]);
|
|
92
|
+
const startMoving = useEvent((id) => setMovingId(id));
|
|
93
|
+
const stopMoving = useEvent((id) => {
|
|
94
|
+
setMovingId((current) => current === id ? null : current);
|
|
95
|
+
});
|
|
96
|
+
const markArriving = useEvent((id) => {
|
|
97
|
+
if (!acceptsArrivalsRef.current) return;
|
|
98
|
+
if (arrivalTimerRef.current !== null) clearTimeout(arrivalTimerRef.current);
|
|
99
|
+
setArrivingIds((current) => new Set(current).add(id));
|
|
100
|
+
arrivalTimerRef.current = setTimeout(() => {
|
|
101
|
+
setArrivingIds(/* @__PURE__ */ new Set());
|
|
102
|
+
arrivalTimerRef.current = null;
|
|
103
|
+
}, 1e3);
|
|
104
|
+
});
|
|
105
|
+
useLayoutEffect$1(() => {
|
|
106
|
+
acceptsArrivalsRef.current = true;
|
|
107
|
+
return () => {
|
|
108
|
+
acceptsArrivalsRef.current = false;
|
|
109
|
+
if (arrivalTimerRef.current !== null) clearTimeout(arrivalTimerRef.current);
|
|
110
|
+
};
|
|
111
|
+
}, []);
|
|
112
|
+
const metrics = useMemo(() => ({
|
|
113
|
+
rowHeight: Math.max(1, rowHeight),
|
|
114
|
+
columnGap: Math.max(0, columnGap),
|
|
115
|
+
rowGap: Math.max(0, rowGap)
|
|
116
|
+
}), [
|
|
117
|
+
columnGap,
|
|
118
|
+
rowGap,
|
|
119
|
+
rowHeight
|
|
120
|
+
]);
|
|
121
|
+
const selection = useMemo(() => ({
|
|
122
|
+
selectionMode,
|
|
123
|
+
selectedKeys: selectedKeySet,
|
|
124
|
+
register,
|
|
125
|
+
select
|
|
126
|
+
}), [
|
|
127
|
+
register,
|
|
128
|
+
select,
|
|
129
|
+
selectedKeySet,
|
|
130
|
+
selectionMode
|
|
131
|
+
]);
|
|
132
|
+
const editing = useMemo(() => ({
|
|
133
|
+
isEditing,
|
|
134
|
+
movingId,
|
|
135
|
+
arrivingIds,
|
|
136
|
+
markArriving,
|
|
137
|
+
startMoving,
|
|
138
|
+
stopMoving
|
|
139
|
+
}), [
|
|
140
|
+
arrivingIds,
|
|
141
|
+
isEditing,
|
|
142
|
+
markArriving,
|
|
143
|
+
movingId,
|
|
144
|
+
startMoving,
|
|
145
|
+
stopMoving
|
|
146
|
+
]);
|
|
147
|
+
const authoring = useMemo(() => ({
|
|
148
|
+
addItems,
|
|
149
|
+
onAddItem
|
|
150
|
+
}), [addItems, onAddItem]);
|
|
151
|
+
const rootTree = useMemo(() => ({
|
|
152
|
+
containerDepth: 0,
|
|
153
|
+
parentKind: "root",
|
|
154
|
+
parentId: null,
|
|
155
|
+
layoutParentId: null,
|
|
156
|
+
parentColumns: 12,
|
|
157
|
+
parentRows: 1,
|
|
158
|
+
ancestorIds: [],
|
|
159
|
+
parentStackUsed: 0
|
|
160
|
+
}), []);
|
|
161
|
+
const styles = {
|
|
162
|
+
...extractStyles(otherProps, CONTAINER_STYLES),
|
|
163
|
+
...explicitStyles
|
|
164
|
+
};
|
|
165
|
+
const baseProps = filterBaseProps(otherProps, {
|
|
166
|
+
eventProps: true,
|
|
167
|
+
labelable: true
|
|
168
|
+
});
|
|
169
|
+
return /* @__PURE__ */ jsx(DashboardMetricsContext.Provider, {
|
|
170
|
+
value: metrics,
|
|
171
|
+
children: /* @__PURE__ */ jsx(DashboardSelectionContext.Provider, {
|
|
172
|
+
value: selection,
|
|
173
|
+
children: /* @__PURE__ */ jsx(DashboardEditingContext.Provider, {
|
|
174
|
+
value: editing,
|
|
175
|
+
children: /* @__PURE__ */ jsx(DashboardAuthoringContext.Provider, {
|
|
176
|
+
value: authoring,
|
|
177
|
+
children: /* @__PURE__ */ jsx(DashboardTreeContext.Provider, {
|
|
178
|
+
value: rootTree,
|
|
179
|
+
children: /* @__PURE__ */ jsxs(DashboardElement, {
|
|
180
|
+
...baseProps,
|
|
181
|
+
ref,
|
|
182
|
+
styles,
|
|
183
|
+
style,
|
|
184
|
+
"data-editing": isEditing || void 0,
|
|
185
|
+
"data-dragging": movingId !== null || void 0,
|
|
186
|
+
"data-dashboard-root": "",
|
|
187
|
+
"data-dashboard-drop-target": "",
|
|
188
|
+
"data-dashboard-parent-id": "",
|
|
189
|
+
"data-dashboard-container-kind": "root",
|
|
190
|
+
"data-dashboard-columns": 12,
|
|
191
|
+
"data-dashboard-rows": Math.max(1, Children.count(children)),
|
|
192
|
+
"data-dashboard-depth": 0,
|
|
193
|
+
"data-dashboard-ancestor-ids": "[]",
|
|
194
|
+
children: [children, isEditing ? /* @__PURE__ */ jsx(DashboardRootAddControl, { row: Children.count(children) }) : null]
|
|
195
|
+
})
|
|
196
|
+
})
|
|
197
|
+
})
|
|
198
|
+
})
|
|
199
|
+
})
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
const Dashboard = Object.assign(DashboardRoot, {
|
|
203
|
+
HorizontalStack: DashboardHorizontalStack,
|
|
204
|
+
VerticalStack: DashboardVerticalStack,
|
|
205
|
+
Grid: DashboardGrid,
|
|
206
|
+
Tabs: DashboardTabs,
|
|
207
|
+
Tab: DashboardTab,
|
|
208
|
+
Widget: DashboardWidget
|
|
209
|
+
});
|
|
210
|
+
|
|
211
|
+
//#endregion
|
|
212
|
+
export { Dashboard };
|
|
213
|
+
//# sourceMappingURL=Dashboard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dashboard.js","names":[],"sources":["../../../../src/components/layout/Dashboard/Dashboard.tsx"],"sourcesContent":["import { CONTAINER_STYLES, filterBaseProps, Styles } from '@tenphi/tasty';\nimport {\n Children,\n forwardRef,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\n\nimport { useEvent } from '../../../_internal/hooks';\nimport { isInsideOpenPopover, useLayoutEffect } from '../../../utils/react';\nimport { extractStyles } from '../../../utils/styles';\n\nimport {\n DashboardAuthoringContext,\n DashboardEditingContext,\n DashboardMetricsContext,\n DashboardSelectionContext,\n DashboardTreeContext,\n} from './context';\nimport {\n DashboardGrid,\n DashboardHorizontalStack,\n DashboardVerticalStack,\n} from './DashboardContainer';\nimport {\n DashboardContainerContent,\n DashboardRootAddControl,\n} from './DashboardContainerContent';\nimport { DashboardTab, DashboardTabs } from './DashboardTabs';\nimport { DashboardWidget } from './DashboardWidget';\nimport { normalizeGap } from './placement';\nimport { DashboardElement } from './styles';\n\nimport type { ForwardedRef } from 'react';\nimport type {\n CubeDashboardProps,\n DashboardAuthoringContextValue,\n DashboardEditingContextValue,\n DashboardMetrics,\n DashboardNodeRegistration,\n DashboardSelectionContextValue,\n DashboardTreeContextValue,\n} from './types';\n\nexport const DashboardRoot = forwardRef(function DashboardRoot(\n props: CubeDashboardProps,\n ref: ForwardedRef<HTMLDivElement>,\n) {\n const {\n children,\n rowHeight = 80,\n gap = 16,\n isEditing = false,\n selectionMode = 'multiple',\n selectedKeys: controlledSelectedKeys,\n defaultSelectedKeys = [],\n onSelectionChange,\n addItems = [],\n onAddItem,\n styles: explicitStyles,\n style,\n ...otherProps\n } = props;\n const [columnGap, rowGap] = normalizeGap(gap);\n const [uncontrolledSelectedKeys, setUncontrolledSelectedKeys] =\n useState<string[]>(defaultSelectedKeys);\n const [movingId, setMovingId] = useState<string | null>(null);\n const [arrivingIds, setArrivingIds] = useState<ReadonlySet<string>>(\n () => new Set(),\n );\n const acceptsArrivalsRef = useRef(false);\n const arrivalTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);\n const registrationsRef = useRef(new Map<string, DashboardNodeRegistration>());\n const isControlled = controlledSelectedKeys !== undefined;\n const selectedKeys =\n selectionMode === 'none'\n ? []\n : controlledSelectedKeys ?? uncontrolledSelectedKeys;\n const selectedKeySet = useMemo(() => new Set(selectedKeys), [selectedKeys]);\n\n const commitSelection = useEvent((next: string[]) => {\n if (!isControlled) setUncontrolledSelectedKeys(next);\n onSelectionChange?.(next);\n });\n\n const register = useEvent(\n (id: string, registration: DashboardNodeRegistration) => {\n registrationsRef.current.set(id, registration);\n return () => {\n const current = registrationsRef.current.get(id);\n if (current === registration) registrationsRef.current.delete(id);\n };\n },\n );\n\n const select = useEvent((id: string, additive: boolean) => {\n if (selectionMode === 'none') return;\n const registration = registrationsRef.current.get(id);\n if (!registration) return;\n\n if (selectionMode === 'single' || !additive) {\n commitSelection([id]);\n return;\n }\n\n const current = new Set(selectedKeySet);\n if (current.has(id)) {\n current.delete(id);\n commitSelection([...current]);\n return;\n }\n\n for (const selectedId of current) {\n const selected = registrationsRef.current.get(selectedId);\n if (!selected) continue;\n\n if (registration.ancestorIds.includes(selectedId)) {\n return;\n }\n\n if (selected.parentId !== registration.parentId) {\n return;\n }\n\n if (selected.ancestorIds.includes(id)) {\n current.delete(selectedId);\n }\n }\n\n current.add(id);\n commitSelection([...current]);\n });\n\n /**\n * Any click that is not on a node clears the selection — Dashboard whitespace\n * and the rest of the page alike. A selection that survives a click elsewhere\n * reads as stuck: the node keeps its brand outline and its chrome while the\n * user is plainly working somewhere else.\n *\n * This deliberately listens on `document` rather than on the root's `onClick`.\n * React dispatches through the *React* tree, so a press inside a node's own\n * portaled menu bubbles to the root as if it had landed on whitespace and\n * deselects the node the menu belongs to. Three exclusions cover the rest:\n * a node keeps its selection, overlay content is portaled out of the\n * Dashboard's subtree so it has to be recognised by the popover registry\n * rather than by containment, and a target already detached by the action\n * that closed it can no longer be located at all.\n */\n const hasSelection = selectedKeySet.size > 0;\n useEffect(() => {\n if (!hasSelection) return;\n\n const onDocumentClick = (event: MouseEvent) => {\n const target = event.target as Element | null;\n if (!target?.isConnected) return;\n if (target.closest('[data-dashboard-node]')) return;\n if (isInsideOpenPopover(target)) return;\n\n commitSelection([]);\n };\n\n document.addEventListener('click', onDocumentClick);\n\n return () => document.removeEventListener('click', onDocumentClick);\n }, [commitSelection, hasSelection]);\n\n const startMoving = useEvent((id: string) => setMovingId(id));\n const stopMoving = useEvent((id: string) => {\n setMovingId((current) => (current === id ? null : current));\n });\n const markArriving = useEvent((id: string) => {\n if (!acceptsArrivalsRef.current) return;\n\n if (arrivalTimerRef.current !== null) {\n clearTimeout(arrivalTimerRef.current);\n }\n setArrivingIds((current) => new Set(current).add(id));\n arrivalTimerRef.current = setTimeout(() => {\n setArrivingIds(new Set());\n arrivalTimerRef.current = null;\n }, 1000);\n });\n\n useLayoutEffect(() => {\n acceptsArrivalsRef.current = true;\n\n return () => {\n acceptsArrivalsRef.current = false;\n if (arrivalTimerRef.current !== null) {\n clearTimeout(arrivalTimerRef.current);\n }\n };\n }, []);\n\n const metrics = useMemo<DashboardMetrics>(\n () => ({\n rowHeight: Math.max(1, rowHeight),\n columnGap: Math.max(0, columnGap),\n rowGap: Math.max(0, rowGap),\n }),\n [columnGap, rowGap, rowHeight],\n );\n const selection = useMemo<DashboardSelectionContextValue>(\n () => ({\n selectionMode,\n selectedKeys: selectedKeySet,\n register,\n select,\n }),\n [register, select, selectedKeySet, selectionMode],\n );\n const editing = useMemo<DashboardEditingContextValue>(\n () => ({\n isEditing,\n movingId,\n arrivingIds,\n markArriving,\n startMoving,\n stopMoving,\n }),\n [arrivingIds, isEditing, markArriving, movingId, startMoving, stopMoving],\n );\n const authoring = useMemo<DashboardAuthoringContextValue>(\n () => ({ addItems, onAddItem }),\n [addItems, onAddItem],\n );\n const rootTree = useMemo<DashboardTreeContextValue>(\n () => ({\n containerDepth: 0,\n parentKind: 'root',\n parentId: null,\n layoutParentId: null,\n parentColumns: 12,\n parentRows: 1,\n ancestorIds: [],\n parentStackUsed: 0,\n }),\n [],\n );\n // `otherProps` rather than `props`: `gap` is a container style prop as well as\n // a Dashboard prop, and extracting it would write the in-container gap onto the\n // root grid, overriding the fixed `2x` top-level channel.\n const extractedStyles = extractStyles(otherProps, CONTAINER_STYLES);\n const styles: Styles = { ...extractedStyles, ...explicitStyles };\n const baseProps = filterBaseProps(otherProps, {\n eventProps: true,\n labelable: true,\n });\n\n return (\n <DashboardMetricsContext.Provider value={metrics}>\n <DashboardSelectionContext.Provider value={selection}>\n <DashboardEditingContext.Provider value={editing}>\n <DashboardAuthoringContext.Provider value={authoring}>\n <DashboardTreeContext.Provider value={rootTree}>\n <DashboardElement\n {...baseProps}\n ref={ref}\n styles={styles}\n style={style}\n data-editing={isEditing || undefined}\n data-dragging={movingId !== null || undefined}\n data-dashboard-root=\"\"\n data-dashboard-drop-target=\"\"\n data-dashboard-parent-id=\"\"\n data-dashboard-container-kind=\"root\"\n data-dashboard-columns={12}\n data-dashboard-rows={Math.max(1, Children.count(children))}\n data-dashboard-depth={0}\n data-dashboard-ancestor-ids=\"[]\"\n >\n {children}\n {isEditing ? (\n <DashboardRootAddControl row={Children.count(children)} />\n ) : null}\n </DashboardElement>\n </DashboardTreeContext.Provider>\n </DashboardAuthoringContext.Provider>\n </DashboardEditingContext.Provider>\n </DashboardSelectionContext.Provider>\n </DashboardMetricsContext.Provider>\n );\n});\n\nexport const Dashboard = Object.assign(DashboardRoot, {\n HorizontalStack: DashboardHorizontalStack,\n VerticalStack: DashboardVerticalStack,\n Grid: DashboardGrid,\n Tabs: DashboardTabs,\n Tab: DashboardTab,\n Widget: DashboardWidget,\n});\n\nexport {\n DashboardGrid,\n DashboardHorizontalStack,\n DashboardVerticalStack,\n} from './DashboardContainer';\nexport { DashboardTab, DashboardTabs } from './DashboardTabs';\nexport { DashboardWidget } from './DashboardWidget';\n\nexport type {\n CubeDashboardContainerProps,\n CubeDashboardProps,\n CubeDashboardTabProps,\n CubeDashboardTabsProps,\n CubeDashboardWidgetProps,\n DashboardAddItemDefinition,\n DashboardAddItemInfo,\n DashboardAddItemKind,\n DashboardContainerKind,\n DashboardNodeAction,\n DashboardParentKind,\n DashboardPlacement,\n DashboardPlacementChangeInfo,\n DashboardPlacementChangeInput,\n DashboardPlacementChangeItem,\n DashboardPlacementChangePhase,\n DashboardPlacementChangeReason,\n DashboardPlacementProps,\n DashboardSelectionMode,\n} from './types';\n"],"mappings":"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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
import { CubeDashboardContainerProps } from "./types.js";
|
|
3
|
+
import * as react from "react";
|
|
4
|
+
import { ForwardedRef, ReactNode } from "react";
|
|
5
|
+
import "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/layout/Dashboard/DashboardContainer.d.ts
|
|
8
|
+
declare const DashboardHorizontalStack: react.ForwardRefExoticComponent<CubeDashboardContainerProps & react.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const DashboardVerticalStack: react.ForwardRefExoticComponent<CubeDashboardContainerProps & react.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const DashboardGrid: react.ForwardRefExoticComponent<CubeDashboardContainerProps & react.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { DashboardGrid, DashboardHorizontalStack, DashboardVerticalStack };
|
|
13
|
+
//# sourceMappingURL=DashboardContainer.d.ts.map
|