@ah-automation.nl/component-lib 0.0.93 → 0.0.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../../src/components/ui/data-table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAYL,KAAK,OAAO,EAGZ,KAAK,KAAK,IAAI,aAAa,EAI5B,MAAM,uBAAuB,CAAC;AAU/B,OAAO,KAAK,EAAc,YAAY,EAAE,MAAM,OAAO,CAAC;AAuBtD,OAAO,KAAK,EAGV,cAAc,EAEf,MAAM,SAAS,CAAC;AAIjB,OAAO,QAAQ,uBAAuB,CAAC;IAErC,UAAU,UAAU,CAAC,KAAK,SAAS,OAAO,EAAE,MAAM;QAChD,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB;CACF;AAiJD,wBAAgB,SAAS,CAAC,KAAK,EAAE,EAC/B,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,cAAc,EACd,UAAU,EACV,iBAA+B,EAC/B,cAAc,EACd,sBAAsB,EACtB,oBAAoB,EACpB,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,WAAW,EACX,SAAS,EACT,YAAmC,EACnC,oBAA4B,EAC5B,cAAmB,EACnB,uBAA4B,EAC5B,eAA2C,EAC3C,gBAAuB,EACvB,SAAS,EAGT,iBAAyB,EACzB,wBAAwB,EACxB,qBAAqB,EACrB,cAAc,EACd,mBAAmB,EACnB,YAAY,EACZ,cAAc,GACf,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAoetC;AAiDD,KAAK,sBAAsB,CAAC,KAAK,IAAI;IACnC,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IAC5B,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B,CAAC;AAEF,wBAAgB,iBA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ACvC,KAAK,EACL,eAAe,GAChB,EAAE,sBAAsB,CAAC,KAAK,CAAC,GAAG,YAAY,CAwB9C"}
package/dist/index.js CHANGED
@@ -46403,7 +46403,7 @@ function wfe({
46403
46403
  {
46404
46404
  "data-slot": "table-container",
46405
46405
  className: I(
46406
- "relative w-full overflow-x-auto overflow-y-visible",
46406
+ "relative w-full overflow-x-auto overflow-y-visible rounded-md border border-border bg-card",
46407
46407
  t
46408
46408
  ),
46409
46409
  children: /* @__PURE__ */ x(
@@ -46458,7 +46458,7 @@ function oa({ className: e, ...t }) {
46458
46458
  {
46459
46459
  "data-slot": "table-row",
46460
46460
  className: I(
46461
- "transition-colors hover:bg-muted/25 data-[state=selected]:bg-muted text-xs",
46461
+ "border-b border-border/70 bg-light-background text-xs transition-colors odd:bg-light-background even:bg-muted/50 hover:bg-muted/25 data-[state=selected]:bg-muted",
46462
46462
  e
46463
46463
  ),
46464
46464
  ...t
@@ -46474,7 +46474,7 @@ function j7({
46474
46474
  {
46475
46475
  "data-slot": "table-head",
46476
46476
  className: I(
46477
- "h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground has-[[role=checkbox]]:pr-0",
46477
+ "h-10 border-b border-border bg-card px-2 text-left align-middle font-medium whitespace-nowrap text-foreground has-[[role=checkbox]]:pr-0",
46478
46478
  e
46479
46479
  ),
46480
46480
  ...t
@@ -46756,48 +46756,55 @@ function X0e({
46756
46756
  wfe,
46757
46757
  {
46758
46758
  className: I("w-full", T),
46759
- containerClassName: "overflow-visible",
46759
+ containerClassName: "overflow-visible rounded-none border-0 bg-transparent",
46760
46760
  children: [
46761
46761
  /* @__PURE__ */ U(Efe, { children: [
46762
- Y.getHeaderGroups().map((he) => /* @__PURE__ */ x(oa, { className: "hover:bg-transparent", children: he.headers.map(($e) => {
46763
- const Ft = $e.column.columnDef.meta, rn = $e.column.getCanSort(), $t = $e.column.getIsSorted();
46764
- return /* @__PURE__ */ x(
46765
- j7,
46766
- {
46767
- className: I(
46768
- "sticky top-0 z-20 border-b border-border bg-card",
46769
- Ft?.headerClassName
46770
- ),
46771
- children: $e.isPlaceholder ? null : rn ? /* @__PURE__ */ U(
46772
- Ye,
46762
+ Y.getHeaderGroups().map((he) => /* @__PURE__ */ x(
46763
+ oa,
46764
+ {
46765
+ className: "bg-card hover:bg-transparent",
46766
+ children: he.headers.map(($e) => {
46767
+ const Ft = $e.column.columnDef.meta, rn = $e.column.getCanSort(), $t = $e.column.getIsSorted();
46768
+ return /* @__PURE__ */ x(
46769
+ j7,
46773
46770
  {
46774
- type: "button",
46775
- variant: "ghost",
46776
- size: "sm",
46777
- className: "-ml-2 h-8 px-2 hover:bg-muted/60",
46778
- onClick: $e.column.getToggleSortingHandler(),
46779
- children: [
46780
- /* @__PURE__ */ x("span", { className: "truncate", children: R0(
46781
- $e.column.columnDef.header,
46782
- $e.getContext()
46783
- ) }),
46784
- $t === "asc" ? /* @__PURE__ */ x(dF, { className: "size-4" }) : $t === "desc" ? /* @__PURE__ */ x(rF, { className: "size-4" }) : /* @__PURE__ */ x(uF, { className: "size-4 opacity-60" })
46785
- ]
46786
- }
46787
- ) : R0(
46788
- $e.column.columnDef.header,
46789
- $e.getContext()
46790
- )
46791
- },
46792
- $e.id
46793
- );
46794
- }) }, he.id)),
46771
+ className: I(
46772
+ "sticky top-0 z-20",
46773
+ Ft?.headerClassName
46774
+ ),
46775
+ children: $e.isPlaceholder ? null : rn ? /* @__PURE__ */ U(
46776
+ Ye,
46777
+ {
46778
+ type: "button",
46779
+ variant: "ghost",
46780
+ size: "sm",
46781
+ className: "-ml-2 h-8 px-2 hover:bg-muted/60",
46782
+ onClick: $e.column.getToggleSortingHandler(),
46783
+ children: [
46784
+ /* @__PURE__ */ x("span", { className: "truncate", children: R0(
46785
+ $e.column.columnDef.header,
46786
+ $e.getContext()
46787
+ ) }),
46788
+ $t === "asc" ? /* @__PURE__ */ x(dF, { className: "size-4" }) : $t === "desc" ? /* @__PURE__ */ x(rF, { className: "size-4" }) : /* @__PURE__ */ x(uF, { className: "size-4 opacity-60" })
46789
+ ]
46790
+ }
46791
+ ) : R0(
46792
+ $e.column.columnDef.header,
46793
+ $e.getContext()
46794
+ )
46795
+ },
46796
+ $e.id
46797
+ );
46798
+ })
46799
+ },
46800
+ he.id
46801
+ )),
46795
46802
  Rt ? /* @__PURE__ */ x(oa, { className: "bg-card hover:bg-card", children: Te.map((he) => {
46796
46803
  const $e = O?.[he.id];
46797
46804
  return /* @__PURE__ */ x(
46798
46805
  j7,
46799
46806
  {
46800
- className: "sticky top-10 z-20 border-b border-border bg-card py-2",
46807
+ className: "sticky top-10 z-20 py-2",
46801
46808
  children: he.getCanFilter() ? $e?.({
46802
46809
  column: he,
46803
46810
  placeholder: S?.[he.id]
@@ -46813,7 +46820,7 @@ function X0e({
46813
46820
  );
46814
46821
  }) }) : null
46815
46822
  ] }),
46816
- /* @__PURE__ */ x(xfe, { children: Oe.length === 0 ? /* @__PURE__ */ x(oa, { className: "hover:bg-transparent", children: /* @__PURE__ */ x(
46823
+ /* @__PURE__ */ x(xfe, { children: Oe.length === 0 ? /* @__PURE__ */ x(oa, { className: "border-0 bg-transparent hover:bg-transparent", children: /* @__PURE__ */ x(
46817
46824
  _s,
46818
46825
  {
46819
46826
  colSpan: Te.length,
@@ -46825,7 +46832,7 @@ function X0e({
46825
46832
  oa,
46826
46833
  {
46827
46834
  "aria-hidden": "true",
46828
- className: "pointer-events-none border-0 hover:bg-transparent",
46835
+ className: "pointer-events-none border-0 bg-transparent hover:bg-transparent",
46829
46836
  children: /* @__PURE__ */ x(
46830
46837
  _s,
46831
46838
  {
@@ -46852,7 +46859,7 @@ function X0e({
46852
46859
  oa,
46853
46860
  {
46854
46861
  "aria-hidden": "true",
46855
- className: "pointer-events-none border-0 hover:bg-transparent",
46862
+ className: "pointer-events-none border-0 bg-transparent hover:bg-transparent",
46856
46863
  children: /* @__PURE__ */ x(
46857
46864
  _s,
46858
46865
  {
@@ -46948,7 +46955,6 @@ function B7({
46948
46955
  className: I(
46949
46956
  n != null ? "cursor-pointer" : void 0,
46950
46957
  "h-12",
46951
- e.index % 2 === 1 ? "bg-muted/50" : "bg-light-background",
46952
46958
  r
46953
46959
  ),
46954
46960
  onClick: n != null ? (i) => {