@mistersee/global-table 0.1.6 → 0.1.8

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,9 +1,9 @@
1
1
  import { useEffect as e, useId as t, useLayoutEffect as n, useMemo as r, useRef as i, useState as a } from "react";
2
- import { AnimatePresence as o, motion as s } from "framer-motion";
3
- import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
2
+ import { AnimatePresence as o, motion as s, useReducedMotion as c } from "framer-motion";
3
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
4
4
  //#region src/lib/icons/CheckIcon.tsx
5
- function d({ className: e }) {
6
- return /* @__PURE__ */ l("svg", {
5
+ function f({ className: e }) {
6
+ return /* @__PURE__ */ u("svg", {
7
7
  className: e,
8
8
  width: "12",
9
9
  height: "12",
@@ -14,13 +14,13 @@ function d({ className: e }) {
14
14
  strokeLinecap: "round",
15
15
  strokeLinejoin: "round",
16
16
  "aria-hidden": !0,
17
- children: /* @__PURE__ */ l("path", { d: "M20 6L9 17l-5-5" })
17
+ children: /* @__PURE__ */ u("path", { d: "M20 6L9 17l-5-5" })
18
18
  });
19
19
  }
20
20
  //#endregion
21
21
  //#region src/lib/icons/ColumnsIcon.tsx
22
- function f({ className: e }) {
23
- return /* @__PURE__ */ u("svg", {
22
+ function p({ className: e }) {
23
+ return /* @__PURE__ */ d("svg", {
24
24
  className: e,
25
25
  width: "16",
26
26
  height: "16",
@@ -31,13 +31,13 @@ function f({ className: e }) {
31
31
  strokeLinecap: "round",
32
32
  strokeLinejoin: "round",
33
33
  "aria-hidden": !0,
34
- children: [/* @__PURE__ */ l("rect", {
34
+ children: [/* @__PURE__ */ u("rect", {
35
35
  x: "3",
36
36
  y: "4",
37
37
  width: "7",
38
38
  height: "16",
39
39
  rx: "1.5"
40
- }), /* @__PURE__ */ l("rect", {
40
+ }), /* @__PURE__ */ u("rect", {
41
41
  x: "14",
42
42
  y: "4",
43
43
  width: "7",
@@ -48,100 +48,100 @@ function f({ className: e }) {
48
48
  }
49
49
  //#endregion
50
50
  //#region node_modules/.pnpm/tailwind-merge@3.7.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
51
- var p = (e, t) => {
51
+ var m = (e, t) => {
52
52
  let n = Array(e.length + t.length);
53
53
  for (let t = 0; t < e.length; t++) n[t] = e[t];
54
54
  for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
55
55
  return n;
56
- }, m = (e, t) => ({
56
+ }, h = (e, t) => ({
57
57
  classGroupId: e,
58
58
  validator: t
59
- }), h = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
59
+ }), g = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
60
60
  nextPart: e,
61
61
  validators: t,
62
62
  classGroupId: n
63
- }), g = "-", _ = [], v = "arbitrary..", y = (e) => {
64
- let t = S(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
63
+ }), _ = "-", v = [], y = "arbitrary..", b = (e) => {
64
+ let t = ee(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
65
65
  return {
66
66
  getClassGroupId: (e) => {
67
- if (e.startsWith("[") && e.endsWith("]")) return x(e);
68
- let n = e.split(g);
69
- return b(n, +(n[0] === "" && n.length > 1), t);
67
+ if (e.startsWith("[") && e.endsWith("]")) return S(e);
68
+ let n = e.split(_);
69
+ return x(n, +(n[0] === "" && n.length > 1), t);
70
70
  },
71
71
  getConflictingClassGroupIds: (e, t) => {
72
72
  if (t) {
73
73
  let t = r[e], i = n[e];
74
- return t ? i ? p(i, t) : t : i || _;
74
+ return t ? i ? m(i, t) : t : i || v;
75
75
  }
76
- return n[e] || _;
76
+ return n[e] || v;
77
77
  }
78
78
  };
79
- }, b = (e, t, n) => {
79
+ }, x = (e, t, n) => {
80
80
  if (e.length - t === 0) return n.classGroupId;
81
81
  let r = e[t], i = n.nextPart.get(r);
82
82
  if (i) {
83
- let n = b(e, t + 1, i);
83
+ let n = x(e, t + 1, i);
84
84
  if (n) return n;
85
85
  }
86
86
  let a = n.validators;
87
87
  if (a === null) return;
88
- let o = t === 0 ? e.join(g) : e.slice(t).join(g), s = a.length;
88
+ let o = t === 0 ? e.join(_) : e.slice(t).join(_), s = a.length;
89
89
  for (let e = 0; e < s; e++) {
90
90
  let t = a[e];
91
91
  if (t.validator(o)) return t.classGroupId;
92
92
  }
93
- }, x = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
93
+ }, S = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
94
94
  let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
95
- return r ? v + r : void 0;
96
- })(), S = (e) => {
95
+ return r ? y + r : void 0;
96
+ })(), ee = (e) => {
97
97
  let { theme: t, classGroups: n } = e;
98
- return ee(n, t);
99
- }, ee = (e, t) => {
100
- let n = h();
98
+ return C(n, t);
99
+ }, C = (e, t) => {
100
+ let n = g();
101
101
  for (let r in e) {
102
102
  let i = e[r];
103
- C(i, n, r, t);
103
+ w(i, n, r, t);
104
104
  }
105
105
  return n;
106
- }, C = (e, t, n, r) => {
106
+ }, w = (e, t, n, r) => {
107
107
  let i = e.length;
108
108
  for (let a = 0; a < i; a++) {
109
109
  let i = e[a];
110
- w(i, t, n, r);
110
+ te(i, t, n, r);
111
111
  }
112
- }, w = (e, t, n, r) => {
112
+ }, te = (e, t, n, r) => {
113
113
  if (typeof e == "string") {
114
- te(e, t, n);
114
+ ne(e, t, n);
115
115
  return;
116
116
  }
117
117
  if (typeof e == "function") {
118
- ne(e, t, n, r);
118
+ re(e, t, n, r);
119
119
  return;
120
120
  }
121
- re(e, t, n, r);
122
- }, te = (e, t, n) => {
123
- let r = e === "" ? t : ie(t, e);
121
+ ie(e, t, n, r);
122
+ }, ne = (e, t, n) => {
123
+ let r = e === "" ? t : ae(t, e);
124
124
  r.classGroupId = n;
125
- }, ne = (e, t, n, r) => {
126
- if (ae(e)) {
127
- C(e(r), t, n, r);
125
+ }, re = (e, t, n, r) => {
126
+ if (T(e)) {
127
+ w(e(r), t, n, r);
128
128
  return;
129
129
  }
130
- t.validators === null && (t.validators = []), t.validators.push(m(n, e));
131
- }, re = (e, t, n, r) => {
130
+ t.validators === null && (t.validators = []), t.validators.push(h(n, e));
131
+ }, ie = (e, t, n, r) => {
132
132
  let i = Object.entries(e), a = i.length;
133
133
  for (let e = 0; e < a; e++) {
134
134
  let [a, o] = i[e];
135
- C(o, ie(t, a), n, r);
135
+ w(o, ae(t, a), n, r);
136
136
  }
137
- }, ie = (e, t) => {
138
- let n = e, r = t.split(g), i = r.length;
137
+ }, ae = (e, t) => {
138
+ let n = e, r = t.split(_), i = r.length;
139
139
  for (let e = 0; e < i; e++) {
140
140
  let t = r[e], i = n.nextPart.get(t);
141
- i || (i = h(), n.nextPart.set(t, i)), n = i;
141
+ i || (i = g(), n.nextPart.set(t, i)), n = i;
142
142
  }
143
143
  return n;
144
- }, ae = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, T = (e) => {
144
+ }, T = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, E = (e) => {
145
145
  if (e < 1) return {
146
146
  get: () => void 0,
147
147
  set: () => {}
@@ -159,19 +159,19 @@ var p = (e, t) => {
159
159
  e in n ? n[e] = t : i(e, t);
160
160
  }
161
161
  };
162
- }, E = "!", D = ":", O = [], oe = (e, t, n, r, i) => ({
162
+ }, D = "!", O = ":", oe = [], k = (e, t, n, r, i) => ({
163
163
  modifiers: e,
164
164
  hasImportantModifier: t,
165
165
  baseClassName: n,
166
166
  maybePostfixModifierPosition: r,
167
167
  isExternal: i
168
- }), k = (e) => {
168
+ }), A = (e) => {
169
169
  let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
170
170
  let t = [], n = 0, r = 0, i = 0, a, o = e.length;
171
171
  for (let s = 0; s < o; s++) {
172
172
  let o = e[s];
173
173
  if (n === 0 && r === 0) {
174
- if (o === D) {
174
+ if (o === O) {
175
175
  t.push(e.slice(i, s)), i = s + 1;
176
176
  continue;
177
177
  }
@@ -183,13 +183,13 @@ var p = (e, t) => {
183
183
  o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
184
184
  }
185
185
  let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
186
- s.endsWith(E) ? (c = s.slice(0, -1), l = !0) : s.startsWith(E) && (c = s.slice(1), l = !0);
186
+ s.endsWith(D) ? (c = s.slice(0, -1), l = !0) : s.startsWith(D) && (c = s.slice(1), l = !0);
187
187
  let u = a && a > i ? a - i : void 0;
188
- return oe(t, l, c, u);
188
+ return k(t, l, c, u);
189
189
  };
190
190
  if (t) {
191
- let e = t + D, n = r;
192
- r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : oe(O, !1, t, void 0, !0);
191
+ let e = t + O, n = r;
192
+ r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : k(oe, !1, t, void 0, !0);
193
193
  }
194
194
  if (n) {
195
195
  let e = r;
@@ -199,7 +199,7 @@ var p = (e, t) => {
199
199
  });
200
200
  }
201
201
  return r;
202
- }, A = (e) => {
202
+ }, j = (e) => {
203
203
  let t = /* @__PURE__ */ new Map();
204
204
  return e.orderSensitiveModifiers.forEach((e, n) => {
205
205
  t.set(e, 1e6 + n);
@@ -211,18 +211,18 @@ var p = (e, t) => {
211
211
  }
212
212
  return r.length > 0 && (r.sort(), n.push(...r)), n;
213
213
  };
214
- }, se = (e) => ({
215
- cache: T(e.cacheSize),
216
- parseClassName: k(e),
217
- sortModifiers: A(e),
218
- postfixLookupClassGroupIds: j(e),
219
- ...y(e)
220
- }), j = (e) => {
214
+ }, M = (e) => ({
215
+ cache: E(e.cacheSize),
216
+ parseClassName: A(e),
217
+ sortModifiers: j(e),
218
+ postfixLookupClassGroupIds: se(e),
219
+ ...b(e)
220
+ }), se = (e) => {
221
221
  let t = Object.create(null), n = e.postfixLookupClassGroups;
222
222
  if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
223
223
  return t;
224
- }, M = /\s+/, N = (e, t) => {
225
- let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(M), l = "";
224
+ }, N = /\s+/, P = (e, t) => {
225
+ let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(N), l = "";
226
226
  for (let e = c.length - 1; e >= 0; --e) {
227
227
  let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
228
228
  if (u) {
@@ -246,7 +246,7 @@ var p = (e, t) => {
246
246
  }
247
247
  h = !1;
248
248
  }
249
- let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + E : _, y = v + g;
249
+ let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + D : _, y = v + g;
250
250
  if (s.indexOf(y) > -1) continue;
251
251
  s.push(y);
252
252
  let b = i(g, h);
@@ -257,33 +257,33 @@ var p = (e, t) => {
257
257
  l = t + (l.length > 0 ? " " + l : l);
258
258
  }
259
259
  return l;
260
- }, P = (...e) => {
260
+ }, ce = (...e) => {
261
261
  let t = 0, n, r, i = "";
262
- for (; t < e.length;) (n = e[t++]) && (r = F(n)) && (i && (i += " "), i += r);
262
+ for (; t < e.length;) (n = e[t++]) && (r = le(n)) && (i && (i += " "), i += r);
263
263
  return i;
264
- }, F = (e) => {
264
+ }, le = (e) => {
265
265
  if (typeof e == "string") return e;
266
266
  let t, n = "";
267
- for (let r = 0; r < e.length; r++) e[r] && (t = F(e[r])) && (n && (n += " "), n += t);
267
+ for (let r = 0; r < e.length; r++) e[r] && (t = le(e[r])) && (n && (n += " "), n += t);
268
268
  return n;
269
- }, ce = (e, ...t) => {
270
- let n, r, i, a, o = (o) => (n = se(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
269
+ }, F = (e, ...t) => {
270
+ let n, r, i, a, o = (o) => (n = M(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
271
271
  let t = r(e);
272
272
  if (t) return t;
273
- let a = N(e, n);
273
+ let a = P(e, n);
274
274
  return i(e, a), a;
275
275
  };
276
- return a = o, (...e) => a(P(...e));
276
+ return a = o, (...e) => a(ce(...e));
277
277
  }, I = [], L = (e) => {
278
278
  let t = (t) => t[e] || I;
279
279
  return t.isThemeGetter = !0, t.themeKey = e, t;
280
- }, R = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, z = /^\((?:(\w[\w-]*):)?(.+)\)$/i, B = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, le = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, V = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ue = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, de = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, fe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, H = (e) => B.test(e), U = (e) => !!e && !Number.isNaN(Number(e)), W = (e) => !!e && Number.isInteger(Number(e)), G = (e) => e.endsWith("%") && U(e.slice(0, -1)), K = (e) => le.test(e), q = () => !0, pe = (e) => V.test(e) && !ue.test(e), me = () => !1, he = (e) => de.test(e), ge = (e) => fe.test(e), _e = (e) => !J(e) && !X(e), ve = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), ye = (e) => Z(e, Fe, me), J = (e) => R.test(e), Y = (e) => Z(e, Ie, pe), be = (e) => Z(e, Le, U), xe = (e) => Z(e, ze, q), Se = (e) => Z(e, Re, me), Ce = (e) => Z(e, Ne, me), we = (e) => Z(e, Pe, ge), Te = (e) => Z(e, Be, he), X = (e) => z.test(e), Ee = (e) => Q(e, Ie), De = (e) => Q(e, Re), Oe = (e) => Q(e, Ne), ke = (e) => Q(e, Fe), Ae = (e) => Q(e, Pe), je = (e) => Q(e, Be, !0), Me = (e) => Q(e, ze, !0), Z = (e, t, n) => {
280
+ }, R = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, z = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ue = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, B = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, de = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, fe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, pe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, me = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, V = (e) => ue.test(e), H = (e) => !!e && !Number.isNaN(Number(e)), U = (e) => !!e && Number.isInteger(Number(e)), W = (e) => e.endsWith("%") && H(e.slice(0, -1)), G = (e) => B.test(e), K = () => !0, q = (e) => de.test(e) && !fe.test(e), he = () => !1, ge = (e) => pe.test(e), _e = (e) => me.test(e), ve = (e) => !J(e) && !Z(e), ye = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), be = (e) => Q(e, Ie, he), J = (e) => R.test(e), Y = (e) => Q(e, Le, q), X = (e) => Q(e, Re, H), xe = (e) => Q(e, Be, K), Se = (e) => Q(e, ze, he), Ce = (e) => Q(e, Pe, he), we = (e) => Q(e, Fe, _e), Te = (e) => Q(e, Ve, ge), Z = (e) => z.test(e), Ee = (e) => Ne(e, Le), De = (e) => Ne(e, ze), Oe = (e) => Ne(e, Pe), ke = (e) => Ne(e, Ie), Ae = (e) => Ne(e, Fe), je = (e) => Ne(e, Ve, !0), Me = (e) => Ne(e, Be, !0), Q = (e, t, n) => {
281
281
  let r = R.exec(e);
282
282
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
283
- }, Q = (e, t, n = !1) => {
283
+ }, Ne = (e, t, n = !1) => {
284
284
  let r = z.exec(e);
285
285
  return r ? r[1] ? t(r[1]) : n : !1;
286
- }, Ne = (e) => e === "position" || e === "percentage", Pe = (e) => e === "image" || e === "url", Fe = (e) => e === "length" || e === "size" || e === "bg-size", Ie = (e) => e === "length", Le = (e) => e === "number", Re = (e) => e === "family-name", ze = (e) => e === "number" || e === "weight", Be = (e) => e === "shadow", Ve = /*#__PURE__*/ ce(() => {
286
+ }, Pe = (e) => e === "position" || e === "percentage", Fe = (e) => e === "image" || e === "url", Ie = (e) => e === "length" || e === "size" || e === "bg-size", Le = (e) => e === "length", Re = (e) => e === "number", ze = (e) => e === "family-name", Be = (e) => e === "number" || e === "weight", Ve = (e) => e === "shadow", He = /*#__PURE__*/ F(() => {
287
287
  let e = L("color"), t = L("font"), n = L("text"), r = L("font-weight"), i = L("tracking"), a = L("leading"), o = L("breakpoint"), s = L("container"), c = L("spacing"), l = L("radius"), u = L("shadow"), d = L("inset-shadow"), f = L("text-shadow"), p = L("drop-shadow"), m = L("blur"), h = L("perspective"), g = L("aspect"), _ = L("ease"), v = L("animate"), y = () => [
288
288
  "auto",
289
289
  "avoid",
@@ -309,7 +309,7 @@ var p = (e, t) => {
309
309
  "left-bottom"
310
310
  ], x = () => [
311
311
  ...b(),
312
- X,
312
+ Z,
313
313
  J
314
314
  ], S = () => [
315
315
  "auto",
@@ -322,42 +322,42 @@ var p = (e, t) => {
322
322
  "contain",
323
323
  "none"
324
324
  ], C = () => [
325
- X,
325
+ Z,
326
326
  J,
327
327
  c
328
328
  ], w = () => [
329
- H,
329
+ V,
330
330
  "full",
331
331
  "auto",
332
332
  ...C()
333
333
  ], te = () => [
334
- W,
334
+ U,
335
335
  "none",
336
336
  "subgrid",
337
- X,
337
+ Z,
338
338
  J
339
339
  ], ne = () => [
340
340
  "auto",
341
341
  { span: [
342
342
  "full",
343
- W,
344
- X,
343
+ U,
344
+ Z,
345
345
  J
346
346
  ] },
347
- W,
348
- X,
347
+ U,
348
+ Z,
349
349
  J
350
350
  ], re = () => [
351
- W,
351
+ U,
352
352
  "auto",
353
- X,
353
+ Z,
354
354
  J
355
355
  ], ie = () => [
356
356
  "auto",
357
357
  "min",
358
358
  "max",
359
359
  "fr",
360
- X,
360
+ Z,
361
361
  J
362
362
  ], ae = () => [
363
363
  "start",
@@ -378,7 +378,7 @@ var p = (e, t) => {
378
378
  "center-safe",
379
379
  "end-safe"
380
380
  ], E = () => ["auto", ...C()], D = () => [
381
- H,
381
+ V,
382
382
  "auto",
383
383
  "full",
384
384
  "dvw",
@@ -393,7 +393,7 @@ var p = (e, t) => {
393
393
  ...C()
394
394
  ], O = () => [
395
395
  s,
396
- H,
396
+ V,
397
397
  "screen",
398
398
  "full",
399
399
  "dvw",
@@ -404,7 +404,7 @@ var p = (e, t) => {
404
404
  "fit",
405
405
  ...C()
406
406
  ], oe = () => [
407
- H,
407
+ V,
408
408
  "screen",
409
409
  "full",
410
410
  "lh",
@@ -417,28 +417,28 @@ var p = (e, t) => {
417
417
  ...C()
418
418
  ], k = () => [
419
419
  e,
420
- X,
420
+ Z,
421
421
  J
422
422
  ], A = () => [
423
423
  ...b(),
424
424
  Oe,
425
425
  Ce,
426
- { position: [X, J] }
427
- ], se = () => ["no-repeat", { repeat: [
426
+ { position: [Z, J] }
427
+ ], j = () => ["no-repeat", { repeat: [
428
428
  "",
429
429
  "x",
430
430
  "y",
431
431
  "space",
432
432
  "round"
433
- ] }], j = () => [
433
+ ] }], M = () => [
434
434
  "auto",
435
435
  "cover",
436
436
  "contain",
437
437
  ke,
438
- ye,
439
- { size: [X, J] }
440
- ], M = () => [
441
- G,
438
+ be,
439
+ { size: [Z, J] }
440
+ ], se = () => [
441
+ W,
442
442
  Ee,
443
443
  Y
444
444
  ], N = () => [
@@ -446,19 +446,19 @@ var p = (e, t) => {
446
446
  "none",
447
447
  "full",
448
448
  l,
449
- X,
449
+ Z,
450
450
  J
451
451
  ], P = () => [
452
452
  "",
453
- U,
453
+ H,
454
454
  Ee,
455
455
  Y
456
- ], F = () => [
456
+ ], ce = () => [
457
457
  "solid",
458
458
  "dashed",
459
459
  "dotted",
460
460
  "double"
461
- ], ce = () => [
461
+ ], le = () => [
462
462
  "normal",
463
463
  "multiply",
464
464
  "screen",
@@ -475,33 +475,33 @@ var p = (e, t) => {
475
475
  "saturation",
476
476
  "color",
477
477
  "luminosity"
478
- ], I = () => [
479
- U,
480
- G,
478
+ ], F = () => [
479
+ H,
480
+ W,
481
481
  Oe,
482
482
  Ce
483
- ], R = () => [
483
+ ], I = () => [
484
484
  "",
485
485
  "none",
486
486
  m,
487
- X,
487
+ Z,
488
488
  J
489
- ], z = () => [
489
+ ], R = () => [
490
490
  "none",
491
- U,
492
- X,
491
+ H,
492
+ Z,
493
493
  J
494
- ], B = () => [
494
+ ], z = () => [
495
495
  "none",
496
- U,
497
- X,
498
- J
499
- ], le = () => [
500
- U,
501
- X,
496
+ H,
497
+ Z,
502
498
  J
503
- ], V = () => [
499
+ ], ue = () => [
504
500
  H,
501
+ Z,
502
+ J
503
+ ], B = () => [
504
+ V,
505
505
  "full",
506
506
  ...C()
507
507
  ];
@@ -515,17 +515,17 @@ var p = (e, t) => {
515
515
  "bounce"
516
516
  ],
517
517
  aspect: ["video"],
518
- blur: [K],
519
- breakpoint: [K],
520
- color: [q],
521
- container: [K],
522
- "drop-shadow": [K],
518
+ blur: [G],
519
+ breakpoint: [G],
520
+ color: [K],
521
+ container: [G],
522
+ "drop-shadow": [G],
523
523
  ease: [
524
524
  "in",
525
525
  "out",
526
526
  "in-out"
527
527
  ],
528
- font: [_e],
528
+ font: [ve],
529
529
  "font-weight": [
530
530
  "thin",
531
531
  "extralight",
@@ -537,7 +537,7 @@ var p = (e, t) => {
537
537
  "extrabold",
538
538
  "black"
539
539
  ],
540
- "inset-shadow": [K],
540
+ "inset-shadow": [G],
541
541
  leading: [
542
542
  "none",
543
543
  "tight",
@@ -554,11 +554,11 @@ var p = (e, t) => {
554
554
  "distant",
555
555
  "none"
556
556
  ],
557
- radius: [K],
558
- shadow: [K],
559
- spacing: ["px", U],
560
- text: [K],
561
- "text-shadow": [K],
557
+ radius: [G],
558
+ shadow: [G],
559
+ spacing: ["px", H],
560
+ text: [G],
561
+ "text-shadow": [G],
562
562
  tracking: [
563
563
  "tighter",
564
564
  "tight",
@@ -572,9 +572,9 @@ var p = (e, t) => {
572
572
  aspect: [{ aspect: [
573
573
  "auto",
574
574
  "square",
575
- H,
575
+ V,
576
576
  J,
577
- X,
577
+ Z,
578
578
  g
579
579
  ] }],
580
580
  container: ["container"],
@@ -582,15 +582,15 @@ var p = (e, t) => {
582
582
  "",
583
583
  "normal",
584
584
  "size",
585
- X,
585
+ Z,
586
586
  J
587
587
  ] }],
588
- "container-named": [ve],
588
+ "container-named": [ye],
589
589
  columns: [{ columns: [
590
- U,
590
+ H,
591
591
  "auto",
592
592
  J,
593
- X,
593
+ Z,
594
594
  s
595
595
  ] }],
596
596
  "break-after": [{ "break-after": y() }],
@@ -687,13 +687,13 @@ var p = (e, t) => {
687
687
  "collapse"
688
688
  ],
689
689
  z: [{ z: [
690
- W,
690
+ U,
691
691
  "auto",
692
- X,
692
+ Z,
693
693
  J
694
694
  ] }],
695
695
  basis: [{ basis: [
696
- H,
696
+ V,
697
697
  "full",
698
698
  "auto",
699
699
  s,
@@ -711,8 +711,8 @@ var p = (e, t) => {
711
711
  "wrap-reverse"
712
712
  ] }],
713
713
  flex: [{ flex: [
714
- U,
715
714
  H,
715
+ V,
716
716
  "auto",
717
717
  "initial",
718
718
  "none",
@@ -720,22 +720,22 @@ var p = (e, t) => {
720
720
  ] }],
721
721
  grow: [{ grow: [
722
722
  "",
723
- U,
724
- X,
723
+ H,
724
+ Z,
725
725
  J
726
726
  ] }],
727
727
  shrink: [{ shrink: [
728
728
  "",
729
- U,
730
- X,
729
+ H,
730
+ Z,
731
731
  J
732
732
  ] }],
733
733
  order: [{ order: [
734
- W,
734
+ U,
735
735
  "first",
736
736
  "last",
737
737
  "none",
738
- X,
738
+ Z,
739
739
  J
740
740
  ] }],
741
741
  "grid-cols": [{ "grid-cols": te() }],
@@ -863,7 +863,7 @@ var p = (e, t) => {
863
863
  "expanded",
864
864
  "extra-expanded",
865
865
  "ultra-expanded",
866
- G,
866
+ W,
867
867
  J
868
868
  ] }],
869
869
  "font-family": [{ font: [
@@ -880,14 +880,14 @@ var p = (e, t) => {
880
880
  "fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
881
881
  tracking: [{ tracking: [
882
882
  i,
883
- X,
883
+ Z,
884
884
  J
885
885
  ] }],
886
886
  "line-clamp": [{ "line-clamp": [
887
- U,
887
+ H,
888
888
  "none",
889
- X,
890
- be
889
+ Z,
890
+ X
891
891
  ] }],
892
892
  leading: [{ leading: [
893
893
  "none",
@@ -896,7 +896,7 @@ var p = (e, t) => {
896
896
  ] }],
897
897
  "list-image": [{ "list-image": [
898
898
  "none",
899
- X,
899
+ Z,
900
900
  J
901
901
  ] }],
902
902
  "list-style-position": [{ list: ["inside", "outside"] }],
@@ -904,7 +904,7 @@ var p = (e, t) => {
904
904
  "disc",
905
905
  "decimal",
906
906
  "none",
907
- X,
907
+ Z,
908
908
  J
909
909
  ] }],
910
910
  "text-alignment": [{ text: [
@@ -923,19 +923,19 @@ var p = (e, t) => {
923
923
  "line-through",
924
924
  "no-underline"
925
925
  ],
926
- "text-decoration-style": [{ decoration: [...F(), "wavy"] }],
926
+ "text-decoration-style": [{ decoration: [...ce(), "wavy"] }],
927
927
  "text-decoration-thickness": [{ decoration: [
928
- U,
928
+ H,
929
929
  "from-font",
930
930
  "auto",
931
- X,
931
+ Z,
932
932
  Y
933
933
  ] }],
934
934
  "text-decoration-color": [{ decoration: k() }],
935
935
  "underline-offset": [{ "underline-offset": [
936
- U,
936
+ H,
937
937
  "auto",
938
- X,
938
+ Z,
939
939
  J
940
940
  ] }],
941
941
  "text-transform": [
@@ -957,8 +957,8 @@ var p = (e, t) => {
957
957
  ] }],
958
958
  indent: [{ indent: C() }],
959
959
  "tab-size": [{ tab: [
960
- W,
961
- X,
960
+ U,
961
+ Z,
962
962
  J
963
963
  ] }],
964
964
  "vertical-align": [{ align: [
@@ -970,7 +970,7 @@ var p = (e, t) => {
970
970
  "text-bottom",
971
971
  "sub",
972
972
  "super",
973
- X,
973
+ Z,
974
974
  J
975
975
  ] }],
976
976
  whitespace: [{ whitespace: [
@@ -999,7 +999,7 @@ var p = (e, t) => {
999
999
  ] }],
1000
1000
  content: [{ content: [
1001
1001
  "none",
1002
- X,
1002
+ Z,
1003
1003
  J
1004
1004
  ] }],
1005
1005
  "bg-attachment": [{ bg: [
@@ -1019,8 +1019,8 @@ var p = (e, t) => {
1019
1019
  "content"
1020
1020
  ] }],
1021
1021
  "bg-position": [{ bg: A() }],
1022
- "bg-repeat": [{ bg: se() }],
1023
- "bg-size": [{ bg: j() }],
1022
+ "bg-repeat": [{ bg: j() }],
1023
+ "bg-size": [{ bg: M() }],
1024
1024
  "bg-image": [{ bg: [
1025
1025
  "none",
1026
1026
  {
@@ -1035,19 +1035,19 @@ var p = (e, t) => {
1035
1035
  "l",
1036
1036
  "tl"
1037
1037
  ] },
1038
- W,
1039
- X,
1038
+ U,
1039
+ Z,
1040
1040
  J
1041
1041
  ],
1042
1042
  radial: [
1043
1043
  "",
1044
- X,
1044
+ Z,
1045
1045
  J
1046
1046
  ],
1047
1047
  conic: [
1048
1048
  "",
1049
- W,
1050
- X,
1049
+ U,
1050
+ Z,
1051
1051
  J
1052
1052
  ]
1053
1053
  },
@@ -1055,9 +1055,9 @@ var p = (e, t) => {
1055
1055
  we
1056
1056
  ] }],
1057
1057
  "bg-color": [{ bg: k() }],
1058
- "gradient-from-pos": [{ from: M() }],
1059
- "gradient-via-pos": [{ via: M() }],
1060
- "gradient-to-pos": [{ to: M() }],
1058
+ "gradient-from-pos": [{ from: se() }],
1059
+ "gradient-via-pos": [{ via: se() }],
1060
+ "gradient-to-pos": [{ to: se() }],
1061
1061
  "gradient-from": [{ from: k() }],
1062
1062
  "gradient-via": [{ via: k() }],
1063
1063
  "gradient-to": [{ to: k() }],
@@ -1092,12 +1092,12 @@ var p = (e, t) => {
1092
1092
  "divide-y": [{ "divide-y": P() }],
1093
1093
  "divide-y-reverse": ["divide-y-reverse"],
1094
1094
  "border-style": [{ border: [
1095
- ...F(),
1095
+ ...ce(),
1096
1096
  "hidden",
1097
1097
  "none"
1098
1098
  ] }],
1099
1099
  "divide-style": [{ divide: [
1100
- ...F(),
1100
+ ...ce(),
1101
1101
  "hidden",
1102
1102
  "none"
1103
1103
  ] }],
@@ -1114,18 +1114,18 @@ var p = (e, t) => {
1114
1114
  "border-color-l": [{ "border-l": k() }],
1115
1115
  "divide-color": [{ divide: k() }],
1116
1116
  "outline-style": [{ outline: [
1117
- ...F(),
1117
+ ...ce(),
1118
1118
  "none",
1119
1119
  "hidden"
1120
1120
  ] }],
1121
1121
  "outline-offset": [{ "outline-offset": [
1122
- U,
1123
- X,
1122
+ H,
1123
+ Z,
1124
1124
  J
1125
1125
  ] }],
1126
1126
  "outline-w": [{ outline: [
1127
1127
  "",
1128
- U,
1128
+ H,
1129
1129
  Ee,
1130
1130
  Y
1131
1131
  ] }],
@@ -1149,7 +1149,7 @@ var p = (e, t) => {
1149
1149
  "ring-w": [{ ring: P() }],
1150
1150
  "ring-w-inset": ["ring-inset"],
1151
1151
  "ring-color": [{ ring: k() }],
1152
- "ring-offset-w": [{ "ring-offset": [U, Y] }],
1152
+ "ring-offset-w": [{ "ring-offset": [H, Y] }],
1153
1153
  "ring-offset-color": [{ "ring-offset": k() }],
1154
1154
  "inset-ring-w": [{ "inset-ring": P() }],
1155
1155
  "inset-ring-color": [{ "inset-ring": k() }],
@@ -1161,16 +1161,16 @@ var p = (e, t) => {
1161
1161
  ] }],
1162
1162
  "text-shadow-color": [{ "text-shadow": k() }],
1163
1163
  opacity: [{ opacity: [
1164
- U,
1165
- X,
1164
+ H,
1165
+ Z,
1166
1166
  J
1167
1167
  ] }],
1168
1168
  "mix-blend": [{ "mix-blend": [
1169
- ...ce(),
1169
+ ...le(),
1170
1170
  "plus-darker",
1171
1171
  "plus-lighter"
1172
1172
  ] }],
1173
- "bg-blend": [{ "bg-blend": ce() }],
1173
+ "bg-blend": [{ "bg-blend": le() }],
1174
1174
  "mask-clip": [{ "mask-clip": [
1175
1175
  "border",
1176
1176
  "padding",
@@ -1185,38 +1185,38 @@ var p = (e, t) => {
1185
1185
  "intersect",
1186
1186
  "exclude"
1187
1187
  ] }],
1188
- "mask-image-linear-pos": [{ "mask-linear": [U] }],
1189
- "mask-image-linear-from-pos": [{ "mask-linear-from": I() }],
1190
- "mask-image-linear-to-pos": [{ "mask-linear-to": I() }],
1188
+ "mask-image-linear-pos": [{ "mask-linear": [H] }],
1189
+ "mask-image-linear-from-pos": [{ "mask-linear-from": F() }],
1190
+ "mask-image-linear-to-pos": [{ "mask-linear-to": F() }],
1191
1191
  "mask-image-linear-from-color": [{ "mask-linear-from": k() }],
1192
1192
  "mask-image-linear-to-color": [{ "mask-linear-to": k() }],
1193
- "mask-image-t-from-pos": [{ "mask-t-from": I() }],
1194
- "mask-image-t-to-pos": [{ "mask-t-to": I() }],
1193
+ "mask-image-t-from-pos": [{ "mask-t-from": F() }],
1194
+ "mask-image-t-to-pos": [{ "mask-t-to": F() }],
1195
1195
  "mask-image-t-from-color": [{ "mask-t-from": k() }],
1196
1196
  "mask-image-t-to-color": [{ "mask-t-to": k() }],
1197
- "mask-image-r-from-pos": [{ "mask-r-from": I() }],
1198
- "mask-image-r-to-pos": [{ "mask-r-to": I() }],
1197
+ "mask-image-r-from-pos": [{ "mask-r-from": F() }],
1198
+ "mask-image-r-to-pos": [{ "mask-r-to": F() }],
1199
1199
  "mask-image-r-from-color": [{ "mask-r-from": k() }],
1200
1200
  "mask-image-r-to-color": [{ "mask-r-to": k() }],
1201
- "mask-image-b-from-pos": [{ "mask-b-from": I() }],
1202
- "mask-image-b-to-pos": [{ "mask-b-to": I() }],
1201
+ "mask-image-b-from-pos": [{ "mask-b-from": F() }],
1202
+ "mask-image-b-to-pos": [{ "mask-b-to": F() }],
1203
1203
  "mask-image-b-from-color": [{ "mask-b-from": k() }],
1204
1204
  "mask-image-b-to-color": [{ "mask-b-to": k() }],
1205
- "mask-image-l-from-pos": [{ "mask-l-from": I() }],
1206
- "mask-image-l-to-pos": [{ "mask-l-to": I() }],
1205
+ "mask-image-l-from-pos": [{ "mask-l-from": F() }],
1206
+ "mask-image-l-to-pos": [{ "mask-l-to": F() }],
1207
1207
  "mask-image-l-from-color": [{ "mask-l-from": k() }],
1208
1208
  "mask-image-l-to-color": [{ "mask-l-to": k() }],
1209
- "mask-image-x-from-pos": [{ "mask-x-from": I() }],
1210
- "mask-image-x-to-pos": [{ "mask-x-to": I() }],
1209
+ "mask-image-x-from-pos": [{ "mask-x-from": F() }],
1210
+ "mask-image-x-to-pos": [{ "mask-x-to": F() }],
1211
1211
  "mask-image-x-from-color": [{ "mask-x-from": k() }],
1212
1212
  "mask-image-x-to-color": [{ "mask-x-to": k() }],
1213
- "mask-image-y-from-pos": [{ "mask-y-from": I() }],
1214
- "mask-image-y-to-pos": [{ "mask-y-to": I() }],
1213
+ "mask-image-y-from-pos": [{ "mask-y-from": F() }],
1214
+ "mask-image-y-to-pos": [{ "mask-y-to": F() }],
1215
1215
  "mask-image-y-from-color": [{ "mask-y-from": k() }],
1216
1216
  "mask-image-y-to-color": [{ "mask-y-to": k() }],
1217
- "mask-image-radial": [{ "mask-radial": [X, J] }],
1218
- "mask-image-radial-from-pos": [{ "mask-radial-from": I() }],
1219
- "mask-image-radial-to-pos": [{ "mask-radial-to": I() }],
1217
+ "mask-image-radial": [{ "mask-radial": [Z, J] }],
1218
+ "mask-image-radial-from-pos": [{ "mask-radial-from": F() }],
1219
+ "mask-image-radial-to-pos": [{ "mask-radial-to": F() }],
1220
1220
  "mask-image-radial-from-color": [{ "mask-radial-from": k() }],
1221
1221
  "mask-image-radial-to-color": [{ "mask-radial-to": k() }],
1222
1222
  "mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
@@ -1225,9 +1225,9 @@ var p = (e, t) => {
1225
1225
  farthest: ["side", "corner"]
1226
1226
  }] }],
1227
1227
  "mask-image-radial-pos": [{ "mask-radial-at": b() }],
1228
- "mask-image-conic-pos": [{ "mask-conic": [U] }],
1229
- "mask-image-conic-from-pos": [{ "mask-conic-from": I() }],
1230
- "mask-image-conic-to-pos": [{ "mask-conic-to": I() }],
1228
+ "mask-image-conic-pos": [{ "mask-conic": [H] }],
1229
+ "mask-image-conic-from-pos": [{ "mask-conic-from": F() }],
1230
+ "mask-image-conic-to-pos": [{ "mask-conic-to": F() }],
1231
1231
  "mask-image-conic-from-color": [{ "mask-conic-from": k() }],
1232
1232
  "mask-image-conic-to-color": [{ "mask-conic-to": k() }],
1233
1233
  "mask-mode": [{ mask: [
@@ -1244,29 +1244,29 @@ var p = (e, t) => {
1244
1244
  "view"
1245
1245
  ] }],
1246
1246
  "mask-position": [{ mask: A() }],
1247
- "mask-repeat": [{ mask: se() }],
1248
- "mask-size": [{ mask: j() }],
1247
+ "mask-repeat": [{ mask: j() }],
1248
+ "mask-size": [{ mask: M() }],
1249
1249
  "mask-type": [{ "mask-type": ["alpha", "luminance"] }],
1250
1250
  "mask-image": [{ mask: [
1251
1251
  "none",
1252
- X,
1252
+ Z,
1253
1253
  J
1254
1254
  ] }],
1255
1255
  filter: [{ filter: [
1256
1256
  "",
1257
1257
  "none",
1258
- X,
1258
+ Z,
1259
1259
  J
1260
1260
  ] }],
1261
- blur: [{ blur: R() }],
1261
+ blur: [{ blur: I() }],
1262
1262
  brightness: [{ brightness: [
1263
- U,
1264
- X,
1263
+ H,
1264
+ Z,
1265
1265
  J
1266
1266
  ] }],
1267
1267
  contrast: [{ contrast: [
1268
- U,
1269
- X,
1268
+ H,
1269
+ Z,
1270
1270
  J
1271
1271
  ] }],
1272
1272
  "drop-shadow": [{ "drop-shadow": [
@@ -1279,80 +1279,80 @@ var p = (e, t) => {
1279
1279
  "drop-shadow-color": [{ "drop-shadow": k() }],
1280
1280
  grayscale: [{ grayscale: [
1281
1281
  "",
1282
- U,
1283
- X,
1282
+ H,
1283
+ Z,
1284
1284
  J
1285
1285
  ] }],
1286
1286
  "hue-rotate": [{ "hue-rotate": [
1287
- U,
1288
- X,
1287
+ H,
1288
+ Z,
1289
1289
  J
1290
1290
  ] }],
1291
1291
  invert: [{ invert: [
1292
1292
  "",
1293
- U,
1294
- X,
1293
+ H,
1294
+ Z,
1295
1295
  J
1296
1296
  ] }],
1297
1297
  saturate: [{ saturate: [
1298
- U,
1299
- X,
1298
+ H,
1299
+ Z,
1300
1300
  J
1301
1301
  ] }],
1302
1302
  sepia: [{ sepia: [
1303
1303
  "",
1304
- U,
1305
- X,
1304
+ H,
1305
+ Z,
1306
1306
  J
1307
1307
  ] }],
1308
1308
  "backdrop-filter": [{ "backdrop-filter": [
1309
1309
  "",
1310
1310
  "none",
1311
- X,
1311
+ Z,
1312
1312
  J
1313
1313
  ] }],
1314
- "backdrop-blur": [{ "backdrop-blur": R() }],
1314
+ "backdrop-blur": [{ "backdrop-blur": I() }],
1315
1315
  "backdrop-brightness": [{ "backdrop-brightness": [
1316
- U,
1317
- X,
1316
+ H,
1317
+ Z,
1318
1318
  J
1319
1319
  ] }],
1320
1320
  "backdrop-contrast": [{ "backdrop-contrast": [
1321
- U,
1322
- X,
1321
+ H,
1322
+ Z,
1323
1323
  J
1324
1324
  ] }],
1325
1325
  "backdrop-grayscale": [{ "backdrop-grayscale": [
1326
1326
  "",
1327
- U,
1328
- X,
1327
+ H,
1328
+ Z,
1329
1329
  J
1330
1330
  ] }],
1331
1331
  "backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
1332
- U,
1333
- X,
1332
+ H,
1333
+ Z,
1334
1334
  J
1335
1335
  ] }],
1336
1336
  "backdrop-invert": [{ "backdrop-invert": [
1337
1337
  "",
1338
- U,
1339
- X,
1338
+ H,
1339
+ Z,
1340
1340
  J
1341
1341
  ] }],
1342
1342
  "backdrop-opacity": [{ "backdrop-opacity": [
1343
- U,
1344
- X,
1343
+ H,
1344
+ Z,
1345
1345
  J
1346
1346
  ] }],
1347
1347
  "backdrop-saturate": [{ "backdrop-saturate": [
1348
- U,
1349
- X,
1348
+ H,
1349
+ Z,
1350
1350
  J
1351
1351
  ] }],
1352
1352
  "backdrop-sepia": [{ "backdrop-sepia": [
1353
1353
  "",
1354
- U,
1355
- X,
1354
+ H,
1355
+ Z,
1356
1356
  J
1357
1357
  ] }],
1358
1358
  "border-collapse": [{ border: ["collapse", "separate"] }],
@@ -1369,55 +1369,55 @@ var p = (e, t) => {
1369
1369
  "shadow",
1370
1370
  "transform",
1371
1371
  "none",
1372
- X,
1372
+ Z,
1373
1373
  J
1374
1374
  ] }],
1375
1375
  "transition-behavior": [{ transition: ["normal", "discrete"] }],
1376
1376
  duration: [{ duration: [
1377
- U,
1377
+ H,
1378
1378
  "initial",
1379
- X,
1379
+ Z,
1380
1380
  J
1381
1381
  ] }],
1382
1382
  ease: [{ ease: [
1383
1383
  "linear",
1384
1384
  "initial",
1385
1385
  _,
1386
- X,
1386
+ Z,
1387
1387
  J
1388
1388
  ] }],
1389
1389
  delay: [{ delay: [
1390
- U,
1391
- X,
1390
+ H,
1391
+ Z,
1392
1392
  J
1393
1393
  ] }],
1394
1394
  animate: [{ animate: [
1395
1395
  "none",
1396
1396
  v,
1397
- X,
1397
+ Z,
1398
1398
  J
1399
1399
  ] }],
1400
1400
  backface: [{ backface: ["hidden", "visible"] }],
1401
1401
  perspective: [{ perspective: [
1402
1402
  h,
1403
- X,
1403
+ Z,
1404
1404
  J
1405
1405
  ] }],
1406
1406
  "perspective-origin": [{ "perspective-origin": x() }],
1407
- rotate: [{ rotate: z() }],
1408
- "rotate-x": [{ "rotate-x": z() }],
1409
- "rotate-y": [{ "rotate-y": z() }],
1410
- "rotate-z": [{ "rotate-z": z() }],
1411
- scale: [{ scale: B() }],
1412
- "scale-x": [{ "scale-x": B() }],
1413
- "scale-y": [{ "scale-y": B() }],
1414
- "scale-z": [{ "scale-z": B() }],
1407
+ rotate: [{ rotate: R() }],
1408
+ "rotate-x": [{ "rotate-x": R() }],
1409
+ "rotate-y": [{ "rotate-y": R() }],
1410
+ "rotate-z": [{ "rotate-z": R() }],
1411
+ scale: [{ scale: z() }],
1412
+ "scale-x": [{ "scale-x": z() }],
1413
+ "scale-y": [{ "scale-y": z() }],
1414
+ "scale-z": [{ "scale-z": z() }],
1415
1415
  "scale-3d": ["scale-3d"],
1416
- skew: [{ skew: le() }],
1417
- "skew-x": [{ "skew-x": le() }],
1418
- "skew-y": [{ "skew-y": le() }],
1416
+ skew: [{ skew: ue() }],
1417
+ "skew-x": [{ "skew-x": ue() }],
1418
+ "skew-y": [{ "skew-y": ue() }],
1419
1419
  transform: [{ transform: [
1420
- X,
1420
+ Z,
1421
1421
  J,
1422
1422
  "",
1423
1423
  "none",
@@ -1426,14 +1426,14 @@ var p = (e, t) => {
1426
1426
  ] }],
1427
1427
  "transform-origin": [{ origin: x() }],
1428
1428
  "transform-style": [{ transform: ["3d", "flat"] }],
1429
- translate: [{ translate: V() }],
1430
- "translate-x": [{ "translate-x": V() }],
1431
- "translate-y": [{ "translate-y": V() }],
1432
- "translate-z": [{ "translate-z": V() }],
1429
+ translate: [{ translate: B() }],
1430
+ "translate-x": [{ "translate-x": B() }],
1431
+ "translate-y": [{ "translate-y": B() }],
1432
+ "translate-z": [{ "translate-z": B() }],
1433
1433
  "translate-none": ["translate-none"],
1434
1434
  zoom: [{ zoom: [
1435
- W,
1436
- X,
1435
+ U,
1436
+ Z,
1437
1437
  J
1438
1438
  ] }],
1439
1439
  accent: [{ accent: k() }],
@@ -1484,7 +1484,7 @@ var p = (e, t) => {
1484
1484
  "nwse-resize",
1485
1485
  "zoom-in",
1486
1486
  "zoom-out",
1487
- X,
1487
+ Z,
1488
1488
  J
1489
1489
  ] }],
1490
1490
  "field-sizing": [{ "field-sizing": ["fixed", "content"] }],
@@ -1571,15 +1571,15 @@ var p = (e, t) => {
1571
1571
  "scroll",
1572
1572
  "contents",
1573
1573
  "transform",
1574
- X,
1574
+ Z,
1575
1575
  J
1576
1576
  ] }],
1577
1577
  fill: [{ fill: ["none", ...k()] }],
1578
1578
  "stroke-w": [{ stroke: [
1579
- U,
1579
+ H,
1580
1580
  Ee,
1581
1581
  Y,
1582
- be
1582
+ X
1583
1583
  ] }],
1584
1584
  stroke: [{ stroke: ["none", ...k()] }],
1585
1585
  "forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
@@ -1841,38 +1841,43 @@ var p = (e, t) => {
1841
1841
  //#endregion
1842
1842
  //#region src/lib/utils/cn.ts
1843
1843
  function $(...e) {
1844
- return Ve(...e.filter(Boolean));
1844
+ return He(...e.filter(Boolean));
1845
1845
  }
1846
1846
  //#endregion
1847
1847
  //#region src/lib/ColumnToggle.tsx
1848
- function He({ checked: e, disabled: t }) {
1849
- return /* @__PURE__ */ l("span", {
1848
+ function Ue({ checked: e, disabled: t }) {
1849
+ return /* @__PURE__ */ u("span", {
1850
1850
  "aria-hidden": !0,
1851
1851
  className: $("inline-flex size-4.5 shrink-0 items-center justify-center rounded-[5px] border transition-colors", e ? "border-zinc-900 bg-zinc-900 text-white" : "border-zinc-300 bg-white text-transparent", t && "opacity-40"),
1852
- children: /* @__PURE__ */ l(d, { className: $("transition-opacity", e ? "opacity-100" : "opacity-0") })
1852
+ children: /* @__PURE__ */ u(f, { className: $("transition-opacity", e ? "opacity-100" : "opacity-0") })
1853
1853
  });
1854
1854
  }
1855
- function Ue({ columns: n, visibleKeys: r, onChange: c, className: d, label: p = "Columns" }) {
1856
- let [m, h] = a(!1), g = i(null), _ = t();
1855
+ function We({ columns: n, visibleKeys: r, stickyColumns: l, onStickyChange: f, onChange: m, className: h, label: g = "Columns" }) {
1856
+ let [_, v] = a("visibility"), y = c(), b = i(null), [x, S] = a(!1), ee = i(null), C = t();
1857
1857
  return e(() => {
1858
1858
  function e(e) {
1859
- g.current?.contains(e.target) || h(!1);
1859
+ ee.current?.contains(e.target) || S(!1);
1860
1860
  }
1861
1861
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
1862
- }, []), /* @__PURE__ */ u("div", {
1863
- ref: g,
1864
- className: $("relative inline-flex", d),
1865
- children: [/* @__PURE__ */ u("button", {
1862
+ }, []), /* @__PURE__ */ d("div", {
1863
+ ref: ee,
1864
+ className: $("relative inline-flex", h),
1865
+ onKeyDown: (e) => {
1866
+ e.key === "Escape" && (S(!1), b.current?.focus());
1867
+ },
1868
+ children: [/* @__PURE__ */ d("button", {
1869
+ ref: b,
1866
1870
  type: "button",
1867
1871
  className: $("inline-flex cursor-pointer items-center gap-2 rounded-md border border-zinc-300 bg-white", "px-3 py-1.5 text-sm text-zinc-800 hover:bg-zinc-50"),
1868
- "aria-haspopup": "true",
1869
- "aria-expanded": m,
1870
- "aria-controls": _,
1871
- onClick: () => h((e) => !e),
1872
- children: [/* @__PURE__ */ l(f, { className: "text-zinc-600" }), p]
1873
- }), /* @__PURE__ */ l(o, { children: m ? /* @__PURE__ */ l(s.div, {
1874
- id: _,
1875
- role: "menu",
1872
+ "aria-haspopup": "dialog",
1873
+ "aria-expanded": x,
1874
+ "aria-controls": C,
1875
+ onClick: () => S((e) => !e),
1876
+ children: [/* @__PURE__ */ u(p, { className: "text-zinc-600" }), g]
1877
+ }), /* @__PURE__ */ u(o, { children: x ? /* @__PURE__ */ d(s.div, {
1878
+ id: C,
1879
+ role: "dialog",
1880
+ "aria-label": "Column settings",
1876
1881
  initial: {
1877
1882
  opacity: 0,
1878
1883
  y: 6,
@@ -1897,44 +1902,137 @@ function Ue({ columns: n, visibleKeys: r, onChange: c, className: d, label: p =
1897
1902
  1
1898
1903
  ]
1899
1904
  },
1900
- className: $("absolute bottom-[calc(100%+0.375rem)] right-0 z-20 origin-bottom-right", "max-h-72 w-60 overflow-auto rounded-md bg-white p-1.5", "shadow-[0_8px_30px_rgba(0,0,0,0.1)] ring-1 ring-black/5"),
1901
- children: n.map((e) => {
1902
- let t = r.has(e.key), n = t && r.size <= 1;
1903
- return /* @__PURE__ */ u("label", {
1904
- className: $("flex cursor-pointer items-center gap-3 rounded-md px-2.5 py-2 text-sm text-zinc-800", "transition-colors hover:bg-zinc-100/80", n && "cursor-not-allowed opacity-60"),
1905
- children: [
1906
- /* @__PURE__ */ l("input", {
1907
- type: "checkbox",
1908
- className: "peer sr-only",
1909
- checked: t,
1910
- disabled: n,
1911
- onChange: () => {
1912
- let n = new Set(r);
1913
- if (t) {
1914
- if (n.size <= 1) return;
1915
- n.delete(e.key);
1916
- } else n.add(e.key);
1917
- c(n);
1918
- }
1919
- }),
1920
- /* @__PURE__ */ l(He, {
1921
- checked: t,
1922
- disabled: n
1923
- }),
1924
- /* @__PURE__ */ l("span", {
1925
- className: "min-w-0 flex-1 truncate",
1926
- children: e.label
1905
+ className: $("absolute bottom-[calc(100%+0.375rem)] right-0 z-30 origin-bottom-right", "w-96 max-w-[calc(100vw-2rem)] rounded-md bg-white p-1.5", "shadow-[0_8px_30px_rgba(0,0,0,0.1)] ring-1 ring-black/5"),
1906
+ children: [/* @__PURE__ */ u("div", {
1907
+ role: "tablist",
1908
+ "aria-label": "Column settings",
1909
+ className: "mb-1 flex gap-1 border-b border-zinc-100 pb-1",
1910
+ children: ["visibility", "sticky"].map((e) => /* @__PURE__ */ d("button", {
1911
+ type: "button",
1912
+ role: "tab",
1913
+ id: `${C}-${e}-tab`,
1914
+ "aria-selected": _ === e,
1915
+ "aria-controls": `${C}-${e}-panel`,
1916
+ tabIndex: _ === e ? 0 : -1,
1917
+ onClick: () => v(e),
1918
+ onKeyDown: (t) => {
1919
+ if ([
1920
+ "ArrowLeft",
1921
+ "ArrowRight",
1922
+ "Home",
1923
+ "End"
1924
+ ].includes(t.key)) {
1925
+ t.preventDefault();
1926
+ let n = t.key === "Home" ? "visibility" : t.key === "End" || e === "visibility" ? "sticky" : "visibility";
1927
+ v(n), document.getElementById(`${C}-${n}-tab`)?.focus();
1928
+ }
1929
+ },
1930
+ className: $("relative isolate flex-1 cursor-pointer rounded px-3 py-2 text-sm font-medium transition-colors focus-visible:outline-2 focus-visible:outline-zinc-500", _ === e ? "text-zinc-900" : "text-zinc-500 hover:bg-zinc-50"),
1931
+ children: [_ === e && /* @__PURE__ */ u(s.span, {
1932
+ layoutId: `${C}-active-tab`,
1933
+ className: "absolute inset-0 -z-10 rounded bg-zinc-100",
1934
+ transition: y ? { duration: 0 } : {
1935
+ type: "spring",
1936
+ stiffness: 420,
1937
+ damping: 34
1938
+ }
1939
+ }), e === "visibility" ? "Visibility" : "Pinning"]
1940
+ }, e))
1941
+ }), /* @__PURE__ */ u("div", {
1942
+ className: "overflow-hidden",
1943
+ children: /* @__PURE__ */ u(o, {
1944
+ mode: "wait",
1945
+ initial: !1,
1946
+ children: /* @__PURE__ */ u(s.div, {
1947
+ initial: {
1948
+ opacity: 0,
1949
+ x: y ? 0 : _ === "sticky" ? 10 : -10
1950
+ },
1951
+ animate: {
1952
+ opacity: 1,
1953
+ x: 0
1954
+ },
1955
+ exit: {
1956
+ opacity: 0,
1957
+ x: 0
1958
+ },
1959
+ transition: {
1960
+ duration: y ? 0 : .14,
1961
+ ease: "easeOut"
1962
+ },
1963
+ role: "tabpanel",
1964
+ id: `${C}-${_}-panel`,
1965
+ "aria-labelledby": `${C}-${_}-tab`,
1966
+ className: "max-h-64 overflow-auto",
1967
+ children: _ === "sticky" ? l.map((e) => /* @__PURE__ */ d("div", {
1968
+ className: "flex items-center gap-3 rounded-md px-2.5 py-2 text-sm text-zinc-800 hover:bg-zinc-50",
1969
+ children: [/* @__PURE__ */ u("span", {
1970
+ id: `${C}-${e.key}-label`,
1971
+ className: "min-w-0 flex-1 truncate",
1972
+ children: e.label
1973
+ }), /* @__PURE__ */ u("div", {
1974
+ role: "radiogroup",
1975
+ "aria-labelledby": `${C}-${e.key}-label`,
1976
+ className: "flex shrink-0 items-center gap-2",
1977
+ children: [
1978
+ "none",
1979
+ "left",
1980
+ "right"
1981
+ ].map((t) => /* @__PURE__ */ d("label", {
1982
+ className: "flex cursor-pointer items-center gap-1 rounded py-1 text-xs",
1983
+ children: [/* @__PURE__ */ u("input", {
1984
+ type: "radio",
1985
+ name: `${C}-${e.key}-sticky`,
1986
+ value: t,
1987
+ checked: (e.sticky ?? "none") === t,
1988
+ onChange: () => f(e.key, t === "none" ? null : t),
1989
+ className: "size-3.5 cursor-pointer accent-zinc-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-zinc-500"
1990
+ }), t === "none" ? "None" : t === "left" ? "Left" : "Right"]
1991
+ }, t))
1992
+ })]
1993
+ }, e.key)) : n.map((e) => {
1994
+ let t = r.has(e.key), n = t && r.size <= 1;
1995
+ return /* @__PURE__ */ d("label", {
1996
+ className: $("flex cursor-pointer items-center gap-3 rounded-md px-2.5 py-2 text-sm text-zinc-800", "transition-colors hover:bg-zinc-100/80", n && "cursor-not-allowed opacity-60"),
1997
+ children: [
1998
+ /* @__PURE__ */ u("input", {
1999
+ type: "checkbox",
2000
+ className: "peer sr-only",
2001
+ checked: t,
2002
+ disabled: n,
2003
+ onChange: () => {
2004
+ let n = new Set(r);
2005
+ if (t) {
2006
+ if (n.size <= 1) return;
2007
+ n.delete(e.key);
2008
+ } else n.add(e.key);
2009
+ m(n);
2010
+ }
2011
+ }),
2012
+ /* @__PURE__ */ u("span", {
2013
+ className: "rounded peer-focus-visible:outline-2 peer-focus-visible:outline-zinc-500",
2014
+ children: /* @__PURE__ */ u(Ue, {
2015
+ checked: t,
2016
+ disabled: n
2017
+ })
2018
+ }),
2019
+ /* @__PURE__ */ u("span", {
2020
+ className: "min-w-0 flex-1 truncate",
2021
+ children: e.label
2022
+ })
2023
+ ]
2024
+ }, e.key);
1927
2025
  })
1928
- ]
1929
- }, e.key);
1930
- })
2026
+ }, _)
2027
+ })
2028
+ })]
1931
2029
  }) : null })]
1932
2030
  });
1933
2031
  }
1934
2032
  //#endregion
1935
2033
  //#region src/lib/icons/DragHandleIcon.tsx
1936
- function We({ className: e }) {
1937
- return /* @__PURE__ */ u("svg", {
2034
+ function Ge({ className: e }) {
2035
+ return /* @__PURE__ */ d("svg", {
1938
2036
  className: e,
1939
2037
  width: "14",
1940
2038
  height: "14",
@@ -1942,32 +2040,32 @@ function We({ className: e }) {
1942
2040
  fill: "currentColor",
1943
2041
  "aria-hidden": !0,
1944
2042
  children: [
1945
- /* @__PURE__ */ l("circle", {
2043
+ /* @__PURE__ */ u("circle", {
1946
2044
  cx: "5",
1947
2045
  cy: "3.5",
1948
2046
  r: "1.25"
1949
2047
  }),
1950
- /* @__PURE__ */ l("circle", {
2048
+ /* @__PURE__ */ u("circle", {
1951
2049
  cx: "11",
1952
2050
  cy: "3.5",
1953
2051
  r: "1.25"
1954
2052
  }),
1955
- /* @__PURE__ */ l("circle", {
2053
+ /* @__PURE__ */ u("circle", {
1956
2054
  cx: "5",
1957
2055
  cy: "8",
1958
2056
  r: "1.25"
1959
2057
  }),
1960
- /* @__PURE__ */ l("circle", {
2058
+ /* @__PURE__ */ u("circle", {
1961
2059
  cx: "11",
1962
2060
  cy: "8",
1963
2061
  r: "1.25"
1964
2062
  }),
1965
- /* @__PURE__ */ l("circle", {
2063
+ /* @__PURE__ */ u("circle", {
1966
2064
  cx: "5",
1967
2065
  cy: "12.5",
1968
2066
  r: "1.25"
1969
2067
  }),
1970
- /* @__PURE__ */ l("circle", {
2068
+ /* @__PURE__ */ u("circle", {
1971
2069
  cx: "11",
1972
2070
  cy: "12.5",
1973
2071
  r: "1.25"
@@ -1977,8 +2075,8 @@ function We({ className: e }) {
1977
2075
  }
1978
2076
  //#endregion
1979
2077
  //#region src/lib/icons/SortIcon.tsx
1980
- function Ge({ direction: e, className: t }) {
1981
- return /* @__PURE__ */ u("svg", {
2078
+ function Ke({ direction: e, className: t }) {
2079
+ return /* @__PURE__ */ d("svg", {
1982
2080
  className: $("size-3.5 shrink-0 select-none ml-4", t),
1983
2081
  viewBox: "0 0 14 14",
1984
2082
  fill: "none",
@@ -1986,11 +2084,11 @@ function Ge({ direction: e, className: t }) {
1986
2084
  strokeLinecap: "round",
1987
2085
  strokeLinejoin: "round",
1988
2086
  "aria-hidden": !0,
1989
- children: [/* @__PURE__ */ l("path", {
2087
+ children: [/* @__PURE__ */ u("path", {
1990
2088
  d: "M4 5.5L7 2.5L10 5.5",
1991
2089
  strokeWidth: e === "asc" ? "2" : "1.5",
1992
2090
  className: $("transition-colors", e === "asc" ? "stroke-zinc-900" : e === "desc" ? "stroke-zinc-300/50" : "stroke-zinc-400/80")
1993
- }), /* @__PURE__ */ l("path", {
2091
+ }), /* @__PURE__ */ u("path", {
1994
2092
  d: "M4 8.5L7 11.5L10 8.5",
1995
2093
  strokeWidth: e === "desc" ? "2" : "1.5",
1996
2094
  className: $("transition-colors", e === "desc" ? "stroke-zinc-900" : e === "asc" ? "stroke-zinc-300/50" : "stroke-zinc-400/80")
@@ -1999,8 +2097,8 @@ function Ge({ direction: e, className: t }) {
1999
2097
  }
2000
2098
  //#endregion
2001
2099
  //#region src/lib/LimitSelect.tsx
2002
- function Ke({ className: e }) {
2003
- return /* @__PURE__ */ l("svg", {
2100
+ function qe({ className: e }) {
2101
+ return /* @__PURE__ */ u("svg", {
2004
2102
  className: e,
2005
2103
  width: "16",
2006
2104
  height: "16",
@@ -2011,11 +2109,11 @@ function Ke({ className: e }) {
2011
2109
  strokeLinecap: "round",
2012
2110
  strokeLinejoin: "round",
2013
2111
  "aria-hidden": !0,
2014
- children: /* @__PURE__ */ l("path", { d: "M6 9l6 6 6-6" })
2112
+ children: /* @__PURE__ */ u("path", { d: "M6 9l6 6 6-6" })
2015
2113
  });
2016
2114
  }
2017
- function qe({ className: e }) {
2018
- return /* @__PURE__ */ l("svg", {
2115
+ function Je({ className: e }) {
2116
+ return /* @__PURE__ */ u("svg", {
2019
2117
  className: e,
2020
2118
  width: "16",
2021
2119
  height: "16",
@@ -2026,50 +2124,50 @@ function qe({ className: e }) {
2026
2124
  strokeLinecap: "round",
2027
2125
  strokeLinejoin: "round",
2028
2126
  "aria-hidden": !0,
2029
- children: /* @__PURE__ */ l("path", { d: "M20 6L9 17l-5-5" })
2127
+ children: /* @__PURE__ */ u("path", { d: "M20 6L9 17l-5-5" })
2030
2128
  });
2031
2129
  }
2032
- function Je({ value: n, options: r, onChange: o, className: s }) {
2033
- let [c, d] = a(!1), f = i(null), p = t();
2130
+ function Ye({ value: n, options: r, onChange: o, className: s }) {
2131
+ let [c, l] = a(!1), f = i(null), p = t();
2034
2132
  return e(() => {
2035
2133
  function e(e) {
2036
- f.current?.contains(e.target) || d(!1);
2134
+ f.current?.contains(e.target) || l(!1);
2037
2135
  }
2038
2136
  function t(e) {
2039
- e.key === "Escape" && d(!1);
2137
+ e.key === "Escape" && l(!1);
2040
2138
  }
2041
2139
  return document.addEventListener("mousedown", e), document.addEventListener("keydown", t), () => {
2042
2140
  document.removeEventListener("mousedown", e), document.removeEventListener("keydown", t);
2043
2141
  };
2044
- }, []), /* @__PURE__ */ u("div", {
2142
+ }, []), /* @__PURE__ */ d("div", {
2045
2143
  ref: f,
2046
2144
  className: $("relative inline-flex", s),
2047
- children: [/* @__PURE__ */ u("button", {
2145
+ children: [/* @__PURE__ */ d("button", {
2048
2146
  type: "button",
2049
2147
  "aria-haspopup": "listbox",
2050
2148
  "aria-expanded": c,
2051
2149
  "aria-controls": p,
2052
2150
  "aria-label": "Rows per page",
2053
2151
  className: $("inline-flex h-9 min-w-[4.5rem] items-center justify-between gap-2", "rounded-md bg-zinc-100 px-3 text-sm text-zinc-900", "outline-none transition-colors", "hover:bg-zinc-200/80", "focus-visible:ring-2 focus-visible:ring-zinc-300"),
2054
- onClick: () => d((e) => !e),
2055
- children: [/* @__PURE__ */ l("span", { children: n }), /* @__PURE__ */ l(Ke, { className: $("text-zinc-500 transition-transform duration-200", c && "rotate-180") })]
2056
- }), c ? /* @__PURE__ */ l("ul", {
2152
+ onClick: () => l((e) => !e),
2153
+ children: [/* @__PURE__ */ u("span", { children: n }), /* @__PURE__ */ u(qe, { className: $("text-zinc-500 transition-transform duration-200", c && "rotate-180") })]
2154
+ }), c ? /* @__PURE__ */ u("ul", {
2057
2155
  id: p,
2058
2156
  role: "listbox",
2059
2157
  "aria-label": "Rows per page",
2060
2158
  className: $("absolute bottom-[calc(100%+0.5rem)] left-0 z-30", "min-w-full overflow-hidden rounded-md bg-white py-1", "shadow-[0_8px_30px_rgba(0,0,0,0.12)] ring-1 ring-black/5"),
2061
2159
  children: r.map((e) => {
2062
2160
  let t = e === n;
2063
- return /* @__PURE__ */ l("li", {
2161
+ return /* @__PURE__ */ u("li", {
2064
2162
  role: "option",
2065
2163
  "aria-selected": t,
2066
- children: /* @__PURE__ */ u("button", {
2164
+ children: /* @__PURE__ */ d("button", {
2067
2165
  type: "button",
2068
2166
  className: $("flex w-[8.5em] cursor-pointer items-center justify-between gap-4 px-3 py-2 text-left text-sm", "text-zinc-900 transition-colors", t ? "bg-zinc-50" : "hover:bg-zinc-50"),
2069
2167
  onClick: () => {
2070
- o(e), d(!1);
2168
+ o(e), l(!1);
2071
2169
  },
2072
- children: [/* @__PURE__ */ u("span", { children: [e, " Items"] }), t ? /* @__PURE__ */ l(qe, { className: "text-zinc-800" }) : null]
2170
+ children: [/* @__PURE__ */ d("span", { children: [e, " Items"] }), t ? /* @__PURE__ */ u(Je, { className: "text-zinc-800" }) : null]
2073
2171
  })
2074
2172
  }, e);
2075
2173
  })
@@ -2078,13 +2176,13 @@ function Je({ value: n, options: r, onChange: o, className: s }) {
2078
2176
  }
2079
2177
  //#endregion
2080
2178
  //#region src/lib/Pagination.tsx
2081
- function Ye(e, t) {
2179
+ function Xe(e, t) {
2082
2180
  if (t <= 7) return Array.from({ length: t }, (e, t) => t + 1);
2083
2181
  let n = e + 1, r = [];
2084
2182
  return n <= 4 ? (r.push(1, 2, 3, 4, 5, "ellipsis", t), r) : n >= t - 3 ? (r.push(1, "ellipsis", t - 4, t - 3, t - 2, t - 1, t), r) : (r.push(1, "ellipsis", n - 1, n, n + 1, "ellipsis", t), r);
2085
2183
  }
2086
- function Xe({ className: e }) {
2087
- return /* @__PURE__ */ l("svg", {
2184
+ function Ze({ className: e }) {
2185
+ return /* @__PURE__ */ u("svg", {
2088
2186
  className: e,
2089
2187
  width: "14",
2090
2188
  height: "14",
@@ -2095,11 +2193,11 @@ function Xe({ className: e }) {
2095
2193
  strokeLinecap: "round",
2096
2194
  strokeLinejoin: "round",
2097
2195
  "aria-hidden": !0,
2098
- children: /* @__PURE__ */ l("path", { d: "M15 18l-6-6 6-6" })
2196
+ children: /* @__PURE__ */ u("path", { d: "M15 18l-6-6 6-6" })
2099
2197
  });
2100
2198
  }
2101
- function Ze({ className: e }) {
2102
- return /* @__PURE__ */ l("svg", {
2199
+ function Qe({ className: e }) {
2200
+ return /* @__PURE__ */ u("svg", {
2103
2201
  className: e,
2104
2202
  width: "14",
2105
2203
  height: "14",
@@ -2110,23 +2208,23 @@ function Ze({ className: e }) {
2110
2208
  strokeLinecap: "round",
2111
2209
  strokeLinejoin: "round",
2112
2210
  "aria-hidden": !0,
2113
- children: /* @__PURE__ */ l("path", { d: "M9 18l6-6-6-6" })
2211
+ children: /* @__PURE__ */ u("path", { d: "M9 18l6-6-6-6" })
2114
2212
  });
2115
2213
  }
2116
- var Qe = "inline-flex size-9 shrink-0 items-center justify-center rounded-md border text-sm transition-colors";
2117
- function $e({ skip: e, limit: t, total: n, limitOptions: r = [
2214
+ var $e = "inline-flex size-9 shrink-0 items-center justify-center rounded-md border text-sm transition-colors";
2215
+ function et({ skip: e, limit: t, total: n, limitOptions: r = [
2118
2216
  10,
2119
2217
  20,
2120
2218
  50
2121
2219
  ], onChange: i, className: a, startAddon: o, endAddon: s }) {
2122
- let c = Math.max(1, Math.ceil(n / t) || 1), d = Math.floor(e / t), f = Ye(d, c), p = n === 0 ? 0 : e + 1, m = Math.min(e + t, n);
2123
- return /* @__PURE__ */ u("div", {
2220
+ let c = Math.max(1, Math.ceil(n / t) || 1), l = Math.floor(e / t), f = Xe(l, c), p = n === 0 ? 0 : e + 1, m = Math.min(e + t, n);
2221
+ return /* @__PURE__ */ d("div", {
2124
2222
  className: $("flex flex-wrap items-center justify-between gap-3 px-1 py-2 text-sm text-zinc-700", a),
2125
- children: [/* @__PURE__ */ u("div", {
2223
+ children: [/* @__PURE__ */ d("div", {
2126
2224
  className: "flex items-center gap-2 text-zinc-500",
2127
2225
  children: [
2128
2226
  o,
2129
- /* @__PURE__ */ l(Je, {
2227
+ /* @__PURE__ */ u(Ye, {
2130
2228
  value: t,
2131
2229
  options: r,
2132
2230
  onChange: (e) => i({
@@ -2134,7 +2232,7 @@ function $e({ skip: e, limit: t, total: n, limitOptions: r = [
2134
2232
  skip: 0
2135
2233
  })
2136
2234
  }),
2137
- /* @__PURE__ */ u("span", {
2235
+ /* @__PURE__ */ d("span", {
2138
2236
  className: "hidden text-sm sm:inline",
2139
2237
  children: [
2140
2238
  p,
@@ -2145,48 +2243,48 @@ function $e({ skip: e, limit: t, total: n, limitOptions: r = [
2145
2243
  ]
2146
2244
  })
2147
2245
  ]
2148
- }), /* @__PURE__ */ u("div", {
2246
+ }), /* @__PURE__ */ d("div", {
2149
2247
  className: "flex items-center gap-2",
2150
- children: [/* @__PURE__ */ u("nav", {
2248
+ children: [/* @__PURE__ */ d("nav", {
2151
2249
  className: "flex items-center gap-1.5",
2152
2250
  "aria-label": "Pagination",
2153
2251
  children: [
2154
- /* @__PURE__ */ l("button", {
2252
+ /* @__PURE__ */ u("button", {
2155
2253
  type: "button",
2156
- className: $(Qe, "border-zinc-200 cursor-pointer bg-white text-zinc-800", "disabled:cursor-not-allowed disabled:border-zinc-100 disabled:text-zinc-300", "hover:enabled:bg-zinc-50"),
2157
- disabled: d <= 0,
2254
+ className: $($e, "border-zinc-200 cursor-pointer bg-white text-zinc-800", "disabled:cursor-not-allowed disabled:border-zinc-100 disabled:text-zinc-300", "hover:enabled:bg-zinc-50"),
2255
+ disabled: l <= 0,
2158
2256
  "aria-label": "Previous page",
2159
2257
  onClick: () => i({
2160
2258
  limit: t,
2161
2259
  skip: Math.max(0, e - t)
2162
2260
  }),
2163
- children: /* @__PURE__ */ l(Xe, {})
2261
+ children: /* @__PURE__ */ u(Ze, {})
2164
2262
  }),
2165
- f.map((e, n) => e === "ellipsis" ? /* @__PURE__ */ l("span", {
2263
+ f.map((e, n) => e === "ellipsis" ? /* @__PURE__ */ u("span", {
2166
2264
  className: "inline-flex size-9 items-center justify-center text-zinc-400",
2167
2265
  "aria-hidden": !0,
2168
2266
  children: "…"
2169
- }, `e-${n}`) : /* @__PURE__ */ l("button", {
2267
+ }, `e-${n}`) : /* @__PURE__ */ u("button", {
2170
2268
  type: "button",
2171
2269
  "aria-label": `Page ${e}`,
2172
- "aria-current": e === d + 1 ? "page" : void 0,
2173
- className: $(Qe, e === d + 1 ? "border-zinc-300 cursor-pointer bg-zinc-200 font-medium text-zinc-900" : "border-zinc-200 cursor-pointer bg-white text-zinc-800 hover:bg-zinc-50"),
2270
+ "aria-current": e === l + 1 ? "page" : void 0,
2271
+ className: $($e, e === l + 1 ? "border-zinc-300 cursor-pointer bg-zinc-200 font-medium text-zinc-900" : "border-zinc-200 cursor-pointer bg-white text-zinc-800 hover:bg-zinc-50"),
2174
2272
  onClick: () => i({
2175
2273
  limit: t,
2176
2274
  skip: (e - 1) * t
2177
2275
  }),
2178
2276
  children: e
2179
2277
  }, e)),
2180
- /* @__PURE__ */ l("button", {
2278
+ /* @__PURE__ */ u("button", {
2181
2279
  type: "button",
2182
- className: $(Qe, "border-zinc-200 cursor-pointer bg-white text-zinc-800", "disabled:cursor-not-allowed disabled:border-zinc-100 disabled:text-zinc-300", "hover:enabled:bg-zinc-50"),
2183
- disabled: d >= c - 1,
2280
+ className: $($e, "border-zinc-200 cursor-pointer bg-white text-zinc-800", "disabled:cursor-not-allowed disabled:border-zinc-100 disabled:text-zinc-300", "hover:enabled:bg-zinc-50"),
2281
+ disabled: l >= c - 1,
2184
2282
  "aria-label": "Next page",
2185
2283
  onClick: () => i({
2186
2284
  limit: t,
2187
2285
  skip: e + t
2188
2286
  }),
2189
- children: /* @__PURE__ */ l(Ze, {})
2287
+ children: /* @__PURE__ */ u(Qe, {})
2190
2288
  })
2191
2289
  ]
2192
2290
  }), s]
@@ -2195,23 +2293,23 @@ function $e({ skip: e, limit: t, total: n, limitOptions: r = [
2195
2293
  }
2196
2294
  //#endregion
2197
2295
  //#region src/lib/SkeletonRows.tsx
2198
- function et({ rowCount: e, columnCount: t, className: n }) {
2199
- return /* @__PURE__ */ l(c, { children: Array.from({ length: e }).map((e, r) => /* @__PURE__ */ l("tr", {
2296
+ function tt({ rowCount: e, columnCount: t, className: n }) {
2297
+ return /* @__PURE__ */ u(l, { children: Array.from({ length: e }).map((e, r) => /* @__PURE__ */ u("tr", {
2200
2298
  className: $("animate-pulse", n),
2201
- children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ l("td", {
2299
+ children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ u("td", {
2202
2300
  className: "border-b border-zinc-100 px-3 py-3",
2203
- children: /* @__PURE__ */ l("div", { className: "h-3 w-full rounded bg-zinc-200" })
2301
+ children: /* @__PURE__ */ u("div", { className: "h-3 w-full rounded bg-zinc-200" })
2204
2302
  }, t))
2205
2303
  }, r)) });
2206
2304
  }
2207
2305
  //#endregion
2208
2306
  //#region src/lib/utils/columnOrder.ts
2209
- function tt(e, t) {
2307
+ function nt(e, t) {
2210
2308
  if (!t?.length) return e;
2211
2309
  let n = new Set(e), r = t.filter((e) => n.has(e)), i = e.filter((e) => !r.includes(e));
2212
2310
  return [...r, ...i];
2213
2311
  }
2214
- function nt(e, t, n) {
2312
+ function rt(e, t, n) {
2215
2313
  let r = e.indexOf(t), i = e.indexOf(n);
2216
2314
  if (r === -1 || i === -1 || r === i) return e;
2217
2315
  let a = e.filter((e, t) => t !== r);
@@ -2219,16 +2317,16 @@ function nt(e, t, n) {
2219
2317
  }
2220
2318
  //#endregion
2221
2319
  //#region src/lib/utils/pagination.ts
2222
- function rt(e, t, n) {
2320
+ function it(e, t, n) {
2223
2321
  if (t <= 0) return 0;
2224
2322
  let r = Math.floor((t - 1) / n) * n;
2225
2323
  return Math.min(Math.max(0, e), Math.max(0, r));
2226
2324
  }
2227
- function it(e, t, n) {
2325
+ function at(e, t, n) {
2228
2326
  return e.slice(t, t + n);
2229
2327
  }
2230
- function at(e) {
2231
- let t = e.total ?? e.dataLength, n = Math.max(1, e.limit), r = rt(e.skip, t, n), i = Math.max(1, Math.ceil(t / n) || 1);
2328
+ function ot(e) {
2329
+ let t = e.total ?? e.dataLength, n = Math.max(1, e.limit), r = it(e.skip, t, n), i = Math.max(1, Math.ceil(t / n) || 1);
2232
2330
  return {
2233
2331
  limit: n,
2234
2332
  skip: r,
@@ -2239,43 +2337,43 @@ function at(e) {
2239
2337
  }
2240
2338
  //#endregion
2241
2339
  //#region src/lib/utils/stickyOffsets.ts
2242
- function ot(e, t) {
2340
+ function st(e, t) {
2243
2341
  return t?.[e.key] == null ? typeof e.width == "number" ? e.width : 120 : t[e.key];
2244
2342
  }
2245
- function st(e, t) {
2343
+ function ct(e, t) {
2246
2344
  let n = {}, r = 0;
2247
2345
  for (let i of e) i.sticky === "left" && (n[i.key] = {
2248
2346
  side: "left",
2249
2347
  offset: r
2250
- }, r += ot(i, t));
2348
+ }, r += st(i, t));
2251
2349
  let i = 0;
2252
2350
  for (let r = e.length - 1; r >= 0; r--) {
2253
2351
  let a = e[r];
2254
2352
  a.sticky === "right" && (n[a.key] = {
2255
2353
  side: "right",
2256
2354
  offset: i
2257
- }, i += ot(a, t));
2355
+ }, i += st(a, t));
2258
2356
  }
2259
2357
  return n;
2260
2358
  }
2261
2359
  //#endregion
2262
2360
  //#region src/lib/SeeTable.tsx
2263
- var ct = "__see_table_index__", lt = 120, ut = 310;
2264
- function dt(e, t) {
2361
+ var lt = "__see_table_index__", ut = 120, dt = 310;
2362
+ function ft(e, t) {
2265
2363
  return t?.length ? new Set(t) : new Set(e.filter((e) => e.defaultVisible !== !1).map((e) => e.key));
2266
2364
  }
2267
- function ft(e, t, n, r) {
2365
+ function pt(e, t, n, r) {
2268
2366
  if (n?.includes(e)) return "left";
2269
2367
  if (r?.includes(e)) return "right";
2270
2368
  if (n === void 0 && r === void 0) return t;
2271
2369
  }
2272
- function pt(e, t, n) {
2370
+ function mt(e, t, n) {
2273
2371
  return e.map((e) => ({
2274
2372
  ...e,
2275
- sticky: ft(e.key, e.sticky, t, n)
2373
+ sticky: pt(e.key, e.sticky, t, n)
2276
2374
  }));
2277
2375
  }
2278
- function mt(e, t, n = "actions", r = "Actions") {
2376
+ function ht(e, t, n = "actions", r = "Actions") {
2279
2377
  return t ? (e.some((e) => e.key === n) ? e : [...e, {
2280
2378
  key: n,
2281
2379
  header: r,
@@ -2286,7 +2384,7 @@ function mt(e, t, n = "actions", r = "Actions") {
2286
2384
  cell: (e, n) => t(e, n)
2287
2385
  } : e) : e;
2288
2386
  }
2289
- function ht(e, t) {
2387
+ function gt(e, t) {
2290
2388
  let n = e.width === "auto" ? {
2291
2389
  width: "1%",
2292
2390
  whiteSpace: "nowrap",
@@ -2304,83 +2402,89 @@ function ht(e, t) {
2304
2402
  [t.side]: t.offset
2305
2403
  } : n;
2306
2404
  }
2307
- function gt({ columns: e, data: t, getRowId: o, defaultVisibleColumns: s, limit: c, skip: d, total: f, onPaginationChange: p, limitOptions: m = [
2405
+ function _t({ columns: e, data: t, getRowId: o, defaultVisibleColumns: s, limit: c, skip: l, total: f, onPaginationChange: p, limitOptions: m = [
2308
2406
  10,
2309
2407
  20,
2310
2408
  50
2311
2409
  ], loading: h = !1, stickyLeft: g, stickyRight: _, renderActions: v, actionsKey: y = "actions", actionsHeader: b = "Actions", columnOrder: x, onColumnOrderChange: S, enableColumnReorder: ee, enableSorting: C, sortState: w, defaultSort: te, onSortChange: ne, showColumnToggle: re = !0, columnTogglePosition: ie = "after-skip", columnsLabel: ae = "Columns", showIndex: T = !1, indexHeader: E = "#", indexWidth: D = 56, renderIndex: O, fieldClassNames: oe, classNames: k }) {
2312
- let A = (ee ?? typeof S == "function") && typeof S == "function", se = C ?? (typeof ne == "function" || w !== void 0), j = i(null), [M, N] = a(null), P = i(!1), [F, ce] = a(() => te ?? null), I = w !== void 0, L = I ? w : F, R = c !== void 0 && d !== void 0 && typeof p == "function", [z, B] = a(m[0] ?? 10), [le, V] = a(0), [ue, de] = a(() => dt(e, s)), fe = R ? c : z, H = R ? d : le, U = r(() => mt(e, v, y, b), [
2410
+ let A = (ee ?? typeof S == "function") && typeof S == "function", j = C ?? (typeof ne == "function" || w !== void 0), M = i(null), [se, N] = a(null), P = i(!1), [ce, le] = a(() => te ?? null), F = w !== void 0, I = F ? w : ce, L = c !== void 0 && l !== void 0 && typeof p == "function", [R, z] = a(m[0] ?? 10), [ue, B] = a(0), [de, fe] = a(() => ft(e, s)), pe = L ? c : R, me = L ? l : ue, V = r(() => ht(e, v, y, b), [
2313
2411
  e,
2314
2412
  v,
2315
2413
  y,
2316
2414
  b
2317
- ]), W = r(() => pt(U, g, _), [
2318
- U,
2415
+ ]), [H, U] = a(() => /* @__PURE__ */ new Map()), W = r(() => mt(V, g, _).map((e) => ({
2416
+ ...e,
2417
+ sticky: H.has(e.key) ? H.get(e.key) ?? void 0 : e.sticky
2418
+ })), [
2419
+ V,
2319
2420
  g,
2320
- _
2421
+ _,
2422
+ H
2321
2423
  ]), G = r(() => {
2322
- let e = tt(W.map((e) => e.key), x), t = new Map(W.map((e) => [e.key, e]));
2424
+ let e = nt(W.map((e) => e.key), x), t = new Map(W.map((e) => [e.key, e]));
2323
2425
  return e.map((e) => t.get(e)).filter((e) => !!e);
2324
2426
  }, [W, x]), K = r(() => T ? {
2325
- key: ct,
2427
+ key: lt,
2326
2428
  header: E,
2327
2429
  width: D,
2328
- sticky: g?.includes("__see_table_index__") ? "left" : void 0,
2430
+ sticky: H.has("__see_table_index__") ? H.get("__see_table_index__") ?? void 0 : pt(lt, void 0, g, _),
2329
2431
  cell: (e, t) => {
2330
- let n = H + t + 1;
2432
+ let n = me + t + 1;
2331
2433
  return O ? O(e, t, n) : n;
2332
2434
  }
2333
2435
  } : null, [
2334
2436
  T,
2335
2437
  E,
2336
2438
  D,
2337
- g,
2338
2439
  H,
2440
+ _,
2441
+ g,
2442
+ me,
2339
2443
  O
2340
2444
  ]), q = r(() => {
2341
- let e = G.filter((e) => ue.has(e.key));
2445
+ let e = G.filter((e) => de.has(e.key));
2342
2446
  return K ? [K, ...e] : e;
2343
2447
  }, [
2344
2448
  G,
2345
- ue,
2449
+ de,
2346
2450
  K
2347
- ]), pe = r(() => tt(W.map((e) => e.key), x), [W, x]), me = r(() => G.map((e) => ({
2451
+ ]), he = r(() => nt(W.map((e) => e.key), x), [W, x]), ge = r(() => G.map((e) => ({
2348
2452
  key: e.key,
2349
2453
  label: e.header
2350
2454
  })), [G]);
2351
- function he(e, t) {
2352
- A && e !== "__see_table_index__" && (P.current = !0, j.current = e, t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e));
2455
+ function _e(e, t) {
2456
+ A && e !== "__see_table_index__" && (P.current = !0, M.current = e, t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e));
2353
2457
  }
2354
- function ge(e, t) {
2355
- A && j.current && e !== "__see_table_index__" && (t.preventDefault(), t.stopPropagation(), t.dataTransfer.dropEffect = "move", M !== e && N(e));
2458
+ function ve(e, t) {
2459
+ A && M.current && e !== "__see_table_index__" && (t.preventDefault(), t.stopPropagation(), t.dataTransfer.dropEffect = "move", se !== e && N(e));
2356
2460
  }
2357
- function _e(e, t) {
2461
+ function ye(e, t) {
2358
2462
  if (!A || e === "__see_table_index__") return;
2359
2463
  t.preventDefault(), t.stopPropagation();
2360
- let n = j.current ?? t.dataTransfer.getData("text/plain");
2361
- j.current = null, N(null), n && n !== e && n !== "__see_table_index__" && S(nt(pe, n, e));
2464
+ let n = M.current ?? t.dataTransfer.getData("text/plain");
2465
+ M.current = null, N(null), n && n !== e && n !== "__see_table_index__" && S(rt(he, n, e));
2362
2466
  }
2363
- function ve() {
2364
- j.current = null, N(null), setTimeout(() => {
2467
+ function be() {
2468
+ M.current = null, N(null), setTimeout(() => {
2365
2469
  P.current = !1;
2366
2470
  }, 50);
2367
2471
  }
2368
- function ye(e) {
2369
- if (!se || P.current) return;
2472
+ function J(e) {
2473
+ if (!j || P.current) return;
2370
2474
  let t = q.find((t) => t.key === e);
2371
2475
  if (!t || t.sortable === !1 || e === "__see_table_index__" || e === y) return;
2372
- let n = null;
2373
- n = L?.key === e ? L.direction === "asc" ? {
2476
+ let n;
2477
+ n = I?.key === e ? I.direction === "asc" ? {
2374
2478
  key: e,
2375
2479
  direction: "desc"
2376
2480
  } : null : {
2377
2481
  key: e,
2378
2482
  direction: "asc"
2379
- }, I || (ce(n), R || V(0)), ne?.(n);
2483
+ }, F || (le(n), L || B(0)), ne?.(n);
2380
2484
  }
2381
- let J = r(() => {
2382
- if (!se || !L || R) return t;
2383
- let { key: n, direction: r } = L, i = e.find((e) => e.key === n)?.sortFn;
2485
+ let Y = r(() => {
2486
+ if (!j || !I || L) return t;
2487
+ let { key: n, direction: r } = I, i = e.find((e) => e.key === n)?.sortFn;
2384
2488
  return [...t].sort((e, t) => {
2385
2489
  if (i) {
2386
2490
  let n = i(e, t);
@@ -2404,27 +2508,28 @@ function gt({ columns: e, data: t, getRowId: o, defaultVisibleColumns: s, limit:
2404
2508
  });
2405
2509
  }, [
2406
2510
  t,
2511
+ I,
2407
2512
  L,
2408
- R,
2409
- e
2410
- ]), Y = at({
2411
- dataLength: J.length,
2412
- limit: fe,
2413
- skip: H,
2513
+ e,
2514
+ j
2515
+ ]), X = ot({
2516
+ dataLength: Y.length,
2517
+ limit: pe,
2518
+ skip: me,
2414
2519
  total: f
2415
- }), be = R ? t : it(J, Y.skip, Y.limit), xe = i({}), [Se, Ce] = a({});
2520
+ }), xe = L ? t : at(Y, X.skip, X.limit), Se = i({}), [Ce, we] = a({});
2416
2521
  n(() => {
2417
- let e = q.filter((e) => e.sticky || e.width === "auto").map((e) => xe.current[e.key]).filter((e) => !!e);
2522
+ let e = q.filter((e) => e.sticky || e.width === "auto").map((e) => Se.current[e.key]).filter((e) => !!e);
2418
2523
  if (e.length === 0) return;
2419
2524
  let t = () => {
2420
2525
  let e = {};
2421
2526
  for (let t of q) {
2422
- let n = xe.current[t.key];
2527
+ let n = Se.current[t.key];
2423
2528
  if (!n) continue;
2424
2529
  let r = n.closest("table")?.querySelector(`tbody tr td:nth-child(${Array.from(n.parentElement?.children ?? []).indexOf(n) + 1})`), i = Math.ceil((r ?? n).getBoundingClientRect().width);
2425
2530
  i > 0 && (e[t.key] = i);
2426
2531
  }
2427
- Ce((t) => {
2532
+ we((t) => {
2428
2533
  let n = Object.keys(e);
2429
2534
  return n.length === Object.keys(t).length && n.every((n) => t[n] === e[n]) ? t : e;
2430
2535
  });
@@ -2435,67 +2540,67 @@ function gt({ columns: e, data: t, getRowId: o, defaultVisibleColumns: s, limit:
2435
2540
  return () => n.disconnect();
2436
2541
  }, [
2437
2542
  q,
2438
- be,
2543
+ xe,
2439
2544
  h,
2440
2545
  v
2441
2546
  ]);
2442
- let we = r(() => st(q, Se), [q, Se]);
2443
- function Te(e) {
2444
- R ? p(e) : (B(e.limit), V(e.skip));
2547
+ let Te = r(() => ct(q, Ce), [q, Ce]);
2548
+ function Z(e) {
2549
+ L ? p(e) : (z(e.limit), B(e.skip));
2445
2550
  }
2446
- return /* @__PURE__ */ u("div", {
2551
+ return /* @__PURE__ */ d("div", {
2447
2552
  className: $("flex w-full flex-col gap-2", k?.root),
2448
- children: [/* @__PURE__ */ l("div", {
2553
+ children: [/* @__PURE__ */ u("div", {
2449
2554
  className: $("w-full overflow-auto rounded border border-zinc-200/70", "scrollbar-none [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", k?.tableWrapper),
2450
- children: /* @__PURE__ */ u("table", {
2555
+ children: /* @__PURE__ */ d("table", {
2451
2556
  className: $("min-w-full border-collapse text-left text-sm text-zinc-500", k?.table),
2452
- children: [/* @__PURE__ */ l("thead", {
2557
+ children: [/* @__PURE__ */ u("thead", {
2453
2558
  className: $("bg-zinc-50", k?.thead),
2454
- children: /* @__PURE__ */ l("tr", { children: q.map((e) => {
2455
- let t = we[e.key], n = se && e.key !== "__see_table_index__" && e.key !== y && e.sortable !== !1, r = L?.key === e.key, i = r ? L.direction : null;
2456
- return /* @__PURE__ */ l("th", {
2559
+ children: /* @__PURE__ */ u("tr", { children: q.map((e) => {
2560
+ let t = Te[e.key], n = j && e.key !== "__see_table_index__" && e.key !== y && e.sortable !== !1, r = I?.key === e.key, i = r ? I.direction : null;
2561
+ return /* @__PURE__ */ u("th", {
2457
2562
  ref: (t) => {
2458
- xe.current[e.key] = t;
2563
+ Se.current[e.key] = t;
2459
2564
  },
2460
2565
  draggable: A && e.key !== "__see_table_index__",
2461
- onDragStart: (t) => he(e.key, t),
2462
- onDragOver: (t) => ge(e.key, t),
2463
- onDrop: (t) => _e(e.key, t),
2464
- onDragEnd: ve,
2566
+ onDragStart: (t) => _e(e.key, t),
2567
+ onDragOver: (t) => ve(e.key, t),
2568
+ onDrop: (t) => ye(e.key, t),
2569
+ onDragEnd: be,
2465
2570
  onClick: () => {
2466
- n && ye(e.key);
2571
+ n && J(e.key);
2467
2572
  },
2468
2573
  "aria-sort": n ? i === "asc" ? "ascending" : i === "desc" ? "descending" : "none" : void 0,
2469
- className: $("whitespace-nowrap border-b border-zinc-200 p-3", e.width !== "auto" && typeof e.width != "number" && "overflow-hidden text-ellipsis", n && "cursor-pointer select-none transition-colors hover:bg-zinc-100/80", A && e.key !== "__see_table_index__" && !n && "cursor-grab active:cursor-grabbing select-none", M === e.key && A && e.key !== "__see_table_index__" && "bg-zinc-200 ring-1 ring-inset ring-zinc-300", t && "sticky z-20 isolate bg-zinc-50", t?.side === "left" && "shadow-[4px_0_8px_-4px_rgba(0,0,0,0.15)]", t?.side === "right" && "shadow-[-4px_0_8px_-4px_rgba(0,0,0,0.15)]", k?.th, e.className, "font-medium"),
2470
- style: ht(e, t),
2471
- children: /* @__PURE__ */ u("span", {
2574
+ className: $("whitespace-nowrap border-b border-zinc-200 p-3", e.width !== "auto" && typeof e.width != "number" && "overflow-hidden text-ellipsis", n && "cursor-pointer select-none transition-colors hover:bg-zinc-100/80", A && e.key !== "__see_table_index__" && !n && "cursor-grab active:cursor-grabbing select-none", se === e.key && A && e.key !== "__see_table_index__" && "bg-zinc-200 ring-1 ring-inset ring-zinc-300", t && "sticky z-20 isolate bg-zinc-50", t?.side === "left" && "shadow-[4px_0_8px_-4px_rgba(0,0,0,0.15)]", t?.side === "right" && "shadow-[-4px_0_8px_-4px_rgba(0,0,0,0.15)]", k?.th, e.className, "font-medium"),
2575
+ style: gt(e, t),
2576
+ children: /* @__PURE__ */ d("span", {
2472
2577
  className: "inline-flex items-center gap-1.5",
2473
2578
  children: [
2474
- A && e.key !== "__see_table_index__" ? /* @__PURE__ */ l(We, { className: "shrink-0 text-zinc-400 hover:text-zinc-600" }) : null,
2475
- /* @__PURE__ */ l("span", {
2579
+ A && e.key !== "__see_table_index__" ? /* @__PURE__ */ u(Ge, { className: "shrink-0 text-zinc-400 hover:text-zinc-600" }) : null,
2580
+ /* @__PURE__ */ u("span", {
2476
2581
  className: $(r && "font-semibold text-zinc-900"),
2477
2582
  children: e.header
2478
2583
  }),
2479
- n ? /* @__PURE__ */ l(Ge, { direction: i }) : null
2584
+ n ? /* @__PURE__ */ u(Ke, { direction: i }) : null
2480
2585
  ]
2481
2586
  })
2482
2587
  }, e.key);
2483
2588
  }) })
2484
- }), /* @__PURE__ */ l("tbody", {
2589
+ }), /* @__PURE__ */ u("tbody", {
2485
2590
  className: k?.tbody,
2486
- children: h ? /* @__PURE__ */ l(et, {
2487
- rowCount: Y.limit,
2591
+ children: h ? /* @__PURE__ */ u(tt, {
2592
+ rowCount: X.limit,
2488
2593
  columnCount: q.length,
2489
2594
  className: k?.skeleton
2490
- }) : be.map((e, t) => {
2491
- let n = o?.(e, t) ?? String(Y.skip + t);
2492
- return /* @__PURE__ */ l("tr", {
2595
+ }) : xe.map((e, t) => {
2596
+ let n = o?.(e, t) ?? String(X.skip + t);
2597
+ return /* @__PURE__ */ u("tr", {
2493
2598
  className: $("group bg-white", k?.tr),
2494
2599
  children: q.map((n) => {
2495
- let r = we[n.key], i = n.cell ? n.cell(e, t) : e[n.key], a = oe?.[n.key], o = typeof a == "function" ? a(e, t) : a;
2496
- return /* @__PURE__ */ l("td", {
2600
+ let r = Te[n.key], i = n.cell ? n.cell(e, t) : e[n.key], a = oe?.[n.key], o = typeof a == "function" ? a(e, t) : a;
2601
+ return /* @__PURE__ */ u("td", {
2497
2602
  className: $("border-b border-zinc-100/80 px-3 py-2 text-zinc-500 transition-colors group-hover:bg-zinc-50", n.width !== "auto" && typeof n.width != "number" && "overflow-hidden text-ellipsis whitespace-nowrap", r && "sticky z-10 isolate bg-white group-hover:bg-zinc-50", r?.side === "left" && "shadow-[4px_0_8px_-4px_rgba(0,0,0,0.15)]", r?.side === "right" && "shadow-[-4px_0_8px_-4px_rgba(0,0,0,0.15)]", k?.td, n.className, o),
2498
- style: ht(n, r),
2603
+ style: gt(n, r),
2499
2604
  children: i
2500
2605
  }, n.key);
2501
2606
  })
@@ -2504,20 +2609,28 @@ function gt({ columns: e, data: t, getRowId: o, defaultVisibleColumns: s, limit:
2504
2609
  })]
2505
2610
  })
2506
2611
  }), (() => {
2507
- let e = ie === "before-limit" || ie === "start", t = re ? /* @__PURE__ */ l(Ue, {
2612
+ let e = ie === "before-limit" || ie === "start", t = re ? /* @__PURE__ */ u(We, {
2508
2613
  className: k?.columnToggle,
2509
2614
  label: ae,
2510
- columns: me,
2511
- visibleKeys: ue,
2512
- onChange: de
2615
+ columns: ge,
2616
+ stickyColumns: (K ? [K, ...G] : G).map((e) => ({
2617
+ key: e.key,
2618
+ label: e.header,
2619
+ sticky: e.sticky
2620
+ })),
2621
+ onStickyChange: (e, t) => {
2622
+ U((n) => new Map(n).set(e, t));
2623
+ },
2624
+ visibleKeys: de,
2625
+ onChange: fe
2513
2626
  }) : void 0;
2514
- return /* @__PURE__ */ l($e, {
2627
+ return /* @__PURE__ */ u(et, {
2515
2628
  className: k?.pagination,
2516
- skip: Y.skip,
2517
- limit: Y.limit,
2518
- total: Y.total,
2629
+ skip: X.skip,
2630
+ limit: X.limit,
2631
+ total: X.total,
2519
2632
  limitOptions: m,
2520
- onChange: Te,
2633
+ onChange: Z,
2521
2634
  startAddon: e ? t : void 0,
2522
2635
  endAddon: e ? void 0 : t
2523
2636
  });
@@ -2525,4 +2638,4 @@ function gt({ columns: e, data: t, getRowId: o, defaultVisibleColumns: s, limit:
2525
2638
  });
2526
2639
  }
2527
2640
  //#endregion
2528
- export { ut as DEFAULT_COL_MAX_WIDTH, lt as DEFAULT_COL_MIN_WIDTH, ct as INDEX_COLUMN_KEY, gt as MisterSeeGlobalTable };
2641
+ export { dt as DEFAULT_COL_MAX_WIDTH, ut as DEFAULT_COL_MIN_WIDTH, lt as INDEX_COLUMN_KEY, _t as MisterSeeGlobalTable };