@snowpact/react-tanstack-query-table 1.1.0 → 1.1.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
@@ -59,9 +59,9 @@ const na = (e) => {
59
59
  lr = e;
60
60
  }, oa = () => lr, ra = {
61
61
  state: {
62
- active: "ring-2 ring-inset ring-primary/30",
63
- activeText: "text-primary",
64
- focus: "focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:ring-offset-2"
62
+ active: "ring-2 ring-ring/30",
63
+ activeText: "text-foreground",
64
+ focus: "focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:ring-offset-2"
65
65
  },
66
66
  button: {
67
67
  visual: "border border-input bg-background rounded-md shadow-xs",
@@ -72,7 +72,7 @@ const na = (e) => {
72
72
  info: "border-transparent bg-blue-500 text-white shadow-xs hover:bg-blue-600",
73
73
  success: "border-transparent bg-green-500 text-white shadow-xs hover:bg-green-600"
74
74
  },
75
- input: "rounded-md border border-input bg-background focus-visible:border-primary focus-visible:ring-primary/50 focus-visible:ring-[3px]",
75
+ input: "rounded-md border border-input bg-background focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
76
76
  skeleton: "rounded-md bg-muted animate-pulse",
77
77
  dropdown: {
78
78
  content: "rounded-md border bg-popover text-popover-foreground shadow-md",
@@ -81,7 +81,7 @@ const na = (e) => {
81
81
  separator: "bg-muted"
82
82
  },
83
83
  select: {
84
- trigger: "rounded-md border border-input bg-background focus:ring-2 focus:ring-primary focus:ring-offset-2",
84
+ trigger: "rounded-md border border-input bg-background focus:ring-2 focus:ring-ring focus:ring-offset-2",
85
85
  content: "rounded-md border bg-popover text-popover-foreground shadow-md",
86
86
  item: "hover:bg-accent hover:text-accent-foreground",
87
87
  itemSelected: "bg-accent text-accent-foreground"
@@ -886,7 +886,7 @@ const Ca = (e, t, n, o) => {
886
886
  cellContent: {
887
887
  base: "w-full"
888
888
  }
889
- }, Ra = "inline-flex items-center justify-center gap-1.5 whitespace-nowrap h-8 px-3 text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary/50 focus-visible:ring-offset-1 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", Te = or(
889
+ }, Ra = "inline-flex items-center justify-center gap-1.5 whitespace-nowrap h-8 px-3 text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring/50 focus-visible:ring-offset-1 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", Te = or(
890
890
  ({
891
891
  children: e,
892
892
  variant: t = "default",
@@ -5735,7 +5735,7 @@ function bs(e, t) {
5735
5735
  return `${e}-content-${t}`;
5736
5736
  }
5737
5737
  var jf = ps, Yf = hs, Xf = vs;
5738
- const Zf = "inline-flex h-9 w-fit items-center justify-center p-[3px]", qf = 'inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 px-2 py-1 text-sm font-medium whitespace-nowrap border border-transparent transition-[color,box-shadow] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*="size-"])]:size-4';
5738
+ const Zf = "inline-flex h-9 w-fit items-center justify-center p-[3px]", qf = 'inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 px-2 py-1 text-sm font-medium whitespace-nowrap border border-transparent transition-[color,box-shadow] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*="size-"])]:size-4';
5739
5739
  function Jf({ value: e, onValueChange: t, children: n }) {
5740
5740
  return /* @__PURE__ */ p(jf, { value: e, onValueChange: t, children: n });
5741
5741
  }
@@ -5976,7 +5976,7 @@ function Cs({
5976
5976
  return /* @__PURE__ */ F("div", { className: "relative flex flex-col flex-1", "data-testid": "datatable", children: [
5977
5977
  o && !n && /* @__PURE__ */ p("div", { className: X("absolute inset-0 z-10 pointer-events-none", k.table.loadingOverlay) }),
5978
5978
  Ps && /* @__PURE__ */ F("div", { className: "flex flex-col sm:flex-row sm:items-center sm:justify-between py-4 gap-4", children: [
5979
- /* @__PURE__ */ p("div", { className: "flex items-center gap-2 overflow-x-auto", children: w && w.length > 0 && v && /* @__PURE__ */ p(
5979
+ /* @__PURE__ */ p("div", { className: "flex items-center gap-2 overflow-x-auto p-0.5 -m-0.5", children: w && w.length > 0 && v && /* @__PURE__ */ p(
5980
5980
  tp,
5981
5981
  {
5982
5982
  prefilters: w,
@@ -6129,7 +6129,7 @@ function ap({ item: e, actions: t, onAction: n }) {
6129
6129
  to: w,
6130
6130
  target: g.external ? "_blank" : void 0,
6131
6131
  rel: g.external ? "noopener noreferrer" : void 0,
6132
- className: `inline-flex items-center justify-center gap-1.5 whitespace-nowrap text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-8 rounded-md ${c.showLabel ? "px-3" : "w-8"}`,
6132
+ className: `inline-flex items-center justify-center gap-1.5 whitespace-nowrap text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-8 rounded-md ${c.showLabel ? "px-3" : "w-8"}`,
6133
6133
  "aria-disabled": c.disabled,
6134
6134
  onMouseEnter: (m) => r(c.label, m.currentTarget),
6135
6135
  onMouseLeave: i,