@cube-dev/ui-kit 0.0.0-canary-afc40ee → 0.0.0-canary-360c011
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/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/use-item-table-column-widths.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-drag-drop.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-pagination.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-selection.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-sort.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-tree-model.js +1 -1
- package/dist/components/data/TableBase/ColumnResizer.js +1 -1
- package/dist/components/data/TableBase/RowCollection.js +1 -1
- package/dist/components/data/TableBase/TableHeaderCell.js +1 -1
- package/dist/components/data/TableBase/TableRow.js +1 -1
- package/dist/components/data/TableBase/TableRowLink.js +1 -1
- package/dist/components/data/TableBase/TableView.js +1 -1
- package/dist/components/data/TableBase/TreeGridTable.js +1 -1
- package/dist/components/data/TableBase/column-header.js +1 -1
- package/dist/components/data/TableBase/column-menu.js +1 -1
- package/dist/components/data/TableBase/column-styles.js +1 -1
- package/dist/components/data/TableBase/column-tint.js +1 -1
- package/dist/components/data/TableBase/row-menu.js +1 -1
- package/dist/components/data/TableBase/styled.js +1 -1
- package/dist/components/data/TableBase/table-body-sections.js +1 -1
- package/dist/components/data/TableBase/table-tree.js +1 -1
- package/dist/components/data/TableBase/types.js +1 -1
- package/dist/components/data/TableBase/use-cell-selection.js +0 -0
- package/dist/components/data/TableBase/use-column-menu.js +1 -1
- package/dist/components/data/TableBase/use-column-order.js +1 -1
- package/dist/components/data/TableBase/use-column-window.js +1 -1
- package/dist/components/data/TableBase/use-container-width.js +1 -1
- package/dist/components/data/TableBase/use-row-move-animation.js +1 -1
- package/dist/components/data/TableBase/use-scrollability.js +1 -1
- package/dist/components/data/TableBase/use-table-columns.js +1 -1
- package/dist/components/data/TableBase/use-table-search.js +1 -1
- package/dist/components/data/TableBase/use-table-selection.js +1 -1
- package/dist/components/data/TableBase/use-table-sort.js +1 -1
- package/dist/components/data/TableBase/use-table-sorts.js +1 -1
- package/dist/components/data/TableBase/use-table-storage.js +1 -1
- package/dist/components/data/TableBase/use-table-tooltip-refresh.js +1 -1
- package/dist/components/data/TableBase/use-table-tree-state.js +1 -1
- package/dist/components/fields/Checkbox/Checkbox.js +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.js +32 -38
- package/dist/components/fields/Checkbox/CheckboxGroup.js.map +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 +136 -162
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js.map +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 +1 -1
- package/dist/components/fields/FilterListBox/styled.js +1 -1
- package/dist/components/fields/FilterPicker/FilterPicker.js +1 -1
- package/dist/components/fields/FilterPicker/FilterTree.js +1 -1
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
- package/dist/components/fields/ListBox/ListBox.js +1 -1
- package/dist/components/fields/ListBox/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.js +1 -1
- package/dist/components/fields/RadioGroup/Radio.js +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.js +66 -63
- package/dist/components/fields/RadioGroup/RadioGroup.js.map +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/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/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 +9 -4
- package/dist/components/navigation/Tabs/Tabs.js.map +1 -1
- package/dist/components/navigation/Tabs/TabsAction.js +1 -1
- package/dist/components/navigation/Tabs/TabsContext.js +1 -1
- package/dist/components/navigation/Tabs/popover-placement.js +1 -1
- package/dist/components/navigation/Tabs/segmented-styles.js +1 -1
- package/dist/components/navigation/Tabs/styled.js +1 -1
- package/dist/components/navigation/Tabs/types.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-indicator.js +49 -99
- package/dist/components/navigation/Tabs/use-tab-indicator.js.map +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/item-themes.js.map +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 +2 -2
- 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 +2 -11
- package/dist/tokens/palette.js.map +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/disabledProps.js +1 -1
- package/dist/utils/react/forwardRefWithGenerics.js +1 -1
- package/dist/utils/react/index.js +1 -1
- package/dist/utils/react/interactions.js +1 -1
- package/dist/utils/react/isTextOnly.js +1 -1
- package/dist/utils/react/mapProps.js +1 -1
- package/dist/utils/react/mergeProps.js +1 -1
- package/dist/utils/react/nullableValue.js +1 -1
- package/dist/utils/react/overlayKeyPropagation.js +1 -1
- package/dist/utils/react/programmaticFocus.js +1 -1
- package/dist/utils/react/resolveIcon.js +1 -1
- package/dist/utils/react/sharedStore.js +1 -1
- package/dist/utils/react/useBufferedValue.js +1 -1
- package/dist/utils/react/useCombinedRefs.js +1 -1
- package/dist/utils/react/useControlledFocusVisible.js +1 -1
- package/dist/utils/react/useEventBus.js +1 -1
- package/dist/utils/react/useId.js +1 -1
- package/dist/utils/react/useIsDarwin.js +1 -1
- package/dist/utils/react/useKeySymbols.js +1 -1
- package/dist/utils/react/useLayoutEffect.d.ts +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 +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/Theming.md +0 -2
- package/docs/components/fields/ColorSwatchGroup.md +5 -7
- package/docs/components/fields/ToggleGroup.md +0 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-360c011 | Cube Dev Team */
|
|
2
2
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
3
3
|
import { Provider } from "../../../provider.js";
|
|
4
4
|
import { castNullableArrayValue } from "../../../utils/react/nullableValue.js";
|
|
@@ -8,7 +8,7 @@ import { FormScopeMask } from "../../form/Form/FormContext.js";
|
|
|
8
8
|
import { useFieldProps } from "../../form/Form/use-field/use-field-props.js";
|
|
9
9
|
import { CheckboxGroupContext } from "./context.js";
|
|
10
10
|
import { c } from "react/compiler-runtime";
|
|
11
|
-
import {
|
|
11
|
+
import { tasty } from "@tenphi/tasty";
|
|
12
12
|
import { forwardRef } from "react";
|
|
13
13
|
import { jsx } from "react/jsx-runtime";
|
|
14
14
|
import { useCheckboxGroup } from "react-aria";
|
|
@@ -32,7 +32,7 @@ const CheckGroupElement = tasty({
|
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
function CheckboxGroup(rawProps, ref) {
|
|
35
|
-
const $ = c(
|
|
35
|
+
const $ = c(21);
|
|
36
36
|
let t0;
|
|
37
37
|
if ($[0] !== rawProps) {
|
|
38
38
|
t0 = castNullableArrayValue(rawProps);
|
|
@@ -49,10 +49,9 @@ function CheckboxGroup(rawProps, ref) {
|
|
|
49
49
|
$[2] = t1;
|
|
50
50
|
} else t1 = $[2];
|
|
51
51
|
const props = useFieldProps(rawProps, t1);
|
|
52
|
-
const {
|
|
52
|
+
const { id, isDisabled, isReadOnly, isInvalid, isValid, children, orientation: t2, labelProps: baseLabelProps, inputStyles } = props;
|
|
53
53
|
const orientation = t2 === void 0 ? "vertical" : t2;
|
|
54
54
|
const domRef = useObjectRef(ref);
|
|
55
|
-
const { onChange: _onChange, onFocus: _onFocus, onBlur: _onBlur, onFocusChange: _onFocusChange, isDisabled: _isDisabled, mods: _mods, ...baseProps } = filterBaseProps(props, { eventProps: true });
|
|
56
55
|
const { styles, field } = splitFieldLayout(props, { defaultStyles: inputStyles });
|
|
57
56
|
const state = useCheckboxGroupState(props);
|
|
58
57
|
let t3;
|
|
@@ -67,64 +66,59 @@ function CheckboxGroup(rawProps, ref) {
|
|
|
67
66
|
const { groupProps, labelProps } = useCheckboxGroup(t3, state);
|
|
68
67
|
const t4 = orientation === "horizontal";
|
|
69
68
|
let t5;
|
|
70
|
-
if ($[5] !==
|
|
71
|
-
t5 = {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
$[5] = mods;
|
|
76
|
-
$[6] = t4;
|
|
77
|
-
$[7] = t5;
|
|
78
|
-
} else t5 = $[7];
|
|
69
|
+
if ($[5] !== t4) {
|
|
70
|
+
t5 = { horizontal: t4 };
|
|
71
|
+
$[5] = t4;
|
|
72
|
+
$[6] = t5;
|
|
73
|
+
} else t5 = $[6];
|
|
79
74
|
let t6;
|
|
80
|
-
if ($[
|
|
75
|
+
if ($[7] !== isDisabled || $[8] !== isInvalid || $[9] !== isValid) {
|
|
81
76
|
t6 = {
|
|
82
77
|
isDisabled,
|
|
83
78
|
isInvalid,
|
|
84
79
|
isValid
|
|
85
80
|
};
|
|
86
|
-
$[
|
|
87
|
-
$[
|
|
88
|
-
$[
|
|
89
|
-
$[
|
|
90
|
-
} else t6 = $[
|
|
81
|
+
$[7] = isDisabled;
|
|
82
|
+
$[8] = isInvalid;
|
|
83
|
+
$[9] = isValid;
|
|
84
|
+
$[10] = t6;
|
|
85
|
+
} else t6 = $[10];
|
|
91
86
|
let t7;
|
|
92
|
-
if ($[
|
|
87
|
+
if ($[11] !== children || $[12] !== state) {
|
|
93
88
|
t7 = /* @__PURE__ */ jsx(CheckboxGroupContext.Provider, {
|
|
94
89
|
value: state,
|
|
95
90
|
children
|
|
96
91
|
});
|
|
97
|
-
$[
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
100
|
-
} else t7 = $[
|
|
92
|
+
$[11] = children;
|
|
93
|
+
$[12] = state;
|
|
94
|
+
$[13] = t7;
|
|
95
|
+
} else t7 = $[13];
|
|
101
96
|
let t8;
|
|
102
|
-
if ($[
|
|
97
|
+
if ($[14] !== isDisabled || $[15] !== isReadOnly || $[16] !== t7) {
|
|
103
98
|
t8 = /* @__PURE__ */ jsx(Provider, {
|
|
104
99
|
isDisabled,
|
|
105
100
|
isReadOnly,
|
|
106
101
|
children: t7
|
|
107
102
|
});
|
|
108
|
-
$[
|
|
109
|
-
$[
|
|
110
|
-
$[
|
|
111
|
-
$[
|
|
112
|
-
} else t8 = $[
|
|
103
|
+
$[14] = isDisabled;
|
|
104
|
+
$[15] = isReadOnly;
|
|
105
|
+
$[16] = t7;
|
|
106
|
+
$[17] = t8;
|
|
107
|
+
} else t8 = $[17];
|
|
113
108
|
let t9;
|
|
114
|
-
if ($[
|
|
109
|
+
if ($[18] !== t6 || $[19] !== t8) {
|
|
115
110
|
t9 = /* @__PURE__ */ jsx(FormScopeMask, {
|
|
116
111
|
value: t6,
|
|
117
112
|
children: t8
|
|
118
113
|
});
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
121
|
-
$[
|
|
122
|
-
} else t9 = $[
|
|
114
|
+
$[18] = t6;
|
|
115
|
+
$[19] = t8;
|
|
116
|
+
$[20] = t9;
|
|
117
|
+
} else t9 = $[20];
|
|
123
118
|
const radioGroup = /* @__PURE__ */ jsx(CheckGroupElement, {
|
|
124
119
|
ref: domRef,
|
|
125
|
-
...
|
|
120
|
+
...groupProps,
|
|
126
121
|
id,
|
|
127
|
-
qa: qa || "CheckboxGroup",
|
|
128
122
|
styles,
|
|
129
123
|
mods: t5,
|
|
130
124
|
children: t9
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxGroup.js","names":["useObjectRef","BaseProps","
|
|
1
|
+
{"version":3,"file":"CheckboxGroup.js","names":["useObjectRef","BaseProps","Styles","tasty","forwardRef","AriaCheckboxGroupProps","useCheckboxGroup","useCheckboxGroupState","Provider","FieldBaseProps","mergeProps","castNullableArrayValue","WithNullableValue","FieldLayoutStyleProps","splitFieldLayout","FormScopeMask","useFieldProps","wrapWithField","CheckboxGroupContext","CheckGroupElement","qa","styles","display","placeItems","placeContent","flow","horizontal","gap","CubeCheckboxGroupProps","Omit","orientation","inputStyles","CheckboxGroup","rawProps","ref","$","_c","t0","t1","Symbol","for","defaultValidationTrigger","valuePropsMapper","_temp","props","id","isDisabled","isReadOnly","isInvalid","isValid","children","t2","labelProps","baseLabelProps","undefined","domRef","field","defaultStyles","state","t3","form","groupProps","t4","t5","t6","t7","t8","t9","radioGroup","value","onChange","_CheckboxGroup","cubeInputType","displayName","_c","mergeProps"],"sources":["../../../../src/components/fields/Checkbox/CheckboxGroup.tsx"],"sourcesContent":["import { useObjectRef } from '@react-aria/utils';\nimport { BaseProps, Styles, tasty } from '@tenphi/tasty';\nimport { forwardRef } from 'react';\nimport { AriaCheckboxGroupProps, useCheckboxGroup } from 'react-aria';\nimport { useCheckboxGroupState } from 'react-stately';\n\nimport { Provider } from '../../../provider';\nimport { FieldBaseProps } from '../../../shared/form';\nimport { mergeProps } from '../../../utils/react/mergeProps';\nimport {\n castNullableArrayValue,\n WithNullableValue,\n} from '../../../utils/react/nullableValue';\nimport {\n FieldLayoutStyleProps,\n splitFieldLayout,\n} from '../../form/field-layout';\nimport { FormScopeMask } from '../../form/Form/FormContext';\nimport { useFieldProps } from '../../form/Form/use-field/use-field-props';\nimport { wrapWithField } from '../../form/wrapper';\n\nimport { CheckboxGroupContext } from './context';\n\nconst CheckGroupElement = tasty({\n qa: 'CheckboxGroup',\n styles: {\n display: 'flex',\n placeItems: 'start',\n placeContent: 'start',\n flow: {\n '': 'column',\n horizontal: 'row wrap',\n },\n gap: {\n '': '1x',\n horizontal: '1x 2x',\n },\n },\n});\n\nexport interface CubeCheckboxGroupProps\n extends\n BaseProps,\n Omit<AriaCheckboxGroupProps, 'errorMessage' | 'form' | 'name'>,\n FieldBaseProps<readonly string[] | null | undefined>,\n FieldLayoutStyleProps {\n orientation?: 'vertical' | 'horizontal';\n inputStyles?: Styles;\n}\n\nfunction CheckboxGroup(\n rawProps: WithNullableValue<CubeCheckboxGroupProps>,\n ref,\n) {\n rawProps = castNullableArrayValue(rawProps);\n let props = useFieldProps(rawProps, {\n defaultValidationTrigger: 'onChange',\n valuePropsMapper: ({ value, onChange }) => ({\n value: value != null ? value : [],\n onChange: onChange,\n }),\n });\n\n let {\n id,\n isDisabled,\n isReadOnly,\n isRequired,\n necessityIndicator,\n label,\n extra,\n isInvalid,\n isValid,\n children,\n orientation = 'vertical',\n message,\n description,\n labelStyles,\n labelProps: baseLabelProps,\n labelSuffix,\n inputStyles,\n form,\n } = props;\n let domRef = useObjectRef(ref);\n\n // `inputStyles` styles the group too; `styles` goes over it.\n const { styles, field } = splitFieldLayout(props, {\n defaultStyles: inputStyles,\n });\n\n let state = useCheckboxGroupState(props);\n // React Aria hands `form` to every item's input as the id of its `<form>`,\n // so the form instance would render as `form=\"[object Object]\"` on each.\n let { groupProps, labelProps } = useCheckboxGroup(\n { ...props, form: undefined },\n state,\n );\n\n // The group owns its semantics in both presentations: `isBare` omits the\n // field wrapper, so putting them there would lose its role and name.\n let radioGroup = (\n <CheckGroupElement\n ref={domRef}\n {...groupProps}\n id={id}\n styles={styles}\n mods={{\n horizontal: orientation === 'horizontal',\n }}\n >\n <FormScopeMask\n value={{\n isDisabled,\n isInvalid,\n isValid,\n }}\n >\n {/* Each checkbox is a field that reads the provider before the form\n context, so the group's own state has to reach it here to beat an\n enclosing disabled or read-only form. `<Provider>` skips\n `undefined`, so a group that sets nothing keeps the form's state. */}\n <Provider isDisabled={isDisabled} isReadOnly={isReadOnly}>\n <CheckboxGroupContext.Provider value={state}>\n {children}\n </CheckboxGroupContext.Provider>\n </Provider>\n </FormScopeMask>\n </CheckGroupElement>\n );\n\n return wrapWithField(radioGroup, {\n ...props,\n ...field,\n labelProps: mergeProps(baseLabelProps, labelProps),\n });\n}\n\n/**\n * Checkbox groups allow users to select any number of options from a list.\n * All possible options are exposed up front for users to compare.\n */\nconst _CheckboxGroup = forwardRef(CheckboxGroup);\n\n(_CheckboxGroup as any).cubeInputType = 'CheckboxGroup';\n_CheckboxGroup.displayName = 'CheckboxGroup';\n\nexport { _CheckboxGroup as CheckboxGroup };\n"],"mappings":";;;;;;;;;;;;;;;;;AAuBA,MAAMmB,oBAAoBhB,MAAM;CAC9BiB,IAAI;CACJC,QAAQ;EACNC,SAAS;EACTC,YAAY;EACZC,cAAc;EACdC,MAAM;GACJ,IAAI;GACJC,YAAY;EACd;EACAC,KAAK;GACH,IAAI;GACJD,YAAY;EACd;CACF;AACF,CAAC;AAYD,SAAAM,cAAAC,UAAAC,KAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAC;CAAA,IAAAF,EAAA,OAAAF,UAAA;EAIaI,KAAA1B,uBAAuBsB,QAAQ;EAACE,EAAA,KAAAF;EAAAE,EAAA,KAAAE;CAAA,OAAAA,KAAAF,EAAA;CAA3CF,WAAWA;CAAH,IAAAK;CAAA,IAAAH,EAAA,OAAAI,OAAAC,IAAA,2BAAA,GAAA;EAC4BF,KAAA;GAAAG,0BACR;GAAUC,kBAClBC;EAIpB;EAACR,EAAA,KAAAG;CAAA,OAAAA,KAAAH,EAAA;CAND,MAAAS,QAAY5B,cAAciB,UAAUK,EAMnC;CAED,MAAA,EAAAO,IAAAC,YAAAC,YAAAC,WAAAC,SAAAC,UAAApB,aAAAqB,IAAAC,YAAAC,gBAAAtB,gBAmBIa;CARF,MAAAd,cAAAqB,OAAAG,KAAAA,IAAA,aAAAH;CASF,MAAAI,SAAavD,aAAakC,GAAG;CAG7B,MAAA,EAAAb,QAAAmC,UAA0B1C,iBAAiB8B,OAAO,EAAAa,eACjC1B,YACjB,CAAC;CAED,MAAA2B,QAAYnD,sBAAsBqC,KAAK;CAAE,IAAAe;CAAA,IAAAxB,EAAA,OAAAS,OAAA;EAIvCe,KAAA;GAAA,GAAKf;GAAKgB,MAAQN,KAAAA;EAAU;EAACnB,EAAA,KAAAS;EAAAT,EAAA,KAAAwB;CAAA,OAAAA,KAAAxB,EAAA;CAD/B,MAAA,EAAA0B,YAAAT,eAAiC9C,iBAC/BqD,IACAD,KACF;CAWkB,MAAAI,KAAAhC,gBAAgB;CAAY,IAAAiC;CAAA,IAAA5B,EAAA,OAAA2B,IAAA;EADpCC,KAAA,EAAArC,YACQoC,GACd;EAAC3B,EAAA,KAAA2B;EAAA3B,EAAA,KAAA4B;CAAA,OAAAA,KAAA5B,EAAA;CAAA,IAAA6B;CAAA,IAAA7B,EAAA,OAAAW,cAAAX,EAAA,OAAAa,aAAAb,EAAA,OAAAc,SAAA;EAGQe,KAAA;GAAAlB;GAAAE;GAAAC;EAIP;EAACd,EAAA,KAAAW;EAAAX,EAAA,KAAAa;EAAAb,EAAA,KAAAc;EAAAd,EAAA,MAAA6B;CAAA,OAAAA,KAAA7B,EAAA;CAAA,IAAA8B;CAAA,IAAA9B,EAAA,QAAAe,YAAAf,EAAA,QAAAuB,OAAA;EAOCO,KAAA,oBAAA,qBAAA,UAAA;GAAsCP,OAAAA;GACnCR;EACH,CAAA;EAAgCf,EAAA,MAAAe;EAAAf,EAAA,MAAAuB;EAAAvB,EAAA,MAAA8B;CAAA,OAAAA,KAAA9B,EAAA;CAAA,IAAA+B;CAAA,IAAA/B,EAAA,QAAAW,cAAAX,EAAA,QAAAY,cAAAZ,EAAA,QAAA8B,IAAA;EAHlCC,KAAA,oBAAC,UAAD;GAAsBpB;GAAwBC;GAC5CkB,UAAAA;EADO,CAAA;EAIE9B,EAAA,MAAAW;EAAAX,EAAA,MAAAY;EAAAZ,EAAA,MAAA8B;EAAA9B,EAAA,MAAA+B;CAAA,OAAAA,KAAA/B,EAAA;CAAA,IAAAgC;CAAA,IAAAhC,EAAA,QAAA6B,MAAA7B,EAAA,QAAA+B,IAAA;EAfbC,KAAA,oBAAC,eAAD;GACS,OAAAH;GAUPE,UAAAA;EAXY,CAAA;EAgBE/B,EAAA,MAAA6B;EAAA7B,EAAA,MAAA+B;EAAA/B,EAAA,MAAAgC;CAAA,OAAAA,KAAAhC,EAAA;CA1BpB,MAAAiC,aACE,oBAAC,mBAAD;EACOb,KAAAA;EAAM,GACPM;EACAhB;EACIxB;EACF,MAAA0C;EAINI,UAAAA;CATgB,CAAA;CA2BlB,OAEKlD,cAAcmD,YAAY;EAAA,GAC5BxB;EAAK,GACLY;EAAKJ,YACI1C,aAAW2C,gBAAgBD,UAAU;CACnD,CAAC;AAAC;;;;;AApFJ,SAAAT,MAAAN,IAAA;CAOuB,MAAA,EAAAgC,OAAAC,aAAAjC;CAAmB,OAAM;EAAAgC,OACnCA,SAAS,OAATA,QAAA,CAAA;EAA0BC;CAEnC;AAAC;AAiFL,MAAMC,iBAAiBnE,WAAW4B,aAAa;AAE/C,eAAwBwC,gBAAgB;AACxCD,eAAeE,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-360c011 | Cube Dev Team */
|
|
2
2
|
import { createContext } from "react";
|
|
3
3
|
//#region src/components/fields/Checkbox/context.ts
|
|
4
4
|
const CheckboxGroupContext = createContext(null);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-360c011 | Cube Dev Team */
|
|
2
2
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
3
3
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
4
4
|
import { ItemActionProvider } from "../../actions/ItemActionContext.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-360c011 | Cube Dev Team */
|
|
2
2
|
import { Text as _Text } from "../../content/Text.js";
|
|
3
3
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
4
4
|
import { useWarn } from "../../../_internal/hooks/use-warn.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-360c011 | Cube Dev Team */
|
|
2
2
|
import { extractStyles } from "../../../utils/styles.js";
|
|
3
3
|
import { parseColor, toHex } from "../color/color.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-360c011 | Cube Dev Team */
|
|
2
2
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
3
3
|
import { useEvent } from "../../../_internal/hooks/use-event.js";
|
|
4
4
|
import { useFocus as useFocus$1 } from "../../../utils/react/interactions.js";
|
|
@@ -221,7 +221,7 @@ function Swatch(t0) {
|
|
|
221
221
|
* ambiguous.
|
|
222
222
|
*/
|
|
223
223
|
const ColorSwatchGroup = forwardRef(function ColorSwatchGroup(allProps, ref) {
|
|
224
|
-
const $ = c(
|
|
224
|
+
const $ = c(59);
|
|
225
225
|
const { t } = useI18n();
|
|
226
226
|
let t0;
|
|
227
227
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -232,7 +232,7 @@ const ColorSwatchGroup = forwardRef(function ColorSwatchGroup(allProps, ref) {
|
|
|
232
232
|
$[0] = t0;
|
|
233
233
|
} else t0 = $[0];
|
|
234
234
|
const props = useFieldProps(allProps, t0);
|
|
235
|
-
const { qa, colors: t1, value: value_0, defaultValue, onChange: onChange_0, format: t2, columns, allowCustom, size: t3, isDisabled, isInvalid, isValid, swatchStyles, "aria-label": ariaLabel
|
|
235
|
+
const { qa, colors: t1, value: value_0, defaultValue, onChange: onChange_0, format: t2, columns, allowCustom, size: t3, isDisabled, isInvalid, isValid, swatchStyles, "aria-label": ariaLabel } = props;
|
|
236
236
|
let t4;
|
|
237
237
|
if ($[1] !== t1) {
|
|
238
238
|
t4 = t1 === void 0 ? [] : t1;
|
|
@@ -242,29 +242,11 @@ const ColorSwatchGroup = forwardRef(function ColorSwatchGroup(allProps, ref) {
|
|
|
242
242
|
const colors = t4;
|
|
243
243
|
const format = t2 === void 0 ? "hex" : t2;
|
|
244
244
|
const size = t3 === void 0 ? "medium" : t3;
|
|
245
|
-
const { qaVal, className, style, theme, element } = props;
|
|
246
|
-
let t5;
|
|
247
|
-
if ($[3] !== className || $[4] !== element || $[5] !== qaVal || $[6] !== style || $[7] !== theme) {
|
|
248
|
-
t5 = {
|
|
249
|
-
qaVal,
|
|
250
|
-
className,
|
|
251
|
-
style,
|
|
252
|
-
theme,
|
|
253
|
-
element
|
|
254
|
-
};
|
|
255
|
-
$[3] = className;
|
|
256
|
-
$[4] = element;
|
|
257
|
-
$[5] = qaVal;
|
|
258
|
-
$[6] = style;
|
|
259
|
-
$[7] = theme;
|
|
260
|
-
$[8] = t5;
|
|
261
|
-
} else t5 = $[8];
|
|
262
|
-
const outerProps = t5;
|
|
263
245
|
const { styles, field } = splitFieldLayout(props);
|
|
264
246
|
const isInsidePopover = useIsInsideColorPopover();
|
|
265
247
|
const showCustom = allowCustom && !isInsidePopover;
|
|
266
|
-
let
|
|
267
|
-
if ($[
|
|
248
|
+
let t5;
|
|
249
|
+
if ($[3] !== colors || $[4] !== format) {
|
|
268
250
|
const seen = /* @__PURE__ */ new Map();
|
|
269
251
|
for (const entry of colors) {
|
|
270
252
|
const raw = typeof entry === "string" ? entry : entry.color;
|
|
@@ -277,134 +259,128 @@ const ColorSwatchGroup = forwardRef(function ColorSwatchGroup(allProps, ref) {
|
|
|
277
259
|
label: (typeof entry === "string" ? void 0 : entry.label) ?? formatColor(parsed, format)
|
|
278
260
|
});
|
|
279
261
|
}
|
|
280
|
-
|
|
281
|
-
$[
|
|
282
|
-
$[
|
|
283
|
-
$[
|
|
284
|
-
} else
|
|
285
|
-
const swatches =
|
|
286
|
-
let
|
|
287
|
-
if ($[
|
|
288
|
-
|
|
289
|
-
$[
|
|
290
|
-
$[
|
|
291
|
-
} else
|
|
292
|
-
const [internalValue, setInternalValue] = useState(
|
|
262
|
+
t5 = [...seen.values()];
|
|
263
|
+
$[3] = colors;
|
|
264
|
+
$[4] = format;
|
|
265
|
+
$[5] = t5;
|
|
266
|
+
} else t5 = $[5];
|
|
267
|
+
const swatches = t5;
|
|
268
|
+
let t6;
|
|
269
|
+
if ($[6] !== defaultValue) {
|
|
270
|
+
t6 = () => defaultValue ?? null;
|
|
271
|
+
$[6] = defaultValue;
|
|
272
|
+
$[7] = t6;
|
|
273
|
+
} else t6 = $[7];
|
|
274
|
+
const [internalValue, setInternalValue] = useState(t6);
|
|
293
275
|
const currentValue = value_0 !== void 0 ? value_0 : internalValue;
|
|
294
|
-
let
|
|
295
|
-
if ($[
|
|
276
|
+
let t7;
|
|
277
|
+
if ($[8] !== currentValue) {
|
|
296
278
|
const selectedColor = parseColor((currentValue ?? "").toString());
|
|
297
|
-
|
|
298
|
-
$[
|
|
299
|
-
$[
|
|
300
|
-
} else
|
|
301
|
-
const selectedKey =
|
|
279
|
+
t7 = selectedColor ? toHex(selectedColor) : null;
|
|
280
|
+
$[8] = currentValue;
|
|
281
|
+
$[9] = t7;
|
|
282
|
+
} else t7 = $[9];
|
|
283
|
+
const selectedKey = t7;
|
|
284
|
+
let t8;
|
|
285
|
+
if ($[10] !== selectedKey || $[11] !== swatches) {
|
|
286
|
+
t8 = !!selectedKey && !swatches.some((s) => s.key === selectedKey);
|
|
287
|
+
$[10] = selectedKey;
|
|
288
|
+
$[11] = swatches;
|
|
289
|
+
$[12] = t8;
|
|
290
|
+
} else t8 = $[12];
|
|
291
|
+
const isCustom = t8;
|
|
302
292
|
let t9;
|
|
303
|
-
if ($[
|
|
304
|
-
t9 =
|
|
305
|
-
$[16] = selectedKey;
|
|
306
|
-
$[17] = swatches;
|
|
307
|
-
$[18] = t9;
|
|
308
|
-
} else t9 = $[18];
|
|
309
|
-
const isCustom = t9;
|
|
310
|
-
let t10;
|
|
311
|
-
if ($[19] !== onChange_0 || $[20] !== value_0) {
|
|
312
|
-
t10 = (next) => {
|
|
293
|
+
if ($[13] !== onChange_0 || $[14] !== value_0) {
|
|
294
|
+
t9 = (next) => {
|
|
313
295
|
if (value_0 === void 0) setInternalValue(next);
|
|
314
296
|
onChange_0?.(next);
|
|
315
297
|
};
|
|
316
|
-
$[
|
|
317
|
-
$[
|
|
318
|
-
$[
|
|
319
|
-
} else
|
|
320
|
-
const publish = useEvent(
|
|
321
|
-
let
|
|
322
|
-
if ($[
|
|
323
|
-
|
|
298
|
+
$[13] = onChange_0;
|
|
299
|
+
$[14] = value_0;
|
|
300
|
+
$[15] = t9;
|
|
301
|
+
} else t9 = $[15];
|
|
302
|
+
const publish = useEvent(t9);
|
|
303
|
+
let t10;
|
|
304
|
+
if ($[16] !== format || $[17] !== publish) {
|
|
305
|
+
t10 = (nextKey) => {
|
|
324
306
|
const parsed_0 = nextKey == null ? null : parseColor(nextKey);
|
|
325
307
|
publish(parsed_0 ? formatColor(parsed_0, format) : null);
|
|
326
308
|
};
|
|
327
|
-
$[
|
|
328
|
-
$[
|
|
329
|
-
$[
|
|
330
|
-
} else
|
|
331
|
-
const handleChange = useEvent(
|
|
332
|
-
const
|
|
333
|
-
let
|
|
334
|
-
if ($[
|
|
335
|
-
|
|
336
|
-
value:
|
|
309
|
+
$[16] = format;
|
|
310
|
+
$[17] = publish;
|
|
311
|
+
$[18] = t10;
|
|
312
|
+
} else t10 = $[18];
|
|
313
|
+
const handleChange = useEvent(t10);
|
|
314
|
+
const t11 = selectedKey ?? null;
|
|
315
|
+
let t12;
|
|
316
|
+
if ($[19] !== handleChange || $[20] !== isDisabled || $[21] !== isInvalid || $[22] !== props.isReadOnly || $[23] !== t11) {
|
|
317
|
+
t12 = {
|
|
318
|
+
value: t11,
|
|
337
319
|
isDisabled,
|
|
338
320
|
isReadOnly: props.isReadOnly,
|
|
339
321
|
isInvalid,
|
|
340
322
|
onChange: handleChange
|
|
341
323
|
};
|
|
342
|
-
$[
|
|
343
|
-
$[
|
|
344
|
-
$[
|
|
345
|
-
$[
|
|
346
|
-
$[
|
|
347
|
-
$[
|
|
348
|
-
} else
|
|
349
|
-
const state = useRadioGroupState(
|
|
324
|
+
$[19] = handleChange;
|
|
325
|
+
$[20] = isDisabled;
|
|
326
|
+
$[21] = isInvalid;
|
|
327
|
+
$[22] = props.isReadOnly;
|
|
328
|
+
$[23] = t11;
|
|
329
|
+
$[24] = t12;
|
|
330
|
+
} else t12 = $[24];
|
|
331
|
+
const state = useRadioGroupState(t12);
|
|
350
332
|
const domRef = useObjectRef(ref);
|
|
333
|
+
let t13;
|
|
334
|
+
if ($[25] !== ariaLabel || $[26] !== props.label || $[27] !== t) {
|
|
335
|
+
t13 = props.label ? void 0 : ariaLabel ?? t("colorSwatchGroup.colors", "Colors");
|
|
336
|
+
$[25] = ariaLabel;
|
|
337
|
+
$[26] = props.label;
|
|
338
|
+
$[27] = t;
|
|
339
|
+
$[28] = t13;
|
|
340
|
+
} else t13 = $[28];
|
|
351
341
|
let t14;
|
|
352
|
-
if ($[
|
|
353
|
-
t14 =
|
|
354
|
-
$[31] = ariaLabel;
|
|
355
|
-
$[32] = props.label;
|
|
356
|
-
$[33] = t;
|
|
357
|
-
$[34] = t14;
|
|
358
|
-
} else t14 = $[34];
|
|
359
|
-
let t15;
|
|
360
|
-
if ($[35] !== props || $[36] !== t14) {
|
|
361
|
-
t15 = {
|
|
342
|
+
if ($[29] !== props || $[30] !== t13) {
|
|
343
|
+
t14 = {
|
|
362
344
|
...props,
|
|
363
345
|
form: void 0,
|
|
364
|
-
"aria-label":
|
|
346
|
+
"aria-label": t13,
|
|
365
347
|
orientation: "horizontal"
|
|
366
348
|
};
|
|
367
|
-
$[
|
|
368
|
-
$[
|
|
369
|
-
$[
|
|
370
|
-
} else
|
|
371
|
-
const { radioGroupProps, labelProps } = useRadioGroup(
|
|
372
|
-
let
|
|
373
|
-
if ($[
|
|
374
|
-
|
|
349
|
+
$[29] = props;
|
|
350
|
+
$[30] = t13;
|
|
351
|
+
$[31] = t14;
|
|
352
|
+
} else t14 = $[31];
|
|
353
|
+
const { radioGroupProps, labelProps } = useRadioGroup(t14, state);
|
|
354
|
+
let t15;
|
|
355
|
+
if ($[32] !== isInvalid || $[33] !== isValid) {
|
|
356
|
+
t15 = getValidationMods({
|
|
375
357
|
isInvalid,
|
|
376
358
|
isValid
|
|
377
359
|
});
|
|
378
|
-
$[
|
|
379
|
-
$[
|
|
380
|
-
$[
|
|
381
|
-
} else
|
|
382
|
-
const
|
|
383
|
-
let
|
|
384
|
-
if ($[
|
|
385
|
-
|
|
386
|
-
...
|
|
387
|
-
columns:
|
|
388
|
-
...mods
|
|
360
|
+
$[32] = isInvalid;
|
|
361
|
+
$[33] = isValid;
|
|
362
|
+
$[34] = t15;
|
|
363
|
+
} else t15 = $[34];
|
|
364
|
+
const t16 = !!columns;
|
|
365
|
+
let t17;
|
|
366
|
+
if ($[35] !== t15 || $[36] !== t16) {
|
|
367
|
+
t17 = {
|
|
368
|
+
...t15,
|
|
369
|
+
columns: t16
|
|
389
370
|
};
|
|
390
|
-
$[
|
|
391
|
-
$[
|
|
392
|
-
$[
|
|
393
|
-
|
|
394
|
-
|
|
371
|
+
$[35] = t15;
|
|
372
|
+
$[36] = t16;
|
|
373
|
+
$[37] = t17;
|
|
374
|
+
} else t17 = $[37];
|
|
375
|
+
let t18;
|
|
376
|
+
if ($[38] !== columns) {
|
|
377
|
+
t18 = columns ? { $columns: columns } : void 0;
|
|
378
|
+
$[38] = columns;
|
|
379
|
+
$[39] = t18;
|
|
380
|
+
} else t18 = $[39];
|
|
395
381
|
let t19;
|
|
396
|
-
if ($[
|
|
397
|
-
t19 =
|
|
398
|
-
$columns: columns,
|
|
399
|
-
...tokens
|
|
400
|
-
} : tokens;
|
|
401
|
-
$[45] = columns;
|
|
402
|
-
$[46] = tokens;
|
|
403
|
-
$[47] = t19;
|
|
404
|
-
} else t19 = $[47];
|
|
405
|
-
let t20;
|
|
406
|
-
if ($[48] !== isDisabled || $[49] !== size || $[50] !== state || $[51] !== swatchStyles || $[52] !== swatches) {
|
|
407
|
-
t20 = swatches.map((swatch) => /* @__PURE__ */ jsx(Swatch, {
|
|
382
|
+
if ($[40] !== isDisabled || $[41] !== size || $[42] !== state || $[43] !== swatchStyles || $[44] !== swatches) {
|
|
383
|
+
t19 = swatches.map((swatch) => /* @__PURE__ */ jsx(Swatch, {
|
|
408
384
|
colorKey: swatch.key,
|
|
409
385
|
label: swatch.label,
|
|
410
386
|
state,
|
|
@@ -412,26 +388,26 @@ const ColorSwatchGroup = forwardRef(function ColorSwatchGroup(allProps, ref) {
|
|
|
412
388
|
size,
|
|
413
389
|
styles: swatchStyles
|
|
414
390
|
}, swatch.key));
|
|
415
|
-
$[
|
|
416
|
-
$[
|
|
417
|
-
$[
|
|
418
|
-
$[
|
|
419
|
-
$[
|
|
420
|
-
$[
|
|
421
|
-
} else
|
|
422
|
-
let
|
|
423
|
-
if ($[
|
|
424
|
-
|
|
391
|
+
$[40] = isDisabled;
|
|
392
|
+
$[41] = size;
|
|
393
|
+
$[42] = state;
|
|
394
|
+
$[43] = swatchStyles;
|
|
395
|
+
$[44] = swatches;
|
|
396
|
+
$[45] = t19;
|
|
397
|
+
} else t19 = $[45];
|
|
398
|
+
let t20;
|
|
399
|
+
if ($[46] !== radioGroupProps || $[47] !== t19) {
|
|
400
|
+
t20 = /* @__PURE__ */ jsx(RadiosElement, {
|
|
425
401
|
...radioGroupProps,
|
|
426
|
-
children:
|
|
402
|
+
children: t19
|
|
427
403
|
});
|
|
428
|
-
$[
|
|
429
|
-
$[
|
|
430
|
-
$[
|
|
431
|
-
} else
|
|
432
|
-
let
|
|
433
|
-
if ($[
|
|
434
|
-
|
|
404
|
+
$[46] = radioGroupProps;
|
|
405
|
+
$[47] = t19;
|
|
406
|
+
$[48] = t20;
|
|
407
|
+
} else t20 = $[48];
|
|
408
|
+
let t21;
|
|
409
|
+
if ($[49] !== currentValue || $[50] !== format || $[51] !== isCustom || $[52] !== isDisabled || $[53] !== props.isReadOnly || $[54] !== publish || $[55] !== showCustom || $[56] !== size || $[57] !== t) {
|
|
410
|
+
t21 = showCustom ? /* @__PURE__ */ jsx(ColorPicker, {
|
|
435
411
|
isBare: true,
|
|
436
412
|
"aria-label": t("colorSwatchGroup.customColor", "Custom color"),
|
|
437
413
|
qa: "ColorSwatchGroupCustom",
|
|
@@ -446,29 +422,27 @@ const ColorSwatchGroup = forwardRef(function ColorSwatchGroup(allProps, ref) {
|
|
|
446
422
|
onChange: publish,
|
|
447
423
|
children: null
|
|
448
424
|
}) : null;
|
|
449
|
-
$[
|
|
450
|
-
$[
|
|
451
|
-
$[
|
|
452
|
-
$[
|
|
453
|
-
$[
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
456
|
-
$[
|
|
457
|
-
$[
|
|
458
|
-
$[
|
|
459
|
-
} else
|
|
460
|
-
|
|
425
|
+
$[49] = currentValue;
|
|
426
|
+
$[50] = format;
|
|
427
|
+
$[51] = isCustom;
|
|
428
|
+
$[52] = isDisabled;
|
|
429
|
+
$[53] = props.isReadOnly;
|
|
430
|
+
$[54] = publish;
|
|
431
|
+
$[55] = showCustom;
|
|
432
|
+
$[56] = size;
|
|
433
|
+
$[57] = t;
|
|
434
|
+
$[58] = t21;
|
|
435
|
+
} else t21 = $[58];
|
|
436
|
+
return wrapWithField(/* @__PURE__ */ jsxs(GroupElement, {
|
|
461
437
|
ref: domRef,
|
|
462
|
-
...outerProps,
|
|
463
438
|
qa: qa || "ColorSwatchGroup",
|
|
464
439
|
"data-size": size,
|
|
465
440
|
"data-input-type": "colorswatchgroup",
|
|
466
441
|
styles,
|
|
467
|
-
mods:
|
|
468
|
-
tokens:
|
|
469
|
-
children: [
|
|
470
|
-
})
|
|
471
|
-
return wrapWithField(group, {
|
|
442
|
+
mods: t17,
|
|
443
|
+
tokens: t18,
|
|
444
|
+
children: [t20, t21]
|
|
445
|
+
}), {
|
|
472
446
|
...props,
|
|
473
447
|
...field,
|
|
474
448
|
labelProps: mergeProps$1(props.labelProps, labelProps)
|