@cube-dev/ui-kit 0.0.0-canary-8292376 → 0.0.0-canary-50fa86a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_internal/hooks/use-debounced-value.js +1 -1
- package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
- package/dist/_internal/hooks/use-event.js +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +1 -1
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
- package/dist/_internal/hooks/use-warn.js +1 -1
- package/dist/components/Block.js +1 -1
- package/dist/components/CollectionItem.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/Button.js +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.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/index.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.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 +14 -39
- package/dist/components/content/Tree/Tree.js.map +1 -1
- package/dist/components/content/Tree/TreeNode.js +7 -8
- package/dist/components/content/Tree/TreeNode.js.map +1 -1
- package/dist/components/content/Tree/styled.js +1 -1
- package/dist/components/content/Tree/tree-index.js +2 -10
- package/dist/components/content/Tree/tree-index.js.map +1 -1
- package/dist/components/content/Tree/types.d.ts +1 -21
- package/dist/components/content/Tree/use-checkbox-tree.js +123 -17
- package/dist/components/content/Tree/use-checkbox-tree.js.map +1 -1
- package/dist/components/content/Tree/use-load-data.js +1 -1
- package/dist/components/content/highlightText.js +1 -1
- package/dist/components/content/use-auto-tooltip.js +1 -1
- package/dist/components/data/DataTable/DataTable.js +1 -1
- package/dist/components/data/ItemTable/ItemTable.js +1 -1
- package/dist/components/data/ItemTable/ItemTableBulkBar.js +1 -1
- package/dist/components/data/ItemTable/ItemTableDragPreview.js +1 -1
- package/dist/components/data/ItemTable/ItemTableFooter.js +1 -1
- package/dist/components/data/ItemTable/ItemTableToolbar.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-column-widths.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-drag-drop.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-pagination.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-selection.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-sort.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-tree-model.js +1 -1
- package/dist/components/data/TableBase/ColumnResizer.js +1 -1
- package/dist/components/data/TableBase/RowCollection.js +1 -1
- package/dist/components/data/TableBase/TableHeaderCell.js +1 -1
- package/dist/components/data/TableBase/TableRow.js +1 -1
- package/dist/components/data/TableBase/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-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 +3 -1
- package/dist/components/fields/ColorInput/ColorInput.js.map +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.d.ts +3 -2
- package/dist/components/fields/ComboBox/ComboBox.js +10 -3
- package/dist/components/fields/ComboBox/ComboBox.js.map +1 -1
- package/dist/components/fields/ComboBox/comboBoxOptions.js +1 -1
- package/dist/components/fields/CommandTextArea/CommandTextArea.js +3 -2
- package/dist/components/fields/CommandTextArea/CommandTextArea.js.map +1 -1
- package/dist/components/fields/CommandTextArea/caretPosition.js +1 -1
- package/dist/components/fields/CommandTextArea/useCaretAnchor.js +1 -1
- package/dist/components/fields/DatePicker/DateInput.js +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
- package/dist/components/fields/DatePicker/DatePicker.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerButton.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerElement.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerInput.js +1 -1
- package/dist/components/fields/DatePicker/DatePickerSegment.js +1 -1
- package/dist/components/fields/DatePicker/DateRangePicker.js +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +1 -1
- package/dist/components/fields/DatePicker/MonthPicker.js +1 -1
- package/dist/components/fields/DatePicker/PeriodPicker.js +1 -1
- package/dist/components/fields/DatePicker/QuarterPicker.js +1 -1
- package/dist/components/fields/DatePicker/TimeInput.js +1 -1
- package/dist/components/fields/DatePicker/WeekPicker.js +1 -1
- package/dist/components/fields/DatePicker/YearPicker.js +1 -1
- package/dist/components/fields/DatePicker/parseDate.js +1 -1
- package/dist/components/fields/DatePicker/period.js +1 -1
- package/dist/components/fields/DatePicker/props.js +1 -1
- package/dist/components/fields/DatePicker/utils.js +1 -1
- package/dist/components/fields/FileInput/FileInput.js +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +56 -3
- package/dist/components/fields/FilterListBox/FilterListBox.js.map +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.d.ts +1 -27
- package/dist/components/fields/FilterPicker/FilterPicker.js +6 -66
- package/dist/components/fields/FilterPicker/FilterPicker.js.map +1 -1
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
- package/dist/components/fields/ListBox/ListBox.js +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 +3 -1
- package/dist/components/fields/NumberInput/NumberInput.js.map +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +3 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js.map +1 -1
- package/dist/components/fields/Picker/Picker.js +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/SearchComboBox/SearchComboBox.d.ts +6 -2
- package/dist/components/fields/SearchComboBox/SearchComboBox.js +4 -3
- package/dist/components/fields/SearchComboBox/SearchComboBox.js.map +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +51 -47
- package/dist/components/fields/SearchInput/SearchInput.js.map +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 +39 -29
- package/dist/components/fields/Slider/RangeSlider.js.map +1 -1
- package/dist/components/fields/Slider/Slider.js +60 -64
- package/dist/components/fields/Slider/Slider.js.map +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.d.ts +2 -0
- package/dist/components/fields/TagInput/TagInput.js +11 -8
- package/dist/components/fields/TagInput/TagInput.js.map +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 +3 -1
- package/dist/components/fields/TextArea/TextArea.js.map +1 -1
- package/dist/components/fields/TextInput/TextInput.js +3 -1
- package/dist/components/fields/TextInput/TextInput.js.map +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/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/legacy-tooltip.js +1 -1
- package/dist/components/form/validation/ValidationIndicator.js +1 -1
- package/dist/components/form/validation/resolve-validation-props.js +1 -1
- package/dist/components/form/validation/use-validation-props.js +1 -1
- package/dist/components/form/wrapper.js +1 -1
- package/dist/components/helpers/DisplayTransition/DisplayTransition.js +1 -1
- package/dist/components/helpers/IconSwitch/IconSwitch.js +1 -1
- package/dist/components/layout/Flex.js +1 -1
- package/dist/components/layout/Flow.js +1 -1
- package/dist/components/layout/Grid.js +1 -1
- package/dist/components/layout/Panel.js +1 -1
- package/dist/components/layout/Prefix.js +1 -1
- package/dist/components/layout/ResizablePanel.js +1 -1
- package/dist/components/layout/Space.js +1 -1
- package/dist/components/layout/Suffix.js +1 -1
- package/dist/components/navigation/Pagination/Pagination.js +1 -1
- package/dist/components/navigation/Pagination/use-pagination.js +1 -1
- package/dist/components/navigation/Tabs/BoardDragActiveProvider.js +1 -1
- package/dist/components/navigation/Tabs/DraggableTabList.js +1 -1
- package/dist/components/navigation/Tabs/TabButton.js +1 -1
- package/dist/components/navigation/Tabs/TabDropIndicator.js +1 -1
- package/dist/components/navigation/Tabs/TabPanel.js +1 -1
- package/dist/components/navigation/Tabs/TabPicker.js +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +1 -1
- package/dist/components/navigation/Tabs/TabsAction.js +1 -1
- package/dist/components/navigation/Tabs/TabsContext.js +1 -1
- package/dist/components/navigation/Tabs/popover-placement.js +1 -1
- package/dist/components/navigation/Tabs/styled.js +1 -1
- package/dist/components/navigation/Tabs/types.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-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 +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/shared/form.d.ts +3 -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 +44 -7
- package/dist/utils/react/overlayKeyPropagation.js.map +1 -1
- package/dist/utils/react/programmaticFocus.js +1 -1
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/sharedStore.js +1 -1
- package/dist/utils/react/useBufferedValue.js +1 -1
- package/dist/utils/react/useCombinedRefs.js +1 -1
- package/dist/utils/react/useControlledFocusVisible.js +1 -1
- package/dist/utils/react/useEventBus.js +1 -1
- package/dist/utils/react/useId.js +1 -1
- package/dist/utils/react/useIsDarwin.js +1 -1
- package/dist/utils/react/useKeySymbols.js +1 -1
- package/dist/utils/react/useLayoutEffect.js +1 -1
- package/dist/utils/react/useLocalStorage.js +1 -1
- package/dist/utils/react/useMergeStyles.js +1 -1
- package/dist/utils/react/useOverlayEscapeGuard.js +1 -1
- package/dist/utils/react/usePopoverSync.js +1 -1
- package/dist/utils/react/useQaProps.js +1 -1
- package/dist/utils/react/useScheme.js +1 -1
- package/dist/utils/react/useViewportSize.js +1 -1
- package/dist/utils/react/wrapNodeIfPlain.js +1 -1
- package/dist/utils/selection.js +1 -1
- package/dist/utils/styles.js +1 -1
- package/dist/utils/tree.js +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/version.js +2 -2
- package/docs/components/content/Tree.md +4 -5
- package/docs/components/fields/ColorInput.md +1 -1
- package/docs/components/fields/ComboBox.md +1 -1
- package/docs/components/fields/CommandTextArea.md +2 -2
- package/docs/components/fields/FilterPicker.md +1 -67
- package/docs/components/fields/NumberInput.md +2 -2
- package/docs/components/fields/PasswordInput.md +5 -5
- package/docs/components/fields/SearchComboBox.md +1 -1
- package/docs/components/fields/SearchInput.md +1 -1
- package/docs/components/fields/TagInput.md +1 -1
- package/docs/components/fields/TextArea.md +8 -5
- package/docs/components/fields/TextInput.md +8 -5
- package/package.json +1 -1
- package/dist/components/content/Tree/checked-keys.js +0 -158
- package/dist/components/content/Tree/checked-keys.js.map +0 -1
- package/dist/components/content/Tree/rowId.js +0 -16
- package/dist/components/content/Tree/rowId.js.map +0 -1
- package/dist/components/fields/FilterListBox/styled.js +0 -66
- package/dist/components/fields/FilterListBox/styled.js.map +0 -1
- package/dist/components/fields/FilterPicker/FilterTree.js +0 -413
- package/dist/components/fields/FilterPicker/FilterTree.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RangeSlider.js","names":["forwardRef","useRef","Gradation","SliderBase","SliderBaseChildArguments","SliderThumb","SliderTrack","FocusableRef","RangeValue","CubeSliderBaseProps","CubeRangeSliderProps","gradation","INTL_MESSAGES","minimum","maximum","RangeSlider","props","ref","$","_c","isDisabled","otherProps","
|
|
1
|
+
{"version":3,"file":"RangeSlider.js","names":["forwardRef","useRef","Gradation","SliderBase","SliderBaseChildArguments","SliderThumb","SliderTrack","FocusableRef","RangeValue","CubeSliderBaseProps","CubeRangeSliderProps","gradation","INTL_MESSAGES","minimum","maximum","RangeSlider","props","ref","$","_c","isDisabled","otherProps","styles","t0","t1","t2","undefined","baseProps","maxThumbInputRef","orientation","t3","trackRef","inputRef","state","isInvalid","isValid","_RangeSlider","__RangeSlider","Object","assign","cubeInputType","displayName","_c","SliderBase"],"sources":["../../../../src/components/fields/Slider/RangeSlider.tsx"],"sourcesContent":["import { forwardRef, useRef } from 'react';\n\nimport { Gradation } from './Gradation';\nimport { SliderBase, SliderBaseChildArguments } from './SliderBase';\nimport { SliderThumb } from './SliderThumb';\nimport { SliderTrack } from './SliderTrack';\n\nimport type { FocusableRef } from '@react-types/shared';\nimport type { RangeValue } from '../../../shared';\nimport type { CubeSliderBaseProps } from './types';\n\nexport interface CubeRangeSliderProps extends CubeSliderBaseProps<\n RangeValue<number>\n> {\n gradation?: string[];\n}\n\nconst INTL_MESSAGES = {\n minimum: 'Minimum',\n maximum: 'Maximum',\n};\n\nfunction RangeSlider(\n props: CubeRangeSliderProps,\n ref: FocusableRef<HTMLDivElement>,\n) {\n let { styles, gradation, isDisabled, ...otherProps } = props;\n // Only when set: `useProviderProps` spreads props over the form context, so\n // an explicit `undefined` would enable a slider in a disabled form.\n const baseProps =\n isDisabled === undefined ? otherProps : { ...otherProps, isDisabled };\n\n // The first thumb takes `SliderBase`'s `inputRef`, which the component ref's\n // `focus()` targets; the second thumb keeps its own.\n const maxThumbInputRef = useRef<HTMLInputElement>(null);\n\n return (\n <SliderBase ref={ref} {...(baseProps as CubeSliderBaseProps<number[]>)}>\n {({\n trackRef,\n inputRef,\n state,\n isInvalid,\n isValid,\n }: SliderBaseChildArguments) => {\n return (\n <>\n <Gradation state={state} ranges={[0, 1]} values={gradation} />\n <SliderTrack\n state={state}\n isDisabled={state.isDisabled}\n isInvalid={isInvalid}\n isValid={isValid}\n orientation={props.orientation}\n />\n <SliderThumb\n index={0}\n aria-label={INTL_MESSAGES['minimum']}\n state={state}\n inputRef={inputRef}\n trackRef={trackRef}\n isDisabled={state.isDisabled}\n isInvalid={isInvalid}\n isValid={isValid}\n />\n <SliderThumb\n index={1}\n aria-label={INTL_MESSAGES['maximum']}\n state={state}\n inputRef={maxThumbInputRef}\n trackRef={trackRef}\n isDisabled={state.isDisabled}\n isInvalid={isInvalid}\n isValid={isValid}\n />\n </>\n );\n }}\n </SliderBase>\n );\n}\n\nconst _RangeSlider = forwardRef(RangeSlider);\n\nconst __RangeSlider = Object.assign(_RangeSlider as typeof _RangeSlider, {\n cubeInputType: 'Number',\n displayName: 'RangeSlider',\n});\n\nexport { __RangeSlider as RangeSlider };\n"],"mappings":";;;;;;;;;AAiBA,MAAMY,gBAAgB;CACpBC,SAAS;CACTC,SAAS;AACX;AAEA,SAAAC,YAAAC,OAAAC,KAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAR;CAAA,IAAAS;CAAA,IAAAC;CAAA,IAAAH,EAAA,OAAAF,OAAA;EAIE,MAAA,EAAAM,QAAAX,WAAAY,IAAAH,YAAAI,IAAA,GAAAC,OAAuDT;EAAvDL,YAAAY;EAAAH,aAAAI;EAAAH,aAAAI;EAA6DP,EAAA,KAAAF;EAAAE,EAAA,KAAAP;EAAAO,EAAA,KAAAE;EAAAF,EAAA,KAAAG;CAAA,OAAA;EAAAV,YAAAO,EAAA;EAAAE,aAAAF,EAAA;EAAAG,aAAAH,EAAA;CAAA;CAAA,IAAAK;CAAA,IAAAL,EAAA,OAAAE,cAAAF,EAAA,OAAAG,YAAA;EAI3DE,KAAAH,eAAeM,KAAAA,IAAfL,aAAA;GAAA,GAA6CA;GAAUD;EAAa;EAACF,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAK;CAAA,OAAAA,KAAAL,EAAA;CADvE,MAAAS,YACEJ;CAIF,MAAAK,mBAAyB3B,OAAyB,IAAI;CAGzB,MAAAuB,KAAAG;CAA0C,IAAAF;CAAA,IAAAP,EAAA,OAAAP,aAAAO,EAAA,OAAAF,MAAAa,aAAA;EAClEJ,MAAAK,OAAA;GAAC,MAAA,EAAAC,UAAAC,UAAAC,OAAAC,WAAAC,YAAAL;GAMyB,OAEvB,qBAAA,YAAA,EAAA,UAAA;IACE,oBAAC,WAAD;KAAkBG;KAAe,QAAA,CAAC,GAAG,CAAC;KAAWtB,QAAAA;IAAS,CAAA;IAC1D,oBAAC,aAAD;KACSsB;KACK,YAAAA,MAAKb;KACNc;KACFC;KACI,aAAAnB,MAAKa;IAAY,CAAA;IAEhC,oBAAC,aAAD;KACS,OAAA;KACK,cAAAjB,cAAaC;KAClBoB;KACGD;KACAD;KACE,YAAAE,MAAKb;KACNc;KACFC;IAAO,CAAA;IAElB,oBAAC,aAAD;KACS,OAAA;KACK,cAAAvB,cAAaE;KAClBmB;KACGL,UAAAA;KACAG;KACE,YAAAE,MAAKb;KACNc;KACFC;IAAO,CAAA;GAChB,EAAA,CAAA;EACD;EAENjB,EAAA,KAAAP;EAAAO,EAAA,KAAAF,MAAAa;EAAAX,EAAA,KAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,IAAAY;CAAA,IAAAZ,EAAA,QAAAD,OAAAC,EAAA,QAAAM,MAAAN,EAAA,QAAAO,IAAA;EAxCHK,KAAA,oBAACa,aAAD;GAAiB1B;GAAG,GAAOO;GACxBC,UAAAA;EADQ,CAAA;EAyCEP,EAAA,MAAAD;EAAAC,EAAA,MAAAM;EAAAN,EAAA,MAAAO;EAAAP,EAAA,MAAAY;CAAA,OAAAA,KAAAZ,EAAA;CAAA,OAzCbY;AAyCa;AAIjB,MAAMM,eAAepC,WAAWe,WAAW;AAE3C,MAAMsB,gBAAgBC,OAAOC,OAAOH,cAAqC;CACvEI,eAAe;CACfC,aAAa;AACf,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-50fa86a | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeProps } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { Gradation } from "./Gradation.js";
|
|
@@ -11,56 +11,55 @@ import { forwardRef } from "react";
|
|
|
11
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
//#region src/components/fields/Slider/Slider.tsx
|
|
13
13
|
function Slider(props, ref) {
|
|
14
|
-
const $ = c(
|
|
14
|
+
const $ = c(28);
|
|
15
15
|
let T0;
|
|
16
16
|
let extractedStyles;
|
|
17
17
|
let gradation;
|
|
18
|
-
let isDisabled;
|
|
19
18
|
let orientation;
|
|
20
19
|
let t0;
|
|
21
20
|
let thumbStyles;
|
|
22
21
|
let thumbTokens;
|
|
23
22
|
let trackStyles;
|
|
24
23
|
if ($[0] !== props) {
|
|
25
|
-
const { onChange, onChangeEnd, value, defaultValue, getValueLabel, isDisabled
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
t7 = (v) => {
|
|
24
|
+
const { onChange, onChangeEnd, value, defaultValue, getValueLabel, isDisabled, styles, gradation: t1, orientation: t2, trackStyles: t3, thumbStyles: t4, thumbTokens: t5, ...otherProps } = props;
|
|
25
|
+
gradation = t1;
|
|
26
|
+
orientation = t2;
|
|
27
|
+
trackStyles = t3;
|
|
28
|
+
thumbStyles = t4;
|
|
29
|
+
thumbTokens = t5;
|
|
30
|
+
let t6;
|
|
31
|
+
if ($[9] !== onChange) {
|
|
32
|
+
t6 = (v) => {
|
|
35
33
|
onChange?.(v[0]);
|
|
36
34
|
};
|
|
37
|
-
$[
|
|
38
|
-
$[
|
|
39
|
-
} else
|
|
40
|
-
let
|
|
41
|
-
if ($[
|
|
42
|
-
|
|
35
|
+
$[9] = onChange;
|
|
36
|
+
$[10] = t6;
|
|
37
|
+
} else t6 = $[10];
|
|
38
|
+
let t7;
|
|
39
|
+
if ($[11] !== onChangeEnd) {
|
|
40
|
+
t7 = (v_0) => {
|
|
43
41
|
onChangeEnd?.(v_0[0]);
|
|
44
42
|
};
|
|
45
|
-
$[
|
|
46
|
-
$[
|
|
47
|
-
} else
|
|
48
|
-
let
|
|
49
|
-
if ($[
|
|
50
|
-
|
|
51
|
-
const [v_1] =
|
|
43
|
+
$[11] = onChangeEnd;
|
|
44
|
+
$[12] = t7;
|
|
45
|
+
} else t7 = $[12];
|
|
46
|
+
let t8;
|
|
47
|
+
if ($[13] !== getValueLabel) {
|
|
48
|
+
t8 = getValueLabel ? (t9) => {
|
|
49
|
+
const [v_1] = t9;
|
|
52
50
|
return getValueLabel(v_1);
|
|
53
51
|
} : void 0;
|
|
54
|
-
$[
|
|
55
|
-
$[
|
|
56
|
-
} else
|
|
52
|
+
$[13] = getValueLabel;
|
|
53
|
+
$[14] = t8;
|
|
54
|
+
} else t8 = $[14];
|
|
57
55
|
const baseProps = {
|
|
58
56
|
...otherProps,
|
|
57
|
+
...isDisabled === void 0 ? null : { isDisabled },
|
|
59
58
|
value: value != null ? [value] : void 0,
|
|
60
59
|
defaultValue: defaultValue != null ? [defaultValue] : void 0,
|
|
61
|
-
onChange:
|
|
62
|
-
onChangeEnd:
|
|
63
|
-
getValueLabel:
|
|
60
|
+
onChange: t6,
|
|
61
|
+
onChangeEnd: t7,
|
|
62
|
+
getValueLabel: t8
|
|
64
63
|
};
|
|
65
64
|
extractedStyles = extractStyles(otherProps, OUTER_STYLES, styles);
|
|
66
65
|
T0 = _SliderBase;
|
|
@@ -69,25 +68,23 @@ function Slider(props, ref) {
|
|
|
69
68
|
$[1] = T0;
|
|
70
69
|
$[2] = extractedStyles;
|
|
71
70
|
$[3] = gradation;
|
|
72
|
-
$[4] =
|
|
73
|
-
$[5] =
|
|
74
|
-
$[6] =
|
|
75
|
-
$[7] =
|
|
76
|
-
$[8] =
|
|
77
|
-
$[9] = trackStyles;
|
|
71
|
+
$[4] = orientation;
|
|
72
|
+
$[5] = t0;
|
|
73
|
+
$[6] = thumbStyles;
|
|
74
|
+
$[7] = thumbTokens;
|
|
75
|
+
$[8] = trackStyles;
|
|
78
76
|
} else {
|
|
79
77
|
T0 = $[1];
|
|
80
78
|
extractedStyles = $[2];
|
|
81
79
|
gradation = $[3];
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
trackStyles = $[9];
|
|
80
|
+
orientation = $[4];
|
|
81
|
+
t0 = $[5];
|
|
82
|
+
thumbStyles = $[6];
|
|
83
|
+
thumbTokens = $[7];
|
|
84
|
+
trackStyles = $[8];
|
|
88
85
|
}
|
|
89
86
|
let t1;
|
|
90
|
-
if ($[
|
|
87
|
+
if ($[15] !== gradation || $[16] !== orientation || $[17] !== thumbStyles || $[18] !== thumbTokens || $[19] !== trackStyles) {
|
|
91
88
|
t1 = (t2) => {
|
|
92
89
|
const { trackRef, inputRef, state, isInvalid, isValid } = t2;
|
|
93
90
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
@@ -98,7 +95,7 @@ function Slider(props, ref) {
|
|
|
98
95
|
}),
|
|
99
96
|
/* @__PURE__ */ jsx(SliderTrack, {
|
|
100
97
|
state,
|
|
101
|
-
isDisabled,
|
|
98
|
+
isDisabled: state.isDisabled,
|
|
102
99
|
isInvalid,
|
|
103
100
|
isValid,
|
|
104
101
|
orientation,
|
|
@@ -109,7 +106,7 @@ function Slider(props, ref) {
|
|
|
109
106
|
state,
|
|
110
107
|
inputRef,
|
|
111
108
|
trackRef,
|
|
112
|
-
isDisabled,
|
|
109
|
+
isDisabled: state.isDisabled,
|
|
113
110
|
isInvalid,
|
|
114
111
|
isValid,
|
|
115
112
|
styles: thumbStyles,
|
|
@@ -117,16 +114,15 @@ function Slider(props, ref) {
|
|
|
117
114
|
})
|
|
118
115
|
] });
|
|
119
116
|
};
|
|
120
|
-
$[
|
|
121
|
-
$[
|
|
122
|
-
$[
|
|
123
|
-
$[
|
|
124
|
-
$[
|
|
125
|
-
$[
|
|
126
|
-
|
|
127
|
-
} else t1 = $[22];
|
|
117
|
+
$[15] = gradation;
|
|
118
|
+
$[16] = orientation;
|
|
119
|
+
$[17] = thumbStyles;
|
|
120
|
+
$[18] = thumbTokens;
|
|
121
|
+
$[19] = trackStyles;
|
|
122
|
+
$[20] = t1;
|
|
123
|
+
} else t1 = $[20];
|
|
128
124
|
let t2;
|
|
129
|
-
if ($[
|
|
125
|
+
if ($[21] !== T0 || $[22] !== extractedStyles || $[23] !== orientation || $[24] !== ref || $[25] !== t0 || $[26] !== t1) {
|
|
130
126
|
t2 = /* @__PURE__ */ jsx(T0, {
|
|
131
127
|
...t0,
|
|
132
128
|
ref,
|
|
@@ -134,14 +130,14 @@ function Slider(props, ref) {
|
|
|
134
130
|
styles: extractedStyles,
|
|
135
131
|
children: t1
|
|
136
132
|
});
|
|
137
|
-
$[
|
|
138
|
-
$[
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
142
|
-
$[
|
|
143
|
-
$[
|
|
144
|
-
} else t2 = $[
|
|
133
|
+
$[21] = T0;
|
|
134
|
+
$[22] = extractedStyles;
|
|
135
|
+
$[23] = orientation;
|
|
136
|
+
$[24] = ref;
|
|
137
|
+
$[25] = t0;
|
|
138
|
+
$[26] = t1;
|
|
139
|
+
$[27] = t2;
|
|
140
|
+
} else t2 = $[27];
|
|
145
141
|
return t2;
|
|
146
142
|
}
|
|
147
143
|
const _Slider = forwardRef(Slider);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.js","names":["OUTER_STYLES","Styles","Tokens","forwardRef","mergeProps","extractStyles","Gradation","SliderBase","SliderBaseChildArguments","SliderBaseProps","SliderThumb","SliderTrack","FocusableRef","CubeSliderBaseProps","CubeSliderProps","gradation","trackStyles","thumbStyles","thumbTokens","Slider","props","ref","$","_c","T0","extractedStyles","
|
|
1
|
+
{"version":3,"file":"Slider.js","names":["OUTER_STYLES","Styles","Tokens","forwardRef","mergeProps","extractStyles","Gradation","SliderBase","SliderBaseChildArguments","SliderBaseProps","SliderThumb","SliderTrack","FocusableRef","CubeSliderBaseProps","CubeSliderProps","gradation","trackStyles","thumbStyles","thumbTokens","Slider","props","ref","$","_c","T0","extractedStyles","orientation","t0","onChange","onChangeEnd","value","defaultValue","getValueLabel","isDisabled","styles","t1","t2","t3","t4","t5","otherProps","t6","v","t7","v_0","t8","t9","v_1","undefined","baseProps","trackRef","inputRef","state","isInvalid","isValid","_Slider","__Slider","Object","assign","cubeInputType","displayName","_c","SliderBase"],"sources":["../../../../src/components/fields/Slider/Slider.tsx"],"sourcesContent":["import { OUTER_STYLES, Styles, Tokens } from '@tenphi/tasty';\nimport { forwardRef } from 'react';\n\nimport { mergeProps } from '../../../utils/react/index';\nimport { extractStyles } from '../../../utils/styles';\n\nimport { Gradation } from './Gradation';\nimport {\n SliderBase,\n SliderBaseChildArguments,\n SliderBaseProps,\n} from './SliderBase';\nimport { SliderThumb } from './SliderThumb';\nimport { SliderTrack } from './SliderTrack';\n\nimport type { FocusableRef } from '@react-types/shared';\nimport type { CubeSliderBaseProps } from './types';\n\nexport interface CubeSliderProps extends CubeSliderBaseProps<number> {\n gradation?: string[];\n /** Custom styles for the track element */\n trackStyles?: Styles;\n /** Custom styles for the thumb element */\n thumbStyles?: Styles;\n /** Custom tokens for the thumb element (e.g., #slider-thumb for fill color) */\n thumbTokens?: Tokens;\n}\n\nfunction Slider(props: CubeSliderProps, ref: FocusableRef<HTMLDivElement>) {\n const {\n onChange,\n onChangeEnd,\n value,\n defaultValue,\n getValueLabel,\n isDisabled,\n styles,\n gradation,\n orientation,\n trackStyles,\n thumbStyles,\n thumbTokens,\n ...otherProps\n } = props;\n\n let baseProps: Omit<SliderBaseProps, 'children'> = {\n ...otherProps,\n // Only when set: `useProviderProps` spreads props over the form context,\n // so an explicit `undefined` would enable a slider in a disabled form.\n ...(isDisabled === undefined ? null : { isDisabled }),\n // Normalize `value: number[]` to `value: number`\n value: value != null ? [value] : undefined,\n defaultValue: defaultValue != null ? [defaultValue] : undefined,\n onChange: (v: number[]): void => {\n onChange?.(v[0]);\n },\n onChangeEnd: (v: number[]): void => {\n onChangeEnd?.(v[0]);\n },\n getValueLabel: getValueLabel ? ([v]) => getValueLabel(v) : undefined,\n };\n\n const extractedStyles = extractStyles(otherProps, OUTER_STYLES, styles);\n\n return (\n <SliderBase\n {...mergeProps(otherProps, baseProps)}\n ref={ref}\n orientation={orientation}\n styles={extractedStyles}\n >\n {({\n trackRef,\n inputRef,\n state,\n isInvalid,\n isValid,\n }: SliderBaseChildArguments) => {\n return (\n <>\n <Gradation state={state} ranges={[0, 1]} values={gradation} />\n <SliderTrack\n state={state}\n isDisabled={state.isDisabled}\n isInvalid={isInvalid}\n isValid={isValid}\n orientation={orientation}\n styles={trackStyles}\n />\n <SliderThumb\n index={0}\n state={state}\n inputRef={inputRef}\n trackRef={trackRef}\n isDisabled={state.isDisabled}\n isInvalid={isInvalid}\n isValid={isValid}\n styles={thumbStyles}\n tokens={thumbTokens}\n />\n </>\n );\n }}\n </SliderBase>\n );\n}\n\nconst _Slider = forwardRef(Slider);\n\nconst __Slider = Object.assign(_Slider as typeof _Slider, {\n cubeInputType: 'Number',\n displayName: 'Slider',\n});\n\nexport { __Slider as Slider };\n"],"mappings":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-50fa86a | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { Text as _Text } from "../../content/Text.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-50fa86a | Cube Dev Team */
|
|
2
2
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
3
3
|
import { getValidationMods } from "../../form/validation/resolve-validation-props.js";
|
|
4
4
|
import { SliderThumbElement } from "./elements.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-50fa86a | Cube Dev Team */
|
|
2
2
|
import { getValidationMods } from "../../form/validation/resolve-validation-props.js";
|
|
3
3
|
import { SliderTrackContainerElement } from "./elements.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-50fa86a | Cube Dev Team */
|
|
2
2
|
import { tasty } from "@tenphi/tasty";
|
|
3
3
|
//#region src/components/fields/Slider/elements.ts
|
|
4
4
|
const SliderThumbElement = tasty({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-50fa86a | Cube Dev Team */
|
|
2
2
|
import { RangeSlider as __RangeSlider } from "./RangeSlider.js";
|
|
3
3
|
import { Slider as __Slider } from "./Slider.js";
|
|
4
4
|
import { HueSlider as __HueSlider } from "./HueSlider.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-50fa86a | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { useId as useId$2 } from "../../../utils/react/useId.js";
|
|
4
4
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
@@ -53,6 +53,8 @@ export interface CubeTagInputProps<T = object> extends BasePropsWithoutChildren,
|
|
|
53
53
|
/**
|
|
54
54
|
* Called when a key is pressed in the input, before the component handles it.
|
|
55
55
|
* Call `e.preventDefault()` to stop the component from handling the key.
|
|
56
|
+
* `Escape` and `Tab` go on to a surrounding dialog unless TagInput acts on
|
|
57
|
+
* them or the handler prevents them.
|
|
56
58
|
*/
|
|
57
59
|
onKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void;
|
|
58
60
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-50fa86a | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { useCombinedRefs } from "../../../utils/react/useCombinedRefs.js";
|
|
@@ -10,6 +10,7 @@ import { useFormatter } from "../../../i18n/useFormatter.js";
|
|
|
10
10
|
import { DirectionIcon } from "../../../icons/DirectionIcon.js";
|
|
11
11
|
import { generateRandomId } from "../../../utils/random.js";
|
|
12
12
|
import { CloseIcon } from "../../../icons/CloseIcon.js";
|
|
13
|
+
import { settleOverlayKey } from "../../../utils/react/overlayKeyPropagation.js";
|
|
13
14
|
import { castNullableArrayValue } from "../../../utils/react/nullableValue.js";
|
|
14
15
|
import { withFieldChrome } from "../../form/field-chrome.js";
|
|
15
16
|
import { useFieldProps } from "../../form/Form/use-field/use-field-props.js";
|
|
@@ -723,14 +724,16 @@ function TagInput(props, ref) {
|
|
|
723
724
|
const handleEscapeKey = useEvent(t23);
|
|
724
725
|
const handleKeyDown = useEvent((e_5) => {
|
|
725
726
|
onKeyDown?.(e_5);
|
|
727
|
+
if (!e_5.defaultPrevented && isInteractive) {
|
|
728
|
+
if (e_5.key === "ArrowDown" || e_5.key === "ArrowUp") handleArrowKey(e_5);
|
|
729
|
+
else if ((e_5.key === "Home" || e_5.key === "End") && shouldShowPopover) handleEdgeKey(e_5);
|
|
730
|
+
else if (e_5.key === "Backspace" && !draft && uniqueValues.some((value_4) => !isTagLocked(value_4))) handleBackspaceKey(e_5);
|
|
731
|
+
else if (e_5.key === "Enter") handleEnterKey(e_5);
|
|
732
|
+
else if (delimiters.includes(e_5.key)) handleDelimiterKey(e_5);
|
|
733
|
+
else if (e_5.key === "Escape") handleEscapeKey(e_5);
|
|
734
|
+
}
|
|
726
735
|
isTabbingRef.current = e_5.key === "Tab" && !e_5.defaultPrevented;
|
|
727
|
-
|
|
728
|
-
if (e_5.key === "ArrowDown" || e_5.key === "ArrowUp") handleArrowKey(e_5);
|
|
729
|
-
else if ((e_5.key === "Home" || e_5.key === "End") && shouldShowPopover) handleEdgeKey(e_5);
|
|
730
|
-
else if (e_5.key === "Backspace" && !draft && uniqueValues.some((value_4) => !isTagLocked(value_4))) handleBackspaceKey(e_5);
|
|
731
|
-
else if (e_5.key === "Enter") handleEnterKey(e_5);
|
|
732
|
-
else if (delimiters.includes(e_5.key)) handleDelimiterKey(e_5);
|
|
733
|
-
else if (e_5.key === "Escape") handleEscapeKey(e_5);
|
|
736
|
+
settleOverlayKey(e_5);
|
|
734
737
|
});
|
|
735
738
|
const handleInputChange = useEvent((next_3) => {
|
|
736
739
|
setTagError(null);
|