@ufal-lccv/gpsub-ds 0.0.16 → 0.0.17
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-CoB9izFp.js} +52 -52
- package/dist/{Table.view-9o-ZaYs1.cjs → Table.view-DHmGitoG.cjs} +2 -2
- 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,4 +1,4 @@
|
|
|
1
|
-
import { l as n, C as _, i as ce, K as xe, j as we, c as ye, N as C, O 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 he } from "./Checkbox.view-D75146I3.js";
|
|
2
2
|
import je, { useState as P, useEffect as Z, useCallback as ue, 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";
|
|
@@ -133,7 +133,7 @@ const Co = ({
|
|
|
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,
|
|
@@ -187,7 +187,7 @@ const Co = ({
|
|
|
187
187
|
isRequired: p,
|
|
188
188
|
onRemoveSelected: R,
|
|
189
189
|
displayText: M,
|
|
190
|
-
...
|
|
190
|
+
...F
|
|
191
191
|
}
|
|
192
192
|
);
|
|
193
193
|
}
|
|
@@ -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,7 +237,7 @@ 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,
|
|
@@ -293,9 +293,9 @@ const ko = ({
|
|
|
293
293
|
name: t,
|
|
294
294
|
label: l,
|
|
295
295
|
disabled: d || s,
|
|
296
|
-
onChange: (
|
|
296
|
+
onChange: (F) => {
|
|
297
297
|
u(
|
|
298
|
-
(S == null ? void 0 : S(
|
|
298
|
+
(S == null ? void 0 : S(F.target.checked, R)) ?? F.target.checked,
|
|
299
299
|
p
|
|
300
300
|
);
|
|
301
301
|
},
|
|
@@ -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;
|
|
@@ -435,8 +435,8 @@ const ko = ({
|
|
|
435
435
|
let k;
|
|
436
436
|
R ? (k = h.top - b.height - i, S.current.style.maxHeight = `${u - i}px`) : (k = h.bottom + l, S.current.style.maxHeight = `${p - l}px`);
|
|
437
437
|
let M = h.left;
|
|
438
|
-
const
|
|
439
|
-
|
|
438
|
+
const F = M + b.width - j;
|
|
439
|
+
F > 0 && (M -= F), M < 0 && (M = 0);
|
|
440
440
|
const z = j - h.right;
|
|
441
441
|
Object.assign(S.current.style, {
|
|
442
442
|
position: "fixed",
|
|
@@ -482,7 +482,7 @@ const ko = ({
|
|
|
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) => {
|
|
@@ -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,9 +597,9 @@ 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
604
|
iconName: h,
|
|
605
605
|
isOptionSelected: w(r),
|
|
@@ -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
|
`};
|
|
@@ -887,10 +887,10 @@ const Ve = C.p`
|
|
|
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
|
};
|
|
@@ -936,7 +936,7 @@ const Ve = C.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 {
|
|
@@ -1012,11 +1012,11 @@ const Ve = C.p`
|
|
|
1012
1012
|
variant: u,
|
|
1013
1013
|
children: [
|
|
1014
1014
|
/* @__PURE__ */ n.jsxs(Ue, { children: [
|
|
1015
|
-
G(
|
|
1015
|
+
G(F) ? /* @__PURE__ */ n.jsx(de, { size: a, variant: u, isDisplayText: !0, children: /* @__PURE__ */ n.jsx("p", { title: e == null ? void 0 : e.label, ...z, children: F }) }) : /* @__PURE__ */ n.jsxs(de, { size: a, variant: u, children: [
|
|
1016
1016
|
s && L(e) && !v && !A ? /* @__PURE__ */ n.jsx(Ge, { size: a, variant: u, 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: $,
|
|
@@ -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
|
|
|
@@ -1303,14 +1303,14 @@ 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;
|
|
@@ -1319,7 +1319,7 @@ const to = C.div`
|
|
|
1319
1319
|
background-color: ${({ selected: e }) => e ? "#E8F3FF" : "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;
|
|
@@ -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};
|
|
@@ -1448,7 +1448,7 @@ const to = C.div`
|
|
|
1448
1448
|
border-spacing: 0;
|
|
1449
1449
|
width: 100%;
|
|
1450
1450
|
`, uo = `${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 &&
|
|
1451
|
+
${({ isHeader: e, size: t }) => e && H`
|
|
1452
1452
|
position: sticky;
|
|
1453
1453
|
background-color: ${o.colors.backgroundColors.colorBackgroundSnow};
|
|
1454
1454
|
|
|
@@ -1466,7 +1466,7 @@ 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
|
|
|
@@ -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
|
}
|
|
@@ -1606,15 +1606,15 @@ function jo({
|
|
|
1606
1606
|
striped: j = !1,
|
|
1607
1607
|
borderRadius: u = 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);
|
|
@@ -1804,7 +1804,7 @@ function jo({
|
|
|
1804
1804
|
{
|
|
1805
1805
|
maxHeight: d,
|
|
1806
1806
|
withBorderRadius: B,
|
|
1807
|
-
ref:
|
|
1807
|
+
ref: F,
|
|
1808
1808
|
borderRadius: u,
|
|
1809
1809
|
children: /* @__PURE__ */ n.jsxs(ho, { id: e, ref: M, children: [
|
|
1810
1810
|
/* @__PURE__ */ n.jsx("thead", { children: T }),
|
|
@@ -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`
|
|
@@ -419,7 +419,7 @@
|
|
|
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;
|
|
@@ -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-DHmGitoG.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-CoB9izFp.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-DHmGitoG.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-CoB9izFp.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-DHmGitoG.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-CoB9izFp.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 {
|