zaravand-ui 4.2.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -15825,7 +15825,7 @@ var rO = W("zui:group/switch zui:relative zui:inline-flex zui:shrink-0 zui:curso
15825
15825
  children: "*"
15826
15826
  }) : null]
15827
15827
  });
15828
- }), oO = "داده‌ای برای نمایش وجود ندارد.", sO = "ستون قابل‌نمایشی تعریف نشده است.", cO = "داده‌ای مطابق جستجو پیدا نشد.", lO = "عملیات", uO = "ردیف", dO = "افزودن", fO = "چاپ", pO = "پیش‌نمایش چاپ", mO = "ویرایش", hO = "حذف", gO = "zui:size-4", _O = "zui:size-6", vO = "zui:cursor-pointer zui:border-0 zui:bg-transparent zui:shadow-none zui:hover:bg-transparent zui:hover:shadow-none zui:active:bg-transparent zui:focus-visible:ring-0 zui:disabled:cursor-not-allowed", yO = "zui:px-3", bO = "zui:px-3", xO = "جستجو کنید", SO = "جستجوی جدول", CO = "تغییر به پیمایش بی‌نهایت", wO = "تغییر به صفحه‌بندی", TO = "صفحه قبل", EO = "صفحه بعد", DO = "zui:sticky zui:top-0 zui:z-20 zui:bg-[var(--zui-color-primary)]", OO = "در حال بارگذاری ردیف‌های بیشتر...", kO = "برای بارگذاری بیشتر به پایین اسکرول کنید.", AO = "همه ردیف‌ها نمایش داده شد.", jO = "zui:size-4", MO = "zui:inline-flex zui:cursor-pointer zui:items-center zui:justify-center zui:rounded zui:border-0 zui:bg-transparent zui:p-0 zui:text-[var(--zui-color-surface)] zui:transition-transform zui:duration-200 zui:ease-out zui:hover:scale-125 zui:focus-visible:outline-none zui:focus-visible:ring-2 zui:focus-visible:ring-[var(--zui-theme-action-secondary)]", NO = "صعودی", PO = "نزولی", FO = "مرتب‌سازی بر اساس", IO = new Intl.DateTimeFormat("fa-IR", { dateStyle: "medium" }), LO = W("zui:relative zui:w-full zui:min-w-0 zui:overflow-hidden zui:p-[0.5rem]"), RO = W(`zui:w-full zui:table-fixed ${Pe}`, {
15828
+ }), oO = "داده‌ای برای نمایش وجود ندارد.", sO = "ستون قابل‌نمایشی تعریف نشده است.", cO = "داده‌ای مطابق جستجو پیدا نشد.", lO = "عملیات", uO = "ردیف", dO = "افزودن", fO = "چاپ", pO = "پیش‌نمایش چاپ", mO = "ویرایش", hO = "حذف", gO = "zui:size-4", _O = "zui:size-6", vO = "zui:cursor-pointer zui:border-0 zui:bg-transparent zui:shadow-none zui:hover:bg-transparent zui:hover:shadow-none zui:active:bg-transparent zui:focus-visible:ring-0 zui:disabled:cursor-not-allowed", yO = "zui:px-3", bO = "zui:sticky zui:left-0 zui:z-10", xO = "zui:px-3", SO = "جستجو کنید", CO = "جستجوی جدول", wO = "تغییر به پیمایش بی‌نهایت", TO = "تغییر به صفحه‌بندی", EO = "صفحه قبل", DO = "صفحه بعد", OO = "zui:sticky zui:top-0 zui:z-20 zui:bg-[var(--zui-color-primary)]", kO = "در حال بارگذاری ردیف‌های بیشتر...", AO = "برای بارگذاری بیشتر به پایین اسکرول کنید.", jO = "همه ردیف‌ها نمایش داده شد.", MO = "zui:size-4", NO = "zui:inline-flex zui:cursor-pointer zui:items-center zui:justify-center zui:rounded zui:border-0 zui:bg-transparent zui:p-0 zui:text-[var(--zui-color-surface)] zui:transition-transform zui:duration-200 zui:ease-out zui:hover:scale-125 zui:focus-visible:outline-none zui:focus-visible:ring-2 zui:focus-visible:ring-[var(--zui-theme-action-secondary)]", PO = "صعودی", FO = "نزولی", IO = "مرتب‌سازی بر اساس", LO = new Intl.DateTimeFormat("fa-IR", { dateStyle: "medium" }), RO = W("zui:relative zui:w-full zui:min-w-0 zui:overflow-hidden zui:p-[0.5rem]"), zO = W(`zui:w-full zui:table-fixed ${Pe}`, {
15829
15829
  variants: {
15830
15830
  showColumnBorder: {
15831
15831
  true: "zui:[&_th]:border-l zui:[&_td]:border-l zui:[&_th]:border-[var(--zui-theme-border-default)] zui:[&_td]:border-[var(--zui-theme-border-default)] zui:[&_tr>*:last-child]:border-l-0",
@@ -15840,44 +15840,44 @@ var rO = W("zui:group/switch zui:relative zui:inline-flex zui:shrink-0 zui:curso
15840
15840
  showColumnBorder: !1,
15841
15841
  showRowBorder: !1
15842
15842
  }
15843
- }), zO = W(""), BO = W("zui:[&>tr:first-child>td]:pt-5 zui:[&>tr:nth-child(odd)>td]:bg-[var(--zui-color-muted-surface)] zui:[&>tr:nth-child(even)>td]:bg-[var(--zui-color-surface)]"), VO = W("zui:bg-[var(--zui-color-surface)] zui:font-medium zui:text-[var(--zui-color-text)]"), HO = W("zui:cursor-default"), UO = {
15843
+ }), BO = W(""), VO = W("zui:[&>tr:first-child>td]:pt-5 zui:[&>tr:nth-child(odd)>td]:bg-[var(--zui-color-muted-surface)] zui:[&>tr:nth-child(even)>td]:bg-[var(--zui-color-surface)]"), HO = W("zui:bg-[var(--zui-color-surface)] zui:font-medium zui:text-[var(--zui-color-text)]"), UO = W("zui:cursor-default"), WO = {
15844
15844
  start: "zui:text-start",
15845
15845
  center: "zui:text-center",
15846
15846
  end: "zui:text-end"
15847
- }, WO = W(`zui:relative ${Ne} zui:whitespace-normal zui:break-words zui:bg-[var(--zui-color-primary)] ${ke} zui:align-middle zui:font-medium zui:text-[var(--zui-color-surface)] zui:[&:has([role=checkbox])]:pr-0 zui:[&>[role=checkbox]]:translate-y-[2px]`, {
15848
- variants: { align: UO },
15847
+ }, GO = W(`zui:relative ${Ne} zui:whitespace-normal zui:break-words zui:bg-[var(--zui-color-primary)] ${ke} zui:align-middle zui:font-medium zui:text-[var(--zui-color-surface)] zui:[&:has([role=checkbox])]:pr-0 zui:[&>[role=checkbox]]:translate-y-[2px]`, {
15848
+ variants: { align: WO },
15849
15849
  defaultVariants: { align: "start" }
15850
- }), GO = W(`${ke} ${Ae} zui:whitespace-normal zui:break-words zui:align-middle zui:text-[var(--zui-color-text)] zui:[&:has([role=checkbox])]:pr-0 zui:[&>[role=checkbox]]:translate-y-[2px]`, {
15851
- variants: { align: UO },
15850
+ }), KO = W(`${ke} ${Ae} zui:whitespace-normal zui:break-words zui:align-middle zui:text-[var(--zui-color-text)] zui:[&:has([role=checkbox])]:pr-0 zui:[&>[role=checkbox]]:translate-y-[2px]`, {
15851
+ variants: { align: WO },
15852
15852
  defaultVariants: { align: "start" }
15853
15853
  });
15854
15854
  //#endregion
15855
15855
  //#region src/components/Table/TableEmptyState.tsx
15856
- function KO({ colSpan: e, showSearchInput: t, normalizedSearchTerm: n }) {
15856
+ function qO({ colSpan: e, showSearchInput: t, normalizedSearchTerm: n }) {
15857
15857
  return /* @__PURE__ */ (0, H.jsx)("tr", {
15858
- className: HO(),
15858
+ className: UO(),
15859
15859
  children: /* @__PURE__ */ (0, H.jsx)("td", {
15860
15860
  colSpan: e,
15861
- className: B(GO(), "zui:py-7 zui:text-center zui:text-[var(--zui-color-text)]"),
15861
+ className: B(KO(), "zui:py-7 zui:text-center zui:text-[var(--zui-color-text)]"),
15862
15862
  children: t && n.length > 0 ? cO : oO
15863
15863
  })
15864
15864
  });
15865
15865
  }
15866
15866
  //#endregion
15867
15867
  //#region src/components/Table/TablePaginationControls.tsx
15868
- function qO({ shouldRenderInfiniteMode: e, shouldShowInfiniteLoadingStatus: t, shouldShowInfiniteReadyStatus: n, shouldShowInfiniteCompletedStatus: r, shouldRenderPagination: i, loading: a, isRowActionBusy: o, currentPage: s, totalPages: c, onPageChange: l }) {
15868
+ function JO({ shouldRenderInfiniteMode: e, shouldShowInfiniteLoadingStatus: t, shouldShowInfiniteReadyStatus: n, shouldShowInfiniteCompletedStatus: r, shouldRenderPagination: i, loading: a, isRowActionBusy: o, currentPage: s, totalPages: c, onPageChange: l }) {
15869
15869
  return /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [e ? /* @__PURE__ */ (0, H.jsxs)("div", {
15870
15870
  "data-slot": "table-infinite-scroll-status",
15871
15871
  className: "zui:mt-2 zui:flex zui:min-h-6 zui:items-center zui:justify-center zui:gap-2 zui:text-xs zui:text-[var(--zui-theme-text-secondary)]",
15872
15872
  children: [
15873
- t ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(Te, { size: "xs" }), /* @__PURE__ */ (0, H.jsx)("span", { children: OO })] }) : null,
15873
+ t ? /* @__PURE__ */ (0, H.jsxs)(H.Fragment, { children: [/* @__PURE__ */ (0, H.jsx)(Te, { size: "xs" }), /* @__PURE__ */ (0, H.jsx)("span", { children: kO })] }) : null,
15874
15874
  n ? /* @__PURE__ */ (0, H.jsx)("span", {
15875
15875
  "data-slot": "table-infinite-scroll-status-ready",
15876
- children: kO
15876
+ children: AO
15877
15877
  }) : null,
15878
15878
  r ? /* @__PURE__ */ (0, H.jsx)("span", {
15879
15879
  "data-slot": "table-infinite-scroll-status-complete",
15880
- children: AO
15880
+ children: jO
15881
15881
  }) : null
15882
15882
  ]
15883
15883
  }) : null, i ? /* @__PURE__ */ (0, H.jsx)("div", {
@@ -15888,35 +15888,38 @@ function qO({ shouldRenderInfiniteMode: e, shouldShowInfiniteLoadingStatus: t, s
15888
15888
  dir: "rtl",
15889
15889
  totalPages: c,
15890
15890
  page: s,
15891
- previousLabel: TO,
15892
- nextLabel: EO,
15891
+ previousLabel: EO,
15892
+ nextLabel: DO,
15893
15893
  onPageChange: l
15894
15894
  })
15895
15895
  }) : null] });
15896
15896
  }
15897
15897
  //#endregion
15898
15898
  //#region src/components/Table/Table.utils.ts
15899
- var JO = 96, YO = 56, XO = 112;
15899
+ var YO = 96, XO = 56;
15900
15900
  function ZO(e) {
15901
15901
  if (typeof e == "number" && Number.isFinite(e) && e > 0) return e;
15902
15902
  if (typeof e == "string") {
15903
15903
  let t = Number.parseFloat(e);
15904
15904
  if (Number.isFinite(t) && t > 0) return e.trim().endsWith("rem") ? t * 16 : t;
15905
15905
  }
15906
- return JO;
15906
+ return YO;
15907
15907
  }
15908
15908
  function QO(e, t, n) {
15909
- let r = t ? YO : 0, i = n ? XO : 0, a = e.map((e) => ZO(e.width)), o = r + i + a.reduce((e, t) => e + t, 0);
15909
+ let r = n ? {
15910
+ width: "112px",
15911
+ minWidth: "112px"
15912
+ } : void 0, i = t ? XO : 0, a = e.map((e) => ZO(e.width)), o = i + a.reduce((e, t) => e + t, 0);
15910
15913
  if (o <= 0) return {
15911
15914
  rowNumberColumnStyle: void 0,
15912
15915
  columnStyleByKey: {},
15913
- actionsColumnStyle: void 0
15916
+ actionsColumnStyle: r
15914
15917
  };
15915
15918
  let s = (e) => ({ width: `${(e / o * 100).toFixed(4)}%` }), c = Object.fromEntries(e.map((e, t) => [e.key, s(a[t])]));
15916
15919
  return {
15917
- rowNumberColumnStyle: t ? s(r) : void 0,
15920
+ rowNumberColumnStyle: t ? s(i) : void 0,
15918
15921
  columnStyleByKey: c,
15919
- actionsColumnStyle: n ? s(i) : void 0
15922
+ actionsColumnStyle: r
15920
15923
  };
15921
15924
  }
15922
15925
  function $O(e, t) {
@@ -15990,7 +15993,7 @@ function lk(e, t) {
15990
15993
  if (t.type === "checkbox") return e === !0 ? "بله" : "خیر";
15991
15994
  if (t.type === "date") {
15992
15995
  let n = ak(e);
15993
- return n ? IO.format(n) : sk(t);
15996
+ return n ? LO.format(n) : sk(t);
15994
15997
  }
15995
15998
  if (t.type === "money") {
15996
15999
  let n = rk(e);
@@ -16463,11 +16466,11 @@ var Ck = `zui:inline-flex zui:shrink-0 ${Ve} zui:[&>button]:!rounded-md zui:[&>b
16463
16466
  searchKey: xe,
16464
16467
  sortKey: `${V ?? ""}:${Te}`,
16465
16468
  maxVisibleRowsBeforeScroll: o
16466
- }), Ge = Re && a, Ke = e.useMemo(() => $O(s.pagination?.pageSize, c.length), [c.length, s.pagination?.pageSize]), Je = r && (Me.length === 0 || Le && Oe === "pagination"), Xe = Fe && r && Me.length > 0, Ze = Fe && Me.length > 0, Qe = Ze && (r || We), $e = Ze && Ie && !r && !We, et = Ze && !Ie && !r && !We, tt = Math.min(Ke, Math.max(1, Math.min(je, 3))), W = Oe === "pagination" ? CO : wO;
16469
+ }), Ge = Re && a, Ke = e.useMemo(() => $O(s.pagination?.pageSize, c.length), [c.length, s.pagination?.pageSize]), Je = r && (Me.length === 0 || Le && Oe === "pagination"), Xe = Fe && r && Me.length > 0, Ze = Fe && Me.length > 0, Qe = Ze && (r || We), $e = Ze && Ie && !r && !We, et = Ze && !Ie && !r && !We, tt = Math.min(Ke, Math.max(1, Math.min(je, 3))), W = Oe === "pagination" ? wO : TO;
16467
16470
  return /* @__PURE__ */ (0, H.jsxs)("div", {
16468
16471
  "data-slot": "table-container",
16469
16472
  dir: "rtl",
16470
- className: B(LO(), n),
16473
+ className: B(RO(), n),
16471
16474
  children: [
16472
16475
  !C && (M || T || Ne || O || k) ? /* @__PURE__ */ (0, H.jsxs)("div", {
16473
16476
  "data-slot": "table-controls",
@@ -16478,10 +16481,10 @@ var Ck = `zui:inline-flex zui:shrink-0 ${Ve} zui:[&>button]:!rounded-md zui:[&>b
16478
16481
  children: /* @__PURE__ */ (0, H.jsx)(Ka, {
16479
16482
  type: "search",
16480
16483
  size: "sm",
16481
- disabled: r || z,
16484
+ disabled: z,
16482
16485
  value: be,
16483
- placeholder: xO,
16484
- "aria-label": SO,
16486
+ placeholder: SO,
16487
+ "aria-label": CO,
16485
16488
  className: "zui:w-full",
16486
16489
  onChange: Ce
16487
16490
  })
@@ -16577,13 +16580,13 @@ var Ck = `zui:inline-flex zui:shrink-0 ${Ve} zui:[&>button]:!rounded-md zui:[&>b
16577
16580
  /* @__PURE__ */ (0, H.jsx)("div", {
16578
16581
  ref: ze,
16579
16582
  "data-slot": "table-scroll-viewport",
16580
- className: B("zui:relative zui:w-full zui:min-w-0 zui:overflow-x-hidden radius-xs zui:bg-[var(--zui-color-surface)] zui:shadow-[0_4px_14px_-12px_var(--zui-effect-shadow-ink-35)]", Re ? "zui:overflow-y-auto" : void 0),
16583
+ className: B("zui:relative zui:w-full zui:min-w-0 zui:overflow-x-auto radius-xs zui:bg-[var(--zui-color-surface)] zui:shadow-[0_4px_14px_-12px_var(--zui-effect-shadow-ink-35)]", Re ? "zui:overflow-y-auto" : void 0),
16581
16584
  style: Be,
16582
16585
  onScroll: Ue,
16583
16586
  children: /* @__PURE__ */ (0, H.jsx)("table", {
16584
16587
  ref: S,
16585
16588
  "data-slot": "table",
16586
- className: B(RO({
16589
+ className: B(zO({
16587
16590
  showColumnBorder: y,
16588
16591
  showRowBorder: b
16589
16592
  }), t),
@@ -16600,19 +16603,19 @@ var Ck = `zui:inline-flex zui:shrink-0 ${Ve} zui:[&>button]:!rounded-md zui:[&>b
16600
16603
  /* @__PURE__ */ (0, H.jsx)(Tk, { children: /* @__PURE__ */ (0, H.jsxs)(Ok, { children: [
16601
16604
  N ? /* @__PURE__ */ (0, H.jsx)(kk, {
16602
16605
  align: "center",
16603
- className: B(bO, Ge ? DO : void 0),
16606
+ className: B(xO, Ge ? OO : void 0),
16604
16607
  children: uO
16605
16608
  }) : null,
16606
16609
  w.map((e) => {
16607
16610
  if (!e.sortable) return /* @__PURE__ */ (0, H.jsx)(kk, {
16608
16611
  align: e.align,
16609
- className: Ge ? DO : void 0,
16612
+ className: Ge ? OO : void 0,
16610
16613
  children: Ye({ value: e.label })
16611
16614
  }, `head-${e.key}`);
16612
- let t = V === e.key, n = t && Te === "asc" ? NO : PO, r = `${FO} ${e.label} (${n})`;
16615
+ let t = V === e.key, n = t && Te === "asc" ? PO : FO, r = `${IO} ${e.label} (${n})`;
16613
16616
  return /* @__PURE__ */ (0, H.jsx)(kk, {
16614
16617
  align: e.align,
16615
- className: Ge ? DO : void 0,
16618
+ className: Ge ? OO : void 0,
16616
16619
  ariaSort: t ? Te === "asc" ? "ascending" : "descending" : "none",
16617
16620
  children: /* @__PURE__ */ (0, H.jsxs)("span", {
16618
16621
  className: "zui:inline-flex zui:items-center zui:gap-3",
@@ -16624,9 +16627,9 @@ var Ck = `zui:inline-flex zui:shrink-0 ${Ve} zui:[&>button]:!rounded-md zui:[&>b
16624
16627
  "aria-label": r,
16625
16628
  "data-slot": "table-sort-toggle-button",
16626
16629
  onClick: () => Ee(e.key),
16627
- className: B(MO, t ? "zui:opacity-100" : "zui:opacity-45", t && Te === "asc" ? "zui:rotate-0" : "zui:rotate-180"),
16630
+ className: B(NO, t ? "zui:opacity-100" : "zui:opacity-45", t && Te === "asc" ? "zui:rotate-0" : "zui:rotate-180"),
16628
16631
  children: /* @__PURE__ */ (0, H.jsx)(_e, {
16629
- className: jO,
16632
+ className: MO,
16630
16633
  fill: "currentColor",
16631
16634
  stroke: "none",
16632
16635
  "aria-hidden": "true"
@@ -16638,7 +16641,7 @@ var Ck = `zui:inline-flex zui:shrink-0 ${Ve} zui:[&>button]:!rounded-md zui:[&>b
16638
16641
  }),
16639
16642
  te ? /* @__PURE__ */ (0, H.jsx)(kk, {
16640
16643
  align: "center",
16641
- className: B(yO, Ge ? DO : void 0),
16644
+ className: B(yO, bO, Ge ? OO : void 0),
16642
16645
  children: lO
16643
16646
  }) : null
16644
16647
  ] }) }),
@@ -16647,16 +16650,16 @@ var Ck = `zui:inline-flex zui:shrink-0 ${Ve} zui:[&>button]:!rounded-md zui:[&>b
16647
16650
  children: [
16648
16651
  N ? /* @__PURE__ */ (0, H.jsx)(Ak, {
16649
16652
  align: "center",
16650
- className: bO,
16653
+ className: xO,
16651
16654
  children: /* @__PURE__ */ (0, H.jsx)(VT, { className: "zui:mx-auto zui:h-4 zui:w-8" })
16652
16655
  }) : null,
16653
16656
  w.map((e) => /* @__PURE__ */ (0, H.jsx)(Ak, {
16654
16657
  align: e.align,
16655
- children: /* @__PURE__ */ (0, H.jsx)(VT, { className: B("zui:max-w-full", ek(e, t)) })
16658
+ children: /* @__PURE__ */ (0, H.jsx)(VT, { className: B("zui:max-w-full", e.align === "center" ? "zui:mx-auto" : void 0, ek(e, t)) })
16656
16659
  }, `loading-cell-${e.key}-${t}`)),
16657
16660
  te ? /* @__PURE__ */ (0, H.jsx)(Ak, {
16658
16661
  align: "center",
16659
- className: yO,
16662
+ className: B(yO, bO),
16660
16663
  children: /* @__PURE__ */ (0, H.jsxs)("div", {
16661
16664
  "data-slot": "table-row-actions-skeleton",
16662
16665
  className: "zui:flex zui:items-center zui:justify-center zui:gap-0.5",
@@ -16668,7 +16671,7 @@ var Ck = `zui:inline-flex zui:shrink-0 ${Ve} zui:[&>button]:!rounded-md zui:[&>b
16668
16671
  })
16669
16672
  }) : null
16670
16673
  ]
16671
- }, `loading-row-${t}`)) : Me.length === 0 ? /* @__PURE__ */ (0, H.jsx)(KO, {
16674
+ }, `loading-row-${t}`)) : Me.length === 0 ? /* @__PURE__ */ (0, H.jsx)(qO, {
16672
16675
  colSpan: w.length + +!!te + +!!N,
16673
16676
  showSearchInput: M,
16674
16677
  normalizedSearchTerm: xe
@@ -16677,7 +16680,7 @@ var Ck = `zui:inline-flex zui:shrink-0 ${Ve} zui:[&>button]:!rounded-md zui:[&>b
16677
16680
  return /* @__PURE__ */ (0, H.jsxs)(Ok, { children: [
16678
16681
  N ? /* @__PURE__ */ (0, H.jsx)(Ak, {
16679
16682
  align: "center",
16680
- className: bO,
16683
+ className: xO,
16681
16684
  children: Ye({ value: String(a) })
16682
16685
  }) : null,
16683
16686
  w.map((r) => {
@@ -16707,7 +16710,7 @@ var Ck = `zui:inline-flex zui:shrink-0 ${Ve} zui:[&>button]:!rounded-md zui:[&>b
16707
16710
  }),
16708
16711
  te ? /* @__PURE__ */ (0, H.jsx)(Ak, {
16709
16712
  align: "center",
16710
- className: yO,
16713
+ className: B(yO, bO),
16711
16714
  children: /* @__PURE__ */ (0, H.jsxs)("div", {
16712
16715
  "data-slot": "table-row-actions",
16713
16716
  className: "zui:flex zui:items-center zui:justify-center zui:gap-0.5",
@@ -16769,16 +16772,16 @@ var Ck = `zui:inline-flex zui:shrink-0 ${Ve} zui:[&>button]:!rounded-md zui:[&>b
16769
16772
  children: [
16770
16773
  N ? /* @__PURE__ */ (0, H.jsx)(Ak, {
16771
16774
  align: "center",
16772
- className: bO,
16775
+ className: xO,
16773
16776
  children: /* @__PURE__ */ (0, H.jsx)(VT, { className: "zui:mx-auto zui:h-4 zui:w-8" })
16774
16777
  }) : null,
16775
16778
  w.map((e) => /* @__PURE__ */ (0, H.jsx)(Ak, {
16776
16779
  align: e.align,
16777
- children: /* @__PURE__ */ (0, H.jsx)(VT, { className: B("zui:max-w-full", ek(e, t)) })
16780
+ children: /* @__PURE__ */ (0, H.jsx)(VT, { className: B("zui:max-w-full", e.align === "center" ? "zui:mx-auto" : void 0, ek(e, t)) })
16778
16781
  }, `infinite-loading-cell-${e.key}-${t}`)),
16779
16782
  te ? /* @__PURE__ */ (0, H.jsx)(Ak, {
16780
16783
  align: "center",
16781
- className: yO,
16784
+ className: B(yO, bO),
16782
16785
  children: /* @__PURE__ */ (0, H.jsxs)("div", {
16783
16786
  "data-slot": "table-row-actions-skeleton",
16784
16787
  className: "zui:flex zui:items-center zui:justify-center zui:gap-0.5",
@@ -16794,7 +16797,7 @@ var Ck = `zui:inline-flex zui:shrink-0 ${Ve} zui:[&>button]:!rounded-md zui:[&>b
16794
16797
  ] })
16795
16798
  })
16796
16799
  }),
16797
- /* @__PURE__ */ (0, H.jsx)(qO, {
16800
+ /* @__PURE__ */ (0, H.jsx)(JO, {
16798
16801
  shouldRenderInfiniteMode: Fe,
16799
16802
  shouldShowInfiniteLoadingStatus: Qe,
16800
16803
  shouldShowInfiniteReadyStatus: $e,
@@ -16812,21 +16815,21 @@ var Ck = `zui:inline-flex zui:shrink-0 ${Ve} zui:[&>button]:!rounded-md zui:[&>b
16812
16815
  return /* @__PURE__ */ (0, H.jsx)("thead", {
16813
16816
  ref: n,
16814
16817
  "data-slot": "table-header",
16815
- className: B(zO(), e),
16818
+ className: B(BO(), e),
16816
16819
  children: t
16817
16820
  });
16818
16821
  }), Ek = e.forwardRef(function({ className: e, children: t }, n) {
16819
16822
  return /* @__PURE__ */ (0, H.jsx)("tbody", {
16820
16823
  ref: n,
16821
16824
  "data-slot": "table-body",
16822
- className: B(BO(), e),
16825
+ className: B(VO(), e),
16823
16826
  children: t
16824
16827
  });
16825
16828
  }), Dk = e.forwardRef(function({ className: e, children: t }, n) {
16826
16829
  return /* @__PURE__ */ (0, H.jsx)("tfoot", {
16827
16830
  ref: n,
16828
16831
  "data-slot": "table-footer",
16829
- className: B(VO(), e),
16832
+ className: B(HO(), e),
16830
16833
  children: t
16831
16834
  });
16832
16835
  }), Ok = e.forwardRef(function({ className: e, children: t, state: n, slot: r = "table-row" }, i) {
@@ -16834,7 +16837,7 @@ var Ck = `zui:inline-flex zui:shrink-0 ${Ve} zui:[&>button]:!rounded-md zui:[&>b
16834
16837
  ref: i,
16835
16838
  "data-slot": r,
16836
16839
  "data-state": n,
16837
- className: B(HO(), e),
16840
+ className: B(UO(), e),
16838
16841
  children: t
16839
16842
  });
16840
16843
  }), kk = e.forwardRef(function({ className: e, children: t, align: n, ariaSort: r }, i) {
@@ -16842,14 +16845,14 @@ var Ck = `zui:inline-flex zui:shrink-0 ${Ve} zui:[&>button]:!rounded-md zui:[&>b
16842
16845
  ref: i,
16843
16846
  "data-slot": "table-head",
16844
16847
  "aria-sort": r,
16845
- className: B(WO({ align: n }), e),
16848
+ className: B(GO({ align: n }), e),
16846
16849
  children: t
16847
16850
  });
16848
16851
  }), Ak = e.forwardRef(function({ className: e, children: t, align: n }, r) {
16849
16852
  return /* @__PURE__ */ (0, H.jsx)("td", {
16850
16853
  ref: r,
16851
16854
  "data-slot": "table-cell",
16852
- className: B(GO({ align: n }), e),
16855
+ className: B(KO({ align: n }), e),
16853
16856
  children: t
16854
16857
  });
16855
16858
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zaravand-ui",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",