tcce-design-system 0.1.32 → 0.1.33

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.
@@ -1334,7 +1334,7 @@ const ul = {
1334
1334
  ${({ size: e = 24 }) => ul[e]}
1335
1335
  margin: 0;
1336
1336
  color: ${({ color: e }) => e || "var(--color-main-blue-primary)"};
1337
- `, kb = C.h2`
1337
+ `, Eb = C.h2`
1338
1338
  ${({ size: e = 24 }) => lf[e]}
1339
1339
  margin: 0;
1340
1340
  color: ${({ color: e }) => e || "var(--color-main-blue-primary)"};
@@ -6300,7 +6300,7 @@ const Hg = {
6300
6300
  color: var(--color-main-blue-primary);
6301
6301
  margin: 0 auto;
6302
6302
  text-align: center;
6303
- `, Mb = ({
6303
+ `, Ab = ({
6304
6304
  message: e = "Loading...",
6305
6305
  color: t = "primary",
6306
6306
  variant: n = "rotate"
@@ -6521,7 +6521,7 @@ const Hg = {
6521
6521
  color: ${t || "var(--color-main-blue-primary)"};
6522
6522
  border: 1px solid ${t || "var(--color-main-blue-primary)"};
6523
6523
  ` : ""}
6524
- `, Ab = ({
6524
+ `, Vb = ({
6525
6525
  children: e,
6526
6526
  variant: t = "neutral",
6527
6527
  size: n = "md",
@@ -6544,7 +6544,7 @@ const Hg = {
6544
6544
  width: ${n || "1px"};
6545
6545
  height: ${t || "100%"};
6546
6546
  `}
6547
- `, Vb = ({
6547
+ `, Db = ({
6548
6548
  orientation: e = "horizontal",
6549
6549
  color: t = "var(--color-dark-300)",
6550
6550
  length: n,
@@ -6825,7 +6825,7 @@ const Te = new x0(), S0 = (e, t) => {
6825
6825
  ...t,
6826
6826
  id: n
6827
6827
  }), n;
6828
- }, C0 = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", R0 = S0, $0 = () => Te.toasts, T0 = () => Te.getActiveToasts(), Db = Object.assign(R0, {
6828
+ }, C0 = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", R0 = S0, $0 = () => Te.toasts, T0 = () => Te.getActiveToasts(), Fb = Object.assign(R0, {
6829
6829
  success: Te.success,
6830
6830
  info: Te.info,
6831
6831
  warning: Te.warning,
@@ -7304,7 +7304,7 @@ const _0 = /* @__PURE__ */ $.forwardRef(function(t, n) {
7304
7304
  });
7305
7305
  })) : null;
7306
7306
  }));
7307
- }), Fb = ({ spinnerColor: e = "orange", ...t }) => /* @__PURE__ */ g(
7307
+ }), Ib = ({ spinnerColor: e = "orange", ...t }) => /* @__PURE__ */ g(
7308
7308
  _0,
7309
7309
  {
7310
7310
  position: "bottom-center",
@@ -7407,7 +7407,7 @@ const _0 = /* @__PURE__ */ $.forwardRef(function(t, n) {
7407
7407
  ${({ $clickable: e }) => e && B0}
7408
7408
  ${({ $disabled: e }) => e && z0}
7409
7409
  ${({ $size: e }) => O0[e]}
7410
- `, Ib = ({
7410
+ `, Lb = ({
7411
7411
  variant: e = "elevated",
7412
7412
  size: t = "md",
7413
7413
  disabled: n = !1,
@@ -7445,16 +7445,16 @@ const _0 = /* @__PURE__ */ $.forwardRef(function(t, n) {
7445
7445
  border-bottom: 1px solid var(--color-divider);
7446
7446
  padding-bottom: 0.5rem;
7447
7447
  `}
7448
- `, Lb = ({ children: e, showDivider: t = !1, ...n }) => /* @__PURE__ */ g(j0, { $showDivider: t, ...n, children: e }), G0 = C.div`
7448
+ `, _b = ({ children: e, showDivider: t = !1, ...n }) => /* @__PURE__ */ g(j0, { $showDivider: t, ...n, children: e }), G0 = C.div`
7449
7449
  flex: 1;
7450
7450
  display: flex;
7451
7451
  flex-direction: column;
7452
- `, _b = ({ children: e, showDivider: t = !1, ...n }) => /* @__PURE__ */ g(G0, { $showDivider: t, ...n, children: e }), U0 = C.div`
7452
+ `, Nb = ({ children: e, showDivider: t = !1, ...n }) => /* @__PURE__ */ g(G0, { $showDivider: t, ...n, children: e }), U0 = C.div`
7453
7453
  display: flex;
7454
7454
  align-items: center;
7455
7455
  align-self: stretch;
7456
7456
  gap: 0.5rem;
7457
- `, Nb = ({ children: e, ...t }) => /* @__PURE__ */ g(U0, { ...t, children: e }), W0 = {
7457
+ `, Ob = ({ children: e, ...t }) => /* @__PURE__ */ g(U0, { ...t, children: e }), W0 = {
7458
7458
  xs: b`
7459
7459
  ${V[12]}
7460
7460
  `,
@@ -7552,10 +7552,10 @@ const _0 = /* @__PURE__ */ $.forwardRef(function(t, n) {
7552
7552
  inputClassName: t.inputClassName,
7553
7553
  labelClassName: t.labelClassName,
7554
7554
  messageErrorClassName: t.messageErrorClassName
7555
- })), Ob = (e) => e.map((t) => ({
7555
+ })), Bb = (e) => e.map((t) => ({
7556
7556
  value: t.value,
7557
7557
  label: t.label
7558
- })), Bb = {
7558
+ })), zb = {
7559
7559
  text: (e, t, n) => yt([{ name: e, label: t, type: "text", ...n }])[0],
7560
7560
  email: (e, t, n) => yt([{ name: e, label: t, type: "email", required: !0, ...n }])[0],
7561
7561
  password: (e, t, n) => yt([
@@ -7608,7 +7608,7 @@ const _0 = /* @__PURE__ */ $.forwardRef(function(t, n) {
7608
7608
  ...r
7609
7609
  }
7610
7610
  ])[0]
7611
- }, zb = (e, t, n, r, o, i, s, a) => {
7611
+ }, Hb = (e, t, n, r, o, i, s, a) => {
7612
7612
  const { field: l, ...c } = t, u = {
7613
7613
  ...l,
7614
7614
  ...c,
@@ -8645,7 +8645,7 @@ const Ly = C.div`
8645
8645
  children: /* @__PURE__ */ g(Kc, {})
8646
8646
  }
8647
8647
  )
8648
- ] }, `${r.name}-${o}`)) }), Hb = ({
8648
+ ] }, `${r.name}-${o}`)) }), jb = ({
8649
8649
  variant: e = "default",
8650
8650
  multiple: t = !1,
8651
8651
  maxFileSize: n = 10,
@@ -9083,7 +9083,7 @@ const pv = (e, t, n, r, o, i, s = "text", a, l) => {
9083
9083
  o[h].current?.focus();
9084
9084
  const p = d.join("");
9085
9085
  d.every((m) => m !== "") && d.length >= u && l?.(p);
9086
- }, yv = (e) => Array(e).fill(null).map(() => Zu()), jb = (e, t, n = "text") => !(e.length !== t || n === "number" && !/^\d+$/.test(e)), vv = C.div`
9086
+ }, yv = (e) => Array(e).fill(null).map(() => Zu()), Gb = (e, t, n = "text") => !(e.length !== t || n === "number" && !/^\d+$/.test(e)), vv = C.div`
9087
9087
  display: flex;
9088
9088
  gap: 8px;
9089
9089
  align-items: center;
@@ -9590,7 +9590,7 @@ const kv = C.div`
9590
9590
  }
9591
9591
  )
9592
9592
  ] })
9593
- ), Gb = ({
9593
+ ), Ub = ({
9594
9594
  id: e,
9595
9595
  name: t,
9596
9596
  label: n,
@@ -9707,7 +9707,7 @@ const kv = C.div`
9707
9707
  duration: 0.3,
9708
9708
  ease: "easeInOut"
9709
9709
  }
9710
- }, Ub = {
9710
+ }, Wb = {
9711
9711
  fromBottom: {
9712
9712
  initial: { opacity: 0, y: 20 },
9713
9713
  animate: { opacity: 1, y: 0 },
@@ -10018,7 +10018,7 @@ const kv = C.div`
10018
10018
  ...s,
10019
10019
  children: o
10020
10020
  }
10021
- ), Wb = ({
10021
+ ), Kb = ({
10022
10022
  isOpen: e,
10023
10023
  onAccept: t,
10024
10024
  onCancel: n,
@@ -10770,7 +10770,7 @@ x1.displayName = "Link";
10770
10770
  *
10771
10771
  * @license MIT
10772
10772
  */
10773
- function Kb() {
10773
+ function Yb() {
10774
10774
  return {
10775
10775
  accessor: (e, t) => typeof e == "function" ? {
10776
10776
  ...t,
@@ -12846,7 +12846,7 @@ function Tw(e, t) {
12846
12846
  const n = t.toLowerCase().trim();
12847
12847
  return e.filter((r) => r.toLowerCase().includes(n));
12848
12848
  }
12849
- function Yb(e, t, n) {
12849
+ function qb(e, t, n) {
12850
12850
  const r = {};
12851
12851
  return e.forEach((o, i) => {
12852
12852
  let s;
@@ -12856,7 +12856,7 @@ function Yb(e, t, n) {
12856
12856
  }
12857
12857
  }), r;
12858
12858
  }
12859
- function qb(e, t) {
12859
+ function Xb(e, t) {
12860
12860
  const n = e.find((r) => r.id === t);
12861
12861
  return n ? n.value?.length > 0 : !1;
12862
12862
  }
@@ -12864,7 +12864,7 @@ function Pw(e, t) {
12864
12864
  const n = e.find((r) => r.id === t);
12865
12865
  return n ? n.value || [] : [];
12866
12866
  }
12867
- function Xb(e) {
12867
+ function Zb(e) {
12868
12868
  return e.reduce((t, n) => {
12869
12869
  const r = n.value;
12870
12870
  return t + (r?.length || 0);
@@ -13194,46 +13194,61 @@ const Lw = (e) => {
13194
13194
  text-overflow: ellipsis;
13195
13195
  white-space: nowrap;
13196
13196
  `}
13197
- `, jw = ({ cell: e }) => {
13198
- const { size: t } = Rr(), n = e.column.columnDef.meta, r = e.getValue(), o = typeof r == "string" || typeof r == "number" ? String(r) : void 0;
13197
+ `, jw = ({
13198
+ cell: e,
13199
+ rowClassName: t
13200
+ }) => {
13201
+ const { size: n } = Rr(), r = e.column.columnDef.meta, o = e.getValue(), i = typeof o == "string" || typeof o == "number" ? String(o) : void 0, s = [r?.className || "", t || ""].filter(Boolean).join(" ");
13199
13202
  return /* @__PURE__ */ g(
13200
13203
  Bw,
13201
13204
  {
13202
- $size: n?.size || t,
13203
- $align: n?.align,
13205
+ $size: r?.size || n,
13206
+ $align: r?.align,
13204
13207
  $width: e.column.getSize(),
13205
- title: n?.ellipsis && o ? o : void 0,
13206
- className: n?.className,
13207
- children: /* @__PURE__ */ g(zw, { $align: n?.align, children: /* @__PURE__ */ g(Hw, { $ellipsis: n?.ellipsis, children: tr(e.column.columnDef.cell, e.getContext()) }) })
13208
+ title: r?.ellipsis && i ? i : void 0,
13209
+ className: s,
13210
+ children: /* @__PURE__ */ g(zw, { $align: r?.align, children: /* @__PURE__ */ g(Hw, { $ellipsis: r?.ellipsis, children: tr(e.column.columnDef.cell, e.getContext()) }) })
13208
13211
  }
13209
13212
  );
13210
- }, Gw = zo(function({
13211
- row: t,
13212
- className: n
13213
+ };
13214
+ function Gw({
13215
+ row: e,
13216
+ className: t,
13217
+ cellClassName: n
13213
13218
  }) {
13214
13219
  const { onRowClick: r } = Rr(), o = !!r;
13215
13220
  return /* @__PURE__ */ g(
13216
13221
  Cu,
13217
13222
  {
13218
13223
  $clickable: o,
13219
- onClick: () => o && r(t.original),
13224
+ onClick: () => o && r(e.original),
13220
13225
  role: o ? "button" : void 0,
13221
13226
  tabIndex: o ? 0 : void 0,
13222
- className: n,
13223
- children: t.getVisibleCells().map((i) => /* @__PURE__ */ g(jw, { cell: i }, i.id))
13227
+ className: t,
13228
+ children: e.getVisibleCells().map((i) => /* @__PURE__ */ g(jw, { cell: i, rowClassName: n }, i.id))
13224
13229
  }
13225
13230
  );
13226
- }), Ia = ({
13231
+ }
13232
+ const Uw = zo(Gw), Ia = ({
13227
13233
  rows: e,
13228
13234
  className: t,
13229
- rowClassName: n
13235
+ rowClassName: n,
13236
+ cellClassName: r
13230
13237
  }) => /* @__PURE__ */ E("tbody", { className: t, children: [
13231
- e.map((r) => {
13232
- const o = typeof n == "function" ? n(r) : n;
13233
- return /* @__PURE__ */ g(Gw, { row: r, className: o }, r.id);
13238
+ e.map((o) => {
13239
+ const i = typeof n == "function" ? n(o) : n, s = typeof r == "function" ? r(o) : r;
13240
+ return /* @__PURE__ */ g(
13241
+ Uw,
13242
+ {
13243
+ row: o,
13244
+ className: i,
13245
+ cellClassName: s
13246
+ },
13247
+ o.id
13248
+ );
13234
13249
  }),
13235
13250
  e.length === 0 && /* @__PURE__ */ g("tr", { children: /* @__PURE__ */ g("td", { colSpan: 100, className: "py-4 text-center text-[var(--color-main-grey)]", children: "No results found" }) })
13236
- ] }), Uw = C.section`
13251
+ ] }), Ww = C.section`
13237
13252
  display: flex;
13238
13253
  align-items: center;
13239
13254
  gap: 0.5rem;
@@ -13288,9 +13303,9 @@ const Lw = (e) => {
13288
13303
  height: 1rem;
13289
13304
  }
13290
13305
  }
13291
- `, Ww = C(ku)`
13306
+ `, Kw = C(ku)`
13292
13307
  min-width: 2rem;
13293
- `, Kw = C.span`
13308
+ `, Yw = C.span`
13294
13309
  ${V[14]}
13295
13310
  display: flex;
13296
13311
  align-items: center;
@@ -13299,7 +13314,7 @@ const Lw = (e) => {
13299
13314
  height: 2rem;
13300
13315
  color: var(--color-main-blue-primary);
13301
13316
  user-select: none;
13302
- `, Yw = C.div`
13317
+ `, qw = C.div`
13303
13318
  display: flex;
13304
13319
  align-items: center;
13305
13320
  gap: 0.5rem;
@@ -13318,7 +13333,7 @@ const Lw = (e) => {
13318
13333
  justify-content: center;
13319
13334
  order: 10; /* Move to bottom on mobile */
13320
13335
  }
13321
- `, qw = C(Ai)`
13336
+ `, Xw = C(Ai)`
13322
13337
  button {
13323
13338
  ${V[14]}
13324
13339
  height: 2rem;
@@ -13334,7 +13349,7 @@ const Lw = (e) => {
13334
13349
  div {
13335
13350
  right: 10%;
13336
13351
  }
13337
- `, Zb = ({
13352
+ `, Jb = ({
13338
13353
  onPageChange: e,
13339
13354
  onPerPageChange: t,
13340
13355
  perPage: n = 10,
@@ -13362,7 +13377,7 @@ const Lw = (e) => {
13362
13377
  { value: 50, label: "50" },
13363
13378
  { value: 100, label: "100" }
13364
13379
  ], u = i !== void 0 && i > 0, d = u ? (r - 1) * n + 1 : 0, f = u ? Math.min(r * n, i) : 0;
13365
- return /* @__PURE__ */ E(Uw, { children: [
13380
+ return /* @__PURE__ */ E(Ww, { children: [
13366
13381
  u && /* @__PURE__ */ E(ur, { size: 14, children: [
13367
13382
  "Showing ",
13368
13383
  d,
@@ -13384,8 +13399,8 @@ const Lw = (e) => {
13384
13399
  ]
13385
13400
  }
13386
13401
  ),
13387
- l.map((h, p) => h === "..." ? /* @__PURE__ */ g(Kw, { children: "..." }, `ellipsis-${p}`) : /* @__PURE__ */ g(
13388
- Ww,
13402
+ l.map((h, p) => h === "..." ? /* @__PURE__ */ g(Yw, { children: "..." }, `ellipsis-${p}`) : /* @__PURE__ */ g(
13403
+ Kw,
13389
13404
  {
13390
13405
  onClick: () => e(h),
13391
13406
  $active: r === h,
@@ -13408,9 +13423,9 @@ const Lw = (e) => {
13408
13423
  ]
13409
13424
  }
13410
13425
  ),
13411
- /* @__PURE__ */ E(Yw, { children: [
13426
+ /* @__PURE__ */ E(qw, { children: [
13412
13427
  /* @__PURE__ */ g(
13413
- qw,
13428
+ Xw,
13414
13429
  {
13415
13430
  size: "sm",
13416
13431
  value: n,
@@ -13421,7 +13436,7 @@ const Lw = (e) => {
13421
13436
  /* @__PURE__ */ g(ur, { size: 12, children: "Rows per page" })
13422
13437
  ] })
13423
13438
  ] });
13424
- }, Xw = ({
13439
+ }, Zw = ({
13425
13440
  sorting: e,
13426
13441
  defaultSorting: t = [],
13427
13442
  onSortingChange: n
@@ -13444,7 +13459,7 @@ const Lw = (e) => {
13444
13459
  isControlled: i,
13445
13460
  setSorting: l
13446
13461
  };
13447
- }, Zw = ({
13462
+ }, Jw = ({
13448
13463
  columnFilters: e,
13449
13464
  defaultColumnFilters: t = [],
13450
13465
  onColumnFiltersChange: n
@@ -13474,7 +13489,7 @@ const Lw = (e) => {
13474
13489
  if (!e)
13475
13490
  throw new Error("useTableContext debe usarse dentro de Table");
13476
13491
  return e;
13477
- }, Jw = ({
13492
+ }, Qw = ({
13478
13493
  data: e,
13479
13494
  columns: t,
13480
13495
  size: n = "md",
@@ -13496,11 +13511,11 @@ const Lw = (e) => {
13496
13511
  isLoading: S = !1,
13497
13512
  getUniqueValues: w
13498
13513
  }) => {
13499
- const { sortingState: R, handleSortingChange: x, setSorting: T } = Xw({
13514
+ const { sortingState: R, handleSortingChange: x, setSorting: T } = Zw({
13500
13515
  sorting: s,
13501
13516
  defaultSorting: a,
13502
13517
  onSortingChange: l
13503
- }), { columnFiltersState: P, handleColumnFiltersChange: k, setColumnFilters: M } = Zw({
13518
+ }), { columnFiltersState: P, handleColumnFiltersChange: k, setColumnFilters: M } = Jw({
13504
13519
  columnFilters: c,
13505
13520
  defaultColumnFilters: u,
13506
13521
  onColumnFiltersChange: d
@@ -13588,34 +13603,35 @@ const Lw = (e) => {
13588
13603
  {
13589
13604
  rows: j.getRowModel().rows,
13590
13605
  className: h?.body,
13591
- rowClassName: h?.row
13606
+ rowClassName: h?.row,
13607
+ cellClassName: h?.cell
13592
13608
  }
13593
13609
  )
13594
13610
  ] })
13595
13611
  }
13596
13612
  ) });
13597
13613
  };
13598
- Jw.displayName = "Table";
13599
- function Qw(e) {
13614
+ Qw.displayName = "Table";
13615
+ function eb(e) {
13600
13616
  const t = {};
13601
13617
  for (const n of e)
13602
13618
  t[n.id] = n.desc ? "desc" : "asc";
13603
13619
  return t;
13604
13620
  }
13605
- function Jb(e) {
13621
+ function Qb(e) {
13606
13622
  return Object.entries(e).map(([t, n]) => ({
13607
13623
  id: t,
13608
13624
  desc: n === "desc"
13609
13625
  }));
13610
13626
  }
13611
- function eb(e) {
13612
- return e.length === 0 ? "" : JSON.stringify(Qw(e));
13627
+ function tb(e) {
13628
+ return e.length === 0 ? "" : JSON.stringify(eb(e));
13613
13629
  }
13614
- function Qb(e) {
13630
+ function ex(e) {
13615
13631
  const t = new URLSearchParams();
13616
- return e.sorting && e.sorting.length > 0 && t.append("sorts", eb(e.sorting)), e.perPage && t.append("perPage", e.perPage.toString()), e.genericSearch && t.append("genericSearch", e.genericSearch), e.filters && Object.keys(e.filters).length > 0 && t.append("filters", JSON.stringify(e.filters)), t;
13632
+ return e.sorting && e.sorting.length > 0 && t.append("sorts", tb(e.sorting)), e.perPage && t.append("perPage", e.perPage.toString()), e.genericSearch && t.append("genericSearch", e.genericSearch), e.filters && Object.keys(e.filters).length > 0 && t.append("filters", JSON.stringify(e.filters)), t;
13617
13633
  }
13618
- const ex = ({
13634
+ const tx = ({
13619
13635
  data: e,
13620
13636
  columns: t,
13621
13637
  initialPage: n = 1,
@@ -13677,30 +13693,30 @@ const ex = ({
13677
13693
  getUniqueValues: m
13678
13694
  };
13679
13695
  };
13680
- function tb(e) {
13696
+ function nb(e) {
13681
13697
  const t = {};
13682
13698
  return e.forEach((n) => {
13683
13699
  t[n.id] = n.value;
13684
13700
  }), t;
13685
13701
  }
13686
- function nb(e) {
13687
- return JSON.stringify(tb(e));
13702
+ function rb(e) {
13703
+ return JSON.stringify(nb(e));
13688
13704
  }
13689
- function tx(e, t = ",") {
13705
+ function nx(e, t = ",") {
13690
13706
  const n = {};
13691
13707
  return e.forEach((r) => {
13692
13708
  const o = r.value;
13693
13709
  o && o.length > 0 && (n[`filter[${r.id}]`] = o.join(t));
13694
13710
  }), n;
13695
13711
  }
13696
- function nx(e) {
13712
+ function rx(e) {
13697
13713
  const t = {};
13698
13714
  return e.forEach((n) => {
13699
13715
  const r = n.value;
13700
13716
  r && r.length > 0 && (t[`filter[${n.id}]`] = r);
13701
13717
  }), t;
13702
13718
  }
13703
- function rx({
13719
+ function ox({
13704
13720
  filters: e,
13705
13721
  sorts: t,
13706
13722
  page: n,
@@ -13711,9 +13727,9 @@ function rx({
13711
13727
  const i = t.map((a) => a.id).join(","), s = t.map((a) => a.desc ? "desc" : "asc").join(",");
13712
13728
  o.sort_by = i, o.sort_order = s;
13713
13729
  }
13714
- return e && e.length > 0 && (o.filters = nb(e)), o;
13730
+ return e && e.length > 0 && (o.filters = rb(e)), o;
13715
13731
  }
13716
- function ox(e, t = ",") {
13732
+ function ix(e, t = ",") {
13717
13733
  const n = typeof e == "string" ? new URLSearchParams(e) : e, r = [];
13718
13734
  return n.forEach((o, i) => {
13719
13735
  const s = i.match(/^filter\[(.+)\]$/);
@@ -13723,7 +13739,7 @@ function ox(e, t = ",") {
13723
13739
  }
13724
13740
  }), r;
13725
13741
  }
13726
- function ix(e) {
13742
+ function sx(e) {
13727
13743
  try {
13728
13744
  const t = JSON.parse(e);
13729
13745
  return Object.entries(t).map(([n, r]) => ({ id: n, value: r }));
@@ -13731,7 +13747,7 @@ function ix(e) {
13731
13747
  return [];
13732
13748
  }
13733
13749
  }
13734
- function sx(...e) {
13750
+ function ax(...e) {
13735
13751
  const t = /* @__PURE__ */ new Map();
13736
13752
  return e.forEach((n) => {
13737
13753
  n.forEach((r) => {
@@ -13739,7 +13755,7 @@ function sx(...e) {
13739
13755
  });
13740
13756
  }), Array.from(t.entries()).map(([n, r]) => ({ id: n, value: r }));
13741
13757
  }
13742
- const rb = C.div`
13758
+ const ob = C.div`
13743
13759
  position: relative;
13744
13760
  display: flex;
13745
13761
  align-items: center;
@@ -13757,7 +13773,7 @@ const rb = C.div`
13757
13773
  outline: 2px solid var(--color-main-blue-primary);
13758
13774
  outline-offset: 2px;
13759
13775
  }
13760
- `, ob = C.div`
13776
+ `, ib = C.div`
13761
13777
  width: 2rem;
13762
13778
  height: 2rem;
13763
13779
  border-radius: 50%;
@@ -13765,7 +13781,7 @@ const rb = C.div`
13765
13781
  display: flex;
13766
13782
  align-items: center;
13767
13783
  justify-content: center;
13768
- `, ib = C.div`
13784
+ `, sb = C.div`
13769
13785
  display: flex;
13770
13786
  flex-direction: column;
13771
13787
  align-items: flex-start;
@@ -13773,7 +13789,7 @@ const rb = C.div`
13773
13789
  @media (max-width: 640px) {
13774
13790
  display: none;
13775
13791
  }
13776
- `, sb = C(rt.div)`
13792
+ `, ab = C(rt.div)`
13777
13793
  display: flex;
13778
13794
  align-items: center;
13779
13795
  justify-content: center;
@@ -13782,7 +13798,7 @@ const rb = C.div`
13782
13798
  @media (max-width: 640px) {
13783
13799
  display: none;
13784
13800
  }
13785
- `, ab = C(rt.div)`
13801
+ `, lb = C(rt.div)`
13786
13802
  position: absolute;
13787
13803
  top: 100%;
13788
13804
  right: 0;
@@ -13794,7 +13810,7 @@ const rb = C.div`
13794
13810
  box-shadow: var(--shadow-black-card);
13795
13811
  z-index: 100;
13796
13812
  overflow: hidden;
13797
- `, lb = C.button`
13813
+ `, cb = C.button`
13798
13814
  width: 100%;
13799
13815
  display: flex;
13800
13816
  align-items: center;
@@ -13860,7 +13876,7 @@ const rb = C.div`
13860
13876
  ], ...r];
13861
13877
  return /* @__PURE__ */ E("div", { ref: s, children: [
13862
13878
  /* @__PURE__ */ E(
13863
- rb,
13879
+ ob,
13864
13880
  {
13865
13881
  onClick: () => i(!o),
13866
13882
  role: "button",
@@ -13869,13 +13885,13 @@ const rb = C.div`
13869
13885
  (u.key === "Enter" || u.key === " ") && (u.preventDefault(), i(!o));
13870
13886
  },
13871
13887
  children: [
13872
- /* @__PURE__ */ g(ob, { children: e.avatarUrl ? /* @__PURE__ */ g("img", { src: e.avatarUrl, alt: e.name }) : /* @__PURE__ */ g(lt, { size: 14, color: "var(--color-main-white)", className: "!font-semibold", children: a(e.name) }) }),
13873
- /* @__PURE__ */ E(ib, { children: [
13888
+ /* @__PURE__ */ g(ib, { children: e.avatarUrl ? /* @__PURE__ */ g("img", { src: e.avatarUrl, alt: e.name }) : /* @__PURE__ */ g(lt, { size: 14, color: "var(--color-main-white)", className: "!font-semibold", children: a(e.name) }) }),
13889
+ /* @__PURE__ */ E(sb, { children: [
13874
13890
  /* @__PURE__ */ g(lt, { size: 14, className: "!font-semibold", children: e.name }),
13875
13891
  /* @__PURE__ */ g(lt, { size: 12, children: e.role })
13876
13892
  ] }),
13877
13893
  /* @__PURE__ */ g(
13878
- sb,
13894
+ ab,
13879
13895
  {
13880
13896
  animate: { rotate: o ? -180 : 0 },
13881
13897
  transition: { duration: 0.3 },
@@ -13893,14 +13909,14 @@ const rb = C.div`
13893
13909
  }
13894
13910
  ),
13895
13911
  /* @__PURE__ */ g(En, { children: o && /* @__PURE__ */ g(
13896
- ab,
13912
+ lb,
13897
13913
  {
13898
13914
  initial: { opacity: 0, y: -10, scale: 0.95 },
13899
13915
  animate: { opacity: 1, y: 0, scale: 1 },
13900
13916
  exit: { opacity: 0, y: -10, scale: 0.95 },
13901
13917
  transition: { duration: 0.15 },
13902
13918
  children: c.map((u) => /* @__PURE__ */ g(Bo, { children: /* @__PURE__ */ E(
13903
- lb,
13919
+ cb,
13904
13920
  {
13905
13921
  onClick: u.onClick,
13906
13922
  className: u.variant === "danger" ? "danger" : "",
@@ -13929,7 +13945,7 @@ const rb = C.div`
13929
13945
  ] });
13930
13946
  };
13931
13947
  Mu.displayName = "UserProfile";
13932
- const cb = ({
13948
+ const ub = ({
13933
13949
  hasNotifications: e = !1,
13934
13950
  notificationCount: t
13935
13951
  }) => {
@@ -13940,7 +13956,7 @@ const cb = ({
13940
13956
  badgeLabel: o,
13941
13957
  bellAriaLabel: i
13942
13958
  };
13943
- }, ub = C.button`
13959
+ }, db = C.button`
13944
13960
  position: relative;
13945
13961
  background: transparent;
13946
13962
  border: none;
@@ -13964,7 +13980,7 @@ const cb = ({
13964
13980
  &:active {
13965
13981
  transform: scale(0.92);
13966
13982
  }
13967
- `, db = C.span`
13983
+ `, fb = C.span`
13968
13984
  position: absolute;
13969
13985
  top: 0.35rem;
13970
13986
  right: 0.35rem;
@@ -13985,12 +14001,12 @@ const cb = ({
13985
14001
  notificationCount: t,
13986
14002
  onNotificationClick: n
13987
14003
  }) => {
13988
- const { effectiveHasNotifications: r, displayCount: o, bellAriaLabel: i } = cb({
14004
+ const { effectiveHasNotifications: r, displayCount: o, bellAriaLabel: i } = ub({
13989
14005
  hasNotifications: e,
13990
14006
  notificationCount: t
13991
14007
  });
13992
14008
  return /* @__PURE__ */ E(
13993
- ub,
14009
+ db,
13994
14010
  {
13995
14011
  onClick: n,
13996
14012
  "aria-label": i,
@@ -14005,13 +14021,13 @@ const cb = ({
14005
14021
  color: "var(--color-main-blue-primary)"
14006
14022
  }
14007
14023
  ),
14008
- r && /* @__PURE__ */ g(db, { $withCount: !!o, "aria-hidden": !!o, children: o && (o > 99 ? "99+" : o) })
14024
+ r && /* @__PURE__ */ g(fb, { $withCount: !!o, "aria-hidden": !!o, children: o && (o > 99 ? "99+" : o) })
14009
14025
  ]
14010
14026
  }
14011
14027
  );
14012
14028
  };
14013
14029
  Au.displayName = "NotificationButton";
14014
- const fb = C.header`
14030
+ const hb = C.header`
14015
14031
  position: fixed;
14016
14032
  top: 0;
14017
14033
  left: 0;
@@ -14027,11 +14043,11 @@ const fb = C.header`
14027
14043
  padding: 0 1rem;
14028
14044
  transition: padding-left 0.3s ease-out;
14029
14045
  padding-left: 5rem;
14030
- `, hb = C.div`
14046
+ `, pb = C.div`
14031
14047
  display: flex;
14032
14048
  align-items: center;
14033
14049
  gap: 1rem;
14034
- `, pb = C.div`
14050
+ `, mb = C.div`
14035
14051
  display: flex;
14036
14052
  align-items: center;
14037
14053
  gap: 1rem;
@@ -14044,9 +14060,9 @@ const fb = C.header`
14044
14060
  onLogout: i,
14045
14061
  userMenuItems: s,
14046
14062
  children: a
14047
- }) => /* @__PURE__ */ E(fb, { children: [
14048
- /* @__PURE__ */ g(hb, { children: a }),
14049
- /* @__PURE__ */ E(pb, { children: [
14063
+ }) => /* @__PURE__ */ E(hb, { children: [
14064
+ /* @__PURE__ */ g(pb, { children: a }),
14065
+ /* @__PURE__ */ E(mb, { children: [
14050
14066
  /* @__PURE__ */ g(
14051
14067
  Au,
14052
14068
  {
@@ -14067,7 +14083,7 @@ const fb = C.header`
14067
14083
  ] })
14068
14084
  ] });
14069
14085
  Vu.displayName = "Header";
14070
- const mb = C.main`
14086
+ const gb = C.main`
14071
14087
  flex: 1;
14072
14088
  margin-top: 4rem;
14073
14089
  /* Mobile-first: no lateral offset so content occupies full width */
@@ -14083,14 +14099,14 @@ const mb = C.main`
14083
14099
  @media (min-width: 1200px) {
14084
14100
  margin-left: 5rem;
14085
14101
  }
14086
- `, Du = ({ children: e, className: t }) => /* @__PURE__ */ g(mb, { className: t, children: e });
14102
+ `, Du = ({ children: e, className: t }) => /* @__PURE__ */ g(gb, { className: t, children: e });
14087
14103
  Du.displayName = "LayoutMainContent";
14088
- const gb = C.div`
14104
+ const yb = C.div`
14089
14105
  display: flex;
14090
14106
  flex-direction: column;
14091
14107
  height: 100vh;
14092
14108
  overflow: hidden;
14093
- `, yb = ({
14109
+ `, vb = ({
14094
14110
  children: e,
14095
14111
  navigationConfig: t,
14096
14112
  userRoles: n = [],
@@ -14106,7 +14122,7 @@ const gb = C.div`
14106
14122
  contentClassName: f,
14107
14123
  logoImgCollapsed: h,
14108
14124
  logoImgExpanded: p
14109
- }) => /* @__PURE__ */ E(gb, { children: [
14125
+ }) => /* @__PURE__ */ E(yb, { children: [
14110
14126
  /* @__PURE__ */ g(
14111
14127
  fu,
14112
14128
  {
@@ -14131,8 +14147,8 @@ const gb = C.div`
14131
14147
  }
14132
14148
  ),
14133
14149
  /* @__PURE__ */ g(Du, { className: f, children: e })
14134
- ] }), ax = (e) => /* @__PURE__ */ g(Qv, { children: /* @__PURE__ */ g(yb, { ...e }) });
14135
- function lx(e, t, n) {
14150
+ ] }), lx = (e) => /* @__PURE__ */ g(Qv, { children: /* @__PURE__ */ g(vb, { ...e }) });
14151
+ function cx(e, t, n) {
14136
14152
  let r = `${e}=${encodeURIComponent(t)}; path=/; SameSite=Strict; Secure`;
14137
14153
  if (n) {
14138
14154
  const o = new Date(Date.now() + n * 864e5).toUTCString();
@@ -14140,13 +14156,13 @@ function lx(e, t, n) {
14140
14156
  }
14141
14157
  document.cookie = r;
14142
14158
  }
14143
- function cx(e) {
14159
+ function ux(e) {
14144
14160
  return document.cookie.split("; ").reduce((t, n) => {
14145
14161
  const r = n.split("=");
14146
14162
  return r[0] === e ? decodeURIComponent(r[1]) : t;
14147
14163
  }, "");
14148
14164
  }
14149
- function ux(e) {
14165
+ function dx(e) {
14150
14166
  document.cookie = `${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`;
14151
14167
  }
14152
14168
  const vn = {
@@ -14165,15 +14181,15 @@ const vn = {
14165
14181
  fontSize: V[20],
14166
14182
  line: "3px"
14167
14183
  }
14168
- }, vb = C.div`
14184
+ }, wb = C.div`
14169
14185
  display: flex;
14170
14186
  width: 100%;
14171
- `, wb = C.div`
14187
+ `, bb = C.div`
14172
14188
  display: flex;
14173
14189
  flex-direction: ${({ $orientation: e }) => e === "vertical" ? "column" : "row"};
14174
14190
  align-items: center;
14175
14191
  width: 100%;
14176
- `, bb = C.div`
14192
+ `, xb = C.div`
14177
14193
  display: flex;
14178
14194
  align-items: center;
14179
14195
  justify-content: center;
@@ -14224,7 +14240,7 @@ const vn = {
14224
14240
  box-shadow: var(--shadow-hover-black-button);
14225
14241
  }
14226
14242
  `}
14227
- `, xb = C.div`
14243
+ `, Sb = C.div`
14228
14244
  background-color: ${({ $isCompleted: e }) => e ? "var(--color-main-blue-primary)" : "var(--color-dark-300)"};
14229
14245
  transition: background-color 0.3s ease;
14230
14246
 
@@ -14236,7 +14252,7 @@ const vn = {
14236
14252
  flex: 1;
14237
14253
  min-width: 2rem;
14238
14254
  `}
14239
- `, Sb = C.span`
14255
+ `, Cb = C.span`
14240
14256
  position: absolute;
14241
14257
  ${V[14]}
14242
14258
  font-weight: 500;
@@ -14269,7 +14285,7 @@ const vn = {
14269
14285
  ${Fu}:hover & {
14270
14286
  opacity: 1;
14271
14287
  }
14272
- `, dx = ({
14288
+ `, fx = ({
14273
14289
  steps: e,
14274
14290
  currentStep: t,
14275
14291
  orientation: n = "horizontal",
@@ -14280,10 +14296,10 @@ const vn = {
14280
14296
  const s = (a) => {
14281
14297
  o?.(a);
14282
14298
  };
14283
- return /* @__PURE__ */ g(vb, { $orientation: n, className: i, children: /* @__PURE__ */ g(wb, { $orientation: n, children: e.map((a, l) => {
14299
+ return /* @__PURE__ */ g(wb, { $orientation: n, className: i, children: /* @__PURE__ */ g(bb, { $orientation: n, children: e.map((a, l) => {
14284
14300
  const c = l === t, u = l < t, d = o != null;
14285
14301
  return /* @__PURE__ */ E(Mt, { children: [
14286
- /* @__PURE__ */ g(bb, { $orientation: n, children: /* @__PURE__ */ E(
14302
+ /* @__PURE__ */ g(xb, { $orientation: n, children: /* @__PURE__ */ E(
14287
14303
  Fu,
14288
14304
  {
14289
14305
  $isActive: c,
@@ -14300,12 +14316,12 @@ const vn = {
14300
14316
  },
14301
14317
  children: [
14302
14318
  a.content ?? l + 1,
14303
- a.label && n === "vertical" && /* @__PURE__ */ g(Sb, { children: a.label })
14319
+ a.label && n === "vertical" && /* @__PURE__ */ g(Cb, { children: a.label })
14304
14320
  ]
14305
14321
  }
14306
14322
  ) }),
14307
14323
  l < e.length - 1 && /* @__PURE__ */ g(
14308
- xb,
14324
+ Sb,
14309
14325
  {
14310
14326
  $isCompleted: u,
14311
14327
  $orientation: n,
@@ -14318,14 +14334,14 @@ const vn = {
14318
14334
  export {
14319
14335
  Z0 as ALLOWED_INPUT_TYPES,
14320
14336
  u1 as Aside,
14321
- Ab as Badge,
14337
+ Vb as Badge,
14322
14338
  Uc as BaseInput,
14323
14339
  f1 as BrandLogo,
14324
14340
  $n as Button,
14325
- Ib as Card,
14326
- _b as CardBody,
14327
- Nb as CardFooter,
14328
- Lb as CardHeader,
14341
+ Lb as Card,
14342
+ Nb as CardBody,
14343
+ Ob as CardFooter,
14344
+ _b as CardHeader,
14329
14345
  Sr as Checkbox,
14330
14346
  eu as CheckboxInput,
14331
14347
  lv as CheckboxLabel,
@@ -14336,21 +14352,21 @@ export {
14336
14352
  Hv as DialogBody,
14337
14353
  Gv as DialogFooter,
14338
14354
  Bv as DialogHeader,
14339
- Vb as Divider,
14355
+ Db as Divider,
14340
14356
  Gc as ErrorMessage,
14341
14357
  tv as FileList,
14342
- Hb as FileUpload,
14358
+ jb as FileUpload,
14343
14359
  $u as FilterOption,
14344
- Gb as FormField,
14345
- Mb as FullScreenSpinner,
14360
+ Ub as FormField,
14361
+ Ab as FullScreenSpinner,
14346
14362
  Vu as Header,
14347
14363
  cf as HeadingBold,
14348
- kb as HeadingRegular,
14364
+ Eb as HeadingRegular,
14349
14365
  Q as Icon,
14350
14366
  Mi as IconWrapperStyles,
14351
14367
  ur as InfoLabel,
14352
14368
  ki as Label,
14353
- ax as Layout,
14369
+ lx as Layout,
14354
14370
  Du as LayoutMainContent,
14355
14371
  x1 as Link,
14356
14372
  y1 as LinkDisabledStyles,
@@ -14374,74 +14390,74 @@ export {
14374
14390
  d1 as SidebarHeader,
14375
14391
  Qv as SidebarProvider,
14376
14392
  Pi as Spinner,
14377
- dx as Stepper,
14378
- Jw as Table,
14393
+ fx as Stepper,
14394
+ Qw as Table,
14379
14395
  Ia as TableBody,
14380
14396
  jw as TableCell,
14381
14397
  Fa as TableHeader,
14382
14398
  _w as TableHeaderCell,
14383
14399
  Nw as TableHeaderRow,
14384
- Zb as TablePagination,
14385
- Gw as TableRow,
14386
- Wb as TermsAndConditions,
14400
+ Jb as TablePagination,
14401
+ Uw as TableRow,
14402
+ Kb as TermsAndConditions,
14387
14403
  lt as Text,
14388
14404
  Jc as TextAreaInput,
14389
- Fb as ToastProvider,
14405
+ Ib as ToastProvider,
14390
14406
  Jv as Tooltip,
14391
14407
  Mu as UserProfile,
14392
14408
  on as baseFieldStyles,
14393
14409
  Ei as baseInputStyles,
14394
14410
  V as bodyTextStyles,
14395
- nx as columnFiltersToArrayQueryParams,
14396
- nb as columnFiltersToJsonString,
14397
- tx as columnFiltersToQueryParams,
14398
- tb as columnFiltersToRecord,
14399
- Qb as createBackendParams,
14400
- rx as createBackendParamsWithFilters,
14401
- Kb as createColumnHelper,
14402
- Bb as createFieldConfig,
14411
+ rx as columnFiltersToArrayQueryParams,
14412
+ rb as columnFiltersToJsonString,
14413
+ nx as columnFiltersToQueryParams,
14414
+ nb as columnFiltersToRecord,
14415
+ ex as createBackendParams,
14416
+ ox as createBackendParamsWithFilters,
14417
+ Yb as createColumnHelper,
14418
+ zb as createFieldConfig,
14403
14419
  yv as createInputRefs,
14404
- ux as deleteCookie,
14420
+ dx as deleteCookie,
14405
14421
  At as disabledStyles,
14406
14422
  sn as errorStyles,
14407
14423
  Q0 as flushedStyles,
14408
- Xb as getActiveFilterCount,
14424
+ Zb as getActiveFilterCount,
14409
14425
  Pw as getActiveFilterValues,
14410
- Yb as getColumnValueCounts,
14411
- cx as getCookie,
14412
- zb as getPropsForInputType,
14426
+ qb as getColumnValueCounts,
14427
+ ux as getCookie,
14428
+ Hb as getPropsForInputType,
14413
14429
  Tu as getUniqueColumnValues,
14414
14430
  pv as handleDigitChange,
14415
14431
  mv as handleKeyDown,
14416
14432
  gv as handlePaste,
14417
- qb as hasActiveFilters,
14433
+ Xb as hasActiveFilters,
14418
14434
  ka as hasPermission,
14419
14435
  ul as headingBoldStyles,
14420
14436
  lf as headingRegularStyles,
14421
14437
  J0 as isAllowedInputType,
14422
- sx as mergeFilters,
14438
+ ax as mergeFilters,
14423
14439
  $w as multiSelectFilter,
14424
14440
  yt as normalizeFieldTypes,
14425
- Ob as normalizeSelectOptions,
14441
+ Bb as normalizeSelectOptions,
14426
14442
  au as overlayAnimation,
14427
- ix as parseJsonToFilters,
14428
- ox as parseQueryParamsToFilters,
14443
+ sx as parseJsonToFilters,
14444
+ ix as parseQueryParamsToFilters,
14429
14445
  Tw as searchInArray,
14430
- lx as setCookie,
14446
+ cx as setCookie,
14431
14447
  xr as sizeStyles,
14432
- Ub as slideAnimation,
14448
+ Wb as slideAnimation,
14433
14449
  Mv as smartAnimation,
14434
- Jb as sortRecordToSortingState,
14435
- eb as sortingStateToJsonString,
14436
- Qw as sortingStateToRecord,
14450
+ Qb as sortRecordToSortingState,
14451
+ tb as sortingStateToJsonString,
14452
+ eb as sortingStateToRecord,
14437
14453
  Av as submenuAnimationTopDown,
14438
- Db as toast,
14454
+ Fb as toast,
14439
14455
  Lw as useColumnFilter,
14440
- cb as useNotifications,
14456
+ ub as useNotifications,
14441
14457
  cu as useSidebar,
14442
14458
  Rr as useTableContext,
14443
- ex as useTableData,
14444
- Zw as useTableFiltering,
14445
- Xw as useTableSorting,
14446
- jb as validateCode
14459
+ tx as useTableData,
14460
+ Jw as useTableFiltering,
14461
+ Zw as useTableSorting,
14462
+ Gb as validateCode
14447
14463
  };