@povio/ui 2.3.0-rc.1 → 2.3.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/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 +166 -34
- package/dist/components/inputs/Checkbox/CheckboxCheckmark.js +24 -10
- package/dist/components/inputs/DateTime/DatePicker/DatePicker.js +35 -14
- package/dist/components/inputs/DateTime/DateRangePicker/DateRangePicker.js +125 -109
- package/dist/components/inputs/DateTime/DateTimePicker/DateTimePicker.js +33 -15
- package/dist/components/inputs/DateTime/TimePicker/TimePicker.js +391 -117
- 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 +249 -93
- 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/DateTime/shared/staticDateTimeSegments.d.ts +4 -8
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.js +8 -8
- package/dist/components/inputs/DateTime/shared/staticDateTimeSegments.spec.d.ts +1 -0
- 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 +261 -84
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeField.js +541 -116
- package/dist/components/inputs/Input/NumberRangeInput/NumberRangeInput.js +321 -77
- package/dist/components/inputs/Input/PasswordInput/PasswordInput.js +48 -9
- package/dist/components/inputs/Input/TextArea/TextArea.js +303 -90
- package/dist/components/inputs/Input/TextInput/TextInput.js +250 -84
- 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.d.ts +0 -1
- package/dist/components/inputs/Inputs/InputItem.js +65 -16
- package/dist/components/inputs/Inputs/Inputs.js +37 -11
- package/dist/components/inputs/RadioGroup/RadioGroup.js +317 -106
- package/dist/components/inputs/Selection/Autocomplete/Autocomplete.js +11 -4
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +3 -2
- package/dist/components/inputs/Selection/Select/QuerySelect.js +107 -27
- package/dist/components/inputs/Selection/Select/Select.js +24 -7
- 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 +335 -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.d.ts +9 -0
- package/dist/components/inputs/Selection/shared/StaticSelectTrailingContent.js +47 -0
- package/dist/components/inputs/Selection/shared/select.context.js +35 -35
- package/dist/components/inputs/Selection/shared/selectInput.cva.d.ts +5 -0
- package/dist/components/inputs/Selection/shared/selectInput.cva.js +5 -0
- package/dist/components/inputs/Selection/shared/useSelectItems.js +109 -49
- package/dist/components/inputs/Skeleton/InputFrame.d.ts +2 -0
- package/dist/components/inputs/Skeleton/InputFrame.js +442 -116
- package/dist/components/inputs/Slider/Slider.js +250 -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 -40
- 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.d.ts +1 -0
- package/dist/components/inputs/shared/useStaticInputHandoff.js +87 -34
- 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 +28 -27
- 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/helpers/dynamicInputs.d.ts +1 -1
- 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/useQueryAutocomplete.js +1 -0
- 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/dist/index.js +2 -2
- package/dist/utils/date-time.utils.js +7 -13
- package/package.json +1 -1
|
@@ -2,8 +2,8 @@ import { InputItem } from "./InputItem.js";
|
|
|
2
2
|
import { StringUtils } from "../../../utils/string.utils.js";
|
|
3
3
|
import { ZodUtils } from "../../../utils/zod.utils.js";
|
|
4
4
|
import { getDefaultInputComponentType } from "../../../helpers/dynamicInputs.js";
|
|
5
|
+
import { c } from "react/compiler-runtime";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import { useMemo } from "react";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
//#region src/components/inputs/Inputs/Form.tsx
|
|
9
9
|
var createFieldComponent = (field, schemaKeyType, form) => {
|
|
@@ -23,22 +23,51 @@ var createFieldComponent = (field, schemaKeyType, form) => {
|
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
function Form(
|
|
27
|
-
const
|
|
28
|
-
|
|
26
|
+
function Form(t0) {
|
|
27
|
+
const $ = c(14);
|
|
28
|
+
const { form, schema, onSubmit, onError, className, children } = t0;
|
|
29
|
+
let fieldComponents;
|
|
30
|
+
if ($[0] !== form || $[1] !== schema.shape) {
|
|
31
|
+
fieldComponents = {};
|
|
29
32
|
const fields = Object.keys(schema.shape);
|
|
30
33
|
for (const field of fields) {
|
|
31
34
|
const componentName = StringUtils.capitalize(String(field));
|
|
32
35
|
const schemaKeyType = schema.shape[field];
|
|
33
36
|
fieldComponents[componentName] = createFieldComponent(field, schemaKeyType, form);
|
|
34
37
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
$[0] = form;
|
|
39
|
+
$[1] = schema.shape;
|
|
40
|
+
$[2] = fieldComponents;
|
|
41
|
+
} else fieldComponents = $[2];
|
|
42
|
+
const components = fieldComponents;
|
|
43
|
+
let t1;
|
|
44
|
+
if ($[3] !== form || $[4] !== onError || $[5] !== onSubmit) {
|
|
45
|
+
t1 = form.handleSubmit(onSubmit, onError);
|
|
46
|
+
$[3] = form;
|
|
47
|
+
$[4] = onError;
|
|
48
|
+
$[5] = onSubmit;
|
|
49
|
+
$[6] = t1;
|
|
50
|
+
} else t1 = $[6];
|
|
51
|
+
let t2;
|
|
52
|
+
if ($[7] !== children || $[8] !== components) {
|
|
53
|
+
t2 = children(components);
|
|
54
|
+
$[7] = children;
|
|
55
|
+
$[8] = components;
|
|
56
|
+
$[9] = t2;
|
|
57
|
+
} else t2 = $[9];
|
|
58
|
+
let t3;
|
|
59
|
+
if ($[10] !== className || $[11] !== t1 || $[12] !== t2) {
|
|
60
|
+
t3 = /* @__PURE__ */ jsx("form", {
|
|
61
|
+
onSubmit: t1,
|
|
62
|
+
className,
|
|
63
|
+
children: t2
|
|
64
|
+
});
|
|
65
|
+
$[10] = className;
|
|
66
|
+
$[11] = t1;
|
|
67
|
+
$[12] = t2;
|
|
68
|
+
$[13] = t3;
|
|
69
|
+
} else t3 = $[13];
|
|
70
|
+
return t3;
|
|
42
71
|
}
|
|
43
72
|
//#endregion
|
|
44
73
|
export { Form };
|
|
@@ -22,7 +22,6 @@ declare const componentRegistry: {
|
|
|
22
22
|
readonly dateTimePicker: <TFieldValues extends import('react-hook-form').FieldValues>({ fullIso, renderStaticInput, ...props }: import('../DateTime/DateTimePicker/DateTimePicker').ControlledDateTimePickerProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
readonly timePicker: <TFieldValues extends import('react-hook-form').FieldValues>({ renderStaticInput, ...props }: import('../DateTime/TimePicker/TimePicker').ControlledTimePickerProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
readonly dateRangePicker: <TFieldValues extends import('react-hook-form').FieldValues>({ fullIso, minValue, maxValue, renderStaticInput, ...props }: import('../DateTime/DateRangePicker/DateRangePicker').ControlledDateRangePickerProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
readonly textEditor: <TFieldValues extends import('react-hook-form').FieldValues>(props: import('../../../text-editor.js').ControlledTextEditorProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
26
25
|
readonly unknown: null;
|
|
27
26
|
};
|
|
28
27
|
export type InputComponentRegistry = typeof componentRegistry;
|
|
@@ -15,7 +15,7 @@ import { Slider } from "../Slider/Slider.js";
|
|
|
15
15
|
import { Toggle } from "../Toggle/Toggle.js";
|
|
16
16
|
import { Segment } from "../../segment/Segment.js";
|
|
17
17
|
import { QuerySelect } from "../Selection/Select/QuerySelect.js";
|
|
18
|
-
import {
|
|
18
|
+
import { c } from "react/compiler-runtime";
|
|
19
19
|
import { jsx } from "react/jsx-runtime";
|
|
20
20
|
//#region src/components/inputs/Inputs/InputItem.tsx
|
|
21
21
|
var componentRegistry = {
|
|
@@ -36,27 +36,76 @@ var componentRegistry = {
|
|
|
36
36
|
dateTimePicker: DateTimePicker,
|
|
37
37
|
timePicker: TimePicker,
|
|
38
38
|
dateRangePicker: DateRangePicker,
|
|
39
|
-
textEditor: TextEditor,
|
|
40
39
|
unknown: null
|
|
41
40
|
};
|
|
42
|
-
function InputItem(
|
|
41
|
+
function InputItem(t0) {
|
|
42
|
+
const $ = c(18);
|
|
43
|
+
const { form, inputDef } = t0;
|
|
43
44
|
const { name, label, placeholder, props, inputWrapper, render, type } = inputDef;
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
const t1 = form.control;
|
|
46
|
+
let formControl;
|
|
47
|
+
let t2;
|
|
48
|
+
if ($[0] !== form || $[1] !== name || $[2] !== render) {
|
|
49
|
+
t2 = Symbol.for("react.early_return_sentinel");
|
|
50
|
+
bb0: {
|
|
51
|
+
formControl = {
|
|
52
|
+
control: t1,
|
|
53
|
+
name
|
|
54
|
+
};
|
|
55
|
+
if (render) {
|
|
56
|
+
t2 = render(formControl, form);
|
|
57
|
+
break bb0;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
$[0] = form;
|
|
61
|
+
$[1] = name;
|
|
62
|
+
$[2] = render;
|
|
63
|
+
$[3] = formControl;
|
|
64
|
+
$[4] = t2;
|
|
65
|
+
} else {
|
|
66
|
+
formControl = $[3];
|
|
67
|
+
t2 = $[4];
|
|
68
|
+
}
|
|
69
|
+
if (t2 !== Symbol.for("react.early_return_sentinel")) return t2;
|
|
49
70
|
if (!type) return null;
|
|
50
71
|
const Component = componentRegistry[type];
|
|
51
72
|
const usesChildrenAsLabel = ["toggle", "checkbox"].includes(type);
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
73
|
+
let t3;
|
|
74
|
+
if ($[5] !== props) {
|
|
75
|
+
t3 = props ?? {};
|
|
76
|
+
$[5] = props;
|
|
77
|
+
$[6] = t3;
|
|
78
|
+
} else t3 = $[6];
|
|
79
|
+
const inputProps = t3;
|
|
80
|
+
const t4 = usesChildrenAsLabel ? void 0 : label;
|
|
81
|
+
const t5 = usesChildrenAsLabel ? label : void 0;
|
|
82
|
+
let t6;
|
|
83
|
+
if ($[7] !== Component || $[8] !== formControl || $[9] !== inputProps || $[10] !== placeholder || $[11] !== t4 || $[12] !== t5) {
|
|
84
|
+
t6 = /* @__PURE__ */ jsx(Component, {
|
|
85
|
+
...inputProps,
|
|
86
|
+
label: t4,
|
|
87
|
+
placeholder,
|
|
88
|
+
formControl,
|
|
89
|
+
children: t5
|
|
90
|
+
});
|
|
91
|
+
$[7] = Component;
|
|
92
|
+
$[8] = formControl;
|
|
93
|
+
$[9] = inputProps;
|
|
94
|
+
$[10] = placeholder;
|
|
95
|
+
$[11] = t4;
|
|
96
|
+
$[12] = t5;
|
|
97
|
+
$[13] = t6;
|
|
98
|
+
} else t6 = $[13];
|
|
99
|
+
const inputComponent = t6;
|
|
100
|
+
let t7;
|
|
101
|
+
if ($[14] !== inputComponent || $[15] !== inputWrapper || $[16] !== label) {
|
|
102
|
+
t7 = inputWrapper ? inputWrapper(inputComponent, label) : inputComponent;
|
|
103
|
+
$[14] = inputComponent;
|
|
104
|
+
$[15] = inputWrapper;
|
|
105
|
+
$[16] = label;
|
|
106
|
+
$[17] = t7;
|
|
107
|
+
} else t7 = $[17];
|
|
108
|
+
return t7;
|
|
60
109
|
}
|
|
61
110
|
//#endregion
|
|
62
111
|
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 };
|