@ufal-lccv/gpsub-ds 0.0.11 → 0.0.13

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.
Files changed (28) hide show
  1. package/dist/{Checkbox.view-B-GrHFEa.js → Checkbox.view-D75146I3.js} +1033 -982
  2. package/dist/{Checkbox.view-DpYmvx5w.cjs → Checkbox.view-DFbiE7Mi.cjs} +118 -118
  3. package/dist/RequiredLabel.view-Cv_y1fuR.js +130 -0
  4. package/dist/RequiredLabel.view-DRKx7lq3.cjs +1 -0
  5. package/dist/Table.view-BipNpove.cjs +586 -0
  6. package/dist/{Table.view-B9_6CG4G.js → Table.view-CHEV4kuX.js} +826 -711
  7. package/dist/{Title.view-CxaPmd5z.cjs → Title.view-B2dLqH4V.cjs} +1 -1
  8. package/dist/{Title.view-D-L8EJcc.js → Title.view-DGXidSXd.js} +1 -1
  9. package/dist/components/atoms/index.cjs.js +1 -1
  10. package/dist/components/atoms/index.es.js +2 -2
  11. package/dist/components/index.cjs.js +1 -1
  12. package/dist/components/index.es.js +16 -15
  13. package/dist/components/molecules/AlertInline/AlertInline.view.d.ts +4 -1
  14. package/dist/components/molecules/index.cjs.js +1 -1
  15. package/dist/components/molecules/index.es.js +2 -2
  16. package/dist/components/organisms/CollapseSection/CollapseSection.view.d.ts +2 -1
  17. package/dist/components/organisms/TabInfo/TabInfo.style.d.ts +5 -0
  18. package/dist/components/organisms/TabInfo/TabInfo.view.d.ts +19 -0
  19. package/dist/components/organisms/TabInfo/index.d.ts +1 -0
  20. package/dist/components/organisms/index.cjs.js +1 -1
  21. package/dist/components/organisms/index.d.ts +2 -1
  22. package/dist/components/organisms/index.es.js +6 -5
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.es.js +25 -24
  25. package/package.json +1 -1
  26. package/dist/RequiredLabel.view-CVWg_TdI.cjs +0 -1
  27. package/dist/RequiredLabel.view-DM5zIUlt.js +0 -98
  28. package/dist/Table.view-BJO6XwCO.cjs +0 -541
@@ -1,251 +1,313 @@
1
- import { G as be, l as n, C as _, j as xe, c as we, H as k, J as A, s as ye, T as de, i as fe, S as Ce, I as ke, K as ze, E as Be } from "./Checkbox.view-B-GrHFEa.js";
2
- import We, { useCallback as ue, useMemo as Y, useState as P, useRef as Q, useEffect as Z, forwardRef as he, isValidElement as se, useLayoutEffect as je } from "react";
1
+ import { l as n, C as _, i as ce, K as xe, j as we, c as ye, N as $, 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";
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
- import { v as U, r as G, b as Ne } from "./index-_v6RoRxb.js";
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";
6
+ const ae = 350, yo = ({
7
+ title: e,
8
+ children: t,
9
+ endAdornment: i = null,
10
+ marginBottom: l = "16px",
11
+ customStyles: a = {},
12
+ wrapperCustomStyles: d = {},
13
+ hideAdornmentOnCollapse: s = !1,
14
+ maxHeight: g = "none"
15
+ // Default to 'none' to allow full expansion
16
+ }) => {
17
+ const [c, m] = P(!1), [p, h] = P(!0);
18
+ Z(() => {
19
+ if (s)
20
+ if (c) {
21
+ const u = setTimeout(
22
+ () => h(!1),
23
+ ae
24
+ );
25
+ return () => clearTimeout(u);
26
+ } else
27
+ h(!0);
28
+ }, [c, s]);
29
+ const S = s && !p ? null : i;
30
+ return /* @__PURE__ */ n.jsxs(
31
+ _,
32
+ {
33
+ width: "100%",
34
+ flex: "1",
35
+ gap: "8px",
36
+ customStyles: d,
37
+ children: [
38
+ /* @__PURE__ */ n.jsx(
39
+ ce,
40
+ {
41
+ title: e,
42
+ divider: !0,
43
+ marginBottom: l,
44
+ collapse: {
45
+ collapsed: c,
46
+ setCollapsed: m
47
+ },
48
+ endAdornment: S,
49
+ customStyles: a
50
+ }
51
+ ),
52
+ /* @__PURE__ */ n.jsx(
53
+ _,
54
+ {
55
+ gap: "8px",
56
+ width: "100%",
57
+ customStyles: {
58
+ maxHeight: c ? "0" : g,
59
+ transition: `max-height ${ae}ms ease-in-out`
60
+ },
61
+ children: t
62
+ }
63
+ )
64
+ ]
65
+ }
66
+ );
67
+ };
6
68
  function ne(e, t, i) {
7
- var l, d, a, s, f;
69
+ var l, a, d, s, g;
8
70
  t == null && (t = 100);
9
- function h() {
10
- var m = Date.now() - s;
11
- m < t && m >= 0 ? l = setTimeout(h, t - m) : (l = null, i || (f = e.apply(a, d), a = d = null));
71
+ function c() {
72
+ var p = Date.now() - s;
73
+ p < t && p >= 0 ? l = setTimeout(c, t - p) : (l = null, i || (g = e.apply(d, a), d = a = null));
12
74
  }
13
- var g = function() {
14
- a = this, d = arguments, s = Date.now();
15
- var m = i && !l;
16
- return l || (l = setTimeout(h, t)), m && (f = e.apply(a, d), a = d = null), f;
75
+ var m = function() {
76
+ d = this, a = arguments, s = Date.now();
77
+ var p = i && !l;
78
+ return l || (l = setTimeout(c, t)), p && (g = e.apply(d, a), d = a = null), g;
17
79
  };
18
- return g.clear = function() {
80
+ return m.clear = function() {
19
81
  l && (clearTimeout(l), l = null);
20
- }, g.flush = function() {
21
- l && (f = e.apply(a, d), a = d = null, clearTimeout(l), l = null);
22
- }, g;
82
+ }, m.flush = function() {
83
+ l && (g = e.apply(d, a), d = a = null, clearTimeout(l), l = null);
84
+ }, m;
23
85
  }
24
86
  ne.debounce = ne;
25
87
  var Ie = ne;
26
- const Me = /* @__PURE__ */ be(Ie);
88
+ const ve = /* @__PURE__ */ xe(Ie);
27
89
  function le({
28
90
  form: e,
29
91
  fieldName: t,
30
92
  triggerType: i = null,
31
93
  debounceTime: l = 500
32
94
  }) {
33
- const d = ue(() => {
95
+ const a = ue(() => {
34
96
  e.trigger(t);
35
- }, [e, t]), a = Y(
36
- () => Me(() => d(), l),
37
- [d, l]
38
- ), s = Y(
39
- () => ["all", "onChange"].includes(i) ? a : null,
40
- [a, i]
41
- ), f = Y(
42
- () => ["all", "onBlur"].includes(i) ? d : null,
97
+ }, [e, t]), d = Q(
98
+ () => ve(() => a(), l),
99
+ [a, l]
100
+ ), s = Q(
101
+ () => ["all", "onChange"].includes(i) ? d : null,
102
+ [d, i]
103
+ ), g = Q(
104
+ () => ["all", "onBlur"].includes(i) ? a : null,
43
105
  [i]
44
106
  );
45
- return Y(
107
+ return Q(
46
108
  () => ({
47
109
  onChangeTrigger: s,
48
- onBlurTrigger: f
110
+ onBlurTrigger: g
49
111
  }),
50
- [s, f]
112
+ [s, g]
51
113
  );
52
114
  }
53
- const So = ({
115
+ const Co = ({
54
116
  form: e,
55
117
  name: t,
56
118
  label: i,
57
119
  options: l,
58
- readonly: d = !1,
59
- disabled: a = !1,
120
+ readonly: a = !1,
121
+ disabled: d = !1,
60
122
  optionsMap: s,
61
- width: f = "100%",
62
- flex: h,
63
- placeholder: g,
64
- onSelect: m,
65
- parser: u,
66
- filter: x,
67
- tooltipProps: H = {},
68
- infoProps: N = {},
69
- maxHeigthMenu: j,
70
- isRequired: C = !1,
71
- onRemoveSelected: E,
72
- triggerFormField: p = null,
73
- displayText: I,
74
- ...v
123
+ width: g = "100%",
124
+ flex: c,
125
+ placeholder: m,
126
+ onSelect: p,
127
+ parser: h,
128
+ filter: S,
129
+ tooltipProps: u = {},
130
+ infoProps: C = {},
131
+ maxHeigthMenu: z,
132
+ isRequired: j = !1,
133
+ onRemoveSelected: L,
134
+ triggerFormField: b = null,
135
+ displayText: v,
136
+ ...M
75
137
  }) => {
76
- const { onChangeTrigger: w } = le({
138
+ const { onChangeTrigger: k } = le({
77
139
  form: e,
78
140
  fieldName: t,
79
- triggerType: p,
141
+ triggerType: b,
80
142
  debounceTime: 0
81
- }), q = {
143
+ }), J = {
82
144
  position: "top",
83
- ...H
84
- }, L = {
85
- ...N,
145
+ ...u
146
+ }, A = {
147
+ ...C,
86
148
  tooltipProps: {
87
149
  position: "top",
88
150
  maxWidth: "300px",
89
- ...N == null ? void 0 : N.tooltipProps
151
+ ...C == null ? void 0 : C.tooltipProps
90
152
  }
91
- }, T = ($, M) => {
92
- let R = $;
93
- u && (R = u == null ? void 0 : u($)), M(R), m == null || m(R), w == null || w();
94
- }, S = Y(() => U(s) ? s : Object.fromEntries(l.map(($) => [$.value, $])), [l, s]);
95
- return /* @__PURE__ */ n.jsx(_, { width: f, flex: h, children: /* @__PURE__ */ n.jsx(
153
+ }, T = (w, R) => {
154
+ let H = w;
155
+ h && (H = h == null ? void 0 : h(w)), R(H), p == null || p(H), k == null || k();
156
+ }, x = Q(() => G(s) ? s : Object.fromEntries(l.map((w) => [w.value, w])), [l, s]);
157
+ return /* @__PURE__ */ n.jsx(_, { width: g, flex: c, children: /* @__PURE__ */ n.jsx(
96
158
  re,
97
159
  {
98
160
  name: t,
99
161
  control: e.control,
100
162
  render: ({
101
- field: { onChange: $, value: M },
102
- fieldState: { error: R = null }
163
+ field: { onChange: w, value: R },
164
+ fieldState: { error: H = null }
103
165
  }) => {
104
- let y = S[M];
166
+ let B = x[R];
105
167
  return /* @__PURE__ */ n.jsx(
106
- ge,
168
+ me,
107
169
  {
108
170
  label: i,
109
171
  width: "100%",
110
172
  size: "Small",
111
- disabled: a,
112
- readonly: d,
113
- filter: x,
114
- errorMessage: R == null ? void 0 : R.message,
115
- placeholder: g,
116
- value: y,
117
- handleOption: (c) => {
118
- T(c.value, $);
173
+ disabled: d,
174
+ readonly: a,
175
+ filter: S,
176
+ errorMessage: H == null ? void 0 : H.message,
177
+ placeholder: m,
178
+ value: B,
179
+ handleOption: (f) => {
180
+ T(f.value, w);
119
181
  },
120
- tooltipProps: q,
182
+ tooltipProps: J,
121
183
  options: l,
122
- maxHeigthMenu: j,
123
- infoProps: L,
124
- maxHeightMenu: j,
125
- isRequired: C,
126
- onRemoveSelected: E,
127
- displayText: I,
128
- ...v
184
+ maxHeigthMenu: z,
185
+ infoProps: A,
186
+ maxHeightMenu: z,
187
+ isRequired: j,
188
+ onRemoveSelected: L,
189
+ displayText: v,
190
+ ...M
129
191
  }
130
192
  );
131
193
  }
132
194
  }
133
195
  ) });
134
- }, ve = ({
196
+ }, Re = ({
135
197
  form: e,
136
198
  name: t,
137
199
  label: i,
138
200
  readonly: l = !1,
139
- disabled: d = !1,
140
- width: a = "100%",
201
+ disabled: a = !1,
202
+ width: d = "100%",
141
203
  height: s = "100%",
142
- flex: f,
143
- placeholder: h,
144
- charactersCounter: g = !0,
145
- maxlength: m = 1e3,
146
- resize: u = !0,
147
- triggerFormField: x = null,
148
- minHeight: H,
149
- maxHeight: N,
150
- ...j
204
+ flex: g,
205
+ placeholder: c,
206
+ charactersCounter: m = !0,
207
+ maxlength: p = 1e3,
208
+ resize: h = !0,
209
+ triggerFormField: S = null,
210
+ minHeight: u,
211
+ maxHeight: C,
212
+ ...z
151
213
  }) => {
152
- const { onChangeTrigger: C } = le({
214
+ const { onChangeTrigger: j } = le({
153
215
  form: e,
154
216
  fieldName: t,
155
- triggerType: x
156
- }), E = (p, I) => {
157
- I(p), C == null || C();
217
+ triggerType: S
218
+ }), L = (b, v) => {
219
+ v(b), j == null || j();
158
220
  };
159
- return /* @__PURE__ */ n.jsx(_, { width: a, flex: f, height: s, children: /* @__PURE__ */ n.jsx(
221
+ return /* @__PURE__ */ n.jsx(_, { width: d, flex: g, height: s, children: /* @__PURE__ */ n.jsx(
160
222
  re,
161
223
  {
162
224
  name: t,
163
225
  control: e.control,
164
226
  render: ({
165
- field: { onChange: p, value: I },
166
- fieldState: { error: v = null }
227
+ field: { onChange: b, value: v },
228
+ fieldState: { error: M = null }
167
229
  }) => /* @__PURE__ */ n.jsx(
168
- xe,
230
+ we,
169
231
  {
170
232
  label: i,
171
- value: I || "",
233
+ value: v || "",
172
234
  width: "100%",
173
- disabled: d,
235
+ disabled: a,
174
236
  readonly: l,
175
237
  height: s,
176
- minHeight: H,
177
- maxHeight: N,
178
- errorMessage: v == null ? void 0 : v.message,
179
- placeholder: h,
180
- onChange: (w) => E(w.target.value, p),
181
- charactersCounter: g,
182
- maxlength: m,
238
+ minHeight: u,
239
+ maxHeight: C,
240
+ errorMessage: M == null ? void 0 : M.message,
241
+ placeholder: c,
242
+ onChange: (k) => L(k.target.value, b),
243
+ charactersCounter: m,
244
+ maxlength: p,
183
245
  size: "Small",
184
- resize: u,
185
- ...j
246
+ resize: h,
247
+ ...z
186
248
  }
187
249
  )
188
250
  }
189
251
  ) });
190
252
  };
191
- ve.displayName = "TextareaField";
192
- const $o = ({
253
+ Re.displayName = "TextareaField";
254
+ const ko = ({
193
255
  form: e,
194
256
  name: t,
195
257
  id: i = t,
196
258
  label: l,
197
- readonly: d = !1,
198
- disabled: a = !1,
259
+ readonly: a = !1,
260
+ disabled: d = !1,
199
261
  afterCheck: s,
200
- width: f = "100%",
201
- formatter: h,
202
- parser: g,
203
- flex: m,
204
- size: u = "Medium",
205
- triggerFormField: x = null,
206
- ...H
262
+ width: g = "100%",
263
+ formatter: c,
264
+ parser: m,
265
+ flex: p,
266
+ size: h = "Medium",
267
+ triggerFormField: S = null,
268
+ ...u
207
269
  }) => {
208
- const { onChangeTrigger: N } = le({
270
+ const { onChangeTrigger: C } = le({
209
271
  form: e,
210
272
  fieldName: t,
211
- triggerType: x,
273
+ triggerType: S,
212
274
  debounceTime: 0
213
- }), j = (C, E) => {
214
- E(C), s == null || s(C), N == null || N();
275
+ }), z = (j, L) => {
276
+ L(j), s == null || s(j), C == null || C();
215
277
  };
216
- return /* @__PURE__ */ n.jsx(_, { width: f, flex: m, children: /* @__PURE__ */ n.jsx(
278
+ return /* @__PURE__ */ n.jsx(_, { width: g, flex: p, children: /* @__PURE__ */ n.jsx(
217
279
  re,
218
280
  {
219
281
  name: t,
220
282
  control: e.control,
221
283
  render: ({
222
- field: { onChange: C, value: E },
223
- fieldState: { error: p = null }
284
+ field: { onChange: j, value: L },
285
+ fieldState: { error: b = null }
224
286
  }) => {
225
- const I = p == null ? void 0 : p.message;
226
- return I && console.log("Error on checkbox!", I), /* @__PURE__ */ n.jsx(
227
- we,
287
+ const v = b == null ? void 0 : b.message;
288
+ return v && console.log("Error on checkbox!", v), /* @__PURE__ */ n.jsx(
289
+ ye,
228
290
  {
229
291
  id: `form-checkbox-${i}`,
230
- checked: (h == null ? void 0 : h(E)) ?? E,
292
+ checked: (c == null ? void 0 : c(L)) ?? L,
231
293
  name: t,
232
294
  label: l,
233
- disabled: a || d,
234
- onChange: (v) => {
235
- j(
236
- (g == null ? void 0 : g(v.target.checked, E)) ?? v.target.checked,
237
- C
295
+ disabled: d || a,
296
+ onChange: (M) => {
297
+ z(
298
+ (m == null ? void 0 : m(M.target.checked, L)) ?? M.target.checked,
299
+ j
238
300
  );
239
301
  },
240
- size: u,
241
- ...H
302
+ size: h,
303
+ ...u
242
304
  }
243
305
  );
244
306
  }
245
307
  }
246
308
  ) });
247
- }, He = k.ul`
248
- ${G}
309
+ }, Me = $.ul`
310
+ ${q}
249
311
  position: fixed;
250
312
  margin-top: ${({ marginTop: e }) => e};
251
313
  padding: ${o.spacings.spacingStack.spacingStackXs} 4px
@@ -274,16 +336,16 @@ const $o = ({
274
336
  background: ${o.colors.neutralColors.colorNeutralClean};
275
337
  border-radius: ${o.borders.borderRadius.borderRadiusPill};
276
338
  }
277
- `, Re = k.li`
278
- ${G}
339
+ `, Fe = $.li`
340
+ ${q}
279
341
  font-family: ${o.fonts.fontFamily.fontFamilyPrimary};
280
342
  font-size: ${({ size: e }) => e === "Small" ? o.fonts.fontSize.fontSizeBodyMd : o.fonts.fontSize.fontSizeBodyLg};
281
343
  padding: ${o.spacings.spacingInline.spacingInlineXs};
282
344
  margin: 0 ${o.spacings.spacingInline.spacingInlineXs};
283
345
  cursor: default;
284
346
  color: ${o.colors.neutralColors.colorNeutralDark};
285
- `, Fe = k.li`
286
- ${G}
347
+ `, He = $.li`
348
+ ${q}
287
349
  display: flex;
288
350
  flex: 2;
289
351
  flex-direction: ${({ menuOptionFlexDirection: e }) => e};
@@ -297,7 +359,7 @@ const $o = ({
297
359
  min-width: 0;
298
360
  & > p {
299
361
  display: -webkit-box;
300
- ${({ truncateText: e }) => e && A`
362
+ ${({ truncateText: e }) => e && F`
301
363
  -webkit-line-clamp: 2;
302
364
  -webkit-box-orient: vertical;
303
365
  overflow: hidden;
@@ -305,7 +367,7 @@ const $o = ({
305
367
  text-overflow: ellipsis;
306
368
  }
307
369
 
308
- ${({ hasDescription: e }) => e && A`
370
+ ${({ hasDescription: e }) => e && F`
309
371
  line-height: ${o.fonts.lineHeight.lineHeightMd(
310
372
  o.fonts.fontSize.fontSizeBodyMd
311
373
  )};
@@ -316,8 +378,8 @@ const $o = ({
316
378
  color: ${({ disabled: t }) => t ? o.colors.neutralColors.colorNeutralCleanest : o.colors.neutralColors.colorNeutralCloudy};
317
379
  }
318
380
  `}
319
- `, Ee = k.li`
320
- ${G}
381
+ `, Ee = $.li`
382
+ ${q}
321
383
  font-size: ${({ size: e }) => e === "Small" ? o.fonts.fontSize.fontSizeBodySm : o.fonts.fontSize.fontSizeBodyMd};
322
384
  font-family: ${o.fonts.fontFamily.fontFamilyPrimary};
323
385
  font-weight: ${o.fonts.fontWeight.fontWeightSemiBold};
@@ -327,20 +389,20 @@ const $o = ({
327
389
  margin: ${({ size: e }) => e === "Small" ? `${o.spacings.spacingStack.spacingStackSm} ${o.spacings.spacingInline.spacingInlineXs}
328
390
  ${o.spacings.spacingStack.spacingStackNano}` : `${o.spacings.spacingStack.spacingStackSm} ${o.spacings.spacingInline.spacingInlineXs}
329
391
  ${o.spacings.spacingStack.spacingStackXs}`};
330
- `, Ae = k.span`
331
- ${G}
392
+ `, Le = $.span`
393
+ ${q}
332
394
  font-family: ${o.fonts.fontFamily.fontFamilyPrimary};
333
395
  font-size: ${({ size: e }) => e === "Small" ? o.fonts.fontSize.fontSizeBodyMd : o.fonts.fontSize.fontSizeBodyLg};
334
396
  font-weight: ${o.fonts.fontWeight.fontWeightSemiBold};
335
397
  line-height: ${({ size: e }) => e === "Small" ? o.fonts.lineHeight.lineHeightSm(o.fonts.fontSize.fontSizeBodyMd) : o.fonts.lineHeight.lineHeightMd(o.fonts.fontSize.fontSizeBodyLg)};
336
- `, Le = k.div`
337
- ${G}
398
+ `, Ae = $.div`
399
+ ${q}
338
400
  display: flex;
339
401
  font-family: ${o.fonts.fontFamily.fontFamilyPrimary};
340
402
 
341
403
  & > p {
342
404
  width: 100%;
343
- ${({ truncateText: e }) => e && A`
405
+ ${({ truncateText: e }) => e && F`
344
406
  display: -webkit-box;
345
407
  -webkit-line-clamp: 2;
346
408
  -webkit-box-orient: vertical;
@@ -349,8 +411,8 @@ const $o = ({
349
411
  text-overflow: ellipsis;
350
412
  text-align: start;
351
413
  }
352
- `, Te = k.div`
353
- ${G}
414
+ `, Te = $.div`
415
+ ${q}
354
416
  display: flex;
355
417
  flex-direction: row;
356
418
  align-items: center;
@@ -360,161 +422,161 @@ const $o = ({
360
422
  background-color: ${({ highlightedIndex: e, disabled: t }) => e ? t ? o.colors.backgroundColors.colorBackgroundSnow : o.colors.neutralColors.colorNeutralLight : o.colors.backgroundColors.colorBackgroundSnow};
361
423
  border-radius: ${o.borders.borderRadius.borderRadiusSm};
362
424
  min-height: ${({ size: e }) => e === "Small" ? "28px" : "40px"};
363
- `, Pe = k.div`
364
- ${G}
425
+ `, Pe = $.div`
426
+ ${q}
365
427
  padding: ${({ iconPosition: e }) => e === "left" ? `0 ${o.spacings.spacingInline.spacingInlineNano} 0 0` : `0 0 0 ${o.spacings.spacingInline.spacingInlineNano}`};
366
428
  margin: 0;
367
429
  display: flex;
368
430
  align-self: center;
369
- `, De = (e, t, i = 0, l = 0, d = "left") => {
370
- const [a, s] = P(0), [f, h] = P(), g = Q(null), m = ue(() => {
371
- if (!e.current || !g.current) return;
372
- const u = e.current.getBoundingClientRect(), x = g.current.getBoundingClientRect(), H = window.innerHeight, N = window.innerWidth, j = u.top, C = H - u.bottom, E = C < x.height + l && j > C;
373
- let p;
374
- E ? (p = u.top - x.height - i, g.current.style.maxHeight = `${j - i}px`) : (p = u.bottom + l, g.current.style.maxHeight = `${C - l}px`);
375
- let I = u.left;
376
- const v = I + x.width - N;
377
- v > 0 && (I -= v), I < 0 && (I = 0);
378
- const w = N - u.right;
379
- Object.assign(g.current.style, {
431
+ `, Oe = (e, t, i = 0, l = 0, a = "left") => {
432
+ const [d, s] = P(0), [g, c] = P(), m = U(null), p = ue(() => {
433
+ if (!e.current || !m.current) return;
434
+ const h = e.current.getBoundingClientRect(), S = m.current.getBoundingClientRect(), u = window.innerHeight, C = window.innerWidth, z = h.top, j = u - h.bottom, L = j < S.height + l && z > j;
435
+ let b;
436
+ L ? (b = h.top - S.height - i, m.current.style.maxHeight = `${z - i}px`) : (b = h.bottom + l, m.current.style.maxHeight = `${j - l}px`);
437
+ let v = h.left;
438
+ const M = v + S.width - C;
439
+ M > 0 && (v -= M), v < 0 && (v = 0);
440
+ const k = C - h.right;
441
+ Object.assign(m.current.style, {
380
442
  position: "fixed",
381
- top: `${p}px`,
382
- ...d === "left" ? { left: `${I}px` } : { right: `${w}px` },
383
- width: `${Math.max(u.width, x.width)}px`,
443
+ top: `${b}px`,
444
+ ...a === "left" ? { left: `${v}px` } : { right: `${k}px` },
445
+ width: `${Math.max(h.width, S.width)}px`,
384
446
  overflowY: "auto"
385
447
  });
386
- }, [i, l, d]);
448
+ }, [i, l, a]);
387
449
  return Z(() => {
388
- var x;
389
- s(0), h((x = e.current) == null ? void 0 : x.clientWidth), m();
390
- const u = () => m();
391
- return window.addEventListener("scroll", u, !0), window.addEventListener("resize", u), () => {
392
- window.removeEventListener("scroll", u, !0), window.removeEventListener("resize", u);
450
+ var S;
451
+ s(0), c((S = e.current) == null ? void 0 : S.clientWidth), p();
452
+ const h = () => p();
453
+ return window.addEventListener("scroll", h, !0), window.addEventListener("resize", h), () => {
454
+ window.removeEventListener("scroll", h, !0), window.removeEventListener("resize", h);
393
455
  };
394
- }, [e, m]), {
395
- highlightedIndex: a,
456
+ }, [e, p]), {
457
+ highlightedIndex: d,
396
458
  setHighlightedIndex: s,
397
- isOptionSelected: (u) => u.label === (t == null ? void 0 : t.label),
398
- optionsRef: g,
399
- parentWidth: f
459
+ isOptionSelected: (h) => h.label === (t == null ? void 0 : t.label),
460
+ optionsRef: m,
461
+ parentWidth: g
400
462
  };
401
- }, ie = he(
463
+ }, ie = ge(
402
464
  ({
403
465
  selectContainerRef: e,
404
466
  optionsSelect: t,
405
467
  size: i,
406
468
  selectOption: l,
407
- value: d,
408
- inputValue: a,
469
+ value: a,
470
+ inputValue: d,
409
471
  widthMenu: s,
410
- maxHeightMenu: f = "180px",
411
- menuIsOpen: h,
412
- onEnter: g,
413
- marginTop: m = "4px",
414
- iconName: u,
415
- iconColor: x,
416
- iconPosition: H,
417
- topOffset: N = 0,
418
- bottomOffset: j = 0,
419
- truncateText: C = !0,
420
- menuJustifyContent: E = "flex-start",
421
- tableActionButton: p,
422
- menuLateralPadding: I = "8px",
423
- menuOptionFlexDirection: v = "column",
424
- confirmSelection: w,
425
- menuAlign: q = "left"
426
- }, L) => {
427
- U(u) && (u += "Ant");
472
+ maxHeightMenu: g = "180px",
473
+ menuIsOpen: c,
474
+ onEnter: m,
475
+ marginTop: p = "4px",
476
+ iconName: h,
477
+ iconColor: S,
478
+ iconPosition: u,
479
+ topOffset: C = 0,
480
+ bottomOffset: z = 0,
481
+ truncateText: j = !0,
482
+ menuJustifyContent: L = "flex-start",
483
+ tableActionButton: b,
484
+ menuLateralPadding: v = "8px",
485
+ menuOptionFlexDirection: M = "column",
486
+ confirmSelection: k,
487
+ menuAlign: J = "left"
488
+ }, A) => {
489
+ G(h) && (h += "Ant");
428
490
  const {
429
491
  highlightedIndex: T,
430
- setHighlightedIndex: S,
431
- isOptionSelected: $,
432
- optionsRef: M,
433
- parentWidth: R
434
- } = De(
492
+ setHighlightedIndex: x,
493
+ isOptionSelected: w,
494
+ optionsRef: R,
495
+ parentWidth: H
496
+ } = Oe(
435
497
  e,
436
- d,
437
- N,
438
- j,
439
- q
498
+ a,
499
+ C,
500
+ z,
501
+ J
440
502
  );
441
503
  Z(() => {
442
- const r = (b) => {
443
- if (h) {
444
- if (b.key === "ArrowDown")
445
- b.preventDefault(), S(
446
- (z) => z < t.length - 1 ? z + 1 : z
504
+ const r = (y) => {
505
+ if (c) {
506
+ if (y.key === "ArrowDown")
507
+ y.preventDefault(), x(
508
+ (N) => N < t.length - 1 ? N + 1 : N
447
509
  );
448
- else if (b.key === "ArrowUp")
449
- b.preventDefault(), S(
450
- (z) => z > 0 ? z - 1 : 0
510
+ else if (y.key === "ArrowUp")
511
+ y.preventDefault(), x(
512
+ (N) => N > 0 ? N - 1 : 0
451
513
  );
452
- else if (b.key === "Enter" && t[T]) {
453
- b.preventDefault();
454
- const z = t[T];
455
- l(z), g && g(z);
514
+ else if (y.key === "Enter" && t[T]) {
515
+ y.preventDefault();
516
+ const N = t[T];
517
+ l(N), m && m(N);
456
518
  }
457
519
  }
458
520
  };
459
521
  return window.addEventListener("keydown", r), () => window.removeEventListener("keydown", r);
460
522
  }, [
461
- h,
523
+ c,
462
524
  t,
463
525
  T,
464
- g,
526
+ m,
465
527
  l,
466
- w
528
+ k
467
529
  ]);
468
- const y = (r) => typeof r == "string" ? r : We.isValidElement(r) && typeof r.props.children == "string" ? r.props.children : String(r), c = (r, b) => {
469
- var F, W;
470
- if (H !== b) return null;
471
- const z = U((F = r.tooltipProps) == null ? void 0 : F.label), B = r.iconName || u || "InfoFill0Sm", O = /* @__PURE__ */ n.jsx(
530
+ const B = (r) => typeof r == "string" ? r : je.isValidElement(r) && typeof r.props.children == "string" ? r.props.children : String(r), f = (r, y) => {
531
+ var E, I;
532
+ if (u !== y) return null;
533
+ const N = G((E = r.tooltipProps) == null ? void 0 : E.label), W = r.iconName || h || "InfoFill0Sm", D = /* @__PURE__ */ n.jsx(
472
534
  Pe,
473
535
  {
474
- iconPosition: (W = r.tooltipProps) == null ? void 0 : W.position,
536
+ iconPosition: (I = r.tooltipProps) == null ? void 0 : I.position,
475
537
  id: `iconContainer-${r.value}`,
476
538
  children: /* @__PURE__ */ n.jsx(
477
539
  V,
478
540
  {
479
- iconName: B,
480
- color: r.disabled ? o.colors.neutralColors.colorNeutralCleanest : $(r) ? o.colors.brandColors.colorBrandSoft : x ?? o.colors.neutralColors.colorNeutralDark
541
+ iconName: W,
542
+ color: r.disabled ? o.colors.neutralColors.colorNeutralCleanest : w(r) ? o.colors.brandColors.colorBrandSoft : S ?? o.colors.neutralColors.colorNeutralDark
481
543
  }
482
544
  )
483
545
  }
484
546
  );
485
- return z ? /* @__PURE__ */ n.jsx(de, { ...r == null ? void 0 : r.tooltipProps, isActive: !0, children: O }) : O;
547
+ return N ? /* @__PURE__ */ n.jsx(fe, { ...r == null ? void 0 : r.tooltipProps, isActive: !0, children: D }) : D;
486
548
  };
487
549
  return /* @__PURE__ */ n.jsx(
488
- He,
550
+ Me,
489
551
  {
490
- marginTop: m,
491
- width: s ?? `${R}px`,
492
- maxHeight: f,
552
+ marginTop: p,
553
+ width: s ?? `${H}px`,
554
+ maxHeight: g,
493
555
  height: "fit-content",
494
556
  ref: (r) => {
495
- M.current = r, typeof L == "function" ? L(r) : L && (L.current = r);
557
+ R.current = r, typeof A == "function" ? A(r) : A && (A.current = r);
496
558
  },
497
559
  "data-testid": "MenuSelect",
498
560
  id: "MenuSelect",
499
- children: t.length === 0 ? /* @__PURE__ */ n.jsx(Re, { size: i, children: "Sem opções" }) : t.map((r, b) => {
500
- var O, F;
501
- const z = typeof r.render == "function" ? r.render() : null, B = y(r.label);
561
+ children: t.length === 0 ? /* @__PURE__ */ n.jsx(Fe, { size: i, children: "Sem opções" }) : t.map((r, y) => {
562
+ var D, E;
563
+ const N = typeof r.render == "function" ? r.render() : null, W = B(r.label);
502
564
  if (r.isSection)
503
- return /* @__PURE__ */ n.jsx(Ee, { size: i, children: B }, B);
565
+ return /* @__PURE__ */ n.jsx(Ee, { size: i, children: W }, W);
504
566
  {
505
- const W = B.toLowerCase().indexOf((a == null ? void 0 : a.toLowerCase()) || "");
567
+ const I = W.toLowerCase().indexOf((d == null ? void 0 : d.toLowerCase()) || "");
506
568
  return /* @__PURE__ */ n.jsxs(
507
569
  Te,
508
570
  {
509
- isOptionSelected: $(r),
510
- highlightedIndex: b === T,
571
+ isOptionSelected: w(r),
572
+ highlightedIndex: y === T,
511
573
  onClick: (X) => {
512
- X.stopPropagation(), r.disabled || (w ? ye({
574
+ X.stopPropagation(), r.disabled || (k ? Ce({
513
575
  id: "select-option",
514
- title: w.title,
515
- description: w.description,
516
- icon: w.icon,
517
- iconColor: w.iconColor,
576
+ title: k.title,
577
+ description: k.description,
578
+ icon: k.icon,
579
+ iconColor: k.iconColor,
518
580
  leftButtonProps: {
519
581
  name: "Cancelar",
520
582
  variant: "tertiary",
@@ -528,54 +590,54 @@ const $o = ({
528
590
  }
529
591
  }) : l(r));
530
592
  },
531
- onMouseEnter: () => S(b),
593
+ onMouseEnter: () => x(y),
532
594
  disabled: r.disabled,
533
595
  size: i,
534
- menuLateralPadding: I,
596
+ menuLateralPadding: v,
535
597
  children: [
536
- c(r, "left"),
598
+ f(r, "left"),
537
599
  /* @__PURE__ */ n.jsxs(
538
- Fe,
600
+ He,
539
601
  {
540
- menuOptionFlexDirection: v,
541
- menuJustifyContent: E,
542
- iconName: u,
543
- isOptionSelected: $(r),
544
- highlightedIndex: b === T,
602
+ menuOptionFlexDirection: M,
603
+ menuJustifyContent: L,
604
+ iconName: h,
605
+ isOptionSelected: w(r),
606
+ highlightedIndex: y === T,
545
607
  "data-testid": r.value,
546
608
  size: i,
547
609
  hasDescription: !!r.description,
548
610
  optionValue: r.value,
549
611
  disabled: r.disabled,
550
- truncateText: C,
551
- tableActionButton: p,
612
+ truncateText: j,
613
+ tableActionButton: b,
552
614
  children: [
553
615
  /* @__PURE__ */ n.jsxs(
554
- Le,
616
+ Ae,
555
617
  {
556
- truncateText: !se(r.label) && C,
618
+ truncateText: !se(r.label) && j,
557
619
  children: [
558
- z,
620
+ N,
559
621
  se(r.label) ? /* @__PURE__ */ n.jsx(
560
622
  "p",
561
623
  {
562
- title: ((O = r == null ? void 0 : r.tooltipProps) == null ? void 0 : O.label) ?? y(r.label),
624
+ title: ((D = r == null ? void 0 : r.tooltipProps) == null ? void 0 : D.label) ?? B(r.label),
563
625
  children: r.label
564
626
  }
565
627
  ) : /* @__PURE__ */ n.jsx(
566
628
  "p",
567
629
  {
568
- title: ((F = r == null ? void 0 : r.tooltipProps) == null ? void 0 : F.label) ?? B,
569
- children: a && W >= 0 ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
570
- B.substring(0, W),
571
- /* @__PURE__ */ n.jsx(Ae, { size: i, children: B.substring(
572
- W,
573
- W + ((a == null ? void 0 : a.length) || 0)
630
+ title: ((E = r == null ? void 0 : r.tooltipProps) == null ? void 0 : E.label) ?? W,
631
+ children: d && I >= 0 ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
632
+ W.substring(0, I),
633
+ /* @__PURE__ */ n.jsx(Le, { size: i, children: W.substring(
634
+ I,
635
+ I + ((d == null ? void 0 : d.length) || 0)
574
636
  ) }),
575
- B.substring(
576
- W + ((a == null ? void 0 : a.length) || 0)
637
+ W.substring(
638
+ I + ((d == null ? void 0 : d.length) || 0)
577
639
  )
578
- ] }) : B
640
+ ] }) : W
579
641
  }
580
642
  )
581
643
  ]
@@ -585,7 +647,7 @@ const $o = ({
585
647
  ]
586
648
  }
587
649
  ),
588
- c(r, "right")
650
+ f(r, "right")
589
651
  ]
590
652
  },
591
653
  String(r.value)
@@ -597,30 +659,30 @@ const $o = ({
597
659
  }
598
660
  );
599
661
  ie.displayName = "MenuSelect";
600
- const Oe = ({
662
+ const De = ({
601
663
  title: e,
602
664
  iconName: t,
603
665
  onClickIcon: i,
604
666
  width: l,
605
- height: d,
606
- flex: a,
667
+ height: a,
668
+ flex: d,
607
669
  children: s,
608
- wrapperCustomStyles: f = {},
609
- contentCustomStyles: h = {},
610
- titleCustomStyles: g = {}
670
+ wrapperCustomStyles: g = {},
671
+ contentCustomStyles: c = {},
672
+ titleCustomStyles: m = {}
611
673
  }) => /* @__PURE__ */ n.jsxs(
612
674
  _,
613
675
  {
614
676
  width: l,
615
- height: d,
616
- flex: a,
677
+ height: a,
678
+ flex: d,
617
679
  direction: "vertical",
618
680
  padding: o.spacings.spacingStack.spacingStackSm,
619
681
  customStyles: {
620
682
  backgroundColor: o.colors.backgroundColors.colorBackgroundSnow,
621
683
  border: `1px solid ${o.colors.neutralColors.colorNeutralSoft}`,
622
684
  borderRadius: "8px",
623
- ...f
685
+ ...g
624
686
  },
625
687
  children: [
626
688
  /* @__PURE__ */ n.jsxs(
@@ -628,18 +690,18 @@ const Oe = ({
628
690
  {
629
691
  width: "100%",
630
692
  direction: "horizontal",
631
- customStyles: h,
693
+ customStyles: c,
632
694
  children: [
633
- e ? /* @__PURE__ */ n.jsx(_, { width: "fit-content", customStyles: g, children: /* @__PURE__ */ n.jsx(fe, { title: e, divider: !1 }) }) : null,
695
+ e ? /* @__PURE__ */ n.jsx(_, { width: "fit-content", customStyles: m, children: /* @__PURE__ */ n.jsx(ce, { title: e, divider: !1 }) }) : null,
634
696
  t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
635
- /* @__PURE__ */ n.jsx(Ce, { size: "auto", direction: "horizontal" }),
697
+ /* @__PURE__ */ n.jsx(ke, { size: "auto", direction: "horizontal" }),
636
698
  /* @__PURE__ */ n.jsx(
637
699
  V,
638
700
  {
639
701
  iconName: t,
640
702
  onClick: () => i == null ? void 0 : i(),
641
- color: U(i) ? o.colors.neutralColors.colorNeutralDark : o.colors.neutralColors.colorNeutralCloudy,
642
- cursorPointer: U(i)
703
+ color: G(i) ? o.colors.neutralColors.colorNeutralDark : o.colors.neutralColors.colorNeutralCloudy,
704
+ cursorPointer: G(i)
643
705
  }
644
706
  )
645
707
  ] }) : null
@@ -650,9 +712,9 @@ const Oe = ({
650
712
  ]
651
713
  }
652
714
  );
653
- Oe.displayName = "Section";
654
- const Xe = k.div`
655
- ${G}
715
+ De.displayName = "Section";
716
+ const Xe = $.div`
717
+ ${q}
656
718
  display: flex;
657
719
  flex-direction: column;
658
720
  width: ${({ width: e }) => e};
@@ -660,22 +722,22 @@ const Xe = k.div`
660
722
  &:hover {
661
723
  cursor: ${({ disabled: e, readonly: t }) => e || t ? "default" : "pointer"};
662
724
  }
663
- `, _e = k.div`
725
+ `, _e = $.div`
664
726
  width: 100%;
665
- ${({ variant: e }) => e === "default" ? A`
727
+ ${({ variant: e }) => e === "default" ? F`
666
728
  min-height: ${({ size: t }) => t === "Small" ? "3.2rem" : "4rem"};
667
729
  max-height: ${({ size: t }) => t === "Small" ? "3.2rem" : "4rem"};
668
- ` : A`
730
+ ` : F`
669
731
  min-height: ${({ size: t }) => t === "Small" ? "1rem" : "3.2rem"};
670
732
  max-height: ${({ size: t }) => t === "Small" ? "1rem" : "3.2rem"};
671
733
  `}
672
734
 
673
735
  display: flex;
674
736
  align-items: center;
675
- ${({ variant: e }) => e === "default" && A`
737
+ ${({ variant: e }) => e === "default" && F`
676
738
  border: ${o.borders.borderWidth.borderWidthThinner} solid;
677
739
  border-radius: ${o.borders.borderRadius.borderRadiusSm};
678
- border-color: ${({ isOpen: t, hasError: i, readonly: l, disabled: d }) => i ? o.colors.feedbackColors.colorFeedbackError : l || d ? o.colors.neutralColors.colorNeutralClean : t ? o.colors.neutralColors.colorNeutralCloudy : o.colors.neutralColors.colorNeutralClean};
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};
679
741
  `}
680
742
 
681
743
  background-color: ${({ variant: e }) => e === "default" ? o.colors.backgroundColors.colorBackgroundSnow : "transparent"};
@@ -685,28 +747,28 @@ const Xe = k.div`
685
747
  if (t === "default")
686
748
  return e !== "Small" ? `0 ${o.spacings.spacingInline.spacingInlineSm}` : `0 ${o.spacings.spacingInline.spacingInlineAnt}`;
687
749
  }};
688
- ${({ size: e, variant: t }) => e === "Small" ? t === "default" ? A`
750
+ ${({ size: e, variant: t }) => e === "Small" ? t === "default" ? F`
689
751
  font-size: ${o.fonts.fontSize.fontSizeBodyMd};
690
752
  line-height: ${o.fonts.lineHeight.lineHeightSm(
691
753
  o.fonts.fontSize.fontSizeBodyMd
692
754
  )};
693
- ` : A`
755
+ ` : F`
694
756
  font-size: ${o.fonts.fontSize.fontSizeBodySm};
695
757
  line-height: ${o.fonts.lineHeight.lineHeightSm(
696
758
  o.fonts.fontSize.fontSizeBodySm
697
759
  )};
698
- ` : t === "default" ? A`
760
+ ` : t === "default" ? F`
699
761
  font-size: ${o.fonts.fontSize.fontSizeBodyLg};
700
762
  line-height: ${o.fonts.lineHeight.lineHeightMd(
701
763
  o.fonts.fontSize.fontSizeBodyLg
702
764
  )};
703
- ` : A`
765
+ ` : F`
704
766
  font-size: ${o.fonts.fontSize.fontSizeBodyMd};
705
767
  line-height: ${o.fonts.lineHeight.lineHeightSm(
706
768
  o.fonts.fontSize.fontSizeBodyMd
707
769
  )};
708
770
  `};
709
- ${({ disabled: e, readonly: t }) => (e || t) && A`
771
+ ${({ disabled: e, readonly: t }) => (e || t) && F`
710
772
  background-color: ${o.colors.brandColors.colorBrandSeSoft};
711
773
  border-style: solid;
712
774
  `};
@@ -720,7 +782,7 @@ const Xe = k.div`
720
782
  fill: ${({ disabled: e, readonly: t }) => e || t ? o.colors.neutralColors.colorNeutralCloudy : o.colors.neutralColors.colorNeutralCloudy};
721
783
  }
722
784
  }
723
- `, Ue = k.div`
785
+ `, Ue = $.div`
724
786
  align-items: center;
725
787
  display: flex;
726
788
  flex: 1 1 0%;
@@ -729,7 +791,7 @@ const Xe = k.div`
729
791
  overflow: hidden;
730
792
  min-height: 1em;
731
793
  box-sizing: border-box;
732
- `, ae = k.span`
794
+ `, de = $.span`
733
795
  display: flex;
734
796
  flex-wrap: wrap;
735
797
  width: ${({ isDisplayText: e }) => e ? "100%" : "fit-content"};
@@ -747,7 +809,7 @@ const Xe = k.div`
747
809
  width: ${({ isDisplayText: e }) => e ? "100%" : "fit-content"};
748
810
  font-style: ${({ isDisplayText: e }) => e ? "italic" : "normal"};
749
811
  }
750
- `, Ge = k.span`
812
+ `, Ge = $.span`
751
813
  color: ${o.colors.neutralColors.colorNeutralCleanest};
752
814
  font-size: ${({ size: e, variant: t }) => t === "default" ? e === "Small" ? o.fonts.fontSize.fontSizeBodyMd : o.fonts.fontSize.fontSizeBodyLg : e === "Small" ? o.fonts.fontSize.fontSizeBodySm : o.fonts.fontSize.fontSizeBodyMd};
753
815
  font-family: ${o.fonts.fontFamily.fontFamilyPrimary};
@@ -756,7 +818,7 @@ const Xe = k.div`
756
818
  white-space: nowrap;
757
819
  overflow: hidden;
758
820
  width: fit-content;
759
- `, qe = k.input`
821
+ `, qe = $.input`
760
822
  flex: 1;
761
823
  min-width: 0.1rem;
762
824
  border: none;
@@ -770,14 +832,14 @@ const Xe = k.div`
770
832
  outline: none;
771
833
  cursor: ${({ disabled: e, readOnly: t }) => e || t ? "default" : "pointer"};
772
834
  }
773
- `, Je = k.div`
835
+ `, Je = $.div`
774
836
  width: 100%;
775
837
  display: flex;
776
838
  flex-direction: row;
777
839
  gap: 4px;
778
840
  justify-content: flex-start;
779
841
  margin-bottom: ${o.spacings.spacingStack.spacingStackNano};
780
- `, Ye = k.label`
842
+ `, Ye = $.label`
781
843
  font-size: ${o.fonts.fontSize.fontSizeBodyMd};
782
844
  font-weight: ${o.fonts.fontWeight.fontWeightRegular};
783
845
  font-family: ${o.fonts.fontFamily.fontFamilyPrimary};
@@ -786,7 +848,7 @@ const Xe = k.div`
786
848
  )};
787
849
  color: ${o.colors.neutralColors.colorNeutralCloudy};
788
850
  margin-bottom: ${o.spacings.spacingStack.spacingStackNano};
789
- `, Qe = k.label`
851
+ `, Qe = $.label`
790
852
  font-family: ${o.fonts.fontFamily.fontFamilyPrimary};
791
853
  font-size: ${o.fonts.fontSize.fontSizeBodyMd};
792
854
  font-weight: ${o.fonts.fontWeight.fontWeightRegular};
@@ -795,7 +857,7 @@ const Xe = k.div`
795
857
  )};
796
858
  color: ${o.colors.feedbackColors.colorFeedbackError};
797
859
  `;
798
- k.p`
860
+ $.p`
799
861
  display: inline-block;
800
862
  font-size: ${({ size: e }) => e === "Small" ? o.fonts.fontSize.fontSizeBodySm : o.fonts.fontSize.fontSizeBodyMd};
801
863
  font-weight: ${o.fonts.fontWeight.fontWeightRegular};
@@ -803,7 +865,7 @@ k.p`
803
865
  margin-top: ${o.spacings.spacingInline.spacingInlineNano};
804
866
  width: 100%;
805
867
  `;
806
- const Ve = k.p`
868
+ const Ve = $.p`
807
869
  display: inline-block;
808
870
  font-size: ${({ size: e }) => e === "Small" ? o.fonts.fontSize.fontSizeBodySm : o.fonts.fontSize.fontSizeBodyMd};
809
871
  font-weight: ${o.fonts.fontWeight.fontWeightRegular};
@@ -811,201 +873,201 @@ const Ve = k.p`
811
873
  margin-top: ${o.spacings.spacingInline.spacingInlineNano};
812
874
  width: 100%;
813
875
  `, Ze = (e, { value: t, options: i }) => {
814
- const [l, d] = P(!1), [a, s] = P(!1), [f, h] = P(""), [g, m] = P(i), u = Q(null), x = Q(null), H = Q(null), N = Q(null);
876
+ const [l, a] = P(!1), [d, s] = P(!1), [g, c] = P(""), [m, p] = P(i), h = U(null), S = U(null), u = U(null), C = U(null);
815
877
  Z(() => {
816
- const p = () => {
878
+ const b = () => {
817
879
  s(!1);
818
880
  };
819
- return window.addEventListener("scroll", p, { passive: !0 }), window.addEventListener("resize", p, { passive: !0 }), () => {
820
- window.removeEventListener("scroll", p), window.removeEventListener("resize", p);
881
+ return window.addEventListener("scroll", b, { passive: !0 }), window.addEventListener("resize", b, { passive: !0 }), () => {
882
+ window.removeEventListener("scroll", b), window.removeEventListener("resize", b);
821
883
  };
822
884
  }, []);
823
- function j(p) {
824
- h(""), s(!1), d(!0), H != null && H.current && H.current.focus(), p !== t && e(p);
885
+ function z(b) {
886
+ c(""), s(!1), a(!0), u != null && u.current && u.current.focus(), b !== t && e(b);
825
887
  }
826
- const C = (p) => {
827
- if (p) {
828
- const I = new RegExp(p, "i"), v = i.filter(
829
- (w) => I.exec(w.label)
888
+ const j = (b) => {
889
+ if (b) {
890
+ const v = new RegExp(b, "i"), M = i.filter(
891
+ (k) => v.exec(k.label)
830
892
  );
831
- m(v);
893
+ p(M);
832
894
  } else
833
- m(i);
895
+ p(i);
834
896
  };
835
- function E(p) {
836
- return !p;
897
+ function L(b) {
898
+ return !b;
837
899
  }
838
900
  return {
839
901
  isOpen: l,
840
- setIsOpen: d,
841
- expanded: a,
902
+ setIsOpen: a,
903
+ expanded: d,
842
904
  setExpanded: s,
843
- inputValue: f,
844
- setInputValue: h,
845
- optionsSelect: g,
846
- setOptionSelect: m,
847
- selectContainerRef: u,
848
- containerRef: x,
849
- inputContainerRef: H,
850
- optionsRef: N,
851
- selectOption: j,
852
- handlerFilterOptions: C,
853
- isValue: E
905
+ inputValue: g,
906
+ setInputValue: c,
907
+ optionsSelect: m,
908
+ setOptionSelect: p,
909
+ selectContainerRef: h,
910
+ containerRef: S,
911
+ inputContainerRef: u,
912
+ optionsRef: C,
913
+ selectOption: z,
914
+ handlerFilterOptions: j,
915
+ isValue: L
854
916
  };
855
- }, ge = he(
917
+ }, me = ge(
856
918
  ({
857
919
  value: e,
858
920
  handleOption: t,
859
921
  options: i,
860
922
  filter: l = !0,
861
- placeholder: d,
862
- label: a,
923
+ placeholder: a,
924
+ label: d,
863
925
  size: s = "Medium",
864
- width: f = "100%",
865
- disabled: h,
866
- helpText: g,
867
- readonly: m,
868
- errorMessage: u,
869
- tooltipProps: x = {},
870
- onBlur: H,
871
- onEnter: N,
872
- variant: j = "default",
873
- infoProps: C = {},
874
- maxHeightMenu: E,
875
- isRequired: p = !1,
876
- onRemoveSelected: I,
877
- displayText: v,
878
- displayTextProps: w = {}
879
- }, q) => {
926
+ width: g = "100%",
927
+ disabled: c,
928
+ helpText: m,
929
+ readonly: p,
930
+ errorMessage: h,
931
+ tooltipProps: S = {},
932
+ onBlur: u,
933
+ onEnter: C,
934
+ variant: z = "default",
935
+ infoProps: j = {},
936
+ maxHeightMenu: L,
937
+ isRequired: b = !1,
938
+ onRemoveSelected: v,
939
+ displayText: M,
940
+ displayTextProps: k = {}
941
+ }, J) => {
880
942
  const {
881
- isOpen: L,
943
+ isOpen: A,
882
944
  setIsOpen: T,
883
- expanded: S,
884
- setExpanded: $,
885
- inputValue: M,
886
- setInputValue: R,
887
- optionsSelect: y,
888
- selectContainerRef: c,
945
+ expanded: x,
946
+ setExpanded: w,
947
+ inputValue: R,
948
+ setInputValue: H,
949
+ optionsSelect: B,
950
+ selectContainerRef: f,
889
951
  containerRef: r,
890
- inputContainerRef: b,
891
- selectOption: z,
892
- setOptionSelect: B,
893
- handlerFilterOptions: O,
894
- isValue: F
895
- } = Ze(t, { value: e, options: i }), W = !!u, X = {
896
- label: u,
897
- ...x,
952
+ inputContainerRef: y,
953
+ selectOption: N,
954
+ setOptionSelect: W,
955
+ handlerFilterOptions: D,
956
+ isValue: E
957
+ } = Ze(t, { value: e, options: i }), I = !!h, X = {
958
+ label: h,
959
+ ...S,
898
960
  wrapperWidth: "auto",
899
- isActive: W,
961
+ isActive: I,
900
962
  isErrorTooltip: !0
901
- }, D = {
902
- ...C,
963
+ }, O = {
964
+ ...j,
903
965
  size: s
904
966
  }, K = /* @__PURE__ */ n.jsx(
905
967
  V,
906
968
  {
907
969
  iconName: `Close${s === "Small" ? "Sm" : "Ant"}`,
908
- onClick: (J) => {
909
- J.stopPropagation(), I(e);
970
+ onClick: (Y) => {
971
+ Y.stopPropagation(), v(e);
910
972
  }
911
973
  }
912
- ), te = /* @__PURE__ */ n.jsx(V, { iconName: `ExpandLess${s === "Small" ? "Sm" : "Ant"}` }), $e = /* @__PURE__ */ n.jsx(V, { iconName: `ExpandMore${s === "Small" ? "Sm" : "Ant"}` });
974
+ ), te = /* @__PURE__ */ n.jsx(V, { iconName: `ExpandLess${s === "Small" ? "Sm" : "Ant"}` }), be = /* @__PURE__ */ n.jsx(V, { iconName: `ExpandMore${s === "Small" ? "Sm" : "Ant"}` });
913
975
  return /* @__PURE__ */ n.jsxs(
914
976
  Xe,
915
977
  {
916
- ref: c,
917
- width: f,
978
+ ref: f,
979
+ width: g,
918
980
  size: s,
919
- disabled: h,
920
- readonly: m,
981
+ disabled: c,
982
+ readonly: p,
921
983
  children: [
922
- a && /* @__PURE__ */ n.jsxs(Je, { children: [
923
- /* @__PURE__ */ n.jsxs(Ye, { "data-testid": "label", ref: q, children: [
924
- a,
925
- p && !h ? /* @__PURE__ */ n.jsx(Qe, { children: " *" }) : null
984
+ d && /* @__PURE__ */ n.jsxs(Je, { children: [
985
+ /* @__PURE__ */ n.jsxs(Ye, { "data-testid": "label", ref: J, children: [
986
+ d,
987
+ b && !c ? /* @__PURE__ */ n.jsx(Qe, { children: " *" }) : null
926
988
  ] }),
927
- ((D == null ? void 0 : D.message) || (D == null ? void 0 : D.render)) && /* @__PURE__ */ n.jsx(ke, { ...D })
989
+ ((O == null ? void 0 : O.message) || (O == null ? void 0 : O.render)) && /* @__PURE__ */ n.jsx(ze, { ...O })
928
990
  ] }),
929
- /* @__PURE__ */ n.jsx(de, { ...X, children: /* @__PURE__ */ n.jsxs(
991
+ /* @__PURE__ */ n.jsx(fe, { ...X, children: /* @__PURE__ */ n.jsxs(
930
992
  _e,
931
993
  {
932
- hasError: W,
933
- readonly: m,
994
+ hasError: I,
995
+ readonly: p,
934
996
  ref: r,
935
997
  onBlur: () => {
936
998
  setTimeout(() => {
937
- (L || S) && b.current !== document.activeElement && (H && H(e), T(!1), $(!1));
999
+ (A || x) && y.current !== document.activeElement && (u && u(e), T(!1), w(!1));
938
1000
  }, 250);
939
1001
  },
940
1002
  onClick: () => {
941
- !h && !m && (L && !S ? ($(!0), b != null && b.current && b.current.focus()) : !L && !S ? (T(!0), $(!0), b != null && b.current && b.current.focus()) : (T(!1), $(!1), b != null && b.current && b.current.blur()), !M && B(i));
1003
+ !c && !p && (A && !x ? (w(!0), y != null && y.current && y.current.focus()) : !A && !x ? (T(!0), w(!0), y != null && y.current && y.current.focus()) : (T(!1), w(!1), y != null && y.current && y.current.blur()), !R && W(i));
942
1004
  },
943
1005
  tabIndex: 0,
944
- width: f,
1006
+ width: g,
945
1007
  size: s,
946
- isOpen: L || S,
1008
+ isOpen: A || x,
947
1009
  "data-testid": "select",
948
- disabled: h,
949
- helpText: g,
950
- variant: j,
1010
+ disabled: c,
1011
+ helpText: m,
1012
+ variant: z,
951
1013
  children: [
952
1014
  /* @__PURE__ */ n.jsxs(Ue, { children: [
953
- U(v) ? /* @__PURE__ */ n.jsx(ae, { size: s, variant: j, isDisplayText: !0, children: /* @__PURE__ */ n.jsx("p", { title: e == null ? void 0 : e.label, ...w, children: v }) }) : /* @__PURE__ */ n.jsxs(ae, { size: s, variant: j, children: [
954
- d && F(e) && !M && !L ? /* @__PURE__ */ n.jsx(Ge, { size: s, variant: j, children: d }) : null,
1015
+ G(M) ? /* @__PURE__ */ n.jsx(de, { size: s, variant: z, isDisplayText: !0, children: /* @__PURE__ */ n.jsx("p", { title: e == null ? void 0 : e.label, ...k, children: M }) }) : /* @__PURE__ */ n.jsxs(de, { size: s, variant: z, children: [
1016
+ a && E(e) && !R && !A ? /* @__PURE__ */ n.jsx(Ge, { size: s, variant: z, children: a }) : null,
955
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 })
956
1018
  ] }),
957
- l && !U(v) && /* @__PURE__ */ n.jsx(
1019
+ l && !G(M) && /* @__PURE__ */ n.jsx(
958
1020
  qe,
959
1021
  {
960
- ref: b,
961
- value: M,
962
- onChange: (J) => {
963
- R(J.target.value), J.target.value.length > 0 && (T(!0), $(!0)), O(J.target.value);
1022
+ ref: y,
1023
+ value: R,
1024
+ onChange: (Y) => {
1025
+ H(Y.target.value), Y.target.value.length > 0 && (T(!0), w(!0)), D(Y.target.value);
964
1026
  },
965
- readOnly: m,
966
- width: M.length,
1027
+ readOnly: p,
1028
+ width: R.length,
967
1029
  size: s,
968
- disabled: h,
969
- variant: j
1030
+ disabled: c,
1031
+ variant: z
970
1032
  }
971
1033
  )
972
1034
  ] }),
973
- I && e ? K : null,
974
- S ? te : $e,
975
- S && /* @__PURE__ */ n.jsx(
1035
+ v && e ? K : null,
1036
+ x ? te : be,
1037
+ x && /* @__PURE__ */ n.jsx(
976
1038
  ie,
977
1039
  {
978
- onEnter: (J) => {
979
- t && t(J), T(!1), $(!1), N && N(J);
1040
+ onEnter: (Y) => {
1041
+ t && t(Y), T(!1), w(!1), C && C(Y);
980
1042
  },
981
- menuIsOpen: L,
982
- selectContainerRef: c,
1043
+ menuIsOpen: A,
1044
+ selectContainerRef: f,
983
1045
  value: e,
984
- optionsSelect: y,
985
- selectOption: z,
1046
+ optionsSelect: B,
1047
+ selectOption: N,
986
1048
  size: s,
987
- inputValue: M,
988
- maxHeightMenu: E
1049
+ inputValue: R,
1050
+ maxHeightMenu: L
989
1051
  }
990
1052
  )
991
1053
  ]
992
1054
  }
993
1055
  ) }),
994
- g && /* @__PURE__ */ n.jsx(Ve, { size: s, children: g })
1056
+ m && /* @__PURE__ */ n.jsx(Ve, { size: s, children: m })
995
1057
  ]
996
1058
  }
997
1059
  );
998
1060
  }
999
1061
  );
1000
- ge.displayName = "Select";
1001
- const me = ze`
1062
+ me.displayName = "Select";
1063
+ const pe = Be`
1002
1064
  from {
1003
1065
  transform: rotate(0deg);
1004
1066
  }
1005
1067
  to {
1006
1068
  transform: rotate(360deg);
1007
1069
  }
1008
- `, Ke = k.button`
1070
+ `, Ke = $.button`
1009
1071
  display: flex;
1010
1072
  justify-content: space-between;
1011
1073
  align-items: center;
@@ -1013,7 +1075,7 @@ const me = ze`
1013
1075
  padding: ${({ size: e }) => e === "Small" ? `0 ${o.spacings.spacingInline.spacingInlineAnt}` : `0 ${o.spacings.spacingInline.spacingInlineSm}`};
1014
1076
  ${({ variant: e }) => {
1015
1077
  if (e === "primary")
1016
- return A`
1078
+ return F`
1017
1079
  background-color: ${o.colors.brandColors.colorBrandPrimary};
1018
1080
  color: ${o.colors.backgroundColors.colorBackgroundSnow};
1019
1081
  transition: filter 0.2s;
@@ -1024,9 +1086,9 @@ const me = ze`
1024
1086
  }
1025
1087
  `;
1026
1088
  if (e === "secondary")
1027
- return A`
1089
+ return F`
1028
1090
  background-color: rgba(
1029
- ${Ne(o.colors.neutralColors.colorNeutralSoft)},
1091
+ ${We(o.colors.neutralColors.colorNeutralSoft)},
1030
1092
  ${o.opacityLevels.light}
1031
1093
  );
1032
1094
  color: ${o.colors.neutralColors.colorNeutralDark};
@@ -1039,7 +1101,7 @@ const me = ze`
1039
1101
  }
1040
1102
  `;
1041
1103
  if (e === "tertiary")
1042
- return A`
1104
+ return F`
1043
1105
  background-color: transparent;
1044
1106
  color: ${o.colors.neutralColors.colorNeutralDark};
1045
1107
  border: ${o.borders.borderWidth.borderWidthNone};
@@ -1051,7 +1113,7 @@ const me = ze`
1051
1113
  }
1052
1114
  `;
1053
1115
  }};
1054
- ${({ disabled: e }) => e && A`
1116
+ ${({ disabled: e }) => e && F`
1055
1117
  background-color: ${o.colors.backgroundColors.colorBackgroundGrass};
1056
1118
  color: ${o.colors.neutralColors.colorNeutralCloudy};
1057
1119
  transition: filter 0.2s;
@@ -1080,15 +1142,15 @@ const me = ze`
1080
1142
  min-width: ${({ size: e }) => e === "Small" ? o.icons.iconSizeSm : o.icons.iconSizeAnt};
1081
1143
  height: ${({ size: e }) => e === "Small" ? o.icons.iconSizeSm : o.icons.iconSizeAnt};
1082
1144
 
1083
- ${({ isLoading: e }) => e && A`
1084
- animation: ${me} 2s linear infinite;
1145
+ ${({ isLoading: e }) => e && F`
1146
+ animation: ${pe} 2s linear infinite;
1085
1147
  `}
1086
1148
 
1087
1149
  path {
1088
1150
  fill: ${({ variant: e, disabled: t }) => t ? o.colors.neutralColors.colorNeutralCloudy : e === "primary" ? o.colors.backgroundColors.colorBackgroundSnow : o.colors.neutralColors.colorNeutralDark};
1089
1151
  }
1090
1152
  }
1091
- `, eo = k.div`
1153
+ `, eo = $.div`
1092
1154
  display: flex;
1093
1155
  flex-direction: column;
1094
1156
  width: ${({ width: e }) => e};
@@ -1096,7 +1158,7 @@ const me = ze`
1096
1158
  &:hover {
1097
1159
  cursor: ${({ disabled: e }) => e && "not-allowed"};
1098
1160
  }
1099
- `, oo = k.label`
1161
+ `, oo = $.label`
1100
1162
  font-size: ${o.fonts.fontSize.fontSizeBodyMd};
1101
1163
  font-weight: ${o.fonts.fontWeight.fontWeightRegular};
1102
1164
  font-family: ${o.fonts.fontFamily.fontFamilyPrimary};
@@ -1106,7 +1168,7 @@ const me = ze`
1106
1168
  color: ${({ hasError: e }) => e ? `${o.colors.feedbackColors.colorFeedbackError}` : `${o.colors.neutralColors.colorNeutralCloudy}`};
1107
1169
  margin-bottom: ${o.spacings.spacingStack.spacingStackNano};
1108
1170
  `;
1109
- k.p`
1171
+ $.p`
1110
1172
  display: inline-block;
1111
1173
  font-size: ${o.fonts.fontSize.fontSizeBodyMd};
1112
1174
  font-weight: ${o.fonts.fontWeight.fontWeightRegular};
@@ -1114,14 +1176,14 @@ k.p`
1114
1176
  margin-top: ${o.spacings.spacingInline.spacingInlineNano};
1115
1177
  width: 100%;
1116
1178
  `;
1117
- const to = k.div`
1179
+ const to = $.div`
1118
1180
  width: 100%;
1119
1181
 
1120
1182
  & > svg {
1121
1183
  min-width: ${({ size: e }) => e === "Small" ? o.icons.iconSizeSm : o.icons.iconSizeAnt};
1122
1184
  height: ${({ size: e }) => e === "Small" ? o.icons.iconSizeSm : o.icons.iconSizeAnt};
1123
1185
 
1124
- animation: ${me} 2s linear infinite;
1186
+ animation: ${pe} 2s linear infinite;
1125
1187
 
1126
1188
  path {
1127
1189
  fill: ${({ variant: e, disabled: t }) => t ? o.colors.neutralColors.colorNeutralCloudy : e === "primary" ? o.colors.backgroundColors.colorBackgroundSnow : o.colors.neutralColors.colorNeutralDark};
@@ -1132,163 +1194,215 @@ const to = k.div`
1132
1194
  cursor: not-allowed;
1133
1195
  }
1134
1196
  `, no = (e) => {
1135
- const [t, i] = P(!1), [l, d] = P(e), a = Q(null);
1197
+ const [t, i] = P(!1), [l, a] = P(e), d = U(null);
1136
1198
  return Z(() => {
1137
- d(e);
1199
+ a(e);
1138
1200
  }, [e]), {
1139
1201
  setIsOpen: i,
1140
1202
  isOpen: t,
1141
- setOptionsSelect: d,
1203
+ setOptionsSelect: a,
1142
1204
  optionsSelect: l,
1143
- selectContainerRef: a
1205
+ selectContainerRef: d
1144
1206
  };
1145
- }, ro = 200, bo = ({
1207
+ }, ro = 200, zo = ({
1146
1208
  name: e,
1147
1209
  variant: t = "primary",
1148
1210
  width: i = "100%",
1149
1211
  size: l = "Medium",
1150
- disabled: d = !1,
1151
- isLoading: a = !1,
1212
+ disabled: a = !1,
1213
+ isLoading: d = !1,
1152
1214
  onClick: s,
1153
- options: f,
1154
- label: h,
1155
- menuSelectProps: g = {},
1156
- iconName: m,
1157
- optionsIconPosition: u
1215
+ options: g,
1216
+ label: c,
1217
+ menuSelectProps: m = {},
1218
+ iconName: p,
1219
+ optionsIconPosition: h
1158
1220
  }) => {
1159
- const { isOpen: x, setIsOpen: H, selectContainerRef: N, optionsSelect: j } = no(f);
1160
- let C = o.colors.backgroundColors.colorBackgroundSnow;
1161
- d ? C = o.colors.neutralColors.colorNeutralCloudy : t !== "primary" && (C = o.colors.neutralColors.colorNeutralDark);
1162
- const E = {
1163
- ...g
1221
+ const { isOpen: S, setIsOpen: u, selectContainerRef: C, optionsSelect: z } = no(g);
1222
+ let j = o.colors.backgroundColors.colorBackgroundSnow;
1223
+ a ? j = o.colors.neutralColors.colorNeutralCloudy : t !== "primary" && (j = o.colors.neutralColors.colorNeutralDark);
1224
+ const L = {
1225
+ ...m
1164
1226
  };
1165
1227
  return /* @__PURE__ */ n.jsxs(
1166
1228
  eo,
1167
1229
  {
1168
- ref: N,
1230
+ ref: C,
1169
1231
  width: i,
1170
1232
  size: l,
1171
- disabled: d,
1172
- onBlur: () => setTimeout(() => H(!1), ro),
1233
+ disabled: a,
1234
+ onBlur: () => setTimeout(() => u(!1), ro),
1173
1235
  children: [
1174
- h && /* @__PURE__ */ n.jsx(oo, { children: h }),
1236
+ c && /* @__PURE__ */ n.jsx(oo, { children: c }),
1175
1237
  /* @__PURE__ */ n.jsxs(
1176
1238
  Ke,
1177
1239
  {
1178
1240
  type: "button",
1179
1241
  size: l,
1180
- disabled: d,
1242
+ disabled: a,
1181
1243
  variant: t,
1182
- isLoading: a,
1183
- onClick: () => !a && H(!x),
1244
+ isLoading: d,
1245
+ onClick: () => !d && u(!S),
1184
1246
  id: `button-component-${e}`,
1185
1247
  children: [
1186
- a && /* @__PURE__ */ n.jsx(to, { size: l, disabled: d, variant: t, children: /* @__PURE__ */ n.jsx(
1248
+ d && /* @__PURE__ */ n.jsx(to, { size: l, disabled: a, variant: t, children: /* @__PURE__ */ n.jsx(
1187
1249
  V,
1188
1250
  {
1189
1251
  iconName: `ProgressActivity${l === "Small" ? "Ant" : "Sm"}`,
1190
- color: C,
1252
+ color: j,
1191
1253
  "data-testid": "icon-loading"
1192
1254
  }
1193
1255
  ) }),
1194
- !a && /* @__PURE__ */ n.jsx("p", { title: e, children: e }),
1195
- !a && (x ? /* @__PURE__ */ n.jsx(
1256
+ !d && /* @__PURE__ */ n.jsx("p", { title: e, children: e }),
1257
+ !d && (S ? /* @__PURE__ */ n.jsx(
1196
1258
  V,
1197
1259
  {
1198
1260
  iconName: `ExpandLess${l === "Small" ? "Ant" : "Sm"}`,
1199
- color: C,
1261
+ color: j,
1200
1262
  "data-testid": "icon-button-less"
1201
1263
  }
1202
1264
  ) : /* @__PURE__ */ n.jsx(
1203
1265
  V,
1204
1266
  {
1205
1267
  iconName: `ExpandMore${l === "Small" ? "Ant" : "Sm"}`,
1206
- color: C,
1268
+ color: j,
1207
1269
  "data-testid": "icon-button-more"
1208
1270
  }
1209
1271
  ))
1210
1272
  ]
1211
1273
  }
1212
1274
  ),
1213
- x && /* @__PURE__ */ n.jsx(
1275
+ S && /* @__PURE__ */ n.jsx(
1214
1276
  ie,
1215
1277
  {
1216
- selectContainerRef: N,
1278
+ selectContainerRef: C,
1217
1279
  value: null,
1218
- optionsSelect: j,
1280
+ optionsSelect: z,
1219
1281
  selectOption: s,
1220
1282
  size: l,
1221
1283
  inputValue: null,
1222
- iconPosition: u,
1223
- iconName: m,
1224
- ...E
1284
+ iconPosition: h,
1285
+ iconName: p,
1286
+ ...L
1225
1287
  }
1226
1288
  )
1227
1289
  ]
1228
1290
  }
1229
1291
  );
1230
- }, ce = 350, xo = ({
1231
- title: e,
1232
- children: t,
1233
- endAdornment: i = null,
1234
- marginBottom: l = "16px",
1235
- customStyles: d = {},
1236
- wrapperCustomStyles: a = {},
1237
- hideAdornmentOnCollapse: s = !1
1292
+ }, lo = $.div`
1293
+ min-width: ${({ widthItems: e }) => e};
1294
+ max-width: ${({ widthItems: e }) => e};
1295
+ height: 100%;
1296
+ overflow: hidden;
1297
+
1298
+ &:hover {
1299
+ overflow: auto;
1300
+ scroll-padding-top: 10px;
1301
+ }
1302
+ `, io = $.div`
1303
+ width: 100%;
1304
+ min-height: ${({ heightItems: e }) => e};
1305
+ max-height: ${({ heightItems: e }) => e};
1306
+ background-color: ${({ selected: e }) => e ? "#E8F3FF" : "transparent"};
1307
+ border-bottom: ${`1px solid ${o.colors.neutralColors.colorNeutralSoft}`};
1308
+ padding: 8px;
1309
+ ${({ withBorderRight: e }) => e && F`
1310
+ border-right: ${({ selected: t }) => t ? "none" : `1px solid ${o.colors.neutralColors.colorNeutralSoft}`};
1311
+ `}
1312
+ cursor: pointer;
1313
+ `, so = $.div`
1314
+ max-width: 4px;
1315
+ min-width: 4px;
1316
+ min-height: ${({ heightItems: e }) => e};
1317
+ max-height: ${({ heightItems: e }) => e};
1318
+ background-color: ${({ selected: e }) => e ? "#E8F3FF" : "transparent"};
1319
+ border-bottom: ${`1px solid ${o.colors.neutralColors.colorNeutralSoft}`};
1320
+ padding: 8px;
1321
+ ${({ withBorderRight: e }) => e && F`
1322
+ border-right: ${({ selected: t }) => t ? "none" : `1px solid ${o.colors.neutralColors.colorNeutralSoft}`};
1323
+ `}
1324
+ cursor: pointer;
1325
+ `, ao = $.div`
1326
+ display: flex;
1327
+ min-width: 0;
1328
+ height: 100%;
1329
+ flex: 1;
1330
+ background-color: #e8f3ff;
1331
+ `, co = $.div`
1332
+ max-width: 4px;
1333
+ min-width: 4px;
1334
+ height: 100%;
1335
+ background-color: 'transparent';
1336
+ overflow: hidden;
1337
+ `, Bo = ({
1338
+ width: e = "100%",
1339
+ height: t = "fit-content",
1340
+ flex: i,
1341
+ backgroundColor: l = "white",
1342
+ options: a = [],
1343
+ heightItems: d = "60px",
1344
+ widthItems: s = "155px",
1345
+ emptyProps: g = {
1346
+ title: "Nenhum dado a ser mostrado",
1347
+ body: null
1348
+ }
1238
1349
  }) => {
1239
- const [f, h] = P(!1), [g, m] = P(!0);
1240
- Z(() => {
1241
- if (s)
1242
- if (f) {
1243
- const x = setTimeout(
1244
- () => m(!1),
1245
- ce
1246
- );
1247
- return () => clearTimeout(x);
1248
- } else
1249
- m(!0);
1250
- }, [f, s]);
1251
- const u = s && !g ? null : i;
1252
- return /* @__PURE__ */ n.jsxs(
1253
- _,
1350
+ var S;
1351
+ const [c, m] = P(a[0] || null), p = U(null), h = U(null);
1352
+ return Z(() => {
1353
+ const u = p.current, C = h.current, z = () => {
1354
+ u && C && (C.scrollTop = u.scrollTop);
1355
+ };
1356
+ return u == null || u.addEventListener("scroll", z), () => {
1357
+ u == null || u.removeEventListener("scroll", z);
1358
+ };
1359
+ }, []), (a == null ? void 0 : a.length) === 0 ? /* @__PURE__ */ n.jsx(
1360
+ he,
1254
1361
  {
1255
- width: "100%",
1362
+ title: g.title,
1363
+ body: g.body,
1256
1364
  flex: "1",
1257
- gap: "8px",
1258
- customStyles: a,
1365
+ mode: "table"
1366
+ }
1367
+ ) : /* @__PURE__ */ n.jsxs(
1368
+ _,
1369
+ {
1370
+ width: e,
1371
+ height: t,
1372
+ flex: i,
1373
+ backgroundColor: l,
1374
+ direction: "horizontal",
1375
+ customStyles: {
1376
+ border: `1px solid ${o.colors.neutralColors.colorNeutralSoft}`,
1377
+ borderRadius: o.borders.borderRadius.borderRadiusSm
1378
+ },
1259
1379
  children: [
1260
- /* @__PURE__ */ n.jsx(
1261
- fe,
1380
+ /* @__PURE__ */ n.jsx(lo, { ref: p, widthItems: s, children: a == null ? void 0 : a.map((u, C) => /* @__PURE__ */ n.jsx(
1381
+ io,
1262
1382
  {
1263
- title: e,
1264
- divider: !0,
1265
- marginBottom: l,
1266
- collapse: {
1267
- collapsed: f,
1268
- setCollapsed: h
1269
- },
1270
- endAdornment: u,
1271
- customStyles: d
1272
- }
1273
- ),
1274
- /* @__PURE__ */ n.jsx(
1275
- _,
1383
+ selected: (c == null ? void 0 : c.key) === u.key,
1384
+ onClick: () => m(u),
1385
+ withBorderRight: !1,
1386
+ heightItems: d,
1387
+ children: u.item
1388
+ },
1389
+ C
1390
+ )) }),
1391
+ /* @__PURE__ */ n.jsx(co, { ref: h, children: (S = a == null ? void 0 : a.concat({ key: "last", item: /* @__PURE__ */ n.jsx(n.Fragment, {}), contentItem: /* @__PURE__ */ n.jsx(n.Fragment, {}) })) == null ? void 0 : S.map((u, C) => /* @__PURE__ */ n.jsx(
1392
+ so,
1276
1393
  {
1277
- gap: "8px",
1278
- width: "100%",
1279
- customStyles: {
1280
- // assuming max content height won't exceed 2000px (a large value)
1281
- // If a maxHeight is not set, the transition won't work
1282
- maxHeight: f ? "0" : "2000px",
1283
- transition: `max-height ${ce}ms ease-in-out`
1284
- },
1285
- children: t
1286
- }
1287
- )
1394
+ selected: (c == null ? void 0 : c.key) === u.key,
1395
+ onClick: () => m(u),
1396
+ withBorderRight: !0,
1397
+ heightItems: d
1398
+ },
1399
+ C
1400
+ )) }),
1401
+ /* @__PURE__ */ n.jsx(ao, { children: c && (c == null ? void 0 : c.contentItem) })
1288
1402
  ]
1289
1403
  }
1290
1404
  );
1291
- }, pe = A`
1405
+ }, Se = F`
1292
1406
  svg:not([color]):not([data-testid='icon']) {
1293
1407
  path {
1294
1408
  fill: ${o.colors.neutralColors.colorNeutralDarkest};
@@ -1300,7 +1414,7 @@ const to = k.div`
1300
1414
  fill: ${o.colors.neutralColors.colorNeutralDarkest};
1301
1415
  }
1302
1416
  }
1303
- `, lo = k.div`
1417
+ `, fo = $.div`
1304
1418
  width: 100%;
1305
1419
  max-height: ${({ maxHeight: e }) => e};
1306
1420
  overflow: auto;
@@ -1322,12 +1436,12 @@ const to = k.div`
1322
1436
  background: ${o.colors.neutralColors.colorNeutralClean};
1323
1437
  border-radius: ${o.borders.borderRadius.borderRadiusPill};
1324
1438
  }
1325
- `, io = k.table`
1439
+ `, ho = $.table`
1326
1440
  border-collapse: separate;
1327
1441
  border-spacing: 0;
1328
1442
  width: 100%;
1329
- `, so = `${o.borders.borderRadius.borderExtraSmall} ${o.borders.borderRadius.borderExtraSmall} 0 0`, ao = `0 0 ${o.borders.borderRadius.borderExtraSmall} ${o.borders.borderRadius.borderExtraSmall}`, ee = k.tr`
1330
- ${({ isHeader: e, size: t }) => e && A`
1443
+ `, uo = `${o.borders.borderRadius.borderExtraSmall} ${o.borders.borderRadius.borderExtraSmall} 0 0`, go = `0 0 ${o.borders.borderRadius.borderExtraSmall} ${o.borders.borderRadius.borderExtraSmall}`, ee = $.tr`
1444
+ ${({ isHeader: e, size: t }) => e && F`
1331
1445
  position: sticky;
1332
1446
  background-color: ${o.colors.backgroundColors.colorBackgroundSnow};
1333
1447
 
@@ -1345,15 +1459,15 @@ const to = k.div`
1345
1459
  height: ${({ fit: e, size: t }) => e ? "fit-content" : t === "Large" ? "4rem" : "3.2rem"};
1346
1460
  min-height: ${({ size: e }) => e === "Large" ? "4rem" : "3.2rem"};
1347
1461
 
1348
- ${({ isHeader: e, isSelected: t, striped: i }) => !e && A`
1462
+ ${({ isHeader: e, isSelected: t, striped: i }) => !e && F`
1349
1463
  background-color: ${t ? o.colors.neutralColors.colorNeutralClean : i ? "#F5F9FE" : o.colors.backgroundColors.colorBackgroundSnow};
1350
1464
  `}
1351
1465
 
1352
1466
  border-radius: ${({ isFirst: e, isLast: t, isHeader: i, borderRadius: l }) => {
1353
1467
  if (e && !i)
1354
- return l ? `${l} ${l} 0 0` : so;
1468
+ return l ? `${l} ${l} 0 0` : uo;
1355
1469
  if (t)
1356
- return l ? `0 0 ${l} ${l}` : ao;
1470
+ return l ? `0 0 ${l} ${l}` : go;
1357
1471
  }};
1358
1472
  transition: background-color 0.2s 0s;
1359
1473
 
@@ -1365,28 +1479,28 @@ const to = k.div`
1365
1479
  border-bottom: none !important;
1366
1480
  }
1367
1481
 
1368
- ${({ isHeader: e }) => !e && A`
1482
+ ${({ isHeader: e }) => !e && F`
1369
1483
  &:hover {
1370
1484
  background-color: ${o.colors.backgroundColors.colorBackgroundCarpet};
1371
1485
 
1372
1486
  /* Target direct SVGs without color (sbwb-icons), but exclude sbwb-ds Icons ([data-testid='icon'])
1373
1487
  * This is because sbwb-ds Icons have a color prop on the wrapper, not the SVG
1374
1488
  */
1375
- ${pe}
1489
+ ${Se}
1376
1490
  }
1377
1491
  `}
1378
- `, Se = ({ width: e }) => {
1379
- if (U(e))
1380
- return A`
1492
+ `, $e = ({ width: e }) => {
1493
+ if (G(e))
1494
+ return F`
1381
1495
  width: ${e};
1382
1496
  `;
1383
- }, oe = k.th`
1497
+ }, oe = $.th`
1384
1498
  text-align: ${({ horizontalAlign: e, headerAlign: t }) => e ?? t ?? "left"};
1385
1499
  vertical-align: middle;
1386
1500
  min-width: ${({ minWidth: e }) => e || "auto"};
1387
1501
  max-width: ${({ maxWidth: e }) => e};
1388
1502
 
1389
- ${Se}
1503
+ ${$e}
1390
1504
 
1391
1505
  height: ${({ size: e }) => e === "Large" ? "4rem" : "3.2rem"};
1392
1506
  background-color: ${o.colors.backgroundColors.colorBackgroundSky};
@@ -1404,7 +1518,7 @@ const to = k.div`
1404
1518
  word-break: normal;
1405
1519
 
1406
1520
  &:last-child {
1407
- ${({ isTopRow: e }) => e && A`
1521
+ ${({ isTopRow: e }) => e && F`
1408
1522
  border-right: none;
1409
1523
  `}
1410
1524
  }
@@ -1424,13 +1538,13 @@ const to = k.div`
1424
1538
  &:hover {
1425
1539
  cursor: default;
1426
1540
  }
1427
- `, co = k.td`
1541
+ `, mo = $.td`
1428
1542
  text-align: ${({ horizontalAlign: e }) => e || "left"};
1429
1543
  vertical-align: ${({ verticalAlign: e }) => e || "middle"};
1430
1544
 
1431
1545
  min-width: ${({ minWidth: e }) => e || "auto"};
1432
1546
  max-width: ${({ maxWidth: e }) => e};
1433
- ${Se}
1547
+ ${$e}
1434
1548
 
1435
1549
  padding: ${({ rowPadding: e }) => e ?? `${o.spacings.spacingInline.spacingInlineXs}`};
1436
1550
 
@@ -1449,26 +1563,26 @@ const to = k.div`
1449
1563
  border-right: none;
1450
1564
  }
1451
1565
 
1452
- ${pe}
1566
+ ${Se}
1453
1567
 
1454
1568
  &:hover {
1455
1569
  cursor: ${(e) => e.isClickable ? "pointer" : "default"};
1456
1570
  }
1457
1571
  `;
1458
- function fo(e) {
1572
+ function po(e) {
1459
1573
  return (t) => typeof e == "string" ? t[e] : typeof e == "function" ? e(t) : (console.warn("Please, setup a rowKey for table."), JSON.stringify(t));
1460
1574
  }
1461
- function wo({
1575
+ function jo({
1462
1576
  id: e,
1463
1577
  rowKey: t = "id",
1464
1578
  size: i = "Small",
1465
1579
  onRowClick: l,
1466
- fit: d = !1,
1467
- maxHeight: a = "40rem",
1580
+ fit: a = !1,
1581
+ maxHeight: d = "40rem",
1468
1582
  columns: s,
1469
- dataSource: f,
1470
- columnsTextSize: h = i,
1471
- emptyProps: g = {
1583
+ dataSource: g,
1584
+ columnsTextSize: c = i,
1585
+ emptyProps: m = {
1472
1586
  width: "100%",
1473
1587
  height: "100%",
1474
1588
  title: "Nenhum dado a ser mostrado.",
@@ -1476,174 +1590,174 @@ function wo({
1476
1590
  borders: !0,
1477
1591
  backgroundColor: o.colors.backgroundColors.colorBackgroundSnow
1478
1592
  },
1479
- selectedRow: m = !1,
1480
- hideHeader: u = !1,
1481
- withBorder: x = !0,
1482
- withBorderRadius: H = !0,
1483
- striped: N = !1,
1484
- borderRadius: j = o.borders.borderRadius.borderRadiusSm
1593
+ selectedRow: p = !1,
1594
+ hideHeader: h = !1,
1595
+ withBorder: S = !0,
1596
+ withBorderRadius: u = !0,
1597
+ striped: C = !1,
1598
+ borderRadius: z = o.borders.borderRadius.borderRadiusSm
1485
1599
  }) {
1486
- const C = Y(() => fo(t), [t]), [E, p] = P(null), I = Q(null), v = Q(null), [w, q] = P(s);
1487
- je(() => {
1488
- if (!v.current || s.length === 0) {
1489
- q(s);
1600
+ const j = Q(() => po(t), [t]), [L, b] = P(null), v = U(null), M = U(null), [k, J] = P(s);
1601
+ Ne(() => {
1602
+ if (!M.current || s.length === 0) {
1603
+ J(s);
1490
1604
  return;
1491
1605
  }
1492
- const S = () => {
1493
- var O;
1494
- const M = ((O = v.current) == null ? void 0 : O.clientWidth) || 0;
1495
- if (M === 0) return;
1496
- let R = 0, y = 0;
1497
- const c = [], r = [];
1498
- s.forEach((F) => {
1499
- const W = Number(F.flex);
1500
- F.width ? R += parseInt(F.width, 10) || 0 : F.flex && W > 0 ? (y += W, c.push(F)) : r.push(F);
1606
+ const x = () => {
1607
+ var D;
1608
+ const R = ((D = M.current) == null ? void 0 : D.clientWidth) || 0;
1609
+ if (R === 0) return;
1610
+ let H = 0, B = 0;
1611
+ const f = [], r = [];
1612
+ s.forEach((E) => {
1613
+ const I = Number(E.flex);
1614
+ E.width ? H += parseInt(E.width, 10) || 0 : E.flex && I > 0 ? (B += I, f.push(E)) : r.push(E);
1501
1615
  });
1502
- const b = M - R, z = "80";
1503
- let B = [...s];
1504
- if (b > 0) {
1505
- if (c.length > 0) {
1506
- const F = b / y;
1507
- B = s.map((W) => {
1508
- const X = Number(W.flex);
1616
+ const y = R - H, N = "80";
1617
+ let W = [...s];
1618
+ if (y > 0) {
1619
+ if (f.length > 0) {
1620
+ const E = y / B;
1621
+ W = s.map((I) => {
1622
+ const X = Number(I.flex);
1509
1623
  if (X && X > 0) {
1510
- const D = parseInt(W.minWidth || z, 10), K = X * F, te = Math.max(K, D);
1511
- return { ...W, width: `${Math.floor(te)}px` };
1624
+ const O = parseInt(I.minWidth || N, 10), K = X * E, te = Math.max(K, O);
1625
+ return { ...I, width: `${Math.floor(te)}px` };
1512
1626
  }
1513
- return !W.width && !X ? {
1514
- ...W,
1515
- width: W.minWidth || `${z}px`
1516
- } : W;
1627
+ return !I.width && !X ? {
1628
+ ...I,
1629
+ width: I.minWidth || `${N}px`
1630
+ } : I;
1517
1631
  });
1518
1632
  } else if (r.length > 0) {
1519
- const F = b / r.length;
1520
- B = s.map((W) => {
1521
- const X = Number(W.flex);
1522
- if (!W.width && !X) {
1523
- const D = parseInt(W.minWidth || z, 10), K = Math.max(F, D);
1524
- return { ...W, width: `${Math.floor(K)}px` };
1633
+ const E = y / r.length;
1634
+ W = s.map((I) => {
1635
+ const X = Number(I.flex);
1636
+ if (!I.width && !X) {
1637
+ const O = parseInt(I.minWidth || N, 10), K = Math.max(E, O);
1638
+ return { ...I, width: `${Math.floor(K)}px` };
1525
1639
  }
1526
- return W;
1640
+ return I;
1527
1641
  });
1528
1642
  }
1529
1643
  } else
1530
- B = s.map((F) => F.width ? F : { ...F, width: F.minWidth || `${z}px` });
1531
- q(B);
1644
+ W = s.map((E) => E.width ? E : { ...E, width: E.minWidth || `${N}px` });
1645
+ J(W);
1532
1646
  };
1533
- S();
1534
- const $ = new ResizeObserver(S);
1535
- return $.observe(v.current), () => $.disconnect();
1647
+ x();
1648
+ const w = new ResizeObserver(x);
1649
+ return w.observe(M.current), () => w.disconnect();
1536
1650
  }, [s]), Z(() => {
1537
- const S = ($) => {
1538
- I.current && !I.current.contains($.target) && p(null);
1651
+ const x = (w) => {
1652
+ v.current && !v.current.contains(w.target) && b(null);
1539
1653
  };
1540
- return document.addEventListener("mousedown", S), () => {
1541
- document.removeEventListener("mousedown", S);
1654
+ return document.addEventListener("mousedown", x), () => {
1655
+ document.removeEventListener("mousedown", x);
1542
1656
  };
1543
1657
  }, []);
1544
- const L = Y(() => w ? w.some(
1545
- (S) => S.mergeHeaderId && S.mergeHeaderLabel
1546
- ) : !1, [w]), T = Y(() => {
1547
- var R, y;
1548
- if (u || !w || w.length === 0)
1658
+ const A = Q(() => k ? k.some(
1659
+ (x) => x.mergeHeaderId && x.mergeHeaderLabel
1660
+ ) : !1, [k]), T = Q(() => {
1661
+ var H, B;
1662
+ if (h || !k || k.length === 0)
1549
1663
  return null;
1550
- if (!L)
1664
+ if (!A)
1551
1665
  return /* @__PURE__ */ n.jsx(
1552
1666
  ee,
1553
1667
  {
1554
1668
  isHeader: !0,
1555
1669
  size: i,
1556
1670
  numRows: 1,
1557
- borderRadius: j,
1558
- children: w.map((c) => {
1671
+ borderRadius: z,
1672
+ children: k.map((f) => {
1559
1673
  var r;
1560
1674
  return /* @__PURE__ */ n.jsx(
1561
1675
  oe,
1562
1676
  {
1563
- width: c.width,
1564
- minWidth: c.minWidth,
1565
- maxWidth: c.maxWidth,
1566
- horizontalAlign: c.horizontalAlign,
1677
+ width: f.width,
1678
+ minWidth: f.minWidth,
1679
+ maxWidth: f.maxWidth,
1680
+ horizontalAlign: f.horizontalAlign,
1567
1681
  size: i,
1568
- columnsTextSize: h,
1569
- withBorder: x,
1570
- headerAlign: c.headerAlign,
1571
- children: ((r = c.columnRender) == null ? void 0 : r.call(c, f)) || /* @__PURE__ */ n.jsx("span", { title: c.label, children: c.label })
1682
+ columnsTextSize: c,
1683
+ withBorder: S,
1684
+ headerAlign: f.headerAlign,
1685
+ children: ((r = f.columnRender) == null ? void 0 : r.call(f, g)) || /* @__PURE__ */ n.jsx("span", { title: f.label, children: f.label })
1572
1686
  },
1573
- c.dataIndex
1687
+ f.dataIndex
1574
1688
  );
1575
1689
  })
1576
1690
  }
1577
1691
  );
1578
- const S = [], $ = [];
1579
- let M = 0;
1580
- for (; M < w.length; ) {
1581
- const c = w[M];
1582
- if (c.mergeHeaderId && c.mergeHeaderLabel) {
1692
+ const x = [], w = [];
1693
+ let R = 0;
1694
+ for (; R < k.length; ) {
1695
+ const f = k[R];
1696
+ if (f.mergeHeaderId && f.mergeHeaderLabel) {
1583
1697
  let r = 0;
1584
- const b = c.mergeHeaderId;
1585
- for (let z = M; z < w.length && w[z].mergeHeaderId === b; z++)
1698
+ const y = f.mergeHeaderId;
1699
+ for (let N = R; N < k.length && k[N].mergeHeaderId === y; N++)
1586
1700
  r++;
1587
- S.push(
1701
+ x.push(
1588
1702
  /* @__PURE__ */ n.jsx(
1589
1703
  oe,
1590
1704
  {
1591
1705
  colSpan: r,
1592
1706
  horizontalAlign: "center",
1593
1707
  size: i,
1594
- columnsTextSize: h,
1595
- withBorder: x,
1596
- width: c.width,
1597
- minWidth: c.minWidth,
1598
- maxWidth: c.maxWidth,
1599
- headerAlign: c.headerAlign,
1708
+ columnsTextSize: c,
1709
+ withBorder: S,
1710
+ width: f.width,
1711
+ minWidth: f.minWidth,
1712
+ maxWidth: f.maxWidth,
1713
+ headerAlign: f.headerAlign,
1600
1714
  isTopRow: !0,
1601
- children: /* @__PURE__ */ n.jsx("span", { title: c.mergeHeaderLabel, children: c.mergeHeaderLabel })
1715
+ children: /* @__PURE__ */ n.jsx("span", { title: f.mergeHeaderLabel, children: f.mergeHeaderLabel })
1602
1716
  },
1603
- `${c.mergeHeaderId}-merged`
1717
+ `${f.mergeHeaderId}-merged`
1604
1718
  )
1605
1719
  );
1606
- for (let z = 0; z < r; z++) {
1607
- const B = w[M + z];
1608
- $.push(
1720
+ for (let N = 0; N < r; N++) {
1721
+ const W = k[R + N];
1722
+ w.push(
1609
1723
  /* @__PURE__ */ n.jsx(
1610
1724
  oe,
1611
1725
  {
1612
- width: B.width,
1613
- minWidth: B.minWidth,
1614
- maxWidth: B.maxWidth,
1615
- horizontalAlign: B.horizontalAlign,
1726
+ width: W.width,
1727
+ minWidth: W.minWidth,
1728
+ maxWidth: W.maxWidth,
1729
+ horizontalAlign: W.horizontalAlign,
1616
1730
  size: i,
1617
- columnsTextSize: h,
1618
- withBorder: x,
1619
- headerAlign: c.headerAlign,
1620
- children: ((R = B.columnRender) == null ? void 0 : R.call(B, f)) || /* @__PURE__ */ n.jsx("span", { title: B.label, children: B.label })
1731
+ columnsTextSize: c,
1732
+ withBorder: S,
1733
+ headerAlign: f.headerAlign,
1734
+ children: ((H = W.columnRender) == null ? void 0 : H.call(W, g)) || /* @__PURE__ */ n.jsx("span", { title: W.label, children: W.label })
1621
1735
  },
1622
- B.dataIndex + "-individual"
1736
+ W.dataIndex + "-individual"
1623
1737
  )
1624
1738
  );
1625
1739
  }
1626
- M += r;
1740
+ R += r;
1627
1741
  } else
1628
- S.push(
1742
+ x.push(
1629
1743
  /* @__PURE__ */ n.jsx(
1630
1744
  oe,
1631
1745
  {
1632
1746
  rowSpan: 2,
1633
- width: c.width,
1634
- minWidth: c.minWidth,
1635
- maxWidth: c.maxWidth,
1636
- horizontalAlign: c.horizontalAlign,
1747
+ width: f.width,
1748
+ minWidth: f.minWidth,
1749
+ maxWidth: f.maxWidth,
1750
+ horizontalAlign: f.horizontalAlign,
1637
1751
  size: i,
1638
- columnsTextSize: h,
1639
- withBorder: x,
1640
- headerAlign: c.headerAlign,
1752
+ columnsTextSize: c,
1753
+ withBorder: S,
1754
+ headerAlign: f.headerAlign,
1641
1755
  isTopRow: !0,
1642
- children: ((y = c.columnRender) == null ? void 0 : y.call(c, f)) || /* @__PURE__ */ n.jsx("span", { title: c.label, children: c.label })
1756
+ children: ((B = f.columnRender) == null ? void 0 : B.call(f, g)) || /* @__PURE__ */ n.jsx("span", { title: f.label, children: f.label })
1643
1757
  },
1644
- c.dataIndex
1758
+ f.dataIndex
1645
1759
  )
1646
- ), M++;
1760
+ ), R++;
1647
1761
  }
1648
1762
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1649
1763
  /* @__PURE__ */ n.jsx(
@@ -1652,96 +1766,96 @@ function wo({
1652
1766
  isHeader: !0,
1653
1767
  size: i,
1654
1768
  numRows: 2,
1655
- borderRadius: j,
1656
- children: S
1769
+ borderRadius: z,
1770
+ children: x
1657
1771
  }
1658
1772
  ),
1659
- $.length > 0 && /* @__PURE__ */ n.jsx(
1773
+ w.length > 0 && /* @__PURE__ */ n.jsx(
1660
1774
  ee,
1661
1775
  {
1662
1776
  isHeader: !0,
1663
1777
  size: i,
1664
1778
  numRows: 2,
1665
- borderRadius: j,
1666
- children: $
1779
+ borderRadius: z,
1780
+ children: w
1667
1781
  }
1668
1782
  )
1669
1783
  ] });
1670
- }, [w, u, i, h, L]);
1671
- return !f || f.length === 0 ? /* @__PURE__ */ n.jsx(
1672
- Be,
1784
+ }, [k, h, i, c, A]);
1785
+ return !g || g.length === 0 ? /* @__PURE__ */ n.jsx(
1786
+ he,
1673
1787
  {
1674
1788
  backgroundColor: o.colors.backgroundColors.colorBackgroundSnow,
1675
1789
  borders: !0,
1676
1790
  mode: "table",
1677
- ...g
1791
+ ...m
1678
1792
  }
1679
1793
  ) : /* @__PURE__ */ n.jsx(
1680
- lo,
1794
+ fo,
1681
1795
  {
1682
- maxHeight: a,
1683
- withBorderRadius: H,
1684
- ref: v,
1685
- borderRadius: j,
1686
- children: /* @__PURE__ */ n.jsxs(io, { id: e, ref: I, children: [
1796
+ maxHeight: d,
1797
+ withBorderRadius: u,
1798
+ ref: M,
1799
+ borderRadius: z,
1800
+ children: /* @__PURE__ */ n.jsxs(ho, { id: e, ref: v, children: [
1687
1801
  /* @__PURE__ */ n.jsx("thead", { children: T }),
1688
- /* @__PURE__ */ n.jsx("tbody", { style: { width: "100%" }, children: f == null ? void 0 : f.map((S, $, M) => {
1689
- const R = C(S);
1802
+ /* @__PURE__ */ n.jsx("tbody", { style: { width: "100%" }, children: g == null ? void 0 : g.map((x, w, R) => {
1803
+ const H = j(x);
1690
1804
  return /* @__PURE__ */ n.jsx(
1691
1805
  ee,
1692
1806
  {
1693
- isLast: $ === M.length - 1,
1694
- fit: d,
1807
+ isLast: w === R.length - 1,
1808
+ fit: a,
1695
1809
  size: i,
1696
- withBorder: x,
1697
- isSelected: R === E && m,
1698
- striped: N && $ % 2 !== 0,
1699
- borderRadius: j,
1700
- children: w.map((y) => {
1701
- var c, r;
1810
+ withBorder: S,
1811
+ isSelected: H === L && p,
1812
+ striped: C && w % 2 !== 0,
1813
+ borderRadius: z,
1814
+ children: k.map((B) => {
1815
+ var f, r;
1702
1816
  return /* @__PURE__ */ n.jsx(
1703
- co,
1817
+ mo,
1704
1818
  {
1705
- width: y.width,
1706
- minWidth: y.minWidth,
1707
- maxWidth: y.maxWidth,
1819
+ width: B.width,
1820
+ minWidth: B.minWidth,
1821
+ maxWidth: B.maxWidth,
1708
1822
  size: i,
1709
- isClickable: U(l),
1823
+ isClickable: G(l),
1710
1824
  onClick: () => {
1711
- l && l(S, y, $), m && p(
1712
- E === R ? null : R
1825
+ l && l(x, B, w), p && b(
1826
+ L === H ? null : H
1713
1827
  );
1714
1828
  },
1715
- horizontalAlign: y.horizontalAlign,
1716
- verticalAlign: y.verticalAlign,
1717
- rowPadding: y.rowPadding,
1718
- withBorder: x,
1719
- isLast: $ === M.length - 1,
1720
- children: ((c = y.render) == null ? void 0 : c.call(
1721
- y,
1722
- S[y.dataIndex],
1723
- S,
1724
- $,
1725
- M
1829
+ horizontalAlign: B.horizontalAlign,
1830
+ verticalAlign: B.verticalAlign,
1831
+ rowPadding: B.rowPadding,
1832
+ withBorder: S,
1833
+ isLast: w === R.length - 1,
1834
+ children: ((f = B.render) == null ? void 0 : f.call(
1835
+ B,
1836
+ x[B.dataIndex],
1837
+ x,
1838
+ w,
1839
+ R
1726
1840
  )) || /* @__PURE__ */ n.jsx(
1727
1841
  "span",
1728
1842
  {
1729
- title: S[y.dataIndex],
1843
+ title: x[B.dataIndex],
1730
1844
  style: {
1731
1845
  textOverflow: "ellipsis",
1732
1846
  whiteSpace: "nowrap",
1733
1847
  overflow: "hidden",
1734
- ...(r = y.rowCss) == null ? void 0 : r.call(y, S)
1848
+ ...(r = B.rowCss) == null ? void 0 : r.call(B, x)
1735
1849
  },
1736
- children: S[y.dataIndex]
1850
+ children: x[B.dataIndex]
1737
1851
  }
1738
1852
  ) || ""
1739
1853
  },
1740
- `${R}::${y.dataIndex}`
1854
+ `${H}::${B.dataIndex}`
1741
1855
  );
1742
1856
  })
1743
1857
  },
1744
- R
1858
+ H
1745
1859
  );
1746
1860
  }) })
1747
1861
  ] })
@@ -1749,13 +1863,14 @@ function wo({
1749
1863
  );
1750
1864
  }
1751
1865
  export {
1752
- $o as C,
1866
+ yo as C,
1753
1867
  ie as M,
1754
- So as S,
1755
- ve as T,
1756
- Oe as a,
1757
- ge as b,
1758
- bo as c,
1759
- xo as d,
1760
- wo as e
1868
+ Co as S,
1869
+ Re as T,
1870
+ ko as a,
1871
+ De as b,
1872
+ me as c,
1873
+ zo as d,
1874
+ Bo as e,
1875
+ jo as f
1761
1876
  };