@ufal-lccv/gpsub-ds 0.0.16 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Table.view-CpcXIpXH.js → Table.view-dgKqpBRL.js} +131 -131
- package/dist/{Table.view-9o-ZaYs1.cjs → Table.view-wnIhy1DV.cjs} +20 -20
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +1 -1
- package/dist/components/organisms/index.cjs.js +1 -1
- package/dist/components/organisms/index.es.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as n, C as _, i as ce, K as xe, j as we, c as ye, N as C, O as
|
|
2
|
-
import je, { useState as P, useEffect as Z, useCallback as
|
|
1
|
+
import { l as n, C as _, i as ce, K as xe, j as we, c as ye, N as C, O as H, s as Ce, T as fe, S as ke, I as ze, P as Be, E as ue } from "./Checkbox.view-D75146I3.js";
|
|
2
|
+
import je, { useState as P, useEffect as Z, useCallback as he, useMemo as Q, useRef as U, forwardRef as ge, isValidElement as se, useLayoutEffect as Ne } from "react";
|
|
3
3
|
import { sg as o, Icon as V } from "sbwb-ds";
|
|
4
4
|
import { v as G, r as q, b as We } from "./index-_v6RoRxb.js";
|
|
5
5
|
import { Controller as re } from "react-hook-form";
|
|
@@ -14,17 +14,17 @@ const ae = 350, yo = ({
|
|
|
14
14
|
maxHeight: m = "none"
|
|
15
15
|
// Default to 'none' to allow full expansion
|
|
16
16
|
}) => {
|
|
17
|
-
const [g, S] = P(!1), [f,
|
|
17
|
+
const [g, S] = P(!1), [f, u] = P(!0);
|
|
18
18
|
Z(() => {
|
|
19
19
|
if (a)
|
|
20
20
|
if (g) {
|
|
21
21
|
const B = setTimeout(
|
|
22
|
-
() =>
|
|
22
|
+
() => u(!1),
|
|
23
23
|
ae
|
|
24
24
|
);
|
|
25
25
|
return () => clearTimeout(B);
|
|
26
26
|
} else
|
|
27
|
-
|
|
27
|
+
u(!0);
|
|
28
28
|
}, [g, a]);
|
|
29
29
|
const b = a && !f ? null : i;
|
|
30
30
|
return /* @__PURE__ */ n.jsxs(
|
|
@@ -92,7 +92,7 @@ function le({
|
|
|
92
92
|
triggerType: i = null,
|
|
93
93
|
debounceTime: l = 500
|
|
94
94
|
}) {
|
|
95
|
-
const s =
|
|
95
|
+
const s = he(() => {
|
|
96
96
|
e.trigger(t);
|
|
97
97
|
}, [e, t]), d = Q(
|
|
98
98
|
() => ve(() => s(), l),
|
|
@@ -124,16 +124,16 @@ const Co = ({
|
|
|
124
124
|
flex: g,
|
|
125
125
|
placeholder: S,
|
|
126
126
|
onSelect: f,
|
|
127
|
-
parser:
|
|
127
|
+
parser: u,
|
|
128
128
|
filter: b,
|
|
129
129
|
tooltipProps: B = {},
|
|
130
130
|
infoProps: j = {},
|
|
131
|
-
maxHeigthMenu:
|
|
131
|
+
maxHeigthMenu: h,
|
|
132
132
|
isRequired: p = !1,
|
|
133
133
|
onRemoveSelected: R,
|
|
134
134
|
triggerFormField: k = null,
|
|
135
135
|
displayText: M,
|
|
136
|
-
...
|
|
136
|
+
...F
|
|
137
137
|
}) => {
|
|
138
138
|
const { onChangeTrigger: z } = le({
|
|
139
139
|
form: e,
|
|
@@ -152,7 +152,7 @@ const Co = ({
|
|
|
152
152
|
}
|
|
153
153
|
}, T = (w, v) => {
|
|
154
154
|
let E = w;
|
|
155
|
-
|
|
155
|
+
u && (E = u == null ? void 0 : u(w)), v(E), f == null || f(E), z == null || z();
|
|
156
156
|
}, x = Q(() => G(a) ? a : Object.fromEntries(l.map((w) => [w.value, w])), [l, a]);
|
|
157
157
|
return /* @__PURE__ */ n.jsx(_, { width: m, flex: g, children: /* @__PURE__ */ n.jsx(
|
|
158
158
|
re,
|
|
@@ -181,13 +181,13 @@ const Co = ({
|
|
|
181
181
|
},
|
|
182
182
|
tooltipProps: J,
|
|
183
183
|
options: l,
|
|
184
|
-
maxHeigthMenu:
|
|
184
|
+
maxHeigthMenu: h,
|
|
185
185
|
infoProps: A,
|
|
186
|
-
maxHeightMenu:
|
|
186
|
+
maxHeightMenu: h,
|
|
187
187
|
isRequired: p,
|
|
188
188
|
onRemoveSelected: R,
|
|
189
189
|
displayText: M,
|
|
190
|
-
...
|
|
190
|
+
...F
|
|
191
191
|
}
|
|
192
192
|
);
|
|
193
193
|
}
|
|
@@ -205,11 +205,11 @@ const Co = ({
|
|
|
205
205
|
placeholder: g,
|
|
206
206
|
charactersCounter: S = !0,
|
|
207
207
|
maxlength: f = 1e3,
|
|
208
|
-
resize:
|
|
208
|
+
resize: u = !0,
|
|
209
209
|
triggerFormField: b = null,
|
|
210
210
|
minHeight: B,
|
|
211
211
|
maxHeight: j,
|
|
212
|
-
...
|
|
212
|
+
...h
|
|
213
213
|
}) => {
|
|
214
214
|
const { onChangeTrigger: p } = le({
|
|
215
215
|
form: e,
|
|
@@ -225,7 +225,7 @@ const Co = ({
|
|
|
225
225
|
control: e.control,
|
|
226
226
|
render: ({
|
|
227
227
|
field: { onChange: k, value: M },
|
|
228
|
-
fieldState: { error:
|
|
228
|
+
fieldState: { error: F = null }
|
|
229
229
|
}) => /* @__PURE__ */ n.jsx(
|
|
230
230
|
we,
|
|
231
231
|
{
|
|
@@ -237,14 +237,14 @@ const Co = ({
|
|
|
237
237
|
height: a,
|
|
238
238
|
minHeight: B,
|
|
239
239
|
maxHeight: j,
|
|
240
|
-
errorMessage:
|
|
240
|
+
errorMessage: F == null ? void 0 : F.message,
|
|
241
241
|
placeholder: g,
|
|
242
242
|
onChange: (z) => R(z.target.value, k),
|
|
243
243
|
charactersCounter: S,
|
|
244
244
|
maxlength: f,
|
|
245
245
|
size: "Small",
|
|
246
|
-
resize:
|
|
247
|
-
...
|
|
246
|
+
resize: u,
|
|
247
|
+
...h
|
|
248
248
|
}
|
|
249
249
|
)
|
|
250
250
|
}
|
|
@@ -263,7 +263,7 @@ const ko = ({
|
|
|
263
263
|
formatter: g,
|
|
264
264
|
parser: S,
|
|
265
265
|
flex: f,
|
|
266
|
-
size:
|
|
266
|
+
size: u = "Medium",
|
|
267
267
|
triggerFormField: b = null,
|
|
268
268
|
...B
|
|
269
269
|
}) => {
|
|
@@ -272,7 +272,7 @@ const ko = ({
|
|
|
272
272
|
fieldName: t,
|
|
273
273
|
triggerType: b,
|
|
274
274
|
debounceTime: 0
|
|
275
|
-
}),
|
|
275
|
+
}), h = (p, R) => {
|
|
276
276
|
R(p), a == null || a(p), j == null || j();
|
|
277
277
|
};
|
|
278
278
|
return /* @__PURE__ */ n.jsx(_, { width: m, flex: f, children: /* @__PURE__ */ n.jsx(
|
|
@@ -293,13 +293,13 @@ const ko = ({
|
|
|
293
293
|
name: t,
|
|
294
294
|
label: l,
|
|
295
295
|
disabled: d || s,
|
|
296
|
-
onChange: (
|
|
297
|
-
|
|
298
|
-
(S == null ? void 0 : S(
|
|
296
|
+
onChange: (F) => {
|
|
297
|
+
h(
|
|
298
|
+
(S == null ? void 0 : S(F.target.checked, R)) ?? F.target.checked,
|
|
299
299
|
p
|
|
300
300
|
);
|
|
301
301
|
},
|
|
302
|
-
size:
|
|
302
|
+
size: u,
|
|
303
303
|
...B
|
|
304
304
|
}
|
|
305
305
|
);
|
|
@@ -336,7 +336,7 @@ const ko = ({
|
|
|
336
336
|
background: ${o.colors.neutralColors.colorNeutralClean};
|
|
337
337
|
border-radius: ${o.borders.borderRadius.borderRadiusPill};
|
|
338
338
|
}
|
|
339
|
-
`,
|
|
339
|
+
`, He = C.li`
|
|
340
340
|
${q}
|
|
341
341
|
font-family: ${o.fonts.fontFamily.fontFamilyPrimary};
|
|
342
342
|
font-size: ${({ size: e }) => e === "Small" ? o.fonts.fontSize.fontSizeBodyMd : o.fonts.fontSize.fontSizeBodyLg};
|
|
@@ -344,7 +344,7 @@ const ko = ({
|
|
|
344
344
|
margin: 0 ${o.spacings.spacingInline.spacingInlineXs};
|
|
345
345
|
cursor: default;
|
|
346
346
|
color: ${o.colors.neutralColors.colorNeutralDark};
|
|
347
|
-
`,
|
|
347
|
+
`, Fe = C.li`
|
|
348
348
|
${q}
|
|
349
349
|
display: flex;
|
|
350
350
|
flex: 2;
|
|
@@ -359,7 +359,7 @@ const ko = ({
|
|
|
359
359
|
min-width: 0;
|
|
360
360
|
& > p {
|
|
361
361
|
display: -webkit-box;
|
|
362
|
-
${({ truncateText: e }) => e &&
|
|
362
|
+
${({ truncateText: e }) => e && H`
|
|
363
363
|
-webkit-line-clamp: 2;
|
|
364
364
|
-webkit-box-orient: vertical;
|
|
365
365
|
overflow: hidden;
|
|
@@ -367,7 +367,7 @@ const ko = ({
|
|
|
367
367
|
text-overflow: ellipsis;
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
-
${({ hasDescription: e }) => e &&
|
|
370
|
+
${({ hasDescription: e }) => e && H`
|
|
371
371
|
line-height: ${o.fonts.lineHeight.lineHeightMd(
|
|
372
372
|
o.fonts.fontSize.fontSizeBodyMd
|
|
373
373
|
)};
|
|
@@ -402,7 +402,7 @@ const ko = ({
|
|
|
402
402
|
|
|
403
403
|
& > p {
|
|
404
404
|
width: 100%;
|
|
405
|
-
${({ truncateText: e }) => e &&
|
|
405
|
+
${({ truncateText: e }) => e && H`
|
|
406
406
|
display: -webkit-box;
|
|
407
407
|
-webkit-line-clamp: 2;
|
|
408
408
|
-webkit-box-orient: vertical;
|
|
@@ -429,34 +429,34 @@ const ko = ({
|
|
|
429
429
|
display: flex;
|
|
430
430
|
align-self: center;
|
|
431
431
|
`, Oe = (e, t, i = 0, l = 0, s = "left") => {
|
|
432
|
-
const [d, a] = P(0), [m, g] = P(), S = U(null), f =
|
|
432
|
+
const [d, a] = P(0), [m, g] = P(), S = U(null), f = he(() => {
|
|
433
433
|
if (!e.current || !S.current) return;
|
|
434
|
-
const
|
|
434
|
+
const u = e.current.getBoundingClientRect(), b = S.current.getBoundingClientRect(), B = window.innerHeight, j = window.innerWidth, h = u.top, p = B - u.bottom, R = p < b.height + l && h > p;
|
|
435
435
|
let k;
|
|
436
|
-
R ? (k =
|
|
437
|
-
let M =
|
|
438
|
-
const
|
|
439
|
-
|
|
440
|
-
const z = j -
|
|
436
|
+
R ? (k = u.top - b.height - i, S.current.style.maxHeight = `${h - i}px`) : (k = u.bottom + l, S.current.style.maxHeight = `${p - l}px`);
|
|
437
|
+
let M = u.left;
|
|
438
|
+
const F = M + b.width - j;
|
|
439
|
+
F > 0 && (M -= F), M < 0 && (M = 0);
|
|
440
|
+
const z = j - u.right;
|
|
441
441
|
Object.assign(S.current.style, {
|
|
442
442
|
position: "fixed",
|
|
443
443
|
top: `${k}px`,
|
|
444
444
|
...s === "left" ? { left: `${M}px` } : { right: `${z}px` },
|
|
445
|
-
width: `${Math.max(
|
|
445
|
+
width: `${Math.max(u.width, b.width)}px`,
|
|
446
446
|
overflowY: "auto"
|
|
447
447
|
});
|
|
448
448
|
}, [i, l, s]);
|
|
449
449
|
return Z(() => {
|
|
450
450
|
var b;
|
|
451
451
|
a(0), g((b = e.current) == null ? void 0 : b.clientWidth), f();
|
|
452
|
-
const
|
|
453
|
-
return window.addEventListener("scroll",
|
|
454
|
-
window.removeEventListener("scroll",
|
|
452
|
+
const u = () => f();
|
|
453
|
+
return window.addEventListener("scroll", u, !0), window.addEventListener("resize", u), () => {
|
|
454
|
+
window.removeEventListener("scroll", u, !0), window.removeEventListener("resize", u);
|
|
455
455
|
};
|
|
456
456
|
}, [e, f]), {
|
|
457
457
|
highlightedIndex: d,
|
|
458
458
|
setHighlightedIndex: a,
|
|
459
|
-
isOptionSelected: (
|
|
459
|
+
isOptionSelected: (u) => u.label === (t == null ? void 0 : t.label),
|
|
460
460
|
optionsRef: S,
|
|
461
461
|
parentWidth: m
|
|
462
462
|
};
|
|
@@ -473,20 +473,20 @@ const ko = ({
|
|
|
473
473
|
menuIsOpen: g,
|
|
474
474
|
onEnter: S,
|
|
475
475
|
marginTop: f = "4px",
|
|
476
|
-
iconName:
|
|
476
|
+
iconName: u,
|
|
477
477
|
iconColor: b,
|
|
478
478
|
iconPosition: B,
|
|
479
479
|
topOffset: j = 0,
|
|
480
|
-
bottomOffset:
|
|
480
|
+
bottomOffset: h = 0,
|
|
481
481
|
truncateText: p = !0,
|
|
482
482
|
menuJustifyContent: R = "flex-start",
|
|
483
483
|
tableActionButton: k,
|
|
484
484
|
menuLateralPadding: M = "8px",
|
|
485
|
-
menuOptionFlexDirection:
|
|
485
|
+
menuOptionFlexDirection: F = "column",
|
|
486
486
|
confirmSelection: z,
|
|
487
487
|
menuAlign: J = "left"
|
|
488
488
|
}, A) => {
|
|
489
|
-
G(
|
|
489
|
+
G(u) && (u += "Ant");
|
|
490
490
|
const {
|
|
491
491
|
highlightedIndex: T,
|
|
492
492
|
setHighlightedIndex: x,
|
|
@@ -497,7 +497,7 @@ const ko = ({
|
|
|
497
497
|
e,
|
|
498
498
|
s,
|
|
499
499
|
j,
|
|
500
|
-
|
|
500
|
+
h,
|
|
501
501
|
J
|
|
502
502
|
);
|
|
503
503
|
Z(() => {
|
|
@@ -530,7 +530,7 @@ const ko = ({
|
|
|
530
530
|
const y = (r) => typeof r == "string" ? r : je.isValidElement(r) && typeof r.props.children == "string" ? r.props.children : String(r), c = (r, $) => {
|
|
531
531
|
var L, I;
|
|
532
532
|
if (B !== $) return null;
|
|
533
|
-
const N = G((L = r.tooltipProps) == null ? void 0 : L.label), W = r.iconName ||
|
|
533
|
+
const N = G((L = r.tooltipProps) == null ? void 0 : L.label), W = r.iconName || u || "InfoFill0Sm", D = /* @__PURE__ */ n.jsx(
|
|
534
534
|
Pe,
|
|
535
535
|
{
|
|
536
536
|
iconPosition: (I = r.tooltipProps) == null ? void 0 : I.position,
|
|
@@ -558,7 +558,7 @@ const ko = ({
|
|
|
558
558
|
},
|
|
559
559
|
"data-testid": "MenuSelect",
|
|
560
560
|
id: "MenuSelect",
|
|
561
|
-
children: t.length === 0 ? /* @__PURE__ */ n.jsx(
|
|
561
|
+
children: t.length === 0 ? /* @__PURE__ */ n.jsx(He, { size: i, children: "Sem opções" }) : t.map((r, $) => {
|
|
562
562
|
var D, L;
|
|
563
563
|
const N = typeof r.render == "function" ? r.render() : null, W = y(r.label);
|
|
564
564
|
if (r.isSection)
|
|
@@ -597,11 +597,11 @@ const ko = ({
|
|
|
597
597
|
children: [
|
|
598
598
|
c(r, "left"),
|
|
599
599
|
/* @__PURE__ */ n.jsxs(
|
|
600
|
-
|
|
600
|
+
Fe,
|
|
601
601
|
{
|
|
602
|
-
menuOptionFlexDirection:
|
|
602
|
+
menuOptionFlexDirection: F,
|
|
603
603
|
menuJustifyContent: R,
|
|
604
|
-
iconName:
|
|
604
|
+
iconName: u,
|
|
605
605
|
isOptionSelected: w(r),
|
|
606
606
|
highlightedIndex: $ === T,
|
|
607
607
|
"data-testid": r.value,
|
|
@@ -724,17 +724,17 @@ const Xe = C.div`
|
|
|
724
724
|
}
|
|
725
725
|
`, _e = C.div`
|
|
726
726
|
width: 100%;
|
|
727
|
-
${({ variant: e }) => e === "default" ?
|
|
727
|
+
${({ variant: e }) => e === "default" ? H`
|
|
728
728
|
min-height: ${({ size: t }) => t === "Small" ? "3.2rem" : "4rem"};
|
|
729
729
|
max-height: ${({ size: t }) => t === "Small" ? "3.2rem" : "4rem"};
|
|
730
|
-
` :
|
|
730
|
+
` : H`
|
|
731
731
|
min-height: ${({ size: t }) => t === "Small" ? "1rem" : "3.2rem"};
|
|
732
732
|
max-height: ${({ size: t }) => t === "Small" ? "1rem" : "3.2rem"};
|
|
733
733
|
`}
|
|
734
734
|
|
|
735
735
|
display: flex;
|
|
736
736
|
align-items: center;
|
|
737
|
-
${({ variant: e }) => e === "default" &&
|
|
737
|
+
${({ variant: e }) => e === "default" && H`
|
|
738
738
|
border: ${o.borders.borderWidth.borderWidthThinner} solid;
|
|
739
739
|
border-radius: ${o.borders.borderRadius.borderRadiusSm};
|
|
740
740
|
border-color: ${({ isOpen: t, hasError: i, readonly: l, disabled: s }) => i ? o.colors.feedbackColors.colorFeedbackError : l || s ? o.colors.neutralColors.colorNeutralClean : t ? o.colors.neutralColors.colorNeutralCloudy : o.colors.neutralColors.colorNeutralClean};
|
|
@@ -747,28 +747,28 @@ const Xe = C.div`
|
|
|
747
747
|
if (t === "default")
|
|
748
748
|
return e !== "Small" ? `0 ${o.spacings.spacingInline.spacingInlineSm}` : `0 ${o.spacings.spacingInline.spacingInlineAnt}`;
|
|
749
749
|
}};
|
|
750
|
-
${({ size: e, variant: t }) => e === "Small" ? t === "default" ?
|
|
750
|
+
${({ size: e, variant: t }) => e === "Small" ? t === "default" ? H`
|
|
751
751
|
font-size: ${o.fonts.fontSize.fontSizeBodyMd};
|
|
752
752
|
line-height: ${o.fonts.lineHeight.lineHeightSm(
|
|
753
753
|
o.fonts.fontSize.fontSizeBodyMd
|
|
754
754
|
)};
|
|
755
|
-
` :
|
|
755
|
+
` : H`
|
|
756
756
|
font-size: ${o.fonts.fontSize.fontSizeBodySm};
|
|
757
757
|
line-height: ${o.fonts.lineHeight.lineHeightSm(
|
|
758
758
|
o.fonts.fontSize.fontSizeBodySm
|
|
759
759
|
)};
|
|
760
|
-
` : t === "default" ?
|
|
760
|
+
` : t === "default" ? H`
|
|
761
761
|
font-size: ${o.fonts.fontSize.fontSizeBodyLg};
|
|
762
762
|
line-height: ${o.fonts.lineHeight.lineHeightMd(
|
|
763
763
|
o.fonts.fontSize.fontSizeBodyLg
|
|
764
764
|
)};
|
|
765
|
-
` :
|
|
765
|
+
` : H`
|
|
766
766
|
font-size: ${o.fonts.fontSize.fontSizeBodyMd};
|
|
767
767
|
line-height: ${o.fonts.lineHeight.lineHeightSm(
|
|
768
768
|
o.fonts.fontSize.fontSizeBodyMd
|
|
769
769
|
)};
|
|
770
770
|
`};
|
|
771
|
-
${({ disabled: e, readonly: t }) => (e || t) &&
|
|
771
|
+
${({ disabled: e, readonly: t }) => (e || t) && H`
|
|
772
772
|
background-color: ${o.colors.brandColors.colorBrandSeSoft};
|
|
773
773
|
border-style: solid;
|
|
774
774
|
`};
|
|
@@ -873,7 +873,7 @@ const Ve = C.p`
|
|
|
873
873
|
margin-top: ${o.spacings.spacingInline.spacingInlineNano};
|
|
874
874
|
width: 100%;
|
|
875
875
|
`, Ze = (e, { value: t, options: i }) => {
|
|
876
|
-
const [l, s] = P(!1), [d, a] = P(!1), [m, g] = P(""), [S, f] = P(i),
|
|
876
|
+
const [l, s] = P(!1), [d, a] = P(!1), [m, g] = P(""), [S, f] = P(i), u = U(null), b = U(null), B = U(null), j = U(null);
|
|
877
877
|
Z(() => {
|
|
878
878
|
const k = () => {
|
|
879
879
|
a(!1);
|
|
@@ -882,15 +882,15 @@ const Ve = C.p`
|
|
|
882
882
|
window.removeEventListener("scroll", k), window.removeEventListener("resize", k);
|
|
883
883
|
};
|
|
884
884
|
}, []);
|
|
885
|
-
function
|
|
885
|
+
function h(k) {
|
|
886
886
|
g(""), a(!1), s(!0), B != null && B.current && B.current.focus(), k !== t && e(k);
|
|
887
887
|
}
|
|
888
888
|
const p = (k) => {
|
|
889
889
|
if (k) {
|
|
890
|
-
const M = new RegExp(k, "i"),
|
|
890
|
+
const M = new RegExp(k, "i"), F = i.filter(
|
|
891
891
|
(z) => M.exec(z.label)
|
|
892
892
|
);
|
|
893
|
-
f(
|
|
893
|
+
f(F);
|
|
894
894
|
} else
|
|
895
895
|
f(i);
|
|
896
896
|
};
|
|
@@ -906,11 +906,11 @@ const Ve = C.p`
|
|
|
906
906
|
setInputValue: g,
|
|
907
907
|
optionsSelect: S,
|
|
908
908
|
setOptionSelect: f,
|
|
909
|
-
selectContainerRef:
|
|
909
|
+
selectContainerRef: u,
|
|
910
910
|
containerRef: b,
|
|
911
911
|
inputContainerRef: B,
|
|
912
912
|
optionsRef: j,
|
|
913
|
-
selectOption:
|
|
913
|
+
selectOption: h,
|
|
914
914
|
handlerFilterOptions: p,
|
|
915
915
|
isValue: R
|
|
916
916
|
};
|
|
@@ -927,16 +927,16 @@ const Ve = C.p`
|
|
|
927
927
|
disabled: g,
|
|
928
928
|
helpText: S,
|
|
929
929
|
readonly: f,
|
|
930
|
-
errorMessage:
|
|
930
|
+
errorMessage: u,
|
|
931
931
|
tooltipProps: b = {},
|
|
932
932
|
onBlur: B,
|
|
933
933
|
onEnter: j,
|
|
934
|
-
variant:
|
|
934
|
+
variant: h = "default",
|
|
935
935
|
infoProps: p = {},
|
|
936
936
|
maxHeightMenu: R,
|
|
937
937
|
isRequired: k = !1,
|
|
938
938
|
onRemoveSelected: M,
|
|
939
|
-
displayText:
|
|
939
|
+
displayText: F,
|
|
940
940
|
displayTextProps: z = {}
|
|
941
941
|
}, J) => {
|
|
942
942
|
const {
|
|
@@ -954,8 +954,8 @@ const Ve = C.p`
|
|
|
954
954
|
setOptionSelect: W,
|
|
955
955
|
handlerFilterOptions: D,
|
|
956
956
|
isValue: L
|
|
957
|
-
} = Ze(t, { value: e, options: i }), I = !!
|
|
958
|
-
label:
|
|
957
|
+
} = Ze(t, { value: e, options: i }), I = !!u, X = {
|
|
958
|
+
label: u,
|
|
959
959
|
...b,
|
|
960
960
|
wrapperWidth: "auto",
|
|
961
961
|
isActive: I,
|
|
@@ -1009,14 +1009,14 @@ const Ve = C.p`
|
|
|
1009
1009
|
"data-testid": "select",
|
|
1010
1010
|
disabled: g,
|
|
1011
1011
|
helpText: S,
|
|
1012
|
-
variant:
|
|
1012
|
+
variant: h,
|
|
1013
1013
|
children: [
|
|
1014
1014
|
/* @__PURE__ */ n.jsxs(Ue, { children: [
|
|
1015
|
-
G(
|
|
1016
|
-
s && L(e) && !v && !A ? /* @__PURE__ */ n.jsx(Ge, { size: a, variant:
|
|
1015
|
+
G(F) ? /* @__PURE__ */ n.jsx(de, { size: a, variant: h, isDisplayText: !0, children: /* @__PURE__ */ n.jsx("p", { title: e == null ? void 0 : e.label, ...z, children: F }) }) : /* @__PURE__ */ n.jsxs(de, { size: a, variant: h, children: [
|
|
1016
|
+
s && L(e) && !v && !A ? /* @__PURE__ */ n.jsx(Ge, { size: a, variant: h, children: s }) : null,
|
|
1017
1017
|
(e == null ? void 0 : e.label) && /* @__PURE__ */ n.jsx("p", { title: (e == null ? void 0 : e.hint) ?? (e == null ? void 0 : e.label), children: e == null ? void 0 : e.label })
|
|
1018
1018
|
] }),
|
|
1019
|
-
l && !G(
|
|
1019
|
+
l && !G(F) && /* @__PURE__ */ n.jsx(
|
|
1020
1020
|
qe,
|
|
1021
1021
|
{
|
|
1022
1022
|
ref: $,
|
|
@@ -1028,7 +1028,7 @@ const Ve = C.p`
|
|
|
1028
1028
|
width: v.length,
|
|
1029
1029
|
size: a,
|
|
1030
1030
|
disabled: g,
|
|
1031
|
-
variant:
|
|
1031
|
+
variant: h
|
|
1032
1032
|
}
|
|
1033
1033
|
)
|
|
1034
1034
|
] }),
|
|
@@ -1075,7 +1075,7 @@ const Se = Be`
|
|
|
1075
1075
|
padding: ${({ size: e }) => e === "Small" ? `0 ${o.spacings.spacingInline.spacingInlineAnt}` : `0 ${o.spacings.spacingInline.spacingInlineSm}`};
|
|
1076
1076
|
${({ variant: e }) => {
|
|
1077
1077
|
if (e === "primary")
|
|
1078
|
-
return
|
|
1078
|
+
return H`
|
|
1079
1079
|
background-color: ${o.colors.brandColors.colorBrandPrimary};
|
|
1080
1080
|
color: ${o.colors.backgroundColors.colorBackgroundSnow};
|
|
1081
1081
|
transition: filter 0.2s;
|
|
@@ -1086,7 +1086,7 @@ const Se = Be`
|
|
|
1086
1086
|
}
|
|
1087
1087
|
`;
|
|
1088
1088
|
if (e === "secondary")
|
|
1089
|
-
return
|
|
1089
|
+
return H`
|
|
1090
1090
|
background-color: rgba(
|
|
1091
1091
|
${We(o.colors.neutralColors.colorNeutralSoft)},
|
|
1092
1092
|
${o.opacityLevels.light}
|
|
@@ -1101,7 +1101,7 @@ const Se = Be`
|
|
|
1101
1101
|
}
|
|
1102
1102
|
`;
|
|
1103
1103
|
if (e === "tertiary")
|
|
1104
|
-
return
|
|
1104
|
+
return H`
|
|
1105
1105
|
background-color: transparent;
|
|
1106
1106
|
color: ${o.colors.neutralColors.colorNeutralDark};
|
|
1107
1107
|
border: ${o.borders.borderWidth.borderWidthNone};
|
|
@@ -1113,7 +1113,7 @@ const Se = Be`
|
|
|
1113
1113
|
}
|
|
1114
1114
|
`;
|
|
1115
1115
|
}};
|
|
1116
|
-
${({ disabled: e }) => e &&
|
|
1116
|
+
${({ disabled: e }) => e && H`
|
|
1117
1117
|
background-color: ${o.colors.backgroundColors.colorBackgroundGrass};
|
|
1118
1118
|
color: ${o.colors.neutralColors.colorNeutralCloudy};
|
|
1119
1119
|
transition: filter 0.2s;
|
|
@@ -1142,7 +1142,7 @@ const Se = Be`
|
|
|
1142
1142
|
min-width: ${({ size: e }) => e === "Small" ? o.icons.iconSizeSm : o.icons.iconSizeAnt};
|
|
1143
1143
|
height: ${({ size: e }) => e === "Small" ? o.icons.iconSizeSm : o.icons.iconSizeAnt};
|
|
1144
1144
|
|
|
1145
|
-
${({ isLoading: e }) => e &&
|
|
1145
|
+
${({ isLoading: e }) => e && H`
|
|
1146
1146
|
animation: ${Se} 2s linear infinite;
|
|
1147
1147
|
`}
|
|
1148
1148
|
|
|
@@ -1216,9 +1216,9 @@ const to = C.div`
|
|
|
1216
1216
|
label: g,
|
|
1217
1217
|
menuSelectProps: S = {},
|
|
1218
1218
|
iconName: f,
|
|
1219
|
-
optionsIconPosition:
|
|
1219
|
+
optionsIconPosition: u
|
|
1220
1220
|
}) => {
|
|
1221
|
-
const { isOpen: b, setIsOpen: B, selectContainerRef: j, optionsSelect:
|
|
1221
|
+
const { isOpen: b, setIsOpen: B, selectContainerRef: j, optionsSelect: h } = no(m);
|
|
1222
1222
|
let p = o.colors.backgroundColors.colorBackgroundSnow;
|
|
1223
1223
|
s ? p = o.colors.neutralColors.colorNeutralCloudy : t !== "primary" && (p = o.colors.neutralColors.colorNeutralDark);
|
|
1224
1224
|
const R = {
|
|
@@ -1277,11 +1277,11 @@ const to = C.div`
|
|
|
1277
1277
|
{
|
|
1278
1278
|
selectContainerRef: j,
|
|
1279
1279
|
value: null,
|
|
1280
|
-
optionsSelect:
|
|
1280
|
+
optionsSelect: h,
|
|
1281
1281
|
selectOption: a,
|
|
1282
1282
|
size: l,
|
|
1283
1283
|
inputValue: null,
|
|
1284
|
-
iconPosition:
|
|
1284
|
+
iconPosition: u,
|
|
1285
1285
|
iconName: f,
|
|
1286
1286
|
...R
|
|
1287
1287
|
}
|
|
@@ -1303,23 +1303,23 @@ const to = C.div`
|
|
|
1303
1303
|
width: 100%;
|
|
1304
1304
|
min-height: ${({ heightItems: e }) => e};
|
|
1305
1305
|
max-height: ${({ heightItems: e }) => e};
|
|
1306
|
-
background-color: ${({ selected: e }) => e ?
|
|
1306
|
+
background-color: ${({ selected: e }) => e ? o.colors.backgroundColors.colorBackgroundSnow : "transparent"};
|
|
1307
1307
|
border-bottom: ${`1px solid ${o.colors.neutralColors.colorNeutralSoft}`};
|
|
1308
1308
|
padding: 8px;
|
|
1309
|
-
${({ withBorderRight: e }) => e &&
|
|
1309
|
+
${({ withBorderRight: e }) => e && H`
|
|
1310
1310
|
border-right: ${({ selected: t }) => t ? "none" : `1px solid ${o.colors.neutralColors.colorNeutralSoft}`};
|
|
1311
1311
|
`}
|
|
1312
1312
|
cursor: pointer;
|
|
1313
|
-
${({ customStyles: e }) => e &&
|
|
1313
|
+
${({ customStyles: e }) => e && H(e)}
|
|
1314
1314
|
`, so = C.div`
|
|
1315
1315
|
max-width: 4px;
|
|
1316
1316
|
min-width: 4px;
|
|
1317
1317
|
min-height: ${({ heightItems: e }) => e};
|
|
1318
1318
|
max-height: ${({ heightItems: e }) => e};
|
|
1319
|
-
background-color: ${({ selected: e }) => e ?
|
|
1319
|
+
background-color: ${({ selected: e }) => e ? o.colors.backgroundColors.colorBackgroundSnow : "transparent"};
|
|
1320
1320
|
border-bottom: ${`1px solid ${o.colors.neutralColors.colorNeutralSoft}`};
|
|
1321
1321
|
padding: 8px;
|
|
1322
|
-
${({ withBorderRight: e }) => e &&
|
|
1322
|
+
${({ withBorderRight: e }) => e && H`
|
|
1323
1323
|
border-right: ${({ selected: t }) => t ? "none" : `1px solid ${o.colors.neutralColors.colorNeutralSoft}`};
|
|
1324
1324
|
`}
|
|
1325
1325
|
cursor: pointer;
|
|
@@ -1328,7 +1328,7 @@ const to = C.div`
|
|
|
1328
1328
|
min-width: 0;
|
|
1329
1329
|
height: 100%;
|
|
1330
1330
|
flex: 1;
|
|
1331
|
-
background-color:
|
|
1331
|
+
background-color: ${o.colors.backgroundColors.colorBackgroundSnow};
|
|
1332
1332
|
`, co = C.div`
|
|
1333
1333
|
max-width: 4px;
|
|
1334
1334
|
min-width: 4px;
|
|
@@ -1351,18 +1351,18 @@ const to = C.div`
|
|
|
1351
1351
|
customItemStyles: S = {}
|
|
1352
1352
|
}) => {
|
|
1353
1353
|
var j;
|
|
1354
|
-
const [f,
|
|
1354
|
+
const [f, u] = P(s[0] || null), b = U(null), B = U(null);
|
|
1355
1355
|
return Z(() => {
|
|
1356
|
-
const
|
|
1357
|
-
|
|
1356
|
+
const h = b.current, p = B.current, R = () => {
|
|
1357
|
+
h && p && (p.scrollTop = h.scrollTop);
|
|
1358
1358
|
};
|
|
1359
|
-
return
|
|
1360
|
-
|
|
1359
|
+
return h == null || h.addEventListener("scroll", R), () => {
|
|
1360
|
+
h == null || h.removeEventListener("scroll", R);
|
|
1361
1361
|
};
|
|
1362
1362
|
}, []), Z(() => {
|
|
1363
|
-
|
|
1363
|
+
u(s[(s == null ? void 0 : s.length) - 1] || null);
|
|
1364
1364
|
}, [s == null ? void 0 : s.length]), (s == null ? void 0 : s.length) === 0 ? /* @__PURE__ */ n.jsx(
|
|
1365
|
-
|
|
1365
|
+
ue,
|
|
1366
1366
|
{
|
|
1367
1367
|
title: m.title,
|
|
1368
1368
|
body: m.body,
|
|
@@ -1383,23 +1383,23 @@ const to = C.div`
|
|
|
1383
1383
|
...g
|
|
1384
1384
|
},
|
|
1385
1385
|
children: [
|
|
1386
|
-
/* @__PURE__ */ n.jsx(lo, { ref: b, widthItems: a, children: s == null ? void 0 : s.map((
|
|
1386
|
+
/* @__PURE__ */ n.jsx(lo, { ref: b, widthItems: a, children: s == null ? void 0 : s.map((h, p) => /* @__PURE__ */ n.jsx(
|
|
1387
1387
|
io,
|
|
1388
1388
|
{
|
|
1389
|
-
selected: (f == null ? void 0 : f.key) ===
|
|
1390
|
-
onClick: () => h
|
|
1391
|
-
withBorderRight: !
|
|
1389
|
+
selected: (f == null ? void 0 : f.key) === h.key,
|
|
1390
|
+
onClick: () => u(h),
|
|
1391
|
+
withBorderRight: !0,
|
|
1392
1392
|
heightItems: d,
|
|
1393
1393
|
customStyles: S,
|
|
1394
|
-
children:
|
|
1394
|
+
children: h.item
|
|
1395
1395
|
},
|
|
1396
1396
|
p
|
|
1397
1397
|
)) }),
|
|
1398
|
-
/* @__PURE__ */ n.jsx(co, { ref: B, children: (j = s == null ? void 0 : s.concat({ key: "last", item: /* @__PURE__ */ n.jsx(n.Fragment, {}), contentItem: /* @__PURE__ */ n.jsx(n.Fragment, {}) })) == null ? void 0 : j.map((
|
|
1398
|
+
/* @__PURE__ */ n.jsx(co, { ref: B, children: (j = s == null ? void 0 : s.concat({ key: "last", item: /* @__PURE__ */ n.jsx(n.Fragment, {}), contentItem: /* @__PURE__ */ n.jsx(n.Fragment, {}) })) == null ? void 0 : j.map((h, p) => /* @__PURE__ */ n.jsx(
|
|
1399
1399
|
so,
|
|
1400
1400
|
{
|
|
1401
|
-
selected: (f == null ? void 0 : f.key) ===
|
|
1402
|
-
onClick: () => h
|
|
1401
|
+
selected: (f == null ? void 0 : f.key) === h.key,
|
|
1402
|
+
onClick: () => u(h),
|
|
1403
1403
|
withBorderRight: !0,
|
|
1404
1404
|
heightItems: d
|
|
1405
1405
|
},
|
|
@@ -1409,7 +1409,7 @@ const to = C.div`
|
|
|
1409
1409
|
]
|
|
1410
1410
|
}
|
|
1411
1411
|
);
|
|
1412
|
-
}, pe =
|
|
1412
|
+
}, pe = H`
|
|
1413
1413
|
svg:not([color]):not([data-testid='icon']) {
|
|
1414
1414
|
path {
|
|
1415
1415
|
fill: ${o.colors.neutralColors.colorNeutralDarkest};
|
|
@@ -1443,12 +1443,12 @@ const to = C.div`
|
|
|
1443
1443
|
background: ${o.colors.neutralColors.colorNeutralClean};
|
|
1444
1444
|
border-radius: ${o.borders.borderRadius.borderRadiusPill};
|
|
1445
1445
|
}
|
|
1446
|
-
`,
|
|
1446
|
+
`, uo = C.table`
|
|
1447
1447
|
border-collapse: separate;
|
|
1448
1448
|
border-spacing: 0;
|
|
1449
1449
|
width: 100%;
|
|
1450
|
-
`,
|
|
1451
|
-
${({ isHeader: e, size: t }) => e &&
|
|
1450
|
+
`, ho = `${o.borders.borderRadius.borderExtraSmall} ${o.borders.borderRadius.borderExtraSmall} 0 0`, go = `0 0 ${o.borders.borderRadius.borderExtraSmall} ${o.borders.borderRadius.borderExtraSmall}`, ee = C.tr`
|
|
1451
|
+
${({ isHeader: e, size: t }) => e && H`
|
|
1452
1452
|
position: sticky;
|
|
1453
1453
|
background-color: ${o.colors.backgroundColors.colorBackgroundSnow};
|
|
1454
1454
|
|
|
@@ -1466,13 +1466,13 @@ const to = C.div`
|
|
|
1466
1466
|
height: ${({ fit: e, size: t }) => e ? "fit-content" : t === "Large" ? "4rem" : "3.2rem"};
|
|
1467
1467
|
min-height: ${({ size: e }) => e === "Large" ? "4rem" : "3.2rem"};
|
|
1468
1468
|
|
|
1469
|
-
${({ isHeader: e, isSelected: t, striped: i }) => !e &&
|
|
1469
|
+
${({ isHeader: e, isSelected: t, striped: i }) => !e && H`
|
|
1470
1470
|
background-color: ${t ? o.colors.neutralColors.colorNeutralClean : i ? "#F5F9FE" : o.colors.backgroundColors.colorBackgroundSnow};
|
|
1471
1471
|
`}
|
|
1472
1472
|
|
|
1473
1473
|
border-radius: ${({ isFirst: e, isLast: t, isHeader: i, borderRadius: l }) => {
|
|
1474
1474
|
if (e && !i)
|
|
1475
|
-
return l ? `${l} ${l} 0 0` :
|
|
1475
|
+
return l ? `${l} ${l} 0 0` : ho;
|
|
1476
1476
|
if (t)
|
|
1477
1477
|
return l ? `0 0 ${l} ${l}` : go;
|
|
1478
1478
|
}};
|
|
@@ -1486,7 +1486,7 @@ const to = C.div`
|
|
|
1486
1486
|
border-bottom: none !important;
|
|
1487
1487
|
}
|
|
1488
1488
|
|
|
1489
|
-
${({ isHeader: e }) => !e &&
|
|
1489
|
+
${({ isHeader: e }) => !e && H`
|
|
1490
1490
|
&:hover {
|
|
1491
1491
|
background-color: ${o.colors.backgroundColors.colorBackgroundCarpet};
|
|
1492
1492
|
|
|
@@ -1498,7 +1498,7 @@ const to = C.div`
|
|
|
1498
1498
|
`}
|
|
1499
1499
|
`, $e = ({ width: e }) => {
|
|
1500
1500
|
if (G(e))
|
|
1501
|
-
return
|
|
1501
|
+
return H`
|
|
1502
1502
|
width: ${e};
|
|
1503
1503
|
`;
|
|
1504
1504
|
}, oe = C.th`
|
|
@@ -1525,7 +1525,7 @@ const to = C.div`
|
|
|
1525
1525
|
word-break: normal;
|
|
1526
1526
|
|
|
1527
1527
|
&:last-child {
|
|
1528
|
-
${({ isTopRow: e }) => e &&
|
|
1528
|
+
${({ isTopRow: e }) => e && H`
|
|
1529
1529
|
border-right: none;
|
|
1530
1530
|
`}
|
|
1531
1531
|
}
|
|
@@ -1600,21 +1600,21 @@ function jo({
|
|
|
1600
1600
|
backgroundColor: o.colors.backgroundColors.colorBackgroundSnow
|
|
1601
1601
|
},
|
|
1602
1602
|
selectedRow: f = !1,
|
|
1603
|
-
hideHeader:
|
|
1603
|
+
hideHeader: u = !1,
|
|
1604
1604
|
withBorder: b = !0,
|
|
1605
1605
|
withBorderRadius: B = !0,
|
|
1606
1606
|
striped: j = !1,
|
|
1607
|
-
borderRadius:
|
|
1607
|
+
borderRadius: h = o.borders.borderRadius.borderRadiusSm
|
|
1608
1608
|
}) {
|
|
1609
|
-
const p = Q(() => So(t), [t]), [R, k] = P(null), M = U(null),
|
|
1609
|
+
const p = Q(() => So(t), [t]), [R, k] = P(null), M = U(null), F = U(null), [z, J] = P(a);
|
|
1610
1610
|
Ne(() => {
|
|
1611
|
-
if (!
|
|
1611
|
+
if (!F.current || a.length === 0) {
|
|
1612
1612
|
J(a);
|
|
1613
1613
|
return;
|
|
1614
1614
|
}
|
|
1615
1615
|
const x = () => {
|
|
1616
1616
|
var D;
|
|
1617
|
-
const v = ((D =
|
|
1617
|
+
const v = ((D = F.current) == null ? void 0 : D.clientWidth) || 0;
|
|
1618
1618
|
if (v === 0) return;
|
|
1619
1619
|
let E = 0, y = 0;
|
|
1620
1620
|
const c = [], r = [];
|
|
@@ -1655,7 +1655,7 @@ function jo({
|
|
|
1655
1655
|
};
|
|
1656
1656
|
x();
|
|
1657
1657
|
const w = new ResizeObserver(x);
|
|
1658
|
-
return w.observe(
|
|
1658
|
+
return w.observe(F.current), () => w.disconnect();
|
|
1659
1659
|
}, [a]), Z(() => {
|
|
1660
1660
|
const x = (w) => {
|
|
1661
1661
|
M.current && !M.current.contains(w.target) && k(null);
|
|
@@ -1668,7 +1668,7 @@ function jo({
|
|
|
1668
1668
|
(x) => x.mergeHeaderId && x.mergeHeaderLabel
|
|
1669
1669
|
) : !1, [z]), T = Q(() => {
|
|
1670
1670
|
var E, y;
|
|
1671
|
-
if (
|
|
1671
|
+
if (u || !z || z.length === 0)
|
|
1672
1672
|
return null;
|
|
1673
1673
|
if (!A)
|
|
1674
1674
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -1677,7 +1677,7 @@ function jo({
|
|
|
1677
1677
|
isHeader: !0,
|
|
1678
1678
|
size: i,
|
|
1679
1679
|
numRows: 1,
|
|
1680
|
-
borderRadius:
|
|
1680
|
+
borderRadius: h,
|
|
1681
1681
|
children: z.map((c) => {
|
|
1682
1682
|
var r;
|
|
1683
1683
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -1775,7 +1775,7 @@ function jo({
|
|
|
1775
1775
|
isHeader: !0,
|
|
1776
1776
|
size: i,
|
|
1777
1777
|
numRows: 2,
|
|
1778
|
-
borderRadius:
|
|
1778
|
+
borderRadius: h,
|
|
1779
1779
|
children: x
|
|
1780
1780
|
}
|
|
1781
1781
|
),
|
|
@@ -1785,14 +1785,14 @@ function jo({
|
|
|
1785
1785
|
isHeader: !0,
|
|
1786
1786
|
size: i,
|
|
1787
1787
|
numRows: 2,
|
|
1788
|
-
borderRadius:
|
|
1788
|
+
borderRadius: h,
|
|
1789
1789
|
children: w
|
|
1790
1790
|
}
|
|
1791
1791
|
)
|
|
1792
1792
|
] });
|
|
1793
|
-
}, [z,
|
|
1793
|
+
}, [z, u, i, g, A]);
|
|
1794
1794
|
return !m || m.length === 0 ? /* @__PURE__ */ n.jsx(
|
|
1795
|
-
|
|
1795
|
+
ue,
|
|
1796
1796
|
{
|
|
1797
1797
|
backgroundColor: o.colors.backgroundColors.colorBackgroundSnow,
|
|
1798
1798
|
borders: !0,
|
|
@@ -1804,9 +1804,9 @@ function jo({
|
|
|
1804
1804
|
{
|
|
1805
1805
|
maxHeight: d,
|
|
1806
1806
|
withBorderRadius: B,
|
|
1807
|
-
ref:
|
|
1808
|
-
borderRadius:
|
|
1809
|
-
children: /* @__PURE__ */ n.jsxs(
|
|
1807
|
+
ref: F,
|
|
1808
|
+
borderRadius: h,
|
|
1809
|
+
children: /* @__PURE__ */ n.jsxs(uo, { id: e, ref: M, children: [
|
|
1810
1810
|
/* @__PURE__ */ n.jsx("thead", { children: T }),
|
|
1811
1811
|
/* @__PURE__ */ n.jsx("tbody", { style: { width: "100%" }, children: m == null ? void 0 : m.map((x, w, v) => {
|
|
1812
1812
|
const E = p(x);
|
|
@@ -1819,7 +1819,7 @@ function jo({
|
|
|
1819
1819
|
withBorder: b,
|
|
1820
1820
|
isSelected: E === R && f,
|
|
1821
1821
|
striped: j && w % 2 !== 0,
|
|
1822
|
-
borderRadius:
|
|
1822
|
+
borderRadius: h,
|
|
1823
1823
|
children: z.map((y) => {
|
|
1824
1824
|
var c, r, $;
|
|
1825
1825
|
return /* @__PURE__ */ n.jsx(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";const o=require("./Checkbox.view-DFbiE7Mi.cjs"),g=require("react"),t=require("sbwb-ds"),
|
|
2
|
-
${
|
|
1
|
+
"use strict";const o=require("./Checkbox.view-DFbiE7Mi.cjs"),g=require("react"),t=require("sbwb-ds"),F=require("./index-BcwQwoIM.cjs"),Q=require("react-hook-form"),ee=350,ae=({title:e,children:n,endAdornment:i=null,marginBottom:s="16px",customStyles:l={},wrapperCustomStyles:c={},hideAdornmentOnCollapse:a=!1,maxHeight:m="none"})=>{const[x,p]=g.useState(!1),[u,f]=g.useState(!0);g.useEffect(()=>{if(a)if(x){const k=setTimeout(()=>f(!1),ee);return()=>clearTimeout(k)}else f(!0)},[x,a]);const $=a&&!u?null:i;return o.jsxRuntimeExports.jsxs(o.Container,{width:"100%",flex:"1",gap:"8px",customStyles:c,children:[o.jsxRuntimeExports.jsx(o.SectionTitle,{title:e,divider:!0,marginBottom:s,collapse:{collapsed:x,setCollapsed:p},endAdornment:$,customStyles:l}),o.jsxRuntimeExports.jsx(o.Container,{gap:"8px",width:"100%",customStyles:{maxHeight:x?"0":m,transition:`max-height ${ee}ms ease-in-out`},children:n})]})};function Y(e,n,i){var s,l,c,a,m;n==null&&(n=100);function x(){var u=Date.now()-a;u<n&&u>=0?s=setTimeout(x,n-u):(s=null,i||(m=e.apply(c,l),c=l=null))}var p=function(){c=this,l=arguments,a=Date.now();var u=i&&!s;return s||(s=setTimeout(x,n)),u&&(m=e.apply(c,l),c=l=null),m};return p.clear=function(){s&&(clearTimeout(s),s=null)},p.flush=function(){s&&(m=e.apply(c,l),c=l=null,clearTimeout(s),s=null)},p}Y.debounce=Y;var ce=Y;const de=o.getDefaultExportFromCjs(ce);function Z({form:e,fieldName:n,triggerType:i=null,debounceTime:s=500}){const l=g.useCallback(()=>{e.trigger(n)},[e,n]),c=g.useMemo(()=>de(()=>l(),s),[l,s]),a=g.useMemo(()=>["all","onChange"].includes(i)?c:null,[c,i]),m=g.useMemo(()=>["all","onBlur"].includes(i)?l:null,[i]);return g.useMemo(()=>({onChangeTrigger:a,onBlurTrigger:m}),[a,m])}const ge=({form:e,name:n,label:i,options:s,readonly:l=!1,disabled:c=!1,optionsMap:a,width:m="100%",flex:x,placeholder:p,onSelect:u,parser:f,filter:$,tooltipProps:k={},infoProps:E={},maxHeigthMenu:h,isRequired:S=!1,onRemoveSelected:I,triggerFormField:C=null,displayText:v,...A})=>{const{onChangeTrigger:R}=Z({form:e,fieldName:n,triggerType:C,debounceTime:0}),O={position:"top",...k},L={...E,tooltipProps:{position:"top",maxWidth:"300px",...E==null?void 0:E.tooltipProps}},T=(y,W)=>{let M=y;f&&(M=f==null?void 0:f(y)),W(M),u==null||u(M),R==null||R()},w=g.useMemo(()=>F.valuable(a)?a:Object.fromEntries(s.map(y=>[y.value,y])),[s,a]);return o.jsxRuntimeExports.jsx(o.Container,{width:m,flex:x,children:o.jsxRuntimeExports.jsx(Q.Controller,{name:n,control:e.control,render:({field:{onChange:y,value:W},fieldState:{error:M=null}})=>{let j=w[W];return o.jsxRuntimeExports.jsx(K,{label:i,width:"100%",size:"Small",disabled:c,readonly:l,filter:$,errorMessage:M==null?void 0:M.message,placeholder:p,value:j,handleOption:d=>{T(d.value,y)},tooltipProps:O,options:s,maxHeigthMenu:h,infoProps:L,maxHeightMenu:h,isRequired:S,onRemoveSelected:I,displayText:v,...A})}})})},oe=({form:e,name:n,label:i,readonly:s=!1,disabled:l=!1,width:c="100%",height:a="100%",flex:m,placeholder:x,charactersCounter:p=!0,maxlength:u=1e3,resize:f=!0,triggerFormField:$=null,minHeight:k,maxHeight:E,...h})=>{const{onChangeTrigger:S}=Z({form:e,fieldName:n,triggerType:$}),I=(C,v)=>{v(C),S==null||S()};return o.jsxRuntimeExports.jsx(o.Container,{width:c,flex:m,height:a,children:o.jsxRuntimeExports.jsx(Q.Controller,{name:n,control:e.control,render:({field:{onChange:C,value:v},fieldState:{error:A=null}})=>o.jsxRuntimeExports.jsx(o.Textarea,{label:i,value:v||"",width:"100%",disabled:l,readonly:s,height:a,minHeight:k,maxHeight:E,errorMessage:A==null?void 0:A.message,placeholder:x,onChange:R=>I(R.target.value,C),charactersCounter:p,maxlength:u,size:"Small",resize:f,...h})})})};oe.displayName="TextareaField";const ue=({form:e,name:n,id:i=n,label:s,readonly:l=!1,disabled:c=!1,afterCheck:a,width:m="100%",formatter:x,parser:p,flex:u,size:f="Medium",triggerFormField:$=null,...k})=>{const{onChangeTrigger:E}=Z({form:e,fieldName:n,triggerType:$,debounceTime:0}),h=(S,I)=>{I(S),a==null||a(S),E==null||E()};return o.jsxRuntimeExports.jsx(o.Container,{width:m,flex:u,children:o.jsxRuntimeExports.jsx(Q.Controller,{name:n,control:e.control,render:({field:{onChange:S,value:I},fieldState:{error:C=null}})=>{const v=C==null?void 0:C.message;return v&&console.log("Error on checkbox!",v),o.jsxRuntimeExports.jsx(o.Checkbox,{id:`form-checkbox-${i}`,checked:(x==null?void 0:x(I))??I,name:n,label:s,disabled:c||l,onChange:A=>{h((p==null?void 0:p(A.target.checked,I))??A.target.checked,S)},size:f,...k})}})})},fe=o.qe.ul`
|
|
2
|
+
${F.resetStyles}
|
|
3
3
|
position: fixed;
|
|
4
4
|
margin-top: ${({marginTop:e})=>e};
|
|
5
5
|
padding: ${t.sg.spacings.spacingStack.spacingStackXs} 4px
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
border-radius: ${t.sg.borders.borderRadius.borderRadiusPill};
|
|
30
30
|
}
|
|
31
31
|
`,he=o.qe.li`
|
|
32
|
-
${
|
|
32
|
+
${F.resetStyles}
|
|
33
33
|
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
34
34
|
font-size: ${({size:e})=>e==="Small"?t.sg.fonts.fontSize.fontSizeBodyMd:t.sg.fonts.fontSize.fontSizeBodyLg};
|
|
35
35
|
padding: ${t.sg.spacings.spacingInline.spacingInlineXs};
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
cursor: default;
|
|
38
38
|
color: ${t.sg.colors.neutralColors.colorNeutralDark};
|
|
39
39
|
`,xe=o.qe.li`
|
|
40
|
-
${
|
|
40
|
+
${F.resetStyles}
|
|
41
41
|
display: flex;
|
|
42
42
|
flex: 2;
|
|
43
43
|
flex-direction: ${({menuOptionFlexDirection:e})=>e};
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
}
|
|
70
70
|
`}
|
|
71
71
|
`,me=o.qe.li`
|
|
72
|
-
${
|
|
72
|
+
${F.resetStyles}
|
|
73
73
|
font-size: ${({size:e})=>e==="Small"?t.sg.fonts.fontSize.fontSizeBodySm:t.sg.fonts.fontSize.fontSizeBodyMd};
|
|
74
74
|
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
75
75
|
font-weight: ${t.sg.fonts.fontWeight.fontWeightSemiBold};
|
|
@@ -80,13 +80,13 @@
|
|
|
80
80
|
${t.sg.spacings.spacingStack.spacingStackNano}`:`${t.sg.spacings.spacingStack.spacingStackSm} ${t.sg.spacings.spacingInline.spacingInlineXs}
|
|
81
81
|
${t.sg.spacings.spacingStack.spacingStackXs}`};
|
|
82
82
|
`,pe=o.qe.span`
|
|
83
|
-
${
|
|
83
|
+
${F.resetStyles}
|
|
84
84
|
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
85
85
|
font-size: ${({size:e})=>e==="Small"?t.sg.fonts.fontSize.fontSizeBodyMd:t.sg.fonts.fontSize.fontSizeBodyLg};
|
|
86
86
|
font-weight: ${t.sg.fonts.fontWeight.fontWeightSemiBold};
|
|
87
87
|
line-height: ${({size:e})=>e==="Small"?t.sg.fonts.lineHeight.lineHeightSm(t.sg.fonts.fontSize.fontSizeBodyMd):t.sg.fonts.lineHeight.lineHeightMd(t.sg.fonts.fontSize.fontSizeBodyLg)};
|
|
88
88
|
`,Se=o.qe.div`
|
|
89
|
-
${
|
|
89
|
+
${F.resetStyles}
|
|
90
90
|
display: flex;
|
|
91
91
|
font-family: ${t.sg.fonts.fontFamily.fontFamilyPrimary};
|
|
92
92
|
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
text-align: start;
|
|
103
103
|
}
|
|
104
104
|
`,be=o.qe.div`
|
|
105
|
-
${
|
|
105
|
+
${F.resetStyles}
|
|
106
106
|
display: flex;
|
|
107
107
|
flex-direction: row;
|
|
108
108
|
align-items: center;
|
|
@@ -113,13 +113,13 @@
|
|
|
113
113
|
border-radius: ${t.sg.borders.borderRadius.borderRadiusSm};
|
|
114
114
|
min-height: ${({size:e})=>e==="Small"?"28px":"40px"};
|
|
115
115
|
`,$e=o.qe.div`
|
|
116
|
-
${
|
|
116
|
+
${F.resetStyles}
|
|
117
117
|
padding: ${({iconPosition:e})=>e==="left"?`0 ${t.sg.spacings.spacingInline.spacingInlineNano} 0 0`:`0 0 0 ${t.sg.spacings.spacingInline.spacingInlineNano}`};
|
|
118
118
|
margin: 0;
|
|
119
119
|
display: flex;
|
|
120
120
|
align-self: center;
|
|
121
|
-
`,we=(e,n,i=0,s=0,l="left")=>{const[c,a]=g.useState(0),[m,x]=g.useState(),p=g.useRef(null),u=g.useCallback(()=>{if(!e.current||!p.current)return;const f=e.current.getBoundingClientRect(),$=p.current.getBoundingClientRect(),k=window.innerHeight,E=window.innerWidth,h=f.top,S=k-f.bottom,I=S<$.height+s&&h>S;let C;I?(C=f.top-$.height-i,p.current.style.maxHeight=`${h-i}px`):(C=f.bottom+s,p.current.style.maxHeight=`${S-s}px`);let v=f.left;const A=v+$.width-E;A>0&&(v-=A),v<0&&(v=0);const R=E-f.right;Object.assign(p.current.style,{position:"fixed",top:`${C}px`,...l==="left"?{left:`${v}px`}:{right:`${R}px`},width:`${Math.max(f.width,$.width)}px`,overflowY:"auto"})},[i,s,l]);return g.useEffect(()=>{var $;a(0),x(($=e.current)==null?void 0:$.clientWidth),u();const f=()=>u();return window.addEventListener("scroll",f,!0),window.addEventListener("resize",f),()=>{window.removeEventListener("scroll",f,!0),window.removeEventListener("resize",f)}},[e,u]),{highlightedIndex:c,setHighlightedIndex:a,isOptionSelected:f=>f.label===(n==null?void 0:n.label),optionsRef:p,parentWidth:m}},J=g.forwardRef(({selectContainerRef:e,optionsSelect:n,size:i,selectOption:s,value:l,inputValue:c,widthMenu:a,maxHeightMenu:m="180px",menuIsOpen:x,onEnter:p,marginTop:u="4px",iconName:f,iconColor:$,iconPosition:k,topOffset:E=0,bottomOffset:h=0,truncateText:S=!0,menuJustifyContent:I="flex-start",tableActionButton:C,menuLateralPadding:v="8px",menuOptionFlexDirection:A="column",confirmSelection:R,menuAlign:O="left"},L)=>{
|
|
122
|
-
${
|
|
121
|
+
`,we=(e,n,i=0,s=0,l="left")=>{const[c,a]=g.useState(0),[m,x]=g.useState(),p=g.useRef(null),u=g.useCallback(()=>{if(!e.current||!p.current)return;const f=e.current.getBoundingClientRect(),$=p.current.getBoundingClientRect(),k=window.innerHeight,E=window.innerWidth,h=f.top,S=k-f.bottom,I=S<$.height+s&&h>S;let C;I?(C=f.top-$.height-i,p.current.style.maxHeight=`${h-i}px`):(C=f.bottom+s,p.current.style.maxHeight=`${S-s}px`);let v=f.left;const A=v+$.width-E;A>0&&(v-=A),v<0&&(v=0);const R=E-f.right;Object.assign(p.current.style,{position:"fixed",top:`${C}px`,...l==="left"?{left:`${v}px`}:{right:`${R}px`},width:`${Math.max(f.width,$.width)}px`,overflowY:"auto"})},[i,s,l]);return g.useEffect(()=>{var $;a(0),x(($=e.current)==null?void 0:$.clientWidth),u();const f=()=>u();return window.addEventListener("scroll",f,!0),window.addEventListener("resize",f),()=>{window.removeEventListener("scroll",f,!0),window.removeEventListener("resize",f)}},[e,u]),{highlightedIndex:c,setHighlightedIndex:a,isOptionSelected:f=>f.label===(n==null?void 0:n.label),optionsRef:p,parentWidth:m}},J=g.forwardRef(({selectContainerRef:e,optionsSelect:n,size:i,selectOption:s,value:l,inputValue:c,widthMenu:a,maxHeightMenu:m="180px",menuIsOpen:x,onEnter:p,marginTop:u="4px",iconName:f,iconColor:$,iconPosition:k,topOffset:E=0,bottomOffset:h=0,truncateText:S=!0,menuJustifyContent:I="flex-start",tableActionButton:C,menuLateralPadding:v="8px",menuOptionFlexDirection:A="column",confirmSelection:R,menuAlign:O="left"},L)=>{F.valuable(f)&&(f+="Ant");const{highlightedIndex:T,setHighlightedIndex:w,isOptionSelected:y,optionsRef:W,parentWidth:M}=we(e,l,E,h,O);g.useEffect(()=>{const r=b=>{if(x){if(b.key==="ArrowDown")b.preventDefault(),w(z=>z<n.length-1?z+1:z);else if(b.key==="ArrowUp")b.preventDefault(),w(z=>z>0?z-1:0);else if(b.key==="Enter"&&n[T]){b.preventDefault();const z=n[T];s(z),p&&p(z)}}};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[x,n,T,p,s,R]);const j=r=>typeof r=="string"?r:g.isValidElement(r)&&typeof r.props.children=="string"?r.props.children:String(r),d=(r,b)=>{var H,N;if(k!==b)return null;const z=F.valuable((H=r.tooltipProps)==null?void 0:H.label),B=r.iconName||f||"InfoFill0Sm",P=o.jsxRuntimeExports.jsx($e,{iconPosition:(N=r.tooltipProps)==null?void 0:N.position,id:`iconContainer-${r.value}`,children:o.jsxRuntimeExports.jsx(t.Icon,{iconName:B,color:r.disabled?t.sg.colors.neutralColors.colorNeutralCleanest:y(r)?t.sg.colors.brandColors.colorBrandSoft:$??t.sg.colors.neutralColors.colorNeutralDark})});return z?o.jsxRuntimeExports.jsx(o.Tooltip,{...r==null?void 0:r.tooltipProps,isActive:!0,children:P}):P};return o.jsxRuntimeExports.jsx(fe,{marginTop:u,width:a??`${M}px`,maxHeight:m,height:"fit-content",ref:r=>{W.current=r,typeof L=="function"?L(r):L&&(L.current=r)},"data-testid":"MenuSelect",id:"MenuSelect",children:n.length===0?o.jsxRuntimeExports.jsx(he,{size:i,children:"Sem opções"}):n.map((r,b)=>{var P,H;const z=typeof r.render=="function"?r.render():null,B=j(r.label);if(r.isSection)return o.jsxRuntimeExports.jsx(me,{size:i,children:B},B);{const N=B.toLowerCase().indexOf((c==null?void 0:c.toLowerCase())||"");return o.jsxRuntimeExports.jsxs(be,{isOptionSelected:y(r),highlightedIndex:b===T,onClick:D=>{D.stopPropagation(),r.disabled||(R?o.showConfirm({id:"select-option",title:R.title,description:R.description,icon:R.icon,iconColor:R.iconColor,leftButtonProps:{name:"Cancelar",variant:"tertiary",onClick:()=>{}},rightButtonProps:{name:"Confirmar",variant:"secondary",onClick:()=>s(r)}}):s(r))},onMouseEnter:()=>w(b),disabled:r.disabled,size:i,menuLateralPadding:v,children:[d(r,"left"),o.jsxRuntimeExports.jsxs(xe,{menuOptionFlexDirection:A,menuJustifyContent:I,iconName:f,isOptionSelected:y(r),highlightedIndex:b===T,"data-testid":r.value,size:i,hasDescription:!!r.description,optionValue:r.value,disabled:r.disabled,truncateText:S,tableActionButton:C,children:[o.jsxRuntimeExports.jsxs(Se,{truncateText:!g.isValidElement(r.label)&&S,children:[z,g.isValidElement(r.label)?o.jsxRuntimeExports.jsx("p",{title:((P=r==null?void 0:r.tooltipProps)==null?void 0:P.label)??j(r.label),children:r.label}):o.jsxRuntimeExports.jsx("p",{title:((H=r==null?void 0:r.tooltipProps)==null?void 0:H.label)??B,children:c&&N>=0?o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[B.substring(0,N),o.jsxRuntimeExports.jsx(pe,{size:i,children:B.substring(N,N+((c==null?void 0:c.length)||0))}),B.substring(N+((c==null?void 0:c.length)||0))]}):B})]}),r.description&&o.jsxRuntimeExports.jsx("p",{title:r.description,children:r.description})]}),d(r,"right")]},String(r.value))}})})});J.displayName="MenuSelect";const ne=({title:e,iconName:n,onClickIcon:i,width:s,height:l,flex:c,children:a,wrapperCustomStyles:m={},contentCustomStyles:x={},titleCustomStyles:p={}})=>o.jsxRuntimeExports.jsxs(o.Container,{width:s,height:l,flex:c,direction:"vertical",padding:t.sg.spacings.spacingStack.spacingStackSm,customStyles:{backgroundColor:t.sg.colors.backgroundColors.colorBackgroundSnow,border:`1px solid ${t.sg.colors.neutralColors.colorNeutralSoft}`,borderRadius:"8px",...m},children:[o.jsxRuntimeExports.jsxs(o.Container,{width:"100%",direction:"horizontal",customStyles:x,children:[e?o.jsxRuntimeExports.jsx(o.Container,{width:"fit-content",customStyles:p,children:o.jsxRuntimeExports.jsx(o.SectionTitle,{title:e,divider:!1})}):null,n?o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(o.Spacer,{size:"auto",direction:"horizontal"}),o.jsxRuntimeExports.jsx(t.Icon,{iconName:n,onClick:()=>i==null?void 0:i(),color:F.valuable(i)?t.sg.colors.neutralColors.colorNeutralDark:t.sg.colors.neutralColors.colorNeutralCloudy,cursorPointer:F.valuable(i)})]}):null]}),o.jsxRuntimeExports.jsx(o.Container,{width:"100%",flex:"1",children:a})]});ne.displayName="Section";const ye=o.qe.div`
|
|
122
|
+
${F.resetStyles}
|
|
123
123
|
display: flex;
|
|
124
124
|
flex-direction: column;
|
|
125
125
|
width: ${({width:e})=>e};
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
color: ${t.sg.colors.neutralColors.colorNeutralDark};
|
|
259
259
|
margin-top: ${t.sg.spacings.spacingInline.spacingInlineNano};
|
|
260
260
|
width: 100%;
|
|
261
|
-
`,We=(e,{value:n,options:i})=>{const[s,l]=g.useState(!1),[c,a]=g.useState(!1),[m,x]=g.useState(""),[p,u]=g.useState(i),f=g.useRef(null),$=g.useRef(null),k=g.useRef(null),E=g.useRef(null);g.useEffect(()=>{const C=()=>{a(!1)};return window.addEventListener("scroll",C,{passive:!0}),window.addEventListener("resize",C,{passive:!0}),()=>{window.removeEventListener("scroll",C),window.removeEventListener("resize",C)}},[]);function h(C){x(""),a(!1),l(!0),k!=null&&k.current&&k.current.focus(),C!==n&&e(C)}const S=C=>{if(C){const v=new RegExp(C,"i"),A=i.filter(R=>v.exec(R.label));u(A)}else u(i)};function I(C){return!C}return{isOpen:s,setIsOpen:l,expanded:c,setExpanded:a,inputValue:m,setInputValue:x,optionsSelect:p,setOptionSelect:u,selectContainerRef:f,containerRef:$,inputContainerRef:k,optionsRef:E,selectOption:h,handlerFilterOptions:S,isValue:I}},K=g.forwardRef(({value:e,handleOption:n,options:i,filter:s=!0,placeholder:l,label:c,size:a="Medium",width:m="100%",disabled:x,helpText:p,readonly:u,errorMessage:f,tooltipProps:$={},onBlur:k,onEnter:E,variant:h="default",infoProps:S={},maxHeightMenu:I,isRequired:C=!1,onRemoveSelected:v,displayText:A,displayTextProps:R={}},O)=>{const{isOpen:L,setIsOpen:T,expanded:w,setExpanded:y,inputValue:W,setInputValue:M,optionsSelect:j,selectContainerRef:d,containerRef:r,inputContainerRef:b,selectOption:z,setOptionSelect:B,handlerFilterOptions:P,isValue:
|
|
261
|
+
`,We=(e,{value:n,options:i})=>{const[s,l]=g.useState(!1),[c,a]=g.useState(!1),[m,x]=g.useState(""),[p,u]=g.useState(i),f=g.useRef(null),$=g.useRef(null),k=g.useRef(null),E=g.useRef(null);g.useEffect(()=>{const C=()=>{a(!1)};return window.addEventListener("scroll",C,{passive:!0}),window.addEventListener("resize",C,{passive:!0}),()=>{window.removeEventListener("scroll",C),window.removeEventListener("resize",C)}},[]);function h(C){x(""),a(!1),l(!0),k!=null&&k.current&&k.current.focus(),C!==n&&e(C)}const S=C=>{if(C){const v=new RegExp(C,"i"),A=i.filter(R=>v.exec(R.label));u(A)}else u(i)};function I(C){return!C}return{isOpen:s,setIsOpen:l,expanded:c,setExpanded:a,inputValue:m,setInputValue:x,optionsSelect:p,setOptionSelect:u,selectContainerRef:f,containerRef:$,inputContainerRef:k,optionsRef:E,selectOption:h,handlerFilterOptions:S,isValue:I}},K=g.forwardRef(({value:e,handleOption:n,options:i,filter:s=!0,placeholder:l,label:c,size:a="Medium",width:m="100%",disabled:x,helpText:p,readonly:u,errorMessage:f,tooltipProps:$={},onBlur:k,onEnter:E,variant:h="default",infoProps:S={},maxHeightMenu:I,isRequired:C=!1,onRemoveSelected:v,displayText:A,displayTextProps:R={}},O)=>{const{isOpen:L,setIsOpen:T,expanded:w,setExpanded:y,inputValue:W,setInputValue:M,optionsSelect:j,selectContainerRef:d,containerRef:r,inputContainerRef:b,selectOption:z,setOptionSelect:B,handlerFilterOptions:P,isValue:H}=We(n,{value:e,options:i}),N=!!f,D={label:f,...$,wrapperWidth:"auto",isActive:N,isErrorTooltip:!0},q={...S,size:a},_=o.jsxRuntimeExports.jsx(t.Icon,{iconName:`Close${a==="Small"?"Sm":"Ant"}`,onClick:X=>{X.stopPropagation(),v(e)}}),V=o.jsxRuntimeExports.jsx(t.Icon,{iconName:`ExpandLess${a==="Small"?"Sm":"Ant"}`}),le=o.jsxRuntimeExports.jsx(t.Icon,{iconName:`ExpandMore${a==="Small"?"Sm":"Ant"}`});return o.jsxRuntimeExports.jsxs(ye,{ref:d,width:m,size:a,disabled:x,readonly:u,children:[c&&o.jsxRuntimeExports.jsxs(Ee,{children:[o.jsxRuntimeExports.jsxs(ze,{"data-testid":"label",ref:O,children:[c,C&&!x?o.jsxRuntimeExports.jsx(Be,{children:" *"}):null]}),((q==null?void 0:q.message)||(q==null?void 0:q.render))&&o.jsxRuntimeExports.jsx(o.Info,{...q})]}),o.jsxRuntimeExports.jsx(o.Tooltip,{...D,children:o.jsxRuntimeExports.jsxs(je,{hasError:N,readonly:u,ref:r,onBlur:()=>{setTimeout(()=>{(L||w)&&b.current!==document.activeElement&&(k&&k(e),T(!1),y(!1))},250)},onClick:()=>{!x&&!u&&(L&&!w?(y(!0),b!=null&&b.current&&b.current.focus()):!L&&!w?(T(!0),y(!0),b!=null&&b.current&&b.current.focus()):(T(!1),y(!1),b!=null&&b.current&&b.current.blur()),!W&&B(i))},tabIndex:0,width:m,size:a,isOpen:L||w,"data-testid":"select",disabled:x,helpText:p,variant:h,children:[o.jsxRuntimeExports.jsxs(Ce,{children:[F.valuable(A)?o.jsxRuntimeExports.jsx(te,{size:a,variant:h,isDisplayText:!0,children:o.jsxRuntimeExports.jsx("p",{title:e==null?void 0:e.label,...R,children:A})}):o.jsxRuntimeExports.jsxs(te,{size:a,variant:h,children:[l&&H(e)&&!W&&!L?o.jsxRuntimeExports.jsx(Re,{size:a,variant:h,children:l}):null,(e==null?void 0:e.label)&&o.jsxRuntimeExports.jsx("p",{title:(e==null?void 0:e.hint)??(e==null?void 0:e.label),children:e==null?void 0:e.label})]}),s&&!F.valuable(A)&&o.jsxRuntimeExports.jsx(ke,{ref:b,value:W,onChange:X=>{M(X.target.value),X.target.value.length>0&&(T(!0),y(!0)),P(X.target.value)},readOnly:u,width:W.length,size:a,disabled:x,variant:h})]}),v&&e?_:null,w?V:le,w&&o.jsxRuntimeExports.jsx(J,{onEnter:X=>{n&&n(X),T(!1),y(!1),E&&E(X)},menuIsOpen:L,selectContainerRef:d,value:e,optionsSelect:j,selectOption:z,size:a,inputValue:W,maxHeightMenu:I})]})}),p&&o.jsxRuntimeExports.jsx(Ne,{size:a,children:p})]})});K.displayName="Select";const re=o.We`
|
|
262
262
|
from {
|
|
263
263
|
transform: rotate(0deg);
|
|
264
264
|
}
|
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
}
|
|
283
283
|
`;if(e==="secondary")return o.Ae`
|
|
284
284
|
background-color: rgba(
|
|
285
|
-
${
|
|
285
|
+
${F.convertHexToRGB(t.sg.colors.neutralColors.colorNeutralSoft)},
|
|
286
286
|
${t.sg.opacityLevels.light}
|
|
287
287
|
);
|
|
288
288
|
color: ${t.sg.colors.neutralColors.colorNeutralDark};
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
&:hover {
|
|
381
381
|
cursor: not-allowed;
|
|
382
382
|
}
|
|
383
|
-
`,
|
|
383
|
+
`,He=e=>{const[n,i]=g.useState(!1),[s,l]=g.useState(e),c=g.useRef(null);return g.useEffect(()=>{l(e)},[e]),{setIsOpen:i,isOpen:n,setOptionsSelect:l,optionsSelect:s,selectContainerRef:c}},Fe=200,Le=({name:e,variant:n="primary",width:i="100%",size:s="Medium",disabled:l=!1,isLoading:c=!1,onClick:a,options:m,label:x,menuSelectProps:p={},iconName:u,optionsIconPosition:f})=>{const{isOpen:$,setIsOpen:k,selectContainerRef:E,optionsSelect:h}=He(m);let S=t.sg.colors.backgroundColors.colorBackgroundSnow;l?S=t.sg.colors.neutralColors.colorNeutralCloudy:n!=="primary"&&(S=t.sg.colors.neutralColors.colorNeutralDark);const I={...p};return o.jsxRuntimeExports.jsxs(ve,{ref:E,width:i,size:s,disabled:l,onBlur:()=>setTimeout(()=>k(!1),Fe),children:[x&&o.jsxRuntimeExports.jsx(Ae,{children:x}),o.jsxRuntimeExports.jsxs(Ie,{type:"button",size:s,disabled:l,variant:n,isLoading:c,onClick:()=>!c&&k(!$),id:`button-component-${e}`,children:[c&&o.jsxRuntimeExports.jsx(Me,{size:s,disabled:l,variant:n,children:o.jsxRuntimeExports.jsx(t.Icon,{iconName:`ProgressActivity${s==="Small"?"Ant":"Sm"}`,color:S,"data-testid":"icon-loading"})}),!c&&o.jsxRuntimeExports.jsx("p",{title:e,children:e}),!c&&($?o.jsxRuntimeExports.jsx(t.Icon,{iconName:`ExpandLess${s==="Small"?"Ant":"Sm"}`,color:S,"data-testid":"icon-button-less"}):o.jsxRuntimeExports.jsx(t.Icon,{iconName:`ExpandMore${s==="Small"?"Ant":"Sm"}`,color:S,"data-testid":"icon-button-more"}))]}),$&&o.jsxRuntimeExports.jsx(J,{selectContainerRef:E,value:null,optionsSelect:h,selectOption:a,size:s,inputValue:null,iconPosition:f,iconName:u,...I})]})},Te=o.qe.div`
|
|
384
384
|
min-width: ${({widthItems:e})=>e};
|
|
385
385
|
max-width: ${({widthItems:e})=>e};
|
|
386
386
|
height: 100%;
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
width: 100%;
|
|
395
395
|
min-height: ${({heightItems:e})=>e};
|
|
396
396
|
max-height: ${({heightItems:e})=>e};
|
|
397
|
-
background-color: ${({selected:e})=>e?
|
|
397
|
+
background-color: ${({selected:e})=>e?t.sg.colors.backgroundColors.colorBackgroundSnow:"transparent"};
|
|
398
398
|
border-bottom: ${`1px solid ${t.sg.colors.neutralColors.colorNeutralSoft}`};
|
|
399
399
|
padding: 8px;
|
|
400
400
|
${({withBorderRight:e})=>e&&o.Ae`
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
min-width: 4px;
|
|
408
408
|
min-height: ${({heightItems:e})=>e};
|
|
409
409
|
max-height: ${({heightItems:e})=>e};
|
|
410
|
-
background-color: ${({selected:e})=>e?
|
|
410
|
+
background-color: ${({selected:e})=>e?t.sg.colors.backgroundColors.colorBackgroundSnow:"transparent"};
|
|
411
411
|
border-bottom: ${`1px solid ${t.sg.colors.neutralColors.colorNeutralSoft}`};
|
|
412
412
|
padding: 8px;
|
|
413
413
|
${({withBorderRight:e})=>e&&o.Ae`
|
|
@@ -419,14 +419,14 @@
|
|
|
419
419
|
min-width: 0;
|
|
420
420
|
height: 100%;
|
|
421
421
|
flex: 1;
|
|
422
|
-
background-color:
|
|
422
|
+
background-color: ${t.sg.colors.backgroundColors.colorBackgroundSnow};
|
|
423
423
|
`,Oe=o.qe.div`
|
|
424
424
|
max-width: 4px;
|
|
425
425
|
min-width: 4px;
|
|
426
426
|
height: 100%;
|
|
427
427
|
background-color: 'transparent';
|
|
428
428
|
overflow: hidden;
|
|
429
|
-
`,Xe=({width:e="100%",height:n="fit-content",flex:i,backgroundColor:s="white",options:l=[],heightItems:c="60px",widthItems:a="155px",emptyProps:m={title:"Nenhum dado a ser mostrado",body:null},customWrapperStyles:x={},customItemStyles:p={}})=>{var E;const[u,f]=g.useState(l[0]||null),$=g.useRef(null),k=g.useRef(null);return g.useEffect(()=>{const h=$.current,S=k.current,I=()=>{h&&S&&(S.scrollTop=h.scrollTop)};return h==null||h.addEventListener("scroll",I),()=>{h==null||h.removeEventListener("scroll",I)}},[]),g.useEffect(()=>{f(l[(l==null?void 0:l.length)-1]||null)},[l==null?void 0:l.length]),(l==null?void 0:l.length)===0?o.jsxRuntimeExports.jsx(o.Empty,{title:m.title,body:m.body,flex:"1",mode:"table"}):o.jsxRuntimeExports.jsxs(o.Container,{width:e,height:n,flex:i,backgroundColor:s,direction:"horizontal",customStyles:{border:`1px solid ${t.sg.colors.neutralColors.colorNeutralSoft}`,borderRadius:t.sg.borders.borderRadius.borderRadiusSm,...x},children:[o.jsxRuntimeExports.jsx(Te,{ref:$,widthItems:a,children:l==null?void 0:l.map((h,S)=>o.jsxRuntimeExports.jsx(qe,{selected:(u==null?void 0:u.key)===h.key,onClick:()=>f(h),withBorderRight:!
|
|
429
|
+
`,Xe=({width:e="100%",height:n="fit-content",flex:i,backgroundColor:s="white",options:l=[],heightItems:c="60px",widthItems:a="155px",emptyProps:m={title:"Nenhum dado a ser mostrado",body:null},customWrapperStyles:x={},customItemStyles:p={}})=>{var E;const[u,f]=g.useState(l[0]||null),$=g.useRef(null),k=g.useRef(null);return g.useEffect(()=>{const h=$.current,S=k.current,I=()=>{h&&S&&(S.scrollTop=h.scrollTop)};return h==null||h.addEventListener("scroll",I),()=>{h==null||h.removeEventListener("scroll",I)}},[]),g.useEffect(()=>{f(l[(l==null?void 0:l.length)-1]||null)},[l==null?void 0:l.length]),(l==null?void 0:l.length)===0?o.jsxRuntimeExports.jsx(o.Empty,{title:m.title,body:m.body,flex:"1",mode:"table"}):o.jsxRuntimeExports.jsxs(o.Container,{width:e,height:n,flex:i,backgroundColor:s,direction:"horizontal",customStyles:{border:`1px solid ${t.sg.colors.neutralColors.colorNeutralSoft}`,borderRadius:t.sg.borders.borderRadius.borderRadiusSm,...x},children:[o.jsxRuntimeExports.jsx(Te,{ref:$,widthItems:a,children:l==null?void 0:l.map((h,S)=>o.jsxRuntimeExports.jsx(qe,{selected:(u==null?void 0:u.key)===h.key,onClick:()=>f(h),withBorderRight:!0,heightItems:c,customStyles:p,children:h.item},S))}),o.jsxRuntimeExports.jsx(Oe,{ref:k,children:(E=l==null?void 0:l.concat({key:"last",item:o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{}),contentItem:o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{})}))==null?void 0:E.map((h,S)=>o.jsxRuntimeExports.jsx(Pe,{selected:(u==null?void 0:u.key)===h.key,onClick:()=>f(h),withBorderRight:!0,heightItems:c},S))}),o.jsxRuntimeExports.jsx(De,{children:u&&(u==null?void 0:u.contentItem)})]})},se=o.Ae`
|
|
430
430
|
svg:not([color]):not([data-testid='icon']) {
|
|
431
431
|
path {
|
|
432
432
|
fill: ${t.sg.colors.neutralColors.colorNeutralDarkest};
|
|
@@ -508,7 +508,7 @@
|
|
|
508
508
|
${se}
|
|
509
509
|
}
|
|
510
510
|
`}
|
|
511
|
-
`,ie=({width:e})=>{if(
|
|
511
|
+
`,ie=({width:e})=>{if(F.valuable(e))return o.Ae`
|
|
512
512
|
width: ${e};
|
|
513
513
|
`},G=o.qe.th`
|
|
514
514
|
text-align: ${({horizontalAlign:e,headerAlign:n})=>e??n??"left"};
|
|
@@ -586,4 +586,4 @@
|
|
|
586
586
|
&:hover {
|
|
587
587
|
cursor: ${e=>e.isClickable?"pointer":"default"};
|
|
588
588
|
}
|
|
589
|
-
`;function Ye(e){return n=>typeof e=="string"?n[e]:typeof e=="function"?e(n):(console.warn("Please, setup a rowKey for table."),JSON.stringify(n))}function Qe({id:e,rowKey:n="id",size:i="Small",onRowClick:s,fit:l=!1,maxHeight:c="40rem",columns:a,dataSource:m,columnsTextSize:x=i,emptyProps:p={width:"100%",height:"100%",title:"Nenhum dado a ser mostrado.",mode:"table",borders:!0,backgroundColor:t.sg.colors.backgroundColors.colorBackgroundSnow},selectedRow:u=!1,hideHeader:f=!1,withBorder:$=!0,withBorderRadius:k=!0,striped:E=!1,borderRadius:h=t.sg.borders.borderRadius.borderRadiusSm}){const S=g.useMemo(()=>Ye(n),[n]),[I,C]=g.useState(null),v=g.useRef(null),A=g.useRef(null),[R,O]=g.useState(a);g.useLayoutEffect(()=>{if(!A.current||a.length===0){O(a);return}const w=()=>{var P;const W=((P=A.current)==null?void 0:P.clientWidth)||0;if(W===0)return;let M=0,j=0;const d=[],r=[];a.forEach(
|
|
589
|
+
`;function Ye(e){return n=>typeof e=="string"?n[e]:typeof e=="function"?e(n):(console.warn("Please, setup a rowKey for table."),JSON.stringify(n))}function Qe({id:e,rowKey:n="id",size:i="Small",onRowClick:s,fit:l=!1,maxHeight:c="40rem",columns:a,dataSource:m,columnsTextSize:x=i,emptyProps:p={width:"100%",height:"100%",title:"Nenhum dado a ser mostrado.",mode:"table",borders:!0,backgroundColor:t.sg.colors.backgroundColors.colorBackgroundSnow},selectedRow:u=!1,hideHeader:f=!1,withBorder:$=!0,withBorderRadius:k=!0,striped:E=!1,borderRadius:h=t.sg.borders.borderRadius.borderRadiusSm}){const S=g.useMemo(()=>Ye(n),[n]),[I,C]=g.useState(null),v=g.useRef(null),A=g.useRef(null),[R,O]=g.useState(a);g.useLayoutEffect(()=>{if(!A.current||a.length===0){O(a);return}const w=()=>{var P;const W=((P=A.current)==null?void 0:P.clientWidth)||0;if(W===0)return;let M=0,j=0;const d=[],r=[];a.forEach(H=>{const N=Number(H.flex);H.width?M+=parseInt(H.width,10)||0:H.flex&&N>0?(j+=N,d.push(H)):r.push(H)});const b=W-M,z="80";let B=[...a];if(b>0){if(d.length>0){const H=b/j;B=a.map(N=>{const D=Number(N.flex);if(D&&D>0){const q=parseInt(N.minWidth||z,10),_=D*H,V=Math.max(_,q);return{...N,width:`${Math.floor(V)}px`}}return!N.width&&!D?{...N,width:N.minWidth||`${z}px`}:N})}else if(r.length>0){const H=b/r.length;B=a.map(N=>{const D=Number(N.flex);if(!N.width&&!D){const q=parseInt(N.minWidth||z,10),_=Math.max(H,q);return{...N,width:`${Math.floor(_)}px`}}return N})}}else B=a.map(H=>H.width?H:{...H,width:H.minWidth||`${z}px`});O(B)};w();const y=new ResizeObserver(w);return y.observe(A.current),()=>y.disconnect()},[a]),g.useEffect(()=>{const w=y=>{v.current&&!v.current.contains(y.target)&&C(null)};return document.addEventListener("mousedown",w),()=>{document.removeEventListener("mousedown",w)}},[]);const L=g.useMemo(()=>R?R.some(w=>w.mergeHeaderId&&w.mergeHeaderLabel):!1,[R]),T=g.useMemo(()=>{var M,j;if(f||!R||R.length===0)return null;if(!L)return o.jsxRuntimeExports.jsx(U,{isHeader:!0,size:i,numRows:1,borderRadius:h,children:R.map(d=>{var r;return o.jsxRuntimeExports.jsx(G,{width:d.width,minWidth:d.minWidth,maxWidth:d.maxWidth,horizontalAlign:d.horizontalAlign,size:i,columnsTextSize:x,withBorder:$,headerAlign:d.headerAlign,children:((r=d.columnRender)==null?void 0:r.call(d,m))||o.jsxRuntimeExports.jsx("span",{title:d.label,children:d.label})},d.dataIndex)})});const w=[],y=[];let W=0;for(;W<R.length;){const d=R[W];if(d.mergeHeaderId&&d.mergeHeaderLabel){let r=0;const b=d.mergeHeaderId;for(let z=W;z<R.length&&R[z].mergeHeaderId===b;z++)r++;w.push(o.jsxRuntimeExports.jsx(G,{colSpan:r,horizontalAlign:"center",size:i,columnsTextSize:x,withBorder:$,width:d.width,minWidth:d.minWidth,maxWidth:d.maxWidth,headerAlign:d.headerAlign,isTopRow:!0,children:o.jsxRuntimeExports.jsx("span",{title:d.mergeHeaderLabel,children:d.mergeHeaderLabel})},`${d.mergeHeaderId}-merged`));for(let z=0;z<r;z++){const B=R[W+z];y.push(o.jsxRuntimeExports.jsx(G,{width:B.width,minWidth:B.minWidth,maxWidth:B.maxWidth,horizontalAlign:B.horizontalAlign,size:i,columnsTextSize:x,withBorder:$,headerAlign:d.headerAlign,children:((M=B.columnRender)==null?void 0:M.call(B,m))||o.jsxRuntimeExports.jsx("span",{title:B.label,children:B.label})},B.dataIndex+"-individual"))}W+=r}else w.push(o.jsxRuntimeExports.jsx(G,{rowSpan:2,width:d.width,minWidth:d.minWidth,maxWidth:d.maxWidth,horizontalAlign:d.horizontalAlign,size:i,columnsTextSize:x,withBorder:$,headerAlign:d.headerAlign,isTopRow:!0,children:((j=d.columnRender)==null?void 0:j.call(d,m))||o.jsxRuntimeExports.jsx("span",{title:d.label,children:d.label})},d.dataIndex)),W++}return o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(U,{isHeader:!0,size:i,numRows:2,borderRadius:h,children:w}),y.length>0&&o.jsxRuntimeExports.jsx(U,{isHeader:!0,size:i,numRows:2,borderRadius:h,children:y})]})},[R,f,i,x,L]);return!m||m.length===0?o.jsxRuntimeExports.jsx(o.Empty,{backgroundColor:t.sg.colors.backgroundColors.colorBackgroundSnow,borders:!0,mode:"table",...p}):o.jsxRuntimeExports.jsx(_e,{maxHeight:c,withBorderRadius:k,ref:A,borderRadius:h,children:o.jsxRuntimeExports.jsxs(Ue,{id:e,ref:v,children:[o.jsxRuntimeExports.jsx("thead",{children:T}),o.jsxRuntimeExports.jsx("tbody",{style:{width:"100%"},children:m==null?void 0:m.map((w,y,W)=>{const M=S(w);return o.jsxRuntimeExports.jsx(U,{isLast:y===W.length-1,fit:l,size:i,withBorder:$,isSelected:M===I&&u,striped:E&&y%2!==0,borderRadius:h,children:R.map(j=>{var d,r,b;return o.jsxRuntimeExports.jsx(Ve,{width:j.width,minWidth:j.minWidth,maxWidth:j.maxWidth,size:i,isClickable:F.valuable(s),onClick:()=>{s&&s(w,j,y),u&&C(I===M?null:M)},horizontalAlign:j.horizontalAlign,verticalAlign:j.verticalAlign,rowPadding:j.rowPadding,withBorder:$,isLast:y===W.length-1,backgroundColor:(d=j.paint)==null?void 0:d.call(j,w[j.dataIndex],w,y,W),children:((r=j.render)==null?void 0:r.call(j,w[j.dataIndex],w,y,W))||o.jsxRuntimeExports.jsx("span",{title:w[j.dataIndex],style:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",...(b=j.rowCss)==null?void 0:b.call(j,w)},children:w[j.dataIndex]})||""},`${M}::${j.dataIndex}`)})},M)})})]})})}exports.CheckboxField=ue;exports.CollapseSection=ae;exports.MenuSelect=J;exports.Section=ne;exports.Select=K;exports.SelectButton=Le;exports.SelectField=ge;exports.TabInfo=Xe;exports.Table=Qe;exports.TextareaField=oe;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Checkbox.view-DFbiE7Mi.cjs"),t=require("../Title.view-B2dLqH4V.cjs"),i=require("../RequiredLabel.view-DRKx7lq3.cjs"),o=require("../Table.view-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Checkbox.view-DFbiE7Mi.cjs"),t=require("../Title.view-B2dLqH4V.cjs"),i=require("../RequiredLabel.view-DRKx7lq3.cjs"),o=require("../Table.view-wnIhy1DV.cjs");exports.ActionButton=e.ActionButton;exports.Badge=e.Badge;exports.Button=e.Button;exports.Checkbox=e.Checkbox;exports.Confirm=e.ConfirmModal;exports.ConfirmButton=e.ConfirmButton;exports.ConfirmModal=e.ConfirmModal;exports.Container=e.Container;exports.Empty=e.Empty;exports.Frame=e.FrameView;exports.FrameView=e.FrameView;exports.Info=e.Info;exports.Input=e.Input;exports.Label=e.Label;exports.Loading=e.Loading;exports.LoadingBar=e.LoadingBar;exports.Modal=e.Modal;exports.Radio=e.Radio;exports.SectionTitle=e.SectionTitle;exports.Spacer=e.Spacer;exports.Textarea=e.Textarea;exports.Tooltip=e.Tooltip;exports.showConfirm=e.showConfirm;exports.showModal=e.showModal;exports.ErrorMessage=t.ErrorMessage;exports.Switch=t.Switch;exports.Title=t.Title;exports.AlertInline=i.AlertInline;exports.LabelField=i.LabelField;exports.RequiredLabelView=i.RequiredLabelView;exports.CheckboxField=o.CheckboxField;exports.CollapseSection=o.CollapseSection;exports.MenuSelect=o.MenuSelect;exports.Section=o.Section;exports.Select=o.Select;exports.SelectButton=o.SelectButton;exports.SelectField=o.SelectField;exports.TabInfo=o.TabInfo;exports.Table=o.Table;exports.TextareaField=o.TextareaField;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as s, B as o, a as t, c as i, e as r, d as l, e as n, C as c, E as d, F as f, F as S, I as m, f as C, L as T, g as b, b as p, M as x, R as F, i as u, S as B, j as L, T as M, s as h, h as g } from "../Checkbox.view-D75146I3.js";
|
|
2
2
|
import { E as I, S as A, T as E } from "../Title.view-DGXidSXd.js";
|
|
3
3
|
import { A as k, L as V, R as j } from "../RequiredLabel.view-Cv_y1fuR.js";
|
|
4
|
-
import { a as y, C as v, M as z, b as D, c as G, d as H, S as J, e as K, f as N, T as O } from "../Table.view-
|
|
4
|
+
import { a as y, C as v, M as z, b as D, c as G, d as H, S as J, e as K, f as N, T as O } from "../Table.view-dgKqpBRL.js";
|
|
5
5
|
export {
|
|
6
6
|
s as ActionButton,
|
|
7
7
|
k as AlertInline,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Table.view-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../Table.view-wnIhy1DV.cjs");exports.CheckboxField=e.CheckboxField;exports.CollapseSection=e.CollapseSection;exports.MenuSelect=e.MenuSelect;exports.Section=e.Section;exports.Select=e.Select;exports.SelectButton=e.SelectButton;exports.SelectField=e.SelectField;exports.TabInfo=e.TabInfo;exports.Table=e.Table;exports.TextareaField=e.TextareaField;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as s, C as l, M as t, b as c, c as o, d as S, S as i, e as n, f as b, T as d } from "../../Table.view-
|
|
1
|
+
import { a as s, C as l, M as t, b as c, c as o, d as S, S as i, e as n, f as b, T as d } from "../../Table.view-dgKqpBRL.js";
|
|
2
2
|
export {
|
|
3
3
|
s as CheckboxField,
|
|
4
4
|
l as CollapseSection,
|
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Checkbox.view-DFbiE7Mi.cjs"),o=require("./Title.view-B2dLqH4V.cjs"),l=require("./RequiredLabel.view-DRKx7lq3.cjs"),t=require("./Table.view-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Checkbox.view-DFbiE7Mi.cjs"),o=require("./Title.view-B2dLqH4V.cjs"),l=require("./RequiredLabel.view-DRKx7lq3.cjs"),t=require("./Table.view-wnIhy1DV.cjs"),i=require("./index-BcwQwoIM.cjs"),a=require("./helpers/index.cjs.js");exports.ActionButton=e.ActionButton;exports.Badge=e.Badge;exports.Button=e.Button;exports.Checkbox=e.Checkbox;exports.Confirm=e.ConfirmModal;exports.ConfirmButton=e.ConfirmButton;exports.ConfirmModal=e.ConfirmModal;exports.Container=e.Container;exports.Empty=e.Empty;exports.Frame=e.FrameView;exports.FrameView=e.FrameView;exports.Info=e.Info;exports.Input=e.Input;exports.Label=e.Label;exports.Loading=e.Loading;exports.LoadingBar=e.LoadingBar;exports.Modal=e.Modal;exports.Radio=e.Radio;exports.SectionTitle=e.SectionTitle;exports.Spacer=e.Spacer;exports.Textarea=e.Textarea;exports.Tooltip=e.Tooltip;exports.showConfirm=e.showConfirm;exports.showModal=e.showModal;exports.styleGuide=e.index;exports.ErrorMessage=o.ErrorMessage;exports.Switch=o.Switch;exports.Title=o.Title;exports.AlertInline=l.AlertInline;exports.LabelField=l.LabelField;exports.RequiredLabelView=l.RequiredLabelView;exports.CheckboxField=t.CheckboxField;exports.CollapseSection=t.CollapseSection;exports.MenuSelect=t.MenuSelect;exports.Section=t.Section;exports.Select=t.Select;exports.SelectButton=t.SelectButton;exports.SelectField=t.SelectField;exports.TabInfo=t.TabInfo;exports.Table=t.Table;exports.TextareaField=t.TextareaField;exports.capitalizeAllFirstLetters=i.capitalizeAllFirstLetters;exports.capitalizeFirstLetter=i.capitalizeFirstLetter;exports.convertHexToRGB=i.convertHexToRGB;exports.dom=i.dom;exports.resetStyles=i.resetStyles;exports.valuable=i.valuable;exports.stableStringify=a.stableStringify;
|
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as s, B as t, a as o, c as r, e as i, d as l, e as n, C as c, E as d, F as f, F as m, I as S, f as p, L as b, g as x, b as T, M as C, R as F, i as u, S as L, j as B, T as M, s as g, h, k as w } from "./Checkbox.view-D75146I3.js";
|
|
2
2
|
import { E as I, S as R, T as y } from "./Title.view-DGXidSXd.js";
|
|
3
3
|
import { A as k, L as v, R as z } from "./RequiredLabel.view-Cv_y1fuR.js";
|
|
4
|
-
import { a as V, C as j, M as q, b as H, c as D, d as J, S as K, e as N, f as O, T as P } from "./Table.view-
|
|
4
|
+
import { a as V, C as j, M as q, b as H, c as D, d as J, S as K, e as N, f as O, T as P } from "./Table.view-dgKqpBRL.js";
|
|
5
5
|
import { a as U, c as W, b as X, d as Y, r as Z, v as _ } from "./index-_v6RoRxb.js";
|
|
6
6
|
import { stableStringify as aa } from "./helpers/index.es.js";
|
|
7
7
|
export {
|