dgz-ui-shared 1.2.32 → 1.2.34
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/components/datatable/index.cjs.js +1 -1
- package/dist/components/datatable/index.cjs.js.map +1 -1
- package/dist/components/datatable/index.es.js +64 -70
- package/dist/components/datatable/index.es.js.map +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 -186
- package/dist/components/form/index.es.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/datatable/DataTable.d.ts.map +1 -1
- package/dist/types/components/form/MyDatePicker.d.ts +7 -1
- package/dist/types/components/form/MyDatePicker.d.ts.map +1 -1
- package/dist/types/components/form/MyShadcnSelect.d.ts +39 -0
- package/dist/types/components/form/MyShadcnSelect.d.ts.map +1 -0
- package/dist/types/components/form/index.d.ts +1 -0
- package/dist/types/components/form/index.d.ts.map +1 -1
- package/package.json +3 -2
|
@@ -1,373 +1,450 @@
|
|
|
1
|
-
import { FormField as
|
|
1
|
+
import { FormField as N, FormLabel as g, FormItem as v, FormControl as p, Checkbox as D, Input as $, FormMessage as x, HtmlEditor as E, MaskInput as R, RadioGroupItem as H, Select as j, SelectTrigger as z, SelectValue as A, SelectContent as V, SelectItem as G, Switch as L, Textarea as O } from "dgz-ui/form";
|
|
2
2
|
export * from "dgz-ui/form";
|
|
3
|
-
import { jsx as e, jsxs as
|
|
4
|
-
import { useId as
|
|
5
|
-
import { DATE as
|
|
6
|
-
import { Popover as
|
|
7
|
-
import { cn as
|
|
8
|
-
import { l as
|
|
9
|
-
import { Calendar1 as
|
|
10
|
-
import { D as
|
|
11
|
-
import { M as
|
|
12
|
-
import { M as
|
|
13
|
-
const
|
|
3
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
4
|
+
import { useId as P } from "react";
|
|
5
|
+
import { DATE as _, Calendar as q, TimePicker as F } from "dgz-ui/calendar";
|
|
6
|
+
import { Popover as B, PopoverTrigger as J, PopoverContent as K } from "dgz-ui/popover";
|
|
7
|
+
import { cn as u, dayjs as S } from "dgz-ui/utils";
|
|
8
|
+
import { l as y } from "../../chunks/lodash-CRDOWzbs.es.js";
|
|
9
|
+
import { Calendar1 as Q } from "lucide-react";
|
|
10
|
+
import { D as U } from "../../chunks/DateRangePicker-DeoV3xqL.es.js";
|
|
11
|
+
import { M as xe } from "../../chunks/MyInput-Cb0FlVxQ.es.js";
|
|
12
|
+
import { M as Ce } from "../../chunks/MySelect-5DHBVlKZ.es.js";
|
|
13
|
+
const le = ({
|
|
14
14
|
control: a,
|
|
15
15
|
name: r,
|
|
16
|
-
label:
|
|
16
|
+
label: t,
|
|
17
17
|
rules: i,
|
|
18
|
-
...
|
|
18
|
+
...l
|
|
19
19
|
}) => {
|
|
20
|
-
const
|
|
20
|
+
const n = P();
|
|
21
21
|
return r && a && /* @__PURE__ */ e(
|
|
22
|
-
|
|
22
|
+
N,
|
|
23
23
|
{
|
|
24
24
|
control: a,
|
|
25
25
|
name: r,
|
|
26
26
|
rules: i,
|
|
27
|
-
render: ({ field:
|
|
28
|
-
/* @__PURE__ */ e(
|
|
29
|
-
|
|
27
|
+
render: ({ field: s }) => /* @__PURE__ */ e(g, { className: "block", htmlFor: l.id || n, children: /* @__PURE__ */ c(v, { className: "flex flex-row items-start gap-3", children: [
|
|
28
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
29
|
+
D,
|
|
30
30
|
{
|
|
31
|
-
id:
|
|
32
|
-
checked:
|
|
33
|
-
onCheckedChange:
|
|
34
|
-
...
|
|
31
|
+
id: l.id || n,
|
|
32
|
+
checked: s.value,
|
|
33
|
+
onCheckedChange: s.onChange,
|
|
34
|
+
...l
|
|
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: t && /* @__PURE__ */ e("div", { children: t }) })
|
|
38
38
|
] }) })
|
|
39
39
|
}
|
|
40
40
|
) || null;
|
|
41
|
-
},
|
|
41
|
+
}, ne = ({
|
|
42
42
|
control: a,
|
|
43
43
|
name: r,
|
|
44
|
-
label:
|
|
44
|
+
label: t,
|
|
45
45
|
required: i,
|
|
46
|
-
rules:
|
|
47
|
-
format:
|
|
48
|
-
floatingError:
|
|
46
|
+
rules: l,
|
|
47
|
+
format: n = _,
|
|
48
|
+
floatingError: s,
|
|
49
49
|
placeholder: d,
|
|
50
|
-
disabled:
|
|
51
|
-
register:
|
|
52
|
-
className:
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
disabled: h,
|
|
51
|
+
register: m,
|
|
52
|
+
className: k,
|
|
53
|
+
showTime: b,
|
|
54
|
+
inputProps: f,
|
|
55
|
+
...M
|
|
55
56
|
}) => r && a && /* @__PURE__ */ e(
|
|
56
|
-
|
|
57
|
+
N,
|
|
57
58
|
{
|
|
58
59
|
control: a,
|
|
59
60
|
name: r,
|
|
60
|
-
rules:
|
|
61
|
-
render: ({ field:
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
rules: l,
|
|
62
|
+
render: ({ field: o, formState: C }) => /* @__PURE__ */ c(v, { children: [
|
|
63
|
+
t && /* @__PURE__ */ c(g, { className: "block", children: [
|
|
64
|
+
t,
|
|
64
65
|
" ",
|
|
65
66
|
i && /* @__PURE__ */ e("span", { className: "text-red-600", children: "*" })
|
|
66
67
|
] }),
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */ e(
|
|
69
|
-
/* @__PURE__ */ e(
|
|
70
|
-
|
|
68
|
+
/* @__PURE__ */ c(B, { children: [
|
|
69
|
+
/* @__PURE__ */ e(J, { asChild: !0, children: /* @__PURE__ */ c("div", { className: "relative", children: [
|
|
70
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
71
|
+
$,
|
|
71
72
|
{
|
|
72
|
-
...
|
|
73
|
-
variant:
|
|
74
|
-
disabled:
|
|
75
|
-
...
|
|
73
|
+
...f,
|
|
74
|
+
variant: y.get(C.errors, `${r}.message`) ? "failure" : "default",
|
|
75
|
+
disabled: h,
|
|
76
|
+
...o,
|
|
76
77
|
readOnly: !0,
|
|
77
78
|
placeholder: d || "Pick a date",
|
|
78
|
-
value:
|
|
79
|
-
className:
|
|
79
|
+
value: S(o.value).format(n),
|
|
80
|
+
className: u("m-0 text-start", k)
|
|
80
81
|
}
|
|
81
82
|
) }),
|
|
82
83
|
/* @__PURE__ */ e(
|
|
83
|
-
|
|
84
|
+
Q,
|
|
84
85
|
{
|
|
85
|
-
className:
|
|
86
|
+
className: u(
|
|
86
87
|
"text-secondary absolute top-2.5 right-2 size-5",
|
|
87
|
-
|
|
88
|
+
h && "pointer-events-none opacity-50"
|
|
88
89
|
)
|
|
89
90
|
}
|
|
90
91
|
),
|
|
91
92
|
/* @__PURE__ */ e(
|
|
92
|
-
|
|
93
|
+
x,
|
|
93
94
|
{
|
|
94
|
-
className:
|
|
95
|
+
className: u(s && "absolute -bottom-5")
|
|
95
96
|
}
|
|
96
97
|
)
|
|
97
98
|
] }) }),
|
|
98
|
-
!
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
!h && /* @__PURE__ */ c(K, { className: "w-auto p-0", align: "start", children: [
|
|
100
|
+
/* @__PURE__ */ e(
|
|
101
|
+
q,
|
|
102
|
+
{
|
|
103
|
+
...M,
|
|
104
|
+
mode: "single",
|
|
105
|
+
selected: o.value,
|
|
106
|
+
onSelect: o.onChange
|
|
107
|
+
}
|
|
108
|
+
),
|
|
109
|
+
b && /* @__PURE__ */ e("div", { className: "px-4 pb-3", children: /* @__PURE__ */ e(
|
|
110
|
+
F,
|
|
111
|
+
{
|
|
112
|
+
value: S(o.value).format("HH:mm"),
|
|
113
|
+
onChange: (I) => {
|
|
114
|
+
const [T, w] = I.split(":");
|
|
115
|
+
o.onChange(
|
|
116
|
+
S(o.value).set("hour", Number(T)).set("minute", Number(w)).toDate()
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
) })
|
|
121
|
+
] })
|
|
107
122
|
] })
|
|
108
123
|
] })
|
|
109
124
|
}
|
|
110
|
-
) || null,
|
|
125
|
+
) || null, se = ({
|
|
111
126
|
control: a,
|
|
112
127
|
name: r,
|
|
113
|
-
label:
|
|
128
|
+
label: t,
|
|
114
129
|
required: i,
|
|
115
|
-
rules:
|
|
116
|
-
placeholder:
|
|
117
|
-
floatingError:
|
|
130
|
+
rules: l,
|
|
131
|
+
placeholder: n,
|
|
132
|
+
floatingError: s,
|
|
118
133
|
...d
|
|
119
134
|
}) => r && a && /* @__PURE__ */ e(
|
|
120
|
-
|
|
135
|
+
N,
|
|
121
136
|
{
|
|
122
137
|
control: a,
|
|
123
138
|
name: r,
|
|
124
|
-
rules:
|
|
125
|
-
render: ({ field:
|
|
126
|
-
|
|
127
|
-
|
|
139
|
+
rules: l,
|
|
140
|
+
render: ({ field: h, formState: m }) => /* @__PURE__ */ c(v, { children: [
|
|
141
|
+
t && /* @__PURE__ */ c(g, { className: "block", children: [
|
|
142
|
+
t,
|
|
128
143
|
" ",
|
|
129
144
|
i && /* @__PURE__ */ e("span", { className: "text-red-600", children: "*" })
|
|
130
145
|
] }),
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
/* @__PURE__ */ e(
|
|
133
|
-
|
|
146
|
+
/* @__PURE__ */ c("div", { children: [
|
|
147
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
148
|
+
U,
|
|
134
149
|
{
|
|
135
150
|
...d,
|
|
136
|
-
error: `${
|
|
137
|
-
selected:
|
|
138
|
-
onRangeSelected:
|
|
139
|
-
placeholder:
|
|
151
|
+
error: `${y.get(m.errors, r, "")}`,
|
|
152
|
+
selected: h.value,
|
|
153
|
+
onRangeSelected: h.onChange,
|
|
154
|
+
placeholder: n
|
|
140
155
|
}
|
|
141
156
|
) }),
|
|
142
157
|
/* @__PURE__ */ e(
|
|
143
|
-
|
|
158
|
+
x,
|
|
144
159
|
{
|
|
145
|
-
className:
|
|
160
|
+
className: u(s && "absolute -bottom-5")
|
|
146
161
|
}
|
|
147
162
|
)
|
|
148
163
|
] })
|
|
149
164
|
] })
|
|
150
165
|
}
|
|
151
|
-
) || null,
|
|
166
|
+
) || null, ie = ({
|
|
152
167
|
control: a,
|
|
153
168
|
name: r,
|
|
154
|
-
label:
|
|
169
|
+
label: t,
|
|
155
170
|
rules: i,
|
|
156
|
-
required:
|
|
157
|
-
floatingError:
|
|
158
|
-
...
|
|
171
|
+
required: l,
|
|
172
|
+
floatingError: n,
|
|
173
|
+
...s
|
|
159
174
|
}) => r && a && /* @__PURE__ */ e(
|
|
160
|
-
|
|
175
|
+
N,
|
|
161
176
|
{
|
|
162
177
|
control: a,
|
|
163
178
|
name: r,
|
|
164
179
|
rules: i,
|
|
165
|
-
render: ({ field: d }) => /* @__PURE__ */
|
|
166
|
-
|
|
167
|
-
|
|
180
|
+
render: ({ field: d }) => /* @__PURE__ */ c(v, { children: [
|
|
181
|
+
t && /* @__PURE__ */ c(g, { className: "block", children: [
|
|
182
|
+
t,
|
|
168
183
|
" ",
|
|
169
|
-
|
|
184
|
+
l && /* @__PURE__ */ e("span", { className: "text-red-600", children: "*" })
|
|
170
185
|
] }),
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
-
/* @__PURE__ */ e(
|
|
186
|
+
/* @__PURE__ */ c("div", { children: [
|
|
187
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(E, { ...d, ...s }) }),
|
|
173
188
|
/* @__PURE__ */ e(
|
|
174
|
-
|
|
189
|
+
x,
|
|
175
190
|
{
|
|
176
|
-
className:
|
|
191
|
+
className: u(n && "absolute -bottom-5")
|
|
177
192
|
}
|
|
178
193
|
)
|
|
179
194
|
] })
|
|
180
195
|
] })
|
|
181
196
|
}
|
|
182
|
-
) || null,
|
|
197
|
+
) || null, de = ({
|
|
183
198
|
control: a,
|
|
184
199
|
name: r,
|
|
185
|
-
label:
|
|
200
|
+
label: t,
|
|
186
201
|
rules: i,
|
|
187
|
-
required:
|
|
188
|
-
floatingError:
|
|
189
|
-
...
|
|
202
|
+
required: l,
|
|
203
|
+
floatingError: n,
|
|
204
|
+
...s
|
|
190
205
|
}) => r && a && /* @__PURE__ */ e(
|
|
191
|
-
|
|
206
|
+
N,
|
|
192
207
|
{
|
|
193
208
|
control: a,
|
|
194
209
|
name: r,
|
|
195
210
|
rules: i,
|
|
196
|
-
render: ({ field: d, formState:
|
|
197
|
-
|
|
198
|
-
|
|
211
|
+
render: ({ field: d, formState: h }) => /* @__PURE__ */ c(v, { children: [
|
|
212
|
+
t && /* @__PURE__ */ c(g, { className: "block", children: [
|
|
213
|
+
t,
|
|
199
214
|
" ",
|
|
200
|
-
|
|
215
|
+
l && /* @__PURE__ */ e("span", { className: "text-red-600", children: "*" })
|
|
201
216
|
] }),
|
|
202
|
-
/* @__PURE__ */
|
|
203
|
-
/* @__PURE__ */ e(
|
|
204
|
-
|
|
217
|
+
/* @__PURE__ */ c("div", { children: [
|
|
218
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
219
|
+
R,
|
|
205
220
|
{
|
|
206
221
|
thousandsSeparator: " ",
|
|
207
222
|
lazy: !1,
|
|
208
223
|
placeholderChar: "_",
|
|
209
224
|
unmask: !0,
|
|
210
225
|
...d,
|
|
211
|
-
...
|
|
212
|
-
variant:
|
|
213
|
-
onAccept: (
|
|
226
|
+
...s,
|
|
227
|
+
variant: y.get(h.errors, `${r}.message`) ? "failure" : "default",
|
|
228
|
+
onAccept: (m) => d.onChange(m)
|
|
214
229
|
}
|
|
215
230
|
) }),
|
|
216
231
|
/* @__PURE__ */ e(
|
|
217
|
-
|
|
232
|
+
x,
|
|
218
233
|
{
|
|
219
|
-
className:
|
|
234
|
+
className: u(n && "absolute -bottom-5")
|
|
220
235
|
}
|
|
221
236
|
)
|
|
222
237
|
] })
|
|
223
238
|
] })
|
|
224
239
|
}
|
|
225
|
-
) || null,
|
|
240
|
+
) || null, oe = ({
|
|
226
241
|
control: a,
|
|
227
242
|
name: r,
|
|
228
|
-
label:
|
|
243
|
+
label: t,
|
|
229
244
|
rules: i,
|
|
230
|
-
value:
|
|
231
|
-
...
|
|
245
|
+
value: l,
|
|
246
|
+
...n
|
|
232
247
|
}) => {
|
|
233
|
-
const
|
|
248
|
+
const s = P();
|
|
234
249
|
return r && a && /* @__PURE__ */ e(
|
|
235
|
-
|
|
250
|
+
N,
|
|
236
251
|
{
|
|
237
252
|
control: a,
|
|
238
253
|
name: r,
|
|
239
254
|
rules: i,
|
|
240
|
-
render: ({ field: d }) => /* @__PURE__ */ e(
|
|
241
|
-
/* @__PURE__ */ e(
|
|
242
|
-
|
|
255
|
+
render: ({ field: d }) => /* @__PURE__ */ e(g, { className: "block", htmlFor: n.id || s, children: /* @__PURE__ */ c(v, { className: "flex flex-row items-start gap-3", children: [
|
|
256
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
257
|
+
H,
|
|
243
258
|
{
|
|
244
|
-
id:
|
|
245
|
-
value:
|
|
246
|
-
checked: d.value ===
|
|
259
|
+
id: n.id || s,
|
|
260
|
+
value: l,
|
|
261
|
+
checked: d.value === l,
|
|
247
262
|
onClick: () => {
|
|
248
|
-
d.value !==
|
|
263
|
+
d.value !== l && d.onChange(l);
|
|
249
264
|
},
|
|
250
|
-
...
|
|
265
|
+
...n
|
|
251
266
|
}
|
|
252
267
|
) }),
|
|
253
|
-
/* @__PURE__ */ e("div", { className: "space-y-1 leading-none", children:
|
|
268
|
+
/* @__PURE__ */ e("div", { className: "space-y-1 leading-none", children: t && /* @__PURE__ */ e("div", { children: t }) })
|
|
254
269
|
] }) })
|
|
255
270
|
}
|
|
256
271
|
) || null;
|
|
257
|
-
},
|
|
272
|
+
}, he = ({
|
|
273
|
+
control: a,
|
|
274
|
+
name: r,
|
|
275
|
+
label: t,
|
|
276
|
+
required: i,
|
|
277
|
+
className: l,
|
|
278
|
+
rules: n,
|
|
279
|
+
options: s = [],
|
|
280
|
+
placeholder: d = "Select an option",
|
|
281
|
+
disabled: h,
|
|
282
|
+
onChange: m
|
|
283
|
+
}) => r && a && /* @__PURE__ */ e(
|
|
284
|
+
N,
|
|
285
|
+
{
|
|
286
|
+
control: a,
|
|
287
|
+
name: r,
|
|
288
|
+
rules: n,
|
|
289
|
+
render: ({ field: k, formState: b }) => {
|
|
290
|
+
const f = !!y.get(b.errors, `${r}`), M = (o) => {
|
|
291
|
+
const C = Number(o) ? Number(o) : o;
|
|
292
|
+
C && k.value !== C && (k.onChange(C), m == null || m(C));
|
|
293
|
+
};
|
|
294
|
+
return /* @__PURE__ */ c(v, { children: [
|
|
295
|
+
t && /* @__PURE__ */ c(g, { children: [
|
|
296
|
+
t,
|
|
297
|
+
" ",
|
|
298
|
+
i && /* @__PURE__ */ e("span", { className: "text-red-600", children: "*" })
|
|
299
|
+
] }),
|
|
300
|
+
/* @__PURE__ */ c("div", { children: [
|
|
301
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ c(
|
|
302
|
+
j,
|
|
303
|
+
{
|
|
304
|
+
value: `${k.value || ""}`,
|
|
305
|
+
onValueChange: M,
|
|
306
|
+
disabled: h,
|
|
307
|
+
children: [
|
|
308
|
+
/* @__PURE__ */ e(
|
|
309
|
+
z,
|
|
310
|
+
{
|
|
311
|
+
ref: k.ref,
|
|
312
|
+
variant: f ? "failure" : "default",
|
|
313
|
+
className: u(l),
|
|
314
|
+
children: /* @__PURE__ */ e(A, { placeholder: d })
|
|
315
|
+
}
|
|
316
|
+
),
|
|
317
|
+
/* @__PURE__ */ e(V, { children: s.map((o) => /* @__PURE__ */ e(
|
|
318
|
+
G,
|
|
319
|
+
{
|
|
320
|
+
value: String(o.value),
|
|
321
|
+
children: o.label
|
|
322
|
+
},
|
|
323
|
+
String(o.value)
|
|
324
|
+
)) })
|
|
325
|
+
]
|
|
326
|
+
}
|
|
327
|
+
) }),
|
|
328
|
+
/* @__PURE__ */ e(x, {})
|
|
329
|
+
] })
|
|
330
|
+
] });
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
), me = ({
|
|
258
334
|
control: a,
|
|
259
335
|
name: r,
|
|
260
|
-
label:
|
|
336
|
+
label: t,
|
|
261
337
|
rules: i,
|
|
262
|
-
...
|
|
338
|
+
...l
|
|
263
339
|
}) => {
|
|
264
|
-
const
|
|
340
|
+
const n = P();
|
|
265
341
|
return r && a && /* @__PURE__ */ e(
|
|
266
|
-
|
|
342
|
+
N,
|
|
267
343
|
{
|
|
268
344
|
control: a,
|
|
269
345
|
name: r,
|
|
270
346
|
rules: i,
|
|
271
|
-
render: ({ field:
|
|
272
|
-
/* @__PURE__ */ e(
|
|
273
|
-
|
|
347
|
+
render: ({ field: s }) => /* @__PURE__ */ e(g, { className: "block", htmlFor: l.id || n, children: /* @__PURE__ */ c(v, { className: "flex flex-row items-start gap-3", children: [
|
|
348
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
349
|
+
L,
|
|
274
350
|
{
|
|
275
|
-
id:
|
|
351
|
+
id: l.id || n,
|
|
276
352
|
className: "m-0",
|
|
277
|
-
checked:
|
|
278
|
-
onCheckedChange:
|
|
279
|
-
...
|
|
353
|
+
checked: s.value,
|
|
354
|
+
onCheckedChange: s.onChange,
|
|
355
|
+
...l
|
|
280
356
|
}
|
|
281
357
|
) }),
|
|
282
|
-
/* @__PURE__ */ e("div", { className: "space-y-1 leading-none", children:
|
|
358
|
+
/* @__PURE__ */ e("div", { className: "space-y-1 leading-none", children: t && /* @__PURE__ */ e("div", { children: t }) })
|
|
283
359
|
] }) })
|
|
284
360
|
}
|
|
285
361
|
) || null;
|
|
286
|
-
},
|
|
362
|
+
}, ue = ({
|
|
287
363
|
control: a,
|
|
288
364
|
name: r,
|
|
289
|
-
label:
|
|
365
|
+
label: t,
|
|
290
366
|
required: i,
|
|
291
|
-
rules:
|
|
292
|
-
className:
|
|
293
|
-
floatingError:
|
|
367
|
+
rules: l,
|
|
368
|
+
className: n,
|
|
369
|
+
floatingError: s,
|
|
294
370
|
...d
|
|
295
371
|
}) => r && a && /* @__PURE__ */ e(
|
|
296
|
-
|
|
372
|
+
N,
|
|
297
373
|
{
|
|
298
374
|
control: a,
|
|
299
375
|
name: r,
|
|
300
|
-
rules:
|
|
301
|
-
render: ({ field:
|
|
302
|
-
|
|
303
|
-
|
|
376
|
+
rules: l,
|
|
377
|
+
render: ({ field: h, formState: m }) => /* @__PURE__ */ c(v, { children: [
|
|
378
|
+
t && /* @__PURE__ */ c(g, { className: "block", children: [
|
|
379
|
+
t,
|
|
304
380
|
" ",
|
|
305
381
|
i && /* @__PURE__ */ e("span", { className: "text-red-600", children: "*" })
|
|
306
382
|
] }),
|
|
307
|
-
/* @__PURE__ */
|
|
308
|
-
/* @__PURE__ */ e(
|
|
309
|
-
|
|
383
|
+
/* @__PURE__ */ c("div", { children: [
|
|
384
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
|
|
385
|
+
O,
|
|
310
386
|
{
|
|
311
|
-
variant:
|
|
387
|
+
variant: y.get(m.errors, `${r}.message`) ? "failure" : "default",
|
|
312
388
|
...d,
|
|
313
|
-
...
|
|
314
|
-
className:
|
|
389
|
+
...h,
|
|
390
|
+
className: u(n)
|
|
315
391
|
}
|
|
316
392
|
) }),
|
|
317
393
|
/* @__PURE__ */ e(
|
|
318
|
-
|
|
394
|
+
x,
|
|
319
395
|
{
|
|
320
|
-
className:
|
|
396
|
+
className: u(s && "absolute -bottom-5")
|
|
321
397
|
}
|
|
322
398
|
)
|
|
323
399
|
] })
|
|
324
400
|
] })
|
|
325
401
|
}
|
|
326
|
-
) || null,
|
|
402
|
+
) || null, Ne = ({
|
|
327
403
|
control: a,
|
|
328
404
|
name: r,
|
|
329
|
-
label:
|
|
405
|
+
label: t,
|
|
330
406
|
required: i,
|
|
331
|
-
className:
|
|
332
|
-
rules:
|
|
333
|
-
floatingError:
|
|
407
|
+
className: l,
|
|
408
|
+
rules: n,
|
|
409
|
+
floatingError: s,
|
|
334
410
|
...d
|
|
335
411
|
}) => r && a ? /* @__PURE__ */ e(
|
|
336
|
-
|
|
412
|
+
N,
|
|
337
413
|
{
|
|
338
414
|
control: a,
|
|
339
415
|
name: r,
|
|
340
|
-
rules:
|
|
341
|
-
render: ({ field:
|
|
342
|
-
|
|
343
|
-
|
|
416
|
+
rules: n,
|
|
417
|
+
render: ({ field: h }) => /* @__PURE__ */ c(v, { children: [
|
|
418
|
+
t && /* @__PURE__ */ c(g, { className: "block", children: [
|
|
419
|
+
t,
|
|
344
420
|
" ",
|
|
345
421
|
i && /* @__PURE__ */ e("span", { className: "text-red-600", children: "*" })
|
|
346
422
|
] }),
|
|
347
423
|
" ",
|
|
348
|
-
/* @__PURE__ */
|
|
349
|
-
/* @__PURE__ */ e(
|
|
424
|
+
/* @__PURE__ */ c("div", { children: [
|
|
425
|
+
/* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(F, { ...h, ...d }) }),
|
|
350
426
|
/* @__PURE__ */ e(
|
|
351
|
-
|
|
427
|
+
x,
|
|
352
428
|
{
|
|
353
|
-
className:
|
|
429
|
+
className: u(s && "absolute -bottom-5")
|
|
354
430
|
}
|
|
355
431
|
)
|
|
356
432
|
] })
|
|
357
433
|
] })
|
|
358
434
|
}
|
|
359
|
-
) : /* @__PURE__ */ e(
|
|
435
|
+
) : /* @__PURE__ */ e(F, { className: "mt-2", ...d });
|
|
360
436
|
export {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
437
|
+
le as MyCheckbox,
|
|
438
|
+
ne as MyDatePicker,
|
|
439
|
+
se as MyDateRangePicker,
|
|
440
|
+
ie as MyHtmlEditor,
|
|
441
|
+
xe as MyInput,
|
|
442
|
+
de as MyMaskInput,
|
|
443
|
+
oe as MyRadio,
|
|
444
|
+
Ce as MySelect,
|
|
445
|
+
he as MyShadcnSelect,
|
|
446
|
+
me as MySwitch,
|
|
447
|
+
ue as MyTextarea,
|
|
448
|
+
Ne as MyTimePicker
|
|
372
449
|
};
|
|
373
450
|
//# sourceMappingURL=index.es.js.map
|