@cube-dev/ui-kit 0.140.1 → 0.142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CHANGELOG.md +96 -0
- package/dist/_internal/hooks/use-chained-callback.js +1 -1
- package/dist/_internal/hooks/use-debounced-value.js +1 -1
- package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
- package/dist/_internal/hooks/use-event.js +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +1 -1
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
- package/dist/_internal/hooks/use-warn.js +1 -1
- package/dist/components/Block.js +1 -1
- package/dist/components/CollectionItem.js +1 -1
- package/dist/components/GlobalStyles.js +1 -1
- package/dist/components/GridProvider.js +1 -1
- package/dist/components/HiddenInput.js +1 -1
- package/dist/components/Root.js +1 -1
- package/dist/components/actions/Action/Action.js +1 -1
- package/dist/components/actions/Banner/Banner.js +1 -1
- package/dist/components/actions/Button/Button.js +17 -3
- package/dist/components/actions/Button/Button.js.map +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 +3 -4
- package/dist/components/actions/CommandMenu/CommandMenu.js.map +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 +18 -2
- package/dist/components/actions/ItemButton/ItemButton.js.map +1 -1
- package/dist/components/actions/Link/Link.js +1 -1
- package/dist/components/actions/Menu/Menu.js +3 -4
- package/dist/components/actions/Menu/Menu.js.map +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 +8 -5
- package/dist/components/actions/Menu/MenuTrigger.js.map +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.js +10 -7
- package/dist/components/actions/Menu/SubMenuTrigger.js.map +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 +4 -3
- package/dist/components/actions/use-anchored-menu.js.map +1 -1
- package/dist/components/actions/use-context-menu.js +4 -3
- package/dist/components/actions/use-context-menu.js.map +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/InlineInput/InlineInput.js +1 -1
- package/dist/components/content/Item/Item.js +1 -1
- package/dist/components/content/ItemBadge/ItemBadge.js +1 -1
- package/dist/components/content/ItemCard/ItemCard.js +1 -1
- package/dist/components/content/Layout/GridLayout.js +1 -1
- package/dist/components/content/Layout/Layout.js +1 -1
- package/dist/components/content/Layout/LayoutBlock.js +1 -1
- package/dist/components/content/Layout/LayoutCenter.js +1 -1
- package/dist/components/content/Layout/LayoutContainer.js +1 -1
- package/dist/components/content/Layout/LayoutContent.js +1 -1
- package/dist/components/content/Layout/LayoutContext.js +1 -1
- package/dist/components/content/Layout/LayoutFlex.js +1 -1
- package/dist/components/content/Layout/LayoutFooter.js +1 -1
- package/dist/components/content/Layout/LayoutGrid.js +1 -1
- package/dist/components/content/Layout/LayoutHeader.js +1 -1
- package/dist/components/content/Layout/LayoutPane.js +1 -1
- package/dist/components/content/Layout/LayoutPanel.js +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +1 -1
- package/dist/components/content/Layout/LayoutToolbar.js +1 -1
- package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
- package/dist/components/content/Layout/index.js +1 -1
- package/dist/components/content/Layout/utils.js +1 -1
- package/dist/components/content/Paragraph.js +1 -1
- package/dist/components/content/Placeholder/Placeholder.js +1 -1
- package/dist/components/content/PrismCode/PrismCode.js +1 -1
- package/dist/components/content/PrismCode/prismSetup.js +1 -1
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
- package/dist/components/content/Result/Result.js +1 -1
- package/dist/components/content/Skeleton/Skeleton.js +1 -1
- package/dist/components/content/Tag/Tag.js +1 -1
- package/dist/components/content/Text.js +1 -1
- package/dist/components/content/TextItem/TextItem.js +1 -1
- package/dist/components/content/Title.js +1 -1
- package/dist/components/content/Tree/Tree.js +1 -1
- package/dist/components/content/Tree/TreeNode.js +1 -1
- package/dist/components/content/Tree/styled.js +1 -1
- package/dist/components/content/Tree/tree-index.js +1 -1
- package/dist/components/content/Tree/use-checkbox-tree.js +1 -1
- package/dist/components/content/Tree/use-load-data.js +1 -1
- package/dist/components/content/highlightText.js +1 -1
- package/dist/components/content/use-auto-tooltip.js +1 -1
- package/dist/components/fields/Checkbox/Checkbox.js +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.js +3 -3
- package/dist/components/fields/Checkbox/CheckboxGroup.js.map +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ComboBox/ComboBox.js +11 -7
- package/dist/components/fields/ComboBox/ComboBox.js.map +1 -1
- package/dist/components/fields/DatePicker/DateInput.js +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
- package/dist/components/fields/DatePicker/DatePicker.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.js +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +1 -1
- package/dist/components/fields/DatePicker/TimeInput.js +1 -1
- package/dist/components/fields/DatePicker/intl.js +1 -1
- package/dist/components/fields/DatePicker/parseDate.js +1 -1
- package/dist/components/fields/DatePicker/props.js +1 -1
- package/dist/components/fields/DatePicker/utils.js +1 -1
- package/dist/components/fields/FileInput/FileInput.js +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.js +1 -9
- package/dist/components/fields/FilterPicker/FilterPicker.js.map +1 -1
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
- package/dist/components/fields/ListBox/ListBox.js +2 -1
- package/dist/components/fields/ListBox/ListBox.js.map +1 -1
- package/dist/components/fields/NumberInput/NumberInput.js +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/fields/Picker/Picker.js +1 -9
- package/dist/components/fields/Picker/Picker.js.map +1 -1
- package/dist/components/fields/RadioGroup/Radio.js +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.js +3 -3
- package/dist/components/fields/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +1 -1
- package/dist/components/fields/Select/Select.js +10 -7
- package/dist/components/fields/Select/Select.js.map +1 -1
- package/dist/components/fields/Slider/Gradation.js +1 -1
- package/dist/components/fields/Slider/HueSlider.js +1 -1
- package/dist/components/fields/Slider/RangeSlider.js +1 -1
- package/dist/components/fields/Slider/Slider.js +1 -1
- package/dist/components/fields/Slider/SliderBase.js +1 -1
- package/dist/components/fields/Slider/SliderThumb.js +1 -1
- package/dist/components/fields/Slider/SliderTrack.js +1 -1
- package/dist/components/fields/Slider/elements.js +1 -1
- package/dist/components/fields/Slider/index.js +1 -1
- package/dist/components/fields/Switch/Switch.js +1 -1
- package/dist/components/fields/TextArea/TextArea.js +1 -1
- package/dist/components/fields/TextInput/TextInput.js +1 -1
- package/dist/components/fields/TextInput/TextInputBase.js +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.js +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.js +1 -1
- package/dist/components/form/FieldWrapper/extract-field-wrapper-props.js +1 -1
- package/dist/components/form/Form/Field.js +1 -1
- package/dist/components/form/Form/Form.d.ts +1 -2
- package/dist/components/form/Form/Form.js +3 -3
- package/dist/components/form/Form/Form.js.map +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.d.ts +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 +3 -3
- package/dist/components/form/Label.js.map +1 -1
- package/dist/components/form/wrapper.js +1 -1
- package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
- package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
- package/dist/components/layout/Flex.js +1 -1
- package/dist/components/layout/Flow.js +1 -1
- package/dist/components/layout/Grid.js +1 -1
- package/dist/components/layout/Panel.js +1 -1
- package/dist/components/layout/Prefix.js +1 -1
- package/dist/components/layout/ResizablePanel.js +1 -1
- package/dist/components/layout/Space.js +1 -1
- package/dist/components/layout/Suffix.js +1 -1
- package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
- package/dist/components/navigation/Tabs/TabButton.js +2 -2
- package/dist/components/navigation/Tabs/TabButton.js.map +1 -1
- package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
- package/dist/components/navigation/Tabs/TabPanel.js +1 -1
- package/dist/components/navigation/Tabs/TabPicker.js +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +1 -1
- package/dist/components/navigation/Tabs/TabsAction.js +1 -1
- package/dist/components/navigation/Tabs/TabsContext.js +1 -1
- package/dist/components/navigation/Tabs/popover-placement.js +1 -1
- package/dist/components/navigation/Tabs/styled.js +1 -1
- package/dist/components/navigation/Tabs/types.d.ts +6 -2
- package/dist/components/navigation/Tabs/types.js +1 -1
- package/dist/components/navigation/Tabs/types.js.map +1 -1
- package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-indicator.js +1 -1
- package/dist/components/organisms/FileTabs/FileTabs.js +1 -1
- package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
- package/dist/components/other/Calendar/Calendar.js +1 -1
- package/dist/components/other/Calendar/CalendarCell.js +1 -1
- package/dist/components/other/Calendar/CalendarGrid.js +1 -1
- package/dist/components/other/Calendar/RangeCalendar.js +1 -1
- package/dist/components/other/CloudLogo/CloudLogo.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/dist/components/overlays/Dialog/Dialog.d.ts +1 -2
- package/dist/components/overlays/Dialog/Dialog.js +3 -3
- package/dist/components/overlays/Dialog/Dialog.js.map +1 -1
- package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
- package/dist/components/overlays/Dialog/DialogForm.js +1 -1
- package/dist/components/overlays/Dialog/DialogTrigger.js +34 -3
- package/dist/components/overlays/Dialog/DialogTrigger.js.map +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 +3 -3
- package/dist/components/overlays/Modal/Modal.js.map +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 +3 -3
- package/dist/components/overlays/Modal/Tray.js.map +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/icons/AdjustmentsHorizontalIcon.js +1 -1
- package/dist/icons/AdjustmentsIcon.js +1 -1
- package/dist/icons/AiIcon.js +1 -1
- package/dist/icons/AreaChartIcon.js +1 -1
- package/dist/icons/BackwardIcon.js +1 -1
- package/dist/icons/BarChartIcon.js +1 -1
- package/dist/icons/BellFilledIcon.js +1 -1
- package/dist/icons/BellIcon.js +1 -1
- package/dist/icons/BooleanIcon.js +1 -1
- package/dist/icons/CalendarEditIcon.js +1 -1
- package/dist/icons/CalendarIcon.js +1 -1
- package/dist/icons/CaretDownIcon.js +1 -1
- package/dist/icons/CaretUpIcon.js +1 -1
- package/dist/icons/ChartAreaStackedIcon.js +1 -1
- package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarGroupedIcon.js +1 -1
- package/dist/icons/ChartBarHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarLineIcon.js +1 -1
- package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBoxPlot2Icon.js +1 -1
- package/dist/icons/ChartBoxPlotIcon.js +1 -1
- package/dist/icons/ChartBubbleIcon.js +1 -1
- package/dist/icons/ChartDonut2Icon.js +1 -1
- package/dist/icons/ChartFunnelIcon.js +1 -1
- package/dist/icons/ChartHeatmapIcon.js +1 -1
- package/dist/icons/ChartKPIIcon.js +1 -1
- package/dist/icons/ChartPie2Icon.js +1 -1
- package/dist/icons/ChartScatterIcon.js +1 -1
- package/dist/icons/CheckCircleFilledIcon.js +1 -1
- package/dist/icons/CheckCircleIcon.js +1 -1
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CircleFilledIcon.js +1 -1
- package/dist/icons/ClearIcon.js +1 -1
- package/dist/icons/CloseCircleFilledIcon.js +1 -1
- package/dist/icons/CloseCircleIcon.js +1 -1
- package/dist/icons/CloseIcon.js +1 -1
- package/dist/icons/CodeIcon.js +1 -1
- package/dist/icons/ColumnTotalIcon.js +1 -1
- package/dist/icons/CopyIcon.js +1 -1
- package/dist/icons/CountIcon.js +1 -1
- package/dist/icons/CubeIcon.js +1 -1
- package/dist/icons/CubePauseIcon.js +1 -1
- package/dist/icons/CubePlayIcon.js +1 -1
- package/dist/icons/CurrencyDollarIcon.js +1 -1
- package/dist/icons/DangerIcon.js +1 -1
- package/dist/icons/DashboardIcon.js +1 -1
- package/dist/icons/DatabaseIcon.js +1 -1
- package/dist/icons/DecimalDecreaseIcon.js +1 -1
- package/dist/icons/DecimalIncreaseIcon.js +1 -1
- package/dist/icons/DirectionIcon.js +1 -1
- package/dist/icons/DonutIcon.js +1 -1
- package/dist/icons/DownIcon.js +1 -1
- package/dist/icons/EditIcon.js +1 -1
- package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
- package/dist/icons/ExclamationCircleIcon.js +1 -1
- package/dist/icons/ExclamationIcon.js +1 -1
- package/dist/icons/EyeIcon.js +1 -1
- package/dist/icons/EyeInvisibleIcon.js +1 -1
- package/dist/icons/FilterIcon.js +1 -1
- package/dist/icons/FolderFilledIcon.js +1 -1
- package/dist/icons/FolderIcon.js +1 -1
- package/dist/icons/FolderOpenFilledIcon.js +1 -1
- package/dist/icons/FolderOpenIcon.js +1 -1
- package/dist/icons/ForwardIcon.js +1 -1
- package/dist/icons/GripVerticalIcon.js +1 -1
- package/dist/icons/HierarchyIcon.js +1 -1
- package/dist/icons/HierarchyOpenIcon.js +1 -1
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/InfoCircleIcon.js +1 -1
- package/dist/icons/InfoIcon.js +1 -1
- package/dist/icons/KeyIcon.js +1 -1
- package/dist/icons/LeftIcon.js +1 -1
- package/dist/icons/LineChartIcon.js +1 -1
- package/dist/icons/LoadingIcon.js +1 -1
- package/dist/icons/LockFilledIcon.js +1 -1
- package/dist/icons/LockIcon.js +1 -1
- package/dist/icons/MoreIcon.js +1 -1
- package/dist/icons/NotAllowedIcon.js +1 -1
- package/dist/icons/Number123Icon.js +1 -1
- package/dist/icons/NumberIcon.js +1 -1
- package/dist/icons/PauseCircleFilledIcon.js +1 -1
- package/dist/icons/PauseCircleIcon.js +1 -1
- package/dist/icons/PauseIcon.js +1 -1
- package/dist/icons/PercentageIcon.js +1 -1
- package/dist/icons/PieChartIcon.js +1 -1
- package/dist/icons/PlayCircleIcon.js +1 -1
- package/dist/icons/PlayIcon.js +1 -1
- package/dist/icons/PlusIcon.js +1 -1
- package/dist/icons/ProgressBarIcon.js +1 -1
- package/dist/icons/ReloadIcon.js +1 -1
- package/dist/icons/ReportIcon.js +1 -1
- package/dist/icons/ReturnIcon.js +1 -1
- package/dist/icons/RightIcon.js +1 -1
- package/dist/icons/RowTotalsIcon.js +1 -1
- package/dist/icons/SchemeIcon.js +1 -1
- package/dist/icons/SearchIcon.js +1 -1
- package/dist/icons/SemanticQueryIcon.js +1 -1
- package/dist/icons/SettingsIcon.js +1 -1
- package/dist/icons/ShieldFilledIcon.js +1 -1
- package/dist/icons/ShieldIcon.js +1 -1
- package/dist/icons/SlashIcon.js +1 -1
- package/dist/icons/SparklesIcon.js +1 -1
- package/dist/icons/SqlIcon.js +1 -1
- package/dist/icons/StatsIcon.js +1 -1
- package/dist/icons/StopIcon.js +1 -1
- package/dist/icons/StringIcon.js +1 -1
- package/dist/icons/SubtotalsIcon.js +1 -1
- package/dist/icons/SwitchIcon.js +1 -1
- package/dist/icons/TableIcon.js +1 -1
- package/dist/icons/ThumbsDownIcon.js +1 -1
- package/dist/icons/ThumbsUpIcon.js +1 -1
- package/dist/icons/ThunderboltCrossedIcon.js +1 -1
- package/dist/icons/ThunderboltFilledIcon.js +1 -1
- package/dist/icons/ThunderboltIcon.js +1 -1
- package/dist/icons/TimeIcon.js +1 -1
- package/dist/icons/TrashIcon.js +1 -1
- package/dist/icons/UnlockIcon.js +1 -1
- package/dist/icons/UpIcon.js +1 -1
- package/dist/icons/UserGroupIcon.js +1 -1
- package/dist/icons/UserIcon.js +1 -1
- package/dist/icons/UserLockIcon.js +1 -1
- package/dist/icons/ViewIcon.js +1 -1
- package/dist/icons/WarningFilledIcon.js +1 -1
- package/dist/icons/WarningIcon.js +1 -1
- package/dist/icons/wrap-icon.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/provider.js +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/tokens/base.js +1 -1
- package/dist/tokens/colors.js +1 -1
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/layout.js +1 -1
- package/dist/tokens/palette.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/index.d.ts +1 -0
- package/dist/utils/is-dev-env.js +1 -1
- package/dist/utils/modules.js +1 -1
- package/dist/utils/promise.js +1 -1
- package/dist/utils/raf.js +1 -1
- package/dist/utils/random.js +1 -1
- package/dist/utils/range.js +1 -1
- package/dist/utils/react/RenderCache.js +1 -1
- package/dist/utils/react/Slots.js +1 -1
- package/dist/utils/react/chain.js +1 -1
- package/dist/utils/react/forwardRefWithGenerics.js +1 -1
- package/dist/utils/react/index.d.ts +1 -0
- package/dist/utils/react/index.js +2 -1
- package/dist/utils/react/interactions.js +1 -1
- package/dist/utils/react/isTextOnly.js +1 -1
- package/dist/utils/react/mapProps.js +1 -1
- package/dist/utils/react/mergeProps.js +1 -1
- package/dist/utils/react/nullableValue.js +1 -1
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/sharedStore.js +1 -1
- package/dist/utils/react/useCombinedRefs.js +1 -1
- package/dist/utils/react/useControlledFocusVisible.js +1 -1
- package/dist/utils/react/useEventBus.js +26 -17
- package/dist/utils/react/useEventBus.js.map +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.d.ts +116 -0
- package/dist/utils/react/usePopoverSync.js +131 -11
- package/dist/utils/react/usePopoverSync.js.map +1 -1
- package/dist/utils/react/useQaProps.js +1 -1
- package/dist/utils/react/useViewportSize.js +1 -1
- package/dist/utils/react/wrapNodeIfPlain.js +1 -1
- package/dist/utils/selection.js +1 -1
- package/dist/utils/styles.js +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/version.js +2 -2
- package/docs/components/actions/Button.md +102 -24
- package/docs/components/actions/ItemButton.md +71 -34
- package/docs/components/navigation/Tabs.md +22 -1
- package/package.json +1 -1
|
@@ -74,7 +74,7 @@ Inherits all modifiers from [Item](../content/Item.md) plus:
|
|
|
74
74
|
### Sizes
|
|
75
75
|
|
|
76
76
|
- `xsmall` - Extra small size for compact interfaces
|
|
77
|
-
- `small` - Small size for dense layouts
|
|
77
|
+
- `small` - Small size for dense layouts
|
|
78
78
|
- `medium` - Default size for most use cases
|
|
79
79
|
- `large` - Large size for prominent actions
|
|
80
80
|
- `xlarge` - Extra large size for hero actions
|
|
@@ -84,15 +84,13 @@ Inherits all modifiers from [Item](../content/Item.md) plus:
|
|
|
84
84
|
### Basic Button
|
|
85
85
|
|
|
86
86
|
```jsx
|
|
87
|
-
<ItemButton onPress={() => console.log('Clicked')}>
|
|
88
|
-
Click me
|
|
89
|
-
</ItemButton>
|
|
87
|
+
<ItemButton onPress={() => console.log('Clicked')}>Click me</ItemButton>
|
|
90
88
|
```
|
|
91
89
|
|
|
92
90
|
### Button with Icons
|
|
93
91
|
|
|
94
92
|
```jsx
|
|
95
|
-
<ItemButton
|
|
93
|
+
<ItemButton
|
|
96
94
|
icon={<IconFile />}
|
|
97
95
|
rightIcon={<IconExternalLink />}
|
|
98
96
|
onPress={handleOpen}
|
|
@@ -104,19 +102,13 @@ Inherits all modifiers from [Item](../content/Item.md) plus:
|
|
|
104
102
|
### Link Button
|
|
105
103
|
|
|
106
104
|
```jsx
|
|
107
|
-
<ItemButton to="/docs">
|
|
108
|
-
Go to Documentation
|
|
109
|
-
</ItemButton>
|
|
105
|
+
<ItemButton to="/docs">Go to Documentation</ItemButton>
|
|
110
106
|
```
|
|
111
107
|
|
|
112
108
|
### Button with Hotkey
|
|
113
109
|
|
|
114
110
|
```jsx
|
|
115
|
-
<ItemButton
|
|
116
|
-
hotkeys="cmd+s"
|
|
117
|
-
onPress={handleSave}
|
|
118
|
-
type="primary"
|
|
119
|
-
>
|
|
111
|
+
<ItemButton hotkeys="cmd+s" onPress={handleSave} type="primary">
|
|
120
112
|
Save Document
|
|
121
113
|
</ItemButton>
|
|
122
114
|
```
|
|
@@ -124,11 +116,7 @@ Inherits all modifiers from [Item](../content/Item.md) plus:
|
|
|
124
116
|
### Form Submit Button
|
|
125
117
|
|
|
126
118
|
```jsx
|
|
127
|
-
<ItemButton
|
|
128
|
-
htmlType="submit"
|
|
129
|
-
type="primary"
|
|
130
|
-
icon={<IconCheck />}
|
|
131
|
-
>
|
|
119
|
+
<ItemButton htmlType="submit" type="primary" icon={<IconCheck />}>
|
|
132
120
|
Submit Form
|
|
133
121
|
</ItemButton>
|
|
134
122
|
```
|
|
@@ -136,10 +124,7 @@ Inherits all modifiers from [Item](../content/Item.md) plus:
|
|
|
136
124
|
### Button with Selection State
|
|
137
125
|
|
|
138
126
|
```jsx
|
|
139
|
-
<ItemButton
|
|
140
|
-
isSelected={isSelected}
|
|
141
|
-
onPress={() => setIsSelected(!isSelected)}
|
|
142
|
-
>
|
|
127
|
+
<ItemButton isSelected={isSelected} onPress={() => setIsSelected(!isSelected)}>
|
|
143
128
|
Toggle Selection
|
|
144
129
|
</ItemButton>
|
|
145
130
|
```
|
|
@@ -149,12 +134,20 @@ Inherits all modifiers from [Item](../content/Item.md) plus:
|
|
|
149
134
|
ItemButton supports inline actions that appear on the right side. Use the `ItemButton.Action` compound component for consistent styling:
|
|
150
135
|
|
|
151
136
|
```jsx
|
|
152
|
-
<ItemButton
|
|
137
|
+
<ItemButton
|
|
153
138
|
icon={<IconFile />}
|
|
154
139
|
actions={
|
|
155
140
|
<>
|
|
156
|
-
<ItemButton.Action
|
|
157
|
-
|
|
141
|
+
<ItemButton.Action
|
|
142
|
+
icon={<IconEdit />}
|
|
143
|
+
aria-label="Edit"
|
|
144
|
+
onPress={handleEdit}
|
|
145
|
+
/>
|
|
146
|
+
<ItemButton.Action
|
|
147
|
+
icon={<IconTrash />}
|
|
148
|
+
aria-label="Delete"
|
|
149
|
+
onPress={handleDelete}
|
|
150
|
+
/>
|
|
158
151
|
</>
|
|
159
152
|
}
|
|
160
153
|
onPress={handleOpen}
|
|
@@ -188,9 +181,41 @@ Actions automatically inherit the parent button's `type` prop and adjust their s
|
|
|
188
181
|
- `aria-pressed` - Indicates toggle state for toggle buttons
|
|
189
182
|
- `role` - Automatically set to "button" or "link" based on props
|
|
190
183
|
|
|
184
|
+
## Behaviour Inside Popovers
|
|
185
|
+
|
|
186
|
+
Like `Button`, an `ItemButton` press inside an open popover **dismisses
|
|
187
|
+
that popover** by default — popovers are transient surfaces and any action
|
|
188
|
+
inside them should close them. Modals/trays/fullscreen Dialogs are not
|
|
189
|
+
affected.
|
|
190
|
+
|
|
191
|
+
### Opt-outs
|
|
192
|
+
|
|
193
|
+
- **Automatic for popover triggers** — `MenuTrigger`, `DialogTrigger
|
|
194
|
+
type="popover"`, and the picker components (`FilterPicker`, `Picker`,
|
|
195
|
+
`ComboBox`, `Select`) mark their trigger ItemButtons with
|
|
196
|
+
`data-popover-trigger` so they don't dismiss the popover they themselves
|
|
197
|
+
live in.
|
|
198
|
+
- **Manual via `data-popover-keep`** — add to the ItemButton (toggle) or
|
|
199
|
+
any ancestor (whole subtree):
|
|
200
|
+
```jsx
|
|
201
|
+
<ItemButton data-popover-keep onPress={() => setMode((m) => !m)}>
|
|
202
|
+
Toggle Mode
|
|
203
|
+
</ItemButton>
|
|
204
|
+
```
|
|
205
|
+
- **Custom non-Cube triggers** — call `useDismissParentPopover()` directly
|
|
206
|
+
if you build a control on top of something other than `Button` /
|
|
207
|
+
`ItemButton`.
|
|
208
|
+
|
|
209
|
+
The dismiss is dispatched via the EventBus, which defers with `setTimeout(0)`
|
|
210
|
+
— so synchronous `onPress` handlers (and the React state updates they
|
|
211
|
+
trigger) flush BEFORE the popover closes. This makes the "open a hoisted
|
|
212
|
+
modal from a popover footer" pattern work without flicker: the modal mounts
|
|
213
|
+
first, then the popover closes behind it.
|
|
214
|
+
|
|
191
215
|
## Best Practices
|
|
192
216
|
|
|
193
217
|
1. **Do**: Use clear, action-oriented text
|
|
218
|
+
|
|
194
219
|
```jsx
|
|
195
220
|
<ItemButton onPress={handleSave} type="primary">
|
|
196
221
|
Save Changes
|
|
@@ -198,6 +223,7 @@ Actions automatically inherit the parent button's `type` prop and adjust their s
|
|
|
198
223
|
```
|
|
199
224
|
|
|
200
225
|
2. **Do**: Add hotkeys for frequently used actions
|
|
226
|
+
|
|
201
227
|
```jsx
|
|
202
228
|
<ItemButton hotkeys="cmd+s" onPress={handleSave}>
|
|
203
229
|
Save Document
|
|
@@ -205,6 +231,7 @@ Actions automatically inherit the parent button's `type` prop and adjust their s
|
|
|
205
231
|
```
|
|
206
232
|
|
|
207
233
|
3. **Do**: Use appropriate button types for forms
|
|
234
|
+
|
|
208
235
|
```jsx
|
|
209
236
|
<ItemButton htmlType="submit" type="primary">
|
|
210
237
|
Submit Form
|
|
@@ -212,8 +239,9 @@ Actions automatically inherit the parent button's `type` prop and adjust their s
|
|
|
212
239
|
```
|
|
213
240
|
|
|
214
241
|
4. **Do**: Use `ItemButton.Action` for inline actions
|
|
242
|
+
|
|
215
243
|
```jsx
|
|
216
|
-
<ItemButton
|
|
244
|
+
<ItemButton
|
|
217
245
|
icon={<IconFile />}
|
|
218
246
|
actions={
|
|
219
247
|
<>
|
|
@@ -228,15 +256,21 @@ Actions automatically inherit the parent button's `type` prop and adjust their s
|
|
|
228
256
|
```
|
|
229
257
|
|
|
230
258
|
5. **Don't**: Use vague or unclear button text
|
|
259
|
+
|
|
231
260
|
```jsx
|
|
232
|
-
{
|
|
233
|
-
|
|
261
|
+
{
|
|
262
|
+
/* Avoid this - unclear what "OK" does */
|
|
263
|
+
}
|
|
264
|
+
<ItemButton onPress={handleAction}>OK</ItemButton>;
|
|
234
265
|
```
|
|
235
266
|
|
|
236
267
|
6. **Don't**: Add too many actions (limit to 2-3 for clarity)
|
|
268
|
+
|
|
237
269
|
```jsx
|
|
238
|
-
{
|
|
239
|
-
|
|
270
|
+
{
|
|
271
|
+
/* Avoid this - too many action buttons */
|
|
272
|
+
}
|
|
273
|
+
<ItemButton
|
|
240
274
|
actions={
|
|
241
275
|
<>
|
|
242
276
|
<ItemButton.Action icon={<IconEdit />} aria-label="Edit" />
|
|
@@ -247,13 +281,16 @@ Actions automatically inherit the parent button's `type` prop and adjust their s
|
|
|
247
281
|
}
|
|
248
282
|
>
|
|
249
283
|
Button with too many actions
|
|
250
|
-
</ItemButton
|
|
284
|
+
</ItemButton>;
|
|
251
285
|
```
|
|
252
286
|
|
|
253
287
|
7. **Don't**: Overcrowd buttons with too many visual elements
|
|
288
|
+
|
|
254
289
|
```jsx
|
|
255
|
-
{
|
|
256
|
-
|
|
290
|
+
{
|
|
291
|
+
/* Avoid this - too many competing elements */
|
|
292
|
+
}
|
|
293
|
+
<ItemButton
|
|
257
294
|
icon={<IconA />}
|
|
258
295
|
rightIcon={<IconB />}
|
|
259
296
|
prefix="Pre"
|
|
@@ -261,7 +298,7 @@ Actions automatically inherit the parent button's `type` prop and adjust their s
|
|
|
261
298
|
description="Long description"
|
|
262
299
|
>
|
|
263
300
|
Overcrowded Button
|
|
264
|
-
</ItemButton
|
|
301
|
+
</ItemButton>;
|
|
265
302
|
```
|
|
266
303
|
|
|
267
304
|
8. **Accessibility**: Always ensure buttons have clear, descriptive labels, proper keyboard support, and provide `aria-label` for action buttons
|
|
@@ -164,6 +164,27 @@ Each `Tab` renders an [Item](../content/Item.md) internally, so it inherits most
|
|
|
164
164
|
</Tabs>
|
|
165
165
|
```
|
|
166
166
|
|
|
167
|
+
#### Icon-only tabs
|
|
168
|
+
|
|
169
|
+
Omit `title` to render an icon-only tab. Always provide an `aria-label` (and typically a `tooltip`) so the tab remains accessible. Pairs well with `placement="left" | "right"` and `tabListPadding` for a compact vertical strip.
|
|
170
|
+
|
|
171
|
+
```jsx
|
|
172
|
+
<Tabs placement="left" tabListPadding="1x" defaultActiveKey="overview">
|
|
173
|
+
<Tab
|
|
174
|
+
key="overview"
|
|
175
|
+
icon={<DatabaseIcon />}
|
|
176
|
+
aria-label="Overview"
|
|
177
|
+
tooltip={{ title: 'Overview', placement: 'right' }}
|
|
178
|
+
/>
|
|
179
|
+
<Tab
|
|
180
|
+
key="settings"
|
|
181
|
+
icon={<SettingsIcon />}
|
|
182
|
+
aria-label="Settings"
|
|
183
|
+
tooltip={{ title: 'Settings', placement: 'right' }}
|
|
184
|
+
/>
|
|
185
|
+
</Tabs>
|
|
186
|
+
```
|
|
187
|
+
|
|
167
188
|
#### Tab with constrained width
|
|
168
189
|
|
|
169
190
|
The `width` style prop (inherited from Item) is useful for file-style tabs where titles may be long.
|
|
@@ -227,7 +248,7 @@ Inherits all props from `ItemButton` except `shape` (always sharp).
|
|
|
227
248
|
|
|
228
249
|
In addition, Tab accepts these tab-specific props:
|
|
229
250
|
|
|
230
|
-
- **`title`** `ReactNode` — Content displayed in the tab button (
|
|
251
|
+
- **`title`** `ReactNode` — Content displayed in the tab button. Optional for icon-only tabs (`icon` / `rightIcon`); when omitted, supply an `aria-label` (and typically a `tooltip`) so the tab has an accessible name.
|
|
231
252
|
- **`isDisabled`** `boolean` — Disables the tab
|
|
232
253
|
- **`size`** `TabSize` — Override tab size for this tab
|
|
233
254
|
- **`type`** `TabType` — Override tab type for this tab
|