@povio/ui 3.4.0-rc.4 → 3.4.0-rc.6
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/components/Breadcrumbs/Breadcrumbs.js +13 -4
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuDesktop.js +1 -1
- package/dist/components/Menu/MenuItem.js +6 -3
- package/dist/components/Menu/MenuMobile.js +6 -3
- package/dist/components/Menu/MenuPopover.js +1 -1
- package/dist/components/buttons/IconButton/IconButton.js +1 -1
- package/dist/components/buttons/PillButton/PillButton.js +3 -3
- package/dist/components/buttons/PillButton/pillButton.cva.d.ts +1 -1
- package/dist/components/buttons/SplitButton/SplitButton.js +3 -3
- package/dist/components/buttons/TextButton/TextButton.js +1 -1
- package/dist/components/buttons/ToggleButton/ToggleButton.js +1 -1
- package/dist/components/buttons/shared/buttonContent.cva.d.ts +1 -1
- package/dist/components/inputs/Checkbox/Checkbox.js +1 -1
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +2 -3
- package/dist/components/inputs/Checkbox/CheckboxGroup.js +1 -1
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +2 -1
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +2 -1
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +2 -1
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.d.ts +1 -0
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +196 -191
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +13 -9
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +7 -11
- package/dist/components/inputs/DateTime/shared/DatePickerInput.d.ts +2 -1
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +2 -2
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +1 -1
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +1 -1
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +1 -1
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +1 -1
- package/dist/components/inputs/DateTime/shared/TimeField.js +1 -1
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +3 -4
- package/dist/components/inputs/DateTime/shared/TimePickerInput.d.ts +2 -1
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +46 -44
- package/dist/components/inputs/DateTime/shared/YearPicker.js +1 -1
- 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.js +1 -1
- package/dist/components/inputs/File/FileUploadContainer.js +1 -1
- package/dist/components/inputs/File/InputUpload.js +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 +5 -2
- package/dist/components/inputs/File/shared/FileUploadContentError.js +8 -5
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +8 -5
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +7 -4
- package/dist/components/inputs/File/shared/InputUploadContent.js +3 -3
- package/dist/components/inputs/File/shared/InputUploadFilled.js +3 -3
- package/dist/components/inputs/FormField/FormField.js +1 -1
- package/dist/components/inputs/FormField/FormFieldError.js +1 -1
- package/dist/components/inputs/FormField/FormFieldHeader.js +4 -3
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +6 -3
- package/dist/components/inputs/FormField/FormFieldHelper.js +1 -1
- package/dist/components/inputs/FormField/FormFieldLabel.js +1 -1
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +89 -87
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.d.ts +2 -1
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +264 -253
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.d.ts +1 -0
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +5 -4
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +3 -4
- package/dist/components/inputs/Input/TextArea/TextArea.d.ts +1 -0
- package/dist/components/inputs/Input/TextArea/TextArea.js +99 -98
- package/dist/components/inputs/Input/TextInput/TextInput.js +92 -90
- package/dist/components/inputs/Input/shared/InputContent.d.ts +2 -1
- package/dist/components/inputs/Input/shared/InputContent.js +49 -47
- package/dist/components/inputs/Inputs/Form.js +1 -1
- package/dist/components/inputs/Inputs/InputItem.js +1 -1
- package/dist/components/inputs/Inputs/Inputs.js +1 -1
- package/dist/components/inputs/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +1 -1
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +1 -1
- package/dist/components/inputs/Selection/Select/QuerySelect.js +1 -1
- package/dist/components/inputs/Selection/Select/Select.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectBase.d.ts +1 -0
- package/dist/components/inputs/Selection/shared/SelectBase.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +55 -53
- package/dist/components/inputs/Selection/shared/SelectInput.d.ts +2 -2
- package/dist/components/inputs/Selection/shared/SelectInput.js +56 -54
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +1 -1
- 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 +7 -3
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +6 -3
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +1 -0
- package/dist/components/inputs/Skeleton/InputFrame.js +2 -2
- package/dist/components/inputs/Slider/Slider.js +1 -1
- package/dist/components/inputs/TextEditor/TextEditor.js +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +4 -3
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +3 -3
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +6 -9
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +5 -4
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +1 -1
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +9 -6
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +4 -5
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +6 -9
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +1 -1
- package/dist/components/inputs/Toggle/Toggle.js +1 -1
- package/dist/components/inputs/shared/CheckContent.js +1 -1
- package/dist/components/inputs/shared/InputClear.js +7 -4
- package/dist/components/inputs/shared/TooltipWrapper.d.ts +1 -1
- package/dist/components/inputs/shared/TooltipWrapper.js +1 -1
- package/dist/components/inputs/shared/form.binding.js +1 -1
- package/dist/components/inputs/shared/input.cva.js +1 -1
- package/dist/components/inputs/shared/useStaticInputHandoff.js +64 -38
- package/dist/components/navigation/Accordion/AccordionItem.js +5 -2
- package/dist/components/navigation/Stepper/StepperItem.js +6 -3
- package/dist/components/navigation/Stepper/StepperSeparator.js +1 -1
- package/dist/components/overlays/BottomSheet/BottomSheet.js +1 -1
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +6 -3
- package/dist/components/overlays/Drawer/Drawer.js +1 -1
- package/dist/components/overlays/Modal/Modal.js +2 -2
- package/dist/components/overlays/Tooltip/Tooltip.js +14 -5
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +1 -1
- package/dist/components/segment/Segment.js +1 -1
- package/dist/components/segment/SegmentItem.js +1 -1
- package/dist/components/shared/pagination/PaginationList.js +6 -9
- package/dist/components/status/Loader/Loader.js +1 -1
- package/dist/components/status/Toast/Toast.js +1 -1
- package/dist/components/status/Toast/useToast.js +1 -1
- package/dist/components/table/ColumnConfig.js +1 -1
- package/dist/components/table/PaginatedTable.js +1 -1
- package/dist/components/table/Table.js +148 -40
- package/dist/components/text/Link/Link.js +1 -1
- package/dist/components/text/Pill/Pill.js +5 -2
- package/dist/components/text/Tag/Tag.js +5 -2
- package/dist/config/link.context.js +1 -1
- package/dist/config/router.context.js +1 -1
- package/dist/config/uiConfig.context.js +13 -6
- package/dist/config/uiOverrides.context.js +1 -1
- package/dist/hooks/useFilters.js +1 -1
- package/dist/hooks/useForm.js +1 -1
- 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.js +1 -40
- package/dist/node_modules/.pnpm/react-icons-sprite@1.1.1_lucide-react@1.28.0_react@19.2.3__react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-icons-sprite/dist/icon.js +15 -0
- package/dist/react-icons-sprite-4cbd6962.svg +1 -0
- package/dist/rhf/Inputs.js +1 -1
- package/dist/rhf.d.ts +0 -39
- package/dist/tanstack.d.ts +0 -39
- package/dist/tanstack.js +1 -40
- package/package.json +2 -1
- 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
|
@@ -7,20 +7,20 @@ import { TooltipWrapper } from "../../shared/TooltipWrapper.js";
|
|
|
7
7
|
import { InputFrame } from "../../Skeleton/InputFrame.js";
|
|
8
8
|
import { useStaticInputHandoff } from "../../shared/useStaticInputHandoff.js";
|
|
9
9
|
import { InputContent } from "../shared/InputContent.js";
|
|
10
|
-
import { c } from "react/compiler-runtime";
|
|
11
10
|
import { jsx } from "react/jsx-runtime";
|
|
12
11
|
import { clsx } from "clsx";
|
|
13
12
|
import { useEffect, useRef, useState } from "react";
|
|
14
13
|
import { Input } from "react-aria-components";
|
|
14
|
+
import { c } from "react/compiler-runtime";
|
|
15
15
|
import { useFocusVisible, useTextField } from "react-aria";
|
|
16
16
|
import { mergeRefs } from "@react-aria/utils";
|
|
17
17
|
//#region src/components/inputs/Input/TextInput/TextInput.tsx
|
|
18
18
|
var TextInputBase = (props) => {
|
|
19
|
-
const $ = c(
|
|
19
|
+
const $ = c(85);
|
|
20
20
|
const ui = UIConfig.useConfig();
|
|
21
21
|
const inputBaseCva = UIOverrides.useCva("input.baseCva", inputBaseDefinition);
|
|
22
22
|
const inputRef = useRef(null);
|
|
23
|
-
const { ref, inputClassName, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, className, unit, isLoading, action, leadingIcon, trailingIcon, value, onChange, onBlur, as: asProp, hideLabel: hideLabelProp, variant: variantProp, size: sizeProp, isClearable: isClearableProp, autoFocusOnMount, ...rest } = props;
|
|
23
|
+
const { ref, inputClassName, label, tooltipText, helperText, isRequired, rightContent, isDisabled, isDirty, headerClassName, errorClassName, isHeaderHidden, error, className, unit, isLoading, action, leadingIcon, trailingIcon, value, onChange, onBlur, as: asProp, hideLabel: hideLabelProp, variant: variantProp, size: sizeProp, isClearable: isClearableProp, isClearableIfDisabled, autoFocusOnMount, ...rest } = props;
|
|
24
24
|
const as = asProp ?? ui.input.as;
|
|
25
25
|
const hideLabel = hideLabelProp ?? ui.input.hideLabel;
|
|
26
26
|
const variant = variantProp ?? ui.input.variant;
|
|
@@ -87,7 +87,7 @@ var TextInputBase = (props) => {
|
|
|
87
87
|
} else t3 = $[15];
|
|
88
88
|
const formFieldProps = t3;
|
|
89
89
|
let t4;
|
|
90
|
-
if ($[16] !== action || $[17] !== inputValue || $[18] !== isClearable || $[19] !==
|
|
90
|
+
if ($[16] !== action || $[17] !== inputValue || $[18] !== isClearable || $[19] !== isClearableIfDisabled || $[20] !== isDisabled || $[21] !== isLoading || $[22] !== leadingIcon || $[23] !== onBlur || $[24] !== onChange || $[25] !== trailingIcon || $[26] !== unit) {
|
|
91
91
|
t4 = {
|
|
92
92
|
unit,
|
|
93
93
|
isLoading,
|
|
@@ -96,6 +96,7 @@ var TextInputBase = (props) => {
|
|
|
96
96
|
leadingIcon,
|
|
97
97
|
trailingIcon,
|
|
98
98
|
isClearable,
|
|
99
|
+
isClearableIfDisabled,
|
|
99
100
|
value: inputValue,
|
|
100
101
|
onChange,
|
|
101
102
|
onBlur
|
|
@@ -103,19 +104,20 @@ var TextInputBase = (props) => {
|
|
|
103
104
|
$[16] = action;
|
|
104
105
|
$[17] = inputValue;
|
|
105
106
|
$[18] = isClearable;
|
|
106
|
-
$[19] =
|
|
107
|
-
$[20] =
|
|
108
|
-
$[21] =
|
|
109
|
-
$[22] =
|
|
110
|
-
$[23] =
|
|
111
|
-
$[24] =
|
|
112
|
-
$[25] =
|
|
113
|
-
$[26] =
|
|
114
|
-
|
|
107
|
+
$[19] = isClearableIfDisabled;
|
|
108
|
+
$[20] = isDisabled;
|
|
109
|
+
$[21] = isLoading;
|
|
110
|
+
$[22] = leadingIcon;
|
|
111
|
+
$[23] = onBlur;
|
|
112
|
+
$[24] = onChange;
|
|
113
|
+
$[25] = trailingIcon;
|
|
114
|
+
$[26] = unit;
|
|
115
|
+
$[27] = t4;
|
|
116
|
+
} else t4 = $[27];
|
|
115
117
|
const inputContentProps = t4;
|
|
116
118
|
const t5 = hideLabel || isHeaderHidden;
|
|
117
119
|
let t6;
|
|
118
|
-
if ($[
|
|
120
|
+
if ($[28] !== headerClassName || $[29] !== helperText || $[30] !== isDisabled || $[31] !== isRequired || $[32] !== label || $[33] !== labelProps || $[34] !== rightContent || $[35] !== t5 || $[36] !== tooltipText) {
|
|
119
121
|
t6 = {
|
|
120
122
|
label,
|
|
121
123
|
tooltipText,
|
|
@@ -127,17 +129,17 @@ var TextInputBase = (props) => {
|
|
|
127
129
|
className: headerClassName,
|
|
128
130
|
labelProps
|
|
129
131
|
};
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
135
|
-
$[
|
|
136
|
-
$[
|
|
137
|
-
$[
|
|
138
|
-
$[
|
|
139
|
-
$[
|
|
140
|
-
} else t6 = $[
|
|
132
|
+
$[28] = headerClassName;
|
|
133
|
+
$[29] = helperText;
|
|
134
|
+
$[30] = isDisabled;
|
|
135
|
+
$[31] = isRequired;
|
|
136
|
+
$[32] = label;
|
|
137
|
+
$[33] = labelProps;
|
|
138
|
+
$[34] = rightContent;
|
|
139
|
+
$[35] = t5;
|
|
140
|
+
$[36] = tooltipText;
|
|
141
|
+
$[37] = t6;
|
|
142
|
+
} else t6 = $[37];
|
|
141
143
|
const headerProps = t6;
|
|
142
144
|
const dataIsDisabled = isDisabled || void 0;
|
|
143
145
|
const T0 = TooltipWrapper;
|
|
@@ -145,12 +147,12 @@ var TextInputBase = (props) => {
|
|
|
145
147
|
const T1 = FormField;
|
|
146
148
|
const t8 = as === "inline" && "h-full";
|
|
147
149
|
let t9;
|
|
148
|
-
if ($[
|
|
150
|
+
if ($[38] !== className || $[39] !== t8) {
|
|
149
151
|
t9 = clsx("group w-full", t8, className);
|
|
150
|
-
$[
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
153
|
-
} else t9 = $[
|
|
152
|
+
$[38] = className;
|
|
153
|
+
$[39] = t8;
|
|
154
|
+
$[40] = t9;
|
|
155
|
+
} else t9 = $[40];
|
|
154
156
|
const t10 = as === "inline" ? -1 : void 0;
|
|
155
157
|
const t11 = value === "" || value === null || value === void 0 || void 0;
|
|
156
158
|
const t12 = isRequired || void 0;
|
|
@@ -160,35 +162,35 @@ var TextInputBase = (props) => {
|
|
|
160
162
|
...rest
|
|
161
163
|
}), inputClassName);
|
|
162
164
|
let t14;
|
|
163
|
-
if ($[
|
|
165
|
+
if ($[41] === Symbol.for("react.memo_cache_sentinel")) {
|
|
164
166
|
t14 = () => inputRef.current?.focus();
|
|
165
|
-
$[
|
|
166
|
-
} else t14 = $[
|
|
167
|
+
$[41] = t14;
|
|
168
|
+
} else t14 = $[41];
|
|
167
169
|
const t15 = value === "" || value === null || value === void 0 || void 0;
|
|
168
170
|
const t16 = isRequired || void 0;
|
|
169
171
|
let t17;
|
|
170
|
-
if ($[
|
|
172
|
+
if ($[42] !== ref) {
|
|
171
173
|
t17 = mergeRefs(ref, inputRef);
|
|
172
|
-
$[
|
|
173
|
-
$[
|
|
174
|
-
} else t17 = $[
|
|
174
|
+
$[42] = ref;
|
|
175
|
+
$[43] = t17;
|
|
176
|
+
} else t17 = $[43];
|
|
175
177
|
const t18 = value === "" || value === null || value === void 0 || void 0;
|
|
176
178
|
const t19 = !(value === "" || value === null || value === void 0) || void 0;
|
|
177
179
|
const t20 = isDirty || void 0;
|
|
178
180
|
const t21 = isRequired || void 0;
|
|
179
181
|
const t22 = as === "floating" ? "\xA0" : inputProps.placeholder;
|
|
180
182
|
let t23;
|
|
181
|
-
if ($[
|
|
183
|
+
if ($[44] !== inputProps || $[45] !== isFocusVisible) {
|
|
182
184
|
t23 = (e) => {
|
|
183
185
|
inputProps.onFocus?.(e);
|
|
184
186
|
if (isFocusVisible) e.target.select();
|
|
185
187
|
};
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
$[
|
|
189
|
-
} else t23 = $[
|
|
188
|
+
$[44] = inputProps;
|
|
189
|
+
$[45] = isFocusVisible;
|
|
190
|
+
$[46] = t23;
|
|
191
|
+
} else t23 = $[46];
|
|
190
192
|
let t24;
|
|
191
|
-
if ($[
|
|
193
|
+
if ($[47] !== dataIsDisabled || $[48] !== inputProps || $[49] !== t17 || $[50] !== t18 || $[51] !== t19 || $[52] !== t20 || $[53] !== t21 || $[54] !== t22 || $[55] !== t23) {
|
|
192
194
|
t24 = /* @__PURE__ */ jsx(Input, {
|
|
193
195
|
...inputProps,
|
|
194
196
|
ref: t17,
|
|
@@ -201,19 +203,19 @@ var TextInputBase = (props) => {
|
|
|
201
203
|
className: "w-full bg-transparent outline-none",
|
|
202
204
|
onFocus: t23
|
|
203
205
|
});
|
|
204
|
-
$[
|
|
205
|
-
$[
|
|
206
|
-
$[
|
|
207
|
-
$[
|
|
208
|
-
$[
|
|
209
|
-
$[
|
|
210
|
-
$[
|
|
211
|
-
$[
|
|
212
|
-
$[
|
|
213
|
-
$[
|
|
214
|
-
} else t24 = $[
|
|
206
|
+
$[47] = dataIsDisabled;
|
|
207
|
+
$[48] = inputProps;
|
|
208
|
+
$[49] = t17;
|
|
209
|
+
$[50] = t18;
|
|
210
|
+
$[51] = t19;
|
|
211
|
+
$[52] = t20;
|
|
212
|
+
$[53] = t21;
|
|
213
|
+
$[54] = t22;
|
|
214
|
+
$[55] = t23;
|
|
215
|
+
$[56] = t24;
|
|
216
|
+
} else t24 = $[56];
|
|
215
217
|
let t25;
|
|
216
|
-
if ($[
|
|
218
|
+
if ($[57] !== as || $[58] !== headerProps || $[59] !== inputContentProps || $[60] !== size || $[61] !== t24) {
|
|
217
219
|
t25 = /* @__PURE__ */ jsx(InputContent, {
|
|
218
220
|
...inputContentProps,
|
|
219
221
|
headerProps,
|
|
@@ -221,15 +223,15 @@ var TextInputBase = (props) => {
|
|
|
221
223
|
size,
|
|
222
224
|
children: t24
|
|
223
225
|
});
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
226
|
-
$[
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
$[
|
|
230
|
-
} else t25 = $[
|
|
226
|
+
$[57] = as;
|
|
227
|
+
$[58] = headerProps;
|
|
228
|
+
$[59] = inputContentProps;
|
|
229
|
+
$[60] = size;
|
|
230
|
+
$[61] = t24;
|
|
231
|
+
$[62] = t25;
|
|
232
|
+
} else t25 = $[62];
|
|
231
233
|
let t26;
|
|
232
|
-
if ($[
|
|
234
|
+
if ($[63] !== dataIsDisabled || $[64] !== t13 || $[65] !== t15 || $[66] !== t16 || $[67] !== t25) {
|
|
233
235
|
t26 = /* @__PURE__ */ jsx("div", {
|
|
234
236
|
className: t13,
|
|
235
237
|
onClick: t14,
|
|
@@ -238,15 +240,15 @@ var TextInputBase = (props) => {
|
|
|
238
240
|
"data-is-disabled": dataIsDisabled,
|
|
239
241
|
children: t25
|
|
240
242
|
});
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
244
|
-
$[
|
|
245
|
-
$[
|
|
246
|
-
$[
|
|
247
|
-
} else t26 = $[
|
|
243
|
+
$[63] = dataIsDisabled;
|
|
244
|
+
$[64] = t13;
|
|
245
|
+
$[65] = t15;
|
|
246
|
+
$[66] = t16;
|
|
247
|
+
$[67] = t25;
|
|
248
|
+
$[68] = t26;
|
|
249
|
+
} else t26 = $[68];
|
|
248
250
|
let t27;
|
|
249
|
-
if ($[
|
|
251
|
+
if ($[69] !== T1 || $[70] !== as || $[71] !== formFieldProps || $[72] !== labelProps || $[73] !== t10 || $[74] !== t11 || $[75] !== t12 || $[76] !== t26 || $[77] !== t9) {
|
|
250
252
|
t27 = /* @__PURE__ */ jsx(T1, {
|
|
251
253
|
...formFieldProps,
|
|
252
254
|
as,
|
|
@@ -257,32 +259,32 @@ var TextInputBase = (props) => {
|
|
|
257
259
|
"data-is-required": t12,
|
|
258
260
|
children: t26
|
|
259
261
|
});
|
|
260
|
-
$[
|
|
261
|
-
$[
|
|
262
|
-
$[
|
|
263
|
-
$[
|
|
264
|
-
$[
|
|
265
|
-
$[
|
|
266
|
-
$[
|
|
267
|
-
$[
|
|
268
|
-
$[
|
|
269
|
-
$[
|
|
270
|
-
} else t27 = $[
|
|
262
|
+
$[69] = T1;
|
|
263
|
+
$[70] = as;
|
|
264
|
+
$[71] = formFieldProps;
|
|
265
|
+
$[72] = labelProps;
|
|
266
|
+
$[73] = t10;
|
|
267
|
+
$[74] = t11;
|
|
268
|
+
$[75] = t12;
|
|
269
|
+
$[76] = t26;
|
|
270
|
+
$[77] = t9;
|
|
271
|
+
$[78] = t27;
|
|
272
|
+
} else t27 = $[78];
|
|
271
273
|
let t28;
|
|
272
|
-
if ($[
|
|
274
|
+
if ($[79] !== T0 || $[80] !== as || $[81] !== error || $[82] !== t27 || $[83] !== t7) {
|
|
273
275
|
t28 = /* @__PURE__ */ jsx(T0, {
|
|
274
276
|
as,
|
|
275
277
|
error,
|
|
276
278
|
triggerTabIndex: t7,
|
|
277
279
|
children: t27
|
|
278
280
|
});
|
|
279
|
-
$[
|
|
280
|
-
$[
|
|
281
|
-
$[
|
|
282
|
-
$[
|
|
283
|
-
$[
|
|
284
|
-
$[
|
|
285
|
-
} else t28 = $[
|
|
281
|
+
$[79] = T0;
|
|
282
|
+
$[80] = as;
|
|
283
|
+
$[81] = error;
|
|
284
|
+
$[82] = t27;
|
|
285
|
+
$[83] = t7;
|
|
286
|
+
$[84] = t28;
|
|
287
|
+
} else t28 = $[84];
|
|
286
288
|
return t28;
|
|
287
289
|
};
|
|
288
290
|
var TextInputInner = (t0) => {
|
|
@@ -16,6 +16,7 @@ export interface InputContentProps {
|
|
|
16
16
|
leadingIcon?: FC<SVGProps<SVGSVGElement>> | ReactElement;
|
|
17
17
|
trailingIcon?: FC<SVGProps<SVGSVGElement>> | ReactElement;
|
|
18
18
|
isClearable?: boolean;
|
|
19
|
+
isClearableIfDisabled?: boolean;
|
|
19
20
|
value?: string | number | null;
|
|
20
21
|
onChange?: (value: string) => void;
|
|
21
22
|
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
@@ -24,5 +25,5 @@ export interface InputContentProps {
|
|
|
24
25
|
interface InputContentComponentProps extends InputContentProps, InputVariantProps {
|
|
25
26
|
children: ReactNode;
|
|
26
27
|
}
|
|
27
|
-
export declare const InputContent: ({ leadingIcon: LeadingIcon, trailingIcon: TrailingIcon, unit, isLoading, isDisabled, action, isClearable, value, onChange, onBlur, children, headerProps, as, size, }: InputContentComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare const InputContent: ({ leadingIcon: LeadingIcon, trailingIcon: TrailingIcon, unit, isLoading, isDisabled, action, isClearable, isClearableIfDisabled, value, onChange, onBlur, children, headerProps, as, size, }: InputContentComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
29
|
export {};
|
|
@@ -5,14 +5,14 @@ import { InlineIconButton } from "../../../buttons/InlineIconButton/InlineIconBu
|
|
|
5
5
|
import { FormFieldLabel } from "../../FormField/FormFieldLabel.js";
|
|
6
6
|
import { inputContentWrapperDefinition, inputSizeDefinition } from "../../shared/input.cva.js";
|
|
7
7
|
import { InputClear } from "../../shared/InputClear.js";
|
|
8
|
-
import { c } from "react/compiler-runtime";
|
|
9
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
9
|
import { clsx } from "clsx";
|
|
11
10
|
import { isValidElement } from "react";
|
|
11
|
+
import { c } from "react/compiler-runtime";
|
|
12
12
|
//#region src/components/inputs/Input/shared/InputContent.tsx
|
|
13
13
|
var InputContent = (t0) => {
|
|
14
|
-
const $ = c(
|
|
15
|
-
const { leadingIcon: LeadingIcon, trailingIcon: TrailingIcon, unit, isLoading, isDisabled, action, isClearable, value, onChange, onBlur, children, headerProps, as, size } = t0;
|
|
14
|
+
const $ = c(66);
|
|
15
|
+
const { leadingIcon: LeadingIcon, trailingIcon: TrailingIcon, unit, isLoading, isDisabled, action, isClearable, isClearableIfDisabled, value, onChange, onBlur, children, headerProps, as, size } = t0;
|
|
16
16
|
const typographyCva = UIOverrides.useCva("typography.cva", typographyDefinition);
|
|
17
17
|
const inputSizeCva = UIOverrides.useCva("input.sizeCva", inputSizeDefinition);
|
|
18
18
|
const inputContentWrapperCva = UIOverrides.useCva("input.contentWrapperCva", inputContentWrapperDefinition);
|
|
@@ -30,7 +30,7 @@ var InputContent = (t0) => {
|
|
|
30
30
|
$[3] = t2;
|
|
31
31
|
} else t2 = $[3];
|
|
32
32
|
const isTrailingIconElement = t2;
|
|
33
|
-
const showClear = value != null && value !== "" && !isDisabled;
|
|
33
|
+
const showClear = value != null && value !== "" && (!isDisabled || isClearableIfDisabled === true);
|
|
34
34
|
const t3 = as === "inline" && "h-full";
|
|
35
35
|
let t4;
|
|
36
36
|
if ($[4] !== as || $[5] !== inputSizeCva || $[6] !== size || $[7] !== t3) {
|
|
@@ -111,8 +111,8 @@ var InputContent = (t0) => {
|
|
|
111
111
|
$[34] = t10;
|
|
112
112
|
} else t10 = $[34];
|
|
113
113
|
let t11;
|
|
114
|
-
if ($[35] !== isClearable || $[36] !==
|
|
115
|
-
t11 = isClearable && /* @__PURE__ */ jsx(InputClear, {
|
|
114
|
+
if ($[35] !== isClearable || $[36] !== isClearableIfDisabled || $[37] !== isDisabled || $[38] !== onBlur || $[39] !== onChange || $[40] !== showClear) {
|
|
115
|
+
t11 = isClearable && (!isDisabled || isClearableIfDisabled === true) && /* @__PURE__ */ jsx(InputClear, {
|
|
116
116
|
onClear: () => {
|
|
117
117
|
onChange?.("");
|
|
118
118
|
onBlur?.({ target: { value: "" } });
|
|
@@ -120,13 +120,15 @@ var InputContent = (t0) => {
|
|
|
120
120
|
show: showClear
|
|
121
121
|
});
|
|
122
122
|
$[35] = isClearable;
|
|
123
|
-
$[36] =
|
|
124
|
-
$[37] =
|
|
125
|
-
$[38] =
|
|
126
|
-
$[39] =
|
|
127
|
-
|
|
123
|
+
$[36] = isClearableIfDisabled;
|
|
124
|
+
$[37] = isDisabled;
|
|
125
|
+
$[38] = onBlur;
|
|
126
|
+
$[39] = onChange;
|
|
127
|
+
$[40] = showClear;
|
|
128
|
+
$[41] = t11;
|
|
129
|
+
} else t11 = $[41];
|
|
128
130
|
let t12;
|
|
129
|
-
if ($[
|
|
131
|
+
if ($[42] !== typographyCva || $[43] !== unit) {
|
|
130
132
|
t12 = unit && /* @__PURE__ */ jsx("span", {
|
|
131
133
|
className: typographyCva({
|
|
132
134
|
size: "label-2",
|
|
@@ -136,21 +138,21 @@ var InputContent = (t0) => {
|
|
|
136
138
|
}),
|
|
137
139
|
children: unit
|
|
138
140
|
});
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
142
|
-
} else t12 = $[
|
|
141
|
+
$[42] = typographyCva;
|
|
142
|
+
$[43] = unit;
|
|
143
|
+
$[44] = t12;
|
|
144
|
+
} else t12 = $[44];
|
|
143
145
|
let t13;
|
|
144
|
-
if ($[
|
|
146
|
+
if ($[45] !== isLoading) {
|
|
145
147
|
t13 = isLoading && /* @__PURE__ */ jsx("div", {
|
|
146
148
|
className: "inline-flex",
|
|
147
149
|
children: /* @__PURE__ */ jsx(Loader, {})
|
|
148
150
|
});
|
|
149
|
-
$[
|
|
150
|
-
$[
|
|
151
|
-
} else t13 = $[
|
|
151
|
+
$[45] = isLoading;
|
|
152
|
+
$[46] = t13;
|
|
153
|
+
} else t13 = $[46];
|
|
152
154
|
let t14;
|
|
153
|
-
if ($[
|
|
155
|
+
if ($[47] !== action || $[48] !== isDisabled || $[49] !== isLoading) {
|
|
154
156
|
t14 = !isLoading && action && /* @__PURE__ */ jsx(InlineIconButton, {
|
|
155
157
|
color: "secondary",
|
|
156
158
|
icon: action.icon,
|
|
@@ -161,22 +163,22 @@ var InputContent = (t0) => {
|
|
|
161
163
|
className: clsx("border-0!", action.className),
|
|
162
164
|
"data-static-press-action": ""
|
|
163
165
|
});
|
|
164
|
-
$[
|
|
165
|
-
$[
|
|
166
|
-
$[
|
|
167
|
-
$[
|
|
168
|
-
} else t14 = $[
|
|
166
|
+
$[47] = action;
|
|
167
|
+
$[48] = isDisabled;
|
|
168
|
+
$[49] = isLoading;
|
|
169
|
+
$[50] = t14;
|
|
170
|
+
} else t14 = $[50];
|
|
169
171
|
let t15;
|
|
170
|
-
if ($[
|
|
172
|
+
if ($[51] !== TrailingIcon || $[52] !== action || $[53] !== isLoading || $[54] !== isTrailingIconElement) {
|
|
171
173
|
t15 = !isLoading && !action && TrailingIcon && (isTrailingIconElement ? TrailingIcon : /* @__PURE__ */ jsx(TrailingIcon, { className: "size-6 text-interactive-text-secondary-idle" }));
|
|
172
|
-
$[
|
|
173
|
-
$[
|
|
174
|
-
$[
|
|
175
|
-
$[
|
|
176
|
-
$[
|
|
177
|
-
} else t15 = $[
|
|
174
|
+
$[51] = TrailingIcon;
|
|
175
|
+
$[52] = action;
|
|
176
|
+
$[53] = isLoading;
|
|
177
|
+
$[54] = isTrailingIconElement;
|
|
178
|
+
$[55] = t15;
|
|
179
|
+
} else t15 = $[55];
|
|
178
180
|
let t16;
|
|
179
|
-
if ($[
|
|
181
|
+
if ($[56] !== t10 || $[57] !== t11 || $[58] !== t12 || $[59] !== t13 || $[60] !== t14 || $[61] !== t15) {
|
|
180
182
|
t16 = /* @__PURE__ */ jsxs("div", {
|
|
181
183
|
className: t10,
|
|
182
184
|
children: [
|
|
@@ -187,24 +189,24 @@ var InputContent = (t0) => {
|
|
|
187
189
|
t15
|
|
188
190
|
]
|
|
189
191
|
});
|
|
190
|
-
$[
|
|
191
|
-
$[
|
|
192
|
-
$[
|
|
193
|
-
$[
|
|
194
|
-
$[
|
|
195
|
-
$[
|
|
196
|
-
$[
|
|
197
|
-
} else t16 = $[
|
|
192
|
+
$[56] = t10;
|
|
193
|
+
$[57] = t11;
|
|
194
|
+
$[58] = t12;
|
|
195
|
+
$[59] = t13;
|
|
196
|
+
$[60] = t14;
|
|
197
|
+
$[61] = t15;
|
|
198
|
+
$[62] = t16;
|
|
199
|
+
} else t16 = $[62];
|
|
198
200
|
let t17;
|
|
199
|
-
if ($[
|
|
201
|
+
if ($[63] !== t16 || $[64] !== t9) {
|
|
200
202
|
t17 = /* @__PURE__ */ jsxs("div", {
|
|
201
203
|
className: "flex w-full items-center gap-input-gap-input-text-to-elements",
|
|
202
204
|
children: [t9, t16]
|
|
203
205
|
});
|
|
204
|
-
$[
|
|
205
|
-
$[
|
|
206
|
-
$[
|
|
207
|
-
} else t17 = $[
|
|
206
|
+
$[63] = t16;
|
|
207
|
+
$[64] = t9;
|
|
208
|
+
$[65] = t17;
|
|
209
|
+
} else t17 = $[65];
|
|
208
210
|
return t17;
|
|
209
211
|
};
|
|
210
212
|
//#endregion
|
|
@@ -2,8 +2,8 @@ import { StringUtils } from "../../../utils/string.utils.js";
|
|
|
2
2
|
import { ZodUtils } from "../../../utils/zod.utils.js";
|
|
3
3
|
import { getDefaultInputComponentType } from "../../../helpers/dynamicInputs.js";
|
|
4
4
|
import { InputItem } from "./InputItem.js";
|
|
5
|
-
import { c } from "react/compiler-runtime";
|
|
6
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
//#region src/components/inputs/Inputs/Form.tsx
|
|
9
9
|
var createFieldComponent = (field, schemaKeyType, form) => {
|
|
@@ -16,8 +16,8 @@ import { QuerySelect } from "../Selection/Select/QuerySelect.js";
|
|
|
16
16
|
import { Slider } from "../Slider/Slider.js";
|
|
17
17
|
import { Toggle } from "../Toggle/Toggle.js";
|
|
18
18
|
import { Segment } from "../../segment/Segment.js";
|
|
19
|
-
import { c } from "react/compiler-runtime";
|
|
20
19
|
import { jsx } from "react/jsx-runtime";
|
|
20
|
+
import { c } from "react/compiler-runtime";
|
|
21
21
|
//#region src/components/inputs/Inputs/InputItem.tsx
|
|
22
22
|
var componentRegistry = {
|
|
23
23
|
toggle: Toggle,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputItem } from "./InputItem.js";
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
4
|
//#region src/components/inputs/Inputs/Inputs.tsx
|
|
5
5
|
function Inputs(t0) {
|
|
6
6
|
const $ = c(9);
|
|
@@ -6,10 +6,10 @@ import { FormFieldLabel } from "../FormField/FormFieldLabel.js";
|
|
|
6
6
|
import { FormField } from "../FormField/FormField.js";
|
|
7
7
|
import { inputBaseDefinition, inputSizeDefinition } from "../shared/input.cva.js";
|
|
8
8
|
import { radioContentClassName, radioContentRowDefinition, radioContentWrapperDefinition, radioDefinition, radioIndicatorClass, radioTypography } from "./radio.cva.js";
|
|
9
|
-
import { c } from "react/compiler-runtime";
|
|
10
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
10
|
import { clsx } from "clsx";
|
|
12
11
|
import { Radio, RadioGroup } from "react-aria-components";
|
|
12
|
+
import { c } from "react/compiler-runtime";
|
|
13
13
|
import { useLabel } from "react-aria";
|
|
14
14
|
import { mergeRefs } from "@react-aria/utils";
|
|
15
15
|
//#region src/components/inputs/RadioGroup/RadioGroup.tsx
|
|
@@ -7,10 +7,10 @@ import { selectInputTagsContentWrapperDefinition } from "../shared/selectInput.c
|
|
|
7
7
|
import { SelectBase } from "../shared/SelectBase.js";
|
|
8
8
|
import { StaticSelectTrailingContent } from "../shared/StaticSelectTrailingContent.js";
|
|
9
9
|
import { getStaticSelectValue } from "../shared/staticSelect.utils.js";
|
|
10
|
-
import { c } from "react/compiler-runtime";
|
|
11
10
|
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
14
|
import { mergeRefs } from "@react-aria/utils";
|
|
15
15
|
//#region src/components/inputs/Selection/Autocomplete/Autocomplete.tsx
|
|
16
16
|
function AutocompleteInner(t0) {
|
|
@@ -3,9 +3,9 @@ import { FieldController } from "../../shared/form.binding.js";
|
|
|
3
3
|
import { Autocomplete } from "./Autocomplete.js";
|
|
4
4
|
import { getQueryItems, getSelectionIdsToResolve } from "../shared/querySelect.utils.js";
|
|
5
5
|
import { useQueryAutocomplete } from "../../../../hooks/useQueryAutocomplete.js";
|
|
6
|
-
import { c } from "react/compiler-runtime";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
8
7
|
import { useState } from "react";
|
|
8
|
+
import { c } from "react/compiler-runtime";
|
|
9
9
|
import { mergeRefs } from "@react-aria/utils";
|
|
10
10
|
//#region src/components/inputs/Selection/Autocomplete/QueryAutocomplete.tsx
|
|
11
11
|
var LoadedQueryAutocompleteContent = ({ query, queryParams, queryOptions, queryMap, resolveSelectedItemsWithIds, isQueryEnabledInitially = false, leadingContent, ...props }) => {
|
|
@@ -3,9 +3,9 @@ import { FieldController } from "../../shared/form.binding.js";
|
|
|
3
3
|
import { Select } from "./Select.js";
|
|
4
4
|
import { getQueryItems, getSelectionIdsToResolve } from "../shared/querySelect.utils.js";
|
|
5
5
|
import { useQueryAutocomplete } from "../../../../hooks/useQueryAutocomplete.js";
|
|
6
|
-
import { c } from "react/compiler-runtime";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
8
7
|
import { useState } from "react";
|
|
8
|
+
import { c } from "react/compiler-runtime";
|
|
9
9
|
import { mergeRefs } from "@react-aria/utils";
|
|
10
10
|
//#region src/components/inputs/Selection/Select/QuerySelect.tsx
|
|
11
11
|
var LoadedQuerySelectContent = ({ query, queryParams, queryOptions, queryMap, resolveSelectedItemsWithIds, isQueryEnabledInitially = false, ...props }) => {
|
|
@@ -8,10 +8,10 @@ import { selectInputTagsContentWrapperDefinition } from "../shared/selectInput.c
|
|
|
8
8
|
import { SelectBase } from "../shared/SelectBase.js";
|
|
9
9
|
import { StaticSelectTrailingContent } from "../shared/StaticSelectTrailingContent.js";
|
|
10
10
|
import { getStaticSelectValue } from "../shared/staticSelect.utils.js";
|
|
11
|
-
import { c } from "react/compiler-runtime";
|
|
12
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
12
|
import { clsx } from "clsx";
|
|
14
13
|
import { useRef, useState } from "react";
|
|
14
|
+
import { c } from "react/compiler-runtime";
|
|
15
15
|
import { mergeRefs } from "@react-aria/utils";
|
|
16
16
|
//#region src/components/inputs/Selection/Select/Select.tsx
|
|
17
17
|
function SelectInner(t0) {
|
|
@@ -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;
|
|
@@ -3,8 +3,8 @@ import { useBreakpoint } from "../../../../hooks/useBreakpoint.js";
|
|
|
3
3
|
import { SelectContext } from "./select.context.js";
|
|
4
4
|
import { SelectDesktop } from "./SelectDesktop.js";
|
|
5
5
|
import { SelectMobile } from "./SelectMobile.js";
|
|
6
|
-
import { c } from "react/compiler-runtime";
|
|
7
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
import { c } from "react/compiler-runtime";
|
|
8
8
|
//#region src/components/inputs/Selection/shared/SelectBase.tsx
|
|
9
9
|
var SelectBase = (dProps) => {
|
|
10
10
|
const $ = c(21);
|