@cube-dev/ui-kit 0.132.0 → 0.134.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 +23 -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 +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/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.d.ts +28 -28
- 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 +115 -56
- package/dist/components/content/Tree/Tree.js.map +1 -1
- package/dist/components/content/Tree/TreeNode.js +3 -72
- package/dist/components/content/Tree/TreeNode.js.map +1 -1
- package/dist/components/content/Tree/styled.js +26 -4
- package/dist/components/content/Tree/styled.js.map +1 -1
- package/dist/components/content/Tree/tree-index.js +1 -1
- package/dist/components/content/Tree/types.d.ts +0 -17
- 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 +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ComboBox/ComboBox.js +1 -1
- package/dist/components/fields/DatePicker/DateInput.js +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
- package/dist/components/fields/DatePicker/DatePicker.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.js +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +1 -1
- package/dist/components/fields/DatePicker/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 +5 -3
- package/dist/components/fields/FilterListBox/FilterListBox.js.map +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.js +4 -2
- 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 +24 -0
- package/dist/components/fields/ListBox/DraggableListBox.js.map +1 -0
- package/dist/components/fields/ListBox/ListBox.d.ts +11 -0
- package/dist/components/fields/ListBox/ListBox.js +153 -38
- 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 -1
- package/dist/components/fields/RadioGroup/Radio.js +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +1 -1
- package/dist/components/fields/Select/Select.js +1 -1
- package/dist/components/fields/Slider/Gradation.js +1 -1
- package/dist/components/fields/Slider/HueSlider.js +1 -1
- package/dist/components/fields/Slider/RangeSlider.js +1 -1
- package/dist/components/fields/Slider/Slider.js +1 -1
- package/dist/components/fields/Slider/SliderBase.js +1 -1
- package/dist/components/fields/Slider/SliderThumb.js +1 -1
- package/dist/components/fields/Slider/SliderTrack.js +1 -1
- package/dist/components/fields/Slider/elements.js +1 -1
- package/dist/components/fields/Slider/index.js +1 -1
- package/dist/components/fields/Switch/Switch.js +1 -1
- package/dist/components/fields/TextArea/TextArea.js +1 -1
- package/dist/components/fields/TextInput/TextInput.js +1 -1
- package/dist/components/fields/TextInput/TextInputBase.js +1 -1
- package/dist/components/fields/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.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/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 +11 -60
- package/dist/components/navigation/Tabs/DraggableTabList.js.map +1 -1
- package/dist/components/navigation/Tabs/EditableTitle.js +1 -1
- package/dist/components/navigation/Tabs/TabButton.js +3 -10
- 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 +4 -2
- package/dist/components/navigation/Tabs/TabPicker.js.map +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +4 -2
- package/dist/components/navigation/Tabs/Tabs.js.map +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/styled.js +1 -1
- package/dist/components/navigation/Tabs/types.d.ts +2 -0
- 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.js +1 -1
- package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
- package/dist/components/overlays/Dialog/DialogForm.js +1 -1
- package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
- package/dist/components/overlays/Dialog/context.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
- package/dist/components/overlays/Modal/Modal.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 +142 -0
- package/dist/components/shared/DraggableCollection.js.map +1 -0
- 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.d.ts +12 -0
- package/dist/icons/GripVerticalIcon.js +11 -0
- package/dist/icons/GripVerticalIcon.js.map +1 -0
- 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/index.d.ts +1 -0
- 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/shadows.js +1 -1
- package/dist/tokens/sizes.js +1 -1
- package/dist/tokens/spacing.js +1 -1
- package/dist/tokens/typography.js +1 -1
- package/dist/utils/ResizeSensor.js +1 -1
- package/dist/utils/is-dev-env.js +1 -1
- package/dist/utils/modules.js +1 -1
- package/dist/utils/promise.js +1 -1
- package/dist/utils/raf.js +1 -1
- package/dist/utils/random.js +1 -1
- package/dist/utils/range.js +1 -1
- package/dist/utils/react/RenderCache.js +1 -1
- package/dist/utils/react/Slots.js +1 -1
- package/dist/utils/react/chain.js +1 -1
- package/dist/utils/react/forwardRefWithGenerics.js +1 -1
- package/dist/utils/react/index.js +1 -1
- package/dist/utils/react/interactions.js +1 -1
- package/dist/utils/react/isTextOnly.js +1 -1
- package/dist/utils/react/mapProps.js +1 -1
- package/dist/utils/react/mergeProps.js +1 -1
- package/dist/utils/react/nullableValue.js +1 -1
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/sharedStore.js +1 -1
- package/dist/utils/react/useCombinedRefs.js +1 -1
- package/dist/utils/react/useControlledFocusVisible.js +1 -1
- package/dist/utils/react/useEventBus.js +1 -1
- package/dist/utils/react/useId.js +1 -1
- package/dist/utils/react/useIsDarwin.js +1 -1
- package/dist/utils/react/useKeySymbols.js +1 -1
- package/dist/utils/react/useLayoutEffect.js +1 -1
- package/dist/utils/react/useLocalStorage.js +1 -1
- package/dist/utils/react/useMergeStyles.js +1 -1
- package/dist/utils/react/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/content/Tree.md +0 -25
- package/docs/components/fields/FilterPicker.md +27 -0
- package/docs/components/fields/ListBox.md +33 -0
- package/docs/components/navigation/Tabs.md +127 -51
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.134.0 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { CONTAINER_STYLES, filterBaseProps, keyframes, tasty } from "@tenphi/tasty";
|
|
4
4
|
import { forwardRef } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.134.0 | Cube Dev Team */
|
|
2
2
|
import { RendererPrism, ensureYamlSqlExtensions } from "./prismSetup.js";
|
|
3
3
|
import { CONTAINER_STYLES, tasty } from "@tenphi/tasty";
|
|
4
4
|
import { forwardRef } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.134.0 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeProps } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { wrapNodeIfPlain } from "../../../utils/react/wrapNodeIfPlain.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.134.0 | Cube Dev Team */
|
|
2
2
|
import { Space } from "../../layout/Space.js";
|
|
3
3
|
import { Grid } from "../../layout/Grid.js";
|
|
4
4
|
import { Flow } from "../../layout/Flow.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.134.0 | Cube Dev Team */
|
|
2
2
|
import { _Item } from "../Item/Item.js";
|
|
3
3
|
import { CloseIcon } from "../../../icons/CloseIcon.js";
|
|
4
4
|
import { tasty } from "@tenphi/tasty";
|
|
@@ -141,7 +141,7 @@ declare const MinorText: react.ComponentType<{
|
|
|
141
141
|
accessKey?: string | undefined;
|
|
142
142
|
autoCapitalize?: (string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
143
143
|
autoFocus?: boolean | undefined;
|
|
144
|
-
contentEditable?:
|
|
144
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
145
145
|
contextMenu?: string | undefined;
|
|
146
146
|
dir?: string | undefined;
|
|
147
147
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -174,7 +174,7 @@ declare const MinorText: react.ComponentType<{
|
|
|
174
174
|
popoverTargetAction?: "hide" | "toggle" | "show" | undefined;
|
|
175
175
|
popoverTarget?: string | undefined;
|
|
176
176
|
inert?: boolean | undefined;
|
|
177
|
-
inputMode?: "search" | "text" | "none" | "
|
|
177
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
178
178
|
is?: string | undefined;
|
|
179
179
|
exportparts?: string | undefined;
|
|
180
180
|
part?: string | undefined;
|
|
@@ -190,7 +190,7 @@ declare const MinorText: react.ComponentType<{
|
|
|
190
190
|
"aria-colindextext"?: string | undefined;
|
|
191
191
|
"aria-colspan"?: number | undefined;
|
|
192
192
|
"aria-controls"?: string | undefined;
|
|
193
|
-
"aria-current"?: boolean | "time" | "step" | "page" | "
|
|
193
|
+
"aria-current"?: boolean | "time" | "step" | "page" | "true" | "false" | "location" | "date" | undefined;
|
|
194
194
|
"aria-describedby"?: string | undefined;
|
|
195
195
|
"aria-description"?: string | undefined;
|
|
196
196
|
"aria-details"?: string | undefined;
|
|
@@ -421,7 +421,7 @@ declare const MinorText: react.ComponentType<{
|
|
|
421
421
|
nowrap?: boolean | undefined;
|
|
422
422
|
ellipsis?: boolean | undefined;
|
|
423
423
|
qaVal?: string | number | undefined;
|
|
424
|
-
element?: `A${string}` | `
|
|
424
|
+
element?: `A${string}` | `B${string}` | `C${string}` | `D${string}` | `E${string}` | `F${string}` | `G${string}` | `H${string}` | `I${string}` | `J${string}` | `K${string}` | `L${string}` | `M${string}` | `N${string}` | `O${string}` | `P${string}` | `Q${string}` | `R${string}` | `S${string}` | `T${string}` | `U${string}` | `V${string}` | `W${string}` | `X${string}` | `Y${string}` | `Z${string}` | undefined;
|
|
425
425
|
styles?: _tenphi_tasty0.Styles | undefined;
|
|
426
426
|
breakpoints?: number[] | undefined;
|
|
427
427
|
block?: boolean | undefined;
|
|
@@ -550,7 +550,7 @@ declare const DangerText: react.ComponentType<{
|
|
|
550
550
|
accessKey?: string | undefined;
|
|
551
551
|
autoCapitalize?: (string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
552
552
|
autoFocus?: boolean | undefined;
|
|
553
|
-
contentEditable?:
|
|
553
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
554
554
|
contextMenu?: string | undefined;
|
|
555
555
|
dir?: string | undefined;
|
|
556
556
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -583,7 +583,7 @@ declare const DangerText: react.ComponentType<{
|
|
|
583
583
|
popoverTargetAction?: "hide" | "toggle" | "show" | undefined;
|
|
584
584
|
popoverTarget?: string | undefined;
|
|
585
585
|
inert?: boolean | undefined;
|
|
586
|
-
inputMode?: "search" | "text" | "none" | "
|
|
586
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
587
587
|
is?: string | undefined;
|
|
588
588
|
exportparts?: string | undefined;
|
|
589
589
|
part?: string | undefined;
|
|
@@ -599,7 +599,7 @@ declare const DangerText: react.ComponentType<{
|
|
|
599
599
|
"aria-colindextext"?: string | undefined;
|
|
600
600
|
"aria-colspan"?: number | undefined;
|
|
601
601
|
"aria-controls"?: string | undefined;
|
|
602
|
-
"aria-current"?: boolean | "time" | "step" | "page" | "
|
|
602
|
+
"aria-current"?: boolean | "time" | "step" | "page" | "true" | "false" | "location" | "date" | undefined;
|
|
603
603
|
"aria-describedby"?: string | undefined;
|
|
604
604
|
"aria-description"?: string | undefined;
|
|
605
605
|
"aria-details"?: string | undefined;
|
|
@@ -830,7 +830,7 @@ declare const DangerText: react.ComponentType<{
|
|
|
830
830
|
nowrap?: boolean | undefined;
|
|
831
831
|
ellipsis?: boolean | undefined;
|
|
832
832
|
qaVal?: string | number | undefined;
|
|
833
|
-
element?: `A${string}` | `
|
|
833
|
+
element?: `A${string}` | `B${string}` | `C${string}` | `D${string}` | `E${string}` | `F${string}` | `G${string}` | `H${string}` | `I${string}` | `J${string}` | `K${string}` | `L${string}` | `M${string}` | `N${string}` | `O${string}` | `P${string}` | `Q${string}` | `R${string}` | `S${string}` | `T${string}` | `U${string}` | `V${string}` | `W${string}` | `X${string}` | `Y${string}` | `Z${string}` | undefined;
|
|
834
834
|
styles?: _tenphi_tasty0.Styles | undefined;
|
|
835
835
|
breakpoints?: number[] | undefined;
|
|
836
836
|
block?: boolean | undefined;
|
|
@@ -959,7 +959,7 @@ declare const SuccessText: react.ComponentType<{
|
|
|
959
959
|
accessKey?: string | undefined;
|
|
960
960
|
autoCapitalize?: (string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
961
961
|
autoFocus?: boolean | undefined;
|
|
962
|
-
contentEditable?:
|
|
962
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
963
963
|
contextMenu?: string | undefined;
|
|
964
964
|
dir?: string | undefined;
|
|
965
965
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -992,7 +992,7 @@ declare const SuccessText: react.ComponentType<{
|
|
|
992
992
|
popoverTargetAction?: "hide" | "toggle" | "show" | undefined;
|
|
993
993
|
popoverTarget?: string | undefined;
|
|
994
994
|
inert?: boolean | undefined;
|
|
995
|
-
inputMode?: "search" | "text" | "none" | "
|
|
995
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
996
996
|
is?: string | undefined;
|
|
997
997
|
exportparts?: string | undefined;
|
|
998
998
|
part?: string | undefined;
|
|
@@ -1008,7 +1008,7 @@ declare const SuccessText: react.ComponentType<{
|
|
|
1008
1008
|
"aria-colindextext"?: string | undefined;
|
|
1009
1009
|
"aria-colspan"?: number | undefined;
|
|
1010
1010
|
"aria-controls"?: string | undefined;
|
|
1011
|
-
"aria-current"?: boolean | "time" | "step" | "page" | "
|
|
1011
|
+
"aria-current"?: boolean | "time" | "step" | "page" | "true" | "false" | "location" | "date" | undefined;
|
|
1012
1012
|
"aria-describedby"?: string | undefined;
|
|
1013
1013
|
"aria-description"?: string | undefined;
|
|
1014
1014
|
"aria-details"?: string | undefined;
|
|
@@ -1239,7 +1239,7 @@ declare const SuccessText: react.ComponentType<{
|
|
|
1239
1239
|
nowrap?: boolean | undefined;
|
|
1240
1240
|
ellipsis?: boolean | undefined;
|
|
1241
1241
|
qaVal?: string | number | undefined;
|
|
1242
|
-
element?: `A${string}` | `
|
|
1242
|
+
element?: `A${string}` | `B${string}` | `C${string}` | `D${string}` | `E${string}` | `F${string}` | `G${string}` | `H${string}` | `I${string}` | `J${string}` | `K${string}` | `L${string}` | `M${string}` | `N${string}` | `O${string}` | `P${string}` | `Q${string}` | `R${string}` | `S${string}` | `T${string}` | `U${string}` | `V${string}` | `W${string}` | `X${string}` | `Y${string}` | `Z${string}` | undefined;
|
|
1243
1243
|
styles?: _tenphi_tasty0.Styles | undefined;
|
|
1244
1244
|
breakpoints?: number[] | undefined;
|
|
1245
1245
|
block?: boolean | undefined;
|
|
@@ -1368,7 +1368,7 @@ declare const StrongText: react.ComponentType<{
|
|
|
1368
1368
|
accessKey?: string | undefined;
|
|
1369
1369
|
autoCapitalize?: (string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
1370
1370
|
autoFocus?: boolean | undefined;
|
|
1371
|
-
contentEditable?:
|
|
1371
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
1372
1372
|
contextMenu?: string | undefined;
|
|
1373
1373
|
dir?: string | undefined;
|
|
1374
1374
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -1401,7 +1401,7 @@ declare const StrongText: react.ComponentType<{
|
|
|
1401
1401
|
popoverTargetAction?: "hide" | "toggle" | "show" | undefined;
|
|
1402
1402
|
popoverTarget?: string | undefined;
|
|
1403
1403
|
inert?: boolean | undefined;
|
|
1404
|
-
inputMode?: "search" | "text" | "none" | "
|
|
1404
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1405
1405
|
is?: string | undefined;
|
|
1406
1406
|
exportparts?: string | undefined;
|
|
1407
1407
|
part?: string | undefined;
|
|
@@ -1417,7 +1417,7 @@ declare const StrongText: react.ComponentType<{
|
|
|
1417
1417
|
"aria-colindextext"?: string | undefined;
|
|
1418
1418
|
"aria-colspan"?: number | undefined;
|
|
1419
1419
|
"aria-controls"?: string | undefined;
|
|
1420
|
-
"aria-current"?: boolean | "time" | "step" | "page" | "
|
|
1420
|
+
"aria-current"?: boolean | "time" | "step" | "page" | "true" | "false" | "location" | "date" | undefined;
|
|
1421
1421
|
"aria-describedby"?: string | undefined;
|
|
1422
1422
|
"aria-description"?: string | undefined;
|
|
1423
1423
|
"aria-details"?: string | undefined;
|
|
@@ -1648,7 +1648,7 @@ declare const StrongText: react.ComponentType<{
|
|
|
1648
1648
|
nowrap?: boolean | undefined;
|
|
1649
1649
|
ellipsis?: boolean | undefined;
|
|
1650
1650
|
qaVal?: string | number | undefined;
|
|
1651
|
-
element?: `A${string}` | `
|
|
1651
|
+
element?: `A${string}` | `B${string}` | `C${string}` | `D${string}` | `E${string}` | `F${string}` | `G${string}` | `H${string}` | `I${string}` | `J${string}` | `K${string}` | `L${string}` | `M${string}` | `N${string}` | `O${string}` | `P${string}` | `Q${string}` | `R${string}` | `S${string}` | `T${string}` | `U${string}` | `V${string}` | `W${string}` | `X${string}` | `Y${string}` | `Z${string}` | undefined;
|
|
1652
1652
|
styles?: _tenphi_tasty0.Styles | undefined;
|
|
1653
1653
|
breakpoints?: number[] | undefined;
|
|
1654
1654
|
block?: boolean | undefined;
|
|
@@ -1777,7 +1777,7 @@ declare const EmphasisText: react.ComponentType<{
|
|
|
1777
1777
|
accessKey?: string | undefined;
|
|
1778
1778
|
autoCapitalize?: (string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
1779
1779
|
autoFocus?: boolean | undefined;
|
|
1780
|
-
contentEditable?:
|
|
1780
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
1781
1781
|
contextMenu?: string | undefined;
|
|
1782
1782
|
dir?: string | undefined;
|
|
1783
1783
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -1810,7 +1810,7 @@ declare const EmphasisText: react.ComponentType<{
|
|
|
1810
1810
|
popoverTargetAction?: "hide" | "toggle" | "show" | undefined;
|
|
1811
1811
|
popoverTarget?: string | undefined;
|
|
1812
1812
|
inert?: boolean | undefined;
|
|
1813
|
-
inputMode?: "search" | "text" | "none" | "
|
|
1813
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
1814
1814
|
is?: string | undefined;
|
|
1815
1815
|
exportparts?: string | undefined;
|
|
1816
1816
|
part?: string | undefined;
|
|
@@ -1826,7 +1826,7 @@ declare const EmphasisText: react.ComponentType<{
|
|
|
1826
1826
|
"aria-colindextext"?: string | undefined;
|
|
1827
1827
|
"aria-colspan"?: number | undefined;
|
|
1828
1828
|
"aria-controls"?: string | undefined;
|
|
1829
|
-
"aria-current"?: boolean | "time" | "step" | "page" | "
|
|
1829
|
+
"aria-current"?: boolean | "time" | "step" | "page" | "true" | "false" | "location" | "date" | undefined;
|
|
1830
1830
|
"aria-describedby"?: string | undefined;
|
|
1831
1831
|
"aria-description"?: string | undefined;
|
|
1832
1832
|
"aria-details"?: string | undefined;
|
|
@@ -2057,7 +2057,7 @@ declare const EmphasisText: react.ComponentType<{
|
|
|
2057
2057
|
nowrap?: boolean | undefined;
|
|
2058
2058
|
ellipsis?: boolean | undefined;
|
|
2059
2059
|
qaVal?: string | number | undefined;
|
|
2060
|
-
element?: `A${string}` | `
|
|
2060
|
+
element?: `A${string}` | `B${string}` | `C${string}` | `D${string}` | `E${string}` | `F${string}` | `G${string}` | `H${string}` | `I${string}` | `J${string}` | `K${string}` | `L${string}` | `M${string}` | `N${string}` | `O${string}` | `P${string}` | `Q${string}` | `R${string}` | `S${string}` | `T${string}` | `U${string}` | `V${string}` | `W${string}` | `X${string}` | `Y${string}` | `Z${string}` | undefined;
|
|
2061
2061
|
styles?: _tenphi_tasty0.Styles | undefined;
|
|
2062
2062
|
breakpoints?: number[] | undefined;
|
|
2063
2063
|
block?: boolean | undefined;
|
|
@@ -2186,7 +2186,7 @@ declare const PlaceholderText: react.ComponentType<{
|
|
|
2186
2186
|
accessKey?: string | undefined;
|
|
2187
2187
|
autoCapitalize?: (string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
2188
2188
|
autoFocus?: boolean | undefined;
|
|
2189
|
-
contentEditable?:
|
|
2189
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
2190
2190
|
contextMenu?: string | undefined;
|
|
2191
2191
|
dir?: string | undefined;
|
|
2192
2192
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -2219,7 +2219,7 @@ declare const PlaceholderText: react.ComponentType<{
|
|
|
2219
2219
|
popoverTargetAction?: "hide" | "toggle" | "show" | undefined;
|
|
2220
2220
|
popoverTarget?: string | undefined;
|
|
2221
2221
|
inert?: boolean | undefined;
|
|
2222
|
-
inputMode?: "search" | "text" | "none" | "
|
|
2222
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
2223
2223
|
is?: string | undefined;
|
|
2224
2224
|
exportparts?: string | undefined;
|
|
2225
2225
|
part?: string | undefined;
|
|
@@ -2235,7 +2235,7 @@ declare const PlaceholderText: react.ComponentType<{
|
|
|
2235
2235
|
"aria-colindextext"?: string | undefined;
|
|
2236
2236
|
"aria-colspan"?: number | undefined;
|
|
2237
2237
|
"aria-controls"?: string | undefined;
|
|
2238
|
-
"aria-current"?: boolean | "time" | "step" | "page" | "
|
|
2238
|
+
"aria-current"?: boolean | "time" | "step" | "page" | "true" | "false" | "location" | "date" | undefined;
|
|
2239
2239
|
"aria-describedby"?: string | undefined;
|
|
2240
2240
|
"aria-description"?: string | undefined;
|
|
2241
2241
|
"aria-details"?: string | undefined;
|
|
@@ -2466,7 +2466,7 @@ declare const PlaceholderText: react.ComponentType<{
|
|
|
2466
2466
|
nowrap?: boolean | undefined;
|
|
2467
2467
|
ellipsis?: boolean | undefined;
|
|
2468
2468
|
qaVal?: string | number | undefined;
|
|
2469
|
-
element?: `A${string}` | `
|
|
2469
|
+
element?: `A${string}` | `B${string}` | `C${string}` | `D${string}` | `E${string}` | `F${string}` | `G${string}` | `H${string}` | `I${string}` | `J${string}` | `K${string}` | `L${string}` | `M${string}` | `N${string}` | `O${string}` | `P${string}` | `Q${string}` | `R${string}` | `S${string}` | `T${string}` | `U${string}` | `V${string}` | `W${string}` | `X${string}` | `Y${string}` | `Z${string}` | undefined;
|
|
2470
2470
|
styles?: _tenphi_tasty0.Styles | undefined;
|
|
2471
2471
|
breakpoints?: number[] | undefined;
|
|
2472
2472
|
block?: boolean | undefined;
|
|
@@ -2595,7 +2595,7 @@ declare const HighlightText: react.ComponentType<{
|
|
|
2595
2595
|
accessKey?: string | undefined;
|
|
2596
2596
|
autoCapitalize?: (string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
2597
2597
|
autoFocus?: boolean | undefined;
|
|
2598
|
-
contentEditable?:
|
|
2598
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
2599
2599
|
contextMenu?: string | undefined;
|
|
2600
2600
|
dir?: string | undefined;
|
|
2601
2601
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -2628,7 +2628,7 @@ declare const HighlightText: react.ComponentType<{
|
|
|
2628
2628
|
popoverTargetAction?: "hide" | "toggle" | "show" | undefined;
|
|
2629
2629
|
popoverTarget?: string | undefined;
|
|
2630
2630
|
inert?: boolean | undefined;
|
|
2631
|
-
inputMode?: "search" | "text" | "none" | "
|
|
2631
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
2632
2632
|
is?: string | undefined;
|
|
2633
2633
|
exportparts?: string | undefined;
|
|
2634
2634
|
part?: string | undefined;
|
|
@@ -2644,7 +2644,7 @@ declare const HighlightText: react.ComponentType<{
|
|
|
2644
2644
|
"aria-colindextext"?: string | undefined;
|
|
2645
2645
|
"aria-colspan"?: number | undefined;
|
|
2646
2646
|
"aria-controls"?: string | undefined;
|
|
2647
|
-
"aria-current"?: boolean | "time" | "step" | "page" | "
|
|
2647
|
+
"aria-current"?: boolean | "time" | "step" | "page" | "true" | "false" | "location" | "date" | undefined;
|
|
2648
2648
|
"aria-describedby"?: string | undefined;
|
|
2649
2649
|
"aria-description"?: string | undefined;
|
|
2650
2650
|
"aria-details"?: string | undefined;
|
|
@@ -2875,7 +2875,7 @@ declare const HighlightText: react.ComponentType<{
|
|
|
2875
2875
|
nowrap?: boolean | undefined;
|
|
2876
2876
|
ellipsis?: boolean | undefined;
|
|
2877
2877
|
qaVal?: string | number | undefined;
|
|
2878
|
-
element?: `A${string}` | `
|
|
2878
|
+
element?: `A${string}` | `B${string}` | `C${string}` | `D${string}` | `E${string}` | `F${string}` | `G${string}` | `H${string}` | `I${string}` | `J${string}` | `K${string}` | `L${string}` | `M${string}` | `N${string}` | `O${string}` | `P${string}` | `Q${string}` | `R${string}` | `S${string}` | `T${string}` | `U${string}` | `V${string}` | `W${string}` | `X${string}` | `Y${string}` | `Z${string}` | undefined;
|
|
2879
2879
|
styles?: _tenphi_tasty0.Styles | undefined;
|
|
2880
2880
|
breakpoints?: number[] | undefined;
|
|
2881
2881
|
block?: boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.134.0 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../utils/styles.js";
|
|
3
3
|
import { useSlotProps } from "../../utils/react/Slots.js";
|
|
4
4
|
import { BASE_STYLES, COLOR_STYLES, TEXT_STYLES, filterBaseProps, tasty } from "@tenphi/tasty";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.134.0 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { TEXT_PROP_MAP, _Text } from "../Text.js";
|
|
4
4
|
import { highlightText } from "../highlightText.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.134.0 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../utils/styles.js";
|
|
3
3
|
import { useSlotProps } from "../../utils/react/Slots.js";
|
|
4
4
|
import { TEXT_PROP_MAP } from "./Text.js";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.134.0 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
|
-
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
4
3
|
import { mergeRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
5
4
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
6
5
|
import { SIZES, SIZE_NAME_TO_KEY } from "../../../tokens/sizes.js";
|
|
7
|
-
import { TreeElement } from "./styled.js";
|
|
6
|
+
import { TreeElement, TreeScrollContainer } from "./styled.js";
|
|
8
7
|
import { buildTreeIndex } from "./tree-index.js";
|
|
9
8
|
import { TreeNode } from "./TreeNode.js";
|
|
10
9
|
import { useCheckboxTree } from "./use-checkbox-tree.js";
|
|
@@ -76,9 +75,10 @@ function resolveSelectionMode(selectionMode, isSelectable) {
|
|
|
76
75
|
return "single";
|
|
77
76
|
}
|
|
78
77
|
function TreeBase(props, ref) {
|
|
79
|
-
const { treeData, isCheckable = false, isSelectable, selectionMode: selectionModeProp, size = "medium", shape = "default", containerPadding = 4, isDisabled = false, defaultExpandedKeys, expandedKeys, autoExpandParent = false, defaultCheckedKeys, checkedKeys, defaultSelectedKeys, selectedKeys, height, loadData, onExpand, onCheck, onSelect, itemProps, rowStyles, ariaLabel, qa,
|
|
78
|
+
const { treeData, isCheckable = false, isSelectable, selectionMode: selectionModeProp, size = "medium", shape = "default", containerPadding = 4, isDisabled = false, defaultExpandedKeys, expandedKeys, autoExpandParent = false, defaultCheckedKeys, checkedKeys, defaultSelectedKeys, selectedKeys, height, loadData, onExpand, onCheck, onSelect, itemProps, rowStyles, ariaLabel, qa, menu: treeMenu, contextMenu: treeContextMenu, onAction: treeOnAction, menuTriggerProps, menuProps, ...otherProps } = props;
|
|
80
79
|
const baseStyles = extractStyles(otherProps, OUTER_STYLES);
|
|
81
80
|
const treeRef = useRef(null);
|
|
81
|
+
const scrollRef = useRef(null);
|
|
82
82
|
const treeIndex = useMemo(() => buildTreeIndex(treeData), [treeData]);
|
|
83
83
|
const nodesByKey = treeIndex.byKey;
|
|
84
84
|
const parentOf = treeIndex.parentOf;
|
|
@@ -217,7 +217,7 @@ function TreeBase(props, ref) {
|
|
|
217
217
|
visibleNodesRef.current = visibleNodes;
|
|
218
218
|
const rowVirtualizer = useVirtualizer({
|
|
219
219
|
count: visibleNodes.length,
|
|
220
|
-
getScrollElement: () =>
|
|
220
|
+
getScrollElement: () => scrollRef.current,
|
|
221
221
|
getItemKey: (index) => {
|
|
222
222
|
return visibleNodesRef.current[index]?.key ?? index;
|
|
223
223
|
},
|
|
@@ -227,68 +227,127 @@ function TreeBase(props, ref) {
|
|
|
227
227
|
paddingStart: containerPadding,
|
|
228
228
|
paddingEnd: containerPadding
|
|
229
229
|
});
|
|
230
|
-
const
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
230
|
+
const treeStyle = useMemo(() => {
|
|
231
|
+
if (height == null) return void 0;
|
|
232
|
+
return { ["--tree-height"]: `${height}px` };
|
|
233
|
+
}, [height]);
|
|
234
|
+
const sizerStyle = useMemo(() => ({
|
|
235
|
+
position: "relative",
|
|
236
|
+
width: "100%",
|
|
237
|
+
height: `${rowVirtualizer.getTotalSize()}px`
|
|
238
|
+
}), [rowVirtualizer.getTotalSize()]);
|
|
239
|
+
/**
|
|
240
|
+
* Each scroll effect tracks its own "last scrolled" target instead
|
|
241
|
+
* of sharing one ref. A shared ref creates a feedback loop: keyboard
|
|
242
|
+
* nav updates the focused-key ref to the new row, and any subsequent
|
|
243
|
+
* `visibleNodes` change OR `selectedKeys` array-identity change
|
|
244
|
+
* (very common — `selectedKeys={[value]}` allocates a fresh array
|
|
245
|
+
* every parent render) re-runs the selectedKeys effect, which sees
|
|
246
|
+
* the ref no longer matches `selectedKeys[0]` and yanks the viewport
|
|
247
|
+
* back to the selected row. Two refs let each effect dedupe against
|
|
248
|
+
* its own intent only; the cost is at most one duplicate
|
|
249
|
+
* `scrollToIndex` call when click updates focus and selection in the
|
|
250
|
+
* same render (idempotent — both target the same index).
|
|
251
|
+
*/
|
|
252
|
+
const lastFocusedScrollRef = useRef(null);
|
|
253
|
+
const lastSelectedScrollRef = useRef(null);
|
|
254
|
+
/**
|
|
255
|
+
* Keep the focused row visible during keyboard navigation.
|
|
256
|
+
*
|
|
257
|
+
* Uses `rowVirtualizer.scrollToIndex` (instead of
|
|
258
|
+
* `querySelector + scrollIntoView`) so the scroll lands even when the
|
|
259
|
+
* target row is outside the virtualizer's currently rendered window.
|
|
260
|
+
* `align: 'auto'` only scrolls when needed, matching the prior
|
|
261
|
+
* `scrollIntoView({ block: 'nearest' })` behavior.
|
|
262
|
+
*/
|
|
238
263
|
useLayoutEffect(() => {
|
|
239
264
|
const focusedKey = state.selectionManager.focusedKey;
|
|
240
265
|
if (focusedKey == null) return;
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}, [state.selectionManager.focusedKey]);
|
|
266
|
+
if (lastFocusedScrollRef.current === focusedKey) return;
|
|
267
|
+
const index = visibleNodesRef.current.findIndex((n) => n.key === focusedKey);
|
|
268
|
+
if (index < 0) return;
|
|
269
|
+
rowVirtualizer.scrollToIndex(index, { align: "auto" });
|
|
270
|
+
lastFocusedScrollRef.current = focusedKey;
|
|
271
|
+
}, [state.selectionManager.focusedKey, rowVirtualizer]);
|
|
272
|
+
/**
|
|
273
|
+
* Scroll into view when controlled `selectedKeys` changes externally.
|
|
274
|
+
*
|
|
275
|
+
* Selection-manager `focusedKey` only updates on explicit user
|
|
276
|
+
* interaction (click / keyboard) — it does NOT track controlled
|
|
277
|
+
* `selectedKeys` prop changes. So when a parent updates the prop
|
|
278
|
+
* (e.g. opening a file from elsewhere), we need a separate effect
|
|
279
|
+
* to bring the row into view.
|
|
280
|
+
*
|
|
281
|
+
* Re-runs on `visibleNodes` so we retry once parents are expanded
|
|
282
|
+
* (the row is invisible to the virtualizer until then).
|
|
283
|
+
*/
|
|
284
|
+
useLayoutEffect(() => {
|
|
285
|
+
if (selectedKeys == null) return;
|
|
286
|
+
const target = selectedKeys[0];
|
|
287
|
+
if (target == null) return;
|
|
288
|
+
if (lastSelectedScrollRef.current === target) return;
|
|
289
|
+
const index = visibleNodes.findIndex((n) => String(n.key) === target);
|
|
290
|
+
if (index < 0) return;
|
|
291
|
+
rowVirtualizer.scrollToIndex(index, { align: "auto" });
|
|
292
|
+
lastSelectedScrollRef.current = target;
|
|
293
|
+
}, [
|
|
294
|
+
selectedKeys,
|
|
295
|
+
visibleNodes,
|
|
296
|
+
rowVirtualizer
|
|
297
|
+
]);
|
|
247
298
|
const mods = useMemo(() => ({
|
|
248
299
|
"has-height": height != null,
|
|
249
300
|
shape
|
|
250
301
|
}), [height, shape]);
|
|
302
|
+
const mergedScrollRef = useMemo(() => mergeRefs(ref, scrollRef), [ref, scrollRef]);
|
|
251
303
|
return /* @__PURE__ */ jsx(TreeElement, {
|
|
252
|
-
...
|
|
304
|
+
...gridProps,
|
|
305
|
+
ref: treeRef,
|
|
253
306
|
qa: qa ?? "Tree",
|
|
254
307
|
mods,
|
|
255
308
|
styles: baseStyles,
|
|
256
|
-
style:
|
|
257
|
-
children:
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
309
|
+
style: treeStyle,
|
|
310
|
+
children: /* @__PURE__ */ jsx(TreeScrollContainer, {
|
|
311
|
+
ref: mergedScrollRef,
|
|
312
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
313
|
+
role: "presentation",
|
|
314
|
+
style: sizerStyle,
|
|
315
|
+
children: rowVirtualizer.getVirtualItems().map((virtualItem) => {
|
|
316
|
+
const node = visibleNodes[virtualItem.index];
|
|
317
|
+
if (!node) return null;
|
|
318
|
+
const keyStr = String(node.key);
|
|
319
|
+
const data = nodesByKey.get(keyStr);
|
|
320
|
+
if (!data) return null;
|
|
321
|
+
return /* @__PURE__ */ jsx(TreeNode, {
|
|
322
|
+
node,
|
|
323
|
+
data,
|
|
324
|
+
state,
|
|
325
|
+
isCheckable,
|
|
326
|
+
isExpanded: state.expandedKeys.has(node.key),
|
|
327
|
+
isChecked: checkbox.checkedSet.has(keyStr),
|
|
328
|
+
isIndeterminate: checkbox.halfCheckedSet.has(keyStr),
|
|
329
|
+
isLoading: loadDataController.loadingKeys.has(keyStr),
|
|
330
|
+
size,
|
|
331
|
+
itemProps,
|
|
332
|
+
rowStyles,
|
|
333
|
+
virtualStyle: {
|
|
334
|
+
position: "absolute",
|
|
335
|
+
top: 0,
|
|
336
|
+
left: containerPadding,
|
|
337
|
+
right: containerPadding,
|
|
338
|
+
transform: `translateY(${virtualItem.start}px)`
|
|
339
|
+
},
|
|
340
|
+
virtualRef: rowVirtualizer.measureElement,
|
|
341
|
+
virtualIndex: virtualItem.index,
|
|
342
|
+
menu: treeMenu,
|
|
343
|
+
contextMenu: treeContextMenu,
|
|
344
|
+
menuTriggerProps,
|
|
345
|
+
menuProps,
|
|
346
|
+
onToggleChecked: checkbox.toggle,
|
|
347
|
+
onAction: treeOnAction
|
|
348
|
+
}, node.key);
|
|
349
|
+
})
|
|
350
|
+
})
|
|
292
351
|
})
|
|
293
352
|
});
|
|
294
353
|
}
|