@m4l/components 0.1.13 → 0.1.15

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.
Files changed (139) hide show
  1. package/assets/Logo/index.js +91 -0
  2. package/commonjs.js +9 -0
  3. package/components/CommonActions/components/ActionCancel/index.js +15 -0
  4. package/components/CommonActions/components/ActionFormCancel/index.js +62 -0
  5. package/components/CommonActions/components/ActionFormIntro/index.js +35 -0
  6. package/components/CommonActions/components/ActionIntro/index.js +16 -0
  7. package/components/CommonActions/components/Actions/index.js +859 -0
  8. package/components/CompanyLogo/{index.f81c179c.js → index.js} +48 -42
  9. package/components/DataGrid/index.js +1067 -0
  10. package/components/DynamicFilter/index.js +1573 -0
  11. package/components/ErrorLabel/index.js +18 -0
  12. package/components/Icon/index.js +80 -0
  13. package/components/Image/index.js +128 -0
  14. package/components/LanguagePopover/index.js +93 -0
  15. package/components/Loadable/index.js +13 -0
  16. package/components/ModalDialog/index.js +180 -0
  17. package/components/NoItemSelected/{index.12f0ca67.js → index.js} +50 -43
  18. package/components/ObjectLogs/index.js +284 -0
  19. package/components/Page/index.js +36 -0
  20. package/components/PaperForm/index.js +110 -0
  21. package/components/Period/index.js +230 -0
  22. package/components/PropertyValue/index.js +142 -0
  23. package/components/Resizeable/{index.45995d2b.js → index.js} +19 -21
  24. package/components/ScrollBar/index.js +52 -0
  25. package/components/ScrollToTop/index.js +10 -0
  26. package/components/SplitLayout/{index.4032673d.js → index.js} +35 -35
  27. package/components/animate/LoadingScreen/{index.f1cec7db.js → index.js} +27 -29
  28. package/components/animate/MotionContainer/index.js +31 -0
  29. package/components/animate/MotionLazyContainer/index.js +13 -0
  30. package/components/animate/features.js +2 -0
  31. package/components/animate/variants/{bounce.784aaaaa.js → bounce.js} +16 -15
  32. package/components/animate/variants/container.js +20 -0
  33. package/components/animate/variants/fade.js +61 -0
  34. package/components/animate/variants/{index.7a912140.js → index.js} +0 -0
  35. package/components/animate/variants/transition.js +16 -0
  36. package/components/formatters/BooleanFormatter/index.js +52 -0
  37. package/components/formatters/DateFormatter/index.js +66 -0
  38. package/components/formatters/index.js +112 -0
  39. package/components/hook-form/FormProvider/index.js +61 -0
  40. package/components/hook-form/RHFAutocomplete/index.js +144 -0
  41. package/components/hook-form/RHFAutocompleteAsync/index.js +191 -0
  42. package/components/hook-form/RHFCheckbox/index.js +65 -0
  43. package/components/hook-form/RHFDateTime/index.js +79 -0
  44. package/components/hook-form/RHFMultiCheckbox/index.js +32 -0
  45. package/components/hook-form/RHFPeriod/index.js +47 -0
  46. package/components/hook-form/RHFRadioGroup/index.js +41 -0
  47. package/components/hook-form/RHFSelect/index.js +34 -0
  48. package/components/hook-form/RHFTextField/index.js +87 -0
  49. package/components/hook-form/RHFUpload/index.js +255 -0
  50. package/components/mui_extended/Accordion/index.js +105 -0
  51. package/components/mui_extended/Avatar/index.js +33 -0
  52. package/components/mui_extended/BoxIcon/index.js +20 -0
  53. package/components/mui_extended/Breadcrumbs/index.js +92 -0
  54. package/components/mui_extended/Button/index.js +131 -0
  55. package/components/mui_extended/IconButton/index.js +108 -0
  56. package/components/mui_extended/LinkWithRoute/index.js +30 -0
  57. package/components/mui_extended/MenuPopover/index.js +135 -0
  58. package/components/mui_extended/Pager/index.js +137 -0
  59. package/components/mui_extended/Tab/index.js +30 -0
  60. package/components/mui_extended/Typography/index.js +21 -0
  61. package/contexts/ModalContext/index.js +165 -0
  62. package/hooks/useFormAddEdit/index.js +42 -0
  63. package/hooks/useModal/index.js +4 -0
  64. package/index.js +70 -162
  65. package/lodash.js +62 -0
  66. package/node_modules.js +54 -0
  67. package/package.json +2 -1
  68. package/react-data-grid.js +2652 -0
  69. package/react-draggable.js +960 -0
  70. package/react-json-view.js +2764 -0
  71. package/react-lazy-load-image-component.js +792 -0
  72. package/react-resizable.js +541 -0
  73. package/react-splitter-layout.js +165 -0
  74. package/utils/index.js +572 -0
  75. package/assets/Logo/index.228dcb5a.js +0 -86
  76. package/commonjs.565e6834.js +0 -12
  77. package/components/CommonActions/components/ActionCancel/index.cba1b460.js +0 -17
  78. package/components/CommonActions/components/ActionFormCancel/index.be2fe891.js +0 -49
  79. package/components/CommonActions/components/ActionFormIntro/index.ca4d2674.js +0 -31
  80. package/components/CommonActions/components/ActionIntro/index.cc4b1e0e.js +0 -18
  81. package/components/CommonActions/components/Actions/index.e8148d98.js +0 -743
  82. package/components/DataGrid/index.b688877d.js +0 -894
  83. package/components/DynamicFilter/index.82ce857e.js +0 -1158
  84. package/components/ErrorLabel/index.c8615f16.js +0 -19
  85. package/components/Icon/index.cbca79b0.js +0 -70
  86. package/components/Image/index.e790b50b.js +0 -122
  87. package/components/LanguagePopover/index.3d9611cb.js +0 -87
  88. package/components/Loadable/index.f5518558.js +0 -15
  89. package/components/ModalDialog/index.3850c053.js +0 -168
  90. package/components/ObjectLogs/index.27ef875d.js +0 -266
  91. package/components/Page/index.6d69977e.js +0 -35
  92. package/components/PaperForm/index.d7c74064.js +0 -105
  93. package/components/Period/index.5e68286a.js +0 -160
  94. package/components/PropertyValue/index.ab3dd7e9.js +0 -116
  95. package/components/ScrollBar/index.39eeb2de.js +0 -49
  96. package/components/ScrollToTop/index.e06f98f6.js +0 -11
  97. package/components/animate/MotionContainer/index.8d9f9d80.js +0 -30
  98. package/components/animate/MotionLazyContainer/index.572dd012.js +0 -15
  99. package/components/animate/features.0fbf41e1.js +0 -5
  100. package/components/animate/variants/container.11f82b76.js +0 -20
  101. package/components/animate/variants/fade.b561c0fc.js +0 -59
  102. package/components/animate/variants/transition.bd46b9ce.js +0 -15
  103. package/components/formatters/BooleanFormatter/index.cca53b7f.js +0 -42
  104. package/components/formatters/DateFormatter/index.ad8d9b8e.js +0 -57
  105. package/components/formatters/index.55856d65.js +0 -106
  106. package/components/hook-form/FormProvider/index.257acd9f.js +0 -55
  107. package/components/hook-form/RHFAutocomplete/index.6ed76d4c.js +0 -122
  108. package/components/hook-form/RHFAutocompleteAsync/index.8f2c97ea.js +0 -153
  109. package/components/hook-form/RHFCheckbox/index.f9ce6c39.js +0 -59
  110. package/components/hook-form/RHFDateTime/index.fc5cbafe.js +0 -68
  111. package/components/hook-form/RHFMultiCheckbox/index.2680b3b6.js +0 -34
  112. package/components/hook-form/RHFPeriod/index.23c254e9.js +0 -45
  113. package/components/hook-form/RHFRadioGroup/index.b3335e13.js +0 -43
  114. package/components/hook-form/RHFSelect/index.b6ca8bb2.js +0 -36
  115. package/components/hook-form/RHFTextField/index.4c455f75.js +0 -77
  116. package/components/hook-form/RHFUpload/index.ed3d739f.js +0 -244
  117. package/components/mui_extended/Accordion/index.2116e423.js +0 -103
  118. package/components/mui_extended/Avatar/index.0a2a4523.js +0 -32
  119. package/components/mui_extended/BoxIcon/index.e638ecc8.js +0 -22
  120. package/components/mui_extended/Breadcrumbs/index.5e37d903.js +0 -89
  121. package/components/mui_extended/Button/index.84d8898c.js +0 -110
  122. package/components/mui_extended/IconButton/index.88f3aadb.js +0 -98
  123. package/components/mui_extended/LinkWithRoute/index.d4b263de.js +0 -28
  124. package/components/mui_extended/MenuPopover/index.488fc536.js +0 -131
  125. package/components/mui_extended/Pager/index.0576814f.js +0 -126
  126. package/components/mui_extended/Tab/index.e0653a0a.js +0 -28
  127. package/components/mui_extended/Typography/index.0c4604b3.js +0 -22
  128. package/contexts/ModalContext/index.2188b69e.js +0 -150
  129. package/hooks/useFormAddEdit/index.d4845f1a.js +0 -26
  130. package/hooks/useModal/index.6571d2d9.js +0 -6
  131. package/lodash.e09401f0.js +0 -32
  132. package/node_modules.168cb897.js +0 -55
  133. package/react-data-grid.d46d625e.js +0 -2115
  134. package/react-draggable.20e95c61.js +0 -714
  135. package/react-json-view.f56a7f8e.js +0 -2762
  136. package/react-lazy-load-image-component.45b56650.js +0 -784
  137. package/react-resizable.5277deaf.js +0 -371
  138. package/react-splitter-layout.7810ac1b.js +0 -165
  139. package/utils/index.214d9542.js +0 -435
@@ -1,153 +0,0 @@
1
- import { useState as p, useEffect as c, Fragment as K } from "react";
2
- import { useModuleDictionary as M, useModuleSkeleton as W, useNetwork as z, getPropertyByString as B } from "@m4l/core";
3
- import { useFormContext as N, Controller as J } from "react-hook-form";
4
- import { Skeleton as b, Autocomplete as Q, TextField as U, CircularProgress as X } from "@mui/material";
5
- import { styled as f } from "@mui/material/styles";
6
- import { jsx as i, jsxs as O } from "react/jsx-runtime";
7
- const Y = f("div")(() => ({
8
- display: "flex",
9
- width: "100%",
10
- flexDirection: "column"
11
- }));
12
- f("div")(({
13
- theme: e
14
- }) => ({
15
- display: "flex",
16
- justifyContent: "flex-end",
17
- paddingRight: `${e.spacing(2)}`,
18
- [e.breakpoints.down("md")]: {
19
- justifyContent: "flex-start"
20
- }
21
- }));
22
- const Z = f("div")(({
23
- theme: e
24
- }) => ({
25
- width: "100%",
26
- display: "grid",
27
- gridTemplateColumns: "1fr auto",
28
- gridGap: e.spacing(2),
29
- alignItems: "center",
30
- height: `${e.spacing(4.5)}`,
31
- border: `1px solid ${e.palette.divider}`,
32
- borderRadius: `${e.spacing(1)}`,
33
- padding: `0 ${e.spacing(2)}`,
34
- [e.breakpoints.down("md")]: {
35
- width: "100%"
36
- }
37
- }));
38
- function le(e) {
39
- const {
40
- name: a,
41
- getOptionLabel: T,
42
- isOptionEqualToValue: k,
43
- label: C,
44
- endPoint: d,
45
- timeout: _ = 5e3,
46
- parms: g,
47
- resultField: v = "data",
48
- skeletonProps: w = {},
49
- isRemote: S = !0,
50
- disabled: L,
51
- ...P
52
- } = e, {
53
- width: $ = 100,
54
- height: A = "18px"
55
- } = w, {
56
- getLabel: V
57
- } = M(), m = W(), {
58
- control: F,
59
- getValues: I,
60
- setValue: R
61
- } = N(), {
62
- networkOperation: E
63
- } = z(), r = I(a), [j, u] = p(r === null ? [] : [r]), [q, x] = p(!1), [l, h] = p(!1), s = q && !l && !!d && !m;
64
- c(() => {
65
- l && (h(!1), u([]), R(a, null));
66
- }, [g, d]), c(() => {
67
- !l && r && u([r]);
68
- }, [r, l]);
69
- const D = (t) => t == null ? "" : T(t), G = (t, n) => n == null || t === null ? !1 : k(t, n);
70
- return c(() => {
71
- let t = !0;
72
- if (!!s)
73
- return E({
74
- method: "GET",
75
- endPoint: d,
76
- timeout: _,
77
- parms: g,
78
- isRemote: S
79
- }).then((n) => {
80
- t && (u(B(n, v)), h(!0));
81
- }), () => {
82
- t = !1;
83
- };
84
- }, [s]), m ? /* @__PURE__ */ i(Y, {
85
- children: /* @__PURE__ */ O(Z, {
86
- children: [/* @__PURE__ */ i(b, {
87
- variant: "text",
88
- width: $,
89
- height: A
90
- }, "sk1"), /* @__PURE__ */ i(b, {
91
- variant: "circular",
92
- width: 16,
93
- height: 16
94
- }, "sk2")]
95
- })
96
- }) : /* @__PURE__ */ i(J, {
97
- name: a,
98
- control: F,
99
- render: ({
100
- field: {
101
- onChange: t,
102
- value: n
103
- },
104
- fieldState: {
105
- error: y
106
- }
107
- }) => /* @__PURE__ */ i(Q, {
108
- options: j,
109
- getOptionLabel: D,
110
- defaultValue: r,
111
- isOptionEqualToValue: G,
112
- disableClearable: !0,
113
- value: n || null,
114
- onOpen: () => {
115
- x(!0);
116
- },
117
- onClose: () => {
118
- x(!1);
119
- },
120
- onChange: (o, H) => {
121
- t(H);
122
- },
123
- disabled: L,
124
- loading: s,
125
- loadingText: "",
126
- noOptionsText: V("rhf_autocomplete.component_no_options"),
127
- renderInput: (o) => /* @__PURE__ */ i(U, {
128
- ...o,
129
- label: C,
130
- fullWidth: !0,
131
- SelectProps: {
132
- native: !0
133
- },
134
- InputProps: {
135
- ...o.InputProps,
136
- endAdornment: /* @__PURE__ */ O(K, {
137
- children: [s ? /* @__PURE__ */ i(X, {
138
- color: "primary",
139
- size: 20
140
- }, `cp_async${o.id}`) : null, o.InputProps.endAdornment]
141
- }, `fr_async_${o.id}`)
142
- },
143
- autoComplete: "off",
144
- error: !!y,
145
- helperText: y?.message,
146
- ...P
147
- }, `tx_async_${o.id}`)
148
- }, "at_async")
149
- });
150
- }
151
- export {
152
- le as R
153
- };
@@ -1,59 +0,0 @@
1
- import { useFormContext as c, Controller as m } from "react-hook-form";
2
- import { styled as t } from "@mui/material/styles";
3
- import { Skeleton as p, FormControlLabel as d, Checkbox as h } from "@mui/material";
4
- import { useModuleSkeleton as x } from "@m4l/core";
5
- import { jsx as e, jsxs as g, Fragment as u } from "react/jsx-runtime";
6
- const f = t("div")(() => ({
7
- display: "flex",
8
- justifyContent: "center",
9
- alignItems: "center",
10
- padding: "8px"
11
- })), k = t(p)(() => ({
12
- width: "20px",
13
- height: "20px",
14
- borderRadius: "4px"
15
- })), C = t("p")(({
16
- theme: r
17
- }) => ({
18
- ...r.typography.caption,
19
- color: r.palette.error.main,
20
- marginRight: 14,
21
- marginLeft: 14
22
- }));
23
- function j({
24
- name: r,
25
- sizeCheck: i = "small",
26
- ...l
27
- }) {
28
- const {
29
- control: a
30
- } = c(), s = x();
31
- return /* @__PURE__ */ e(d, {
32
- control: /* @__PURE__ */ e(m, {
33
- name: r,
34
- control: a,
35
- render: ({
36
- field: o,
37
- fieldState: {
38
- error: n
39
- }
40
- }) => s ? /* @__PURE__ */ e(f, {
41
- children: /* @__PURE__ */ e(k, {
42
- variant: "rectangular"
43
- })
44
- }) : /* @__PURE__ */ g(u, {
45
- children: [/* @__PURE__ */ e(h, {
46
- size: i,
47
- ...o,
48
- checked: o.value
49
- }), n?.message && /* @__PURE__ */ e(C, {
50
- children: n?.message + ""
51
- })]
52
- })
53
- }),
54
- ...l
55
- });
56
- }
57
- export {
58
- j as R
59
- };
@@ -1,68 +0,0 @@
1
- import { useFormContext as c, Controller as x } from "react-hook-form";
2
- import { Skeleton as h, TextField as g } from "@mui/material";
3
- import { styled as k } from "@mui/material/styles";
4
- import { DateTimePicker as F } from "@mui/x-date-pickers";
5
- import { useModuleSkeleton as v, useEnvironment as C } from "@m4l/core";
6
- import { jsx as e } from "react/jsx-runtime";
7
- const T = k("div")(({
8
- theme: t
9
- }) => ({
10
- display: "flex",
11
- width: "100%",
12
- alignItems: "center",
13
- border: `1px solid ${t.palette.divider}`,
14
- padding: "12px 14px",
15
- borderRadius: t.spacing(1)
16
- }));
17
- function D(t) {
18
- const {
19
- name: i,
20
- autoComplete: a = "off",
21
- skeletonProps: s = {}
22
- } = t, {
23
- width: m = "100%",
24
- height: l = 14
25
- } = s, d = v(), {
26
- control: p
27
- } = c(), {
28
- dfnsFormat: {
29
- datetime_format: f,
30
- datetime_mask: u
31
- }
32
- } = C();
33
- return d ? /* @__PURE__ */ e(T, {
34
- children: /* @__PURE__ */ e(h, {
35
- variant: "text",
36
- width: m,
37
- height: l
38
- })
39
- }) : /* @__PURE__ */ e(x, {
40
- name: i,
41
- control: p,
42
- render: ({
43
- field: r,
44
- fieldState: {
45
- error: n
46
- }
47
- }) => /* @__PURE__ */ e(F, {
48
- ampm: !1,
49
- inputFormat: f,
50
- mask: u,
51
- label: "",
52
- value: r.value,
53
- onChange: (o) => {
54
- isNaN(o) ? r.onChange(void 0) : r.onChange(o);
55
- },
56
- renderInput: (o) => /* @__PURE__ */ e(g, {
57
- autoComplete: a,
58
- fullWidth: !0,
59
- error: !!n,
60
- helperText: n?.message,
61
- ...o
62
- })
63
- })
64
- });
65
- }
66
- export {
67
- D as R
68
- };
@@ -1,34 +0,0 @@
1
- import { useFormContext as m, Controller as s } from "react-hook-form";
2
- import { FormGroup as C, FormControlLabel as h, Checkbox as x } from "@mui/material";
3
- import { jsx as o } from "react/jsx-runtime";
4
- function k({
5
- name: n,
6
- options: l,
7
- ...c
8
- }) {
9
- const {
10
- control: t
11
- } = m();
12
- return /* @__PURE__ */ o(s, {
13
- name: n,
14
- control: t,
15
- render: ({
16
- field: e
17
- }) => {
18
- const u = (r) => e.value.includes(r) ? e.value.filter((a) => a !== r) : [...e.value, r];
19
- return /* @__PURE__ */ o(C, {
20
- children: l.map((r) => /* @__PURE__ */ o(h, {
21
- control: /* @__PURE__ */ o(x, {
22
- checked: e.value.includes(r),
23
- onChange: () => e.onChange(u(r))
24
- }),
25
- label: r,
26
- ...c
27
- }, r))
28
- });
29
- }
30
- });
31
- }
32
- export {
33
- k as R
34
- };
@@ -1,45 +0,0 @@
1
- import { styled as m } from "@mui/material";
2
- import { useFormContext as a, Controller as l } from "react-hook-form";
3
- import { E as f } from "../../ErrorLabel/index.c8615f16.js";
4
- import { P as p } from "../../Period/index.5e68286a.js";
5
- import { jsx as t, jsxs as c } from "react/jsx-runtime";
6
- const d = m("div")(({
7
- theme: e
8
- }) => ({
9
- width: "100%",
10
- display: "flex",
11
- flexDirection: "column",
12
- justifyContent: "center",
13
- alignItems: "flex-start",
14
- gap: e.spacing(1)
15
- })), C = (e) => {
16
- const {
17
- name: o
18
- } = e, {
19
- control: s
20
- } = a();
21
- return /* @__PURE__ */ t(l, {
22
- name: o,
23
- control: s,
24
- render: ({
25
- field: {
26
- onChange: n,
27
- value: i
28
- },
29
- fieldState: {
30
- error: r
31
- }
32
- }) => /* @__PURE__ */ c(d, {
33
- children: [/* @__PURE__ */ t(p, {
34
- value: i,
35
- onChange: n,
36
- error: !!r
37
- }), r && /* @__PURE__ */ t(f, {
38
- message: r.message || ""
39
- })]
40
- })
41
- });
42
- };
43
- export {
44
- C as R
45
- };
@@ -1,43 +0,0 @@
1
- import { useFormContext as s, Controller as u } from "react-hook-form";
2
- import { RadioGroup as c, FormControlLabel as x, Radio as p, FormHelperText as f } from "@mui/material";
3
- import { jsx as r, jsxs as R } from "react/jsx-runtime";
4
- function j({
5
- name: l,
6
- options: m,
7
- getOptionLabel: e,
8
- ...n
9
- }) {
10
- const {
11
- control: a
12
- } = s();
13
- return /* @__PURE__ */ r(u, {
14
- name: l,
15
- control: a,
16
- render: ({
17
- field: d,
18
- fieldState: {
19
- error: t
20
- }
21
- }) => /* @__PURE__ */ R("div", {
22
- children: [/* @__PURE__ */ r(c, {
23
- ...d,
24
- row: !0,
25
- ...n,
26
- children: m.map((o, i) => /* @__PURE__ */ r(x, {
27
- value: o,
28
- control: /* @__PURE__ */ r(p, {}),
29
- label: e?.length ? e[i] : o
30
- }, o))
31
- }), !!t && /* @__PURE__ */ r(f, {
32
- error: !0,
33
- sx: {
34
- px: 2
35
- },
36
- children: t.message
37
- })]
38
- })
39
- });
40
- }
41
- export {
42
- j as R
43
- };
@@ -1,36 +0,0 @@
1
- import { useFormContext as m, Controller as s } from "react-hook-form";
2
- import { TextField as u } from "@mui/material";
3
- import { jsx as t } from "react/jsx-runtime";
4
- function x({
5
- name: r,
6
- children: o,
7
- ...l
8
- }) {
9
- const {
10
- control: n
11
- } = m();
12
- return /* @__PURE__ */ t(s, {
13
- name: r,
14
- control: n,
15
- render: ({
16
- field: i,
17
- fieldState: {
18
- error: e
19
- }
20
- }) => /* @__PURE__ */ t(u, {
21
- ...i,
22
- select: !0,
23
- fullWidth: !0,
24
- SelectProps: {
25
- native: !0
26
- },
27
- error: !!e,
28
- helperText: e?.message,
29
- ...l,
30
- children: o
31
- })
32
- });
33
- }
34
- export {
35
- x as R
36
- };
@@ -1,77 +0,0 @@
1
- import { useFormContext as R, Controller as T } from "react-hook-form";
2
- import { Skeleton as k, TextField as C } from "@mui/material";
3
- import { styled as S } from "@mui/material/styles";
4
- import { forwardRef as b } from "react";
5
- import { useModuleSkeleton as y } from "@m4l/core";
6
- import { jsx as t } from "react/jsx-runtime";
7
- const H = S("div")(({
8
- theme: e
9
- }) => ({
10
- display: "flex",
11
- width: "100%",
12
- alignItems: "center",
13
- border: `1px solid ${e.palette.divider}`,
14
- padding: "12px 14px",
15
- borderRadius: e.spacing(1)
16
- })), v = b((e, l) => {
17
- const {
18
- name: a,
19
- autoComplete: d = "off",
20
- skeletonProps: s = {},
21
- type: o,
22
- ...p
23
- } = e, {
24
- width: m = "100%",
25
- height: f = 14
26
- } = s, u = y(), {
27
- control: x
28
- } = R();
29
- return u ? /* @__PURE__ */ t(H, {
30
- children: /* @__PURE__ */ t(k, {
31
- variant: "text",
32
- width: m,
33
- height: f
34
- })
35
- }) : /* @__PURE__ */ t(T, {
36
- name: a,
37
- control: x,
38
- render: ({
39
- field: {
40
- onChange: n,
41
- onBlur: c,
42
- value: g,
43
- name: h,
44
- ref: F
45
- },
46
- fieldState: {
47
- error: i
48
- }
49
- }) => /* @__PURE__ */ t(
50
- C,
51
- {
52
- inputRef: l,
53
- autoComplete: d,
54
- onChange: (r) => {
55
- if (o === "number" && r.target.value) {
56
- n(Number(r.target.value));
57
- return;
58
- }
59
- n(r);
60
- },
61
- onBlur: c,
62
- value: g,
63
- name: h,
64
- ref: F,
65
- fullWidth: !0,
66
- error: !!i,
67
- helperText: i?.message,
68
- type: o,
69
- ...p
70
- }
71
- )
72
- });
73
- });
74
- v.displayName = "RHFTextField";
75
- export {
76
- v as R
77
- };