@cube-dev/ui-kit 0.0.0-canary-617ee03 → 0.0.0-canary-b0bae4c
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/_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.d.ts +1 -1
- 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 +1 -1
- package/dist/components/actions/Button/Button.js +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.d.ts +7 -7
- package/dist/components/actions/CommandMenu/CommandMenu.js +212 -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 +26 -22
- 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 +87 -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 +1 -0
- package/dist/components/actions/Menu/MenuItem.js +405 -116
- package/dist/components/actions/Menu/MenuItem.js.map +1 -1
- package/dist/components/actions/Menu/MenuSection.d.ts +2 -0
- 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.d.ts +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 +1 -1
- package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
- package/dist/components/content/Alert/Alert.js +1 -1
- package/dist/components/content/Alert/use-alert.js +1 -1
- package/dist/components/content/Avatar/Avatar.js +1 -1
- package/dist/components/content/Badge/Badge.js +1 -1
- package/dist/components/content/Card/Card.js +1 -1
- package/dist/components/content/Content.js +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.d.ts +509 -509
- package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +1 -1
- package/dist/components/content/Divider.js +1 -1
- package/dist/components/content/Footer.js +1 -1
- package/dist/components/content/Header.js +1 -1
- package/dist/components/content/HotKeys/HotKeys.js +1 -1
- package/dist/components/content/InfoBadge/InfoBadge.js +1 -1
- package/dist/components/content/InlineInput/InlineInput.js +1 -1
- package/dist/components/content/Item/Item.d.ts +7 -7
- package/dist/components/content/Item/Item.js +177 -99
- package/dist/components/content/Item/Item.js.map +1 -1
- package/dist/components/content/Item/ItemWithNativeLinks.js +394 -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 +1 -1
- package/dist/components/content/Layout/LayoutPanel.js +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +1 -1
- package/dist/components/content/Layout/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 +1 -1
- package/dist/components/content/PrismCode/PrismCode.js +1 -1
- package/dist/components/content/PrismCode/prismSetup.js +1 -1
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
- package/dist/components/content/Result/Result.js +1 -1
- package/dist/components/content/Skeleton/Skeleton.js +1 -1
- package/dist/components/content/Tag/Tag.js +1 -1
- package/dist/components/content/Text.d.ts +1351 -1351
- package/dist/components/content/Text.js +1 -1
- package/dist/components/content/TextItem/TextItem.js +1 -1
- package/dist/components/content/Title.js +1 -1
- package/dist/components/content/Tree/Tree.js +1 -1
- package/dist/components/content/Tree/TreeNode.js +1 -1
- package/dist/components/content/Tree/styled.js +1 -1
- package/dist/components/content/Tree/tree-index.js +1 -1
- package/dist/components/content/Tree/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 +1 -1
- package/dist/components/data/DataTable/DataTable.js +1 -1
- package/dist/components/data/ItemTable/ItemTable.js +1 -1
- package/dist/components/data/ItemTable/ItemTableBulkBar.js +1 -1
- package/dist/components/data/ItemTable/ItemTableDragPreview.js +1 -1
- package/dist/components/data/ItemTable/ItemTableFooter.js +1 -1
- package/dist/components/data/ItemTable/ItemTableToolbar.js +1 -1
- package/dist/components/data/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 +18 -35
- 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 +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 -14
- 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/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-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 -30
- 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 +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.js +1 -1
- package/dist/components/fields/Checkbox/context.js +1 -1
- package/dist/components/fields/ColorInput/ColorInput.js +1 -1
- package/dist/components/fields/ColorPicker/ColorPicker.js +1 -1
- package/dist/components/fields/ColorSwatch/ColorSwatch.js +1 -1
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +1 -1
- package/dist/components/fields/ComboBox/ComboBox.js +1 -1
- package/dist/components/fields/CommandTextArea/CommandTextArea.js +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 +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +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 +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.d.ts +2 -2
- package/dist/components/fields/FilterPicker/FilterPicker.js +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 +5 -5
- 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 +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 +2 -2
- package/dist/components/fields/Picker/Picker.js +1 -1
- package/dist/components/fields/RadioGroup/Radio.d.ts +128 -128
- package/dist/components/fields/RadioGroup/Radio.js +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/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 +6 -6
- 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 +1 -1
- package/dist/components/fields/TriggerActions.js +1 -1
- package/dist/components/fields/color/ColorPanel.js +1 -1
- package/dist/components/fields/color/channels.js +1 -1
- package/dist/components/fields/color/color.js +1 -1
- package/dist/components/fields/color/context.js +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.js +1 -1
- package/dist/components/form/Form/Field.js +1 -1
- package/dist/components/form/Form/Form.js +1 -1
- package/dist/components/form/Form/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 +1 -1
- package/dist/components/form/Form/use-field/use-field.js +1 -1
- package/dist/components/form/Form/use-form.js +1 -1
- package/dist/components/form/Form/validation.js +1 -1
- package/dist/components/form/Label.js +1 -1
- package/dist/components/form/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 +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 +1 -1
- package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
- package/dist/components/overlays/Modal/Overlay.js +1 -1
- package/dist/components/overlays/Modal/Popover.js +1 -1
- package/dist/components/overlays/Modal/Tray.js +1 -1
- package/dist/components/overlays/Modal/Underlay.js +1 -1
- package/dist/components/overlays/Notifications/Notification.js +1 -1
- package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
- package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +1 -1
- package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
- package/dist/components/overlays/Notifications/index.js +1 -1
- package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
- package/dist/components/overlays/Notifications/use-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +1 -1
- package/dist/components/overlays/Toast/index.js +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useToast.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
- package/dist/components/overlays/Tooltip/context.js +1 -1
- package/dist/components/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 +1 -1
- package/dist/i18n/createFormatter.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/instance.js +1 -1
- package/dist/i18n/locales/de-DE/uikit.js +1 -1
- package/dist/i18n/locales/en-US/uikit.js +1 -1
- package/dist/i18n/locales/es-ES/uikit.js +1 -1
- package/dist/i18n/locales/es-MX/uikit.js +1 -1
- package/dist/i18n/locales/fr-FR/uikit.js +1 -1
- package/dist/i18n/locales/it-IT/uikit.js +1 -1
- package/dist/i18n/locales/ja-JP/uikit.js +1 -1
- package/dist/i18n/locales/nb-NO/uikit.js +1 -1
- package/dist/i18n/locales/pt-BR/uikit.js +1 -1
- package/dist/i18n/locales/pt-PT/uikit.js +1 -1
- package/dist/i18n/locales/sv-SE/uikit.js +1 -1
- package/dist/i18n/locales/vi-VN/uikit.js +1 -1
- package/dist/i18n/locales.js +1 -1
- package/dist/i18n/useFormatter.js +1 -1
- package/dist/i18n/useI18n.js +1 -1
- package/dist/icons/AdjustmentsHorizontalIcon.js +1 -1
- package/dist/icons/AdjustmentsIcon.js +1 -1
- package/dist/icons/AiIcon.js +1 -1
- package/dist/icons/AreaChartIcon.js +1 -1
- package/dist/icons/ArrowNarrowDownIcon.js +1 -1
- package/dist/icons/ArrowNarrowUpIcon.js +1 -1
- package/dist/icons/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 +7 -6
- package/dist/index.js +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 +1 -1
- package/dist/utils/react/interactions.js +1 -1
- package/dist/utils/react/isTextOnly.js +1 -1
- package/dist/utils/react/mapProps.js +1 -1
- package/dist/utils/react/mergeProps.js +1 -1
- package/dist/utils/react/nullableValue.js +1 -1
- package/dist/utils/react/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/data/DataTable.md +0 -3
- package/docs/components/data/ItemTable.md +1 -9
- package/package.json +1 -1
- package/dist/components/data/TableBase/use-column-window.js +0 -157
- package/dist/components/data/TableBase/use-column-window.js.map +0 -1
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
|
+
import { subscribeScheme } from "../../../utils/react/useScheme.js";
|
|
3
|
+
import { ItemWithNativeSlots } from "./Item.js";
|
|
4
|
+
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { useEffect, useEffectEvent, useId, useLayoutEffect, useRef, useState } from "react";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { flushSync } from "react-dom";
|
|
8
|
+
|
|
9
|
+
//#region src/components/content/Item/ItemWithNativeLinks.tsx
|
|
10
|
+
function isNativeSlotVisible(element) {
|
|
11
|
+
if (element.closest("[data-react-aria-prevent-focus]")) return false;
|
|
12
|
+
if (typeof element.checkVisibility === "function") return element.checkVisibility({ visibilityProperty: true });
|
|
13
|
+
const view = element.ownerDocument.defaultView;
|
|
14
|
+
if (!view) return false;
|
|
15
|
+
const visibility = view.getComputedStyle(element).visibility;
|
|
16
|
+
if (visibility === "hidden" || visibility === "collapse") return false;
|
|
17
|
+
let child = element;
|
|
18
|
+
for (let node = element; node; node = node.parentElement) {
|
|
19
|
+
if (node.hasAttribute("hidden") || view.getComputedStyle(node).display === "none") return false;
|
|
20
|
+
if (node.localName === "details" && child.localName !== "summary" && !node.hasAttribute("open")) return false;
|
|
21
|
+
child = node;
|
|
22
|
+
}
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
function useNativeMenuItemTarget(enabled, appearance, shouldFocus, onElement) {
|
|
26
|
+
const $ = c(31);
|
|
27
|
+
let t0;
|
|
28
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
29
|
+
t0 = {
|
|
30
|
+
label: null,
|
|
31
|
+
description: null,
|
|
32
|
+
icon: null
|
|
33
|
+
};
|
|
34
|
+
$[0] = t0;
|
|
35
|
+
} else t0 = $[0];
|
|
36
|
+
const nodes = useRef(t0);
|
|
37
|
+
const active = useRef(null);
|
|
38
|
+
const restoreFocus = useRef(false);
|
|
39
|
+
const focusIntent = useRef(false);
|
|
40
|
+
const repoint = useRef(null);
|
|
41
|
+
const nameId = useId();
|
|
42
|
+
const [slot, setSlot] = useState("label");
|
|
43
|
+
let t1;
|
|
44
|
+
if ($[1] !== enabled || $[2] !== shouldFocus || $[3] !== slot) {
|
|
45
|
+
t1 = (t2) => {
|
|
46
|
+
const synchronous = t2 === void 0 ? false : t2;
|
|
47
|
+
if (!enabled) return;
|
|
48
|
+
const previous = active.current;
|
|
49
|
+
const document = previous?.ownerDocument ?? nodes.current.label?.ownerDocument;
|
|
50
|
+
const hadFocus = previous === document?.activeElement || focusIntent.current && document?.activeElement === document?.body;
|
|
51
|
+
const nextSlot = [
|
|
52
|
+
"label",
|
|
53
|
+
"description",
|
|
54
|
+
"icon"
|
|
55
|
+
].find((name) => {
|
|
56
|
+
const element = nodes.current[name];
|
|
57
|
+
return element && isNativeSlotVisible(element);
|
|
58
|
+
}) ?? slot;
|
|
59
|
+
if (slot === nextSlot) return;
|
|
60
|
+
if (hadFocus || shouldFocus) restoreFocus.current = true;
|
|
61
|
+
const apply = () => setSlot(nextSlot);
|
|
62
|
+
if (synchronous) flushSync(apply);
|
|
63
|
+
else apply();
|
|
64
|
+
};
|
|
65
|
+
$[1] = enabled;
|
|
66
|
+
$[2] = shouldFocus;
|
|
67
|
+
$[3] = slot;
|
|
68
|
+
$[4] = t1;
|
|
69
|
+
} else t1 = $[4];
|
|
70
|
+
const refresh = useEffectEvent(t1);
|
|
71
|
+
let t2;
|
|
72
|
+
if ($[5] !== enabled || $[6] !== refresh) {
|
|
73
|
+
t2 = () => {
|
|
74
|
+
if (!enabled) {
|
|
75
|
+
restoreFocus.current = false;
|
|
76
|
+
focusIntent.current = false;
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
refresh();
|
|
80
|
+
};
|
|
81
|
+
$[5] = enabled;
|
|
82
|
+
$[6] = refresh;
|
|
83
|
+
$[7] = t2;
|
|
84
|
+
} else t2 = $[7];
|
|
85
|
+
let t3;
|
|
86
|
+
if ($[8] !== appearance || $[9] !== enabled || $[10] !== shouldFocus || $[11] !== slot) {
|
|
87
|
+
t3 = [
|
|
88
|
+
enabled,
|
|
89
|
+
appearance,
|
|
90
|
+
slot,
|
|
91
|
+
shouldFocus
|
|
92
|
+
];
|
|
93
|
+
$[8] = appearance;
|
|
94
|
+
$[9] = enabled;
|
|
95
|
+
$[10] = shouldFocus;
|
|
96
|
+
$[11] = slot;
|
|
97
|
+
$[12] = t3;
|
|
98
|
+
} else t3 = $[12];
|
|
99
|
+
useLayoutEffect(t2, t3);
|
|
100
|
+
let t4;
|
|
101
|
+
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
102
|
+
t4 = () => {
|
|
103
|
+
repoint.current?.();
|
|
104
|
+
};
|
|
105
|
+
$[13] = t4;
|
|
106
|
+
} else t4 = $[13];
|
|
107
|
+
useLayoutEffect(t4);
|
|
108
|
+
let t5;
|
|
109
|
+
if ($[14] !== enabled) {
|
|
110
|
+
t5 = () => {
|
|
111
|
+
const element_0 = active.current;
|
|
112
|
+
if (!enabled || !element_0 || !restoreFocus.current) return;
|
|
113
|
+
const document_0 = element_0.ownerDocument;
|
|
114
|
+
const menu = element_0.closest("[role=\"menu\"]");
|
|
115
|
+
if (document_0.activeElement !== document_0.body && !menu?.contains(document_0.activeElement)) {
|
|
116
|
+
restoreFocus.current = false;
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
if (!isNativeSlotVisible(element_0)) return;
|
|
120
|
+
restoreFocus.current = false;
|
|
121
|
+
if (element_0 !== document_0.activeElement) element_0.focus({ preventScroll: true });
|
|
122
|
+
};
|
|
123
|
+
$[14] = enabled;
|
|
124
|
+
$[15] = t5;
|
|
125
|
+
} else t5 = $[15];
|
|
126
|
+
useEffect(t5);
|
|
127
|
+
let t6;
|
|
128
|
+
if ($[16] !== enabled || $[17] !== refresh) {
|
|
129
|
+
t6 = () => {
|
|
130
|
+
if (!enabled) return;
|
|
131
|
+
const document_1 = nodes.current.label?.ownerDocument ?? nodes.current.description?.ownerDocument ?? nodes.current.icon?.ownerDocument;
|
|
132
|
+
const view = document_1?.defaultView;
|
|
133
|
+
if (!document_1 || !view) return;
|
|
134
|
+
let alive = true;
|
|
135
|
+
let queued = false;
|
|
136
|
+
let watched = [];
|
|
137
|
+
let resizeTargets = [];
|
|
138
|
+
let row = null;
|
|
139
|
+
let rescueArmed = false;
|
|
140
|
+
const queue = () => {
|
|
141
|
+
if (queued || !alive) return;
|
|
142
|
+
queued = true;
|
|
143
|
+
queueMicrotask(() => {
|
|
144
|
+
queued = false;
|
|
145
|
+
if (!alive) return;
|
|
146
|
+
refresh(true);
|
|
147
|
+
observeNodes();
|
|
148
|
+
});
|
|
149
|
+
};
|
|
150
|
+
const onOutsidePointerDown = (event) => {
|
|
151
|
+
if (!row?.contains(event.target)) {
|
|
152
|
+
focusIntent.current = false;
|
|
153
|
+
restoreFocus.current = false;
|
|
154
|
+
setRescue(false);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
const onRescueKeyDown = (event_0) => {
|
|
158
|
+
if (event_0.key === "Tab") {
|
|
159
|
+
focusIntent.current = false;
|
|
160
|
+
restoreFocus.current = false;
|
|
161
|
+
setRescue(false);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
const setRescue = (armed) => {
|
|
165
|
+
if (armed === rescueArmed) return;
|
|
166
|
+
rescueArmed = armed;
|
|
167
|
+
if (armed) {
|
|
168
|
+
document_1.addEventListener("pointerdown", onOutsidePointerDown, true);
|
|
169
|
+
document_1.addEventListener("keydown", onRescueKeyDown, true);
|
|
170
|
+
} else {
|
|
171
|
+
document_1.removeEventListener("pointerdown", onOutsidePointerDown, true);
|
|
172
|
+
document_1.removeEventListener("keydown", onRescueKeyDown, true);
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
const onFocusIn = (event_1) => {
|
|
176
|
+
focusIntent.current = event_1.target === active.current && document_1.activeElement === active.current;
|
|
177
|
+
setRescue(focusIntent.current);
|
|
178
|
+
queue();
|
|
179
|
+
};
|
|
180
|
+
const onFocusOut = (event_2) => {
|
|
181
|
+
if (event_2.target === active.current && event_2.relatedTarget) {
|
|
182
|
+
focusIntent.current = false;
|
|
183
|
+
restoreFocus.current = false;
|
|
184
|
+
setRescue(false);
|
|
185
|
+
}
|
|
186
|
+
queue();
|
|
187
|
+
};
|
|
188
|
+
const setRow = (next) => {
|
|
189
|
+
if (next === row) return;
|
|
190
|
+
row?.removeEventListener("focusin", onFocusIn, true);
|
|
191
|
+
row?.removeEventListener("focusout", onFocusOut, true);
|
|
192
|
+
for (const event_3 of [
|
|
193
|
+
"pointerover",
|
|
194
|
+
"pointerout",
|
|
195
|
+
"transitionend",
|
|
196
|
+
"animationend"
|
|
197
|
+
]) row?.removeEventListener(event_3, queue, true);
|
|
198
|
+
row = next;
|
|
199
|
+
row?.addEventListener("focusin", onFocusIn, true);
|
|
200
|
+
row?.addEventListener("focusout", onFocusOut, true);
|
|
201
|
+
for (const event_4 of [
|
|
202
|
+
"pointerover",
|
|
203
|
+
"pointerout",
|
|
204
|
+
"transitionend",
|
|
205
|
+
"animationend"
|
|
206
|
+
]) row?.addEventListener(event_4, queue, true);
|
|
207
|
+
};
|
|
208
|
+
const resize = typeof view.ResizeObserver === "function" ? new view.ResizeObserver(queue) : void 0;
|
|
209
|
+
const mutation = new view.MutationObserver(queue);
|
|
210
|
+
const observeNodes = () => {
|
|
211
|
+
const slots = Object.values(nodes.current).filter(_temp);
|
|
212
|
+
const elements = [...slots];
|
|
213
|
+
let ancestor = slots[0]?.parentElement;
|
|
214
|
+
while (ancestor) {
|
|
215
|
+
elements.push(ancestor);
|
|
216
|
+
ancestor = ancestor.parentElement;
|
|
217
|
+
}
|
|
218
|
+
const nextResizeTargets = elements.filter((node_0) => slots.includes(node_0) || view.getComputedStyle(node_0).containerType !== "normal");
|
|
219
|
+
setRow(slots[0]?.closest("[data-menuitem]") ?? null);
|
|
220
|
+
if (elements.length === watched.length && elements.every((node_2, index_0) => node_2 === watched[index_0]) && nextResizeTargets.length === resizeTargets.length && nextResizeTargets.every((node_1, index) => node_1 === resizeTargets[index])) return;
|
|
221
|
+
watched = elements;
|
|
222
|
+
resizeTargets = nextResizeTargets;
|
|
223
|
+
resize?.disconnect();
|
|
224
|
+
mutation.disconnect();
|
|
225
|
+
for (const node_3 of elements) {
|
|
226
|
+
if (resizeTargets.includes(node_3)) resize?.observe(node_3);
|
|
227
|
+
mutation.observe(node_3, {
|
|
228
|
+
attributes: true,
|
|
229
|
+
childList: node_3 === row
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
observeNodes();
|
|
234
|
+
repoint.current = observeNodes;
|
|
235
|
+
const stopScheme = subscribeScheme(queue);
|
|
236
|
+
view.addEventListener("resize", queue);
|
|
237
|
+
queue();
|
|
238
|
+
return () => {
|
|
239
|
+
alive = false;
|
|
240
|
+
repoint.current = null;
|
|
241
|
+
setRescue(false);
|
|
242
|
+
setRow(null);
|
|
243
|
+
stopScheme();
|
|
244
|
+
resize?.disconnect();
|
|
245
|
+
mutation.disconnect();
|
|
246
|
+
view.removeEventListener("resize", queue);
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
$[16] = enabled;
|
|
250
|
+
$[17] = refresh;
|
|
251
|
+
$[18] = t6;
|
|
252
|
+
} else t6 = $[18];
|
|
253
|
+
let t7;
|
|
254
|
+
if ($[19] !== enabled) {
|
|
255
|
+
t7 = [enabled];
|
|
256
|
+
$[19] = enabled;
|
|
257
|
+
$[20] = t7;
|
|
258
|
+
} else t7 = $[20];
|
|
259
|
+
useEffect(t6, t7);
|
|
260
|
+
let t8;
|
|
261
|
+
if ($[21] !== enabled || $[22] !== onElement || $[23] !== slot) {
|
|
262
|
+
t8 = (name_0, element_1) => {
|
|
263
|
+
nodes.current[name_0] = element_1;
|
|
264
|
+
if (slot !== name_0) return;
|
|
265
|
+
if (enabled && !element_1 && active.current === active.current?.ownerDocument.activeElement) restoreFocus.current = true;
|
|
266
|
+
if (!enabled) restoreFocus.current = false;
|
|
267
|
+
active.current = element_1;
|
|
268
|
+
onElement?.(element_1);
|
|
269
|
+
};
|
|
270
|
+
$[21] = enabled;
|
|
271
|
+
$[22] = onElement;
|
|
272
|
+
$[23] = slot;
|
|
273
|
+
$[24] = t8;
|
|
274
|
+
} else t8 = $[24];
|
|
275
|
+
const setNode = t8;
|
|
276
|
+
let t9;
|
|
277
|
+
if ($[25] !== setNode) {
|
|
278
|
+
t9 = {
|
|
279
|
+
label: (element_2) => setNode("label", element_2),
|
|
280
|
+
description: (element_3) => setNode("description", element_3),
|
|
281
|
+
icon: (element_4) => setNode("icon", element_4)
|
|
282
|
+
};
|
|
283
|
+
$[25] = setNode;
|
|
284
|
+
$[26] = t9;
|
|
285
|
+
} else t9 = $[26];
|
|
286
|
+
let t10;
|
|
287
|
+
if ($[27] !== nameId || $[28] !== slot || $[29] !== t9) {
|
|
288
|
+
t10 = {
|
|
289
|
+
slot,
|
|
290
|
+
nameId,
|
|
291
|
+
refs: t9
|
|
292
|
+
};
|
|
293
|
+
$[27] = nameId;
|
|
294
|
+
$[28] = slot;
|
|
295
|
+
$[29] = t9;
|
|
296
|
+
$[30] = t10;
|
|
297
|
+
} else t10 = $[30];
|
|
298
|
+
return t10;
|
|
299
|
+
}
|
|
300
|
+
function _temp(node) {
|
|
301
|
+
return !!node;
|
|
302
|
+
}
|
|
303
|
+
function ItemWithNativeLinks(props) {
|
|
304
|
+
const $ = c(29);
|
|
305
|
+
let itemProps;
|
|
306
|
+
let nativeMenuItemName;
|
|
307
|
+
let nativeMenuItemShouldFocus;
|
|
308
|
+
let ref;
|
|
309
|
+
if ($[0] !== props) {
|
|
310
|
+
({nativeMenuItemName, nativeMenuItemShouldFocus, ref, ...itemProps} = props);
|
|
311
|
+
$[0] = props;
|
|
312
|
+
$[1] = itemProps;
|
|
313
|
+
$[2] = nativeMenuItemName;
|
|
314
|
+
$[3] = nativeMenuItemShouldFocus;
|
|
315
|
+
$[4] = ref;
|
|
316
|
+
} else {
|
|
317
|
+
itemProps = $[1];
|
|
318
|
+
nativeMenuItemName = $[2];
|
|
319
|
+
nativeMenuItemShouldFocus = $[3];
|
|
320
|
+
ref = $[4];
|
|
321
|
+
}
|
|
322
|
+
let t0;
|
|
323
|
+
if ($[5] !== props.children || $[6] !== props.description || $[7] !== props.mods || $[8] !== props.styles || $[9] !== props.tokens || $[10] !== props.tooltip) {
|
|
324
|
+
t0 = {
|
|
325
|
+
styles: props.styles,
|
|
326
|
+
mods: props.mods,
|
|
327
|
+
tokens: props.tokens,
|
|
328
|
+
tooltip: props.tooltip,
|
|
329
|
+
children: props.children,
|
|
330
|
+
description: props.description
|
|
331
|
+
};
|
|
332
|
+
$[5] = props.children;
|
|
333
|
+
$[6] = props.description;
|
|
334
|
+
$[7] = props.mods;
|
|
335
|
+
$[8] = props.styles;
|
|
336
|
+
$[9] = props.tokens;
|
|
337
|
+
$[10] = props.tooltip;
|
|
338
|
+
$[11] = t0;
|
|
339
|
+
} else t0 = $[11];
|
|
340
|
+
const target = useNativeMenuItemTarget(!!props.nativeMenuItemProps, t0, !!nativeMenuItemShouldFocus, props.onNativeLinkElement);
|
|
341
|
+
const isHeading = props.type === "header" || props.type === "card";
|
|
342
|
+
const labelId = target.slot === "label" && !isHeading ? props.nativeMenuItemProps?.id ?? props.labelProps?.id ?? target.nameId : props.labelProps?.id ?? target.nameId;
|
|
343
|
+
const semanticId = props.nativeMenuItemProps?.id;
|
|
344
|
+
let primaryProps = props.nativeMenuItemProps;
|
|
345
|
+
if (primaryProps && target.slot !== "label") {
|
|
346
|
+
const t1 = nativeMenuItemName?.labelledBy != null ? nativeMenuItemName.labelledBy : nativeMenuItemName?.label != null ? void 0 : labelId;
|
|
347
|
+
let t2;
|
|
348
|
+
if ($[12] !== nativeMenuItemName?.descriptionFromContent || $[13] !== primaryProps || $[14] !== props.descriptionProps?.id || $[15] !== semanticId || $[16] !== target.slot) {
|
|
349
|
+
t2 = target.slot === "description" && nativeMenuItemName?.descriptionFromContent ? primaryProps["aria-describedby"]?.split(" ").map((id) => id === props.descriptionProps?.id && semanticId ? semanticId : id).join(" ") : primaryProps["aria-describedby"];
|
|
350
|
+
$[12] = nativeMenuItemName?.descriptionFromContent;
|
|
351
|
+
$[13] = primaryProps;
|
|
352
|
+
$[14] = props.descriptionProps?.id;
|
|
353
|
+
$[15] = semanticId;
|
|
354
|
+
$[16] = target.slot;
|
|
355
|
+
$[17] = t2;
|
|
356
|
+
} else t2 = $[17];
|
|
357
|
+
let t3;
|
|
358
|
+
if ($[18] !== primaryProps || $[19] !== t1 || $[20] !== t2) {
|
|
359
|
+
t3 = {
|
|
360
|
+
...primaryProps,
|
|
361
|
+
"aria-labelledby": t1,
|
|
362
|
+
"aria-describedby": t2
|
|
363
|
+
};
|
|
364
|
+
$[18] = primaryProps;
|
|
365
|
+
$[19] = t1;
|
|
366
|
+
$[20] = t2;
|
|
367
|
+
$[21] = t3;
|
|
368
|
+
} else t3 = $[21];
|
|
369
|
+
primaryProps = t3;
|
|
370
|
+
}
|
|
371
|
+
let t1;
|
|
372
|
+
if ($[22] !== itemProps || $[23] !== labelId || $[24] !== primaryProps || $[25] !== ref || $[26] !== target.refs || $[27] !== target.slot) {
|
|
373
|
+
t1 = /* @__PURE__ */ jsx(ItemWithNativeSlots, {
|
|
374
|
+
...itemProps,
|
|
375
|
+
ref,
|
|
376
|
+
nativeMenuItemProps: primaryProps,
|
|
377
|
+
nativePrimarySlot: target.slot,
|
|
378
|
+
nativeLabelReferenceId: labelId,
|
|
379
|
+
nativeSlotRefs: target.refs
|
|
380
|
+
});
|
|
381
|
+
$[22] = itemProps;
|
|
382
|
+
$[23] = labelId;
|
|
383
|
+
$[24] = primaryProps;
|
|
384
|
+
$[25] = ref;
|
|
385
|
+
$[26] = target.refs;
|
|
386
|
+
$[27] = target.slot;
|
|
387
|
+
$[28] = t1;
|
|
388
|
+
} else t1 = $[28];
|
|
389
|
+
return t1;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
//#endregion
|
|
393
|
+
export { ItemWithNativeLinks };
|
|
394
|
+
//# sourceMappingURL=ItemWithNativeLinks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ItemWithNativeLinks.js","names":["Ref","useEffect","useEffectEvent","useId","useLayoutEffect","useRef","useState","flushSync","subscribeScheme","ItemWithNativeLinksProps","ItemWithNativeSlots","NativeMenuItemProps","ref","HTMLElement","nativeMenuItemShouldFocus","nativeMenuItemName","label","labelledBy","descriptionFromContent","NativeSlot","isNativeSlotVisible","element","HTMLAnchorElement","closest","checkVisibility","visibilityProperty","view","ownerDocument","defaultView","visibility","getComputedStyle","child","Element","node","parentElement","hasAttribute","display","localName","useNativeMenuItemTarget","enabled","appearance","shouldFocus","onElement","$","_c","t0","Symbol","for","description","icon","nodes","active","restoreFocus","focusIntent","repoint","nameId","slot","setSlot","t1","t2","synchronous","undefined","previous","current","document","hadFocus","activeElement","body","nextSlot","const","find","name","apply","refresh","t3","t4","t5","element_0","document_0","menu","contains","focus","preventScroll","t6","document_1","alive","queued","watched","resizeTargets","row","rescueArmed","queue","queueMicrotask","observeNodes","onOutsidePointerDown","event","target","globalThis","Node","setRescue","onRescueKeyDown","event_0","key","armed","addEventListener","removeEventListener","onFocusIn","event_1","onFocusOut","event_2","FocusEvent","relatedTarget","setRow","next","event_3","event_4","resize","ResizeObserver","mutation","MutationObserver","slots","Object","values","filter","_temp","elements","ancestor","push","nextResizeTargets","node_0","includes","containerType","length","every","node_2","index_0","index","node_1","disconnect","node_3","observe","attributes","childList","stopScheme","t7","t8","name_0","element_1","setNode","t9","element_2","element_3","element_4","t10","refs","ItemWithNativeLinks","props","itemProps","children","mods","styles","tokens","tooltip","nativeMenuItemProps","onNativeLinkElement","isHeading","type","labelId","id","labelProps","semanticId","primaryProps","descriptionProps","split","map","join"],"sources":["../../../../src/components/content/Item/ItemWithNativeLinks.tsx"],"sourcesContent":["import {\n Ref,\n useEffect,\n useEffectEvent,\n useId,\n useLayoutEffect,\n useRef,\n useState,\n} from 'react';\nimport { flushSync } from 'react-dom';\n\nimport { subscribeScheme } from '../../../utils/react/useScheme';\n\nimport { ItemWithNativeLinksProps, ItemWithNativeSlots } from './Item';\n\ninterface NativeMenuItemProps extends ItemWithNativeLinksProps {\n ref?: Ref<HTMLElement>;\n nativeMenuItemShouldFocus?: boolean;\n nativeMenuItemName?: {\n label?: string;\n labelledBy?: string;\n descriptionFromContent: boolean;\n };\n}\n\ntype NativeSlot = 'label' | 'description' | 'icon';\n\nfunction isNativeSlotVisible(element: HTMLAnchorElement) {\n if (element.closest('[data-react-aria-prevent-focus]')) return false;\n if (typeof element.checkVisibility === 'function') {\n return element.checkVisibility({ visibilityProperty: true });\n }\n const view = element.ownerDocument.defaultView;\n if (!view) return false;\n const visibility = view.getComputedStyle(element).visibility;\n if (visibility === 'hidden' || visibility === 'collapse') return false;\n let child: Element = element;\n for (let node: Element | null = element; node; node = node.parentElement) {\n if (\n node.hasAttribute('hidden') ||\n view.getComputedStyle(node).display === 'none'\n )\n return false;\n if (\n node.localName === 'details' &&\n child.localName !== 'summary' &&\n !node.hasAttribute('open')\n )\n return false;\n child = node;\n }\n return true;\n}\n\nfunction useNativeMenuItemTarget(\n enabled: boolean,\n appearance: unknown,\n shouldFocus: boolean,\n onElement: NativeMenuItemProps['onNativeLinkElement'],\n) {\n const nodes = useRef<Record<NativeSlot, HTMLAnchorElement | null>>({\n label: null,\n description: null,\n icon: null,\n });\n const active = useRef<HTMLAnchorElement>(null);\n const restoreFocus = useRef(false);\n const focusIntent = useRef(false);\n const repoint = useRef<(() => void) | null>(null);\n const nameId = useId();\n const [slot, setSlot] = useState<NativeSlot>('label');\n\n const refresh = useEffectEvent((synchronous = false) => {\n if (!enabled) return;\n const previous = active.current;\n const document =\n previous?.ownerDocument ?? nodes.current.label?.ownerDocument;\n const hadFocus =\n previous === document?.activeElement ||\n (focusIntent.current && document?.activeElement === document?.body);\n const nextSlot =\n (['label', 'description', 'icon'] as const).find((name) => {\n const element = nodes.current[name];\n return element && isNativeSlotVisible(element);\n }) ?? slot;\n if (slot === nextSlot) return;\n if (hadFocus || shouldFocus) restoreFocus.current = true;\n const apply = () => setSlot(nextSlot);\n if (synchronous) flushSync(apply);\n else apply();\n });\n\n useLayoutEffect(() => {\n if (!enabled) {\n restoreFocus.current = false;\n focusIntent.current = false;\n return;\n }\n refresh();\n }, [enabled, appearance, slot, shouldFocus]);\n\n useLayoutEffect(() => {\n repoint.current?.();\n });\n\n useEffect(() => {\n const element = active.current;\n if (!enabled || !element || !restoreFocus.current) return;\n const document = element.ownerDocument;\n const menu = element.closest('[role=\"menu\"]');\n if (\n document.activeElement !== document.body &&\n !menu?.contains(document.activeElement)\n ) {\n restoreFocus.current = false;\n return;\n }\n if (!isNativeSlotVisible(element)) return;\n restoreFocus.current = false;\n if (element !== document.activeElement)\n element.focus({ preventScroll: true });\n });\n\n useEffect(() => {\n if (!enabled) return;\n const document =\n nodes.current.label?.ownerDocument ??\n nodes.current.description?.ownerDocument ??\n nodes.current.icon?.ownerDocument;\n const view = document?.defaultView;\n if (!document || !view) return;\n let alive = true;\n let queued = false;\n let watched: Element[] = [];\n let resizeTargets: Element[] = [];\n let row: Element | null = null;\n let rescueArmed = false;\n const queue = () => {\n if (queued || !alive) return;\n queued = true;\n queueMicrotask(() => {\n queued = false;\n if (!alive) return;\n refresh(true);\n observeNodes();\n });\n };\n const onOutsidePointerDown = (event: globalThis.PointerEvent) => {\n if (!row?.contains(event.target as globalThis.Node)) {\n focusIntent.current = false;\n restoreFocus.current = false;\n setRescue(false);\n }\n };\n const onRescueKeyDown = (event: globalThis.KeyboardEvent) => {\n if (event.key === 'Tab') {\n focusIntent.current = false;\n restoreFocus.current = false;\n setRescue(false);\n }\n };\n const setRescue = (armed: boolean) => {\n if (armed === rescueArmed) return;\n rescueArmed = armed;\n if (armed) {\n document.addEventListener('pointerdown', onOutsidePointerDown, true);\n document.addEventListener('keydown', onRescueKeyDown, true);\n } else {\n document.removeEventListener('pointerdown', onOutsidePointerDown, true);\n document.removeEventListener('keydown', onRescueKeyDown, true);\n }\n };\n const onFocusIn = (event: Event) => {\n focusIntent.current =\n event.target === active.current &&\n document.activeElement === active.current;\n setRescue(focusIntent.current);\n queue();\n };\n const onFocusOut = (event: Event) => {\n if (\n event.target === active.current &&\n (event as FocusEvent).relatedTarget\n ) {\n focusIntent.current = false;\n restoreFocus.current = false;\n setRescue(false);\n }\n queue();\n };\n const setRow = (next: Element | null) => {\n if (next === row) return;\n row?.removeEventListener('focusin', onFocusIn, true);\n row?.removeEventListener('focusout', onFocusOut, true);\n for (const event of [\n 'pointerover',\n 'pointerout',\n 'transitionend',\n 'animationend',\n ])\n row?.removeEventListener(event, queue, true);\n row = next;\n row?.addEventListener('focusin', onFocusIn, true);\n row?.addEventListener('focusout', onFocusOut, true);\n for (const event of [\n 'pointerover',\n 'pointerout',\n 'transitionend',\n 'animationend',\n ])\n row?.addEventListener(event, queue, true);\n };\n const resize =\n typeof view.ResizeObserver === 'function'\n ? new view.ResizeObserver(queue)\n : undefined;\n const mutation = new view.MutationObserver(queue);\n const observeNodes = () => {\n const slots = Object.values(nodes.current).filter(\n (node): node is HTMLAnchorElement => !!node,\n );\n const elements: Element[] = [...slots];\n let ancestor = slots[0]?.parentElement;\n while (ancestor) {\n elements.push(ancestor);\n ancestor = ancestor.parentElement;\n }\n const nextResizeTargets = elements.filter(\n (node) =>\n slots.includes(node as HTMLAnchorElement) ||\n view.getComputedStyle(node).containerType !== 'normal',\n );\n setRow(slots[0]?.closest('[data-menuitem]') ?? null);\n if (\n elements.length === watched.length &&\n elements.every((node, index) => node === watched[index]) &&\n nextResizeTargets.length === resizeTargets.length &&\n nextResizeTargets.every((node, index) => node === resizeTargets[index])\n )\n return;\n watched = elements;\n resizeTargets = nextResizeTargets;\n resize?.disconnect();\n mutation.disconnect();\n for (const node of elements) {\n if (resizeTargets.includes(node)) resize?.observe(node);\n mutation.observe(node, { attributes: true, childList: node === row });\n }\n };\n observeNodes();\n repoint.current = observeNodes;\n const stopScheme = subscribeScheme(queue);\n view.addEventListener('resize', queue);\n queue();\n return () => {\n alive = false;\n repoint.current = null;\n setRescue(false);\n setRow(null);\n stopScheme();\n resize?.disconnect();\n mutation.disconnect();\n view.removeEventListener('resize', queue);\n };\n }, [enabled]);\n\n const setNode = (name: NativeSlot, element: HTMLAnchorElement | null) => {\n nodes.current[name] = element;\n if (slot !== name) return;\n if (\n enabled &&\n !element &&\n active.current === active.current?.ownerDocument.activeElement\n )\n restoreFocus.current = true;\n if (!enabled) restoreFocus.current = false;\n active.current = element;\n onElement?.(element);\n };\n return {\n slot,\n nameId,\n refs: {\n label: (element: HTMLAnchorElement | null) => setNode('label', element),\n description: (element: HTMLAnchorElement | null) =>\n setNode('description', element),\n icon: (element: HTMLAnchorElement | null) => setNode('icon', element),\n },\n };\n}\n\nexport function ItemWithNativeLinks(props: NativeMenuItemProps) {\n const { nativeMenuItemName, nativeMenuItemShouldFocus, ref, ...itemProps } =\n props;\n const target = useNativeMenuItemTarget(\n !!props.nativeMenuItemProps,\n {\n styles: props.styles,\n mods: props.mods,\n tokens: props.tokens,\n tooltip: props.tooltip,\n children: props.children,\n description: props.description,\n },\n !!nativeMenuItemShouldFocus,\n props.onNativeLinkElement,\n );\n const isHeading = props.type === 'header' || props.type === 'card';\n const labelId =\n target.slot === 'label' && !isHeading\n ? props.nativeMenuItemProps?.id ?? props.labelProps?.id ?? target.nameId\n : props.labelProps?.id ?? target.nameId;\n const semanticId = props.nativeMenuItemProps?.id;\n let primaryProps = props.nativeMenuItemProps;\n if (primaryProps && target.slot !== 'label') {\n primaryProps = {\n ...primaryProps,\n 'aria-labelledby':\n nativeMenuItemName?.labelledBy != null\n ? nativeMenuItemName.labelledBy\n : nativeMenuItemName?.label != null\n ? undefined\n : labelId,\n 'aria-describedby':\n target.slot === 'description' &&\n nativeMenuItemName?.descriptionFromContent\n ? primaryProps['aria-describedby']\n ?.split(' ')\n .map((id) =>\n id === props.descriptionProps?.id && semanticId\n ? semanticId\n : id,\n )\n .join(' ')\n : primaryProps['aria-describedby'],\n };\n }\n return (\n <ItemWithNativeSlots\n {...itemProps}\n ref={ref}\n nativeMenuItemProps={primaryProps}\n nativePrimarySlot={target.slot}\n nativeLabelReferenceId={labelId}\n nativeSlotRefs={target.refs}\n />\n );\n}\n"],"mappings":";;;;;;;;;AA2BA,SAASoB,oBAAoBC,SAA4B;AACvD,KAAIA,QAAQE,QAAQ,kCAAkC,CAAE,QAAO;AAC/D,KAAI,OAAOF,QAAQG,oBAAoB,WACrC,QAAOH,QAAQG,gBAAgB,EAAEC,oBAAoB,MAAM,CAAC;CAE9D,MAAMC,OAAOL,QAAQM,cAAcC;AACnC,KAAI,CAACF,KAAM,QAAO;CAClB,MAAMG,aAAaH,KAAKI,iBAAiBT,QAAQ,CAACQ;AAClD,KAAIA,eAAe,YAAYA,eAAe,WAAY,QAAO;CACjE,IAAIE,QAAiBV;AACrB,MAAK,IAAIY,OAAuBZ,SAASY,MAAMA,OAAOA,KAAKC,eAAe;AACxE,MACED,KAAKE,a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Af,EAAA,QAAAkH,aAAAlH,EAAA,QAAA4H,WAAA5H,EAAA,QAAAgI,gBAAAhI,EAAA,QAAA/B,OAAA+B,EAAA,QAAAqD,OAAA0D,QAAA/G,EAAA,QAAAqD,OAAAxC,MAAA;AAECE,OAAA,oBAAC;GAAmB,GACdmG;GACCjJ;GACgB+J,qBAAAA;GACF,mBAAA3E,OAAMxC;GACD+G,wBAAAA;GACR,gBAAAvE,OAAM0D;IACtB;AAAA/G,IAAA,MAAAkH;AAAAlH,IAAA,MAAA4H;AAAA5H,IAAA,MAAAgI;AAAAhI,IAAA,MAAA/B;AAAA+B,IAAA,MAAAqD,OAAA0D;AAAA/G,IAAA,MAAAqD,OAAAxC;AAAAb,IAAA,MAAAe;OAAAA,MAAAf,EAAA;AAAA,QAPFe"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { mergeProps } from "../../../utils/react/mergeProps.js";
|
|
3
3
|
import { TooltipProvider } from "../../overlays/Tooltip/TooltipProvider.js";
|
|
4
4
|
import { CURRENT_CLEAR_STYLES, CURRENT_OUTLINE_STYLES, CURRENT_PRIMARY_STYLES, DANGER_CLEAR_STYLES, DANGER_OUTLINE_STYLES, DANGER_PRIMARY_STYLES, DEFAULT_CLEAR_STYLES, DEFAULT_OUTLINE_STYLES, DEFAULT_PRIMARY_STYLES, ITEM_ACTION_BASE_STYLES, SPECIAL_CLEAR_STYLES, SPECIAL_OUTLINE_STYLES, SPECIAL_PRIMARY_STYLES, SUCCESS_CLEAR_STYLES, SUCCESS_OUTLINE_STYLES, SUCCESS_PRIMARY_STYLES } from "../../../data/item-themes.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import { CubeItemProps } from "../Item/Item.js";
|
|
3
2
|
import { CubeItemActionProps } from "../../actions/ItemAction/ItemAction.js";
|
|
4
3
|
import "../../actions/index.js";
|
|
4
|
+
import { CubeItemProps } from "../Item/Item.js";
|
|
5
5
|
import * as react from "react";
|
|
6
6
|
import { ReactNode } from "react";
|
|
7
7
|
import * as _react_types_shared0 from "@react-types/shared";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { ItemAction } from "../../actions/ItemAction/ItemAction.js";
|
|
3
3
|
import { _Item } from "../Item/Item.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { _Layout } from "./Layout.js";
|
|
3
3
|
import { _LayoutContent } from "./LayoutContent.js";
|
|
4
4
|
import { _LayoutBlock } from "./LayoutBlock.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { useCombinedRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
4
4
|
import { isDevEnv } from "../../../utils/is-dev-env.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { _LayoutContent } from "./LayoutContent.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { tasty } from "@tenphi/tasty";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { _LayoutContainer } from "./LayoutContainer.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { tasty } from "@tenphi/tasty";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { useCombinedRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
4
4
|
import { LayoutContextReset } from "./LayoutContext.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { useCombinedRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
4
4
|
import { LayoutContextReset } from "./LayoutContext.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { createContext, useContext, useRef, useState } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { _LayoutContent } from "./LayoutContent.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { tasty } from "@tenphi/tasty";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { _LayoutContent } from "./LayoutContent.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { tasty } from "@tenphi/tasty";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { _LayoutContent } from "./LayoutContent.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { tasty } from "@tenphi/tasty";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { useAutoTooltip } from "../use-auto-tooltip.js";
|
|
3
3
|
import { useI18n } from "../../../i18n/useI18n.js";
|
|
4
4
|
import { Button } from "../../actions/Button/Button.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | 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 { useCombinedRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | 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 { useCombinedRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { ItemAction } from "../../actions/ItemAction/ItemAction.js";
|
|
4
4
|
import { _Item } from "../Item/Item.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { LayoutPanelTransitionContext, useLayoutRefsContext } from "./LayoutContext.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { useContext, useLayoutEffect, useState } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { _LayoutContent } from "./LayoutContent.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { tasty } from "@tenphi/tasty";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { LayoutActionsContext, LayoutContextReset, LayoutPanelContext, LayoutRefsContext, LayoutStateContext, useLayoutActionsContext, useLayoutPanelContext, useLayoutRefsContext, useLayoutStateContext } from "./LayoutContext.js";
|
|
3
3
|
import { _Layout } from "./Layout.js";
|
|
4
4
|
import { _LayoutContent } from "./LayoutContent.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../utils/styles.js";
|
|
3
3
|
import { _Text } from "./Text.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { extractStyles, mergeStyleLayers } from "../../../utils/styles.js";
|
|
3
3
|
import { useI18n } from "../../../i18n/useI18n.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { RendererPrism, ensureYamlSqlExtensions } from "./prismSetup.js";
|
|
3
3
|
import { CONTAINER_STYLES, tasty } from "@tenphi/tasty";
|
|
4
4
|
import { forwardRef } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { Prism as RendererPrism } from "prism-react-renderer";
|
|
3
3
|
|
|
4
4
|
//#region src/components/content/PrismCode/prismSetup.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-b0bae4c | Cube Dev Team */
|
|
2
2
|
import { _PrismCode } from "../PrismCode/PrismCode.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|