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

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,4 +1,4 @@
1
1
  import * as React from "react";
2
2
  import type { SectionCardProps } from "@/types/section-card";
3
- export declare function SectionCard({ title, description, action, children, footer, size, className, headerClassName, titleClassName, descriptionClassName, contentClassName, footerClassName, }: SectionCardProps): React.ReactElement;
3
+ export declare function SectionCard({ title, description, action, children, footer, size, className, headerClassName, titleClassName, descriptionClassName, contentClassName, footerClassName, ...props }: SectionCardProps): React.ReactElement;
4
4
  //# sourceMappingURL=section-card.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"section-card.d.ts","sourceRoot":"","sources":["../../src/components/section-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAY7D,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,WAAW,EACX,MAAM,EACN,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,SAAS,EACT,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,GAChB,EAAE,gBAAgB,GAAG,KAAK,CAAC,YAAY,CAqBvC"}
1
+ {"version":3,"file":"section-card.d.ts","sourceRoot":"","sources":["../../src/components/section-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAY7D,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,WAAW,EACX,MAAM,EACN,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,SAAS,EACT,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EAChB,eAAe,EACf,GAAG,KAAK,EACT,EAAE,gBAAgB,GAAG,KAAK,CAAC,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9C"}
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,CAuetC;AAgDD,KAAK,sBAAsB,CAAC,KAAK,IAAI;IACnC,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IAC5B,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,EACvC,KAAK,EACL,eAAe,GAChB,EAAE,sBAAsB,CAAC,KAAK,CAAC,GAAG,YAAY,CAwB9C"}
package/dist/index.js CHANGED
@@ -41150,9 +41150,10 @@ function j0e({
41150
41150
  titleClassName: u,
41151
41151
  descriptionClassName: c,
41152
41152
  contentClassName: d,
41153
- footerClassName: f
41153
+ footerClassName: f,
41154
+ ...h
41154
41155
  }) {
41155
- return /* @__PURE__ */ U(lue, { size: a, className: o, children: [
41156
+ return /* @__PURE__ */ U(lue, { size: a, className: o, ...h, children: [
41156
41157
  /* @__PURE__ */ U(sue, { className: l, children: [
41157
41158
  /* @__PURE__ */ x(uue, { className: u, children: e }),
41158
41159
  t != null ? /* @__PURE__ */ x(cue, { className: c, children: t }) : null,
@@ -46403,7 +46404,7 @@ function wfe({
46403
46404
  {
46404
46405
  "data-slot": "table-container",
46405
46406
  className: I(
46406
- "relative w-full overflow-x-auto overflow-y-visible",
46407
+ "relative w-full overflow-x-auto overflow-y-visible rounded-md border border-border bg-card",
46407
46408
  t
46408
46409
  ),
46409
46410
  children: /* @__PURE__ */ x(
@@ -46458,7 +46459,7 @@ function oa({ className: e, ...t }) {
46458
46459
  {
46459
46460
  "data-slot": "table-row",
46460
46461
  className: I(
46461
- "transition-colors hover:bg-muted/25 data-[state=selected]:bg-muted text-xs",
46462
+ "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
46463
  e
46463
46464
  ),
46464
46465
  ...t
@@ -46474,7 +46475,7 @@ function j7({
46474
46475
  {
46475
46476
  "data-slot": "table-head",
46476
46477
  className: I(
46477
- "h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground has-[[role=checkbox]]:pr-0",
46478
+ "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
46479
  e
46479
46480
  ),
46480
46481
  ...t
@@ -46756,48 +46757,55 @@ function X0e({
46756
46757
  wfe,
46757
46758
  {
46758
46759
  className: I("w-full", T),
46759
- containerClassName: "overflow-visible",
46760
+ containerClassName: "overflow-visible rounded-none border-0 bg-transparent",
46760
46761
  children: [
46761
46762
  /* @__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,
46763
+ Y.getHeaderGroups().map((he) => /* @__PURE__ */ x(
46764
+ oa,
46765
+ {
46766
+ className: "bg-card hover:bg-transparent",
46767
+ children: he.headers.map(($e) => {
46768
+ const Ft = $e.column.columnDef.meta, rn = $e.column.getCanSort(), $t = $e.column.getIsSorted();
46769
+ return /* @__PURE__ */ x(
46770
+ j7,
46773
46771
  {
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)),
46772
+ className: I(
46773
+ "sticky top-0 z-20",
46774
+ Ft?.headerClassName
46775
+ ),
46776
+ children: $e.isPlaceholder ? null : rn ? /* @__PURE__ */ U(
46777
+ Ye,
46778
+ {
46779
+ type: "button",
46780
+ variant: "ghost",
46781
+ size: "sm",
46782
+ className: "-ml-2 h-8 px-2 hover:bg-muted/60",
46783
+ onClick: $e.column.getToggleSortingHandler(),
46784
+ children: [
46785
+ /* @__PURE__ */ x("span", { className: "truncate", children: R0(
46786
+ $e.column.columnDef.header,
46787
+ $e.getContext()
46788
+ ) }),
46789
+ $t === "asc" ? /* @__PURE__ */ x(dF, { className: "size-4" }) : $t === "desc" ? /* @__PURE__ */ x(rF, { className: "size-4" }) : /* @__PURE__ */ x(uF, { className: "size-4 opacity-60" })
46790
+ ]
46791
+ }
46792
+ ) : R0(
46793
+ $e.column.columnDef.header,
46794
+ $e.getContext()
46795
+ )
46796
+ },
46797
+ $e.id
46798
+ );
46799
+ })
46800
+ },
46801
+ he.id
46802
+ )),
46795
46803
  Rt ? /* @__PURE__ */ x(oa, { className: "bg-card hover:bg-card", children: Te.map((he) => {
46796
46804
  const $e = O?.[he.id];
46797
46805
  return /* @__PURE__ */ x(
46798
46806
  j7,
46799
46807
  {
46800
- className: "sticky top-10 z-20 border-b border-border bg-card py-2",
46808
+ className: "sticky top-10 z-20 py-2",
46801
46809
  children: he.getCanFilter() ? $e?.({
46802
46810
  column: he,
46803
46811
  placeholder: S?.[he.id]
@@ -46813,7 +46821,7 @@ function X0e({
46813
46821
  );
46814
46822
  }) }) : null
46815
46823
  ] }),
46816
- /* @__PURE__ */ x(xfe, { children: Oe.length === 0 ? /* @__PURE__ */ x(oa, { className: "hover:bg-transparent", children: /* @__PURE__ */ x(
46824
+ /* @__PURE__ */ x(xfe, { children: Oe.length === 0 ? /* @__PURE__ */ x(oa, { className: "border-0 bg-transparent hover:bg-transparent", children: /* @__PURE__ */ x(
46817
46825
  _s,
46818
46826
  {
46819
46827
  colSpan: Te.length,
@@ -46825,7 +46833,7 @@ function X0e({
46825
46833
  oa,
46826
46834
  {
46827
46835
  "aria-hidden": "true",
46828
- className: "pointer-events-none border-0 hover:bg-transparent",
46836
+ className: "pointer-events-none border-0 bg-transparent hover:bg-transparent",
46829
46837
  children: /* @__PURE__ */ x(
46830
46838
  _s,
46831
46839
  {
@@ -46852,7 +46860,7 @@ function X0e({
46852
46860
  oa,
46853
46861
  {
46854
46862
  "aria-hidden": "true",
46855
- className: "pointer-events-none border-0 hover:bg-transparent",
46863
+ className: "pointer-events-none border-0 bg-transparent hover:bg-transparent",
46856
46864
  children: /* @__PURE__ */ x(
46857
46865
  _s,
46858
46866
  {
@@ -46948,7 +46956,6 @@ function B7({
46948
46956
  className: I(
46949
46957
  n != null ? "cursor-pointer" : void 0,
46950
46958
  "h-12",
46951
- e.index % 2 === 1 ? "bg-muted/50" : "bg-light-background",
46952
46959
  r
46953
46960
  ),
46954
46961
  onClick: n != null ? (i) => {