@cube-dev/ui-kit 0.181.0 → 0.183.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 +34 -0
- package/dist/_internal/hooks/use-debounced-value.js +48 -31
- package/dist/_internal/hooks/use-debounced-value.js.map +1 -1
- package/dist/_internal/hooks/use-deprecation-warning.js +22 -7
- package/dist/_internal/hooks/use-deprecation-warning.js.map +1 -1
- package/dist/_internal/hooks/use-event.js +1 -1
- package/dist/_internal/hooks/use-event.js.map +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-is-first-render.js.map +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +12 -4
- package/dist/_internal/hooks/use-sync-ref.js.map +1 -1
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/timer.js.map +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +90 -20
- package/dist/_internal/hooks/use-timer/use-timer.js.map +1 -1
- package/dist/_internal/hooks/use-warn.js +4 -4
- package/dist/_internal/hooks/use-warn.js.map +1 -1
- package/dist/components/Block.js +29 -7
- package/dist/components/Block.js.map +1 -1
- package/dist/components/CollectionItem.js +1 -1
- package/dist/components/CollectionItem.js.map +1 -1
- package/dist/components/GlobalStyles.js +33 -9
- package/dist/components/GlobalStyles.js.map +1 -1
- package/dist/components/GridProvider.js +4 -4
- package/dist/components/GridProvider.js.map +1 -1
- package/dist/components/HiddenInput.js +1 -1
- package/dist/components/HiddenInput.js.map +1 -1
- package/dist/components/Root.js +137 -42
- package/dist/components/Root.js.map +1 -1
- package/dist/components/actions/Action/Action.js +20 -8
- package/dist/components/actions/Action/Action.js.map +1 -1
- package/dist/components/actions/Banner/Banner.js +91 -22
- package/dist/components/actions/Banner/Banner.js.map +1 -1
- package/dist/components/actions/Button/Button.js +7 -5
- package/dist/components/actions/Button/Button.js.map +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +15 -5
- package/dist/components/actions/ButtonGroup/ButtonGroup.js.map +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +6 -4
- package/dist/components/actions/ButtonSplit/ButtonSplit.js.map +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/ButtonSplit/context.js.map +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.js +76 -76
- package/dist/components/actions/CommandMenu/CommandMenu.js.map +1 -1
- package/dist/components/actions/CommandMenu/styled.js +1 -1
- package/dist/components/actions/CommandMenu/styled.js.map +1 -1
- package/dist/components/actions/ItemAction/ItemAction.js +205 -68
- package/dist/components/actions/ItemAction/ItemAction.js.map +1 -1
- package/dist/components/actions/ItemActionContext.js +26 -7
- package/dist/components/actions/ItemActionContext.js.map +1 -1
- package/dist/components/actions/ItemActionsWrapper.js +215 -84
- package/dist/components/actions/ItemActionsWrapper.js.map +1 -1
- package/dist/components/actions/ItemButton/ItemButton.js +2 -2
- package/dist/components/actions/ItemButton/ItemButton.js.map +1 -1
- package/dist/components/actions/Link/Link.js +16 -7
- package/dist/components/actions/Link/Link.js.map +1 -1
- package/dist/components/actions/Menu/Menu.js +127 -72
- package/dist/components/actions/Menu/Menu.js.map +1 -1
- package/dist/components/actions/Menu/MenuItem.js +116 -43
- package/dist/components/actions/Menu/MenuItem.js.map +1 -1
- package/dist/components/actions/Menu/MenuSection.js +85 -30
- package/dist/components/actions/Menu/MenuSection.js.map +1 -1
- package/dist/components/actions/Menu/MenuTrigger.js +316 -112
- package/dist/components/actions/Menu/MenuTrigger.js.map +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.js +6 -6
- package/dist/components/actions/Menu/SubMenuTrigger.js.map +1 -1
- package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/actions/Menu/SubmenuTriggerContext.js.map +1 -1
- package/dist/components/actions/Menu/context.js +1 -1
- package/dist/components/actions/Menu/context.js.map +1 -1
- package/dist/components/actions/Menu/styled.js +1 -1
- package/dist/components/actions/Menu/styled.js.map +1 -1
- package/dist/components/actions/actions-run.js +1 -1
- package/dist/components/actions/actions-run.js.map +1 -1
- package/dist/components/actions/index.js +1 -1
- package/dist/components/actions/index.js.map +1 -1
- package/dist/components/actions/use-action.js +3 -3
- package/dist/components/actions/use-action.js.map +1 -1
- package/dist/components/actions/use-anchored-menu.js +6 -6
- package/dist/components/actions/use-anchored-menu.js.map +1 -1
- package/dist/components/actions/use-context-menu.js +12 -12
- package/dist/components/actions/use-context-menu.js.map +1 -1
- package/dist/components/content/ActiveZone/ActiveZone.js +84 -18
- package/dist/components/content/ActiveZone/ActiveZone.js.map +1 -1
- package/dist/components/content/Alert/Alert.js +18 -7
- package/dist/components/content/Alert/Alert.js.map +1 -1
- package/dist/components/content/Alert/use-alert.js +53 -15
- package/dist/components/content/Alert/use-alert.js.map +1 -1
- package/dist/components/content/Avatar/Avatar.js +51 -13
- package/dist/components/content/Avatar/Avatar.js.map +1 -1
- package/dist/components/content/Badge/Badge.js +43 -10
- package/dist/components/content/Badge/Badge.js.map +1 -1
- package/dist/components/content/Card/Card.js +29 -7
- package/dist/components/content/Card/Card.js.map +1 -1
- package/dist/components/content/Content.js +29 -7
- package/dist/components/content/Content.js.map +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +2 -2
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js.map +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.js +220 -60
- package/dist/components/content/CopySnippet/CopySnippet.js.map +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +453 -194
- package/dist/components/content/Disclosure/Disclosure.js.map +1 -1
- package/dist/components/content/Divider.js +52 -14
- package/dist/components/content/Divider.js.map +1 -1
- package/dist/components/content/Footer.js +29 -7
- package/dist/components/content/Footer.js.map +1 -1
- package/dist/components/content/Header.js +29 -7
- package/dist/components/content/Header.js.map +1 -1
- package/dist/components/content/HotKeys/HotKeys.js +55 -27
- package/dist/components/content/HotKeys/HotKeys.js.map +1 -1
- package/dist/components/content/InfoBadge/InfoBadge.js +8 -8
- package/dist/components/content/InfoBadge/InfoBadge.js.map +1 -1
- package/dist/components/content/InlineInput/InlineInput.js +429 -188
- package/dist/components/content/InlineInput/InlineInput.js.map +1 -1
- package/dist/components/content/Item/Item.js +414 -155
- package/dist/components/content/Item/Item.js.map +1 -1
- package/dist/components/content/ItemBadge/ItemBadge.js +173 -59
- package/dist/components/content/ItemBadge/ItemBadge.js.map +1 -1
- package/dist/components/content/ItemCard/ItemCard.js +34 -9
- package/dist/components/content/ItemCard/ItemCard.js.map +1 -1
- package/dist/components/content/Layout/GridLayout.js +38 -10
- package/dist/components/content/Layout/GridLayout.js.map +1 -1
- package/dist/components/content/Layout/Layout.js +30 -13
- package/dist/components/content/Layout/Layout.js.map +1 -1
- package/dist/components/content/Layout/LayoutBlock.js +33 -8
- package/dist/components/content/Layout/LayoutBlock.js.map +1 -1
- package/dist/components/content/Layout/LayoutCenter.js +48 -11
- package/dist/components/content/Layout/LayoutCenter.js.map +1 -1
- package/dist/components/content/Layout/LayoutContainer.js +1 -1
- package/dist/components/content/Layout/LayoutContainer.js.map +1 -1
- package/dist/components/content/Layout/LayoutContent.js +1 -1
- package/dist/components/content/Layout/LayoutContent.js.map +1 -1
- package/dist/components/content/Layout/LayoutContext.js +30 -21
- package/dist/components/content/Layout/LayoutContext.js.map +1 -1
- package/dist/components/content/Layout/LayoutFlex.js +33 -8
- package/dist/components/content/Layout/LayoutFlex.js.map +1 -1
- package/dist/components/content/Layout/LayoutFooter.js +53 -14
- package/dist/components/content/Layout/LayoutFooter.js.map +1 -1
- package/dist/components/content/Layout/LayoutGrid.js +48 -11
- package/dist/components/content/Layout/LayoutGrid.js.map +1 -1
- package/dist/components/content/Layout/LayoutHeader.js +211 -57
- package/dist/components/content/Layout/LayoutHeader.js.map +1 -1
- package/dist/components/content/Layout/LayoutPane.js +60 -14
- package/dist/components/content/Layout/LayoutPane.js.map +1 -1
- package/dist/components/content/Layout/LayoutPanel.js +59 -17
- package/dist/components/content/Layout/LayoutPanel.js.map +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +89 -27
- package/dist/components/content/Layout/LayoutPanelHeader.js.map +1 -1
- package/dist/components/content/Layout/LayoutToolbar.js +33 -8
- package/dist/components/content/Layout/LayoutToolbar.js.map +1 -1
- package/dist/components/content/Layout/hooks/useTinyScrollbar.js +206 -119
- package/dist/components/content/Layout/hooks/useTinyScrollbar.js.map +1 -1
- package/dist/components/content/Layout/index.js +1 -1
- package/dist/components/content/Layout/index.js.map +1 -1
- package/dist/components/content/Layout/utils.js +1 -1
- package/dist/components/content/Layout/utils.js.map +1 -1
- package/dist/components/content/Paragraph.js +25 -9
- package/dist/components/content/Paragraph.js.map +1 -1
- package/dist/components/content/Placeholder/Placeholder.js +52 -14
- package/dist/components/content/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/content/PrismCode/PrismCode.js +1 -1
- package/dist/components/content/PrismCode/PrismCode.js.map +1 -1
- package/dist/components/content/PrismCode/prismSetup.js +1 -1
- package/dist/components/content/PrismCode/prismSetup.js.map +1 -1
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js +52 -17
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js.map +1 -1
- package/dist/components/content/Result/Result.js +117 -38
- package/dist/components/content/Result/Result.js.map +1 -1
- package/dist/components/content/Skeleton/Skeleton.js +26 -17
- package/dist/components/content/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/content/Tag/Tag.js +68 -13
- package/dist/components/content/Tag/Tag.js.map +1 -1
- package/dist/components/content/Text.d.ts +14 -14
- package/dist/components/content/Text.js +61 -14
- package/dist/components/content/Text.js.map +1 -1
- package/dist/components/content/TextItem/TextItem.js +37 -16
- package/dist/components/content/TextItem/TextItem.js.map +1 -1
- package/dist/components/content/Title.js +98 -23
- package/dist/components/content/Title.js.map +1 -1
- package/dist/components/content/Tree/Tree.js +32 -32
- package/dist/components/content/Tree/Tree.js.map +1 -1
- package/dist/components/content/Tree/TreeNode.js +10 -10
- package/dist/components/content/Tree/TreeNode.js.map +1 -1
- package/dist/components/content/Tree/styled.js +1 -1
- 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/tree-index.js.map +1 -1
- package/dist/components/content/Tree/use-checkbox-tree.js +123 -89
- package/dist/components/content/Tree/use-checkbox-tree.js.map +1 -1
- package/dist/components/content/Tree/use-load-data.js +52 -21
- package/dist/components/content/Tree/use-load-data.js.map +1 -1
- package/dist/components/content/highlightText.js +1 -1
- package/dist/components/content/highlightText.js.map +1 -1
- package/dist/components/content/use-auto-tooltip.js +1 -1
- package/dist/components/content/use-auto-tooltip.js.map +1 -1
- package/dist/components/data/DataTable/DataTable.js +31 -31
- package/dist/components/data/DataTable/DataTable.js.map +1 -1
- package/dist/components/data/ItemTable/ItemTable.js +41 -41
- package/dist/components/data/ItemTable/ItemTable.js.map +1 -1
- package/dist/components/data/ItemTable/ItemTableBulkBar.js +11 -11
- package/dist/components/data/ItemTable/ItemTableBulkBar.js.map +1 -1
- package/dist/components/data/ItemTable/ItemTableDragPreview.js +41 -4
- package/dist/components/data/ItemTable/ItemTableDragPreview.js.map +1 -1
- package/dist/components/data/ItemTable/ItemTableFooter.js +67 -30
- package/dist/components/data/ItemTable/ItemTableFooter.js.map +1 -1
- package/dist/components/data/ItemTable/ItemTableToolbar.js +95 -28
- package/dist/components/data/ItemTable/ItemTableToolbar.js.map +1 -1
- package/dist/components/data/TableBase/ColumnResizer.js +90 -41
- package/dist/components/data/TableBase/ColumnResizer.js.map +1 -1
- package/dist/components/data/TableBase/RowCollection.js +1 -1
- package/dist/components/data/TableBase/RowCollection.js.map +1 -1
- package/dist/components/data/TableBase/TableHeaderCell.js +154 -64
- package/dist/components/data/TableBase/TableHeaderCell.js.map +1 -1
- package/dist/components/data/TableBase/TableRow.js +211 -69
- package/dist/components/data/TableBase/TableRow.js.map +1 -1
- package/dist/components/data/TableBase/TableView.js +119 -80
- package/dist/components/data/TableBase/TableView.js.map +1 -1
- package/dist/components/data/TableBase/column-menu.js +1 -1
- package/dist/components/data/TableBase/column-menu.js.map +1 -1
- package/dist/components/data/TableBase/column-tint.js +1 -1
- package/dist/components/data/TableBase/column-tint.js.map +1 -1
- package/dist/components/data/TableBase/row-menu.js +1 -1
- package/dist/components/data/TableBase/row-menu.js.map +1 -1
- package/dist/components/data/TableBase/styled.js +1 -1
- package/dist/components/data/TableBase/styled.js.map +1 -1
- package/dist/components/data/TableBase/table-tree.js +1 -1
- package/dist/components/data/TableBase/table-tree.js.map +1 -1
- package/dist/components/data/TableBase/types.js +1 -1
- package/dist/components/data/TableBase/types.js.map +1 -1
- package/dist/components/data/TableBase/use-cell-selection.js +0 -0
- package/dist/components/data/TableBase/use-cell-selection.js.map +1 -1
- package/dist/components/data/TableBase/use-column-order.js +56 -12
- package/dist/components/data/TableBase/use-column-order.js.map +1 -1
- package/dist/components/data/TableBase/use-container-width.js +24 -10
- package/dist/components/data/TableBase/use-container-width.js.map +1 -1
- package/dist/components/data/TableBase/use-row-move-animation.js +68 -49
- package/dist/components/data/TableBase/use-row-move-animation.js.map +1 -1
- package/dist/components/data/TableBase/use-scrollability.js +32 -18
- package/dist/components/data/TableBase/use-scrollability.js.map +1 -1
- package/dist/components/data/TableBase/use-table-columns.js +130 -60
- package/dist/components/data/TableBase/use-table-columns.js.map +1 -1
- package/dist/components/data/TableBase/use-table-search.js +1 -1
- package/dist/components/data/TableBase/use-table-search.js.map +1 -1
- package/dist/components/data/TableBase/use-table-selection.js +39 -39
- package/dist/components/data/TableBase/use-table-selection.js.map +1 -1
- package/dist/components/data/TableBase/use-table-sort.js +132 -68
- package/dist/components/data/TableBase/use-table-sort.js.map +1 -1
- package/dist/components/data/TableBase/use-table-sorts.js +168 -101
- package/dist/components/data/TableBase/use-table-sorts.js.map +1 -1
- package/dist/components/data/TableBase/use-table-storage.js +2 -2
- package/dist/components/data/TableBase/use-table-storage.js.map +1 -1
- package/dist/components/data/TableBase/use-table-tree-state.js +181 -86
- package/dist/components/data/TableBase/use-table-tree-state.js.map +1 -1
- package/dist/components/fields/Checkbox/Checkbox.js +13 -6
- package/dist/components/fields/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.js +101 -33
- package/dist/components/fields/Checkbox/CheckboxGroup.js.map +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/Checkbox/context.js.map +1 -1
- package/dist/components/fields/ColorInput/ColorInput.js +329 -150
- package/dist/components/fields/ColorInput/ColorInput.js.map +1 -1
- package/dist/components/fields/ColorPicker/ColorPicker.js +16 -16
- package/dist/components/fields/ColorPicker/ColorPicker.js.map +1 -1
- package/dist/components/fields/ColorSwatch/ColorSwatch.js +52 -13
- package/dist/components/fields/ColorSwatch/ColorSwatch.js.map +1 -1
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +90 -28
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js.map +1 -1
- package/dist/components/fields/ComboBox/ComboBox.js +216 -134
- package/dist/components/fields/ComboBox/ComboBox.js.map +1 -1
- package/dist/components/fields/CommandTextArea/CommandTextArea.d.ts +21 -1
- package/dist/components/fields/CommandTextArea/CommandTextArea.js +26 -7
- package/dist/components/fields/CommandTextArea/CommandTextArea.js.map +1 -1
- package/dist/components/fields/CommandTextArea/caretPosition.js +1 -1
- package/dist/components/fields/CommandTextArea/caretPosition.js.map +1 -1
- package/dist/components/fields/CommandTextArea/useCaretAnchor.js +88 -49
- package/dist/components/fields/CommandTextArea/useCaretAnchor.js.map +1 -1
- package/dist/components/fields/DatePicker/DateInput.js +1 -1
- package/dist/components/fields/DatePicker/DateInput.js.map +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +129 -34
- package/dist/components/fields/DatePicker/DateInputBase.js.map +1 -1
- package/dist/components/fields/DatePicker/DatePicker.js +194 -66
- package/dist/components/fields/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +39 -8
- package/dist/components/fields/DatePicker/DatePickerButton.js.map +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js.map +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js.map +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +109 -29
- package/dist/components/fields/DatePicker/DatePickerSegment.js.map +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.js +224 -85
- package/dist/components/fields/DatePicker/DateRangePicker.js.map +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +473 -177
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js.map +1 -1
- package/dist/components/fields/DatePicker/MonthPicker.js +15 -6
- package/dist/components/fields/DatePicker/MonthPicker.js.map +1 -1
- package/dist/components/fields/DatePicker/PeriodPicker.js +288 -91
- package/dist/components/fields/DatePicker/PeriodPicker.js.map +1 -1
- package/dist/components/fields/DatePicker/QuarterPicker.js +15 -6
- package/dist/components/fields/DatePicker/QuarterPicker.js.map +1 -1
- package/dist/components/fields/DatePicker/TimeInput.js +15 -7
- package/dist/components/fields/DatePicker/TimeInput.js.map +1 -1
- package/dist/components/fields/DatePicker/WeekPicker.js +15 -6
- package/dist/components/fields/DatePicker/WeekPicker.js.map +1 -1
- package/dist/components/fields/DatePicker/YearPicker.js +15 -6
- package/dist/components/fields/DatePicker/YearPicker.js.map +1 -1
- package/dist/components/fields/DatePicker/parseDate.js +1 -1
- package/dist/components/fields/DatePicker/parseDate.js.map +1 -1
- package/dist/components/fields/DatePicker/period.js +1 -1
- package/dist/components/fields/DatePicker/period.js.map +1 -1
- package/dist/components/fields/DatePicker/props.js +1 -1
- package/dist/components/fields/DatePicker/props.js.map +1 -1
- package/dist/components/fields/DatePicker/utils.js +15 -8
- package/dist/components/fields/DatePicker/utils.js.map +1 -1
- package/dist/components/fields/FileInput/FileInput.js +3 -3
- package/dist/components/fields/FileInput/FileInput.js.map +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +87 -87
- package/dist/components/fields/FilterListBox/FilterListBox.js.map +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.d.ts +2 -0
- package/dist/components/fields/FilterPicker/FilterPicker.js +24 -23
- package/dist/components/fields/FilterPicker/FilterPicker.js.map +1 -1
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/Input/Input.js.map +1 -1
- package/dist/components/fields/ListBox/DraggableListBox.js +23 -10
- package/dist/components/fields/ListBox/DraggableListBox.js.map +1 -1
- package/dist/components/fields/ListBox/ListBox.js +138 -53
- package/dist/components/fields/ListBox/ListBox.js.map +1 -1
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.js +156 -37
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.js.map +1 -1
- package/dist/components/fields/ListBoxPopover/listNavigation.js +1 -1
- package/dist/components/fields/ListBoxPopover/listNavigation.js.map +1 -1
- package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +61 -33
- package/dist/components/fields/ListBoxPopover/useCompositeFocus.js.map +1 -1
- package/dist/components/fields/NumberInput/NumberInput.js +123 -33
- package/dist/components/fields/NumberInput/NumberInput.js.map +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +53 -15
- package/dist/components/fields/NumberInput/StepButton.js.map +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +149 -45
- package/dist/components/fields/PasswordInput/PasswordInput.js.map +1 -1
- package/dist/components/fields/Picker/Picker.d.ts +2 -0
- package/dist/components/fields/Picker/Picker.js +10 -9
- package/dist/components/fields/Picker/Picker.js.map +1 -1
- package/dist/components/fields/RadioGroup/Radio.js +273 -104
- package/dist/components/fields/RadioGroup/Radio.js.map +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.js +149 -48
- package/dist/components/fields/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/RadioGroup/context.js.map +1 -1
- package/dist/components/fields/SearchComboBox/SearchComboBox.js +80 -65
- package/dist/components/fields/SearchComboBox/SearchComboBox.js.map +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +91 -28
- package/dist/components/fields/SearchInput/SearchInput.js.map +1 -1
- package/dist/components/fields/Select/Select.d.ts +2 -0
- package/dist/components/fields/Select/Select.js +373 -118
- package/dist/components/fields/Select/Select.js.map +1 -1
- package/dist/components/fields/Slider/Gradation.js +45 -10
- package/dist/components/fields/Slider/Gradation.js.map +1 -1
- package/dist/components/fields/Slider/HueSlider.js +121 -32
- package/dist/components/fields/Slider/HueSlider.js.map +1 -1
- package/dist/components/fields/Slider/RangeSlider.js +46 -10
- package/dist/components/fields/Slider/RangeSlider.js.map +1 -1
- package/dist/components/fields/Slider/Slider.js +108 -23
- package/dist/components/fields/Slider/Slider.js.map +1 -1
- package/dist/components/fields/Slider/SliderBase.js +2 -2
- package/dist/components/fields/Slider/SliderBase.js.map +1 -1
- package/dist/components/fields/Slider/SliderThumb.js +96 -37
- package/dist/components/fields/Slider/SliderThumb.js.map +1 -1
- package/dist/components/fields/Slider/SliderTrack.js +64 -23
- package/dist/components/fields/Slider/SliderTrack.js.map +1 -1
- package/dist/components/fields/Slider/elements.js +1 -1
- package/dist/components/fields/Slider/elements.js.map +1 -1
- package/dist/components/fields/Slider/index.js +1 -1
- package/dist/components/fields/Switch/Switch.js +190 -66
- package/dist/components/fields/Switch/Switch.js.map +1 -1
- package/dist/components/fields/TextArea/TextArea.js +137 -47
- package/dist/components/fields/TextArea/TextArea.js.map +1 -1
- package/dist/components/fields/TextInput/TextInput.js +80 -27
- package/dist/components/fields/TextInput/TextInput.js.map +1 -1
- package/dist/components/fields/TextInput/TextInputBase.js +1 -1
- package/dist/components/fields/TextInput/TextInputBase.js.map +1 -1
- package/dist/components/fields/TextInput/useAutoSizeTextArea.js +1 -1
- package/dist/components/fields/TextInput/useAutoSizeTextArea.js.map +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.js +156 -83
- package/dist/components/fields/TextInputMapper/TextInputMapper.js.map +1 -1
- package/dist/components/fields/TriggerActions.js +11 -2
- package/dist/components/fields/TriggerActions.js.map +1 -1
- package/dist/components/fields/color/ColorPanel.js +237 -59
- package/dist/components/fields/color/ColorPanel.js.map +1 -1
- package/dist/components/fields/color/channels.js +1 -1
- package/dist/components/fields/color/channels.js.map +1 -1
- package/dist/components/fields/color/color.js +1 -1
- package/dist/components/fields/color/color.js.map +1 -1
- package/dist/components/fields/color/context.js +1 -1
- package/dist/components/fields/color/context.js.map +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.js +195 -72
- package/dist/components/form/FieldWrapper/FieldWrapper.js.map +1 -1
- package/dist/components/form/Form/Field.js +23 -9
- package/dist/components/form/Form/Field.js.map +1 -1
- package/dist/components/form/Form/Form.js +76 -30
- package/dist/components/form/Form/Form.js.map +1 -1
- package/dist/components/form/Form/ModernFormRoot.js +294 -81
- package/dist/components/form/Form/ModernFormRoot.js.map +1 -1
- package/dist/components/form/Form/ResetButton/ResetButton.js +32 -10
- package/dist/components/form/Form/ResetButton/ResetButton.js.map +1 -1
- package/dist/components/form/Form/SubmitButton/SubmitButton.js +32 -10
- package/dist/components/form/Form/SubmitButton/SubmitButton.js.map +1 -1
- package/dist/components/form/Form/SubmitError.js +130 -32
- package/dist/components/form/Form/SubmitError.js.map +1 -1
- package/dist/components/form/Form/backend.js +1 -1
- package/dist/components/form/Form/backend.js.map +1 -1
- package/dist/components/form/Form/index.js +1 -1
- package/dist/components/form/Form/index.js.map +1 -1
- package/dist/components/form/Form/modern/actions.js +140 -45
- package/dist/components/form/Form/modern/actions.js.map +1 -1
- package/dist/components/form/Form/modern/context.js +1 -1
- package/dist/components/form/Form/modern/context.js.map +1 -1
- package/dist/components/form/Form/modern/controller.js +1 -1
- package/dist/components/form/Form/modern/controller.js.map +1 -1
- package/dist/components/form/Form/modern/field-binding.js +1 -1
- package/dist/components/form/Form/modern/field-binding.js.map +1 -1
- package/dist/components/form/Form/modern/field.js +1 -1
- package/dist/components/form/Form/modern/field.js.map +1 -1
- package/dist/components/form/Form/modern/react.js +102 -19
- package/dist/components/form/Form/modern/react.js.map +1 -1
- package/dist/components/form/Form/modern/store.js +13 -3
- package/dist/components/form/Form/modern/store.js.map +1 -1
- package/dist/components/form/Form/modern/types.d.ts +3 -1
- package/dist/components/form/Form/modern/validation.js +1 -1
- package/dist/components/form/Form/modern/validation.js.map +1 -1
- package/dist/components/form/Form/modern/values.js +1 -1
- package/dist/components/form/Form/modern/values.js.map +1 -1
- package/dist/components/form/Form/use-field/use-field-binding.js +236 -63
- package/dist/components/form/Form/use-field/use-field-binding.js.map +1 -1
- package/dist/components/form/Form/use-field/use-field-props.js +106 -61
- package/dist/components/form/Form/use-field/use-field-props.js.map +1 -1
- package/dist/components/form/Form/use-field/use-field.js +5 -4
- package/dist/components/form/Form/use-field/use-field.js.map +1 -1
- package/dist/components/form/Form/use-form.js +2 -1
- package/dist/components/form/Form/use-form.js.map +1 -1
- package/dist/components/form/Form/validation.js +1 -1
- package/dist/components/form/Form/validation.js.map +1 -1
- package/dist/components/form/Label.js +127 -37
- package/dist/components/form/Label.js.map +1 -1
- package/dist/components/form/validation/ValidationIndicator.js +20 -5
- package/dist/components/form/validation/ValidationIndicator.js.map +1 -1
- package/dist/components/form/validation/resolve-validation-props.js +1 -1
- package/dist/components/form/validation/resolve-validation-props.js.map +1 -1
- package/dist/components/form/validation/use-validation-props.js +36 -10
- package/dist/components/form/validation/use-validation-props.js.map +1 -1
- package/dist/components/form/wrapper.js +1 -1
- package/dist/components/form/wrapper.js.map +1 -1
- package/dist/components/helpers/DisplayTransition/DisplayTransition.js +49 -29
- package/dist/components/helpers/DisplayTransition/DisplayTransition.js.map +1 -1
- package/dist/components/helpers/IconSwitch/IconSwitch.js +8 -8
- package/dist/components/helpers/IconSwitch/IconSwitch.js.map +1 -1
- package/dist/components/layout/Board/Board.js +27 -9
- package/dist/components/layout/Board/Board.js.map +1 -1
- package/dist/components/layout/Board/BoardProvider.js +1 -1
- package/dist/components/layout/Board/BoardProvider.js.map +1 -1
- package/dist/components/layout/Board/BoardResponsive.js +1 -1
- package/dist/components/layout/Board/BoardResponsive.js.map +1 -1
- package/dist/components/layout/Board/Widget.js +1 -1
- package/dist/components/layout/Board/Widget.js.map +1 -1
- package/dist/components/layout/Board/WidgetHost.js +159 -121
- package/dist/components/layout/Board/WidgetHost.js.map +1 -1
- package/dist/components/layout/Board/board-context.js +14 -5
- package/dist/components/layout/Board/board-context.js.map +1 -1
- package/dist/components/layout/Board/board-store.js +1 -1
- package/dist/components/layout/Board/board-store.js.map +1 -1
- package/dist/components/layout/Board/grid-core/calculate.js +1 -1
- package/dist/components/layout/Board/grid-core/calculate.js.map +1 -1
- package/dist/components/layout/Board/grid-core/collision-modes.js +1 -1
- package/dist/components/layout/Board/grid-core/collision-modes.js.map +1 -1
- package/dist/components/layout/Board/grid-core/collision.js +1 -1
- package/dist/components/layout/Board/grid-core/collision.js.map +1 -1
- package/dist/components/layout/Board/grid-core/compactors.js +1 -1
- package/dist/components/layout/Board/grid-core/compactors.js.map +1 -1
- package/dist/components/layout/Board/grid-core/constraints.js +1 -1
- package/dist/components/layout/Board/grid-core/constraints.js.map +1 -1
- package/dist/components/layout/Board/grid-core/group-move.js +1 -1
- package/dist/components/layout/Board/grid-core/group-move.js.map +1 -1
- package/dist/components/layout/Board/grid-core/layout.js +1 -1
- package/dist/components/layout/Board/grid-core/layout.js.map +1 -1
- package/dist/components/layout/Board/grid-core/placement.js +1 -1
- package/dist/components/layout/Board/grid-core/placement.js.map +1 -1
- package/dist/components/layout/Board/grid-core/sort.js +1 -1
- package/dist/components/layout/Board/grid-core/sort.js.map +1 -1
- package/dist/components/layout/Board/index.js +1 -1
- package/dist/components/layout/Board/index.js.map +1 -1
- package/dist/components/layout/Board/responsive-utils.js +1 -1
- package/dist/components/layout/Board/responsive-utils.js.map +1 -1
- package/dist/components/layout/Board/use-board-layout.js +8 -8
- package/dist/components/layout/Board/use-board-layout.js.map +1 -1
- package/dist/components/layout/Board/use-board-registry.js +257 -257
- package/dist/components/layout/Board/use-board-registry.js.map +1 -1
- package/dist/components/layout/Board/use-board-select-modifier-key.js +1 -1
- package/dist/components/layout/Board/use-board-select-modifier-key.js.map +1 -1
- package/dist/components/layout/Board/use-board-selection.js +16 -16
- package/dist/components/layout/Board/use-board-selection.js.map +1 -1
- package/dist/components/layout/Flex.js +29 -7
- package/dist/components/layout/Flex.js.map +1 -1
- package/dist/components/layout/Flow.js +29 -7
- package/dist/components/layout/Flow.js.map +1 -1
- package/dist/components/layout/Grid.js +30 -7
- package/dist/components/layout/Grid.js.map +1 -1
- package/dist/components/layout/Panel.js +9 -9
- package/dist/components/layout/Panel.js.map +1 -1
- package/dist/components/layout/Prefix.js +59 -16
- package/dist/components/layout/Prefix.js.map +1 -1
- package/dist/components/layout/ResizablePanel.js +62 -32
- package/dist/components/layout/ResizablePanel.js.map +1 -1
- package/dist/components/layout/Space.js +55 -11
- package/dist/components/layout/Space.js.map +1 -1
- package/dist/components/layout/Suffix.js +59 -16
- package/dist/components/layout/Suffix.js.map +1 -1
- package/dist/components/navigation/Pagination/Pagination.js +394 -164
- package/dist/components/navigation/Pagination/Pagination.js.map +1 -1
- package/dist/components/navigation/Pagination/use-pagination.js +69 -26
- package/dist/components/navigation/Pagination/use-pagination.js.map +1 -1
- package/dist/components/navigation/Tabs/DraggableTabList.js +25 -10
- package/dist/components/navigation/Tabs/DraggableTabList.js.map +1 -1
- package/dist/components/navigation/Tabs/TabButton.js +604 -235
- package/dist/components/navigation/Tabs/TabButton.js.map +1 -1
- package/dist/components/navigation/Tabs/TabDropIndicator.js +65 -23
- package/dist/components/navigation/Tabs/TabDropIndicator.js.map +1 -1
- package/dist/components/navigation/Tabs/TabPanel.js +47 -19
- package/dist/components/navigation/Tabs/TabPanel.js.map +1 -1
- package/dist/components/navigation/Tabs/TabPicker.js +105 -33
- package/dist/components/navigation/Tabs/TabPicker.js.map +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +45 -45
- package/dist/components/navigation/Tabs/Tabs.js.map +1 -1
- package/dist/components/navigation/Tabs/TabsAction.js +53 -19
- package/dist/components/navigation/Tabs/TabsAction.js.map +1 -1
- package/dist/components/navigation/Tabs/TabsContext.js +16 -6
- package/dist/components/navigation/Tabs/TabsContext.js.map +1 -1
- package/dist/components/navigation/Tabs/popover-placement.js +1 -1
- package/dist/components/navigation/Tabs/popover-placement.js.map +1 -1
- package/dist/components/navigation/Tabs/styled.js +1 -1
- package/dist/components/navigation/Tabs/styled.js.map +1 -1
- 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 +50 -13
- package/dist/components/navigation/Tabs/use-tab-editing.js.map +1 -1
- package/dist/components/navigation/Tabs/use-tab-indicator.js +111 -63
- package/dist/components/navigation/Tabs/use-tab-indicator.js.map +1 -1
- package/dist/components/organisms/StatsCard/StatsCard.js +54 -14
- package/dist/components/organisms/StatsCard/StatsCard.js.map +1 -1
- package/dist/components/other/Calendar/Calendar.js +79 -31
- package/dist/components/other/Calendar/Calendar.js.map +1 -1
- package/dist/components/other/Calendar/CalendarCell.js +66 -20
- package/dist/components/other/Calendar/CalendarCell.js.map +1 -1
- package/dist/components/other/Calendar/CalendarGrid.js +90 -40
- package/dist/components/other/Calendar/CalendarGrid.js.map +1 -1
- package/dist/components/other/Calendar/CalendarHeader.js +80 -17
- package/dist/components/other/Calendar/CalendarHeader.js.map +1 -1
- package/dist/components/other/Calendar/CalendarPanel.js +568 -144
- package/dist/components/other/Calendar/CalendarPanel.js.map +1 -1
- package/dist/components/other/Calendar/PeriodCalendar.js +425 -134
- package/dist/components/other/Calendar/PeriodCalendar.js.map +1 -1
- package/dist/components/other/Calendar/PeriodGrid.js +6 -6
- package/dist/components/other/Calendar/PeriodGrid.js.map +1 -1
- package/dist/components/other/Calendar/RangeCalendar.js +50 -24
- package/dist/components/other/Calendar/RangeCalendar.js.map +1 -1
- package/dist/components/other/Calendar/styled.js +1 -1
- package/dist/components/other/Calendar/styled.js.map +1 -1
- package/dist/components/other/CubeLogo/CubeLogo.js +95 -34
- package/dist/components/other/CubeLogo/CubeLogo.js.map +1 -1
- package/dist/components/other/NoDataIcon/NoDataIcon.js +1 -1
- package/dist/components/other/NoDataIcon/NoDataIcon.js.map +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialog.js +153 -42
- package/dist/components/overlays/AlertDialog/AlertDialog.js.map +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +76 -54
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js.map +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogZone.js +146 -39
- package/dist/components/overlays/AlertDialog/AlertDialogZone.js.map +1 -1
- package/dist/components/overlays/Dialog/Dialog.js +26 -10
- package/dist/components/overlays/Dialog/Dialog.js.map +1 -1
- package/dist/components/overlays/Dialog/DialogContainer.js +13 -13
- package/dist/components/overlays/Dialog/DialogContainer.js.map +1 -1
- package/dist/components/overlays/Dialog/DialogForm.d.ts +12 -7
- package/dist/components/overlays/Dialog/DialogForm.js +18 -7
- package/dist/components/overlays/Dialog/DialogForm.js.map +1 -1
- package/dist/components/overlays/Dialog/DialogTrigger.d.ts +1 -1
- package/dist/components/overlays/Dialog/DialogTrigger.js +214 -59
- package/dist/components/overlays/Dialog/DialogTrigger.js.map +1 -1
- package/dist/components/overlays/Dialog/ModernDialogForm.js +350 -0
- package/dist/components/overlays/Dialog/ModernDialogForm.js.map +1 -0
- package/dist/components/overlays/Dialog/context.js +1 -1
- package/dist/components/overlays/Dialog/context.js.map +1 -1
- package/dist/components/overlays/Dialog/index.d.ts +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.js +6 -6
- package/dist/components/overlays/Dialog/use-dialog-container.js.map +1 -1
- package/dist/components/overlays/Modal/Modal.js +140 -27
- package/dist/components/overlays/Modal/Modal.js.map +1 -1
- package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
- package/dist/components/overlays/Modal/OpenTransitionContext.js.map +1 -1
- package/dist/components/overlays/Modal/Overlay.js +4 -4
- package/dist/components/overlays/Modal/Overlay.js.map +1 -1
- package/dist/components/overlays/Modal/Popover.js +131 -29
- package/dist/components/overlays/Modal/Popover.js.map +1 -1
- package/dist/components/overlays/Modal/Tray.js +142 -30
- package/dist/components/overlays/Modal/Tray.js.map +1 -1
- package/dist/components/overlays/Modal/Underlay.js +36 -7
- package/dist/components/overlays/Modal/Underlay.js.map +1 -1
- package/dist/components/overlays/Notifications/Notification.js +69 -32
- package/dist/components/overlays/Notifications/Notification.js.map +1 -1
- package/dist/components/overlays/Notifications/NotificationAction.js +79 -26
- package/dist/components/overlays/Notifications/NotificationAction.js.map +1 -1
- package/dist/components/overlays/Notifications/NotificationCard.js +138 -33
- package/dist/components/overlays/Notifications/NotificationCard.js.map +1 -1
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationContext.js.map +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +63 -16
- package/dist/components/overlays/Notifications/NotificationItem.js.map +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +312 -151
- package/dist/components/overlays/Notifications/OverlayContainer.js.map +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js.map +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +210 -58
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js.map +1 -1
- package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
- package/dist/components/overlays/Notifications/dismissed-storage.js.map +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.d.ts +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.js +3 -3
- package/dist/components/overlays/Notifications/format-relative-time.js.map +1 -1
- package/dist/components/overlays/Notifications/index.js +1 -1
- package/dist/components/overlays/Notifications/index.js.map +1 -1
- package/dist/components/overlays/Notifications/use-notification-state.js +51 -51
- package/dist/components/overlays/Notifications/use-notification-state.js.map +1 -1
- package/dist/components/overlays/Notifications/use-notifications.js +12 -12
- package/dist/components/overlays/Notifications/use-notifications.js.map +1 -1
- package/dist/components/overlays/Notifications/use-overlay-timers.js +10 -10
- package/dist/components/overlays/Notifications/use-overlay-timers.js.map +1 -1
- package/dist/components/overlays/Notifications/use-persistent-notifications.js +24 -5
- package/dist/components/overlays/Notifications/use-persistent-notifications.js.map +1 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js +145 -43
- package/dist/components/overlays/Notifications/use-persistent-state.js.map +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +25 -25
- package/dist/components/overlays/Notifications/use-toast-state.js.map +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +68 -15
- package/dist/components/overlays/Toast/ToastItem.js.map +1 -1
- package/dist/components/overlays/Toast/index.js +100 -34
- package/dist/components/overlays/Toast/index.js.map +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js.map +1 -1
- package/dist/components/overlays/Toast/useToast.js +9 -9
- package/dist/components/overlays/Toast/useToast.js.map +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +88 -31
- package/dist/components/overlays/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.js +75 -10
- package/dist/components/overlays/Tooltip/TooltipProvider.js.map +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +186 -77
- package/dist/components/overlays/Tooltip/TooltipTrigger.js.map +1 -1
- package/dist/components/overlays/Tooltip/context.js +1 -1
- package/dist/components/overlays/Tooltip/context.js.map +1 -1
- package/dist/components/portal/Portal.js +18 -3
- package/dist/components/portal/Portal.js.map +1 -1
- package/dist/components/portal/PortalProvider.js +11 -2
- package/dist/components/portal/PortalProvider.js.map +1 -1
- package/dist/components/portal/usePortal.js +1 -1
- package/dist/components/portal/usePortal.js.map +1 -1
- package/dist/components/shared/DraggableCollection.js +23 -23
- package/dist/components/shared/DraggableCollection.js.map +1 -1
- package/dist/components/shared/InvalidIcon.js +1 -1
- package/dist/components/shared/InvalidIcon.js.map +1 -1
- package/dist/components/shared/ValidIcon.js +1 -1
- package/dist/components/shared/ValidIcon.js.map +1 -1
- package/dist/components/status/LoadingAnimation/LoadingAnimation.js +156 -48
- package/dist/components/status/LoadingAnimation/LoadingAnimation.js.map +1 -1
- package/dist/components/status/Spin/Cube.js +12 -3
- package/dist/components/status/Spin/Cube.js.map +1 -1
- package/dist/components/status/Spin/InternalSpinner.js +21 -6
- package/dist/components/status/Spin/InternalSpinner.js.map +1 -1
- package/dist/components/status/Spin/Spin.js +31 -7
- package/dist/components/status/Spin/Spin.js.map +1 -1
- package/dist/components/status/Spin/SpinsContainer.js +23 -6
- package/dist/components/status/Spin/SpinsContainer.js.map +1 -1
- package/dist/data/item-themes.js +1 -1
- package/dist/data/item-themes.js.map +1 -1
- package/dist/data/themes.js +1 -1
- package/dist/data/themes.js.map +1 -1
- package/dist/eslint-plugin/defaults.generated.js +18 -7
- package/dist/eslint-plugin/defaults.generated.js.map +1 -1
- package/dist/eslint-plugin/index.js +1 -1
- package/dist/eslint-plugin/index.js.map +1 -1
- package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
- package/dist/eslint-plugin/rules/no-redundant-default-prop.js.map +1 -1
- package/dist/i18n/I18nProvider.js +54 -13
- package/dist/i18n/I18nProvider.js.map +1 -1
- package/dist/i18n/createFormatter.js +1 -1
- package/dist/i18n/createFormatter.js.map +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n/instance.js +1 -1
- package/dist/i18n/instance.js.map +1 -1
- package/dist/i18n/locales/de-DE/uikit.js +5 -2
- package/dist/i18n/locales/en-US/uikit.js +5 -2
- package/dist/i18n/locales/en-US/uikit.json.d.ts +15 -5
- package/dist/i18n/locales/es-ES/uikit.js +5 -2
- package/dist/i18n/locales/es-MX/uikit.js +5 -2
- package/dist/i18n/locales/fr-FR/uikit.js +5 -2
- package/dist/i18n/locales/it-IT/uikit.js +5 -2
- package/dist/i18n/locales/ja-JP/uikit.js +5 -2
- package/dist/i18n/locales/nb-NO/uikit.js +5 -2
- package/dist/i18n/locales/pt-BR/uikit.js +5 -2
- package/dist/i18n/locales/pt-PT/uikit.js +5 -2
- package/dist/i18n/locales/sv-SE/uikit.js +5 -2
- package/dist/i18n/locales/vi-VN/uikit.js +5 -2
- package/dist/i18n/locales.js +1 -1
- package/dist/i18n/locales.js.map +1 -1
- package/dist/i18n/useFormatter.js +10 -3
- package/dist/i18n/useFormatter.js.map +1 -1
- package/dist/i18n/useI18n.js +1 -1
- package/dist/i18n/useI18n.js.map +1 -1
- package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
- package/dist/icons/AdjustmentsHorizontalIcon.js.map +1 -1
- package/dist/icons/AdjustmentsIcon.js +1 -1
- package/dist/icons/AdjustmentsIcon.js.map +1 -1
- package/dist/icons/AiIcon.js +1 -1
- package/dist/icons/AiIcon.js.map +1 -1
- package/dist/icons/AreaChartIcon.js +1 -1
- package/dist/icons/AreaChartIcon.js.map +1 -1
- package/dist/icons/ArrowNarrowDownIcon.js +1 -1
- package/dist/icons/ArrowNarrowDownIcon.js.map +1 -1
- package/dist/icons/ArrowNarrowUpIcon.js +1 -1
- package/dist/icons/ArrowNarrowUpIcon.js.map +1 -1
- package/dist/icons/BackwardIcon.js +1 -1
- package/dist/icons/BackwardIcon.js.map +1 -1
- package/dist/icons/BarChartIcon.js +1 -1
- package/dist/icons/BarChartIcon.js.map +1 -1
- package/dist/icons/BellFilledIcon.js +1 -1
- package/dist/icons/BellFilledIcon.js.map +1 -1
- package/dist/icons/BellIcon.js +1 -1
- package/dist/icons/BellIcon.js.map +1 -1
- package/dist/icons/BooleanIcon.js +1 -1
- package/dist/icons/BooleanIcon.js.map +1 -1
- package/dist/icons/CalendarEditIcon.js +1 -1
- package/dist/icons/CalendarEditIcon.js.map +1 -1
- package/dist/icons/CalendarIcon.js +1 -1
- package/dist/icons/CalendarIcon.js.map +1 -1
- package/dist/icons/CaretDownIcon.js +1 -1
- package/dist/icons/CaretDownIcon.js.map +1 -1
- package/dist/icons/CaretUpIcon.js +1 -1
- package/dist/icons/CaretUpIcon.js.map +1 -1
- package/dist/icons/ChartAreaStackedIcon.js +1 -1
- package/dist/icons/ChartAreaStackedIcon.js.map +1 -1
- package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartAreaStackedPercentageIcon.js.map +1 -1
- package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarGroupedHorizontalIcon.js.map +1 -1
- package/dist/icons/ChartBarGroupedIcon.js +1 -1
- package/dist/icons/ChartBarGroupedIcon.js.map +1 -1
- package/dist/icons/ChartBarHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarHorizontalIcon.js.map +1 -1
- package/dist/icons/ChartBarLineIcon.js +1 -1
- package/dist/icons/ChartBarLineIcon.js.map +1 -1
- package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedHorizontalIcon.js.map +1 -1
- package/dist/icons/ChartBarStackedIcon.js +1 -1
- package/dist/icons/ChartBarStackedIcon.js.map +1 -1
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js.map +1 -1
- package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageIcon.js.map +1 -1
- package/dist/icons/ChartBoxPlot2Icon.js +1 -1
- package/dist/icons/ChartBoxPlot2Icon.js.map +1 -1
- package/dist/icons/ChartBoxPlotIcon.js +1 -1
- package/dist/icons/ChartBoxPlotIcon.js.map +1 -1
- package/dist/icons/ChartBubbleIcon.js +1 -1
- package/dist/icons/ChartBubbleIcon.js.map +1 -1
- package/dist/icons/ChartDonut2Icon.js +1 -1
- package/dist/icons/ChartDonut2Icon.js.map +1 -1
- package/dist/icons/ChartFunnelIcon.js +1 -1
- package/dist/icons/ChartFunnelIcon.js.map +1 -1
- package/dist/icons/ChartHeatmapIcon.js +1 -1
- package/dist/icons/ChartHeatmapIcon.js.map +1 -1
- package/dist/icons/ChartKPIIcon.js +1 -1
- package/dist/icons/ChartKPIIcon.js.map +1 -1
- package/dist/icons/ChartPie2Icon.js +1 -1
- package/dist/icons/ChartPie2Icon.js.map +1 -1
- package/dist/icons/ChartScatterIcon.js +1 -1
- package/dist/icons/ChartScatterIcon.js.map +1 -1
- package/dist/icons/CheckCircleFilledIcon.js +1 -1
- package/dist/icons/CheckCircleFilledIcon.js.map +1 -1
- package/dist/icons/CheckCircleIcon.js +1 -1
- package/dist/icons/CheckCircleIcon.js.map +1 -1
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CheckIcon.js.map +1 -1
- package/dist/icons/CircleFilledIcon.js +1 -1
- package/dist/icons/CircleFilledIcon.js.map +1 -1
- package/dist/icons/ClearIcon.js +1 -1
- package/dist/icons/ClearIcon.js.map +1 -1
- package/dist/icons/CloseCircleFilledIcon.js +1 -1
- package/dist/icons/CloseCircleFilledIcon.js.map +1 -1
- package/dist/icons/CloseCircleIcon.js +1 -1
- package/dist/icons/CloseCircleIcon.js.map +1 -1
- package/dist/icons/CloseIcon.js +1 -1
- package/dist/icons/CloseIcon.js.map +1 -1
- package/dist/icons/CodeIcon.js +1 -1
- package/dist/icons/CodeIcon.js.map +1 -1
- package/dist/icons/ColumnTotalIcon.js +1 -1
- package/dist/icons/ColumnTotalIcon.js.map +1 -1
- package/dist/icons/CopyIcon.js +1 -1
- package/dist/icons/CopyIcon.js.map +1 -1
- package/dist/icons/CountIcon.js +1 -1
- package/dist/icons/CountIcon.js.map +1 -1
- package/dist/icons/CubeIcon.js +1 -1
- package/dist/icons/CubeIcon.js.map +1 -1
- package/dist/icons/CubePauseIcon.js +1 -1
- package/dist/icons/CubePauseIcon.js.map +1 -1
- package/dist/icons/CubePlayIcon.js +1 -1
- package/dist/icons/CubePlayIcon.js.map +1 -1
- package/dist/icons/CurrencyDollarIcon.js +1 -1
- package/dist/icons/CurrencyDollarIcon.js.map +1 -1
- package/dist/icons/DangerIcon.js +1 -1
- package/dist/icons/DangerIcon.js.map +1 -1
- package/dist/icons/DashboardIcon.js +1 -1
- package/dist/icons/DashboardIcon.js.map +1 -1
- package/dist/icons/DatabaseIcon.js +1 -1
- package/dist/icons/DatabaseIcon.js.map +1 -1
- package/dist/icons/DecimalDecreaseIcon.js +1 -1
- package/dist/icons/DecimalDecreaseIcon.js.map +1 -1
- package/dist/icons/DecimalIncreaseIcon.js +1 -1
- package/dist/icons/DecimalIncreaseIcon.js.map +1 -1
- package/dist/icons/DirectionIcon.js +67 -22
- package/dist/icons/DirectionIcon.js.map +1 -1
- package/dist/icons/DonutIcon.js +1 -1
- package/dist/icons/DonutIcon.js.map +1 -1
- package/dist/icons/DownIcon.js +1 -1
- package/dist/icons/DownIcon.js.map +1 -1
- package/dist/icons/EditIcon.js +1 -1
- package/dist/icons/EditIcon.js.map +1 -1
- package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
- package/dist/icons/ExclamationCircleFilledIcon.js.map +1 -1
- package/dist/icons/ExclamationCircleIcon.js +1 -1
- package/dist/icons/ExclamationCircleIcon.js.map +1 -1
- package/dist/icons/ExclamationIcon.js +1 -1
- package/dist/icons/ExclamationIcon.js.map +1 -1
- package/dist/icons/EyeIcon.js +1 -1
- package/dist/icons/EyeIcon.js.map +1 -1
- package/dist/icons/EyeInvisibleIcon.js +1 -1
- package/dist/icons/EyeInvisibleIcon.js.map +1 -1
- package/dist/icons/FilterIcon.js +1 -1
- package/dist/icons/FilterIcon.js.map +1 -1
- package/dist/icons/FolderFilledIcon.js +1 -1
- package/dist/icons/FolderFilledIcon.js.map +1 -1
- package/dist/icons/FolderIcon.js +1 -1
- package/dist/icons/FolderIcon.js.map +1 -1
- package/dist/icons/FolderOpenFilledIcon.js +1 -1
- package/dist/icons/FolderOpenFilledIcon.js.map +1 -1
- package/dist/icons/FolderOpenIcon.js +1 -1
- package/dist/icons/FolderOpenIcon.js.map +1 -1
- package/dist/icons/ForwardIcon.js +1 -1
- package/dist/icons/ForwardIcon.js.map +1 -1
- package/dist/icons/GripVerticalIcon.js +1 -1
- package/dist/icons/GripVerticalIcon.js.map +1 -1
- package/dist/icons/HierarchyIcon.js +1 -1
- package/dist/icons/HierarchyIcon.js.map +1 -1
- package/dist/icons/HierarchyOpenIcon.js +1 -1
- package/dist/icons/HierarchyOpenIcon.js.map +1 -1
- package/dist/icons/Icon.js +60 -16
- package/dist/icons/Icon.js.map +1 -1
- package/dist/icons/InfoCircleIcon.js +1 -1
- package/dist/icons/InfoCircleIcon.js.map +1 -1
- package/dist/icons/InfoIcon.js +1 -1
- package/dist/icons/InfoIcon.js.map +1 -1
- package/dist/icons/KeyIcon.js +1 -1
- package/dist/icons/KeyIcon.js.map +1 -1
- package/dist/icons/LeftIcon.js +1 -1
- package/dist/icons/LeftIcon.js.map +1 -1
- package/dist/icons/LineChartIcon.js +1 -1
- package/dist/icons/LineChartIcon.js.map +1 -1
- package/dist/icons/LoadingIcon.js +1 -1
- package/dist/icons/LoadingIcon.js.map +1 -1
- package/dist/icons/LockFilledIcon.js +1 -1
- package/dist/icons/LockFilledIcon.js.map +1 -1
- package/dist/icons/LockIcon.js +1 -1
- package/dist/icons/LockIcon.js.map +1 -1
- package/dist/icons/MoreIcon.js +1 -1
- package/dist/icons/MoreIcon.js.map +1 -1
- package/dist/icons/NotAllowedIcon.js +1 -1
- package/dist/icons/NotAllowedIcon.js.map +1 -1
- package/dist/icons/Number123Icon.js +1 -1
- package/dist/icons/Number123Icon.js.map +1 -1
- package/dist/icons/NumberIcon.js +1 -1
- package/dist/icons/NumberIcon.js.map +1 -1
- package/dist/icons/PauseCircleFilledIcon.js +1 -1
- package/dist/icons/PauseCircleFilledIcon.js.map +1 -1
- package/dist/icons/PauseCircleIcon.js +1 -1
- package/dist/icons/PauseCircleIcon.js.map +1 -1
- package/dist/icons/PauseIcon.js +1 -1
- package/dist/icons/PauseIcon.js.map +1 -1
- package/dist/icons/PercentageIcon.js +1 -1
- package/dist/icons/PercentageIcon.js.map +1 -1
- package/dist/icons/PieChartIcon.js +1 -1
- package/dist/icons/PieChartIcon.js.map +1 -1
- package/dist/icons/PipetteIcon.js +1 -1
- package/dist/icons/PipetteIcon.js.map +1 -1
- package/dist/icons/PlayCircleIcon.js +1 -1
- package/dist/icons/PlayCircleIcon.js.map +1 -1
- package/dist/icons/PlayIcon.js +1 -1
- package/dist/icons/PlayIcon.js.map +1 -1
- package/dist/icons/PlusIcon.js +1 -1
- package/dist/icons/PlusIcon.js.map +1 -1
- package/dist/icons/ProgressBarIcon.js +1 -1
- package/dist/icons/ProgressBarIcon.js.map +1 -1
- package/dist/icons/ReloadIcon.js +1 -1
- package/dist/icons/ReloadIcon.js.map +1 -1
- package/dist/icons/ReportIcon.js +1 -1
- package/dist/icons/ReportIcon.js.map +1 -1
- package/dist/icons/ReturnIcon.js +1 -1
- package/dist/icons/ReturnIcon.js.map +1 -1
- package/dist/icons/RightIcon.js +1 -1
- package/dist/icons/RightIcon.js.map +1 -1
- package/dist/icons/RowTotalsIcon.js +1 -1
- package/dist/icons/RowTotalsIcon.js.map +1 -1
- package/dist/icons/SchemeIcon.js +1 -1
- package/dist/icons/SchemeIcon.js.map +1 -1
- package/dist/icons/SearchIcon.js +1 -1
- package/dist/icons/SearchIcon.js.map +1 -1
- package/dist/icons/SemanticQueryIcon.js +1 -1
- package/dist/icons/SemanticQueryIcon.js.map +1 -1
- package/dist/icons/SettingsIcon.js +1 -1
- package/dist/icons/SettingsIcon.js.map +1 -1
- package/dist/icons/ShieldFilledIcon.js +1 -1
- package/dist/icons/ShieldFilledIcon.js.map +1 -1
- package/dist/icons/ShieldIcon.js +1 -1
- package/dist/icons/ShieldIcon.js.map +1 -1
- package/dist/icons/SlashIcon.js +1 -1
- package/dist/icons/SlashIcon.js.map +1 -1
- package/dist/icons/SparklesIcon.js +1 -1
- package/dist/icons/SparklesIcon.js.map +1 -1
- package/dist/icons/SqlIcon.js +1 -1
- package/dist/icons/SqlIcon.js.map +1 -1
- package/dist/icons/StatsIcon.js +1 -1
- package/dist/icons/StatsIcon.js.map +1 -1
- package/dist/icons/StopIcon.js +1 -1
- package/dist/icons/StopIcon.js.map +1 -1
- package/dist/icons/StringIcon.js +1 -1
- package/dist/icons/StringIcon.js.map +1 -1
- package/dist/icons/SubtotalsIcon.js +1 -1
- package/dist/icons/SubtotalsIcon.js.map +1 -1
- package/dist/icons/SwitchIcon.js +1 -1
- package/dist/icons/SwitchIcon.js.map +1 -1
- package/dist/icons/TableIcon.js +1 -1
- package/dist/icons/TableIcon.js.map +1 -1
- package/dist/icons/ThumbsDownIcon.js +1 -1
- package/dist/icons/ThumbsDownIcon.js.map +1 -1
- package/dist/icons/ThumbsUpIcon.js +1 -1
- package/dist/icons/ThumbsUpIcon.js.map +1 -1
- package/dist/icons/ThunderboltCrossedIcon.js +1 -1
- package/dist/icons/ThunderboltCrossedIcon.js.map +1 -1
- package/dist/icons/ThunderboltFilledIcon.js +1 -1
- package/dist/icons/ThunderboltFilledIcon.js.map +1 -1
- package/dist/icons/ThunderboltIcon.js +1 -1
- package/dist/icons/ThunderboltIcon.js.map +1 -1
- package/dist/icons/TimeIcon.js +1 -1
- package/dist/icons/TimeIcon.js.map +1 -1
- package/dist/icons/TrashIcon.js +1 -1
- package/dist/icons/TrashIcon.js.map +1 -1
- package/dist/icons/UnlockIcon.js +1 -1
- package/dist/icons/UnlockIcon.js.map +1 -1
- package/dist/icons/UpIcon.js +1 -1
- package/dist/icons/UpIcon.js.map +1 -1
- package/dist/icons/UserGroupIcon.js +1 -1
- package/dist/icons/UserGroupIcon.js.map +1 -1
- package/dist/icons/UserIcon.js +1 -1
- package/dist/icons/UserIcon.js.map +1 -1
- package/dist/icons/UserLockIcon.js +1 -1
- package/dist/icons/UserLockIcon.js.map +1 -1
- package/dist/icons/ViewIcon.js +1 -1
- package/dist/icons/ViewIcon.js.map +1 -1
- package/dist/icons/WarningFilledIcon.js +1 -1
- package/dist/icons/WarningFilledIcon.js.map +1 -1
- package/dist/icons/WarningIcon.js +1 -1
- package/dist/icons/WarningIcon.js.map +1 -1
- package/dist/icons/wrap-icon.js +15 -7
- package/dist/icons/wrap-icon.js.map +1 -1
- package/dist/index.d.ts +22 -22
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/probe/canonicalize.js +2 -2
- package/dist/probe/canonicalize.js.map +1 -1
- package/dist/probe/css.js +1 -1
- package/dist/probe/css.js.map +1 -1
- package/dist/probe/index.js +1 -1
- package/dist/provider.js +17 -7
- package/dist/provider.js.map +1 -1
- package/dist/providers/TrackingProvider.js +33 -9
- package/dist/providers/TrackingProvider.js.map +1 -1
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/providers/navigationAdapter.default.js.map +1 -1
- package/dist/tokens/all-tokens.js +1 -1
- package/dist/tokens/all-tokens.js.map +1 -1
- package/dist/tokens/base.js +2 -2
- package/dist/tokens/base.js.map +1 -1
- package/dist/tokens/color-seed.js +1 -1
- package/dist/tokens/color-seed.js.map +1 -1
- package/dist/tokens/color-theme.js +18 -3
- package/dist/tokens/color-theme.js.map +1 -1
- package/dist/tokens/colors.js +1 -1
- package/dist/tokens/colors.js.map +1 -1
- package/dist/tokens/layout.js +1 -1
- package/dist/tokens/layout.js.map +1 -1
- package/dist/tokens/lazy-styles.js +1 -1
- package/dist/tokens/lazy-styles.js.map +1 -1
- package/dist/tokens/legacy-color.js +1 -1
- package/dist/tokens/legacy-color.js.map +1 -1
- package/dist/tokens/palette-config.js +9 -2
- package/dist/tokens/palette-config.js.map +1 -1
- package/dist/tokens/palette.js +1 -1
- package/dist/tokens/palette.js.map +1 -1
- package/dist/tokens/resolve.js +85 -21
- package/dist/tokens/resolve.js.map +1 -1
- package/dist/tokens/shadows.js +1 -1
- package/dist/tokens/shadows.js.map +1 -1
- package/dist/tokens/sizes.js +1 -1
- package/dist/tokens/sizes.js.map +1 -1
- package/dist/tokens/spacing.js +1 -1
- package/dist/tokens/spacing.js.map +1 -1
- package/dist/tokens/typography.js +1 -1
- package/dist/tokens/typography.js.map +1 -1
- package/dist/utils/ResizeSensor.js +1 -1
- package/dist/utils/ResizeSensor.js.map +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/colors.js.map +1 -1
- package/dist/utils/dotize.js +1 -1
- package/dist/utils/dotize.js.map +1 -1
- package/dist/utils/is-dev-env.js +1 -1
- package/dist/utils/is-dev-env.js.map +1 -1
- package/dist/utils/modules.js +1 -1
- package/dist/utils/modules.js.map +1 -1
- package/dist/utils/promise.js +1 -1
- package/dist/utils/promise.js.map +1 -1
- package/dist/utils/raf.js +1 -1
- package/dist/utils/raf.js.map +1 -1
- package/dist/utils/random.js +1 -1
- package/dist/utils/random.js.map +1 -1
- package/dist/utils/range.js +1 -1
- package/dist/utils/range.js.map +1 -1
- package/dist/utils/react/RenderCache.js +2 -2
- package/dist/utils/react/RenderCache.js.map +1 -1
- package/dist/utils/react/Slots.js +67 -24
- package/dist/utils/react/Slots.js.map +1 -1
- package/dist/utils/react/chain.js +1 -1
- package/dist/utils/react/chain.js.map +1 -1
- package/dist/utils/react/disabledProps.js +1 -1
- package/dist/utils/react/disabledProps.js.map +1 -1
- package/dist/utils/react/escapePropagation.js +1 -1
- package/dist/utils/react/escapePropagation.js.map +1 -1
- package/dist/utils/react/forwardRefWithGenerics.js +1 -1
- package/dist/utils/react/forwardRefWithGenerics.js.map +1 -1
- package/dist/utils/react/index.js +1 -1
- package/dist/utils/react/interactions.js +35 -12
- package/dist/utils/react/interactions.js.map +1 -1
- package/dist/utils/react/isTextOnly.js +1 -1
- package/dist/utils/react/isTextOnly.js.map +1 -1
- package/dist/utils/react/mapProps.js +1 -1
- package/dist/utils/react/mapProps.js.map +1 -1
- package/dist/utils/react/mergeProps.js +1 -1
- package/dist/utils/react/mergeProps.js.map +1 -1
- package/dist/utils/react/nullableValue.js +1 -1
- package/dist/utils/react/nullableValue.js.map +1 -1
- package/dist/utils/react/programmaticFocus.js +1 -1
- package/dist/utils/react/programmaticFocus.js.map +1 -1
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/resolveIcon.js.map +1 -1
- package/dist/utils/react/sharedStore.js +13 -2
- package/dist/utils/react/sharedStore.js.map +1 -1
- package/dist/utils/react/useBufferedValue.js +5 -5
- package/dist/utils/react/useBufferedValue.js.map +1 -1
- package/dist/utils/react/useCombinedRefs.js +20 -5
- package/dist/utils/react/useCombinedRefs.js.map +1 -1
- package/dist/utils/react/useControlledFocusVisible.js +53 -17
- package/dist/utils/react/useControlledFocusVisible.js.map +1 -1
- package/dist/utils/react/useEventBus.js +43 -18
- package/dist/utils/react/useEventBus.js.map +1 -1
- package/dist/utils/react/useId.js +2 -1
- package/dist/utils/react/useId.js.map +1 -1
- package/dist/utils/react/useIsDarwin.js +29 -16
- package/dist/utils/react/useIsDarwin.js.map +1 -1
- package/dist/utils/react/useKeySymbols.js +23 -9
- package/dist/utils/react/useKeySymbols.js.map +1 -1
- package/dist/utils/react/useLayoutEffect.js +1 -1
- package/dist/utils/react/useLayoutEffect.js.map +1 -1
- package/dist/utils/react/useLocalStorage.js +75 -30
- package/dist/utils/react/useLocalStorage.js.map +1 -1
- package/dist/utils/react/useMergeStyles.js +1 -1
- package/dist/utils/react/useMergeStyles.js.map +1 -1
- package/dist/utils/react/useOverlayEscapeGuard.js +25 -9
- package/dist/utils/react/useOverlayEscapeGuard.js.map +1 -1
- package/dist/utils/react/usePopoverSync.js +175 -73
- package/dist/utils/react/usePopoverSync.js.map +1 -1
- package/dist/utils/react/useQaProps.js +1 -1
- package/dist/utils/react/useQaProps.js.map +1 -1
- package/dist/utils/react/useScheme.js +1 -1
- package/dist/utils/react/useScheme.js.map +1 -1
- package/dist/utils/react/useViewportSize.js +43 -19
- package/dist/utils/react/useViewportSize.js.map +1 -1
- package/dist/utils/react/wrapNodeIfPlain.js +1 -1
- package/dist/utils/react/wrapNodeIfPlain.js.map +1 -1
- package/dist/utils/selection.js +1 -1
- package/dist/utils/selection.js.map +1 -1
- package/dist/utils/styles.js +1 -1
- package/dist/utils/styles.js.map +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/tree.js.map +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/utils/warnings.js.map +1 -1
- package/dist/version.js +2 -2
- package/dist/version.js.map +1 -1
- package/docs/Usage.md +9 -1
- package/docs/components/actions/Button.md +1 -1
- package/docs/components/content/InlineInput.md +1 -1
- package/docs/components/content/Item.md +19 -0
- package/docs/components/fields/ColorInput.md +13 -8
- package/docs/components/fields/ColorPicker.md +13 -8
- package/docs/components/fields/ComboBox.md +16 -12
- package/docs/components/fields/CommandTextArea.md +3 -1
- package/docs/components/fields/FilterListBox.md +24 -19
- package/docs/components/fields/FilterPicker.md +25 -19
- package/docs/components/fields/ListBox.md +36 -26
- package/docs/components/fields/Picker.md +28 -21
- package/docs/components/fields/Select.md +17 -12
- package/docs/components/form/Field.md +2 -2
- package/docs/components/form/Form.md +60 -579
- package/docs/components/form/ModernForm.md +22 -1
- package/docs/components/overlays/Dialog.md +26 -0
- package/docs/components/overlays/DialogForm.md +121 -263
- package/docs/components/overlays/DialogTrigger.md +1 -1
- package/docs/components/overlays/UseDialogContainer.md +11 -13
- package/docs/modern-form-guide.md +22 -1
- package/docs/modern-form-migration.md +1 -1
- package/package.json +7 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.183.0 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../utils/styles.js";
|
|
3
3
|
import { useSlotProps } from "../../utils/react/Slots.js";
|
|
4
|
+
import { c } from "react-compiler-runtime";
|
|
4
5
|
import { BASE_STYLES, COLOR_STYLES, TEXT_STYLES, filterBaseProps, tasty } from "@tenphi/tasty";
|
|
5
6
|
import { forwardRef } from "react";
|
|
6
7
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -45,20 +46,66 @@ const TextElement = tasty({
|
|
|
45
46
|
}
|
|
46
47
|
});
|
|
47
48
|
const Text = forwardRef(function CubeText(allProps, ref) {
|
|
49
|
+
const $ = c(18);
|
|
48
50
|
allProps = useSlotProps(allProps, "text");
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
51
|
+
let T0;
|
|
52
|
+
let styles;
|
|
53
|
+
let t0;
|
|
54
|
+
let t1;
|
|
55
|
+
let t2;
|
|
56
|
+
let t3;
|
|
57
|
+
if ($[0] !== allProps) {
|
|
58
|
+
const { as, qa, ellipsis, nowrap, ...props } = allProps;
|
|
59
|
+
styles = extractStyles(props, STYLE_LIST, {}, TEXT_PROP_MAP);
|
|
60
|
+
T0 = TextElement;
|
|
61
|
+
t0 = as || "span";
|
|
62
|
+
t1 = qa || "Text";
|
|
63
|
+
const t4 = !!ellipsis;
|
|
64
|
+
if ($[7] !== nowrap || $[8] !== t4) {
|
|
65
|
+
t2 = {
|
|
66
|
+
nowrap,
|
|
67
|
+
ellipsis: t4
|
|
68
|
+
};
|
|
69
|
+
$[7] = nowrap;
|
|
70
|
+
$[8] = t4;
|
|
71
|
+
$[9] = t2;
|
|
72
|
+
} else t2 = $[9];
|
|
73
|
+
t3 = filterBaseProps(props, { eventProps: true });
|
|
74
|
+
$[0] = allProps;
|
|
75
|
+
$[1] = T0;
|
|
76
|
+
$[2] = styles;
|
|
77
|
+
$[3] = t0;
|
|
78
|
+
$[4] = t1;
|
|
79
|
+
$[5] = t2;
|
|
80
|
+
$[6] = t3;
|
|
81
|
+
} else {
|
|
82
|
+
T0 = $[1];
|
|
83
|
+
styles = $[2];
|
|
84
|
+
t0 = $[3];
|
|
85
|
+
t1 = $[4];
|
|
86
|
+
t2 = $[5];
|
|
87
|
+
t3 = $[6];
|
|
88
|
+
}
|
|
89
|
+
let t4;
|
|
90
|
+
if ($[10] !== T0 || $[11] !== ref || $[12] !== styles || $[13] !== t0 || $[14] !== t1 || $[15] !== t2 || $[16] !== t3) {
|
|
91
|
+
t4 = /* @__PURE__ */ jsx(T0, {
|
|
92
|
+
as: t0,
|
|
93
|
+
qa: t1,
|
|
94
|
+
mods: t2,
|
|
95
|
+
...t3,
|
|
96
|
+
ref,
|
|
97
|
+
styles
|
|
98
|
+
});
|
|
99
|
+
$[10] = T0;
|
|
100
|
+
$[11] = ref;
|
|
101
|
+
$[12] = styles;
|
|
102
|
+
$[13] = t0;
|
|
103
|
+
$[14] = t1;
|
|
104
|
+
$[15] = t2;
|
|
105
|
+
$[16] = t3;
|
|
106
|
+
$[17] = t4;
|
|
107
|
+
} else t4 = $[17];
|
|
108
|
+
return t4;
|
|
62
109
|
});
|
|
63
110
|
const MinorText = tasty(Text, { styles: { color: "#minor" } });
|
|
64
111
|
const DangerText = tasty(Text, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","names":[],"sources":["../../../src/components/content/Text.tsx"],"sourcesContent":["import {\n AllBaseProps,\n BASE_STYLES,\n BaseStyleProps,\n COLOR_STYLES,\n ColorStyleProps,\n filterBaseProps,\n StylePropValue,\n TagName,\n tasty,\n TEXT_STYLES,\n TextStyleProps,\n} from '@tenphi/tasty';\nimport {\n CSSProperties,\n forwardRef,\n ForwardRefExoticComponent,\n RefAttributes,\n} from 'react';\n\nimport { useSlotProps } from '../../utils/react';\nimport { extractStyles } from '../../utils/styles';\n\nconst STYLE_LIST = [...BASE_STYLES, ...TEXT_STYLES, ...COLOR_STYLES] as const;\n\nexport const TEXT_PROP_MAP = {\n transform: 'textTransform',\n weight: 'fontWeight',\n italic: 'fontStyle',\n} as const;\n\nexport interface CubeTextProps<T extends TagName = TagName>\n extends AllBaseProps<T>,\n TextStyleProps,\n BaseStyleProps,\n ColorStyleProps {\n /**\n * Whether the text uses the monospace font.\n */\n monospace?: boolean;\n /**\n * Whether the text overflow is ellipsis\n */\n ellipsis?: boolean;\n /**\n * Whether the text is not wrapping\n */\n nowrap?: boolean;\n /**\n * Whether the text has italic style\n */\n italic?: StylePropValue<CSSProperties['fontStyle']>;\n weight?: string | number;\n transform?: StylePropValue<CSSProperties['textTransform']>;\n}\n\nconst TextElement = tasty({\n qa: 'Text',\n as: 'span',\n styles: {\n display: {\n '': 'inline',\n ellipsis: 'block',\n },\n margin: 0,\n padding: 0,\n whiteSpace: {\n '': 'inherit',\n 'nowrap | ellipsis': 'nowrap',\n },\n textOverflow: {\n '': false,\n ellipsis: 'ellipsis',\n },\n overflow: {\n '': false,\n ellipsis: 'hidden',\n },\n width: {\n '': false,\n ellipsis: 'max 100%',\n },\n },\n});\n\nconst Text = forwardRef(function CubeText(allProps: CubeTextProps, ref) {\n allProps = useSlotProps(allProps, 'text');\n\n const { as, qa, ellipsis, nowrap, ...props } = allProps;\n const styles = extractStyles(props, STYLE_LIST, {}, TEXT_PROP_MAP);\n\n return (\n <TextElement\n as={as || 'span'}\n qa={qa || 'Text'}\n mods={{\n nowrap,\n ellipsis: !!ellipsis,\n }}\n {...filterBaseProps(props, { eventProps: true })}\n ref={ref}\n styles={styles}\n />\n );\n});\n\nconst MinorText = tasty(Text, {\n styles: {\n color: '#minor',\n },\n});\n\nconst DangerText = tasty(Text, {\n role: 'alert',\n styles: {\n color: '#danger-text',\n },\n});\n\nconst SuccessText = tasty(Text, {\n styles: {\n color: '#success-text',\n },\n});\n\nconst StrongText = tasty(Text, {\n as: 'strong',\n preset: 'strong',\n});\n\nconst EmphasisText = tasty(Text, {\n as: 'em',\n preset: 'italic',\n});\n\nconst PlaceholderText = tasty(Text, {\n styles: {\n color: '#current.5',\n },\n});\n\nconst HighlightText = tasty(Text, {\n as: 'mark',\n styles: {\n fill: '#dark.15',\n color: '#dark',\n },\n});\n\nexport interface TextComponent\n extends ForwardRefExoticComponent<\n CubeTextProps & RefAttributes<HTMLElement>\n > {\n Minor: typeof MinorText;\n Danger: typeof DangerText;\n Success: typeof SuccessText;\n Strong: typeof StrongText;\n Emphasis: typeof EmphasisText;\n Placeholder: typeof PlaceholderText;\n Highlight: typeof HighlightText;\n}\n\nconst _Text: TextComponent = Object.assign(Text, {\n Minor: MinorText,\n Danger: DangerText,\n Success: SuccessText,\n Strong: StrongText,\n Emphasis: EmphasisText,\n Placeholder: PlaceholderText,\n Highlight: HighlightText,\n});\n\n_Text.displayName = 'Text';\n\nexport { _Text as Text };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Text.js","names":["AllBaseProps","BASE_STYLES","BaseStyleProps","COLOR_STYLES","ColorStyleProps","filterBaseProps","StylePropValue","TagName","tasty","TEXT_STYLES","TextStyleProps","CSSProperties","forwardRef","ForwardRefExoticComponent","RefAttributes","useSlotProps","extractStyles","STYLE_LIST","const","TEXT_PROP_MAP","transform","weight","italic","CubeTextProps","T","monospace","ellipsis","nowrap","TextElement","qa","as","styles","display","margin","padding","whiteSpace","textOverflow","overflow","width","Text","CubeText","allProps","ref","$","_c","T0","t0","t1","t2","t3","props","t4","eventProps","MinorText","color","DangerText","role","SuccessText","StrongText","preset","EmphasisText","PlaceholderText","HighlightText","fill","TextComponent","HTMLElement","Minor","Danger","Success","Strong","Emphasis","Placeholder","Highlight","_Text","Object","assign","displayName"],"sources":["../../../src/components/content/Text.tsx"],"sourcesContent":["import {\n AllBaseProps,\n BASE_STYLES,\n BaseStyleProps,\n COLOR_STYLES,\n ColorStyleProps,\n filterBaseProps,\n StylePropValue,\n TagName,\n tasty,\n TEXT_STYLES,\n TextStyleProps,\n} from '@tenphi/tasty';\nimport {\n CSSProperties,\n forwardRef,\n ForwardRefExoticComponent,\n RefAttributes,\n} from 'react';\n\nimport { useSlotProps } from '../../utils/react';\nimport { extractStyles } from '../../utils/styles';\n\nconst STYLE_LIST = [...BASE_STYLES, ...TEXT_STYLES, ...COLOR_STYLES] as const;\n\nexport const TEXT_PROP_MAP = {\n transform: 'textTransform',\n weight: 'fontWeight',\n italic: 'fontStyle',\n} as const;\n\nexport interface CubeTextProps<T extends TagName = TagName>\n extends AllBaseProps<T>,\n TextStyleProps,\n BaseStyleProps,\n ColorStyleProps {\n /**\n * Whether the text uses the monospace font.\n */\n monospace?: boolean;\n /**\n * Whether the text overflow is ellipsis\n */\n ellipsis?: boolean;\n /**\n * Whether the text is not wrapping\n */\n nowrap?: boolean;\n /**\n * Whether the text has italic style\n */\n italic?: StylePropValue<CSSProperties['fontStyle']>;\n weight?: string | number;\n transform?: StylePropValue<CSSProperties['textTransform']>;\n}\n\nconst TextElement = tasty({\n qa: 'Text',\n as: 'span',\n styles: {\n display: {\n '': 'inline',\n ellipsis: 'block',\n },\n margin: 0,\n padding: 0,\n whiteSpace: {\n '': 'inherit',\n 'nowrap | ellipsis': 'nowrap',\n },\n textOverflow: {\n '': false,\n ellipsis: 'ellipsis',\n },\n overflow: {\n '': false,\n ellipsis: 'hidden',\n },\n width: {\n '': false,\n ellipsis: 'max 100%',\n },\n },\n});\n\nconst Text = forwardRef(function CubeText(allProps: CubeTextProps, ref) {\n allProps = useSlotProps(allProps, 'text');\n\n const { as, qa, ellipsis, nowrap, ...props } = allProps;\n const styles = extractStyles(props, STYLE_LIST, {}, TEXT_PROP_MAP);\n\n return (\n <TextElement\n as={as || 'span'}\n qa={qa || 'Text'}\n mods={{\n nowrap,\n ellipsis: !!ellipsis,\n }}\n {...filterBaseProps(props, { eventProps: true })}\n ref={ref}\n styles={styles}\n />\n );\n});\n\nconst MinorText = tasty(Text, {\n styles: {\n color: '#minor',\n },\n});\n\nconst DangerText = tasty(Text, {\n role: 'alert',\n styles: {\n color: '#danger-text',\n },\n});\n\nconst SuccessText = tasty(Text, {\n styles: {\n color: '#success-text',\n },\n});\n\nconst StrongText = tasty(Text, {\n as: 'strong',\n preset: 'strong',\n});\n\nconst EmphasisText = tasty(Text, {\n as: 'em',\n preset: 'italic',\n});\n\nconst PlaceholderText = tasty(Text, {\n styles: {\n color: '#current.5',\n },\n});\n\nconst HighlightText = tasty(Text, {\n as: 'mark',\n styles: {\n fill: '#dark.15',\n color: '#dark',\n },\n});\n\nexport interface TextComponent\n extends ForwardRefExoticComponent<\n CubeTextProps & RefAttributes<HTMLElement>\n > {\n Minor: typeof MinorText;\n Danger: typeof DangerText;\n Success: typeof SuccessText;\n Strong: typeof StrongText;\n Emphasis: typeof EmphasisText;\n Placeholder: typeof PlaceholderText;\n Highlight: typeof HighlightText;\n}\n\nconst _Text: TextComponent = Object.assign(Text, {\n Minor: MinorText,\n Danger: DangerText,\n Success: SuccessText,\n Strong: StrongText,\n Emphasis: EmphasisText,\n Placeholder: PlaceholderText,\n Highlight: HighlightText,\n});\n\n_Text.displayName = 'Text';\n\nexport { _Text as Text };\n"],"mappings":"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"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.183.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";
|
|
5
5
|
import { useAutoTooltip } from "../use-auto-tooltip.js";
|
|
6
|
+
import { c } from "react-compiler-runtime";
|
|
6
7
|
import { BASE_STYLES, COLOR_STYLES, TEXT_STYLES, filterBaseProps, tasty } from "@tenphi/tasty";
|
|
7
|
-
import { forwardRef
|
|
8
|
+
import { forwardRef } from "react";
|
|
8
9
|
import { jsx } from "react/jsx-runtime";
|
|
9
10
|
|
|
10
11
|
//#region src/components/content/TextItem/TextItem.tsx
|
|
@@ -25,21 +26,41 @@ const TextItemElement = tasty(_Text, {
|
|
|
25
26
|
}
|
|
26
27
|
});
|
|
27
28
|
const TextItem = forwardRef(function TextItem(props, ref) {
|
|
28
|
-
const
|
|
29
|
+
const $ = c(8);
|
|
30
|
+
const { children, highlight, highlightCaseSensitive: t0, highlightStyles, tooltip: t1, tooltipPlacement: t2, ...restProps } = props;
|
|
31
|
+
const highlightCaseSensitive = t0 === void 0 ? false : t0;
|
|
32
|
+
const tooltip = t1 === void 0 ? true : t1;
|
|
33
|
+
const tooltipPlacement = t2 === void 0 ? "top" : t2;
|
|
29
34
|
const styles = extractStyles(restProps, STYLE_LIST, {}, TEXT_PROP_MAP);
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
let t3;
|
|
36
|
+
if ($[0] !== children || $[1] !== tooltip) {
|
|
37
|
+
t3 = {
|
|
38
|
+
tooltip,
|
|
39
|
+
children
|
|
40
|
+
};
|
|
41
|
+
$[0] = children;
|
|
42
|
+
$[1] = tooltip;
|
|
43
|
+
$[2] = t3;
|
|
44
|
+
} else t3 = $[2];
|
|
45
|
+
const { labelRef, renderWithTooltip } = useAutoTooltip(t3);
|
|
46
|
+
let t4;
|
|
47
|
+
bb0: {
|
|
48
|
+
if (typeof children === "string" && highlight) {
|
|
49
|
+
let t5;
|
|
50
|
+
if ($[3] !== children || $[4] !== highlight || $[5] !== highlightCaseSensitive || $[6] !== highlightStyles) {
|
|
51
|
+
t5 = highlightText(children, highlight, highlightCaseSensitive, highlightStyles);
|
|
52
|
+
$[3] = children;
|
|
53
|
+
$[4] = highlight;
|
|
54
|
+
$[5] = highlightCaseSensitive;
|
|
55
|
+
$[6] = highlightStyles;
|
|
56
|
+
$[7] = t5;
|
|
57
|
+
} else t5 = $[7];
|
|
58
|
+
t4 = t5;
|
|
59
|
+
break bb0;
|
|
60
|
+
}
|
|
61
|
+
t4 = children;
|
|
62
|
+
}
|
|
63
|
+
const processedChildren = t4;
|
|
43
64
|
const renderElement = (tooltipTriggerProps, tooltipRef) => {
|
|
44
65
|
const handleRef = (element) => {
|
|
45
66
|
if (typeof ref === "function") ref(element);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextItem.js","names":["Text"],"sources":["../../../../src/components/content/TextItem/TextItem.tsx"],"sourcesContent":["import {\n BASE_STYLES,\n COLOR_STYLES,\n filterBaseProps,\n Styles,\n tasty,\n TEXT_STYLES,\n} from '@tenphi/tasty';\nimport { forwardRef, HTMLAttributes, RefObject, useMemo } from 'react';\nimport { OverlayProps } from 'react-aria';\n\nimport { extractStyles } from '../../../utils/styles';\nimport { highlightText } from '../highlightText';\nimport { CubeTextProps, Text, TEXT_PROP_MAP } from '../Text';\nimport { AutoTooltipValue, useAutoTooltip } from '../use-auto-tooltip';\n\nconst STYLE_LIST = [...BASE_STYLES, ...TEXT_STYLES, ...COLOR_STYLES] as const;\n\nexport interface CubeTextItemProps extends CubeTextProps {\n /**\n * String to highlight within children.\n * Only works when children is a plain string.\n */\n highlight?: string;\n /**\n * Whether highlight matching is case-sensitive.\n * @default false\n */\n highlightCaseSensitive?: boolean;\n /**\n * Custom styles for highlighted text.\n */\n highlightStyles?: Styles;\n /**\n * Tooltip content and configuration:\n * - string: simple tooltip text\n * - true: auto tooltip on overflow (shows children as tooltip when truncated)\n * - object: advanced configuration with optional auto property\n * @default true\n */\n tooltip?: AutoTooltipValue;\n /**\n * Default tooltip placement.\n * @default \"top\"\n */\n tooltipPlacement?: OverlayProps['placement'];\n}\n\nconst TextItemElement = tasty(Text, {\n qa: 'TextItem',\n styles: {\n display: 'inline-block',\n verticalAlign: 'bottom',\n width: 'max 100%',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n },\n});\n\nexport const TextItem = forwardRef<HTMLElement, CubeTextItemProps>(\n function TextItem(props, ref) {\n const {\n children,\n highlight,\n highlightCaseSensitive = false,\n highlightStyles,\n tooltip = true,\n tooltipPlacement = 'top',\n ...restProps\n } = props;\n\n // Extract style props (preset, color, etc.) to pass via styles prop\n const styles = extractStyles(restProps, STYLE_LIST, {}, TEXT_PROP_MAP);\n\n const { labelRef, renderWithTooltip } = useAutoTooltip({\n tooltip,\n children,\n });\n\n // Process children with highlight if applicable\n const processedChildren = useMemo(() => {\n if (typeof children === 'string' && highlight) {\n return highlightText(\n children,\n highlight,\n highlightCaseSensitive,\n highlightStyles,\n );\n }\n return children;\n }, [children, highlight, highlightCaseSensitive, highlightStyles]);\n\n const renderElement = (\n tooltipTriggerProps?: HTMLAttributes<HTMLElement>,\n tooltipRef?: RefObject<HTMLElement>,\n ) => {\n // Merge refs\n const handleRef = (element: HTMLElement | null) => {\n // Set component forwarded ref\n if (typeof ref === 'function') {\n ref(element);\n } else if (ref) {\n (ref as any).current = element;\n }\n // Set tooltip ref\n if (tooltipRef) {\n (tooltipRef as any).current = element;\n }\n // Set label ref for overflow detection\n labelRef(element);\n };\n\n return (\n <TextItemElement\n {...filterBaseProps(restProps, { eventProps: true })}\n {...tooltipTriggerProps}\n ref={handleRef}\n styles={styles}\n >\n {processedChildren}\n </TextItemElement>\n );\n };\n\n return renderWithTooltip(renderElement, tooltipPlacement);\n },\n);\n\nTextItem.displayName = 'TextItem';\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextItem.js","names":["BASE_STYLES","COLOR_STYLES","filterBaseProps","Styles","tasty","TEXT_STYLES","forwardRef","HTMLAttributes","RefObject","useMemo","OverlayProps","extractStyles","highlightText","CubeTextProps","Text","TEXT_PROP_MAP","AutoTooltipValue","useAutoTooltip","STYLE_LIST","const","CubeTextItemProps","highlight","highlightCaseSensitive","highlightStyles","tooltip","tooltipPlacement","TextItemElement","qa","styles","display","verticalAlign","width","whiteSpace","overflow","textOverflow","TextItem","HTMLElement","props","ref","$","_c","children","t0","t1","t2","restProps","undefined","t3","labelRef","renderWithTooltip","t4","bb0","t5","processedChildren","renderElement","tooltipTriggerProps","tooltipRef","handleRef","element","current","eventProps","displayName"],"sources":["../../../../src/components/content/TextItem/TextItem.tsx"],"sourcesContent":["import {\n BASE_STYLES,\n COLOR_STYLES,\n filterBaseProps,\n Styles,\n tasty,\n TEXT_STYLES,\n} from '@tenphi/tasty';\nimport { forwardRef, HTMLAttributes, RefObject, useMemo } from 'react';\nimport { OverlayProps } from 'react-aria';\n\nimport { extractStyles } from '../../../utils/styles';\nimport { highlightText } from '../highlightText';\nimport { CubeTextProps, Text, TEXT_PROP_MAP } from '../Text';\nimport { AutoTooltipValue, useAutoTooltip } from '../use-auto-tooltip';\n\nconst STYLE_LIST = [...BASE_STYLES, ...TEXT_STYLES, ...COLOR_STYLES] as const;\n\nexport interface CubeTextItemProps extends CubeTextProps {\n /**\n * String to highlight within children.\n * Only works when children is a plain string.\n */\n highlight?: string;\n /**\n * Whether highlight matching is case-sensitive.\n * @default false\n */\n highlightCaseSensitive?: boolean;\n /**\n * Custom styles for highlighted text.\n */\n highlightStyles?: Styles;\n /**\n * Tooltip content and configuration:\n * - string: simple tooltip text\n * - true: auto tooltip on overflow (shows children as tooltip when truncated)\n * - object: advanced configuration with optional auto property\n * @default true\n */\n tooltip?: AutoTooltipValue;\n /**\n * Default tooltip placement.\n * @default \"top\"\n */\n tooltipPlacement?: OverlayProps['placement'];\n}\n\nconst TextItemElement = tasty(Text, {\n qa: 'TextItem',\n styles: {\n display: 'inline-block',\n verticalAlign: 'bottom',\n width: 'max 100%',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n },\n});\n\nexport const TextItem = forwardRef<HTMLElement, CubeTextItemProps>(\n function TextItem(props, ref) {\n const {\n children,\n highlight,\n highlightCaseSensitive = false,\n highlightStyles,\n tooltip = true,\n tooltipPlacement = 'top',\n ...restProps\n } = props;\n\n // Extract style props (preset, color, etc.) to pass via styles prop\n const styles = extractStyles(restProps, STYLE_LIST, {}, TEXT_PROP_MAP);\n\n const { labelRef, renderWithTooltip } = useAutoTooltip({\n tooltip,\n children,\n });\n\n // Process children with highlight if applicable\n const processedChildren = useMemo(() => {\n if (typeof children === 'string' && highlight) {\n return highlightText(\n children,\n highlight,\n highlightCaseSensitive,\n highlightStyles,\n );\n }\n return children;\n }, [children, highlight, highlightCaseSensitive, highlightStyles]);\n\n const renderElement = (\n tooltipTriggerProps?: HTMLAttributes<HTMLElement>,\n tooltipRef?: RefObject<HTMLElement>,\n ) => {\n // Merge refs\n const handleRef = (element: HTMLElement | null) => {\n // Set component forwarded ref\n if (typeof ref === 'function') {\n ref(element);\n } else if (ref) {\n (ref as any).current = element;\n }\n // Set tooltip ref\n if (tooltipRef) {\n (tooltipRef as any).current = element;\n }\n // Set label ref for overflow detection\n labelRef(element);\n };\n\n return (\n <TextItemElement\n {...filterBaseProps(restProps, { eventProps: true })}\n {...tooltipTriggerProps}\n ref={handleRef}\n styles={styles}\n >\n {processedChildren}\n </TextItemElement>\n );\n };\n\n return renderWithTooltip(renderElement, tooltipPlacement);\n },\n);\n\nTextItem.displayName = 'TextItem';\n"],"mappings":";;;;;;;;;;;AAgBA,MAAMkB,aAAa;CAAC,GAAGlB;CAAa,GAAGK;CAAa,GAAGJ;CAAa;AAgCpE,MAAMyB,kBAAkBtB,MAAMU,OAAM;CAClCa,IAAI;CACJC,QAAQ;EACNC,SAAS;EACTC,eAAe;EACfC,OAAO;EACPC,YAAY;EACZC,UAAU;EACVC,cAAc;EAChB;CACD,CAAC;AAEF,MAAaC,WAAW7B,WACtB,SAAA6B,SAAAE,OAAAC,KAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CACE,MAAA,EAAAC,UAAApB,WAAAC,wBAAAoB,IAAAnB,iBAAAC,SAAAmB,IAAAlB,kBAAAmB,IAAA,GAAAC,cAQIR;CALF,MAAAf,yBAAAoB,OAAAI,SAAA,QAAAJ;CAEA,MAAAlB,UAAAmB,OAAAG,SAAA,OAAAH;CACA,MAAAlB,mBAAAmB,OAAAE,SAAA,QAAAF;CAKF,MAAAhB,SAAejB,cAAckC,WAAW3B,YAAY,EAAE,EAAEH,cAAc;CAAC,IAAAgC;AAAA,KAAAR,EAAA,OAAAE,YAAAF,EAAA,OAAAf,SAAA;AAEhBuB,OAAA;GAAAvB;GAAAiB;GAGtD;AAAAF,IAAA,KAAAE;AAAAF,IAAA,KAAAf;AAAAe,IAAA,KAAAQ;OAAAA,MAAAR,EAAA;CAHD,MAAA,EAAAS,UAAAC,sBAAwChC,eAAe8B,GAGrD;CAAC,IAAAG;AAAAC,MAAA;AAID,MAAI,OAAOV,aAAa,YAApBpB,WAAyC;GAAA,IAAA+B;AAAA,OAAAb,EAAA,OAAAE,YAAAF,EAAA,OAAAlB,aAAAkB,EAAA,OAAAjB,0BAAAiB,EAAA,OAAAhB,iBAAA;AACpC6B,SAAAxC,cACL6B,UACApB,WACAC,wBACAC,gBACD;AAAAgB,MAAA,KAAAE;AAAAF,MAAA,KAAAlB;AAAAkB,MAAA,KAAAjB;AAAAiB,MAAA,KAAAhB;AAAAgB,MAAA,KAAAa;SAAAA,MAAAb,EAAA;AALDW,QAAOE;AAAP,SAAAD;;AAOFD,OAAOT;;CATT,MAAAY,oBAA0BH;CAY1B,MAAAI,iBAAsBC,qBAAAC,eAAA;EAKpB,MAAAC,aAAkBC,YAAA;AAEhB,OAAI,OAAOpB,QAAQ,WACjBA,KAAIoB,QAAQ;YACHpB,IACT,CAACA,IAAUqB,UAAYD;AAGzB,OAAIF,WACF,CAACA,WAAiBG,UAAYD;AAGhCV,YAASU,QAAQ;;AACjB,SAGA,oBAAC;GAAe,GACVxD,gBAAgB2C,WAAW,EAAAe,YAAc,MAAM,CAAC;GAAA,GAChDL;GACCE,KAAAA;GACG7B;aAEPyB;IACe;;AAEpB,QAEKJ,kBAAkBK,eAAe7B,iBAAiB;EAE5D;AAEDU,SAAS0B,cAAc"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.183.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";
|
|
5
|
+
import { c } from "react-compiler-runtime";
|
|
5
6
|
import { CONTAINER_STYLES, TEXT_STYLES, filterBaseProps, tasty } from "@tenphi/tasty";
|
|
6
7
|
import { forwardRef } from "react";
|
|
7
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -43,37 +44,111 @@ const TitleElement = tasty({
|
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
|
-
const Title = forwardRef(function CubeTitle(
|
|
47
|
+
const Title = forwardRef(function CubeTitle(t0, ref) {
|
|
48
|
+
const $ = c(22);
|
|
49
|
+
let as;
|
|
50
|
+
let ellipsis;
|
|
51
|
+
let level;
|
|
52
|
+
let nowrap;
|
|
53
|
+
let props;
|
|
54
|
+
let qa;
|
|
55
|
+
if ($[0] !== t0) {
|
|
56
|
+
({qa, as, nowrap, ellipsis, level, ...props} = t0);
|
|
57
|
+
$[0] = t0;
|
|
58
|
+
$[1] = as;
|
|
59
|
+
$[2] = ellipsis;
|
|
60
|
+
$[3] = level;
|
|
61
|
+
$[4] = nowrap;
|
|
62
|
+
$[5] = props;
|
|
63
|
+
$[6] = qa;
|
|
64
|
+
} else {
|
|
65
|
+
as = $[1];
|
|
66
|
+
ellipsis = $[2];
|
|
67
|
+
level = $[3];
|
|
68
|
+
nowrap = $[4];
|
|
69
|
+
props = $[5];
|
|
70
|
+
qa = $[6];
|
|
71
|
+
}
|
|
47
72
|
const propsWithSlots = useSlotProps(props, "title");
|
|
48
73
|
const tag = `h${level || 1}`;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
74
|
+
let t1;
|
|
75
|
+
if ($[7] !== propsWithSlots) {
|
|
76
|
+
t1 = extractStyles(propsWithSlots, STYLE_LIST, {}, TEXT_PROP_MAP);
|
|
77
|
+
$[7] = propsWithSlots;
|
|
78
|
+
$[8] = t1;
|
|
79
|
+
} else t1 = $[8];
|
|
80
|
+
const styles = t1;
|
|
81
|
+
const t2 = qa || "Title";
|
|
82
|
+
const t3 = as || tag;
|
|
83
|
+
const t4 = level || 1;
|
|
84
|
+
let t5;
|
|
85
|
+
if ($[9] !== ellipsis || $[10] !== nowrap) {
|
|
86
|
+
t5 = {
|
|
55
87
|
nowrap,
|
|
56
88
|
ellipsis
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
89
|
+
};
|
|
90
|
+
$[9] = ellipsis;
|
|
91
|
+
$[10] = nowrap;
|
|
92
|
+
$[11] = t5;
|
|
93
|
+
} else t5 = $[11];
|
|
94
|
+
let t6;
|
|
95
|
+
if ($[12] !== propsWithSlots) {
|
|
96
|
+
t6 = filterBaseProps(propsWithSlots, { eventProps: true });
|
|
97
|
+
$[12] = propsWithSlots;
|
|
98
|
+
$[13] = t6;
|
|
99
|
+
} else t6 = $[13];
|
|
100
|
+
let t7;
|
|
101
|
+
if ($[14] !== ref || $[15] !== styles || $[16] !== t2 || $[17] !== t3 || $[18] !== t4 || $[19] !== t5 || $[20] !== t6) {
|
|
102
|
+
t7 = /* @__PURE__ */ jsx(TitleElement, {
|
|
103
|
+
qa: t2,
|
|
104
|
+
as: t3,
|
|
105
|
+
"data-level": t4,
|
|
106
|
+
mods: t5,
|
|
107
|
+
...t6,
|
|
108
|
+
ref,
|
|
109
|
+
styles
|
|
110
|
+
});
|
|
111
|
+
$[14] = ref;
|
|
112
|
+
$[15] = styles;
|
|
113
|
+
$[16] = t2;
|
|
114
|
+
$[17] = t3;
|
|
115
|
+
$[18] = t4;
|
|
116
|
+
$[19] = t5;
|
|
117
|
+
$[20] = t6;
|
|
118
|
+
$[21] = t7;
|
|
119
|
+
} else t7 = $[21];
|
|
120
|
+
return t7;
|
|
62
121
|
});
|
|
63
122
|
const _Title = Object.assign(Title, {
|
|
64
123
|
Danger: forwardRef(function DangerTitle(props, ref) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
124
|
+
const $ = c(3);
|
|
125
|
+
let t0;
|
|
126
|
+
if ($[0] !== props || $[1] !== ref) {
|
|
127
|
+
t0 = /* @__PURE__ */ jsx(Title, {
|
|
128
|
+
ref,
|
|
129
|
+
color: "#danger-text",
|
|
130
|
+
...props
|
|
131
|
+
});
|
|
132
|
+
$[0] = props;
|
|
133
|
+
$[1] = ref;
|
|
134
|
+
$[2] = t0;
|
|
135
|
+
} else t0 = $[2];
|
|
136
|
+
return t0;
|
|
70
137
|
}),
|
|
71
138
|
Success: forwardRef(function SuccessTitle(props, ref) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
139
|
+
const $ = c(3);
|
|
140
|
+
let t0;
|
|
141
|
+
if ($[0] !== props || $[1] !== ref) {
|
|
142
|
+
t0 = /* @__PURE__ */ jsx(Title, {
|
|
143
|
+
ref,
|
|
144
|
+
color: "#success-text",
|
|
145
|
+
...props
|
|
146
|
+
});
|
|
147
|
+
$[0] = props;
|
|
148
|
+
$[1] = ref;
|
|
149
|
+
$[2] = t0;
|
|
150
|
+
} else t0 = $[2];
|
|
151
|
+
return t0;
|
|
77
152
|
})
|
|
78
153
|
});
|
|
79
154
|
_Title.displayName = "Title";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Title.js","names":[],"sources":["../../../src/components/content/Title.tsx"],"sourcesContent":["import {\n BaseProps,\n CONTAINER_STYLES,\n ContainerStyleProps,\n filterBaseProps,\n PositionStyleProps,\n tasty,\n TEXT_STYLES,\n} from '@tenphi/tasty';\nimport { forwardRef } from 'react';\n\nimport { useSlotProps } from '../../utils/react';\nimport { extractStyles } from '../../utils/styles';\n\nimport { CubeTextProps, TEXT_PROP_MAP } from './Text';\n\nconst STYLE_LIST = [...TEXT_STYLES, ...CONTAINER_STYLES];\n\nexport interface CubeTitleProps\n extends BaseProps,\n CubeTextProps,\n ContainerStyleProps,\n PositionStyleProps {\n /** The level of the heading **/\n level?: 1 | 2 | 3 | 4 | 5 | 6;\n}\n\nconst TitleElement = tasty({\n qa: 'Title',\n as: 'h1', // it should be dynamic\n styles: {\n gridArea: 'title',\n display: 'block',\n color: '#dark',\n preset: {\n '': 'h6',\n 'level=1': 'h1',\n 'level=2': 'h2',\n 'level=3': 'h3',\n 'level=4': 'h4',\n 'level=5': 'h5',\n 'level=6': 'h6',\n },\n margin: '0',\n whiteSpace: {\n '': 'inherit',\n 'nowrap | ellipsis': 'nowrap',\n },\n textOverflow: {\n '': false,\n ellipsis: 'ellipsis',\n },\n overflow: {\n '': false,\n ellipsis: 'hidden',\n },\n width: {\n '': false,\n ellipsis: 'max 100%',\n },\n },\n});\n\nconst Title = forwardRef(function CubeTitle(\n { qa, as, nowrap, ellipsis, level, ...props }: CubeTitleProps,\n ref,\n) {\n const propsWithSlots = useSlotProps(props, 'title');\n\n const tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' = `h${level || 1}`;\n const styles = extractStyles(propsWithSlots, STYLE_LIST, {}, TEXT_PROP_MAP);\n\n return (\n <TitleElement\n qa={qa || 'Title'}\n as={as || tag}\n data-level={level || 1}\n mods={{\n nowrap,\n ellipsis,\n }}\n {...filterBaseProps(propsWithSlots, { eventProps: true })}\n ref={ref}\n styles={styles}\n />\n );\n});\n\nconst _Title = Object.assign(Title, {\n Danger: forwardRef(function DangerTitle(props: CubeTitleProps, ref) {\n return <Title ref={ref} color=\"#danger-text\" {...props} />;\n }),\n Success: forwardRef(function SuccessTitle(props: CubeTitleProps, ref) {\n return <Title ref={ref} color=\"#success-text\" {...props} />;\n }),\n});\n\n_Title.displayName = 'Title';\n\nexport { _Title as Title };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Title.js","names":["BaseProps","CONTAINER_STYLES","ContainerStyleProps","filterBaseProps","PositionStyleProps","tasty","TEXT_STYLES","forwardRef","useSlotProps","extractStyles","CubeTextProps","TEXT_PROP_MAP","STYLE_LIST","CubeTitleProps","level","TitleElement","qa","as","styles","gridArea","display","color","preset","margin","whiteSpace","textOverflow","ellipsis","overflow","width","Title","CubeTitle","t0","ref","$","_c","nowrap","props","propsWithSlots","tag","t1","t2","t3","t4","t5","t6","eventProps","t7","_Title","Object","assign","Danger","DangerTitle","Success","SuccessTitle","displayName"],"sources":["../../../src/components/content/Title.tsx"],"sourcesContent":["import {\n BaseProps,\n CONTAINER_STYLES,\n ContainerStyleProps,\n filterBaseProps,\n PositionStyleProps,\n tasty,\n TEXT_STYLES,\n} from '@tenphi/tasty';\nimport { forwardRef } from 'react';\n\nimport { useSlotProps } from '../../utils/react';\nimport { extractStyles } from '../../utils/styles';\n\nimport { CubeTextProps, TEXT_PROP_MAP } from './Text';\n\nconst STYLE_LIST = [...TEXT_STYLES, ...CONTAINER_STYLES];\n\nexport interface CubeTitleProps\n extends BaseProps,\n CubeTextProps,\n ContainerStyleProps,\n PositionStyleProps {\n /** The level of the heading **/\n level?: 1 | 2 | 3 | 4 | 5 | 6;\n}\n\nconst TitleElement = tasty({\n qa: 'Title',\n as: 'h1', // it should be dynamic\n styles: {\n gridArea: 'title',\n display: 'block',\n color: '#dark',\n preset: {\n '': 'h6',\n 'level=1': 'h1',\n 'level=2': 'h2',\n 'level=3': 'h3',\n 'level=4': 'h4',\n 'level=5': 'h5',\n 'level=6': 'h6',\n },\n margin: '0',\n whiteSpace: {\n '': 'inherit',\n 'nowrap | ellipsis': 'nowrap',\n },\n textOverflow: {\n '': false,\n ellipsis: 'ellipsis',\n },\n overflow: {\n '': false,\n ellipsis: 'hidden',\n },\n width: {\n '': false,\n ellipsis: 'max 100%',\n },\n },\n});\n\nconst Title = forwardRef(function CubeTitle(\n { qa, as, nowrap, ellipsis, level, ...props }: CubeTitleProps,\n ref,\n) {\n const propsWithSlots = useSlotProps(props, 'title');\n\n const tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' = `h${level || 1}`;\n const styles = extractStyles(propsWithSlots, STYLE_LIST, {}, TEXT_PROP_MAP);\n\n return (\n <TitleElement\n qa={qa || 'Title'}\n as={as || tag}\n data-level={level || 1}\n mods={{\n nowrap,\n ellipsis,\n }}\n {...filterBaseProps(propsWithSlots, { eventProps: true })}\n ref={ref}\n styles={styles}\n />\n );\n});\n\nconst _Title = Object.assign(Title, {\n Danger: forwardRef(function DangerTitle(props: CubeTitleProps, ref) {\n return <Title ref={ref} color=\"#danger-text\" {...props} />;\n }),\n Success: forwardRef(function SuccessTitle(props: CubeTitleProps, ref) {\n return <Title ref={ref} color=\"#success-text\" {...props} />;\n }),\n});\n\n_Title.displayName = 'Title';\n\nexport { _Title as Title };\n"],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.183.0 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
4
4
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
@@ -144,24 +144,24 @@ function TreeBase(props, ref) {
|
|
|
144
144
|
if (selection === "all") {
|
|
145
145
|
arr = [];
|
|
146
146
|
for (const key of state.collection.getKeys()) {
|
|
147
|
-
const
|
|
148
|
-
if (
|
|
147
|
+
const node_0 = state.collection.getItem(key);
|
|
148
|
+
if (node_0 && node_0.type === "item") arr.push(key);
|
|
149
149
|
}
|
|
150
150
|
} else arr = Array.from(selection);
|
|
151
|
-
const
|
|
152
|
-
const
|
|
153
|
-
previousSelectionRef.current =
|
|
154
|
-
const
|
|
155
|
-
if (!
|
|
156
|
-
const
|
|
157
|
-
if (!
|
|
151
|
+
const nextSet_0 = new Set(arr);
|
|
152
|
+
const previous_0 = selectedKeys !== void 0 ? new Set(selectedKeys ?? []) : previousSelectionRef.current;
|
|
153
|
+
previousSelectionRef.current = nextSet_0;
|
|
154
|
+
const toggled_0 = findToggledKey(previous_0, nextSet_0);
|
|
155
|
+
if (!toggled_0) return;
|
|
156
|
+
const node_1 = nodesByKey.get(String(toggled_0.key));
|
|
157
|
+
if (!node_1) return;
|
|
158
158
|
const selectedNodes = arr.map((k) => nodesByKey.get(String(k))).filter((n) => !!n);
|
|
159
|
-
const
|
|
160
|
-
selected:
|
|
161
|
-
node,
|
|
159
|
+
const info_0 = {
|
|
160
|
+
selected: toggled_0.added,
|
|
161
|
+
node: node_1,
|
|
162
162
|
selectedNodes
|
|
163
163
|
};
|
|
164
|
-
onSelect(arr,
|
|
164
|
+
onSelect(arr, info_0);
|
|
165
165
|
});
|
|
166
166
|
const hasOnSelect = onSelect != null;
|
|
167
167
|
const ariaProps = useMemo(() => ({
|
|
@@ -195,9 +195,9 @@ function TreeBase(props, ref) {
|
|
|
195
195
|
const collection = baseState.collection;
|
|
196
196
|
if (typeof collection.getChildren === "function") return baseState;
|
|
197
197
|
const patched = Object.create(collection);
|
|
198
|
-
patched.getChildren = (
|
|
199
|
-
const
|
|
200
|
-
return
|
|
198
|
+
patched.getChildren = (key_0) => {
|
|
199
|
+
const node_2 = collection.getItem(key_0);
|
|
200
|
+
return node_2 ? Array.from(node_2.childNodes) : [];
|
|
201
201
|
};
|
|
202
202
|
return {
|
|
203
203
|
...baseState,
|
|
@@ -207,9 +207,9 @@ function TreeBase(props, ref) {
|
|
|
207
207
|
const { gridProps } = useTree(ariaProps, state, treeRef);
|
|
208
208
|
const visibleNodes = useMemo(() => {
|
|
209
209
|
const out = [];
|
|
210
|
-
for (const
|
|
211
|
-
const
|
|
212
|
-
if (
|
|
210
|
+
for (const key_1 of state.collection.getKeys()) {
|
|
211
|
+
const node_3 = state.collection.getItem(key_1);
|
|
212
|
+
if (node_3 && node_3.type === "item") out.push(node_3);
|
|
213
213
|
}
|
|
214
214
|
return out;
|
|
215
215
|
}, [state.collection]);
|
|
@@ -264,9 +264,9 @@ function TreeBase(props, ref) {
|
|
|
264
264
|
const focusedKey = state.selectionManager.focusedKey;
|
|
265
265
|
if (focusedKey == null) return;
|
|
266
266
|
if (lastFocusedScrollRef.current === focusedKey) return;
|
|
267
|
-
const
|
|
268
|
-
if (
|
|
269
|
-
rowVirtualizer.scrollToIndex(
|
|
267
|
+
const index_0 = visibleNodesRef.current.findIndex((n_0) => n_0.key === focusedKey);
|
|
268
|
+
if (index_0 < 0) return;
|
|
269
|
+
rowVirtualizer.scrollToIndex(index_0, { align: "auto" });
|
|
270
270
|
lastFocusedScrollRef.current = focusedKey;
|
|
271
271
|
}, [state.selectionManager.focusedKey, rowVirtualizer]);
|
|
272
272
|
/**
|
|
@@ -286,9 +286,9 @@ function TreeBase(props, ref) {
|
|
|
286
286
|
const target = selectedKeys[0];
|
|
287
287
|
if (target == null) return;
|
|
288
288
|
if (lastSelectedScrollRef.current === target) return;
|
|
289
|
-
const
|
|
290
|
-
if (
|
|
291
|
-
rowVirtualizer.scrollToIndex(
|
|
289
|
+
const index_1 = visibleNodes.findIndex((n_1) => String(n_1.key) === target);
|
|
290
|
+
if (index_1 < 0) return;
|
|
291
|
+
rowVirtualizer.scrollToIndex(index_1, { align: "auto" });
|
|
292
292
|
lastSelectedScrollRef.current = target;
|
|
293
293
|
}, [
|
|
294
294
|
selectedKeys,
|
|
@@ -313,17 +313,17 @@ function TreeBase(props, ref) {
|
|
|
313
313
|
role: "presentation",
|
|
314
314
|
style: sizerStyle,
|
|
315
315
|
children: rowVirtualizer.getVirtualItems().map((virtualItem) => {
|
|
316
|
-
const
|
|
317
|
-
if (!
|
|
318
|
-
const keyStr = String(
|
|
316
|
+
const node_5 = visibleNodes[virtualItem.index];
|
|
317
|
+
if (!node_5) return null;
|
|
318
|
+
const keyStr = String(node_5.key);
|
|
319
319
|
const data = nodesByKey.get(keyStr);
|
|
320
320
|
if (!data) return null;
|
|
321
321
|
return /* @__PURE__ */ jsx(TreeNode, {
|
|
322
|
-
node,
|
|
322
|
+
node: node_5,
|
|
323
323
|
data,
|
|
324
324
|
state,
|
|
325
325
|
isCheckable,
|
|
326
|
-
isExpanded: state.expandedKeys.has(
|
|
326
|
+
isExpanded: state.expandedKeys.has(node_5.key),
|
|
327
327
|
isChecked: checkbox.checkedSet.has(keyStr),
|
|
328
328
|
isIndeterminate: checkbox.halfCheckedSet.has(keyStr),
|
|
329
329
|
isLoading: loadDataController.loadingKeys.has(keyStr),
|
|
@@ -345,7 +345,7 @@ function TreeBase(props, ref) {
|
|
|
345
345
|
menuProps,
|
|
346
346
|
onToggleChecked: checkbox.toggle,
|
|
347
347
|
onAction: treeOnAction
|
|
348
|
-
},
|
|
348
|
+
}, node_5.key);
|
|
349
349
|
})
|
|
350
350
|
})
|
|
351
351
|
})
|