@cube-dev/ui-kit 0.215.2 → 0.216.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CHANGELOG.md +24 -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 +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 +1 -1
- package/dist/components/actions/Button/Button.js +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 +1 -1
- 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 +1 -1
- package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
- package/dist/components/content/Alert/Alert.js +1 -1
- package/dist/components/content/Alert/use-alert.js +1 -1
- package/dist/components/content/Avatar/Avatar.js +1 -1
- package/dist/components/content/Badge/Badge.js +1 -1
- package/dist/components/content/Card/Card.js +1 -1
- package/dist/components/content/Content.js +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.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.js +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 +1 -1
- package/dist/components/content/Layout/LayoutPanelHeader.js +1 -1
- package/dist/components/content/Layout/LayoutPanelTransition.js +1 -1
- package/dist/components/content/Layout/LayoutToolbar.js +1 -1
- package/dist/components/content/Layout/hooks/useTinyScrollbar.js +1 -1
- package/dist/components/content/Layout/index.js +1 -1
- package/dist/components/content/Layout/utils.js +1 -1
- package/dist/components/content/Paragraph.js +1 -1
- package/dist/components/content/Placeholder/Placeholder.js +1 -1
- package/dist/components/content/PrismCode/PrismCode.js +1 -1
- package/dist/components/content/PrismCode/prismSetup.js +1 -1
- package/dist/components/content/PrismDiffCode/PrismDiffCode.js +1 -1
- package/dist/components/content/Result/Result.js +1 -1
- package/dist/components/content/Skeleton/Skeleton.js +1 -1
- package/dist/components/content/Tag/Tag.js +1 -1
- package/dist/components/content/Text.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 +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/types.d.ts +4 -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 +2 -1
- package/dist/components/data/TableBase/TableView.js.map +1 -1
- package/dist/components/data/TableBase/TreeGridTable.js +1 -1
- package/dist/components/data/TableBase/column-header.js +1 -1
- package/dist/components/data/TableBase/column-menu.js +1 -1
- package/dist/components/data/TableBase/column-styles.js +1 -1
- package/dist/components/data/TableBase/column-tint.js +1 -1
- package/dist/components/data/TableBase/row-menu.js +1 -1
- package/dist/components/data/TableBase/styled.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 +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +21 -16
- package/dist/components/fields/FilterListBox/FilterListBox.js.map +1 -1
- package/dist/components/fields/FilterListBox/styled.js +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.js +7 -11
- package/dist/components/fields/FilterPicker/FilterPicker.js.map +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.d.ts +20 -0
- package/dist/components/fields/ListBox/ListBox.js +274 -80
- package/dist/components/fields/ListBox/ListBox.js.map +1 -1
- package/dist/components/fields/ListBox/empty-row.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.d.ts +1 -1
- package/dist/components/fields/Picker/Picker.js +4 -14
- package/dist/components/fields/Picker/Picker.js.map +1 -1
- package/dist/components/fields/RadioGroup/Radio.js +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/RadioGroup/joined-styles.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/useSuffixSpace.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/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/fields/ToggleGroup/ToggleGroupItem.js +1 -1
- package/dist/components/fields/ToggleGroup/context.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/NavTabs/NavTabs.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/scroll-tab-into-strip.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 +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
- package/dist/components/overlays/Tooltip/context.js +1 -1
- package/dist/components/overlays/Tooltip/split-trigger-props.js +1 -1
- package/dist/components/portal/Portal.js +1 -1
- package/dist/components/portal/PortalProvider.js +1 -1
- package/dist/components/portal/usePortal.js +1 -1
- package/dist/components/shared/DraggableCollection.js +1 -1
- package/dist/components/shared/InvalidIcon.js +1 -1
- package/dist/components/shared/ValidIcon.js +1 -1
- package/dist/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/dist/components/status/Spin/Cube.js +1 -1
- package/dist/components/status/Spin/InternalSpinner.js +1 -1
- package/dist/components/status/Spin/Spin.js +1 -1
- package/dist/components/status/Spin/SpinsContainer.js +1 -1
- package/dist/data/item-themes.js +1 -1
- package/dist/data/themes.js +1 -1
- package/dist/eslint-plugin/defaults.generated.js +25 -1
- package/dist/eslint-plugin/defaults.generated.js.map +1 -1
- package/dist/eslint-plugin/index.js +1 -1
- package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
- package/dist/i18n/I18nProvider.js +1 -1
- package/dist/i18n/createFormatter.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/instance.js +1 -1
- package/dist/i18n/locales/de-DE/uikit.js +3 -2
- package/dist/i18n/locales/en-US/uikit.js +3 -2
- package/dist/i18n/locales/en-US/uikit.json.d.ts +1 -0
- package/dist/i18n/locales/es-ES/uikit.js +3 -2
- package/dist/i18n/locales/es-MX/uikit.js +3 -2
- package/dist/i18n/locales/fr-FR/uikit.js +3 -2
- package/dist/i18n/locales/it-IT/uikit.js +3 -2
- package/dist/i18n/locales/ja-JP/uikit.js +3 -2
- package/dist/i18n/locales/nb-NO/uikit.js +3 -2
- package/dist/i18n/locales/pt-BR/uikit.js +3 -2
- package/dist/i18n/locales/pt-PT/uikit.js +3 -2
- package/dist/i18n/locales/sv-SE/uikit.js +3 -2
- package/dist/i18n/locales/vi-VN/uikit.js +3 -2
- 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/layout-scale.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/componentBaseProps.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/pickBaseCustomizationProps.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/useOverlayPosition.js +139 -37
- package/dist/utils/react/useOverlayPosition.js.map +1 -1
- package/dist/utils/react/usePopoverSync.js +1 -1
- package/dist/utils/react/useQaProps.js +1 -1
- package/dist/utils/react/useScheme.js +1 -1
- package/dist/utils/react/useViewportSize.js +1 -1
- package/dist/utils/react/wrapNodeIfPlain.js +1 -1
- package/dist/utils/selection.js +1 -1
- package/dist/utils/styles.js +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/version.js +2 -2
- package/package.json +2 -1
- package/src/components/fields/FilterListBox/FilterListBox.docs.mdx +23 -0
- package/src/components/fields/FilterPicker/FilterPicker.docs.mdx +35 -1
- package/src/components/fields/ListBox/ListBox.docs.mdx +33 -0
- package/src/components/overlays/Dialog/DialogTrigger.docs.mdx +1 -1
package/dist/utils/is-dev-env.js
CHANGED
package/dist/utils/modules.js
CHANGED
package/dist/utils/promise.js
CHANGED
package/dist/utils/raf.js
CHANGED
package/dist/utils/random.js
CHANGED
package/dist/utils/range.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.216.1 | Cube Dev Team */
|
|
2
2
|
import { useRef } from "react";
|
|
3
3
|
import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/utils/react/RenderCache.tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.216.1 | Cube Dev Team */
|
|
2
2
|
import { mergeProps } from "./mergeProps.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { Children, cloneElement, createContext, useContext } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.216.1 | Cube Dev Team */
|
|
2
2
|
import { filterBaseProps } from "@tenphi/tasty";
|
|
3
3
|
//#region src/utils/react/componentBaseProps.ts
|
|
4
4
|
/** Keep Tasty's slot name and incidental DOM or theme attributes off component roots. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.216.1 | Cube Dev Team */
|
|
2
2
|
import { chain } from "./chain.js";
|
|
3
3
|
import { useLayoutEffect } from "./useLayoutEffect.js";
|
|
4
4
|
import { mergeProps } from "./mergeProps.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.216.1 | Cube Dev Team */
|
|
2
2
|
import { useLayoutEffect as useLayoutEffect$1 } from "./useLayoutEffect.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { useRef, useState } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.216.1 | Cube Dev Team */
|
|
2
2
|
//#region src/utils/react/nullableValue.ts
|
|
3
3
|
function castNullableStringValue(props, emptyValue = "") {
|
|
4
4
|
return castNullableField(props, ["value", "defaultValue"], "string", (v) => String(v), emptyValue);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.216.1 | Cube Dev Team */
|
|
2
2
|
//#region src/utils/react/pickBaseCustomizationProps.ts
|
|
3
3
|
/** Customization props that can sit under a control's DOM and event wiring. */
|
|
4
4
|
function pickBaseCustomizationProps(props) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.216.1 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../_internal/hooks/use-event.js";
|
|
3
3
|
import { isDevEnv } from "../is-dev-env.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.216.1 | Cube Dev Team */
|
|
2
2
|
import { useLayoutEffect as useLayoutEffect$1 } from "./useLayoutEffect.js";
|
|
3
3
|
import { useCallback, useRef, useState } from "react";
|
|
4
4
|
//#region src/utils/react/useBufferedValue.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.216.1 | Cube Dev Team */
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef } from "react";
|
|
4
4
|
//#region src/utils/react/useEventBus.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.216.1 | Cube Dev Team */
|
|
2
2
|
import { useLayoutEffect as useLayoutEffect$1 } from "./useLayoutEffect.js";
|
|
3
3
|
import "react/compiler-runtime";
|
|
4
4
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.216.1 | Cube Dev Team */
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
//#region src/utils/react/useLayoutEffect.tsx
|
|
4
4
|
const useLayoutEffect$1 = typeof window !== "undefined" ? React$1.useLayoutEffect : React$1.useEffect;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.216.1 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../_internal/hooks/use-event.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { useSyncExternalStore } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.216.1 | Cube Dev Team */
|
|
2
2
|
import { useEvent } from "../../_internal/hooks/use-event.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { getEventTarget, nodeContains } from "@react-aria/utils";
|
|
@@ -1,37 +1,93 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.216.1 | Cube Dev Team */
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { useEffect, useEffectEvent } from "react";
|
|
3
|
+
import { useEffect, useEffectEvent, useRef } from "react";
|
|
4
4
|
import { useOverlayPosition } from "react-aria";
|
|
5
5
|
//#region src/utils/react/useOverlayPosition.ts
|
|
6
6
|
/**
|
|
7
|
-
* React Aria's `useOverlayPosition`,
|
|
8
|
-
*
|
|
9
|
-
* a calendar that shows a sixth week.
|
|
7
|
+
* React Aria's `useOverlayPosition`, with two fixes for an overlay that stays
|
|
8
|
+
* open while something changes size.
|
|
10
9
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
10
|
+
* **The overlay grows.** It is re-placed whenever it changes size while open:
|
|
11
|
+
* a menu that gains an item, a list that filters, a calendar that shows a
|
|
12
|
+
* sixth week. React Aria does observe the overlay's size, but it attaches that
|
|
13
|
+
* observer only once, when the hook first runs, and only if the overlay is
|
|
14
|
+
* already in the DOM then. A trigger that outlives its overlay (every kit
|
|
15
|
+
* overlay but the tooltip) runs the hook before the overlay exists, so no
|
|
16
|
+
* observer attached, and an open overlay that grew kept its old place, past
|
|
17
|
+
* the edge of the screen. This observer attaches on every opening instead.
|
|
18
|
+
*
|
|
19
|
+
* **The trigger changes width.** An overlay placed above or below its trigger
|
|
20
|
+
* keeps its horizontal place while the trigger resizes in place. A picker's
|
|
21
|
+
* trigger shows its value, so picking inside the overlay resizes the trigger,
|
|
22
|
+
* and React Aria re-places the overlay on every trigger resize: it slid
|
|
23
|
+
* sideways under the pointer, and the next pick landed on whatever had slid
|
|
24
|
+
* there. See `keepHorizontalPlace` for when the overlay still follows its
|
|
25
|
+
* trigger. Every opening anchors to the trigger as it is then. An overlay
|
|
26
|
+
* placed beside its trigger still moves, so a wider trigger does not cover it.
|
|
17
27
|
*/
|
|
18
28
|
function useOverlayPosition$1(props) {
|
|
19
|
-
const $ = c(
|
|
20
|
-
const
|
|
21
|
-
const { overlayRef, isOpen: t0 } = props;
|
|
29
|
+
const $ = c(21);
|
|
30
|
+
const { overlayRef, isOpen: t0, placement: t1, getTargetRect } = props;
|
|
22
31
|
const isOpen = t0 === void 0 ? true : t0;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
32
|
+
const placement = t1 === void 0 ? "bottom" : t1;
|
|
33
|
+
const anchorRef = useRef(null);
|
|
34
|
+
let t2;
|
|
35
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
36
|
+
t2 = /^(top|bottom)/;
|
|
37
|
+
$[0] = t2;
|
|
38
|
+
} else t2 = $[0];
|
|
39
|
+
let t3;
|
|
40
|
+
if ($[1] !== placement) {
|
|
41
|
+
t3 = t2.test(placement);
|
|
42
|
+
$[1] = placement;
|
|
43
|
+
$[2] = t3;
|
|
44
|
+
} else t3 = $[2];
|
|
45
|
+
const isAboveOrBelow = t3;
|
|
46
|
+
let t4;
|
|
47
|
+
if ($[3] !== getTargetRect || $[4] !== isAboveOrBelow) {
|
|
48
|
+
t4 = isAboveOrBelow ? (target) => keepHorizontalPlace(target, anchorRef, getTargetRect) : getTargetRect;
|
|
49
|
+
$[3] = getTargetRect;
|
|
50
|
+
$[4] = isAboveOrBelow;
|
|
51
|
+
$[5] = t4;
|
|
52
|
+
} else t4 = $[5];
|
|
53
|
+
let t5;
|
|
54
|
+
if ($[6] !== props || $[7] !== t4) {
|
|
55
|
+
t5 = {
|
|
56
|
+
...props,
|
|
57
|
+
getTargetRect: t4
|
|
58
|
+
};
|
|
59
|
+
$[6] = props;
|
|
60
|
+
$[7] = t4;
|
|
61
|
+
$[8] = t5;
|
|
62
|
+
} else t5 = $[8];
|
|
63
|
+
const position = useOverlayPosition(t5);
|
|
64
|
+
let t6;
|
|
65
|
+
if ($[9] !== position) {
|
|
66
|
+
t6 = () => {
|
|
26
67
|
position.updatePosition();
|
|
27
68
|
};
|
|
28
|
-
$[
|
|
29
|
-
$[
|
|
30
|
-
} else
|
|
31
|
-
const onResize = useEffectEvent(
|
|
32
|
-
let
|
|
33
|
-
|
|
34
|
-
|
|
69
|
+
$[9] = position;
|
|
70
|
+
$[10] = t6;
|
|
71
|
+
} else t6 = $[10];
|
|
72
|
+
const onResize = useEffectEvent(t6);
|
|
73
|
+
let t7;
|
|
74
|
+
let t8;
|
|
75
|
+
if ($[11] !== isOpen) {
|
|
76
|
+
t7 = () => {
|
|
77
|
+
if (!isOpen) anchorRef.current = null;
|
|
78
|
+
};
|
|
79
|
+
t8 = [isOpen];
|
|
80
|
+
$[11] = isOpen;
|
|
81
|
+
$[12] = t7;
|
|
82
|
+
$[13] = t8;
|
|
83
|
+
} else {
|
|
84
|
+
t7 = $[12];
|
|
85
|
+
t8 = $[13];
|
|
86
|
+
}
|
|
87
|
+
useEffect(t7, t8);
|
|
88
|
+
let t9;
|
|
89
|
+
if ($[14] !== isOpen || $[15] !== onResize || $[16] !== overlayRef) {
|
|
90
|
+
t9 = () => {
|
|
35
91
|
const overlay = overlayRef.current;
|
|
36
92
|
if (!isOpen || !overlay || typeof ResizeObserver === "undefined") return;
|
|
37
93
|
let observed = overlay;
|
|
@@ -54,21 +110,67 @@ function useOverlayPosition$1(props) {
|
|
|
54
110
|
observer.disconnect();
|
|
55
111
|
};
|
|
56
112
|
};
|
|
57
|
-
$[
|
|
58
|
-
$[
|
|
59
|
-
$[
|
|
60
|
-
$[
|
|
61
|
-
} else
|
|
62
|
-
let
|
|
63
|
-
if ($[
|
|
64
|
-
|
|
65
|
-
$[
|
|
66
|
-
$[
|
|
67
|
-
$[
|
|
68
|
-
} else
|
|
69
|
-
useEffect(
|
|
113
|
+
$[14] = isOpen;
|
|
114
|
+
$[15] = onResize;
|
|
115
|
+
$[16] = overlayRef;
|
|
116
|
+
$[17] = t9;
|
|
117
|
+
} else t9 = $[17];
|
|
118
|
+
let t10;
|
|
119
|
+
if ($[18] !== isOpen || $[19] !== overlayRef) {
|
|
120
|
+
t10 = [isOpen, overlayRef];
|
|
121
|
+
$[18] = isOpen;
|
|
122
|
+
$[19] = overlayRef;
|
|
123
|
+
$[20] = t10;
|
|
124
|
+
} else t10 = $[20];
|
|
125
|
+
useEffect(t9, t10);
|
|
70
126
|
return position;
|
|
71
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* The trigger's rect for React Aria to place the overlay against: the
|
|
130
|
+
* trigger's live vertical place, and a horizontal place that depends on how
|
|
131
|
+
* the trigger changed since the last placement.
|
|
132
|
+
*
|
|
133
|
+
* - **Moved without resizing** (a reflow, a scroll with `keepOpenOnScroll`,
|
|
134
|
+
* CommandTextArea's zero-width caret anchor on every keystroke): the place
|
|
135
|
+
* moves by the same distance. Within half a pixel counts as the same width:
|
|
136
|
+
* a scaled ancestor gives a moved trigger's width float noise.
|
|
137
|
+
* - **Resized in place**, with its start edge, end edge or middle still lined
|
|
138
|
+
* up with the place, as content that grew or shrank leaves it: the place
|
|
139
|
+
* stays. A layout change that resizes a trigger in place (a fluid field on a
|
|
140
|
+
* window resize) keeps it too, until the next opening: geometry alone cannot
|
|
141
|
+
* tell the two apart.
|
|
142
|
+
* - **Resized and moved at once** (a reflow of a fluid field): the place
|
|
143
|
+
* anchors to the trigger as it is now.
|
|
144
|
+
*/
|
|
145
|
+
function keepHorizontalPlace(target, anchorRef, getTargetRect) {
|
|
146
|
+
const trigger = getTargetRect?.(target) ?? target.getBoundingClientRect();
|
|
147
|
+
const last = anchorRef.current;
|
|
148
|
+
let left = trigger.left;
|
|
149
|
+
let width = trigger.width;
|
|
150
|
+
if (last && Math.abs(trigger.width - last.triggerWidth) < .5) {
|
|
151
|
+
left = last.left + trigger.left - last.triggerLeft;
|
|
152
|
+
width = last.width;
|
|
153
|
+
} else if (last && linesUpWithPlace(trigger, last)) {
|
|
154
|
+
left = last.left;
|
|
155
|
+
width = last.width;
|
|
156
|
+
}
|
|
157
|
+
anchorRef.current = {
|
|
158
|
+
left,
|
|
159
|
+
width,
|
|
160
|
+
triggerLeft: trigger.left,
|
|
161
|
+
triggerWidth: trigger.width
|
|
162
|
+
};
|
|
163
|
+
return new DOMRect(left, trigger.top, width, trigger.height);
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Whether the trigger's start edge, end edge or middle is within a pixel of
|
|
167
|
+
* the place's. Measured against the place, not the trigger's last rect, so a
|
|
168
|
+
* reflow in sub-pixel steps cannot creep away from it.
|
|
169
|
+
*/
|
|
170
|
+
function linesUpWithPlace(trigger, place) {
|
|
171
|
+
const gap = (ratio) => Math.abs(trigger.left + trigger.width * ratio - (place.left + place.width * ratio));
|
|
172
|
+
return gap(0) <= 1 || gap(1) <= 1 || gap(.5) <= 1;
|
|
173
|
+
}
|
|
72
174
|
//#endregion
|
|
73
175
|
export { useOverlayPosition$1 as useOverlayPosition };
|
|
74
176
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOverlayPosition.js","names":["useEffect","useEffectEvent","useOverlayPosition","useAriaOverlayPosition","AriaPositionProps","PositionAria","props","$","_c","position","overlayRef","isOpen","t0","undefined","t1","updatePosition","onResize","t2","overlay","current","ResizeObserver","observed","frame","observer","cancelAnimationFrame","requestAnimationFrame","unobserve","observe","disconnect","t3","useOverlayPosition","_c","useAriaOverlayPosition"],"sources":["../../../src/utils/react/useOverlayPosition.ts"],"sourcesContent":["import { useEffect, useEffectEvent } from 'react';\n// oxlint-disable-next-line no-restricted-imports -- this is the wrapper the restriction points to\nimport { useOverlayPosition as useAriaOverlayPosition } from 'react-aria';\n\nimport type { AriaPositionProps, PositionAria } from 'react-aria';\n\n/**\n * React Aria's `useOverlayPosition`, which also re-places the overlay whenever\n * it changes size while open: a menu that gains an item, a list that filters,\n * a calendar that shows a sixth week.\n *\n * React Aria does observe the overlay's size, but it attaches that observer\n * only once, when the hook first runs, and only if the overlay is already in\n * the DOM then. A trigger that outlives its overlay (every kit overlay but the\n * tooltip) runs the hook before the overlay exists, so no observer attached,\n * and an open overlay that grew kept its old place, past the edge of the\n * screen. This observer attaches on every opening instead.\n */\nexport function useOverlayPosition(props: AriaPositionProps): PositionAria {\n const position = useAriaOverlayPosition(props);\n const { overlayRef, isOpen = true } = props;\n\n const onResize = useEffectEvent(() => {\n position.updatePosition();\n });\n\n // The overlay mounts in the commit that opens it, so it is in the ref by\n // the time this runs.\n useEffect(() => {\n const overlay = overlayRef.current;\n\n if (!isOpen || !overlay || typeof ResizeObserver === 'undefined') return;\n\n let observed: Element = overlay;\n let frame = 0;\n\n // Re-placing the overlay changes its size again, and changing an observed\n // size inside the observer's callback reports a ResizeObserver loop as a\n // window error. So re-place on the next frame, once per frame.\n const observer = new ResizeObserver(() => {\n cancelAnimationFrame(frame);\n frame = requestAnimationFrame(() => {\n const current = overlayRef.current;\n\n // A `Portal` renders inline until its own effect finds its root, then\n // moves the overlay there as a new element (removing the old one\n // fires this observer): follow the element the ref holds now.\n if (current && current !== observed) {\n observer.unobserve(observed);\n observer.observe(current);\n observed = current;\n }\n\n onResize();\n });\n });\n\n observer.observe(overlay);\n\n return () => {\n cancelAnimationFrame(frame);\n observer.disconnect();\n };\n }, [isOpen, overlayRef]);\n\n return position;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAkBA,SAAOE,qBAAAI,OAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CACL,MAAAC,WAAiBN,mBAAuBG,KAAK;CAC7C,MAAA,EAAAI,YAAAC,QAAAC,OAAsCN;CAAlB,MAAAK,SAAAC,OAAAC,KAAAA,IAAA,OAAAD;CAAa,IAAAE;CAAA,IAAAP,EAAA,OAAAE,UAAA;EAEDK,WAAA;GAC9BL,SAAQM,eAAgB;EAAC;EAC1BR,EAAA,KAAAE;EAAAF,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAFD,MAAAS,WAAiBf,eAAea,EAE/B;CAAE,IAAAG;CAAA,IAAAV,EAAA,OAAAI,UAAAJ,EAAA,OAAAS,YAAAT,EAAA,OAAAG,YAAA;EAIOO,WAAA;GACR,MAAAC,UAAgBR,WAAUS;GAE1B,IAAI,CAACR,UAAD,CAAYO,WAAW,OAAOE,mBAAmB,aAAW;GAEhE,IAAAC,WAAwBH;GACxB,IAAAI,QAAY;GAKZ,MAAAC,WAAiB,IAAIH,qBAAe;IAClCI,qBAAqBF,KAAK;IAC1BA,QAAQG,4BAAsB;KAC5B,MAAAN,UAAgBT,WAAUS;KAK1B,IAAIA,WAAWA,YAAYE,UAAQ;MACjCE,SAAQG,UAAWL,QAAQ;MAC3BE,SAAQI,QAASR,OAAO;MACxBE,WAAWF;KAAH;KAGVH,SAAS;IAAC,CACX;GAbI,CAcN;GAEDO,SAAQI,QAAST,OAAO;GAAC,aAElB;IACLM,qBAAqBF,KAAK;IAC1BC,SAAQK,WAAY;GAAC;EACtB;EACFrB,EAAA,KAAAI;EAAAJ,EAAA,KAAAS;EAAAT,EAAA,KAAAG;EAAAH,EAAA,KAAAU;CAAA,OAAAA,KAAAV,EAAA;CAAA,IAAAsB;CAAA,IAAAtB,EAAA,OAAAI,UAAAJ,EAAA,OAAAG,YAAA;EAAEmB,KAAA,CAAClB,QAAQD,UAAU;EAACH,EAAA,KAAAI;EAAAJ,EAAA,KAAAG;EAAAH,EAAA,KAAAsB;CAAA,OAAAA,KAAAtB,EAAA;CAnCvBP,UAAUiB,IAmCPY,EAAoB;CAAC,OAEjBpB;AAAQ"}
|
|
1
|
+
{"version":3,"file":"useOverlayPosition.js","names":["useEffect","useEffectEvent","useRef","useOverlayPosition","useAriaOverlayPosition","RefObject","AriaPositionProps","PositionAria","HorizontalAnchor","left","width","triggerLeft","triggerWidth","props","$","_c","overlayRef","isOpen","t0","placement","t1","getTargetRect","undefined","anchorRef","t2","Symbol","for","t3","test","isAboveOrBelow","t4","target","keepHorizontalPlace","t5","position","t6","updatePosition","onResize","t7","t8","current","t9","overlay","ResizeObserver","observed","frame","observer","cancelAnimationFrame","requestAnimationFrame","unobserve","observe","disconnect","t10","Element","DOMRect","trigger","getBoundingClientRect","last","Math","abs","linesUpWithPlace","top","height","place","gap","ratio","useOverlayPosition","_c","useAriaOverlayPosition"],"sources":["../../../src/utils/react/useOverlayPosition.ts"],"sourcesContent":["import { useEffect, useEffectEvent, useRef } from 'react';\n// oxlint-disable-next-line no-restricted-imports -- this is the wrapper the restriction points to\nimport { useOverlayPosition as useAriaOverlayPosition } from 'react-aria';\n\nimport type { RefObject } from 'react';\nimport type { AriaPositionProps, PositionAria } from 'react-aria';\n\n/**\n * The trigger's horizontal place an open overlay was last positioned against,\n * and the trigger's own place and width when it was measured.\n */\ninterface HorizontalAnchor {\n left: number;\n width: number;\n triggerLeft: number;\n triggerWidth: number;\n}\n\n/**\n * React Aria's `useOverlayPosition`, with two fixes for an overlay that stays\n * open while something changes size.\n *\n * **The overlay grows.** It is re-placed whenever it changes size while open:\n * a menu that gains an item, a list that filters, a calendar that shows a\n * sixth week. React Aria does observe the overlay's size, but it attaches that\n * observer only once, when the hook first runs, and only if the overlay is\n * already in the DOM then. A trigger that outlives its overlay (every kit\n * overlay but the tooltip) runs the hook before the overlay exists, so no\n * observer attached, and an open overlay that grew kept its old place, past\n * the edge of the screen. This observer attaches on every opening instead.\n *\n * **The trigger changes width.** An overlay placed above or below its trigger\n * keeps its horizontal place while the trigger resizes in place. A picker's\n * trigger shows its value, so picking inside the overlay resizes the trigger,\n * and React Aria re-places the overlay on every trigger resize: it slid\n * sideways under the pointer, and the next pick landed on whatever had slid\n * there. See `keepHorizontalPlace` for when the overlay still follows its\n * trigger. Every opening anchors to the trigger as it is then. An overlay\n * placed beside its trigger still moves, so a wider trigger does not cover it.\n */\nexport function useOverlayPosition(props: AriaPositionProps): PositionAria {\n const {\n overlayRef,\n isOpen = true,\n placement = 'bottom',\n getTargetRect,\n } = props;\n const anchorRef = useRef<HorizontalAnchor | null>(null);\n const isAboveOrBelow = /^(top|bottom)/.test(placement);\n\n const position = useAriaOverlayPosition({\n ...props,\n getTargetRect: isAboveOrBelow\n ? (target) => keepHorizontalPlace(target, anchorRef, getTargetRect)\n : getTargetRect,\n });\n\n const onResize = useEffectEvent(() => {\n position.updatePosition();\n });\n\n // Forget the place on close, so the next opening anchors afresh.\n useEffect(() => {\n if (!isOpen) anchorRef.current = null;\n }, [isOpen]);\n\n // The overlay mounts in the commit that opens it, so it is in the ref by\n // the time this runs.\n useEffect(() => {\n const overlay = overlayRef.current;\n\n if (!isOpen || !overlay || typeof ResizeObserver === 'undefined') return;\n\n let observed: Element = overlay;\n let frame = 0;\n\n // Re-placing the overlay changes its size again, and changing an observed\n // size inside the observer's callback reports a ResizeObserver loop as a\n // window error. So re-place on the next frame, once per frame.\n const observer = new ResizeObserver(() => {\n cancelAnimationFrame(frame);\n frame = requestAnimationFrame(() => {\n const current = overlayRef.current;\n\n // A `Portal` renders inline until its own effect finds its root, then\n // moves the overlay there as a new element (removing the old one\n // fires this observer): follow the element the ref holds now.\n if (current && current !== observed) {\n observer.unobserve(observed);\n observer.observe(current);\n observed = current;\n }\n\n onResize();\n });\n });\n\n observer.observe(overlay);\n\n return () => {\n cancelAnimationFrame(frame);\n observer.disconnect();\n };\n }, [isOpen, overlayRef]);\n\n return position;\n}\n\n/**\n * The trigger's rect for React Aria to place the overlay against: the\n * trigger's live vertical place, and a horizontal place that depends on how\n * the trigger changed since the last placement.\n *\n * - **Moved without resizing** (a reflow, a scroll with `keepOpenOnScroll`,\n * CommandTextArea's zero-width caret anchor on every keystroke): the place\n * moves by the same distance. Within half a pixel counts as the same width:\n * a scaled ancestor gives a moved trigger's width float noise.\n * - **Resized in place**, with its start edge, end edge or middle still lined\n * up with the place, as content that grew or shrank leaves it: the place\n * stays. A layout change that resizes a trigger in place (a fluid field on a\n * window resize) keeps it too, until the next opening: geometry alone cannot\n * tell the two apart.\n * - **Resized and moved at once** (a reflow of a fluid field): the place\n * anchors to the trigger as it is now.\n */\nfunction keepHorizontalPlace(\n target: Element,\n anchorRef: RefObject<HorizontalAnchor | null>,\n getTargetRect: AriaPositionProps['getTargetRect'],\n): DOMRect {\n const trigger = getTargetRect?.(target) ?? target.getBoundingClientRect();\n const last = anchorRef.current;\n let left = trigger.left;\n let width = trigger.width;\n\n if (last && Math.abs(trigger.width - last.triggerWidth) < 0.5) {\n left = last.left + trigger.left - last.triggerLeft;\n width = last.width;\n } else if (last && linesUpWithPlace(trigger, last)) {\n left = last.left;\n width = last.width;\n }\n\n anchorRef.current = {\n left,\n width,\n triggerLeft: trigger.left,\n triggerWidth: trigger.width,\n };\n\n return new DOMRect(left, trigger.top, width, trigger.height);\n}\n\n/**\n * Whether the trigger's start edge, end edge or middle is within a pixel of\n * the place's. Measured against the place, not the trigger's last rect, so a\n * reflow in sub-pixel steps cannot creep away from it.\n */\nfunction linesUpWithPlace(\n trigger: { left: number; width: number },\n place: HorizontalAnchor,\n): boolean {\n const gap = (ratio: number) =>\n Math.abs(\n trigger.left + trigger.width * ratio - (place.left + place.width * ratio),\n );\n\n return gap(0) <= 1 || gap(1) <= 1 || gap(0.5) <= 1;\n}\n"],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.216.1 | Cube Dev Team */
|
|
2
2
|
import { EventBusContext, useEventBus } from "./useEventBus.js";
|
|
3
3
|
import { c } from "react/compiler-runtime";
|
|
4
4
|
import { useContext, useEffect, useEffectEvent, useRef } from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.216.1 | Cube Dev Team */
|
|
2
2
|
import { Fragment, isValidElement } from "react";
|
|
3
3
|
//#region src/utils/react/wrapNodeIfPlain.ts
|
|
4
4
|
function wrapNodeIfPlain(children, render) {
|
package/dist/utils/selection.js
CHANGED
package/dist/utils/styles.js
CHANGED
package/dist/utils/tree.js
CHANGED
package/dist/utils/warnings.js
CHANGED
package/dist/version.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.216.1 | Cube Dev Team */
|
|
2
2
|
//#region src/version.ts
|
|
3
|
-
const VERSION = "0.
|
|
3
|
+
const VERSION = "0.216.1";
|
|
4
4
|
const TASTY_VERSION = "3.19.1";
|
|
5
5
|
if (typeof window !== "undefined") {
|
|
6
6
|
const version = VERSION;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cube-dev/ui-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.216.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "UIKit for Cube Projects",
|
|
6
6
|
"repository": {
|
|
@@ -103,6 +103,7 @@
|
|
|
103
103
|
"@statoscope/cli": "^5.20.1",
|
|
104
104
|
"@storybook/addon-docs": "^10.3.6",
|
|
105
105
|
"@storybook/react-vite": "^10.3.6",
|
|
106
|
+
"@tanstack/virtual-core": "3.13.12",
|
|
106
107
|
"@tenphi/eslint-plugin-tasty": "^1.20.0",
|
|
107
108
|
"@tenphi/harnesspm": "^0.7.0",
|
|
108
109
|
"@testing-library/dom": "^10.4.1",
|