@povio/ui 2.3.0-rc.6 → 2.3.0-rc.7
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/AlignCenter.js +26 -11
- package/dist/assets/icons/AlignLeft.js +26 -11
- package/dist/assets/icons/AlignLeftRight.js +26 -11
- package/dist/assets/icons/AlignRight.js +26 -11
- package/dist/assets/icons/ArrowDropDown.js +26 -11
- package/dist/assets/icons/ArrowDropUp.js +26 -11
- package/dist/assets/icons/ArrowLeft.js +26 -11
- package/dist/assets/icons/ArrowRight.js +26 -11
- package/dist/assets/icons/Bold.js +26 -11
- package/dist/assets/icons/BulletedList.js +26 -11
- package/dist/assets/icons/Calendar.js +28 -13
- package/dist/assets/icons/Check.js +28 -13
- package/dist/assets/icons/CheckCircle.js +26 -11
- package/dist/assets/icons/CheckboxCheckmark.js +29 -14
- package/dist/assets/icons/CheckboxIndeterminate.js +29 -14
- package/dist/assets/icons/ChevronDown.js +28 -13
- package/dist/assets/icons/ChevronLeft.js +28 -13
- package/dist/assets/icons/ChevronRight.js +28 -13
- package/dist/assets/icons/ChevronUp.js +28 -13
- package/dist/assets/icons/ChevronsLeft.js +28 -13
- package/dist/assets/icons/ChevronsRight.js +28 -13
- package/dist/assets/icons/Clock.js +26 -11
- package/dist/assets/icons/Close.js +26 -11
- package/dist/assets/icons/DateTime.js +35 -14
- package/dist/assets/icons/DragIndicator.js +26 -11
- package/dist/assets/icons/File.js +28 -13
- package/dist/assets/icons/Highlight.js +26 -11
- package/dist/assets/icons/HighlightOn.js +49 -15
- package/dist/assets/icons/Home.js +26 -11
- package/dist/assets/icons/Info.js +37 -16
- package/dist/assets/icons/Italic.js +26 -11
- package/dist/assets/icons/Link.js +26 -11
- package/dist/assets/icons/Menu.js +26 -11
- package/dist/assets/icons/NumberedList.js +26 -11
- package/dist/assets/icons/PointerHorizontal.js +26 -11
- package/dist/assets/icons/PointerVertical.js +26 -11
- package/dist/assets/icons/Search.js +26 -11
- package/dist/assets/icons/Send.js +28 -13
- package/dist/assets/icons/Strikethrough.js +26 -11
- package/dist/assets/icons/TextColor.js +48 -14
- package/dist/assets/icons/Today.js +26 -11
- package/dist/assets/icons/Underlined.js +28 -13
- package/dist/assets/icons/Upload.js +35 -14
- package/dist/assets/icons/Visibility.js +26 -11
- package/dist/assets/icons/VisibilityOff.js +26 -11
- package/dist/assets/icons/WarningFilled.js +28 -13
- package/dist/components/Breadcrumbs/Breadcrumbs.js +207 -56
- package/dist/components/Menu/Menu.js +18 -2
- package/dist/components/Menu/MenuDesktop.js +41 -7
- package/dist/components/Menu/MenuItem.js +32 -9
- package/dist/components/Menu/MenuMobile.js +97 -38
- package/dist/components/Menu/MenuPopover.js +105 -29
- package/dist/components/buttons/IconButton/IconButton.js +40 -8
- package/dist/components/buttons/InlineIconButton/InlineIconButton.js +34 -9
- package/dist/components/buttons/PillButton/PillButton.js +55 -17
- package/dist/components/buttons/SplitButton/SplitButton.js +103 -18
- package/dist/components/buttons/TextButton/TextButton.js +30 -8
- package/dist/components/buttons/ToggleButton/ToggleButton.js +28 -8
- package/dist/components/buttons/shared/ButtonContent.js +80 -22
- package/dist/components/inputs/Checkbox/Checkbox.js +164 -34
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +24 -10
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +8 -8
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +103 -103
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +9 -9
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +384 -116
- package/dist/components/inputs/DateTime/shared/Calendar.js +331 -137
- package/dist/components/inputs/DateTime/shared/CalendarCell.js +283 -102
- package/dist/components/inputs/DateTime/shared/CalendarGrid.js +142 -33
- package/dist/components/inputs/DateTime/shared/CalendarHeader.js +245 -90
- package/dist/components/inputs/DateTime/shared/CalendarSelectHeader.js +318 -137
- package/dist/components/inputs/DateTime/shared/DateField.js +296 -112
- package/dist/components/inputs/DateTime/shared/DatePickerInput.js +345 -142
- package/dist/components/inputs/DateTime/shared/DateSegmentItem.js +94 -21
- package/dist/components/inputs/DateTime/shared/DateTimeDialog.js +81 -27
- package/dist/components/inputs/DateTime/shared/DateTimeDialogFooter.js +59 -10
- package/dist/components/inputs/DateTime/shared/MonthPicker.js +103 -58
- package/dist/components/inputs/DateTime/shared/RangeCalendar.js +193 -82
- package/dist/components/inputs/DateTime/shared/TimeField.js +27 -8
- package/dist/components/inputs/DateTime/shared/TimePickerForm.js +279 -110
- package/dist/components/inputs/DateTime/shared/TimePickerInput.js +205 -70
- package/dist/components/inputs/DateTime/shared/YearPicker.js +119 -68
- package/dist/components/inputs/File/FileUpload.js +86 -44
- package/dist/components/inputs/File/FileUploadContainer.js +15 -7
- package/dist/components/inputs/File/InputUpload.js +317 -79
- package/dist/components/inputs/File/shared/FileCard.js +104 -41
- package/dist/components/inputs/File/shared/FileCardList.js +47 -12
- package/dist/components/inputs/File/shared/FileUploadContent.js +175 -44
- package/dist/components/inputs/File/shared/FileUploadContentEmpty.js +149 -46
- package/dist/components/inputs/File/shared/FileUploadContentError.js +234 -93
- package/dist/components/inputs/File/shared/FileUploadContentFilled.js +230 -97
- package/dist/components/inputs/File/shared/FileUploadContentLoading.js +199 -55
- package/dist/components/inputs/File/shared/InputUploadContent.js +148 -35
- package/dist/components/inputs/File/shared/InputUploadFilled.js +49 -8
- package/dist/components/inputs/File/shared/ProgressBar.js +48 -9
- package/dist/components/inputs/FormField/FormField.js +119 -37
- package/dist/components/inputs/FormField/FormFieldError.js +25 -5
- package/dist/components/inputs/FormField/FormFieldHeader.js +79 -22
- package/dist/components/inputs/FormField/FormFieldHeaderClose.js +31 -7
- package/dist/components/inputs/FormField/FormFieldHelper.js +26 -6
- package/dist/components/inputs/FormField/FormFieldLabel.js +40 -9
- package/dist/components/inputs/Input/NumberInput/NumberInput.js +253 -82
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +541 -116
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +314 -75
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +48 -9
- package/dist/components/inputs/Input/TextArea/TextArea.js +298 -89
- package/dist/components/inputs/Input/TextInput/TextInput.js +241 -81
- package/dist/components/inputs/Input/shared/InputContent.js +190 -58
- package/dist/components/inputs/Inputs/Form.js +40 -11
- package/dist/components/inputs/Inputs/InputItem.js +65 -14
- package/dist/components/inputs/Inputs/Inputs.js +37 -11
- package/dist/components/inputs/RadioGroup/RadioGroup.js +317 -106
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +2 -2
- package/dist/components/inputs/Selection/Select/QuerySelect.js +107 -27
- package/dist/components/inputs/Selection/shared/SelectBase.js +69 -20
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +390 -143
- package/dist/components/inputs/Selection/shared/SelectInput.js +334 -136
- package/dist/components/inputs/Selection/shared/SelectInputTags.js +99 -25
- package/dist/components/inputs/Selection/shared/SelectListBox.js +163 -51
- package/dist/components/inputs/Selection/shared/SelectListBoxItem.js +85 -35
- package/dist/components/inputs/Selection/shared/SelectListBoxItemSelectAll.js +69 -16
- package/dist/components/inputs/Selection/shared/SelectListBoxLoadingItem.js +70 -21
- package/dist/components/inputs/Selection/shared/SelectListBoxSelectionBar.js +58 -9
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +36 -11
- package/dist/components/inputs/Selection/shared/select.context.js +34 -34
- package/dist/components/inputs/Selection/shared/useSelectItems.js +109 -49
- package/dist/components/inputs/Skeleton/InputFrame.js +472 -145
- package/dist/components/inputs/Slider/Slider.js +247 -74
- package/dist/components/inputs/TextEditor/TextEditor.js +447 -103
- package/dist/components/inputs/TextEditor/Toolbar/ColorPicker.js +37 -11
- package/dist/components/inputs/TextEditor/Toolbar/ColorPickerDropdown.js +102 -30
- package/dist/components/inputs/TextEditor/Toolbar/HyperlinkAction.js +194 -45
- package/dist/components/inputs/TextEditor/Toolbar/TextAlignSelect.js +88 -28
- package/dist/components/inputs/TextEditor/Toolbar/TextColorSelect.js +48 -14
- package/dist/components/inputs/TextEditor/Toolbar/TextEditorToolbar.js +66 -19
- package/dist/components/inputs/TextEditor/Toolbar/TextHighlightSelect.js +49 -15
- package/dist/components/inputs/TextEditor/Toolbar/TextListActions.js +92 -32
- package/dist/components/inputs/TextEditor/Toolbar/TextMarksActions.js +126 -54
- package/dist/components/inputs/TextEditor/Toolbar/TextStyleSelect.js +141 -38
- package/dist/components/inputs/Toggle/Toggle.js +187 -41
- package/dist/components/inputs/shared/CheckContent.js +21 -10
- package/dist/components/inputs/shared/InputClear.js +78 -21
- package/dist/components/inputs/shared/TooltipWrapper.js +47 -12
- package/dist/components/inputs/shared/input.cva.js +13 -3
- package/dist/components/inputs/shared/useStaticInputHandoff.js +93 -50
- package/dist/components/navigation/Accordion/Accordion.js +69 -22
- package/dist/components/navigation/Accordion/AccordionItem.js +86 -41
- package/dist/components/navigation/Stepper/Stepper.js +67 -22
- package/dist/components/navigation/Stepper/StepperItem.js +104 -31
- package/dist/components/navigation/Stepper/StepperSeparator.js +23 -5
- package/dist/components/overlays/ActionModal/ActionModal.js +169 -35
- package/dist/components/overlays/BottomSheet/BottomSheet.js +96 -23
- package/dist/components/overlays/BottomSheet/BottomSheetHeader.js +48 -8
- package/dist/components/overlays/Drawer/Drawer.js +62 -20
- package/dist/components/overlays/ResponsivePopover/ResponsivePopover.js +83 -27
- package/dist/components/overlays/Tooltip/Tooltip.js +137 -28
- package/dist/components/overlays/Tooltip/TooltipEllipsis.js +37 -12
- package/dist/components/segment/Segment.js +218 -57
- package/dist/components/segment/SegmentItem.js +67 -10
- package/dist/components/shared/pagination/Pagination.js +108 -22
- package/dist/components/shared/pagination/PaginationList.js +167 -64
- package/dist/components/status/Alert/Alert.js +97 -30
- package/dist/components/status/Loader/Loader.js +77 -22
- package/dist/components/status/Toast/Toast.js +21 -13
- package/dist/components/status/Toast/useToast.js +62 -57
- package/dist/components/table/ColumnConfig.js +158 -54
- package/dist/components/table/InfiniteTable.js +67 -16
- package/dist/components/table/PaginatedTable.js +84 -18
- package/dist/components/table/Table.js +23 -23
- package/dist/components/text/Link/Link.js +19 -7
- package/dist/components/text/Typography/Typography.js +23 -8
- package/dist/config/confirmation.context.js +1 -1
- package/dist/config/link.context.js +23 -9
- package/dist/config/router.context.js +42 -16
- package/dist/config/theme.context.js +98 -45
- package/dist/config/uiConfig.context.js +39 -8
- package/dist/config/uiStyle.context.js +15 -5
- package/dist/hooks/useBreakpoint.js +16 -3
- package/dist/hooks/useDebounceCallback.js +51 -17
- package/dist/hooks/useFilters.js +125 -64
- package/dist/hooks/useForm.js +42 -8
- package/dist/hooks/useFormAutosave.js +101 -30
- package/dist/hooks/useIntersectionObserver.js +86 -32
- package/dist/hooks/useLocalStorage.js +43 -10
- package/dist/hooks/useLongPressRepeat.js +55 -20
- package/dist/hooks/usePagination.js +49 -19
- package/dist/hooks/useScrollableListBox.js +37 -16
- package/dist/hooks/useSorting.js +69 -28
- package/dist/hooks/useStateAndRef.js +21 -7
- package/dist/hooks/useTableColumnConfig.js +124 -31
- package/dist/hooks/useTranslationMemo.js +25 -5
- package/package.json +1 -1
|
@@ -16,6 +16,7 @@ import { Toggle } from "../Toggle/Toggle.js";
|
|
|
16
16
|
import { Segment } from "../../segment/Segment.js";
|
|
17
17
|
import { QuerySelect } from "../Selection/Select/QuerySelect.js";
|
|
18
18
|
import { TextEditor } from "../TextEditor/TextEditor.js";
|
|
19
|
+
import { c } from "react/compiler-runtime";
|
|
19
20
|
import { jsx } from "react/jsx-runtime";
|
|
20
21
|
//#region src/components/inputs/Inputs/InputItem.tsx
|
|
21
22
|
var componentRegistry = {
|
|
@@ -39,24 +40,74 @@ var componentRegistry = {
|
|
|
39
40
|
textEditor: TextEditor,
|
|
40
41
|
unknown: null
|
|
41
42
|
};
|
|
42
|
-
function InputItem(
|
|
43
|
+
function InputItem(t0) {
|
|
44
|
+
const $ = c(18);
|
|
45
|
+
const { form, inputDef } = t0;
|
|
43
46
|
const { name, label, placeholder, props, inputWrapper, render, type } = inputDef;
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
const t1 = form.control;
|
|
48
|
+
let formControl;
|
|
49
|
+
let t2;
|
|
50
|
+
if ($[0] !== form || $[1] !== name || $[2] !== render) {
|
|
51
|
+
t2 = Symbol.for("react.early_return_sentinel");
|
|
52
|
+
bb0: {
|
|
53
|
+
formControl = {
|
|
54
|
+
control: t1,
|
|
55
|
+
name
|
|
56
|
+
};
|
|
57
|
+
if (render) {
|
|
58
|
+
t2 = render(formControl, form);
|
|
59
|
+
break bb0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
$[0] = form;
|
|
63
|
+
$[1] = name;
|
|
64
|
+
$[2] = render;
|
|
65
|
+
$[3] = formControl;
|
|
66
|
+
$[4] = t2;
|
|
67
|
+
} else {
|
|
68
|
+
formControl = $[3];
|
|
69
|
+
t2 = $[4];
|
|
70
|
+
}
|
|
71
|
+
if (t2 !== Symbol.for("react.early_return_sentinel")) return t2;
|
|
49
72
|
if (!type) return null;
|
|
50
73
|
const Component = componentRegistry[type];
|
|
51
74
|
const usesChildrenAsLabel = ["toggle", "checkbox"].includes(type);
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
75
|
+
let t3;
|
|
76
|
+
if ($[5] !== props) {
|
|
77
|
+
t3 = props ?? {};
|
|
78
|
+
$[5] = props;
|
|
79
|
+
$[6] = t3;
|
|
80
|
+
} else t3 = $[6];
|
|
81
|
+
const inputProps = t3;
|
|
82
|
+
const t4 = usesChildrenAsLabel ? void 0 : label;
|
|
83
|
+
const t5 = usesChildrenAsLabel ? label : void 0;
|
|
84
|
+
let t6;
|
|
85
|
+
if ($[7] !== Component || $[8] !== formControl || $[9] !== inputProps || $[10] !== placeholder || $[11] !== t4 || $[12] !== t5) {
|
|
86
|
+
t6 = /* @__PURE__ */ jsx(Component, {
|
|
87
|
+
...inputProps,
|
|
88
|
+
label: t4,
|
|
89
|
+
placeholder,
|
|
90
|
+
formControl,
|
|
91
|
+
children: t5
|
|
92
|
+
});
|
|
93
|
+
$[7] = Component;
|
|
94
|
+
$[8] = formControl;
|
|
95
|
+
$[9] = inputProps;
|
|
96
|
+
$[10] = placeholder;
|
|
97
|
+
$[11] = t4;
|
|
98
|
+
$[12] = t5;
|
|
99
|
+
$[13] = t6;
|
|
100
|
+
} else t6 = $[13];
|
|
101
|
+
const inputComponent = t6;
|
|
102
|
+
let t7;
|
|
103
|
+
if ($[14] !== inputComponent || $[15] !== inputWrapper || $[16] !== label) {
|
|
104
|
+
t7 = inputWrapper ? inputWrapper(inputComponent, label) : inputComponent;
|
|
105
|
+
$[14] = inputComponent;
|
|
106
|
+
$[15] = inputWrapper;
|
|
107
|
+
$[16] = label;
|
|
108
|
+
$[17] = t7;
|
|
109
|
+
} else t7 = $[17];
|
|
110
|
+
return t7;
|
|
60
111
|
}
|
|
61
112
|
//#endregion
|
|
62
113
|
export { InputItem };
|
|
@@ -1,17 +1,43 @@
|
|
|
1
1
|
import { InputItem } from "./InputItem.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
//#region src/components/inputs/Inputs/Inputs.tsx
|
|
4
|
-
function Inputs(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
function Inputs(t0) {
|
|
6
|
+
const $ = c(9);
|
|
7
|
+
const { form, inputDefs, children } = t0;
|
|
8
|
+
if (!children) {
|
|
9
|
+
let t1;
|
|
10
|
+
if ($[0] !== form || $[1] !== inputDefs) {
|
|
11
|
+
let t2;
|
|
12
|
+
if ($[3] !== form) {
|
|
13
|
+
t2 = (inputDef) => /* @__PURE__ */ jsx(InputItem, {
|
|
14
|
+
form,
|
|
15
|
+
inputDef
|
|
16
|
+
}, String(inputDef.name));
|
|
17
|
+
$[3] = form;
|
|
18
|
+
$[4] = t2;
|
|
19
|
+
} else t2 = $[4];
|
|
20
|
+
t1 = inputDefs.map(t2);
|
|
21
|
+
$[0] = form;
|
|
22
|
+
$[1] = inputDefs;
|
|
23
|
+
$[2] = t1;
|
|
24
|
+
} else t1 = $[2];
|
|
25
|
+
return t1;
|
|
26
|
+
}
|
|
27
|
+
let t1;
|
|
28
|
+
if ($[5] !== children || $[6] !== form || $[7] !== inputDefs) {
|
|
29
|
+
const childrenParams = {};
|
|
30
|
+
for (const inputDef_0 of inputDefs) childrenParams[inputDef_0.name] = /* @__PURE__ */ jsx(InputItem, {
|
|
31
|
+
form,
|
|
32
|
+
inputDef: inputDef_0
|
|
33
|
+
});
|
|
34
|
+
t1 = children(childrenParams);
|
|
35
|
+
$[5] = children;
|
|
36
|
+
$[6] = form;
|
|
37
|
+
$[7] = inputDefs;
|
|
38
|
+
$[8] = t1;
|
|
39
|
+
} else t1 = $[8];
|
|
40
|
+
return t1;
|
|
15
41
|
}
|
|
16
42
|
//#endregion
|
|
17
43
|
export { Inputs };
|
|
@@ -6,6 +6,7 @@ import { inputBase, inputSize } from "../shared/input.cva.js";
|
|
|
6
6
|
import { FormField } from "../FormField/FormField.js";
|
|
7
7
|
import { TooltipWrapper } from "../shared/TooltipWrapper.js";
|
|
8
8
|
import { radio, radioContentClassName, radioContentRow, radioContentWrapper, radioIndicatorClass, radioTypography } from "./radio.cva.js";
|
|
9
|
+
import { c } from "react/compiler-runtime";
|
|
9
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
11
|
import { clsx } from "clsx";
|
|
11
12
|
import { Radio, RadioGroup } from "react-aria-components";
|
|
@@ -14,6 +15,7 @@ import { mergeRefs } from "@react-aria/utils";
|
|
|
14
15
|
import { Controller } from "react-hook-form";
|
|
15
16
|
//#region src/components/inputs/RadioGroup/RadioGroup.tsx
|
|
16
17
|
var RadioGroupBase = (props) => {
|
|
18
|
+
const $ = c(91);
|
|
17
19
|
const ui = UIConfig.useConfig();
|
|
18
20
|
const radioCva = UIStyle.useCva("radio.cva", radio);
|
|
19
21
|
const radioContentWrapperCva = UIStyle.useCva("radio.contentWrapperCva", radioContentWrapper);
|
|
@@ -39,125 +41,334 @@ var RadioGroupBase = (props) => {
|
|
|
39
41
|
variant,
|
|
40
42
|
...rest
|
|
41
43
|
});
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
44
|
+
const t0 = isHeaderHidden || as === "inline" || as === "filter" || as === "floating";
|
|
45
|
+
let t1;
|
|
46
|
+
if ($[0] !== className || $[1] !== error || $[2] !== errorClassName || $[3] !== headerClassName || $[4] !== helperText || $[5] !== hideLabel || $[6] !== isDisabled || $[7] !== isRequired || $[8] !== label || $[9] !== rightContent || $[10] !== t0 || $[11] !== tooltipText) {
|
|
47
|
+
t1 = {
|
|
48
|
+
className,
|
|
49
|
+
error,
|
|
50
|
+
label,
|
|
51
|
+
tooltipText,
|
|
52
|
+
helperText,
|
|
53
|
+
isRequired,
|
|
54
|
+
rightContent,
|
|
55
|
+
isHeaderHidden: t0,
|
|
56
|
+
hideLabel,
|
|
57
|
+
isDisabled,
|
|
58
|
+
headerClassName,
|
|
59
|
+
errorClassName
|
|
60
|
+
};
|
|
61
|
+
$[0] = className;
|
|
62
|
+
$[1] = error;
|
|
63
|
+
$[2] = errorClassName;
|
|
64
|
+
$[3] = headerClassName;
|
|
65
|
+
$[4] = helperText;
|
|
66
|
+
$[5] = hideLabel;
|
|
67
|
+
$[6] = isDisabled;
|
|
68
|
+
$[7] = isRequired;
|
|
69
|
+
$[8] = label;
|
|
70
|
+
$[9] = rightContent;
|
|
71
|
+
$[10] = t0;
|
|
72
|
+
$[11] = tooltipText;
|
|
73
|
+
$[12] = t1;
|
|
74
|
+
} else t1 = $[12];
|
|
75
|
+
const formFieldProps = t1;
|
|
76
|
+
let t2;
|
|
77
|
+
if ($[13] !== label) {
|
|
78
|
+
t2 = { label };
|
|
79
|
+
$[13] = label;
|
|
80
|
+
$[14] = t2;
|
|
81
|
+
} else t2 = $[14];
|
|
82
|
+
const { labelProps, fieldProps } = useLabel(t2);
|
|
83
|
+
const t3 = hideLabel || isHeaderHidden;
|
|
84
|
+
let t4;
|
|
85
|
+
if ($[15] !== headerClassName || $[16] !== helperText || $[17] !== isDisabled || $[18] !== isRequired || $[19] !== label || $[20] !== labelProps || $[21] !== rightContent || $[22] !== t3 || $[23] !== tooltipText) {
|
|
86
|
+
t4 = {
|
|
87
|
+
label,
|
|
88
|
+
tooltipText,
|
|
89
|
+
helperText,
|
|
90
|
+
isRequired,
|
|
91
|
+
rightContent,
|
|
92
|
+
isHeaderHidden: t3,
|
|
93
|
+
isDisabled,
|
|
94
|
+
className: headerClassName,
|
|
95
|
+
labelProps
|
|
96
|
+
};
|
|
97
|
+
$[15] = headerClassName;
|
|
98
|
+
$[16] = helperText;
|
|
99
|
+
$[17] = isDisabled;
|
|
100
|
+
$[18] = isRequired;
|
|
101
|
+
$[19] = label;
|
|
102
|
+
$[20] = labelProps;
|
|
103
|
+
$[21] = rightContent;
|
|
104
|
+
$[22] = t3;
|
|
105
|
+
$[23] = tooltipText;
|
|
106
|
+
$[24] = t4;
|
|
107
|
+
} else t4 = $[24];
|
|
108
|
+
const headerProps = t4;
|
|
68
109
|
const selectedValue = value ?? defaultValue;
|
|
69
110
|
const shouldRenderInputFrame = as !== "default";
|
|
70
|
-
|
|
111
|
+
const T0 = TooltipWrapper;
|
|
112
|
+
const t5 = as === "inline" ? -1 : void 0;
|
|
113
|
+
const T1 = RadioGroup;
|
|
114
|
+
const t6 = !!error;
|
|
115
|
+
const t7 = isDirty || void 0;
|
|
116
|
+
const t8 = isRequired || void 0;
|
|
117
|
+
const T2 = FormField;
|
|
118
|
+
const t9 = as === "inline" && "h-full";
|
|
119
|
+
let t10;
|
|
120
|
+
if ($[25] !== className || $[26] !== t9) {
|
|
121
|
+
t10 = clsx("w-full", t9, className);
|
|
122
|
+
$[25] = className;
|
|
123
|
+
$[26] = t9;
|
|
124
|
+
$[27] = t10;
|
|
125
|
+
} else t10 = $[27];
|
|
126
|
+
const t11 = as === "inline" ? -1 : void 0;
|
|
127
|
+
let t12;
|
|
128
|
+
if ($[28] !== as || $[29] !== inputBaseCva || $[30] !== inputClassName || $[31] !== shouldRenderInputFrame || $[32] !== ui) {
|
|
129
|
+
t12 = clsx("group/radio-group-content relative", shouldRenderInputFrame && inputBaseCva({
|
|
130
|
+
variant: ui.input.variant,
|
|
131
|
+
as
|
|
132
|
+
}), inputClassName);
|
|
133
|
+
$[28] = as;
|
|
134
|
+
$[29] = inputBaseCva;
|
|
135
|
+
$[30] = inputClassName;
|
|
136
|
+
$[31] = shouldRenderInputFrame;
|
|
137
|
+
$[32] = ui;
|
|
138
|
+
$[33] = t12;
|
|
139
|
+
} else t12 = $[33];
|
|
140
|
+
const t13 = "";
|
|
141
|
+
const t14 = isDisabled || void 0;
|
|
142
|
+
const t15 = isDisabled || void 0;
|
|
143
|
+
const t16 = !!error || void 0;
|
|
144
|
+
const t17 = selectedValue != null && selectedValue !== "" ? true : void 0;
|
|
145
|
+
const t18 = "";
|
|
146
|
+
const t19 = clsx(radioContentWrapperCva({
|
|
147
|
+
variant,
|
|
148
|
+
as,
|
|
149
|
+
hasInputFrame: shouldRenderInputFrame,
|
|
150
|
+
...rest
|
|
151
|
+
}), shouldRenderInputFrame && inputSizeCva({
|
|
71
152
|
as,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
153
|
+
size
|
|
154
|
+
}));
|
|
155
|
+
const t20 = isDirty || void 0;
|
|
156
|
+
const t21 = isRequired || void 0;
|
|
157
|
+
let t22;
|
|
158
|
+
if ($[34] !== as || $[35] !== headerProps || $[36] !== size) {
|
|
159
|
+
t22 = as && ["filter", "floating"].includes(as) && /* @__PURE__ */ jsx(FormFieldLabel, {
|
|
160
|
+
as,
|
|
161
|
+
size,
|
|
162
|
+
...headerProps
|
|
163
|
+
});
|
|
164
|
+
$[34] = as;
|
|
165
|
+
$[35] = headerProps;
|
|
166
|
+
$[36] = size;
|
|
167
|
+
$[37] = t22;
|
|
168
|
+
} else t22 = $[37];
|
|
169
|
+
const t23 = radioContentRowCva({
|
|
170
|
+
variant,
|
|
171
|
+
as,
|
|
172
|
+
hasInputFrame: shouldRenderInputFrame,
|
|
173
|
+
...rest
|
|
174
|
+
});
|
|
175
|
+
let t24;
|
|
176
|
+
if ($[38] !== labelClassName || $[39] !== options || $[40] !== radioClassName || $[41] !== radioContentClassNameValue || $[42] !== radioTypographyProps) {
|
|
177
|
+
let t25;
|
|
178
|
+
if ($[44] !== labelClassName || $[45] !== radioClassName || $[46] !== radioContentClassNameValue || $[47] !== radioTypographyProps) {
|
|
179
|
+
t25 = (option) => /* @__PURE__ */ jsxs(Radio, {
|
|
180
|
+
value: option.value,
|
|
181
|
+
className: clsx("relative", radioIndicatorClass),
|
|
182
|
+
children: [/* @__PURE__ */ jsx("div", { className: radioClassName }), /* @__PURE__ */ jsx(CheckContent, {
|
|
183
|
+
typography: radioTypographyProps,
|
|
184
|
+
contentClassName: radioContentClassNameValue,
|
|
185
|
+
className: labelClassName,
|
|
186
|
+
children: option.label
|
|
187
|
+
})]
|
|
188
|
+
}, option.value);
|
|
189
|
+
$[44] = labelClassName;
|
|
190
|
+
$[45] = radioClassName;
|
|
191
|
+
$[46] = radioContentClassNameValue;
|
|
192
|
+
$[47] = radioTypographyProps;
|
|
193
|
+
$[48] = t25;
|
|
194
|
+
} else t25 = $[48];
|
|
195
|
+
t24 = options.map(t25);
|
|
196
|
+
$[38] = labelClassName;
|
|
197
|
+
$[39] = options;
|
|
198
|
+
$[40] = radioClassName;
|
|
199
|
+
$[41] = radioContentClassNameValue;
|
|
200
|
+
$[42] = radioTypographyProps;
|
|
201
|
+
$[43] = t24;
|
|
202
|
+
} else t24 = $[43];
|
|
203
|
+
let t25;
|
|
204
|
+
if ($[49] !== t23 || $[50] !== t24) {
|
|
205
|
+
t25 = /* @__PURE__ */ jsx("div", {
|
|
206
|
+
className: t23,
|
|
207
|
+
children: t24
|
|
208
|
+
});
|
|
209
|
+
$[49] = t23;
|
|
210
|
+
$[50] = t24;
|
|
211
|
+
$[51] = t25;
|
|
212
|
+
} else t25 = $[51];
|
|
213
|
+
let t26;
|
|
214
|
+
if ($[52] !== t19 || $[53] !== t20 || $[54] !== t21 || $[55] !== t22 || $[56] !== t25) {
|
|
215
|
+
t26 = /* @__PURE__ */ jsxs("div", {
|
|
216
|
+
className: t19,
|
|
217
|
+
"data-is-dirty": t20,
|
|
218
|
+
"data-is-required": t21,
|
|
219
|
+
children: [t22, t25]
|
|
220
|
+
});
|
|
221
|
+
$[52] = t19;
|
|
222
|
+
$[53] = t20;
|
|
223
|
+
$[54] = t21;
|
|
224
|
+
$[55] = t22;
|
|
225
|
+
$[56] = t25;
|
|
226
|
+
$[57] = t26;
|
|
227
|
+
} else t26 = $[57];
|
|
228
|
+
let t27;
|
|
229
|
+
if ($[58] !== t12 || $[59] !== t14 || $[60] !== t15 || $[61] !== t16 || $[62] !== t17 || $[63] !== t26) {
|
|
230
|
+
t27 = /* @__PURE__ */ jsx("div", {
|
|
231
|
+
className: t12,
|
|
232
|
+
"data-rac": t13,
|
|
233
|
+
"data-disabled": t14,
|
|
234
|
+
"data-is-disabled": t15,
|
|
235
|
+
"data-invalid": t16,
|
|
236
|
+
"data-has-selection": t17,
|
|
237
|
+
"data-radio-group-content": t18,
|
|
238
|
+
children: t26
|
|
239
|
+
});
|
|
240
|
+
$[58] = t12;
|
|
241
|
+
$[59] = t14;
|
|
242
|
+
$[60] = t15;
|
|
243
|
+
$[61] = t16;
|
|
244
|
+
$[62] = t17;
|
|
245
|
+
$[63] = t26;
|
|
246
|
+
$[64] = t27;
|
|
247
|
+
} else t27 = $[64];
|
|
248
|
+
let t28;
|
|
249
|
+
if ($[65] !== T2 || $[66] !== as || $[67] !== formFieldProps || $[68] !== labelProps || $[69] !== t10 || $[70] !== t11 || $[71] !== t27) {
|
|
250
|
+
t28 = /* @__PURE__ */ jsx(T2, {
|
|
251
|
+
...formFieldProps,
|
|
252
|
+
as,
|
|
253
|
+
labelProps,
|
|
254
|
+
className: t10,
|
|
255
|
+
tabIndex: t11,
|
|
256
|
+
children: t27
|
|
257
|
+
});
|
|
258
|
+
$[65] = T2;
|
|
259
|
+
$[66] = as;
|
|
260
|
+
$[67] = formFieldProps;
|
|
261
|
+
$[68] = labelProps;
|
|
262
|
+
$[69] = t10;
|
|
263
|
+
$[70] = t11;
|
|
264
|
+
$[71] = t27;
|
|
265
|
+
$[72] = t28;
|
|
266
|
+
} else t28 = $[72];
|
|
267
|
+
let t29;
|
|
268
|
+
if ($[73] !== T1 || $[74] !== defaultValue || $[75] !== fieldProps || $[76] !== isDisabled || $[77] !== ref || $[78] !== rest || $[79] !== t28 || $[80] !== t6 || $[81] !== t7 || $[82] !== t8 || $[83] !== value) {
|
|
269
|
+
t29 = /* @__PURE__ */ jsx(T1, {
|
|
75
270
|
...rest,
|
|
76
271
|
...fieldProps,
|
|
77
272
|
ref,
|
|
78
273
|
value,
|
|
79
274
|
defaultValue,
|
|
80
275
|
isDisabled,
|
|
81
|
-
isInvalid:
|
|
82
|
-
"data-is-dirty":
|
|
83
|
-
"data-is-required":
|
|
84
|
-
children:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
size,
|
|
116
|
-
...headerProps
|
|
117
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
118
|
-
className: radioContentRowCva({
|
|
119
|
-
variant,
|
|
120
|
-
as,
|
|
121
|
-
hasInputFrame: shouldRenderInputFrame,
|
|
122
|
-
...rest
|
|
123
|
-
}),
|
|
124
|
-
children: options.map((option) => /* @__PURE__ */ jsxs(Radio, {
|
|
125
|
-
value: option.value,
|
|
126
|
-
className: clsx("relative", radioIndicatorClass),
|
|
127
|
-
children: [/* @__PURE__ */ jsx("div", { className: radioClassName }), /* @__PURE__ */ jsx(CheckContent, {
|
|
128
|
-
typography: radioTypographyProps,
|
|
129
|
-
contentClassName: radioContentClassNameValue,
|
|
130
|
-
className: labelClassName,
|
|
131
|
-
children: option.label
|
|
132
|
-
})]
|
|
133
|
-
}, option.value))
|
|
134
|
-
})]
|
|
135
|
-
})
|
|
136
|
-
})
|
|
137
|
-
})
|
|
138
|
-
})
|
|
139
|
-
});
|
|
276
|
+
isInvalid: t6,
|
|
277
|
+
"data-is-dirty": t7,
|
|
278
|
+
"data-is-required": t8,
|
|
279
|
+
children: t28
|
|
280
|
+
});
|
|
281
|
+
$[73] = T1;
|
|
282
|
+
$[74] = defaultValue;
|
|
283
|
+
$[75] = fieldProps;
|
|
284
|
+
$[76] = isDisabled;
|
|
285
|
+
$[77] = ref;
|
|
286
|
+
$[78] = rest;
|
|
287
|
+
$[79] = t28;
|
|
288
|
+
$[80] = t6;
|
|
289
|
+
$[81] = t7;
|
|
290
|
+
$[82] = t8;
|
|
291
|
+
$[83] = value;
|
|
292
|
+
$[84] = t29;
|
|
293
|
+
} else t29 = $[84];
|
|
294
|
+
let t30;
|
|
295
|
+
if ($[85] !== T0 || $[86] !== as || $[87] !== error || $[88] !== t29 || $[89] !== t5) {
|
|
296
|
+
t30 = /* @__PURE__ */ jsx(T0, {
|
|
297
|
+
as,
|
|
298
|
+
error,
|
|
299
|
+
triggerTabIndex: t5,
|
|
300
|
+
children: t29
|
|
301
|
+
});
|
|
302
|
+
$[85] = T0;
|
|
303
|
+
$[86] = as;
|
|
304
|
+
$[87] = error;
|
|
305
|
+
$[88] = t29;
|
|
306
|
+
$[89] = t5;
|
|
307
|
+
$[90] = t30;
|
|
308
|
+
} else t30 = $[90];
|
|
309
|
+
return t30;
|
|
140
310
|
};
|
|
141
311
|
var RadioGroup$1 = (props) => {
|
|
312
|
+
const $ = c(15);
|
|
142
313
|
if ("formControl" in props && props.formControl) {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
314
|
+
let formControl;
|
|
315
|
+
let innerProps;
|
|
316
|
+
let ref;
|
|
317
|
+
if ($[0] !== props) {
|
|
318
|
+
({formControl, ref, ...innerProps} = props);
|
|
319
|
+
$[0] = props;
|
|
320
|
+
$[1] = formControl;
|
|
321
|
+
$[2] = innerProps;
|
|
322
|
+
$[3] = ref;
|
|
323
|
+
} else {
|
|
324
|
+
formControl = $[1];
|
|
325
|
+
innerProps = $[2];
|
|
326
|
+
ref = $[3];
|
|
327
|
+
}
|
|
328
|
+
let t0;
|
|
329
|
+
if ($[4] !== innerProps || $[5] !== props.error || $[6] !== props.isDisabled || $[7] !== ref) {
|
|
330
|
+
t0 = (t1) => {
|
|
331
|
+
const { field, fieldState: t2 } = t1;
|
|
332
|
+
const { error, isDirty } = t2;
|
|
333
|
+
return /* @__PURE__ */ jsx(RadioGroupBase, {
|
|
334
|
+
...innerProps,
|
|
335
|
+
ref: mergeRefs(ref, field.ref),
|
|
336
|
+
value: field.value,
|
|
337
|
+
onChange: field.onChange,
|
|
338
|
+
onBlur: field.onBlur,
|
|
339
|
+
name: field.name,
|
|
340
|
+
isDirty,
|
|
341
|
+
isDisabled: field.disabled || props.isDisabled,
|
|
342
|
+
error: props.error ?? error?.message
|
|
343
|
+
});
|
|
344
|
+
};
|
|
345
|
+
$[4] = innerProps;
|
|
346
|
+
$[5] = props.error;
|
|
347
|
+
$[6] = props.isDisabled;
|
|
348
|
+
$[7] = ref;
|
|
349
|
+
$[8] = t0;
|
|
350
|
+
} else t0 = $[8];
|
|
351
|
+
let t1;
|
|
352
|
+
if ($[9] !== formControl.control || $[10] !== formControl.name || $[11] !== t0) {
|
|
353
|
+
t1 = /* @__PURE__ */ jsx(Controller, {
|
|
354
|
+
control: formControl.control,
|
|
355
|
+
name: formControl.name,
|
|
356
|
+
render: t0
|
|
357
|
+
});
|
|
358
|
+
$[9] = formControl.control;
|
|
359
|
+
$[10] = formControl.name;
|
|
360
|
+
$[11] = t0;
|
|
361
|
+
$[12] = t1;
|
|
362
|
+
} else t1 = $[12];
|
|
363
|
+
return t1;
|
|
159
364
|
}
|
|
160
|
-
|
|
365
|
+
let t0;
|
|
366
|
+
if ($[13] !== props) {
|
|
367
|
+
t0 = /* @__PURE__ */ jsx(RadioGroupBase, { ...props });
|
|
368
|
+
$[13] = props;
|
|
369
|
+
$[14] = t0;
|
|
370
|
+
} else t0 = $[14];
|
|
371
|
+
return t0;
|
|
161
372
|
};
|
|
162
373
|
//#endregion
|
|
163
374
|
export { RadioGroup$1 as RadioGroup };
|
|
@@ -23,8 +23,8 @@ var QueryAutocomplete = ({ query, queryParams, queryOptions, queryMap, leadingCo
|
|
|
23
23
|
props.onBlur?.({ target: { value: null } });
|
|
24
24
|
};
|
|
25
25
|
const { isInitialQueryDisabled: _, ...autocompleteProps } = restProps;
|
|
26
|
-
const onSearchChange = (
|
|
27
|
-
setSearch(
|
|
26
|
+
const onSearchChange = (value_0) => {
|
|
27
|
+
setSearch(value_0);
|
|
28
28
|
handleEnableQuery();
|
|
29
29
|
};
|
|
30
30
|
return /* @__PURE__ */ jsx(Autocomplete, {
|