@m4l/components 0.1.24 → 0.1.25

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 (40) hide show
  1. package/components/CommonActions/components/ActionCancel/{index.465be070.js → index.9cfffe65.js} +1 -1
  2. package/components/CommonActions/components/ActionFormCancel/{index.0deaba48.js → index.ef60c2ee.js} +2 -2
  3. package/components/CommonActions/components/ActionIntro/{index.235ecbe2.js → index.f8403e8e.js} +1 -1
  4. package/components/CommonActions/components/Actions/{index.798c6aee.js → index.309d3b6f.js} +7 -7
  5. package/components/DataGrid/{index.cb62609c.js → index.fe073438.js} +3 -3
  6. package/components/DynamicFilter/{index.549adc46.js → index.d0753667.js} +13 -13
  7. package/components/ModalDialog/{index.0340fb86.js → index.a24ca508.js} +2 -2
  8. package/components/ObjectLogs/{index.b1dcc4db.js → index.a7d36267.js} +3 -3
  9. package/components/Period/index.080a987d.js +175 -0
  10. package/components/Period/styles.d.ts +2 -2
  11. package/components/Period/types.d.ts +4 -1
  12. package/components/hook-form/RHFCheckbox/index.6dcec9e2.js +58 -0
  13. package/components/hook-form/RHFDateTime/index.9231a7c7.js +81 -0
  14. package/components/hook-form/RHFDateTime/subcomponents/Skeleton/index.d.ts +3 -0
  15. package/components/hook-form/RHFDateTime/{styles.d.ts → subcomponents/Skeleton/styles.d.ts} +0 -0
  16. package/components/hook-form/RHFDateTime/subcomponents/Skeleton/types.d.ts +2 -0
  17. package/components/hook-form/RHFPeriod/index.067790c9.js +51 -0
  18. package/components/hook-form/RHFPeriod/types.d.ts +3 -3
  19. package/components/hook-form/RHFTextField/index.ba2a8f67.js +129 -0
  20. package/components/hook-form/RHFTextField/index.d.ts +1 -1
  21. package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +1 -1
  22. package/components/hook-form/RHFTextField/subcomponents/Skeleton/types.d.ts +2 -4
  23. package/components/hook-form/RHFTextField/types.d.ts +1 -0
  24. package/components/hook-form/RHFUpload/RHFUploadImage/components/UploadImage/styles.d.ts +1 -1
  25. package/components/hook-form/RHFUpload/RHFUploadImage/components/UploadImage/subcomponents/Skeleton/index.d.ts +2 -0
  26. package/components/hook-form/RHFUpload/RHFUploadImage/components/UploadImage/subcomponents/Skeleton/styles.d.ts +2 -0
  27. package/components/hook-form/RHFUpload/index.6347159a.js +258 -0
  28. package/components/mui_extended/Button/{index.ae47764f.js → index.2afaa420.js} +1 -1
  29. package/components/mui_extended/Pager/{index.298730a1.js → index.a23cf8de.js} +1 -1
  30. package/components/mui_extended/Popover/{index.b6e4392a.js → index.12b0ab55.js} +3 -3
  31. package/contexts/ModalContext/{index.73ab6934.js → index.f17b3653.js} +3 -3
  32. package/hooks/useModal/{index.f2492b34.js → index.b1f96279.js} +1 -1
  33. package/index.js +19 -19
  34. package/package.json +1 -1
  35. package/components/Period/index.05c1c5e0.js +0 -159
  36. package/components/hook-form/RHFCheckbox/index.6a40e25f.js +0 -55
  37. package/components/hook-form/RHFDateTime/index.5ed774e3.js +0 -66
  38. package/components/hook-form/RHFPeriod/index.6c6733eb.js +0 -45
  39. package/components/hook-form/RHFTextField/index.bab2a2cf.js +0 -113
  40. package/components/hook-form/RHFUpload/index.56e2e277.js +0 -239
package/index.js CHANGED
@@ -11,41 +11,41 @@ import { R as k, g as G } from "./components/hook-form/RHFAutocomplete/index.5ee
11
11
  import "react";
12
12
  import { I as V } from "./components/Image/index.c9da2d5a.js";
13
13
  import "lodash/debounce";
14
- import { R as W } from "./components/hook-form/RHFCheckbox/index.6a40e25f.js";
15
- import { R as J } from "./components/hook-form/RHFDateTime/index.5ed774e3.js";
14
+ import { R as W } from "./components/hook-form/RHFCheckbox/index.6dcec9e2.js";
16
15
  import "@mui/x-date-pickers";
17
- import { R as Q, a as X } from "./components/hook-form/RHFTextField/index.bab2a2cf.js";
16
+ import { R as J } from "./components/hook-form/RHFDateTime/index.9231a7c7.js";
17
+ import { R as Q, a as X } from "./components/hook-form/RHFTextField/index.ba2a8f67.js";
18
18
  import { I as Z } from "./components/Icon/index.f569765b.js";
19
- import { R as $ } from "./components/hook-form/RHFPeriod/index.6c6733eb.js";
19
+ import { R as $ } from "./components/hook-form/RHFPeriod/index.067790c9.js";
20
20
  import { E as ro } from "./components/ErrorLabel/index.c8615f16.js";
21
- import { P as ao, g as eo } from "./components/Period/index.05c1c5e0.js";
22
- import { b as so, M as io, d as po, g as no } from "./components/CommonActions/components/Actions/index.798c6aee.js";
21
+ import { P as ao, g as eo } from "./components/Period/index.080a987d.js";
22
+ import { b as so, M as io, d as po, g as no } from "./components/CommonActions/components/Actions/index.309d3b6f.js";
23
23
  import "@mui/material/Button";
24
- import { M as xo, a as fo } from "./contexts/ModalContext/index.73ab6934.js";
24
+ import { M as xo, a as fo } from "./contexts/ModalContext/index.f17b3653.js";
25
25
  import "@mui/lab";
26
26
  import "lodash/isString";
27
27
  import "react-dropzone";
28
- import { R as go } from "./components/hook-form/RHFUpload/index.56e2e277.js";
28
+ import { R as go } from "./components/hook-form/RHFUpload/index.6347159a.js";
29
29
  import { A as uo } from "./components/mui_extended/Accordion/index.49f5df8e.js";
30
30
  import { A as yo } from "./components/mui_extended/Avatar/index.dadb0528.js";
31
- import { B as Ao, L as Po } from "./components/mui_extended/Button/index.ae47764f.js";
32
- import { L as Lo, P as Ho } from "./components/mui_extended/Popover/index.b6e4392a.js";
33
- import { P as Mo, g as bo } from "./components/mui_extended/Pager/index.298730a1.js";
31
+ import { B as Ao, L as Po } from "./components/mui_extended/Button/index.2afaa420.js";
32
+ import { L as Lo, P as Ho } from "./components/mui_extended/Popover/index.12b0ab55.js";
33
+ import { P as Mo, g as bo } from "./components/mui_extended/Pager/index.a23cf8de.js";
34
34
  import { T as Io } from "./components/mui_extended/Tab/index.e0653a0a.js";
35
- import { D as So, N as Eo, T as No, g as ho } from "./components/DataGrid/index.cb62609c.js";
35
+ import { D as So, N as Eo, T as No, g as ho } from "./components/DataGrid/index.fe073438.js";
36
36
  import "react-dnd";
37
37
  import "react-dnd-html5-backend";
38
38
  import "@m4l/graphics";
39
39
  import { S as Uo } from "./components/ScrollBar/index.39eeb2de.js";
40
- import { D as ko, d as Go, g as zo } from "./components/DynamicFilter/index.549adc46.js";
40
+ import { D as ko, d as Go, g as zo } from "./components/DynamicFilter/index.d0753667.js";
41
41
  import "simplebar/dist/simplebar.min.css";
42
42
  import { R as wo } from "./components/contexts/RHFormContext/index.33dba822.js";
43
43
  import "yup";
44
44
  import "./react-draggable.20e95c61.js";
45
- import { M as qo, d as Jo, g as Ko } from "./components/ModalDialog/index.0340fb86.js";
45
+ import { M as qo, d as Jo, g as Ko } from "./components/ModalDialog/index.a24ca508.js";
46
46
  import { R as Xo } from "./components/Resizeable/index.45995d2b.js";
47
47
  import { N as Zo, d as _o, g as $o } from "./components/NoItemSelected/index.9609a7f7.js";
48
- import { O as rr, d as tr, g as ar } from "./components/ObjectLogs/index.b1dcc4db.js";
48
+ import { O as rr, d as tr, g as ar } from "./components/ObjectLogs/index.a7d36267.js";
49
49
  import "./react-json-view.f56a7f8e.js";
50
50
  import { P as mr } from "./components/PaperForm/index.3f8c7ef2.js";
51
51
  import { H as ir } from "./components/Page/index.fc660ee5.js";
@@ -70,14 +70,14 @@ import { T as Wr } from "./components/mui_extended/Typography/index.e5494696.js"
70
70
  import { B as Jr, c as Kr } from "./components/formatters/BooleanFormatter/index.3ec56305.js";
71
71
  import { D as Xr, c as Yr } from "./components/formatters/DateFormatter/index.08d8823b.js";
72
72
  import { P as _r, a as $r, U as ot, e as rt, b as tt, c as at, d as et, g as mt } from "./components/formatters/index.6959c2de.js";
73
- import { A as it } from "./components/CommonActions/components/ActionCancel/index.465be070.js";
74
- import { A as nt } from "./components/CommonActions/components/ActionIntro/index.235ecbe2.js";
75
- import { A as xt } from "./components/CommonActions/components/ActionFormCancel/index.0deaba48.js";
73
+ import { A as it } from "./components/CommonActions/components/ActionCancel/index.9cfffe65.js";
74
+ import { A as nt } from "./components/CommonActions/components/ActionIntro/index.f8403e8e.js";
75
+ import { A as xt } from "./components/CommonActions/components/ActionFormCancel/index.ef60c2ee.js";
76
76
  import { A as lt } from "./components/CommonActions/components/ActionFormIntro/index.ca4d2674.js";
77
77
  import { L as gt } from "./components/Loadable/index.f5518558.js";
78
78
  import { S as ut } from "./components/ScrollToTop/index.e06f98f6.js";
79
79
  import { u as yt } from "./hooks/useFormAddEdit/index.d4845f1a.js";
80
- import { u as At } from "./hooks/useModal/index.f2492b34.js";
80
+ import { u as At } from "./hooks/useModal/index.b1f96279.js";
81
81
  import { L as Ct } from "./assets/Logo/index.228dcb5a.js";
82
82
  import "./utils/index.214d9542.js";
83
83
  import "./react-data-grid.d46d625e.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "0.1.24",
3
+ "version": "0.1.25",
4
4
  "license": "UNLICENSED",
5
5
  "dependencies": {
6
6
  "@m4l/core": "*",
@@ -1,159 +0,0 @@
1
- import { useModuleDictionary as Y, useModuleSkeleton as R, useEnvironment as T } from "@m4l/core";
2
- import { styled as a, Skeleton as d, Autocomplete as $, TextField as x } from "@mui/material";
3
- import { useMemo as D } from "react";
4
- import { I as v } from "../Icon/index.f569765b.js";
5
- import { jsxs as u, jsx as n } from "react/jsx-runtime";
6
- import { g as O } from "../CommonActions/components/Actions/index.798c6aee.js";
7
- import "@mui/material/Button";
8
- import "react-hook-form";
9
- import "react-router-dom";
10
- import "../../contexts/ModalContext/index.73ab6934.js";
11
- import "@mui/lab";
12
- const S = a("div")(({
13
- theme: t,
14
- error: s
15
- }) => ({
16
- display: "flex",
17
- width: "100%",
18
- height: "auto",
19
- alignItems: "center",
20
- gap: t.spacing(1),
21
- border: s ? `1px solid ${t.palette.error.main}` : `1px solid ${t.palette.divider}`,
22
- padding: t.spacing(0.5, 1),
23
- borderRadius: "4px",
24
- "& .MuiAutocomplete-root, & .MuiTextField-root": {
25
- width: "100%"
26
- },
27
- "& .MuiAutocomplete-root .MuiTextField-root": {
28
- width: "100%"
29
- },
30
- "& .MuiTextField-root .MuiInput-input": {
31
- padding: "5px!important"
32
- }
33
- })), p = a("div")(({
34
- theme: t
35
- }) => ({
36
- width: "1px",
37
- height: "20px",
38
- backgroundColor: t.palette.divider
39
- })), P = a("div")(({
40
- theme: t
41
- }) => ({
42
- display: "flex",
43
- width: "auto",
44
- height: "37.5px",
45
- alignItems: "center",
46
- gap: t.spacing(1),
47
- border: `1px solid ${t.palette.divider}`,
48
- padding: t.spacing(0.5, 1),
49
- borderRadius: "4px"
50
- })), k = a("div")(({
51
- theme: t
52
- }) => ({
53
- ...t.typography.body2,
54
- width: "100%",
55
- display: "flex",
56
- textOverflow: "elipsis",
57
- overflow: "hidden",
58
- padding: "5px",
59
- textAlign: "left"
60
- })), w = a("div")(({
61
- theme: t
62
- }) => ({
63
- ...t.typography.body2,
64
- width: "70px",
65
- display: "flex",
66
- textOverflow: "elipsis",
67
- overflow: "hidden",
68
- padding: "5px",
69
- textAlign: "left"
70
- }));
71
- var i = /* @__PURE__ */ ((t) => (t[t.YEARS = 0] = "YEARS", t[t.MONTHS = 1] = "MONTHS", t[t.DAYS = 2] = "DAYS", t))(i || {});
72
- const F = (t) => t ? t.selPeriodTime ? t.selPeriodTime : t.years && t.years > 0 ? i.YEARS : t.months && t.months > 0 ? i.MONTHS : t.days && t.days > 0 ? i.DAYS : i.YEARS : i.YEARS, _ = (t) => t ? t.singleValue !== void 0 ? t.singleValue : t.years && t.years > 0 ? t.years : t.months && t.months > 0 ? t.months : t.days && t.days > 0 ? t.days : "" : "", z = (t) => {
73
- const {
74
- value: s,
75
- onChange: b,
76
- error: A = !1,
77
- readOnly: M = !1
78
- } = t, {
79
- getLabel: l
80
- } = Y(), C = R(), c = F(s), g = _(s), f = (e, r) => {
81
- const o = {
82
- selPeriodTime: e,
83
- singleValue: r
84
- };
85
- r !== "" && r > 0 && (o.years = 0, o.months = 0, o.days = 0, e === i.YEARS && (o.years = r), e === i.MONTHS && (o.months = r), e === i.DAYS && (o.days = r)), b(o);
86
- }, I = (e) => {
87
- e && f(e.id, g);
88
- }, {
89
- host_static_assets: h,
90
- environment_assets: m
91
- } = T(), y = D(() => [{
92
- id: 0,
93
- label: l("period.years")
94
- }, {
95
- id: 1,
96
- label: l("period.months")
97
- }, {
98
- id: 2,
99
- label: l("period.days")
100
- }], [l]);
101
- return C ? /* @__PURE__ */ u(P, {
102
- children: [/* @__PURE__ */ n(d, {
103
- variant: "rounded",
104
- width: "100%"
105
- }), /* @__PURE__ */ n(p, {}), /* @__PURE__ */ n(d, {
106
- variant: "rounded",
107
- width: "100%"
108
- }), /* @__PURE__ */ n(d, {
109
- variant: "circular",
110
- width: 20,
111
- sx: {
112
- minWidth: "20px",
113
- minHeight: "20px"
114
- }
115
- })]
116
- }) : (M && (s.selPeriodTime, s.singleValue, v, `${h}${m}`), /* @__PURE__ */ u(S, {
117
- error: A,
118
- children: [/* @__PURE__ */ n($, {
119
- options: y,
120
- value: y[c],
121
- disableClearable: !0,
122
- onChange: (e, r) => {
123
- I(r);
124
- },
125
- renderInput: (e) => /* @__PURE__ */ n(x, {
126
- ...e,
127
- fullWidth: !0,
128
- variant: "standard",
129
- SelectProps: {
130
- native: !0
131
- },
132
- InputProps: {
133
- disableUnderline: !0,
134
- ...e.InputProps
135
- },
136
- autoComplete: "off"
137
- }, `tx_async_${e.id}`)
138
- }), /* @__PURE__ */ n(p, {}), /* @__PURE__ */ n(x, {
139
- type: "number",
140
- variant: "standard",
141
- value: g,
142
- InputProps: {
143
- disableUnderline: !0
144
- },
145
- onChange: (e) => {
146
- f(c, e.target.value === "" ? "" : parseInt(e.target.value));
147
- }
148
- }), /* @__PURE__ */ n(v, {
149
- src: `${h}/${m}/frontend/components/period/assets/icons/clock.svg`
150
- })]
151
- }));
152
- };
153
- function B() {
154
- return ["period"].concat(O());
155
- }
156
- export {
157
- z as P,
158
- B as g
159
- };
@@ -1,55 +0,0 @@
1
- import { useFormContext as i, Controller as c } from "react-hook-form";
2
- import { styled as m } from "@mui/material/styles";
3
- import { styled as p, Skeleton as d, FormControlLabel as u, Checkbox as f } from "@mui/material";
4
- import { useModuleSkeleton as g } from "@m4l/core";
5
- import { jsx as e, jsxs as k, Fragment as x } from "react/jsx-runtime";
6
- const h = p("div")(() => ({
7
- display: "flex",
8
- justifyContent: "center",
9
- alignItems: "center",
10
- padding: "8px"
11
- })), C = () => /* @__PURE__ */ e(h, {
12
- children: /* @__PURE__ */ e(d, {
13
- variant: "rectangular"
14
- })
15
- }), y = m("p")(({
16
- theme: r
17
- }) => ({
18
- ...r.typography.caption,
19
- color: r.palette.error.main,
20
- marginRight: 14,
21
- marginLeft: 14
22
- }));
23
- function L({
24
- name: r,
25
- sizeCheck: n = "small",
26
- ...l
27
- }) {
28
- const {
29
- control: s
30
- } = i(), a = g();
31
- return /* @__PURE__ */ e(u, {
32
- control: /* @__PURE__ */ e(c, {
33
- name: r,
34
- control: s,
35
- render: ({
36
- field: t,
37
- fieldState: {
38
- error: o
39
- }
40
- }) => a ? /* @__PURE__ */ e(C, {}) : /* @__PURE__ */ k(x, {
41
- children: [/* @__PURE__ */ e(f, {
42
- size: n,
43
- ...t,
44
- checked: t.value
45
- }), o?.message && /* @__PURE__ */ e(y, {
46
- children: o?.message + ""
47
- })]
48
- })
49
- }),
50
- ...l
51
- });
52
- }
53
- export {
54
- L as R
55
- };
@@ -1,66 +0,0 @@
1
- import { useFormContext as u, Controller as c } from "react-hook-form";
2
- import { Skeleton as h, TextField as x } from "@mui/material";
3
- import { styled as g } from "@mui/material/styles";
4
- import { DateTimePicker as k } from "@mui/x-date-pickers";
5
- import { useModuleSkeleton as F, useEnvironment as v } from "@m4l/core";
6
- import { jsx as e } from "react/jsx-runtime";
7
- const C = g("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 w(t) {
18
- const {
19
- name: i,
20
- autoComplete: a = "off",
21
- skeletonWidth: m = "100%",
22
- skeletonHeight: s = 14
23
- } = t, l = F(), {
24
- control: d
25
- } = u(), {
26
- dfnsFormat: {
27
- datetime_format: p,
28
- datetime_mask: f
29
- }
30
- } = v();
31
- return l ? /* @__PURE__ */ e(C, {
32
- children: /* @__PURE__ */ e(h, {
33
- variant: "text",
34
- width: m,
35
- height: s
36
- })
37
- }) : /* @__PURE__ */ e(c, {
38
- name: i,
39
- control: d,
40
- render: ({
41
- field: r,
42
- fieldState: {
43
- error: n
44
- }
45
- }) => /* @__PURE__ */ e(k, {
46
- ampm: !1,
47
- inputFormat: p,
48
- mask: f,
49
- label: "",
50
- value: r.value,
51
- onChange: (o) => {
52
- isNaN(o) ? r.onChange(void 0) : r.onChange(o);
53
- },
54
- renderInput: (o) => /* @__PURE__ */ e(x, {
55
- autoComplete: a,
56
- fullWidth: !0,
57
- error: !!n,
58
- helperText: n?.message,
59
- ...o
60
- })
61
- })
62
- });
63
- }
64
- export {
65
- w as R
66
- };
@@ -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.05c1c5e0.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,113 +0,0 @@
1
- import { useModuleSkeleton as w, useEnvironment as F } from "@m4l/core";
2
- import { styled as v, Skeleton as S, TextField as y, InputAdornment as C } from "@mui/material";
3
- import { forwardRef as I, useState as R } from "react";
4
- import { I as H } from "../../mui_extended/IconButton/index.4b5ce8b5.js";
5
- import { useFormContext as T, Controller as b } from "react-hook-form";
6
- import { jsx as t } from "react/jsx-runtime";
7
- const $ = v("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
- })), P = (e) => {
17
- const {
18
- width: o,
19
- height: n
20
- } = e;
21
- return /* @__PURE__ */ t($, {
22
- children: /* @__PURE__ */ t(S, {
23
- variant: "text",
24
- width: o,
25
- height: n
26
- })
27
- });
28
- }, c = I((e, o) => {
29
- const {
30
- name: n,
31
- autoComplete: l = "off",
32
- skeletonWidth: d = "100%",
33
- skeletonHeight: s = "18px",
34
- type: r,
35
- ...i
36
- } = e, a = w(), {
37
- control: f
38
- } = T();
39
- return a ? /* @__PURE__ */ t(P, {
40
- width: d,
41
- height: s
42
- }) : /* @__PURE__ */ t(b, {
43
- name: n,
44
- control: f,
45
- render: ({
46
- field: {
47
- onChange: p,
48
- onBlur: h,
49
- value: g,
50
- name: x,
51
- ref: k
52
- },
53
- fieldState: {
54
- error: u
55
- }
56
- }) => /* @__PURE__ */ t(
57
- y,
58
- {
59
- inputRef: o,
60
- autoComplete: l,
61
- onChange: (m) => {
62
- if (r === "number" && m.target.value) {
63
- p(Number(m.target.value));
64
- return;
65
- }
66
- p(m);
67
- },
68
- onBlur: h,
69
- value: g || "",
70
- name: x,
71
- ref: k,
72
- fullWidth: !0,
73
- error: !!u,
74
- helperText: u?.message,
75
- type: r,
76
- ...i
77
- }
78
- )
79
- });
80
- });
81
- c.displayName = "RHFTextField";
82
- const M = (e) => {
83
- const {
84
- name: o,
85
- label: n,
86
- skeletonWidth: l,
87
- skeletonHeight: d
88
- } = e, [s, r] = R(!1), {
89
- host_static_assets: i,
90
- environment_assets: a
91
- } = F();
92
- return /* @__PURE__ */ t(c, {
93
- name: o,
94
- label: n,
95
- type: s ? "text" : "password",
96
- autoComplete: "on",
97
- skeletonWidth: l,
98
- skeletonHeight: d,
99
- InputProps: {
100
- endAdornment: /* @__PURE__ */ t(C, {
101
- position: "start",
102
- children: /* @__PURE__ */ t(H, {
103
- onClick: () => r(!s),
104
- src: s ? `${i}/${a}/frontend/domain/host/login/assets/icons/eye.svg` : `${i}/${a}/frontend/domain/host/login/assets/icons/eye_off.svg`
105
- })
106
- })
107
- }
108
- });
109
- };
110
- export {
111
- c as R,
112
- M as a
113
- };