@cube-dev/ui-kit 0.208.0 → 0.209.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CHANGELOG.md +14 -0
- package/dist/_internal/hooks/use-debounced-value.js +1 -1
- package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
- package/dist/_internal/hooks/use-event.js +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +1 -1
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
- package/dist/_internal/hooks/use-warn.js +1 -1
- package/dist/components/Block.js +1 -1
- package/dist/components/CollectionItem.js +1 -1
- package/dist/components/GlobalStyles.js +1 -1
- package/dist/components/GridProvider.js +1 -1
- package/dist/components/HiddenInput.js +1 -1
- package/dist/components/Root.js +5 -2
- package/dist/components/Root.js.map +1 -1
- package/dist/components/actions/Action/Action.js +1 -1
- package/dist/components/actions/Banner/Banner.js +1 -1
- package/dist/components/actions/Button/AutoCollapseObserver.js +215 -0
- package/dist/components/actions/Button/AutoCollapseObserver.js.map +1 -0
- package/dist/components/actions/Button/Button.d.ts +38 -0
- package/dist/components/actions/Button/Button.js +73 -13
- package/dist/components/actions/Button/Button.js.map +1 -1
- package/dist/components/actions/Button/index.js +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.js +1 -1
- package/dist/components/actions/CommandMenu/styled.js +1 -1
- package/dist/components/actions/ItemAction/ItemAction.js +1 -1
- package/dist/components/actions/ItemActionContext.js +1 -1
- package/dist/components/actions/ItemActionsWrapper.js +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.js +1 -1
- package/dist/components/actions/Menu/MenuCollectionItem.js +1 -1
- package/dist/components/actions/Menu/MenuItem.js +1 -1
- package/dist/components/actions/Menu/MenuSection.js +1 -1
- package/dist/components/actions/Menu/MenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/actions/Menu/context.js +1 -1
- package/dist/components/actions/Menu/styled.js +1 -1
- package/dist/components/actions/actions-run.js +1 -1
- package/dist/components/actions/use-action.js +1 -1
- package/dist/components/actions/use-anchored-menu.js +1 -1
- package/dist/components/actions/use-context-menu.js +2 -2
- package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
- package/dist/components/content/Alert/Alert.js +1 -1
- package/dist/components/content/Alert/use-alert.js +1 -1
- package/dist/components/content/Avatar/Avatar.js +1 -1
- package/dist/components/content/Badge/Badge.js +1 -1
- package/dist/components/content/Card/Card.js +1 -1
- package/dist/components/content/Content.js +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +1 -1
- package/dist/components/content/Divider/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 +0 -9
- package/dist/components/content/Item/Item.js +108 -112
- package/dist/components/content/Item/Item.js.map +1 -1
- package/dist/components/content/Item/ItemWithNativeLinks.js +1 -1
- package/dist/components/content/ItemBadge/ItemBadge.js +1 -1
- package/dist/components/content/ItemCard/ItemCard.js +1 -1
- package/dist/components/content/Layout/GridLayout.js +1 -1
- package/dist/components/content/Layout/Layout.js +1 -1
- package/dist/components/content/Layout/LayoutBlock.js +1 -1
- package/dist/components/content/Layout/LayoutCenter.js +1 -1
- package/dist/components/content/Layout/LayoutContainer.js +1 -1
- package/dist/components/content/Layout/LayoutContent.js +1 -1
- package/dist/components/content/Layout/LayoutContext.js +1 -1
- package/dist/components/content/Layout/LayoutFlex.js +1 -1
- package/dist/components/content/Layout/LayoutFooter.js +1 -1
- package/dist/components/content/Layout/LayoutGrid.js +1 -1
- package/dist/components/content/Layout/LayoutHeader.js +1 -1
- package/dist/components/content/Layout/LayoutPane.js +1 -1
- package/dist/components/content/Layout/LayoutPanel.js +2 -2
- 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.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/checked-keys.js +1 -1
- package/dist/components/content/Tree/rowId.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/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 +233 -111
- package/dist/components/content/use-auto-tooltip.js.map +1 -1
- package/dist/components/data/DataTable/DataTable.js +1 -1
- package/dist/components/data/ItemTable/ItemTable.js +1 -1
- package/dist/components/data/ItemTable/ItemTableBulkBar.js +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/item-table-sections.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/TableRowLink.js +1 -1
- package/dist/components/data/TableBase/TableView.js +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.js +1 -1
- package/dist/components/data/TableBase/table-body-sections.js +1 -1
- package/dist/components/data/TableBase/table-tree.js +1 -1
- package/dist/components/data/TableBase/types.js +1 -1
- package/dist/components/data/TableBase/use-cell-selection.js +0 -0
- package/dist/components/data/TableBase/use-column-menu.js +1 -1
- package/dist/components/data/TableBase/use-column-order.js +1 -1
- package/dist/components/data/TableBase/use-column-window.js +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 +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/ComboBox/comboBoxOptions.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/CalendarPopover.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 +206 -184
- package/dist/components/fields/FileInput/FileInput.js.map +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +1 -1
- package/dist/components/fields/FilterListBox/styled.js +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.js +1 -1
- package/dist/components/fields/FilterPicker/FilterTree.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 +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.js +1 -1
- package/dist/components/fields/RadioGroup/Radio.js +2 -4
- package/dist/components/fields/RadioGroup/Radio.js.map +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.js +1 -1
- package/dist/components/fields/Slider/Gradation.js +1 -1
- package/dist/components/fields/Slider/HueSlider.js +1 -1
- package/dist/components/fields/Slider/RangeSlider.js +1 -1
- package/dist/components/fields/Slider/Slider.js +1 -1
- package/dist/components/fields/Slider/SliderBase.js +1 -1
- package/dist/components/fields/Slider/SliderThumb.js +1 -1
- package/dist/components/fields/Slider/SliderTrack.js +1 -1
- package/dist/components/fields/Slider/elements.js +1 -1
- package/dist/components/fields/Slider/index.js +1 -1
- package/dist/components/fields/Switch/Switch.js +1 -1
- package/dist/components/fields/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/displayed-validation.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/fields/option-origin-press.js +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.js +1 -1
- package/dist/components/form/FieldWrapper/field-description.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/FormContext.js +1 -1
- package/dist/components/form/Form/FormElement.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/field-chrome.js +1 -1
- package/dist/components/form/field-layout.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/segmented-styles.js +1 -1
- package/dist/components/navigation/Tabs/styled.js +1 -1
- 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/Dialog/use-dialog-open-sync.js +1 -1
- package/dist/components/overlays/Dialog/use-dismiss-confirmation.js +1 -1
- package/dist/components/overlays/Dialog/use-retained-dialog-focus.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/Modal/modal-containment.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 +20 -7
- package/dist/components/overlays/Tooltip/TooltipProvider.js.map +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.d.ts +1 -0
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +223 -101
- package/dist/components/overlays/Tooltip/TooltipTrigger.js.map +1 -1
- package/dist/components/overlays/Tooltip/context.js +1 -1
- package/dist/components/overlays/Tooltip/split-trigger-props.js +1 -1
- package/dist/components/portal/Portal.js +1 -1
- package/dist/components/portal/PortalProvider.js +1 -1
- package/dist/components/portal/usePortal.js +1 -1
- package/dist/components/shared/DraggableCollection.js +1 -1
- package/dist/components/shared/InvalidIcon.js +1 -1
- package/dist/components/shared/ValidIcon.js +1 -1
- package/dist/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/dist/components/status/Spin/Cube.js +1 -1
- package/dist/components/status/Spin/InternalSpinner.js +1 -1
- package/dist/components/status/Spin/Spin.js +1 -1
- package/dist/components/status/Spin/SpinsContainer.js +1 -1
- package/dist/data/item-themes.js +1 -1
- package/dist/data/themes.js +1 -1
- package/dist/eslint-plugin/defaults.generated.js +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/namespace.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.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 +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigation-url.js +1 -1
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/providers/use-navigation.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/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 +3 -3
- package/docs/Usage.md +15 -1
- package/docs/components/actions/Button.md +45 -0
- package/docs/components/fields/FileInput.md +18 -5
- package/docs/tasty/ai-agents.md +1 -1
- package/docs/tasty/design-system.md +12 -0
- package/docs/tasty/dsl.md +20 -0
- package/docs/tasty/pipeline.md +1 -1
- package/package.json +2 -2
- package/tasty.config.generated.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.209.0 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeProps } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { Title as _Title } from "../Title.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.209.0 | Cube Dev Team */
|
|
2
2
|
import { useI18n } from "../../../i18n/useI18n.js";
|
|
3
3
|
import { Space } from "../../layout/Space.js";
|
|
4
4
|
import { Grid } from "../../layout/Grid.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.209.0 | Cube Dev Team */
|
|
2
2
|
import { mergeStyleLayers } from "../../../utils/styles.js";
|
|
3
3
|
import { useI18n } from "../../../i18n/useI18n.js";
|
|
4
4
|
import { Item as _Item } from "../Item/Item.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.209.0 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../utils/styles.js";
|
|
3
3
|
import { useSlotProps } from "../../utils/react/Slots.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.209.0 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { TEXT_DEFAULT_STYLES, TEXT_PROP_MAP, useTextProps } from "../Text.js";
|
|
4
4
|
import { highlightText } from "../highlightText.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.209.0 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../utils/styles.js";
|
|
3
3
|
import { useSlotProps } from "../../utils/react/Slots.js";
|
|
4
4
|
import { TEXT_PROP_MAP } from "./Text.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.209.0 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
4
4
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.209.0 | Cube Dev Team */
|
|
2
2
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
3
3
|
import { mergeRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
4
4
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.209.0 | Cube Dev Team */
|
|
2
2
|
import { Item as _Item } from "../Item/Item.js";
|
|
3
3
|
import { Action } from "../../actions/Action/Action.js";
|
|
4
4
|
import { mergeStyles, tasty } from "@tenphi/tasty";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.209.0 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
3
3
|
import { deriveCheckedSets, toggleCheckedKey } from "./checked-keys.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.209.0 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
3
3
|
import { isDevEnvOrTest } from "../../../utils/is-dev-env.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,14 +1,116 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
2
|
-
import {
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.209.0 | Cube Dev Team */
|
|
2
|
+
import { useLayoutEffect as useLayoutEffect$1 } from "../../utils/react/useLayoutEffect.js";
|
|
3
|
+
import { useTooltipTriggerBinding } from "../overlays/Tooltip/TooltipTrigger.js";
|
|
4
|
+
import { createProviderTooltip } from "../overlays/Tooltip/TooltipProvider.js";
|
|
3
5
|
import { c } from "react/compiler-runtime";
|
|
4
|
-
import { useEffect, useRef, useState } from "react";
|
|
6
|
+
import { useEffect, useEffectEvent, useRef, useState } from "react";
|
|
5
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { useIsSSR } from "react-aria";
|
|
6
9
|
import { flushSync } from "react-dom";
|
|
7
10
|
//#region src/components/content/use-auto-tooltip.tsx
|
|
8
11
|
function assignRef(ref, element) {
|
|
9
12
|
if (typeof ref === "function") ref(element);
|
|
10
13
|
else if (ref) ref.current = element;
|
|
11
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* The handlers React Aria's `useTooltipTrigger` puts on the trigger. The
|
|
17
|
+
* element renders before the tooltip beside it has computed its own, so it
|
|
18
|
+
* gets a forwarder for each while a tooltip is mounted. Hover comes from
|
|
19
|
+
* `useHover`, which uses pointer events where the browser has them and mouse
|
|
20
|
+
* and touch events elsewhere; only those names are forwarded, so a forwarder
|
|
21
|
+
* never replaces a handler of the element's own that React Aria leaves alone.
|
|
22
|
+
*/
|
|
23
|
+
const FOCUS_TRIGGER_HANDLERS = [
|
|
24
|
+
"onFocus",
|
|
25
|
+
"onBlur",
|
|
26
|
+
"onKeyDown",
|
|
27
|
+
"onKeyUp",
|
|
28
|
+
"onPointerDown"
|
|
29
|
+
];
|
|
30
|
+
const POINTER_HOVER_HANDLERS = ["onPointerEnter", "onPointerLeave"];
|
|
31
|
+
const MOUSE_HOVER_HANDLERS = [
|
|
32
|
+
"onMouseEnter",
|
|
33
|
+
"onMouseLeave",
|
|
34
|
+
"onTouchStart"
|
|
35
|
+
];
|
|
36
|
+
function getTriggerHandlerNames() {
|
|
37
|
+
return [...FOCUS_TRIGGER_HANDLERS, ...typeof PointerEvent === "undefined" ? MOUSE_HOVER_HANDLERS : POINTER_HOVER_HANDLERS];
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The tooltip of an element rendered by `renderWithTooltip`, mounted beside the
|
|
41
|
+
* element only while a tooltip exists. It owns the tooltip's state and hands
|
|
42
|
+
* the element its trigger handlers through `handlersRef`, so an element that
|
|
43
|
+
* never has a tooltip runs none of it, and the element keeps its node when the
|
|
44
|
+
* tooltip comes and goes.
|
|
45
|
+
*/
|
|
46
|
+
function AutoTooltipLayer(t0) {
|
|
47
|
+
const $ = c(19);
|
|
48
|
+
const { options, tooltip, placement, handlersRef, onDescribedByChange } = t0;
|
|
49
|
+
const isSSR = useIsSSR();
|
|
50
|
+
const { triggerProps, renderTooltip } = useTooltipTriggerBinding(options, tooltip);
|
|
51
|
+
const describedBy = triggerProps["aria-describedby"];
|
|
52
|
+
let t1;
|
|
53
|
+
if ($[0] !== handlersRef || $[1] !== triggerProps) {
|
|
54
|
+
t1 = () => {
|
|
55
|
+
handlersRef.current = triggerProps;
|
|
56
|
+
};
|
|
57
|
+
$[0] = handlersRef;
|
|
58
|
+
$[1] = triggerProps;
|
|
59
|
+
$[2] = t1;
|
|
60
|
+
} else t1 = $[2];
|
|
61
|
+
useLayoutEffect$1(t1);
|
|
62
|
+
let t2;
|
|
63
|
+
if ($[3] !== onDescribedByChange) {
|
|
64
|
+
t2 = (id) => {
|
|
65
|
+
onDescribedByChange(id);
|
|
66
|
+
};
|
|
67
|
+
$[3] = onDescribedByChange;
|
|
68
|
+
$[4] = t2;
|
|
69
|
+
} else t2 = $[4];
|
|
70
|
+
const publishDescribedBy = useEffectEvent(t2);
|
|
71
|
+
let t3;
|
|
72
|
+
if ($[5] !== describedBy || $[6] !== publishDescribedBy) {
|
|
73
|
+
t3 = () => {
|
|
74
|
+
publishDescribedBy(describedBy);
|
|
75
|
+
};
|
|
76
|
+
$[5] = describedBy;
|
|
77
|
+
$[6] = publishDescribedBy;
|
|
78
|
+
$[7] = t3;
|
|
79
|
+
} else t3 = $[7];
|
|
80
|
+
let t4;
|
|
81
|
+
if ($[8] !== describedBy) {
|
|
82
|
+
t4 = [describedBy];
|
|
83
|
+
$[8] = describedBy;
|
|
84
|
+
$[9] = t4;
|
|
85
|
+
} else t4 = $[9];
|
|
86
|
+
useLayoutEffect$1(t3, t4);
|
|
87
|
+
let t5;
|
|
88
|
+
if ($[10] !== handlersRef || $[11] !== publishDescribedBy) {
|
|
89
|
+
t5 = () => () => {
|
|
90
|
+
handlersRef.current = null;
|
|
91
|
+
publishDescribedBy(void 0);
|
|
92
|
+
};
|
|
93
|
+
$[10] = handlersRef;
|
|
94
|
+
$[11] = publishDescribedBy;
|
|
95
|
+
$[12] = t5;
|
|
96
|
+
} else t5 = $[12];
|
|
97
|
+
let t6;
|
|
98
|
+
if ($[13] !== handlersRef) {
|
|
99
|
+
t6 = [handlersRef];
|
|
100
|
+
$[13] = handlersRef;
|
|
101
|
+
$[14] = t6;
|
|
102
|
+
} else t6 = $[14];
|
|
103
|
+
useLayoutEffect$1(t5, t6);
|
|
104
|
+
let t7;
|
|
105
|
+
if ($[15] !== isSSR || $[16] !== placement || $[17] !== renderTooltip) {
|
|
106
|
+
t7 = isSSR ? null : renderTooltip(placement);
|
|
107
|
+
$[15] = isSSR;
|
|
108
|
+
$[16] = placement;
|
|
109
|
+
$[17] = renderTooltip;
|
|
110
|
+
$[18] = t7;
|
|
111
|
+
} else t7 = $[18];
|
|
112
|
+
return t7;
|
|
113
|
+
}
|
|
12
114
|
/** Overflow checks queued for the end of the current task, from every label. */
|
|
13
115
|
const pendingOverflowChecks = /* @__PURE__ */ new Set();
|
|
14
116
|
const overflowChecksByNode = /* @__PURE__ */ new WeakMap();
|
|
@@ -21,11 +123,10 @@ function refreshAutoTooltipsWithin(element) {
|
|
|
21
123
|
* one synchronous render.
|
|
22
124
|
*
|
|
23
125
|
* All reads happen before React touches the DOM again, so they share one
|
|
24
|
-
* layout. `flushSync` applies the verdicts
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* render, not a nested update.
|
|
126
|
+
* layout. `flushSync` applies the verdicts before paint and before any other
|
|
127
|
+
* task, so code that asks whether the tooltip is active after this task gets
|
|
128
|
+
* the answer the measurement gave. Outside a React commit this is an ordinary
|
|
129
|
+
* sync render, not a nested update.
|
|
29
130
|
*/
|
|
30
131
|
function runOverflowChecks() {
|
|
31
132
|
const checks = Array.from(pendingOverflowChecks);
|
|
@@ -98,26 +199,19 @@ function getAutoTitle(children, description, truncation) {
|
|
|
98
199
|
* The `TooltipProvider` props a tooltip resolves to, or `null` when no tooltip
|
|
99
200
|
* is rendered at all.
|
|
100
201
|
*/
|
|
101
|
-
function resolveTooltip({ tooltip, children, description, labelProps,
|
|
202
|
+
function resolveTooltip({ tooltip, children, description, labelProps, truncation }) {
|
|
102
203
|
if (!tooltip) return null;
|
|
103
204
|
if (typeof tooltip === "string") return { title: tooltip };
|
|
104
205
|
const isOverflowed = truncation !== "none";
|
|
105
206
|
const autoTitle = getAutoTitle(children, description, truncation);
|
|
106
|
-
const hasAutoContent = !!(autoTitle || labelProps) &&
|
|
107
|
-
if (tooltip === true) {
|
|
108
|
-
if (!hasAutoContent) return null;
|
|
109
|
-
return {
|
|
110
|
-
title: autoTitle,
|
|
111
|
-
isDisabled: !isOverflowed && isDynamicLabel
|
|
112
|
-
};
|
|
113
|
-
}
|
|
207
|
+
const hasAutoContent = !!(autoTitle || labelProps) && isOverflowed;
|
|
208
|
+
if (tooltip === true) return hasAutoContent ? { title: autoTitle } : null;
|
|
114
209
|
const { auto, ...tooltipProps } = tooltip;
|
|
115
210
|
if (tooltipProps.title && auto !== true) return tooltipProps;
|
|
116
211
|
if (!hasAutoContent) return null;
|
|
117
212
|
return {
|
|
118
213
|
...tooltipProps,
|
|
119
|
-
title: tooltipProps.title ?? autoTitle
|
|
120
|
-
isDisabled: tooltipProps.isDisabled ?? (!isOverflowed && isDynamicLabel)
|
|
214
|
+
title: tooltipProps.title ?? autoTitle
|
|
121
215
|
};
|
|
122
216
|
}
|
|
123
217
|
/** Whether a measured node's text is cut off. */
|
|
@@ -148,68 +242,67 @@ function observeMeasuredNodes(measured, onResize) {
|
|
|
148
242
|
if (description) measured.observer.observe(description);
|
|
149
243
|
}
|
|
150
244
|
function useAutoTooltip(t0) {
|
|
151
|
-
const $ = c(
|
|
152
|
-
const { tooltip, children, description, labelProps,
|
|
153
|
-
|
|
154
|
-
let t2;
|
|
245
|
+
const $ = c(56);
|
|
246
|
+
const { tooltip, children, description, labelProps, labelRef: labelRefOption, descriptionRef: descriptionRefOption } = t0;
|
|
247
|
+
let t1;
|
|
155
248
|
if ($[0] !== tooltip) {
|
|
156
|
-
|
|
249
|
+
t1 = allowsAutoTooltip(tooltip);
|
|
157
250
|
$[0] = tooltip;
|
|
158
|
-
$[1] =
|
|
159
|
-
} else
|
|
160
|
-
const allowsAuto =
|
|
251
|
+
$[1] = t1;
|
|
252
|
+
} else t1 = $[1];
|
|
253
|
+
const allowsAuto = t1;
|
|
161
254
|
const ownTitle = getOwnAutoTitle(tooltip);
|
|
162
255
|
const isLabelMeasured = allowsAuto && isMeasured(children, ownTitle);
|
|
163
256
|
const isDescriptionMeasured = allowsAuto && isMeasured(description, ownTitle);
|
|
164
257
|
const isAutoTooltipEnabled = isLabelMeasured || isDescriptionMeasured;
|
|
165
258
|
const externalLabelRef = labelProps?.ref;
|
|
166
259
|
const [truncation, setTruncation] = useState("none");
|
|
167
|
-
let
|
|
260
|
+
let t2;
|
|
168
261
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
169
|
-
|
|
262
|
+
t2 = {
|
|
170
263
|
label: null,
|
|
171
264
|
description: null,
|
|
172
265
|
observer: null
|
|
173
266
|
};
|
|
174
|
-
$[2] =
|
|
175
|
-
} else
|
|
176
|
-
const measuredRef = useRef(
|
|
267
|
+
$[2] = t2;
|
|
268
|
+
} else t2 = $[2];
|
|
269
|
+
const measuredRef = useRef(t2);
|
|
177
270
|
const verdictRef = useRef("none");
|
|
178
|
-
let
|
|
271
|
+
let t3;
|
|
179
272
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
180
|
-
|
|
273
|
+
t3 = (value) => {
|
|
181
274
|
if (verdictRef.current === value) return;
|
|
182
275
|
verdictRef.current = value;
|
|
183
276
|
setTruncation(value);
|
|
184
277
|
};
|
|
185
|
-
$[3] =
|
|
186
|
-
} else
|
|
187
|
-
const setVerdict =
|
|
188
|
-
let
|
|
278
|
+
$[3] = t3;
|
|
279
|
+
} else t3 = $[3];
|
|
280
|
+
const setVerdict = t3;
|
|
281
|
+
let t4;
|
|
189
282
|
if ($[4] !== setVerdict) {
|
|
190
|
-
|
|
283
|
+
t4 = () => {
|
|
191
284
|
const { label, description: description_0 } = measuredRef.current;
|
|
192
285
|
if (!label && !description_0) return;
|
|
193
286
|
setVerdict(measureTruncation(label, description_0));
|
|
194
287
|
};
|
|
195
288
|
$[4] = setVerdict;
|
|
196
|
-
$[5] =
|
|
197
|
-
} else
|
|
198
|
-
const checkOverflow =
|
|
199
|
-
let
|
|
289
|
+
$[5] = t4;
|
|
290
|
+
} else t4 = $[5];
|
|
291
|
+
const checkOverflow = t4;
|
|
292
|
+
let t5;
|
|
200
293
|
if ($[6] !== checkOverflow) {
|
|
201
|
-
|
|
294
|
+
t5 = () => {
|
|
202
295
|
queueOverflowCheck(checkOverflow);
|
|
203
296
|
};
|
|
204
297
|
$[6] = checkOverflow;
|
|
205
|
-
$[7] =
|
|
206
|
-
} else
|
|
207
|
-
const scheduleOverflowCheck =
|
|
298
|
+
$[7] = t5;
|
|
299
|
+
} else t5 = $[7];
|
|
300
|
+
const scheduleOverflowCheck = t5;
|
|
208
301
|
const measuredLabel = isLabelMeasured ? getMeasureKey(children, ownTitle) : void 0;
|
|
209
302
|
const measuredDescription = isDescriptionMeasured ? getMeasureKey(description, ownTitle) : void 0;
|
|
210
|
-
let
|
|
303
|
+
let t6;
|
|
211
304
|
if ($[8] !== isAutoTooltipEnabled || $[9] !== scheduleOverflowCheck || $[10] !== setVerdict) {
|
|
212
|
-
|
|
305
|
+
t6 = () => {
|
|
213
306
|
if (isAutoTooltipEnabled) {
|
|
214
307
|
scheduleOverflowCheck();
|
|
215
308
|
return;
|
|
@@ -219,11 +312,11 @@ function useAutoTooltip(t0) {
|
|
|
219
312
|
$[8] = isAutoTooltipEnabled;
|
|
220
313
|
$[9] = scheduleOverflowCheck;
|
|
221
314
|
$[10] = setVerdict;
|
|
222
|
-
$[11] =
|
|
223
|
-
} else
|
|
224
|
-
let
|
|
315
|
+
$[11] = t6;
|
|
316
|
+
} else t6 = $[11];
|
|
317
|
+
let t7;
|
|
225
318
|
if ($[12] !== isAutoTooltipEnabled || $[13] !== isDescriptionMeasured || $[14] !== isLabelMeasured || $[15] !== measuredDescription || $[16] !== measuredLabel || $[17] !== scheduleOverflowCheck || $[18] !== setVerdict) {
|
|
226
|
-
|
|
319
|
+
t7 = [
|
|
227
320
|
isAutoTooltipEnabled,
|
|
228
321
|
isLabelMeasured,
|
|
229
322
|
isDescriptionMeasured,
|
|
@@ -239,12 +332,12 @@ function useAutoTooltip(t0) {
|
|
|
239
332
|
$[16] = measuredLabel;
|
|
240
333
|
$[17] = scheduleOverflowCheck;
|
|
241
334
|
$[18] = setVerdict;
|
|
242
|
-
$[19] =
|
|
243
|
-
} else
|
|
244
|
-
useEffect(
|
|
245
|
-
let
|
|
335
|
+
$[19] = t7;
|
|
336
|
+
} else t7 = $[19];
|
|
337
|
+
useEffect(t6, t7);
|
|
338
|
+
let t8;
|
|
246
339
|
if ($[20] !== checkOverflow || $[21] !== scheduleOverflowCheck) {
|
|
247
|
-
|
|
340
|
+
t8 = (part, element) => {
|
|
248
341
|
const measured = measuredRef.current;
|
|
249
342
|
const previous = measured[part];
|
|
250
343
|
measured[part] = element;
|
|
@@ -264,12 +357,12 @@ function useAutoTooltip(t0) {
|
|
|
264
357
|
};
|
|
265
358
|
$[20] = checkOverflow;
|
|
266
359
|
$[21] = scheduleOverflowCheck;
|
|
267
|
-
$[22] =
|
|
268
|
-
} else
|
|
269
|
-
const attachMeasuredNode =
|
|
270
|
-
let
|
|
360
|
+
$[22] = t8;
|
|
361
|
+
} else t8 = $[22];
|
|
362
|
+
const attachMeasuredNode = t8;
|
|
363
|
+
let t9;
|
|
271
364
|
if ($[23] !== attachMeasuredNode || $[24] !== externalLabelRef || $[25] !== isLabelMeasured || $[26] !== labelRefOption) {
|
|
272
|
-
|
|
365
|
+
t9 = (element_0) => {
|
|
273
366
|
assignRef(externalLabelRef, element_0);
|
|
274
367
|
assignRef(labelRefOption, element_0);
|
|
275
368
|
attachMeasuredNode("label", isLabelMeasured ? element_0 : null);
|
|
@@ -278,72 +371,101 @@ function useAutoTooltip(t0) {
|
|
|
278
371
|
$[24] = externalLabelRef;
|
|
279
372
|
$[25] = isLabelMeasured;
|
|
280
373
|
$[26] = labelRefOption;
|
|
281
|
-
$[27] =
|
|
282
|
-
} else
|
|
283
|
-
const handleLabelElementRef =
|
|
284
|
-
let
|
|
374
|
+
$[27] = t9;
|
|
375
|
+
} else t9 = $[27];
|
|
376
|
+
const handleLabelElementRef = t9;
|
|
377
|
+
let t10;
|
|
285
378
|
if ($[28] !== attachMeasuredNode || $[29] !== descriptionRefOption || $[30] !== isDescriptionMeasured) {
|
|
286
|
-
|
|
379
|
+
t10 = (element_1) => {
|
|
287
380
|
assignRef(descriptionRefOption, element_1);
|
|
288
381
|
attachMeasuredNode("description", isDescriptionMeasured ? element_1 : null);
|
|
289
382
|
};
|
|
290
383
|
$[28] = attachMeasuredNode;
|
|
291
384
|
$[29] = descriptionRefOption;
|
|
292
385
|
$[30] = isDescriptionMeasured;
|
|
293
|
-
$[31] =
|
|
294
|
-
} else
|
|
295
|
-
const handleDescriptionElementRef =
|
|
296
|
-
let
|
|
386
|
+
$[31] = t10;
|
|
387
|
+
} else t10 = $[31];
|
|
388
|
+
const handleDescriptionElementRef = t10;
|
|
389
|
+
let t11;
|
|
297
390
|
if ($[32] !== labelProps) {
|
|
298
|
-
|
|
391
|
+
t11 = labelProps || {};
|
|
299
392
|
$[32] = labelProps;
|
|
300
|
-
$[33] =
|
|
301
|
-
} else
|
|
393
|
+
$[33] = t11;
|
|
394
|
+
} else t11 = $[33];
|
|
302
395
|
let finalLabelProps;
|
|
303
|
-
if ($[34] !==
|
|
304
|
-
const { ref: _labelPropsRef, ...
|
|
305
|
-
finalLabelProps =
|
|
306
|
-
$[34] =
|
|
396
|
+
if ($[34] !== t11) {
|
|
397
|
+
const { ref: _labelPropsRef, ...t12 } = t11;
|
|
398
|
+
finalLabelProps = t12;
|
|
399
|
+
$[34] = t11;
|
|
307
400
|
$[35] = finalLabelProps;
|
|
308
401
|
} else finalLabelProps = $[35];
|
|
309
|
-
let
|
|
310
|
-
if ($[36] !== children || $[37] !== description || $[38] !==
|
|
311
|
-
|
|
402
|
+
let t12;
|
|
403
|
+
if ($[36] !== children || $[37] !== description || $[38] !== labelProps || $[39] !== tooltip || $[40] !== truncation) {
|
|
404
|
+
t12 = resolveTooltip({
|
|
312
405
|
tooltip,
|
|
313
406
|
children,
|
|
314
407
|
description,
|
|
315
408
|
labelProps,
|
|
316
|
-
isDynamicLabel,
|
|
317
409
|
truncation
|
|
318
410
|
});
|
|
319
411
|
$[36] = children;
|
|
320
412
|
$[37] = description;
|
|
321
|
-
$[38] =
|
|
322
|
-
$[39] =
|
|
323
|
-
$[40] =
|
|
324
|
-
$[41] =
|
|
413
|
+
$[38] = labelProps;
|
|
414
|
+
$[39] = tooltip;
|
|
415
|
+
$[40] = truncation;
|
|
416
|
+
$[41] = t12;
|
|
417
|
+
} else t12 = $[41];
|
|
418
|
+
const resolvedTooltip = t12;
|
|
419
|
+
const isTooltipActive = !!resolvedTooltip && resolvedTooltip.isDisabled !== true;
|
|
420
|
+
const triggerRef = useRef(null);
|
|
421
|
+
const handlersRef = useRef(null);
|
|
422
|
+
const describedByRef = useRef(void 0);
|
|
423
|
+
const [describedBy, setDescribedBy] = useState();
|
|
424
|
+
let t13;
|
|
425
|
+
if ($[42] === Symbol.for("react.memo_cache_sentinel")) {
|
|
426
|
+
t13 = (id) => {
|
|
427
|
+
if (describedByRef.current === id) return;
|
|
428
|
+
describedByRef.current = id;
|
|
429
|
+
setDescribedBy(id);
|
|
430
|
+
};
|
|
325
431
|
$[42] = t13;
|
|
326
432
|
} else t13 = $[42];
|
|
327
|
-
const
|
|
328
|
-
const isTooltipActive = !!resolvedTooltip && resolvedTooltip.isDisabled !== true;
|
|
433
|
+
const updateDescribedBy = t13;
|
|
329
434
|
let t14;
|
|
330
|
-
if ($[43] !== resolvedTooltip) {
|
|
435
|
+
if ($[43] !== describedBy || $[44] !== resolvedTooltip) {
|
|
331
436
|
t14 = (renderElement, defaultTooltipPlacement) => {
|
|
332
|
-
if (!resolvedTooltip) return renderElement();
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
437
|
+
if (!resolvedTooltip) return /* @__PURE__ */ jsxs(Fragment$1, { children: [renderElement(), null] });
|
|
438
|
+
const { title, tooltipStyles, width, qa, placement, isDisabled, targetRef, ...triggerOptions } = resolvedTooltip;
|
|
439
|
+
const anchorRef = targetRef ?? triggerRef;
|
|
440
|
+
const forwardedProps = { "aria-describedby": describedBy };
|
|
441
|
+
for (const name of getTriggerHandlerNames()) forwardedProps[name] = (event) => handlersRef.current?.[name]?.(event);
|
|
442
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [renderElement(forwardedProps, anchorRef), /* @__PURE__ */ jsx(AutoTooltipLayer, {
|
|
443
|
+
options: {
|
|
444
|
+
...triggerOptions,
|
|
445
|
+
isDisabled,
|
|
446
|
+
targetRef: anchorRef
|
|
447
|
+
},
|
|
448
|
+
tooltip: createProviderTooltip({
|
|
449
|
+
title,
|
|
450
|
+
tooltipStyles,
|
|
451
|
+
width,
|
|
452
|
+
qa,
|
|
453
|
+
isDisabled
|
|
454
|
+
}),
|
|
455
|
+
placement: placement ?? defaultTooltipPlacement,
|
|
456
|
+
handlersRef,
|
|
457
|
+
onDescribedByChange: updateDescribedBy
|
|
458
|
+
})] });
|
|
338
459
|
};
|
|
339
|
-
$[43] =
|
|
340
|
-
$[44] =
|
|
341
|
-
|
|
460
|
+
$[43] = describedBy;
|
|
461
|
+
$[44] = resolvedTooltip;
|
|
462
|
+
$[45] = t14;
|
|
463
|
+
} else t14 = $[45];
|
|
342
464
|
const renderWithTooltip = t14;
|
|
343
465
|
const t15 = truncation !== "none";
|
|
344
466
|
const t16 = !!tooltip;
|
|
345
467
|
let t17;
|
|
346
|
-
if ($[
|
|
468
|
+
if ($[46] !== finalLabelProps || $[47] !== handleDescriptionElementRef || $[48] !== handleLabelElementRef || $[49] !== isAutoTooltipEnabled || $[50] !== isTooltipActive || $[51] !== renderWithTooltip || $[52] !== scheduleOverflowCheck || $[53] !== t15 || $[54] !== t16) {
|
|
347
469
|
t17 = {
|
|
348
470
|
labelRef: handleLabelElementRef,
|
|
349
471
|
descriptionRef: handleDescriptionElementRef,
|
|
@@ -355,17 +477,17 @@ function useAutoTooltip(t0) {
|
|
|
355
477
|
renderWithTooltip,
|
|
356
478
|
scheduleOverflowCheck
|
|
357
479
|
};
|
|
358
|
-
$[
|
|
359
|
-
$[
|
|
360
|
-
$[
|
|
361
|
-
$[
|
|
362
|
-
$[
|
|
363
|
-
$[
|
|
364
|
-
$[
|
|
365
|
-
$[
|
|
366
|
-
$[
|
|
367
|
-
$[
|
|
368
|
-
} else t17 = $[
|
|
480
|
+
$[46] = finalLabelProps;
|
|
481
|
+
$[47] = handleDescriptionElementRef;
|
|
482
|
+
$[48] = handleLabelElementRef;
|
|
483
|
+
$[49] = isAutoTooltipEnabled;
|
|
484
|
+
$[50] = isTooltipActive;
|
|
485
|
+
$[51] = renderWithTooltip;
|
|
486
|
+
$[52] = scheduleOverflowCheck;
|
|
487
|
+
$[53] = t15;
|
|
488
|
+
$[54] = t16;
|
|
489
|
+
$[55] = t17;
|
|
490
|
+
} else t17 = $[55];
|
|
369
491
|
return t17;
|
|
370
492
|
}
|
|
371
493
|
//#endregion
|