dgz-ui-shared 1.2.23 → 1.2.24
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/chunks/MyInput-BXVrCIS_.cjs.js +2 -0
- package/dist/chunks/{MyInput-DOJNbPnV.cjs.js.map → MyInput-BXVrCIS_.cjs.js.map} +1 -1
- package/dist/chunks/MyInput-y2xZ3Bb9.es.js +51 -0
- package/dist/chunks/{MyInput-VyzguJnO.es.js.map → MyInput-y2xZ3Bb9.es.js.map} +1 -1
- package/dist/chunks/MySelect-CUgwH6oV.es.js +56 -0
- package/dist/chunks/{MySelect-DzvUAkVs.es.js.map → MySelect-CUgwH6oV.es.js.map} +1 -1
- package/dist/chunks/MySelect-DrHeuMYE.cjs.js +2 -0
- package/dist/chunks/{MySelect-C7tnOKUF.cjs.js.map → MySelect-DrHeuMYE.cjs.js.map} +1 -1
- package/dist/chunks/{PasswordConfirm-CU25xH0G.es.js → PasswordConfirm-B6kl3v24.es.js} +2 -2
- package/dist/chunks/{PasswordConfirm-CU25xH0G.es.js.map → PasswordConfirm-B6kl3v24.es.js.map} +1 -1
- package/dist/chunks/{PasswordConfirm-C8_4iAeF.cjs.js → PasswordConfirm-CtbStDkd.cjs.js} +2 -2
- package/dist/chunks/{PasswordConfirm-C8_4iAeF.cjs.js.map → PasswordConfirm-CtbStDkd.cjs.js.map} +1 -1
- package/dist/chunks/{Search-6BG3dnM9.cjs.js → Search-CO-HJ0n9.cjs.js} +2 -2
- package/dist/chunks/{Search-6BG3dnM9.cjs.js.map → Search-CO-HJ0n9.cjs.js.map} +1 -1
- package/dist/chunks/{Search-Y51oT-uZ.es.js → Search-DVIxJaym.es.js} +3 -3
- package/dist/chunks/{Search-Y51oT-uZ.es.js.map → Search-DVIxJaym.es.js.map} +1 -1
- package/dist/components/confirm/index.cjs.js +1 -1
- package/dist/components/confirm/index.es.js +1 -1
- package/dist/components/datatable/index.cjs.js +1 -1
- package/dist/components/datatable/index.es.js +1 -1
- package/dist/components/filters/index.cjs.js +1 -1
- package/dist/components/filters/index.es.js +1 -1
- package/dist/components/form/index.cjs.js +1 -1
- package/dist/components/form/index.cjs.js.map +1 -1
- package/dist/components/form/index.es.js +152 -142
- package/dist/components/form/index.es.js.map +1 -1
- package/dist/hooks/index.cjs.js +1 -1
- package/dist/hooks/index.es.js +1 -1
- package/dist/types/components/form/MyDatePicker.d.ts.map +1 -1
- package/dist/types/components/form/MyDateRangePicker.d.ts.map +1 -1
- package/dist/types/components/form/MyHtmlEditor.d.ts.map +1 -1
- package/dist/types/components/form/MyInput.d.ts.map +1 -1
- package/dist/types/components/form/MyMaskInput.d.ts.map +1 -1
- package/dist/types/components/form/MySelect.d.ts.map +1 -1
- package/dist/types/components/form/MyTextarea.d.ts.map +1 -1
- package/dist/types/components/form/MyTimePicker.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/MyInput-DOJNbPnV.cjs.js +0 -2
- package/dist/chunks/MyInput-VyzguJnO.es.js +0 -51
- package/dist/chunks/MySelect-C7tnOKUF.cjs.js +0 -2
- package/dist/chunks/MySelect-DzvUAkVs.es.js +0 -56
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { FormField as
|
|
1
|
+
import { FormField as g, FormLabel as N, FormItem as k, FormControl as p, Checkbox as I, Input as w, FormMessage as x, HtmlEditor as M, MaskInput as T, RadioGroupItem as D, Switch as R, Textarea as E } from "dgz-ui/form";
|
|
2
2
|
export * from "dgz-ui/form";
|
|
3
|
-
import { jsx as e, jsxs as
|
|
3
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
4
4
|
import { useId as y } from "react";
|
|
5
|
-
import { DATE as
|
|
6
|
-
import { Popover as
|
|
7
|
-
import { cn as
|
|
8
|
-
import { l as
|
|
5
|
+
import { DATE as $, Calendar as j, TimePicker as f } from "dgz-ui/calendar";
|
|
6
|
+
import { Popover as S, PopoverTrigger as z, PopoverContent as A } from "dgz-ui/popover";
|
|
7
|
+
import { cn as u, dayjs as H } from "dgz-ui/utils";
|
|
8
|
+
import { l as m } from "../../chunks/lodash-CRDOWzbs.es.js";
|
|
9
9
|
import { Calendar1 as G } from "lucide-react";
|
|
10
10
|
import { D as L } from "../../chunks/DateRangePicker-DeoV3xqL.es.js";
|
|
11
|
-
import { M as
|
|
12
|
-
import { M as de } from "../../chunks/MySelect-
|
|
11
|
+
import { M as oe } from "../../chunks/MyInput-y2xZ3Bb9.es.js";
|
|
12
|
+
import { M as de } from "../../chunks/MySelect-CUgwH6oV.es.js";
|
|
13
13
|
const W = ({
|
|
14
|
-
control:
|
|
14
|
+
control: s,
|
|
15
15
|
name: r,
|
|
16
|
-
label:
|
|
16
|
+
label: a,
|
|
17
17
|
rules: n,
|
|
18
18
|
...t
|
|
19
19
|
}) => {
|
|
20
20
|
const c = y();
|
|
21
|
-
return r &&
|
|
22
|
-
|
|
21
|
+
return r && s && /* @__PURE__ */ e(
|
|
22
|
+
g,
|
|
23
23
|
{
|
|
24
|
-
control:
|
|
24
|
+
control: s,
|
|
25
25
|
name: r,
|
|
26
26
|
rules: n,
|
|
27
|
-
render: ({ field: l }) => /* @__PURE__ */ e(
|
|
28
|
-
/* @__PURE__ */ e(
|
|
27
|
+
render: ({ field: l }) => /* @__PURE__ */ e(N, { className: "block", htmlFor: t.id || c, children: /* @__PURE__ */ i(k, { className: "flex flex-row items-start gap-3", children: [
|
|
28
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
29
29
|
I,
|
|
30
30
|
{
|
|
31
31
|
id: t.id || c,
|
|
@@ -34,55 +34,55 @@ const W = ({
|
|
|
34
34
|
...t
|
|
35
35
|
}
|
|
36
36
|
) }),
|
|
37
|
-
/* @__PURE__ */ e("div", { className: "space-y-1 leading-none", children:
|
|
37
|
+
/* @__PURE__ */ e("div", { className: "space-y-1 leading-none", children: a && /* @__PURE__ */ e("div", { children: a }) })
|
|
38
38
|
] }) })
|
|
39
39
|
}
|
|
40
40
|
) || null;
|
|
41
41
|
}, X = ({
|
|
42
|
-
control:
|
|
42
|
+
control: s,
|
|
43
43
|
name: r,
|
|
44
|
-
label:
|
|
44
|
+
label: a,
|
|
45
45
|
required: n,
|
|
46
46
|
rules: t,
|
|
47
|
-
format: c =
|
|
47
|
+
format: c = $,
|
|
48
48
|
floatingError: l,
|
|
49
|
-
placeholder:
|
|
49
|
+
placeholder: o,
|
|
50
50
|
disabled: d,
|
|
51
|
-
register:
|
|
52
|
-
className:
|
|
53
|
-
inputProps:
|
|
54
|
-
...
|
|
55
|
-
}) => r &&
|
|
56
|
-
|
|
51
|
+
register: h,
|
|
52
|
+
className: b,
|
|
53
|
+
inputProps: F,
|
|
54
|
+
...P
|
|
55
|
+
}) => r && s && /* @__PURE__ */ e(
|
|
56
|
+
g,
|
|
57
57
|
{
|
|
58
|
-
control:
|
|
58
|
+
control: s,
|
|
59
59
|
name: r,
|
|
60
60
|
rules: t,
|
|
61
|
-
render: ({ field:
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
render: ({ field: v, formState: C }) => /* @__PURE__ */ i(k, { children: [
|
|
62
|
+
a && /* @__PURE__ */ i(N, { className: "block", children: [
|
|
63
|
+
a,
|
|
64
64
|
" ",
|
|
65
65
|
n && /* @__PURE__ */ e("span", { className: "text-red-600", children: "*" })
|
|
66
66
|
] }),
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */ e(z, { asChild: !0, children: /* @__PURE__ */ e(
|
|
67
|
+
/* @__PURE__ */ i(S, { children: [
|
|
68
|
+
/* @__PURE__ */ e(z, { asChild: !0, children: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ i("div", { className: "relative", children: [
|
|
69
69
|
/* @__PURE__ */ e(
|
|
70
70
|
w,
|
|
71
71
|
{
|
|
72
|
-
...
|
|
73
|
-
variant:
|
|
72
|
+
...F,
|
|
73
|
+
variant: m.get(C.errors, `${r}.message`) ? "failure" : "default",
|
|
74
74
|
disabled: d,
|
|
75
|
-
...
|
|
75
|
+
...v,
|
|
76
76
|
readOnly: !0,
|
|
77
|
-
placeholder:
|
|
78
|
-
value: H(
|
|
79
|
-
className:
|
|
77
|
+
placeholder: o || "Pick a date",
|
|
78
|
+
value: H(v.value).format(c),
|
|
79
|
+
className: u("m-0 text-start", b)
|
|
80
80
|
}
|
|
81
81
|
),
|
|
82
82
|
/* @__PURE__ */ e(
|
|
83
83
|
G,
|
|
84
84
|
{
|
|
85
|
-
className:
|
|
85
|
+
className: u(
|
|
86
86
|
"text-secondary absolute top-2.5 right-2 size-5",
|
|
87
87
|
d && "pointer-events-none opacity-50"
|
|
88
88
|
)
|
|
@@ -90,176 +90,181 @@ const W = ({
|
|
|
90
90
|
)
|
|
91
91
|
] }) }) }),
|
|
92
92
|
!d && /* @__PURE__ */ e(A, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ e(
|
|
93
|
-
|
|
93
|
+
j,
|
|
94
94
|
{
|
|
95
|
-
...
|
|
95
|
+
...P,
|
|
96
96
|
mode: "single",
|
|
97
|
-
selected:
|
|
98
|
-
onSelect:
|
|
97
|
+
selected: v.value,
|
|
98
|
+
onSelect: v.onChange
|
|
99
99
|
}
|
|
100
100
|
) })
|
|
101
101
|
] }),
|
|
102
|
-
/* @__PURE__ */ e(
|
|
103
|
-
|
|
102
|
+
m.get(C.errors, r, "") && /* @__PURE__ */ e(
|
|
103
|
+
x,
|
|
104
104
|
{
|
|
105
|
-
className:
|
|
105
|
+
className: u(l && "absolute -bottom-5")
|
|
106
106
|
}
|
|
107
107
|
)
|
|
108
108
|
] })
|
|
109
109
|
}
|
|
110
110
|
) || null, Y = ({
|
|
111
|
-
control:
|
|
111
|
+
control: s,
|
|
112
112
|
name: r,
|
|
113
|
-
label:
|
|
113
|
+
label: a,
|
|
114
114
|
required: n,
|
|
115
115
|
rules: t,
|
|
116
116
|
placeholder: c,
|
|
117
117
|
floatingError: l,
|
|
118
|
-
...
|
|
119
|
-
}) => r &&
|
|
120
|
-
|
|
118
|
+
...o
|
|
119
|
+
}) => r && s && /* @__PURE__ */ e(
|
|
120
|
+
g,
|
|
121
121
|
{
|
|
122
|
-
control:
|
|
122
|
+
control: s,
|
|
123
123
|
name: r,
|
|
124
124
|
rules: t,
|
|
125
|
-
render: ({ field: d, formState:
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
render: ({ field: d, formState: h }) => /* @__PURE__ */ i(k, { children: [
|
|
126
|
+
a && /* @__PURE__ */ i(N, { className: "block", children: [
|
|
127
|
+
a,
|
|
128
128
|
" ",
|
|
129
129
|
n && /* @__PURE__ */ e("span", { className: "text-red-600", children: "*" })
|
|
130
130
|
] }),
|
|
131
|
-
/* @__PURE__ */ e(
|
|
131
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
132
132
|
L,
|
|
133
133
|
{
|
|
134
|
-
...
|
|
135
|
-
error: `${
|
|
134
|
+
...o,
|
|
135
|
+
error: `${m.get(h.errors, r, "")}`,
|
|
136
136
|
selected: d.value,
|
|
137
137
|
onRangeSelected: d.onChange,
|
|
138
138
|
placeholder: c
|
|
139
139
|
}
|
|
140
140
|
) }) }),
|
|
141
|
-
/* @__PURE__ */ e(
|
|
142
|
-
|
|
141
|
+
m.get(h.errors, r, "") && /* @__PURE__ */ e(
|
|
142
|
+
x,
|
|
143
143
|
{
|
|
144
|
-
className:
|
|
144
|
+
className: u(l && "absolute -bottom-5")
|
|
145
145
|
}
|
|
146
146
|
)
|
|
147
147
|
] })
|
|
148
148
|
}
|
|
149
149
|
) || null, Z = ({
|
|
150
|
-
control:
|
|
150
|
+
control: s,
|
|
151
151
|
name: r,
|
|
152
|
-
label:
|
|
152
|
+
label: a,
|
|
153
153
|
rules: n,
|
|
154
154
|
required: t,
|
|
155
155
|
floatingError: c,
|
|
156
156
|
...l
|
|
157
|
-
}) => r &&
|
|
158
|
-
|
|
157
|
+
}) => r && s ? /* @__PURE__ */ e(
|
|
158
|
+
g,
|
|
159
159
|
{
|
|
160
|
-
control:
|
|
160
|
+
control: s,
|
|
161
161
|
name: r,
|
|
162
162
|
rules: n,
|
|
163
|
-
render: ({ field:
|
|
164
|
-
|
|
165
|
-
|
|
163
|
+
render: ({ field: o }) => /* @__PURE__ */ i(k, { children: [
|
|
164
|
+
a && /* @__PURE__ */ i(N, { className: "block", children: [
|
|
165
|
+
a,
|
|
166
166
|
" ",
|
|
167
167
|
t && /* @__PURE__ */ e("span", { className: "text-red-600", children: "*" })
|
|
168
168
|
] }),
|
|
169
|
-
/* @__PURE__ */ e(
|
|
170
|
-
/* @__PURE__ */ e(
|
|
169
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(M, { ...o, ...l }) }),
|
|
170
|
+
m.get(formState.errors, r, "") && /* @__PURE__ */ e(
|
|
171
|
+
x,
|
|
172
|
+
{
|
|
173
|
+
className: u(c && "absolute -bottom-5")
|
|
174
|
+
}
|
|
175
|
+
)
|
|
171
176
|
] })
|
|
172
177
|
}
|
|
173
|
-
) : /* @__PURE__ */ e(
|
|
174
|
-
control:
|
|
178
|
+
) : /* @__PURE__ */ e(M, { ...l }), ee = ({
|
|
179
|
+
control: s,
|
|
175
180
|
name: r,
|
|
176
|
-
label:
|
|
181
|
+
label: a,
|
|
177
182
|
rules: n,
|
|
178
183
|
required: t,
|
|
179
184
|
floatingError: c,
|
|
180
185
|
...l
|
|
181
|
-
}) => r &&
|
|
182
|
-
|
|
186
|
+
}) => r && s && /* @__PURE__ */ e(
|
|
187
|
+
g,
|
|
183
188
|
{
|
|
184
|
-
control:
|
|
189
|
+
control: s,
|
|
185
190
|
name: r,
|
|
186
191
|
rules: n,
|
|
187
|
-
render: ({ field:
|
|
188
|
-
|
|
189
|
-
|
|
192
|
+
render: ({ field: o, formState: d }) => /* @__PURE__ */ i(k, { children: [
|
|
193
|
+
a && /* @__PURE__ */ i(N, { className: "block", children: [
|
|
194
|
+
a,
|
|
190
195
|
" ",
|
|
191
196
|
t && /* @__PURE__ */ e("span", { className: "text-red-600", children: "*" })
|
|
192
197
|
] }),
|
|
193
|
-
/* @__PURE__ */ e(
|
|
194
|
-
|
|
198
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
199
|
+
T,
|
|
195
200
|
{
|
|
196
201
|
thousandsSeparator: " ",
|
|
197
202
|
lazy: !1,
|
|
198
203
|
placeholderChar: "_",
|
|
199
204
|
unmask: !0,
|
|
200
|
-
...
|
|
205
|
+
...o,
|
|
201
206
|
...l,
|
|
202
|
-
variant:
|
|
203
|
-
onAccept: (
|
|
207
|
+
variant: m.get(d.errors, `${r}.message`) ? "failure" : "default",
|
|
208
|
+
onAccept: (h) => o.onChange(h)
|
|
204
209
|
}
|
|
205
210
|
) }),
|
|
206
|
-
/* @__PURE__ */ e(
|
|
207
|
-
|
|
211
|
+
m.get(d.errors, r, "") && /* @__PURE__ */ e(
|
|
212
|
+
x,
|
|
208
213
|
{
|
|
209
|
-
className:
|
|
214
|
+
className: u(c && "absolute -bottom-5")
|
|
210
215
|
}
|
|
211
216
|
)
|
|
212
217
|
] })
|
|
213
218
|
}
|
|
214
219
|
) || null, re = ({
|
|
215
|
-
control:
|
|
220
|
+
control: s,
|
|
216
221
|
name: r,
|
|
217
|
-
label:
|
|
222
|
+
label: a,
|
|
218
223
|
rules: n,
|
|
219
224
|
value: t,
|
|
220
225
|
...c
|
|
221
226
|
}) => {
|
|
222
227
|
const l = y();
|
|
223
|
-
return r &&
|
|
224
|
-
|
|
228
|
+
return r && s && /* @__PURE__ */ e(
|
|
229
|
+
g,
|
|
225
230
|
{
|
|
226
|
-
control:
|
|
231
|
+
control: s,
|
|
227
232
|
name: r,
|
|
228
233
|
rules: n,
|
|
229
|
-
render: ({ field:
|
|
230
|
-
/* @__PURE__ */ e(
|
|
231
|
-
|
|
234
|
+
render: ({ field: o }) => /* @__PURE__ */ e(N, { className: "block", htmlFor: c.id || l, children: /* @__PURE__ */ i(k, { className: "flex flex-row items-start gap-3", children: [
|
|
235
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
236
|
+
D,
|
|
232
237
|
{
|
|
233
238
|
id: c.id || l,
|
|
234
239
|
value: t,
|
|
235
|
-
checked:
|
|
240
|
+
checked: o.value === t,
|
|
236
241
|
onClick: () => {
|
|
237
|
-
|
|
242
|
+
o.value !== t && o.onChange(t);
|
|
238
243
|
},
|
|
239
244
|
...c
|
|
240
245
|
}
|
|
241
246
|
) }),
|
|
242
|
-
/* @__PURE__ */ e("div", { className: "space-y-1 leading-none", children:
|
|
247
|
+
/* @__PURE__ */ e("div", { className: "space-y-1 leading-none", children: a && /* @__PURE__ */ e("div", { children: a }) })
|
|
243
248
|
] }) })
|
|
244
249
|
}
|
|
245
250
|
) || null;
|
|
246
|
-
},
|
|
247
|
-
control:
|
|
251
|
+
}, se = ({
|
|
252
|
+
control: s,
|
|
248
253
|
name: r,
|
|
249
|
-
label:
|
|
254
|
+
label: a,
|
|
250
255
|
rules: n,
|
|
251
256
|
...t
|
|
252
257
|
}) => {
|
|
253
258
|
const c = y();
|
|
254
|
-
return r &&
|
|
255
|
-
|
|
259
|
+
return r && s && /* @__PURE__ */ e(
|
|
260
|
+
g,
|
|
256
261
|
{
|
|
257
|
-
control:
|
|
262
|
+
control: s,
|
|
258
263
|
name: r,
|
|
259
264
|
rules: n,
|
|
260
|
-
render: ({ field: l }) => /* @__PURE__ */ e(
|
|
261
|
-
/* @__PURE__ */ e(
|
|
262
|
-
|
|
265
|
+
render: ({ field: l }) => /* @__PURE__ */ e(N, { className: "block", htmlFor: t.id || c, children: /* @__PURE__ */ i(k, { className: "flex flex-row items-start gap-3", children: [
|
|
266
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
267
|
+
R,
|
|
263
268
|
{
|
|
264
269
|
id: t.id || c,
|
|
265
270
|
className: "m-0",
|
|
@@ -268,85 +273,90 @@ const W = ({
|
|
|
268
273
|
...t
|
|
269
274
|
}
|
|
270
275
|
) }),
|
|
271
|
-
/* @__PURE__ */ e("div", { className: "space-y-1 leading-none", children:
|
|
276
|
+
/* @__PURE__ */ e("div", { className: "space-y-1 leading-none", children: a && /* @__PURE__ */ e("div", { children: a }) })
|
|
272
277
|
] }) })
|
|
273
278
|
}
|
|
274
279
|
) || null;
|
|
275
|
-
},
|
|
276
|
-
control:
|
|
280
|
+
}, ae = ({
|
|
281
|
+
control: s,
|
|
277
282
|
name: r,
|
|
278
|
-
label:
|
|
283
|
+
label: a,
|
|
279
284
|
required: n,
|
|
280
285
|
rules: t,
|
|
281
286
|
className: c,
|
|
282
287
|
floatingError: l,
|
|
283
|
-
...
|
|
284
|
-
}) => r &&
|
|
285
|
-
|
|
288
|
+
...o
|
|
289
|
+
}) => r && s && /* @__PURE__ */ e(
|
|
290
|
+
g,
|
|
286
291
|
{
|
|
287
|
-
control:
|
|
292
|
+
control: s,
|
|
288
293
|
name: r,
|
|
289
294
|
rules: t,
|
|
290
|
-
render: ({ field: d, formState:
|
|
291
|
-
|
|
292
|
-
|
|
295
|
+
render: ({ field: d, formState: h }) => /* @__PURE__ */ i(k, { children: [
|
|
296
|
+
a && /* @__PURE__ */ i(N, { className: "block", children: [
|
|
297
|
+
a,
|
|
293
298
|
" ",
|
|
294
299
|
n && /* @__PURE__ */ e("span", { className: "text-red-600", children: "*" })
|
|
295
300
|
] }),
|
|
296
|
-
/* @__PURE__ */ e(
|
|
297
|
-
|
|
301
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
302
|
+
E,
|
|
298
303
|
{
|
|
299
|
-
variant:
|
|
300
|
-
...
|
|
304
|
+
variant: m.get(h.errors, `${r}.message`) ? "failure" : "default",
|
|
305
|
+
...o,
|
|
301
306
|
...d,
|
|
302
|
-
className:
|
|
307
|
+
className: u(c)
|
|
303
308
|
}
|
|
304
309
|
) }),
|
|
305
|
-
/* @__PURE__ */ e(
|
|
306
|
-
|
|
310
|
+
m.get(h.errors, r, "") && /* @__PURE__ */ e(
|
|
311
|
+
x,
|
|
307
312
|
{
|
|
308
|
-
className:
|
|
313
|
+
className: u(l && "absolute -bottom-5")
|
|
309
314
|
}
|
|
310
315
|
)
|
|
311
316
|
] })
|
|
312
317
|
}
|
|
313
318
|
) || null, te = ({
|
|
314
|
-
control:
|
|
319
|
+
control: s,
|
|
315
320
|
name: r,
|
|
316
|
-
label:
|
|
321
|
+
label: a,
|
|
317
322
|
required: n,
|
|
318
323
|
className: t,
|
|
319
324
|
rules: c,
|
|
320
325
|
floatingError: l,
|
|
321
|
-
...
|
|
322
|
-
}) => r &&
|
|
323
|
-
|
|
326
|
+
...o
|
|
327
|
+
}) => r && s ? /* @__PURE__ */ e(
|
|
328
|
+
g,
|
|
324
329
|
{
|
|
325
|
-
control:
|
|
330
|
+
control: s,
|
|
326
331
|
name: r,
|
|
327
332
|
rules: c,
|
|
328
|
-
render: ({ field: d }) => /* @__PURE__ */
|
|
329
|
-
|
|
330
|
-
|
|
333
|
+
render: ({ field: d, formState: h }) => /* @__PURE__ */ i(k, { children: [
|
|
334
|
+
a && /* @__PURE__ */ i(N, { className: "block", children: [
|
|
335
|
+
a,
|
|
331
336
|
" ",
|
|
332
337
|
n && /* @__PURE__ */ e("span", { className: "text-red-600", children: "*" })
|
|
333
338
|
] }),
|
|
334
|
-
/* @__PURE__ */ e(
|
|
335
|
-
/* @__PURE__ */ e(
|
|
339
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(f, { ...d, ...o }) }),
|
|
340
|
+
m.get(h.errors, r, "") && /* @__PURE__ */ e(
|
|
341
|
+
x,
|
|
342
|
+
{
|
|
343
|
+
className: u(l && "absolute -bottom-5")
|
|
344
|
+
}
|
|
345
|
+
)
|
|
336
346
|
] })
|
|
337
347
|
}
|
|
338
|
-
) : /* @__PURE__ */ e(f, { className: "mt-2", ...
|
|
348
|
+
) : /* @__PURE__ */ e(f, { className: "mt-2", ...o });
|
|
339
349
|
export {
|
|
340
350
|
W as MyCheckbox,
|
|
341
351
|
X as MyDatePicker,
|
|
342
352
|
Y as MyDateRangePicker,
|
|
343
353
|
Z as MyHtmlEditor,
|
|
344
|
-
|
|
354
|
+
oe as MyInput,
|
|
345
355
|
ee as MyMaskInput,
|
|
346
356
|
re as MyRadio,
|
|
347
357
|
de as MySelect,
|
|
348
|
-
|
|
349
|
-
|
|
358
|
+
se as MySwitch,
|
|
359
|
+
ae as MyTextarea,
|
|
350
360
|
te as MyTimePicker
|
|
351
361
|
};
|
|
352
362
|
//# sourceMappingURL=index.es.js.map
|