@ufal-lccv/gpsub-ds 0.0.15 → 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.
@@ -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 F, s as Ce, T as fe, S as ke, I as ze, P as Be, E as he } from "./Checkbox.view-D75146I3.js";
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";
@@ -8,15 +8,15 @@ const ae = 350, yo = ({
8
8
  children: t,
9
9
  endAdornment: i = null,
10
10
  marginBottom: l = "16px",
11
- customStyles: a = {},
11
+ customStyles: s = {},
12
12
  wrapperCustomStyles: d = {},
13
- hideAdornmentOnCollapse: s = !1,
13
+ hideAdornmentOnCollapse: a = !1,
14
14
  maxHeight: m = "none"
15
15
  // Default to 'none' to allow full expansion
16
16
  }) => {
17
- const [g, p] = P(!1), [f, h] = P(!0);
17
+ const [g, S] = P(!1), [f, h] = P(!0);
18
18
  Z(() => {
19
- if (s)
19
+ if (a)
20
20
  if (g) {
21
21
  const B = setTimeout(
22
22
  () => h(!1),
@@ -25,8 +25,8 @@ const ae = 350, yo = ({
25
25
  return () => clearTimeout(B);
26
26
  } else
27
27
  h(!0);
28
- }, [g, s]);
29
- const b = s && !f ? null : i;
28
+ }, [g, a]);
29
+ const b = a && !f ? null : i;
30
30
  return /* @__PURE__ */ n.jsxs(
31
31
  _,
32
32
  {
@@ -43,10 +43,10 @@ const ae = 350, yo = ({
43
43
  marginBottom: l,
44
44
  collapse: {
45
45
  collapsed: g,
46
- setCollapsed: p
46
+ setCollapsed: S
47
47
  },
48
48
  endAdornment: b,
49
- customStyles: a
49
+ customStyles: s
50
50
  }
51
51
  ),
52
52
  /* @__PURE__ */ n.jsx(
@@ -66,22 +66,22 @@ const ae = 350, yo = ({
66
66
  );
67
67
  };
68
68
  function ne(e, t, i) {
69
- var l, a, d, s, m;
69
+ var l, s, d, a, m;
70
70
  t == null && (t = 100);
71
71
  function g() {
72
- var f = Date.now() - s;
73
- f < t && f >= 0 ? l = setTimeout(g, t - f) : (l = null, i || (m = e.apply(d, a), d = a = null));
72
+ var f = Date.now() - a;
73
+ f < t && f >= 0 ? l = setTimeout(g, t - f) : (l = null, i || (m = e.apply(d, s), d = s = null));
74
74
  }
75
- var p = function() {
76
- d = this, a = arguments, s = Date.now();
75
+ var S = function() {
76
+ d = this, s = arguments, a = Date.now();
77
77
  var f = i && !l;
78
- return l || (l = setTimeout(g, t)), f && (m = e.apply(d, a), d = a = null), m;
78
+ return l || (l = setTimeout(g, t)), f && (m = e.apply(d, s), d = s = null), m;
79
79
  };
80
- return p.clear = function() {
80
+ return S.clear = function() {
81
81
  l && (clearTimeout(l), l = null);
82
- }, p.flush = function() {
83
- l && (m = e.apply(d, a), d = a = null, clearTimeout(l), l = null);
84
- }, p;
82
+ }, S.flush = function() {
83
+ l && (m = e.apply(d, s), d = s = null, clearTimeout(l), l = null);
84
+ }, S;
85
85
  }
86
86
  ne.debounce = ne;
87
87
  var Ie = ne;
@@ -92,24 +92,24 @@ function le({
92
92
  triggerType: i = null,
93
93
  debounceTime: l = 500
94
94
  }) {
95
- const a = ue(() => {
95
+ const s = ue(() => {
96
96
  e.trigger(t);
97
97
  }, [e, t]), d = Q(
98
- () => ve(() => a(), l),
99
- [a, l]
100
- ), s = Q(
98
+ () => ve(() => s(), l),
99
+ [s, l]
100
+ ), a = Q(
101
101
  () => ["all", "onChange"].includes(i) ? d : null,
102
102
  [d, i]
103
103
  ), m = Q(
104
- () => ["all", "onBlur"].includes(i) ? a : null,
104
+ () => ["all", "onBlur"].includes(i) ? s : null,
105
105
  [i]
106
106
  );
107
107
  return Q(
108
108
  () => ({
109
- onChangeTrigger: s,
109
+ onChangeTrigger: a,
110
110
  onBlurTrigger: m
111
111
  }),
112
- [s, m]
112
+ [a, m]
113
113
  );
114
114
  }
115
115
  const Co = ({
@@ -117,23 +117,23 @@ const Co = ({
117
117
  name: t,
118
118
  label: i,
119
119
  options: l,
120
- readonly: a = !1,
120
+ readonly: s = !1,
121
121
  disabled: d = !1,
122
- optionsMap: s,
122
+ optionsMap: a,
123
123
  width: m = "100%",
124
124
  flex: g,
125
- placeholder: p,
125
+ placeholder: S,
126
126
  onSelect: f,
127
127
  parser: h,
128
128
  filter: b,
129
129
  tooltipProps: B = {},
130
130
  infoProps: j = {},
131
131
  maxHeigthMenu: u,
132
- isRequired: S = !1,
132
+ isRequired: p = !1,
133
133
  onRemoveSelected: R,
134
134
  triggerFormField: k = null,
135
135
  displayText: M,
136
- ...H
136
+ ...F
137
137
  }) => {
138
138
  const { onChangeTrigger: z } = le({
139
139
  form: e,
@@ -153,7 +153,7 @@ const Co = ({
153
153
  }, T = (w, v) => {
154
154
  let E = w;
155
155
  h && (E = h == null ? void 0 : h(w)), v(E), f == null || f(E), z == null || z();
156
- }, x = Q(() => G(s) ? s : Object.fromEntries(l.map((w) => [w.value, w])), [l, s]);
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,
159
159
  {
@@ -171,10 +171,10 @@ const Co = ({
171
171
  width: "100%",
172
172
  size: "Small",
173
173
  disabled: d,
174
- readonly: a,
174
+ readonly: s,
175
175
  filter: b,
176
176
  errorMessage: E == null ? void 0 : E.message,
177
- placeholder: p,
177
+ placeholder: S,
178
178
  value: y,
179
179
  handleOption: (c) => {
180
180
  T(c.value, w);
@@ -184,10 +184,10 @@ const Co = ({
184
184
  maxHeigthMenu: u,
185
185
  infoProps: A,
186
186
  maxHeightMenu: u,
187
- isRequired: S,
187
+ isRequired: p,
188
188
  onRemoveSelected: R,
189
189
  displayText: M,
190
- ...H
190
+ ...F
191
191
  }
192
192
  );
193
193
  }
@@ -198,12 +198,12 @@ const Co = ({
198
198
  name: t,
199
199
  label: i,
200
200
  readonly: l = !1,
201
- disabled: a = !1,
201
+ disabled: s = !1,
202
202
  width: d = "100%",
203
- height: s = "100%",
203
+ height: a = "100%",
204
204
  flex: m,
205
205
  placeholder: g,
206
- charactersCounter: p = !0,
206
+ charactersCounter: S = !0,
207
207
  maxlength: f = 1e3,
208
208
  resize: h = !0,
209
209
  triggerFormField: b = null,
@@ -211,36 +211,36 @@ const Co = ({
211
211
  maxHeight: j,
212
212
  ...u
213
213
  }) => {
214
- const { onChangeTrigger: S } = le({
214
+ const { onChangeTrigger: p } = le({
215
215
  form: e,
216
216
  fieldName: t,
217
217
  triggerType: b
218
218
  }), R = (k, M) => {
219
- M(k), S == null || S();
219
+ M(k), p == null || p();
220
220
  };
221
- return /* @__PURE__ */ n.jsx(_, { width: d, flex: m, height: s, children: /* @__PURE__ */ n.jsx(
221
+ return /* @__PURE__ */ n.jsx(_, { width: d, flex: m, height: a, children: /* @__PURE__ */ n.jsx(
222
222
  re,
223
223
  {
224
224
  name: t,
225
225
  control: e.control,
226
226
  render: ({
227
227
  field: { onChange: k, value: M },
228
- fieldState: { error: H = null }
228
+ fieldState: { error: F = null }
229
229
  }) => /* @__PURE__ */ n.jsx(
230
230
  we,
231
231
  {
232
232
  label: i,
233
233
  value: M || "",
234
234
  width: "100%",
235
- disabled: a,
235
+ disabled: s,
236
236
  readonly: l,
237
- height: s,
237
+ height: a,
238
238
  minHeight: B,
239
239
  maxHeight: j,
240
- errorMessage: H == null ? void 0 : H.message,
240
+ errorMessage: F == null ? void 0 : F.message,
241
241
  placeholder: g,
242
242
  onChange: (z) => R(z.target.value, k),
243
- charactersCounter: p,
243
+ charactersCounter: S,
244
244
  maxlength: f,
245
245
  size: "Small",
246
246
  resize: h,
@@ -256,12 +256,12 @@ const ko = ({
256
256
  name: t,
257
257
  id: i = t,
258
258
  label: l,
259
- readonly: a = !1,
259
+ readonly: s = !1,
260
260
  disabled: d = !1,
261
- afterCheck: s,
261
+ afterCheck: a,
262
262
  width: m = "100%",
263
263
  formatter: g,
264
- parser: p,
264
+ parser: S,
265
265
  flex: f,
266
266
  size: h = "Medium",
267
267
  triggerFormField: b = null,
@@ -272,8 +272,8 @@ const ko = ({
272
272
  fieldName: t,
273
273
  triggerType: b,
274
274
  debounceTime: 0
275
- }), u = (S, R) => {
276
- R(S), s == null || s(S), j == null || j();
275
+ }), u = (p, R) => {
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(
279
279
  re,
@@ -281,7 +281,7 @@ const ko = ({
281
281
  name: t,
282
282
  control: e.control,
283
283
  render: ({
284
- field: { onChange: S, value: R },
284
+ field: { onChange: p, value: R },
285
285
  fieldState: { error: k = null }
286
286
  }) => {
287
287
  const M = k == null ? void 0 : k.message;
@@ -292,11 +292,11 @@ const ko = ({
292
292
  checked: (g == null ? void 0 : g(R)) ?? R,
293
293
  name: t,
294
294
  label: l,
295
- disabled: d || a,
296
- onChange: (H) => {
295
+ disabled: d || s,
296
+ onChange: (F) => {
297
297
  u(
298
- (p == null ? void 0 : p(H.target.checked, R)) ?? H.target.checked,
299
- S
298
+ (S == null ? void 0 : S(F.target.checked, R)) ?? F.target.checked,
299
+ p
300
300
  );
301
301
  },
302
302
  size: h,
@@ -336,7 +336,7 @@ const ko = ({
336
336
  background: ${o.colors.neutralColors.colorNeutralClean};
337
337
  border-radius: ${o.borders.borderRadius.borderRadiusPill};
338
338
  }
339
- `, Fe = C.li`
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
- `, He = C.li`
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 && F`
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 && F`
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 && F`
405
+ ${({ truncateText: e }) => e && H`
406
406
  display: -webkit-box;
407
407
  -webkit-line-clamp: 2;
408
408
  -webkit-box-orient: vertical;
@@ -428,36 +428,36 @@ const ko = ({
428
428
  margin: 0;
429
429
  display: flex;
430
430
  align-self: center;
431
- `, Oe = (e, t, i = 0, l = 0, a = "left") => {
432
- const [d, s] = P(0), [m, g] = P(), p = U(null), f = ue(() => {
433
- if (!e.current || !p.current) return;
434
- const h = e.current.getBoundingClientRect(), b = p.current.getBoundingClientRect(), B = window.innerHeight, j = window.innerWidth, u = h.top, S = B - h.bottom, R = S < b.height + l && u > S;
431
+ `, Oe = (e, t, i = 0, l = 0, s = "left") => {
432
+ const [d, a] = P(0), [m, g] = P(), S = U(null), f = ue(() => {
433
+ if (!e.current || !S.current) return;
434
+ const h = e.current.getBoundingClientRect(), b = S.current.getBoundingClientRect(), B = window.innerHeight, j = window.innerWidth, u = h.top, p = B - h.bottom, R = p < b.height + l && u > p;
435
435
  let k;
436
- R ? (k = h.top - b.height - i, p.current.style.maxHeight = `${u - i}px`) : (k = h.bottom + l, p.current.style.maxHeight = `${S - l}px`);
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 H = M + b.width - j;
439
- H > 0 && (M -= H), M < 0 && (M = 0);
438
+ const F = M + b.width - j;
439
+ F > 0 && (M -= F), M < 0 && (M = 0);
440
440
  const z = j - h.right;
441
- Object.assign(p.current.style, {
441
+ Object.assign(S.current.style, {
442
442
  position: "fixed",
443
443
  top: `${k}px`,
444
- ...a === "left" ? { left: `${M}px` } : { right: `${z}px` },
444
+ ...s === "left" ? { left: `${M}px` } : { right: `${z}px` },
445
445
  width: `${Math.max(h.width, b.width)}px`,
446
446
  overflowY: "auto"
447
447
  });
448
- }, [i, l, a]);
448
+ }, [i, l, s]);
449
449
  return Z(() => {
450
450
  var b;
451
- s(0), g((b = e.current) == null ? void 0 : b.clientWidth), f();
451
+ a(0), g((b = e.current) == null ? void 0 : b.clientWidth), f();
452
452
  const h = () => f();
453
453
  return window.addEventListener("scroll", h, !0), window.addEventListener("resize", h), () => {
454
454
  window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", h);
455
455
  };
456
456
  }, [e, f]), {
457
457
  highlightedIndex: d,
458
- setHighlightedIndex: s,
458
+ setHighlightedIndex: a,
459
459
  isOptionSelected: (h) => h.label === (t == null ? void 0 : t.label),
460
- optionsRef: p,
460
+ optionsRef: S,
461
461
  parentWidth: m
462
462
  };
463
463
  }, ie = ge(
@@ -466,23 +466,23 @@ const ko = ({
466
466
  optionsSelect: t,
467
467
  size: i,
468
468
  selectOption: l,
469
- value: a,
469
+ value: s,
470
470
  inputValue: d,
471
- widthMenu: s,
471
+ widthMenu: a,
472
472
  maxHeightMenu: m = "180px",
473
473
  menuIsOpen: g,
474
- onEnter: p,
474
+ onEnter: S,
475
475
  marginTop: f = "4px",
476
476
  iconName: h,
477
477
  iconColor: b,
478
478
  iconPosition: B,
479
479
  topOffset: j = 0,
480
480
  bottomOffset: u = 0,
481
- truncateText: S = !0,
481
+ truncateText: p = !0,
482
482
  menuJustifyContent: R = "flex-start",
483
483
  tableActionButton: k,
484
484
  menuLateralPadding: M = "8px",
485
- menuOptionFlexDirection: H = "column",
485
+ menuOptionFlexDirection: F = "column",
486
486
  confirmSelection: z,
487
487
  menuAlign: J = "left"
488
488
  }, A) => {
@@ -495,7 +495,7 @@ const ko = ({
495
495
  parentWidth: E
496
496
  } = Oe(
497
497
  e,
498
- a,
498
+ s,
499
499
  j,
500
500
  u,
501
501
  J
@@ -514,7 +514,7 @@ const ko = ({
514
514
  else if ($.key === "Enter" && t[T]) {
515
515
  $.preventDefault();
516
516
  const N = t[T];
517
- l(N), p && p(N);
517
+ l(N), S && S(N);
518
518
  }
519
519
  }
520
520
  };
@@ -523,7 +523,7 @@ const ko = ({
523
523
  g,
524
524
  t,
525
525
  T,
526
- p,
526
+ S,
527
527
  l,
528
528
  z
529
529
  ]);
@@ -550,7 +550,7 @@ const ko = ({
550
550
  Me,
551
551
  {
552
552
  marginTop: f,
553
- width: s ?? `${E}px`,
553
+ width: a ?? `${E}px`,
554
554
  maxHeight: m,
555
555
  height: "fit-content",
556
556
  ref: (r) => {
@@ -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(Fe, { size: i, children: "Sem opções" }) : t.map((r, $) => {
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
- He,
600
+ Fe,
601
601
  {
602
- menuOptionFlexDirection: H,
602
+ menuOptionFlexDirection: F,
603
603
  menuJustifyContent: R,
604
604
  iconName: h,
605
605
  isOptionSelected: w(r),
@@ -609,13 +609,13 @@ const ko = ({
609
609
  hasDescription: !!r.description,
610
610
  optionValue: r.value,
611
611
  disabled: r.disabled,
612
- truncateText: S,
612
+ truncateText: p,
613
613
  tableActionButton: k,
614
614
  children: [
615
615
  /* @__PURE__ */ n.jsxs(
616
616
  Ae,
617
617
  {
618
- truncateText: !se(r.label) && S,
618
+ truncateText: !se(r.label) && p,
619
619
  children: [
620
620
  N,
621
621
  se(r.label) ? /* @__PURE__ */ n.jsx(
@@ -664,17 +664,17 @@ const De = ({
664
664
  iconName: t,
665
665
  onClickIcon: i,
666
666
  width: l,
667
- height: a,
667
+ height: s,
668
668
  flex: d,
669
- children: s,
669
+ children: a,
670
670
  wrapperCustomStyles: m = {},
671
671
  contentCustomStyles: g = {},
672
- titleCustomStyles: p = {}
672
+ titleCustomStyles: S = {}
673
673
  }) => /* @__PURE__ */ n.jsxs(
674
674
  _,
675
675
  {
676
676
  width: l,
677
- height: a,
677
+ height: s,
678
678
  flex: d,
679
679
  direction: "vertical",
680
680
  padding: o.spacings.spacingStack.spacingStackSm,
@@ -692,7 +692,7 @@ const De = ({
692
692
  direction: "horizontal",
693
693
  customStyles: g,
694
694
  children: [
695
- e ? /* @__PURE__ */ n.jsx(_, { width: "fit-content", customStyles: p, children: /* @__PURE__ */ n.jsx(ce, { title: e, divider: !1 }) }) : null,
695
+ e ? /* @__PURE__ */ n.jsx(_, { width: "fit-content", customStyles: S, children: /* @__PURE__ */ n.jsx(ce, { title: e, divider: !1 }) }) : null,
696
696
  t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
697
697
  /* @__PURE__ */ n.jsx(ke, { size: "auto", direction: "horizontal" }),
698
698
  /* @__PURE__ */ n.jsx(
@@ -708,7 +708,7 @@ const De = ({
708
708
  ]
709
709
  }
710
710
  ),
711
- /* @__PURE__ */ n.jsx(_, { width: "100%", flex: "1", children: s })
711
+ /* @__PURE__ */ n.jsx(_, { width: "100%", flex: "1", children: a })
712
712
  ]
713
713
  }
714
714
  );
@@ -724,20 +724,20 @@ const Xe = C.div`
724
724
  }
725
725
  `, _e = C.div`
726
726
  width: 100%;
727
- ${({ variant: e }) => e === "default" ? F`
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
- ` : F`
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" && F`
737
+ ${({ variant: e }) => e === "default" && H`
738
738
  border: ${o.borders.borderWidth.borderWidthThinner} solid;
739
739
  border-radius: ${o.borders.borderRadius.borderRadiusSm};
740
- border-color: ${({ isOpen: t, hasError: i, readonly: l, disabled: a }) => i ? o.colors.feedbackColors.colorFeedbackError : l || a ? o.colors.neutralColors.colorNeutralClean : t ? o.colors.neutralColors.colorNeutralCloudy : o.colors.neutralColors.colorNeutralClean};
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};
741
741
  `}
742
742
 
743
743
  background-color: ${({ variant: e }) => e === "default" ? o.colors.backgroundColors.colorBackgroundSnow : "transparent"};
@@ -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" ? F`
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
- ` : F`
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" ? F`
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
- ` : F`
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) && F`
771
+ ${({ disabled: e, readonly: t }) => (e || t) && H`
772
772
  background-color: ${o.colors.brandColors.colorBrandSeSoft};
773
773
  border-style: solid;
774
774
  `};
@@ -873,24 +873,24 @@ 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, a] = P(!1), [d, s] = P(!1), [m, g] = P(""), [p, f] = P(i), h = U(null), b = U(null), B = U(null), j = U(null);
876
+ const [l, s] = P(!1), [d, a] = P(!1), [m, g] = P(""), [S, f] = P(i), h = U(null), b = U(null), B = U(null), j = U(null);
877
877
  Z(() => {
878
878
  const k = () => {
879
- s(!1);
879
+ a(!1);
880
880
  };
881
881
  return window.addEventListener("scroll", k, { passive: !0 }), window.addEventListener("resize", k, { passive: !0 }), () => {
882
882
  window.removeEventListener("scroll", k), window.removeEventListener("resize", k);
883
883
  };
884
884
  }, []);
885
885
  function u(k) {
886
- g(""), s(!1), a(!0), B != null && B.current && B.current.focus(), k !== t && e(k);
886
+ g(""), a(!1), s(!0), B != null && B.current && B.current.focus(), k !== t && e(k);
887
887
  }
888
- const S = (k) => {
888
+ const p = (k) => {
889
889
  if (k) {
890
- const M = new RegExp(k, "i"), H = i.filter(
890
+ const M = new RegExp(k, "i"), F = i.filter(
891
891
  (z) => M.exec(z.label)
892
892
  );
893
- f(H);
893
+ f(F);
894
894
  } else
895
895
  f(i);
896
896
  };
@@ -899,19 +899,19 @@ const Ve = C.p`
899
899
  }
900
900
  return {
901
901
  isOpen: l,
902
- setIsOpen: a,
902
+ setIsOpen: s,
903
903
  expanded: d,
904
- setExpanded: s,
904
+ setExpanded: a,
905
905
  inputValue: m,
906
906
  setInputValue: g,
907
- optionsSelect: p,
907
+ optionsSelect: S,
908
908
  setOptionSelect: f,
909
909
  selectContainerRef: h,
910
910
  containerRef: b,
911
911
  inputContainerRef: B,
912
912
  optionsRef: j,
913
913
  selectOption: u,
914
- handlerFilterOptions: S,
914
+ handlerFilterOptions: p,
915
915
  isValue: R
916
916
  };
917
917
  }, me = ge(
@@ -920,23 +920,23 @@ const Ve = C.p`
920
920
  handleOption: t,
921
921
  options: i,
922
922
  filter: l = !0,
923
- placeholder: a,
923
+ placeholder: s,
924
924
  label: d,
925
- size: s = "Medium",
925
+ size: a = "Medium",
926
926
  width: m = "100%",
927
927
  disabled: g,
928
- helpText: p,
928
+ helpText: S,
929
929
  readonly: f,
930
930
  errorMessage: h,
931
931
  tooltipProps: b = {},
932
932
  onBlur: B,
933
933
  onEnter: j,
934
934
  variant: u = "default",
935
- infoProps: S = {},
935
+ infoProps: p = {},
936
936
  maxHeightMenu: R,
937
937
  isRequired: k = !1,
938
938
  onRemoveSelected: M,
939
- displayText: H,
939
+ displayText: F,
940
940
  displayTextProps: z = {}
941
941
  }, J) => {
942
942
  const {
@@ -961,23 +961,23 @@ const Ve = C.p`
961
961
  isActive: I,
962
962
  isErrorTooltip: !0
963
963
  }, O = {
964
- ...S,
965
- size: s
964
+ ...p,
965
+ size: a
966
966
  }, K = /* @__PURE__ */ n.jsx(
967
967
  V,
968
968
  {
969
- iconName: `Close${s === "Small" ? "Sm" : "Ant"}`,
969
+ iconName: `Close${a === "Small" ? "Sm" : "Ant"}`,
970
970
  onClick: (Y) => {
971
971
  Y.stopPropagation(), M(e);
972
972
  }
973
973
  }
974
- ), te = /* @__PURE__ */ n.jsx(V, { iconName: `ExpandLess${s === "Small" ? "Sm" : "Ant"}` }), be = /* @__PURE__ */ n.jsx(V, { iconName: `ExpandMore${s === "Small" ? "Sm" : "Ant"}` });
974
+ ), te = /* @__PURE__ */ n.jsx(V, { iconName: `ExpandLess${a === "Small" ? "Sm" : "Ant"}` }), be = /* @__PURE__ */ n.jsx(V, { iconName: `ExpandMore${a === "Small" ? "Sm" : "Ant"}` });
975
975
  return /* @__PURE__ */ n.jsxs(
976
976
  Xe,
977
977
  {
978
978
  ref: c,
979
979
  width: m,
980
- size: s,
980
+ size: a,
981
981
  disabled: g,
982
982
  readonly: f,
983
983
  children: [
@@ -1004,19 +1004,19 @@ const Ve = C.p`
1004
1004
  },
1005
1005
  tabIndex: 0,
1006
1006
  width: m,
1007
- size: s,
1007
+ size: a,
1008
1008
  isOpen: A || x,
1009
1009
  "data-testid": "select",
1010
1010
  disabled: g,
1011
- helpText: p,
1011
+ helpText: S,
1012
1012
  variant: u,
1013
1013
  children: [
1014
1014
  /* @__PURE__ */ n.jsxs(Ue, { children: [
1015
- G(H) ? /* @__PURE__ */ n.jsx(de, { size: s, variant: u, isDisplayText: !0, children: /* @__PURE__ */ n.jsx("p", { title: e == null ? void 0 : e.label, ...z, children: H }) }) : /* @__PURE__ */ n.jsxs(de, { size: s, variant: u, children: [
1016
- a && L(e) && !v && !A ? /* @__PURE__ */ n.jsx(Ge, { size: s, variant: u, children: a }) : null,
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
+ 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(H) && /* @__PURE__ */ n.jsx(
1019
+ l && !G(F) && /* @__PURE__ */ n.jsx(
1020
1020
  qe,
1021
1021
  {
1022
1022
  ref: $,
@@ -1026,7 +1026,7 @@ const Ve = C.p`
1026
1026
  },
1027
1027
  readOnly: f,
1028
1028
  width: v.length,
1029
- size: s,
1029
+ size: a,
1030
1030
  disabled: g,
1031
1031
  variant: u
1032
1032
  }
@@ -1045,7 +1045,7 @@ const Ve = C.p`
1045
1045
  value: e,
1046
1046
  optionsSelect: y,
1047
1047
  selectOption: N,
1048
- size: s,
1048
+ size: a,
1049
1049
  inputValue: v,
1050
1050
  maxHeightMenu: R
1051
1051
  }
@@ -1053,14 +1053,14 @@ const Ve = C.p`
1053
1053
  ]
1054
1054
  }
1055
1055
  ) }),
1056
- p && /* @__PURE__ */ n.jsx(Ve, { size: s, children: p })
1056
+ S && /* @__PURE__ */ n.jsx(Ve, { size: a, children: S })
1057
1057
  ]
1058
1058
  }
1059
1059
  );
1060
1060
  }
1061
1061
  );
1062
1062
  me.displayName = "Select";
1063
- const pe = Be`
1063
+ const Se = Be`
1064
1064
  from {
1065
1065
  transform: rotate(0deg);
1066
1066
  }
@@ -1075,7 +1075,7 @@ const pe = 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 F`
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 pe = Be`
1086
1086
  }
1087
1087
  `;
1088
1088
  if (e === "secondary")
1089
- return F`
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 pe = Be`
1101
1101
  }
1102
1102
  `;
1103
1103
  if (e === "tertiary")
1104
- return F`
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 pe = Be`
1113
1113
  }
1114
1114
  `;
1115
1115
  }};
1116
- ${({ disabled: e }) => e && F`
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,8 +1142,8 @@ const pe = 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 && F`
1146
- animation: ${pe} 2s linear infinite;
1145
+ ${({ isLoading: e }) => e && H`
1146
+ animation: ${Se} 2s linear infinite;
1147
1147
  `}
1148
1148
 
1149
1149
  path {
@@ -1183,7 +1183,7 @@ const to = C.div`
1183
1183
  min-width: ${({ size: e }) => e === "Small" ? o.icons.iconSizeSm : o.icons.iconSizeAnt};
1184
1184
  height: ${({ size: e }) => e === "Small" ? o.icons.iconSizeSm : o.icons.iconSizeAnt};
1185
1185
 
1186
- animation: ${pe} 2s linear infinite;
1186
+ animation: ${Se} 2s linear infinite;
1187
1187
 
1188
1188
  path {
1189
1189
  fill: ${({ variant: e, disabled: t }) => t ? o.colors.neutralColors.colorNeutralCloudy : e === "primary" ? o.colors.backgroundColors.colorBackgroundSnow : o.colors.neutralColors.colorNeutralDark};
@@ -1194,13 +1194,13 @@ const to = C.div`
1194
1194
  cursor: not-allowed;
1195
1195
  }
1196
1196
  `, no = (e) => {
1197
- const [t, i] = P(!1), [l, a] = P(e), d = U(null);
1197
+ const [t, i] = P(!1), [l, s] = P(e), d = U(null);
1198
1198
  return Z(() => {
1199
- a(e);
1199
+ s(e);
1200
1200
  }, [e]), {
1201
1201
  setIsOpen: i,
1202
1202
  isOpen: t,
1203
- setOptionsSelect: a,
1203
+ setOptionsSelect: s,
1204
1204
  optionsSelect: l,
1205
1205
  selectContainerRef: d
1206
1206
  };
@@ -1209,20 +1209,20 @@ const to = C.div`
1209
1209
  variant: t = "primary",
1210
1210
  width: i = "100%",
1211
1211
  size: l = "Medium",
1212
- disabled: a = !1,
1212
+ disabled: s = !1,
1213
1213
  isLoading: d = !1,
1214
- onClick: s,
1214
+ onClick: a,
1215
1215
  options: m,
1216
1216
  label: g,
1217
- menuSelectProps: p = {},
1217
+ menuSelectProps: S = {},
1218
1218
  iconName: f,
1219
1219
  optionsIconPosition: h
1220
1220
  }) => {
1221
1221
  const { isOpen: b, setIsOpen: B, selectContainerRef: j, optionsSelect: u } = no(m);
1222
- let S = o.colors.backgroundColors.colorBackgroundSnow;
1223
- a ? S = o.colors.neutralColors.colorNeutralCloudy : t !== "primary" && (S = o.colors.neutralColors.colorNeutralDark);
1222
+ let p = o.colors.backgroundColors.colorBackgroundSnow;
1223
+ s ? p = o.colors.neutralColors.colorNeutralCloudy : t !== "primary" && (p = o.colors.neutralColors.colorNeutralDark);
1224
1224
  const R = {
1225
- ...p
1225
+ ...S
1226
1226
  };
1227
1227
  return /* @__PURE__ */ n.jsxs(
1228
1228
  eo,
@@ -1230,7 +1230,7 @@ const to = C.div`
1230
1230
  ref: j,
1231
1231
  width: i,
1232
1232
  size: l,
1233
- disabled: a,
1233
+ disabled: s,
1234
1234
  onBlur: () => setTimeout(() => B(!1), ro),
1235
1235
  children: [
1236
1236
  g && /* @__PURE__ */ n.jsx(oo, { children: g }),
@@ -1239,17 +1239,17 @@ const to = C.div`
1239
1239
  {
1240
1240
  type: "button",
1241
1241
  size: l,
1242
- disabled: a,
1242
+ disabled: s,
1243
1243
  variant: t,
1244
1244
  isLoading: d,
1245
1245
  onClick: () => !d && B(!b),
1246
1246
  id: `button-component-${e}`,
1247
1247
  children: [
1248
- d && /* @__PURE__ */ n.jsx(to, { size: l, disabled: a, variant: t, children: /* @__PURE__ */ n.jsx(
1248
+ d && /* @__PURE__ */ n.jsx(to, { size: l, disabled: s, variant: t, children: /* @__PURE__ */ n.jsx(
1249
1249
  V,
1250
1250
  {
1251
1251
  iconName: `ProgressActivity${l === "Small" ? "Ant" : "Sm"}`,
1252
- color: S,
1252
+ color: p,
1253
1253
  "data-testid": "icon-loading"
1254
1254
  }
1255
1255
  ) }),
@@ -1258,14 +1258,14 @@ const to = C.div`
1258
1258
  V,
1259
1259
  {
1260
1260
  iconName: `ExpandLess${l === "Small" ? "Ant" : "Sm"}`,
1261
- color: S,
1261
+ color: p,
1262
1262
  "data-testid": "icon-button-less"
1263
1263
  }
1264
1264
  ) : /* @__PURE__ */ n.jsx(
1265
1265
  V,
1266
1266
  {
1267
1267
  iconName: `ExpandMore${l === "Small" ? "Ant" : "Sm"}`,
1268
- color: S,
1268
+ color: p,
1269
1269
  "data-testid": "icon-button-more"
1270
1270
  }
1271
1271
  ))
@@ -1278,7 +1278,7 @@ const to = C.div`
1278
1278
  selectContainerRef: j,
1279
1279
  value: null,
1280
1280
  optionsSelect: u,
1281
- selectOption: s,
1281
+ selectOption: a,
1282
1282
  size: l,
1283
1283
  inputValue: null,
1284
1284
  iconPosition: h,
@@ -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 ? "#E8F3FF" : "transparent"};
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 && F`
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 && F(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 && F`
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: #e8f3ff;
1331
+ background-color: ${o.colors.backgroundColors.colorBackgroundSnow};
1332
1332
  `, co = C.div`
1333
1333
  max-width: 4px;
1334
1334
  min-width: 4px;
@@ -1340,26 +1340,28 @@ const to = C.div`
1340
1340
  height: t = "fit-content",
1341
1341
  flex: i,
1342
1342
  backgroundColor: l = "white",
1343
- options: a = [],
1343
+ options: s = [],
1344
1344
  heightItems: d = "60px",
1345
- widthItems: s = "155px",
1345
+ widthItems: a = "155px",
1346
1346
  emptyProps: m = {
1347
1347
  title: "Nenhum dado a ser mostrado",
1348
1348
  body: null
1349
1349
  },
1350
1350
  customWrapperStyles: g = {},
1351
- customItemStyles: p = {}
1351
+ customItemStyles: S = {}
1352
1352
  }) => {
1353
1353
  var j;
1354
- const [f, h] = P(a[0] || null), b = U(null), B = U(null);
1354
+ const [f, h] = P(s[0] || null), b = U(null), B = U(null);
1355
1355
  return Z(() => {
1356
- const u = b.current, S = B.current, R = () => {
1357
- u && S && (S.scrollTop = u.scrollTop);
1356
+ const u = b.current, p = B.current, R = () => {
1357
+ u && p && (p.scrollTop = u.scrollTop);
1358
1358
  };
1359
1359
  return u == null || u.addEventListener("scroll", R), () => {
1360
1360
  u == null || u.removeEventListener("scroll", R);
1361
1361
  };
1362
- }, []), (a == null ? void 0 : a.length) === 0 ? /* @__PURE__ */ n.jsx(
1362
+ }, []), Z(() => {
1363
+ h(s[(s == null ? void 0 : s.length) - 1] || null);
1364
+ }, [s == null ? void 0 : s.length]), (s == null ? void 0 : s.length) === 0 ? /* @__PURE__ */ n.jsx(
1363
1365
  he,
1364
1366
  {
1365
1367
  title: m.title,
@@ -1381,19 +1383,19 @@ const to = C.div`
1381
1383
  ...g
1382
1384
  },
1383
1385
  children: [
1384
- /* @__PURE__ */ n.jsx(lo, { ref: b, widthItems: s, children: a == null ? void 0 : a.map((u, S) => /* @__PURE__ */ n.jsx(
1386
+ /* @__PURE__ */ n.jsx(lo, { ref: b, widthItems: a, children: s == null ? void 0 : s.map((u, p) => /* @__PURE__ */ n.jsx(
1385
1387
  io,
1386
1388
  {
1387
1389
  selected: (f == null ? void 0 : f.key) === u.key,
1388
1390
  onClick: () => h(u),
1389
1391
  withBorderRight: !1,
1390
1392
  heightItems: d,
1391
- customStyles: p,
1393
+ customStyles: S,
1392
1394
  children: u.item
1393
1395
  },
1394
- S
1396
+ p
1395
1397
  )) }),
1396
- /* @__PURE__ */ n.jsx(co, { ref: B, children: (j = a == null ? void 0 : a.concat({ key: "last", item: /* @__PURE__ */ n.jsx(n.Fragment, {}), contentItem: /* @__PURE__ */ n.jsx(n.Fragment, {}) })) == null ? void 0 : j.map((u, S) => /* @__PURE__ */ n.jsx(
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((u, p) => /* @__PURE__ */ n.jsx(
1397
1399
  so,
1398
1400
  {
1399
1401
  selected: (f == null ? void 0 : f.key) === u.key,
@@ -1401,13 +1403,13 @@ const to = C.div`
1401
1403
  withBorderRight: !0,
1402
1404
  heightItems: d
1403
1405
  },
1404
- S
1406
+ p
1405
1407
  )) }),
1406
1408
  /* @__PURE__ */ n.jsx(ao, { children: f && (f == null ? void 0 : f.contentItem) })
1407
1409
  ]
1408
1410
  }
1409
1411
  );
1410
- }, Se = F`
1412
+ }, pe = H`
1411
1413
  svg:not([color]):not([data-testid='icon']) {
1412
1414
  path {
1413
1415
  fill: ${o.colors.neutralColors.colorNeutralDarkest};
@@ -1446,7 +1448,7 @@ const to = C.div`
1446
1448
  border-spacing: 0;
1447
1449
  width: 100%;
1448
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`
1449
- ${({ isHeader: e, size: t }) => e && F`
1451
+ ${({ isHeader: e, size: t }) => e && H`
1450
1452
  position: sticky;
1451
1453
  background-color: ${o.colors.backgroundColors.colorBackgroundSnow};
1452
1454
 
@@ -1464,7 +1466,7 @@ const to = C.div`
1464
1466
  height: ${({ fit: e, size: t }) => e ? "fit-content" : t === "Large" ? "4rem" : "3.2rem"};
1465
1467
  min-height: ${({ size: e }) => e === "Large" ? "4rem" : "3.2rem"};
1466
1468
 
1467
- ${({ isHeader: e, isSelected: t, striped: i }) => !e && F`
1469
+ ${({ isHeader: e, isSelected: t, striped: i }) => !e && H`
1468
1470
  background-color: ${t ? o.colors.neutralColors.colorNeutralClean : i ? "#F5F9FE" : o.colors.backgroundColors.colorBackgroundSnow};
1469
1471
  `}
1470
1472
 
@@ -1484,19 +1486,19 @@ const to = C.div`
1484
1486
  border-bottom: none !important;
1485
1487
  }
1486
1488
 
1487
- ${({ isHeader: e }) => !e && F`
1489
+ ${({ isHeader: e }) => !e && H`
1488
1490
  &:hover {
1489
1491
  background-color: ${o.colors.backgroundColors.colorBackgroundCarpet};
1490
1492
 
1491
1493
  /* Target direct SVGs without color (sbwb-icons), but exclude sbwb-ds Icons ([data-testid='icon'])
1492
1494
  * This is because sbwb-ds Icons have a color prop on the wrapper, not the SVG
1493
1495
  */
1494
- ${Se}
1496
+ ${pe}
1495
1497
  }
1496
1498
  `}
1497
1499
  `, $e = ({ width: e }) => {
1498
1500
  if (G(e))
1499
- return F`
1501
+ return H`
1500
1502
  width: ${e};
1501
1503
  `;
1502
1504
  }, oe = C.th`
@@ -1523,7 +1525,7 @@ const to = C.div`
1523
1525
  word-break: normal;
1524
1526
 
1525
1527
  &:last-child {
1526
- ${({ isTopRow: e }) => e && F`
1528
+ ${({ isTopRow: e }) => e && H`
1527
1529
  border-right: none;
1528
1530
  `}
1529
1531
  }
@@ -1570,13 +1572,13 @@ const to = C.div`
1570
1572
  border-right: none;
1571
1573
  }
1572
1574
 
1573
- ${Se}
1575
+ ${pe}
1574
1576
 
1575
1577
  &:hover {
1576
1578
  cursor: ${(e) => e.isClickable ? "pointer" : "default"};
1577
1579
  }
1578
1580
  `;
1579
- function po(e) {
1581
+ function So(e) {
1580
1582
  return (t) => typeof e == "string" ? t[e] : typeof e == "function" ? e(t) : (console.warn("Please, setup a rowKey for table."), JSON.stringify(t));
1581
1583
  }
1582
1584
  function jo({
@@ -1584,12 +1586,12 @@ function jo({
1584
1586
  rowKey: t = "id",
1585
1587
  size: i = "Small",
1586
1588
  onRowClick: l,
1587
- fit: a = !1,
1589
+ fit: s = !1,
1588
1590
  maxHeight: d = "40rem",
1589
- columns: s,
1591
+ columns: a,
1590
1592
  dataSource: m,
1591
1593
  columnsTextSize: g = i,
1592
- emptyProps: p = {
1594
+ emptyProps: S = {
1593
1595
  width: "100%",
1594
1596
  height: "100%",
1595
1597
  title: "Nenhum dado a ser mostrado.",
@@ -1604,28 +1606,28 @@ function jo({
1604
1606
  striped: j = !1,
1605
1607
  borderRadius: u = o.borders.borderRadius.borderRadiusSm
1606
1608
  }) {
1607
- const S = Q(() => po(t), [t]), [R, k] = P(null), M = U(null), H = U(null), [z, J] = P(s);
1609
+ const p = Q(() => So(t), [t]), [R, k] = P(null), M = U(null), F = U(null), [z, J] = P(a);
1608
1610
  Ne(() => {
1609
- if (!H.current || s.length === 0) {
1610
- J(s);
1611
+ if (!F.current || a.length === 0) {
1612
+ J(a);
1611
1613
  return;
1612
1614
  }
1613
1615
  const x = () => {
1614
1616
  var D;
1615
- const v = ((D = H.current) == null ? void 0 : D.clientWidth) || 0;
1617
+ const v = ((D = F.current) == null ? void 0 : D.clientWidth) || 0;
1616
1618
  if (v === 0) return;
1617
1619
  let E = 0, y = 0;
1618
1620
  const c = [], r = [];
1619
- s.forEach((L) => {
1621
+ a.forEach((L) => {
1620
1622
  const I = Number(L.flex);
1621
1623
  L.width ? E += parseInt(L.width, 10) || 0 : L.flex && I > 0 ? (y += I, c.push(L)) : r.push(L);
1622
1624
  });
1623
1625
  const $ = v - E, N = "80";
1624
- let W = [...s];
1626
+ let W = [...a];
1625
1627
  if ($ > 0) {
1626
1628
  if (c.length > 0) {
1627
1629
  const L = $ / y;
1628
- W = s.map((I) => {
1630
+ W = a.map((I) => {
1629
1631
  const X = Number(I.flex);
1630
1632
  if (X && X > 0) {
1631
1633
  const O = parseInt(I.minWidth || N, 10), K = X * L, te = Math.max(K, O);
@@ -1638,7 +1640,7 @@ function jo({
1638
1640
  });
1639
1641
  } else if (r.length > 0) {
1640
1642
  const L = $ / r.length;
1641
- W = s.map((I) => {
1643
+ W = a.map((I) => {
1642
1644
  const X = Number(I.flex);
1643
1645
  if (!I.width && !X) {
1644
1646
  const O = parseInt(I.minWidth || N, 10), K = Math.max(L, O);
@@ -1648,13 +1650,13 @@ function jo({
1648
1650
  });
1649
1651
  }
1650
1652
  } else
1651
- W = s.map((L) => L.width ? L : { ...L, width: L.minWidth || `${N}px` });
1653
+ W = a.map((L) => L.width ? L : { ...L, width: L.minWidth || `${N}px` });
1652
1654
  J(W);
1653
1655
  };
1654
1656
  x();
1655
1657
  const w = new ResizeObserver(x);
1656
- return w.observe(H.current), () => w.disconnect();
1657
- }, [s]), Z(() => {
1658
+ return w.observe(F.current), () => w.disconnect();
1659
+ }, [a]), Z(() => {
1658
1660
  const x = (w) => {
1659
1661
  M.current && !M.current.contains(w.target) && k(null);
1660
1662
  };
@@ -1795,24 +1797,24 @@ function jo({
1795
1797
  backgroundColor: o.colors.backgroundColors.colorBackgroundSnow,
1796
1798
  borders: !0,
1797
1799
  mode: "table",
1798
- ...p
1800
+ ...S
1799
1801
  }
1800
1802
  ) : /* @__PURE__ */ n.jsx(
1801
1803
  fo,
1802
1804
  {
1803
1805
  maxHeight: d,
1804
1806
  withBorderRadius: B,
1805
- ref: H,
1807
+ ref: F,
1806
1808
  borderRadius: u,
1807
1809
  children: /* @__PURE__ */ n.jsxs(ho, { id: e, ref: M, children: [
1808
1810
  /* @__PURE__ */ n.jsx("thead", { children: T }),
1809
1811
  /* @__PURE__ */ n.jsx("tbody", { style: { width: "100%" }, children: m == null ? void 0 : m.map((x, w, v) => {
1810
- const E = S(x);
1812
+ const E = p(x);
1811
1813
  return /* @__PURE__ */ n.jsx(
1812
1814
  ee,
1813
1815
  {
1814
1816
  isLast: w === v.length - 1,
1815
- fit: a,
1817
+ fit: s,
1816
1818
  size: i,
1817
1819
  withBorder: b,
1818
1820
  isSelected: E === R && f,