tcce-design-system 0.1.2 → 0.1.4

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.
@@ -1328,7 +1328,7 @@ const Sa = {
1328
1328
  ${({ size: t = 24 }) => Sa[t]}
1329
1329
  margin: 0;
1330
1330
  color: ${({ color: t }) => t || "var(--color-main-blue-primary)"};
1331
- `, Yy = k.h2`
1331
+ `, Gy = k.h2`
1332
1332
  ${({ size: t = 24 }) => Yu[t]}
1333
1333
  margin: 0;
1334
1334
  color: ${({ color: t }) => t || "var(--color-main-blue-primary)"};
@@ -6293,7 +6293,7 @@ const Ap = {
6293
6293
  ${Sa[30]}
6294
6294
  color: var(--color-main-blue-primary);
6295
6295
  margin: 0;
6296
- `, Xy = ({ message: t = "Loading...", color: e = "primary", variant: n = "rotate" }) => /* @__PURE__ */ R(Np, { role: "status", "aria-live": "polite", children: [
6296
+ `, qy = ({ message: t = "Loading...", color: e = "primary", variant: n = "rotate" }) => /* @__PURE__ */ R(Np, { role: "status", "aria-live": "polite", children: [
6297
6297
  /* @__PURE__ */ p(Lp, { children: /* @__PURE__ */ p(
6298
6298
  _i,
6299
6299
  {
@@ -6311,7 +6311,7 @@ const Ap = {
6311
6311
  align-items: center;
6312
6312
  justify-content: center;
6313
6313
  padding: 3rem 1rem;
6314
- `, qy = ({ message: t, color: e = "primary", variant: n = "rotate" }) => /* @__PURE__ */ p(Op, { role: "status", "aria-live": "polite", children: /* @__PURE__ */ p(
6314
+ `, Zy = ({ message: t, color: e = "primary", variant: n = "rotate" }) => /* @__PURE__ */ p(Op, { role: "status", "aria-live": "polite", children: /* @__PURE__ */ p(
6315
6315
  _i,
6316
6316
  {
6317
6317
  size: "lg",
@@ -6695,8 +6695,7 @@ const vt = new tg(), eg = (t, e) => {
6695
6695
  ...e,
6696
6696
  id: n
6697
6697
  }), n;
6698
- }, ng = (t) => t && typeof t == "object" && "ok" in t && typeof t.ok == "boolean" && "status" in t && typeof t.status == "number", rg = eg, ig = () => vt.toasts, og = () => vt.getActiveToasts();
6699
- Object.assign(rg, {
6698
+ }, ng = (t) => t && typeof t == "object" && "ok" in t && typeof t.ok == "boolean" && "status" in t && typeof t.status == "number", rg = eg, ig = () => vt.toasts, og = () => vt.getActiveToasts(), Jy = Object.assign(rg, {
6700
6699
  success: vt.success,
6701
6700
  info: vt.info,
6702
6701
  warning: vt.warning,
@@ -7175,7 +7174,7 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
7175
7174
  });
7176
7175
  })) : null;
7177
7176
  }));
7178
- }), Zy = () => /* @__PURE__ */ p(
7177
+ }), Qy = ({ spinnerColor: t = "orange", ...e }) => /* @__PURE__ */ p(
7179
7178
  gg,
7180
7179
  {
7181
7180
  position: "bottom-center",
@@ -7189,8 +7188,9 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
7189
7188
  className: "my-toast"
7190
7189
  },
7191
7190
  icons: {
7192
- loading: /* @__PURE__ */ p(jp, { color: "orange" })
7193
- }
7191
+ loading: /* @__PURE__ */ p(jp, { color: t })
7192
+ },
7193
+ ...e
7194
7194
  }
7195
7195
  ), yg = {
7196
7196
  elevated: P`
@@ -7200,7 +7200,6 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
7200
7200
 
7201
7201
  &:hover {
7202
7202
  box-shadow: var(--shadow-hover-black-card);
7203
- background-color: var(--color-main-alternative-secondary);
7204
7203
  }
7205
7204
  `,
7206
7205
  flat: P`
@@ -7278,7 +7277,7 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
7278
7277
  ${({ $clickable: t }) => t && bg}
7279
7278
  ${({ $disabled: t }) => t && xg}
7280
7279
  ${({ $size: t }) => vg[t]}
7281
- `, Jy = ({
7280
+ `, tv = ({
7282
7281
  variant: t = "elevated",
7283
7282
  size: e = "md",
7284
7283
  disabled: n = !1,
@@ -7311,14 +7310,14 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
7311
7310
  align-items: center;
7312
7311
  align-self: stretch;
7313
7312
  gap: 0.5rem;
7314
- `, Qy = ({
7313
+ `, ev = ({
7315
7314
  children: t,
7316
7315
  ...e
7317
7316
  }) => /* @__PURE__ */ p(Sg, { ...e, children: t }), Tg = k.div`
7318
7317
  flex: 1;
7319
7318
  display: flex;
7320
7319
  flex-direction: column;
7321
- `, tv = ({
7320
+ `, nv = ({
7322
7321
  children: t,
7323
7322
  ...e
7324
7323
  }) => /* @__PURE__ */ p(Tg, { ...e, children: t }), Cg = k.div`
@@ -7326,7 +7325,7 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
7326
7325
  align-items: center;
7327
7326
  align-self: stretch;
7328
7327
  gap: 0.5rem;
7329
- `, ev = ({
7328
+ `, rv = ({
7330
7329
  children: t,
7331
7330
  ...e
7332
7331
  }) => /* @__PURE__ */ p(Cg, { ...e, children: t }), kg = {
@@ -7408,7 +7407,7 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
7408
7407
  "checkbox",
7409
7408
  "radio",
7410
7409
  "pin"
7411
- ], nv = (t) => t.map((e) => ({
7410
+ ], iv = (t) => t.map((e) => ({
7412
7411
  name: e.name || "",
7413
7412
  label: e.label || "",
7414
7413
  type: $g.includes(e.type) ? e.type : "text",
@@ -7422,10 +7421,10 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
7422
7421
  pinLength: e.pinLength || 6,
7423
7422
  pinType: e.pinType || "number",
7424
7423
  rows: e.rows || 4
7425
- })), rv = (t) => t.map((e) => ({
7424
+ })), ov = (t) => t.map((e) => ({
7426
7425
  value: e.value,
7427
7426
  label: e.label
7428
- })), iv = {
7427
+ })), sv = {
7429
7428
  /**
7430
7429
  * Creates a text input field configuration
7431
7430
  */
@@ -7513,7 +7512,7 @@ const gg = /* @__PURE__ */ x.forwardRef(function(e, n) {
7513
7512
  },
7514
7513
  ...r
7515
7514
  })
7516
- }, ov = (t, e, n, r, i, s, o, a) => {
7515
+ }, av = (t, e, n, r, i, s, o, a) => {
7517
7516
  const { field: l, ...u } = e, d = {
7518
7517
  ...l,
7519
7518
  ...u,
@@ -8508,7 +8507,7 @@ const S0 = (t, e, n, r, i, s, o = "text", a, l) => {
8508
8507
  i[f].current?.focus();
8509
8508
  const m = c.join("");
8510
8509
  c.every((y) => y !== "") && c.length >= d && l?.(m);
8511
- }, k0 = (t) => Array(t).fill(null).map(() => x.createRef()), sv = (t, e, n = "text") => !(t.length !== e || n === "number" && !/^\d+$/.test(t)), P0 = k.div`
8510
+ }, k0 = (t) => Array(t).fill(null).map(() => x.createRef()), lv = (t, e, n = "text") => !(t.length !== e || n === "number" && !/^\d+$/.test(t)), P0 = k.div`
8512
8511
  display: flex;
8513
8512
  gap: 8px;
8514
8513
  align-items: center;
@@ -8571,6 +8570,7 @@ const A0 = k.div`
8571
8570
  cursor: pointer;
8572
8571
  opacity: 0;
8573
8572
  border: 2px solid transparent;
8573
+ z-index: 10;
8574
8574
 
8575
8575
  &:disabled {
8576
8576
  cursor: not-allowed;
@@ -8596,10 +8596,6 @@ const A0 = k.div`
8596
8596
  outline: 2px solid transparent;
8597
8597
  outline-offset: 2px;
8598
8598
 
8599
- &:hover {
8600
- border-color: var(--color-main-orange-primary);
8601
- }
8602
-
8603
8599
  ${({ $hasError: t }) => t && `
8604
8600
  border-color: var(--color-main-warning-state);
8605
8601
  `}
@@ -8724,7 +8720,7 @@ const Hs = k.div`
8724
8720
  display: flex;
8725
8721
  flex-direction: column;
8726
8722
  gap: 0.75rem;
8727
- `, av = ({
8723
+ `, cv = ({
8728
8724
  id: t,
8729
8725
  name: e,
8730
8726
  label: n,
@@ -9267,7 +9263,7 @@ const Hs = k.div`
9267
9263
  ...o,
9268
9264
  children: i
9269
9265
  }
9270
- ), lv = ({
9266
+ ), uv = ({
9271
9267
  isOpen: t,
9272
9268
  onAccept: e,
9273
9269
  onCancel: n,
@@ -9521,12 +9517,7 @@ const Hs = k.div`
9521
9517
  display: flex;
9522
9518
  align-items: center;
9523
9519
  gap: 0.5rem;
9524
- `, iy = k.img`
9525
- display: block;
9526
- height: 4.375rem;
9527
- width: auto;
9528
- object-fit: contain;
9529
- `, oy = k.nav`
9520
+ `, iy = k.nav`
9530
9521
  display: flex;
9531
9522
  flex-direction: column;
9532
9523
  justify-content: flex-start;
@@ -9534,7 +9525,7 @@ const Hs = k.div`
9534
9525
  flex: 1;
9535
9526
  overflow-y: auto;
9536
9527
  padding: 0.25rem 0;
9537
- `, sy = k.button`
9528
+ `, oy = k.button`
9538
9529
  display: flex;
9539
9530
  align-items: center;
9540
9531
  justify-content: center;
@@ -9560,7 +9551,7 @@ const Hs = k.div`
9560
9551
  @media (max-width: 767px) {
9561
9552
  display: none;
9562
9553
  }
9563
- `, ay = k.button`
9554
+ `, sy = k.button`
9564
9555
  position: fixed;
9565
9556
  top: 0.5rem;
9566
9557
  left: 1rem;
@@ -9577,8 +9568,8 @@ const Hs = k.div`
9577
9568
  onNavigate: n = () => {
9578
9569
  },
9579
9570
  activePath: r,
9580
- logoImgSrc: i,
9581
- logoImgCollapse: s
9571
+ logoImgExpanded: i,
9572
+ logoImgCollapsed: s
9582
9573
  }) => {
9583
9574
  const { isCollapsed: o, setIsCollapsed: a, isMobileOpen: l, setIsMobileOpen: u } = mc(), d = (c) => {
9584
9575
  n(c), typeof window < "u" && window.innerWidth < 768 && u(!1);
@@ -9587,16 +9578,9 @@ const Hs = k.div`
9587
9578
  /* @__PURE__ */ p(qn, { children: l && /* @__PURE__ */ p(ty, { ...hc, onClick: () => u(!1) }) }),
9588
9579
  /* @__PURE__ */ R(ey, { $collapsed: l ? !1 : o, $open: l, children: [
9589
9580
  /* @__PURE__ */ R(ny, { $collapsed: o, children: [
9590
- /* @__PURE__ */ p(ry, { children: /* @__PURE__ */ p(
9591
- iy,
9592
- {
9593
- $collapsed: o,
9594
- src: o ? s : i,
9595
- alt: "Total Civil Construction"
9596
- }
9597
- ) }),
9581
+ /* @__PURE__ */ p(ry, { children: o ? s : i }),
9598
9582
  /* @__PURE__ */ p(
9599
- sy,
9583
+ oy,
9600
9584
  {
9601
9585
  onClick: () => a(!o),
9602
9586
  "aria-label": "Toggle collapse",
@@ -9611,7 +9595,7 @@ const Hs = k.div`
9611
9595
  }
9612
9596
  )
9613
9597
  ] }),
9614
- /* @__PURE__ */ p(oy, { children: t.map((c) => /* @__PURE__ */ p(
9598
+ /* @__PURE__ */ p(iy, { children: t.map((c) => /* @__PURE__ */ p(
9615
9599
  pc,
9616
9600
  {
9617
9601
  item: c,
@@ -9623,7 +9607,7 @@ const Hs = k.div`
9623
9607
  )) })
9624
9608
  ] }),
9625
9609
  /* @__PURE__ */ p(
9626
- ay,
9610
+ sy,
9627
9611
  {
9628
9612
  onClick: () => {
9629
9613
  u(!0), a(!1);
@@ -9635,7 +9619,7 @@ const Hs = k.div`
9635
9619
  ] });
9636
9620
  };
9637
9621
  gc.displayName = "Sidebar";
9638
- const ly = {
9622
+ const ay = {
9639
9623
  underlined: P`
9640
9624
  color: var(--color-main-orange-primary);
9641
9625
  text-decoration-thickness: 1px;
@@ -9698,7 +9682,7 @@ const ly = {
9698
9682
  text-underline-offset: 2px;
9699
9683
  }
9700
9684
  `
9701
- }, cy = P`
9685
+ }, ly = P`
9702
9686
  color: var(--color-dark-200);
9703
9687
  cursor: not-allowed;
9704
9688
  pointer-events: none;
@@ -9716,7 +9700,7 @@ const ly = {
9716
9700
  text-decoration: none;
9717
9701
  transform: none;
9718
9702
  }
9719
- `, uy = {
9703
+ `, cy = {
9720
9704
  sm: P`
9721
9705
  gap: 0.25rem;
9722
9706
  ${z[14]}
@@ -9729,7 +9713,7 @@ const ly = {
9729
9713
  gap: 0.75rem;
9730
9714
  ${z[20]}
9731
9715
  `
9732
- }, dy = k.a`
9716
+ }, uy = k.a`
9733
9717
  display: inline-flex;
9734
9718
  align-items: center;
9735
9719
  border-radius: 0.25rem;
@@ -9741,10 +9725,10 @@ const ly = {
9741
9725
 
9742
9726
  cursor: pointer;
9743
9727
 
9744
- ${({ $size: t }) => uy[t]}
9745
- ${({ $variant: t }) => ly[t]}
9746
- ${({ $disabled: t }) => t && cy}
9747
- `, hy = k.span`
9728
+ ${({ $size: t }) => cy[t]}
9729
+ ${({ $variant: t }) => ay[t]}
9730
+ ${({ $disabled: t }) => t && ly}
9731
+ `, dy = k.span`
9748
9732
  flex: 1 1 auto;
9749
9733
  min-width: 0;
9750
9734
  max-width: 18ch;
@@ -9753,7 +9737,7 @@ const ly = {
9753
9737
  text-overflow: ellipsis;
9754
9738
  white-space: nowrap;
9755
9739
  `}
9756
- `, fy = zt(
9740
+ `, hy = zt(
9757
9741
  ({
9758
9742
  id: t,
9759
9743
  size: e = "md",
@@ -9796,7 +9780,7 @@ const ly = {
9796
9780
  ...w
9797
9781
  };
9798
9782
  return /* @__PURE__ */ R(
9799
- dy,
9783
+ uy,
9800
9784
  {
9801
9785
  id: t,
9802
9786
  $variant: n,
@@ -9807,7 +9791,7 @@ const ly = {
9807
9791
  ...T,
9808
9792
  children: [
9809
9793
  d && /* @__PURE__ */ p(q, { component: d, size: h, color: f }),
9810
- /* @__PURE__ */ p(hy, { $truncate: m, children: r }),
9794
+ /* @__PURE__ */ p(dy, { $truncate: m, children: r }),
9811
9795
  /* @__PURE__ */ p(
9812
9796
  q,
9813
9797
  {
@@ -9821,15 +9805,23 @@ const ly = {
9821
9805
  );
9822
9806
  }
9823
9807
  );
9824
- fy.displayName = "Link";
9825
- const my = {
9808
+ hy.displayName = "Link";
9809
+ const fy = {
9826
9810
  default: P`
9827
9811
  thead tr:last-child th:first-child {
9828
- border-radius: var(--border-radius-article) 0 0 0;
9812
+ border-top-left-radius: var(--border-radius-article);
9829
9813
  }
9830
9814
 
9831
9815
  thead tr:last-child th:last-child {
9832
- border-radius: 0 var(--border-radius-article) 0 0;
9816
+ border-top-right-radius: var(--border-radius-article);
9817
+ }
9818
+
9819
+ tbody tr:last-child td:first-child {
9820
+ border-bottom-left-radius: var(--border-radius-article);
9821
+ }
9822
+
9823
+ tbody tr:last-child td:last-child {
9824
+ border-bottom-right-radius: var(--border-radius-article);
9833
9825
  }
9834
9826
  `,
9835
9827
  striped: P`
@@ -9849,12 +9841,20 @@ const my = {
9849
9841
  thead tr:last-child th:last-child {
9850
9842
  border-radius: 0 var(--border-radius-article) 0 0;
9851
9843
  }
9844
+
9845
+ tbody tr:last-child td:first-child {
9846
+ border-bottom-left-radius: var(--border-radius-article);
9847
+ }
9848
+
9849
+ tbody tr:last-child td:last-child {
9850
+ border-bottom-right-radius: var(--border-radius-article);
9851
+ }
9852
9852
  `
9853
- }, py = P`
9853
+ }, my = P`
9854
9854
  tbody tr:hover td {
9855
9855
  background-color: var(--color-main-alternative-secondary);
9856
9856
  }
9857
- `, gy = P`
9857
+ `, py = P`
9858
9858
  @media (max-width: 768px) {
9859
9859
  font-size: 0.875rem;
9860
9860
 
@@ -9886,7 +9886,7 @@ const my = {
9886
9886
  display: inline-flex;
9887
9887
  align-items: center;
9888
9888
  flex-shrink: 0;
9889
- `, yy = {
9889
+ `, gy = {
9890
9890
  sm: P`
9891
9891
  ${De.sm}
9892
9892
  ${z[16]}
@@ -9899,20 +9899,13 @@ const my = {
9899
9899
  ${De.lg}
9900
9900
  ${z[24]}
9901
9901
  `
9902
- }, vy = k.th`
9902
+ }, yy = k.th`
9903
9903
  background-color: var(--color-main-blue-primary);
9904
- ${({ $size: t }) => yy[t]}
9904
+ ${({ $size: t }) => gy[t]}
9905
9905
  transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
9906
9906
  min-width: 8rem;
9907
9907
  width: ${({ $width: t }) => t ? typeof t == "number" ? `${t}px` : t : "fit-content"};
9908
9908
 
9909
- ${({ $sticky: t }) => t && P`
9910
- position: sticky;
9911
- top: 0;
9912
- z-index: 10;
9913
- box-shadow: var(--shadow-black-card);
9914
- `}
9915
-
9916
9909
  &:hover {
9917
9910
  background-color: var(--color-purple-600);
9918
9911
  }
@@ -9920,10 +9913,10 @@ const my = {
9920
9913
  ${({ $active: t }) => t && P`
9921
9914
  background-color: var(--color-blue-400);
9922
9915
  `}
9923
- `, by = k.div`
9916
+ `, vy = k.div`
9924
9917
  ${yc}
9925
9918
  justify-content: ${({ $align: t }) => t || "space-between"};
9926
- `, xy = k.button`
9919
+ `, by = k.button`
9927
9920
  all: unset;
9928
9921
  display: inline-flex;
9929
9922
  align-items: center;
@@ -9942,7 +9935,7 @@ const my = {
9942
9935
  outline-color: var(--color-main-white);
9943
9936
  outline-offset: 2px;
9944
9937
  }
9945
- `, wy = k.span`
9938
+ `, xy = k.span`
9946
9939
  transition: transform 0.3s ease-out;
9947
9940
  display: inline-flex;
9948
9941
  transform: ${({ $dir: t }) => t === "asc" ? "rotate(-180deg)" : "none"};
@@ -9955,7 +9948,7 @@ const my = {
9955
9948
  text-overflow: ellipsis;
9956
9949
  white-space: nowrap;
9957
9950
  flex-shrink: 1;
9958
- `, Sy = k(si)`
9951
+ `, wy = k(si)`
9959
9952
  overflow: hidden;
9960
9953
  text-overflow: ellipsis;
9961
9954
  white-space: nowrap;
@@ -9973,36 +9966,34 @@ const my = {
9973
9966
  rightIcon: s,
9974
9967
  iconSize: o = "sm",
9975
9968
  iconColor: a = "var(--color-main-white)",
9976
- sticky: l = !1,
9977
- align: u = "left",
9978
- width: d,
9979
- sortable: c,
9980
- className: h,
9981
- onSort: f,
9982
- ...m
9969
+ align: l = "left",
9970
+ width: u,
9971
+ sortable: d,
9972
+ className: c,
9973
+ onSort: h,
9974
+ ...f
9983
9975
  }) => {
9984
- const y = r === "asc" ? "desc" : "asc";
9976
+ const m = r === "asc" ? "desc" : "asc";
9985
9977
  return /* @__PURE__ */ p(
9986
- vy,
9978
+ yy,
9987
9979
  {
9988
9980
  $size: e,
9989
9981
  $active: n,
9990
- $width: d,
9991
- $sticky: l,
9992
- className: h,
9982
+ $width: u,
9983
+ className: c,
9993
9984
  scope: "col",
9994
- "aria-sort": f ? r === "none" ? "none" : r === "asc" ? "ascending" : "descending" : void 0,
9995
- ...m,
9996
- children: f || c ? /* @__PURE__ */ R(xy, { onClick: () => f?.(y), "aria-label": `Sort ${y}`, children: [
9985
+ "aria-sort": h ? r === "none" ? "none" : r === "asc" ? "ascending" : "descending" : void 0,
9986
+ ...f,
9987
+ children: h || d ? /* @__PURE__ */ R(by, { onClick: () => h?.(m), "aria-label": `Sort ${m}`, children: [
9997
9988
  /* @__PURE__ */ R(Ws, { children: [
9998
9989
  i && /* @__PURE__ */ p(q, { component: i, size: o, color: a }),
9999
- /* @__PURE__ */ p(Sy, { size: e === "sm" ? 16 : e === "md" ? 20 : 24, children: t })
9990
+ /* @__PURE__ */ p(wy, { size: e === "sm" ? 16 : e === "md" ? 20 : 24, children: t })
10000
9991
  ] }),
10001
9992
  /* @__PURE__ */ R(Ks, { children: [
10002
- /* @__PURE__ */ p(wy, { $dir: r, children: /* @__PURE__ */ p(q, { component: Ig, size: o, color: a }) }),
9993
+ /* @__PURE__ */ p(xy, { $dir: r, children: /* @__PURE__ */ p(q, { component: Ig, size: o, color: a }) }),
10003
9994
  s && /* @__PURE__ */ p(q, { component: s, size: o, color: a })
10004
9995
  ] })
10005
- ] }) : /* @__PURE__ */ R(by, { $align: u, children: [
9996
+ ] }) : /* @__PURE__ */ R(vy, { $align: l, children: [
10006
9997
  /* @__PURE__ */ R(Ws, { children: [
10007
9998
  i && /* @__PURE__ */ p(q, { component: i, size: o, color: a }),
10008
9999
  /* @__PURE__ */ p(
@@ -10026,7 +10017,7 @@ const my = {
10026
10017
  );
10027
10018
  };
10028
10019
  bc.displayName = "TableHeaderCell";
10029
- const Ty = {
10020
+ const Sy = {
10030
10021
  sm: P`
10031
10022
  ${De.sm}
10032
10023
  ${z[14]}
@@ -10039,10 +10030,10 @@ const Ty = {
10039
10030
  ${De.lg}
10040
10031
  ${z[16]}
10041
10032
  `
10042
- }, Cy = k.td`
10033
+ }, Ty = k.td`
10043
10034
  vertical-align: middle;
10044
10035
  color: var(--color-main-blue-primary);
10045
- ${({ $size: t }) => Ty[t]}
10036
+ ${({ $size: t }) => Sy[t]}
10046
10037
  text-align: ${({ $align: t, $variant: e }) => t || (e === "numeric" ? "right" : "left")};
10047
10038
  border-left: 1px solid var(--color-main-light-borders);
10048
10039
  border-top: 1px solid var(--color-main-light-borders);
@@ -10060,10 +10051,10 @@ const Ty = {
10060
10051
  font-variant-numeric: tabular-nums;
10061
10052
  font-family: ui-monospace, monospace;
10062
10053
  `}
10063
- `, ky = k.div`
10054
+ `, Cy = k.div`
10064
10055
  ${yc}
10065
10056
  justify-content: ${({ $align: t }) => t === "center" ? "center" : t === "right" ? "flex-end" : "flex-start"};
10066
- `, Py = k(ai)`
10057
+ `, ky = k(ai)`
10067
10058
  flex: 1;
10068
10059
  min-width: 0;
10069
10060
  `, Ys = k.span`
@@ -10082,7 +10073,7 @@ const Ty = {
10082
10073
  iconColor: d = "var(--color-main-blue-primary)",
10083
10074
  ...c
10084
10075
  }) => /* @__PURE__ */ p(
10085
- Cy,
10076
+ Ty,
10086
10077
  {
10087
10078
  $size: e,
10088
10079
  $align: n,
@@ -10091,86 +10082,106 @@ const Ty = {
10091
10082
  $variant: s,
10092
10083
  className: o,
10093
10084
  ...c,
10094
- children: a || l ? /* @__PURE__ */ R(ky, { $align: n, children: [
10085
+ children: a || l ? /* @__PURE__ */ R(Cy, { $align: n, children: [
10095
10086
  a && /* @__PURE__ */ p(Ys, { children: /* @__PURE__ */ p(q, { component: a, size: u, color: d }) }),
10096
- /* @__PURE__ */ p(Py, { children: t }),
10087
+ /* @__PURE__ */ p(ky, { children: t }),
10097
10088
  l && /* @__PURE__ */ p(Ys, { children: /* @__PURE__ */ p(q, { component: l, size: u, color: d }) })
10098
10089
  ] }) : t
10099
10090
  }
10100
10091
  );
10101
10092
  xc.displayName = "TableCell";
10102
- const Ay = k.table`
10103
- width: fit-content;
10093
+ const Py = k.table`
10094
+ width: 100%;
10104
10095
  table-layout: auto;
10105
10096
  border-collapse: separate;
10106
10097
  border-spacing: 0;
10107
10098
  overflow: visible;
10108
- box-shadow: var(--shadow-black-card);
10109
10099
  border-radius: var(--border-radius-article);
10110
10100
  border: 1px solid var(--color-main-light-borders);
10111
10101
 
10112
- ${({ $variant: t }) => my[t]}
10113
- ${gy}
10102
+ ${({ $variant: t }) => fy[t]}
10114
10103
  ${py}
10115
- `, Ey = ({
10104
+ ${my}
10105
+ `, Ay = k.thead`
10106
+ ${({ $sticky: t }) => t && P`
10107
+ position: sticky;
10108
+ top: 0;
10109
+ z-index: 10;
10110
+ `}
10111
+ `, Ey = k.div`
10112
+ max-height: 37.5rem;
10113
+ overflow: auto;
10114
+ position: relative;
10115
+ border-radius: var(--border-radius-article);
10116
+ box-shadow: var(--shadow-black-card);
10117
+
10118
+ &::before {
10119
+ content: '';
10120
+ position: absolute;
10121
+ inset: 0;
10122
+ border-radius: 20px;
10123
+ pointer-events: none;
10124
+ z-index: 3;
10125
+ }
10126
+ `, Dy = ({
10116
10127
  columns: t,
10117
10128
  rows: e,
10118
10129
  size: n = "md",
10119
10130
  variant: r = "default",
10120
- className: i,
10121
- stickyHeader: s = !1,
10122
- onSortChange: o
10131
+ tableWrapperClassName: i,
10132
+ tableClassName: s,
10133
+ stickyHeader: o = !1,
10134
+ onSortChange: a
10123
10135
  }) => {
10124
- const a = (l, u) => (d) => {
10125
- l.onSort?.(d), o?.({ columnId: l.id ?? String(u), direction: d });
10136
+ const l = (u, d) => (c) => {
10137
+ u.onSort?.(c), a?.({ columnId: u.id ?? String(d), direction: c });
10126
10138
  };
10127
- return /* @__PURE__ */ R(Ay, { $variant: r, className: i, children: [
10128
- /* @__PURE__ */ p("thead", { children: /* @__PURE__ */ p("tr", { children: t.map((l, u) => /* @__PURE__ */ p(
10139
+ return /* @__PURE__ */ p(Ey, { className: i, children: /* @__PURE__ */ R(Py, { $variant: r, className: s, children: [
10140
+ /* @__PURE__ */ p(Ay, { $sticky: o, children: /* @__PURE__ */ p("tr", { children: t.map((u, d) => /* @__PURE__ */ p(
10129
10141
  bc,
10130
10142
  {
10131
10143
  size: n,
10132
- leftIcon: l.leftIcon,
10133
- rightIcon: l.rightIcon,
10134
- iconSize: l.iconSize,
10135
- iconColor: l.iconColor,
10136
- sortDirection: l.sortDirection,
10137
- onSort: l.onSort ?? (o ? a(l, u) : void 0),
10138
- sticky: s || l.stickyHeader,
10139
- width: l.width,
10140
- align: l.align,
10141
- sortable: l.sortable || !!l.onSort || !!o,
10142
- className: l.className,
10143
- children: l.header
10144
+ leftIcon: u.leftIcon,
10145
+ rightIcon: u.rightIcon,
10146
+ iconSize: u.iconSize,
10147
+ iconColor: u.iconColor,
10148
+ sortDirection: u.sortDirection,
10149
+ onSort: u.onSort ?? (a ? l(u, d) : void 0),
10150
+ width: u.width,
10151
+ align: u.align,
10152
+ sortable: u.sortable || !!u.onSort || !!a,
10153
+ className: u.className,
10154
+ children: u.header
10144
10155
  },
10145
- l.id || `col-${u}`
10156
+ u.id || `col-${d}`
10146
10157
  )) }) }),
10147
- /* @__PURE__ */ p("tbody", { children: e.map((l, u) => {
10148
- const d = l.cells;
10149
- return !d || !Array.isArray(d) ? null : /* @__PURE__ */ p("tr", { children: d.map((c, h) => {
10150
- const f = t[h];
10158
+ /* @__PURE__ */ p("tbody", { children: e.map((u, d) => {
10159
+ const c = u.cells;
10160
+ return !c || !Array.isArray(c) ? null : /* @__PURE__ */ p("tr", { children: c.map((h, f) => {
10161
+ const m = t[f];
10151
10162
  return /* @__PURE__ */ p(
10152
10163
  xc,
10153
10164
  {
10154
- size: c.size || l.size || n,
10155
- align: c.align || l.align || f?.align,
10156
- width: c.width || l.width || f?.width,
10157
- truncate: c.truncate || l.truncate,
10158
- variant: c.variant || l.variant,
10159
- className: c.className || l.className || f?.className,
10160
- leftIcon: c.leftIcon,
10161
- rightIcon: c.rightIcon,
10162
- iconSize: c.iconSize,
10163
- iconColor: c.iconColor,
10164
- children: c.content
10165
+ size: h.size || u.size || n,
10166
+ align: h.align || u.align || m?.align,
10167
+ width: h.width || u.width || m?.width,
10168
+ truncate: h.truncate || u.truncate,
10169
+ variant: h.variant || u.variant,
10170
+ className: h.className || u.className || m?.className,
10171
+ leftIcon: h.leftIcon,
10172
+ rightIcon: h.rightIcon,
10173
+ iconSize: h.iconSize,
10174
+ iconColor: h.iconColor,
10175
+ children: h.content
10165
10176
  },
10166
- `${l.id || u}-${h}`
10177
+ `${u.id || d}-${f}`
10167
10178
  );
10168
- }) }, l.id || u);
10179
+ }) }, u.id || d);
10169
10180
  }) })
10170
- ] });
10181
+ ] }) });
10171
10182
  };
10172
- Ey.displayName = "Table";
10173
- const Dy = k.header`
10183
+ Dy.displayName = "Table";
10184
+ const $y = k.header`
10174
10185
  position: fixed;
10175
10186
  top: 0;
10176
10187
  left: 0;
@@ -10189,15 +10200,15 @@ const Dy = k.header`
10189
10200
  @media (min-width: 768px) {
10190
10201
  padding-left: ${({ $sidebarCollapsed: t }) => t ? "6rem" : "17rem"};
10191
10202
  }
10192
- `, $y = k.div`
10203
+ `, My = k.div`
10193
10204
  display: flex;
10194
10205
  align-items: center;
10195
10206
  gap: 1rem;
10196
- `, My = k.div`
10207
+ `, Vy = k.div`
10197
10208
  display: flex;
10198
10209
  align-items: center;
10199
10210
  gap: 1rem;
10200
- `, Vy = k.button`
10211
+ `, Ry = k.button`
10201
10212
  position: relative;
10202
10213
  display: flex;
10203
10214
  align-items: center;
@@ -10221,7 +10232,7 @@ const Dy = k.header`
10221
10232
  &:active {
10222
10233
  transform: scale(0.92);
10223
10234
  }
10224
- `, Ry = k.span`
10235
+ `, Iy = k.span`
10225
10236
  position: absolute;
10226
10237
  top: 0.35rem;
10227
10238
  right: 0.35rem;
@@ -10237,7 +10248,7 @@ const Dy = k.header`
10237
10248
  display: flex;
10238
10249
  align-items: center;
10239
10250
  justify-content: center;
10240
- `, Iy = k.div`
10251
+ `, Ny = k.div`
10241
10252
  display: flex;
10242
10253
  align-items: center;
10243
10254
  gap: 0.75rem;
@@ -10254,7 +10265,7 @@ const Dy = k.header`
10254
10265
  outline: 2px solid var(--color-main-blue-primary);
10255
10266
  outline-offset: 2px;
10256
10267
  }
10257
- `, Ny = k.div`
10268
+ `, Ly = k.div`
10258
10269
  width: 2rem;
10259
10270
  height: 2rem;
10260
10271
  border-radius: 50%;
@@ -10265,7 +10276,7 @@ const Dy = k.header`
10265
10276
  color: var(--color-main-white);
10266
10277
  font-weight: 600;
10267
10278
  font-size: 0.875rem;
10268
- `, Ly = k.div`
10279
+ `, By = k.div`
10269
10280
  display: flex;
10270
10281
  flex-direction: column;
10271
10282
  align-items: flex-start;
@@ -10273,12 +10284,12 @@ const Dy = k.header`
10273
10284
  @media (max-width: 640px) {
10274
10285
  display: none;
10275
10286
  }
10276
- `, By = k.span`
10287
+ `, Oy = k.span`
10277
10288
  font-weight: 600;
10278
10289
  font-size: 0.875rem;
10279
10290
  color: var(--color-main-dark-text);
10280
10291
  line-height: 1.2;
10281
- `, Oy = k.span`
10292
+ `, jy = k.span`
10282
10293
  font-size: 0.75rem;
10283
10294
  color: var(--color-main-gray-text);
10284
10295
  line-height: 1.2;
@@ -10292,11 +10303,11 @@ const Dy = k.header`
10292
10303
  children: o
10293
10304
  }) => {
10294
10305
  const a = (h) => h.split(" ").map((f) => f[0]).join("").toUpperCase().slice(0, 2), l = (r ?? 0) > 0 || n, u = r && r > 0 ? r : void 0, d = u ? `${u} notification${u === 1 ? "" : "s"}` : l ? "New notifications" : "No notifications", c = `Notifications: ${d}`;
10295
- return /* @__PURE__ */ R(Dy, { $sidebarCollapsed: t, children: [
10296
- /* @__PURE__ */ p($y, { children: o }),
10297
- /* @__PURE__ */ R(My, { children: [
10306
+ return /* @__PURE__ */ R($y, { $sidebarCollapsed: t, children: [
10307
+ /* @__PURE__ */ p(My, { children: o }),
10308
+ /* @__PURE__ */ R(Vy, { children: [
10298
10309
  /* @__PURE__ */ R(
10299
- Vy,
10310
+ Ry,
10300
10311
  {
10301
10312
  onClick: i,
10302
10313
  "aria-label": c,
@@ -10311,12 +10322,12 @@ const Dy = k.header`
10311
10322
  color: "var(--color-main-blue-primary)"
10312
10323
  }
10313
10324
  ),
10314
- l && /* @__PURE__ */ p(Ry, { $withCount: !!u, "aria-hidden": !!u, children: u && (u > 99 ? "99+" : u) })
10325
+ l && /* @__PURE__ */ p(Iy, { $withCount: !!u, "aria-hidden": !!u, children: u && (u > 99 ? "99+" : u) })
10315
10326
  ]
10316
10327
  }
10317
10328
  ),
10318
10329
  e && /* @__PURE__ */ R(
10319
- Iy,
10330
+ Ny,
10320
10331
  {
10321
10332
  onClick: s,
10322
10333
  role: "button",
@@ -10325,7 +10336,7 @@ const Dy = k.header`
10325
10336
  (h.key === "Enter" || h.key === " ") && (h.preventDefault(), s?.());
10326
10337
  },
10327
10338
  children: [
10328
- /* @__PURE__ */ p(Ny, { children: e.avatarUrl ? /* @__PURE__ */ p(
10339
+ /* @__PURE__ */ p(Ly, { children: e.avatarUrl ? /* @__PURE__ */ p(
10329
10340
  "img",
10330
10341
  {
10331
10342
  src: e.avatarUrl,
@@ -10333,9 +10344,9 @@ const Dy = k.header`
10333
10344
  style: { width: "100%", height: "100%", borderRadius: "50%" }
10334
10345
  }
10335
10346
  ) : a(e.name) }),
10336
- /* @__PURE__ */ R(Ly, { children: [
10337
- /* @__PURE__ */ p(By, { children: e.name }),
10338
- /* @__PURE__ */ p(Oy, { children: e.role })
10347
+ /* @__PURE__ */ R(By, { children: [
10348
+ /* @__PURE__ */ p(Oy, { children: e.name }),
10349
+ /* @__PURE__ */ p(jy, { children: e.role })
10339
10350
  ] })
10340
10351
  ]
10341
10352
  }
@@ -10344,12 +10355,12 @@ const Dy = k.header`
10344
10355
  ] });
10345
10356
  };
10346
10357
  wc.displayName = "Header";
10347
- const jy = k.div`
10358
+ const Fy = k.div`
10348
10359
  display: flex;
10349
10360
  flex-direction: column;
10350
10361
  height: 100vh;
10351
10362
  overflow: hidden;
10352
- `, Fy = k.main`
10363
+ `, zy = k.main`
10353
10364
  flex: 1;
10354
10365
  margin-top: 4rem;
10355
10366
  /* Mobile-first: no lateral offset so content occupies full width */
@@ -10365,7 +10376,7 @@ const jy = k.div`
10365
10376
  @media (min-width: 1200px) {
10366
10377
  margin-left: 5rem;
10367
10378
  }
10368
- `, zy = ({
10379
+ `, _y = ({
10369
10380
  children: t,
10370
10381
  navigationConfig: e,
10371
10382
  userRoles: n = [],
@@ -10375,15 +10386,19 @@ const jy = k.div`
10375
10386
  onNavigate: o,
10376
10387
  onNotificationClick: a,
10377
10388
  onUserProfileClick: l,
10378
- contentClassName: u
10379
- }) => /* @__PURE__ */ R(jy, { children: [
10389
+ contentClassName: u,
10390
+ logoImgCollapsed: d,
10391
+ logoImgExpanded: c
10392
+ }) => /* @__PURE__ */ R(Fy, { children: [
10380
10393
  /* @__PURE__ */ p(
10381
10394
  gc,
10382
10395
  {
10383
10396
  navigationConfig: e,
10384
10397
  userRoles: n,
10385
10398
  onNavigate: o,
10386
- activePath: r
10399
+ activePath: r,
10400
+ logoImgCollapsed: d,
10401
+ logoImgExpanded: c
10387
10402
  }
10388
10403
  ),
10389
10404
  /* @__PURE__ */ p(
@@ -10395,17 +10410,17 @@ const jy = k.div`
10395
10410
  onUserProfileClick: l
10396
10411
  }
10397
10412
  ),
10398
- /* @__PURE__ */ p(Fy, { className: u, children: t })
10399
- ] }), cv = (t) => /* @__PURE__ */ p(K0, { children: /* @__PURE__ */ p(zy, { ...t }) });
10413
+ /* @__PURE__ */ p(zy, { className: u, children: t })
10414
+ ] }), dv = (t) => /* @__PURE__ */ p(K0, { children: /* @__PURE__ */ p(_y, { ...t }) });
10400
10415
  export {
10401
10416
  $g as ALLOWED_INPUT_TYPES,
10402
10417
  nc as BaseInput,
10403
10418
  Bs as Button,
10404
10419
  jp as ButtonSpinner,
10405
- Jy as Card,
10406
- tv as CardBody,
10407
- ev as CardFooter,
10408
- Qy as CardHeader,
10420
+ tv as Card,
10421
+ nv as CardBody,
10422
+ rv as CardFooter,
10423
+ ev as CardHeader,
10409
10424
  Wi as Checkbox,
10410
10425
  sc as CheckboxInput,
10411
10426
  g0 as CheckboxLabel,
@@ -10414,16 +10429,16 @@ export {
10414
10429
  W0 as DialogFooter,
10415
10430
  z0 as DialogHeader,
10416
10431
  Fs as ErrorMessage,
10417
- av as FormField,
10418
- Xy as FullScreenSpinner,
10432
+ cv as FormField,
10433
+ qy as FullScreenSpinner,
10419
10434
  wc as Header,
10420
10435
  si as HeadingBold,
10421
- Yy as HeadingRegular,
10436
+ Gy as HeadingRegular,
10422
10437
  q as Icon,
10423
10438
  er as IconWrapperStyles,
10424
10439
  Hi as Label,
10425
- cv as Layout,
10426
- fy as Link,
10440
+ dv as Layout,
10441
+ hy as Link,
10427
10442
  Kg as PasswordInput,
10428
10443
  ac as PinInput,
10429
10444
  lc as PinInputGroup,
@@ -10431,39 +10446,43 @@ export {
10431
10446
  cc as RadioInputDot,
10432
10447
  uc as RadioInputLabel,
10433
10448
  c0 as SearchInput,
10434
- qy as SectionSpinner,
10449
+ Zy as SectionSpinner,
10435
10450
  ic as SelectInput,
10436
10451
  gc as Sidebar,
10437
10452
  fc as SidebarContext,
10438
10453
  K0 as SidebarProvider,
10439
10454
  _i as Spinner,
10440
- Ey as Table,
10455
+ Dy as Table,
10441
10456
  xc as TableCell,
10442
10457
  bc as TableHeaderCell,
10443
- lv as TermsAndConditions,
10458
+ uv as TermsAndConditions,
10444
10459
  ai as Text,
10445
10460
  oc as TextAreaInput,
10446
- Zy as ToastProvider,
10461
+ Qy as ToastProvider,
10447
10462
  yc as baseContentTableStyles,
10448
10463
  Ue as baseFieldStyles,
10449
10464
  Ui as baseInputStyles,
10450
10465
  De as baseTableCellsSizes,
10451
- iv as createFieldConfig,
10466
+ z as bodyTextStyles,
10467
+ sv as createFieldConfig,
10452
10468
  k0 as createInputRefs,
10453
10469
  ye as disabledStyles,
10454
10470
  We as errorStyles,
10455
10471
  Mg as flushedStyles,
10456
- ov as getPropsForInputType,
10472
+ av as getPropsForInputType,
10457
10473
  S0 as handleDigitChange,
10458
10474
  T0 as handleKeyDown,
10459
10475
  C0 as handlePaste,
10460
10476
  Us as hasPermission,
10461
- nv as normalizeFieldTypes,
10462
- rv as normalizeSelectOptions,
10477
+ Sa as headingBoldStyles,
10478
+ Yu as headingRegularStyles,
10479
+ iv as normalizeFieldTypes,
10480
+ ov as normalizeSelectOptions,
10463
10481
  tr as sizeStyles,
10464
- py as tableHoverMixin,
10482
+ my as tableHoverMixin,
10465
10483
  vc as tableIconContainerStyles,
10466
- gy as tableResponsiveMixin,
10467
- my as tableVariants,
10468
- sv as validateCode
10484
+ py as tableResponsiveMixin,
10485
+ fy as tableVariants,
10486
+ Jy as toast,
10487
+ lv as validateCode
10469
10488
  };