@cube-dev/ui-kit 0.201.0 → 0.203.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/CHANGELOG.md +56 -0
- package/dist/README.md +1 -1
- 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 +2 -1
- package/dist/components/HiddenInput.js.map +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/Divider.d.ts +22 -0
- package/dist/components/content/Divider/Divider.js +159 -0
- package/dist/components/content/Divider/Divider.js.map +1 -0
- 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 +39 -14
- package/dist/components/content/Tree/Tree.js.map +1 -1
- package/dist/components/content/Tree/TreeNode.js +8 -7
- package/dist/components/content/Tree/TreeNode.js.map +1 -1
- package/dist/components/content/Tree/checked-keys.js +158 -0
- package/dist/components/content/Tree/checked-keys.js.map +1 -0
- package/dist/components/content/Tree/rowId.js +16 -0
- package/dist/components/content/Tree/rowId.js.map +1 -0
- package/dist/components/content/Tree/styled.js +1 -1
- package/dist/components/content/Tree/tree-index.js +10 -2
- package/dist/components/content/Tree/tree-index.js.map +1 -1
- package/dist/components/content/Tree/types.d.ts +21 -1
- package/dist/components/content/Tree/use-checkbox-tree.js +17 -123
- 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 +233 -178
- package/dist/components/data/ItemTable/ItemTable.js.map +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/index.d.ts +2 -2
- package/dist/components/data/ItemTable/item-table-sections.js +68 -0
- package/dist/components/data/ItemTable/item-table-sections.js.map +1 -0
- package/dist/components/data/ItemTable/types.d.ts +12 -0
- 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 +31 -27
- package/dist/components/data/ItemTable/use-item-table-selection.js.map +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.d.ts +1 -0
- package/dist/components/data/TableBase/TableView.js +86 -21
- package/dist/components/data/TableBase/TableView.js.map +1 -1
- package/dist/components/data/TableBase/TreeGridTable.js +1 -1
- package/dist/components/data/TableBase/column-header.js +1 -1
- package/dist/components/data/TableBase/column-menu.js +1 -1
- package/dist/components/data/TableBase/column-styles.js +1 -1
- package/dist/components/data/TableBase/column-tint.js +1 -1
- package/dist/components/data/TableBase/row-menu.js +1 -1
- package/dist/components/data/TableBase/styled.js +25 -1
- package/dist/components/data/TableBase/styled.js.map +1 -1
- package/dist/components/data/TableBase/table-body-sections.d.ts +3 -0
- package/dist/components/data/TableBase/table-body-sections.js +30 -0
- package/dist/components/data/TableBase/table-body-sections.js.map +1 -0
- 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/data/index.d.ts +2 -2
- package/dist/components/fields/Checkbox/Checkbox.d.ts +3 -2
- package/dist/components/fields/Checkbox/Checkbox.js +21 -10
- package/dist/components/fields/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.d.ts +3 -2
- package/dist/components/fields/Checkbox/CheckboxGroup.js +36 -42
- 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.d.ts +3 -2
- package/dist/components/fields/ColorInput/ColorInput.js +5 -3
- package/dist/components/fields/ColorInput/ColorInput.js.map +1 -1
- package/dist/components/fields/ColorPicker/ColorPicker.d.ts +9 -3
- package/dist/components/fields/ColorPicker/ColorPicker.js +182 -200
- package/dist/components/fields/ColorPicker/ColorPicker.js.map +1 -1
- package/dist/components/fields/ColorSwatch/ColorSwatch.js +1 -1
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.d.ts +3 -2
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +143 -171
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js.map +1 -1
- package/dist/components/fields/ComboBox/ComboBox.d.ts +7 -5
- package/dist/components/fields/ComboBox/ComboBox.js +704 -639
- 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 +5 -4
- 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.d.ts +3 -2
- package/dist/components/fields/DatePicker/DateInput.js +6 -5
- package/dist/components/fields/DatePicker/DateInput.js.map +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +79 -76
- package/dist/components/fields/DatePicker/DateInputBase.js.map +1 -1
- package/dist/components/fields/DatePicker/DatePicker.d.ts +3 -2
- package/dist/components/fields/DatePicker/DatePicker.js +84 -173
- package/dist/components/fields/DatePicker/DatePicker.js.map +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.d.ts +3 -2
- package/dist/components/fields/DatePicker/DateRangePicker.js +116 -204
- package/dist/components/fields/DatePicker/DateRangePicker.js.map +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.d.ts +3 -2
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +288 -434
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js.map +1 -1
- package/dist/components/fields/DatePicker/MonthPicker.js +1 -1
- package/dist/components/fields/DatePicker/PeriodPicker.d.ts +3 -2
- package/dist/components/fields/DatePicker/PeriodPicker.js +87 -113
- package/dist/components/fields/DatePicker/PeriodPicker.js.map +1 -1
- package/dist/components/fields/DatePicker/QuarterPicker.js +1 -1
- package/dist/components/fields/DatePicker/TimeInput.d.ts +3 -2
- package/dist/components/fields/DatePicker/TimeInput.js +7 -6
- package/dist/components/fields/DatePicker/TimeInput.js.map +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.d.ts +3 -2
- package/dist/components/fields/FileInput/FileInput.js +71 -100
- package/dist/components/fields/FileInput/FileInput.js.map +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +10 -65
- package/dist/components/fields/FilterListBox/FilterListBox.js.map +1 -1
- package/dist/components/fields/FilterListBox/styled.js +66 -0
- package/dist/components/fields/FilterListBox/styled.js.map +1 -0
- package/dist/components/fields/FilterPicker/FilterPicker.d.ts +35 -3
- package/dist/components/fields/FilterPicker/FilterPicker.js +76 -15
- package/dist/components/fields/FilterPicker/FilterPicker.js.map +1 -1
- package/dist/components/fields/FilterPicker/FilterTree.js +413 -0
- package/dist/components/fields/FilterPicker/FilterTree.js.map +1 -0
- package/dist/components/fields/Input/Input.js +1 -1
- package/dist/components/fields/ListBox/DraggableListBox.js +1 -1
- package/dist/components/fields/ListBox/ListBox.d.ts +3 -2
- package/dist/components/fields/ListBox/ListBox.js +7 -10
- package/dist/components/fields/ListBox/ListBox.js.map +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 +40 -21
- package/dist/components/fields/NumberInput/NumberInput.js.map +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +52 -37
- package/dist/components/fields/NumberInput/StepButton.js.map +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +5 -3
- package/dist/components/fields/PasswordInput/PasswordInput.js.map +1 -1
- package/dist/components/fields/Picker/Picker.d.ts +9 -3
- package/dist/components/fields/Picker/Picker.js +12 -11
- package/dist/components/fields/Picker/Picker.js.map +1 -1
- package/dist/components/fields/RadioGroup/Radio.js +152 -154
- package/dist/components/fields/RadioGroup/Radio.js.map +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.d.ts +3 -2
- package/dist/components/fields/RadioGroup/RadioGroup.js +85 -111
- package/dist/components/fields/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/RadioGroup/context.js.map +1 -1
- package/dist/components/fields/SearchComboBox/SearchComboBox.d.ts +9 -4
- package/dist/components/fields/SearchComboBox/SearchComboBox.js +16 -23
- package/dist/components/fields/SearchComboBox/SearchComboBox.js.map +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +52 -48
- package/dist/components/fields/SearchInput/SearchInput.js.map +1 -1
- package/dist/components/fields/Select/Select.d.ts +3 -2
- package/dist/components/fields/Select/Select.js +8 -10
- package/dist/components/fields/Select/Select.js.map +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 +19 -26
- package/dist/components/fields/Slider/RangeSlider.js.map +1 -1
- package/dist/components/fields/Slider/Slider.js +51 -58
- package/dist/components/fields/Slider/Slider.js.map +1 -1
- package/dist/components/fields/Slider/SliderBase.js +61 -60
- package/dist/components/fields/Slider/SliderBase.js.map +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/Slider/types.d.ts +3 -3
- package/dist/components/fields/Switch/Switch.d.ts +12 -2
- package/dist/components/fields/Switch/Switch.js +97 -165
- package/dist/components/fields/Switch/Switch.js.map +1 -1
- package/dist/components/fields/TagInput/TagInput.d.ts +5 -2
- package/dist/components/fields/TagInput/TagInput.js +18 -13
- 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 +5 -3
- package/dist/components/fields/TextArea/TextArea.js.map +1 -1
- package/dist/components/fields/TextInput/TextInput.js +5 -3
- package/dist/components/fields/TextInput/TextInput.js.map +1 -1
- package/dist/components/fields/TextInput/TextInputBase.d.ts +25 -4
- package/dist/components/fields/TextInput/TextInputBase.js +214 -106
- package/dist/components/fields/TextInput/TextInputBase.js.map +1 -1
- package/dist/components/fields/TextInput/displayed-validation.js +1 -1
- package/dist/components/fields/TextInput/index.d.ts +2 -2
- 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/index.d.ts +2 -2
- package/dist/components/fields/option-origin-press.js +1 -1
- package/dist/components/form/FieldWrapper/FieldWrapper.js +120 -57
- package/dist/components/form/FieldWrapper/FieldWrapper.js.map +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/field-chrome.js.map +1 -1
- package/dist/components/form/field-layout.d.ts +20 -0
- package/dist/components/form/field-layout.js +114 -0
- package/dist/components/form/field-layout.js.map +1 -0
- package/dist/components/form/index.d.ts +2 -1
- package/dist/components/form/legacy-tooltip.js +15 -2
- package/dist/components/form/legacy-tooltip.js.map +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 +6 -2
- package/dist/components/form/wrapper.js.map +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 +7 -3
- 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/styled.js +18 -18
- package/dist/components/navigation/Tabs/styled.js.map +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 +2 -2
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js.map +1 -1
- package/dist/components/overlays/Notifications/dismissed-storage.js +1 -1
- package/dist/components/overlays/Notifications/format-relative-time.js +1 -1
- package/dist/components/overlays/Notifications/index.js +1 -1
- package/dist/components/overlays/Notifications/use-notification-state.js +1 -1
- package/dist/components/overlays/Notifications/use-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-overlay-timers.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-notifications.js +1 -1
- package/dist/components/overlays/Notifications/use-persistent-state.js +1 -1
- package/dist/components/overlays/Notifications/use-toast-state.js +1 -1
- package/dist/components/overlays/Toast/ToastItem.js +1 -1
- package/dist/components/overlays/Toast/index.js +1 -1
- package/dist/components/overlays/Toast/useProgressToast.js +1 -1
- package/dist/components/overlays/Toast/useToast.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipProvider.js +1 -1
- package/dist/components/overlays/Tooltip/TooltipTrigger.js +1 -1
- package/dist/components/overlays/Tooltip/context.js +1 -1
- package/dist/components/overlays/Tooltip/split-trigger-props.js +1 -1
- package/dist/components/portal/Portal.js +1 -1
- package/dist/components/portal/PortalProvider.js +1 -1
- package/dist/components/portal/usePortal.js +1 -1
- package/dist/components/shared/DraggableCollection.js +1 -1
- package/dist/components/shared/InvalidIcon.js +1 -1
- package/dist/components/shared/ValidIcon.js +1 -1
- package/dist/components/status/LoadingAnimation/LoadingAnimation.js +1 -1
- package/dist/components/status/Spin/Cube.js +1 -1
- package/dist/components/status/Spin/InternalSpinner.js +1 -1
- package/dist/components/status/Spin/Spin.js +1 -1
- package/dist/components/status/Spin/SpinsContainer.js +1 -1
- package/dist/data/item-themes.js +1 -1
- package/dist/data/themes.js +1 -1
- package/dist/eslint-plugin/defaults.generated.js +25 -1
- package/dist/eslint-plugin/defaults.generated.js.map +1 -1
- package/dist/eslint-plugin/index.js +1 -1
- package/dist/eslint-plugin/rules/no-redundant-default-prop.js +1 -1
- package/dist/i18n/I18nProvider.js +1 -1
- package/dist/i18n/createFormatter.js +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/instance.js +1 -1
- package/dist/i18n/locales/de-DE/uikit.js +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.d.ts +5 -4
- package/dist/index.js +4 -4
- package/dist/index.js.map +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.d.ts +5 -0
- package/dist/provider.js +19 -7
- package/dist/provider.js.map +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 +29 -2
- package/dist/utils/react/disabledProps.js.map +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/CreateComponent.md +1 -1
- package/docs/FieldProperties.md +29 -7
- package/docs/Usage.md +3 -0
- package/docs/components/content/Divider.md +103 -21
- package/docs/components/content/Tree.md +5 -4
- package/docs/components/data/ItemTable.md +25 -0
- package/docs/components/fields/Checkbox.md +7 -8
- package/docs/components/fields/ColorInput.md +11 -13
- package/docs/components/fields/ColorPicker.md +2 -2
- package/docs/components/fields/ColorSwatchGroup.md +2 -3
- package/docs/components/fields/ComboBox.md +9 -7
- package/docs/components/fields/CommandTextArea.md +4 -5
- package/docs/components/fields/DatePicker.md +1 -4
- package/docs/components/fields/FileInput.md +1 -5
- package/docs/components/fields/FilterListBox.md +0 -3
- package/docs/components/fields/FilterPicker.md +68 -5
- package/docs/components/fields/HueSlider.md +1 -3
- package/docs/components/fields/ListBox.md +0 -3
- package/docs/components/fields/NumberInput.md +9 -6
- package/docs/components/fields/PasswordInput.md +9 -8
- package/docs/components/fields/PeriodPicker.md +0 -4
- package/docs/components/fields/Picker.md +2 -4
- package/docs/components/fields/RadioGroup.md +4 -5
- package/docs/components/fields/SearchComboBox.md +2 -4
- package/docs/components/fields/SearchInput.md +16 -4
- package/docs/components/fields/Select.md +0 -3
- package/docs/components/fields/Slider.md +0 -2
- package/docs/components/fields/Switch.md +16 -3
- package/docs/components/fields/TagInput.md +3 -6
- package/docs/components/fields/TextArea.md +10 -8
- package/docs/components/fields/TextInput.md +52 -10
- package/docs/components/navigation/Tabs.md +47 -0
- package/docs/components/overlays/Tooltip.md +1 -1
- package/package.json +4 -2
- package/dist/components/content/Divider.d.ts +0 -7
- package/dist/components/content/Divider.js +0 -105
- package/dist/components/content/Divider.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.
|
|
2
|
-
import { extractStyles, mergeStyleLayers } from "../../../utils/styles.js";
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.203.0 | Cube Dev Team */
|
|
3
2
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
4
3
|
import { useI18n } from "../../../i18n/useI18n.js";
|
|
5
4
|
import { Dialog } from "../../overlays/Dialog/Dialog.js";
|
|
6
5
|
import { useFieldProps } from "../../form/Form/use-field/use-field-props.js";
|
|
7
6
|
import { wrapWithField } from "../../form/wrapper.js";
|
|
7
|
+
import { splitFieldLayout } from "../../form/field-layout.js";
|
|
8
8
|
import { DialogTrigger } from "../../overlays/Dialog/DialogTrigger.js";
|
|
9
9
|
import { DateInputBase as _DateInputBase } from "./DateInputBase.js";
|
|
10
10
|
import { DEFAULT_DATE_PROPS } from "./props.js";
|
|
@@ -15,7 +15,7 @@ import { DatePickerButton } from "./DatePickerButton.js";
|
|
|
15
15
|
import { DatePickerInput } from "./DatePickerInput.js";
|
|
16
16
|
import { DatePickerElement } from "./DatePickerElement.js";
|
|
17
17
|
import { c } from "react/compiler-runtime";
|
|
18
|
-
import {
|
|
18
|
+
import { tasty } from "@tenphi/tasty";
|
|
19
19
|
import { forwardRef, useRef } from "react";
|
|
20
20
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
21
|
import { useDatePicker, useDateRangePicker, useFocusRing } from "react-aria";
|
|
@@ -31,7 +31,7 @@ const DateRangeDash = tasty({
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
function DateRangeSeparatedPicker(rawProps, ref) {
|
|
34
|
-
const $ = c(
|
|
34
|
+
const $ = c(70);
|
|
35
35
|
const { t } = useI18n();
|
|
36
36
|
let t0;
|
|
37
37
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -39,107 +39,48 @@ function DateRangeSeparatedPicker(rawProps, ref) {
|
|
|
39
39
|
$[0] = t0;
|
|
40
40
|
} else t0 = $[0];
|
|
41
41
|
let props = useFieldProps(rawProps, t0);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
t1 = mergeStyleLayers(extractStyles(props, CONTAINER_STYLES), props.wrapperStyles);
|
|
46
|
-
$[1] = props;
|
|
47
|
-
$[2] = t1;
|
|
48
|
-
$[3] = props;
|
|
49
|
-
} else {
|
|
50
|
-
t1 = $[2];
|
|
51
|
-
props = $[3];
|
|
52
|
-
}
|
|
53
|
-
const styles = t1;
|
|
42
|
+
props = Object.assign({}, DEFAULT_DATE_PROPS, props);
|
|
43
|
+
const fieldLayout = splitFieldLayout(props, { overStyles: props.wrapperStyles });
|
|
44
|
+
const styles = fieldLayout.styles;
|
|
54
45
|
const { qa, size, placeholderValue, isDisabled, isInvalid, isValid, useLocale: useLocaleProp, autoFocus } = props;
|
|
55
46
|
const targetRef = useRef(null);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
value: t3,
|
|
72
|
-
defaultValue: t4
|
|
73
|
-
};
|
|
74
|
-
$[6] = props;
|
|
75
|
-
$[7] = t3;
|
|
76
|
-
$[8] = t4;
|
|
77
|
-
$[9] = t5;
|
|
78
|
-
} else t5 = $[9];
|
|
79
|
-
const startDateProps = t5;
|
|
80
|
-
const t6 = state.value?.end;
|
|
81
|
-
const t7 = props.defaultValue?.end;
|
|
82
|
-
let t8;
|
|
83
|
-
if ($[10] !== props || $[11] !== t6 || $[12] !== t7) {
|
|
84
|
-
t8 = {
|
|
85
|
-
...props,
|
|
86
|
-
onChange: void 0,
|
|
87
|
-
validate: void 0,
|
|
88
|
-
value: t6,
|
|
89
|
-
defaultValue: t7
|
|
90
|
-
};
|
|
91
|
-
$[10] = props;
|
|
92
|
-
$[11] = t6;
|
|
93
|
-
$[12] = t7;
|
|
94
|
-
$[13] = t8;
|
|
95
|
-
} else t8 = $[13];
|
|
96
|
-
const endDateProps = t8;
|
|
47
|
+
const state = useDateRangePickerState({ ...props });
|
|
48
|
+
const startDateProps = {
|
|
49
|
+
...props,
|
|
50
|
+
onChange: void 0,
|
|
51
|
+
validate: void 0,
|
|
52
|
+
value: state.value?.start,
|
|
53
|
+
defaultValue: props.defaultValue?.start
|
|
54
|
+
};
|
|
55
|
+
const endDateProps = {
|
|
56
|
+
...props,
|
|
57
|
+
onChange: void 0,
|
|
58
|
+
validate: void 0,
|
|
59
|
+
value: state.value?.end,
|
|
60
|
+
defaultValue: props.defaultValue?.end
|
|
61
|
+
};
|
|
97
62
|
const startState = useDatePickerState(startDateProps);
|
|
98
63
|
const endState = useDatePickerState(endDateProps);
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
} else t10 = $[17];
|
|
120
|
-
const startFocusProps = useFocusRing(t10);
|
|
121
|
-
let t11;
|
|
122
|
-
if ($[18] !== autoFocus) {
|
|
123
|
-
t11 = {
|
|
124
|
-
within: true,
|
|
125
|
-
isTextInput: true,
|
|
126
|
-
autoFocus
|
|
127
|
-
};
|
|
128
|
-
$[18] = autoFocus;
|
|
129
|
-
$[19] = t11;
|
|
130
|
-
} else t11 = $[19];
|
|
131
|
-
const endFocusRingProps = useFocusRing(t11);
|
|
132
|
-
let t12;
|
|
133
|
-
if ($[20] !== autoFocus) {
|
|
134
|
-
t12 = {
|
|
135
|
-
within: false,
|
|
136
|
-
isTextInput: false,
|
|
137
|
-
autoFocus
|
|
138
|
-
};
|
|
139
|
-
$[20] = autoFocus;
|
|
140
|
-
$[21] = t12;
|
|
141
|
-
} else t12 = $[21];
|
|
142
|
-
const endFocusProps = useFocusRing(t12);
|
|
64
|
+
const startFocusRingProps = useFocusRing({
|
|
65
|
+
within: true,
|
|
66
|
+
isTextInput: true,
|
|
67
|
+
autoFocus
|
|
68
|
+
});
|
|
69
|
+
const startFocusProps = useFocusRing({
|
|
70
|
+
within: false,
|
|
71
|
+
isTextInput: false,
|
|
72
|
+
autoFocus
|
|
73
|
+
});
|
|
74
|
+
const endFocusRingProps = useFocusRing({
|
|
75
|
+
within: true,
|
|
76
|
+
isTextInput: true,
|
|
77
|
+
autoFocus
|
|
78
|
+
});
|
|
79
|
+
const endFocusProps = useFocusRing({
|
|
80
|
+
within: false,
|
|
81
|
+
isTextInput: false,
|
|
82
|
+
autoFocus
|
|
83
|
+
});
|
|
143
84
|
useFocusManagerRef(ref, targetRef);
|
|
144
85
|
const { groupProps, labelProps, startFieldProps, endFieldProps } = useDateRangePicker(props, state, targetRef);
|
|
145
86
|
const startProps = useDatePicker(startDateProps, startState, targetRef);
|
|
@@ -150,9 +91,9 @@ function DateRangeSeparatedPicker(rawProps, ref) {
|
|
|
150
91
|
const timeMaxValue = props.maxValue && "hour" in props.maxValue ? props.maxValue : void 0;
|
|
151
92
|
const timeGranularity = state.granularity === "hour" || state.granularity === "minute" || state.granularity === "second" ? state.granularity : void 0;
|
|
152
93
|
const showTimeField = !!timeGranularity;
|
|
153
|
-
let
|
|
154
|
-
if ($[
|
|
155
|
-
|
|
94
|
+
let t1;
|
|
95
|
+
if ($[1] !== endProps.calendarProps || $[2] !== endState || $[3] !== startProps.calendarProps || $[4] !== startState || $[5] !== state) {
|
|
96
|
+
t1 = function onChange(value, type) {
|
|
156
97
|
if (type === "start") {
|
|
157
98
|
const newRange = {
|
|
158
99
|
...state.value,
|
|
@@ -181,370 +122,283 @@ function DateRangeSeparatedPicker(rawProps, ref) {
|
|
|
181
122
|
endState.setOpen(false);
|
|
182
123
|
}
|
|
183
124
|
};
|
|
184
|
-
$[
|
|
185
|
-
$[
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
$[
|
|
189
|
-
$[
|
|
190
|
-
} else
|
|
191
|
-
const onChange =
|
|
192
|
-
const
|
|
193
|
-
const
|
|
194
|
-
const
|
|
195
|
-
const
|
|
196
|
-
const
|
|
197
|
-
const
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
$[
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
t24 = /* @__PURE__ */ jsx(DatePickerButton, {
|
|
216
|
-
size,
|
|
217
|
-
...t22,
|
|
218
|
-
"aria-label": t23,
|
|
219
|
-
isDisabled
|
|
220
|
-
});
|
|
221
|
-
$[33] = isDisabled;
|
|
222
|
-
$[34] = size;
|
|
223
|
-
$[35] = t22;
|
|
224
|
-
$[36] = t23;
|
|
225
|
-
$[37] = t24;
|
|
226
|
-
} else t24 = $[37];
|
|
227
|
-
const t25 = state.value?.start || state.value?.end || void 0;
|
|
228
|
-
let t26;
|
|
229
|
-
if ($[38] !== state.value) {
|
|
230
|
-
t26 = state.value?.start && state.value?.end ? {
|
|
125
|
+
$[1] = endProps.calendarProps;
|
|
126
|
+
$[2] = endState;
|
|
127
|
+
$[3] = startProps.calendarProps;
|
|
128
|
+
$[4] = startState;
|
|
129
|
+
$[5] = state;
|
|
130
|
+
$[6] = t1;
|
|
131
|
+
} else t1 = $[6];
|
|
132
|
+
const onChange = t1;
|
|
133
|
+
const t2 = startFocusProps.isFocused;
|
|
134
|
+
const t3 = props.isReadOnly;
|
|
135
|
+
const t4 = startFocusRingProps.focusProps;
|
|
136
|
+
const t5 = startState.isOpen;
|
|
137
|
+
const t6 = props.shouldFlip;
|
|
138
|
+
const t7 = startState.setOpen;
|
|
139
|
+
let t8;
|
|
140
|
+
if ($[7] !== startFocusProps.focusProps || $[8] !== startProps.buttonProps) {
|
|
141
|
+
t8 = mergeProps$1(startProps.buttonProps, startFocusProps.focusProps);
|
|
142
|
+
$[7] = startFocusProps.focusProps;
|
|
143
|
+
$[8] = startProps.buttonProps;
|
|
144
|
+
$[9] = t8;
|
|
145
|
+
} else t8 = $[9];
|
|
146
|
+
let t9;
|
|
147
|
+
if ($[10] !== t) {
|
|
148
|
+
t9 = t("datePicker.showStartCalendar", "Show calendar for the start date");
|
|
149
|
+
$[10] = t;
|
|
150
|
+
$[11] = t9;
|
|
151
|
+
} else t9 = $[11];
|
|
152
|
+
const t10 = state.value?.start || state.value?.end || void 0;
|
|
153
|
+
let t11;
|
|
154
|
+
if ($[12] !== state.value) {
|
|
155
|
+
t11 = state.value?.start && state.value?.end ? {
|
|
231
156
|
start: state.value.start,
|
|
232
157
|
end: state.value.end
|
|
233
158
|
} : void 0;
|
|
234
|
-
$[
|
|
235
|
-
$[
|
|
236
|
-
} else
|
|
237
|
-
let
|
|
238
|
-
if ($[
|
|
239
|
-
|
|
240
|
-
$[
|
|
241
|
-
$[
|
|
242
|
-
} else
|
|
243
|
-
let
|
|
244
|
-
if ($[
|
|
245
|
-
|
|
159
|
+
$[12] = state.value;
|
|
160
|
+
$[13] = t11;
|
|
161
|
+
} else t11 = $[13];
|
|
162
|
+
let t12;
|
|
163
|
+
if ($[14] !== onChange) {
|
|
164
|
+
t12 = (value_0) => onChange(value_0, "start");
|
|
165
|
+
$[14] = onChange;
|
|
166
|
+
$[15] = t12;
|
|
167
|
+
} else t12 = $[15];
|
|
168
|
+
let t13;
|
|
169
|
+
if ($[16] !== startProps.calendarProps || $[17] !== t10 || $[18] !== t11 || $[19] !== t12) {
|
|
170
|
+
t13 = /* @__PURE__ */ jsx(_Calendar, {
|
|
246
171
|
...startProps.calendarProps,
|
|
247
|
-
defaultFocusedValue:
|
|
248
|
-
selectedRange:
|
|
249
|
-
onChange:
|
|
250
|
-
});
|
|
251
|
-
$[42] = startProps.calendarProps;
|
|
252
|
-
$[43] = t25;
|
|
253
|
-
$[44] = t26;
|
|
254
|
-
$[45] = t27;
|
|
255
|
-
$[46] = t28;
|
|
256
|
-
} else t28 = $[46];
|
|
257
|
-
let t29;
|
|
258
|
-
if ($[47] !== props.hideTimeZone || $[48] !== props.hourCycle || $[49] !== showTimeField || $[50] !== startState.setTimeValue || $[51] !== startState.timeValue || $[52] !== t || $[53] !== timeGranularity || $[54] !== timeMaxValue || $[55] !== timeMinValue || $[56] !== timePlaceholder) {
|
|
259
|
-
t29 = showTimeField && /* @__PURE__ */ jsx(_TimeInput, {
|
|
260
|
-
padding: "1x",
|
|
261
|
-
label: t("datePicker.time", "Time"),
|
|
262
|
-
value: startState.timeValue,
|
|
263
|
-
placeholderValue: timePlaceholder,
|
|
264
|
-
granularity: timeGranularity,
|
|
265
|
-
minValue: timeMinValue,
|
|
266
|
-
maxValue: timeMaxValue,
|
|
267
|
-
hourCycle: props.hourCycle,
|
|
268
|
-
hideTimeZone: props.hideTimeZone,
|
|
269
|
-
onChange: startState.setTimeValue
|
|
172
|
+
defaultFocusedValue: t10,
|
|
173
|
+
selectedRange: t11,
|
|
174
|
+
onChange: t12
|
|
270
175
|
});
|
|
271
|
-
$[
|
|
272
|
-
$[
|
|
273
|
-
$[
|
|
274
|
-
$[
|
|
275
|
-
$[
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
176
|
+
$[16] = startProps.calendarProps;
|
|
177
|
+
$[17] = t10;
|
|
178
|
+
$[18] = t11;
|
|
179
|
+
$[19] = t12;
|
|
180
|
+
$[20] = t13;
|
|
181
|
+
} else t13 = $[20];
|
|
182
|
+
const t14 = showTimeField && /* @__PURE__ */ jsx(_TimeInput, {
|
|
183
|
+
label: t("datePicker.time", "Time"),
|
|
184
|
+
value: startState.timeValue,
|
|
185
|
+
placeholderValue: timePlaceholder,
|
|
186
|
+
granularity: timeGranularity,
|
|
187
|
+
minValue: timeMinValue,
|
|
188
|
+
maxValue: timeMaxValue,
|
|
189
|
+
hourCycle: props.hourCycle,
|
|
190
|
+
hideTimeZone: props.hideTimeZone,
|
|
191
|
+
onChange: startState.setTimeValue
|
|
192
|
+
});
|
|
193
|
+
let t15;
|
|
194
|
+
if ($[21] !== startProps.dialogProps || $[22] !== t13 || $[23] !== t14) {
|
|
195
|
+
t15 = /* @__PURE__ */ jsxs(Dialog, {
|
|
286
196
|
...startProps.dialogProps,
|
|
287
197
|
width: "max-content",
|
|
288
198
|
overflow: "auto",
|
|
289
|
-
children: [
|
|
290
|
-
});
|
|
291
|
-
$[58] = startProps.dialogProps;
|
|
292
|
-
$[59] = t28;
|
|
293
|
-
$[60] = t29;
|
|
294
|
-
$[61] = t30;
|
|
295
|
-
} else t30 = $[61];
|
|
296
|
-
let t31;
|
|
297
|
-
if ($[62] !== props.shouldFlip || $[63] !== startState.isOpen || $[64] !== startState.setOpen || $[65] !== t17 || $[66] !== t18 || $[67] !== t24 || $[68] !== t30) {
|
|
298
|
-
t31 = /* @__PURE__ */ jsxs(DialogTrigger, {
|
|
299
|
-
hideArrow: true,
|
|
300
|
-
type: "popover",
|
|
301
|
-
placement: t17,
|
|
302
|
-
targetRef: t18,
|
|
303
|
-
isOpen: t19,
|
|
304
|
-
shouldFlip: t20,
|
|
305
|
-
onOpenChange: t21,
|
|
306
|
-
children: [t24, t30]
|
|
307
|
-
});
|
|
308
|
-
$[62] = props.shouldFlip;
|
|
309
|
-
$[63] = startState.isOpen;
|
|
310
|
-
$[64] = startState.setOpen;
|
|
311
|
-
$[65] = t17;
|
|
312
|
-
$[66] = t18;
|
|
313
|
-
$[67] = t24;
|
|
314
|
-
$[68] = t30;
|
|
315
|
-
$[69] = t31;
|
|
316
|
-
} else t31 = $[69];
|
|
317
|
-
let t32;
|
|
318
|
-
if ($[70] !== startFieldProps || $[71] !== useLocaleProp) {
|
|
319
|
-
t32 = /* @__PURE__ */ jsx(DatePickerInput, {
|
|
320
|
-
useLocale: useLocaleProp,
|
|
321
|
-
...startFieldProps
|
|
322
|
-
});
|
|
323
|
-
$[70] = startFieldProps;
|
|
324
|
-
$[71] = useLocaleProp;
|
|
325
|
-
$[72] = t32;
|
|
326
|
-
} else t32 = $[72];
|
|
327
|
-
let t33;
|
|
328
|
-
if ($[73] !== autoFocus || $[74] !== isDisabled || $[75] !== isInvalid || $[76] !== isValid || $[77] !== size || $[78] !== startFocusProps.isFocused || $[79] !== startFocusRingProps.focusProps || $[80] !== t31 || $[81] !== t32) {
|
|
329
|
-
t33 = /* @__PURE__ */ jsx(_DateInputBase, {
|
|
330
|
-
autoFocus,
|
|
331
|
-
disableFocusRing: t15,
|
|
332
|
-
isDisabled,
|
|
333
|
-
isInvalid,
|
|
334
|
-
isValid,
|
|
335
|
-
size,
|
|
336
|
-
...t16,
|
|
337
|
-
suffix: t31,
|
|
338
|
-
children: t32
|
|
199
|
+
children: [t13, t14]
|
|
339
200
|
});
|
|
340
|
-
$[
|
|
341
|
-
$[
|
|
342
|
-
$[
|
|
343
|
-
$[
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
$[
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
const
|
|
357
|
-
const
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
$[
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
$[88] = t43;
|
|
375
|
-
} else t43 = $[88];
|
|
376
|
-
let t44;
|
|
377
|
-
if ($[89] !== isDisabled || $[90] !== size || $[91] !== t42 || $[92] !== t43) {
|
|
378
|
-
t44 = /* @__PURE__ */ jsx(DatePickerButton, {
|
|
201
|
+
$[21] = startProps.dialogProps;
|
|
202
|
+
$[22] = t13;
|
|
203
|
+
$[23] = t14;
|
|
204
|
+
$[24] = t15;
|
|
205
|
+
} else t15 = $[24];
|
|
206
|
+
let t16;
|
|
207
|
+
if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
|
|
208
|
+
t16 = /* @__PURE__ */ jsx(DateRangeDash, {});
|
|
209
|
+
$[25] = t16;
|
|
210
|
+
} else t16 = $[25];
|
|
211
|
+
const t17 = endFocusProps.isFocused;
|
|
212
|
+
const t18 = props.isReadOnly;
|
|
213
|
+
const t19 = endFocusRingProps.focusProps;
|
|
214
|
+
const t20 = props.placement ?? "bottom right";
|
|
215
|
+
const t21 = props.targetRef ?? targetRef;
|
|
216
|
+
const t22 = endState.isOpen;
|
|
217
|
+
const t23 = props.shouldFlip;
|
|
218
|
+
const t24 = endState.setOpen;
|
|
219
|
+
let t25;
|
|
220
|
+
if ($[26] !== endFocusProps.focusProps || $[27] !== endProps.buttonProps) {
|
|
221
|
+
t25 = mergeProps$1(endFocusProps.focusProps, endProps.buttonProps);
|
|
222
|
+
$[26] = endFocusProps.focusProps;
|
|
223
|
+
$[27] = endProps.buttonProps;
|
|
224
|
+
$[28] = t25;
|
|
225
|
+
} else t25 = $[28];
|
|
226
|
+
let t26;
|
|
227
|
+
if ($[29] !== t) {
|
|
228
|
+
t26 = t("datePicker.showEndCalendar", "Show calendar for the end date");
|
|
229
|
+
$[29] = t;
|
|
230
|
+
$[30] = t26;
|
|
231
|
+
} else t26 = $[30];
|
|
232
|
+
let t27;
|
|
233
|
+
if ($[31] !== isDisabled || $[32] !== size || $[33] !== t25 || $[34] !== t26) {
|
|
234
|
+
t27 = /* @__PURE__ */ jsx(DatePickerButton, {
|
|
379
235
|
size,
|
|
380
|
-
...
|
|
381
|
-
"aria-label":
|
|
236
|
+
...t25,
|
|
237
|
+
"aria-label": t26,
|
|
382
238
|
isDisabled
|
|
383
239
|
});
|
|
384
|
-
$[
|
|
385
|
-
$[
|
|
386
|
-
$[
|
|
387
|
-
$[
|
|
388
|
-
$[
|
|
389
|
-
} else
|
|
390
|
-
const
|
|
391
|
-
let
|
|
392
|
-
if ($[
|
|
393
|
-
|
|
240
|
+
$[31] = isDisabled;
|
|
241
|
+
$[32] = size;
|
|
242
|
+
$[33] = t25;
|
|
243
|
+
$[34] = t26;
|
|
244
|
+
$[35] = t27;
|
|
245
|
+
} else t27 = $[35];
|
|
246
|
+
const t28 = state.value?.end || state.value?.start || void 0;
|
|
247
|
+
let t29;
|
|
248
|
+
if ($[36] !== state.value) {
|
|
249
|
+
t29 = state.value?.start && state.value?.end ? {
|
|
394
250
|
start: state.value.start,
|
|
395
251
|
end: state.value.end
|
|
396
252
|
} : void 0;
|
|
397
|
-
$[
|
|
398
|
-
$[
|
|
399
|
-
} else
|
|
400
|
-
let
|
|
401
|
-
if ($[
|
|
402
|
-
|
|
253
|
+
$[36] = state.value;
|
|
254
|
+
$[37] = t29;
|
|
255
|
+
} else t29 = $[37];
|
|
256
|
+
let t30;
|
|
257
|
+
if ($[38] !== onChange) {
|
|
258
|
+
t30 = (value_1) => {
|
|
403
259
|
onChange(value_1, "end");
|
|
404
260
|
};
|
|
405
|
-
$[
|
|
406
|
-
$[
|
|
407
|
-
} else
|
|
408
|
-
let
|
|
409
|
-
if ($[
|
|
410
|
-
|
|
261
|
+
$[38] = onChange;
|
|
262
|
+
$[39] = t30;
|
|
263
|
+
} else t30 = $[39];
|
|
264
|
+
let t31;
|
|
265
|
+
if ($[40] !== endProps.calendarProps || $[41] !== t28 || $[42] !== t29 || $[43] !== t30) {
|
|
266
|
+
t31 = /* @__PURE__ */ jsx(_Calendar, {
|
|
411
267
|
...endProps.calendarProps,
|
|
412
|
-
defaultFocusedValue:
|
|
413
|
-
selectedRange:
|
|
414
|
-
onChange:
|
|
415
|
-
});
|
|
416
|
-
$[98] = endProps.calendarProps;
|
|
417
|
-
$[99] = t45;
|
|
418
|
-
$[100] = t46;
|
|
419
|
-
$[101] = t47;
|
|
420
|
-
$[102] = t48;
|
|
421
|
-
} else t48 = $[102];
|
|
422
|
-
let t49;
|
|
423
|
-
if ($[103] !== endState.setTimeValue || $[104] !== endState.timeValue || $[105] !== props.hideTimeZone || $[106] !== props.hourCycle || $[107] !== showTimeField || $[108] !== t || $[109] !== timeGranularity || $[110] !== timeMaxValue || $[111] !== timeMinValue || $[112] !== timePlaceholder) {
|
|
424
|
-
t49 = showTimeField && /* @__PURE__ */ jsx(_TimeInput, {
|
|
425
|
-
padding: "1x",
|
|
426
|
-
label: t("datePicker.time", "Time"),
|
|
427
|
-
value: endState.timeValue,
|
|
428
|
-
placeholderValue: timePlaceholder,
|
|
429
|
-
granularity: timeGranularity,
|
|
430
|
-
minValue: timeMinValue,
|
|
431
|
-
maxValue: timeMaxValue,
|
|
432
|
-
hourCycle: props.hourCycle,
|
|
433
|
-
hideTimeZone: props.hideTimeZone,
|
|
434
|
-
onChange: endState.setTimeValue
|
|
268
|
+
defaultFocusedValue: t28,
|
|
269
|
+
selectedRange: t29,
|
|
270
|
+
onChange: t30
|
|
435
271
|
});
|
|
436
|
-
$[
|
|
437
|
-
$[
|
|
438
|
-
$[
|
|
439
|
-
$[
|
|
440
|
-
$[
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
272
|
+
$[40] = endProps.calendarProps;
|
|
273
|
+
$[41] = t28;
|
|
274
|
+
$[42] = t29;
|
|
275
|
+
$[43] = t30;
|
|
276
|
+
$[44] = t31;
|
|
277
|
+
} else t31 = $[44];
|
|
278
|
+
const t32 = showTimeField && /* @__PURE__ */ jsx(_TimeInput, {
|
|
279
|
+
label: t("datePicker.time", "Time"),
|
|
280
|
+
value: endState.timeValue,
|
|
281
|
+
placeholderValue: timePlaceholder,
|
|
282
|
+
granularity: timeGranularity,
|
|
283
|
+
minValue: timeMinValue,
|
|
284
|
+
maxValue: timeMaxValue,
|
|
285
|
+
hourCycle: props.hourCycle,
|
|
286
|
+
hideTimeZone: props.hideTimeZone,
|
|
287
|
+
onChange: endState.setTimeValue
|
|
288
|
+
});
|
|
289
|
+
let t33;
|
|
290
|
+
if ($[45] !== endProps.dialogProps || $[46] !== t31 || $[47] !== t32) {
|
|
291
|
+
t33 = /* @__PURE__ */ jsxs(Dialog, {
|
|
451
292
|
...endProps.dialogProps,
|
|
452
293
|
width: "max-content",
|
|
453
294
|
overflow: "auto",
|
|
454
|
-
children: [
|
|
295
|
+
children: [t31, t32]
|
|
455
296
|
});
|
|
456
|
-
$[
|
|
457
|
-
$[
|
|
458
|
-
$[
|
|
459
|
-
$[
|
|
460
|
-
} else
|
|
461
|
-
let
|
|
462
|
-
if ($[
|
|
463
|
-
|
|
297
|
+
$[45] = endProps.dialogProps;
|
|
298
|
+
$[46] = t31;
|
|
299
|
+
$[47] = t32;
|
|
300
|
+
$[48] = t33;
|
|
301
|
+
} else t33 = $[48];
|
|
302
|
+
let t34;
|
|
303
|
+
if ($[49] !== endState.isOpen || $[50] !== endState.setOpen || $[51] !== props || $[52] !== t20 || $[53] !== t21 || $[54] !== t27 || $[55] !== t33) {
|
|
304
|
+
t34 = /* @__PURE__ */ jsxs(DialogTrigger, {
|
|
464
305
|
hideArrow: true,
|
|
465
306
|
type: "popover",
|
|
466
|
-
placement:
|
|
467
|
-
targetRef:
|
|
468
|
-
isOpen:
|
|
469
|
-
shouldFlip:
|
|
470
|
-
onOpenChange:
|
|
471
|
-
children: [
|
|
307
|
+
placement: t20,
|
|
308
|
+
targetRef: t21,
|
|
309
|
+
isOpen: t22,
|
|
310
|
+
shouldFlip: t23,
|
|
311
|
+
onOpenChange: t24,
|
|
312
|
+
children: [t27, t33]
|
|
472
313
|
});
|
|
473
|
-
$[
|
|
474
|
-
$[
|
|
475
|
-
$[
|
|
476
|
-
$[
|
|
477
|
-
$[
|
|
478
|
-
$[
|
|
479
|
-
$[
|
|
480
|
-
$[
|
|
481
|
-
} else
|
|
482
|
-
let
|
|
483
|
-
if ($[
|
|
484
|
-
|
|
314
|
+
$[49] = endState.isOpen;
|
|
315
|
+
$[50] = endState.setOpen;
|
|
316
|
+
$[51] = props;
|
|
317
|
+
$[52] = t20;
|
|
318
|
+
$[53] = t21;
|
|
319
|
+
$[54] = t27;
|
|
320
|
+
$[55] = t33;
|
|
321
|
+
$[56] = t34;
|
|
322
|
+
} else t34 = $[56];
|
|
323
|
+
let t35;
|
|
324
|
+
if ($[57] !== endFieldProps || $[58] !== useLocaleProp) {
|
|
325
|
+
t35 = /* @__PURE__ */ jsx(DatePickerInput, {
|
|
485
326
|
useLocale: useLocaleProp,
|
|
486
327
|
...endFieldProps
|
|
487
328
|
});
|
|
488
|
-
$[
|
|
489
|
-
$[
|
|
490
|
-
$[
|
|
491
|
-
} else
|
|
492
|
-
let
|
|
493
|
-
if ($[
|
|
494
|
-
|
|
495
|
-
disableFocusRing:
|
|
329
|
+
$[57] = endFieldProps;
|
|
330
|
+
$[58] = useLocaleProp;
|
|
331
|
+
$[59] = t35;
|
|
332
|
+
} else t35 = $[59];
|
|
333
|
+
let t36;
|
|
334
|
+
if ($[60] !== endFocusProps.isFocused || $[61] !== endFocusRingProps.focusProps || $[62] !== isDisabled || $[63] !== isInvalid || $[64] !== isValid || $[65] !== props || $[66] !== size || $[67] !== t34 || $[68] !== t35) {
|
|
335
|
+
t36 = /* @__PURE__ */ jsx(_DateInputBase, {
|
|
336
|
+
disableFocusRing: t17,
|
|
496
337
|
isDisabled,
|
|
338
|
+
isReadOnly: t18,
|
|
497
339
|
isInvalid,
|
|
498
340
|
isValid,
|
|
499
341
|
size,
|
|
500
|
-
...
|
|
501
|
-
suffix:
|
|
502
|
-
children:
|
|
503
|
-
});
|
|
504
|
-
$[129] = endFocusProps.isFocused;
|
|
505
|
-
$[130] = endFocusRingProps.focusProps;
|
|
506
|
-
$[131] = isDisabled;
|
|
507
|
-
$[132] = isInvalid;
|
|
508
|
-
$[133] = isValid;
|
|
509
|
-
$[134] = size;
|
|
510
|
-
$[135] = t51;
|
|
511
|
-
$[136] = t52;
|
|
512
|
-
$[137] = t53;
|
|
513
|
-
} else t53 = $[137];
|
|
514
|
-
let t54;
|
|
515
|
-
if ($[138] !== groupProps || $[139] !== styles || $[140] !== t14 || $[141] !== t33 || $[142] !== t53) {
|
|
516
|
-
t54 = /* @__PURE__ */ jsxs(DatePickerElement, {
|
|
517
|
-
ref: targetRef,
|
|
518
|
-
...groupProps,
|
|
519
|
-
styles,
|
|
520
|
-
qa: t14,
|
|
521
|
-
"data-input-type": "daterangeseparatedpicker",
|
|
522
|
-
children: [
|
|
523
|
-
t33,
|
|
524
|
-
t34,
|
|
525
|
-
t53
|
|
526
|
-
]
|
|
527
|
-
});
|
|
528
|
-
$[138] = groupProps;
|
|
529
|
-
$[139] = styles;
|
|
530
|
-
$[140] = t14;
|
|
531
|
-
$[141] = t33;
|
|
532
|
-
$[142] = t53;
|
|
533
|
-
$[143] = t54;
|
|
534
|
-
} else t54 = $[143];
|
|
535
|
-
const component = t54;
|
|
536
|
-
let t55;
|
|
537
|
-
if ($[144] !== component || $[145] !== labelProps || $[146] !== props) {
|
|
538
|
-
t55 = wrapWithField(component, {
|
|
539
|
-
...props,
|
|
540
|
-
labelProps: mergeProps$1(props.labelProps, labelProps)
|
|
342
|
+
...t19,
|
|
343
|
+
suffix: t34,
|
|
344
|
+
children: t35
|
|
541
345
|
});
|
|
542
|
-
$[
|
|
543
|
-
$[
|
|
544
|
-
$[
|
|
545
|
-
$[
|
|
546
|
-
|
|
547
|
-
|
|
346
|
+
$[60] = endFocusProps.isFocused;
|
|
347
|
+
$[61] = endFocusRingProps.focusProps;
|
|
348
|
+
$[62] = isDisabled;
|
|
349
|
+
$[63] = isInvalid;
|
|
350
|
+
$[64] = isValid;
|
|
351
|
+
$[65] = props;
|
|
352
|
+
$[66] = size;
|
|
353
|
+
$[67] = t34;
|
|
354
|
+
$[68] = t35;
|
|
355
|
+
$[69] = t36;
|
|
356
|
+
} else t36 = $[69];
|
|
357
|
+
const component = /* @__PURE__ */ jsxs(DatePickerElement, {
|
|
358
|
+
ref: targetRef,
|
|
359
|
+
...groupProps,
|
|
360
|
+
styles,
|
|
361
|
+
qa: qa || "DateRangeSeparatedPicker",
|
|
362
|
+
"data-input-type": "daterangeseparatedpicker",
|
|
363
|
+
children: [
|
|
364
|
+
/* @__PURE__ */ jsx(_DateInputBase, {
|
|
365
|
+
autoFocus,
|
|
366
|
+
disableFocusRing: t2,
|
|
367
|
+
isDisabled,
|
|
368
|
+
isReadOnly: t3,
|
|
369
|
+
isInvalid,
|
|
370
|
+
isValid,
|
|
371
|
+
size,
|
|
372
|
+
...t4,
|
|
373
|
+
suffix: /* @__PURE__ */ jsxs(DialogTrigger, {
|
|
374
|
+
hideArrow: true,
|
|
375
|
+
type: "popover",
|
|
376
|
+
placement: props.placement ?? "bottom right",
|
|
377
|
+
targetRef: props.targetRef ?? targetRef,
|
|
378
|
+
isOpen: t5,
|
|
379
|
+
shouldFlip: t6,
|
|
380
|
+
onOpenChange: t7,
|
|
381
|
+
children: [/* @__PURE__ */ jsx(DatePickerButton, {
|
|
382
|
+
size,
|
|
383
|
+
...t8,
|
|
384
|
+
"aria-label": t9,
|
|
385
|
+
isDisabled
|
|
386
|
+
}), t15]
|
|
387
|
+
}),
|
|
388
|
+
children: /* @__PURE__ */ jsx(DatePickerInput, {
|
|
389
|
+
useLocale: useLocaleProp,
|
|
390
|
+
...startFieldProps
|
|
391
|
+
})
|
|
392
|
+
}),
|
|
393
|
+
t16,
|
|
394
|
+
t36
|
|
395
|
+
]
|
|
396
|
+
});
|
|
397
|
+
return wrapWithField(component, {
|
|
398
|
+
...props,
|
|
399
|
+
...fieldLayout.field,
|
|
400
|
+
labelProps: mergeProps$1(props.labelProps, labelProps)
|
|
401
|
+
});
|
|
548
402
|
}
|
|
549
403
|
const _DateRangeSeparatedPicker = forwardRef(DateRangeSeparatedPicker);
|
|
550
404
|
_DateRangeSeparatedPicker.displayName = "DateRangeSeparatedPicker";
|