@cube-dev/ui-kit 0.0.0-canary-5a0d20c → 0.0.0-canary-8e50ee1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_internal/hooks/use-debounced-value.js +1 -1
- package/dist/_internal/hooks/use-deprecation-warning.js +1 -1
- package/dist/_internal/hooks/use-event.js +1 -1
- package/dist/_internal/hooks/use-is-first-render.js +1 -1
- package/dist/_internal/hooks/use-sync-ref.js +1 -1
- package/dist/_internal/hooks/use-timer/timer.js +1 -1
- package/dist/_internal/hooks/use-timer/use-timer.js +1 -1
- package/dist/_internal/hooks/use-warn.js +1 -1
- package/dist/components/Block.js +1 -1
- package/dist/components/CollectionItem.js +1 -1
- package/dist/components/GlobalStyles.js +1 -1
- package/dist/components/GridProvider.js +1 -1
- package/dist/components/HiddenInput.js +1 -1
- package/dist/components/Root.js +1 -1
- package/dist/components/actions/Action/Action.js +1 -1
- package/dist/components/actions/Banner/Banner.js +1 -1
- package/dist/components/actions/Button/Button.js +1 -1
- package/dist/components/actions/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/actions/ButtonSplit/ButtonSplit.js +1 -1
- package/dist/components/actions/ButtonSplit/context.js +1 -1
- package/dist/components/actions/CommandMenu/CommandMenu.js +1 -1
- package/dist/components/actions/CommandMenu/styled.js +1 -1
- package/dist/components/actions/ItemAction/ItemAction.js +1 -1
- package/dist/components/actions/ItemActionContext.js +1 -1
- package/dist/components/actions/ItemActionsWrapper.js +1 -1
- package/dist/components/actions/ItemButton/ItemButton.js +1 -1
- package/dist/components/actions/Link/Link.js +1 -1
- package/dist/components/actions/Menu/Menu.js +1 -1
- package/dist/components/actions/Menu/MenuCollectionItem.js +1 -1
- package/dist/components/actions/Menu/MenuItem.js +1 -1
- package/dist/components/actions/Menu/MenuSection.js +1 -1
- package/dist/components/actions/Menu/MenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubMenuTrigger.js +1 -1
- package/dist/components/actions/Menu/SubmenuTriggerContext.js +1 -1
- package/dist/components/actions/Menu/context.js +1 -1
- package/dist/components/actions/Menu/styled.js +1 -1
- package/dist/components/actions/actions-run.js +1 -1
- package/dist/components/actions/index.js +1 -1
- package/dist/components/actions/use-action.js +1 -1
- package/dist/components/actions/use-anchored-menu.js +1 -1
- package/dist/components/actions/use-context-menu.js +1 -1
- package/dist/components/content/ActiveZone/ActiveZone.js +1 -1
- package/dist/components/content/Alert/Alert.js +1 -1
- package/dist/components/content/Alert/use-alert.js +1 -1
- package/dist/components/content/Avatar/Avatar.js +1 -1
- package/dist/components/content/Badge/Badge.js +1 -1
- package/dist/components/content/Card/Card.js +1 -1
- package/dist/components/content/Content.js +1 -1
- package/dist/components/content/CopyPasteBlock/CopyPasteBlock.js +1 -1
- package/dist/components/content/CopySnippet/CopySnippet.js +1 -1
- package/dist/components/content/Disclosure/Disclosure.js +1 -1
- package/dist/components/content/Divider/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 +1 -1
- package/dist/components/data/ItemTable/ItemTableBulkBar.js +1 -1
- package/dist/components/data/ItemTable/ItemTableDragPreview.js +1 -1
- package/dist/components/data/ItemTable/ItemTableFooter.js +1 -1
- package/dist/components/data/ItemTable/ItemTableToolbar.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-column-widths.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-drag-drop.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-pagination.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-selection.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-sort.js +1 -1
- package/dist/components/data/ItemTable/use-item-table-tree-model.js +1 -1
- package/dist/components/data/TableBase/ColumnResizer.js +1 -1
- package/dist/components/data/TableBase/RowCollection.js +1 -1
- package/dist/components/data/TableBase/TableHeaderCell.js +1 -1
- package/dist/components/data/TableBase/TableRow.js +1 -1
- package/dist/components/data/TableBase/TableRowLink.js +1 -1
- package/dist/components/data/TableBase/TableView.js +1 -1
- package/dist/components/data/TableBase/TreeGridTable.js +1 -1
- package/dist/components/data/TableBase/column-header.js +1 -1
- package/dist/components/data/TableBase/column-menu.js +1 -1
- package/dist/components/data/TableBase/column-styles.js +1 -1
- package/dist/components/data/TableBase/column-tint.js +1 -1
- package/dist/components/data/TableBase/row-menu.js +1 -1
- package/dist/components/data/TableBase/styled.js +1 -1
- package/dist/components/data/TableBase/table-tree.js +1 -1
- package/dist/components/data/TableBase/types.js +1 -1
- package/dist/components/data/TableBase/use-cell-selection.js +0 -0
- package/dist/components/data/TableBase/use-column-menu.js +1 -1
- package/dist/components/data/TableBase/use-column-order.js +1 -1
- package/dist/components/data/TableBase/use-column-window.js +1 -1
- package/dist/components/data/TableBase/use-container-width.js +1 -1
- package/dist/components/data/TableBase/use-row-move-animation.js +1 -1
- package/dist/components/data/TableBase/use-scrollability.js +1 -1
- package/dist/components/data/TableBase/use-table-columns.js +1 -1
- package/dist/components/data/TableBase/use-table-search.js +1 -1
- package/dist/components/data/TableBase/use-table-selection.js +1 -1
- package/dist/components/data/TableBase/use-table-sort.js +1 -1
- package/dist/components/data/TableBase/use-table-sorts.js +1 -1
- package/dist/components/data/TableBase/use-table-storage.js +1 -1
- package/dist/components/data/TableBase/use-table-tooltip-refresh.js +1 -1
- package/dist/components/data/TableBase/use-table-tree-state.js +1 -1
- package/dist/components/fields/Checkbox/Checkbox.d.ts +2 -3
- package/dist/components/fields/Checkbox/Checkbox.js +4 -5
- package/dist/components/fields/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/fields/Checkbox/CheckboxGroup.d.ts +2 -3
- package/dist/components/fields/Checkbox/CheckboxGroup.js +38 -19
- 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 +2 -3
- package/dist/components/fields/ColorInput/ColorInput.js +3 -3
- package/dist/components/fields/ColorInput/ColorInput.js.map +1 -1
- package/dist/components/fields/ColorPicker/ColorPicker.d.ts +3 -9
- package/dist/components/fields/ColorPicker/ColorPicker.js +196 -186
- 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 +2 -3
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js +171 -143
- package/dist/components/fields/ColorSwatchGroup/ColorSwatchGroup.js.map +1 -1
- package/dist/components/fields/ComboBox/ComboBox.d.ts +2 -3
- package/dist/components/fields/ComboBox/ComboBox.js +572 -589
- package/dist/components/fields/ComboBox/ComboBox.js.map +1 -1
- package/dist/components/fields/ComboBox/comboBoxOptions.js +1 -1
- package/dist/components/fields/CommandTextArea/CommandTextArea.js +3 -3
- 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 +2 -3
- package/dist/components/fields/DatePicker/DateInput.js +5 -6
- package/dist/components/fields/DatePicker/DateInput.js.map +1 -1
- package/dist/components/fields/DatePicker/DateInputBase.js +1 -1
- package/dist/components/fields/DatePicker/DatePicker.d.ts +2 -3
- package/dist/components/fields/DatePicker/DatePicker.js +173 -83
- 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 +2 -3
- package/dist/components/fields/DatePicker/DateRangePicker.js +204 -115
- package/dist/components/fields/DatePicker/DateRangePicker.js.map +1 -1
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.d.ts +2 -3
- package/dist/components/fields/DatePicker/DateRangeSeparatedPicker.js +434 -284
- 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 +2 -3
- package/dist/components/fields/DatePicker/PeriodPicker.js +113 -86
- 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 +2 -3
- package/dist/components/fields/DatePicker/TimeInput.js +5 -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 +2 -3
- package/dist/components/fields/FileInput/FileInput.js +141 -114
- package/dist/components/fields/FileInput/FileInput.js.map +1 -1
- package/dist/components/fields/FilterListBox/FilterListBox.js +12 -64
- 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 +29 -9
- package/dist/components/fields/FilterPicker/FilterPicker.js +75 -16
- 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 +2 -3
- package/dist/components/fields/ListBox/ListBox.js +10 -7
- 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 +3 -3
- package/dist/components/fields/NumberInput/NumberInput.js.map +1 -1
- package/dist/components/fields/NumberInput/StepButton.js +1 -1
- package/dist/components/fields/PasswordInput/PasswordInput.js +3 -3
- package/dist/components/fields/PasswordInput/PasswordInput.js.map +1 -1
- package/dist/components/fields/Picker/Picker.d.ts +3 -9
- package/dist/components/fields/Picker/Picker.js +11 -12
- package/dist/components/fields/Picker/Picker.js.map +1 -1
- package/dist/components/fields/RadioGroup/Radio.js +1 -1
- package/dist/components/fields/RadioGroup/RadioGroup.d.ts +2 -3
- package/dist/components/fields/RadioGroup/RadioGroup.js +110 -73
- package/dist/components/fields/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/components/fields/RadioGroup/context.js +1 -1
- package/dist/components/fields/SearchComboBox/SearchComboBox.d.ts +2 -3
- package/dist/components/fields/SearchComboBox/SearchComboBox.js +21 -12
- package/dist/components/fields/SearchComboBox/SearchComboBox.js.map +1 -1
- package/dist/components/fields/SearchInput/SearchInput.js +3 -3
- package/dist/components/fields/SearchInput/SearchInput.js.map +1 -1
- package/dist/components/fields/Select/Select.d.ts +2 -3
- package/dist/components/fields/Select/Select.js +10 -8
- 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 +42 -25
- package/dist/components/fields/Slider/RangeSlider.js.map +1 -1
- package/dist/components/fields/Slider/Slider.js +39 -36
- package/dist/components/fields/Slider/Slider.js.map +1 -1
- package/dist/components/fields/Slider/SliderBase.js +60 -61
- 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 +2 -3
- package/dist/components/fields/Switch/Switch.d.ts +2 -3
- package/dist/components/fields/Switch/Switch.js +124 -90
- package/dist/components/fields/Switch/Switch.js.map +1 -1
- package/dist/components/fields/TagInput/TagInput.d.ts +2 -3
- package/dist/components/fields/TagInput/TagInput.js +6 -7
- package/dist/components/fields/TagInput/TagInput.js.map +1 -1
- package/dist/components/fields/TagInput/TagList.js +1 -1
- package/dist/components/fields/TagInput/useActiveOption.js +1 -1
- package/dist/components/fields/TagInput/useTagError.js +1 -1
- package/dist/components/fields/TextArea/TextArea.js +3 -3
- package/dist/components/fields/TextArea/TextArea.js.map +1 -1
- package/dist/components/fields/TextInput/TextInput.js +3 -3
- package/dist/components/fields/TextInput/TextInput.js.map +1 -1
- package/dist/components/fields/TextInput/TextInputBase.d.ts +14 -5
- package/dist/components/fields/TextInput/TextInputBase.js +195 -98
- 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 +57 -120
- 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/index.d.ts +1 -2
- package/dist/components/form/legacy-tooltip.js +2 -15
- 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 +2 -6
- 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 +1 -1
- package/dist/components/navigation/Tabs/TabsAction.js +1 -1
- package/dist/components/navigation/Tabs/TabsContext.js +1 -1
- package/dist/components/navigation/Tabs/popover-placement.js +1 -1
- package/dist/components/navigation/Tabs/styled.js +1 -1
- package/dist/components/navigation/Tabs/types.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-editing.js +1 -1
- package/dist/components/navigation/Tabs/use-tab-indicator.js +1 -1
- package/dist/components/organisms/StatsCard/StatsCard.js +1 -1
- package/dist/components/other/Calendar/Calendar.js +1 -1
- package/dist/components/other/Calendar/CalendarCell.js +1 -1
- package/dist/components/other/Calendar/CalendarGrid.js +1 -1
- package/dist/components/other/Calendar/CalendarHeader.js +1 -1
- package/dist/components/other/Calendar/CalendarPanel.js +1 -1
- package/dist/components/other/Calendar/PeriodCalendar.js +1 -1
- package/dist/components/other/Calendar/PeriodGrid.js +1 -1
- package/dist/components/other/Calendar/RangeCalendar.js +1 -1
- package/dist/components/other/Calendar/styled.js +1 -1
- package/dist/components/other/CubeLogo/CubeLogo.js +1 -1
- package/dist/components/other/NoDataIcon/NoDataIcon.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogApiProvider.js +1 -1
- package/dist/components/overlays/AlertDialog/AlertDialogZone.js +1 -1
- package/dist/components/overlays/Dialog/Dialog.js +1 -1
- package/dist/components/overlays/Dialog/DialogContainer.js +1 -1
- package/dist/components/overlays/Dialog/DialogForm.js +1 -1
- package/dist/components/overlays/Dialog/DialogTrigger.js +1 -1
- package/dist/components/overlays/Dialog/ModernDialogForm.js +1 -1
- package/dist/components/overlays/Dialog/context.js +1 -1
- package/dist/components/overlays/Dialog/default-button-text.js +1 -1
- package/dist/components/overlays/Dialog/use-content-overflow.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-container.js +1 -1
- package/dist/components/overlays/Dialog/use-dialog-open-sync.js +1 -1
- package/dist/components/overlays/Dialog/use-retained-dialog-focus.js +1 -1
- package/dist/components/overlays/Modal/Modal.js +1 -1
- package/dist/components/overlays/Modal/OpenTransitionContext.js +1 -1
- package/dist/components/overlays/Modal/Overlay.js +1 -1
- package/dist/components/overlays/Modal/Popover.js +1 -1
- package/dist/components/overlays/Modal/Tray.js +1 -1
- package/dist/components/overlays/Modal/Underlay.js +1 -1
- package/dist/components/overlays/Modal/modal-containment.js +1 -1
- package/dist/components/overlays/Notifications/Notification.js +1 -1
- package/dist/components/overlays/Notifications/NotificationAction.js +1 -1
- package/dist/components/overlays/Notifications/NotificationCard.js +1 -1
- package/dist/components/overlays/Notifications/NotificationContext.js +1 -1
- package/dist/components/overlays/Notifications/NotificationItem.js +1 -1
- package/dist/components/overlays/Notifications/OverlayContainer.js +1 -1
- package/dist/components/overlays/Notifications/OverlayProvider.js +1 -1
- package/dist/components/overlays/Notifications/PersistentNotificationsList.js +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 +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 +3 -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.js +1 -1
- package/dist/providers/TrackingProvider.js +1 -1
- package/dist/providers/navigation-url.js +1 -1
- package/dist/providers/navigationAdapter.default.js +1 -1
- package/dist/providers/use-navigation.js +1 -1
- package/dist/tokens/all-tokens.js +1 -1
- package/dist/tokens/base.js +1 -1
- package/dist/tokens/color-seed.js +1 -1
- package/dist/tokens/color-theme.js +1 -1
- package/dist/tokens/colors.js +1 -1
- package/dist/tokens/layout.js +1 -1
- package/dist/tokens/lazy-styles.js +1 -1
- package/dist/tokens/legacy-color.js +1 -1
- package/dist/tokens/palette-config.js +1 -1
- package/dist/tokens/palette.js +1 -1
- package/dist/tokens/resolve.js +1 -1
- package/dist/tokens/shadows.js +1 -1
- package/dist/tokens/sizes.js +1 -1
- package/dist/tokens/spacing.js +1 -1
- package/dist/tokens/typography.js +1 -1
- package/dist/utils/ResizeSensor.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/dotize.js +1 -1
- package/dist/utils/is-dev-env.js +1 -1
- package/dist/utils/modules.js +1 -1
- package/dist/utils/promise.js +1 -1
- package/dist/utils/raf.js +1 -1
- package/dist/utils/random.js +1 -1
- package/dist/utils/range.js +1 -1
- package/dist/utils/react/RenderCache.js +1 -1
- package/dist/utils/react/Slots.js +1 -1
- package/dist/utils/react/chain.js +1 -1
- package/dist/utils/react/disabledProps.js +3 -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 +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 +5 -15
- package/docs/Usage.md +0 -2
- package/docs/components/content/Divider.md +103 -21
- package/docs/components/content/Tree.md +5 -4
- package/docs/components/fields/Checkbox.md +4 -0
- package/docs/components/fields/ColorInput.md +3 -0
- package/docs/components/fields/ColorPicker.md +2 -2
- package/docs/components/fields/ColorSwatchGroup.md +3 -2
- package/docs/components/fields/ComboBox.md +3 -0
- package/docs/components/fields/CommandTextArea.md +4 -0
- package/docs/components/fields/DatePicker.md +4 -0
- package/docs/components/fields/FileInput.md +5 -1
- package/docs/components/fields/FilterListBox.md +3 -0
- package/docs/components/fields/FilterPicker.md +70 -3
- package/docs/components/fields/HueSlider.md +2 -1
- package/docs/components/fields/ListBox.md +3 -0
- package/docs/components/fields/NumberInput.md +5 -1
- package/docs/components/fields/PasswordInput.md +4 -0
- package/docs/components/fields/PeriodPicker.md +4 -0
- package/docs/components/fields/Picker.md +4 -2
- package/docs/components/fields/RadioGroup.md +4 -1
- package/docs/components/fields/SearchComboBox.md +3 -0
- package/docs/components/fields/SearchInput.md +4 -0
- package/docs/components/fields/Select.md +3 -0
- package/docs/components/fields/Slider.md +1 -0
- package/docs/components/fields/Switch.md +1 -0
- package/docs/components/fields/TagInput.md +5 -1
- package/docs/components/fields/TextArea.md +4 -0
- package/docs/components/fields/TextInput.md +33 -2
- package/docs/components/overlays/Tooltip.md +1 -1
- package/package.json +1 -1
- 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
- package/dist/components/form/field-layout.d.ts +0 -10
- package/dist/components/form/field-layout.js +0 -96
- package/dist/components/form/field-layout.js.map +0 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-
|
|
2
|
-
import { mergeStyleLayers } from "../../../utils/styles.js";
|
|
1
|
+
/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-8e50ee1 | Cube Dev Team */
|
|
2
|
+
import { extractStyles, mergeStyleLayers } from "../../../utils/styles.js";
|
|
3
3
|
import { mergeProps as mergeProps$1 } from "../../../utils/react/mergeProps.js";
|
|
4
4
|
import { useI18n } from "../../../i18n/useI18n.js";
|
|
5
5
|
import { Dialog } from "../../overlays/Dialog/Dialog.js";
|
|
6
6
|
import { useFieldProps } from "../../form/Form/use-field/use-field-props.js";
|
|
7
7
|
import { wrapWithField } from "../../form/wrapper.js";
|
|
8
|
-
import { splitFieldLayout } from "../../form/field-layout.js";
|
|
9
8
|
import { DialogTrigger } from "../../overlays/Dialog/DialogTrigger.js";
|
|
10
9
|
import { DateInputBase as _DateInputBase } from "./DateInputBase.js";
|
|
11
10
|
import { DEFAULT_DATE_PROPS } from "./props.js";
|
|
@@ -16,7 +15,7 @@ import { DatePickerButton } from "./DatePickerButton.js";
|
|
|
16
15
|
import { DatePickerInput } from "./DatePickerInput.js";
|
|
17
16
|
import { DatePickerElement } from "./DatePickerElement.js";
|
|
18
17
|
import { c } from "react/compiler-runtime";
|
|
19
|
-
import { tasty } from "@tenphi/tasty";
|
|
18
|
+
import { CONTAINER_STYLES, tasty } from "@tenphi/tasty";
|
|
20
19
|
import { forwardRef, useRef } from "react";
|
|
21
20
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
22
21
|
import { useDatePicker, useDateRangePicker, useFocusRing } from "react-aria";
|
|
@@ -32,7 +31,7 @@ const DateRangeDash = tasty({
|
|
|
32
31
|
}
|
|
33
32
|
});
|
|
34
33
|
function DateRangeSeparatedPicker(rawProps, ref) {
|
|
35
|
-
const $ = c(
|
|
34
|
+
const $ = c(148);
|
|
36
35
|
const { t } = useI18n();
|
|
37
36
|
let t0;
|
|
38
37
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
@@ -40,48 +39,107 @@ function DateRangeSeparatedPicker(rawProps, ref) {
|
|
|
40
39
|
$[0] = t0;
|
|
41
40
|
} else t0 = $[0];
|
|
42
41
|
let props = useFieldProps(rawProps, t0);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
let t1;
|
|
43
|
+
if ($[1] !== props) {
|
|
44
|
+
props = Object.assign({}, DEFAULT_DATE_PROPS, props);
|
|
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;
|
|
46
54
|
const { qa, size, placeholderValue, isDisabled, isInvalid, isValid, useLocale: useLocaleProp, autoFocus } = props;
|
|
47
55
|
const targetRef = useRef(null);
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
...props
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
let t2;
|
|
57
|
+
if ($[4] !== props) {
|
|
58
|
+
t2 = { ...props };
|
|
59
|
+
$[4] = props;
|
|
60
|
+
$[5] = t2;
|
|
61
|
+
} else t2 = $[5];
|
|
62
|
+
const state = useDateRangePickerState(t2);
|
|
63
|
+
const t3 = state.value?.start;
|
|
64
|
+
const t4 = props.defaultValue?.start;
|
|
65
|
+
let t5;
|
|
66
|
+
if ($[6] !== props || $[7] !== t3 || $[8] !== t4) {
|
|
67
|
+
t5 = {
|
|
68
|
+
...props,
|
|
69
|
+
onChange: void 0,
|
|
70
|
+
validate: void 0,
|
|
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;
|
|
63
97
|
const startState = useDatePickerState(startDateProps);
|
|
64
98
|
const endState = useDatePickerState(endDateProps);
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
autoFocus
|
|
84
|
-
|
|
99
|
+
let t9;
|
|
100
|
+
if ($[14] !== autoFocus) {
|
|
101
|
+
t9 = {
|
|
102
|
+
within: true,
|
|
103
|
+
isTextInput: true,
|
|
104
|
+
autoFocus
|
|
105
|
+
};
|
|
106
|
+
$[14] = autoFocus;
|
|
107
|
+
$[15] = t9;
|
|
108
|
+
} else t9 = $[15];
|
|
109
|
+
const startFocusRingProps = useFocusRing(t9);
|
|
110
|
+
let t10;
|
|
111
|
+
if ($[16] !== autoFocus) {
|
|
112
|
+
t10 = {
|
|
113
|
+
within: false,
|
|
114
|
+
isTextInput: false,
|
|
115
|
+
autoFocus
|
|
116
|
+
};
|
|
117
|
+
$[16] = autoFocus;
|
|
118
|
+
$[17] = t10;
|
|
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);
|
|
85
143
|
useFocusManagerRef(ref, targetRef);
|
|
86
144
|
const { groupProps, labelProps, startFieldProps, endFieldProps } = useDateRangePicker(props, state, targetRef);
|
|
87
145
|
const startProps = useDatePicker(startDateProps, startState, targetRef);
|
|
@@ -92,9 +150,9 @@ function DateRangeSeparatedPicker(rawProps, ref) {
|
|
|
92
150
|
const timeMaxValue = props.maxValue && "hour" in props.maxValue ? props.maxValue : void 0;
|
|
93
151
|
const timeGranularity = state.granularity === "hour" || state.granularity === "minute" || state.granularity === "second" ? state.granularity : void 0;
|
|
94
152
|
const showTimeField = !!timeGranularity;
|
|
95
|
-
let
|
|
96
|
-
if ($[
|
|
97
|
-
|
|
153
|
+
let t13;
|
|
154
|
+
if ($[22] !== endProps.calendarProps || $[23] !== endState || $[24] !== startProps.calendarProps || $[25] !== startState || $[26] !== state) {
|
|
155
|
+
t13 = function onChange(value, type) {
|
|
98
156
|
if (type === "start") {
|
|
99
157
|
const newRange = {
|
|
100
158
|
...state.value,
|
|
@@ -123,278 +181,370 @@ function DateRangeSeparatedPicker(rawProps, ref) {
|
|
|
123
181
|
endState.setOpen(false);
|
|
124
182
|
}
|
|
125
183
|
};
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
132
|
-
} else
|
|
133
|
-
const onChange =
|
|
134
|
-
const
|
|
135
|
-
const
|
|
136
|
-
const
|
|
137
|
-
const
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
184
|
+
$[22] = endProps.calendarProps;
|
|
185
|
+
$[23] = endState;
|
|
186
|
+
$[24] = startProps.calendarProps;
|
|
187
|
+
$[25] = startState;
|
|
188
|
+
$[26] = state;
|
|
189
|
+
$[27] = t13;
|
|
190
|
+
} else t13 = $[27];
|
|
191
|
+
const onChange = t13;
|
|
192
|
+
const t14 = qa || "DateRangeSeparatedPicker";
|
|
193
|
+
const t15 = startFocusProps.isFocused;
|
|
194
|
+
const t16 = startFocusRingProps.focusProps;
|
|
195
|
+
const t17 = props.placement ?? "bottom right";
|
|
196
|
+
const t18 = props.targetRef ?? targetRef;
|
|
197
|
+
const t19 = startState.isOpen;
|
|
198
|
+
const t20 = props.shouldFlip;
|
|
199
|
+
const t21 = startState.setOpen;
|
|
200
|
+
let t22;
|
|
201
|
+
if ($[28] !== startFocusProps.focusProps || $[29] !== startProps.buttonProps) {
|
|
202
|
+
t22 = mergeProps$1(startProps.buttonProps, startFocusProps.focusProps);
|
|
203
|
+
$[28] = startFocusProps.focusProps;
|
|
204
|
+
$[29] = startProps.buttonProps;
|
|
205
|
+
$[30] = t22;
|
|
206
|
+
} else t22 = $[30];
|
|
207
|
+
let t23;
|
|
208
|
+
if ($[31] !== t) {
|
|
209
|
+
t23 = t("datePicker.showStartCalendar", "Show calendar for the start date");
|
|
210
|
+
$[31] = t;
|
|
211
|
+
$[32] = t23;
|
|
212
|
+
} else t23 = $[32];
|
|
213
|
+
let t24;
|
|
214
|
+
if ($[33] !== isDisabled || $[34] !== size || $[35] !== t22 || $[36] !== t23) {
|
|
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 ? {
|
|
156
231
|
start: state.value.start,
|
|
157
232
|
end: state.value.end
|
|
158
233
|
} : void 0;
|
|
159
|
-
$[
|
|
160
|
-
$[
|
|
161
|
-
} else
|
|
162
|
-
let
|
|
163
|
-
if ($[
|
|
164
|
-
|
|
165
|
-
$[
|
|
166
|
-
$[
|
|
167
|
-
} else
|
|
168
|
-
let
|
|
169
|
-
if ($[
|
|
170
|
-
|
|
234
|
+
$[38] = state.value;
|
|
235
|
+
$[39] = t26;
|
|
236
|
+
} else t26 = $[39];
|
|
237
|
+
let t27;
|
|
238
|
+
if ($[40] !== onChange) {
|
|
239
|
+
t27 = (value_0) => onChange(value_0, "start");
|
|
240
|
+
$[40] = onChange;
|
|
241
|
+
$[41] = t27;
|
|
242
|
+
} else t27 = $[41];
|
|
243
|
+
let t28;
|
|
244
|
+
if ($[42] !== startProps.calendarProps || $[43] !== t25 || $[44] !== t26 || $[45] !== t27) {
|
|
245
|
+
t28 = /* @__PURE__ */ jsx(_Calendar, {
|
|
171
246
|
...startProps.calendarProps,
|
|
172
|
-
defaultFocusedValue:
|
|
173
|
-
selectedRange:
|
|
174
|
-
onChange:
|
|
247
|
+
defaultFocusedValue: t25,
|
|
248
|
+
selectedRange: t26,
|
|
249
|
+
onChange: t27
|
|
175
250
|
});
|
|
176
|
-
$[
|
|
177
|
-
$[
|
|
178
|
-
$[
|
|
179
|
-
$[
|
|
180
|
-
$[
|
|
181
|
-
} else
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
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
|
|
270
|
+
});
|
|
271
|
+
$[47] = props.hideTimeZone;
|
|
272
|
+
$[48] = props.hourCycle;
|
|
273
|
+
$[49] = showTimeField;
|
|
274
|
+
$[50] = startState.setTimeValue;
|
|
275
|
+
$[51] = startState.timeValue;
|
|
276
|
+
$[52] = t;
|
|
277
|
+
$[53] = timeGranularity;
|
|
278
|
+
$[54] = timeMaxValue;
|
|
279
|
+
$[55] = timeMinValue;
|
|
280
|
+
$[56] = timePlaceholder;
|
|
281
|
+
$[57] = t29;
|
|
282
|
+
} else t29 = $[57];
|
|
283
|
+
let t30;
|
|
284
|
+
if ($[58] !== startProps.dialogProps || $[59] !== t28 || $[60] !== t29) {
|
|
285
|
+
t30 = /* @__PURE__ */ jsxs(Dialog, {
|
|
196
286
|
...startProps.dialogProps,
|
|
197
287
|
width: "max-content",
|
|
198
288
|
overflow: "auto",
|
|
199
|
-
children: [
|
|
289
|
+
children: [t28, t29]
|
|
200
290
|
});
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
203
|
-
$[
|
|
204
|
-
$[
|
|
205
|
-
} else
|
|
206
|
-
let
|
|
207
|
-
if ($[
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
$[
|
|
222
|
-
$[
|
|
223
|
-
$[
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
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,
|
|
234
335
|
size,
|
|
235
|
-
...
|
|
236
|
-
|
|
336
|
+
...t16,
|
|
337
|
+
suffix: t31,
|
|
338
|
+
children: t32
|
|
339
|
+
});
|
|
340
|
+
$[73] = autoFocus;
|
|
341
|
+
$[74] = isDisabled;
|
|
342
|
+
$[75] = isInvalid;
|
|
343
|
+
$[76] = isValid;
|
|
344
|
+
$[77] = size;
|
|
345
|
+
$[78] = startFocusProps.isFocused;
|
|
346
|
+
$[79] = startFocusRingProps.focusProps;
|
|
347
|
+
$[80] = t31;
|
|
348
|
+
$[81] = t32;
|
|
349
|
+
$[82] = t33;
|
|
350
|
+
} else t33 = $[82];
|
|
351
|
+
let t34;
|
|
352
|
+
if ($[83] === Symbol.for("react.memo_cache_sentinel")) {
|
|
353
|
+
t34 = /* @__PURE__ */ jsx(DateRangeDash, {});
|
|
354
|
+
$[83] = t34;
|
|
355
|
+
} else t34 = $[83];
|
|
356
|
+
const t35 = endFocusProps.isFocused;
|
|
357
|
+
const t36 = endFocusRingProps.focusProps;
|
|
358
|
+
const t37 = props.placement ?? "bottom right";
|
|
359
|
+
const t38 = props.targetRef ?? targetRef;
|
|
360
|
+
const t39 = endState.isOpen;
|
|
361
|
+
const t40 = props.shouldFlip;
|
|
362
|
+
const t41 = endState.setOpen;
|
|
363
|
+
let t42;
|
|
364
|
+
if ($[84] !== endFocusProps.focusProps || $[85] !== endProps.buttonProps) {
|
|
365
|
+
t42 = mergeProps$1(endFocusProps.focusProps, endProps.buttonProps);
|
|
366
|
+
$[84] = endFocusProps.focusProps;
|
|
367
|
+
$[85] = endProps.buttonProps;
|
|
368
|
+
$[86] = t42;
|
|
369
|
+
} else t42 = $[86];
|
|
370
|
+
let t43;
|
|
371
|
+
if ($[87] !== t) {
|
|
372
|
+
t43 = t("datePicker.showEndCalendar", "Show calendar for the end date");
|
|
373
|
+
$[87] = t;
|
|
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, {
|
|
379
|
+
size,
|
|
380
|
+
...t42,
|
|
381
|
+
"aria-label": t43,
|
|
237
382
|
isDisabled
|
|
238
383
|
});
|
|
239
|
-
$[
|
|
240
|
-
$[
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
244
|
-
} else
|
|
245
|
-
const
|
|
246
|
-
let
|
|
247
|
-
if ($[
|
|
248
|
-
|
|
384
|
+
$[89] = isDisabled;
|
|
385
|
+
$[90] = size;
|
|
386
|
+
$[91] = t42;
|
|
387
|
+
$[92] = t43;
|
|
388
|
+
$[93] = t44;
|
|
389
|
+
} else t44 = $[93];
|
|
390
|
+
const t45 = state.value?.end || state.value?.start || void 0;
|
|
391
|
+
let t46;
|
|
392
|
+
if ($[94] !== state.value) {
|
|
393
|
+
t46 = state.value?.start && state.value?.end ? {
|
|
249
394
|
start: state.value.start,
|
|
250
395
|
end: state.value.end
|
|
251
396
|
} : void 0;
|
|
252
|
-
$[
|
|
253
|
-
$[
|
|
254
|
-
} else
|
|
255
|
-
let
|
|
256
|
-
if ($[
|
|
257
|
-
|
|
397
|
+
$[94] = state.value;
|
|
398
|
+
$[95] = t46;
|
|
399
|
+
} else t46 = $[95];
|
|
400
|
+
let t47;
|
|
401
|
+
if ($[96] !== onChange) {
|
|
402
|
+
t47 = (value_1) => {
|
|
258
403
|
onChange(value_1, "end");
|
|
259
404
|
};
|
|
260
|
-
$[
|
|
261
|
-
$[
|
|
262
|
-
} else
|
|
263
|
-
let
|
|
264
|
-
if ($[
|
|
265
|
-
|
|
405
|
+
$[96] = onChange;
|
|
406
|
+
$[97] = t47;
|
|
407
|
+
} else t47 = $[97];
|
|
408
|
+
let t48;
|
|
409
|
+
if ($[98] !== endProps.calendarProps || $[99] !== t45 || $[100] !== t46 || $[101] !== t47) {
|
|
410
|
+
t48 = /* @__PURE__ */ jsx(_Calendar, {
|
|
266
411
|
...endProps.calendarProps,
|
|
267
|
-
defaultFocusedValue:
|
|
268
|
-
selectedRange:
|
|
269
|
-
onChange:
|
|
412
|
+
defaultFocusedValue: t45,
|
|
413
|
+
selectedRange: t46,
|
|
414
|
+
onChange: t47
|
|
270
415
|
});
|
|
271
|
-
$[
|
|
272
|
-
$[
|
|
273
|
-
$[
|
|
274
|
-
$[
|
|
275
|
-
$[
|
|
276
|
-
} else
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
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
|
|
435
|
+
});
|
|
436
|
+
$[103] = endState.setTimeValue;
|
|
437
|
+
$[104] = endState.timeValue;
|
|
438
|
+
$[105] = props.hideTimeZone;
|
|
439
|
+
$[106] = props.hourCycle;
|
|
440
|
+
$[107] = showTimeField;
|
|
441
|
+
$[108] = t;
|
|
442
|
+
$[109] = timeGranularity;
|
|
443
|
+
$[110] = timeMaxValue;
|
|
444
|
+
$[111] = timeMinValue;
|
|
445
|
+
$[112] = timePlaceholder;
|
|
446
|
+
$[113] = t49;
|
|
447
|
+
} else t49 = $[113];
|
|
448
|
+
let t50;
|
|
449
|
+
if ($[114] !== endProps.dialogProps || $[115] !== t48 || $[116] !== t49) {
|
|
450
|
+
t50 = /* @__PURE__ */ jsxs(Dialog, {
|
|
291
451
|
...endProps.dialogProps,
|
|
292
452
|
width: "max-content",
|
|
293
453
|
overflow: "auto",
|
|
294
|
-
children: [
|
|
454
|
+
children: [t48, t49]
|
|
295
455
|
});
|
|
296
|
-
$[
|
|
297
|
-
$[
|
|
298
|
-
$[
|
|
299
|
-
$[
|
|
300
|
-
} else
|
|
301
|
-
let
|
|
302
|
-
if ($[
|
|
303
|
-
|
|
456
|
+
$[114] = endProps.dialogProps;
|
|
457
|
+
$[115] = t48;
|
|
458
|
+
$[116] = t49;
|
|
459
|
+
$[117] = t50;
|
|
460
|
+
} else t50 = $[117];
|
|
461
|
+
let t51;
|
|
462
|
+
if ($[118] !== endState.isOpen || $[119] !== endState.setOpen || $[120] !== props.shouldFlip || $[121] !== t37 || $[122] !== t38 || $[123] !== t44 || $[124] !== t50) {
|
|
463
|
+
t51 = /* @__PURE__ */ jsxs(DialogTrigger, {
|
|
304
464
|
hideArrow: true,
|
|
305
465
|
type: "popover",
|
|
306
|
-
placement:
|
|
307
|
-
targetRef:
|
|
308
|
-
isOpen:
|
|
309
|
-
shouldFlip:
|
|
310
|
-
onOpenChange:
|
|
311
|
-
children: [
|
|
466
|
+
placement: t37,
|
|
467
|
+
targetRef: t38,
|
|
468
|
+
isOpen: t39,
|
|
469
|
+
shouldFlip: t40,
|
|
470
|
+
onOpenChange: t41,
|
|
471
|
+
children: [t44, t50]
|
|
312
472
|
});
|
|
313
|
-
$[
|
|
314
|
-
$[
|
|
315
|
-
$[
|
|
316
|
-
$[
|
|
317
|
-
$[
|
|
318
|
-
$[
|
|
319
|
-
$[
|
|
320
|
-
$[
|
|
321
|
-
} else
|
|
322
|
-
let
|
|
323
|
-
if ($[
|
|
324
|
-
|
|
473
|
+
$[118] = endState.isOpen;
|
|
474
|
+
$[119] = endState.setOpen;
|
|
475
|
+
$[120] = props.shouldFlip;
|
|
476
|
+
$[121] = t37;
|
|
477
|
+
$[122] = t38;
|
|
478
|
+
$[123] = t44;
|
|
479
|
+
$[124] = t50;
|
|
480
|
+
$[125] = t51;
|
|
481
|
+
} else t51 = $[125];
|
|
482
|
+
let t52;
|
|
483
|
+
if ($[126] !== endFieldProps || $[127] !== useLocaleProp) {
|
|
484
|
+
t52 = /* @__PURE__ */ jsx(DatePickerInput, {
|
|
325
485
|
useLocale: useLocaleProp,
|
|
326
486
|
...endFieldProps
|
|
327
487
|
});
|
|
328
|
-
$[
|
|
329
|
-
$[
|
|
330
|
-
$[
|
|
331
|
-
} else
|
|
332
|
-
let
|
|
333
|
-
if ($[
|
|
334
|
-
|
|
335
|
-
disableFocusRing:
|
|
488
|
+
$[126] = endFieldProps;
|
|
489
|
+
$[127] = useLocaleProp;
|
|
490
|
+
$[128] = t52;
|
|
491
|
+
} else t52 = $[128];
|
|
492
|
+
let t53;
|
|
493
|
+
if ($[129] !== endFocusProps.isFocused || $[130] !== endFocusRingProps.focusProps || $[131] !== isDisabled || $[132] !== isInvalid || $[133] !== isValid || $[134] !== size || $[135] !== t51 || $[136] !== t52) {
|
|
494
|
+
t53 = /* @__PURE__ */ jsx(_DateInputBase, {
|
|
495
|
+
disableFocusRing: t35,
|
|
336
496
|
isDisabled,
|
|
337
497
|
isInvalid,
|
|
338
498
|
isValid,
|
|
339
499
|
size,
|
|
340
|
-
...
|
|
341
|
-
suffix:
|
|
342
|
-
children:
|
|
500
|
+
...t36,
|
|
501
|
+
suffix: t51,
|
|
502
|
+
children: t52
|
|
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)
|
|
343
541
|
});
|
|
344
|
-
$[
|
|
345
|
-
$[
|
|
346
|
-
$[
|
|
347
|
-
$[
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
$[66] = t32;
|
|
351
|
-
$[67] = t33;
|
|
352
|
-
$[68] = t34;
|
|
353
|
-
} else t34 = $[68];
|
|
354
|
-
const component = /* @__PURE__ */ jsxs(DatePickerElement, {
|
|
355
|
-
ref: targetRef,
|
|
356
|
-
...groupProps,
|
|
357
|
-
styles,
|
|
358
|
-
qa: qa || "DateRangeSeparatedPicker",
|
|
359
|
-
"data-input-type": "daterangeseparatedpicker",
|
|
360
|
-
children: [
|
|
361
|
-
/* @__PURE__ */ jsx(_DateInputBase, {
|
|
362
|
-
autoFocus,
|
|
363
|
-
disableFocusRing: t2,
|
|
364
|
-
isDisabled,
|
|
365
|
-
isInvalid,
|
|
366
|
-
isValid,
|
|
367
|
-
size,
|
|
368
|
-
...t3,
|
|
369
|
-
suffix: /* @__PURE__ */ jsxs(DialogTrigger, {
|
|
370
|
-
hideArrow: true,
|
|
371
|
-
type: "popover",
|
|
372
|
-
placement: props.placement ?? "bottom right",
|
|
373
|
-
targetRef: props.targetRef ?? targetRef,
|
|
374
|
-
isOpen: t4,
|
|
375
|
-
shouldFlip: t5,
|
|
376
|
-
onOpenChange: t6,
|
|
377
|
-
children: [/* @__PURE__ */ jsx(DatePickerButton, {
|
|
378
|
-
size,
|
|
379
|
-
...t7,
|
|
380
|
-
"aria-label": t8,
|
|
381
|
-
isDisabled
|
|
382
|
-
}), t14]
|
|
383
|
-
}),
|
|
384
|
-
children: /* @__PURE__ */ jsx(DatePickerInput, {
|
|
385
|
-
useLocale: useLocaleProp,
|
|
386
|
-
...startFieldProps
|
|
387
|
-
})
|
|
388
|
-
}),
|
|
389
|
-
t15,
|
|
390
|
-
t34
|
|
391
|
-
]
|
|
392
|
-
});
|
|
393
|
-
return wrapWithField(component, {
|
|
394
|
-
...props,
|
|
395
|
-
...fieldLayout.field,
|
|
396
|
-
labelProps: mergeProps$1(props.labelProps, labelProps)
|
|
397
|
-
});
|
|
542
|
+
$[144] = component;
|
|
543
|
+
$[145] = labelProps;
|
|
544
|
+
$[146] = props;
|
|
545
|
+
$[147] = t55;
|
|
546
|
+
} else t55 = $[147];
|
|
547
|
+
return t55;
|
|
398
548
|
}
|
|
399
549
|
const _DateRangeSeparatedPicker = forwardRef(DateRangeSeparatedPicker);
|
|
400
550
|
_DateRangeSeparatedPicker.displayName = "DateRangeSeparatedPicker";
|