@cube-dev/ui-kit 0.193.2 → 0.194.1
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 +1 -1
- package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
- package/dist/_internal/hooks/use-event.js +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +1 -1
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
- package/dist/_internal/hooks/use-warn.js +1 -1
- package/dist/components/Block.js +1 -1
- package/dist/components/CollectionItem.d.ts +25 -12
- package/dist/components/CollectionItem.js +59 -4
- package/dist/components/CollectionItem.js.map +1 -1
- package/dist/components/GlobalStyles.js +1 -1
- package/dist/components/GridProvider.js +1 -1
- package/dist/components/HiddenInput.js +1 -1
- package/dist/components/Root.js +2 -2
- package/dist/components/actions/Action/Action.js +1 -1
- package/dist/components/actions/Banner/Banner.d.ts +1 -1
- package/dist/components/actions/Banner/Banner.js +6 -6
- package/dist/components/actions/Banner/Banner.js.map +1 -1
- package/dist/components/actions/Button/Button.js +2 -2
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +28 -25
- package/dist/components/actions/ButtonSplit/ButtonSplit.js.map +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.d.ts +7 -7
- package/dist/components/actions/CommandMenu/CommandMenu.js +232 -239
- package/dist/components/actions/CommandMenu/CommandMenu.js.map +1 -1
- package/dist/components/actions/CommandMenu/styled.js +1 -1
- package/dist/components/actions/ItemAction/ItemAction.js +27 -23
- package/dist/components/actions/ItemAction/ItemAction.js.map +1 -1
- package/dist/components/actions/ItemActionContext.d.ts +3 -0
- package/dist/components/actions/ItemActionContext.js +15 -13
- package/dist/components/actions/ItemActionContext.js.map +1 -1
- package/dist/components/actions/ItemActionsWrapper.js +1 -1
- package/dist/components/actions/ItemButton/ItemButton.d.ts +2 -2
- package/dist/components/actions/ItemButton/ItemButton.js +1 -1
- package/dist/components/actions/Link/Link.js +1 -1
- package/dist/components/actions/Menu/Menu.d.ts +9 -9
- package/dist/components/actions/Menu/Menu.js +88 -64
- package/dist/components/actions/Menu/Menu.js.map +1 -1
- package/dist/components/actions/Menu/MenuCollectionItem.d.ts +18 -0
- package/dist/components/actions/Menu/MenuCollectionItem.js +36 -0
- package/dist/components/actions/Menu/MenuCollectionItem.js.map +1 -0
- package/dist/components/actions/Menu/MenuItem.d.ts +5 -0
- package/dist/components/actions/Menu/MenuItem.js +402 -116
- package/dist/components/actions/Menu/MenuItem.js.map +1 -1
- package/dist/components/actions/Menu/MenuSection.d.ts +3 -1
- package/dist/components/actions/Menu/MenuSection.js +31 -33
- package/dist/components/actions/Menu/MenuSection.js.map +1 -1
- package/dist/components/actions/Menu/MenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.d.ts +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.js +2 -2
- package/dist/components/actions/Menu/SubMenuTrigger.js.map +1 -1
- package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/actions/Menu/context.js +1 -1
- package/dist/components/actions/Menu/index.d.ts +1 -0
- package/dist/components/actions/Menu/styled.js +1 -1
- package/dist/components/actions/actions-run.js +1 -1
- package/dist/components/actions/index.d.ts +3 -2
- package/dist/components/actions/index.js +1 -1
- package/dist/components/actions/use-action.js +60 -36
- package/dist/components/actions/use-action.js.map +1 -1
- package/dist/components/actions/use-anchored-menu.js +1 -1
- package/dist/components/actions/use-context-menu.js +2 -2
- package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
- package/dist/components/content/Alert/Alert.js +1 -1
- package/dist/components/content/Alert/use-alert.js +1 -1
- package/dist/components/content/Avatar/Avatar.js +1 -1
- package/dist/components/content/Badge/Badge.js +1 -1
- package/dist/components/content/Card/Card.js +1 -1
- package/dist/components/content/Content.js +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.d.ts +45 -45
- package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +1 -1
- package/dist/components/content/Divider.js +1 -1
- package/dist/components/content/Footer.js +1 -1
- package/dist/components/content/Header.js +1 -1
- package/dist/components/content/HotKeys/HotKeys.js +44 -33
- package/dist/components/content/HotKeys/HotKeys.js.map +1 -1
- package/dist/components/content/InfoBadge/InfoBadge.js +1 -1
- package/dist/components/content/InlineInput/InlineInput.js +1 -1
- package/dist/components/content/Item/Item.d.ts +7 -7
- package/dist/components/content/Item/Item.js +207 -69
- package/dist/components/content/Item/Item.js.map +1 -1
- package/dist/components/content/Item/ItemWithNativeLinks.js +314 -0
- package/dist/components/content/Item/ItemWithNativeLinks.js.map +1 -0
- package/dist/components/content/ItemBadge/ItemBadge.js +1 -1
- package/dist/components/content/ItemCard/ItemCard.d.ts +1 -1
- package/dist/components/content/ItemCard/ItemCard.js +1 -1
- package/dist/components/content/Layout/GridLayout.js +1 -1
- package/dist/components/content/Layout/Layout.js +1 -1
- package/dist/components/content/Layout/LayoutBlock.js +1 -1
- package/dist/components/content/Layout/LayoutCenter.js +1 -1
- package/dist/components/content/Layout/LayoutContainer.js +1 -1
- package/dist/components/content/Layout/LayoutContent.js +1 -1
- package/dist/components/content/Layout/LayoutContext.js +1 -1
- package/dist/components/content/Layout/LayoutFlex.js +1 -1
- package/dist/components/content/Layout/LayoutFooter.js +1 -1
- package/dist/components/content/Layout/LayoutGrid.js +1 -1
- package/dist/components/content/Layout/LayoutHeader.js +1 -1
- package/dist/components/content/Layout/LayoutPane.js +113 -107
- package/dist/components/content/Layout/LayoutPane.js.map +1 -1
- package/dist/components/content/Layout/LayoutPanel.js +44 -48
- package/dist/components/content/Layout/LayoutPanel.js.map +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +2 -2
- package/dist/components/content/Layout/LayoutPanelTransition.js +1 -1
- package/dist/components/content/Layout/LayoutToolbar.js +1 -1
- package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
- package/dist/components/content/Layout/index.js +1 -1
- package/dist/components/content/Layout/utils.js +1 -1
- package/dist/components/content/Paragraph.js +1 -1
- package/dist/components/content/Placeholder/Placeholder.js +77 -70
- package/dist/components/content/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/content/PrismCode/PrismCode.js +1 -1
- package/dist/components/content/PrismCode/prismSetup.js +1 -1
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
- package/dist/components/content/Result/Result.js +5 -5
- package/dist/components/content/Result/Result.js.map +1 -1
- package/dist/components/content/Skeleton/Skeleton.js +18 -19
- package/dist/components/content/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/content/Tag/Tag.js +2 -2
- package/dist/components/content/Text.d.ts +57 -57
- package/dist/components/content/Text.js +61 -77
- package/dist/components/content/Text.js.map +1 -1
- package/dist/components/content/TextItem/TextItem.js +158 -29
- package/dist/components/content/TextItem/TextItem.js.map +1 -1
- package/dist/components/content/Title.js +66 -48
- package/dist/components/content/Title.js.map +1 -1
- package/dist/components/content/Tree/Tree.js +6 -3
- package/dist/components/content/Tree/Tree.js.map +1 -1
- package/dist/components/content/Tree/TreeNode.js +1 -1
- package/dist/components/content/Tree/styled.js +1 -1
- package/dist/components/content/Tree/tree-index.js +1 -1
- package/dist/components/content/Tree/types.d.ts +2 -2
- package/dist/components/content/Tree/use-checkbox-tree.js +1 -1
- package/dist/components/content/Tree/use-load-data.js +1 -1
- package/dist/components/content/highlightText.js +1 -1
- package/dist/components/content/use-auto-tooltip.js +3 -2
- package/dist/components/content/use-auto-tooltip.js.map +1 -1
- package/dist/components/data/DataTable/DataTable.js +1 -1
- package/dist/components/data/ItemTable/ItemTable.js +1 -1
- package/dist/components/data/ItemTable/ItemTableBulkBar.js +2 -2
- package/dist/components/data/ItemTable/ItemTableDragPreview.js +1 -1
- package/dist/components/data/ItemTable/ItemTableFooter.js +1 -1
- package/dist/components/data/ItemTable/ItemTableToolbar.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-column-widths.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-drag-drop.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-pagination.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-selection.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-sort.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-tree-model.js +1 -1
- package/dist/components/data/TableBase/ColumnResizer.js +1 -1
- package/dist/components/data/TableBase/RowCollection.js +1 -1
- package/dist/components/data/TableBase/TableHeaderCell.js +1 -1
- package/dist/components/data/TableBase/TableRow.js +1 -1
- package/dist/components/data/TableBase/TableView.js +8 -5
- package/dist/components/data/TableBase/TableView.js.map +1 -1
- package/dist/components/data/TableBase/TreeGridTable.js +1 -1
- package/dist/components/data/TableBase/column-header.js +89 -25
- package/dist/components/data/TableBase/column-header.js.map +1 -1
- package/dist/components/data/TableBase/column-menu.js +1 -1
- package/dist/components/data/TableBase/column-styles.js +1 -1
- package/dist/components/data/TableBase/column-tint.js +1 -1
- package/dist/components/data/TableBase/row-menu.js +1 -1
- package/dist/components/data/TableBase/styled.d.ts +1 -1
- package/dist/components/data/TableBase/styled.js +1 -1
- package/dist/components/data/TableBase/table-tree.js +1 -1
- package/dist/components/data/TableBase/types.js +1 -1
- package/dist/components/data/TableBase/use-cell-selection.js +0 -0
- package/dist/components/data/TableBase/use-column-menu.js +1 -1
- package/dist/components/data/TableBase/use-column-order.js +1 -1
- package/dist/components/data/TableBase/use-column-window.js +119 -57
- package/dist/components/data/TableBase/use-column-window.js.map +1 -1
- package/dist/components/data/TableBase/use-container-width.js +1 -1
- package/dist/components/data/TableBase/use-row-move-animation.js +1 -1
- package/dist/components/data/TableBase/use-scrollability.js +1 -1
- package/dist/components/data/TableBase/use-table-columns.js +1 -1
- package/dist/components/data/TableBase/use-table-search.js +1 -1
- package/dist/components/data/TableBase/use-table-selection.js +1 -1
- package/dist/components/data/TableBase/use-table-sort.js +1 -1
- package/dist/components/data/TableBase/use-table-sorts.js +1 -1
- package/dist/components/data/TableBase/use-table-storage.js +1 -1
- package/dist/components/data/TableBase/use-table-tooltip-refresh.js +19 -17
- package/dist/components/data/TableBase/use-table-tooltip-refresh.js.map +1 -1
- package/dist/components/data/TableBase/use-table-tree-state.js +1 -1
- package/dist/components/fields/Checkbox/Checkbox.js +3 -1
- package/dist/components/fields/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.js +13 -13
- package/dist/components/fields/Checkbox/CheckboxGroup.js.map +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ColorInput/ColorInput.js +32 -29
- package/dist/components/fields/ColorInput/ColorInput.js.map +1 -1
- package/dist/components/fields/ColorPicker/ColorPicker.d.ts +2 -0
- package/dist/components/fields/ColorPicker/ColorPicker.js +9 -6
- package/dist/components/fields/ColorPicker/ColorPicker.js.map +1 -1
- package/dist/components/fields/ColorSwatch/ColorSwatch.js +1 -1
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +6 -3
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js.map +1 -1
- package/dist/components/fields/ComboBox/ComboBox.js +41 -30
- package/dist/components/fields/ComboBox/ComboBox.js.map +1 -1
- package/dist/components/fields/CommandTextArea/CommandTextArea.js +1 -1
- package/dist/components/fields/CommandTextArea/caretPosition.js +1 -1
- package/dist/components/fields/CommandTextArea/useCaretAnchor.js +1 -1
- package/dist/components/fields/DatePicker/DateInput.js +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
- package/dist/components/fields/DatePicker/DatePicker.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.js +2 -2
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +246 -238
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js.map +1 -1
- package/dist/components/fields/DatePicker/MonthPicker.js +1 -1
- package/dist/components/fields/DatePicker/PeriodPicker.js +1 -1
- package/dist/components/fields/DatePicker/QuarterPicker.js +1 -1
- package/dist/components/fields/DatePicker/TimeInput.js +1 -1
- package/dist/components/fields/DatePicker/WeekPicker.js +1 -1
- package/dist/components/fields/DatePicker/YearPicker.js +1 -1
- package/dist/components/fields/DatePicker/parseDate.js +1 -1
- package/dist/components/fields/DatePicker/period.js +1 -1
- package/dist/components/fields/DatePicker/props.js +1 -1
- package/dist/components/fields/DatePicker/utils.js +1 -1
- package/dist/components/fields/FileInput/FileInput.js +22 -2
- package/dist/components/fields/FileInput/FileInput.js.map +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +5 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js.map +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.d.ts +4 -2
- package/dist/components/fields/FilterPicker/FilterPicker.js +4 -3
- package/dist/components/fields/FilterPicker/FilterPicker.js.map +1 -1
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
- package/dist/components/fields/ListBox/ListBox.js +8 -7
- package/dist/components/fields/ListBox/ListBox.js.map +1 -1
- package/dist/components/fields/ListBox/optionId.js +1 -1
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.js +36 -32
- package/dist/components/fields/ListBoxPopover/ListBoxPopover.js.map +1 -1
- package/dist/components/fields/ListBoxPopover/listNavigation.js +1 -1
- package/dist/components/fields/ListBoxPopover/useCompositeFocus.js +1 -1
- package/dist/components/fields/NumberInput/NumberInput.js +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/fields/Picker/Picker.d.ts +4 -2
- package/dist/components/fields/Picker/Picker.js +4 -3
- package/dist/components/fields/Picker/Picker.js.map +1 -1
- package/dist/components/fields/RadioGroup/Radio.d.ts +40 -40
- package/dist/components/fields/RadioGroup/Radio.js +2 -2
- package/dist/components/fields/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/SearchComboBox/SearchComboBox.js +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +1 -1
- package/dist/components/fields/Select/Select.d.ts +4 -4
- package/dist/components/fields/Select/Select.js +36 -33
- package/dist/components/fields/Select/Select.js.map +1 -1
- package/dist/components/fields/Slider/Gradation.js +1 -1
- package/dist/components/fields/Slider/HueSlider.js +1 -1
- package/dist/components/fields/Slider/RangeSlider.js +1 -1
- package/dist/components/fields/Slider/Slider.js +1 -1
- package/dist/components/fields/Slider/SliderBase.js +1 -1
- package/dist/components/fields/Slider/SliderThumb.js +1 -1
- package/dist/components/fields/Slider/SliderTrack.js +1 -1
- package/dist/components/fields/Slider/elements.js +1 -1
- package/dist/components/fields/Slider/index.js +1 -1
- package/dist/components/fields/Switch/Switch.js +1 -1
- package/dist/components/fields/TagInput/TagInput.js +1 -1
- package/dist/components/fields/TagInput/TagList.js +1 -1
- package/dist/components/fields/TagInput/useActiveOption.js +1 -1
- package/dist/components/fields/TagInput/useTagError.js +1 -1
- package/dist/components/fields/TextArea/TextArea.js +1 -1
- package/dist/components/fields/TextInput/TextInput.js +1 -1
- package/dist/components/fields/TextInput/TextInputBase.js +1 -1
- package/dist/components/fields/TextInput/useAutoSizeTextArea.js +1 -1
- package/dist/components/fields/TextInputMapper/TextInputMapper.js +13 -5
- package/dist/components/fields/TextInputMapper/TextInputMapper.js.map +1 -1
- package/dist/components/fields/TriggerActions.js +1 -1
- package/dist/components/fields/color/ColorPanel.js +62 -53
- package/dist/components/fields/color/ColorPanel.js.map +1 -1
- package/dist/components/fields/color/channels.js +1 -1
- package/dist/components/fields/color/color.js +1 -1
- package/dist/components/fields/color/context.js +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.d.ts +1 -0
- package/dist/components/form/FieldWrapper/FieldWrapper.js +134 -110
- package/dist/components/form/FieldWrapper/FieldWrapper.js.map +1 -1
- package/dist/components/form/FieldWrapper/field-description.js +102 -0
- package/dist/components/form/FieldWrapper/field-description.js.map +1 -0
- package/dist/components/form/FieldWrapper/types.d.ts +6 -1
- package/dist/components/form/Form/Field.js +1 -1
- package/dist/components/form/Form/Form.js +1 -1
- package/dist/components/form/Form/ModernFormRoot.js +1 -1
- package/dist/components/form/Form/ResetButton/ResetButton.js +1 -1
- package/dist/components/form/Form/SubmitButton/SubmitButton.js +1 -1
- package/dist/components/form/Form/SubmitError.js +1 -1
- package/dist/components/form/Form/backend.js +1 -1
- package/dist/components/form/Form/index.js +1 -1
- package/dist/components/form/Form/modern/actions.js +1 -1
- package/dist/components/form/Form/modern/context.js +1 -1
- package/dist/components/form/Form/modern/controller.js +1 -1
- package/dist/components/form/Form/modern/field-binding.js +1 -1
- package/dist/components/form/Form/modern/field.js +1 -1
- package/dist/components/form/Form/modern/react.js +1 -1
- package/dist/components/form/Form/modern/store.js +1 -1
- package/dist/components/form/Form/modern/validation.js +1 -1
- package/dist/components/form/Form/modern/values.js +1 -1
- package/dist/components/form/Form/reset-unbound-controls.js +1 -1
- package/dist/components/form/Form/use-field/use-field-binding.js +1 -1
- package/dist/components/form/Form/use-field/use-field-props.js +17 -4
- package/dist/components/form/Form/use-field/use-field-props.js.map +1 -1
- package/dist/components/form/Form/use-field/use-field.js +1 -1
- package/dist/components/form/Form/use-form.js +1 -1
- package/dist/components/form/Form/validation.js +1 -1
- package/dist/components/form/Label.js +27 -24
- package/dist/components/form/Label.js.map +1 -1
- package/dist/components/form/legacy-tooltip.js +1 -1
- package/dist/components/form/validation/ValidationIndicator.js +1 -1
- package/dist/components/form/validation/resolve-validation-props.js +1 -1
- package/dist/components/form/validation/use-validation-props.js +1 -1
- package/dist/components/form/wrapper.js +2 -1
- package/dist/components/form/wrapper.js.map +1 -1
- package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
- package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
- package/dist/components/layout/Flex.js +1 -1
- package/dist/components/layout/Flow.js +1 -1
- package/dist/components/layout/Grid.js +1 -1
- package/dist/components/layout/Panel.js +1 -1
- package/dist/components/layout/Prefix.js +1 -1
- package/dist/components/layout/ResizablePanel.js +1 -1
- package/dist/components/layout/Space.js +1 -1
- package/dist/components/layout/Suffix.js +1 -1
- package/dist/components/navigation/Pagination/Pagination.js +1 -1
- package/dist/components/navigation/Pagination/use-pagination.js +1 -1
- package/dist/components/navigation/Tabs/BoardDragActiveProvider.js +1 -1
- package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
- package/dist/components/navigation/Tabs/TabButton.js +1 -1
- package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
- package/dist/components/navigation/Tabs/TabPanel.js +1 -1
- package/dist/components/navigation/Tabs/TabPicker.js +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +1 -1
- package/dist/components/navigation/Tabs/TabsAction.js +1 -1
- package/dist/components/navigation/Tabs/TabsContext.js +1 -1
- package/dist/components/navigation/Tabs/popover-placement.js +1 -1
- package/dist/components/navigation/Tabs/styled.js +1 -1
- package/dist/components/navigation/Tabs/types.d.ts +3 -3
- package/dist/components/navigation/Tabs/types.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-indicator.js +1 -1
- package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
- package/dist/components/other/Calendar/Calendar.js +1 -1
- package/dist/components/other/Calendar/CalendarCell.js +1 -1
- package/dist/components/other/Calendar/CalendarGrid.js +1 -1
- package/dist/components/other/Calendar/CalendarHeader.js +1 -1
- package/dist/components/other/Calendar/CalendarPanel.js +1 -1
- package/dist/components/other/Calendar/PeriodCalendar.js +1 -1
- package/dist/components/other/Calendar/PeriodGrid.js +1 -1
- package/dist/components/other/Calendar/RangeCalendar.js +1 -1
- package/dist/components/other/Calendar/styled.js +1 -1
- package/dist/components/other/CubeLogo/CubeLogo.js +1 -1
- package/dist/components/other/NoDataIcon/NoDataIcon.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/dist/components/overlays/Dialog/Dialog.js +1 -1
- package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
- package/dist/components/overlays/Dialog/DialogForm.js +1 -1
- package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
- package/dist/components/overlays/Dialog/ModernDialogForm.js +1 -1
- package/dist/components/overlays/Dialog/context.js +1 -1
- package/dist/components/overlays/Dialog/default-button-text.js +1 -1
- package/dist/components/overlays/Dialog/use-content-overflow.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
- package/dist/components/overlays/Modal/Modal.js +44 -24
- package/dist/components/overlays/Modal/Modal.js.map +1 -1
- package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
- package/dist/components/overlays/Modal/Overlay.js +1 -1
- package/dist/components/overlays/Modal/Popover.js +34 -24
- package/dist/components/overlays/Modal/Popover.js.map +1 -1
- package/dist/components/overlays/Modal/Tray.js +45 -25
- package/dist/components/overlays/Modal/Tray.js.map +1 -1
- package/dist/components/overlays/Modal/Underlay.js +1 -1
- package/dist/components/overlays/Modal/modal-containment.js +145 -0
- package/dist/components/overlays/Modal/modal-containment.js.map +1 -0
- package/dist/components/overlays/Notifications/Notification.js +1 -1
- package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
- package/dist/components/overlays/Notifications/NotificationCard.js +2 -2
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +2 -2
- package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
- package/dist/components/overlays/Notifications/index.js +1 -1
- package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
- package/dist/components/overlays/Notifications/use-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +1 -1
- package/dist/components/overlays/Toast/index.js +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useToast.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +50 -47
- package/dist/components/overlays/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +95 -100
- package/dist/components/overlays/Tooltip/TooltipTrigger.js.map +1 -1
- package/dist/components/overlays/Tooltip/context.js +1 -1
- package/dist/components/overlays/Tooltip/split-trigger-props.js +1 -1
- package/dist/components/portal/Portal.js +1 -1
- package/dist/components/portal/PortalProvider.js +1 -1
- package/dist/components/portal/usePortal.js +1 -1
- package/dist/components/shared/DraggableCollection.js +1 -1
- package/dist/components/shared/InvalidIcon.js +1 -1
- package/dist/components/shared/ValidIcon.js +1 -1
- package/dist/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/dist/components/status/Spin/Cube.js +1 -1
- package/dist/components/status/Spin/InternalSpinner.js +1 -1
- package/dist/components/status/Spin/Spin.js +1 -1
- package/dist/components/status/Spin/SpinsContainer.js +1 -1
- package/dist/data/item-themes.js +1 -1
- package/dist/data/themes.js +1 -1
- package/dist/eslint-plugin/defaults.generated.js +2 -2
- package/dist/eslint-plugin/defaults.generated.js.map +1 -1
- package/dist/eslint-plugin/index.js +1 -1
- package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
- package/dist/i18n/I18nProvider.js +3 -2
- package/dist/i18n/I18nProvider.js.map +1 -1
- package/dist/i18n/createFormatter.js +1 -1
- package/dist/i18n/index.d.ts +2 -1
- package/dist/i18n/index.js +3 -2
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n/instance.d.ts +2 -3
- package/dist/i18n/instance.js +3 -4
- package/dist/i18n/instance.js.map +1 -1
- package/dist/i18n/locales/de-DE/uikit.js +36 -5
- package/dist/i18n/locales/en-US/uikit.js +36 -5
- package/dist/i18n/locales/en-US/uikit.json.d.ts +41 -4
- package/dist/i18n/locales/es-ES/uikit.js +36 -5
- package/dist/i18n/locales/es-MX/uikit.js +36 -5
- package/dist/i18n/locales/fr-FR/uikit.js +36 -5
- package/dist/i18n/locales/it-IT/uikit.js +36 -5
- package/dist/i18n/locales/ja-JP/uikit.js +36 -5
- package/dist/i18n/locales/nb-NO/uikit.js +36 -5
- package/dist/i18n/locales/pt-BR/uikit.js +36 -5
- package/dist/i18n/locales/pt-PT/uikit.js +36 -5
- package/dist/i18n/locales/sv-SE/uikit.js +36 -5
- package/dist/i18n/locales/vi-VN/uikit.js +36 -5
- package/dist/i18n/locales.js +1 -1
- package/dist/i18n/namespace.d.ts +11 -0
- package/dist/i18n/namespace.js +12 -0
- package/dist/i18n/namespace.js.map +1 -0
- package/dist/i18n/useFormatter.js +1 -1
- package/dist/i18n/useI18n.js +5 -3
- package/dist/i18n/useI18n.js.map +1 -1
- package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
- package/dist/icons/AdjustmentsIcon.js +1 -1
- package/dist/icons/AiIcon.js +1 -1
- package/dist/icons/AreaChartIcon.js +1 -1
- package/dist/icons/ArrowNarrowDownIcon.js +1 -1
- package/dist/icons/ArrowNarrowUpIcon.js +1 -1
- package/dist/icons/BackwardIcon.js +1 -1
- package/dist/icons/BarChartIcon.js +1 -1
- package/dist/icons/BellFilledIcon.js +1 -1
- package/dist/icons/BellIcon.js +1 -1
- package/dist/icons/BooleanIcon.js +1 -1
- package/dist/icons/CalendarEditIcon.js +1 -1
- package/dist/icons/CalendarIcon.js +1 -1
- package/dist/icons/CaretDownIcon.js +1 -1
- package/dist/icons/CaretUpIcon.js +1 -1
- package/dist/icons/ChartAreaStackedIcon.js +1 -1
- package/dist/icons/ChartAreaStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBarGroupedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarGroupedIcon.js +1 -1
- package/dist/icons/ChartBarHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarLineIcon.js +1 -1
- package/dist/icons/ChartBarStackedHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageHorizontalIcon.js +1 -1
- package/dist/icons/ChartBarStackedPercentageIcon.js +1 -1
- package/dist/icons/ChartBoxPlot2Icon.js +1 -1
- package/dist/icons/ChartBoxPlotIcon.js +1 -1
- package/dist/icons/ChartBubbleIcon.js +1 -1
- package/dist/icons/ChartDonut2Icon.js +1 -1
- package/dist/icons/ChartFunnelIcon.js +1 -1
- package/dist/icons/ChartHeatmapIcon.js +1 -1
- package/dist/icons/ChartKPIIcon.js +1 -1
- package/dist/icons/ChartPie2Icon.js +1 -1
- package/dist/icons/ChartScatterIcon.js +1 -1
- package/dist/icons/CheckCircleFilledIcon.js +1 -1
- package/dist/icons/CheckCircleIcon.js +1 -1
- package/dist/icons/CheckIcon.js +1 -1
- package/dist/icons/CircleFilledIcon.js +1 -1
- package/dist/icons/ClearIcon.js +1 -1
- package/dist/icons/CloseCircleFilledIcon.js +1 -1
- package/dist/icons/CloseCircleIcon.js +1 -1
- package/dist/icons/CloseIcon.js +1 -1
- package/dist/icons/CodeIcon.js +1 -1
- package/dist/icons/ColumnTotalIcon.js +1 -1
- package/dist/icons/CopyIcon.js +1 -1
- package/dist/icons/CountIcon.js +1 -1
- package/dist/icons/CubeIcon.js +1 -1
- package/dist/icons/CubePauseIcon.js +1 -1
- package/dist/icons/CubePlayIcon.js +1 -1
- package/dist/icons/CurrencyDollarIcon.js +1 -1
- package/dist/icons/DangerIcon.js +1 -1
- package/dist/icons/DashboardIcon.js +1 -1
- package/dist/icons/DatabaseIcon.js +1 -1
- package/dist/icons/DecimalDecreaseIcon.js +1 -1
- package/dist/icons/DecimalIncreaseIcon.js +1 -1
- package/dist/icons/DirectionIcon.js +1 -1
- package/dist/icons/DonutIcon.js +1 -1
- package/dist/icons/DownIcon.js +1 -1
- package/dist/icons/EditIcon.js +1 -1
- package/dist/icons/ExclamationCircleFilledIcon.js +1 -1
- package/dist/icons/ExclamationCircleIcon.js +1 -1
- package/dist/icons/ExclamationIcon.js +1 -1
- package/dist/icons/EyeIcon.js +1 -1
- package/dist/icons/EyeInvisibleIcon.js +1 -1
- package/dist/icons/FilterIcon.js +1 -1
- package/dist/icons/FolderFilledIcon.js +1 -1
- package/dist/icons/FolderIcon.js +1 -1
- package/dist/icons/FolderOpenFilledIcon.js +1 -1
- package/dist/icons/FolderOpenIcon.js +1 -1
- package/dist/icons/ForwardIcon.js +1 -1
- package/dist/icons/GripVerticalIcon.js +1 -1
- package/dist/icons/HierarchyIcon.js +1 -1
- package/dist/icons/HierarchyOpenIcon.js +1 -1
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/InfoCircleIcon.js +1 -1
- package/dist/icons/InfoIcon.js +1 -1
- package/dist/icons/KeyIcon.js +1 -1
- package/dist/icons/LeftIcon.js +1 -1
- package/dist/icons/LineChartIcon.js +1 -1
- package/dist/icons/LoadingIcon.js +1 -1
- package/dist/icons/LockFilledIcon.js +1 -1
- package/dist/icons/LockIcon.js +1 -1
- package/dist/icons/MoreIcon.js +1 -1
- package/dist/icons/NotAllowedIcon.js +1 -1
- package/dist/icons/Number123Icon.js +1 -1
- package/dist/icons/NumberIcon.js +1 -1
- package/dist/icons/PauseCircleFilledIcon.js +1 -1
- package/dist/icons/PauseCircleIcon.js +1 -1
- package/dist/icons/PauseIcon.js +1 -1
- package/dist/icons/PercentageIcon.js +1 -1
- package/dist/icons/PieChartIcon.js +1 -1
- package/dist/icons/PipetteIcon.js +1 -1
- package/dist/icons/PlayCircleIcon.js +1 -1
- package/dist/icons/PlayIcon.js +1 -1
- package/dist/icons/PlusIcon.js +1 -1
- package/dist/icons/ProgressBarIcon.js +1 -1
- package/dist/icons/ReloadIcon.js +1 -1
- package/dist/icons/ReportIcon.js +1 -1
- package/dist/icons/ReturnIcon.js +1 -1
- package/dist/icons/RightIcon.js +1 -1
- package/dist/icons/RowTotalsIcon.js +1 -1
- package/dist/icons/SchemeIcon.js +1 -1
- package/dist/icons/SearchIcon.js +1 -1
- package/dist/icons/SemanticQueryIcon.js +1 -1
- package/dist/icons/SettingsIcon.js +1 -1
- package/dist/icons/ShieldFilledIcon.js +1 -1
- package/dist/icons/ShieldIcon.js +1 -1
- package/dist/icons/SlashIcon.js +1 -1
- package/dist/icons/SparklesIcon.js +1 -1
- package/dist/icons/SqlIcon.js +1 -1
- package/dist/icons/StatsIcon.js +1 -1
- package/dist/icons/StopIcon.js +1 -1
- package/dist/icons/StringIcon.js +1 -1
- package/dist/icons/SubtotalsIcon.js +1 -1
- package/dist/icons/SwitchIcon.js +1 -1
- package/dist/icons/TableIcon.js +1 -1
- package/dist/icons/ThumbsDownIcon.js +1 -1
- package/dist/icons/ThumbsUpIcon.js +1 -1
- package/dist/icons/ThunderboltCrossedIcon.js +1 -1
- package/dist/icons/ThunderboltFilledIcon.js +1 -1
- package/dist/icons/ThunderboltIcon.js +1 -1
- package/dist/icons/TimeIcon.js +1 -1
- package/dist/icons/TrashIcon.js +1 -1
- package/dist/icons/UnlockIcon.js +1 -1
- package/dist/icons/UpIcon.js +1 -1
- package/dist/icons/UserGroupIcon.js +1 -1
- package/dist/icons/UserIcon.js +1 -1
- package/dist/icons/UserLockIcon.js +1 -1
- package/dist/icons/ViewIcon.js +1 -1
- package/dist/icons/WarningFilledIcon.js +1 -1
- package/dist/icons/WarningIcon.js +1 -1
- package/dist/icons/wrap-icon.js +1 -1
- package/dist/index.d.ts +9 -7
- package/dist/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/dist/probe/canonicalize.js +1 -1
- package/dist/probe/css.js +1 -1
- package/dist/probe/index.js +1 -1
- package/dist/provider.js +2 -2
- package/dist/provider.js.map +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigation-url.js +11 -0
- package/dist/providers/navigation-url.js.map +1 -0
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/providers/use-navigation.js +19 -0
- package/dist/providers/use-navigation.js.map +1 -0
- package/dist/tokens/all-tokens.js +1 -1
- package/dist/tokens/base.js +1 -1
- package/dist/tokens/color-seed.js +1 -1
- package/dist/tokens/color-theme.js +1 -1
- package/dist/tokens/colors.js +1 -1
- package/dist/tokens/layout.js +1 -1
- package/dist/tokens/lazy-styles.js +1 -1
- package/dist/tokens/legacy-color.js +1 -1
- package/dist/tokens/palette-config.js +1 -1
- package/dist/tokens/palette.js +1 -1
- package/dist/tokens/resolve.js +1 -1
- package/dist/tokens/shadows.js +1 -1
- package/dist/tokens/sizes.js +1 -1
- package/dist/tokens/spacing.js +1 -1
- package/dist/tokens/typography.js +1 -1
- package/dist/utils/ResizeSensor.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/dotize.js +1 -1
- package/dist/utils/is-dev-env.js +1 -1
- package/dist/utils/modules.js +1 -1
- package/dist/utils/promise.js +1 -1
- package/dist/utils/raf.js +1 -1
- package/dist/utils/random.js +1 -1
- package/dist/utils/range.js +1 -1
- package/dist/utils/react/RenderCache.js +1 -1
- package/dist/utils/react/Slots.js +1 -1
- package/dist/utils/react/chain.js +1 -1
- package/dist/utils/react/disabledProps.js +1 -1
- package/dist/utils/react/forwardRefWithGenerics.js +1 -1
- package/dist/utils/react/index.js +4 -4
- package/dist/utils/react/interactions.js +1 -1
- package/dist/utils/react/isTextOnly.js +1 -1
- package/dist/utils/react/mapProps.js +1 -1
- package/dist/utils/react/mergeProps.js +1 -1
- package/dist/utils/react/nullableValue.js +1 -1
- package/dist/utils/react/overlayKeyPropagation.js +1 -1
- package/dist/utils/react/programmaticFocus.js +1 -1
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/sharedStore.js +1 -1
- package/dist/utils/react/useBufferedValue.js +1 -1
- package/dist/utils/react/useCombinedRefs.js +1 -1
- package/dist/utils/react/useControlledFocusVisible.js +1 -1
- package/dist/utils/react/useEventBus.js +1 -1
- package/dist/utils/react/useId.js +1 -1
- package/dist/utils/react/useIsDarwin.js +1 -1
- package/dist/utils/react/useKeySymbols.js +1 -1
- package/dist/utils/react/useLayoutEffect.js +1 -1
- package/dist/utils/react/useLocalStorage.js +1 -1
- package/dist/utils/react/useMergeStyles.js +1 -1
- package/dist/utils/react/useOverlayEscapeGuard.js +1 -1
- package/dist/utils/react/usePopoverSync.js +1 -1
- package/dist/utils/react/useQaProps.js +1 -1
- package/dist/utils/react/useScheme.js +1 -1
- package/dist/utils/react/useViewportSize.js +1 -1
- package/dist/utils/react/wrapNodeIfPlain.js +1 -1
- package/dist/utils/selection.js +1 -1
- package/dist/utils/styles.js +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/version.js +2 -2
- package/docs/Usage.md +4 -0
- package/docs/components/CollectionItem.md +5 -1
- package/docs/components/actions/CommandMenu.md +46 -18
- package/docs/components/actions/Menu.md +124 -19
- package/docs/components/content/Layout.md +1 -1
- package/docs/components/content/Placeholder.md +2 -0
- package/docs/components/content/Skeleton.md +2 -0
- package/docs/components/data/ItemTable.md +2 -0
- package/docs/components/overlays/Dialog.md +1 -1
- package/docs/components/overlays/DialogContainer.md +1 -2
- package/docs/components/overlays/DialogTrigger.md +1 -0
- package/package.json +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.194.1 | Cube Dev Team */
|
|
2
2
|
import { mergeProps as mergeProps$1 } from "../../utils/react/mergeProps.js";
|
|
3
3
|
import { usePopoverSync } from "../../utils/react/usePopoverSync.js";
|
|
4
4
|
import { useEvent } from "../../_internal/hooks/use-event.js";
|
|
@@ -7,8 +7,8 @@ import { generateRandomId } from "../../utils/random.js";
|
|
|
7
7
|
import { _MenuTrigger } from "./Menu/MenuTrigger.js";
|
|
8
8
|
import { createRef, useEffect, useMemo, useRef, useState } from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import { VisuallyHidden } from "react-aria";
|
|
11
10
|
import { createPortal } from "react-dom";
|
|
11
|
+
import { VisuallyHidden } from "react-aria";
|
|
12
12
|
import { Pressable } from "@react-aria/interactions";
|
|
13
13
|
|
|
14
14
|
//#region src/components/actions/use-context-menu.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.194.1 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { useFocus as useFocus$1 } from "../../../utils/react/interactions.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.194.1 | Cube Dev Team */
|
|
2
2
|
import themes_default from "../../../data/themes.js";
|
|
3
3
|
import { useAlert } from "./use-alert.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.194.1 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { useDeprecationWarning } from "../../../_internal/hooks/use-deprecation-warning.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.194.1 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { CONTAINER_STYLES, Element, filterBaseProps } from "@tenphi/tasty";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.194.1 | Cube Dev Team */
|
|
2
2
|
import { _Item } from "../Item/Item.js";
|
|
3
3
|
import themes_default from "../../../data/themes.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.194.1 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { CONTAINER_STYLES, filterBaseProps, tasty } from "@tenphi/tasty";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.194.1 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../utils/styles.js";
|
|
3
3
|
import { useSlotProps } from "../../utils/react/Slots.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.194.1 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { useTimer } from "../../../_internal/hooks/use-timer/use-timer.js";
|
|
4
4
|
import { useI18n } from "../../../i18n/useI18n.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
import { Property } from "../../../node_modules/.pnpm/csstype@3.1.2/node_modules/csstype/index.js";
|
|
3
3
|
import { CubeTooltipProviderProps } from "../../overlays/Tooltip/TooltipProvider.js";
|
|
4
|
-
import { DynamicIcon } from "../../../utils/react/resolveIcon.js";
|
|
5
4
|
import { NavigateArg } from "../../../providers/navigation.types.js";
|
|
5
|
+
import { DynamicIcon } from "../../../utils/react/resolveIcon.js";
|
|
6
6
|
import { ButtonMods } from "../../actions/Button/Button.js";
|
|
7
7
|
import "../../actions/index.js";
|
|
8
8
|
import { CubePrismCodeProps } from "../PrismCode/PrismCode.js";
|
|
@@ -31,9 +31,9 @@ declare const ActionButton: react.ComponentType<{
|
|
|
31
31
|
id?: string | undefined;
|
|
32
32
|
children?: ReactNode | Iterable<ReactNode>;
|
|
33
33
|
as?: "a" | "button" | "div" | "span" | react.ComponentType<any> | undefined;
|
|
34
|
-
align?: _tenphi_tasty0.StyleValue<"start" | (string & {}) | "
|
|
34
|
+
align?: _tenphi_tasty0.StyleValue<"start" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "normal" | "center" | "end" | "flex-end" | "flex-start" | "self-end" | "self-start" | "baseline" | "stretch" | "space-around" | "space-between" | "space-evenly" | undefined> | _tenphi_tasty0.StyleValueStateMap<"start" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "normal" | "center" | "end" | "flex-end" | "flex-start" | "self-end" | "self-start" | "baseline" | "stretch" | "space-around" | "space-between" | "space-evenly" | undefined>;
|
|
35
35
|
border?: _tenphi_tasty0.StyleValue<boolean | Property.Border<string | number> | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | Property.Border<string | number> | undefined>;
|
|
36
|
-
color?: _tenphi_tasty0.StyleValue<boolean | ((string & {}) | `#${string}` | `#${string}.0` | `#${string}.3` | `#${string}.7` | `#${string}.4` | `#${string}.1` | `#${string}.
|
|
36
|
+
color?: _tenphi_tasty0.StyleValue<boolean | ((string & {}) | `#${string}` | `#${string}.0` | `#${string}.3` | `#${string}.7` | `#${string}.4` | `#${string}.1` | `#${string}.5` | `#${string}.2` | `#${string}.6` | `#${string}.8` | `#${string}.9` | `#${string}.00` | `#${string}.03` | `#${string}.07` | `#${string}.04` | `#${string}.01` | `#${string}.05` | `#${string}.02` | `#${string}.06` | `#${string}.08` | `#${string}.09` | `#${string}.30` | `#${string}.33` | `#${string}.37` | `#${string}.34` | `#${string}.31` | `#${string}.35` | `#${string}.32` | `#${string}.36` | `#${string}.38` | `#${string}.39` | `#${string}.70` | `#${string}.73` | `#${string}.77` | `#${string}.74` | `#${string}.71` | `#${string}.75` | `#${string}.72` | `#${string}.76` | `#${string}.78` | `#${string}.79` | `#${string}.40` | `#${string}.43` | `#${string}.47` | `#${string}.44` | `#${string}.41` | `#${string}.45` | `#${string}.42` | `#${string}.46` | `#${string}.48` | `#${string}.49` | `#${string}.10` | `#${string}.13` | `#${string}.17` | `#${string}.14` | `#${string}.11` | `#${string}.15` | `#${string}.12` | `#${string}.16` | `#${string}.18` | `#${string}.19` | `#${string}.50` | `#${string}.53` | `#${string}.57` | `#${string}.54` | `#${string}.51` | `#${string}.55` | `#${string}.52` | `#${string}.56` | `#${string}.58` | `#${string}.59` | `#${string}.20` | `#${string}.23` | `#${string}.27` | `#${string}.24` | `#${string}.21` | `#${string}.25` | `#${string}.22` | `#${string}.26` | `#${string}.28` | `#${string}.29` | `#${string}.60` | `#${string}.63` | `#${string}.67` | `#${string}.64` | `#${string}.61` | `#${string}.65` | `#${string}.62` | `#${string}.66` | `#${string}.68` | `#${string}.69` | `#${string}.80` | `#${string}.83` | `#${string}.87` | `#${string}.84` | `#${string}.81` | `#${string}.85` | `#${string}.82` | `#${string}.86` | `#${string}.88` | `#${string}.89` | `#${string}.90` | `#${string}.93` | `#${string}.97` | `#${string}.94` | `#${string}.91` | `#${string}.95` | `#${string}.92` | `#${string}.96` | `#${string}.98` | `#${string}.99` | `#${string}.100` | `rgb(${string})` | `hsl(${string})` | `okhsl(${string})` | `oklch(${string})`) | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | ((string & {}) | `#${string}` | `#${string}.0` | `#${string}.3` | `#${string}.7` | `#${string}.4` | `#${string}.1` | `#${string}.5` | `#${string}.2` | `#${string}.6` | `#${string}.8` | `#${string}.9` | `#${string}.00` | `#${string}.03` | `#${string}.07` | `#${string}.04` | `#${string}.01` | `#${string}.05` | `#${string}.02` | `#${string}.06` | `#${string}.08` | `#${string}.09` | `#${string}.30` | `#${string}.33` | `#${string}.37` | `#${string}.34` | `#${string}.31` | `#${string}.35` | `#${string}.32` | `#${string}.36` | `#${string}.38` | `#${string}.39` | `#${string}.70` | `#${string}.73` | `#${string}.77` | `#${string}.74` | `#${string}.71` | `#${string}.75` | `#${string}.72` | `#${string}.76` | `#${string}.78` | `#${string}.79` | `#${string}.40` | `#${string}.43` | `#${string}.47` | `#${string}.44` | `#${string}.41` | `#${string}.45` | `#${string}.42` | `#${string}.46` | `#${string}.48` | `#${string}.49` | `#${string}.10` | `#${string}.13` | `#${string}.17` | `#${string}.14` | `#${string}.11` | `#${string}.15` | `#${string}.12` | `#${string}.16` | `#${string}.18` | `#${string}.19` | `#${string}.50` | `#${string}.53` | `#${string}.57` | `#${string}.54` | `#${string}.51` | `#${string}.55` | `#${string}.52` | `#${string}.56` | `#${string}.58` | `#${string}.59` | `#${string}.20` | `#${string}.23` | `#${string}.27` | `#${string}.24` | `#${string}.21` | `#${string}.25` | `#${string}.22` | `#${string}.26` | `#${string}.28` | `#${string}.29` | `#${string}.60` | `#${string}.63` | `#${string}.67` | `#${string}.64` | `#${string}.61` | `#${string}.65` | `#${string}.62` | `#${string}.66` | `#${string}.68` | `#${string}.69` | `#${string}.80` | `#${string}.83` | `#${string}.87` | `#${string}.84` | `#${string}.81` | `#${string}.85` | `#${string}.82` | `#${string}.86` | `#${string}.88` | `#${string}.89` | `#${string}.90` | `#${string}.93` | `#${string}.97` | `#${string}.94` | `#${string}.91` | `#${string}.95` | `#${string}.92` | `#${string}.96` | `#${string}.98` | `#${string}.99` | `#${string}.100` | `rgb(${string})` | `hsl(${string})` | `okhsl(${string})` | `oklch(${string})`) | undefined>;
|
|
37
37
|
height?: _tenphi_tasty0.StyleValue<boolean | Property.Height<string | number> | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | Property.Height<string | number> | undefined>;
|
|
38
38
|
size?: number | "small" | (string & {}) | "inline" | "xsmall" | "medium" | "large" | "xlarge" | undefined;
|
|
39
39
|
width?: _tenphi_tasty0.StyleValue<boolean | Property.Width<string | number> | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | Property.Width<string | number> | undefined>;
|
|
@@ -123,7 +123,7 @@ declare const ActionButton: react.ComponentType<{
|
|
|
123
123
|
start?: number | undefined;
|
|
124
124
|
step?: string | number | undefined;
|
|
125
125
|
target?: string | undefined;
|
|
126
|
-
type?: "link" | "outline" | (string & {}) | "clear" | "primary" | "
|
|
126
|
+
type?: "link" | "outline" | (string & {}) | "clear" | "primary" | "outline-2" | "danger" | undefined;
|
|
127
127
|
useMap?: string | undefined;
|
|
128
128
|
value?: string | number | readonly string[] | undefined;
|
|
129
129
|
wmode?: string | undefined;
|
|
@@ -135,7 +135,7 @@ declare const ActionButton: react.ComponentType<{
|
|
|
135
135
|
accessKey?: string | undefined;
|
|
136
136
|
autoCapitalize?: (string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
137
137
|
autoFocus?: boolean | undefined;
|
|
138
|
-
contentEditable?: (boolean | "true" | "false") | "
|
|
138
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
139
139
|
contextMenu?: string | undefined;
|
|
140
140
|
dir?: string | undefined;
|
|
141
141
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -168,13 +168,13 @@ declare const ActionButton: react.ComponentType<{
|
|
|
168
168
|
popoverTargetAction?: "hide" | "toggle" | "show" | undefined;
|
|
169
169
|
popoverTarget?: string | undefined;
|
|
170
170
|
inert?: boolean | undefined;
|
|
171
|
-
inputMode?: "search" | "
|
|
171
|
+
inputMode?: "search" | "none" | "numeric" | "text" | "tel" | "url" | "email" | "decimal" | undefined;
|
|
172
172
|
is?: string | undefined;
|
|
173
173
|
exportparts?: string | undefined;
|
|
174
174
|
part?: string | undefined;
|
|
175
175
|
"aria-activedescendant"?: string | undefined;
|
|
176
176
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
177
|
-
"aria-autocomplete"?: "list" | "
|
|
177
|
+
"aria-autocomplete"?: "list" | "inline" | "none" | "both" | undefined;
|
|
178
178
|
"aria-braillelabel"?: string | undefined;
|
|
179
179
|
"aria-brailleroledescription"?: string | undefined;
|
|
180
180
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
@@ -211,7 +211,7 @@ declare const ActionButton: react.ComponentType<{
|
|
|
211
211
|
"aria-posinset"?: number | undefined;
|
|
212
212
|
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
213
213
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
214
|
-
"aria-relevant"?: "all" | "
|
|
214
|
+
"aria-relevant"?: "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
215
215
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
216
216
|
"aria-roledescription"?: string | undefined;
|
|
217
217
|
"aria-rowcount"?: number | undefined;
|
|
@@ -396,7 +396,7 @@ declare const ActionButton: react.ComponentType<{
|
|
|
396
396
|
onTransitionRunCapture?: react.TransitionEventHandler<HTMLAnchorElement | HTMLButtonElement | HTMLDivElement | HTMLSpanElement> | undefined;
|
|
397
397
|
onTransitionStart?: react.TransitionEventHandler<HTMLAnchorElement | HTMLButtonElement | HTMLDivElement | HTMLSpanElement> | undefined;
|
|
398
398
|
onTransitionStartCapture?: react.TransitionEventHandler<HTMLAnchorElement | HTMLButtonElement | HTMLDivElement | HTMLSpanElement> | undefined;
|
|
399
|
-
fill?: _tenphi_tasty0.StyleValue<boolean | ((string & {}) | `#${string}` | `#${string}.0` | `#${string}.3` | `#${string}.7` | `#${string}.4` | `#${string}.1` | `#${string}.
|
|
399
|
+
fill?: _tenphi_tasty0.StyleValue<boolean | ((string & {}) | `#${string}` | `#${string}.0` | `#${string}.3` | `#${string}.7` | `#${string}.4` | `#${string}.1` | `#${string}.5` | `#${string}.2` | `#${string}.6` | `#${string}.8` | `#${string}.9` | `#${string}.00` | `#${string}.03` | `#${string}.07` | `#${string}.04` | `#${string}.01` | `#${string}.05` | `#${string}.02` | `#${string}.06` | `#${string}.08` | `#${string}.09` | `#${string}.30` | `#${string}.33` | `#${string}.37` | `#${string}.34` | `#${string}.31` | `#${string}.35` | `#${string}.32` | `#${string}.36` | `#${string}.38` | `#${string}.39` | `#${string}.70` | `#${string}.73` | `#${string}.77` | `#${string}.74` | `#${string}.71` | `#${string}.75` | `#${string}.72` | `#${string}.76` | `#${string}.78` | `#${string}.79` | `#${string}.40` | `#${string}.43` | `#${string}.47` | `#${string}.44` | `#${string}.41` | `#${string}.45` | `#${string}.42` | `#${string}.46` | `#${string}.48` | `#${string}.49` | `#${string}.10` | `#${string}.13` | `#${string}.17` | `#${string}.14` | `#${string}.11` | `#${string}.15` | `#${string}.12` | `#${string}.16` | `#${string}.18` | `#${string}.19` | `#${string}.50` | `#${string}.53` | `#${string}.57` | `#${string}.54` | `#${string}.51` | `#${string}.55` | `#${string}.52` | `#${string}.56` | `#${string}.58` | `#${string}.59` | `#${string}.20` | `#${string}.23` | `#${string}.27` | `#${string}.24` | `#${string}.21` | `#${string}.25` | `#${string}.22` | `#${string}.26` | `#${string}.28` | `#${string}.29` | `#${string}.60` | `#${string}.63` | `#${string}.67` | `#${string}.64` | `#${string}.61` | `#${string}.65` | `#${string}.62` | `#${string}.66` | `#${string}.68` | `#${string}.69` | `#${string}.80` | `#${string}.83` | `#${string}.87` | `#${string}.84` | `#${string}.81` | `#${string}.85` | `#${string}.82` | `#${string}.86` | `#${string}.88` | `#${string}.89` | `#${string}.90` | `#${string}.93` | `#${string}.97` | `#${string}.94` | `#${string}.91` | `#${string}.95` | `#${string}.92` | `#${string}.96` | `#${string}.98` | `#${string}.99` | `#${string}.100` | `rgb(${string})` | `hsl(${string})` | `okhsl(${string})` | `oklch(${string})`) | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | ((string & {}) | `#${string}` | `#${string}.0` | `#${string}.3` | `#${string}.7` | `#${string}.4` | `#${string}.1` | `#${string}.5` | `#${string}.2` | `#${string}.6` | `#${string}.8` | `#${string}.9` | `#${string}.00` | `#${string}.03` | `#${string}.07` | `#${string}.04` | `#${string}.01` | `#${string}.05` | `#${string}.02` | `#${string}.06` | `#${string}.08` | `#${string}.09` | `#${string}.30` | `#${string}.33` | `#${string}.37` | `#${string}.34` | `#${string}.31` | `#${string}.35` | `#${string}.32` | `#${string}.36` | `#${string}.38` | `#${string}.39` | `#${string}.70` | `#${string}.73` | `#${string}.77` | `#${string}.74` | `#${string}.71` | `#${string}.75` | `#${string}.72` | `#${string}.76` | `#${string}.78` | `#${string}.79` | `#${string}.40` | `#${string}.43` | `#${string}.47` | `#${string}.44` | `#${string}.41` | `#${string}.45` | `#${string}.42` | `#${string}.46` | `#${string}.48` | `#${string}.49` | `#${string}.10` | `#${string}.13` | `#${string}.17` | `#${string}.14` | `#${string}.11` | `#${string}.15` | `#${string}.12` | `#${string}.16` | `#${string}.18` | `#${string}.19` | `#${string}.50` | `#${string}.53` | `#${string}.57` | `#${string}.54` | `#${string}.51` | `#${string}.55` | `#${string}.52` | `#${string}.56` | `#${string}.58` | `#${string}.59` | `#${string}.20` | `#${string}.23` | `#${string}.27` | `#${string}.24` | `#${string}.21` | `#${string}.25` | `#${string}.22` | `#${string}.26` | `#${string}.28` | `#${string}.29` | `#${string}.60` | `#${string}.63` | `#${string}.67` | `#${string}.64` | `#${string}.61` | `#${string}.65` | `#${string}.62` | `#${string}.66` | `#${string}.68` | `#${string}.69` | `#${string}.80` | `#${string}.83` | `#${string}.87` | `#${string}.84` | `#${string}.81` | `#${string}.85` | `#${string}.82` | `#${string}.86` | `#${string}.88` | `#${string}.89` | `#${string}.90` | `#${string}.93` | `#${string}.97` | `#${string}.94` | `#${string}.91` | `#${string}.95` | `#${string}.92` | `#${string}.96` | `#${string}.98` | `#${string}.99` | `#${string}.100` | `rgb(${string})` | `hsl(${string})` | `okhsl(${string})` | `oklch(${string})`) | undefined>;
|
|
400
400
|
font?: _tenphi_tasty0.StyleValue<boolean | Property.FontFamily | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | Property.FontFamily | undefined>;
|
|
401
401
|
outline?: _tenphi_tasty0.StyleValue<string | boolean | undefined> | _tenphi_tasty0.StyleValueStateMap<string | boolean | undefined>;
|
|
402
402
|
gap?: _tenphi_tasty0.StyleValue<boolean | Property.Gap<string | number> | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | Property.Gap<string | number> | undefined>;
|
|
@@ -455,7 +455,7 @@ declare const ActionButton: react.ComponentType<{
|
|
|
455
455
|
gridColumns?: _tenphi_tasty0.StyleValue<Property.GridTemplateColumns<string | number> | undefined> | _tenphi_tasty0.StyleValueStateMap<Property.GridTemplateColumns<string | number> | undefined>;
|
|
456
456
|
gridRows?: _tenphi_tasty0.StyleValue<Property.GridTemplateRows<string | number> | undefined> | _tenphi_tasty0.StyleValueStateMap<Property.GridTemplateRows<string | number> | undefined>;
|
|
457
457
|
preset?: _tenphi_tasty0.StyleValue<string | (string & {}) | undefined> | _tenphi_tasty0.StyleValueStateMap<string | (string & {}) | undefined>;
|
|
458
|
-
justify?: _tenphi_tasty0.StyleValue<"start" | (string & {}) | "left" | "right" | "
|
|
458
|
+
justify?: _tenphi_tasty0.StyleValue<"start" | (string & {}) | "left" | "right" | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "normal" | "center" | "end" | "flex-end" | "flex-start" | "self-end" | "self-start" | "baseline" | "stretch" | "space-around" | "space-between" | "space-evenly" | "legacy" | undefined> | _tenphi_tasty0.StyleValueStateMap<"start" | (string & {}) | "left" | "right" | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "normal" | "center" | "end" | "flex-end" | "flex-start" | "self-end" | "self-start" | "baseline" | "stretch" | "space-around" | "space-between" | "space-evenly" | "legacy" | undefined>;
|
|
459
459
|
place?: _tenphi_tasty0.StyleValue<string | (string & {}) | undefined> | _tenphi_tasty0.StyleValueStateMap<string | (string & {}) | undefined>;
|
|
460
460
|
blockScrollMargin?: _tenphi_tasty0.StyleValue<boolean | Property.ScrollMarginBlock<string | number> | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | Property.ScrollMarginBlock<string | number> | undefined>;
|
|
461
461
|
inlineScrollMargin?: _tenphi_tasty0.StyleValue<boolean | Property.ScrollMarginInline<string | number> | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | Property.ScrollMarginInline<string | number> | undefined>;
|
|
@@ -465,34 +465,34 @@ declare const ActionButton: react.ComponentType<{
|
|
|
465
465
|
inlineInset?: _tenphi_tasty0.StyleValue<boolean | Property.InsetInline<string | number> | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | Property.InsetInline<string | number> | undefined>;
|
|
466
466
|
qa?: string | undefined;
|
|
467
467
|
qaVal?: string | number | undefined;
|
|
468
|
-
element?: `
|
|
468
|
+
element?: `C${string}` | `P${string}` | `F${string}` | `B${string}` | `A${string}` | `I${string}` | `R${string}` | `S${string}` | `L${string}` | `E${string}` | `K${string}` | `D${string}` | `T${string}` | `V${string}` | `W${string}` | `M${string}` | `G${string}` | `H${string}` | `J${string}` | `N${string}` | `O${string}` | `Q${string}` | `U${string}` | `X${string}` | `Y${string}` | `Z${string}` | undefined;
|
|
469
469
|
styles?: _tenphi_tasty0.Styles | undefined;
|
|
470
470
|
mods?: Record<string, _tenphi_tasty0.ModValue> | undefined;
|
|
471
471
|
isHidden?: boolean | undefined;
|
|
472
472
|
isDisabled?: boolean | undefined;
|
|
473
473
|
isChecked?: boolean | undefined;
|
|
474
|
-
theme?: "default" | (string & {}) | "current" | "note" | "danger" | "success" | "
|
|
474
|
+
theme?: "default" | (string & {}) | "current" | "note" | "danger" | "success" | "special" | "warning" | undefined;
|
|
475
475
|
tokens?: _tenphi_tasty0.Tokens | undefined;
|
|
476
|
-
key?: react.Key | null | undefined;
|
|
477
|
-
tooltip?: string | boolean | (Omit<CubeTooltipProviderProps, "children"> & {
|
|
478
|
-
auto?: boolean;
|
|
479
|
-
}) | undefined;
|
|
480
|
-
icon?: DynamicIcon<ButtonMods>;
|
|
481
|
-
rightIcon?: DynamicIcon<ButtonMods>;
|
|
482
|
-
isSelected?: boolean | undefined;
|
|
483
|
-
htmlType?: "button" | "submit" | "reset" | undefined;
|
|
484
|
-
isLoading?: boolean | undefined;
|
|
485
|
-
defaultTooltipPlacement?: react_aria0.Placement | undefined;
|
|
486
476
|
onPress?: ((e: react_aria0.PressEvent) => void) | undefined;
|
|
487
477
|
onPressStart?: ((e: react_aria0.PressEvent) => void) | undefined;
|
|
488
478
|
onPressEnd?: ((e: react_aria0.PressEvent) => void) | undefined;
|
|
479
|
+
tooltip?: string | boolean | (Omit<CubeTooltipProviderProps, "children"> & {
|
|
480
|
+
auto?: boolean;
|
|
481
|
+
}) | undefined;
|
|
482
|
+
key?: react.Key | null | undefined;
|
|
483
|
+
to?: NavigateArg | undefined;
|
|
489
484
|
onPressChange?: ((isPressed: boolean) => void) | undefined;
|
|
490
485
|
onPressUp?: ((e: react_aria0.PressEvent) => void) | undefined;
|
|
491
486
|
onFocusChange?: ((isFocused: boolean) => void) | undefined;
|
|
492
487
|
elementType?: "button" | react.JSXElementConstructor<any> | undefined;
|
|
493
488
|
preventFocusOnPress?: boolean | undefined;
|
|
494
489
|
excludeFromTabOrder?: boolean | undefined;
|
|
495
|
-
|
|
490
|
+
icon?: DynamicIcon<ButtonMods>;
|
|
491
|
+
isLoading?: boolean | undefined;
|
|
492
|
+
rightIcon?: DynamicIcon<ButtonMods>;
|
|
493
|
+
isSelected?: boolean | undefined;
|
|
494
|
+
htmlType?: "button" | "submit" | "reset" | undefined;
|
|
495
|
+
defaultTooltipPlacement?: react_aria0.Placement | undefined;
|
|
496
496
|
} & {}>;
|
|
497
497
|
interface CubeCopySnippetProps extends CubeCardProps {
|
|
498
498
|
/** The code snippet */
|
|
@@ -542,9 +542,9 @@ declare const _CopySnippet: typeof CopySnippet & {
|
|
|
542
542
|
id?: string | undefined;
|
|
543
543
|
children?: ReactNode | Iterable<ReactNode>;
|
|
544
544
|
as?: "a" | "button" | "div" | "span" | react.ComponentType<any> | undefined;
|
|
545
|
-
align?: _tenphi_tasty0.StyleValue<"start" | (string & {}) | "
|
|
545
|
+
align?: _tenphi_tasty0.StyleValue<"start" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "normal" | "center" | "end" | "flex-end" | "flex-start" | "self-end" | "self-start" | "baseline" | "stretch" | "space-around" | "space-between" | "space-evenly" | undefined> | _tenphi_tasty0.StyleValueStateMap<"start" | (string & {}) | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "normal" | "center" | "end" | "flex-end" | "flex-start" | "self-end" | "self-start" | "baseline" | "stretch" | "space-around" | "space-between" | "space-evenly" | undefined>;
|
|
546
546
|
border?: _tenphi_tasty0.StyleValue<boolean | Property.Border<string | number> | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | Property.Border<string | number> | undefined>;
|
|
547
|
-
color?: _tenphi_tasty0.StyleValue<boolean | ((string & {}) | `#${string}` | `#${string}.0` | `#${string}.3` | `#${string}.7` | `#${string}.4` | `#${string}.1` | `#${string}.
|
|
547
|
+
color?: _tenphi_tasty0.StyleValue<boolean | ((string & {}) | `#${string}` | `#${string}.0` | `#${string}.3` | `#${string}.7` | `#${string}.4` | `#${string}.1` | `#${string}.5` | `#${string}.2` | `#${string}.6` | `#${string}.8` | `#${string}.9` | `#${string}.00` | `#${string}.03` | `#${string}.07` | `#${string}.04` | `#${string}.01` | `#${string}.05` | `#${string}.02` | `#${string}.06` | `#${string}.08` | `#${string}.09` | `#${string}.30` | `#${string}.33` | `#${string}.37` | `#${string}.34` | `#${string}.31` | `#${string}.35` | `#${string}.32` | `#${string}.36` | `#${string}.38` | `#${string}.39` | `#${string}.70` | `#${string}.73` | `#${string}.77` | `#${string}.74` | `#${string}.71` | `#${string}.75` | `#${string}.72` | `#${string}.76` | `#${string}.78` | `#${string}.79` | `#${string}.40` | `#${string}.43` | `#${string}.47` | `#${string}.44` | `#${string}.41` | `#${string}.45` | `#${string}.42` | `#${string}.46` | `#${string}.48` | `#${string}.49` | `#${string}.10` | `#${string}.13` | `#${string}.17` | `#${string}.14` | `#${string}.11` | `#${string}.15` | `#${string}.12` | `#${string}.16` | `#${string}.18` | `#${string}.19` | `#${string}.50` | `#${string}.53` | `#${string}.57` | `#${string}.54` | `#${string}.51` | `#${string}.55` | `#${string}.52` | `#${string}.56` | `#${string}.58` | `#${string}.59` | `#${string}.20` | `#${string}.23` | `#${string}.27` | `#${string}.24` | `#${string}.21` | `#${string}.25` | `#${string}.22` | `#${string}.26` | `#${string}.28` | `#${string}.29` | `#${string}.60` | `#${string}.63` | `#${string}.67` | `#${string}.64` | `#${string}.61` | `#${string}.65` | `#${string}.62` | `#${string}.66` | `#${string}.68` | `#${string}.69` | `#${string}.80` | `#${string}.83` | `#${string}.87` | `#${string}.84` | `#${string}.81` | `#${string}.85` | `#${string}.82` | `#${string}.86` | `#${string}.88` | `#${string}.89` | `#${string}.90` | `#${string}.93` | `#${string}.97` | `#${string}.94` | `#${string}.91` | `#${string}.95` | `#${string}.92` | `#${string}.96` | `#${string}.98` | `#${string}.99` | `#${string}.100` | `rgb(${string})` | `hsl(${string})` | `okhsl(${string})` | `oklch(${string})`) | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | ((string & {}) | `#${string}` | `#${string}.0` | `#${string}.3` | `#${string}.7` | `#${string}.4` | `#${string}.1` | `#${string}.5` | `#${string}.2` | `#${string}.6` | `#${string}.8` | `#${string}.9` | `#${string}.00` | `#${string}.03` | `#${string}.07` | `#${string}.04` | `#${string}.01` | `#${string}.05` | `#${string}.02` | `#${string}.06` | `#${string}.08` | `#${string}.09` | `#${string}.30` | `#${string}.33` | `#${string}.37` | `#${string}.34` | `#${string}.31` | `#${string}.35` | `#${string}.32` | `#${string}.36` | `#${string}.38` | `#${string}.39` | `#${string}.70` | `#${string}.73` | `#${string}.77` | `#${string}.74` | `#${string}.71` | `#${string}.75` | `#${string}.72` | `#${string}.76` | `#${string}.78` | `#${string}.79` | `#${string}.40` | `#${string}.43` | `#${string}.47` | `#${string}.44` | `#${string}.41` | `#${string}.45` | `#${string}.42` | `#${string}.46` | `#${string}.48` | `#${string}.49` | `#${string}.10` | `#${string}.13` | `#${string}.17` | `#${string}.14` | `#${string}.11` | `#${string}.15` | `#${string}.12` | `#${string}.16` | `#${string}.18` | `#${string}.19` | `#${string}.50` | `#${string}.53` | `#${string}.57` | `#${string}.54` | `#${string}.51` | `#${string}.55` | `#${string}.52` | `#${string}.56` | `#${string}.58` | `#${string}.59` | `#${string}.20` | `#${string}.23` | `#${string}.27` | `#${string}.24` | `#${string}.21` | `#${string}.25` | `#${string}.22` | `#${string}.26` | `#${string}.28` | `#${string}.29` | `#${string}.60` | `#${string}.63` | `#${string}.67` | `#${string}.64` | `#${string}.61` | `#${string}.65` | `#${string}.62` | `#${string}.66` | `#${string}.68` | `#${string}.69` | `#${string}.80` | `#${string}.83` | `#${string}.87` | `#${string}.84` | `#${string}.81` | `#${string}.85` | `#${string}.82` | `#${string}.86` | `#${string}.88` | `#${string}.89` | `#${string}.90` | `#${string}.93` | `#${string}.97` | `#${string}.94` | `#${string}.91` | `#${string}.95` | `#${string}.92` | `#${string}.96` | `#${string}.98` | `#${string}.99` | `#${string}.100` | `rgb(${string})` | `hsl(${string})` | `okhsl(${string})` | `oklch(${string})`) | undefined>;
|
|
548
548
|
height?: _tenphi_tasty0.StyleValue<boolean | Property.Height<string | number> | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | Property.Height<string | number> | undefined>;
|
|
549
549
|
size?: number | "small" | (string & {}) | "inline" | "xsmall" | "medium" | "large" | "xlarge" | undefined;
|
|
550
550
|
width?: _tenphi_tasty0.StyleValue<boolean | Property.Width<string | number> | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | Property.Width<string | number> | undefined>;
|
|
@@ -634,7 +634,7 @@ declare const _CopySnippet: typeof CopySnippet & {
|
|
|
634
634
|
start?: number | undefined;
|
|
635
635
|
step?: string | number | undefined;
|
|
636
636
|
target?: string | undefined;
|
|
637
|
-
type?: "link" | "outline" | (string & {}) | "clear" | "primary" | "
|
|
637
|
+
type?: "link" | "outline" | (string & {}) | "clear" | "primary" | "outline-2" | "danger" | undefined;
|
|
638
638
|
useMap?: string | undefined;
|
|
639
639
|
value?: string | number | readonly string[] | undefined;
|
|
640
640
|
wmode?: string | undefined;
|
|
@@ -646,7 +646,7 @@ declare const _CopySnippet: typeof CopySnippet & {
|
|
|
646
646
|
accessKey?: string | undefined;
|
|
647
647
|
autoCapitalize?: (string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
|
|
648
648
|
autoFocus?: boolean | undefined;
|
|
649
|
-
contentEditable?: (boolean | "true" | "false") | "
|
|
649
|
+
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
650
650
|
contextMenu?: string | undefined;
|
|
651
651
|
dir?: string | undefined;
|
|
652
652
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -679,13 +679,13 @@ declare const _CopySnippet: typeof CopySnippet & {
|
|
|
679
679
|
popoverTargetAction?: "hide" | "toggle" | "show" | undefined;
|
|
680
680
|
popoverTarget?: string | undefined;
|
|
681
681
|
inert?: boolean | undefined;
|
|
682
|
-
inputMode?: "search" | "
|
|
682
|
+
inputMode?: "search" | "none" | "numeric" | "text" | "tel" | "url" | "email" | "decimal" | undefined;
|
|
683
683
|
is?: string | undefined;
|
|
684
684
|
exportparts?: string | undefined;
|
|
685
685
|
part?: string | undefined;
|
|
686
686
|
"aria-activedescendant"?: string | undefined;
|
|
687
687
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
688
|
-
"aria-autocomplete"?: "list" | "
|
|
688
|
+
"aria-autocomplete"?: "list" | "inline" | "none" | "both" | undefined;
|
|
689
689
|
"aria-braillelabel"?: string | undefined;
|
|
690
690
|
"aria-brailleroledescription"?: string | undefined;
|
|
691
691
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
@@ -722,7 +722,7 @@ declare const _CopySnippet: typeof CopySnippet & {
|
|
|
722
722
|
"aria-posinset"?: number | undefined;
|
|
723
723
|
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
724
724
|
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
725
|
-
"aria-relevant"?: "all" | "
|
|
725
|
+
"aria-relevant"?: "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
726
726
|
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
727
727
|
"aria-roledescription"?: string | undefined;
|
|
728
728
|
"aria-rowcount"?: number | undefined;
|
|
@@ -907,7 +907,7 @@ declare const _CopySnippet: typeof CopySnippet & {
|
|
|
907
907
|
onTransitionRunCapture?: react.TransitionEventHandler<HTMLAnchorElement | HTMLButtonElement | HTMLDivElement | HTMLSpanElement> | undefined;
|
|
908
908
|
onTransitionStart?: react.TransitionEventHandler<HTMLAnchorElement | HTMLButtonElement | HTMLDivElement | HTMLSpanElement> | undefined;
|
|
909
909
|
onTransitionStartCapture?: react.TransitionEventHandler<HTMLAnchorElement | HTMLButtonElement | HTMLDivElement | HTMLSpanElement> | undefined;
|
|
910
|
-
fill?: _tenphi_tasty0.StyleValue<boolean | ((string & {}) | `#${string}` | `#${string}.0` | `#${string}.3` | `#${string}.7` | `#${string}.4` | `#${string}.1` | `#${string}.
|
|
910
|
+
fill?: _tenphi_tasty0.StyleValue<boolean | ((string & {}) | `#${string}` | `#${string}.0` | `#${string}.3` | `#${string}.7` | `#${string}.4` | `#${string}.1` | `#${string}.5` | `#${string}.2` | `#${string}.6` | `#${string}.8` | `#${string}.9` | `#${string}.00` | `#${string}.03` | `#${string}.07` | `#${string}.04` | `#${string}.01` | `#${string}.05` | `#${string}.02` | `#${string}.06` | `#${string}.08` | `#${string}.09` | `#${string}.30` | `#${string}.33` | `#${string}.37` | `#${string}.34` | `#${string}.31` | `#${string}.35` | `#${string}.32` | `#${string}.36` | `#${string}.38` | `#${string}.39` | `#${string}.70` | `#${string}.73` | `#${string}.77` | `#${string}.74` | `#${string}.71` | `#${string}.75` | `#${string}.72` | `#${string}.76` | `#${string}.78` | `#${string}.79` | `#${string}.40` | `#${string}.43` | `#${string}.47` | `#${string}.44` | `#${string}.41` | `#${string}.45` | `#${string}.42` | `#${string}.46` | `#${string}.48` | `#${string}.49` | `#${string}.10` | `#${string}.13` | `#${string}.17` | `#${string}.14` | `#${string}.11` | `#${string}.15` | `#${string}.12` | `#${string}.16` | `#${string}.18` | `#${string}.19` | `#${string}.50` | `#${string}.53` | `#${string}.57` | `#${string}.54` | `#${string}.51` | `#${string}.55` | `#${string}.52` | `#${string}.56` | `#${string}.58` | `#${string}.59` | `#${string}.20` | `#${string}.23` | `#${string}.27` | `#${string}.24` | `#${string}.21` | `#${string}.25` | `#${string}.22` | `#${string}.26` | `#${string}.28` | `#${string}.29` | `#${string}.60` | `#${string}.63` | `#${string}.67` | `#${string}.64` | `#${string}.61` | `#${string}.65` | `#${string}.62` | `#${string}.66` | `#${string}.68` | `#${string}.69` | `#${string}.80` | `#${string}.83` | `#${string}.87` | `#${string}.84` | `#${string}.81` | `#${string}.85` | `#${string}.82` | `#${string}.86` | `#${string}.88` | `#${string}.89` | `#${string}.90` | `#${string}.93` | `#${string}.97` | `#${string}.94` | `#${string}.91` | `#${string}.95` | `#${string}.92` | `#${string}.96` | `#${string}.98` | `#${string}.99` | `#${string}.100` | `rgb(${string})` | `hsl(${string})` | `okhsl(${string})` | `oklch(${string})`) | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | ((string & {}) | `#${string}` | `#${string}.0` | `#${string}.3` | `#${string}.7` | `#${string}.4` | `#${string}.1` | `#${string}.5` | `#${string}.2` | `#${string}.6` | `#${string}.8` | `#${string}.9` | `#${string}.00` | `#${string}.03` | `#${string}.07` | `#${string}.04` | `#${string}.01` | `#${string}.05` | `#${string}.02` | `#${string}.06` | `#${string}.08` | `#${string}.09` | `#${string}.30` | `#${string}.33` | `#${string}.37` | `#${string}.34` | `#${string}.31` | `#${string}.35` | `#${string}.32` | `#${string}.36` | `#${string}.38` | `#${string}.39` | `#${string}.70` | `#${string}.73` | `#${string}.77` | `#${string}.74` | `#${string}.71` | `#${string}.75` | `#${string}.72` | `#${string}.76` | `#${string}.78` | `#${string}.79` | `#${string}.40` | `#${string}.43` | `#${string}.47` | `#${string}.44` | `#${string}.41` | `#${string}.45` | `#${string}.42` | `#${string}.46` | `#${string}.48` | `#${string}.49` | `#${string}.10` | `#${string}.13` | `#${string}.17` | `#${string}.14` | `#${string}.11` | `#${string}.15` | `#${string}.12` | `#${string}.16` | `#${string}.18` | `#${string}.19` | `#${string}.50` | `#${string}.53` | `#${string}.57` | `#${string}.54` | `#${string}.51` | `#${string}.55` | `#${string}.52` | `#${string}.56` | `#${string}.58` | `#${string}.59` | `#${string}.20` | `#${string}.23` | `#${string}.27` | `#${string}.24` | `#${string}.21` | `#${string}.25` | `#${string}.22` | `#${string}.26` | `#${string}.28` | `#${string}.29` | `#${string}.60` | `#${string}.63` | `#${string}.67` | `#${string}.64` | `#${string}.61` | `#${string}.65` | `#${string}.62` | `#${string}.66` | `#${string}.68` | `#${string}.69` | `#${string}.80` | `#${string}.83` | `#${string}.87` | `#${string}.84` | `#${string}.81` | `#${string}.85` | `#${string}.82` | `#${string}.86` | `#${string}.88` | `#${string}.89` | `#${string}.90` | `#${string}.93` | `#${string}.97` | `#${string}.94` | `#${string}.91` | `#${string}.95` | `#${string}.92` | `#${string}.96` | `#${string}.98` | `#${string}.99` | `#${string}.100` | `rgb(${string})` | `hsl(${string})` | `okhsl(${string})` | `oklch(${string})`) | undefined>;
|
|
911
911
|
font?: _tenphi_tasty0.StyleValue<boolean | Property.FontFamily | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | Property.FontFamily | undefined>;
|
|
912
912
|
outline?: _tenphi_tasty0.StyleValue<string | boolean | undefined> | _tenphi_tasty0.StyleValueStateMap<string | boolean | undefined>;
|
|
913
913
|
gap?: _tenphi_tasty0.StyleValue<boolean | Property.Gap<string | number> | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | Property.Gap<string | number> | undefined>;
|
|
@@ -966,7 +966,7 @@ declare const _CopySnippet: typeof CopySnippet & {
|
|
|
966
966
|
gridColumns?: _tenphi_tasty0.StyleValue<Property.GridTemplateColumns<string | number> | undefined> | _tenphi_tasty0.StyleValueStateMap<Property.GridTemplateColumns<string | number> | undefined>;
|
|
967
967
|
gridRows?: _tenphi_tasty0.StyleValue<Property.GridTemplateRows<string | number> | undefined> | _tenphi_tasty0.StyleValueStateMap<Property.GridTemplateRows<string | number> | undefined>;
|
|
968
968
|
preset?: _tenphi_tasty0.StyleValue<string | (string & {}) | undefined> | _tenphi_tasty0.StyleValueStateMap<string | (string & {}) | undefined>;
|
|
969
|
-
justify?: _tenphi_tasty0.StyleValue<"start" | (string & {}) | "left" | "right" | "
|
|
969
|
+
justify?: _tenphi_tasty0.StyleValue<"start" | (string & {}) | "left" | "right" | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "normal" | "center" | "end" | "flex-end" | "flex-start" | "self-end" | "self-start" | "baseline" | "stretch" | "space-around" | "space-between" | "space-evenly" | "legacy" | undefined> | _tenphi_tasty0.StyleValueStateMap<"start" | (string & {}) | "left" | "right" | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | "normal" | "center" | "end" | "flex-end" | "flex-start" | "self-end" | "self-start" | "baseline" | "stretch" | "space-around" | "space-between" | "space-evenly" | "legacy" | undefined>;
|
|
970
970
|
place?: _tenphi_tasty0.StyleValue<string | (string & {}) | undefined> | _tenphi_tasty0.StyleValueStateMap<string | (string & {}) | undefined>;
|
|
971
971
|
blockScrollMargin?: _tenphi_tasty0.StyleValue<boolean | Property.ScrollMarginBlock<string | number> | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | Property.ScrollMarginBlock<string | number> | undefined>;
|
|
972
972
|
inlineScrollMargin?: _tenphi_tasty0.StyleValue<boolean | Property.ScrollMarginInline<string | number> | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | Property.ScrollMarginInline<string | number> | undefined>;
|
|
@@ -976,34 +976,34 @@ declare const _CopySnippet: typeof CopySnippet & {
|
|
|
976
976
|
inlineInset?: _tenphi_tasty0.StyleValue<boolean | Property.InsetInline<string | number> | undefined> | _tenphi_tasty0.StyleValueStateMap<boolean | Property.InsetInline<string | number> | undefined>;
|
|
977
977
|
qa?: string | undefined;
|
|
978
978
|
qaVal?: string | number | undefined;
|
|
979
|
-
element?: `
|
|
979
|
+
element?: `C${string}` | `P${string}` | `F${string}` | `B${string}` | `A${string}` | `I${string}` | `R${string}` | `S${string}` | `L${string}` | `E${string}` | `K${string}` | `D${string}` | `T${string}` | `V${string}` | `W${string}` | `M${string}` | `G${string}` | `H${string}` | `J${string}` | `N${string}` | `O${string}` | `Q${string}` | `U${string}` | `X${string}` | `Y${string}` | `Z${string}` | undefined;
|
|
980
980
|
styles?: _tenphi_tasty0.Styles | undefined;
|
|
981
981
|
mods?: Record<string, _tenphi_tasty0.ModValue> | undefined;
|
|
982
982
|
isHidden?: boolean | undefined;
|
|
983
983
|
isDisabled?: boolean | undefined;
|
|
984
984
|
isChecked?: boolean | undefined;
|
|
985
|
-
theme?: "default" | (string & {}) | "current" | "note" | "danger" | "success" | "
|
|
985
|
+
theme?: "default" | (string & {}) | "current" | "note" | "danger" | "success" | "special" | "warning" | undefined;
|
|
986
986
|
tokens?: _tenphi_tasty0.Tokens | undefined;
|
|
987
|
-
key?: react.Key | null | undefined;
|
|
988
|
-
tooltip?: string | boolean | (Omit<CubeTooltipProviderProps, "children"> & {
|
|
989
|
-
auto?: boolean;
|
|
990
|
-
}) | undefined;
|
|
991
|
-
icon?: DynamicIcon<ButtonMods>;
|
|
992
|
-
rightIcon?: DynamicIcon<ButtonMods>;
|
|
993
|
-
isSelected?: boolean | undefined;
|
|
994
|
-
htmlType?: "button" | "submit" | "reset" | undefined;
|
|
995
|
-
isLoading?: boolean | undefined;
|
|
996
|
-
defaultTooltipPlacement?: react_aria0.Placement | undefined;
|
|
997
987
|
onPress?: ((e: react_aria0.PressEvent) => void) | undefined;
|
|
998
988
|
onPressStart?: ((e: react_aria0.PressEvent) => void) | undefined;
|
|
999
989
|
onPressEnd?: ((e: react_aria0.PressEvent) => void) | undefined;
|
|
990
|
+
tooltip?: string | boolean | (Omit<CubeTooltipProviderProps, "children"> & {
|
|
991
|
+
auto?: boolean;
|
|
992
|
+
}) | undefined;
|
|
993
|
+
key?: react.Key | null | undefined;
|
|
994
|
+
to?: NavigateArg | undefined;
|
|
1000
995
|
onPressChange?: ((isPressed: boolean) => void) | undefined;
|
|
1001
996
|
onPressUp?: ((e: react_aria0.PressEvent) => void) | undefined;
|
|
1002
997
|
onFocusChange?: ((isFocused: boolean) => void) | undefined;
|
|
1003
998
|
elementType?: "button" | react.JSXElementConstructor<any> | undefined;
|
|
1004
999
|
preventFocusOnPress?: boolean | undefined;
|
|
1005
1000
|
excludeFromTabOrder?: boolean | undefined;
|
|
1006
|
-
|
|
1001
|
+
icon?: DynamicIcon<ButtonMods>;
|
|
1002
|
+
isLoading?: boolean | undefined;
|
|
1003
|
+
rightIcon?: DynamicIcon<ButtonMods>;
|
|
1004
|
+
isSelected?: boolean | undefined;
|
|
1005
|
+
htmlType?: "button" | "submit" | "reset" | undefined;
|
|
1006
|
+
defaultTooltipPlacement?: react_aria0.Placement | undefined;
|
|
1007
1007
|
} & {}>;
|
|
1008
1008
|
};
|
|
1009
1009
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.194.1 | Cube Dev Team */
|
|
2
2
|
import { _Tooltip } from "../../overlays/Tooltip/Tooltip.js";
|
|
3
3
|
import { TooltipTrigger } from "../../overlays/Tooltip/TooltipTrigger.js";
|
|
4
4
|
import { useI18n } from "../../../i18n/useI18n.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.194.1 | Cube Dev Team */
|
|
2
2
|
import { extractStyles, mergeStyleLayers } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
4
4
|
import { DisplayTransition } from "../../helpers/DisplayTransition/DisplayTransition.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.194.1 | Cube Dev Team */
|
|
2
2
|
import { useSlotProps } from "../../utils/react/Slots.js";
|
|
3
3
|
import { useCombinedRefs } from "../../utils/react/useCombinedRefs.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.194.1 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../utils/styles.js";
|
|
3
3
|
import { useSlotProps } from "../../utils/react/Slots.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.194.1 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../utils/styles.js";
|
|
3
3
|
import { useSlotProps } from "../../utils/react/Slots.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.194.1 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { _Text } from "../Text.js";
|
|
4
|
+
import { useI18n } from "../../../i18n/useI18n.js";
|
|
4
5
|
import { useKeySymbols } from "../../../utils/react/useKeySymbols.js";
|
|
5
6
|
import { Space } from "../../layout/Space.js";
|
|
6
7
|
import { c } from "react/compiler-runtime";
|
|
@@ -12,7 +13,6 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
12
13
|
const StyledHotKeys = tasty(Space, {
|
|
13
14
|
qa: "HotKeys",
|
|
14
15
|
role: "group",
|
|
15
|
-
"aria-label": "Keyboard shortcuts",
|
|
16
16
|
styles: {
|
|
17
17
|
display: "inline-flex",
|
|
18
18
|
flow: "row",
|
|
@@ -52,8 +52,9 @@ const KeyElement = tasty({
|
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
function HotKeys(props, ref) {
|
|
55
|
-
const $ = c(
|
|
55
|
+
const $ = c(18);
|
|
56
56
|
const { children, type, ...otherProps } = props;
|
|
57
|
+
const { t } = useI18n();
|
|
57
58
|
let t0;
|
|
58
59
|
if ($[0] !== children) {
|
|
59
60
|
t0 = Children.toArray(children).join("");
|
|
@@ -64,57 +65,67 @@ function HotKeys(props, ref) {
|
|
|
64
65
|
const styles = extractStyles(otherProps, CONTAINER_STYLES);
|
|
65
66
|
const T0 = StyledHotKeys;
|
|
66
67
|
const t1 = "HotKeys";
|
|
67
|
-
|
|
68
|
+
let t2;
|
|
69
|
+
if ($[2] !== t) {
|
|
70
|
+
t2 = t("hotKeys.ariaLabel", "Keyboard shortcuts");
|
|
71
|
+
$[2] = t;
|
|
72
|
+
$[3] = t2;
|
|
73
|
+
} else t2 = $[3];
|
|
74
|
+
const t3 = filterBaseProps(otherProps, {
|
|
68
75
|
eventProps: true,
|
|
69
76
|
labelable: true
|
|
70
77
|
});
|
|
71
|
-
let
|
|
72
|
-
if ($[
|
|
73
|
-
let
|
|
74
|
-
if ($[
|
|
75
|
-
|
|
78
|
+
let t4;
|
|
79
|
+
if ($[4] !== parsedKeys || $[5] !== t || $[6] !== type) {
|
|
80
|
+
let t5;
|
|
81
|
+
if ($[8] !== t || $[9] !== type) {
|
|
82
|
+
t5 = (keyGroup, groupIndex) => /* @__PURE__ */ jsxs(Fragment, { children: [groupIndex > 0 && /* @__PURE__ */ jsx(_Text, {
|
|
76
83
|
color: "#dark-03",
|
|
77
84
|
role: "separator",
|
|
78
85
|
"aria-hidden": "true",
|
|
79
|
-
children: "or"
|
|
86
|
+
children: t("hotKeys.or", "or")
|
|
80
87
|
}), /* @__PURE__ */ jsx(Space, {
|
|
81
88
|
flow: "row",
|
|
82
89
|
gap: "0.25x",
|
|
83
90
|
role: "group",
|
|
84
|
-
"aria-label":
|
|
91
|
+
"aria-label": t("hotKeys.combination", "Key combination {{index}}", { index: groupIndex + 1 }),
|
|
85
92
|
children: keyGroup.map((key, keyIndex) => /* @__PURE__ */ jsx(KeyElement, {
|
|
86
93
|
"data-type": type,
|
|
87
94
|
as: "kbd",
|
|
88
95
|
role: "text",
|
|
89
|
-
"aria-label":
|
|
96
|
+
"aria-label": t("hotKeys.key", "Key {{key}}", { key }),
|
|
90
97
|
children: key
|
|
91
98
|
}, keyIndex))
|
|
92
99
|
})] }, groupIndex);
|
|
93
|
-
$[
|
|
94
|
-
$[
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
100
|
+
$[8] = t;
|
|
101
|
+
$[9] = type;
|
|
102
|
+
$[10] = t5;
|
|
103
|
+
} else t5 = $[10];
|
|
104
|
+
t4 = parsedKeys.map(t5);
|
|
105
|
+
$[4] = parsedKeys;
|
|
106
|
+
$[5] = t;
|
|
107
|
+
$[6] = type;
|
|
108
|
+
$[7] = t4;
|
|
109
|
+
} else t4 = $[7];
|
|
110
|
+
let t5;
|
|
111
|
+
if ($[11] !== T0 || $[12] !== ref || $[13] !== styles || $[14] !== t2 || $[15] !== t3 || $[16] !== t4) {
|
|
112
|
+
t5 = /* @__PURE__ */ jsx(T0, {
|
|
104
113
|
qa: t1,
|
|
105
|
-
|
|
114
|
+
"aria-label": t2,
|
|
115
|
+
...t3,
|
|
106
116
|
ref,
|
|
107
117
|
styles,
|
|
108
|
-
children:
|
|
118
|
+
children: t4
|
|
109
119
|
});
|
|
110
|
-
$[
|
|
111
|
-
$[
|
|
112
|
-
$[
|
|
113
|
-
$[
|
|
114
|
-
$[
|
|
115
|
-
$[
|
|
116
|
-
|
|
117
|
-
|
|
120
|
+
$[11] = T0;
|
|
121
|
+
$[12] = ref;
|
|
122
|
+
$[13] = styles;
|
|
123
|
+
$[14] = t2;
|
|
124
|
+
$[15] = t3;
|
|
125
|
+
$[16] = t4;
|
|
126
|
+
$[17] = t5;
|
|
127
|
+
} else t5 = $[17];
|
|
128
|
+
return t5;
|
|
118
129
|
}
|
|
119
130
|
const _HotKeys = forwardRef(HotKeys);
|
|
120
131
|
_HotKeys.displayName = "HotKeys";
|