@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
|
@@ -3,22 +3,23 @@ import { FormFieldLabel } from "../../FormField/FormFieldLabel.js";
|
|
|
3
3
|
import { FormField } from "../../FormField/FormField.js";
|
|
4
4
|
import { InputClear } from "../../shared/InputClear.js";
|
|
5
5
|
import { TooltipWrapper } from "../../shared/TooltipWrapper.js";
|
|
6
|
-
import { c } from "react/compiler-runtime";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
6
|
import { clsx } from "clsx";
|
|
9
7
|
import { useEffect, useRef } from "react";
|
|
10
8
|
import { Input, useLocale } from "react-aria-components";
|
|
9
|
+
import { c } from "react/compiler-runtime";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { useFocusVisible, useNumberField } from "react-aria";
|
|
12
12
|
import { mergeRefs } from "@react-aria/utils";
|
|
13
13
|
import { useNumberFieldState } from "react-stately";
|
|
14
14
|
//#region src/components/inputs/Input/NumberRangeInput/NumberRangeField.tsx
|
|
15
15
|
var NumberRangeValueField = (t0) => {
|
|
16
|
-
const $ = c(
|
|
16
|
+
const $ = c(65);
|
|
17
17
|
let autoFocusOnMount;
|
|
18
18
|
let className;
|
|
19
19
|
let formatOptions;
|
|
20
20
|
let hideInnerLabels;
|
|
21
21
|
let isClearable;
|
|
22
|
+
let isClearableIfDisabled;
|
|
22
23
|
let isDisabled;
|
|
23
24
|
let isInvalid;
|
|
24
25
|
let isRequired;
|
|
@@ -30,39 +31,41 @@ var NumberRangeValueField = (t0) => {
|
|
|
30
31
|
let rest;
|
|
31
32
|
let value;
|
|
32
33
|
if ($[0] !== t0) {
|
|
33
|
-
({label, value, placeholder, isDisabled, isInvalid, isRequired, formatOptions, hideInnerLabels, autoFocusOnMount, isClearable, className, onChange, onClear, onBlur, ...rest} = t0);
|
|
34
|
+
({label, value, placeholder, isDisabled, isInvalid, isRequired, formatOptions, hideInnerLabels, autoFocusOnMount, isClearable, isClearableIfDisabled, className, onChange, onClear, onBlur, ...rest} = t0);
|
|
34
35
|
$[0] = t0;
|
|
35
36
|
$[1] = autoFocusOnMount;
|
|
36
37
|
$[2] = className;
|
|
37
38
|
$[3] = formatOptions;
|
|
38
39
|
$[4] = hideInnerLabels;
|
|
39
40
|
$[5] = isClearable;
|
|
40
|
-
$[6] =
|
|
41
|
-
$[7] =
|
|
42
|
-
$[8] =
|
|
43
|
-
$[9] =
|
|
44
|
-
$[10] =
|
|
45
|
-
$[11] =
|
|
46
|
-
$[12] =
|
|
47
|
-
$[13] =
|
|
48
|
-
$[14] =
|
|
49
|
-
$[15] =
|
|
41
|
+
$[6] = isClearableIfDisabled;
|
|
42
|
+
$[7] = isDisabled;
|
|
43
|
+
$[8] = isInvalid;
|
|
44
|
+
$[9] = isRequired;
|
|
45
|
+
$[10] = label;
|
|
46
|
+
$[11] = onBlur;
|
|
47
|
+
$[12] = onChange;
|
|
48
|
+
$[13] = onClear;
|
|
49
|
+
$[14] = placeholder;
|
|
50
|
+
$[15] = rest;
|
|
51
|
+
$[16] = value;
|
|
50
52
|
} else {
|
|
51
53
|
autoFocusOnMount = $[1];
|
|
52
54
|
className = $[2];
|
|
53
55
|
formatOptions = $[3];
|
|
54
56
|
hideInnerLabels = $[4];
|
|
55
57
|
isClearable = $[5];
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
isClearableIfDisabled = $[6];
|
|
59
|
+
isDisabled = $[7];
|
|
60
|
+
isInvalid = $[8];
|
|
61
|
+
isRequired = $[9];
|
|
62
|
+
label = $[10];
|
|
63
|
+
onBlur = $[11];
|
|
64
|
+
onChange = $[12];
|
|
65
|
+
onClear = $[13];
|
|
66
|
+
placeholder = $[14];
|
|
67
|
+
rest = $[15];
|
|
68
|
+
value = $[16];
|
|
66
69
|
}
|
|
67
70
|
const ui = UIConfig.useConfig();
|
|
68
71
|
const { locale } = useLocale();
|
|
@@ -71,31 +74,31 @@ var NumberRangeValueField = (t0) => {
|
|
|
71
74
|
const numberFieldRef = useRef(null);
|
|
72
75
|
let t1;
|
|
73
76
|
let t2;
|
|
74
|
-
if ($[
|
|
77
|
+
if ($[17] !== autoFocusOnMount || $[18] !== isDisabled) {
|
|
75
78
|
t1 = () => {
|
|
76
79
|
if (!autoFocusOnMount || isDisabled) return;
|
|
77
80
|
requestAnimationFrame(() => inputRef.current?.focus());
|
|
78
81
|
};
|
|
79
82
|
t2 = [autoFocusOnMount, isDisabled];
|
|
80
|
-
$[
|
|
81
|
-
$[
|
|
82
|
-
$[
|
|
83
|
-
$[
|
|
83
|
+
$[17] = autoFocusOnMount;
|
|
84
|
+
$[18] = isDisabled;
|
|
85
|
+
$[19] = t1;
|
|
86
|
+
$[20] = t2;
|
|
84
87
|
} else {
|
|
85
|
-
t1 = $[
|
|
86
|
-
t2 = $[
|
|
88
|
+
t1 = $[19];
|
|
89
|
+
t2 = $[20];
|
|
87
90
|
}
|
|
88
91
|
useEffect(t1, t2);
|
|
89
92
|
const t3 = value ?? NaN;
|
|
90
93
|
let t4;
|
|
91
|
-
if ($[
|
|
94
|
+
if ($[21] !== onBlur) {
|
|
92
95
|
t4 = (e) => onBlur?.({ target: e.target });
|
|
93
|
-
$[
|
|
94
|
-
$[
|
|
95
|
-
} else t4 = $[
|
|
96
|
+
$[21] = onBlur;
|
|
97
|
+
$[22] = t4;
|
|
98
|
+
} else t4 = $[22];
|
|
96
99
|
const t5 = formatOptions ?? ui.numberInput.formatOptions;
|
|
97
100
|
let t6;
|
|
98
|
-
if ($[
|
|
101
|
+
if ($[23] !== isDisabled || $[24] !== isInvalid || $[25] !== isRequired || $[26] !== label || $[27] !== locale || $[28] !== onChange || $[29] !== placeholder || $[30] !== rest || $[31] !== t3 || $[32] !== t4 || $[33] !== t5) {
|
|
99
102
|
t6 = {
|
|
100
103
|
...rest,
|
|
101
104
|
label,
|
|
@@ -109,30 +112,30 @@ var NumberRangeValueField = (t0) => {
|
|
|
109
112
|
locale,
|
|
110
113
|
formatOptions: t5
|
|
111
114
|
};
|
|
112
|
-
$[
|
|
113
|
-
$[
|
|
114
|
-
$[
|
|
115
|
-
$[
|
|
116
|
-
$[
|
|
117
|
-
$[
|
|
118
|
-
$[
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
121
|
-
$[
|
|
122
|
-
$[
|
|
123
|
-
$[
|
|
124
|
-
} else t6 = $[
|
|
115
|
+
$[23] = isDisabled;
|
|
116
|
+
$[24] = isInvalid;
|
|
117
|
+
$[25] = isRequired;
|
|
118
|
+
$[26] = label;
|
|
119
|
+
$[27] = locale;
|
|
120
|
+
$[28] = onChange;
|
|
121
|
+
$[29] = placeholder;
|
|
122
|
+
$[30] = rest;
|
|
123
|
+
$[31] = t3;
|
|
124
|
+
$[32] = t4;
|
|
125
|
+
$[33] = t5;
|
|
126
|
+
$[34] = t6;
|
|
127
|
+
} else t6 = $[34];
|
|
125
128
|
const numberProps = t6;
|
|
126
129
|
const { labelProps, inputProps } = useNumberField(numberProps, useNumberFieldState(numberProps), numberFieldRef);
|
|
127
130
|
const t7 = hideInnerLabels && "sr-only";
|
|
128
131
|
let t8;
|
|
129
|
-
if ($[
|
|
132
|
+
if ($[35] !== t7) {
|
|
130
133
|
t8 = clsx(t7);
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
133
|
-
} else t8 = $[
|
|
134
|
+
$[35] = t7;
|
|
135
|
+
$[36] = t8;
|
|
136
|
+
} else t8 = $[36];
|
|
134
137
|
let t9;
|
|
135
|
-
if ($[
|
|
138
|
+
if ($[37] !== isDisabled || $[38] !== isRequired || $[39] !== label || $[40] !== labelProps || $[41] !== t8) {
|
|
136
139
|
t9 = /* @__PURE__ */ jsx(FormFieldLabel, {
|
|
137
140
|
label,
|
|
138
141
|
labelProps,
|
|
@@ -140,37 +143,37 @@ var NumberRangeValueField = (t0) => {
|
|
|
140
143
|
isDisabled,
|
|
141
144
|
className: t8
|
|
142
145
|
});
|
|
143
|
-
$[
|
|
144
|
-
$[
|
|
145
|
-
$[
|
|
146
|
-
$[
|
|
147
|
-
$[
|
|
148
|
-
$[
|
|
149
|
-
} else t9 = $[
|
|
146
|
+
$[37] = isDisabled;
|
|
147
|
+
$[38] = isRequired;
|
|
148
|
+
$[39] = label;
|
|
149
|
+
$[40] = labelProps;
|
|
150
|
+
$[41] = t8;
|
|
151
|
+
$[42] = t9;
|
|
152
|
+
} else t9 = $[42];
|
|
150
153
|
let t10;
|
|
151
|
-
if ($[
|
|
154
|
+
if ($[43] === Symbol.for("react.memo_cache_sentinel")) {
|
|
152
155
|
t10 = mergeRefs(inputRef, numberFieldRef);
|
|
153
|
-
$[
|
|
154
|
-
} else t10 = $[
|
|
156
|
+
$[43] = t10;
|
|
157
|
+
} else t10 = $[43];
|
|
155
158
|
const t11 = inputProps.placeholder;
|
|
156
159
|
let t12;
|
|
157
|
-
if ($[
|
|
160
|
+
if ($[44] !== className) {
|
|
158
161
|
t12 = clsx("w-full min-w-0 bg-transparent outline-none", className);
|
|
159
|
-
$[
|
|
160
|
-
$[
|
|
161
|
-
} else t12 = $[
|
|
162
|
+
$[44] = className;
|
|
163
|
+
$[45] = t12;
|
|
164
|
+
} else t12 = $[45];
|
|
162
165
|
let t13;
|
|
163
|
-
if ($[
|
|
166
|
+
if ($[46] !== inputProps || $[47] !== isFocusVisible) {
|
|
164
167
|
t13 = (e_0) => {
|
|
165
168
|
inputProps.onFocus?.(e_0);
|
|
166
169
|
if (isFocusVisible) e_0.target.select();
|
|
167
170
|
};
|
|
168
|
-
$[
|
|
169
|
-
$[
|
|
170
|
-
$[
|
|
171
|
-
} else t13 = $[
|
|
171
|
+
$[46] = inputProps;
|
|
172
|
+
$[47] = isFocusVisible;
|
|
173
|
+
$[48] = t13;
|
|
174
|
+
} else t13 = $[48];
|
|
172
175
|
let t14;
|
|
173
|
-
if ($[
|
|
176
|
+
if ($[49] !== inputProps || $[50] !== t12 || $[51] !== t13) {
|
|
174
177
|
t14 = /* @__PURE__ */ jsx(Input, {
|
|
175
178
|
...inputProps,
|
|
176
179
|
ref: t10,
|
|
@@ -178,47 +181,48 @@ var NumberRangeValueField = (t0) => {
|
|
|
178
181
|
className: t12,
|
|
179
182
|
onFocus: t13
|
|
180
183
|
});
|
|
181
|
-
$[
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
184
|
-
$[
|
|
185
|
-
} else t14 = $[
|
|
184
|
+
$[49] = inputProps;
|
|
185
|
+
$[50] = t12;
|
|
186
|
+
$[51] = t13;
|
|
187
|
+
$[52] = t14;
|
|
188
|
+
} else t14 = $[52];
|
|
186
189
|
let t15;
|
|
187
|
-
if ($[
|
|
188
|
-
t15 = isClearable && !isDisabled && /* @__PURE__ */ jsx(InputClear, {
|
|
190
|
+
if ($[53] !== isClearable || $[54] !== isClearableIfDisabled || $[55] !== isDisabled || $[56] !== onClear || $[57] !== value) {
|
|
191
|
+
t15 = isClearable && (!isDisabled || isClearableIfDisabled === true) && /* @__PURE__ */ jsx(InputClear, {
|
|
189
192
|
onClear,
|
|
190
193
|
show: value !== null
|
|
191
194
|
});
|
|
192
|
-
$[
|
|
193
|
-
$[
|
|
194
|
-
$[
|
|
195
|
-
$[
|
|
196
|
-
$[
|
|
197
|
-
|
|
195
|
+
$[53] = isClearable;
|
|
196
|
+
$[54] = isClearableIfDisabled;
|
|
197
|
+
$[55] = isDisabled;
|
|
198
|
+
$[56] = onClear;
|
|
199
|
+
$[57] = value;
|
|
200
|
+
$[58] = t15;
|
|
201
|
+
} else t15 = $[58];
|
|
198
202
|
let t16;
|
|
199
|
-
if ($[
|
|
203
|
+
if ($[59] !== t14 || $[60] !== t15) {
|
|
200
204
|
t16 = /* @__PURE__ */ jsxs("div", {
|
|
201
205
|
className: "flex items-center gap-input-gap-trailing-elements",
|
|
202
206
|
children: [t14, t15]
|
|
203
207
|
});
|
|
204
|
-
$[
|
|
205
|
-
$[
|
|
206
|
-
$[
|
|
207
|
-
} else t16 = $[
|
|
208
|
+
$[59] = t14;
|
|
209
|
+
$[60] = t15;
|
|
210
|
+
$[61] = t16;
|
|
211
|
+
} else t16 = $[61];
|
|
208
212
|
let t17;
|
|
209
|
-
if ($[
|
|
213
|
+
if ($[62] !== t16 || $[63] !== t9) {
|
|
210
214
|
t17 = /* @__PURE__ */ jsxs("div", {
|
|
211
215
|
className: "min-w-0 flex-1",
|
|
212
216
|
children: [t9, t16]
|
|
213
217
|
});
|
|
214
|
-
$[
|
|
215
|
-
$[
|
|
216
|
-
$[
|
|
217
|
-
} else t17 = $[
|
|
218
|
+
$[62] = t16;
|
|
219
|
+
$[63] = t9;
|
|
220
|
+
$[64] = t17;
|
|
221
|
+
} else t17 = $[64];
|
|
218
222
|
return t17;
|
|
219
223
|
};
|
|
220
224
|
var NumberRangeField = (t0) => {
|
|
221
|
-
const $ = c(
|
|
225
|
+
const $ = c(121);
|
|
222
226
|
let as;
|
|
223
227
|
let autoFocusOnMount;
|
|
224
228
|
let className;
|
|
@@ -232,6 +236,7 @@ var NumberRangeField = (t0) => {
|
|
|
232
236
|
let inputClassName;
|
|
233
237
|
let inputSizeClassName;
|
|
234
238
|
let isClearable;
|
|
239
|
+
let isClearableIfDisabled;
|
|
235
240
|
let isDirty;
|
|
236
241
|
let isDisabled;
|
|
237
242
|
let isEmpty;
|
|
@@ -252,7 +257,7 @@ var NumberRangeField = (t0) => {
|
|
|
252
257
|
let rangeValue;
|
|
253
258
|
let ref;
|
|
254
259
|
if ($[0] !== t0) {
|
|
255
|
-
({ref, as, className, inputClassName, minInputClassName, maxInputClassName, inputBaseClassName, inputSizeClassName, formFieldProps, headerProps, rangeValue, effectiveError, minPlaceholder, maxPlaceholder, minLabel, maxLabel, hideInnerLabels, isDirty, isClearable, autoFocusOnMount, isDisabled, isRequired, isEmpty, isHovered, isFocused, isFocusVisible, focusWithinProps, hoverProps, onRangeSideChange, onRangeSideClear, onBlur, ...numberFieldProps} = t0);
|
|
260
|
+
({ref, as, className, inputClassName, minInputClassName, maxInputClassName, inputBaseClassName, inputSizeClassName, formFieldProps, headerProps, rangeValue, effectiveError, minPlaceholder, maxPlaceholder, minLabel, maxLabel, hideInnerLabels, isDirty, isClearable, isClearableIfDisabled, autoFocusOnMount, isDisabled, isRequired, isEmpty, isHovered, isFocused, isFocusVisible, focusWithinProps, hoverProps, onRangeSideChange, onRangeSideClear, onBlur, ...numberFieldProps} = t0);
|
|
256
261
|
$[0] = t0;
|
|
257
262
|
$[1] = as;
|
|
258
263
|
$[2] = autoFocusOnMount;
|
|
@@ -267,25 +272,26 @@ var NumberRangeField = (t0) => {
|
|
|
267
272
|
$[11] = inputClassName;
|
|
268
273
|
$[12] = inputSizeClassName;
|
|
269
274
|
$[13] = isClearable;
|
|
270
|
-
$[14] =
|
|
271
|
-
$[15] =
|
|
272
|
-
$[16] =
|
|
273
|
-
$[17] =
|
|
274
|
-
$[18] =
|
|
275
|
-
$[19] =
|
|
276
|
-
$[20] =
|
|
277
|
-
$[21] =
|
|
278
|
-
$[22] =
|
|
279
|
-
$[23] =
|
|
280
|
-
$[24] =
|
|
281
|
-
$[25] =
|
|
282
|
-
$[26] =
|
|
283
|
-
$[27] =
|
|
284
|
-
$[28] =
|
|
285
|
-
$[29] =
|
|
286
|
-
$[30] =
|
|
287
|
-
$[31] =
|
|
288
|
-
$[32] =
|
|
275
|
+
$[14] = isClearableIfDisabled;
|
|
276
|
+
$[15] = isDirty;
|
|
277
|
+
$[16] = isDisabled;
|
|
278
|
+
$[17] = isEmpty;
|
|
279
|
+
$[18] = isFocusVisible;
|
|
280
|
+
$[19] = isFocused;
|
|
281
|
+
$[20] = isHovered;
|
|
282
|
+
$[21] = isRequired;
|
|
283
|
+
$[22] = maxInputClassName;
|
|
284
|
+
$[23] = maxLabel;
|
|
285
|
+
$[24] = maxPlaceholder;
|
|
286
|
+
$[25] = minInputClassName;
|
|
287
|
+
$[26] = minLabel;
|
|
288
|
+
$[27] = minPlaceholder;
|
|
289
|
+
$[28] = numberFieldProps;
|
|
290
|
+
$[29] = onBlur;
|
|
291
|
+
$[30] = onRangeSideChange;
|
|
292
|
+
$[31] = onRangeSideClear;
|
|
293
|
+
$[32] = rangeValue;
|
|
294
|
+
$[33] = ref;
|
|
289
295
|
} else {
|
|
290
296
|
as = $[1];
|
|
291
297
|
autoFocusOnMount = $[2];
|
|
@@ -300,41 +306,42 @@ var NumberRangeField = (t0) => {
|
|
|
300
306
|
inputClassName = $[11];
|
|
301
307
|
inputSizeClassName = $[12];
|
|
302
308
|
isClearable = $[13];
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
309
|
+
isClearableIfDisabled = $[14];
|
|
310
|
+
isDirty = $[15];
|
|
311
|
+
isDisabled = $[16];
|
|
312
|
+
isEmpty = $[17];
|
|
313
|
+
isFocusVisible = $[18];
|
|
314
|
+
isFocused = $[19];
|
|
315
|
+
isHovered = $[20];
|
|
316
|
+
isRequired = $[21];
|
|
317
|
+
maxInputClassName = $[22];
|
|
318
|
+
maxLabel = $[23];
|
|
319
|
+
maxPlaceholder = $[24];
|
|
320
|
+
minInputClassName = $[25];
|
|
321
|
+
minLabel = $[26];
|
|
322
|
+
minPlaceholder = $[27];
|
|
323
|
+
numberFieldProps = $[28];
|
|
324
|
+
onBlur = $[29];
|
|
325
|
+
onRangeSideChange = $[30];
|
|
326
|
+
onRangeSideClear = $[31];
|
|
327
|
+
rangeValue = $[32];
|
|
328
|
+
ref = $[33];
|
|
322
329
|
}
|
|
323
330
|
const t1 = as === "inline" ? -1 : void 0;
|
|
324
331
|
let t2;
|
|
325
|
-
if ($[
|
|
332
|
+
if ($[34] !== className) {
|
|
326
333
|
t2 = clsx("group w-full", className);
|
|
327
|
-
$[
|
|
328
|
-
$[
|
|
329
|
-
} else t2 = $[
|
|
334
|
+
$[34] = className;
|
|
335
|
+
$[35] = t2;
|
|
336
|
+
} else t2 = $[35];
|
|
330
337
|
const t3 = as === "inline" ? -1 : void 0;
|
|
331
338
|
let t4;
|
|
332
|
-
if ($[
|
|
339
|
+
if ($[36] !== inputBaseClassName || $[37] !== inputClassName) {
|
|
333
340
|
t4 = clsx(inputBaseClassName, "group/date-picker-content relative flex min-w-input-width-min-width items-center justify-between gap-2", inputClassName);
|
|
334
|
-
$[
|
|
335
|
-
$[
|
|
336
|
-
$[
|
|
337
|
-
} else t4 = $[
|
|
341
|
+
$[36] = inputBaseClassName;
|
|
342
|
+
$[37] = inputClassName;
|
|
343
|
+
$[38] = t4;
|
|
344
|
+
} else t4 = $[38];
|
|
338
345
|
const t5 = isHovered || void 0;
|
|
339
346
|
const t6 = isDisabled || void 0;
|
|
340
347
|
const t7 = isDisabled || void 0;
|
|
@@ -347,40 +354,40 @@ var NumberRangeField = (t0) => {
|
|
|
347
354
|
const t14 = isRequired || void 0;
|
|
348
355
|
const t15 = !isEmpty || void 0;
|
|
349
356
|
let t16;
|
|
350
|
-
if ($[
|
|
357
|
+
if ($[39] !== inputSizeClassName) {
|
|
351
358
|
t16 = clsx("flex w-full items-center gap-input-gap-input-text-to-elements pr-0!", inputSizeClassName);
|
|
352
|
-
$[
|
|
353
|
-
$[
|
|
354
|
-
} else t16 = $[
|
|
359
|
+
$[39] = inputSizeClassName;
|
|
360
|
+
$[40] = t16;
|
|
361
|
+
} else t16 = $[40];
|
|
355
362
|
let t17;
|
|
356
|
-
if ($[
|
|
363
|
+
if ($[41] !== as || $[42] !== headerProps) {
|
|
357
364
|
t17 = as && ["filter", "floating"].includes(as) && headerProps && /* @__PURE__ */ jsx(FormFieldLabel, {
|
|
358
365
|
as,
|
|
359
366
|
...headerProps
|
|
360
367
|
});
|
|
361
|
-
$[
|
|
362
|
-
$[
|
|
363
|
-
$[
|
|
364
|
-
} else t17 = $[
|
|
368
|
+
$[41] = as;
|
|
369
|
+
$[42] = headerProps;
|
|
370
|
+
$[43] = t17;
|
|
371
|
+
} else t17 = $[43];
|
|
365
372
|
let t18;
|
|
366
|
-
if ($[
|
|
373
|
+
if ($[44] !== onRangeSideChange) {
|
|
367
374
|
t18 = (nextValue) => {
|
|
368
375
|
onRangeSideChange("min", nextValue);
|
|
369
376
|
};
|
|
370
|
-
$[
|
|
371
|
-
$[
|
|
372
|
-
} else t18 = $[
|
|
377
|
+
$[44] = onRangeSideChange;
|
|
378
|
+
$[45] = t18;
|
|
379
|
+
} else t18 = $[45];
|
|
373
380
|
const t19 = !!effectiveError;
|
|
374
381
|
let t20;
|
|
375
|
-
if ($[
|
|
382
|
+
if ($[46] !== onRangeSideClear) {
|
|
376
383
|
t20 = () => {
|
|
377
384
|
onRangeSideClear("min");
|
|
378
385
|
};
|
|
379
|
-
$[
|
|
380
|
-
$[
|
|
381
|
-
} else t20 = $[
|
|
386
|
+
$[46] = onRangeSideClear;
|
|
387
|
+
$[47] = t20;
|
|
388
|
+
} else t20 = $[47];
|
|
382
389
|
let t21;
|
|
383
|
-
if ($[
|
|
390
|
+
if ($[48] !== autoFocusOnMount || $[49] !== hideInnerLabels || $[50] !== isClearable || $[51] !== isClearableIfDisabled || $[52] !== isDisabled || $[53] !== isRequired || $[54] !== minInputClassName || $[55] !== minLabel || $[56] !== minPlaceholder || $[57] !== numberFieldProps || $[58] !== onBlur || $[59] !== rangeValue.min || $[60] !== t18 || $[61] !== t19 || $[62] !== t20) {
|
|
384
391
|
t21 = /* @__PURE__ */ jsx(NumberRangeValueField, {
|
|
385
392
|
...numberFieldProps,
|
|
386
393
|
label: minLabel,
|
|
@@ -394,60 +401,62 @@ var NumberRangeField = (t0) => {
|
|
|
394
401
|
hideInnerLabels,
|
|
395
402
|
autoFocusOnMount,
|
|
396
403
|
isClearable,
|
|
404
|
+
isClearableIfDisabled,
|
|
397
405
|
onClear: t20,
|
|
398
406
|
className: minInputClassName
|
|
399
407
|
});
|
|
400
|
-
$[
|
|
401
|
-
$[
|
|
402
|
-
$[
|
|
403
|
-
$[
|
|
404
|
-
$[
|
|
405
|
-
$[
|
|
406
|
-
$[
|
|
407
|
-
$[
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
410
|
-
$[
|
|
411
|
-
$[
|
|
412
|
-
$[
|
|
413
|
-
$[
|
|
414
|
-
$[
|
|
415
|
-
|
|
408
|
+
$[48] = autoFocusOnMount;
|
|
409
|
+
$[49] = hideInnerLabels;
|
|
410
|
+
$[50] = isClearable;
|
|
411
|
+
$[51] = isClearableIfDisabled;
|
|
412
|
+
$[52] = isDisabled;
|
|
413
|
+
$[53] = isRequired;
|
|
414
|
+
$[54] = minInputClassName;
|
|
415
|
+
$[55] = minLabel;
|
|
416
|
+
$[56] = minPlaceholder;
|
|
417
|
+
$[57] = numberFieldProps;
|
|
418
|
+
$[58] = onBlur;
|
|
419
|
+
$[59] = rangeValue.min;
|
|
420
|
+
$[60] = t18;
|
|
421
|
+
$[61] = t19;
|
|
422
|
+
$[62] = t20;
|
|
423
|
+
$[63] = t21;
|
|
424
|
+
} else t21 = $[63];
|
|
416
425
|
const t22 = isDisabled && "text-interactive-text-secondary-disabled";
|
|
417
426
|
let t23;
|
|
418
|
-
if ($[
|
|
427
|
+
if ($[64] !== t22) {
|
|
419
428
|
t23 = clsx("pointer-events-none shrink-0 select-none text-label-2 text-text-default-3", t22);
|
|
420
|
-
$[
|
|
421
|
-
$[
|
|
422
|
-
} else t23 = $[
|
|
429
|
+
$[64] = t22;
|
|
430
|
+
$[65] = t23;
|
|
431
|
+
} else t23 = $[65];
|
|
423
432
|
let t24;
|
|
424
|
-
if ($[
|
|
433
|
+
if ($[66] !== t23) {
|
|
425
434
|
t24 = /* @__PURE__ */ jsx("span", {
|
|
426
435
|
className: t23,
|
|
427
436
|
children: "-"
|
|
428
437
|
});
|
|
429
|
-
$[
|
|
430
|
-
$[
|
|
431
|
-
} else t24 = $[
|
|
438
|
+
$[66] = t23;
|
|
439
|
+
$[67] = t24;
|
|
440
|
+
} else t24 = $[67];
|
|
432
441
|
let t25;
|
|
433
|
-
if ($[
|
|
442
|
+
if ($[68] !== onRangeSideChange) {
|
|
434
443
|
t25 = (nextValue_0) => {
|
|
435
444
|
onRangeSideChange("max", nextValue_0);
|
|
436
445
|
};
|
|
437
|
-
$[
|
|
438
|
-
$[
|
|
439
|
-
} else t25 = $[
|
|
446
|
+
$[68] = onRangeSideChange;
|
|
447
|
+
$[69] = t25;
|
|
448
|
+
} else t25 = $[69];
|
|
440
449
|
const t26 = !!effectiveError;
|
|
441
450
|
let t27;
|
|
442
|
-
if ($[
|
|
451
|
+
if ($[70] !== onRangeSideClear) {
|
|
443
452
|
t27 = () => {
|
|
444
453
|
onRangeSideClear("max");
|
|
445
454
|
};
|
|
446
|
-
$[
|
|
447
|
-
$[
|
|
448
|
-
} else t27 = $[
|
|
455
|
+
$[70] = onRangeSideClear;
|
|
456
|
+
$[71] = t27;
|
|
457
|
+
} else t27 = $[71];
|
|
449
458
|
let t28;
|
|
450
|
-
if ($[
|
|
459
|
+
if ($[72] !== hideInnerLabels || $[73] !== isClearable || $[74] !== isClearableIfDisabled || $[75] !== isDisabled || $[76] !== isRequired || $[77] !== maxInputClassName || $[78] !== maxLabel || $[79] !== maxPlaceholder || $[80] !== numberFieldProps || $[81] !== onBlur || $[82] !== rangeValue.max || $[83] !== t25 || $[84] !== t26 || $[85] !== t27) {
|
|
451
460
|
t28 = /* @__PURE__ */ jsx(NumberRangeValueField, {
|
|
452
461
|
...numberFieldProps,
|
|
453
462
|
label: maxLabel,
|
|
@@ -460,26 +469,28 @@ var NumberRangeField = (t0) => {
|
|
|
460
469
|
isRequired,
|
|
461
470
|
hideInnerLabels,
|
|
462
471
|
isClearable,
|
|
472
|
+
isClearableIfDisabled,
|
|
463
473
|
onClear: t27,
|
|
464
474
|
className: maxInputClassName
|
|
465
475
|
});
|
|
466
|
-
$[
|
|
467
|
-
$[
|
|
468
|
-
$[
|
|
469
|
-
$[
|
|
470
|
-
$[
|
|
471
|
-
$[
|
|
472
|
-
$[
|
|
473
|
-
$[
|
|
474
|
-
$[
|
|
475
|
-
$[
|
|
476
|
-
$[
|
|
477
|
-
$[
|
|
478
|
-
$[
|
|
479
|
-
$[
|
|
480
|
-
|
|
476
|
+
$[72] = hideInnerLabels;
|
|
477
|
+
$[73] = isClearable;
|
|
478
|
+
$[74] = isClearableIfDisabled;
|
|
479
|
+
$[75] = isDisabled;
|
|
480
|
+
$[76] = isRequired;
|
|
481
|
+
$[77] = maxInputClassName;
|
|
482
|
+
$[78] = maxLabel;
|
|
483
|
+
$[79] = maxPlaceholder;
|
|
484
|
+
$[80] = numberFieldProps;
|
|
485
|
+
$[81] = onBlur;
|
|
486
|
+
$[82] = rangeValue.max;
|
|
487
|
+
$[83] = t25;
|
|
488
|
+
$[84] = t26;
|
|
489
|
+
$[85] = t27;
|
|
490
|
+
$[86] = t28;
|
|
491
|
+
} else t28 = $[86];
|
|
481
492
|
let t29;
|
|
482
|
-
if ($[
|
|
493
|
+
if ($[87] !== t16 || $[88] !== t17 || $[89] !== t21 || $[90] !== t24 || $[91] !== t28) {
|
|
483
494
|
t29 = /* @__PURE__ */ jsxs("div", {
|
|
484
495
|
className: t16,
|
|
485
496
|
children: [
|
|
@@ -489,15 +500,15 @@ var NumberRangeField = (t0) => {
|
|
|
489
500
|
t28
|
|
490
501
|
]
|
|
491
502
|
});
|
|
492
|
-
$[
|
|
493
|
-
$[
|
|
494
|
-
$[
|
|
495
|
-
$[
|
|
496
|
-
$[
|
|
497
|
-
$[
|
|
498
|
-
} else t29 = $[
|
|
503
|
+
$[87] = t16;
|
|
504
|
+
$[88] = t17;
|
|
505
|
+
$[89] = t21;
|
|
506
|
+
$[90] = t24;
|
|
507
|
+
$[91] = t28;
|
|
508
|
+
$[92] = t29;
|
|
509
|
+
} else t29 = $[92];
|
|
499
510
|
let t30;
|
|
500
|
-
if ($[
|
|
511
|
+
if ($[93] !== focusWithinProps || $[94] !== hoverProps || $[95] !== t10 || $[96] !== t11 || $[97] !== t12 || $[98] !== t13 || $[99] !== t14 || $[100] !== t15 || $[101] !== t29 || $[102] !== t4 || $[103] !== t5 || $[104] !== t6 || $[105] !== t7 || $[106] !== t8 || $[107] !== t9) {
|
|
501
512
|
t30 = /* @__PURE__ */ jsx("div", {
|
|
502
513
|
className: t4,
|
|
503
514
|
"data-rac": "",
|
|
@@ -516,25 +527,25 @@ var NumberRangeField = (t0) => {
|
|
|
516
527
|
...hoverProps,
|
|
517
528
|
children: t29
|
|
518
529
|
});
|
|
519
|
-
$[
|
|
520
|
-
$[
|
|
521
|
-
$[
|
|
522
|
-
$[
|
|
523
|
-
$[
|
|
524
|
-
$[
|
|
525
|
-
$[
|
|
526
|
-
$[
|
|
527
|
-
$[
|
|
528
|
-
$[
|
|
529
|
-
$[
|
|
530
|
-
$[
|
|
531
|
-
$[
|
|
532
|
-
$[
|
|
533
|
-
$[
|
|
534
|
-
$[
|
|
535
|
-
} else t30 = $[
|
|
530
|
+
$[93] = focusWithinProps;
|
|
531
|
+
$[94] = hoverProps;
|
|
532
|
+
$[95] = t10;
|
|
533
|
+
$[96] = t11;
|
|
534
|
+
$[97] = t12;
|
|
535
|
+
$[98] = t13;
|
|
536
|
+
$[99] = t14;
|
|
537
|
+
$[100] = t15;
|
|
538
|
+
$[101] = t29;
|
|
539
|
+
$[102] = t4;
|
|
540
|
+
$[103] = t5;
|
|
541
|
+
$[104] = t6;
|
|
542
|
+
$[105] = t7;
|
|
543
|
+
$[106] = t8;
|
|
544
|
+
$[107] = t9;
|
|
545
|
+
$[108] = t30;
|
|
546
|
+
} else t30 = $[108];
|
|
536
547
|
let t31;
|
|
537
|
-
if ($[
|
|
548
|
+
if ($[109] !== as || $[110] !== formFieldProps || $[111] !== ref || $[112] !== t2 || $[113] !== t3 || $[114] !== t30) {
|
|
538
549
|
t31 = /* @__PURE__ */ jsx(FormField, {
|
|
539
550
|
...formFieldProps,
|
|
540
551
|
ref,
|
|
@@ -543,28 +554,28 @@ var NumberRangeField = (t0) => {
|
|
|
543
554
|
tabIndex: t3,
|
|
544
555
|
children: t30
|
|
545
556
|
});
|
|
546
|
-
$[
|
|
547
|
-
$[
|
|
548
|
-
$[
|
|
549
|
-
$[
|
|
550
|
-
$[
|
|
551
|
-
$[
|
|
552
|
-
$[
|
|
553
|
-
} else t31 = $[
|
|
557
|
+
$[109] = as;
|
|
558
|
+
$[110] = formFieldProps;
|
|
559
|
+
$[111] = ref;
|
|
560
|
+
$[112] = t2;
|
|
561
|
+
$[113] = t3;
|
|
562
|
+
$[114] = t30;
|
|
563
|
+
$[115] = t31;
|
|
564
|
+
} else t31 = $[115];
|
|
554
565
|
let t32;
|
|
555
|
-
if ($[
|
|
566
|
+
if ($[116] !== as || $[117] !== effectiveError || $[118] !== t1 || $[119] !== t31) {
|
|
556
567
|
t32 = /* @__PURE__ */ jsx(TooltipWrapper, {
|
|
557
568
|
as,
|
|
558
569
|
error: effectiveError,
|
|
559
570
|
triggerTabIndex: t1,
|
|
560
571
|
children: t31
|
|
561
572
|
});
|
|
562
|
-
$[
|
|
563
|
-
$[
|
|
564
|
-
$[
|
|
565
|
-
$[
|
|
566
|
-
$[
|
|
567
|
-
} else t32 = $[
|
|
573
|
+
$[116] = as;
|
|
574
|
+
$[117] = effectiveError;
|
|
575
|
+
$[118] = t1;
|
|
576
|
+
$[119] = t31;
|
|
577
|
+
$[120] = t32;
|
|
578
|
+
} else t32 = $[120];
|
|
568
579
|
return t32;
|
|
569
580
|
};
|
|
570
581
|
//#endregion
|