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