@povio/ui 3.4.0-rc.37 → 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/{Accordion-KHMSEFyK.d.ts → Accordion-DonRhvvW.d.ts} +1 -1
- package/dist/{ActionModal-C4lfhfPx.d.ts → ActionModal-CKS0t-n3.d.ts} +1 -1
- package/dist/{Autocomplete-0tckACUz.d.ts → Autocomplete-CWiSRejc.d.ts} +3 -3
- package/dist/{Breadcrumbs-JQIFk783.d.ts → Breadcrumbs-C46_H95J.d.ts} +2 -2
- package/dist/{Button-OxjPE7Hf.d.ts → Button-D0M9lMOR.d.ts} +3 -3
- package/dist/{Checkbox-Di3VlWJj.d.ts → Checkbox-BIZoNFiX.d.ts} +3 -3
- package/dist/{CheckboxGroup-5r9b-9qT.d.ts → CheckboxGroup-U4poUqlk.d.ts} +4 -4
- package/dist/{DatePicker-COJoYiqp.d.ts → DatePicker-IZwn9hAk.d.ts} +5 -5
- package/dist/{DatePickerInput-BJi1U0fr.d.ts → DatePickerInput-B7yVoI9Y.d.ts} +3 -3
- package/dist/{DateRangePicker-C8hu6_ms.d.ts → DateRangePicker-DLuRwuw1.d.ts} +6 -5
- package/dist/{DateTimePicker-BPCAME01.d.ts → DateTimePicker-Co6UXSVA.d.ts} +6 -5
- package/dist/{FileUpload-Cn2Fel_W.d.ts → FileUpload-B1L78k7y.d.ts} +2 -2
- package/dist/{FileUploadContainer-Cg1UdVE5.d.ts → FileUploadContainer-CLPREIin.d.ts} +1 -1
- package/dist/{Form-D0y6YSfq.d.ts → Form-fI9WMU9d.d.ts} +7 -7
- package/dist/FormField-Iy2O8A4g.d.ts +37 -0
- package/dist/{IconButton-Dv45TT1w.d.ts → IconButton-CUpL6CsP.d.ts} +2 -2
- package/dist/{InlineIconButton-DvsOdnfE.d.ts → InlineIconButton-AQ8SViM3.d.ts} +3 -3
- package/dist/InputContent-jcMfOzpN.d.ts +27 -0
- package/dist/{InputUpload-CR7mp6ED.d.ts → InputUpload-RPnj3b1Y.d.ts} +4 -4
- package/dist/Inputs-a9CXrVRS.d.ts +13 -0
- package/dist/{Link-Bz8vOksk.d.ts → Link-CKi4C00S.d.ts} +4 -2
- package/dist/{Menu-ucX0h-jq.d.ts → Menu-BHpiqpJ9.d.ts} +5 -2
- package/dist/{MenuItem--lQvt0VV.d.ts → MenuItem-DLKC94Qs.d.ts} +1 -1
- package/dist/{Modal-9GwkBJOj.d.ts → Modal-BfN_MfR-.d.ts} +1 -1
- package/dist/{NumberInput-Cr_nD98h.d.ts → NumberInput-gqs4vYJf.d.ts} +5 -4
- package/dist/{NumberRangeInput-Dgm-8DFi.d.ts → NumberRangeInput-CMHI9yks.d.ts} +4 -4
- package/dist/{Pagination-BBnE2yzX.d.ts → Pagination-uuqyFAu_.d.ts} +1 -1
- package/dist/{PaginationList-DhwiyUOh.d.ts → PaginationList-CmZBILfU.d.ts} +1 -1
- package/dist/{PasswordInput-DjDWoOHW.d.ts → PasswordInput-CcoU8g5c.d.ts} +3 -3
- package/dist/{Pill-C0Ubkm_y.d.ts → Pill-vCBJdOTY.d.ts} +1 -1
- package/dist/{PillButton-MeVkDMKW.d.ts → PillButton-CEF431l4.d.ts} +1 -1
- package/dist/{QuerySelect-tupQOlAT.d.ts → QuerySelect-D_vXxG1S.d.ts} +4 -4
- package/dist/RadioGroup-Cs718lkQ.d.ts +24 -0
- package/dist/{ResponsivePopover-B-Z9sFxq.d.ts → ResponsivePopover-BmURECUv.d.ts} +1 -1
- package/dist/{Segment-D6zpeIiW.d.ts → Segment-C_Vbrl9f.d.ts} +3 -3
- package/dist/{Select-Do5qWHLj.d.ts → Select-DIso4xMG.d.ts} +3 -3
- package/dist/{SelectBase-aSvWd7Cx.d.ts → SelectBase-72enBk-1.d.ts} +36 -37
- package/dist/{Slider-CdZdFERe.d.ts → Slider-Baw84mjN.d.ts} +4 -4
- package/dist/{SplitButton-DxrWH3EX.d.ts → SplitButton-CR4psHKW.d.ts} +3 -3
- package/dist/{Tag-DkTx1S7H.d.ts → Tag-DUvBTljf.d.ts} +1 -1
- package/dist/{TextArea-WosRv99w.d.ts → TextArea-vdp0uSFx.d.ts} +4 -4
- package/dist/{TextButton-CJm2kbLZ.d.ts → TextButton-cigitfeH.d.ts} +3 -3
- package/dist/{TextEditor-CI9MAPyT.d.ts → TextEditor-B7vdoTeN.d.ts} +3 -3
- package/dist/TextInput-Dxq5XKdp.d.ts +27 -0
- package/dist/{TimePicker-DivbHhCw.d.ts → TimePicker-B_atBC0F.d.ts} +4 -4
- package/dist/Toast-DL8_g0WV.d.ts +16 -0
- package/dist/Toggle-CaBvb0l0.d.ts +19 -0
- package/dist/{ToggleButton-C0aNgZdw.d.ts → ToggleButton-3lINwoaV.d.ts} +2 -2
- package/dist/{Tooltip-BIoJ7tNr.d.ts → Tooltip-D1oFPqFF.d.ts} +1 -1
- package/dist/{autocomplete-bNuG6_dG.d.ts → autocomplete-CQqxdk49.d.ts} +3 -3
- package/dist/button-BQmy1LZS.d.ts +1 -0
- package/dist/{checkbox-BYnCRnOf.d.ts → checkbox-Dx7xlf6g.d.ts} +1 -1
- package/dist/{checkbox-group-CeIFa44k.d.ts → checkbox-group-C4afLmyg.d.ts} +1 -1
- package/dist/components/accordion.d.ts +1 -1
- package/dist/components/action-modal.d.ts +1 -1
- package/dist/components/autocomplete.d.ts +1 -1
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/button.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/form-field.d.ts +1 -1
- package/dist/components/icon-button.d.ts +1 -1
- package/dist/components/inline-icon-button.d.ts +1 -1
- package/dist/components/input-upload.d.ts +1 -1
- package/dist/components/link.d.ts +2 -2
- package/dist/components/menu.d.ts +2 -2
- package/dist/components/modal.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/pagination-list.d.ts +1 -1
- package/dist/components/pagination.d.ts +1 -1
- package/dist/components/password-input.d.ts +1 -1
- package/dist/components/pill-button.d.ts +1 -1
- package/dist/components/pill.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/responsive-popover.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/split-button.d.ts +1 -1
- package/dist/components/tag.d.ts +1 -1
- package/dist/components/text-area.d.ts +1 -1
- package/dist/components/text-button.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/toast.d.ts +2 -1
- package/dist/components/toggle-button.d.ts +1 -1
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/use-toast.d.ts +1 -1
- package/dist/config/confirmation.d.ts +1 -1
- package/dist/config/link-context.d.ts +2 -2
- package/dist/config/theme-context.d.ts +1 -1
- package/dist/config/theme-context.js +1 -1
- package/dist/config/ui-config.d.ts +2 -2
- package/dist/{confirmation.context-CLV-kSkd.d.ts → confirmation.context-D_kJeU8m.d.ts} +1 -1
- package/dist/{date-picker-gLc7aPL7.d.ts → date-picker-BT9DHqNa.d.ts} +1 -1
- package/dist/{date-range-picker-Vk7K6noM.d.ts → date-range-picker-VxlXnCVb.d.ts} +1 -1
- package/dist/{date-time-picker-Db_pMYsD.d.ts → date-time-picker-HxtcGQjQ.d.ts} +1 -1
- package/dist/{dynamicInputs-D8j0ko24.js → dynamicInputs-0GjoOaz5.js} +14 -14
- package/dist/{dynamicInputs-i58CWBjC.d.ts → dynamicInputs-Be0THQ7Z.d.ts} +135 -132
- package/dist/{dynamicInputs-4JB41qRW.js → dynamicInputs-bhlywWDy.js} +4 -4
- package/dist/{file-upload-JIICz2sD.d.ts → file-upload-CNJFJ3Jx.d.ts} +2 -2
- package/dist/{fileUpload.types-DNAlG2R3.d.ts → fileUpload.types-BMs6Zkhr.d.ts} +5 -5
- 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-DCUSluLL.d.ts +269 -0
- package/dist/index.d.ts +76 -73
- package/dist/index.js +5 -5
- package/dist/{input-upload-Bm68Vqws.d.ts → input-upload-D3IM2ZuK.d.ts} +1 -1
- package/dist/{link.context-BUgF4OQ8.d.ts → link.context-C1RcdC0i.d.ts} +1 -1
- package/dist/{number-input-0eEiBuYH.d.ts → number-input-nwfbc3kN.d.ts} +1 -1
- package/dist/{number-range-input-Xe0GcGzn.d.ts → number-range-input-BxoPQzi8.d.ts} +1 -1
- package/dist/{password-input-Dzt77vHH.d.ts → password-input-BEneLWqN.d.ts} +1 -1
- package/dist/{query-autocomplete-CHtcx_ND.d.ts → query-autocomplete-rqGMbEP9.d.ts} +2 -2
- package/dist/{query-select-CD0iFQqR.d.ts → query-select-DbQpRcE3.d.ts} +3 -3
- package/dist/{queryAutocomplete.types-DaTDttX5.d.ts → queryAutocomplete.types-Cnn4GjUo.d.ts} +4 -4
- package/dist/{radio-group-Bhnx7pCI.d.ts → radio-group-Cc6b39Jt.d.ts} +1 -1
- package/dist/{RadioGroup-iry4UYlW.d.ts → radio.cva-9lpsise2.d.ts} +1 -23
- 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 +76 -73
- package/dist/rhf.js +5 -5
- package/dist/{segment-CK9gjZ8s.d.ts → segment-Csrt70e1.d.ts} +2 -2
- package/dist/{segment.types-CCpnAbOH.d.ts → segment.types-BAFG_n38.d.ts} +3 -3
- package/dist/{select-D80pWSgi.d.ts → select-v-_bJmJ_.d.ts} +3 -3
- package/dist/{slider-MG-JqKNN.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 -2
- 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 +61 -58
- package/dist/tanstack.js +6 -6
- package/dist/{text-area-BOlfnGaF.d.ts → text-area-CYY-d5HB.d.ts} +1 -1
- package/dist/{text-editor-CQGYgGI3.d.ts → text-editor-Bz57chW2.d.ts} +1 -1
- package/dist/text-editor.d.ts +1 -1
- package/dist/{text-input-JUX2SUzO.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-Dm642_yK.d.ts → time-picker-CjqmM5sQ.d.ts} +1 -1
- package/dist/{Toast-JL9yaI35.d.ts → toast.cva-C1ZPw_oP.d.ts} +1 -15
- package/dist/{toggle-IhObgudF.d.ts → toggle-BYNFK_xQ.d.ts} +1 -1
- package/dist/{Toggle-vHKDihtx.d.ts → toggle.cva-2CGLc8aa.d.ts} +1 -18
- package/dist/types-BT18i837.d.ts +69 -0
- package/dist/{types-BSiv-Igp.d.ts → types-ZbFfCz06.d.ts} +16 -343
- package/dist/uiConfig.context-Bjb9TQ6Y.d.ts +126 -0
- 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-CFHbvYvu.d.ts → useTableNav-DZjPiQUb.d.ts} +36 -19
- package/dist/{useToast-B55ZUvwy.d.ts → useToast-q70ayd29.d.ts} +1 -1
- package/dist/zod.utils-DrrPDT9v.js +24 -0
- package/package.json +4 -4
- package/dist/FormField-CpPQoyv_.d.ts +0 -81
- package/dist/HeaderText-BrZaEuIn.d.ts +0 -19
- package/dist/Inputs-Cuxfe-fC.d.ts +0 -13
- package/dist/button-CAOolCjz.d.ts +0 -1
- package/dist/schemas-BkfyFvBp.js +0 -4004
- package/dist/schemas-CAtYiHoz.d.ts +0 -2127
- package/dist/uiConfig.context-BLXZG1Mu.d.ts +0 -90
- 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 = {};
|
|
@@ -1,108 +1,107 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./types-BT18i837.js";
|
|
2
|
+
import { d as PopoverProps, x as Key } from "./types-ZbFfCz06.js";
|
|
2
3
|
import { n as StyleMergeUtils, t as UIOverrides } from "./uiOverrides.context-BdokYcGO.js";
|
|
3
|
-
import "./Link-
|
|
4
|
-
import "./Breadcrumbs-
|
|
4
|
+
import "./Link-CKi4C00S.js";
|
|
5
|
+
import "./Breadcrumbs-C46_H95J.js";
|
|
5
6
|
import "./typography.cva-7RYwLrA7.js";
|
|
6
7
|
import "./button.cva-zMNkoZH8.js";
|
|
7
|
-
import "./IconButton-
|
|
8
|
-
import "./InlineIconButton-
|
|
8
|
+
import "./IconButton-CUpL6CsP.js";
|
|
9
|
+
import "./InlineIconButton-AQ8SViM3.js";
|
|
9
10
|
import "./pillButton.cva-Da0WFN39.js";
|
|
10
|
-
import "./PillButton-
|
|
11
|
-
import { r as MenuProps } from "./Menu-
|
|
12
|
-
import "./SplitButton-
|
|
13
|
-
import "./Button-
|
|
14
|
-
import "./TextButton-
|
|
15
|
-
import "./ToggleButton-
|
|
16
|
-
import {
|
|
17
|
-
import { c as UIForm, n as FieldValues$1, r as FormInstance } from "./form.binding-DWlFTecs.js";
|
|
11
|
+
import "./PillButton-CEF431l4.js";
|
|
12
|
+
import { r as MenuProps } from "./Menu-BHpiqpJ9.js";
|
|
13
|
+
import "./SplitButton-CR4psHKW.js";
|
|
14
|
+
import "./Button-D0M9lMOR.js";
|
|
15
|
+
import "./TextButton-cigitfeH.js";
|
|
16
|
+
import "./ToggleButton-3lINwoaV.js";
|
|
17
|
+
import { c as UIForm, n as FieldValues$1, r as FormInstance } from "./form.binding-QO3Py45C.js";
|
|
18
18
|
import "./checkbox.cva-Caaf2Ysq.js";
|
|
19
|
-
import { a as ControlledCheckboxProps } from "./Checkbox-
|
|
20
|
-
import
|
|
19
|
+
import { a as ControlledCheckboxProps } from "./Checkbox-BIZoNFiX.js";
|
|
20
|
+
import "./FormField-Iy2O8A4g.js";
|
|
21
21
|
import "./input.cva-CfgCOIQW.js";
|
|
22
|
-
import { r as ControlledCheckboxGroupProps } from "./CheckboxGroup-
|
|
23
|
-
import "./FileUpload-
|
|
24
|
-
import "./FileUploadContainer-
|
|
25
|
-
import "./InputUpload-
|
|
26
|
-
import { r as NumberInputComponent } from "./NumberInput-
|
|
27
|
-
import { t as ControlledNumberRangeInputProps } from "./NumberRangeInput-
|
|
28
|
-
import {
|
|
29
|
-
import { t as
|
|
30
|
-
import "./
|
|
31
|
-
import
|
|
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";
|
|
31
|
+
import "./radio.cva-9lpsise2.js";
|
|
32
|
+
import { s as SelectItem, t as DefaultInitialSelectItem } from "./SelectBase-72enBk-1.js";
|
|
32
33
|
import { n as HasRequiredProperty } from "./common-UBFya8WY.js";
|
|
33
|
-
import { n as AutocompleteProps, r as ControlledAutocompleteProps } from "./Autocomplete-
|
|
34
|
-
import { n as QueryFn, t as QueryAutocompleteProps } from "./queryAutocomplete.types-
|
|
35
|
-
import { r as SelectProps, t as ControlledSelectProps } from "./Select-
|
|
36
|
-
import { n as QuerySelectProps, r as QueryFn$1 } from "./QuerySelect-
|
|
37
|
-
import { t as ControlledSliderProps } from "./Slider-
|
|
38
|
-
import
|
|
39
|
-
import "./
|
|
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";
|
|
39
|
+
import "./toggle.cva-2CGLc8aa.js";
|
|
40
|
+
import { t as ControlledToggleProps } from "./Toggle-CaBvb0l0.js";
|
|
41
|
+
import "./Modal-BfN_MfR-.js";
|
|
40
42
|
import "./Typography-BiHrVFpz.js";
|
|
41
|
-
import "./ActionModal-
|
|
43
|
+
import "./ActionModal-CKS0t-n3.js";
|
|
42
44
|
import "./BottomSheet.lazy-DT02808T.js";
|
|
43
45
|
import "./Drawer-DnSLe85M.js";
|
|
44
|
-
import "./ResponsivePopover-
|
|
45
|
-
import "./Tooltip-
|
|
46
|
+
import "./ResponsivePopover-BmURECUv.js";
|
|
47
|
+
import "./Tooltip-D1oFPqFF.js";
|
|
46
48
|
import "./TooltipEllipsis-Di9Dvd4x.js";
|
|
47
|
-
import "./PaginationList-
|
|
48
|
-
import "./Pagination-
|
|
49
|
+
import "./PaginationList-CmZBILfU.js";
|
|
50
|
+
import "./Pagination-uuqyFAu_.js";
|
|
49
51
|
import "./Alert-C0GAvkdO.js";
|
|
50
52
|
import "./Loader-Sbr1b0iU.js";
|
|
51
|
-
import "./
|
|
52
|
-
import "./
|
|
53
|
-
import "./
|
|
54
|
-
import "./
|
|
55
|
-
import "./
|
|
56
|
-
import "./
|
|
57
|
-
import
|
|
58
|
-
import { t as
|
|
59
|
-
import { t as
|
|
53
|
+
import "./toast.cva-C1ZPw_oP.js";
|
|
54
|
+
import "./Toast-DL8_g0WV.js";
|
|
55
|
+
import "./useToast-q70ayd29.js";
|
|
56
|
+
import "./Pill-vCBJdOTY.js";
|
|
57
|
+
import "./Tag-DUvBTljf.js";
|
|
58
|
+
import "./Accordion-DonRhvvW.js";
|
|
59
|
+
import "./confirmation.context-D_kJeU8m.js";
|
|
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";
|
|
60
63
|
import "./date-time.utils-Cu9TVj46.js";
|
|
61
64
|
import "./lucide-react-BJRvqSeV.js";
|
|
62
|
-
import "./link.context-
|
|
63
|
-
import "./MenuItem
|
|
65
|
+
import "./link.context-C1RcdC0i.js";
|
|
66
|
+
import "./MenuItem-DLKC94Qs.js";
|
|
64
67
|
import "./ProgressBar-DG-ClG9v.js";
|
|
65
|
-
import { t as Autocomplete } from "./autocomplete-
|
|
66
|
-
import { t as Checkbox } from "./checkbox-
|
|
67
|
-
import { t as CheckboxGroup } from "./checkbox-group-
|
|
68
|
-
import { n as DatePicker } from "./date-picker-
|
|
69
|
-
import { n as DateRangePicker } from "./date-range-picker-
|
|
70
|
-
import { n as DateTimePicker } from "./date-time-picker-
|
|
71
|
-
import "./file-upload-
|
|
72
|
-
import "./input-upload-
|
|
73
|
-
import { n as NumberInput } from "./number-input-
|
|
74
|
-
import { n as NumberRangeInput } from "./number-range-input-
|
|
75
|
-
import { n as PasswordInput } from "./password-input-
|
|
76
|
-
import { t as QueryAutocomplete } from "./query-autocomplete-
|
|
77
|
-
import { t as QuerySelect } from "./query-select-
|
|
78
|
-
import "./radio-group-
|
|
79
|
-
import "./segment.types-
|
|
80
|
-
import { n as Segment } from "./segment-
|
|
81
|
-
import { n as Select } from "./select-
|
|
82
|
-
import { n as Slider } from "./slider-
|
|
83
|
-
import { n as TextArea } from "./text-area-
|
|
84
|
-
import "./text-editor-
|
|
85
|
-
import { n as TextInput } from "./text-input-
|
|
86
|
-
import { t as ControlledTimePickerProps } from "./TimePicker-
|
|
87
|
-
import { n as TimePicker } from "./time-picker-
|
|
88
|
-
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";
|
|
89
92
|
import "./Stepper-JUO4MbZx.js";
|
|
90
|
-
import "./
|
|
91
|
-
import "./useTableNav-CFHbvYvu.js";
|
|
93
|
+
import "./useTableNav-DZjPiQUb.js";
|
|
92
94
|
import "./router.context-BOYRh2p9.js";
|
|
93
|
-
import "./theme.context-
|
|
94
|
-
import "./uiConfig.context-
|
|
95
|
+
import "./theme.context-B10jqjvZ.js";
|
|
96
|
+
import "./uiConfig.context-Bjb9TQ6Y.js";
|
|
97
|
+
import "./useFilters-BxRScJdn.js";
|
|
98
|
+
import "./useLocalStorage-DGsBUCT6.js";
|
|
95
99
|
import "./useTranslationMemo-Dy3p6m1g.js";
|
|
96
|
-
import { t as Segment$1 } from "./Segment-
|
|
100
|
+
import { t as Segment$1 } from "./Segment-C_Vbrl9f.js";
|
|
97
101
|
import { ComponentProps, DependencyList, EffectCallback, JSXElementConstructor, KeyboardEvent, ReactElement, ReactNode, RefObject, SetStateAction, SyntheticEvent } from "react";
|
|
98
102
|
import { BrowserNativeObject, ExtractObjects, FieldValues, NestedValue, SubmitErrorHandler, SubmitHandler, UseFormProps, UseFormReturn } from "react-hook-form";
|
|
103
|
+
import { z } from "zod";
|
|
99
104
|
import { QueryClient } from "@tanstack/react-query";
|
|
100
|
-
//#region ../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/iso.d.cts
|
|
101
|
-
interface ZodISODateTime extends ZodStringFormat {
|
|
102
|
-
_zod: $ZodISODateTimeInternals;
|
|
103
|
-
}
|
|
104
|
-
declare const ZodISODateTime: $constructor<ZodISODateTime>;
|
|
105
|
-
//#endregion
|
|
106
105
|
//#region src/rhf/Inputs.d.ts
|
|
107
106
|
declare const componentRegistry$1: {
|
|
108
107
|
readonly autocomplete: typeof Autocomplete;
|
|
@@ -144,17 +143,17 @@ interface InputsProps<TFieldValues extends Record<string, any>> {
|
|
|
144
143
|
children?: (inputs: Record<keyof TFieldValues, ReactNode>) => ReactNode;
|
|
145
144
|
}
|
|
146
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;
|
|
147
|
-
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: {
|
|
148
147
|
inputType?: InputComponentType$1;
|
|
149
148
|
label: string;
|
|
150
149
|
placeholder?: string;
|
|
151
150
|
[key: string]: unknown;
|
|
152
151
|
}) => ReactNode; };
|
|
153
|
-
declare function Form<TSchema extends ZodObject<any>>({ form, schema, onSubmit, onError, className, children }: {
|
|
154
|
-
form: UseFormReturn<
|
|
152
|
+
declare function Form<TSchema extends z.ZodObject<any>>({ form, schema, onSubmit, onError, className, children }: {
|
|
153
|
+
form: UseFormReturn<z.infer<TSchema>>;
|
|
155
154
|
schema: TSchema;
|
|
156
|
-
onSubmit: SubmitHandler<
|
|
157
|
-
onError?: SubmitErrorHandler<
|
|
155
|
+
onSubmit: SubmitHandler<z.infer<TSchema>>;
|
|
156
|
+
onError?: SubmitErrorHandler<z.infer<TSchema>>;
|
|
158
157
|
className?: string;
|
|
159
158
|
children: (components: FieldComponents<TSchema>) => ReactNode;
|
|
160
159
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -456,6 +455,10 @@ interface UseAutosaveProps<TFieldValues extends FieldValues = FieldValues, TCont
|
|
|
456
455
|
}
|
|
457
456
|
declare function useAutosave<TFieldValues extends FieldValues = FieldValues, TContext = any, TTransformedValues = TFieldValues, TResponse = unknown>({ form, delay, enabled, trigger, onSave, onSaveSuccess }: UseAutosaveProps<TFieldValues, TContext, TTransformedValues, TResponse>): void;
|
|
458
457
|
//#endregion
|
|
458
|
+
//#region src/hooks/useBreakpoint.d.ts
|
|
459
|
+
type Breakpoint = "sm" | "md" | "lg" | "xl";
|
|
460
|
+
declare function useBreakpoint(breakpointKey: Breakpoint): boolean;
|
|
461
|
+
//#endregion
|
|
459
462
|
//#region src/hooks/useDebounceCallback.d.ts
|
|
460
463
|
declare function useDebounceCallback<T extends (...args: any[]) => any>(callback?: T, { delay }?: {
|
|
461
464
|
delay?: number;
|
|
@@ -474,7 +477,7 @@ type DeepNullablePartial<T> = T extends BrowserNativeObject | NestedValue ? T :
|
|
|
474
477
|
type AsyncDefaultValues<TFieldValues> = (payload?: unknown) => Promise<TFieldValues>;
|
|
475
478
|
type NullableDefaultValues<TFieldValues> = TFieldValues extends AsyncDefaultValues<TFieldValues> ? DeepNullablePartial<Awaited<TFieldValues>> : DeepNullablePartial<TFieldValues>;
|
|
476
479
|
type UseFormResolverProps<TFieldValues extends FieldValues, TTransformedValues = TFieldValues> = {
|
|
477
|
-
zodSchema: ZodType
|
|
480
|
+
zodSchema: z.ZodType<TTransformedValues, TFieldValues>;
|
|
478
481
|
resolver?: never;
|
|
479
482
|
} | {
|
|
480
483
|
zodSchema?: never;
|
|
@@ -586,23 +589,23 @@ declare namespace RoutingUtils {
|
|
|
586
589
|
//#endregion
|
|
587
590
|
//#region src/utils/zod.utils.d.ts
|
|
588
591
|
declare namespace ZodUtils {
|
|
589
|
-
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;
|
|
590
593
|
type IsZodType<T, Z> = UnwrapZod<T> extends Z ? true : false;
|
|
591
|
-
type IsZodNumber<T> = IsZodType<T, ZodNumber>;
|
|
592
|
-
type IsZodEnum<T> = IsZodType<T, ZodEnum<any>>;
|
|
593
|
-
type IsZodUUID<T> = IsZodType<T, ZodUUID>;
|
|
594
|
-
type IsZodDateTime<T> = IsZodType<T, ZodISODateTime>;
|
|
595
|
-
type IsZodString<T> = IsZodType<T, ZodString>;
|
|
596
|
-
type IsZodEmail<T> = IsZodType<T, ZodEmail>;
|
|
597
|
-
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;
|
|
598
|
-
type IsZodObject<T> = IsZodType<T, ZodObject<any>>;
|
|
599
|
-
type IsZodArray<T> = IsZodType<T, ZodArray<any>>;
|
|
600
|
-
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;
|
|
601
|
-
type ZodTypeSwitch<TZodType extends ZodType
|
|
602
|
-
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>>;
|
|
603
606
|
/** After stripping optional/nullable wrappers, the inner schema must be a `ZodObject` (e.g. for `.shape`, forms, dynamicInputs). */
|
|
604
|
-
const unwrapToZodObject: (schema: ZodType
|
|
605
|
-
const isDateRange: (schemaType:
|
|
607
|
+
const unwrapToZodObject: (schema: z.ZodType) => z.ZodObject<any>;
|
|
608
|
+
const isDateRange: (schemaType: z.core.$ZodType) => boolean;
|
|
606
609
|
}
|
|
607
610
|
//#endregion
|
|
608
611
|
//#region src/components/inputs/Inputs/InputItem.d.ts
|
|
@@ -678,8 +681,8 @@ declare const defaultComponentTypes: {
|
|
|
678
681
|
readonly uuid: "select";
|
|
679
682
|
readonly unknown: "unknown";
|
|
680
683
|
};
|
|
681
|
-
type DefaultComponentType<TZodType extends ZodType
|
|
682
|
-
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, {
|
|
683
686
|
datetime: "datePicker" | "dateTimePicker" | "timePicker";
|
|
684
687
|
dateRange: "dateRangePicker";
|
|
685
688
|
boolean: "toggle" | "checkbox";
|
|
@@ -698,27 +701,27 @@ interface DynamicInputDefBase<TProps> {
|
|
|
698
701
|
props?: Partial<TProps>;
|
|
699
702
|
inputWrapper?: InputWrapperType;
|
|
700
703
|
}
|
|
701
|
-
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]>]: {
|
|
702
705
|
type: T;
|
|
703
706
|
} & DynamicInputDefBase<InputDefBaseProps<InputComponentProps<T>>>; }[AllowedComponentType<TSchema["shape"][K]>];
|
|
704
|
-
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]>]: {
|
|
705
708
|
type?: never;
|
|
706
709
|
} & DynamicInputDefBase<InputDefBaseProps<InputComponentProps<T>>>; }[DefaultComponentType<TSchema["shape"][K]>];
|
|
707
|
-
type RenderInputDef<TSchema extends ZodObject<any>, K extends keyof
|
|
710
|
+
type RenderInputDef<TSchema extends z.ZodObject<any>, K extends keyof z.infer<TSchema>> = {
|
|
708
711
|
render: (field: {
|
|
709
|
-
form: FormInstance<
|
|
712
|
+
form: FormInstance<z.infer<TSchema>>;
|
|
710
713
|
name: K;
|
|
711
|
-
}, form: FormInstance<
|
|
714
|
+
}, form: FormInstance<z.infer<TSchema>>) => ReactElement;
|
|
712
715
|
} & DynamicInputDefBase<Record<string, never>>;
|
|
713
|
-
type DynamicInputDef<TSchema extends ZodObject<any>, K extends keyof
|
|
714
|
-
type InputsConfig<TSchema extends ZodObject<any>> = { [K in keyof
|
|
715
|
-
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>>;
|
|
716
719
|
name: K;
|
|
717
|
-
}, form: FormInstance<
|
|
720
|
+
}, form: FormInstance<z.infer<TSchema>>) => ReactElement) | boolean; };
|
|
718
721
|
type GlobalProps = { [T in Exclude<InputComponentType, "unknown">]: InputDefBaseProps<InputComponentProps<T>>; }[Exclude<InputComponentType, "unknown">];
|
|
719
|
-
type SchemaKeyOrString<TSchema extends ZodObject<any>> = keyof
|
|
720
|
-
type DynamicInputsObjectSchema<TSchema extends ZodType
|
|
721
|
-
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>> {
|
|
722
725
|
inputs?: InputsConfig<TSchema>;
|
|
723
726
|
order?: SchemaKeyOrString<TSchema>[];
|
|
724
727
|
globalProps?: Partial<GlobalProps>;
|
|
@@ -727,27 +730,27 @@ interface DynamicInputsObjectOptions<TSchema extends ZodObject<any>> {
|
|
|
727
730
|
overridePresetLocales?: boolean;
|
|
728
731
|
includeAll?: boolean;
|
|
729
732
|
}
|
|
730
|
-
type DynamicInputsOptions$1<TSchema extends ZodType
|
|
731
|
-
interface DynamicInputsParams<TSchema extends ZodType
|
|
733
|
+
type DynamicInputsOptions$1<TSchema extends z.ZodType> = DynamicInputsObjectOptions<DynamicInputsObjectSchema<TSchema>>;
|
|
734
|
+
interface DynamicInputsParams<TSchema extends z.ZodType> {
|
|
732
735
|
schema: TSchema;
|
|
733
|
-
preset?: InputDef<
|
|
736
|
+
preset?: InputDef<z.infer<DynamicInputsObjectSchema<TSchema>>>[];
|
|
734
737
|
options: DynamicInputsOptions$1<TSchema>;
|
|
735
738
|
}
|
|
736
|
-
declare function dynamicInputs$1<TSchema extends ZodObject<any>>(params: DynamicInputsParams<TSchema>): InputDef<
|
|
737
|
-
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>>>[];
|
|
738
741
|
//#endregion
|
|
739
742
|
//#region src/rhf/dynamicInputs.d.ts
|
|
740
|
-
type RHFRender<TSchema extends ZodObject<Record<string, ZodType
|
|
741
|
-
control: UseFormReturn<
|
|
742
|
-
name: keyof
|
|
743
|
-
}, form: UseFormReturn<
|
|
744
|
-
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"> & {
|
|
745
748
|
inputs?: Record<string, boolean | Record<string, unknown> | RHFRender<DynamicInputsObjectSchema<TSchema>>>;
|
|
746
749
|
};
|
|
747
|
-
declare const dynamicInputs: <TSchema extends ZodType
|
|
750
|
+
declare const dynamicInputs: <TSchema extends z.ZodType>(params: {
|
|
748
751
|
schema: TSchema;
|
|
749
|
-
preset?: InputDef$1<
|
|
752
|
+
preset?: InputDef$1<z.infer<DynamicInputsObjectSchema<TSchema>>>[];
|
|
750
753
|
options: DynamicInputsOptions<TSchema>;
|
|
751
|
-
}) => InputDef$1<
|
|
754
|
+
}) => InputDef$1<z.infer<DynamicInputsObjectSchema<TSchema>>>[];
|
|
752
755
|
//#endregion
|
|
753
|
-
export {
|
|
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,8 +1,8 @@
|
|
|
1
|
-
import { a as DropZoneProps, o as FileTriggerProps } from "./types-
|
|
2
|
-
import { r as ButtonProps } from "./Button-
|
|
3
|
-
import { n as FieldValues } from "./form.binding-
|
|
4
|
-
import { t as ControlProps } from "./form.types-
|
|
5
|
-
import { n as FormFieldProps } from "./FormField-
|
|
1
|
+
import { a as DropZoneProps, o as FileTriggerProps } from "./types-ZbFfCz06.js";
|
|
2
|
+
import { r as ButtonProps } from "./Button-D0M9lMOR.js";
|
|
3
|
+
import { n as FieldValues } from "./form.binding-QO3Py45C.js";
|
|
4
|
+
import { t as ControlProps } from "./form.types-CefwT7Po.js";
|
|
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
|
|
8
8
|
type GeneralErrorCodes = "DATA_VALIDATION_ERROR" | "NETWORK_ERROR" | "CANCELED_ERROR" | "INTERNAL_ERROR" | "UNKNOWN_ERROR";
|
|
@@ -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 };
|