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