@povio/ui 3.3.0 → 3.4.0-rc.10
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/assets/locales/en/translation.json.d.ts +158 -0
- package/dist/assets/locales/sl/translation.json.d.ts +154 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +7 -7
- package/dist/components/Menu/MenuDesktop.js +1 -1
- package/dist/components/Menu/MenuItem.js +4 -4
- package/dist/components/Menu/MenuMobile.js +5 -5
- package/dist/components/Menu/MenuPopover.js +2 -2
- package/dist/components/buttons/Button/Button.js +1 -1
- package/dist/components/buttons/PillButton/PillButton.js +4 -4
- package/dist/components/buttons/PillButton/pillButton.cva.d.ts +1 -1
- package/dist/components/buttons/SplitButton/SplitButton.js +3 -3
- package/dist/components/buttons/shared/ButtonContent.js +2 -2
- package/dist/components/buttons/shared/buttonContent.cva.d.ts +1 -1
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +1 -2
- package/dist/components/inputs/Checkbox/Checkbox.js +95 -102
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +2 -3
- package/dist/components/inputs/Checkbox/CheckboxGroup.d.ts +1 -2
- package/dist/components/inputs/Checkbox/CheckboxGroup.js +111 -115
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +2 -2
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +17 -22
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +17 -23
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +2 -2
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +21 -25
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +2 -2
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +225 -238
- package/dist/components/inputs/DateTime/shared/Calendar.js +1 -1
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +1 -1
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +1 -1
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +7 -10
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +8 -12
- package/dist/components/inputs/DateTime/shared/DateField.d.ts +2 -1
- package/dist/components/inputs/DateTime/shared/DateField.js +4 -4
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +2 -2
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +8 -16
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +3 -3
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +2 -2
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +1 -1
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +2 -2
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +2 -2
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +4 -5
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +2 -2
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +10 -11
- package/dist/components/inputs/DateTime/shared/YearPicker.js +2 -2
- package/dist/components/inputs/DateTime/shared/datePickerTodayIcon.js +46 -1
- package/dist/components/inputs/DateTime/shared/useFirefoxDateSegmentSelectionGuard.js +1 -1
- package/dist/components/inputs/File/FileUpload.d.ts +1 -1
- package/dist/components/inputs/File/FileUpload.js +20 -20
- package/dist/components/inputs/File/InputUpload.d.ts +1 -1
- package/dist/components/inputs/File/InputUpload.js +19 -19
- package/dist/components/inputs/File/fileUpload.types.d.ts +1 -1
- package/dist/components/inputs/File/inputUpload.types.d.ts +1 -1
- package/dist/components/inputs/File/shared/FileCard.js +1 -1
- package/dist/components/inputs/File/shared/FileCardList.js +1 -1
- package/dist/components/inputs/File/shared/FileUploadContent.js +1 -1
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +3 -3
- package/dist/components/inputs/File/shared/FileUploadContentError.js +5 -6
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +5 -6
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +4 -5
- package/dist/components/inputs/File/shared/InputUploadContent.js +4 -4
- package/dist/components/inputs/File/shared/InputUploadFilled.js +3 -3
- package/dist/components/inputs/FormField/FormFieldError.js +1 -1
- package/dist/components/inputs/FormField/FormFieldHeader.js +4 -4
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +3 -3
- package/dist/components/inputs/FormField/FormFieldHelper.js +1 -1
- package/dist/components/inputs/FormField/FormFieldLabel.js +2 -2
- package/dist/components/inputs/Input/NumberInput/NumberInput.d.ts +1 -1
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +109 -107
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +2 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +265 -254
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +2 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +25 -24
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +3 -4
- package/dist/components/inputs/Input/TextArea/TextArea.d.ts +2 -1
- package/dist/components/inputs/Input/TextArea/TextArea.js +118 -117
- package/dist/components/inputs/Input/TextInput/TextInput.d.ts +2 -2
- package/dist/components/inputs/Input/TextInput/TextInput.js +129 -129
- package/dist/components/inputs/Input/shared/InputContent.d.ts +2 -1
- package/dist/components/inputs/Input/shared/InputContent.js +50 -48
- package/dist/components/inputs/Inputs/Form.d.ts +4 -4
- package/dist/components/inputs/Inputs/Form.js +1 -1
- package/dist/components/inputs/Inputs/InputItem.d.ts +22 -22
- package/dist/components/inputs/Inputs/InputItem.js +36 -37
- package/dist/components/inputs/Inputs/Inputs.d.ts +2 -2
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +1 -2
- package/dist/components/inputs/RadioGroup/RadioGroup.js +109 -113
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +16 -16
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.d.ts +1 -1
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +20 -20
- package/dist/components/inputs/Selection/Autocomplete/queryAutocomplete.types.d.ts +1 -1
- package/dist/components/inputs/Selection/Select/QuerySelect.d.ts +1 -1
- package/dist/components/inputs/Selection/Select/QuerySelect.js +20 -20
- package/dist/components/inputs/Selection/Select/Select.d.ts +1 -1
- package/dist/components/inputs/Selection/Select/Select.js +23 -23
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +1 -1
- package/dist/components/inputs/Selection/shared/SelectBase.js +34 -37
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +58 -56
- package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectInput.js +57 -56
- package/dist/components/inputs/Selection/shared/SelectListBox.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +2 -2
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +2 -2
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectMobile.js +5 -4
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +3 -3
- package/dist/components/inputs/Selection/shared/select.context.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/select.context.js +5 -9
- package/dist/components/inputs/Selection/shared/select.types.d.ts +1 -1
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +1 -0
- package/dist/components/inputs/Skeleton/InputFrame.js +10 -7
- package/dist/components/inputs/Slider/Slider.d.ts +1 -1
- package/dist/components/inputs/Slider/Slider.js +20 -20
- package/dist/components/inputs/TextEditor/TextEditor.d.ts +1 -1
- package/dist/components/inputs/TextEditor/TextEditor.js +20 -20
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +2 -2
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +4 -4
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +4 -4
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +5 -8
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +3 -3
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +4 -5
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +4 -5
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +6 -9
- package/dist/components/inputs/Toggle/Toggle.d.ts +1 -2
- package/dist/components/inputs/Toggle/Toggle.js +61 -65
- package/dist/components/inputs/shared/CheckContent.js +1 -1
- package/dist/components/inputs/shared/InputClear.js +45 -28
- package/dist/components/inputs/shared/TooltipWrapper.d.ts +1 -1
- package/dist/components/inputs/shared/form.binding.d.ts +27 -0
- package/dist/components/inputs/shared/form.binding.js +57 -0
- package/dist/components/inputs/shared/form.types.d.ts +9 -8
- package/dist/components/inputs/shared/form.types.js +8 -0
- package/dist/components/inputs/shared/input.cva.js +1 -1
- package/dist/components/inputs/shared/useStaticInputHandoff.js +64 -38
- package/dist/components/navigation/Accordion/Accordion.js +1 -1
- package/dist/components/navigation/Accordion/AccordionItem.js +3 -3
- package/dist/components/navigation/Stepper/Stepper.js +2 -2
- package/dist/components/navigation/Stepper/StepperItem.js +4 -4
- package/dist/components/overlays/ActionModal/ActionModal.js +1 -1
- package/dist/components/overlays/BottomSheet/BottomSheet.js +3 -3
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +4 -4
- package/dist/components/overlays/Drawer/Drawer.js +2 -2
- package/dist/components/overlays/Modal/Modal.js +3 -3
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +1 -1
- package/dist/components/overlays/Tooltip/Tooltip.js +15 -8
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +1 -1
- package/dist/components/segment/Segment.d.ts +1 -1
- package/dist/components/segment/Segment.js +21 -21
- package/dist/components/segment/SegmentItem.js +1 -1
- package/dist/components/segment/segment.types.d.ts +1 -1
- package/dist/components/shared/pagination/Pagination.js +1 -1
- package/dist/components/shared/pagination/PaginationList.js +6 -9
- package/dist/components/table/ColumnConfig.js +1 -1
- package/dist/components/table/InfiniteTable.js +1 -1
- package/dist/components/table/Table.js +6 -8
- package/dist/components/text/Link/Link.js +1 -1
- package/dist/components/text/Pill/Pill.js +3 -3
- package/dist/components/text/Tag/Tag.js +3 -3
- package/dist/config/confirmation.context.js +1 -1
- package/dist/config/link.context.js +1 -1
- package/dist/config/router.context.js +1 -1
- package/dist/config/theme.context.js +1 -1
- package/dist/config/uiConfig.context.d.ts +14 -5
- package/dist/config/uiConfig.context.js +9 -11
- package/dist/config/uiOverrides.context.js +2 -2
- package/dist/helpers/dynamicColumns.d.ts +1 -1
- package/dist/helpers/dynamicInputs.d.ts +7 -7
- package/dist/hooks/useAutosave.d.ts +4 -4
- package/dist/hooks/useAutosave.js +64 -49
- package/dist/hooks/useFilters.js +1 -1
- package/dist/hooks/useForm.d.ts +39 -15
- package/dist/hooks/useForm.js +96 -43
- package/dist/hooks/useFormAutosave.d.ts +8 -9
- package/dist/hooks/useFormAutosave.js +23 -9
- package/dist/hooks/useIntersectionObserver.js +1 -1
- package/dist/hooks/useLocalStorage.js +1 -1
- package/dist/hooks/usePagination.js +1 -1
- package/dist/hooks/useScrollableListBox.js +1 -1
- package/dist/hooks/useSorting.js +1 -1
- package/dist/hooks/useStateAndRef.js +1 -1
- package/dist/hooks/useTableColumnConfig.js +1 -1
- package/dist/index.d.ts +1 -263
- package/dist/index.js +11 -71
- package/dist/rhf/Inputs.d.ts +60 -0
- package/dist/rhf/Inputs.js +148 -0
- package/dist/rhf/components.d.ts +80 -0
- package/dist/rhf/components.js +101 -0
- package/dist/rhf/dynamicInputs.d.ts +18 -0
- package/dist/rhf/dynamicInputs.js +5 -0
- package/dist/rhf/fieldAdapter.d.ts +7 -0
- package/dist/rhf/fieldAdapter.js +40 -0
- package/dist/rhf/form.types.d.ts +12 -0
- package/dist/rhf/useAutosave.d.ts +10 -0
- package/dist/rhf/useAutosave.js +71 -0
- package/dist/rhf/useForm.d.ts +18 -0
- package/dist/rhf/useForm.js +48 -0
- package/dist/rhf/useFormAutosave.d.ts +15 -0
- package/dist/rhf/useFormAutosave.js +59 -0
- package/dist/rhf.d.ts +225 -0
- package/dist/tanstack.d.ts +224 -0
- package/dist/tanstack.js +141 -0
- package/package.json +15 -3
- package/dist/assets/icons/Account.d.ts +0 -2
- package/dist/assets/icons/AlignCenter.d.ts +0 -2
- package/dist/assets/icons/AlignCenter.js +0 -30
- package/dist/assets/icons/AlignLeft.d.ts +0 -2
- package/dist/assets/icons/AlignLeft.js +0 -30
- package/dist/assets/icons/AlignLeftRight.d.ts +0 -2
- package/dist/assets/icons/AlignLeftRight.js +0 -30
- package/dist/assets/icons/AlignRight.d.ts +0 -2
- package/dist/assets/icons/AlignRight.js +0 -30
- package/dist/assets/icons/ArrowDropDown.d.ts +0 -2
- package/dist/assets/icons/ArrowDropDown.js +0 -30
- package/dist/assets/icons/ArrowDropUp.d.ts +0 -2
- package/dist/assets/icons/ArrowDropUp.js +0 -30
- package/dist/assets/icons/ArrowLeft.d.ts +0 -2
- package/dist/assets/icons/ArrowLeft.js +0 -30
- package/dist/assets/icons/ArrowRight.d.ts +0 -2
- package/dist/assets/icons/ArrowRight.js +0 -30
- package/dist/assets/icons/Board.d.ts +0 -2
- package/dist/assets/icons/Bold.d.ts +0 -2
- package/dist/assets/icons/Bold.js +0 -30
- package/dist/assets/icons/BulletedList.d.ts +0 -2
- package/dist/assets/icons/BulletedList.js +0 -30
- package/dist/assets/icons/Calendar.d.ts +0 -2
- package/dist/assets/icons/Calendar.js +0 -32
- package/dist/assets/icons/Check.d.ts +0 -2
- package/dist/assets/icons/Check.js +0 -32
- package/dist/assets/icons/CheckCircle.d.ts +0 -2
- package/dist/assets/icons/CheckCircle.js +0 -30
- package/dist/assets/icons/CheckboxCheckmark.d.ts +0 -2
- package/dist/assets/icons/CheckboxCheckmark.js +0 -33
- package/dist/assets/icons/CheckboxIndeterminate.d.ts +0 -2
- package/dist/assets/icons/CheckboxIndeterminate.js +0 -33
- package/dist/assets/icons/ChevronDown.d.ts +0 -2
- package/dist/assets/icons/ChevronDown.js +0 -32
- package/dist/assets/icons/ChevronLeft.d.ts +0 -2
- package/dist/assets/icons/ChevronLeft.js +0 -32
- package/dist/assets/icons/ChevronRight.d.ts +0 -2
- package/dist/assets/icons/ChevronRight.js +0 -32
- package/dist/assets/icons/ChevronUp.d.ts +0 -2
- package/dist/assets/icons/ChevronUp.js +0 -32
- package/dist/assets/icons/ChevronsLeft.d.ts +0 -2
- package/dist/assets/icons/ChevronsLeft.js +0 -32
- package/dist/assets/icons/ChevronsRight.d.ts +0 -2
- package/dist/assets/icons/ChevronsRight.js +0 -32
- package/dist/assets/icons/Clock.d.ts +0 -2
- package/dist/assets/icons/Clock.js +0 -30
- package/dist/assets/icons/Close.d.ts +0 -2
- package/dist/assets/icons/Close.js +0 -30
- package/dist/assets/icons/DateTime.d.ts +0 -2
- package/dist/assets/icons/DateTime.js +0 -39
- package/dist/assets/icons/DragIndicator.d.ts +0 -2
- package/dist/assets/icons/DragIndicator.js +0 -30
- package/dist/assets/icons/Edit.d.ts +0 -2
- package/dist/assets/icons/Emoji.d.ts +0 -2
- package/dist/assets/icons/File.d.ts +0 -2
- package/dist/assets/icons/File.js +0 -32
- package/dist/assets/icons/Grid.d.ts +0 -2
- package/dist/assets/icons/Highlight.d.ts +0 -2
- package/dist/assets/icons/Highlight.js +0 -30
- package/dist/assets/icons/HighlightOn.d.ts +0 -6
- package/dist/assets/icons/HighlightOn.js +0 -55
- package/dist/assets/icons/Home.d.ts +0 -2
- package/dist/assets/icons/Home.js +0 -30
- package/dist/assets/icons/Image.d.ts +0 -2
- package/dist/assets/icons/ImageError.d.ts +0 -2
- package/dist/assets/icons/Info.d.ts +0 -2
- package/dist/assets/icons/Info.js +0 -41
- package/dist/assets/icons/Italic.d.ts +0 -2
- package/dist/assets/icons/Italic.js +0 -30
- package/dist/assets/icons/Link.d.ts +0 -2
- package/dist/assets/icons/Link.js +0 -30
- package/dist/assets/icons/Loader.d.ts +0 -2
- package/dist/assets/icons/MapPin.d.ts +0 -2
- package/dist/assets/icons/Menu.d.ts +0 -2
- package/dist/assets/icons/Menu.js +0 -30
- package/dist/assets/icons/Minus.d.ts +0 -2
- package/dist/assets/icons/MoreHoriz.d.ts +0 -2
- package/dist/assets/icons/NumberedList.d.ts +0 -2
- package/dist/assets/icons/NumberedList.js +0 -30
- package/dist/assets/icons/Pause.d.ts +0 -2
- package/dist/assets/icons/Plus.d.ts +0 -2
- package/dist/assets/icons/PointerHorizontal.d.ts +0 -2
- package/dist/assets/icons/PointerHorizontal.js +0 -30
- package/dist/assets/icons/PointerVertical.d.ts +0 -2
- package/dist/assets/icons/PointerVertical.js +0 -30
- package/dist/assets/icons/Retry.d.ts +0 -2
- package/dist/assets/icons/Search.d.ts +0 -2
- package/dist/assets/icons/Search.js +0 -30
- package/dist/assets/icons/Send.d.ts +0 -2
- package/dist/assets/icons/Send.js +0 -32
- package/dist/assets/icons/Share.d.ts +0 -2
- package/dist/assets/icons/Slash.d.ts +0 -2
- package/dist/assets/icons/Strikethrough.d.ts +0 -2
- package/dist/assets/icons/Strikethrough.js +0 -30
- package/dist/assets/icons/TextColor.d.ts +0 -6
- package/dist/assets/icons/TextColor.js +0 -52
- package/dist/assets/icons/Today.d.ts +0 -2
- package/dist/assets/icons/Today.js +0 -30
- package/dist/assets/icons/Trash.d.ts +0 -2
- package/dist/assets/icons/Underlined.d.ts +0 -2
- package/dist/assets/icons/Underlined.js +0 -32
- package/dist/assets/icons/Upload.d.ts +0 -2
- package/dist/assets/icons/Upload.js +0 -39
- package/dist/assets/icons/User.d.ts +0 -2
- package/dist/assets/icons/Visibility.d.ts +0 -2
- package/dist/assets/icons/Visibility.js +0 -30
- package/dist/assets/icons/VisibilityOff.d.ts +0 -2
- package/dist/assets/icons/VisibilityOff.js +0 -30
- package/dist/assets/icons/WarningFilled.d.ts +0 -2
- package/dist/assets/icons/WarningFilled.js +0 -32
- package/dist/assets/icons/WarningOutlined.d.ts +0 -2
- /package/dist/{hooks/useAutosave.spec.d.ts → rhf/entrypoints.type-test.d.ts} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../../config/uiOverrides.context.js";
|
|
2
2
|
import { UIConfig } from "../../../../config/uiConfig.context.js";
|
|
3
|
+
import { FieldController } from "../../shared/form.binding.js";
|
|
3
4
|
import { InputFrame } from "../../Skeleton/InputFrame.js";
|
|
4
5
|
import { useStaticInputHandoff } from "../../shared/useStaticInputHandoff.js";
|
|
5
6
|
import { selectInputTagsContentWrapperDefinition } from "../shared/selectInput.cva.js";
|
|
6
7
|
import { SelectBase } from "../shared/SelectBase.js";
|
|
7
8
|
import { StaticSelectTrailingContent } from "../shared/StaticSelectTrailingContent.js";
|
|
8
9
|
import { getStaticSelectValue } from "../shared/staticSelect.utils.js";
|
|
9
|
-
import { c } from "react/compiler-runtime";
|
|
10
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
10
|
import { clsx } from "clsx";
|
|
12
11
|
import { useRef, useState } from "react";
|
|
12
|
+
import { c } from "react/compiler-runtime";
|
|
13
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
14
|
import { mergeRefs } from "@react-aria/utils";
|
|
14
|
-
import { Controller } from "react-hook-form";
|
|
15
15
|
//#region src/components/inputs/Selection/Autocomplete/Autocomplete.tsx
|
|
16
16
|
function AutocompleteInner(t0) {
|
|
17
17
|
const $ = c(8);
|
|
@@ -99,7 +99,7 @@ function AutocompleteInner(t0) {
|
|
|
99
99
|
children: props.leadingContent
|
|
100
100
|
}),
|
|
101
101
|
trailingContent,
|
|
102
|
-
children: (dataAttributeProps) => /* @__PURE__ */ jsxs(Fragment, { children: [isMultiple && !isEmpty && displayValue, /* @__PURE__ */ jsx("input", {
|
|
102
|
+
children: (dataAttributeProps) => /* @__PURE__ */ jsxs(Fragment$1, { children: [isMultiple && !isEmpty && displayValue, /* @__PURE__ */ jsx("input", {
|
|
103
103
|
disabled: isDisabled,
|
|
104
104
|
tabIndex: -1,
|
|
105
105
|
role: "combobox",
|
|
@@ -135,20 +135,20 @@ function _temp(root) {
|
|
|
135
135
|
return root.querySelector("input, [data-type='select-trigger'], button, [tabindex]");
|
|
136
136
|
}
|
|
137
137
|
function Autocomplete({ renderStaticInput, ...props }) {
|
|
138
|
-
if ("
|
|
139
|
-
const { ignoreInputValueFiltering = true,
|
|
140
|
-
const controlWithOptions =
|
|
141
|
-
return /* @__PURE__ */ jsx(
|
|
142
|
-
control:
|
|
143
|
-
name:
|
|
144
|
-
render: ({ field, fieldState: { error, isDirty } }) => /* @__PURE__ */ jsx(AutocompleteInner, {
|
|
138
|
+
if ("field" in props && props.field) {
|
|
139
|
+
const { ignoreInputValueFiltering = true, field, ref, ...innerProps } = props;
|
|
140
|
+
const controlWithOptions = field.form;
|
|
141
|
+
return /* @__PURE__ */ jsx(FieldController, {
|
|
142
|
+
control: field.form,
|
|
143
|
+
name: field.name,
|
|
144
|
+
render: ({ field: field_0, fieldState: { error, isDirty } }) => /* @__PURE__ */ jsx(AutocompleteInner, {
|
|
145
145
|
...innerProps,
|
|
146
|
-
ref: mergeRefs(ref,
|
|
147
|
-
value:
|
|
148
|
-
onChange:
|
|
149
|
-
onBlur:
|
|
146
|
+
ref: mergeRefs(ref, field_0.ref),
|
|
147
|
+
value: field_0.value,
|
|
148
|
+
onChange: field_0.onChange,
|
|
149
|
+
onBlur: field_0.onBlur,
|
|
150
150
|
isDirty,
|
|
151
|
-
isDisabled:
|
|
151
|
+
isDisabled: field_0.disabled || props.isDisabled,
|
|
152
152
|
isFormControlDisabled: !!controlWithOptions._options?.disabled,
|
|
153
153
|
error: props.error ?? error?.message,
|
|
154
154
|
ignoreInputValueFiltering,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FieldValues } from '
|
|
1
|
+
import { FieldValues } from '../../shared/form.binding';
|
|
2
2
|
import { QueryAutocompleteProps, QueryFn } from './queryAutocomplete.types';
|
|
3
3
|
import { SelectItem } from '../shared/select.types';
|
|
4
4
|
export declare const QueryAutocomplete: <TFieldValues extends FieldValues, TSelectItem extends SelectItem<any>, TQueryFn extends QueryFn>(props: QueryAutocompleteProps<TFieldValues, TSelectItem, TQueryFn>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { UIConfig } from "../../../../config/uiConfig.context.js";
|
|
2
|
+
import { FieldController } from "../../shared/form.binding.js";
|
|
2
3
|
import { Autocomplete } from "./Autocomplete.js";
|
|
3
4
|
import { getQueryItems, getSelectionIdsToResolve } from "../shared/querySelect.utils.js";
|
|
4
5
|
import { useQueryAutocomplete } from "../../../../hooks/useQueryAutocomplete.js";
|
|
6
|
+
import { useState } from "react";
|
|
5
7
|
import { c } from "react/compiler-runtime";
|
|
6
8
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import { useState } from "react";
|
|
8
9
|
import { mergeRefs } from "@react-aria/utils";
|
|
9
|
-
import { Controller } from "react-hook-form";
|
|
10
10
|
//#region src/components/inputs/Selection/Autocomplete/QueryAutocomplete.tsx
|
|
11
11
|
var LoadedQueryAutocompleteContent = ({ query, queryParams, queryOptions, queryMap, resolveSelectedItemsWithIds, isQueryEnabledInitially = false, leadingContent, ...props }) => {
|
|
12
12
|
"use no memo";
|
|
@@ -111,35 +111,35 @@ var QueryAutocompleteContent = (props) => {
|
|
|
111
111
|
};
|
|
112
112
|
var QueryAutocomplete = (props) => {
|
|
113
113
|
const $ = c(16);
|
|
114
|
-
if ("
|
|
115
|
-
let
|
|
114
|
+
if ("field" in props && props.field) {
|
|
115
|
+
let field;
|
|
116
116
|
let innerProps;
|
|
117
117
|
let ref;
|
|
118
118
|
if ($[0] !== props) {
|
|
119
|
-
({
|
|
119
|
+
({field, ref, ...innerProps} = props);
|
|
120
120
|
$[0] = props;
|
|
121
|
-
$[1] =
|
|
121
|
+
$[1] = field;
|
|
122
122
|
$[2] = innerProps;
|
|
123
123
|
$[3] = ref;
|
|
124
124
|
} else {
|
|
125
|
-
|
|
125
|
+
field = $[1];
|
|
126
126
|
innerProps = $[2];
|
|
127
127
|
ref = $[3];
|
|
128
128
|
}
|
|
129
|
-
const controlWithOptions =
|
|
129
|
+
const controlWithOptions = field.form;
|
|
130
130
|
let t0;
|
|
131
131
|
if ($[4] !== controlWithOptions || $[5] !== innerProps || $[6] !== props.error || $[7] !== props.isDisabled || $[8] !== ref) {
|
|
132
132
|
t0 = (t1) => {
|
|
133
|
-
const { field, fieldState: t2 } = t1;
|
|
133
|
+
const { field: field_0, fieldState: t2 } = t1;
|
|
134
134
|
const { error, isDirty } = t2;
|
|
135
135
|
return /* @__PURE__ */ jsx(QueryAutocompleteContent, {
|
|
136
136
|
...innerProps,
|
|
137
|
-
ref: mergeRefs(ref,
|
|
138
|
-
value:
|
|
139
|
-
onChange:
|
|
140
|
-
onBlur:
|
|
137
|
+
ref: mergeRefs(ref, field_0.ref),
|
|
138
|
+
value: field_0.value,
|
|
139
|
+
onChange: field_0.onChange,
|
|
140
|
+
onBlur: field_0.onBlur,
|
|
141
141
|
isDirty,
|
|
142
|
-
isDisabled:
|
|
142
|
+
isDisabled: field_0.disabled || props.isDisabled || !!controlWithOptions._options?.disabled,
|
|
143
143
|
error: props.error ?? error?.message
|
|
144
144
|
});
|
|
145
145
|
};
|
|
@@ -151,14 +151,14 @@ var QueryAutocomplete = (props) => {
|
|
|
151
151
|
$[9] = t0;
|
|
152
152
|
} else t0 = $[9];
|
|
153
153
|
let t1;
|
|
154
|
-
if ($[10] !==
|
|
155
|
-
t1 = /* @__PURE__ */ jsx(
|
|
156
|
-
control:
|
|
157
|
-
name:
|
|
154
|
+
if ($[10] !== field.form || $[11] !== field.name || $[12] !== t0) {
|
|
155
|
+
t1 = /* @__PURE__ */ jsx(FieldController, {
|
|
156
|
+
control: field.form,
|
|
157
|
+
name: field.name,
|
|
158
158
|
render: t0
|
|
159
159
|
});
|
|
160
|
-
$[10] =
|
|
161
|
-
$[11] =
|
|
160
|
+
$[10] = field.form;
|
|
161
|
+
$[11] = field.name;
|
|
162
162
|
$[12] = t0;
|
|
163
163
|
$[13] = t1;
|
|
164
164
|
} else t1 = $[13];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InfiniteData, UseInfiniteQueryResult, UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { Key } from 'react-aria-components';
|
|
3
|
-
import { FieldValues } from '
|
|
3
|
+
import { FieldValues } from '../../shared/form.binding';
|
|
4
4
|
import { AutocompleteProps } from './Autocomplete';
|
|
5
5
|
import { GroupedSelectControlProps, GroupedSelectProps, SelectItem } from '../shared/select.types';
|
|
6
6
|
import { OmitDiscriminatedUnion } from '../../../../types/common';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Key } from 'react-aria-components';
|
|
2
|
-
import { FieldValues } from '
|
|
2
|
+
import { FieldValues } from '../../shared/form.binding';
|
|
3
3
|
import { DefaultInitialSelectItem, GroupedSelectControlProps, GroupedSelectProps, SelectItem } from '../shared/select.types';
|
|
4
4
|
import { SelectProps } from './Select';
|
|
5
5
|
import { QueryDataType, QueryFn } from '../shared/querySelect.utils';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { UIConfig } from "../../../../config/uiConfig.context.js";
|
|
2
|
+
import { FieldController } from "../../shared/form.binding.js";
|
|
2
3
|
import { Select } from "./Select.js";
|
|
3
4
|
import { getQueryItems, getSelectionIdsToResolve } from "../shared/querySelect.utils.js";
|
|
4
5
|
import { useQueryAutocomplete } from "../../../../hooks/useQueryAutocomplete.js";
|
|
6
|
+
import { useState } from "react";
|
|
5
7
|
import { c } from "react/compiler-runtime";
|
|
6
8
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import { useState } from "react";
|
|
8
9
|
import { mergeRefs } from "@react-aria/utils";
|
|
9
|
-
import { Controller } from "react-hook-form";
|
|
10
10
|
//#region src/components/inputs/Selection/Select/QuerySelect.tsx
|
|
11
11
|
var LoadedQuerySelectContent = ({ query, queryParams, queryOptions, queryMap, resolveSelectedItemsWithIds, isQueryEnabledInitially = false, ...props }) => {
|
|
12
12
|
const ui = UIConfig.useConfig();
|
|
@@ -107,35 +107,35 @@ var QuerySelectContent = (props) => {
|
|
|
107
107
|
};
|
|
108
108
|
var QuerySelect = (props) => {
|
|
109
109
|
const $ = c(16);
|
|
110
|
-
if ("
|
|
111
|
-
let
|
|
110
|
+
if ("field" in props && props.field) {
|
|
111
|
+
let field;
|
|
112
112
|
let innerProps;
|
|
113
113
|
let ref;
|
|
114
114
|
if ($[0] !== props) {
|
|
115
|
-
({
|
|
115
|
+
({field, ref, ...innerProps} = props);
|
|
116
116
|
$[0] = props;
|
|
117
|
-
$[1] =
|
|
117
|
+
$[1] = field;
|
|
118
118
|
$[2] = innerProps;
|
|
119
119
|
$[3] = ref;
|
|
120
120
|
} else {
|
|
121
|
-
|
|
121
|
+
field = $[1];
|
|
122
122
|
innerProps = $[2];
|
|
123
123
|
ref = $[3];
|
|
124
124
|
}
|
|
125
|
-
const controlWithOptions =
|
|
125
|
+
const controlWithOptions = field.form;
|
|
126
126
|
let t0;
|
|
127
127
|
if ($[4] !== controlWithOptions || $[5] !== innerProps || $[6] !== props.error || $[7] !== props.isDisabled || $[8] !== ref) {
|
|
128
128
|
t0 = (t1) => {
|
|
129
|
-
const { field, fieldState: t2 } = t1;
|
|
129
|
+
const { field: field_0, fieldState: t2 } = t1;
|
|
130
130
|
const { error, isDirty } = t2;
|
|
131
131
|
return /* @__PURE__ */ jsx(QuerySelectContent, {
|
|
132
132
|
...innerProps,
|
|
133
|
-
ref: mergeRefs(ref,
|
|
134
|
-
value:
|
|
135
|
-
onChange:
|
|
136
|
-
onBlur:
|
|
133
|
+
ref: mergeRefs(ref, field_0.ref),
|
|
134
|
+
value: field_0.value,
|
|
135
|
+
onChange: field_0.onChange,
|
|
136
|
+
onBlur: field_0.onBlur,
|
|
137
137
|
isDirty,
|
|
138
|
-
isDisabled:
|
|
138
|
+
isDisabled: field_0.disabled || props.isDisabled || !!controlWithOptions._options?.disabled,
|
|
139
139
|
error: props.error ?? error?.message
|
|
140
140
|
});
|
|
141
141
|
};
|
|
@@ -147,14 +147,14 @@ var QuerySelect = (props) => {
|
|
|
147
147
|
$[9] = t0;
|
|
148
148
|
} else t0 = $[9];
|
|
149
149
|
let t1;
|
|
150
|
-
if ($[10] !==
|
|
151
|
-
t1 = /* @__PURE__ */ jsx(
|
|
152
|
-
control:
|
|
153
|
-
name:
|
|
150
|
+
if ($[10] !== field.form || $[11] !== field.name || $[12] !== t0) {
|
|
151
|
+
t1 = /* @__PURE__ */ jsx(FieldController, {
|
|
152
|
+
control: field.form,
|
|
153
|
+
name: field.name,
|
|
154
154
|
render: t0
|
|
155
155
|
});
|
|
156
|
-
$[10] =
|
|
157
|
-
$[11] =
|
|
156
|
+
$[10] = field.form;
|
|
157
|
+
$[11] = field.name;
|
|
158
158
|
$[12] = t0;
|
|
159
159
|
$[13] = t1;
|
|
160
160
|
} else t1 = $[13];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { Key } from 'react-aria-components';
|
|
3
|
-
import { FieldValues } from '
|
|
3
|
+
import { FieldValues } from '../../shared/form.binding';
|
|
4
4
|
import { SelectBaseProps } from '../shared/SelectBase';
|
|
5
5
|
import { DefaultInitialSelectItem, GroupedSelectControlProps, GroupedSelectProps, SelectAsyncProps } from '../shared/select.types';
|
|
6
6
|
import { OmitDiscriminatedUnion } from '../../../../types/common';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { UIOverrides } from "../../../../config/uiOverrides.context.js";
|
|
2
2
|
import { Typography } from "../../../text/Typography/Typography.js";
|
|
3
3
|
import { UIConfig } from "../../../../config/uiConfig.context.js";
|
|
4
|
+
import { FieldController } from "../../shared/form.binding.js";
|
|
4
5
|
import { InputFrame } from "../../Skeleton/InputFrame.js";
|
|
5
6
|
import { useStaticInputHandoff } from "../../shared/useStaticInputHandoff.js";
|
|
6
7
|
import { selectInputTagsContentWrapperDefinition } from "../shared/selectInput.cva.js";
|
|
7
8
|
import { SelectBase } from "../shared/SelectBase.js";
|
|
8
9
|
import { StaticSelectTrailingContent } from "../shared/StaticSelectTrailingContent.js";
|
|
9
10
|
import { getStaticSelectValue } from "../shared/staticSelect.utils.js";
|
|
10
|
-
import { c } from "react/compiler-runtime";
|
|
11
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
12
11
|
import { clsx } from "clsx";
|
|
13
12
|
import { useRef, useState } from "react";
|
|
13
|
+
import { c } from "react/compiler-runtime";
|
|
14
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
14
15
|
import { mergeRefs } from "@react-aria/utils";
|
|
15
|
-
import { Controller } from "react-hook-form";
|
|
16
16
|
//#region src/components/inputs/Selection/Select/Select.tsx
|
|
17
17
|
function SelectInner(t0) {
|
|
18
18
|
const $ = c(6);
|
|
@@ -75,7 +75,7 @@ function SelectInner(t0) {
|
|
|
75
75
|
dataHasSelection: !isEmpty,
|
|
76
76
|
dataHasSearch: false
|
|
77
77
|
};
|
|
78
|
-
const buttonContent = isMultiple && !isEmpty ? /* @__PURE__ */ jsx(Fragment, { children: "\xA0" }) : isEmpty ? /* @__PURE__ */ jsx(Typography, {
|
|
78
|
+
const buttonContent = isMultiple && !isEmpty ? /* @__PURE__ */ jsx(Fragment$1, { children: "\xA0" }) : isEmpty ? /* @__PURE__ */ jsx(Typography, {
|
|
79
79
|
size: "label-1",
|
|
80
80
|
as: "span",
|
|
81
81
|
className: "block truncate text-text-default-3",
|
|
@@ -106,7 +106,7 @@ function SelectInner(t0) {
|
|
|
106
106
|
}),
|
|
107
107
|
showClear: false,
|
|
108
108
|
trailingContent,
|
|
109
|
-
children: (dataAttributeProps) => /* @__PURE__ */ jsxs(Fragment, { children: [isMultiple && !isEmpty && displayValue, isSearchable ? /* @__PURE__ */ jsx("input", {
|
|
109
|
+
children: (dataAttributeProps) => /* @__PURE__ */ jsxs(Fragment$1, { children: [isMultiple && !isEmpty && displayValue, isSearchable ? /* @__PURE__ */ jsx("input", {
|
|
110
110
|
disabled: isDisabled,
|
|
111
111
|
tabIndex: -1,
|
|
112
112
|
role: "combobox",
|
|
@@ -163,35 +163,35 @@ function Select(t0) {
|
|
|
163
163
|
props = $[1];
|
|
164
164
|
renderStaticInput = $[2];
|
|
165
165
|
}
|
|
166
|
-
if ("
|
|
167
|
-
let
|
|
166
|
+
if ("field" in props && props.field) {
|
|
167
|
+
let field;
|
|
168
168
|
let innerProps;
|
|
169
169
|
let ref;
|
|
170
170
|
if ($[3] !== props) {
|
|
171
|
-
({
|
|
171
|
+
({field, ref, ...innerProps} = props);
|
|
172
172
|
$[3] = props;
|
|
173
|
-
$[4] =
|
|
173
|
+
$[4] = field;
|
|
174
174
|
$[5] = innerProps;
|
|
175
175
|
$[6] = ref;
|
|
176
176
|
} else {
|
|
177
|
-
|
|
177
|
+
field = $[4];
|
|
178
178
|
innerProps = $[5];
|
|
179
179
|
ref = $[6];
|
|
180
180
|
}
|
|
181
|
-
const controlWithOptions =
|
|
181
|
+
const controlWithOptions = field.form;
|
|
182
182
|
let t1;
|
|
183
183
|
if ($[7] !== controlWithOptions._options?.disabled || $[8] !== innerProps || $[9] !== props.error || $[10] !== props.isDisabled || $[11] !== ref || $[12] !== renderStaticInput) {
|
|
184
184
|
t1 = (t2) => {
|
|
185
|
-
const { field, fieldState: t3 } = t2;
|
|
185
|
+
const { field: field_0, fieldState: t3 } = t2;
|
|
186
186
|
const { error, isDirty } = t3;
|
|
187
187
|
return /* @__PURE__ */ jsx(SelectInner, {
|
|
188
188
|
...innerProps,
|
|
189
|
-
ref: mergeRefs(ref,
|
|
190
|
-
value:
|
|
191
|
-
onChange:
|
|
192
|
-
onBlur:
|
|
189
|
+
ref: mergeRefs(ref, field_0.ref),
|
|
190
|
+
value: field_0.value,
|
|
191
|
+
onChange: field_0.onChange,
|
|
192
|
+
onBlur: field_0.onBlur,
|
|
193
193
|
isDirty,
|
|
194
|
-
isDisabled:
|
|
194
|
+
isDisabled: field_0.disabled || props.isDisabled,
|
|
195
195
|
isFormControlDisabled: !!controlWithOptions._options?.disabled,
|
|
196
196
|
error: props.error ?? error?.message,
|
|
197
197
|
renderStaticInput
|
|
@@ -206,14 +206,14 @@ function Select(t0) {
|
|
|
206
206
|
$[13] = t1;
|
|
207
207
|
} else t1 = $[13];
|
|
208
208
|
let t2;
|
|
209
|
-
if ($[14] !==
|
|
210
|
-
t2 = /* @__PURE__ */ jsx(
|
|
211
|
-
control:
|
|
212
|
-
name:
|
|
209
|
+
if ($[14] !== field.form || $[15] !== field.name || $[16] !== t1) {
|
|
210
|
+
t2 = /* @__PURE__ */ jsx(FieldController, {
|
|
211
|
+
control: field.form,
|
|
212
|
+
name: field.name,
|
|
213
213
|
render: t1
|
|
214
214
|
});
|
|
215
|
-
$[14] =
|
|
216
|
-
$[15] =
|
|
215
|
+
$[14] = field.form;
|
|
216
|
+
$[15] = field.name;
|
|
217
217
|
$[16] = t1;
|
|
218
218
|
$[17] = t2;
|
|
219
219
|
} else t2 = $[17];
|
|
@@ -14,6 +14,7 @@ export type SelectBaseProps<TKey extends Key = Key, TInitialSelectItem = Default
|
|
|
14
14
|
hideSearchIcon?: boolean;
|
|
15
15
|
isSearchable?: boolean;
|
|
16
16
|
isClearable?: boolean;
|
|
17
|
+
isClearableIfDisabled?: boolean;
|
|
17
18
|
isClientSearchDisabled?: boolean;
|
|
18
19
|
ignoreInputValueFiltering?: boolean;
|
|
19
20
|
ignoreTriggerWidth?: boolean;
|
|
@@ -25,7 +26,6 @@ export type SelectBaseProps<TKey extends Key = Key, TInitialSelectItem = Default
|
|
|
25
26
|
customTrigger?: ReactElement;
|
|
26
27
|
selectedTagsType?: "tags" | "list";
|
|
27
28
|
collapseAfter?: number;
|
|
28
|
-
fireBlurOnChange?: boolean;
|
|
29
29
|
searchDebounceDelay?: number;
|
|
30
30
|
multiSelectAutoConfirm?: boolean;
|
|
31
31
|
onInputChange?: (value: string) => void;
|
|
@@ -7,7 +7,7 @@ import { c } from "react/compiler-runtime";
|
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/inputs/Selection/shared/SelectBase.tsx
|
|
9
9
|
var SelectBase = (dProps) => {
|
|
10
|
-
const $ = c(
|
|
10
|
+
const $ = c(21);
|
|
11
11
|
const ui = UIConfig.useConfig();
|
|
12
12
|
const t0 = dProps.selectionMode ?? ui.select.selectionMode;
|
|
13
13
|
const t1 = dProps.variant ?? ui.input.variant;
|
|
@@ -20,12 +20,11 @@ var SelectBase = (dProps) => {
|
|
|
20
20
|
const t8 = dProps.virtualizerOptions || (dProps.totalItems ?? 0) > 100 || dProps.hasLoadMore ? false : dProps.ignoreTriggerWidth ?? false;
|
|
21
21
|
const t9 = dProps.collapseAfter ?? ui.select.collapseAfter;
|
|
22
22
|
const t10 = dProps.hideSearchIcon ?? ui.select.hideSearchIcon;
|
|
23
|
-
const t11 = dProps.
|
|
24
|
-
const t12 = dProps.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
t14 = {
|
|
23
|
+
const t11 = dProps.multiSelectAutoConfirm ?? ui.select.multiSelectAutoConfirm;
|
|
24
|
+
const t12 = dProps.ignoreInputValueFiltering ?? dProps.isClientSearchDisabled;
|
|
25
|
+
let t13;
|
|
26
|
+
if ($[0] !== dProps || $[1] !== t0 || $[2] !== t1 || $[3] !== t10 || $[4] !== t11 || $[5] !== t12 || $[6] !== t2 || $[7] !== t3 || $[8] !== t4 || $[9] !== t5 || $[10] !== t6 || $[11] !== t7 || $[12] !== t8 || $[13] !== t9) {
|
|
27
|
+
t13 = {
|
|
29
28
|
...dProps,
|
|
30
29
|
selectionMode: t0,
|
|
31
30
|
variant: t1,
|
|
@@ -38,9 +37,8 @@ var SelectBase = (dProps) => {
|
|
|
38
37
|
ignoreTriggerWidth: t8,
|
|
39
38
|
collapseAfter: t9,
|
|
40
39
|
hideSearchIcon: t10,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
isClientSearchDisabled: t13
|
|
40
|
+
multiSelectAutoConfirm: t11,
|
|
41
|
+
isClientSearchDisabled: t12
|
|
44
42
|
};
|
|
45
43
|
$[0] = dProps;
|
|
46
44
|
$[1] = t0;
|
|
@@ -48,38 +46,37 @@ var SelectBase = (dProps) => {
|
|
|
48
46
|
$[3] = t10;
|
|
49
47
|
$[4] = t11;
|
|
50
48
|
$[5] = t12;
|
|
51
|
-
$[6] =
|
|
52
|
-
$[7] =
|
|
53
|
-
$[8] =
|
|
54
|
-
$[9] =
|
|
55
|
-
$[10] =
|
|
56
|
-
$[11] =
|
|
57
|
-
$[12] =
|
|
58
|
-
$[13] =
|
|
59
|
-
$[14] =
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
const props = t14;
|
|
49
|
+
$[6] = t2;
|
|
50
|
+
$[7] = t3;
|
|
51
|
+
$[8] = t4;
|
|
52
|
+
$[9] = t5;
|
|
53
|
+
$[10] = t6;
|
|
54
|
+
$[11] = t7;
|
|
55
|
+
$[12] = t8;
|
|
56
|
+
$[13] = t9;
|
|
57
|
+
$[14] = t13;
|
|
58
|
+
} else t13 = $[14];
|
|
59
|
+
const props = t13;
|
|
63
60
|
const isDesktop = useBreakpoint("md");
|
|
64
|
-
const
|
|
61
|
+
const t14 = props;
|
|
62
|
+
let t15;
|
|
63
|
+
if ($[15] !== isDesktop || $[16] !== props) {
|
|
64
|
+
t15 = isDesktop ? /* @__PURE__ */ jsx(SelectDesktop, { ...props }) : /* @__PURE__ */ jsx(SelectMobile, { ...props });
|
|
65
|
+
$[15] = isDesktop;
|
|
66
|
+
$[16] = props;
|
|
67
|
+
$[17] = t15;
|
|
68
|
+
} else t15 = $[17];
|
|
65
69
|
let t16;
|
|
66
|
-
if ($[
|
|
67
|
-
t16 =
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
$[18] = t16;
|
|
71
|
-
} else t16 = $[18];
|
|
72
|
-
let t17;
|
|
73
|
-
if ($[19] !== t15 || $[20] !== t16) {
|
|
74
|
-
t17 = /* @__PURE__ */ jsx(SelectContext.Provider, {
|
|
75
|
-
...t15,
|
|
76
|
-
children: t16
|
|
70
|
+
if ($[18] !== t14 || $[19] !== t15) {
|
|
71
|
+
t16 = /* @__PURE__ */ jsx(SelectContext.Provider, {
|
|
72
|
+
...t14,
|
|
73
|
+
children: t15
|
|
77
74
|
});
|
|
75
|
+
$[18] = t14;
|
|
78
76
|
$[19] = t15;
|
|
79
77
|
$[20] = t16;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
return t17;
|
|
78
|
+
} else t16 = $[20];
|
|
79
|
+
return t16;
|
|
83
80
|
};
|
|
84
81
|
//#endregion
|
|
85
82
|
export { SelectBase };
|