@povio/ui 3.4.0-rc.38 → 3.4.0-rc.39
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/{Autocomplete-BI6FtdoW.d.ts → Autocomplete-CWiSRejc.d.ts} +2 -2
- package/dist/{Checkbox-CNkicnJS.d.ts → Checkbox-BIZoNFiX.d.ts} +2 -2
- package/dist/{CheckboxGroup-DZh_fLq5.d.ts → CheckboxGroup-U4poUqlk.d.ts} +2 -2
- package/dist/{DatePicker-DeG6fCcH.d.ts → DatePicker-IZwn9hAk.d.ts} +2 -2
- package/dist/{DateRangePicker-Cv68Vaea.d.ts → DateRangePicker-DLuRwuw1.d.ts} +2 -2
- package/dist/{DateTimePicker-C6bq3q29.d.ts → DateTimePicker-Co6UXSVA.d.ts} +2 -2
- package/dist/{FileUpload-Bq9rj-1Y.d.ts → FileUpload-B1L78k7y.d.ts} +2 -2
- package/dist/{FileUploadContainer-B1eKCPgg.d.ts → FileUploadContainer-CLPREIin.d.ts} +1 -1
- package/dist/{Form-Btgksbz7.d.ts → Form-fI9WMU9d.d.ts} +7 -7
- package/dist/{InputUpload-DPsdXnOa.d.ts → InputUpload-RPnj3b1Y.d.ts} +2 -2
- package/dist/Inputs-a9CXrVRS.d.ts +13 -0
- package/dist/{NumberInput-Dg6hLL09.d.ts → NumberInput-gqs4vYJf.d.ts} +2 -2
- package/dist/{NumberRangeInput-wnGLWvN2.d.ts → NumberRangeInput-CMHI9yks.d.ts} +2 -2
- package/dist/{PasswordInput-BOB31j1R.d.ts → PasswordInput-CcoU8g5c.d.ts} +3 -3
- package/dist/{QuerySelect-DizouUye.d.ts → QuerySelect-D_vXxG1S.d.ts} +3 -3
- package/dist/{RadioGroup-CF2UQgUc.d.ts → RadioGroup-Cs718lkQ.d.ts} +2 -2
- package/dist/{Segment-DK6lc8YX.d.ts → Segment-C_Vbrl9f.d.ts} +2 -2
- package/dist/{Select-C8oFyP8m.d.ts → Select-DIso4xMG.d.ts} +2 -2
- package/dist/{SelectBase-BJHmul89.d.ts → SelectBase-72enBk-1.d.ts} +2 -2
- package/dist/{Slider-CYGltM5_.d.ts → Slider-Baw84mjN.d.ts} +2 -2
- package/dist/{TextArea-Daj_Q1rm.d.ts → TextArea-vdp0uSFx.d.ts} +2 -2
- package/dist/{TextEditor-DLRbKQc5.d.ts → TextEditor-B7vdoTeN.d.ts} +2 -2
- package/dist/{TextInput-C4nfMF8d.d.ts → TextInput-Dxq5XKdp.d.ts} +2 -2
- package/dist/{TimePicker-Cmz97DBj.d.ts → TimePicker-B_atBC0F.d.ts} +2 -2
- package/dist/{Toggle-C4NzfhYl.d.ts → Toggle-CaBvb0l0.d.ts} +2 -2
- package/dist/{autocomplete-UphTTkS4.d.ts → autocomplete-CQqxdk49.d.ts} +2 -2
- package/dist/{checkbox-DY-2CBBN.d.ts → checkbox-Dx7xlf6g.d.ts} +1 -1
- package/dist/{checkbox-group-6Rcs6tZV.d.ts → checkbox-group-C4afLmyg.d.ts} +1 -1
- package/dist/components/autocomplete.d.ts +1 -1
- package/dist/components/checkbox-group.d.ts +1 -1
- package/dist/components/checkbox.d.ts +1 -1
- package/dist/components/date-picker.d.ts +1 -1
- package/dist/components/date-range-picker.d.ts +1 -1
- package/dist/components/date-time-picker.d.ts +1 -1
- package/dist/components/file-upload-container.d.ts +2 -2
- package/dist/components/file-upload.d.ts +2 -2
- package/dist/components/input-upload.d.ts +1 -1
- package/dist/components/number-input.d.ts +1 -1
- package/dist/components/number-range-input.d.ts +1 -1
- package/dist/components/password-input.d.ts +1 -1
- package/dist/components/query-autocomplete.d.ts +3 -3
- package/dist/components/query-autocomplete.js +4 -3
- package/dist/components/query-select.d.ts +1 -1
- package/dist/components/query-select.js +4 -3
- package/dist/components/radio-group.d.ts +1 -1
- package/dist/components/segment.d.ts +2 -2
- package/dist/components/select.d.ts +2 -2
- package/dist/components/slider.d.ts +1 -1
- package/dist/components/text-area.d.ts +1 -1
- package/dist/components/text-input.d.ts +1 -1
- package/dist/components/time-picker.d.ts +1 -1
- package/dist/components/toggle.d.ts +1 -1
- package/dist/config/theme-context.d.ts +1 -1
- package/dist/config/theme-context.js +1 -1
- package/dist/config/ui-config.d.ts +1 -1
- package/dist/{date-picker-BYdmoeCA.d.ts → date-picker-BT9DHqNa.d.ts} +1 -1
- package/dist/{date-range-picker-DNXQEi8K.d.ts → date-range-picker-VxlXnCVb.d.ts} +1 -1
- package/dist/{date-time-picker-DDMrga9d.d.ts → date-time-picker-HxtcGQjQ.d.ts} +1 -1
- package/dist/{dynamicInputs-D8j0ko24.js → dynamicInputs-0GjoOaz5.js} +14 -14
- package/dist/{dynamicInputs-CccdH-Ub.d.ts → dynamicInputs-Be0THQ7Z.d.ts} +99 -103
- package/dist/{dynamicInputs-4JB41qRW.js → dynamicInputs-bhlywWDy.js} +4 -4
- package/dist/{file-upload-CTRjAmXJ.d.ts → file-upload-CNJFJ3Jx.d.ts} +2 -2
- package/dist/{fileUpload.types-DAPGUiNJ.d.ts → fileUpload.types-BMs6Zkhr.d.ts} +2 -2
- package/dist/{form.binding-DWlFTecs.d.ts → form.binding-QO3Py45C.d.ts} +6 -3
- package/dist/{form.types-B9Vp8q2g.d.ts → form.types-CefwT7Po.d.ts} +1 -1
- package/dist/hooks/use-filters.d.ts +1 -1
- package/dist/hooks/use-filters.js +1 -1
- package/dist/hooks/use-local-storage.d.ts +1 -1
- package/dist/index.d.ts +47 -47
- package/dist/index.js +5 -5
- package/dist/{input-upload-D7bB0OTh.d.ts → input-upload-D3IM2ZuK.d.ts} +1 -1
- package/dist/{number-input-BtQFDlS1.d.ts → number-input-nwfbc3kN.d.ts} +1 -1
- package/dist/{number-range-input-BG2xxkmT.d.ts → number-range-input-BxoPQzi8.d.ts} +1 -1
- package/dist/{password-input-qbDKPJXN.d.ts → password-input-BEneLWqN.d.ts} +1 -1
- package/dist/{query-autocomplete-Wyffk38N.d.ts → query-autocomplete-rqGMbEP9.d.ts} +2 -2
- package/dist/{query-select-C5aXABf0.d.ts → query-select-DbQpRcE3.d.ts} +2 -2
- package/dist/{queryAutocomplete.types-B2k1Dbpj.d.ts → queryAutocomplete.types-Cnn4GjUo.d.ts} +3 -3
- package/dist/{radio-group-rT7SDzMI.d.ts → radio-group-Cc6b39Jt.d.ts} +1 -1
- package/dist/rhf/autocomplete.d.ts +2 -2
- package/dist/rhf/checkbox-group.d.ts +2 -2
- package/dist/rhf/checkbox.d.ts +2 -2
- package/dist/rhf/date-picker.d.ts +2 -2
- package/dist/rhf/date-range-picker.d.ts +2 -2
- package/dist/rhf/date-time-picker.d.ts +2 -2
- package/dist/rhf/file-upload.d.ts +2 -2
- package/dist/rhf/input-upload.d.ts +2 -2
- package/dist/rhf/inputs.d.ts +1 -1
- package/dist/rhf/inputs.js +1 -1
- package/dist/rhf/number-input.d.ts +2 -2
- package/dist/rhf/number-range-input.d.ts +2 -2
- package/dist/rhf/password-input.d.ts +2 -2
- package/dist/rhf/query-autocomplete.d.ts +1 -1
- package/dist/rhf/query-select.d.ts +1 -1
- package/dist/rhf/radio-group.d.ts +2 -2
- package/dist/rhf/segment.d.ts +2 -2
- package/dist/rhf/select.d.ts +2 -2
- package/dist/rhf/slider.d.ts +2 -2
- package/dist/rhf/text-area.d.ts +2 -2
- package/dist/rhf/text-editor.d.ts +2 -2
- package/dist/rhf/text-input.d.ts +2 -2
- package/dist/rhf/time-picker.d.ts +2 -2
- package/dist/rhf/toggle.d.ts +2 -2
- package/dist/rhf.d.ts +47 -47
- package/dist/rhf.js +5 -5
- package/dist/{segment-oh4z5h5S.d.ts → segment-Csrt70e1.d.ts} +1 -1
- package/dist/{segment.types-CW-stocu.d.ts → segment.types-BAFG_n38.d.ts} +2 -2
- package/dist/{select-BurKoPIP.d.ts → select-v-_bJmJ_.d.ts} +2 -2
- package/dist/{slider-CPcjmgXV.d.ts → slider-B2wS9JNA.d.ts} +1 -1
- package/dist/tanstack/autocomplete.d.ts +1 -1
- package/dist/tanstack/checkbox-group.d.ts +1 -1
- package/dist/tanstack/checkbox.d.ts +1 -1
- package/dist/tanstack/date-picker.d.ts +1 -1
- package/dist/tanstack/date-range-picker.d.ts +1 -1
- package/dist/tanstack/date-time-picker.d.ts +1 -1
- package/dist/tanstack/file-upload.d.ts +2 -2
- package/dist/tanstack/form.d.ts +2 -2
- package/dist/tanstack/form.js +1 -1
- package/dist/tanstack/input-upload.d.ts +1 -1
- package/dist/tanstack/inputs.d.ts +2 -2
- package/dist/tanstack/inputs.js +1 -1
- package/dist/tanstack/number-input.d.ts +1 -1
- package/dist/tanstack/number-range-input.d.ts +1 -1
- package/dist/tanstack/password-input.d.ts +1 -1
- package/dist/tanstack/query-select.d.ts +1 -1
- package/dist/tanstack/radio-group.d.ts +1 -1
- package/dist/tanstack/segment.d.ts +2 -2
- package/dist/tanstack/select.d.ts +1 -1
- package/dist/tanstack/slider.d.ts +1 -1
- package/dist/tanstack/table.d.ts +1 -1
- package/dist/tanstack/table.js +1 -1
- package/dist/tanstack/text-area.d.ts +1 -1
- package/dist/tanstack/text-editor.d.ts +1 -1
- package/dist/tanstack/text-input.d.ts +1 -1
- package/dist/tanstack/time-picker.d.ts +1 -1
- package/dist/tanstack/toggle.d.ts +1 -1
- package/dist/tanstack.d.ts +32 -32
- package/dist/tanstack.js +6 -6
- package/dist/{text-area-CCDmHkAZ.d.ts → text-area-CYY-d5HB.d.ts} +1 -1
- package/dist/{text-editor-BD-5Q4VD.d.ts → text-editor-Bz57chW2.d.ts} +1 -1
- package/dist/text-editor.d.ts +1 -1
- package/dist/{text-input-CdZKbMu3.d.ts → text-input-CkMv3VpB.d.ts} +1 -1
- package/dist/{theme.context-rPpAYJZo.d.ts → theme.context-B10jqjvZ.d.ts} +3 -3
- package/dist/{theme.context-CCXz56lV.js → theme.context-B3wQDJ-i.js} +2 -2
- package/dist/{time-picker-D3gWP1hd.d.ts → time-picker-CjqmM5sQ.d.ts} +1 -1
- package/dist/{toggle-DsRL_hSk.d.ts → toggle-BYNFK_xQ.d.ts} +1 -1
- package/dist/{useFilters-Cc_lW3jH.js → useFilters-20jpzc29.js} +5 -5
- package/dist/{useFilters-6IOuvBTm.d.ts → useFilters-BxRScJdn.d.ts} +2 -2
- package/dist/{useFormAutosave-MWfz07Xf.js → useFormAutosave-CBtT6V83.js} +4 -4
- package/dist/{useLocalStorage-kcEdRxqC.d.ts → useLocalStorage-DGsBUCT6.d.ts} +2 -2
- package/dist/{useTableColumnConfig-jYZYcSlm.js → useTableColumnConfig-DzdaxZ50.js} +11 -11
- package/dist/{useTableNav-B_mH8Lcl.d.ts → useTableNav-DZjPiQUb.d.ts} +17 -17
- package/dist/zod.utils-DrrPDT9v.js +24 -0
- package/package.json +4 -4
- package/dist/Inputs-BJ7TDMHF.d.ts +0 -13
- package/dist/schemas-BkfyFvBp.js +0 -4004
- package/dist/schemas-CAtYiHoz.d.ts +0 -2127
- package/dist/zod.utils-Nz_Tbo_v.js +0 -24
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as ZodISODateTime, i as ZodEnum, l as ZodString, n as ZodBoolean, o as ZodNumber, r as ZodEmail, s as ZodObject, t as ZodArray, u as ZodUUID } from "./schemas-BkfyFvBp.js";
|
|
2
1
|
import { t as StringUtils } from "./string.utils-BPgv6QwA.js";
|
|
3
|
-
import { t as ZodUtils } from "./zod.utils-
|
|
2
|
+
import { t as ZodUtils } from "./zod.utils-DrrPDT9v.js";
|
|
3
|
+
import { z } from "zod";
|
|
4
4
|
import i18next from "i18next";
|
|
5
5
|
//#region src/helpers/dynamicInputs.ts
|
|
6
6
|
const defaultComponentTypes = {
|
|
@@ -17,15 +17,15 @@ const defaultComponentTypes = {
|
|
|
17
17
|
unknown: "unknown"
|
|
18
18
|
};
|
|
19
19
|
const ZOD_TYPE_COMPONENT_TYPE = [
|
|
20
|
-
[ZodBoolean, defaultComponentTypes.boolean],
|
|
21
|
-
[ZodNumber, defaultComponentTypes.number],
|
|
22
|
-
[ZodEnum, defaultComponentTypes.enum],
|
|
23
|
-
[ZodISODateTime, defaultComponentTypes.datetime],
|
|
24
|
-
[ZodString, defaultComponentTypes.string],
|
|
25
|
-
[ZodEmail, defaultComponentTypes.email],
|
|
26
|
-
[ZodObject, defaultComponentTypes.object],
|
|
27
|
-
[ZodArray, defaultComponentTypes.array],
|
|
28
|
-
[ZodUUID, defaultComponentTypes.uuid]
|
|
20
|
+
[z.ZodBoolean, defaultComponentTypes.boolean],
|
|
21
|
+
[z.ZodNumber, defaultComponentTypes.number],
|
|
22
|
+
[z.ZodEnum, defaultComponentTypes.enum],
|
|
23
|
+
[z.ZodISODateTime, defaultComponentTypes.datetime],
|
|
24
|
+
[z.ZodString, defaultComponentTypes.string],
|
|
25
|
+
[z.ZodEmail, defaultComponentTypes.email],
|
|
26
|
+
[z.ZodObject, defaultComponentTypes.object],
|
|
27
|
+
[z.ZodArray, defaultComponentTypes.array],
|
|
28
|
+
[z.ZodUUID, defaultComponentTypes.uuid]
|
|
29
29
|
];
|
|
30
30
|
const DEFAULT_NAMESPACE = "dynamicInputs";
|
|
31
31
|
const sortInputDefs = (inputDefs, orderKeys) => {
|
|
@@ -61,15 +61,15 @@ const getDefaultInputComponentType = (schemaType) => {
|
|
|
61
61
|
return defaultComponentTypes.unknown;
|
|
62
62
|
};
|
|
63
63
|
const getDefaultSelectionItems = (keyType) => {
|
|
64
|
-
const unwrappedType = ZodUtils.unwrapZodType(keyType instanceof ZodArray ? keyType.element : keyType);
|
|
65
|
-
if (unwrappedType instanceof ZodEnum) return Object.values(unwrappedType.options).filter((value) => typeof value === "string").map((value) => ({
|
|
64
|
+
const unwrappedType = ZodUtils.unwrapZodType(keyType instanceof z.ZodArray ? keyType.element : keyType);
|
|
65
|
+
if (unwrappedType instanceof z.ZodEnum) return Object.values(unwrappedType.options).filter((value) => typeof value === "string").map((value) => ({
|
|
66
66
|
id: value,
|
|
67
67
|
label: StringUtils.capitalize(value)
|
|
68
68
|
}));
|
|
69
69
|
return [];
|
|
70
70
|
};
|
|
71
71
|
const getDefaultSelectionMode = (keyType) => {
|
|
72
|
-
return keyType instanceof ZodArray ? "multiple" : "single";
|
|
72
|
+
return keyType instanceof z.ZodArray ? "multiple" : "single";
|
|
73
73
|
};
|
|
74
74
|
const getDefaultProps = (componentType, keyType) => {
|
|
75
75
|
const props = {};
|
|
@@ -14,31 +14,30 @@ import "./SplitButton-CR4psHKW.js";
|
|
|
14
14
|
import "./Button-D0M9lMOR.js";
|
|
15
15
|
import "./TextButton-cigitfeH.js";
|
|
16
16
|
import "./ToggleButton-3lINwoaV.js";
|
|
17
|
-
import {
|
|
18
|
-
import { c as UIForm, n as FieldValues$1, r as FormInstance } from "./form.binding-DWlFTecs.js";
|
|
17
|
+
import { c as UIForm, n as FieldValues$1, r as FormInstance } from "./form.binding-QO3Py45C.js";
|
|
19
18
|
import "./checkbox.cva-Caaf2Ysq.js";
|
|
20
|
-
import { a as ControlledCheckboxProps } from "./Checkbox-
|
|
19
|
+
import { a as ControlledCheckboxProps } from "./Checkbox-BIZoNFiX.js";
|
|
21
20
|
import "./FormField-Iy2O8A4g.js";
|
|
22
21
|
import "./input.cva-CfgCOIQW.js";
|
|
23
|
-
import { r as ControlledCheckboxGroupProps } from "./CheckboxGroup-
|
|
24
|
-
import "./FileUpload-
|
|
25
|
-
import "./FileUploadContainer-
|
|
26
|
-
import "./InputUpload-
|
|
27
|
-
import { r as NumberInputComponent } from "./NumberInput-
|
|
28
|
-
import { t as ControlledNumberRangeInputProps } from "./NumberRangeInput-
|
|
29
|
-
import { r as TextInputComponent } from "./TextInput-
|
|
30
|
-
import { t as ControlledPasswordInputProps } from "./PasswordInput-
|
|
31
|
-
import { t as ControlledTextAreaProps } from "./TextArea-
|
|
22
|
+
import { r as ControlledCheckboxGroupProps } from "./CheckboxGroup-U4poUqlk.js";
|
|
23
|
+
import "./FileUpload-B1L78k7y.js";
|
|
24
|
+
import "./FileUploadContainer-CLPREIin.js";
|
|
25
|
+
import "./InputUpload-RPnj3b1Y.js";
|
|
26
|
+
import { r as NumberInputComponent } from "./NumberInput-gqs4vYJf.js";
|
|
27
|
+
import { t as ControlledNumberRangeInputProps } from "./NumberRangeInput-CMHI9yks.js";
|
|
28
|
+
import { r as TextInputComponent } from "./TextInput-Dxq5XKdp.js";
|
|
29
|
+
import { t as ControlledPasswordInputProps } from "./PasswordInput-CcoU8g5c.js";
|
|
30
|
+
import { t as ControlledTextAreaProps } from "./TextArea-vdp0uSFx.js";
|
|
32
31
|
import "./radio.cva-9lpsise2.js";
|
|
33
|
-
import { s as SelectItem, t as DefaultInitialSelectItem } from "./SelectBase-
|
|
32
|
+
import { s as SelectItem, t as DefaultInitialSelectItem } from "./SelectBase-72enBk-1.js";
|
|
34
33
|
import { n as HasRequiredProperty } from "./common-UBFya8WY.js";
|
|
35
|
-
import { n as AutocompleteProps, r as ControlledAutocompleteProps } from "./Autocomplete-
|
|
36
|
-
import { n as QueryFn, t as QueryAutocompleteProps } from "./queryAutocomplete.types-
|
|
37
|
-
import { r as SelectProps, t as ControlledSelectProps } from "./Select-
|
|
38
|
-
import { n as QuerySelectProps, r as QueryFn$1 } from "./QuerySelect-
|
|
39
|
-
import { t as ControlledSliderProps } from "./Slider-
|
|
34
|
+
import { n as AutocompleteProps, r as ControlledAutocompleteProps } from "./Autocomplete-CWiSRejc.js";
|
|
35
|
+
import { n as QueryFn, t as QueryAutocompleteProps } from "./queryAutocomplete.types-Cnn4GjUo.js";
|
|
36
|
+
import { r as SelectProps, t as ControlledSelectProps } from "./Select-DIso4xMG.js";
|
|
37
|
+
import { n as QuerySelectProps, r as QueryFn$1 } from "./QuerySelect-D_vXxG1S.js";
|
|
38
|
+
import { t as ControlledSliderProps } from "./Slider-Baw84mjN.js";
|
|
40
39
|
import "./toggle.cva-2CGLc8aa.js";
|
|
41
|
-
import { t as ControlledToggleProps } from "./Toggle-
|
|
40
|
+
import { t as ControlledToggleProps } from "./Toggle-CaBvb0l0.js";
|
|
42
41
|
import "./Modal-BfN_MfR-.js";
|
|
43
42
|
import "./Typography-BiHrVFpz.js";
|
|
44
43
|
import "./ActionModal-CKS0t-n3.js";
|
|
@@ -58,54 +57,51 @@ import "./Pill-vCBJdOTY.js";
|
|
|
58
57
|
import "./Tag-DUvBTljf.js";
|
|
59
58
|
import "./Accordion-DonRhvvW.js";
|
|
60
59
|
import "./confirmation.context-D_kJeU8m.js";
|
|
61
|
-
import { t as ControlledDatePickerProps } from "./DatePicker-
|
|
62
|
-
import { t as ControlledDateRangePickerProps } from "./DateRangePicker-
|
|
63
|
-
import { t as ControlledDateTimePickerProps } from "./DateTimePicker-
|
|
60
|
+
import { t as ControlledDatePickerProps } from "./DatePicker-IZwn9hAk.js";
|
|
61
|
+
import { t as ControlledDateRangePickerProps } from "./DateRangePicker-DLuRwuw1.js";
|
|
62
|
+
import { t as ControlledDateTimePickerProps } from "./DateTimePicker-Co6UXSVA.js";
|
|
64
63
|
import "./date-time.utils-Cu9TVj46.js";
|
|
65
64
|
import "./lucide-react-BJRvqSeV.js";
|
|
66
65
|
import "./link.context-C1RcdC0i.js";
|
|
67
66
|
import "./MenuItem-DLKC94Qs.js";
|
|
68
67
|
import "./ProgressBar-DG-ClG9v.js";
|
|
69
|
-
import { t as Autocomplete } from "./autocomplete-
|
|
70
|
-
import { t as Checkbox } from "./checkbox-
|
|
71
|
-
import { t as CheckboxGroup } from "./checkbox-group-
|
|
72
|
-
import { n as DatePicker } from "./date-picker-
|
|
73
|
-
import { n as DateRangePicker } from "./date-range-picker-
|
|
74
|
-
import { n as DateTimePicker } from "./date-time-picker-
|
|
75
|
-
import "./file-upload-
|
|
76
|
-
import "./input-upload-
|
|
77
|
-
import { n as NumberInput } from "./number-input-
|
|
78
|
-
import { n as NumberRangeInput } from "./number-range-input-
|
|
79
|
-
import { n as PasswordInput } from "./password-input-
|
|
80
|
-
import { t as QueryAutocomplete } from "./query-autocomplete-
|
|
81
|
-
import { t as QuerySelect } from "./query-select-
|
|
82
|
-
import "./radio-group-
|
|
83
|
-
import "./segment.types-
|
|
84
|
-
import { n as Segment } from "./segment-
|
|
85
|
-
import { n as Select } from "./select-
|
|
86
|
-
import { n as Slider } from "./slider-
|
|
87
|
-
import { n as TextArea } from "./text-area-
|
|
88
|
-
import "./text-editor-
|
|
89
|
-
import { n as TextInput } from "./text-input-
|
|
90
|
-
import { t as ControlledTimePickerProps } from "./TimePicker-
|
|
91
|
-
import { n as TimePicker } from "./time-picker-
|
|
92
|
-
import { n as Toggle } from "./toggle-
|
|
68
|
+
import { t as Autocomplete } from "./autocomplete-CQqxdk49.js";
|
|
69
|
+
import { t as Checkbox } from "./checkbox-Dx7xlf6g.js";
|
|
70
|
+
import { t as CheckboxGroup } from "./checkbox-group-C4afLmyg.js";
|
|
71
|
+
import { n as DatePicker } from "./date-picker-BT9DHqNa.js";
|
|
72
|
+
import { n as DateRangePicker } from "./date-range-picker-VxlXnCVb.js";
|
|
73
|
+
import { n as DateTimePicker } from "./date-time-picker-HxtcGQjQ.js";
|
|
74
|
+
import "./file-upload-CNJFJ3Jx.js";
|
|
75
|
+
import "./input-upload-D3IM2ZuK.js";
|
|
76
|
+
import { n as NumberInput } from "./number-input-nwfbc3kN.js";
|
|
77
|
+
import { n as NumberRangeInput } from "./number-range-input-BxoPQzi8.js";
|
|
78
|
+
import { n as PasswordInput } from "./password-input-BEneLWqN.js";
|
|
79
|
+
import { t as QueryAutocomplete } from "./query-autocomplete-rqGMbEP9.js";
|
|
80
|
+
import { t as QuerySelect } from "./query-select-DbQpRcE3.js";
|
|
81
|
+
import "./radio-group-Cc6b39Jt.js";
|
|
82
|
+
import "./segment.types-BAFG_n38.js";
|
|
83
|
+
import { n as Segment } from "./segment-Csrt70e1.js";
|
|
84
|
+
import { n as Select } from "./select-v-_bJmJ_.js";
|
|
85
|
+
import { n as Slider } from "./slider-B2wS9JNA.js";
|
|
86
|
+
import { n as TextArea } from "./text-area-CYY-d5HB.js";
|
|
87
|
+
import "./text-editor-Bz57chW2.js";
|
|
88
|
+
import { n as TextInput } from "./text-input-CkMv3VpB.js";
|
|
89
|
+
import { t as ControlledTimePickerProps } from "./TimePicker-B_atBC0F.js";
|
|
90
|
+
import { n as TimePicker } from "./time-picker-CjqmM5sQ.js";
|
|
91
|
+
import { n as Toggle } from "./toggle-BYNFK_xQ.js";
|
|
93
92
|
import "./Stepper-JUO4MbZx.js";
|
|
94
|
-
import "./useTableNav-
|
|
93
|
+
import "./useTableNav-DZjPiQUb.js";
|
|
95
94
|
import "./router.context-BOYRh2p9.js";
|
|
96
|
-
import "./theme.context-
|
|
95
|
+
import "./theme.context-B10jqjvZ.js";
|
|
97
96
|
import "./uiConfig.context-Bjb9TQ6Y.js";
|
|
97
|
+
import "./useFilters-BxRScJdn.js";
|
|
98
|
+
import "./useLocalStorage-DGsBUCT6.js";
|
|
98
99
|
import "./useTranslationMemo-Dy3p6m1g.js";
|
|
99
|
-
import { t as Segment$1 } from "./Segment-
|
|
100
|
+
import { t as Segment$1 } from "./Segment-C_Vbrl9f.js";
|
|
100
101
|
import { ComponentProps, DependencyList, EffectCallback, JSXElementConstructor, KeyboardEvent, ReactElement, ReactNode, RefObject, SetStateAction, SyntheticEvent } from "react";
|
|
101
102
|
import { BrowserNativeObject, ExtractObjects, FieldValues, NestedValue, SubmitErrorHandler, SubmitHandler, UseFormProps, UseFormReturn } from "react-hook-form";
|
|
103
|
+
import { z } from "zod";
|
|
102
104
|
import { QueryClient } from "@tanstack/react-query";
|
|
103
|
-
//#region ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/iso.d.cts
|
|
104
|
-
interface ZodISODateTime extends ZodStringFormat {
|
|
105
|
-
_zod: $ZodISODateTimeInternals;
|
|
106
|
-
}
|
|
107
|
-
declare const ZodISODateTime: $constructor<ZodISODateTime>;
|
|
108
|
-
//#endregion
|
|
109
105
|
//#region src/rhf/Inputs.d.ts
|
|
110
106
|
declare const componentRegistry$1: {
|
|
111
107
|
readonly autocomplete: typeof Autocomplete;
|
|
@@ -147,17 +143,17 @@ interface InputsProps<TFieldValues extends Record<string, any>> {
|
|
|
147
143
|
children?: (inputs: Record<keyof TFieldValues, ReactNode>) => ReactNode;
|
|
148
144
|
}
|
|
149
145
|
declare function Inputs<TFieldValues extends Record<string, any>>({ form, inputDefs, children }: InputsProps<TFieldValues>): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element[] | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null | undefined;
|
|
150
|
-
type FieldComponents<TSchema extends ZodObject<any>> = { [K in keyof Required<
|
|
146
|
+
type FieldComponents<TSchema extends z.ZodObject<any>> = { [K in keyof Required<z.infer<TSchema>> as Capitalize<K & string>]: (props: {
|
|
151
147
|
inputType?: InputComponentType$1;
|
|
152
148
|
label: string;
|
|
153
149
|
placeholder?: string;
|
|
154
150
|
[key: string]: unknown;
|
|
155
151
|
}) => ReactNode; };
|
|
156
|
-
declare function Form<TSchema extends ZodObject<any>>({ form, schema, onSubmit, onError, className, children }: {
|
|
157
|
-
form: UseFormReturn<
|
|
152
|
+
declare function Form<TSchema extends z.ZodObject<any>>({ form, schema, onSubmit, onError, className, children }: {
|
|
153
|
+
form: UseFormReturn<z.infer<TSchema>>;
|
|
158
154
|
schema: TSchema;
|
|
159
|
-
onSubmit: SubmitHandler<
|
|
160
|
-
onError?: SubmitErrorHandler<
|
|
155
|
+
onSubmit: SubmitHandler<z.infer<TSchema>>;
|
|
156
|
+
onError?: SubmitErrorHandler<z.infer<TSchema>>;
|
|
161
157
|
className?: string;
|
|
162
158
|
children: (components: FieldComponents<TSchema>) => ReactNode;
|
|
163
159
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -481,7 +477,7 @@ type DeepNullablePartial<T> = T extends BrowserNativeObject | NestedValue ? T :
|
|
|
481
477
|
type AsyncDefaultValues<TFieldValues> = (payload?: unknown) => Promise<TFieldValues>;
|
|
482
478
|
type NullableDefaultValues<TFieldValues> = TFieldValues extends AsyncDefaultValues<TFieldValues> ? DeepNullablePartial<Awaited<TFieldValues>> : DeepNullablePartial<TFieldValues>;
|
|
483
479
|
type UseFormResolverProps<TFieldValues extends FieldValues, TTransformedValues = TFieldValues> = {
|
|
484
|
-
zodSchema: ZodType
|
|
480
|
+
zodSchema: z.ZodType<TTransformedValues, TFieldValues>;
|
|
485
481
|
resolver?: never;
|
|
486
482
|
} | {
|
|
487
483
|
zodSchema?: never;
|
|
@@ -593,23 +589,23 @@ declare namespace RoutingUtils {
|
|
|
593
589
|
//#endregion
|
|
594
590
|
//#region src/utils/zod.utils.d.ts
|
|
595
591
|
declare namespace ZodUtils {
|
|
596
|
-
type UnwrapZod<T> = T extends ZodOptional<infer U> ? UnwrapZod<U> : T extends ZodNullable<infer U> ? UnwrapZod<U> : T;
|
|
592
|
+
type UnwrapZod<T> = T extends z.ZodOptional<infer U> ? UnwrapZod<U> : T extends z.ZodNullable<infer U> ? UnwrapZod<U> : T;
|
|
597
593
|
type IsZodType<T, Z> = UnwrapZod<T> extends Z ? true : false;
|
|
598
|
-
type IsZodNumber<T> = IsZodType<T, ZodNumber>;
|
|
599
|
-
type IsZodEnum<T> = IsZodType<T, ZodEnum<any>>;
|
|
600
|
-
type IsZodUUID<T> = IsZodType<T, ZodUUID>;
|
|
601
|
-
type IsZodDateTime<T> = IsZodType<T, ZodISODateTime>;
|
|
602
|
-
type IsZodString<T> = IsZodType<T, ZodString>;
|
|
603
|
-
type IsZodEmail<T> = IsZodType<T, ZodEmail>;
|
|
604
|
-
type IsZodDateRange<T> = UnwrapZod<T> extends ZodObject ? UnwrapZod<UnwrapZod<T>["shape"]["start"]> extends ZodISODateTime ? UnwrapZod<UnwrapZod<T>["shape"]["end"]> extends ZodISODateTime ? true : false : false : false;
|
|
605
|
-
type IsZodObject<T> = IsZodType<T, ZodObject<any>>;
|
|
606
|
-
type IsZodArray<T> = IsZodType<T, ZodArray<any>>;
|
|
607
|
-
type ZodType<T> = IsZodType<T, ZodBoolean> extends true ? "boolean" : IsZodNumber<T> extends true ? "number" : IsZodEnum<T> extends true ? "enum" : IsZodDateTime<T> extends true ? "datetime" : IsZodUUID<T> extends true ? "uuid" : IsZodString<T> extends true ? "string" : IsZodEmail<T> extends true ? "email" : IsZodDateRange<T> extends true ? "dateRange" : IsZodObject<T> extends true ? "object" : IsZodArray<T> extends true ? "array" : never;
|
|
608
|
-
type ZodTypeSwitch<TZodType extends ZodType
|
|
609
|
-
const unwrapZodType: (schemaType:
|
|
594
|
+
type IsZodNumber<T> = IsZodType<T, z.ZodNumber>;
|
|
595
|
+
type IsZodEnum<T> = IsZodType<T, z.ZodEnum<any>>;
|
|
596
|
+
type IsZodUUID<T> = IsZodType<T, z.ZodUUID>;
|
|
597
|
+
type IsZodDateTime<T> = IsZodType<T, z.ZodISODateTime>;
|
|
598
|
+
type IsZodString<T> = IsZodType<T, z.ZodString>;
|
|
599
|
+
type IsZodEmail<T> = IsZodType<T, z.ZodEmail>;
|
|
600
|
+
type IsZodDateRange<T> = UnwrapZod<T> extends z.ZodObject ? UnwrapZod<UnwrapZod<T>["shape"]["start"]> extends z.ZodISODateTime ? UnwrapZod<UnwrapZod<T>["shape"]["end"]> extends z.ZodISODateTime ? true : false : false : false;
|
|
601
|
+
type IsZodObject<T> = IsZodType<T, z.ZodObject<any>>;
|
|
602
|
+
type IsZodArray<T> = IsZodType<T, z.ZodArray<any>>;
|
|
603
|
+
type ZodType<T> = IsZodType<T, z.ZodBoolean> extends true ? "boolean" : IsZodNumber<T> extends true ? "number" : IsZodEnum<T> extends true ? "enum" : IsZodDateTime<T> extends true ? "datetime" : IsZodUUID<T> extends true ? "uuid" : IsZodString<T> extends true ? "string" : IsZodEmail<T> extends true ? "email" : IsZodDateRange<T> extends true ? "dateRange" : IsZodObject<T> extends true ? "object" : IsZodArray<T> extends true ? "array" : never;
|
|
604
|
+
type ZodTypeSwitch<TZodType extends z.ZodType, T extends Record<ZodType<TZodType> | "unknown", unknown>> = ZodType<TZodType> extends never ? never : T[ZodType<TZodType>];
|
|
605
|
+
const unwrapZodType: (schemaType: z.core.$ZodType) => z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
610
606
|
/** After stripping optional/nullable wrappers, the inner schema must be a `ZodObject` (e.g. for `.shape`, forms, dynamicInputs). */
|
|
611
|
-
const unwrapToZodObject: (schema: ZodType
|
|
612
|
-
const isDateRange: (schemaType:
|
|
607
|
+
const unwrapToZodObject: (schema: z.ZodType) => z.ZodObject<any>;
|
|
608
|
+
const isDateRange: (schemaType: z.core.$ZodType) => boolean;
|
|
613
609
|
}
|
|
614
610
|
//#endregion
|
|
615
611
|
//#region src/components/inputs/Inputs/InputItem.d.ts
|
|
@@ -685,8 +681,8 @@ declare const defaultComponentTypes: {
|
|
|
685
681
|
readonly uuid: "select";
|
|
686
682
|
readonly unknown: "unknown";
|
|
687
683
|
};
|
|
688
|
-
type DefaultComponentType<TZodType extends ZodType
|
|
689
|
-
type AllowedComponentType<TZodType extends ZodType
|
|
684
|
+
type DefaultComponentType<TZodType extends z.ZodType> = ZodUtils.ZodTypeSwitch<TZodType, typeof defaultComponentTypes>;
|
|
685
|
+
type AllowedComponentType<TZodType extends z.ZodType> = ZodUtils.ZodTypeSwitch<TZodType, {
|
|
690
686
|
datetime: "datePicker" | "dateTimePicker" | "timePicker";
|
|
691
687
|
dateRange: "dateRangePicker";
|
|
692
688
|
boolean: "toggle" | "checkbox";
|
|
@@ -705,27 +701,27 @@ interface DynamicInputDefBase<TProps> {
|
|
|
705
701
|
props?: Partial<TProps>;
|
|
706
702
|
inputWrapper?: InputWrapperType;
|
|
707
703
|
}
|
|
708
|
-
type ConfigInputDef<TSchema extends ZodObject<any>, K extends keyof
|
|
704
|
+
type ConfigInputDef<TSchema extends z.ZodObject<any>, K extends keyof z.infer<TSchema>> = { [T in AllowedComponentType<TSchema["shape"][K]>]: {
|
|
709
705
|
type: T;
|
|
710
706
|
} & DynamicInputDefBase<InputDefBaseProps<InputComponentProps<T>>>; }[AllowedComponentType<TSchema["shape"][K]>];
|
|
711
|
-
type UnknownInputDef<TSchema extends ZodObject<any>, K extends keyof
|
|
707
|
+
type UnknownInputDef<TSchema extends z.ZodObject<any>, K extends keyof z.infer<TSchema>> = { [T in DefaultComponentType<TSchema["shape"][K]>]: {
|
|
712
708
|
type?: never;
|
|
713
709
|
} & DynamicInputDefBase<InputDefBaseProps<InputComponentProps<T>>>; }[DefaultComponentType<TSchema["shape"][K]>];
|
|
714
|
-
type RenderInputDef<TSchema extends ZodObject<any>, K extends keyof
|
|
710
|
+
type RenderInputDef<TSchema extends z.ZodObject<any>, K extends keyof z.infer<TSchema>> = {
|
|
715
711
|
render: (field: {
|
|
716
|
-
form: FormInstance<
|
|
712
|
+
form: FormInstance<z.infer<TSchema>>;
|
|
717
713
|
name: K;
|
|
718
|
-
}, form: FormInstance<
|
|
714
|
+
}, form: FormInstance<z.infer<TSchema>>) => ReactElement;
|
|
719
715
|
} & DynamicInputDefBase<Record<string, never>>;
|
|
720
|
-
type DynamicInputDef<TSchema extends ZodObject<any>, K extends keyof
|
|
721
|
-
type InputsConfig<TSchema extends ZodObject<any>> = { [K in keyof
|
|
722
|
-
form: FormInstance<
|
|
716
|
+
type DynamicInputDef<TSchema extends z.ZodObject<any>, K extends keyof z.infer<TSchema>> = ConfigInputDef<TSchema, K> | UnknownInputDef<TSchema, K> | RenderInputDef<TSchema, K>;
|
|
717
|
+
type InputsConfig<TSchema extends z.ZodObject<any>> = { [K in keyof z.infer<TSchema>]?: DynamicInputDef<TSchema, K> | ((field: {
|
|
718
|
+
form: FormInstance<z.infer<TSchema>>;
|
|
723
719
|
name: K;
|
|
724
|
-
}, form: FormInstance<
|
|
720
|
+
}, form: FormInstance<z.infer<TSchema>>) => ReactElement) | boolean; };
|
|
725
721
|
type GlobalProps = { [T in Exclude<InputComponentType, "unknown">]: InputDefBaseProps<InputComponentProps<T>>; }[Exclude<InputComponentType, "unknown">];
|
|
726
|
-
type SchemaKeyOrString<TSchema extends ZodObject<any>> = keyof
|
|
727
|
-
type DynamicInputsObjectSchema<TSchema extends ZodType
|
|
728
|
-
interface DynamicInputsObjectOptions<TSchema extends ZodObject<any>> {
|
|
722
|
+
type SchemaKeyOrString<TSchema extends z.ZodObject<any>> = keyof z.infer<TSchema> | (string & {});
|
|
723
|
+
type DynamicInputsObjectSchema<TSchema extends z.ZodType> = TSchema extends z.ZodObject<any> ? TSchema : Extract<ZodUtils.UnwrapZod<TSchema>, z.ZodObject<any>>;
|
|
724
|
+
interface DynamicInputsObjectOptions<TSchema extends z.ZodObject<any>> {
|
|
729
725
|
inputs?: InputsConfig<TSchema>;
|
|
730
726
|
order?: SchemaKeyOrString<TSchema>[];
|
|
731
727
|
globalProps?: Partial<GlobalProps>;
|
|
@@ -734,27 +730,27 @@ interface DynamicInputsObjectOptions<TSchema extends ZodObject<any>> {
|
|
|
734
730
|
overridePresetLocales?: boolean;
|
|
735
731
|
includeAll?: boolean;
|
|
736
732
|
}
|
|
737
|
-
type DynamicInputsOptions$1<TSchema extends ZodType
|
|
738
|
-
interface DynamicInputsParams<TSchema extends ZodType
|
|
733
|
+
type DynamicInputsOptions$1<TSchema extends z.ZodType> = DynamicInputsObjectOptions<DynamicInputsObjectSchema<TSchema>>;
|
|
734
|
+
interface DynamicInputsParams<TSchema extends z.ZodType> {
|
|
739
735
|
schema: TSchema;
|
|
740
|
-
preset?: InputDef<
|
|
736
|
+
preset?: InputDef<z.infer<DynamicInputsObjectSchema<TSchema>>>[];
|
|
741
737
|
options: DynamicInputsOptions$1<TSchema>;
|
|
742
738
|
}
|
|
743
|
-
declare function dynamicInputs$1<TSchema extends ZodObject<any>>(params: DynamicInputsParams<TSchema>): InputDef<
|
|
744
|
-
declare function dynamicInputs$1<TRawSchema extends ZodType
|
|
739
|
+
declare function dynamicInputs$1<TSchema extends z.ZodObject<any>>(params: DynamicInputsParams<TSchema>): InputDef<z.infer<TSchema>>[];
|
|
740
|
+
declare function dynamicInputs$1<TRawSchema extends z.ZodType>(params: DynamicInputsParams<TRawSchema>): InputDef<z.infer<DynamicInputsObjectSchema<TRawSchema>>>[];
|
|
745
741
|
//#endregion
|
|
746
742
|
//#region src/rhf/dynamicInputs.d.ts
|
|
747
|
-
type RHFRender<TSchema extends ZodObject<Record<string, ZodType
|
|
748
|
-
control: UseFormReturn<
|
|
749
|
-
name: keyof
|
|
750
|
-
}, form: UseFormReturn<
|
|
751
|
-
type DynamicInputsOptions<TSchema extends ZodType
|
|
743
|
+
type RHFRender<TSchema extends z.ZodObject<Record<string, z.ZodType>>> = (formControl: {
|
|
744
|
+
control: UseFormReturn<z.infer<TSchema>>["control"];
|
|
745
|
+
name: keyof z.infer<TSchema>;
|
|
746
|
+
}, form: UseFormReturn<z.infer<TSchema>>) => ReactElement;
|
|
747
|
+
type DynamicInputsOptions<TSchema extends z.ZodType> = Omit<DynamicInputsOptions$1<TSchema>, "inputs"> & {
|
|
752
748
|
inputs?: Record<string, boolean | Record<string, unknown> | RHFRender<DynamicInputsObjectSchema<TSchema>>>;
|
|
753
749
|
};
|
|
754
|
-
declare const dynamicInputs: <TSchema extends ZodType
|
|
750
|
+
declare const dynamicInputs: <TSchema extends z.ZodType>(params: {
|
|
755
751
|
schema: TSchema;
|
|
756
|
-
preset?: InputDef$1<
|
|
752
|
+
preset?: InputDef$1<z.infer<DynamicInputsObjectSchema<TSchema>>>[];
|
|
757
753
|
options: DynamicInputsOptions<TSchema>;
|
|
758
|
-
}) => InputDef$1<
|
|
754
|
+
}) => InputDef$1<z.infer<DynamicInputsObjectSchema<TSchema>>>[];
|
|
759
755
|
//#endregion
|
|
760
756
|
export { formFieldHelperDefinition as $, useIntersectionObserver as A, InputDef$1 as At, useBreakpoint as B, KeyInteractionCallback as C, BreadcrumbsVariantProps as Ct, createKeyInteractionsHandler as D, breadcrumbSegmentDefinition as Dt, UseKeyInteractionsResult as E, breadcrumbItemDefinition as Et, useForm$1 as F, popoverDefinition as G, useAutosave as H, useDeepCompareEffect as I, selectPopoverDefinition as J, selectListBoxItemDefinition as K, useDeepCompareLayoutEffect as L, useFormAutosave as M, InputsProps as Mt, UseFormProps$1 as N, getKeyInteractionAction as O, breadcrumbsDefinition as Ot, UseFormResolverProps as P, textAreaWrapperDefinition as Q, useDeepCompareMemo as R, KeyInteractionAction as S, BreadcrumbSegmentVariantProps as St, KeyInteractions as T, breadcrumbIconDefinition as Tt, statusIconDefinition as U, UseAutosaveProps as V, statusSeparatorDefinition as W, LabelConfig as X, LabelBaseProps as Y, labelDefinition as Z, ArrayUtils as _, TooltipWrapperTriggerVariantProps as _t, DynamicInputsObjectSchema as a, accordionChevronDefinition as at, useLongPressRepeat as b, BreadcrumbIconVariantProps as bt, InputComponentProps as c, accordionHeadingSubtitleDefinition as ct, ZodUtils as d, accordionItemDefinition as dt, formFieldErrorDefinition as et, RoutingUtils as f, accordionPanelContentDefinition as ft, DomUtils as g, MenuPopoverProps as gt, isEqual as h, MenuPopover as ht, DefaultComponentType as i, AccordionVariantProps as it, UseFormAutosaveProps as j, Inputs as jt, useKeyInteractions as k, Form as kt, InputDef as l, accordionHeadingTitleDefinition as lt, ObjectUtils as m, accordionTriggerDefinition as mt, dynamicInputs as n, fileUploadDropZoneDefinition as nt, DynamicInputsOptions$1 as o, accordionDefinition as ot, QueriesUtils as p, accordionPanelDefinition as pt, selectInputTagsContentWrapperDefinition as q, AllowedComponentType as r, datePickerInputContentRowDefinition as rt, dynamicInputs$1 as s, accordionHeadingDefinition as st, DynamicInputsOptions as t, formFieldHeaderDefinition as tt, InputDefBaseProps as u, accordionIconDefinition as ut, useStateAndRef as v, tooltipWrapperTriggerDefinition as vt, KeyInteractionGroup as w, breadcrumbChevronDefinition as wt, KeyInteraction as x, BreadcrumbItemVariantProps as xt, useScrollableListBox as y, BreadcrumbChevronVariantProps as yt, useDebounceCallback as z };
|
|
@@ -16,12 +16,12 @@ import { TextArea } from "./rhf/text-area.js";
|
|
|
16
16
|
import { TextInput } from "./rhf/text-input.js";
|
|
17
17
|
import { TimePicker } from "./rhf/time-picker.js";
|
|
18
18
|
import { Toggle } from "./rhf/toggle.js";
|
|
19
|
-
import { n as ZodBoolean, o as ZodNumber } from "./schemas-BkfyFvBp.js";
|
|
20
19
|
import { t as StringUtils } from "./string.utils-BPgv6QwA.js";
|
|
21
|
-
import { t as ZodUtils } from "./zod.utils-
|
|
22
|
-
import { t as dynamicInputs$1 } from "./dynamicInputs-
|
|
20
|
+
import { t as ZodUtils } from "./zod.utils-DrrPDT9v.js";
|
|
21
|
+
import { t as dynamicInputs$1 } from "./dynamicInputs-0GjoOaz5.js";
|
|
23
22
|
import { c } from "react/compiler-runtime";
|
|
24
23
|
import { jsx } from "react/jsx-runtime";
|
|
24
|
+
import { z } from "zod";
|
|
25
25
|
//#region src/rhf/Inputs.tsx
|
|
26
26
|
const componentRegistry = {
|
|
27
27
|
autocomplete: Autocomplete,
|
|
@@ -160,7 +160,7 @@ function Form(t0) {
|
|
|
160
160
|
fields[componentName] = ((t2) => {
|
|
161
161
|
const { inputType, label, placeholder, ...props } = t2;
|
|
162
162
|
const schemaType = ZodUtils.unwrapZodType(schema.shape[field]);
|
|
163
|
-
const type = inputType ?? (schemaType instanceof ZodBoolean ? "toggle" : schemaType instanceof ZodNumber ? "numberInput" : "textInput");
|
|
163
|
+
const type = inputType ?? (schemaType instanceof z.ZodBoolean ? "toggle" : schemaType instanceof z.ZodNumber ? "numberInput" : "textInput");
|
|
164
164
|
return /* @__PURE__ */ jsx(InputItem, {
|
|
165
165
|
form,
|
|
166
166
|
inputDef: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as FileUploadBaseProps } from "./fileUpload.types-
|
|
2
|
-
import "./FileUpload-
|
|
1
|
+
import { n as FileUploadBaseProps } from "./fileUpload.types-BMs6Zkhr.js";
|
|
2
|
+
import "./FileUpload-B1L78k7y.js";
|
|
3
3
|
import { t as ControlProps } from "./form.types-ZNGbcqJS.js";
|
|
4
4
|
import { FieldValues } from "react-hook-form";
|
|
5
5
|
//#region src/entries/rhf/file-upload.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as DropZoneProps, o as FileTriggerProps } from "./types-ZbFfCz06.js";
|
|
2
2
|
import { r as ButtonProps } from "./Button-D0M9lMOR.js";
|
|
3
|
-
import { n as FieldValues } from "./form.binding-
|
|
4
|
-
import { t as ControlProps } from "./form.types-
|
|
3
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
4
|
+
import { t as ControlProps } from "./form.types-CefwT7Po.js";
|
|
5
5
|
import { n as FormFieldProps } from "./FormField-Iy2O8A4g.js";
|
|
6
6
|
import { ReactNode, Ref } from "react";
|
|
7
7
|
//#region src/types/error-handling.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
import { DeepKeys, DeepValue, ReactFormExtendedApi } from "@tanstack/react-form";
|
|
3
3
|
//#region src/hooks/useForm.d.ts
|
|
4
4
|
type FormMode = "all" | "onBlur" | "onChange" | "onSubmit" | "onTouched";
|
|
@@ -33,9 +33,12 @@ interface UseFormProps<TFieldValues, TTransformedValues = TFieldValues> {
|
|
|
33
33
|
onSubmitAsync?: (props: {
|
|
34
34
|
value: TFieldValues;
|
|
35
35
|
}) => Promise<unknown>;
|
|
36
|
-
zodSchema?: ZodType<TTransformedValues, TFieldValues>;
|
|
36
|
+
zodSchema?: z.ZodType<TTransformedValues, TFieldValues>;
|
|
37
37
|
}
|
|
38
|
-
declare function useForm$1<
|
|
38
|
+
declare function useForm$1<TSchema extends z.ZodType<Record<string, unknown>, Record<string, unknown>>, _TContext = unknown>(props: UseFormProps<z.input<TSchema>, z.output<TSchema>> & {
|
|
39
|
+
zodSchema: TSchema;
|
|
40
|
+
}): UIForm<z.input<TSchema>>;
|
|
41
|
+
declare function useForm$1<TFieldValues extends Record<string, unknown> = Record<string, unknown>, _TContext = unknown, TTransformedValues = TFieldValues>(props?: UseFormProps<TFieldValues, TTransformedValues>): UIForm<TFieldValues>;
|
|
39
42
|
declare const useFormValue: <TFieldValues extends Record<string, unknown>, TSelected>(form: UIForm<TFieldValues>, selector: (values: TFieldValues) => TSelected) => TSelected;
|
|
40
43
|
declare const useFormState: <TFieldValues extends Record<string, unknown>, TSelected>(form: UIForm<TFieldValues>, selector: (state: UIForm<TFieldValues>["state"]) => TSelected) => TSelected;
|
|
41
44
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DeepValue, c as UIForm, i as DeepKeys } from "./form.binding-
|
|
1
|
+
import { a as DeepValue, c as UIForm, i as DeepKeys } from "./form.binding-QO3Py45C.js";
|
|
2
2
|
//#region src/components/inputs/shared/form.types.d.ts
|
|
3
3
|
type ControlKeys<TProps, TValueProp extends keyof TProps = "value" extends keyof TProps ? "value" : never> = TValueProp | "onChange" | "onBlur";
|
|
4
4
|
interface FormControl<TFieldValues extends Record<string, unknown>, TType> {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useFilters, t as FilterStore } from "../useFilters-
|
|
1
|
+
import { n as useFilters, t as FilterStore } from "../useFilters-BxRScJdn.js";
|
|
2
2
|
export { type FilterStore, useFilters };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as useFilters } from "../useFilters-
|
|
1
|
+
import { t as useFilters } from "../useFilters-20jpzc29.js";
|
|
2
2
|
export { useFilters };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as useLocalStorage } from "../useLocalStorage-
|
|
1
|
+
import { t as useLocalStorage } from "../useLocalStorage-DGsBUCT6.js";
|
|
2
2
|
export { useLocalStorage };
|