@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
package/dist/tanstack.js
CHANGED
|
@@ -4,7 +4,7 @@ import { a as menuItemDefinition, i as menuDefinition, n as MenuPopover, o as me
|
|
|
4
4
|
import { a as isEqual, i as useDeepCompareMemo, n as useDeepCompareEffect, o as ObjectUtils, r as useDeepCompareLayoutEffect, t as UIConfig } from "./uiConfig.context-BG4jfp9p.js";
|
|
5
5
|
import { n as fileUploadDropZoneDefinition, t as FileUpload } from "./FileUpload-DYGyICVb.js";
|
|
6
6
|
import { t as PasswordInput } from "./PasswordInput-CMKZF3YS.js";
|
|
7
|
-
import { _ as tableRowDefinition, a as PaginatedTable, c as Table, d as CellText, f as tableCellTextDefinition, g as tableHeaderTextDefinition, h as tableHeadRowDefinition, i as dynamicColumns, l as useTableNav, m as tableHeadDataDefinition, n as useSorting, o as InfiniteTable, p as tableDataDefinition, r as usePagination, s as ColumnConfigModal, t as useTableColumnConfig, u as HeaderText } from "./useTableColumnConfig-
|
|
7
|
+
import { _ as tableRowDefinition, a as PaginatedTable, c as Table, d as CellText, f as tableCellTextDefinition, g as tableHeaderTextDefinition, h as tableHeadRowDefinition, i as dynamicColumns, l as useTableNav, m as tableHeadDataDefinition, n as useSorting, o as InfiniteTable, p as tableDataDefinition, r as usePagination, s as ColumnConfigModal, t as useTableColumnConfig, u as HeaderText } from "./useTableColumnConfig-DzdaxZ50.js";
|
|
8
8
|
import { a as checkboxDefinition, i as checkboxContentWrapperDefinition, o as checkboxGroupLabelDefinition, r as checkboxContentRowDefinition, s as checkboxIconDefinition } from "./CheckboxCheckmark-C7Oq15ms.js";
|
|
9
9
|
import { a as selectListBoxItemDefinition, c as useKeyInteractions, i as selectPopoverDefinition, l as selectInputTagsContentWrapperDefinition, o as createKeyInteractionsHandler, s as getKeyInteractionAction, u as useDebounceCallback } from "./staticSelect.utils-C_e1tJ3T.js";
|
|
10
10
|
import { a as tooltipTextDefinition, i as tooltipPointerVerticalDefinition, n as tooltipDefinition, r as tooltipPointerHorizontalDefinition, t as Tooltip } from "./Tooltip-D8YNkKCl.js";
|
|
@@ -65,7 +65,7 @@ import { ResponsivePopover } from "./components/responsive-popover.js";
|
|
|
65
65
|
import { t as TimePicker } from "./TimePicker-D1ptdYlJ.js";
|
|
66
66
|
import { FileUploadContainer } from "./components/file-upload-container.js";
|
|
67
67
|
import { t as StringUtils } from "./string.utils-BPgv6QwA.js";
|
|
68
|
-
import { t as ZodUtils } from "./zod.utils-
|
|
68
|
+
import { t as ZodUtils } from "./zod.utils-DrrPDT9v.js";
|
|
69
69
|
import { a as stepperNumberDefinition, c as stepperTitleDefinition, i as stepperItemDefinition, n as stepperDefinition, o as stepperSeparatorDefinition, r as stepperIconDefinition, s as stepperSubtextDefinition, t as Stepper } from "./Stepper-CSfhZBK1.js";
|
|
70
70
|
import { i as modalOverlayDefinition, n as modalMainDefinition, t as modalContentDefinition } from "./modal.cva-CbziPHSN.js";
|
|
71
71
|
import { t as Modal } from "./Modal-r0ucQNPK.js";
|
|
@@ -84,13 +84,13 @@ import { Pill } from "./components/pill.js";
|
|
|
84
84
|
import { t as Confirmation } from "./confirmation.context-Cj2aHpa_.js";
|
|
85
85
|
import { t as UIRouter } from "./router.context-VhvhlIvV.js";
|
|
86
86
|
import { t as useLocalStorage } from "./useLocalStorage-PlcaJ1tP.js";
|
|
87
|
-
import { t as ThemeContext } from "./theme.context-
|
|
87
|
+
import { t as ThemeContext } from "./theme.context-B3wQDJ-i.js";
|
|
88
88
|
import { t as tooltipWrapperTriggerDefinition } from "./tooltipWrapper.cva-CUu8pI-a.js";
|
|
89
|
-
import { t as dynamicInputs } from "./dynamicInputs-
|
|
89
|
+
import { t as dynamicInputs } from "./dynamicInputs-0GjoOaz5.js";
|
|
90
90
|
import { t as RoutingUtils } from "./routing.utils-UTQonIhB.js";
|
|
91
|
-
import { t as useFilters } from "./useFilters-
|
|
91
|
+
import { t as useFilters } from "./useFilters-20jpzc29.js";
|
|
92
92
|
import { n as useStateAndRef, t as DomUtils } from "./dom.utils-BOIN4YDz.js";
|
|
93
93
|
import { n as ArrayUtils, t as QueriesUtils } from "./queries.utils-CmbhAoHU.js";
|
|
94
|
-
import { a as useAutosave, i as useFormValue, n as useForm, o as Form, r as useFormState, t as useFormAutosave } from "./useFormAutosave-
|
|
94
|
+
import { a as useAutosave, i as useFormValue, n as useForm, o as Form, r as useFormState, t as useFormAutosave } from "./useFormAutosave-CBtT6V83.js";
|
|
95
95
|
import { t as Inputs } from "./Inputs-uXqCGqG4.js";
|
|
96
96
|
export { Accordion, ActionModal, Alert, ArrayUtils, Autocomplete, BottomSheet, Breadcrumbs, Button, CellText, Checkbox, CheckboxGroup, X as CloseIcon, ColumnConfigModal, Confirmation, DatePicker, DateRangePicker, DateTimePicker, DateTimeUtils, DateUtils, DomUtils, Drawer, FileUpload, FileUploadContainer, FileUtils, Form, FormField, HeaderText, IconButton, InfiniteTable, InlineIconButton, InputUpload, Inputs, IntlUtils, Link, LinkContext, Loader, Menu, MenuItem, MenuPopover, Modal, NumberInput, NumberRangeInput, ObjectUtils, PaginatedTable, Pagination, PaginationList, PasswordInput, Pill, PillButton, ProgressBar, QueriesUtils, QueryAutocomplete, QuerySelect, RadioGroup, ResponsivePopover, RoutingUtils, Segment, Select, Slider, SplitButton, Stepper, StringUtils, Table, Tag, TextArea, TextButton, TextInput, ThemeContext, TimePicker, Toast, ToastContainer, ToastProvider, Toggle, ToggleButton, Tooltip, TooltipEllipsis, Typography, UIConfig, UIOverrides, UIRouter, ZodUtils, accordionChevronDefinition, accordionDefinition, accordionHeadingDefinition, accordionHeadingSubtitleDefinition, accordionHeadingTitleDefinition, accordionIconDefinition, accordionItemDefinition, accordionPanelContentDefinition, accordionPanelDefinition, accordionTriggerDefinition, alertDefinition, breadcrumbChevronDefinition, breadcrumbIconDefinition, breadcrumbItemDefinition, breadcrumbSegmentDefinition, breadcrumbsDefinition, buttonContentDefinition, buttonDefinition, buttonIconSizeDefinition, buttonSizeDefinition, checkboxContentRowDefinition, checkboxContentWrapperDefinition, checkboxDefinition, checkboxGroupLabelDefinition, checkboxIconDefinition, compoundMapper, createKeyInteractionsHandler, datePickerInputContentRowDefinition, dynamicColumns, dynamicInputs, fileUploadDropZoneDefinition, formFieldErrorDefinition, formFieldHeaderDefinition, formFieldHelperDefinition, getKeyInteractionAction, inputBaseDefinition, inputClearClassDefinition, inputContentWrapperDefinition, inputSideDefinition, inputSizeDefinition, inputUploadButtonDefinition, inputUploadDropZoneDefinition, isEqual, labelDefinition, linkDefinition, loaderDefinition, loaderWrapperDefinition, logger, menuDefinition, menuItemDefinition, menuPopoverDefinition, menuPopoverWrapperDefinition, modalContentDefinition, modalMainDefinition, modalOverlayDefinition, ns, pillButtonContentDefinition, pillButtonDefinition, popoverDefinition, progressBarDefinition, progressBarFillDefinition, progressBarTrackDefinition, progressBarTrackWrapperDefinition, progressBarValueDefinition, radioContentRowDefinition, radioContentWrapperDefinition, radioDefinition, resources, segmentDefinition, segmentItemDefinition, selectInputTagsContentWrapperDefinition, selectListBoxItemDefinition, selectPopoverDefinition, statusIconDefinition, statusSeparatorDefinition, stepperDefinition, stepperIconDefinition, stepperItemDefinition, stepperNumberDefinition, stepperSeparatorDefinition, stepperSubtextDefinition, stepperTitleDefinition, tableCellTextDefinition, tableDataDefinition, tableHeadDataDefinition, tableHeadRowDefinition, tableHeaderTextDefinition, tableRowDefinition, tagDefinition, textAreaWrapperDefinition, toastDefinition, statusIconDefinition$1 as toastStatusIconDefinition, statusSeparatorDefinition$1 as toastStatusSeparatorDefinition, toggleDefinition, tooltipDefinition, tooltipPointerHorizontalDefinition, tooltipPointerVerticalDefinition, tooltipTextDefinition, tooltipWrapperTriggerDefinition, typographyDefinition, uiOutlineClass, useAutosave, useBreakpoint, useDebounceCallback, useDeepCompareEffect, useDeepCompareLayoutEffect, useDeepCompareMemo, useFilters, useForm, useFormAutosave, useFormState, useFormValue, useIntersectionObserver, useKeyInteractions, useLocalStorage, useLongPressRepeat, usePagination, useScrollableListBox, useSorting, useStateAndRef, useTableColumnConfig, useTableNav, useToast, useTranslationMemo };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as TextAreaProps } from "./TextArea-
|
|
1
|
+
import { r as TextAreaProps } from "./TextArea-vdp0uSFx.js";
|
|
2
2
|
import { t as ControlProps } from "./form.types-ZNGbcqJS.js";
|
|
3
3
|
import { FieldValues } from "react-hook-form";
|
|
4
4
|
//#region src/entries/rhf/text-area.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ControlProps } from "./form.types-ZNGbcqJS.js";
|
|
2
|
-
import { i as TextEditorProps } from "./TextEditor-
|
|
2
|
+
import { i as TextEditorProps } from "./TextEditor-B7vdoTeN.js";
|
|
3
3
|
import { FieldValues } from "react-hook-form";
|
|
4
4
|
//#region src/entries/rhf/text-editor.d.ts
|
|
5
5
|
type ControlledTextEditorProps<T extends FieldValues> = ControlProps<TextEditorProps, T>;
|
package/dist/text-editor.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TextEditorValue, i as TextEditorProps, n as TextEditor, t as ControlledTextEditorProps } from "./TextEditor-
|
|
1
|
+
import { a as TextEditorValue, i as TextEditorProps, n as TextEditor, t as ControlledTextEditorProps } from "./TextEditor-B7vdoTeN.js";
|
|
2
2
|
export { type ControlledTextEditorProps, TextEditor, type TextEditorProps, type TextEditorValue };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as TextInputProps } from "./TextInput-
|
|
1
|
+
import { i as TextInputProps } from "./TextInput-Dxq5XKdp.js";
|
|
2
2
|
import { t as ControlProps } from "./form.types-ZNGbcqJS.js";
|
|
3
3
|
import { FieldValues } from "react-hook-form";
|
|
4
4
|
//#region src/entries/rhf/text-input.d.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as ZodLiteral, h as output } from "./schemas-CAtYiHoz.js";
|
|
2
1
|
import { PropsWithChildren } from "react";
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
//#region src/config/theme.context.d.ts
|
|
4
4
|
declare namespace ThemeContext {
|
|
5
|
-
const ThemeSchema: ZodLiteral<"dark" | "light" | "system">;
|
|
6
|
-
export type Theme =
|
|
5
|
+
const ThemeSchema: z.ZodLiteral<"dark" | "light" | "system">;
|
|
6
|
+
export type Theme = z.infer<typeof ThemeSchema>;
|
|
7
7
|
interface ThemeContextValue {
|
|
8
8
|
theme: Theme;
|
|
9
9
|
systemTheme?: Exclude<Theme, "system">;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { d as literal } from "./schemas-BkfyFvBp.js";
|
|
2
1
|
import { t as useLocalStorage } from "./useLocalStorage-PlcaJ1tP.js";
|
|
3
2
|
import { createContext, use, useEffect, useState } from "react";
|
|
4
3
|
import { c } from "react/compiler-runtime";
|
|
5
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { z } from "zod";
|
|
6
6
|
//#region src/config/theme.context.tsx
|
|
7
7
|
let ThemeContext;
|
|
8
8
|
(function(_ThemeContext) {
|
|
9
9
|
const DEFAULT_STORAGE_KEY = "theme";
|
|
10
|
-
const ThemeSchema = literal([
|
|
10
|
+
const ThemeSchema = z.literal([
|
|
11
11
|
"light",
|
|
12
12
|
"dark",
|
|
13
13
|
"system"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as ControlProps } from "./form.types-ZNGbcqJS.js";
|
|
2
2
|
import { t as FireBlurOnChangeProps } from "./fieldAdapter-C4sDFC8f.js";
|
|
3
|
-
import { r as TimePickerProps } from "./TimePicker-
|
|
3
|
+
import { r as TimePickerProps } from "./TimePicker-B_atBC0F.js";
|
|
4
4
|
import { FieldValues } from "react-hook-form";
|
|
5
5
|
//#region src/entries/rhf/time-picker.d.ts
|
|
6
6
|
type ControlledTimePickerProps<T extends FieldValues> = ControlProps<TimePickerProps & FireBlurOnChangeProps, T>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as ToggleProps } from "./Toggle-
|
|
1
|
+
import { r as ToggleProps } from "./Toggle-CaBvb0l0.js";
|
|
2
2
|
import { t as ControlProps } from "./form.types-ZNGbcqJS.js";
|
|
3
3
|
import { t as FireBlurOnChangeProps } from "./fieldAdapter-C4sDFC8f.js";
|
|
4
4
|
import { FieldValues } from "react-hook-form";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { a as ZodNullable, c as ZodOptional, l as ZodString, n as ZodBoolean, o as ZodNumber } from "./schemas-BkfyFvBp.js";
|
|
2
1
|
import { t as UIRouter } from "./router.context-VhvhlIvV.js";
|
|
3
2
|
import { t as RoutingUtils } from "./routing.utils-UTQonIhB.js";
|
|
4
3
|
import { useEffect, useState } from "react";
|
|
5
4
|
import { c } from "react/compiler-runtime";
|
|
5
|
+
import { z } from "zod";
|
|
6
6
|
//#region src/hooks/useFilters.ts
|
|
7
7
|
function getFieldType(schema, fieldKey) {
|
|
8
8
|
if (!schema || !schema.shape) return "unknown";
|
|
9
9
|
let fieldSchema = schema.shape[fieldKey];
|
|
10
|
-
while (fieldSchema) if (fieldSchema instanceof ZodOptional || fieldSchema instanceof ZodNullable) fieldSchema = fieldSchema.unwrap();
|
|
10
|
+
while (fieldSchema) if (fieldSchema instanceof z.ZodOptional || fieldSchema instanceof z.ZodNullable) fieldSchema = fieldSchema.unwrap();
|
|
11
11
|
else break;
|
|
12
12
|
if (!fieldSchema) return "unknown";
|
|
13
|
-
if (fieldSchema instanceof ZodNumber) return "number";
|
|
14
|
-
if (fieldSchema instanceof ZodBoolean) return "boolean";
|
|
15
|
-
if (fieldSchema instanceof ZodString) return "string";
|
|
13
|
+
if (fieldSchema instanceof z.ZodNumber) return "number";
|
|
14
|
+
if (fieldSchema instanceof z.ZodBoolean) return "boolean";
|
|
15
|
+
if (fieldSchema instanceof z.ZodString) return "string";
|
|
16
16
|
return "unknown";
|
|
17
17
|
}
|
|
18
18
|
const serializeFiltersToQuery = (filterData, prefix) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
//#region src/hooks/useFilters.d.ts
|
|
3
3
|
interface FilterStore<TFilterData> {
|
|
4
4
|
filterData: TFilterData;
|
|
@@ -6,6 +6,6 @@ interface FilterStore<TFilterData> {
|
|
|
6
6
|
getFilterValue: (keys: (keyof TFilterData)[]) => Partial<TFilterData>;
|
|
7
7
|
clearAllFilters: () => void;
|
|
8
8
|
}
|
|
9
|
-
declare const useFilters: <TFilterData>(defaultFilterValues?: TFilterData, prefix?: string, schema?: ZodObject<any>) => FilterStore<TFilterData>;
|
|
9
|
+
declare const useFilters: <TFilterData>(defaultFilterValues?: TFilterData, prefix?: string, schema?: z.ZodObject<any>) => FilterStore<TFilterData>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { useFilters as n, FilterStore as t };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { a as isEqual, o as ObjectUtils } from "./uiConfig.context-BG4jfp9p.js";
|
|
2
|
-
import { t as ZodArray } from "./schemas-BkfyFvBp.js";
|
|
3
2
|
import { t as StringUtils } from "./string.utils-BPgv6QwA.js";
|
|
4
|
-
import { t as ZodUtils } from "./zod.utils-
|
|
5
|
-
import { n as getDefaultInputComponentType } from "./dynamicInputs-
|
|
3
|
+
import { t as ZodUtils } from "./zod.utils-DrrPDT9v.js";
|
|
4
|
+
import { n as getDefaultInputComponentType } from "./dynamicInputs-0GjoOaz5.js";
|
|
6
5
|
import { t as InputItem } from "./InputItem-BmdkOG5-.js";
|
|
7
6
|
import { useCallback, useEffect, useMemo, useRef } from "react";
|
|
8
7
|
import { c } from "react/compiler-runtime";
|
|
9
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
import { z } from "zod";
|
|
10
10
|
import { useForm, useStore } from "@tanstack/react-form";
|
|
11
11
|
//#region src/components/inputs/Inputs/Form.tsx
|
|
12
12
|
const createFieldComponent = (field, schemaKeyType, form) => {
|
|
@@ -17,7 +17,7 @@ const createFieldComponent = (field, schemaKeyType, form) => {
|
|
|
17
17
|
label,
|
|
18
18
|
placeholder,
|
|
19
19
|
props: {
|
|
20
|
-
...ZodUtils.unwrapZodType(schemaKeyType) instanceof ZodArray ? { selectionMode: "multiple" } : {},
|
|
20
|
+
...ZodUtils.unwrapZodType(schemaKeyType) instanceof z.ZodArray ? { selectionMode: "multiple" } : {},
|
|
21
21
|
...inputProps
|
|
22
22
|
}
|
|
23
23
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
//#region src/hooks/useLocalStorage.d.ts
|
|
3
3
|
interface IProps<ZOutput, ZInput> {
|
|
4
4
|
key: string;
|
|
5
|
-
schema: ZodType<ZOutput, ZInput>;
|
|
5
|
+
schema: z.ZodType<ZOutput, ZInput>;
|
|
6
6
|
}
|
|
7
7
|
declare const useLocalStorage: <ZOutput, ZInput>({ key, schema }: IProps<ZOutput, ZInput>) => {
|
|
8
8
|
value: ZOutput | null;
|
|
@@ -13,9 +13,8 @@ import "./i18n-BDjNuy4Z.js";
|
|
|
13
13
|
import { t as useIntersectionObserver } from "./useIntersectionObserver-DYfHnGGU.js";
|
|
14
14
|
import { t as IntlUtils } from "./intl.utils-zwAFoZ0U.js";
|
|
15
15
|
import { t as DateUtils } from "./date.utils-B8_QF9y6.js";
|
|
16
|
-
import { f as ZodISODateTime, i as ZodEnum, l as ZodString, n as ZodBoolean, o as ZodNumber, s as ZodObject, t as ZodArray } from "./schemas-BkfyFvBp.js";
|
|
17
16
|
import { t as StringUtils } from "./string.utils-BPgv6QwA.js";
|
|
18
|
-
import { t as ZodUtils } from "./zod.utils-
|
|
17
|
+
import { t as ZodUtils } from "./zod.utils-DrrPDT9v.js";
|
|
19
18
|
import { t as Modal } from "./Modal-r0ucQNPK.js";
|
|
20
19
|
import { Pagination } from "./components/pagination.js";
|
|
21
20
|
import { t as useTranslationMemo } from "./useTranslationMemo-CrZbeyBv.js";
|
|
@@ -25,6 +24,7 @@ import { Suspense, lazy, useCallback, useEffect, useMemo, useRef, useState } fro
|
|
|
25
24
|
import { c } from "react/compiler-runtime";
|
|
26
25
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
27
26
|
import { useTranslation } from "react-i18next";
|
|
27
|
+
import { z } from "zod";
|
|
28
28
|
import { createPaginatedRowModel, createSortedRowModel, flexRender, stockFeatures, tableFeatures, useTable } from "@tanstack/react-table";
|
|
29
29
|
import i18next from "i18next";
|
|
30
30
|
/**
|
|
@@ -1103,11 +1103,11 @@ const FORMAT_MAP = {
|
|
|
1103
1103
|
}
|
|
1104
1104
|
};
|
|
1105
1105
|
const ZOD_TYPE_FORMAT_MAP = [
|
|
1106
|
-
[ZodEnum, FORMAT_MAP.enum],
|
|
1107
|
-
[ZodNumber, FORMAT_MAP.number],
|
|
1108
|
-
[ZodString, FORMAT_MAP.string],
|
|
1109
|
-
[ZodBoolean, FORMAT_MAP.boolean],
|
|
1110
|
-
[ZodISODateTime, FORMAT_MAP.datetime]
|
|
1106
|
+
[z.ZodEnum, FORMAT_MAP.enum],
|
|
1107
|
+
[z.ZodNumber, FORMAT_MAP.number],
|
|
1108
|
+
[z.ZodString, FORMAT_MAP.string],
|
|
1109
|
+
[z.ZodBoolean, FORMAT_MAP.boolean],
|
|
1110
|
+
[z.ZodISODateTime, FORMAT_MAP.datetime]
|
|
1111
1111
|
];
|
|
1112
1112
|
const configValueToColumnDef = (value) => {
|
|
1113
1113
|
if (typeof value === "function" || typeof value === "string") return { cell: value };
|
|
@@ -1170,7 +1170,7 @@ const formatValueByType = (value, schemaType) => {
|
|
|
1170
1170
|
if (value === null || value === void 0) return null;
|
|
1171
1171
|
if (ZodUtils.isDateRange(schemaType)) return FORMAT_MAP.dateRange(value);
|
|
1172
1172
|
const unwrappedType = ZodUtils.unwrapZodType(schemaType);
|
|
1173
|
-
if (unwrappedType instanceof ZodArray) {
|
|
1173
|
+
if (unwrappedType instanceof z.ZodArray) {
|
|
1174
1174
|
if (!Array.isArray(value)) return null;
|
|
1175
1175
|
const elementType = unwrappedType.element;
|
|
1176
1176
|
return value.map((element) => formatValueByType(element, elementType)).join(", ");
|
|
@@ -1187,7 +1187,7 @@ const getNestedValue = (obj, path) => {
|
|
|
1187
1187
|
const getKeyType = (schema, key) => {
|
|
1188
1188
|
const pathParts = key.split(".");
|
|
1189
1189
|
let currentType = schema.shape[pathParts[0]];
|
|
1190
|
-
for (let i = 1; i < pathParts.length; i++) if (currentType instanceof ZodObject) currentType = currentType.shape[pathParts[i]];
|
|
1190
|
+
for (let i = 1; i < pathParts.length; i++) if (currentType instanceof z.ZodObject) currentType = currentType.shape[pathParts[i]];
|
|
1191
1191
|
else {
|
|
1192
1192
|
currentType = schema.shape[key];
|
|
1193
1193
|
break;
|
|
@@ -1210,7 +1210,7 @@ const getCellFunction = (schema, schemaKey, columnDef, options) => {
|
|
|
1210
1210
|
const normalizeSortable = (sortable) => {
|
|
1211
1211
|
if (!sortable) return;
|
|
1212
1212
|
if (Array.isArray(sortable)) return sortable;
|
|
1213
|
-
if (sortable instanceof ZodEnum) return Object.values(sortable.enum);
|
|
1213
|
+
if (sortable instanceof z.ZodEnum) return Object.values(sortable.enum);
|
|
1214
1214
|
};
|
|
1215
1215
|
const getDefaultColumnHeader = (key, options) => {
|
|
1216
1216
|
const localeKey = `${options.namespace ?? DEFAULT_NAMESPACE}.${key}`;
|
|
@@ -1296,7 +1296,7 @@ const getAllSchemaKeys = (schema) => {
|
|
|
1296
1296
|
Object.entries(obj).forEach(([key, value]) => {
|
|
1297
1297
|
const currentPath = prefix ? `${prefix}.${key}` : key;
|
|
1298
1298
|
keys.push(currentPath);
|
|
1299
|
-
if (value instanceof ZodObject) traverse(value.shape, currentPath);
|
|
1299
|
+
if (value instanceof z.ZodObject) traverse(value.shape, currentPath);
|
|
1300
1300
|
});
|
|
1301
1301
|
};
|
|
1302
1302
|
traverse(shape);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as StyleMergeUtils, t as UIOverrides } from "./uiOverrides.context-BdokYcGO.js";
|
|
2
|
-
import {
|
|
3
|
-
import { t as FieldPath } from "./form.binding-DWlFTecs.js";
|
|
2
|
+
import { t as FieldPath } from "./form.binding-QO3Py45C.js";
|
|
4
3
|
import { n as TypographyProps } from "./Typography-BiHrVFpz.js";
|
|
5
4
|
import { CSSProperties, ComponentType, Dispatch, FC, KeyboardEvent, ReactNode, SetStateAction } from "react";
|
|
5
|
+
import { z } from "zod";
|
|
6
6
|
import { CellContext, ColumnDef, ColumnMeta, ColumnOrderState, ColumnVisibilityState, OnChangeFn, PaginationState, Row, RowData, RowSelectionState, SortingState, StockFeatures, Table } from "@tanstack/react-table";
|
|
7
7
|
import { TFunction } from "i18next";
|
|
8
8
|
import { DragEndEvent, UniqueIdentifier } from "@dnd-kit/core";
|
|
@@ -135,27 +135,27 @@ type CellContext$1<TData extends RowData, TValue> = CellContext<StockFeatures, T
|
|
|
135
135
|
type ColumnDef$2<TData extends RowData, TValue = unknown> = ColumnDef<StockFeatures, TData, TValue>;
|
|
136
136
|
type ColumnMeta$1<TData extends RowData, TValue> = ColumnMeta<StockFeatures, TData, TValue>;
|
|
137
137
|
type NestedTypeFromKey<T, K extends string> = K extends keyof T ? T[K] : K extends `${infer First}.${infer Rest}` ? First extends keyof T ? NestedTypeFromKey<T[First], Rest> : never : never;
|
|
138
|
-
type SchemaType<TSchema extends ZodObject<any>> =
|
|
139
|
-
type SchemaKey<TSchema extends ZodObject<any>> = keyof SchemaType<TSchema>;
|
|
140
|
-
type NestedSchemaKey<TSchema extends ZodObject<any>> = FieldPath<SchemaType<TSchema>>;
|
|
141
|
-
type SchemaValue<TSchema extends ZodObject<any>> = SchemaType<TSchema>[SchemaKey<TSchema>];
|
|
142
|
-
type ColumnMetaType<TSchema extends ZodObject<any>> = ColumnMeta$1<SchemaType<TSchema>, SchemaValue<TSchema>>;
|
|
143
|
-
type GetNestedValueType<TSchema extends ZodObject<any>, K extends string> = NestedTypeFromKey<SchemaType<TSchema>, K>;
|
|
144
|
-
type NestedSchemaKeyOrString<TSchema extends ZodObject<any>> = NestedSchemaKey<TSchema> | (string & {});
|
|
145
|
-
type DynamicColumnDef<TSchema extends ZodObject<any>, TValue = any> = Omit<ColumnDef$2<SchemaType<TSchema>, TValue>, "accessorKey" | "cell"> & {
|
|
138
|
+
type SchemaType<TSchema extends z.ZodObject<any>> = z.infer<TSchema>;
|
|
139
|
+
type SchemaKey<TSchema extends z.ZodObject<any>> = keyof SchemaType<TSchema>;
|
|
140
|
+
type NestedSchemaKey<TSchema extends z.ZodObject<any>> = FieldPath<SchemaType<TSchema>>;
|
|
141
|
+
type SchemaValue<TSchema extends z.ZodObject<any>> = SchemaType<TSchema>[SchemaKey<TSchema>];
|
|
142
|
+
type ColumnMetaType<TSchema extends z.ZodObject<any>> = ColumnMeta$1<SchemaType<TSchema>, SchemaValue<TSchema>>;
|
|
143
|
+
type GetNestedValueType<TSchema extends z.ZodObject<any>, K extends string> = NestedTypeFromKey<SchemaType<TSchema>, K>;
|
|
144
|
+
type NestedSchemaKeyOrString<TSchema extends z.ZodObject<any>> = NestedSchemaKey<TSchema> | (string & {});
|
|
145
|
+
type DynamicColumnDef<TSchema extends z.ZodObject<any>, TValue = any> = Omit<ColumnDef$2<SchemaType<TSchema>, TValue>, "accessorKey" | "cell"> & {
|
|
146
146
|
cell?: ((props: CellContext$1<SchemaType<TSchema>, TValue>) => any) | NestedSchemaKey<TSchema>;
|
|
147
147
|
};
|
|
148
|
-
type ColumnsConfig<TSchema extends ZodObject<any>> = { [K in NestedSchemaKey<TSchema>]?: DynamicColumnDef<TSchema, GetNestedValueType<TSchema, K>> | ((props: CellContext$1<SchemaType<TSchema>, GetNestedValueType<TSchema, K>>) => any) | NestedSchemaKey<TSchema> | boolean; };
|
|
149
|
-
type CustomColumnDef<TSchema extends ZodObject<any>> = Omit<ColumnDef$2<SchemaType<TSchema>, any>, "accessorKey" | "cell"> & {
|
|
148
|
+
type ColumnsConfig<TSchema extends z.ZodObject<any>> = { [K in NestedSchemaKey<TSchema>]?: DynamicColumnDef<TSchema, GetNestedValueType<TSchema, K>> | ((props: CellContext$1<SchemaType<TSchema>, GetNestedValueType<TSchema, K>>) => any) | NestedSchemaKey<TSchema> | boolean; };
|
|
149
|
+
type CustomColumnDef<TSchema extends z.ZodObject<any>> = Omit<ColumnDef$2<SchemaType<TSchema>, any>, "accessorKey" | "cell"> & {
|
|
150
150
|
accessorKey?: NestedSchemaKeyOrString<TSchema>;
|
|
151
151
|
cell?: ((props: CellContext$1<SchemaType<TSchema>, any>) => any) | NestedSchemaKey<TSchema>;
|
|
152
152
|
};
|
|
153
|
-
type CustomColumnsConfig<TSchema extends ZodObject<any>> = Record<string, CustomColumnDef<TSchema> | ((props: CellContext$1<SchemaType<TSchema>, undefined>) => any) | NestedSchemaKey<TSchema>>;
|
|
154
|
-
interface DynamicColumnsOptions<TSchema extends ZodObject<any>> {
|
|
153
|
+
type CustomColumnsConfig<TSchema extends z.ZodObject<any>> = Record<string, CustomColumnDef<TSchema> | ((props: CellContext$1<SchemaType<TSchema>, undefined>) => any) | NestedSchemaKey<TSchema>>;
|
|
154
|
+
interface DynamicColumnsOptions<TSchema extends z.ZodObject<any>> {
|
|
155
155
|
columns?: ColumnsConfig<TSchema>;
|
|
156
156
|
customColumns?: CustomColumnsConfig<TSchema>;
|
|
157
157
|
order?: NestedSchemaKeyOrString<TSchema>[];
|
|
158
|
-
sortable?: NestedSchemaKeyOrString<TSchema>[] | ZodEnum<any>;
|
|
158
|
+
sortable?: NestedSchemaKeyOrString<TSchema>[] | z.ZodEnum<any>;
|
|
159
159
|
disableFormatting?: NestedSchemaKeyOrString<TSchema>[];
|
|
160
160
|
emptyValue?: ReactNode;
|
|
161
161
|
namespace?: string;
|
|
@@ -164,12 +164,12 @@ interface DynamicColumnsOptions<TSchema extends ZodObject<any>> {
|
|
|
164
164
|
globalWrapper?: (children: ReactNode) => ReactNode;
|
|
165
165
|
includeAll?: boolean;
|
|
166
166
|
}
|
|
167
|
-
interface DynamicColumnsParams<TSchema extends ZodObject<any>> {
|
|
167
|
+
interface DynamicColumnsParams<TSchema extends z.ZodObject<any>> {
|
|
168
168
|
schema: TSchema;
|
|
169
169
|
preset?: ColumnDef$2<SchemaType<TSchema>>[];
|
|
170
170
|
options: DynamicColumnsOptions<TSchema>;
|
|
171
171
|
}
|
|
172
|
-
declare const dynamicColumns: <TSchema extends ZodObject<any>>({ schema, preset, options }: DynamicColumnsParams<TSchema>) => ColumnDef$2<SchemaType<TSchema>>[];
|
|
172
|
+
declare const dynamicColumns: <TSchema extends z.ZodObject<any>>({ schema, preset, options }: DynamicColumnsParams<TSchema>) => ColumnDef$2<SchemaType<TSchema>>[];
|
|
173
173
|
//#endregion
|
|
174
174
|
//#region src/hooks/usePagination.d.ts
|
|
175
175
|
declare function usePagination(defaultPagination?: PaginationState): {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/utils/zod.utils.ts
|
|
3
|
+
let ZodUtils;
|
|
4
|
+
(function(_ZodUtils) {
|
|
5
|
+
const unwrapZodType = _ZodUtils.unwrapZodType = (schemaType) => {
|
|
6
|
+
let unwrappedType = schemaType;
|
|
7
|
+
while (unwrappedType instanceof z.ZodNullable || unwrappedType instanceof z.ZodOptional) unwrappedType = unwrappedType.unwrap();
|
|
8
|
+
return unwrappedType;
|
|
9
|
+
};
|
|
10
|
+
_ZodUtils.unwrapToZodObject = (schema) => {
|
|
11
|
+
const inner = unwrapZodType(schema);
|
|
12
|
+
if (!(inner instanceof z.ZodObject)) throw new Error("ZodUtils.unwrapToZodObject: expected a Zod object, or optional/nullable wrapping a Zod object.");
|
|
13
|
+
return inner;
|
|
14
|
+
};
|
|
15
|
+
const hasZodObjectProperty = (schemaType, property, type) => {
|
|
16
|
+
return property in schemaType.shape && schemaType.shape[property] instanceof z.core.$ZodType && unwrapZodType(schemaType.shape[property]) instanceof type;
|
|
17
|
+
};
|
|
18
|
+
_ZodUtils.isDateRange = (schemaType) => {
|
|
19
|
+
const unwrappedType = unwrapZodType(schemaType);
|
|
20
|
+
return unwrappedType instanceof z.ZodObject && hasZodObjectProperty(unwrappedType, "start", z.ZodISODateTime) && hasZodObjectProperty(unwrappedType, "end", z.ZodISODateTime);
|
|
21
|
+
};
|
|
22
|
+
})(ZodUtils || (ZodUtils = {}));
|
|
23
|
+
//#endregion
|
|
24
|
+
export { ZodUtils as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@povio/ui",
|
|
3
|
-
"version": "3.4.0-rc.
|
|
3
|
+
"version": "3.4.0-rc.39",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -1336,8 +1336,7 @@
|
|
|
1336
1336
|
"react-stately": "^3.44.0",
|
|
1337
1337
|
"react-toastify": "^11.0.5",
|
|
1338
1338
|
"tailwindcss": "^4.2.4",
|
|
1339
|
-
"tailwindcss-react-aria-components": "^2.1.0"
|
|
1340
|
-
"zod": "^4.4.3"
|
|
1339
|
+
"tailwindcss-react-aria-components": "^2.1.0"
|
|
1341
1340
|
},
|
|
1342
1341
|
"peerDependencies": {
|
|
1343
1342
|
"@casl/ability": "^6.7.3",
|
|
@@ -1370,7 +1369,8 @@
|
|
|
1370
1369
|
"react": "^19.1.0",
|
|
1371
1370
|
"react-dom": "^19.1.0",
|
|
1372
1371
|
"react-hook-form": "^7.65.0",
|
|
1373
|
-
"react-i18next": ">=16"
|
|
1372
|
+
"react-i18next": ">=16",
|
|
1373
|
+
"zod": "^4.4.3"
|
|
1374
1374
|
},
|
|
1375
1375
|
"peerDependenciesMeta": {
|
|
1376
1376
|
"@dnd-kit/core": {
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { c as ZodObject, h as output } from "./schemas-CAtYiHoz.js";
|
|
2
|
-
import { l as InputDef } from "./dynamicInputs-CccdH-Ub.js";
|
|
3
|
-
import { c as UIForm } from "./form.binding-DWlFTecs.js";
|
|
4
|
-
import { ReactNode } from "react";
|
|
5
|
-
//#region src/components/inputs/Inputs/Inputs.d.ts
|
|
6
|
-
interface InputsProps<TSchema extends ZodObject<any>, TSchemaType extends Record<string, any> = output<TSchema>> {
|
|
7
|
-
form: UIForm<TSchemaType>;
|
|
8
|
-
inputDefs: Array<InputDef<TSchemaType>>;
|
|
9
|
-
children?: (inputs: Record<keyof TSchemaType, ReactNode>) => ReactNode;
|
|
10
|
-
}
|
|
11
|
-
declare function Inputs<TSchema extends ZodObject<any>, TSchemaType extends Record<string, any> = output<TSchema>>({ form, inputDefs, children }: InputsProps<TSchema, TSchemaType>): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element[] | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null | undefined;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { InputsProps as n, Inputs as t };
|