@cube-dev/ui-kit 0.0.0-canary-9c8c08f → 0.0.0-canary-40476a4
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/components/Action/Action.js +1 -1
- package/dist/components/ActiveZone/ActiveZone.js +1 -1
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Alert/use-alert.js +1 -1
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/dist/components/AlertDialog/AlertDialogZone.js +1 -1
- package/dist/components/Avatar/Avatar.js +1 -1
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/Banner/Banner.js +1 -1
- package/dist/components/Block/Block.js +1 -1
- package/dist/components/Button/AutoCollapseObserver.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonSplit/ButtonSplit.js +1 -1
- package/dist/components/ButtonSplit/ButtonSplitContext.js +1 -1
- package/dist/components/Calendar/Calendar.js +1 -1
- package/dist/components/Calendar/CalendarCell.js +1 -1
- package/dist/components/Calendar/CalendarGrid.js +1 -1
- package/dist/components/Calendar/CalendarHeader.js +1 -1
- package/dist/components/Calendar/CalendarPanel.js +1 -1
- package/dist/components/Calendar/PeriodCalendar.js +1 -1
- package/dist/components/Calendar/PeriodGrid.js +1 -1
- package/dist/components/Calendar/RangeCalendar.js +1 -1
- package/dist/components/Calendar/styled.js +1 -1
- package/dist/components/Card/Card.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/CheckboxGroup.js +1 -1
- package/dist/components/Checkbox/CheckboxGroupContext.js +1 -1
- package/dist/components/CollectionItem/CollectionItem.js +1 -1
- package/dist/components/ColorInput/ColorInput.js +1 -1
- package/dist/components/ColorPanel/ColorPanel.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +1 -1
- package/dist/components/ColorSwatch/ColorSwatch.js +1 -1
- package/dist/components/ColorSwatchGroup/ColorSwatchGroup.js +1 -1
- package/dist/components/ComboBox/ComboBox.js +1 -1
- package/dist/components/ComboBox/combo-box-options.js +1 -1
- package/dist/components/CommandMenu/CommandMenu.js +1 -1
- package/dist/components/CommandMenu/styled.js +1 -1
- package/dist/components/CommandTextArea/CommandTextArea.js +1 -1
- package/dist/components/CommandTextArea/caret-position.js +1 -1
- package/dist/components/CommandTextArea/use-caret-anchor.js +1 -1
- package/dist/components/Content/Content.js +1 -1
- package/dist/components/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/CubeLogo/CubeLogo.js +1 -1
- package/dist/components/DataTable/DataTable.js +1 -1
- package/dist/components/DatePicker/CalendarPopover.js +1 -1
- package/dist/components/DatePicker/DateInput.js +1 -1
- package/dist/components/DatePicker/DateInputBase.js +1 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/DatePicker/DateRangePicker.js +1 -1
- package/dist/components/DatePicker/DateRangeSeparatedPicker.js +1 -1
- package/dist/components/DatePicker/MonthPicker.js +1 -1
- package/dist/components/DatePicker/PeriodPicker.js +1 -1
- package/dist/components/DatePicker/QuarterPicker.js +1 -1
- package/dist/components/DatePicker/TimeInput.js +1 -1
- package/dist/components/DatePicker/WeekPicker.js +1 -1
- package/dist/components/DatePicker/YearPicker.js +1 -1
- package/dist/components/DatePicker/parse-date.js +1 -1
- package/dist/components/DatePicker/period.js +1 -1
- package/dist/components/DatePicker/props.js +1 -1
- package/dist/components/DatePicker/utils.js +1 -1
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/Dialog/DialogContainer.js +1 -1
- package/dist/components/Dialog/DialogContext.js +1 -1
- package/dist/components/Dialog/DialogForm.js +1 -1
- package/dist/components/Dialog/DialogTrigger.js +1 -1
- package/dist/components/Dialog/ModernDialogForm.js +1 -1
- package/dist/components/Dialog/default-button-text.js +1 -1
- package/dist/components/Dialog/use-content-overflow.js +1 -1
- package/dist/components/Dialog/use-dialog-container.js +1 -1
- package/dist/components/Dialog/use-dialog-open-sync.js +1 -1
- package/dist/components/Dialog/use-dismiss-confirmation.js +1 -1
- package/dist/components/Dialog/use-retained-dialog-focus.js +1 -1
- package/dist/components/Disclosure/Disclosure.js +1 -1
- package/dist/components/DisplayTransition/DisplayTransition.js +1 -1
- package/dist/components/Divider/Divider.js +1 -1
- package/dist/components/DraggableCollection/DraggableCollection.js +1 -1
- package/dist/components/FieldWrapper/FieldWrapper.js +1 -1
- package/dist/components/FieldWrapper/field-description.js +1 -1
- package/dist/components/FileInput/FileInput.js +1 -1
- package/dist/components/FilterListBox/FilterListBox.js +1 -1
- package/dist/components/FilterListBox/styled.js +1 -1
- package/dist/components/FilterPicker/FilterPicker.js +1 -1
- package/dist/components/FilterPicker/FilterTree.js +1 -1
- package/dist/components/Flex/Flex.js +1 -1
- package/dist/components/Flow/Flow.js +1 -1
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Form/Field.js +1 -1
- package/dist/components/Form/Form.js +1 -1
- package/dist/components/Form/FormContext.js +1 -1
- package/dist/components/Form/FormElement.js +1 -1
- package/dist/components/Form/ModernFormRoot.js +1 -1
- package/dist/components/Form/ResetButton.js +1 -1
- package/dist/components/Form/SubmitButton.js +1 -1
- package/dist/components/Form/SubmitError.js +1 -1
- package/dist/components/Form/backend.js +1 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/modern/ModernActions.js +1 -1
- package/dist/components/Form/modern/ModernControllerContext.js +1 -1
- package/dist/components/Form/modern/after-press.js +1 -1
- package/dist/components/Form/modern/controller.js +1 -1
- package/dist/components/Form/modern/field-binding.js +1 -1
- package/dist/components/Form/modern/field.js +1 -1
- package/dist/components/Form/modern/react.js +1 -1
- package/dist/components/Form/modern/store.js +1 -1
- package/dist/components/Form/modern/validation.js +1 -1
- package/dist/components/Form/modern/values.js +1 -1
- package/dist/components/Form/reset-unbound-controls.js +1 -1
- package/dist/components/Form/use-field/use-field-binding.js +1 -1
- package/dist/components/Form/use-field/use-field-props.js +1 -1
- package/dist/components/Form/use-field/use-field.js +1 -1
- package/dist/components/Form/use-form.js +1 -1
- package/dist/components/Form/validation.js +1 -1
- package/dist/components/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/components/Grid/Grid.js +1 -1
- package/dist/components/GridProvider/GridProvider.js +1 -1
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/HiddenInput/HiddenInput.js +1 -1
- package/dist/components/HotKeys/HotKeys.d.ts +1 -1
- package/dist/components/HotKeys/HotKeys.js +59 -43
- package/dist/components/HotKeys/HotKeys.js.map +1 -1
- package/dist/components/IconSwitch/IconSwitch.js +1 -1
- package/dist/components/InfoBadge/InfoBadge.js +1 -1
- package/dist/components/InlineInput/InlineInput.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Item/Item.js +1 -1
- package/dist/components/Item/ItemWithNativeLinks.js +1 -1
- package/dist/components/ItemAction/ItemAction.js +1 -1
- package/dist/components/ItemAction/ItemCloseAction.js +1 -1
- package/dist/components/ItemActionsWrapper/ItemActionsWrapper.js +1 -1
- package/dist/components/ItemBadge/ItemBadge.js +1 -1
- package/dist/components/ItemButton/ItemButton.js +1 -1
- package/dist/components/ItemCard/ItemCard.js +1 -1
- package/dist/components/ItemTable/ItemTable.js +1 -1
- package/dist/components/ItemTable/ItemTableBulkBar.js +1 -1
- package/dist/components/ItemTable/ItemTableDragPreview.js +1 -1
- package/dist/components/ItemTable/ItemTableFooter.js +1 -1
- package/dist/components/ItemTable/ItemTableToolbar.js +1 -1
- package/dist/components/ItemTable/item-table-sections.js +1 -1
- package/dist/components/ItemTable/use-item-table-column-widths.js +1 -1
- package/dist/components/ItemTable/use-item-table-drag-drop.js +1 -1
- package/dist/components/ItemTable/use-item-table-pagination.js +1 -1
- package/dist/components/ItemTable/use-item-table-selection.js +1 -1
- package/dist/components/ItemTable/use-item-table-sort.js +1 -1
- package/dist/components/ItemTable/use-item-table-tree-model.js +1 -1
- package/dist/components/Label/Label.js +1 -1
- package/dist/components/Layout/GridLayout.js +1 -1
- package/dist/components/Layout/Layout.js +1 -1
- package/dist/components/Layout/LayoutBlock.js +1 -1
- package/dist/components/Layout/LayoutCenter.js +1 -1
- package/dist/components/Layout/LayoutContainer.js +1 -1
- package/dist/components/Layout/LayoutContent.js +1 -1
- package/dist/components/Layout/LayoutContext.js +1 -1
- package/dist/components/Layout/LayoutFlex.js +1 -1
- package/dist/components/Layout/LayoutFooter.js +1 -1
- package/dist/components/Layout/LayoutGrid.js +1 -1
- package/dist/components/Layout/LayoutHeader.js +1 -1
- package/dist/components/Layout/LayoutPane.js +1 -1
- package/dist/components/Layout/LayoutPanel.js +1 -1
- package/dist/components/Layout/LayoutPanelHeader.js +1 -1
- package/dist/components/Layout/LayoutPanelTransition.js +1 -1
- package/dist/components/Layout/LayoutResizeHandle.js +1 -1
- package/dist/components/Layout/LayoutToolbar.js +1 -1
- package/dist/components/Layout/index.js +1 -1
- package/dist/components/Layout/use-tiny-scrollbar.js +1 -1
- package/dist/components/Layout/utils.js +1 -1
- package/dist/components/Link/Link.js +1 -1
- package/dist/components/ListBox/DraggableListBox.js +1 -1
- package/dist/components/ListBox/ListBox.d.ts +10 -0
- package/dist/components/ListBox/ListBox.js +10 -3
- package/dist/components/ListBox/ListBox.js.map +1 -1
- package/dist/components/ListBox/empty-row.js +1 -1
- package/dist/components/ListBox/option-id.js +1 -1
- package/dist/components/ListBox/use-default-focus-key.js +121 -0
- package/dist/components/ListBox/use-default-focus-key.js.map +1 -0
- package/dist/components/ListBox/use-disabled-focus-reset.js +1 -1
- package/dist/components/ListBoxPopover/EmptyLabelStatus.js +1 -1
- package/dist/components/ListBoxPopover/ListBoxPopover.js +1 -1
- package/dist/components/ListBoxPopover/list-navigation.js +1 -1
- package/dist/components/ListBoxPopover/use-composite-focus.js +1 -1
- package/dist/components/ListBoxPopover/use-delayed-loading.js +1 -1
- package/dist/components/LoadingAnimation/LoadingAnimation.js +1 -1
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuCollectionItem.js +1 -1
- package/dist/components/Menu/MenuContext.js +1 -1
- package/dist/components/Menu/MenuItem.js +1 -1
- package/dist/components/Menu/MenuSection.js +1 -1
- package/dist/components/Menu/MenuTrigger.js +1 -1
- package/dist/components/Menu/SubMenuTrigger.js +1 -1
- package/dist/components/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/Menu/styled.js +1 -1
- package/dist/components/Menu/touch-context-menu.js +1 -1
- package/dist/components/Menu/use-anchored-menu.js +1 -1
- package/dist/components/Menu/use-context-menu.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/ModalContainmentProvider.js +1 -1
- package/dist/components/Modal/OpenTransitionContext.js +1 -1
- package/dist/components/Modal/Overlay.js +1 -1
- package/dist/components/Modal/Popover.js +1 -1
- package/dist/components/Modal/Tray.js +1 -1
- package/dist/components/Modal/Underlay.js +1 -1
- package/dist/components/NavTabs/NavTabs.js +1 -1
- package/dist/components/NoDataIcon/NoDataIcon.js +1 -1
- package/dist/components/Notifications/Notification.js +1 -1
- package/dist/components/Notifications/NotificationAction.js +1 -1
- package/dist/components/Notifications/NotificationCard.js +1 -1
- package/dist/components/Notifications/NotificationContext.js +1 -1
- package/dist/components/Notifications/NotificationItem.js +1 -1
- package/dist/components/Notifications/OverlayContainer.js +1 -1
- package/dist/components/Notifications/OverlayProvider.js +1 -1
- package/dist/components/Notifications/PersistentNotificationsList.js +1 -1
- package/dist/components/Notifications/dismissed-storage.js +1 -1
- package/dist/components/Notifications/format-relative-time.js +1 -1
- package/dist/components/Notifications/index.js +1 -1
- package/dist/components/Notifications/use-live-region.js +1 -1
- package/dist/components/Notifications/use-notification-state.js +1 -1
- package/dist/components/Notifications/use-notifications.js +1 -1
- package/dist/components/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/Notifications/use-persistent-state.js +1 -1
- package/dist/components/Notifications/use-toast-state.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +1 -1
- package/dist/components/NumberInput/StepButton.js +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/use-pagination.js +1 -1
- package/dist/components/Panel/Panel.js +1 -1
- package/dist/components/PanelToggle/PanelToggle.js +1 -1
- package/dist/components/Paragraph/Paragraph.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/Picker/Picker.d.ts +9 -1
- package/dist/components/Picker/Picker.js +3 -2
- package/dist/components/Picker/Picker.js.map +1 -1
- package/dist/components/Placeholder/Placeholder.js +1 -1
- package/dist/components/Portal/Portal.js +1 -1
- package/dist/components/Portal/PortalProvider.js +1 -1
- package/dist/components/Portal/use-portal.js +1 -1
- package/dist/components/Prefix/Prefix.js +1 -1
- package/dist/components/PrismCode/PrismCode.js +1 -1
- package/dist/components/PrismCode/prism-setup.js +1 -1
- package/dist/components/PrismDiffCode/PrismDiffCode.js +1 -1
- package/dist/components/RadioGroup/Radio.js +1 -1
- package/dist/components/RadioGroup/RadioContext.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/RadioGroup/joined-styles.js +1 -1
- package/dist/components/RenderCache/RenderCache.js +1 -1
- package/dist/components/ResizablePanel/ResizablePanel.js +1 -1
- package/dist/components/Result/Result.js +1 -1
- package/dist/components/Root/Root.js +1 -1
- package/dist/components/SearchComboBox/SearchComboBox.js +1 -1
- package/dist/components/SearchInput/SearchInput.js +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/Slider/Gradation.js +1 -1
- package/dist/components/Slider/HueSlider.js +1 -1
- package/dist/components/Slider/RangeSlider.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/SliderBase.js +1 -1
- package/dist/components/Slider/SliderThumb.js +1 -1
- package/dist/components/Slider/SliderTrack.js +1 -1
- package/dist/components/Slider/elements.js +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Space/Space.js +1 -1
- package/dist/components/Spin/Cube.js +1 -1
- package/dist/components/Spin/InternalSpinner.js +1 -1
- package/dist/components/Spin/Spin.js +1 -1
- package/dist/components/Spin/SpinsContainer.js +1 -1
- package/dist/components/StatsCard/StatsCard.js +1 -1
- package/dist/components/Suffix/Suffix.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/TableBase/ColumnResizer.js +1 -1
- package/dist/components/TableBase/RowCollection.js +1 -1
- package/dist/components/TableBase/TableHeaderCell.js +1 -1
- package/dist/components/TableBase/TableRow.js +1 -1
- package/dist/components/TableBase/TableRowLink.js +1 -1
- package/dist/components/TableBase/TableView.js +1 -1
- package/dist/components/TableBase/TreeGridTable.js +1 -1
- package/dist/components/TableBase/column-header.js +1 -1
- package/dist/components/TableBase/column-menu.js +1 -1
- package/dist/components/TableBase/column-styles.js +1 -1
- package/dist/components/TableBase/column-tint.js +1 -1
- package/dist/components/TableBase/row-menu.js +1 -1
- package/dist/components/TableBase/styled.js +1 -1
- package/dist/components/TableBase/table-body-sections.js +1 -1
- package/dist/components/TableBase/table-tree.js +1 -1
- package/dist/components/TableBase/types.js +1 -1
- package/dist/components/TableBase/use-cell-selection.js +0 -0
- package/dist/components/TableBase/use-column-menu.js +1 -1
- package/dist/components/TableBase/use-column-order.js +1 -1
- package/dist/components/TableBase/use-column-window.js +1 -1
- package/dist/components/TableBase/use-container-width.js +1 -1
- package/dist/components/TableBase/use-row-move-animation.js +1 -1
- package/dist/components/TableBase/use-scrollability.js +1 -1
- package/dist/components/TableBase/use-table-columns.js +1 -1
- package/dist/components/TableBase/use-table-search.js +1 -1
- package/dist/components/TableBase/use-table-selection.js +1 -1
- package/dist/components/TableBase/use-table-sort.js +1 -1
- package/dist/components/TableBase/use-table-sorts.js +1 -1
- package/dist/components/TableBase/use-table-storage.js +1 -1
- package/dist/components/TableBase/use-table-tooltip-refresh.js +1 -1
- package/dist/components/TableBase/use-table-tree-state.js +1 -1
- package/dist/components/Tabs/BoardDragActiveProvider.js +1 -1
- package/dist/components/Tabs/DraggableTabList.js +1 -1
- package/dist/components/Tabs/TabButton.js +1 -1
- package/dist/components/Tabs/TabDropIndicator.js +1 -1
- package/dist/components/Tabs/TabPanel.js +1 -1
- package/dist/components/Tabs/TabPicker.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/TabsAction.js +1 -1
- package/dist/components/Tabs/TabsContext.js +1 -1
- package/dist/components/Tabs/popover-placement.js +1 -1
- package/dist/components/Tabs/scroll-tab-into-strip.js +1 -1
- package/dist/components/Tabs/segmented-styles.js +1 -1
- package/dist/components/Tabs/styled.js +1 -1
- package/dist/components/Tabs/types.js +1 -1
- package/dist/components/Tabs/use-tab-editing.js +1 -1
- package/dist/components/Tabs/use-tab-indicator.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TagInput/TagInput.js +1 -1
- package/dist/components/TagInput/TagList.js +1 -1
- package/dist/components/TagInput/use-active-option.js +1 -1
- package/dist/components/TagInput/use-suffix-space.js +1 -1
- package/dist/components/TagInput/use-tag-error.js +1 -1
- package/dist/components/Text/Text.js +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/TextInput/TextInput.js +1 -1
- package/dist/components/TextInput/TextInputBase.js +1 -1
- package/dist/components/TextInput/displayed-validation.js +1 -1
- package/dist/components/TextInput/identifier-text-services.js +1 -1
- package/dist/components/TextInput/password-manager-ignore.js +1 -1
- package/dist/components/TextInput/use-auto-size-text-area.js +1 -1
- package/dist/components/TextInputMapper/TextInputMapper.js +1 -1
- package/dist/components/TextItem/TextItem.js +1 -1
- package/dist/components/Title/Title.js +1 -1
- package/dist/components/Toast/AnnouncedToastItem.js +1 -1
- package/dist/components/Toast/Toast.js +1 -1
- package/dist/components/Toast/ToastItem.js +1 -1
- package/dist/components/Toast/use-progress-toast.js +1 -1
- package/dist/components/Toast/use-toast.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroupContext.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroupItem.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/TooltipContext.js +1 -1
- package/dist/components/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/Tooltip/TooltipTrigger.js +1 -1
- package/dist/components/Tooltip/last-press.js +1 -1
- package/dist/components/Tooltip/split-trigger-props.js +1 -1
- package/dist/components/Tree/Tree.js +1 -1
- package/dist/components/Tree/TreeNode.js +1 -1
- package/dist/components/Tree/checked-keys.js +1 -1
- package/dist/components/Tree/row-id.js +1 -1
- package/dist/components/Tree/styled.js +1 -1
- package/dist/components/Tree/tree-index.js +1 -1
- package/dist/components/Tree/use-checkbox-tree.js +1 -1
- package/dist/components/Tree/use-load-data.js +1 -1
- package/dist/components/TriggerActions/TriggerActions.js +1 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/ValidationIndicator/InvalidIcon.js +1 -1
- package/dist/components/ValidationIndicator/ValidIcon.js +1 -1
- package/dist/components/ValidationIndicator/ValidationIndicator.js +1 -1
- package/dist/eslint-plugin/defaults.generated.js +1 -1
- package/dist/eslint-plugin/index.js +1 -1
- package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
- package/dist/harness/colors-deps.js +1 -1
- package/dist/hooks/use-action.js +1 -1
- package/dist/hooks/use-auto-tooltip.js +1 -1
- package/dist/hooks/use-buffered-value.js +1 -1
- package/dist/hooks/use-combined-refs.js +1 -1
- package/dist/hooks/use-controlled-focus-visible.js +1 -1
- package/dist/hooks/use-debounced-value.js +1 -1
- package/dist/hooks/use-deprecation-warning.js +1 -1
- package/dist/hooks/use-event.js +1 -1
- package/dist/hooks/use-id.js +1 -1
- package/dist/hooks/use-is-darwin.js +1 -1
- package/dist/hooks/use-is-first-render.js +1 -1
- package/dist/hooks/use-key-symbols.js +57 -176
- package/dist/hooks/use-key-symbols.js.map +1 -1
- package/dist/hooks/use-layout-effect.js +1 -1
- package/dist/hooks/use-local-storage.js +1 -1
- package/dist/hooks/use-merge-styles.js +1 -1
- package/dist/hooks/use-open-key.js +1 -1
- package/dist/hooks/use-overlay-escape-guard.js +1 -1
- package/dist/hooks/use-overlay-position.js +1 -1
- package/dist/hooks/use-popover-sync.js +1 -1
- package/dist/hooks/use-qa-props.js +1 -1
- package/dist/hooks/use-scheme.js +1 -1
- package/dist/hooks/use-sync-ref.js +1 -1
- package/dist/hooks/use-timer/Timer.js +1 -1
- package/dist/hooks/use-timer/use-timer.js +1 -1
- package/dist/hooks/use-validation-props.js +1 -1
- package/dist/hooks/use-viewport-size.js +1 -1
- package/dist/hooks/use-warn.js +1 -1
- package/dist/i18n/I18nProvider.js +1 -1
- package/dist/i18n/add-uikit-locale.js +1 -1
- package/dist/i18n/create-formatter.js +1 -1
- package/dist/i18n/instance.js +1 -1
- package/dist/i18n/locales/de-DE/uikit.js +4 -19
- package/dist/i18n/locales/en-US/uikit.js +4 -19
- package/dist/i18n/locales/en-US/uikit.json.d.ts +6 -21
- package/dist/i18n/locales/es-ES/uikit.js +4 -19
- package/dist/i18n/locales/es-MX/uikit.js +4 -19
- package/dist/i18n/locales/fr-FR/uikit.js +4 -19
- package/dist/i18n/locales/it-IT/uikit.js +4 -19
- package/dist/i18n/locales/ja-JP/uikit.js +4 -19
- package/dist/i18n/locales/nb-NO/uikit.js +4 -19
- package/dist/i18n/locales/pt-BR/uikit.js +4 -19
- package/dist/i18n/locales/pt-PT/uikit.js +4 -19
- package/dist/i18n/locales/sv-SE/uikit.js +4 -19
- package/dist/i18n/locales/vi-VN/uikit.js +4 -19
- package/dist/i18n/locales.js +1 -1
- package/dist/i18n/namespace.js +1 -1
- package/dist/i18n/use-formatter.js +1 -1
- package/dist/i18n/use-i18n.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/SidebarIcon.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.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/providers/ColorPopoverContext.js +1 -1
- package/dist/providers/EventBusProvider.js +1 -1
- package/dist/providers/ItemActionContext.js +1 -1
- package/dist/providers/Provider.js +1 -1
- package/dist/providers/SlotProvider.js +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigation-adapter.default.js +1 -1
- package/dist/providers/navigation-url.js +1 -1
- package/dist/providers/use-navigation.js +1 -1
- package/dist/themes/item-themes.js +1 -1
- package/dist/themes/themes.js +1 -1
- 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/actions-run.js +1 -1
- package/dist/utils/chain.js +1 -1
- package/dist/utils/color/channels.js +1 -1
- package/dist/utils/color/color.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/component-base-props.js +1 -1
- package/dist/utils/disabled-behavior.js +1 -1
- package/dist/utils/disabled-props.js +1 -1
- package/dist/utils/dotize.js +1 -1
- package/dist/utils/field-chrome.js +1 -1
- package/dist/utils/field-layout.js +1 -1
- package/dist/utils/forward-ref-with-generics.js +1 -1
- package/dist/utils/highlight-text.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/interactions.js +1 -1
- package/dist/utils/is-dev-env.js +1 -1
- package/dist/utils/is-text-only.js +1 -1
- package/dist/utils/layout-scale.js +1 -1
- package/dist/utils/legacy-tooltip.js +1 -1
- package/dist/utils/map-props.js +1 -1
- package/dist/utils/merge-props.js +1 -1
- package/dist/utils/modules.js +1 -1
- package/dist/utils/nullable-value.js +1 -1
- package/dist/utils/option-origin-press.js +1 -1
- package/dist/utils/overlay-key-propagation.js +1 -1
- package/dist/utils/pick-base-customization-props.js +1 -1
- package/dist/utils/popover-width.js +1 -1
- package/dist/utils/programmatic-focus.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/resolve-icon.js +1 -1
- package/dist/utils/resolve-validation-props.js +1 -1
- package/dist/utils/search-text-services.js +1 -1
- package/dist/utils/selection.js +1 -1
- package/dist/utils/shared-store.js +1 -1
- package/dist/utils/styles.js +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/virtual-width.js +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/utils/wrap-node-if-plain.js +1 -1
- package/dist/utils/wrap-with-field.js +1 -1
- package/dist/version.js +2 -2
- package/docs/components/HotKeys.md +39 -41
- package/docs/components/ListBox.md +10 -1
- package/docs/components/Picker.md +31 -1
- package/docs/llms.txt +1 -1
- package/package.json +1 -1
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
//#region src/components/ListBox/empty-row.ts
|
|
3
3
|
/**
|
|
4
4
|
* The empty row of ListBox and FilterTree. Its label wraps, unlike an `Item`'s
|
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
//#region src/components/ListBox/option-id.ts
|
|
3
3
|
/**
|
|
4
4
|
* The DOM id of the option with `key` in the listbox whose id is `listBoxId`,
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-40476a4 | Cube Dev Team */
|
|
2
|
+
import { isItemDisabled } from "../../utils/disabled-behavior.js";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
|
+
import { useEffect, useEffectEvent, useRef, useState } from "react";
|
|
5
|
+
//#region src/components/ListBox/use-default-focus-key.ts
|
|
6
|
+
/**
|
|
7
|
+
* The collection's own key for the option `key` names, while the user can
|
|
8
|
+
* select it. Keys are compared as strings, as for the selection.
|
|
9
|
+
*/
|
|
10
|
+
function findDefaultFocusKey(state, key) {
|
|
11
|
+
if (key == null) return null;
|
|
12
|
+
for (const candidate of state.collection.getKeys()) if (String(candidate) === String(key) && state.collection.getItem(candidate)?.type === "item" && !isItemDisabled(state, candidate)) return candidate;
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Focuses the option `defaultFocusedKey` names, instead of the first selected
|
|
17
|
+
* one, wherever the list picks its first focus: when it autofocuses, and when
|
|
18
|
+
* focus enters it with no option focused (Tab or Shift+Tab lands on the list
|
|
19
|
+
* itself). While that option is disabled or missing, React Aria's own pick
|
|
20
|
+
* stands.
|
|
21
|
+
*
|
|
22
|
+
* Returns the `autoFocus` to hand `useListBox` and the props to merge before
|
|
23
|
+
* its list props, so this `onFocus` runs before React Aria's.
|
|
24
|
+
*/
|
|
25
|
+
function useDefaultFocusKey(state, t0) {
|
|
26
|
+
const $ = c(24);
|
|
27
|
+
const { autoFocus, defaultFocusedKey, lastFocusSourceRef } = t0;
|
|
28
|
+
let t1;
|
|
29
|
+
if ($[0] !== autoFocus || $[1] !== defaultFocusedKey || $[2] !== state) {
|
|
30
|
+
t1 = () => autoFocus ? findDefaultFocusKey(state, defaultFocusedKey) : null;
|
|
31
|
+
$[0] = autoFocus;
|
|
32
|
+
$[1] = defaultFocusedKey;
|
|
33
|
+
$[2] = state;
|
|
34
|
+
$[3] = t1;
|
|
35
|
+
} else t1 = $[3];
|
|
36
|
+
const [autoFocusKey] = useState(t1);
|
|
37
|
+
const isScrollMarkedRef = useRef(false);
|
|
38
|
+
let t2;
|
|
39
|
+
if ($[4] !== lastFocusSourceRef || $[5] !== state.selectionManager) {
|
|
40
|
+
t2 = (key) => {
|
|
41
|
+
isScrollMarkedRef.current = true;
|
|
42
|
+
lastFocusSourceRef.current = "keyboard";
|
|
43
|
+
state.selectionManager.setFocused(true);
|
|
44
|
+
state.selectionManager.setFocusedKey(key);
|
|
45
|
+
};
|
|
46
|
+
$[4] = lastFocusSourceRef;
|
|
47
|
+
$[5] = state.selectionManager;
|
|
48
|
+
$[6] = t2;
|
|
49
|
+
} else t2 = $[6];
|
|
50
|
+
const focusAutoFocusKey = useEffectEvent(t2);
|
|
51
|
+
let t3;
|
|
52
|
+
if ($[7] !== autoFocusKey || $[8] !== focusAutoFocusKey) {
|
|
53
|
+
t3 = () => {
|
|
54
|
+
if (autoFocusKey != null) focusAutoFocusKey(autoFocusKey);
|
|
55
|
+
};
|
|
56
|
+
$[7] = autoFocusKey;
|
|
57
|
+
$[8] = focusAutoFocusKey;
|
|
58
|
+
$[9] = t3;
|
|
59
|
+
} else t3 = $[9];
|
|
60
|
+
let t4;
|
|
61
|
+
if ($[10] !== autoFocusKey) {
|
|
62
|
+
t4 = [autoFocusKey];
|
|
63
|
+
$[10] = autoFocusKey;
|
|
64
|
+
$[11] = t4;
|
|
65
|
+
} else t4 = $[11];
|
|
66
|
+
useEffect(t3, t4);
|
|
67
|
+
const { focusedKey } = state.selectionManager;
|
|
68
|
+
let t5;
|
|
69
|
+
let t6;
|
|
70
|
+
if ($[12] !== focusedKey || $[13] !== lastFocusSourceRef) {
|
|
71
|
+
t5 = () => {
|
|
72
|
+
if (!isScrollMarkedRef.current || focusedKey == null) return;
|
|
73
|
+
isScrollMarkedRef.current = false;
|
|
74
|
+
lastFocusSourceRef.current = "other";
|
|
75
|
+
};
|
|
76
|
+
t6 = [focusedKey, lastFocusSourceRef];
|
|
77
|
+
$[12] = focusedKey;
|
|
78
|
+
$[13] = lastFocusSourceRef;
|
|
79
|
+
$[14] = t5;
|
|
80
|
+
$[15] = t6;
|
|
81
|
+
} else {
|
|
82
|
+
t5 = $[14];
|
|
83
|
+
t6 = $[15];
|
|
84
|
+
}
|
|
85
|
+
useEffect(t5, t6);
|
|
86
|
+
let t7;
|
|
87
|
+
if ($[16] !== defaultFocusedKey || $[17] !== state) {
|
|
88
|
+
t7 = (e) => {
|
|
89
|
+
const { selectionManager } = state;
|
|
90
|
+
if (e.target !== e.currentTarget || selectionManager.isFocused || selectionManager.focusedKey != null) return;
|
|
91
|
+
const key_0 = findDefaultFocusKey(state, defaultFocusedKey);
|
|
92
|
+
if (key_0 != null) selectionManager.setFocusedKey(key_0);
|
|
93
|
+
};
|
|
94
|
+
$[16] = defaultFocusedKey;
|
|
95
|
+
$[17] = state;
|
|
96
|
+
$[18] = t7;
|
|
97
|
+
} else t7 = $[18];
|
|
98
|
+
const onFocus = t7;
|
|
99
|
+
const t8 = autoFocusKey == null ? autoFocus : false;
|
|
100
|
+
let t9;
|
|
101
|
+
if ($[19] !== onFocus) {
|
|
102
|
+
t9 = { onFocus };
|
|
103
|
+
$[19] = onFocus;
|
|
104
|
+
$[20] = t9;
|
|
105
|
+
} else t9 = $[20];
|
|
106
|
+
let t10;
|
|
107
|
+
if ($[21] !== t8 || $[22] !== t9) {
|
|
108
|
+
t10 = {
|
|
109
|
+
autoFocus: t8,
|
|
110
|
+
focusProps: t9
|
|
111
|
+
};
|
|
112
|
+
$[21] = t8;
|
|
113
|
+
$[22] = t9;
|
|
114
|
+
$[23] = t10;
|
|
115
|
+
} else t10 = $[23];
|
|
116
|
+
return t10;
|
|
117
|
+
}
|
|
118
|
+
//#endregion
|
|
119
|
+
export { useDefaultFocusKey };
|
|
120
|
+
|
|
121
|
+
//# sourceMappingURL=use-default-focus-key.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-default-focus-key.js","names":["useEffect","useEffectEvent","useRef","useState","isItemDisabled","Key","FocusEvent","MutableRefObject","ListState","DefaultFocusKeyOptions","autoFocus","defaultFocusedKey","lastFocusSourceRef","findDefaultFocusKey","state","T","key","candidate","collection","getKeys","String","getItem","type","useDefaultFocusKey","t0","$","_c","t1","autoFocusKey","isScrollMarkedRef","t2","selectionManager","current","setFocused","setFocusedKey","focusAutoFocusKey","t3","t4","focusedKey","t5","t6","t7","e","target","currentTarget","isFocused","key_0","onFocus","t8","t9","t10","focusProps","_c"],"sources":["../../../src/components/ListBox/use-default-focus-key.ts"],"sourcesContent":["import { useEffect, useEffectEvent, useRef, useState } from 'react';\n\nimport { isItemDisabled } from '../../utils/disabled-behavior';\n\nimport type { Key } from '@react-types/shared';\nimport type { FocusEvent, MutableRefObject } from 'react';\nimport type { ListState } from 'react-stately';\n\ninterface DefaultFocusKeyOptions {\n /** The list's `autoFocus`. */\n autoFocus?: boolean;\n /** The option to focus first, instead of the first selected one. */\n defaultFocusedKey?: Key;\n /** Marked as keyboard navigation, so the list scrolls to an option it autofocuses. */\n lastFocusSourceRef: MutableRefObject<'keyboard' | 'mouse' | 'other'>;\n}\n\n/**\n * The collection's own key for the option `key` names, while the user can\n * select it. Keys are compared as strings, as for the selection.\n */\nfunction findDefaultFocusKey<T>(\n state: ListState<T>,\n key: Key | undefined,\n): Key | null {\n if (key == null) return null;\n\n for (const candidate of state.collection.getKeys()) {\n if (\n String(candidate) === String(key) &&\n state.collection.getItem(candidate)?.type === 'item' &&\n !isItemDisabled(state, candidate)\n ) {\n return candidate;\n }\n }\n\n return null;\n}\n\n/**\n * Focuses the option `defaultFocusedKey` names, instead of the first selected\n * one, wherever the list picks its first focus: when it autofocuses, and when\n * focus enters it with no option focused (Tab or Shift+Tab lands on the list\n * itself). While that option is disabled or missing, React Aria's own pick\n * stands.\n *\n * Returns the `autoFocus` to hand `useListBox` and the props to merge before\n * its list props, so this `onFocus` runs before React Aria's.\n */\nexport function useDefaultFocusKey<T>(\n state: ListState<T>,\n { autoFocus, defaultFocusedKey, lastFocusSourceRef }: DefaultFocusKeyOptions,\n) {\n // React Aria's autofocus focuses the first selected option. When the named\n // option can be selected, the list takes the autofocus over. Decided at\n // mount, as React Aria reads `autoFocus` once.\n const [autoFocusKey] = useState(() =>\n autoFocus ? findDefaultFocusKey(state, defaultFocusedKey) : null,\n );\n\n // What React Aria's autofocus does, for the named option. Marked as keyboard\n // navigation so the list scrolls to it however it opened, as React Aria\n // scrolls to its own.\n const isScrollMarkedRef = useRef(false);\n\n const focusAutoFocusKey = useEffectEvent((key: Key) => {\n isScrollMarkedRef.current = true;\n lastFocusSourceRef.current = 'keyboard';\n state.selectionManager.setFocused(true);\n state.selectionManager.setFocusedKey(key);\n });\n\n useEffect(() => {\n if (autoFocusKey != null) focusAutoFocusKey(autoFocusKey);\n }, [autoFocusKey]);\n\n // The render that focuses the option runs ListBox's scroll effect, a layout\n // effect, before this one. The mark comes down then, so a later pointer move\n // with `focusOnHover` isn't scrolled to as keyboard navigation.\n const { focusedKey } = state.selectionManager;\n\n useEffect(() => {\n if (!isScrollMarkedRef.current || focusedKey == null) return;\n\n isScrollMarkedRef.current = false;\n lastFocusSourceRef.current = 'other';\n }, [focusedKey, lastFocusSourceRef]);\n\n // React Aria picks the first selected option for focus that enters the list\n // with none focused. With the named one already focused, it focuses that one\n // instead, as the option to return to.\n const onFocus = (e: FocusEvent<HTMLElement>) => {\n const { selectionManager } = state;\n\n if (\n e.target !== e.currentTarget ||\n selectionManager.isFocused ||\n selectionManager.focusedKey != null\n ) {\n return;\n }\n\n const key = findDefaultFocusKey(state, defaultFocusedKey);\n\n if (key != null) selectionManager.setFocusedKey(key);\n };\n\n return {\n autoFocus: autoFocusKey == null ? autoFocus : false,\n focusProps: { onFocus },\n };\n}\n"],"mappings":";;;;;;;;;AAqBA,SAASa,oBACPC,OACAE,KACY;CACZ,IAAIA,OAAO,MAAM,OAAO;CAExB,KAAK,MAAMC,aAAaH,MAAMI,WAAWC,QAAQ,GAC/C,IACEC,OAAOH,SAAS,MAAMG,OAAOJ,GAAG,KAChCF,MAAMI,WAAWG,QAAQJ,SAAS,CAAC,EAAEK,SAAS,UAC9C,CAAClB,eAAeU,OAAOG,SAAS,GAEhC,OAAOA;CAIX,OAAO;AACT;;;;;;;;;;;AAYA,SAAOM,mBAAAT,OAAAU,IAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAEL,MAAA,EAAAhB,WAAAC,mBAAAC,uBAAAY;CAA4E,IAAAG;CAAA,IAAAF,EAAA,OAAAf,aAAAe,EAAA,OAAAd,qBAAAc,EAAA,OAAAX,OAAA;EAK5Ca,WAC9BjB,YAAYG,oBAAoBC,OAAOH,iBAAwB,IAA/D;EAAgEc,EAAA,KAAAf;EAAAe,EAAA,KAAAd;EAAAc,EAAA,KAAAX;EAAAW,EAAA,KAAAE;CAAA,OAAAA,KAAAF,EAAA;CADlE,MAAA,CAAAG,gBAAuBzB,SAASwB,EAEhC;CAKA,MAAAE,oBAA0B3B,OAAO,KAAK;CAAE,IAAA4B;CAAA,IAAAL,EAAA,OAAAb,sBAAAa,EAAA,OAAAX,MAAAiB,kBAAA;EAECD,MAAAd,QAAA;GACvCa,kBAAiBG,UAAW;GAC5BpB,mBAAkBoB,UAAW;GAC7BlB,MAAKiB,iBAAiBE,WAAY,IAAI;GACtCnB,MAAKiB,iBAAiBG,cAAelB,GAAG;EAAC;EAC1CS,EAAA,KAAAb;EAAAa,EAAA,KAAAX,MAAAiB;EAAAN,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CALD,MAAAU,oBAA0BlC,eAAe6B,EAKxC;CAAE,IAAAM;CAAA,IAAAX,EAAA,OAAAG,gBAAAH,EAAA,OAAAU,mBAAA;EAEOC,WAAA;GACR,IAAIR,gBAAgB,MAAMO,kBAAkBP,YAAY;EAAE;EAC3DH,EAAA,KAAAG;EAAAH,EAAA,KAAAU;EAAAV,EAAA,KAAAW;CAAA,OAAAA,KAAAX,EAAA;CAAA,IAAAY;CAAA,IAAAZ,EAAA,QAAAG,cAAA;EAAES,KAAA,CAACT,YAAY;EAACH,EAAA,MAAAG;EAAAH,EAAA,MAAAY;CAAA,OAAAA,KAAAZ,EAAA;CAFjBzB,UAAUoC,IAEPC,EAAc;CAKjB,MAAA,EAAAC,eAAuBxB,MAAKiB;CAAkB,IAAAQ;CAAA,IAAAC;CAAA,IAAAf,EAAA,QAAAa,cAAAb,EAAA,QAAAb,oBAAA;EAEpC2B,WAAA;GACR,IAAI,CAACV,kBAAiBG,WAAYM,cAAc,MAAI;GAEpDT,kBAAiBG,UAAW;GAC5BpB,mBAAkBoB,UAAW;EAAH;EACzBQ,KAAA,CAACF,YAAY1B,kBAAkB;EAACa,EAAA,MAAAa;EAAAb,EAAA,MAAAb;EAAAa,EAAA,MAAAc;EAAAd,EAAA,MAAAe;CAAA,OAAA;EAAAD,KAAAd,EAAA;EAAAe,KAAAf,EAAA;CAAA;CALnCzB,UAAUuC,IAKPC,EAAgC;CAAC,IAAAC;CAAA,IAAAhB,EAAA,QAAAd,qBAAAc,EAAA,QAAAX,OAAA;EAKpB2B,MAAAC,MAAA;GACd,MAAA,EAAAX,qBAA6BjB;GAE7B,IACE4B,EAACC,WAAYD,EAACE,iBACdb,iBAAgBc,aAChBd,iBAAgBO,cAAe,MAAI;GAKrC,MAAAQ,QAAYjC,oBAAoBC,OAAOH,iBAAiB;GAExD,IAAIK,SAAO,MAAMe,iBAAgBG,cAAelB,KAAG;EAAE;EACtDS,EAAA,MAAAd;EAAAc,EAAA,MAAAX;EAAAW,EAAA,MAAAgB;CAAA,OAAAA,KAAAhB,EAAA;CAdD,MAAAsB,UAAgBN;CAiBH,MAAAO,KAAApB,gBAAgB,OAAhBlB,YAAA;CAAwC,IAAAuC;CAAA,IAAAxB,EAAA,QAAAsB,SAAA;EACvCE,KAAA,EAAAF,QAAU;EAACtB,EAAA,MAAAsB;EAAAtB,EAAA,MAAAwB;CAAA,OAAAA,KAAAxB,EAAA;CAAA,IAAAyB;CAAA,IAAAzB,EAAA,QAAAuB,MAAAvB,EAAA,QAAAwB,IAAA;EAFlBC,MAAA;GAAAxC,WACMsC;GAAwCG,YACvCF;EACd;EAACxB,EAAA,MAAAuB;EAAAvB,EAAA,MAAAwB;EAAAxB,EAAA,MAAAyB;CAAA,OAAAA,MAAAzB,EAAA;CAAA,OAHMyB;AAGN"}
|
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { isItemDisabled } from "../../utils/disabled-behavior.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { useEffect, useRef } 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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
import { VisuallyHidden } from "react-aria";
|
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
|
|
3
3
|
import { mergeRefs as mergeRefs$1 } from "../../hooks/use-combined-refs.js";
|
|
4
4
|
import { useModalLayerRef } from "../Modal/ModalContainmentProvider.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { isItemDisabled } from "../../utils/disabled-behavior.js";
|
|
3
3
|
//#region src/components/ListBoxPopover/list-navigation.ts
|
|
4
4
|
/**
|
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../hooks/use-event.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { useEffect, useRef } 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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
4
|
//#region src/components/ListBoxPopover/use-delayed-loading.ts
|
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { useLayoutEffect as useLayoutEffect$1 } from "../../hooks/use-layout-effect.js";
|
|
3
3
|
import { Block } from "../Block/Block.js";
|
|
4
4
|
import { useI18n } from "../../i18n/use-i18n.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../utils/styles.js";
|
|
3
3
|
import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
|
|
4
4
|
import { MenuCollectionItem as _MenuCollectionItem, getMenuItemReactKey } from "./MenuCollectionItem.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { normalizeNavigationUrl } from "../../providers/navigation-url.js";
|
|
3
3
|
import { parseTo } from "../../hooks/use-action.js";
|
|
4
4
|
import { COLLECTION_ITEM_CLICK, CollectionItem as _CollectionItem } from "../CollectionItem/CollectionItem.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import React, { useContext } from "react";
|
|
3
3
|
//#region src/components/Menu/MenuContext.ts
|
|
4
4
|
const MenuContext = React.createContext({});
|
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
|
|
3
3
|
import { isExternalUrl, normalizeNavigationUrl } from "../../providers/navigation-url.js";
|
|
4
4
|
import { useNavigation } from "../../providers/use-navigation.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { getMenuItemReactKey } from "./MenuCollectionItem.js";
|
|
3
3
|
import { MenuItem } from "./MenuItem.js";
|
|
4
4
|
import { StyledMenu, StyledSection, StyledSectionHeading } from "./styled.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { SlotProvider } from "../../providers/SlotProvider.js";
|
|
3
3
|
import { useEvent } from "../../hooks/use-event.js";
|
|
4
4
|
import { usePopoverSync } from "../../hooks/use-popover-sync.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../hooks/use-event.js";
|
|
3
3
|
import { usePopoverSync } from "../../hooks/use-popover-sync.js";
|
|
4
4
|
import { MenuContext, useMenuContext } from "./MenuContext.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import React from "react";
|
|
3
3
|
//#region src/components/Menu/SubmenuTriggerContext.tsx
|
|
4
4
|
const SubmenuTriggerContext = React.createContext(null);
|
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { DEFAULT_CLEAR_STYLES } from "../../themes/item-themes.js";
|
|
3
3
|
import { Space } from "../Space/Space.js";
|
|
4
4
|
import { DEFAULT_BUTTON_STYLES } from "../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-40476a4 | Cube Dev Team */
|
|
2
2
|
//#region src/components/Menu/touch-context-menu.ts
|
|
3
3
|
/** React Aria's `useLongPress` threshold. */
|
|
4
4
|
const LONG_PRESS_DELAY = 500;
|
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
|
|
3
3
|
import { useEvent } from "../../hooks/use-event.js";
|
|
4
4
|
import { useI18n } from "../../i18n/use-i18n.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
|
|
3
3
|
import { useEvent } from "../../hooks/use-event.js";
|
|
4
4
|
import { useI18n } from "../../i18n/use-i18n.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
|
|
3
3
|
import { mergeRefs as mergeRefs$1 } from "../../hooks/use-combined-refs.js";
|
|
4
4
|
import { ModalContainmentProvider, useModalContainment } from "./ModalContainmentProvider.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { createContext, useContext, useLayoutEffect, useRef, useState } from "react";
|
|
4
4
|
import { ariaHideOutside } from "react-aria/private/overlays/ariaHideOutside";
|
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { createContext, useContext } from "react";
|
|
3
3
|
//#region src/components/Modal/OpenTransitionContext.tsx
|
|
4
4
|
const OpenTransitionContext = createContext(null);
|
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { markFocusRestoreWindow } from "../../utils/programmatic-focus.js";
|
|
3
3
|
import { DisplayTransition } from "../DisplayTransition/DisplayTransition.js";
|
|
4
4
|
import { Provider, useProviderProps } from "../../providers/Provider.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
|
|
3
3
|
import { mergeRefs as mergeRefs$1 } from "../../hooks/use-combined-refs.js";
|
|
4
4
|
import { useModalLayerRef } from "./ModalContainmentProvider.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
|
|
3
3
|
import { mergeRefs as mergeRefs$1 } from "../../hooks/use-combined-refs.js";
|
|
4
4
|
import { ModalContainmentProvider, useModalContainment } from "./ModalContainmentProvider.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { 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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../utils/styles.js";
|
|
3
3
|
import { useLayoutEffect as useLayoutEffect$1 } from "../../hooks/use-layout-effect.js";
|
|
4
4
|
import { pickBaseCustomizationProps } from "../../utils/pick-base-customization-props.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { wrapIcon } from "../../icons/wrap-icon.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/NoDataIcon/NoDataIcon.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { useNotificationContext } from "./NotificationContext.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { useEffect, useRef } 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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../hooks/use-event.js";
|
|
3
3
|
import { ItemAction } from "../ItemAction/ItemAction.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { Block } from "../Block/Block.js";
|
|
3
3
|
import { ItemActionProvider } from "../../providers/ItemActionContext.js";
|
|
4
4
|
import { useI18n } from "../../i18n/use-i18n.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { createContext, useContext } from "react";
|
|
3
3
|
//#region src/components/Notifications/NotificationContext.ts
|
|
4
4
|
const ToastContext = createContext(null);
|
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../hooks/use-event.js";
|
|
3
3
|
import { useLiveRegion } from "./use-live-region.js";
|
|
4
4
|
import { NotificationCard } from "./NotificationCard.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { useLayoutEffect as useLayoutEffect$1 } from "../../hooks/use-layout-effect.js";
|
|
3
3
|
import { useEvent } from "../../hooks/use-event.js";
|
|
4
4
|
import { DisplayTransition } from "../DisplayTransition/DisplayTransition.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { NotificationContext, PersistentNotificationsContext, ToastContext } from "./NotificationContext.js";
|
|
3
3
|
import { OverlayContainer } from "./OverlayContainer.js";
|
|
4
4
|
import { useNotificationState } from "./use-notification-state.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { Text as _Text } from "../Text/Text.js";
|
|
3
3
|
import { useEvent } from "../../hooks/use-event.js";
|
|
4
4
|
import { useI18n } from "../../i18n/use-i18n.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-40476a4 | Cube Dev Team */
|
|
2
2
|
//#region src/components/Notifications/dismissed-storage.ts
|
|
3
3
|
const STORAGE_KEY = "cube-ui-dismissed-notifications";
|
|
4
4
|
const TTL_MS = 864e5;
|
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
import "./NotificationContext.js";
|
|
3
3
|
import { NotificationAction } from "./NotificationAction.js";
|
|
4
4
|
import { NotificationCard } from "./NotificationCard.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
4
|
//#region src/components/Notifications/use-live-region.ts
|
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../hooks/use-event.js";
|
|
3
3
|
import { useRef, useState } from "react";
|
|
4
4
|
//#region src/components/Notifications/use-notification-state.ts
|
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../hooks/use-event.js";
|
|
3
3
|
import { useWarn } from "../../hooks/use-warn.js";
|
|
4
4
|
import { useNotificationContext } from "./NotificationContext.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../hooks/use-event.js";
|
|
3
3
|
import { useEffect, useRef } from "react";
|
|
4
4
|
//#region src/components/Notifications/use-overlay-timers.ts
|
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { usePersistentNotificationsContext } from "./NotificationContext.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
//#region src/components/Notifications/use-persistent-notifications.ts
|
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../hooks/use-event.js";
|
|
3
3
|
import { cleanupAndGetValidIds, saveDismissedId } from "./dismissed-storage.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../hooks/use-event.js";
|
|
3
3
|
import { useRef, useState } from "react";
|
|
4
4
|
//#region src/components/Notifications/use-toast-state.ts
|
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
|
|
3
3
|
import { useI18n } from "../../i18n/use-i18n.js";
|
|
4
4
|
import { settleOverlayKey } from "../../utils/overlay-key-propagation.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { Button } from "../Button/Button.js";
|
|
3
3
|
import { DirectionIcon } from "../../icons/DirectionIcon.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../utils/styles.js";
|
|
3
3
|
import { useEvent } from "../../hooks/use-event.js";
|
|
4
4
|
import { useI18n } from "../../i18n/use-i18n.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../hooks/use-event.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { useControlledState } from "@react-stately/utils";
|
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../utils/styles.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { BASE_STYLES, BLOCK_STYLES, COLOR_STYLES, DIMENSION_STYLES, OUTER_STYLES, 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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { useI18n } from "../../i18n/use-i18n.js";
|
|
3
3
|
import { Button } from "../Button/Button.js";
|
|
4
4
|
import { SidebarIcon } from "../../icons/SidebarIcon.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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../utils/styles.js";
|
|
3
3
|
import { Text as _Text } from "../Text/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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { chain } from "../../utils/chain.js";
|
|
3
3
|
import { mergeProps as mergeProps$1 } from "../../utils/merge-props.js";
|
|
4
4
|
import { ItemActionProvider } from "../../providers/ItemActionContext.js";
|
|
@@ -8,7 +8,7 @@ import { FieldLayoutStyleProps } from "../../utils/field-layout.js";
|
|
|
8
8
|
import { CubeListBoxProps, ListBox } from "../ListBox/ListBox.js";
|
|
9
9
|
import { ContainerStyleProps, Styles } from "@tenphi/tasty";
|
|
10
10
|
import { ForwardedRef, MutableRefObject, ReactElement, ReactNode, RefObject } from "react";
|
|
11
|
-
import { Placement } from "react-aria";
|
|
11
|
+
import { Key as Key$1, Placement } from "react-aria";
|
|
12
12
|
import { ListState, Section } from "react-stately";
|
|
13
13
|
//#region src/components/Picker/Picker.d.ts
|
|
14
14
|
export interface CubePickerProps<T> extends Omit<CubeListBoxProps<T>, 'size' | 'shape' | 'emptyLabel' | 'isFocusWithin'>, Omit<CubeItemProps, 'children' | 'size' | 'tooltip' | 'element' | ItemGridActionsProps | keyof ContainerStyleProps>, FieldLayoutStyleProps, FieldBaseProps<string | number | readonly (string | number)[] | null | undefined>, Pick<CubeItemButtonProps, 'type' | 'theme' | 'icon' | 'rightIcon' | 'prefix' | 'suffix' | 'hotkeys' | 'shape'> {
|
|
@@ -28,6 +28,14 @@ export interface CubePickerProps<T> extends Omit<CubeListBoxProps<T>, 'size' | '
|
|
|
28
28
|
triggerStyles?: Styles;
|
|
29
29
|
/** Whether to show checkboxes for multiple selection mode */
|
|
30
30
|
isCheckable?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The option focused each time the popover opens, instead of the first
|
|
33
|
+
* selected option: for example an action row at the top of the list, so
|
|
34
|
+
* that Enter runs it rather than unchecking a selected option. While it is
|
|
35
|
+
* disabled, or missing when the popover opens, the list focuses the first
|
|
36
|
+
* selected option, as without it. Focusing it never selects it.
|
|
37
|
+
*/
|
|
38
|
+
defaultFocusedKey?: Key$1;
|
|
31
39
|
/** Whether to flip the popover placement */
|
|
32
40
|
shouldFlip?: boolean;
|
|
33
41
|
/**
|
|
@@ -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-40476a4 | Cube Dev Team */
|
|
2
2
|
import { mergeStyleLayers } from "../../utils/styles.js";
|
|
3
3
|
import { Text as _Text } from "../Text/Text.js";
|
|
4
4
|
import { useEvent } from "../../hooks/use-event.js";
|
|
@@ -55,7 +55,7 @@ const Picker = forwardRef(function Picker(props, ref) {
|
|
|
55
55
|
};
|
|
56
56
|
return fieldProps;
|
|
57
57
|
} });
|
|
58
|
-
let { id, qa, label, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, extra, icon, rightIcon, prefix, suffix, actions, hotkeys, tooltip, triggerTooltip, triggerDescription, labelStyles, isRequired, necessityIndicator, isInvalid, isValid, isDisabled, isLoading, message, mods: externalMods, description, descriptionPlacement, placeholder, size = "medium", styles, listBoxStyles, popoverStyles, type = "outline", theme = "default", shape, labelSuffix, shouldFocusWrap, children, shouldFlip = true, targetRef, placement = "bottom start", containerPadding = 8, selectedKey, defaultSelectedKey, selectedKeys, defaultSelectedKeys, disabledKeys, onSelectionChange, selectionMode = "single", listStateRef, focusOnHover, showSelectAll, selectAllLabel = t("picker.all", "All"), items, header, footer, headerStyles, footerStyles, triggerStyles, renderSummary, isCheckable, allValueProps, listStyles, optionStyles, sectionStyles, headingStyles, listGap, listRef, disallowEmptySelection, shouldUseVirtualFocus, onEscape, onOptionClick, isClearable, clearLabel, onClear, sortSelectedToTop, onOpenChange, onLoadMore, hasMore, isLoadingMore, loadMoreMargin, listStateRef: externalListStateRef, ...otherProps } = props;
|
|
58
|
+
let { id, qa, label, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, extra, icon, rightIcon, prefix, suffix, actions, hotkeys, tooltip, triggerTooltip, triggerDescription, labelStyles, isRequired, necessityIndicator, isInvalid, isValid, isDisabled, isLoading, message, mods: externalMods, description, descriptionPlacement, placeholder, size = "medium", styles, listBoxStyles, popoverStyles, type = "outline", theme = "default", shape, labelSuffix, shouldFocusWrap, children, shouldFlip = true, targetRef, placement = "bottom start", containerPadding = 8, selectedKey, defaultSelectedKey, selectedKeys, defaultSelectedKeys, disabledKeys, onSelectionChange, selectionMode = "single", listStateRef, focusOnHover, defaultFocusedKey, showSelectAll, selectAllLabel = t("picker.all", "All"), items, header, footer, headerStyles, footerStyles, triggerStyles, renderSummary, isCheckable, allValueProps, listStyles, optionStyles, sectionStyles, headingStyles, listGap, listRef, disallowEmptySelection, shouldUseVirtualFocus, onEscape, onOptionClick, isClearable, clearLabel, onClear, sortSelectedToTop, onOpenChange, onLoadMore, hasMore, isLoadingMore, loadMoreMargin, listStateRef: externalListStateRef, ...otherProps } = props;
|
|
59
59
|
const fieldLayout = splitFieldLayout(props);
|
|
60
60
|
styles = fieldLayout.styles;
|
|
61
61
|
useWarn(triggerTooltip !== void 0, TRIGGER_TOOLTIP_WARNING);
|
|
@@ -336,6 +336,7 @@ const Picker = forwardRef(function Picker(props, ref) {
|
|
|
336
336
|
children: /* @__PURE__ */ jsx(ListBox, {
|
|
337
337
|
isBare: true,
|
|
338
338
|
autoFocus: true,
|
|
339
|
+
defaultFocusedKey,
|
|
339
340
|
items: items ? finalItems : void 0,
|
|
340
341
|
"aria-label": pickerAriaLabel,
|
|
341
342
|
selectedKey: selectionMode === "single" ? effectiveSelectedKey : void 0,
|