@recursica/mantine-adapter 0.11.0 → 0.12.0
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/CHANGELOG.md +10 -0
- package/README.md +6 -28
- package/dist/mantine-adapter.cjs +1 -1
- package/dist/mantine-adapter.cjs.map +1 -1
- package/dist/mantine-adapter.css +1 -1
- package/dist/mantine-adapter.js +1031 -891
- package/dist/mantine-adapter.js.map +1 -1
- package/dist/src/components/Menu/Menu.d.ts +85 -3
- package/package.json +1 -1
- package/src/components/Menu/MENU_IMPLEMENTATION_NOTES.md +78 -0
- package/src/components/Menu/Menu.module.css +244 -0
- package/src/components/Menu/Menu.stories.tsx +309 -5
- package/src/components/Menu/Menu.tsx +317 -4
package/dist/mantine-adapter.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { Accordion as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as e, jsxs as E, Fragment as ie } from "react/jsx-runtime";
|
|
2
|
+
import B, { forwardRef as $, useId as no, useEffect as lo } from "react";
|
|
3
|
+
import { Accordion as ye, Avatar as co, Badge as io, Breadcrumbs as po, Button as mo, Card as he, Input as Ae, Box as Ce, Checkbox as Se, Chip as uo, Container as _o, Select as bo, Flex as yo, Group as ho, Loader as fo, Menu as q, Radio as Te, Stack as No, Switch as Ie, CheckIcon as $o, CloseIcon as vo, Text as Co, Textarea as go, Title as xo } from "@mantine/core";
|
|
4
|
+
const wo = [
|
|
5
5
|
"className",
|
|
6
6
|
"classNames",
|
|
7
7
|
"style",
|
|
@@ -45,7 +45,7 @@ const po = [
|
|
|
45
45
|
"mih",
|
|
46
46
|
"mah"
|
|
47
47
|
// Dimensions
|
|
48
|
-
],
|
|
48
|
+
], Po = /* @__PURE__ */ new Set([
|
|
49
49
|
"m",
|
|
50
50
|
"my",
|
|
51
51
|
"mx",
|
|
@@ -60,7 +60,7 @@ const po = [
|
|
|
60
60
|
"left",
|
|
61
61
|
"bottom",
|
|
62
62
|
"right"
|
|
63
|
-
]),
|
|
63
|
+
]), Pe = {
|
|
64
64
|
"rec-none": "var(--recursica_brand_dimensions_general_none)",
|
|
65
65
|
"rec-sm": "var(--recursica_brand_dimensions_general_sm)",
|
|
66
66
|
"rec-default": "var(--recursica_brand_dimensions_general_default)",
|
|
@@ -69,116 +69,116 @@ const po = [
|
|
|
69
69
|
"rec-xl": "var(--recursica_brand_dimensions_general_xl)",
|
|
70
70
|
"rec-2xl": "var(--recursica_brand_dimensions_general_2xl)"
|
|
71
71
|
};
|
|
72
|
-
function
|
|
73
|
-
if (
|
|
74
|
-
return
|
|
75
|
-
const n = { ...
|
|
76
|
-
for (const
|
|
77
|
-
|
|
78
|
-
for (const [
|
|
79
|
-
typeof
|
|
72
|
+
function v(r, o) {
|
|
73
|
+
if (o)
|
|
74
|
+
return r;
|
|
75
|
+
const n = { ...r };
|
|
76
|
+
for (const s of wo)
|
|
77
|
+
s in n && delete n[s];
|
|
78
|
+
for (const [s, t] of Object.entries(n))
|
|
79
|
+
typeof t == "string" && t.startsWith("rec-") && Po.has(s) && t in Pe && (n[s] = Pe[t]);
|
|
80
80
|
return n;
|
|
81
81
|
}
|
|
82
|
-
const
|
|
83
|
-
root:
|
|
84
|
-
item:
|
|
85
|
-
noDivider:
|
|
86
|
-
control:
|
|
87
|
-
label:
|
|
88
|
-
chevron:
|
|
89
|
-
iconLeftWrapper:
|
|
90
|
-
panel:
|
|
91
|
-
content:
|
|
92
|
-
},
|
|
93
|
-
variant:
|
|
82
|
+
const Wo = "Accordion-module__root___Dem6d", ko = "Accordion-module__item___7ryVk", Ao = "Accordion-module__noDivider___Ni2tT", So = "Accordion-module__control___b4wgX", To = "Accordion-module__label___Ss7uW", Io = "Accordion-module__chevron___i-HVZ", Lo = "Accordion-module__iconLeftWrapper___5oLen", Ro = "Accordion-module__panel___Wx50w", Oo = "Accordion-module__content___PEM9t", H = {
|
|
83
|
+
root: Wo,
|
|
84
|
+
item: ko,
|
|
85
|
+
noDivider: Ao,
|
|
86
|
+
control: So,
|
|
87
|
+
label: To,
|
|
88
|
+
chevron: Io,
|
|
89
|
+
iconLeftWrapper: Lo,
|
|
90
|
+
panel: Ro,
|
|
91
|
+
content: Oo
|
|
92
|
+
}, Le = function({
|
|
93
|
+
variant: o = "unstyled",
|
|
94
94
|
overStyled: n = !1,
|
|
95
|
-
...
|
|
95
|
+
...s
|
|
96
96
|
}) {
|
|
97
|
-
const
|
|
98
|
-
root:
|
|
99
|
-
item:
|
|
100
|
-
control:
|
|
101
|
-
label:
|
|
102
|
-
chevron:
|
|
103
|
-
panel:
|
|
104
|
-
content:
|
|
105
|
-
}, c =
|
|
97
|
+
const t = v(s, n), a = {
|
|
98
|
+
root: H.root,
|
|
99
|
+
item: H.item,
|
|
100
|
+
control: H.control,
|
|
101
|
+
label: H.label,
|
|
102
|
+
chevron: H.chevron,
|
|
103
|
+
panel: H.panel,
|
|
104
|
+
content: H.content
|
|
105
|
+
}, c = t.classNames;
|
|
106
106
|
if (c && typeof c == "object" && !Array.isArray(c)) {
|
|
107
107
|
const d = c;
|
|
108
108
|
Object.keys(d).forEach((i) => {
|
|
109
|
-
|
|
109
|
+
a[i] ? a[i] = `${a[i]} ${d[i]}` : a[i] = d[i];
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
const l =
|
|
112
|
+
const l = t.className;
|
|
113
113
|
return /* @__PURE__ */ e(
|
|
114
|
-
|
|
114
|
+
ye,
|
|
115
115
|
{
|
|
116
|
-
variant:
|
|
116
|
+
variant: o,
|
|
117
117
|
className: l,
|
|
118
|
-
classNames:
|
|
119
|
-
...
|
|
118
|
+
classNames: a,
|
|
119
|
+
...t
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
122
|
};
|
|
123
|
-
|
|
124
|
-
const
|
|
125
|
-
const d =
|
|
123
|
+
Le.displayName = "Accordion";
|
|
124
|
+
const Re = $(function({ title: o, leftIcon: n, divider: s = !0, children: t, overStyled: a = !1, ...c }, l) {
|
|
125
|
+
const d = v(c, a), i = d.className, p = [s ? void 0 : H.noDivider, i].filter(Boolean).join(" ") || void 0;
|
|
126
126
|
return /* @__PURE__ */ e(
|
|
127
|
-
|
|
127
|
+
ye.Item,
|
|
128
128
|
{
|
|
129
129
|
ref: l,
|
|
130
130
|
className: p,
|
|
131
131
|
...d,
|
|
132
|
-
children:
|
|
133
|
-
/* @__PURE__ */ e(
|
|
134
|
-
/* @__PURE__ */ e(
|
|
135
|
-
] }) :
|
|
132
|
+
children: o ? /* @__PURE__ */ E(ie, { children: [
|
|
133
|
+
/* @__PURE__ */ e(ge, { leftIcon: n, children: o }),
|
|
134
|
+
/* @__PURE__ */ e(xe, { children: t })
|
|
135
|
+
] }) : t
|
|
136
136
|
}
|
|
137
137
|
);
|
|
138
138
|
});
|
|
139
|
-
|
|
140
|
-
const
|
|
141
|
-
const c =
|
|
139
|
+
Re.displayName = "AccordionItem";
|
|
140
|
+
const ge = $(function({ leftIcon: o, children: n, overStyled: s = !1, ...t }, a) {
|
|
141
|
+
const c = v(t, s), l = c.className;
|
|
142
142
|
return /* @__PURE__ */ e(
|
|
143
|
-
|
|
143
|
+
ye.Control,
|
|
144
144
|
{
|
|
145
|
-
ref:
|
|
145
|
+
ref: a,
|
|
146
146
|
className: l,
|
|
147
|
-
icon:
|
|
147
|
+
icon: o ? /* @__PURE__ */ e("span", { className: H.iconLeftWrapper, "aria-hidden": !0, children: o }) : void 0,
|
|
148
148
|
...c,
|
|
149
149
|
children: n
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
152
|
});
|
|
153
|
-
|
|
154
|
-
const
|
|
155
|
-
const
|
|
153
|
+
ge.displayName = "AccordionControl";
|
|
154
|
+
const xe = $(function({ overStyled: o = !1, ...n }, s) {
|
|
155
|
+
const t = v(n, o), a = t.className;
|
|
156
156
|
return /* @__PURE__ */ e(
|
|
157
|
-
|
|
157
|
+
ye.Panel,
|
|
158
158
|
{
|
|
159
|
-
ref:
|
|
160
|
-
className:
|
|
161
|
-
...
|
|
159
|
+
ref: s,
|
|
160
|
+
className: a,
|
|
161
|
+
...t
|
|
162
162
|
}
|
|
163
163
|
);
|
|
164
164
|
});
|
|
165
|
-
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
const
|
|
171
|
-
root:
|
|
172
|
-
iconWrapper:
|
|
173
|
-
textWrapper:
|
|
174
|
-
image:
|
|
175
|
-
placeholder:
|
|
176
|
-
},
|
|
177
|
-
size:
|
|
165
|
+
xe.displayName = "AccordionPanel";
|
|
166
|
+
const we = Le;
|
|
167
|
+
we.Item = Re;
|
|
168
|
+
we.Control = ge;
|
|
169
|
+
we.Panel = xe;
|
|
170
|
+
const zo = "Avatar-module__root___fXu-J", Mo = "Avatar-module__iconWrapper___ojly2", Fo = "Avatar-module__textWrapper___zp-jD", Eo = "Avatar-module__image___ieqGp", Bo = "Avatar-module__placeholder___IDW7-", V = {
|
|
171
|
+
root: zo,
|
|
172
|
+
iconWrapper: Mo,
|
|
173
|
+
textWrapper: Fo,
|
|
174
|
+
image: Eo,
|
|
175
|
+
placeholder: Bo
|
|
176
|
+
}, jo = $(function({
|
|
177
|
+
size: o = "default",
|
|
178
178
|
variant: n = "solid",
|
|
179
|
-
icon:
|
|
180
|
-
className:
|
|
181
|
-
classNames:
|
|
179
|
+
icon: s,
|
|
180
|
+
className: t,
|
|
181
|
+
classNames: a,
|
|
182
182
|
children: c,
|
|
183
183
|
style: l,
|
|
184
184
|
src: d,
|
|
@@ -194,107 +194,107 @@ const Co = "Avatar-module__root___fXu-J", xo = "Avatar-module__iconWrapper___ojl
|
|
|
194
194
|
large: "lg"
|
|
195
195
|
};
|
|
196
196
|
let m = "text";
|
|
197
|
-
d ? m = "image" :
|
|
197
|
+
d ? m = "image" : s && (m = "icon");
|
|
198
198
|
const _ = {
|
|
199
|
-
root:
|
|
200
|
-
image:
|
|
201
|
-
placeholder:
|
|
199
|
+
root: V.root,
|
|
200
|
+
image: V.image,
|
|
201
|
+
placeholder: V.placeholder
|
|
202
202
|
};
|
|
203
|
-
if (
|
|
204
|
-
const h =
|
|
205
|
-
_.root = h.root ? `${
|
|
203
|
+
if (a && typeof a == "object" && !Array.isArray(a)) {
|
|
204
|
+
const h = a;
|
|
205
|
+
_.root = h.root ? `${V.root} ${h.root}` : V.root, _.image = h.image ? `${V.image} ${h.image}` : V.image, _.placeholder = h.placeholder ? `${V.placeholder} ${h.placeholder}` : V.placeholder;
|
|
206
206
|
}
|
|
207
207
|
return /* @__PURE__ */ e(
|
|
208
|
-
|
|
208
|
+
co,
|
|
209
209
|
{
|
|
210
210
|
ref: p,
|
|
211
|
-
className:
|
|
211
|
+
className: t,
|
|
212
212
|
classNames: _,
|
|
213
213
|
variant: u[n],
|
|
214
|
-
size: y[
|
|
214
|
+
size: y[o],
|
|
215
215
|
style: l,
|
|
216
216
|
src: d,
|
|
217
217
|
"data-variant": n,
|
|
218
|
-
"data-size":
|
|
218
|
+
"data-size": o,
|
|
219
219
|
"data-style": m,
|
|
220
220
|
...i,
|
|
221
|
-
children:
|
|
221
|
+
children: s != null ? /* @__PURE__ */ e("span", { className: V.iconWrapper, "aria-hidden": !0, children: s }) : c != null ? /* @__PURE__ */ e("span", { className: V.textWrapper, children: c }) : void 0
|
|
222
222
|
}
|
|
223
223
|
);
|
|
224
224
|
});
|
|
225
|
-
|
|
226
|
-
const
|
|
227
|
-
root:
|
|
228
|
-
},
|
|
229
|
-
const
|
|
230
|
-
root:
|
|
231
|
-
section:
|
|
232
|
-
label:
|
|
233
|
-
}, l =
|
|
225
|
+
jo.displayName = "Avatar";
|
|
226
|
+
const Do = "Badge-module__root___5osNT", Y = {
|
|
227
|
+
root: Do
|
|
228
|
+
}, Vo = $(function({ variant: o = "primary-color", overStyled: n = !1, ...s }, t) {
|
|
229
|
+
const a = v(s, n), c = {
|
|
230
|
+
root: Y.root,
|
|
231
|
+
section: Y.section,
|
|
232
|
+
label: Y.label
|
|
233
|
+
}, l = a.classNames;
|
|
234
234
|
if (l && typeof l == "object" && !Array.isArray(l)) {
|
|
235
235
|
const p = l;
|
|
236
|
-
c.root = p.root ? `${
|
|
236
|
+
c.root = p.root ? `${Y.root} ${p.root}` : Y.root, c.section = p.section ?? Y.section, c.label = p.label ?? Y.label;
|
|
237
237
|
}
|
|
238
|
-
const d =
|
|
238
|
+
const d = a.className, i = d ? `${Y.root} ${d}` : Y.root;
|
|
239
239
|
return /* @__PURE__ */ e(
|
|
240
|
-
|
|
240
|
+
io,
|
|
241
241
|
{
|
|
242
|
-
ref:
|
|
242
|
+
ref: t,
|
|
243
243
|
variant: "filled",
|
|
244
|
-
"data-variant":
|
|
245
|
-
...
|
|
244
|
+
"data-variant": o,
|
|
245
|
+
...a,
|
|
246
246
|
className: i,
|
|
247
247
|
classNames: c
|
|
248
248
|
}
|
|
249
249
|
);
|
|
250
250
|
});
|
|
251
|
-
|
|
252
|
-
const
|
|
253
|
-
root:
|
|
254
|
-
separator:
|
|
255
|
-
},
|
|
256
|
-
function({ overStyled:
|
|
257
|
-
const
|
|
258
|
-
{ separator: n, ...
|
|
259
|
-
|
|
251
|
+
Vo.displayName = "Badge";
|
|
252
|
+
const Go = "Breadcrumb-module__root___x-9ln", qo = "Breadcrumb-module__separator___qrUX-", U = {
|
|
253
|
+
root: Go,
|
|
254
|
+
separator: qo
|
|
255
|
+
}, Yo = $(
|
|
256
|
+
function({ overStyled: o = !1, separator: n = ">", ...s }, t) {
|
|
257
|
+
const a = v(
|
|
258
|
+
{ separator: n, ...s },
|
|
259
|
+
o
|
|
260
260
|
), c = {
|
|
261
|
-
root:
|
|
262
|
-
separator:
|
|
263
|
-
}, l =
|
|
261
|
+
root: U.root,
|
|
262
|
+
separator: U.separator
|
|
263
|
+
}, l = a.classNames;
|
|
264
264
|
if (l && typeof l == "object" && !Array.isArray(l)) {
|
|
265
265
|
const p = l;
|
|
266
|
-
c.root = p.root ? `${
|
|
266
|
+
c.root = p.root ? `${U.root} ${p.root}` : U.root, c.separator = p.separator ? `${U.separator} ${p.separator}` : U.separator;
|
|
267
267
|
}
|
|
268
|
-
const d =
|
|
268
|
+
const d = a.className, i = d ? `${U.root} ${d}` : U.root;
|
|
269
269
|
return /* @__PURE__ */ e(
|
|
270
|
-
|
|
270
|
+
po,
|
|
271
271
|
{
|
|
272
|
-
ref:
|
|
273
|
-
...
|
|
272
|
+
ref: t,
|
|
273
|
+
...a,
|
|
274
274
|
className: i,
|
|
275
275
|
classNames: c
|
|
276
276
|
}
|
|
277
277
|
);
|
|
278
278
|
}
|
|
279
279
|
);
|
|
280
|
-
|
|
281
|
-
const
|
|
282
|
-
root:
|
|
283
|
-
label:
|
|
284
|
-
labelText:
|
|
285
|
-
iconWrapper:
|
|
286
|
-
section:
|
|
280
|
+
Yo.displayName = "Breadcrumb";
|
|
281
|
+
const Zo = "Button-module__root___Q2R8-", Ho = "Button-module__label___UJ3Zt", Ko = "Button-module__labelText___rFV5p", Uo = "Button-module__iconWrapper___uEKPa", Xo = "Button-module__section___f2mKr", G = {
|
|
282
|
+
root: Zo,
|
|
283
|
+
label: Ho,
|
|
284
|
+
labelText: Ko,
|
|
285
|
+
iconWrapper: Uo,
|
|
286
|
+
section: Xo
|
|
287
287
|
};
|
|
288
|
-
function
|
|
289
|
-
return
|
|
288
|
+
function Qo(r) {
|
|
289
|
+
return r == null || r === "" ? !1 : typeof r == "string" ? r.trim() !== "" : !0;
|
|
290
290
|
}
|
|
291
|
-
const
|
|
291
|
+
const Jo = $(
|
|
292
292
|
function({
|
|
293
|
-
variant:
|
|
293
|
+
variant: o = "solid",
|
|
294
294
|
size: n = "default",
|
|
295
|
-
icon:
|
|
296
|
-
children:
|
|
297
|
-
overStyled:
|
|
295
|
+
icon: s,
|
|
296
|
+
children: t,
|
|
297
|
+
overStyled: a = !1,
|
|
298
298
|
...c
|
|
299
299
|
}, l) {
|
|
300
300
|
const d = {
|
|
@@ -304,143 +304,143 @@ const Bo = $(
|
|
|
304
304
|
}, i = {
|
|
305
305
|
default: "md",
|
|
306
306
|
small: "sm"
|
|
307
|
-
}, p =
|
|
307
|
+
}, p = v(c, a), u = p;
|
|
308
308
|
delete u.fullWidth;
|
|
309
|
-
const y = !!
|
|
309
|
+
const y = !!s || !!u.leftSection, m = !!u.rightSection, _ = (y || m) && !Qo(t);
|
|
310
310
|
typeof process < "u" && process.env.NODE_ENV !== "production" && _ && !u["aria-label"] && console.warn(
|
|
311
311
|
'[Recursica Button] Icon-only buttons must provide an accessible name. Pass aria-label (e.g. aria-label="Submit").'
|
|
312
312
|
);
|
|
313
313
|
const h = {
|
|
314
|
-
root:
|
|
315
|
-
section:
|
|
316
|
-
label:
|
|
317
|
-
},
|
|
318
|
-
if (
|
|
319
|
-
const b =
|
|
320
|
-
h.root = b.root ? `${
|
|
314
|
+
root: G.root,
|
|
315
|
+
section: G.section,
|
|
316
|
+
label: G.label
|
|
317
|
+
}, C = u.classNames;
|
|
318
|
+
if (C && typeof C == "object" && !Array.isArray(C)) {
|
|
319
|
+
const b = C;
|
|
320
|
+
h.root = b.root ? `${G.root} ${b.root}` : G.root, h.section = b.section ?? G.section, h.label = b.label ?? G.label;
|
|
321
321
|
}
|
|
322
|
-
const f = u.className,
|
|
322
|
+
const f = u.className, g = f ? `${G.root} ${f}` : G.root;
|
|
323
323
|
return /* @__PURE__ */ e(
|
|
324
|
-
|
|
324
|
+
mo,
|
|
325
325
|
{
|
|
326
326
|
ref: l,
|
|
327
|
-
className:
|
|
327
|
+
className: g,
|
|
328
328
|
classNames: h,
|
|
329
|
-
variant: d[
|
|
329
|
+
variant: d[o],
|
|
330
330
|
size: i[n],
|
|
331
|
-
leftSection:
|
|
332
|
-
"data-variant":
|
|
331
|
+
leftSection: s != null ? /* @__PURE__ */ e("span", { className: G.iconWrapper, "aria-hidden": !0, children: s }) : void 0,
|
|
332
|
+
"data-variant": o,
|
|
333
333
|
"data-size": n,
|
|
334
334
|
..._ ? { "data-icon-only": "" } : {},
|
|
335
335
|
...p,
|
|
336
|
-
children: /* @__PURE__ */ e("span", { className:
|
|
336
|
+
children: /* @__PURE__ */ e("span", { className: G.labelText, children: t })
|
|
337
337
|
}
|
|
338
338
|
);
|
|
339
339
|
}
|
|
340
340
|
);
|
|
341
|
-
|
|
342
|
-
const
|
|
343
|
-
root:
|
|
344
|
-
header:
|
|
345
|
-
footer:
|
|
346
|
-
section:
|
|
347
|
-
content:
|
|
348
|
-
}, Oe = $(function({ overStyled:
|
|
349
|
-
const
|
|
350
|
-
root:
|
|
351
|
-
}, c =
|
|
341
|
+
Jo.displayName = "Button";
|
|
342
|
+
const et = "Card-module__root___c9KvZ", ot = "Card-module__header___PTXf2", tt = "Card-module__footer___Mu-JC", rt = "Card-module__section___BRT8H", at = "Card-module__content___oFIQa", K = {
|
|
343
|
+
root: et,
|
|
344
|
+
header: ot,
|
|
345
|
+
footer: tt,
|
|
346
|
+
section: rt,
|
|
347
|
+
content: at
|
|
348
|
+
}, Oe = $(function({ overStyled: o = !1, ...n }, s) {
|
|
349
|
+
const t = v(n, o), a = {
|
|
350
|
+
root: K.root
|
|
351
|
+
}, c = t.classNames;
|
|
352
352
|
if (c && typeof c == "object" && !Array.isArray(c)) {
|
|
353
353
|
const d = c;
|
|
354
354
|
Object.keys(d).forEach((i) => {
|
|
355
|
-
|
|
355
|
+
a[i] ? a[i] = `${a[i]} ${d[i]}` : a[i] = d[i];
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
|
-
const l =
|
|
358
|
+
const l = t.className;
|
|
359
359
|
return /* @__PURE__ */ e(
|
|
360
|
-
|
|
360
|
+
he,
|
|
361
361
|
{
|
|
362
|
-
ref:
|
|
362
|
+
ref: s,
|
|
363
363
|
className: l,
|
|
364
|
-
classNames:
|
|
365
|
-
...
|
|
364
|
+
classNames: a,
|
|
365
|
+
...t
|
|
366
366
|
}
|
|
367
367
|
);
|
|
368
368
|
});
|
|
369
369
|
Oe.displayName = "Card";
|
|
370
|
-
const
|
|
371
|
-
function({ overStyled:
|
|
372
|
-
const
|
|
370
|
+
const ze = $(
|
|
371
|
+
function({ overStyled: o = !1, ...n }, s) {
|
|
372
|
+
const t = v(n, o), a = t.className;
|
|
373
373
|
return /* @__PURE__ */ e(
|
|
374
|
-
|
|
374
|
+
he.Section,
|
|
375
375
|
{
|
|
376
|
-
ref:
|
|
377
|
-
className:
|
|
378
|
-
...
|
|
376
|
+
ref: s,
|
|
377
|
+
className: a ? `${K.section} ${a}` : K.section,
|
|
378
|
+
...t
|
|
379
379
|
}
|
|
380
380
|
);
|
|
381
381
|
}
|
|
382
382
|
);
|
|
383
|
-
|
|
384
|
-
const
|
|
385
|
-
function({ overStyled:
|
|
386
|
-
const
|
|
383
|
+
ze.displayName = "CardSection";
|
|
384
|
+
const Me = $(
|
|
385
|
+
function({ overStyled: o = !1, ...n }, s) {
|
|
386
|
+
const t = v(n, o), a = t.className;
|
|
387
387
|
return /* @__PURE__ */ e(
|
|
388
|
-
|
|
388
|
+
he.Section,
|
|
389
389
|
{
|
|
390
|
-
ref:
|
|
391
|
-
className:
|
|
392
|
-
...
|
|
390
|
+
ref: s,
|
|
391
|
+
className: a ? `${K.header} ${a}` : K.header,
|
|
392
|
+
...t
|
|
393
393
|
}
|
|
394
394
|
);
|
|
395
395
|
}
|
|
396
396
|
);
|
|
397
|
-
|
|
398
|
-
const
|
|
399
|
-
function({ overStyled:
|
|
400
|
-
const
|
|
397
|
+
Me.displayName = "CardHeader";
|
|
398
|
+
const Fe = $(
|
|
399
|
+
function({ overStyled: o = !1, ...n }, s) {
|
|
400
|
+
const t = v(n, o), a = t.className;
|
|
401
401
|
return /* @__PURE__ */ e(
|
|
402
|
-
|
|
402
|
+
he.Section,
|
|
403
403
|
{
|
|
404
|
-
ref:
|
|
405
|
-
className:
|
|
406
|
-
...
|
|
404
|
+
ref: s,
|
|
405
|
+
className: a ? `${K.footer} ${a}` : K.footer,
|
|
406
|
+
...t
|
|
407
407
|
}
|
|
408
408
|
);
|
|
409
409
|
}
|
|
410
410
|
);
|
|
411
|
-
|
|
412
|
-
const
|
|
413
|
-
function({ overStyled:
|
|
414
|
-
const
|
|
411
|
+
Fe.displayName = "CardFooter";
|
|
412
|
+
const Ee = $(
|
|
413
|
+
function({ overStyled: o = !1, ...n }, s) {
|
|
414
|
+
const t = v(n, o), a = t.className;
|
|
415
415
|
return /* @__PURE__ */ e(
|
|
416
416
|
"div",
|
|
417
417
|
{
|
|
418
|
-
ref:
|
|
419
|
-
className:
|
|
420
|
-
...
|
|
418
|
+
ref: s,
|
|
419
|
+
className: a ? `${K.content} ${a}` : K.content,
|
|
420
|
+
...t
|
|
421
421
|
}
|
|
422
422
|
);
|
|
423
423
|
}
|
|
424
424
|
);
|
|
425
|
-
|
|
426
|
-
const
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
const
|
|
432
|
-
root:
|
|
433
|
-
labelText:
|
|
434
|
-
required:
|
|
435
|
-
optionalText:
|
|
436
|
-
actionAreaWrapper:
|
|
437
|
-
editIconWrapper:
|
|
438
|
-
},
|
|
439
|
-
labelSize:
|
|
425
|
+
Ee.displayName = "CardContent";
|
|
426
|
+
const fe = Oe;
|
|
427
|
+
fe.Section = ze;
|
|
428
|
+
fe.Header = Me;
|
|
429
|
+
fe.Footer = Fe;
|
|
430
|
+
fe.Content = Ee;
|
|
431
|
+
const st = "Label-module__root___e6HXZ", nt = "Label-module__labelText___rieFR", lt = "Label-module__required___Ggrzc", ct = "Label-module__optionalText___Y2yun", it = "Label-module__actionAreaWrapper___ELoZK", dt = "Label-module__editIconWrapper___NG2xW", D = {
|
|
432
|
+
root: st,
|
|
433
|
+
labelText: nt,
|
|
434
|
+
required: lt,
|
|
435
|
+
optionalText: ct,
|
|
436
|
+
actionAreaWrapper: it,
|
|
437
|
+
editIconWrapper: dt
|
|
438
|
+
}, Be = $(function({
|
|
439
|
+
labelSize: o = "default",
|
|
440
440
|
labelAlignment: n,
|
|
441
|
-
required:
|
|
442
|
-
labelOptionalText:
|
|
443
|
-
labelWithEditIcon:
|
|
441
|
+
required: s = !1,
|
|
442
|
+
labelOptionalText: t,
|
|
443
|
+
labelWithEditIcon: a,
|
|
444
444
|
labelActionArea: c,
|
|
445
445
|
onLabelEditClick: l,
|
|
446
446
|
children: d,
|
|
@@ -449,35 +449,35 @@ const Do = "Label-module__root___e6HXZ", Yo = "Label-module__labelText___rieFR",
|
|
|
449
449
|
}, u) {
|
|
450
450
|
const y = n || "left";
|
|
451
451
|
let m;
|
|
452
|
-
|
|
453
|
-
const _ =
|
|
454
|
-
label:
|
|
455
|
-
required:
|
|
452
|
+
s || (t === !0 ? m = "optional" : t && (m = t));
|
|
453
|
+
const _ = v(p, i), h = _, C = {
|
|
454
|
+
label: D.root,
|
|
455
|
+
required: D.required
|
|
456
456
|
}, f = h.classNames;
|
|
457
457
|
if (f && typeof f == "object" && !Array.isArray(f)) {
|
|
458
|
-
const
|
|
459
|
-
|
|
458
|
+
const P = f;
|
|
459
|
+
C.label = P.label ? `${D.root} ${P.label}` : D.root, C.required = P.required ? `${D.required} ${P.required}` : D.required;
|
|
460
460
|
}
|
|
461
|
-
const
|
|
462
|
-
return /* @__PURE__ */
|
|
463
|
-
|
|
461
|
+
const g = h.className, b = g ? `${D.root} ${g}` : D.root;
|
|
462
|
+
return /* @__PURE__ */ E(
|
|
463
|
+
Ae.Label,
|
|
464
464
|
{
|
|
465
465
|
ref: u,
|
|
466
466
|
className: b,
|
|
467
|
-
classNames:
|
|
468
|
-
"data-size":
|
|
467
|
+
classNames: C,
|
|
468
|
+
"data-size": o,
|
|
469
469
|
"data-alignment": y,
|
|
470
|
-
required:
|
|
470
|
+
required: s && !a,
|
|
471
471
|
..._,
|
|
472
472
|
children: [
|
|
473
|
-
/* @__PURE__ */ e("span", { className:
|
|
474
|
-
m && /* @__PURE__ */ e("span", { className:
|
|
475
|
-
c ? /* @__PURE__ */ e("span", { className:
|
|
473
|
+
/* @__PURE__ */ e("span", { className: D.labelText, children: d }),
|
|
474
|
+
m && /* @__PURE__ */ e("span", { className: D.optionalText, children: typeof m == "string" ? `(${m})` : m }),
|
|
475
|
+
c ? /* @__PURE__ */ e("span", { className: D.actionAreaWrapper, children: c }) : a ? /* @__PURE__ */ e(
|
|
476
476
|
"button",
|
|
477
477
|
{
|
|
478
478
|
type: "button",
|
|
479
|
-
className:
|
|
480
|
-
"data-replaces-asterisk":
|
|
479
|
+
className: D.editIconWrapper,
|
|
480
|
+
"data-replaces-asterisk": s ? "true" : void 0,
|
|
481
481
|
onClick: l,
|
|
482
482
|
"aria-label": "Edit",
|
|
483
483
|
children: /* @__PURE__ */ e(
|
|
@@ -505,48 +505,48 @@ const Do = "Label-module__root___e6HXZ", Yo = "Label-module__labelText___rieFR",
|
|
|
505
505
|
}
|
|
506
506
|
);
|
|
507
507
|
});
|
|
508
|
-
|
|
509
|
-
const
|
|
510
|
-
root:
|
|
511
|
-
leftSection:
|
|
512
|
-
rightSection:
|
|
513
|
-
},
|
|
514
|
-
formLayout:
|
|
508
|
+
Be.displayName = "Label";
|
|
509
|
+
const pt = "FormControlLayout-module__root___yNDhZ", mt = "FormControlLayout-module__leftSection___GBM1r", ut = "FormControlLayout-module__rightSection___bcL4v", pe = {
|
|
510
|
+
root: pt,
|
|
511
|
+
leftSection: mt,
|
|
512
|
+
rightSection: ut
|
|
513
|
+
}, X = $(function({
|
|
514
|
+
formLayout: o = "stacked",
|
|
515
515
|
labelSize: n = "default",
|
|
516
|
-
controlMaxWidth:
|
|
517
|
-
controlMinWidth:
|
|
518
|
-
leftSection:
|
|
516
|
+
controlMaxWidth: s,
|
|
517
|
+
controlMinWidth: t,
|
|
518
|
+
leftSection: a,
|
|
519
519
|
children: c,
|
|
520
520
|
className: l,
|
|
521
521
|
style: d,
|
|
522
522
|
...i
|
|
523
523
|
}, p) {
|
|
524
|
-
const u = l ? `${
|
|
525
|
-
return /* @__PURE__ */
|
|
524
|
+
const u = l ? `${pe.root} ${l}` : pe.root, m = a != null || o === "side-by-side";
|
|
525
|
+
return /* @__PURE__ */ E(
|
|
526
526
|
"div",
|
|
527
527
|
{
|
|
528
528
|
ref: p,
|
|
529
529
|
className: u,
|
|
530
|
-
"data-form-layout":
|
|
530
|
+
"data-form-layout": o,
|
|
531
531
|
style: {
|
|
532
532
|
...d,
|
|
533
|
-
...
|
|
534
|
-
...
|
|
533
|
+
...s ? { "--form-control-max-width": s } : {},
|
|
534
|
+
...t ? { "--form-control-min-width": t } : {}
|
|
535
535
|
},
|
|
536
536
|
...i,
|
|
537
537
|
children: [
|
|
538
|
-
m && /* @__PURE__ */ e("div", { className:
|
|
539
|
-
/* @__PURE__ */ e("div", { className:
|
|
538
|
+
m && /* @__PURE__ */ e("div", { className: pe.leftSection, "data-size": n, children: a }),
|
|
539
|
+
/* @__PURE__ */ e("div", { className: pe.rightSection, children: c })
|
|
540
540
|
]
|
|
541
541
|
}
|
|
542
542
|
);
|
|
543
543
|
});
|
|
544
|
-
|
|
545
|
-
const
|
|
546
|
-
root:
|
|
547
|
-
textWrapper:
|
|
548
|
-
iconWrapper:
|
|
549
|
-
},
|
|
544
|
+
X.displayName = "FormControlLayout";
|
|
545
|
+
const _t = "AssistiveElement-module__root___WhQ43", bt = "AssistiveElement-module__textWrapper___sfy5E", yt = "AssistiveElement-module__iconWrapper___gObRF", $e = {
|
|
546
|
+
root: _t,
|
|
547
|
+
textWrapper: bt,
|
|
548
|
+
iconWrapper: yt
|
|
549
|
+
}, ht = () => /* @__PURE__ */ E(
|
|
550
550
|
"svg",
|
|
551
551
|
{
|
|
552
552
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -562,7 +562,7 @@ const et = "AssistiveElement-module__root___WhQ43", ot = "AssistiveElement-modul
|
|
|
562
562
|
/* @__PURE__ */ e("path", { d: "M12 8h.01" })
|
|
563
563
|
]
|
|
564
564
|
}
|
|
565
|
-
),
|
|
565
|
+
), ft = () => /* @__PURE__ */ E(
|
|
566
566
|
"svg",
|
|
567
567
|
{
|
|
568
568
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -578,39 +578,39 @@ const et = "AssistiveElement-module__root___WhQ43", ot = "AssistiveElement-modul
|
|
|
578
578
|
/* @__PURE__ */ e("path", { d: "M12 17h.01" })
|
|
579
579
|
]
|
|
580
580
|
}
|
|
581
|
-
),
|
|
582
|
-
assistiveVariant:
|
|
581
|
+
), ve = $(function({
|
|
582
|
+
assistiveVariant: o = "help",
|
|
583
583
|
assistiveWithIcon: n = !0,
|
|
584
|
-
children:
|
|
585
|
-
className:
|
|
586
|
-
overStyled:
|
|
584
|
+
children: s,
|
|
585
|
+
className: t,
|
|
586
|
+
overStyled: a = !1,
|
|
587
587
|
...c
|
|
588
588
|
}, l) {
|
|
589
|
-
const i =
|
|
590
|
-
return /* @__PURE__ */
|
|
589
|
+
const i = v(c, a), p = $e.root, u = t ? `${p} ${t}` : p, y = o === "error" ? ft : ht;
|
|
590
|
+
return /* @__PURE__ */ E(
|
|
591
591
|
"div",
|
|
592
592
|
{
|
|
593
593
|
ref: l,
|
|
594
594
|
className: u,
|
|
595
|
-
"data-variant":
|
|
595
|
+
"data-variant": o,
|
|
596
596
|
style: i.style,
|
|
597
597
|
...i,
|
|
598
598
|
children: [
|
|
599
|
-
n && /* @__PURE__ */ e("span", { className:
|
|
600
|
-
/* @__PURE__ */ e("span", { className:
|
|
599
|
+
n && /* @__PURE__ */ e("span", { className: $e.iconWrapper, children: /* @__PURE__ */ e(y, {}) }),
|
|
600
|
+
/* @__PURE__ */ e("span", { className: $e.textWrapper, children: s })
|
|
601
601
|
]
|
|
602
602
|
}
|
|
603
603
|
);
|
|
604
604
|
});
|
|
605
|
-
|
|
606
|
-
const
|
|
607
|
-
inputSection:
|
|
608
|
-
},
|
|
609
|
-
formLayout:
|
|
605
|
+
ve.displayName = "AssistiveElement";
|
|
606
|
+
const Nt = "FormControlWrapper-module__inputSection___HenXk", We = {
|
|
607
|
+
inputSection: Nt
|
|
608
|
+
}, ue = $(function({
|
|
609
|
+
formLayout: o,
|
|
610
610
|
labelSize: n,
|
|
611
|
-
labelAlignment:
|
|
612
|
-
labelOptionalText:
|
|
613
|
-
labelWithEditIcon:
|
|
611
|
+
labelAlignment: s,
|
|
612
|
+
labelOptionalText: t,
|
|
613
|
+
labelWithEditIcon: a,
|
|
614
614
|
labelActionArea: c,
|
|
615
615
|
onLabelEditClick: l,
|
|
616
616
|
label: d,
|
|
@@ -621,203 +621,203 @@ const st = "FormControlWrapper-module__inputSection___HenXk", xe = {
|
|
|
621
621
|
controlMinWidth: m,
|
|
622
622
|
error: _,
|
|
623
623
|
required: h,
|
|
624
|
-
withAsterisk:
|
|
624
|
+
withAsterisk: C,
|
|
625
625
|
id: f,
|
|
626
|
-
children:
|
|
626
|
+
children: g,
|
|
627
627
|
className: b,
|
|
628
|
-
overStyled:
|
|
628
|
+
overStyled: P = !1,
|
|
629
629
|
labelElement: N,
|
|
630
630
|
// Extracted safely preventing bleeding into HTML domains
|
|
631
631
|
...z
|
|
632
|
-
},
|
|
633
|
-
const
|
|
634
|
-
|
|
632
|
+
}, L) {
|
|
633
|
+
const A = no(), R = f || `recursica-fc-${A}`, O = p || i, S = O ? `${R}-assistive` : void 0, T = _ ? `${R}-error` : void 0, I = v(z, P), Q = b || I.className, de = We.root, j = Q ? `${de} ${Q}` : de, ao = B.isValidElement(g) ? B.cloneElement(
|
|
634
|
+
g,
|
|
635
635
|
{
|
|
636
|
-
...
|
|
637
|
-
..._ && !
|
|
636
|
+
...O && !g.props["aria-describedby"] ? { "aria-describedby": S } : {},
|
|
637
|
+
..._ && !g.props["aria-errormessage"] ? { "aria-errormessage": T } : {}
|
|
638
638
|
}
|
|
639
|
-
) :
|
|
640
|
-
|
|
639
|
+
) : g, so = d ? /* @__PURE__ */ e(
|
|
640
|
+
Be,
|
|
641
641
|
{
|
|
642
|
-
id:
|
|
643
|
-
labelAlignment:
|
|
644
|
-
labelOptionalText:
|
|
645
|
-
labelWithEditIcon:
|
|
642
|
+
id: R,
|
|
643
|
+
labelAlignment: s,
|
|
644
|
+
labelOptionalText: t,
|
|
645
|
+
labelWithEditIcon: a,
|
|
646
646
|
labelActionArea: c,
|
|
647
647
|
onLabelEditClick: l,
|
|
648
|
-
required:
|
|
648
|
+
required: C ?? h,
|
|
649
649
|
...N === "div" ? { as: "div" } : {},
|
|
650
650
|
children: d
|
|
651
651
|
}
|
|
652
652
|
) : void 0;
|
|
653
653
|
return /* @__PURE__ */ e(
|
|
654
|
-
|
|
654
|
+
X,
|
|
655
655
|
{
|
|
656
|
-
ref:
|
|
657
|
-
className:
|
|
658
|
-
formLayout:
|
|
656
|
+
ref: L,
|
|
657
|
+
className: j,
|
|
658
|
+
formLayout: o,
|
|
659
659
|
labelSize: n,
|
|
660
660
|
controlMaxWidth: y,
|
|
661
661
|
controlMinWidth: m,
|
|
662
|
-
leftSection:
|
|
663
|
-
...
|
|
664
|
-
children: /* @__PURE__ */
|
|
665
|
-
|
|
662
|
+
leftSection: so,
|
|
663
|
+
...I,
|
|
664
|
+
children: /* @__PURE__ */ E("div", { className: We.inputSection, children: [
|
|
665
|
+
ao,
|
|
666
666
|
_ && /* @__PURE__ */ e(
|
|
667
|
-
|
|
667
|
+
ve,
|
|
668
668
|
{
|
|
669
|
-
id:
|
|
669
|
+
id: T,
|
|
670
670
|
assistiveVariant: "error",
|
|
671
671
|
assistiveWithIcon: u,
|
|
672
672
|
children: _
|
|
673
673
|
}
|
|
674
674
|
),
|
|
675
|
-
!_ &&
|
|
676
|
-
|
|
675
|
+
!_ && O && /* @__PURE__ */ e(
|
|
676
|
+
ve,
|
|
677
677
|
{
|
|
678
678
|
id: S,
|
|
679
679
|
assistiveVariant: "help",
|
|
680
680
|
assistiveWithIcon: u,
|
|
681
|
-
children:
|
|
681
|
+
children: O
|
|
682
682
|
}
|
|
683
683
|
)
|
|
684
684
|
] })
|
|
685
685
|
}
|
|
686
686
|
);
|
|
687
687
|
});
|
|
688
|
-
|
|
689
|
-
const
|
|
690
|
-
root:
|
|
691
|
-
contents:
|
|
692
|
-
},
|
|
693
|
-
const l =
|
|
688
|
+
ue.displayName = "FormControlWrapper";
|
|
689
|
+
const $t = "_root_1qhn7_3", vt = "_contents_1qhn7_18", oe = {
|
|
690
|
+
root: $t,
|
|
691
|
+
contents: vt
|
|
692
|
+
}, Ct = $(function({ layer: r, contentsOnly: o, children: n, className: s, style: t, ...a }, c) {
|
|
693
|
+
const l = o ? s ? `${oe.root} ${oe.contents} ${s}` : `${oe.root} ${oe.contents}` : s ? `${oe.root} ${s}` : oe.root;
|
|
694
694
|
return /* @__PURE__ */ e(
|
|
695
695
|
"div",
|
|
696
696
|
{
|
|
697
697
|
ref: c,
|
|
698
698
|
className: l,
|
|
699
|
-
style:
|
|
700
|
-
...
|
|
701
|
-
...
|
|
699
|
+
style: t,
|
|
700
|
+
...o ? {} : { "data-recursica-layer": String(r) },
|
|
701
|
+
...a,
|
|
702
702
|
children: n
|
|
703
703
|
}
|
|
704
704
|
);
|
|
705
705
|
});
|
|
706
|
-
|
|
707
|
-
const
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
const
|
|
711
|
-
function
|
|
712
|
-
children:
|
|
713
|
-
theme:
|
|
706
|
+
Ct.displayName = "Layer";
|
|
707
|
+
const _e = ({ emptyText: r = "N/A" }) => /* @__PURE__ */ e(B.Fragment, { children: r });
|
|
708
|
+
_e.displayName = "EmptyValueRenderer";
|
|
709
|
+
_e.check = (r) => r == null || r === "" || Array.isArray(r) && r.length === 0;
|
|
710
|
+
const ke = "data-recursica-theme";
|
|
711
|
+
function Vr({
|
|
712
|
+
children: r,
|
|
713
|
+
theme: o = "light"
|
|
714
714
|
}) {
|
|
715
|
-
return
|
|
715
|
+
return lo(() => {
|
|
716
716
|
const n = document.documentElement;
|
|
717
|
-
return n.setAttribute(
|
|
718
|
-
n.removeAttribute(
|
|
717
|
+
return n.setAttribute(ke, o), () => {
|
|
718
|
+
n.removeAttribute(ke);
|
|
719
719
|
};
|
|
720
|
-
}, [
|
|
720
|
+
}, [o]), /* @__PURE__ */ e(ie, { children: r });
|
|
721
721
|
}
|
|
722
|
-
const
|
|
723
|
-
textField:
|
|
724
|
-
},
|
|
725
|
-
value:
|
|
726
|
-
overStyled:
|
|
722
|
+
const gt = "ReadOnlyField-module__textField___qKn25", be = {
|
|
723
|
+
textField: gt
|
|
724
|
+
}, me = ({
|
|
725
|
+
value: r,
|
|
726
|
+
overStyled: o = !1,
|
|
727
727
|
...n
|
|
728
728
|
}) => {
|
|
729
|
-
const
|
|
729
|
+
const s = v(n, o), t = s.className;
|
|
730
730
|
return /* @__PURE__ */ e(
|
|
731
|
-
|
|
731
|
+
Ce,
|
|
732
732
|
{
|
|
733
733
|
component: "p",
|
|
734
|
-
className:
|
|
735
|
-
...
|
|
736
|
-
children:
|
|
734
|
+
className: t ? `${be.textField} ${t}` : be.textField,
|
|
735
|
+
...s,
|
|
736
|
+
children: r != null ? B.isValidElement(r) ? r : Array.isArray(r) ? r.join(", ") : String(r) : ""
|
|
737
737
|
}
|
|
738
738
|
);
|
|
739
739
|
};
|
|
740
|
-
|
|
741
|
-
const
|
|
742
|
-
function({ value:
|
|
740
|
+
me.displayName = "ReadOnlyTextField";
|
|
741
|
+
const je = $(
|
|
742
|
+
function({ value: o, type: n = "text", emptyValueComponent: s, overStyled: t = !1, ...a }, c) {
|
|
743
743
|
let l = null;
|
|
744
|
-
const d =
|
|
744
|
+
const d = v(a, t), i = s || _e, u = (i.check ? i.check(o) : _e.check(o)) ? /* @__PURE__ */ e(i, { value: o }) : o;
|
|
745
745
|
switch (n) {
|
|
746
746
|
case "boolean":
|
|
747
747
|
l = /* @__PURE__ */ e(
|
|
748
|
-
|
|
748
|
+
me,
|
|
749
749
|
{
|
|
750
|
-
value:
|
|
751
|
-
overStyled:
|
|
750
|
+
value: o === !0 ? "True" : o === !1 ? "False" : u,
|
|
751
|
+
overStyled: t
|
|
752
752
|
}
|
|
753
753
|
);
|
|
754
754
|
break;
|
|
755
755
|
case "switch":
|
|
756
756
|
l = /* @__PURE__ */ e(
|
|
757
|
-
|
|
757
|
+
me,
|
|
758
758
|
{
|
|
759
|
-
value:
|
|
760
|
-
overStyled:
|
|
759
|
+
value: o === !0 ? "On" : o === !1 ? "Off" : u,
|
|
760
|
+
overStyled: t
|
|
761
761
|
}
|
|
762
762
|
);
|
|
763
763
|
break;
|
|
764
764
|
case "text":
|
|
765
765
|
default:
|
|
766
766
|
l = /* @__PURE__ */ e(
|
|
767
|
-
|
|
767
|
+
me,
|
|
768
768
|
{
|
|
769
769
|
value: u,
|
|
770
|
-
overStyled:
|
|
770
|
+
overStyled: t
|
|
771
771
|
}
|
|
772
772
|
);
|
|
773
773
|
break;
|
|
774
774
|
}
|
|
775
775
|
return /* @__PURE__ */ e(
|
|
776
|
-
|
|
776
|
+
ue,
|
|
777
777
|
{
|
|
778
778
|
ref: c,
|
|
779
|
-
overStyled:
|
|
779
|
+
overStyled: t,
|
|
780
780
|
...d,
|
|
781
781
|
children: l
|
|
782
782
|
}
|
|
783
783
|
);
|
|
784
784
|
}
|
|
785
785
|
);
|
|
786
|
-
|
|
787
|
-
const
|
|
788
|
-
readOnly:
|
|
786
|
+
je.displayName = "ReadOnlyField";
|
|
787
|
+
const ee = $(function({
|
|
788
|
+
readOnly: o,
|
|
789
789
|
readOnlyComponent: n,
|
|
790
|
-
readOnlyType:
|
|
791
|
-
readOnlyValue:
|
|
792
|
-
readOnlyNativeProps:
|
|
790
|
+
readOnlyType: s = "text",
|
|
791
|
+
readOnlyValue: t,
|
|
792
|
+
readOnlyNativeProps: a,
|
|
793
793
|
emptyValueComponent: c,
|
|
794
794
|
activeComponent: l,
|
|
795
795
|
overStyled: d,
|
|
796
796
|
onLabelEditClick: i,
|
|
797
797
|
...p
|
|
798
798
|
}, u) {
|
|
799
|
-
return
|
|
800
|
-
|
|
799
|
+
return o ? n ? /* @__PURE__ */ e(
|
|
800
|
+
ue,
|
|
801
801
|
{
|
|
802
802
|
ref: u,
|
|
803
803
|
...p,
|
|
804
804
|
onLabelEditClick: i,
|
|
805
805
|
overStyled: d,
|
|
806
|
-
children: /* @__PURE__ */ e(n, { ...
|
|
806
|
+
children: /* @__PURE__ */ e(n, { ...a })
|
|
807
807
|
}
|
|
808
808
|
) : /* @__PURE__ */ e(
|
|
809
|
-
|
|
809
|
+
je,
|
|
810
810
|
{
|
|
811
811
|
ref: u,
|
|
812
|
-
type:
|
|
813
|
-
value:
|
|
812
|
+
type: s,
|
|
813
|
+
value: t,
|
|
814
814
|
emptyValueComponent: c,
|
|
815
815
|
onLabelEditClick: i,
|
|
816
816
|
overStyled: d,
|
|
817
817
|
...p
|
|
818
818
|
}
|
|
819
819
|
) : /* @__PURE__ */ e(
|
|
820
|
-
|
|
820
|
+
ue,
|
|
821
821
|
{
|
|
822
822
|
ref: u,
|
|
823
823
|
...p,
|
|
@@ -827,23 +827,23 @@ const X = $(function({
|
|
|
827
827
|
}
|
|
828
828
|
);
|
|
829
829
|
});
|
|
830
|
-
|
|
831
|
-
const
|
|
832
|
-
groupRoot:
|
|
833
|
-
root:
|
|
834
|
-
body:
|
|
835
|
-
inner:
|
|
836
|
-
input:
|
|
837
|
-
icon:
|
|
838
|
-
labelWrapper:
|
|
839
|
-
label:
|
|
840
|
-
},
|
|
841
|
-
function(
|
|
830
|
+
ee.displayName = "WithReadOnlyWrapper";
|
|
831
|
+
const xt = "Checkbox-module__groupRoot___cBS0o", wt = "Checkbox-module__root___mY3qk", Pt = "Checkbox-module__body___5yC7q", Wt = "Checkbox-module__inner___rTke4", kt = "Checkbox-module__input___2kt-h", At = "Checkbox-module__icon___-O7i6", St = "Checkbox-module__labelWrapper___GpZkr", Tt = "Checkbox-module__label___cwRtI", W = {
|
|
832
|
+
groupRoot: xt,
|
|
833
|
+
root: wt,
|
|
834
|
+
body: Pt,
|
|
835
|
+
inner: Wt,
|
|
836
|
+
input: kt,
|
|
837
|
+
icon: At,
|
|
838
|
+
labelWrapper: St,
|
|
839
|
+
label: Tt
|
|
840
|
+
}, De = $(
|
|
841
|
+
function(o, n) {
|
|
842
842
|
const {
|
|
843
|
-
overStyled:
|
|
844
|
-
formLayout:
|
|
843
|
+
overStyled: s = !1,
|
|
844
|
+
formLayout: t = "stacked",
|
|
845
845
|
// Label Wrappers
|
|
846
|
-
labelSize:
|
|
846
|
+
labelSize: a,
|
|
847
847
|
labelAlignment: c,
|
|
848
848
|
labelOptionalText: l,
|
|
849
849
|
labelWithEditIcon: d,
|
|
@@ -855,29 +855,29 @@ const dt = "Checkbox-module__groupRoot___cBS0o", pt = "Checkbox-module__root___m
|
|
|
855
855
|
assistiveWithIcon: m,
|
|
856
856
|
error: _,
|
|
857
857
|
required: h,
|
|
858
|
-
withAsterisk:
|
|
858
|
+
withAsterisk: C,
|
|
859
859
|
id: f,
|
|
860
|
-
className:
|
|
860
|
+
className: g,
|
|
861
861
|
style: b,
|
|
862
|
-
children:
|
|
862
|
+
children: P,
|
|
863
863
|
readOnly: N,
|
|
864
864
|
readOnlyComponent: z,
|
|
865
|
-
emptyValueComponent:
|
|
866
|
-
value:
|
|
867
|
-
defaultValue:
|
|
868
|
-
...
|
|
869
|
-
} =
|
|
870
|
-
return delete
|
|
871
|
-
|
|
865
|
+
emptyValueComponent: L,
|
|
866
|
+
value: A,
|
|
867
|
+
defaultValue: R,
|
|
868
|
+
...O
|
|
869
|
+
} = o, S = v(O, s), T = S;
|
|
870
|
+
return delete T.size, /* @__PURE__ */ e(
|
|
871
|
+
ee,
|
|
872
872
|
{
|
|
873
|
-
className:
|
|
873
|
+
className: g,
|
|
874
874
|
style: b,
|
|
875
875
|
controlMaxWidth: "var(--recursica_ui-kit_components_checkbox-item_properties_max-width)",
|
|
876
876
|
controlMinWidth: void 0,
|
|
877
|
-
overStyled:
|
|
877
|
+
overStyled: s,
|
|
878
878
|
labelElement: "div",
|
|
879
|
-
formLayout:
|
|
880
|
-
labelSize:
|
|
879
|
+
formLayout: t,
|
|
880
|
+
labelSize: a,
|
|
881
881
|
labelAlignment: c,
|
|
882
882
|
labelOptionalText: l,
|
|
883
883
|
labelWithEditIcon: d,
|
|
@@ -888,71 +888,71 @@ const dt = "Checkbox-module__groupRoot___cBS0o", pt = "Checkbox-module__root___m
|
|
|
888
888
|
assistiveWithIcon: m,
|
|
889
889
|
error: _,
|
|
890
890
|
required: h,
|
|
891
|
-
withAsterisk:
|
|
891
|
+
withAsterisk: C,
|
|
892
892
|
id: f,
|
|
893
893
|
readOnly: N && !!z,
|
|
894
894
|
readOnlyComponent: z,
|
|
895
|
-
emptyValueComponent:
|
|
895
|
+
emptyValueComponent: L,
|
|
896
896
|
readOnlyType: "text",
|
|
897
|
-
readOnlyValue:
|
|
898
|
-
readOnlyNativeProps:
|
|
897
|
+
readOnlyValue: A !== void 0 ? A : R,
|
|
898
|
+
readOnlyNativeProps: o,
|
|
899
899
|
activeComponent: /* @__PURE__ */ e(
|
|
900
|
-
|
|
900
|
+
Se.Group,
|
|
901
901
|
{
|
|
902
902
|
ref: n,
|
|
903
903
|
...S,
|
|
904
|
-
disabled: N ||
|
|
905
|
-
value:
|
|
906
|
-
defaultValue:
|
|
907
|
-
children: /* @__PURE__ */ e("div", { className:
|
|
908
|
-
disabled: N ||
|
|
909
|
-
}) :
|
|
904
|
+
disabled: N || T.disabled,
|
|
905
|
+
value: A,
|
|
906
|
+
defaultValue: R,
|
|
907
|
+
children: /* @__PURE__ */ e("div", { className: W.groupRoot, "data-layout": t, children: B.Children.map(P, (x) => B.isValidElement(x) ? B.cloneElement(x, {
|
|
908
|
+
disabled: N || x.props.disabled
|
|
909
|
+
}) : x) })
|
|
910
910
|
}
|
|
911
911
|
)
|
|
912
912
|
}
|
|
913
913
|
);
|
|
914
914
|
}
|
|
915
915
|
);
|
|
916
|
-
|
|
917
|
-
const
|
|
918
|
-
function(
|
|
916
|
+
De.displayName = "CheckboxGroup";
|
|
917
|
+
const Ve = $(
|
|
918
|
+
function(o, n) {
|
|
919
919
|
const {
|
|
920
|
-
overStyled:
|
|
921
|
-
readOnly:
|
|
922
|
-
readOnlyComponent:
|
|
920
|
+
overStyled: s = !1,
|
|
921
|
+
readOnly: t,
|
|
922
|
+
readOnlyComponent: a,
|
|
923
923
|
disabled: c,
|
|
924
924
|
formLayout: l,
|
|
925
925
|
labelSize: d,
|
|
926
926
|
controlMaxWidth: i,
|
|
927
927
|
controlMinWidth: p,
|
|
928
928
|
...u
|
|
929
|
-
} =
|
|
929
|
+
} = o, y = v(u, s), m = y;
|
|
930
930
|
delete m.size, delete m.color, delete m.radius, delete m.variant, delete m.iconColor;
|
|
931
931
|
const _ = {
|
|
932
|
-
root:
|
|
933
|
-
body:
|
|
934
|
-
inner:
|
|
935
|
-
input:
|
|
936
|
-
icon:
|
|
937
|
-
labelWrapper:
|
|
938
|
-
label:
|
|
932
|
+
root: W.root,
|
|
933
|
+
body: W.body,
|
|
934
|
+
inner: W.inner,
|
|
935
|
+
input: W.input,
|
|
936
|
+
icon: W.icon,
|
|
937
|
+
labelWrapper: W.labelWrapper,
|
|
938
|
+
label: W.label
|
|
939
939
|
}, h = m.classNames;
|
|
940
940
|
if (h && typeof h == "object" && !Array.isArray(h)) {
|
|
941
941
|
const b = h;
|
|
942
|
-
_.root = b.root ? `${
|
|
942
|
+
_.root = b.root ? `${W.root} ${b.root}` : W.root, _.body = b.body ? `${W.body} ${b.body}` : W.body, _.inner = b.inner ? `${W.inner} ${b.inner}` : W.inner, _.input = b.input ? `${W.input} ${b.input}` : W.input, _.icon = b.icon ? `${W.icon} ${b.icon}` : W.icon, _.labelWrapper = b.labelWrapper ? `${W.labelWrapper} ${b.labelWrapper}` : W.labelWrapper, _.label = b.label ? `${W.label} ${b.label}` : W.label;
|
|
943
943
|
}
|
|
944
|
-
const
|
|
945
|
-
if (
|
|
944
|
+
const C = m.className, f = C ? `${W.root} ${C}` : W.root;
|
|
945
|
+
if (t && a) {
|
|
946
946
|
const b = !!(m.checked ?? m.defaultChecked), N = /* @__PURE__ */ e(
|
|
947
|
-
|
|
947
|
+
a,
|
|
948
948
|
{
|
|
949
|
-
...
|
|
949
|
+
...o,
|
|
950
950
|
checked: b,
|
|
951
951
|
label: m.label
|
|
952
952
|
}
|
|
953
953
|
);
|
|
954
954
|
return l ? /* @__PURE__ */ e(
|
|
955
|
-
|
|
955
|
+
X,
|
|
956
956
|
{
|
|
957
957
|
formLayout: l,
|
|
958
958
|
labelSize: d,
|
|
@@ -960,43 +960,43 @@ const Be = $(
|
|
|
960
960
|
controlMinWidth: p,
|
|
961
961
|
children: N
|
|
962
962
|
}
|
|
963
|
-
) : /* @__PURE__ */ e(
|
|
963
|
+
) : /* @__PURE__ */ e(ie, { children: N });
|
|
964
964
|
}
|
|
965
|
-
const
|
|
966
|
-
|
|
965
|
+
const g = /* @__PURE__ */ e(
|
|
966
|
+
Se,
|
|
967
967
|
{
|
|
968
968
|
ref: n,
|
|
969
969
|
className: f,
|
|
970
970
|
classNames: _,
|
|
971
|
-
disabled:
|
|
971
|
+
disabled: t || c,
|
|
972
972
|
...y
|
|
973
973
|
}
|
|
974
974
|
);
|
|
975
975
|
return l ? /* @__PURE__ */ e(
|
|
976
|
-
|
|
976
|
+
X,
|
|
977
977
|
{
|
|
978
978
|
formLayout: l,
|
|
979
979
|
labelSize: d,
|
|
980
980
|
controlMaxWidth: i,
|
|
981
981
|
controlMinWidth: p,
|
|
982
|
-
children:
|
|
982
|
+
children: g
|
|
983
983
|
}
|
|
984
|
-
) :
|
|
984
|
+
) : g;
|
|
985
985
|
}
|
|
986
986
|
);
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
const
|
|
990
|
-
root:
|
|
991
|
-
label:
|
|
992
|
-
mantineIconWrapper:
|
|
993
|
-
innerWrapper:
|
|
994
|
-
children:
|
|
995
|
-
leadingIcon:
|
|
996
|
-
removeIcon:
|
|
987
|
+
Ve.displayName = "Checkbox";
|
|
988
|
+
Ve.Group = De;
|
|
989
|
+
const It = "Chip-module__root___f5pFk", Lt = "Chip-module__label___Ov9pg", Rt = "Chip-module__mantineIconWrapper___KLSz6", Ot = "Chip-module__innerWrapper___EnrTF", zt = "Chip-module__children___zbRAR", Mt = "Chip-module__leadingIcon___JBtjQ", Ft = "Chip-module__removeIcon___pVju-", M = {
|
|
990
|
+
root: It,
|
|
991
|
+
label: Lt,
|
|
992
|
+
mantineIconWrapper: Rt,
|
|
993
|
+
innerWrapper: Ot,
|
|
994
|
+
children: zt,
|
|
995
|
+
leadingIcon: Mt,
|
|
996
|
+
removeIcon: Ft
|
|
997
997
|
};
|
|
998
|
-
function
|
|
999
|
-
return /* @__PURE__ */
|
|
998
|
+
function Et(r) {
|
|
999
|
+
return /* @__PURE__ */ E(
|
|
1000
1000
|
"svg",
|
|
1001
1001
|
{
|
|
1002
1002
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1008,7 +1008,7 @@ function Wt(o) {
|
|
|
1008
1008
|
strokeWidth: "2",
|
|
1009
1009
|
strokeLinecap: "round",
|
|
1010
1010
|
strokeLinejoin: "round",
|
|
1011
|
-
...
|
|
1011
|
+
...r,
|
|
1012
1012
|
children: [
|
|
1013
1013
|
/* @__PURE__ */ e("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
1014
1014
|
/* @__PURE__ */ e("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
@@ -1016,67 +1016,67 @@ function Wt(o) {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
);
|
|
1018
1018
|
}
|
|
1019
|
-
const
|
|
1020
|
-
error:
|
|
1019
|
+
const Bt = $(function({
|
|
1020
|
+
error: o = !1,
|
|
1021
1021
|
icon: n,
|
|
1022
|
-
onRemove:
|
|
1023
|
-
removeLabel:
|
|
1024
|
-
children:
|
|
1022
|
+
onRemove: s,
|
|
1023
|
+
removeLabel: t = "Remove",
|
|
1024
|
+
children: a,
|
|
1025
1025
|
overStyled: c = !1,
|
|
1026
1026
|
...l
|
|
1027
1027
|
}, d) {
|
|
1028
|
-
const i =
|
|
1029
|
-
root:
|
|
1030
|
-
label:
|
|
1031
|
-
input:
|
|
1032
|
-
iconWrapper:
|
|
1033
|
-
checkIcon:
|
|
1028
|
+
const i = v(l, c), p = i, u = {
|
|
1029
|
+
root: M.root,
|
|
1030
|
+
label: M.label,
|
|
1031
|
+
input: M.input,
|
|
1032
|
+
iconWrapper: M.mantineIconWrapper,
|
|
1033
|
+
checkIcon: M.checkIcon
|
|
1034
1034
|
}, y = p.classNames;
|
|
1035
1035
|
if (y && typeof y == "object" && !Array.isArray(y)) {
|
|
1036
1036
|
const f = y;
|
|
1037
|
-
u.root = f.root ? `${
|
|
1037
|
+
u.root = f.root ? `${M.root} ${f.root}` : M.root, u.label = f.label ? `${M.label} ${f.label}` : M.label;
|
|
1038
1038
|
}
|
|
1039
|
-
const m = p.className, _ = m ? `${
|
|
1039
|
+
const m = p.className, _ = m ? `${M.root} ${m}` : M.root;
|
|
1040
1040
|
return /* @__PURE__ */ e(
|
|
1041
|
-
|
|
1041
|
+
uo,
|
|
1042
1042
|
{
|
|
1043
1043
|
ref: d,
|
|
1044
1044
|
className: _,
|
|
1045
1045
|
classNames: u,
|
|
1046
|
-
...(
|
|
1047
|
-
...!
|
|
1046
|
+
...(o ? "" : void 0) !== void 0 ? { "data-error": "" } : {},
|
|
1047
|
+
...!a && (!!n || !!s) ? { "data-icon-only": "" } : {},
|
|
1048
1048
|
...i,
|
|
1049
|
-
children: /* @__PURE__ */
|
|
1050
|
-
n && /* @__PURE__ */ e("span", { className:
|
|
1051
|
-
/* @__PURE__ */ e("span", { className:
|
|
1052
|
-
|
|
1049
|
+
children: /* @__PURE__ */ E("span", { className: M.innerWrapper, children: [
|
|
1050
|
+
n && /* @__PURE__ */ e("span", { className: M.leadingIcon, "aria-hidden": !0, children: n }),
|
|
1051
|
+
/* @__PURE__ */ e("span", { className: M.children, children: a }),
|
|
1052
|
+
s && /* @__PURE__ */ e(
|
|
1053
1053
|
"span",
|
|
1054
1054
|
{
|
|
1055
1055
|
role: "button",
|
|
1056
|
-
className:
|
|
1056
|
+
className: M.removeIcon,
|
|
1057
1057
|
onClick: (f) => {
|
|
1058
|
-
f.preventDefault(), f.stopPropagation(),
|
|
1058
|
+
f.preventDefault(), f.stopPropagation(), s(f);
|
|
1059
1059
|
},
|
|
1060
|
-
"aria-label":
|
|
1060
|
+
"aria-label": t,
|
|
1061
1061
|
onKeyDown: (f) => {
|
|
1062
|
-
(f.key === "Enter" || f.key === " ") && (f.preventDefault(), f.stopPropagation(),
|
|
1062
|
+
(f.key === "Enter" || f.key === " ") && (f.preventDefault(), f.stopPropagation(), s(
|
|
1063
1063
|
f
|
|
1064
1064
|
));
|
|
1065
1065
|
},
|
|
1066
1066
|
tabIndex: 0,
|
|
1067
|
-
children: /* @__PURE__ */ e(
|
|
1067
|
+
children: /* @__PURE__ */ e(Et, {})
|
|
1068
1068
|
}
|
|
1069
1069
|
)
|
|
1070
1070
|
] })
|
|
1071
1071
|
}
|
|
1072
1072
|
);
|
|
1073
1073
|
});
|
|
1074
|
-
|
|
1075
|
-
const
|
|
1076
|
-
root:
|
|
1077
|
-
},
|
|
1078
|
-
function({ children:
|
|
1079
|
-
const c =
|
|
1074
|
+
Bt.displayName = "Chip";
|
|
1075
|
+
const jt = "Container-module__root___UVssr", ae = {
|
|
1076
|
+
root: jt
|
|
1077
|
+
}, Dt = $(
|
|
1078
|
+
function({ children: o, size: n, overStyled: s = !1, ...t }, a) {
|
|
1079
|
+
const c = v(t, s), l = c, d = {
|
|
1080
1080
|
"rec-sm": "sm",
|
|
1081
1081
|
"rec-default": "md",
|
|
1082
1082
|
"rec-md": "md",
|
|
@@ -1084,39 +1084,39 @@ const wt = "Container-module__root___UVssr", oe = {
|
|
|
1084
1084
|
"rec-xl": "xl",
|
|
1085
1085
|
"rec-2xl": "xl"
|
|
1086
1086
|
}, i = typeof n == "string" && d[n] ? d[n] : n, p = {
|
|
1087
|
-
root:
|
|
1087
|
+
root: ae.root
|
|
1088
1088
|
}, u = l.classNames;
|
|
1089
1089
|
if (u && typeof u == "object" && !Array.isArray(u)) {
|
|
1090
1090
|
const _ = u;
|
|
1091
|
-
p.root = _.root ? `${
|
|
1091
|
+
p.root = _.root ? `${ae.root} ${_.root}` : ae.root;
|
|
1092
1092
|
}
|
|
1093
|
-
const y = l.className, m = y ? `${
|
|
1093
|
+
const y = l.className, m = y ? `${ae.root} ${y}` : ae.root;
|
|
1094
1094
|
return /* @__PURE__ */ e(
|
|
1095
|
-
|
|
1095
|
+
_o,
|
|
1096
1096
|
{
|
|
1097
|
-
ref:
|
|
1097
|
+
ref: a,
|
|
1098
1098
|
size: i,
|
|
1099
1099
|
className: m,
|
|
1100
1100
|
classNames: p,
|
|
1101
1101
|
...c,
|
|
1102
|
-
children:
|
|
1102
|
+
children: o
|
|
1103
1103
|
}
|
|
1104
1104
|
);
|
|
1105
1105
|
}
|
|
1106
1106
|
);
|
|
1107
|
-
|
|
1108
|
-
const
|
|
1109
|
-
root:
|
|
1110
|
-
input:
|
|
1111
|
-
section:
|
|
1112
|
-
dropdown:
|
|
1113
|
-
option:
|
|
1114
|
-
},
|
|
1115
|
-
function(
|
|
1107
|
+
Dt.displayName = "Container";
|
|
1108
|
+
const Gr = (r) => /* @__PURE__ */ e("div", { ...r, children: "DatePicker" }), Vt = "Dropdown-module__root___uVyL0", Gt = "Dropdown-module__input___dK4dN", qt = "Dropdown-module__section___j3MRB", Yt = "Dropdown-module__dropdown___gG-Sw", Zt = "Dropdown-module__option___nAGU-", F = {
|
|
1109
|
+
root: Vt,
|
|
1110
|
+
input: Gt,
|
|
1111
|
+
section: qt,
|
|
1112
|
+
dropdown: Yt,
|
|
1113
|
+
option: Zt
|
|
1114
|
+
}, Ht = $(
|
|
1115
|
+
function(o, n) {
|
|
1116
1116
|
const {
|
|
1117
|
-
overStyled:
|
|
1118
|
-
formLayout:
|
|
1119
|
-
containerWidth:
|
|
1117
|
+
overStyled: s = !1,
|
|
1118
|
+
formLayout: t = "stacked",
|
|
1119
|
+
containerWidth: a,
|
|
1120
1120
|
// Label & Wrapper Maps
|
|
1121
1121
|
labelSize: c,
|
|
1122
1122
|
labelAlignment: l,
|
|
@@ -1128,45 +1128,45 @@ const xr = (o) => /* @__PURE__ */ e("div", { ...o, children: "DatePicker" }), Pt
|
|
|
1128
1128
|
assistiveWithIcon: m,
|
|
1129
1129
|
error: _,
|
|
1130
1130
|
required: h,
|
|
1131
|
-
withAsterisk:
|
|
1131
|
+
withAsterisk: C,
|
|
1132
1132
|
id: f,
|
|
1133
|
-
className:
|
|
1133
|
+
className: g,
|
|
1134
1134
|
style: b,
|
|
1135
|
-
disabled:
|
|
1135
|
+
disabled: P,
|
|
1136
1136
|
readOnly: N,
|
|
1137
1137
|
readOnlyComponent: z,
|
|
1138
|
-
emptyValueComponent:
|
|
1139
|
-
value:
|
|
1140
|
-
defaultValue:
|
|
1141
|
-
data:
|
|
1138
|
+
emptyValueComponent: L,
|
|
1139
|
+
value: A,
|
|
1140
|
+
defaultValue: R,
|
|
1141
|
+
data: O,
|
|
1142
1142
|
...S
|
|
1143
|
-
} =
|
|
1144
|
-
delete
|
|
1145
|
-
const
|
|
1146
|
-
wrapper:
|
|
1143
|
+
} = o, T = v(S, s), x = T;
|
|
1144
|
+
delete x.size, delete x.variant, delete x.radius;
|
|
1145
|
+
const I = {
|
|
1146
|
+
wrapper: F.root,
|
|
1147
1147
|
// The nested Input internal relative wrapper bounding box
|
|
1148
|
-
input:
|
|
1149
|
-
section:
|
|
1150
|
-
dropdown:
|
|
1151
|
-
option:
|
|
1152
|
-
}, Q =
|
|
1148
|
+
input: F.input,
|
|
1149
|
+
section: F.section,
|
|
1150
|
+
dropdown: F.dropdown,
|
|
1151
|
+
option: F.option
|
|
1152
|
+
}, Q = x.classNames;
|
|
1153
1153
|
if (Q && typeof Q == "object" && !Array.isArray(Q)) {
|
|
1154
|
-
const
|
|
1155
|
-
|
|
1154
|
+
const j = Q;
|
|
1155
|
+
I.wrapper = j.wrapper ? `${F.root} ${j.wrapper}` : F.root, I.input = j.input ? `${F.input} ${j.input}` : F.input, I.section = j.section ? `${F.section} ${j.section}` : F.section, I.dropdown = j.dropdown ? `${F.dropdown} ${j.dropdown}` : F.dropdown, I.option = j.option ? `${F.option} ${j.option}` : F.option;
|
|
1156
1156
|
}
|
|
1157
|
-
const
|
|
1157
|
+
const de = {
|
|
1158
1158
|
...b || {},
|
|
1159
|
-
width:
|
|
1159
|
+
width: a || "100%"
|
|
1160
1160
|
};
|
|
1161
1161
|
return /* @__PURE__ */ e(
|
|
1162
|
-
|
|
1162
|
+
ee,
|
|
1163
1163
|
{
|
|
1164
|
-
className:
|
|
1165
|
-
style:
|
|
1164
|
+
className: g,
|
|
1165
|
+
style: de,
|
|
1166
1166
|
controlMaxWidth: "var(--recursica_ui-kit_components_dropdown_properties_max-width)",
|
|
1167
1167
|
controlMinWidth: "var(--recursica_ui-kit_components_dropdown_properties_min-width)",
|
|
1168
|
-
overStyled:
|
|
1169
|
-
formLayout:
|
|
1168
|
+
overStyled: s,
|
|
1169
|
+
formLayout: t,
|
|
1170
1170
|
labelSize: c,
|
|
1171
1171
|
labelAlignment: l,
|
|
1172
1172
|
labelOptionalText: d,
|
|
@@ -1177,35 +1177,35 @@ const xr = (o) => /* @__PURE__ */ e("div", { ...o, children: "DatePicker" }), Pt
|
|
|
1177
1177
|
assistiveWithIcon: m,
|
|
1178
1178
|
error: _,
|
|
1179
1179
|
required: h,
|
|
1180
|
-
withAsterisk:
|
|
1180
|
+
withAsterisk: C,
|
|
1181
1181
|
id: f,
|
|
1182
1182
|
readOnly: N,
|
|
1183
1183
|
readOnlyComponent: z,
|
|
1184
|
-
emptyValueComponent:
|
|
1184
|
+
emptyValueComponent: L,
|
|
1185
1185
|
readOnlyType: "text",
|
|
1186
|
-
readOnlyValue:
|
|
1187
|
-
readOnlyNativeProps:
|
|
1186
|
+
readOnlyValue: A !== void 0 ? String(A) : R ? String(R) : void 0,
|
|
1187
|
+
readOnlyNativeProps: o,
|
|
1188
1188
|
activeComponent: (
|
|
1189
1189
|
/* Naked Select execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
|
|
1190
1190
|
/* @__PURE__ */ e(
|
|
1191
|
-
|
|
1191
|
+
bo,
|
|
1192
1192
|
{
|
|
1193
1193
|
ref: n,
|
|
1194
|
-
classNames:
|
|
1195
|
-
disabled:
|
|
1196
|
-
value:
|
|
1197
|
-
defaultValue:
|
|
1198
|
-
data:
|
|
1194
|
+
classNames: I,
|
|
1195
|
+
disabled: P,
|
|
1196
|
+
value: A,
|
|
1197
|
+
defaultValue: R,
|
|
1198
|
+
data: O || [],
|
|
1199
1199
|
label: void 0,
|
|
1200
1200
|
description: void 0,
|
|
1201
1201
|
error: void 0,
|
|
1202
1202
|
required: void 0,
|
|
1203
1203
|
withAsterisk: void 0,
|
|
1204
1204
|
wrapperProps: {
|
|
1205
|
-
"data-disabled":
|
|
1205
|
+
"data-disabled": P ? "true" : void 0,
|
|
1206
1206
|
"data-error": _ ? "true" : void 0
|
|
1207
1207
|
},
|
|
1208
|
-
...
|
|
1208
|
+
...T
|
|
1209
1209
|
}
|
|
1210
1210
|
)
|
|
1211
1211
|
)
|
|
@@ -1213,56 +1213,56 @@ const xr = (o) => /* @__PURE__ */ e("div", { ...o, children: "DatePicker" }), Pt
|
|
|
1213
1213
|
);
|
|
1214
1214
|
}
|
|
1215
1215
|
);
|
|
1216
|
-
|
|
1217
|
-
const
|
|
1218
|
-
root:
|
|
1219
|
-
},
|
|
1220
|
-
const c =
|
|
1221
|
-
root:
|
|
1216
|
+
Ht.displayName = "Dropdown";
|
|
1217
|
+
const qr = (r) => /* @__PURE__ */ e("div", { ...r, children: "FileInput" }), Yr = (r) => /* @__PURE__ */ e("div", { ...r, children: "FileUpload" }), Kt = "Flex-module__root___yYser", se = {
|
|
1218
|
+
root: Kt
|
|
1219
|
+
}, Ut = $(function({ children: o, overStyled: n = !1, gap: s = "rec-default", ...t }, a) {
|
|
1220
|
+
const c = v({ ...t, gap: s }, n), l = c, d = {
|
|
1221
|
+
root: se.root
|
|
1222
1222
|
}, i = l.classNames;
|
|
1223
1223
|
if (i && typeof i == "object" && !Array.isArray(i)) {
|
|
1224
1224
|
const y = i;
|
|
1225
|
-
d.root = y.root ? `${
|
|
1225
|
+
d.root = y.root ? `${se.root} ${y.root}` : se.root;
|
|
1226
1226
|
}
|
|
1227
|
-
const p = l.className, u = p ? `${
|
|
1227
|
+
const p = l.className, u = p ? `${se.root} ${p}` : se.root;
|
|
1228
1228
|
return /* @__PURE__ */ e(
|
|
1229
|
-
|
|
1229
|
+
yo,
|
|
1230
1230
|
{
|
|
1231
|
-
ref:
|
|
1231
|
+
ref: a,
|
|
1232
1232
|
className: u,
|
|
1233
1233
|
classNames: d,
|
|
1234
1234
|
...c,
|
|
1235
|
-
children:
|
|
1235
|
+
children: o
|
|
1236
1236
|
}
|
|
1237
1237
|
);
|
|
1238
1238
|
});
|
|
1239
|
-
|
|
1240
|
-
const
|
|
1241
|
-
root:
|
|
1242
|
-
},
|
|
1243
|
-
const c =
|
|
1244
|
-
root:
|
|
1239
|
+
Ut.displayName = "Flex";
|
|
1240
|
+
const Xt = "Group-module__root___ftO64", ne = {
|
|
1241
|
+
root: Xt
|
|
1242
|
+
}, Qt = $(function({ children: o, overStyled: n = !1, gap: s = "rec-default", ...t }, a) {
|
|
1243
|
+
const c = v({ ...t, gap: s }, n), l = c, d = {
|
|
1244
|
+
root: ne.root
|
|
1245
1245
|
}, i = l.classNames;
|
|
1246
1246
|
if (i && typeof i == "object" && !Array.isArray(i)) {
|
|
1247
1247
|
const y = i;
|
|
1248
|
-
d.root = y.root ? `${
|
|
1248
|
+
d.root = y.root ? `${ne.root} ${y.root}` : ne.root;
|
|
1249
1249
|
}
|
|
1250
|
-
const p = l.className, u = p ? `${
|
|
1250
|
+
const p = l.className, u = p ? `${ne.root} ${p}` : ne.root;
|
|
1251
1251
|
return /* @__PURE__ */ e(
|
|
1252
|
-
|
|
1252
|
+
ho,
|
|
1253
1253
|
{
|
|
1254
|
-
ref:
|
|
1254
|
+
ref: a,
|
|
1255
1255
|
className: u,
|
|
1256
1256
|
classNames: d,
|
|
1257
1257
|
...c,
|
|
1258
|
-
children:
|
|
1258
|
+
children: o
|
|
1259
1259
|
}
|
|
1260
1260
|
);
|
|
1261
1261
|
});
|
|
1262
|
-
|
|
1263
|
-
const
|
|
1264
|
-
root:
|
|
1265
|
-
},
|
|
1262
|
+
Qt.displayName = "Group";
|
|
1263
|
+
const Zr = (r) => /* @__PURE__ */ e("div", { ...r, children: "HoverCard" }), Hr = (r) => /* @__PURE__ */ e("div", { ...r, children: "Link" }), Jt = "Loader-module__root___6iYOP", le = {
|
|
1264
|
+
root: Jt
|
|
1265
|
+
}, er = $(function({ variant: o = "oval", size: n = "default", overStyled: s = !1, ...t }, a) {
|
|
1266
1266
|
const l = {
|
|
1267
1267
|
sm: "small",
|
|
1268
1268
|
md: "default",
|
|
@@ -1270,20 +1270,20 @@ const kr = (o) => /* @__PURE__ */ e("div", { ...o, children: "HoverCard" }), wr
|
|
|
1270
1270
|
small: "small",
|
|
1271
1271
|
default: "default",
|
|
1272
1272
|
large: "large"
|
|
1273
|
-
}[n] || "default", d =
|
|
1274
|
-
root:
|
|
1273
|
+
}[n] || "default", d = v(t, s), i = {
|
|
1274
|
+
root: le.root
|
|
1275
1275
|
}, p = d.classNames;
|
|
1276
1276
|
if (p && typeof p == "object" && !Array.isArray(p)) {
|
|
1277
1277
|
const m = p;
|
|
1278
|
-
i.root = m.root ? `${
|
|
1278
|
+
i.root = m.root ? `${le.root} ${m.root}` : le.root;
|
|
1279
1279
|
}
|
|
1280
|
-
const u = d.className, y = u ? `${
|
|
1280
|
+
const u = d.className, y = u ? `${le.root} ${u}` : le.root;
|
|
1281
1281
|
return /* @__PURE__ */ e(
|
|
1282
|
-
|
|
1282
|
+
fo,
|
|
1283
1283
|
{
|
|
1284
|
-
ref:
|
|
1285
|
-
type:
|
|
1286
|
-
"data-variant":
|
|
1284
|
+
ref: a,
|
|
1285
|
+
type: o,
|
|
1286
|
+
"data-variant": o,
|
|
1287
1287
|
"data-size": l,
|
|
1288
1288
|
...d,
|
|
1289
1289
|
className: y,
|
|
@@ -1291,23 +1291,163 @@ const kr = (o) => /* @__PURE__ */ e("div", { ...o, children: "HoverCard" }), wr
|
|
|
1291
1291
|
}
|
|
1292
1292
|
);
|
|
1293
1293
|
});
|
|
1294
|
-
|
|
1295
|
-
const
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1294
|
+
er.displayName = "Loader";
|
|
1295
|
+
const or = "Menu-module__dropdown___j4xuA", tr = "Menu-module__item___NMXha", rr = "Menu-module__itemLabel___zvcqC", ar = "Menu-module__itemSection___pRIcn", sr = "Menu-module__divider___wPiNq", nr = "Menu-module__label___4FBGa", lr = "Menu-module__chevron___hEEiy", J = {
|
|
1296
|
+
dropdown: or,
|
|
1297
|
+
item: tr,
|
|
1298
|
+
itemLabel: rr,
|
|
1299
|
+
itemSection: ar,
|
|
1300
|
+
divider: sr,
|
|
1301
|
+
label: nr,
|
|
1302
|
+
chevron: lr
|
|
1303
|
+
}, Ge = function({ overStyled: o = !1, ...n }) {
|
|
1304
|
+
const s = v(n, o), t = {
|
|
1305
|
+
dropdown: J.dropdown,
|
|
1306
|
+
item: J.item,
|
|
1307
|
+
itemLabel: J.itemLabel,
|
|
1308
|
+
itemSection: J.itemSection,
|
|
1309
|
+
divider: J.divider,
|
|
1310
|
+
label: J.label,
|
|
1311
|
+
chevron: J.chevron
|
|
1312
|
+
}, a = s.classNames;
|
|
1313
|
+
if (a && typeof a == "object" && !Array.isArray(a)) {
|
|
1314
|
+
const c = a;
|
|
1315
|
+
Object.keys(c).forEach((l) => {
|
|
1316
|
+
t[l] ? t[l] = `${t[l]} ${c[l]}` : t[l] = c[l];
|
|
1317
|
+
});
|
|
1318
|
+
}
|
|
1319
|
+
return /* @__PURE__ */ e(
|
|
1320
|
+
q,
|
|
1321
|
+
{
|
|
1322
|
+
classNames: t,
|
|
1323
|
+
...s
|
|
1324
|
+
}
|
|
1325
|
+
);
|
|
1326
|
+
};
|
|
1327
|
+
Ge.displayName = "Menu";
|
|
1328
|
+
const qe = function(o) {
|
|
1329
|
+
return /* @__PURE__ */ e(q.Target, { ...o });
|
|
1330
|
+
};
|
|
1331
|
+
qe.displayName = "MenuTarget";
|
|
1332
|
+
const Ye = $(
|
|
1333
|
+
function({ overStyled: o = !1, ...n }, s) {
|
|
1334
|
+
const t = v(n, o), a = t.className;
|
|
1335
|
+
return /* @__PURE__ */ e(
|
|
1336
|
+
q.Dropdown,
|
|
1337
|
+
{
|
|
1338
|
+
ref: s,
|
|
1339
|
+
className: a,
|
|
1340
|
+
...t
|
|
1341
|
+
}
|
|
1342
|
+
);
|
|
1343
|
+
}
|
|
1344
|
+
);
|
|
1345
|
+
Ye.displayName = "MenuDropdown";
|
|
1346
|
+
const Ze = $(function({ overStyled: o = !1, ...n }, s) {
|
|
1347
|
+
const t = v(n, o), a = t;
|
|
1348
|
+
o || delete a.color;
|
|
1349
|
+
const c = a.className;
|
|
1350
|
+
return /* @__PURE__ */ e(
|
|
1351
|
+
q.Item,
|
|
1352
|
+
{
|
|
1353
|
+
ref: s,
|
|
1354
|
+
className: c,
|
|
1355
|
+
...t
|
|
1356
|
+
}
|
|
1357
|
+
);
|
|
1358
|
+
});
|
|
1359
|
+
Ze.displayName = "MenuItem";
|
|
1360
|
+
const He = $(
|
|
1361
|
+
function({ overStyled: o = !1, ...n }, s) {
|
|
1362
|
+
const t = v(n, o), a = t.className;
|
|
1363
|
+
return /* @__PURE__ */ e(
|
|
1364
|
+
q.Divider,
|
|
1365
|
+
{
|
|
1366
|
+
ref: s,
|
|
1367
|
+
className: a,
|
|
1368
|
+
...t
|
|
1369
|
+
}
|
|
1370
|
+
);
|
|
1371
|
+
}
|
|
1372
|
+
);
|
|
1373
|
+
He.displayName = "MenuDivider";
|
|
1374
|
+
const Ke = $(function({ overStyled: o = !1, ...n }, s) {
|
|
1375
|
+
const t = v(n, o), a = t.className;
|
|
1376
|
+
return /* @__PURE__ */ e(
|
|
1377
|
+
q.Label,
|
|
1378
|
+
{
|
|
1379
|
+
ref: s,
|
|
1380
|
+
className: a,
|
|
1381
|
+
...t
|
|
1382
|
+
}
|
|
1383
|
+
);
|
|
1384
|
+
});
|
|
1385
|
+
Ke.displayName = "MenuLabel";
|
|
1386
|
+
const Ue = function(o) {
|
|
1387
|
+
return /* @__PURE__ */ e(q.Sub, { ...o });
|
|
1388
|
+
};
|
|
1389
|
+
Ue.displayName = "MenuSub";
|
|
1390
|
+
const Xe = function(o) {
|
|
1391
|
+
return /* @__PURE__ */ e(q.Sub.Target, { ...o });
|
|
1392
|
+
};
|
|
1393
|
+
Xe.displayName = "MenuSubTarget";
|
|
1394
|
+
const Qe = $(
|
|
1395
|
+
function({ overStyled: o = !1, ...n }, s) {
|
|
1396
|
+
const t = v(n, o), a = t;
|
|
1397
|
+
o || delete a.color;
|
|
1398
|
+
const c = a.className;
|
|
1399
|
+
return /* @__PURE__ */ e(
|
|
1400
|
+
q.Sub.Item,
|
|
1401
|
+
{
|
|
1402
|
+
ref: s,
|
|
1403
|
+
className: c,
|
|
1404
|
+
...t
|
|
1405
|
+
}
|
|
1406
|
+
);
|
|
1407
|
+
}
|
|
1408
|
+
);
|
|
1409
|
+
Qe.displayName = "MenuSubItem";
|
|
1410
|
+
const Je = $(
|
|
1411
|
+
function({ overStyled: o = !1, ...n }, s) {
|
|
1412
|
+
const t = v(n, o), a = t.className;
|
|
1413
|
+
return /* @__PURE__ */ e(
|
|
1414
|
+
q.Sub.Dropdown,
|
|
1415
|
+
{
|
|
1416
|
+
ref: s,
|
|
1417
|
+
className: a,
|
|
1418
|
+
...t
|
|
1419
|
+
}
|
|
1420
|
+
);
|
|
1421
|
+
}
|
|
1422
|
+
);
|
|
1423
|
+
Je.displayName = "MenuSubDropdown";
|
|
1424
|
+
const Ne = Ue;
|
|
1425
|
+
Ne.Target = Xe;
|
|
1426
|
+
Ne.Item = Qe;
|
|
1427
|
+
Ne.Dropdown = Je;
|
|
1428
|
+
const re = Ge;
|
|
1429
|
+
re.Target = qe;
|
|
1430
|
+
re.Dropdown = Ye;
|
|
1431
|
+
re.Item = Ze;
|
|
1432
|
+
re.Divider = He;
|
|
1433
|
+
re.Label = Ke;
|
|
1434
|
+
re.Sub = Ne;
|
|
1435
|
+
const Kr = (r) => /* @__PURE__ */ e("div", { ...r, children: "Modal" }), Ur = (r) => /* @__PURE__ */ e("div", { ...r, children: "NumberInput" }), Xr = (r) => /* @__PURE__ */ e("div", { ...r, children: "Pagination" }), Qr = (r) => /* @__PURE__ */ e("div", { ...r, children: "Panel" }), Jr = (r) => /* @__PURE__ */ e("div", { ...r, children: "Popover" }), cr = "Radio-module__groupRoot___bfUii", ir = "Radio-module__root___kAjTD", dr = "Radio-module__body___q2Wpj", pr = "Radio-module__inner___QaTBB", mr = "Radio-module__radio___MfgN-", ur = "Radio-module__icon___DWznm", _r = "Radio-module__labelWrapper___dB0Gi", br = "Radio-module__label___vAFIP", k = {
|
|
1436
|
+
groupRoot: cr,
|
|
1437
|
+
root: ir,
|
|
1438
|
+
body: dr,
|
|
1439
|
+
inner: pr,
|
|
1440
|
+
radio: mr,
|
|
1441
|
+
icon: ur,
|
|
1442
|
+
labelWrapper: _r,
|
|
1443
|
+
label: br
|
|
1444
|
+
}, eo = $(
|
|
1445
|
+
function(o, n) {
|
|
1306
1446
|
const {
|
|
1307
|
-
overStyled:
|
|
1308
|
-
formLayout:
|
|
1447
|
+
overStyled: s = !1,
|
|
1448
|
+
formLayout: t = "stacked",
|
|
1309
1449
|
// Label Wrappers
|
|
1310
|
-
labelSize:
|
|
1450
|
+
labelSize: a,
|
|
1311
1451
|
labelAlignment: c,
|
|
1312
1452
|
labelOptionalText: l,
|
|
1313
1453
|
labelWithEditIcon: d,
|
|
@@ -1319,29 +1459,29 @@ const Ar = (o) => /* @__PURE__ */ e("div", { ...o, children: "Menu" }), Pr = (o)
|
|
|
1319
1459
|
assistiveWithIcon: m,
|
|
1320
1460
|
error: _,
|
|
1321
1461
|
required: h,
|
|
1322
|
-
withAsterisk:
|
|
1462
|
+
withAsterisk: C,
|
|
1323
1463
|
id: f,
|
|
1324
|
-
className:
|
|
1464
|
+
className: g,
|
|
1325
1465
|
style: b,
|
|
1326
|
-
children:
|
|
1466
|
+
children: P,
|
|
1327
1467
|
readOnly: N,
|
|
1328
1468
|
readOnlyComponent: z,
|
|
1329
|
-
emptyValueComponent:
|
|
1330
|
-
value:
|
|
1331
|
-
defaultValue:
|
|
1332
|
-
...
|
|
1333
|
-
} =
|
|
1334
|
-
return delete
|
|
1335
|
-
|
|
1469
|
+
emptyValueComponent: L,
|
|
1470
|
+
value: A,
|
|
1471
|
+
defaultValue: R,
|
|
1472
|
+
...O
|
|
1473
|
+
} = o, S = v(O, s), T = S;
|
|
1474
|
+
return delete T.size, /* @__PURE__ */ e(
|
|
1475
|
+
ee,
|
|
1336
1476
|
{
|
|
1337
|
-
className:
|
|
1477
|
+
className: g,
|
|
1338
1478
|
style: b,
|
|
1339
1479
|
controlMaxWidth: "var(--recursica_ui-kit_components_radio-button-item_properties_max-width)",
|
|
1340
1480
|
controlMinWidth: void 0,
|
|
1341
|
-
overStyled:
|
|
1481
|
+
overStyled: s,
|
|
1342
1482
|
labelElement: "div",
|
|
1343
|
-
formLayout:
|
|
1344
|
-
labelSize:
|
|
1483
|
+
formLayout: t,
|
|
1484
|
+
labelSize: a,
|
|
1345
1485
|
labelAlignment: c,
|
|
1346
1486
|
labelOptionalText: l,
|
|
1347
1487
|
labelWithEditIcon: d,
|
|
@@ -1352,81 +1492,81 @@ const Ar = (o) => /* @__PURE__ */ e("div", { ...o, children: "Menu" }), Pr = (o)
|
|
|
1352
1492
|
assistiveWithIcon: m,
|
|
1353
1493
|
error: _,
|
|
1354
1494
|
required: h,
|
|
1355
|
-
withAsterisk:
|
|
1495
|
+
withAsterisk: C,
|
|
1356
1496
|
id: f,
|
|
1357
1497
|
readOnly: N && !!z,
|
|
1358
1498
|
readOnlyComponent: z,
|
|
1359
|
-
emptyValueComponent:
|
|
1499
|
+
emptyValueComponent: L,
|
|
1360
1500
|
readOnlyType: "text",
|
|
1361
|
-
readOnlyValue:
|
|
1362
|
-
readOnlyNativeProps:
|
|
1501
|
+
readOnlyValue: A !== void 0 ? A : R,
|
|
1502
|
+
readOnlyNativeProps: o,
|
|
1363
1503
|
activeComponent: /* @__PURE__ */ e(
|
|
1364
|
-
|
|
1504
|
+
Te.Group,
|
|
1365
1505
|
{
|
|
1366
1506
|
ref: n,
|
|
1367
1507
|
...S,
|
|
1368
|
-
disabled: N ||
|
|
1369
|
-
value:
|
|
1370
|
-
defaultValue:
|
|
1371
|
-
children: /* @__PURE__ */ e("div", { className:
|
|
1372
|
-
disabled: N ||
|
|
1373
|
-
}) :
|
|
1508
|
+
disabled: N || T.disabled,
|
|
1509
|
+
value: A,
|
|
1510
|
+
defaultValue: R,
|
|
1511
|
+
children: /* @__PURE__ */ e("div", { className: k.groupRoot, "data-layout": t, children: B.Children.map(P, (x) => B.isValidElement(x) ? B.cloneElement(x, {
|
|
1512
|
+
disabled: N || x.props.disabled
|
|
1513
|
+
}) : x) })
|
|
1374
1514
|
}
|
|
1375
1515
|
)
|
|
1376
1516
|
}
|
|
1377
1517
|
);
|
|
1378
1518
|
}
|
|
1379
1519
|
);
|
|
1380
|
-
|
|
1381
|
-
const
|
|
1520
|
+
eo.displayName = "RadioGroup";
|
|
1521
|
+
const yr = ({ className: r, style: o }) => /* @__PURE__ */ e(
|
|
1382
1522
|
"svg",
|
|
1383
1523
|
{
|
|
1384
1524
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1385
1525
|
viewBox: "0 0 16 16",
|
|
1386
1526
|
fill: "currentColor",
|
|
1387
|
-
className:
|
|
1388
|
-
style:
|
|
1527
|
+
className: r,
|
|
1528
|
+
style: o,
|
|
1389
1529
|
children: /* @__PURE__ */ e("circle", { cx: "8", cy: "8", r: "5" })
|
|
1390
1530
|
}
|
|
1391
|
-
),
|
|
1392
|
-
function(
|
|
1531
|
+
), oo = $(
|
|
1532
|
+
function(o, n) {
|
|
1393
1533
|
const {
|
|
1394
|
-
overStyled:
|
|
1395
|
-
readOnly:
|
|
1396
|
-
readOnlyComponent:
|
|
1534
|
+
overStyled: s = !1,
|
|
1535
|
+
readOnly: t,
|
|
1536
|
+
readOnlyComponent: a,
|
|
1397
1537
|
disabled: c,
|
|
1398
1538
|
formLayout: l,
|
|
1399
1539
|
labelSize: d,
|
|
1400
1540
|
controlMaxWidth: i,
|
|
1401
1541
|
controlMinWidth: p,
|
|
1402
1542
|
...u
|
|
1403
|
-
} =
|
|
1543
|
+
} = o, y = v(u, s), m = y;
|
|
1404
1544
|
delete m.size, delete m.color, delete m.radius, delete m.variant, delete m.iconColor;
|
|
1405
1545
|
const _ = {
|
|
1406
|
-
root:
|
|
1407
|
-
body:
|
|
1408
|
-
inner:
|
|
1409
|
-
radio:
|
|
1410
|
-
icon:
|
|
1411
|
-
labelWrapper:
|
|
1412
|
-
label:
|
|
1546
|
+
root: k.root,
|
|
1547
|
+
body: k.body,
|
|
1548
|
+
inner: k.inner,
|
|
1549
|
+
radio: k.radio,
|
|
1550
|
+
icon: k.icon,
|
|
1551
|
+
labelWrapper: k.labelWrapper,
|
|
1552
|
+
label: k.label
|
|
1413
1553
|
}, h = m.classNames;
|
|
1414
1554
|
if (h && typeof h == "object" && !Array.isArray(h)) {
|
|
1415
1555
|
const b = h;
|
|
1416
|
-
_.root = b.root ? `${
|
|
1556
|
+
_.root = b.root ? `${k.root} ${b.root}` : k.root, _.body = b.body ? `${k.body} ${b.body}` : k.body, _.inner = b.inner ? `${k.inner} ${b.inner}` : k.inner, _.radio = b.radio ? `${k.radio} ${b.radio}` : k.radio, _.icon = b.icon ? `${k.icon} ${b.icon}` : k.icon, _.labelWrapper = b.labelWrapper ? `${k.labelWrapper} ${b.labelWrapper}` : k.labelWrapper, _.label = b.label ? `${k.label} ${b.label}` : k.label;
|
|
1417
1557
|
}
|
|
1418
|
-
const
|
|
1419
|
-
if (
|
|
1558
|
+
const C = m.className, f = C ? `${k.root} ${C}` : k.root;
|
|
1559
|
+
if (t && a) {
|
|
1420
1560
|
const b = !!(m.checked ?? m.defaultChecked), N = /* @__PURE__ */ e(
|
|
1421
|
-
|
|
1561
|
+
a,
|
|
1422
1562
|
{
|
|
1423
|
-
...
|
|
1563
|
+
...o,
|
|
1424
1564
|
checked: b,
|
|
1425
1565
|
label: m.label
|
|
1426
1566
|
}
|
|
1427
1567
|
);
|
|
1428
1568
|
return l ? /* @__PURE__ */ e(
|
|
1429
|
-
|
|
1569
|
+
X,
|
|
1430
1570
|
{
|
|
1431
1571
|
formLayout: l,
|
|
1432
1572
|
labelSize: d,
|
|
@@ -1434,106 +1574,106 @@ const Kt = ({ className: o, style: t }) => /* @__PURE__ */ e(
|
|
|
1434
1574
|
controlMinWidth: p,
|
|
1435
1575
|
children: N
|
|
1436
1576
|
}
|
|
1437
|
-
) : /* @__PURE__ */ e(
|
|
1577
|
+
) : /* @__PURE__ */ e(ie, { children: N });
|
|
1438
1578
|
}
|
|
1439
|
-
const
|
|
1440
|
-
|
|
1579
|
+
const g = /* @__PURE__ */ e(
|
|
1580
|
+
Te,
|
|
1441
1581
|
{
|
|
1442
1582
|
ref: n,
|
|
1443
|
-
icon:
|
|
1583
|
+
icon: yr,
|
|
1444
1584
|
className: f,
|
|
1445
1585
|
classNames: _,
|
|
1446
|
-
disabled:
|
|
1586
|
+
disabled: t || c,
|
|
1447
1587
|
...y
|
|
1448
1588
|
}
|
|
1449
1589
|
);
|
|
1450
1590
|
return l ? /* @__PURE__ */ e(
|
|
1451
|
-
|
|
1591
|
+
X,
|
|
1452
1592
|
{
|
|
1453
1593
|
formLayout: l,
|
|
1454
1594
|
labelSize: d,
|
|
1455
1595
|
controlMaxWidth: i,
|
|
1456
1596
|
controlMinWidth: p,
|
|
1457
|
-
children:
|
|
1597
|
+
children: g
|
|
1458
1598
|
}
|
|
1459
|
-
) :
|
|
1599
|
+
) : g;
|
|
1460
1600
|
}
|
|
1461
1601
|
);
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
const
|
|
1465
|
-
|
|
1602
|
+
oo.displayName = "Radio";
|
|
1603
|
+
oo.Group = eo;
|
|
1604
|
+
const hr = ({ checked: r, label: o }) => /* @__PURE__ */ E(
|
|
1605
|
+
Ce,
|
|
1466
1606
|
{
|
|
1467
1607
|
component: "span",
|
|
1468
|
-
className:
|
|
1608
|
+
className: be.textField,
|
|
1469
1609
|
style: { display: "inline-flex", gap: "8px", alignItems: "baseline" },
|
|
1470
1610
|
children: [
|
|
1471
|
-
|
|
1472
|
-
|
|
1611
|
+
o && /* @__PURE__ */ E("span", { style: { fontWeight: 500 }, children: [
|
|
1612
|
+
o,
|
|
1473
1613
|
":"
|
|
1474
1614
|
] }),
|
|
1475
|
-
/* @__PURE__ */ e("span", { children:
|
|
1615
|
+
/* @__PURE__ */ e("span", { children: r ? "On" : "Off" })
|
|
1476
1616
|
]
|
|
1477
1617
|
}
|
|
1478
1618
|
);
|
|
1479
|
-
|
|
1480
|
-
const
|
|
1481
|
-
|
|
1619
|
+
hr.displayName = "ReadOnlySwitchField";
|
|
1620
|
+
const fr = ({ checked: r, label: o }) => /* @__PURE__ */ E(
|
|
1621
|
+
Ce,
|
|
1482
1622
|
{
|
|
1483
1623
|
component: "span",
|
|
1484
|
-
className:
|
|
1624
|
+
className: be.textField,
|
|
1485
1625
|
style: { display: "inline-flex", gap: "8px", alignItems: "baseline" },
|
|
1486
1626
|
children: [
|
|
1487
|
-
|
|
1488
|
-
|
|
1627
|
+
o && /* @__PURE__ */ E("span", { style: { fontWeight: 500 }, children: [
|
|
1628
|
+
o,
|
|
1489
1629
|
":"
|
|
1490
1630
|
] }),
|
|
1491
|
-
/* @__PURE__ */ e("span", { children:
|
|
1631
|
+
/* @__PURE__ */ e("span", { children: r ? "True" : "False" })
|
|
1492
1632
|
]
|
|
1493
1633
|
}
|
|
1494
1634
|
);
|
|
1495
|
-
|
|
1496
|
-
const
|
|
1497
|
-
root:
|
|
1498
|
-
},
|
|
1499
|
-
const c =
|
|
1500
|
-
root:
|
|
1635
|
+
fr.displayName = "ReadOnlyBooleanField";
|
|
1636
|
+
const ea = (r) => /* @__PURE__ */ e("div", { ...r, children: "Search" }), oa = (r) => /* @__PURE__ */ e("div", { ...r, children: "SegmentedControl" }), ta = (r) => /* @__PURE__ */ e("div", { ...r, children: "Slider" }), Nr = "Stack-module__root___NUN-x", ce = {
|
|
1637
|
+
root: Nr
|
|
1638
|
+
}, $r = $(function({ children: o, overStyled: n = !1, gap: s = "rec-default", ...t }, a) {
|
|
1639
|
+
const c = v({ ...t, gap: s }, n), l = c, d = {
|
|
1640
|
+
root: ce.root
|
|
1501
1641
|
}, i = l.classNames;
|
|
1502
1642
|
if (i && typeof i == "object" && !Array.isArray(i)) {
|
|
1503
1643
|
const y = i;
|
|
1504
|
-
d.root = y.root ? `${
|
|
1644
|
+
d.root = y.root ? `${ce.root} ${y.root}` : ce.root;
|
|
1505
1645
|
}
|
|
1506
|
-
const p = l.className, u = p ? `${
|
|
1646
|
+
const p = l.className, u = p ? `${ce.root} ${p}` : ce.root;
|
|
1507
1647
|
return /* @__PURE__ */ e(
|
|
1508
|
-
|
|
1648
|
+
No,
|
|
1509
1649
|
{
|
|
1510
|
-
ref:
|
|
1650
|
+
ref: a,
|
|
1511
1651
|
className: u,
|
|
1512
1652
|
classNames: d,
|
|
1513
1653
|
...c,
|
|
1514
|
-
children:
|
|
1654
|
+
children: o
|
|
1515
1655
|
}
|
|
1516
1656
|
);
|
|
1517
1657
|
});
|
|
1518
|
-
|
|
1519
|
-
const
|
|
1520
|
-
root:
|
|
1521
|
-
body:
|
|
1522
|
-
track:
|
|
1523
|
-
thumb:
|
|
1524
|
-
labelWrapper:
|
|
1525
|
-
label:
|
|
1526
|
-
thumbIconWrapper:
|
|
1527
|
-
checkIcon:
|
|
1528
|
-
closeIcon:
|
|
1529
|
-
groupRoot:
|
|
1530
|
-
},
|
|
1531
|
-
function(
|
|
1658
|
+
$r.displayName = "Stack";
|
|
1659
|
+
const ra = (r) => /* @__PURE__ */ e("div", { ...r, children: "Stepper" }), vr = "Switch-module__root___Y5Ydi", Cr = "Switch-module__body___Sw9Wr", gr = "Switch-module__track___7ObdZ", xr = "Switch-module__thumb___-FTeK", wr = "Switch-module__labelWrapper___YSOwx", Pr = "Switch-module__label___LrH7V", Wr = "Switch-module__thumbIconWrapper___sCY-1", kr = "Switch-module__checkIcon___ZBAQN", Ar = "Switch-module__closeIcon___bLLGw", Sr = "Switch-module__groupRoot___-Uepi", w = {
|
|
1660
|
+
root: vr,
|
|
1661
|
+
body: Cr,
|
|
1662
|
+
track: gr,
|
|
1663
|
+
thumb: xr,
|
|
1664
|
+
labelWrapper: wr,
|
|
1665
|
+
label: Pr,
|
|
1666
|
+
thumbIconWrapper: Wr,
|
|
1667
|
+
checkIcon: kr,
|
|
1668
|
+
closeIcon: Ar,
|
|
1669
|
+
groupRoot: Sr
|
|
1670
|
+
}, to = $(
|
|
1671
|
+
function(o, n) {
|
|
1532
1672
|
const {
|
|
1533
|
-
overStyled:
|
|
1534
|
-
formLayout:
|
|
1673
|
+
overStyled: s = !1,
|
|
1674
|
+
formLayout: t = "stacked",
|
|
1535
1675
|
// Label Wrappers
|
|
1536
|
-
labelSize:
|
|
1676
|
+
labelSize: a,
|
|
1537
1677
|
labelAlignment: c,
|
|
1538
1678
|
labelOptionalText: l,
|
|
1539
1679
|
labelWithEditIcon: d,
|
|
@@ -1545,29 +1685,29 @@ const Fr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Stepper" }), er =
|
|
|
1545
1685
|
assistiveWithIcon: m,
|
|
1546
1686
|
error: _,
|
|
1547
1687
|
required: h,
|
|
1548
|
-
withAsterisk:
|
|
1688
|
+
withAsterisk: C,
|
|
1549
1689
|
id: f,
|
|
1550
|
-
className:
|
|
1690
|
+
className: g,
|
|
1551
1691
|
style: b,
|
|
1552
|
-
children:
|
|
1692
|
+
children: P,
|
|
1553
1693
|
readOnly: N,
|
|
1554
1694
|
readOnlyComponent: z,
|
|
1555
|
-
emptyValueComponent:
|
|
1556
|
-
value:
|
|
1557
|
-
defaultValue:
|
|
1558
|
-
...
|
|
1559
|
-
} =
|
|
1560
|
-
return delete
|
|
1561
|
-
|
|
1695
|
+
emptyValueComponent: L,
|
|
1696
|
+
value: A,
|
|
1697
|
+
defaultValue: R,
|
|
1698
|
+
...O
|
|
1699
|
+
} = o, S = v(O, s), T = S;
|
|
1700
|
+
return delete T.size, /* @__PURE__ */ e(
|
|
1701
|
+
ee,
|
|
1562
1702
|
{
|
|
1563
|
-
className:
|
|
1703
|
+
className: g,
|
|
1564
1704
|
style: b,
|
|
1565
1705
|
controlMaxWidth: "var(--recursica_ui-kit_components_switch_properties_max-width)",
|
|
1566
1706
|
controlMinWidth: void 0,
|
|
1567
|
-
overStyled:
|
|
1707
|
+
overStyled: s,
|
|
1568
1708
|
labelElement: "div",
|
|
1569
|
-
formLayout:
|
|
1570
|
-
labelSize:
|
|
1709
|
+
formLayout: t,
|
|
1710
|
+
labelSize: a,
|
|
1571
1711
|
labelAlignment: c,
|
|
1572
1712
|
labelOptionalText: l,
|
|
1573
1713
|
labelWithEditIcon: d,
|
|
@@ -1578,38 +1718,38 @@ const Fr = (o) => /* @__PURE__ */ e("div", { ...o, children: "Stepper" }), er =
|
|
|
1578
1718
|
assistiveWithIcon: m,
|
|
1579
1719
|
error: _,
|
|
1580
1720
|
required: h,
|
|
1581
|
-
withAsterisk:
|
|
1721
|
+
withAsterisk: C,
|
|
1582
1722
|
id: f,
|
|
1583
1723
|
readOnly: N && !!z,
|
|
1584
1724
|
readOnlyComponent: z,
|
|
1585
|
-
emptyValueComponent:
|
|
1725
|
+
emptyValueComponent: L,
|
|
1586
1726
|
readOnlyType: "text",
|
|
1587
|
-
readOnlyValue:
|
|
1588
|
-
readOnlyNativeProps:
|
|
1727
|
+
readOnlyValue: A !== void 0 ? A : R,
|
|
1728
|
+
readOnlyNativeProps: o,
|
|
1589
1729
|
activeComponent: /* @__PURE__ */ e(
|
|
1590
|
-
|
|
1730
|
+
Ie.Group,
|
|
1591
1731
|
{
|
|
1592
1732
|
ref: n,
|
|
1593
1733
|
...S,
|
|
1594
|
-
disabled: N ||
|
|
1595
|
-
value:
|
|
1596
|
-
defaultValue:
|
|
1597
|
-
children: /* @__PURE__ */ e("div", { className:
|
|
1598
|
-
disabled: N ||
|
|
1599
|
-
}) :
|
|
1734
|
+
disabled: N || T.disabled,
|
|
1735
|
+
value: A,
|
|
1736
|
+
defaultValue: R,
|
|
1737
|
+
children: /* @__PURE__ */ e("div", { className: w.groupRoot, children: B.Children.map(P, (x) => B.isValidElement(x) ? B.cloneElement(x, {
|
|
1738
|
+
disabled: N || x.props.disabled
|
|
1739
|
+
}) : x) })
|
|
1600
1740
|
}
|
|
1601
1741
|
)
|
|
1602
1742
|
}
|
|
1603
1743
|
);
|
|
1604
1744
|
}
|
|
1605
1745
|
);
|
|
1606
|
-
|
|
1607
|
-
const
|
|
1608
|
-
function(
|
|
1746
|
+
to.displayName = "SwitchGroup";
|
|
1747
|
+
const ro = $(
|
|
1748
|
+
function(o, n) {
|
|
1609
1749
|
const {
|
|
1610
|
-
overStyled:
|
|
1611
|
-
readOnly:
|
|
1612
|
-
readOnlyComponent:
|
|
1750
|
+
overStyled: s = !1,
|
|
1751
|
+
readOnly: t,
|
|
1752
|
+
readOnlyComponent: a,
|
|
1613
1753
|
disabled: c,
|
|
1614
1754
|
thumbIcon: l,
|
|
1615
1755
|
formLayout: d,
|
|
@@ -1617,92 +1757,92 @@ const Me = $(
|
|
|
1617
1757
|
controlMaxWidth: p,
|
|
1618
1758
|
controlMinWidth: u,
|
|
1619
1759
|
...y
|
|
1620
|
-
} =
|
|
1760
|
+
} = o, m = v(y, s), _ = m;
|
|
1621
1761
|
delete _.size, delete _.color, delete _.radius, delete _.variant;
|
|
1622
1762
|
const h = {
|
|
1623
|
-
root:
|
|
1624
|
-
body:
|
|
1625
|
-
track:
|
|
1626
|
-
thumb:
|
|
1627
|
-
trackLabel:
|
|
1628
|
-
labelWrapper:
|
|
1629
|
-
label:
|
|
1630
|
-
},
|
|
1631
|
-
if (
|
|
1632
|
-
const N =
|
|
1633
|
-
h.root = N.root ? `${
|
|
1763
|
+
root: w.root,
|
|
1764
|
+
body: w.body,
|
|
1765
|
+
track: w.track,
|
|
1766
|
+
thumb: w.thumb,
|
|
1767
|
+
trackLabel: w.trackLabel,
|
|
1768
|
+
labelWrapper: w.labelWrapper,
|
|
1769
|
+
label: w.label
|
|
1770
|
+
}, C = _.classNames;
|
|
1771
|
+
if (C && typeof C == "object" && !Array.isArray(C)) {
|
|
1772
|
+
const N = C;
|
|
1773
|
+
h.root = N.root ? `${w.root} ${N.root}` : w.root, h.body = N.body ? `${w.body} ${N.body}` : w.body, h.track = N.track ? `${w.track} ${N.track}` : w.track, h.thumb = N.thumb ? `${w.thumb} ${N.thumb}` : w.thumb, h.trackLabel = N.trackLabel ? `${w.trackLabel} ${N.trackLabel}` : w.trackLabel, h.labelWrapper = N.labelWrapper ? `${w.labelWrapper} ${N.labelWrapper}` : w.labelWrapper, h.label = N.label ? `${w.label} ${N.label}` : w.label;
|
|
1634
1774
|
}
|
|
1635
|
-
const f = _.className,
|
|
1636
|
-
if (
|
|
1637
|
-
const N = !!(_.checked ?? _.defaultChecked),
|
|
1638
|
-
|
|
1775
|
+
const f = _.className, g = f ? `${w.root} ${f}` : w.root;
|
|
1776
|
+
if (t && a) {
|
|
1777
|
+
const N = !!(_.checked ?? _.defaultChecked), L = /* @__PURE__ */ e(
|
|
1778
|
+
a,
|
|
1639
1779
|
{
|
|
1640
|
-
...
|
|
1780
|
+
...o,
|
|
1641
1781
|
checked: N,
|
|
1642
1782
|
label: _.label
|
|
1643
1783
|
}
|
|
1644
1784
|
);
|
|
1645
1785
|
return d ? /* @__PURE__ */ e(
|
|
1646
|
-
|
|
1786
|
+
X,
|
|
1647
1787
|
{
|
|
1648
1788
|
formLayout: d,
|
|
1649
1789
|
labelSize: i,
|
|
1650
1790
|
controlMaxWidth: p,
|
|
1651
1791
|
controlMinWidth: u,
|
|
1652
|
-
children:
|
|
1792
|
+
children: L
|
|
1653
1793
|
}
|
|
1654
|
-
) : /* @__PURE__ */ e(
|
|
1794
|
+
) : /* @__PURE__ */ e(ie, { children: L });
|
|
1655
1795
|
}
|
|
1656
|
-
const b = /* @__PURE__ */
|
|
1657
|
-
/* @__PURE__ */ e(
|
|
1658
|
-
/* @__PURE__ */ e(
|
|
1659
|
-
] }),
|
|
1660
|
-
|
|
1796
|
+
const b = /* @__PURE__ */ E("div", { className: w.thumbIconWrapper, children: [
|
|
1797
|
+
/* @__PURE__ */ e($o, { className: w.checkIcon }),
|
|
1798
|
+
/* @__PURE__ */ e(vo, { className: w.closeIcon })
|
|
1799
|
+
] }), P = /* @__PURE__ */ e(
|
|
1800
|
+
Ie,
|
|
1661
1801
|
{
|
|
1662
1802
|
ref: n,
|
|
1663
|
-
className:
|
|
1803
|
+
className: g,
|
|
1664
1804
|
classNames: h,
|
|
1665
|
-
disabled:
|
|
1805
|
+
disabled: t || c,
|
|
1666
1806
|
thumbIcon: l ?? b,
|
|
1667
1807
|
...m
|
|
1668
1808
|
}
|
|
1669
1809
|
);
|
|
1670
1810
|
return d ? /* @__PURE__ */ e(
|
|
1671
|
-
|
|
1811
|
+
X,
|
|
1672
1812
|
{
|
|
1673
1813
|
formLayout: d,
|
|
1674
1814
|
labelSize: i,
|
|
1675
1815
|
controlMaxWidth: p,
|
|
1676
1816
|
controlMinWidth: u,
|
|
1677
|
-
children:
|
|
1817
|
+
children: P
|
|
1678
1818
|
}
|
|
1679
|
-
) :
|
|
1819
|
+
) : P;
|
|
1680
1820
|
}
|
|
1681
1821
|
);
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
const
|
|
1685
|
-
const
|
|
1822
|
+
ro.displayName = "Switch";
|
|
1823
|
+
ro.Group = to;
|
|
1824
|
+
const aa = (r) => /* @__PURE__ */ e("div", { ...r, children: "Table" }), sa = (r) => /* @__PURE__ */ e("div", { ...r, children: "Tabs" }), Tr = $(function({ overStyled: o = !1, variant: n = "body", ...s }, t) {
|
|
1825
|
+
const a = v(s, o), c = a.className, l = `recursica_brand_typography_${n}`, d = c ? `${l} ${c}` : l;
|
|
1686
1826
|
return /* @__PURE__ */ e(
|
|
1687
|
-
|
|
1827
|
+
Co,
|
|
1688
1828
|
{
|
|
1689
|
-
ref:
|
|
1829
|
+
ref: t,
|
|
1690
1830
|
className: d,
|
|
1691
|
-
...
|
|
1831
|
+
...a
|
|
1692
1832
|
}
|
|
1693
1833
|
);
|
|
1694
1834
|
});
|
|
1695
|
-
|
|
1696
|
-
const
|
|
1697
|
-
root:
|
|
1698
|
-
input:
|
|
1699
|
-
},
|
|
1700
|
-
function(
|
|
1835
|
+
Tr.displayName = "Text";
|
|
1836
|
+
const Ir = "TextArea-module__root___3dyeu", Lr = "TextArea-module__input___8l36v", te = {
|
|
1837
|
+
root: Ir,
|
|
1838
|
+
input: Lr
|
|
1839
|
+
}, Rr = $(
|
|
1840
|
+
function(o, n) {
|
|
1701
1841
|
const {
|
|
1702
|
-
overStyled:
|
|
1703
|
-
formLayout:
|
|
1842
|
+
overStyled: s = !1,
|
|
1843
|
+
formLayout: t = "stacked",
|
|
1704
1844
|
// Label & Wrapper Maps
|
|
1705
|
-
labelSize:
|
|
1845
|
+
labelSize: a,
|
|
1706
1846
|
labelAlignment: c,
|
|
1707
1847
|
labelOptionalText: l,
|
|
1708
1848
|
labelWithEditIcon: d,
|
|
@@ -1713,37 +1853,37 @@ const pr = "TextArea-module__root___3dyeu", mr = "TextArea-module__input___8l36v
|
|
|
1713
1853
|
error: m,
|
|
1714
1854
|
required: _,
|
|
1715
1855
|
withAsterisk: h,
|
|
1716
|
-
id:
|
|
1856
|
+
id: C,
|
|
1717
1857
|
className: f,
|
|
1718
|
-
style:
|
|
1858
|
+
style: g,
|
|
1719
1859
|
disabled: b,
|
|
1720
|
-
readOnly:
|
|
1860
|
+
readOnly: P,
|
|
1721
1861
|
readOnlyComponent: N,
|
|
1722
1862
|
emptyValueComponent: z,
|
|
1723
|
-
value:
|
|
1724
|
-
defaultValue:
|
|
1725
|
-
...
|
|
1726
|
-
} =
|
|
1863
|
+
value: L,
|
|
1864
|
+
defaultValue: A,
|
|
1865
|
+
...R
|
|
1866
|
+
} = o, O = v(R, s), S = O;
|
|
1727
1867
|
delete S.size, delete S.variant, delete S.radius;
|
|
1728
|
-
const
|
|
1729
|
-
wrapper:
|
|
1868
|
+
const T = {
|
|
1869
|
+
wrapper: te.root,
|
|
1730
1870
|
// The nested Input internal relative wrapper bounding box
|
|
1731
|
-
input:
|
|
1732
|
-
},
|
|
1733
|
-
if (
|
|
1734
|
-
const
|
|
1735
|
-
|
|
1871
|
+
input: te.input
|
|
1872
|
+
}, x = S.classNames;
|
|
1873
|
+
if (x && typeof x == "object" && !Array.isArray(x)) {
|
|
1874
|
+
const I = x;
|
|
1875
|
+
T.wrapper = I.wrapper ? `${te.root} ${I.wrapper}` : te.root, T.input = I.input ? `${te.input} ${I.input}` : te.input;
|
|
1736
1876
|
}
|
|
1737
1877
|
return /* @__PURE__ */ e(
|
|
1738
|
-
|
|
1878
|
+
ee,
|
|
1739
1879
|
{
|
|
1740
1880
|
className: f,
|
|
1741
|
-
style:
|
|
1881
|
+
style: g,
|
|
1742
1882
|
controlMaxWidth: "var(--recursica_ui-kit_components_text-field_properties_max-width)",
|
|
1743
1883
|
controlMinWidth: "var(--recursica_ui-kit_components_text-field_properties_min-width)",
|
|
1744
|
-
overStyled:
|
|
1745
|
-
formLayout:
|
|
1746
|
-
labelSize:
|
|
1884
|
+
overStyled: s,
|
|
1885
|
+
formLayout: t,
|
|
1886
|
+
labelSize: a,
|
|
1747
1887
|
labelAlignment: c,
|
|
1748
1888
|
labelOptionalText: l,
|
|
1749
1889
|
labelWithEditIcon: d,
|
|
@@ -1754,23 +1894,23 @@ const pr = "TextArea-module__root___3dyeu", mr = "TextArea-module__input___8l36v
|
|
|
1754
1894
|
error: m,
|
|
1755
1895
|
required: _,
|
|
1756
1896
|
withAsterisk: h,
|
|
1757
|
-
id:
|
|
1758
|
-
readOnly:
|
|
1897
|
+
id: C,
|
|
1898
|
+
readOnly: P,
|
|
1759
1899
|
readOnlyComponent: N,
|
|
1760
1900
|
emptyValueComponent: z,
|
|
1761
1901
|
readOnlyType: "text",
|
|
1762
|
-
readOnlyValue:
|
|
1763
|
-
readOnlyNativeProps:
|
|
1902
|
+
readOnlyValue: L !== void 0 ? L : A,
|
|
1903
|
+
readOnlyNativeProps: o,
|
|
1764
1904
|
activeComponent: (
|
|
1765
1905
|
/* Naked Input execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
|
|
1766
1906
|
/* @__PURE__ */ e(
|
|
1767
|
-
|
|
1907
|
+
go,
|
|
1768
1908
|
{
|
|
1769
1909
|
ref: n,
|
|
1770
|
-
classNames:
|
|
1910
|
+
classNames: T,
|
|
1771
1911
|
disabled: b,
|
|
1772
|
-
value:
|
|
1773
|
-
defaultValue:
|
|
1912
|
+
value: L,
|
|
1913
|
+
defaultValue: A,
|
|
1774
1914
|
label: void 0,
|
|
1775
1915
|
description: void 0,
|
|
1776
1916
|
error: void 0,
|
|
@@ -1780,7 +1920,7 @@ const pr = "TextArea-module__root___3dyeu", mr = "TextArea-module__input___8l36v
|
|
|
1780
1920
|
"data-disabled": b ? "true" : void 0,
|
|
1781
1921
|
"data-error": m ? "true" : void 0
|
|
1782
1922
|
},
|
|
1783
|
-
...
|
|
1923
|
+
...O
|
|
1784
1924
|
}
|
|
1785
1925
|
)
|
|
1786
1926
|
)
|
|
@@ -1788,18 +1928,18 @@ const pr = "TextArea-module__root___3dyeu", mr = "TextArea-module__input___8l36v
|
|
|
1788
1928
|
);
|
|
1789
1929
|
}
|
|
1790
1930
|
);
|
|
1791
|
-
|
|
1792
|
-
const
|
|
1793
|
-
root:
|
|
1794
|
-
input:
|
|
1795
|
-
section:
|
|
1796
|
-
},
|
|
1797
|
-
function(
|
|
1931
|
+
Rr.displayName = "TextArea";
|
|
1932
|
+
const Or = "TextField-module__root___2ZYkG", zr = "TextField-module__input___RL-My", Mr = "TextField-module__section___bCIJ0", Z = {
|
|
1933
|
+
root: Or,
|
|
1934
|
+
input: zr,
|
|
1935
|
+
section: Mr
|
|
1936
|
+
}, Fr = $(
|
|
1937
|
+
function(o, n) {
|
|
1798
1938
|
const {
|
|
1799
|
-
overStyled:
|
|
1800
|
-
formLayout:
|
|
1939
|
+
overStyled: s = !1,
|
|
1940
|
+
formLayout: t = "stacked",
|
|
1801
1941
|
// Label & Wrapper Maps
|
|
1802
|
-
labelSize:
|
|
1942
|
+
labelSize: a,
|
|
1803
1943
|
labelAlignment: c,
|
|
1804
1944
|
labelOptionalText: l,
|
|
1805
1945
|
labelWithEditIcon: d,
|
|
@@ -1810,38 +1950,38 @@ const _r = "TextField-module__root___2ZYkG", br = "TextField-module__input___RL-
|
|
|
1810
1950
|
error: m,
|
|
1811
1951
|
required: _,
|
|
1812
1952
|
withAsterisk: h,
|
|
1813
|
-
id:
|
|
1953
|
+
id: C,
|
|
1814
1954
|
className: f,
|
|
1815
|
-
style:
|
|
1955
|
+
style: g,
|
|
1816
1956
|
disabled: b,
|
|
1817
|
-
readOnly:
|
|
1957
|
+
readOnly: P,
|
|
1818
1958
|
readOnlyComponent: N,
|
|
1819
1959
|
emptyValueComponent: z,
|
|
1820
|
-
value:
|
|
1821
|
-
defaultValue:
|
|
1822
|
-
...
|
|
1823
|
-
} =
|
|
1960
|
+
value: L,
|
|
1961
|
+
defaultValue: A,
|
|
1962
|
+
...R
|
|
1963
|
+
} = o, O = v(R, s), S = O;
|
|
1824
1964
|
delete S.size, delete S.variant, delete S.radius;
|
|
1825
|
-
const
|
|
1826
|
-
wrapper:
|
|
1965
|
+
const T = {
|
|
1966
|
+
wrapper: Z.root,
|
|
1827
1967
|
// The nested Input internal relative wrapper bounding box
|
|
1828
|
-
input:
|
|
1829
|
-
section:
|
|
1830
|
-
},
|
|
1831
|
-
if (
|
|
1832
|
-
const
|
|
1833
|
-
|
|
1968
|
+
input: Z.input,
|
|
1969
|
+
section: Z.section
|
|
1970
|
+
}, x = S.classNames;
|
|
1971
|
+
if (x && typeof x == "object" && !Array.isArray(x)) {
|
|
1972
|
+
const I = x;
|
|
1973
|
+
T.wrapper = I.wrapper ? `${Z.root} ${I.wrapper}` : Z.root, T.input = I.input ? `${Z.input} ${I.input}` : Z.input, T.section = I.section ? `${Z.section} ${I.section}` : Z.section;
|
|
1834
1974
|
}
|
|
1835
1975
|
return /* @__PURE__ */ e(
|
|
1836
|
-
|
|
1976
|
+
ee,
|
|
1837
1977
|
{
|
|
1838
1978
|
className: f,
|
|
1839
|
-
style:
|
|
1979
|
+
style: g,
|
|
1840
1980
|
controlMaxWidth: "var(--recursica_ui-kit_components_text-field_properties_max-width)",
|
|
1841
1981
|
controlMinWidth: "var(--recursica_ui-kit_components_text-field_properties_min-width)",
|
|
1842
|
-
overStyled:
|
|
1843
|
-
formLayout:
|
|
1844
|
-
labelSize:
|
|
1982
|
+
overStyled: s,
|
|
1983
|
+
formLayout: t,
|
|
1984
|
+
labelSize: a,
|
|
1845
1985
|
labelAlignment: c,
|
|
1846
1986
|
labelOptionalText: l,
|
|
1847
1987
|
labelWithEditIcon: d,
|
|
@@ -1852,28 +1992,28 @@ const _r = "TextField-module__root___2ZYkG", br = "TextField-module__input___RL-
|
|
|
1852
1992
|
error: m,
|
|
1853
1993
|
required: _,
|
|
1854
1994
|
withAsterisk: h,
|
|
1855
|
-
id:
|
|
1856
|
-
readOnly:
|
|
1995
|
+
id: C,
|
|
1996
|
+
readOnly: P,
|
|
1857
1997
|
readOnlyComponent: N,
|
|
1858
1998
|
emptyValueComponent: z,
|
|
1859
1999
|
readOnlyType: "text",
|
|
1860
|
-
readOnlyValue:
|
|
1861
|
-
readOnlyNativeProps:
|
|
2000
|
+
readOnlyValue: L !== void 0 ? L : A,
|
|
2001
|
+
readOnlyNativeProps: o,
|
|
1862
2002
|
activeComponent: (
|
|
1863
2003
|
/* Naked Input execution safely decoupled from Mantine's macro Input.Wrapper DOM hooks */
|
|
1864
2004
|
/* @__PURE__ */ e(
|
|
1865
|
-
|
|
2005
|
+
Ae,
|
|
1866
2006
|
{
|
|
1867
2007
|
ref: n,
|
|
1868
|
-
classNames:
|
|
2008
|
+
classNames: T,
|
|
1869
2009
|
disabled: b,
|
|
1870
|
-
value:
|
|
1871
|
-
defaultValue:
|
|
2010
|
+
value: L,
|
|
2011
|
+
defaultValue: A,
|
|
1872
2012
|
wrapperProps: {
|
|
1873
2013
|
"data-disabled": b ? "true" : void 0,
|
|
1874
2014
|
"data-error": m ? "true" : void 0
|
|
1875
2015
|
},
|
|
1876
|
-
...
|
|
2016
|
+
...O
|
|
1877
2017
|
}
|
|
1878
2018
|
)
|
|
1879
2019
|
)
|
|
@@ -1881,83 +2021,83 @@ const _r = "TextField-module__root___2ZYkG", br = "TextField-module__input___RL-
|
|
|
1881
2021
|
);
|
|
1882
2022
|
}
|
|
1883
2023
|
);
|
|
1884
|
-
|
|
1885
|
-
const
|
|
1886
|
-
const
|
|
2024
|
+
Fr.displayName = "TextField";
|
|
2025
|
+
const na = (r) => /* @__PURE__ */ e("div", { ...r, children: "TimePicker" }), la = (r) => /* @__PURE__ */ e("div", { ...r, children: "Timeline" }), Er = $(function({ overStyled: o = !1, order: n = 1, ...s }, t) {
|
|
2026
|
+
const a = v(s, o), c = a.className, l = `recursica_brand_typography_h${n}`, d = c ? `${l} ${c}` : l;
|
|
1887
2027
|
return /* @__PURE__ */ e(
|
|
1888
|
-
|
|
2028
|
+
xo,
|
|
1889
2029
|
{
|
|
1890
|
-
ref:
|
|
2030
|
+
ref: t,
|
|
1891
2031
|
order: n,
|
|
1892
2032
|
className: d,
|
|
1893
|
-
...
|
|
2033
|
+
...a
|
|
1894
2034
|
}
|
|
1895
2035
|
);
|
|
1896
2036
|
});
|
|
1897
|
-
|
|
1898
|
-
const
|
|
2037
|
+
Er.displayName = "Title";
|
|
2038
|
+
const ca = (r) => /* @__PURE__ */ e("div", { ...r, children: "Toast" }), ia = (r) => /* @__PURE__ */ e("div", { ...r, children: "Tooltip" }), da = (r) => /* @__PURE__ */ e("div", { ...r, children: "TransferList" });
|
|
1899
2039
|
export {
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
2040
|
+
we as Accordion,
|
|
2041
|
+
ge as AccordionControl,
|
|
2042
|
+
Re as AccordionItem,
|
|
2043
|
+
xe as AccordionPanel,
|
|
2044
|
+
jo as Avatar,
|
|
2045
|
+
Vo as Badge,
|
|
2046
|
+
Yo as Breadcrumb,
|
|
2047
|
+
Jo as Button,
|
|
2048
|
+
fe as Card,
|
|
2049
|
+
Ee as CardContent,
|
|
2050
|
+
Fe as CardFooter,
|
|
2051
|
+
Me as CardHeader,
|
|
2052
|
+
ze as CardSection,
|
|
2053
|
+
Ve as Checkbox,
|
|
2054
|
+
De as CheckboxGroup,
|
|
2055
|
+
Bt as Chip,
|
|
2056
|
+
Dt as Container,
|
|
2057
|
+
Gr as DatePicker,
|
|
2058
|
+
Ht as Dropdown,
|
|
2059
|
+
_e as EmptyValueRenderer,
|
|
2060
|
+
qr as FileInput,
|
|
2061
|
+
Yr as FileUpload,
|
|
2062
|
+
Ut as Flex,
|
|
2063
|
+
X as FormControlLayout,
|
|
2064
|
+
Qt as Group,
|
|
2065
|
+
Zr as HoverCard,
|
|
2066
|
+
Be as Label,
|
|
2067
|
+
Ct as Layer,
|
|
2068
|
+
Hr as Link,
|
|
2069
|
+
er as Loader,
|
|
2070
|
+
re as Menu,
|
|
2071
|
+
Kr as Modal,
|
|
2072
|
+
Ur as NumberInput,
|
|
2073
|
+
Xr as Pagination,
|
|
2074
|
+
Qr as Panel,
|
|
2075
|
+
Jr as Popover,
|
|
2076
|
+
oo as Radio,
|
|
2077
|
+
eo as RadioGroup,
|
|
2078
|
+
fr as ReadOnlyBooleanField,
|
|
2079
|
+
je as ReadOnlyField,
|
|
2080
|
+
hr as ReadOnlySwitchField,
|
|
2081
|
+
me as ReadOnlyTextField,
|
|
2082
|
+
Vr as RecursicaThemeProvider,
|
|
2083
|
+
ea as Search,
|
|
2084
|
+
oa as SegmentedControl,
|
|
2085
|
+
ta as Slider,
|
|
2086
|
+
$r as Stack,
|
|
2087
|
+
ra as Stepper,
|
|
2088
|
+
ro as Switch,
|
|
2089
|
+
to as SwitchGroup,
|
|
2090
|
+
aa as Table,
|
|
2091
|
+
sa as Tabs,
|
|
2092
|
+
Tr as Text,
|
|
2093
|
+
Rr as TextArea,
|
|
2094
|
+
Fr as TextField,
|
|
2095
|
+
na as TimePicker,
|
|
2096
|
+
la as Timeline,
|
|
2097
|
+
Er as Title,
|
|
2098
|
+
ca as Toast,
|
|
2099
|
+
ia as Tooltip,
|
|
2100
|
+
da as TransferList,
|
|
2101
|
+
ee as WithReadOnlyWrapper
|
|
1962
2102
|
};
|
|
1963
2103
|
//# sourceMappingURL=mantine-adapter.js.map
|