@mistersee/global-table 0.1.8 → 0.1.10
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/README.md +321 -18
- package/dist/Checkbox.d.ts +17 -0
- package/dist/ColumnToggle.d.ts +11 -2
- package/dist/RowActionsMenu.d.ts +16 -0
- package/dist/SeeTable.d.ts +1 -1
- package/dist/SkeletonRows.d.ts +2 -1
- package/dist/global-table.js +1169 -821
- package/dist/icons/MenuIcon.d.ts +4 -0
- package/dist/index.d.ts +4 -1
- package/dist/types.d.ts +64 -1
- package/media/table-hero.png +0 -0
- package/package.json +2 -2
package/dist/global-table.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
3
|
+
import { AnimatePresence as l, motion as u, useReducedMotion as d } from "framer-motion";
|
|
4
|
+
import { createPortal as f } from "react-dom";
|
|
5
|
+
// src/lib/icons/CheckIcon.tsx
|
|
6
|
+
function p({ className: e }) {
|
|
7
|
+
return /* @__PURE__ */ s("svg", {
|
|
7
8
|
className: e,
|
|
8
9
|
width: "12",
|
|
9
10
|
height: "12",
|
|
@@ -14,40 +15,10 @@ function f({ className: e }) {
|
|
|
14
15
|
strokeLinecap: "round",
|
|
15
16
|
strokeLinejoin: "round",
|
|
16
17
|
"aria-hidden": !0,
|
|
17
|
-
children: /* @__PURE__ */
|
|
18
|
+
children: /* @__PURE__ */ s("path", { d: "M20 6L9 17l-5-5" })
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
-
//#region src/lib/icons/ColumnsIcon.tsx
|
|
22
|
-
function p({ className: e }) {
|
|
23
|
-
return /* @__PURE__ */ d("svg", {
|
|
24
|
-
className: e,
|
|
25
|
-
width: "16",
|
|
26
|
-
height: "16",
|
|
27
|
-
viewBox: "0 0 24 24",
|
|
28
|
-
fill: "none",
|
|
29
|
-
stroke: "currentColor",
|
|
30
|
-
strokeWidth: "2",
|
|
31
|
-
strokeLinecap: "round",
|
|
32
|
-
strokeLinejoin: "round",
|
|
33
|
-
"aria-hidden": !0,
|
|
34
|
-
children: [/* @__PURE__ */ u("rect", {
|
|
35
|
-
x: "3",
|
|
36
|
-
y: "4",
|
|
37
|
-
width: "7",
|
|
38
|
-
height: "16",
|
|
39
|
-
rx: "1.5"
|
|
40
|
-
}), /* @__PURE__ */ u("rect", {
|
|
41
|
-
x: "14",
|
|
42
|
-
y: "4",
|
|
43
|
-
width: "7",
|
|
44
|
-
height: "16",
|
|
45
|
-
rx: "1.5"
|
|
46
|
-
})]
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
//#endregion
|
|
50
|
-
//#region node_modules/.pnpm/tailwind-merge@3.7.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
21
|
+
// node_modules/.pnpm/tailwind-merge@3.7.0/node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
51
22
|
var m = (e, t) => {
|
|
52
23
|
let n = Array(e.length + t.length);
|
|
53
24
|
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
@@ -61,10 +32,10 @@ var m = (e, t) => {
|
|
|
61
32
|
validators: t,
|
|
62
33
|
classGroupId: n
|
|
63
34
|
}), _ = "-", v = [], y = "arbitrary..", b = (e) => {
|
|
64
|
-
let t =
|
|
35
|
+
let t = S(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
|
|
65
36
|
return {
|
|
66
37
|
getClassGroupId: (e) => {
|
|
67
|
-
if (e.startsWith("[") && e.endsWith("]")) return
|
|
38
|
+
if (e.startsWith("[") && e.endsWith("]")) return ee(e);
|
|
68
39
|
let n = e.split(_);
|
|
69
40
|
return x(n, +(n[0] === "" && n.length > 1), t);
|
|
70
41
|
},
|
|
@@ -90,10 +61,10 @@ var m = (e, t) => {
|
|
|
90
61
|
let t = a[e];
|
|
91
62
|
if (t.validator(o)) return t.classGroupId;
|
|
92
63
|
}
|
|
93
|
-
},
|
|
64
|
+
}, ee = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
94
65
|
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
95
66
|
return r ? y + r : void 0;
|
|
96
|
-
})(),
|
|
67
|
+
})(), S = (e) => {
|
|
97
68
|
let { theme: t, classGroups: n } = e;
|
|
98
69
|
return C(n, t);
|
|
99
70
|
}, C = (e, t) => {
|
|
@@ -107,41 +78,29 @@ var m = (e, t) => {
|
|
|
107
78
|
let i = e.length;
|
|
108
79
|
for (let a = 0; a < i; a++) {
|
|
109
80
|
let i = e[a];
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
}, te = (e, t, n, r) => {
|
|
113
|
-
if (typeof e == "string") {
|
|
114
|
-
ne(e, t, n);
|
|
115
|
-
return;
|
|
116
|
-
}
|
|
117
|
-
if (typeof e == "function") {
|
|
118
|
-
re(e, t, n, r);
|
|
119
|
-
return;
|
|
81
|
+
T(i, t, n, r);
|
|
120
82
|
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
83
|
+
}, T = (e, t, n, r) => {
|
|
84
|
+
typeof e == "string" ? E(e, t, n) : typeof e == "function" ? D(e, t, n, r) : O(e, t, n, r);
|
|
85
|
+
}, E = (e, t, n) => {
|
|
86
|
+
let r = e === "" ? t : k(t, e);
|
|
124
87
|
r.classGroupId = n;
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
t.validators === null && (t.validators = []), t.validators.push(h(n, e));
|
|
131
|
-
}, ie = (e, t, n, r) => {
|
|
88
|
+
}, D = (e, t, n, r) => {
|
|
89
|
+
A(e) ? w(e(r), t, n, r) : (t.validators === null && (t.validators = []), t.validators.push(h(n, e)));
|
|
90
|
+
}, O = (e, t, n, r) => {
|
|
132
91
|
let i = Object.entries(e), a = i.length;
|
|
133
92
|
for (let e = 0; e < a; e++) {
|
|
134
93
|
let [a, o] = i[e];
|
|
135
|
-
w(o,
|
|
94
|
+
w(o, k(t, a), n, r);
|
|
136
95
|
}
|
|
137
|
-
},
|
|
96
|
+
}, k = (e, t) => {
|
|
138
97
|
let n = e, r = t.split(_), i = r.length;
|
|
139
98
|
for (let e = 0; e < i; e++) {
|
|
140
99
|
let t = r[e], i = n.nextPart.get(t);
|
|
141
100
|
i || (i = g(), n.nextPart.set(t, i)), n = i;
|
|
142
101
|
}
|
|
143
102
|
return n;
|
|
144
|
-
},
|
|
103
|
+
}, A = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, j = (e) => {
|
|
145
104
|
if (e < 1) return {
|
|
146
105
|
get: () => void 0,
|
|
147
106
|
set: () => {}
|
|
@@ -159,19 +118,19 @@ var m = (e, t) => {
|
|
|
159
118
|
e in n ? n[e] = t : i(e, t);
|
|
160
119
|
}
|
|
161
120
|
};
|
|
162
|
-
},
|
|
121
|
+
}, M = "!", te = ":", ne = [], N = (e, t, n, r, i) => ({
|
|
163
122
|
modifiers: e,
|
|
164
123
|
hasImportantModifier: t,
|
|
165
124
|
baseClassName: n,
|
|
166
125
|
maybePostfixModifierPosition: r,
|
|
167
126
|
isExternal: i
|
|
168
|
-
}),
|
|
127
|
+
}), re = (e) => {
|
|
169
128
|
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
|
|
170
129
|
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
|
|
171
130
|
for (let s = 0; s < o; s++) {
|
|
172
131
|
let o = e[s];
|
|
173
132
|
if (n === 0 && r === 0) {
|
|
174
|
-
if (o ===
|
|
133
|
+
if (o === te) {
|
|
175
134
|
t.push(e.slice(i, s)), i = s + 1;
|
|
176
135
|
continue;
|
|
177
136
|
}
|
|
@@ -183,13 +142,13 @@ var m = (e, t) => {
|
|
|
183
142
|
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
|
|
184
143
|
}
|
|
185
144
|
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
|
|
186
|
-
s.endsWith(
|
|
145
|
+
s.endsWith(M) ? (c = s.slice(0, -1), l = !0) : s.startsWith(M) && (c = s.slice(1), l = !0);
|
|
187
146
|
let u = a && a > i ? a - i : void 0;
|
|
188
|
-
return
|
|
147
|
+
return N(t, l, c, u);
|
|
189
148
|
};
|
|
190
149
|
if (t) {
|
|
191
|
-
let e = t +
|
|
192
|
-
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) :
|
|
150
|
+
let e = t + te, n = r;
|
|
151
|
+
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : N(ne, !1, t, void 0, !0);
|
|
193
152
|
}
|
|
194
153
|
if (n) {
|
|
195
154
|
let e = r;
|
|
@@ -199,7 +158,7 @@ var m = (e, t) => {
|
|
|
199
158
|
});
|
|
200
159
|
}
|
|
201
160
|
return r;
|
|
202
|
-
},
|
|
161
|
+
}, ie = (e) => {
|
|
203
162
|
let t = /* @__PURE__ */ new Map();
|
|
204
163
|
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
205
164
|
t.set(e, 1e6 + n);
|
|
@@ -211,18 +170,18 @@ var m = (e, t) => {
|
|
|
211
170
|
}
|
|
212
171
|
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
213
172
|
};
|
|
214
|
-
},
|
|
215
|
-
cache:
|
|
216
|
-
parseClassName:
|
|
217
|
-
sortModifiers:
|
|
218
|
-
postfixLookupClassGroupIds:
|
|
173
|
+
}, ae = (e) => ({
|
|
174
|
+
cache: j(e.cacheSize),
|
|
175
|
+
parseClassName: re(e),
|
|
176
|
+
sortModifiers: ie(e),
|
|
177
|
+
postfixLookupClassGroupIds: P(e),
|
|
219
178
|
...b(e)
|
|
220
|
-
}),
|
|
179
|
+
}), P = (e) => {
|
|
221
180
|
let t = Object.create(null), n = e.postfixLookupClassGroups;
|
|
222
181
|
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
|
|
223
182
|
return t;
|
|
224
|
-
},
|
|
225
|
-
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(
|
|
183
|
+
}, F = /\s+/, I = (e, t) => {
|
|
184
|
+
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(F), l = "";
|
|
226
185
|
for (let e = c.length - 1; e >= 0; --e) {
|
|
227
186
|
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
|
|
228
187
|
if (u) {
|
|
@@ -236,17 +195,13 @@ var m = (e, t) => {
|
|
|
236
195
|
e && e !== g && (g = e, h = !1);
|
|
237
196
|
} else g = r(p);
|
|
238
197
|
if (!g) {
|
|
239
|
-
if (!h) {
|
|
240
|
-
l = t + (l.length > 0 ? " " + l : l);
|
|
241
|
-
continue;
|
|
242
|
-
}
|
|
243
|
-
if (g = r(p), !g) {
|
|
198
|
+
if (!h || (g = r(p), !g)) {
|
|
244
199
|
l = t + (l.length > 0 ? " " + l : l);
|
|
245
200
|
continue;
|
|
246
201
|
}
|
|
247
202
|
h = !1;
|
|
248
203
|
}
|
|
249
|
-
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ +
|
|
204
|
+
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + M : _, y = v + g;
|
|
250
205
|
if (s.indexOf(y) > -1) continue;
|
|
251
206
|
s.push(y);
|
|
252
207
|
let b = i(g, h);
|
|
@@ -257,34 +212,34 @@ var m = (e, t) => {
|
|
|
257
212
|
l = t + (l.length > 0 ? " " + l : l);
|
|
258
213
|
}
|
|
259
214
|
return l;
|
|
260
|
-
},
|
|
215
|
+
}, oe = (...e) => {
|
|
261
216
|
let t = 0, n, r, i = "";
|
|
262
|
-
for (; t < e.length;) (n = e[t++]) && (r =
|
|
217
|
+
for (; t < e.length;) (n = e[t++]) && (r = se(n)) && (i && (i += " "), i += r);
|
|
263
218
|
return i;
|
|
264
|
-
},
|
|
219
|
+
}, se = (e) => {
|
|
265
220
|
if (typeof e == "string") return e;
|
|
266
221
|
let t, n = "";
|
|
267
|
-
for (let r = 0; r < e.length; r++) e[r] && (t =
|
|
222
|
+
for (let r = 0; r < e.length; r++) e[r] && (t = se(e[r])) && (n && (n += " "), n += t);
|
|
268
223
|
return n;
|
|
269
|
-
},
|
|
270
|
-
let n, r, i, a, o = (o) => (n =
|
|
224
|
+
}, L = (e, ...t) => {
|
|
225
|
+
let n, r, i, a, o = (o) => (n = ae(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
|
|
271
226
|
let t = r(e);
|
|
272
227
|
if (t) return t;
|
|
273
|
-
let a =
|
|
228
|
+
let a = I(e, n);
|
|
274
229
|
return i(e, a), a;
|
|
275
230
|
};
|
|
276
|
-
return a = o, (...e) => a(
|
|
277
|
-
},
|
|
278
|
-
let t = (t) => t[e] ||
|
|
231
|
+
return a = o, (...e) => a(oe(...e));
|
|
232
|
+
}, ce = [], R = (e) => {
|
|
233
|
+
let t = (t) => t[e] || ce;
|
|
279
234
|
return t.isThemeGetter = !0, t.themeKey = e, t;
|
|
280
|
-
},
|
|
281
|
-
let r = R.exec(e);
|
|
282
|
-
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
283
|
-
}, Ne = (e, t, n = !1) => {
|
|
235
|
+
}, z = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, B = /^\((?:(\w[\w-]*):)?(.+)\)$/i, V = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, le = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ue = /\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$/, de = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/, fe = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, pe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, H = (e) => V.test(e), U = (e) => !!e && !Number.isNaN(Number(e)), W = (e) => !!e && Number.isInteger(Number(e)), me = (e) => e.endsWith("%") && U(e.slice(0, -1)), G = (e) => le.test(e), he = () => !0, ge = (e) => ue.test(e) && !de.test(e), _e = () => !1, ve = (e) => fe.test(e), ye = (e) => pe.test(e), be = (e) => !q(e) && !J(e), xe = (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)), K = (e) => X(e, Le, _e), q = (e) => z.test(e), Se = (e) => X(e, Re, ge), Ce = (e) => X(e, ze, U), we = (e) => X(e, Ve, he), Te = (e) => X(e, Be, _e), Ee = (e) => X(e, Fe, _e), De = (e) => X(e, Ie, ye), Oe = (e) => X(e, He, ve), J = (e) => B.test(e), ke = (e) => Z(e, Re), Ae = (e) => Z(e, Be), je = (e) => Z(e, Fe), Me = (e) => Z(e, Le), Ne = (e) => Z(e, Ie), Y = (e) => Z(e, He, !0), Pe = (e) => Z(e, Ve, !0), X = (e, t, n) => {
|
|
284
236
|
let r = z.exec(e);
|
|
237
|
+
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
238
|
+
}, Z = (e, t, n = !1) => {
|
|
239
|
+
let r = B.exec(e);
|
|
285
240
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
286
|
-
},
|
|
287
|
-
let e =
|
|
241
|
+
}, Fe = (e) => e === "position" || e === "percentage", Ie = (e) => e === "image" || e === "url", Le = (e) => e === "length" || e === "size" || e === "bg-size", Re = (e) => e === "length", ze = (e) => e === "number", Be = (e) => e === "family-name", Ve = (e) => e === "number" || e === "weight", He = (e) => e === "shadow", Q = /*#__PURE__*/ L(() => {
|
|
242
|
+
let e = R("color"), t = R("font"), n = R("text"), r = R("font-weight"), i = R("tracking"), a = R("leading"), o = R("breakpoint"), s = R("container"), c = R("spacing"), l = R("radius"), u = R("shadow"), d = R("inset-shadow"), f = R("text-shadow"), p = R("drop-shadow"), m = R("blur"), h = R("perspective"), g = R("aspect"), _ = R("ease"), v = R("animate"), y = () => [
|
|
288
243
|
"auto",
|
|
289
244
|
"avoid",
|
|
290
245
|
"all",
|
|
@@ -309,57 +264,57 @@ var m = (e, t) => {
|
|
|
309
264
|
"left-bottom"
|
|
310
265
|
], x = () => [
|
|
311
266
|
...b(),
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
],
|
|
267
|
+
J,
|
|
268
|
+
q
|
|
269
|
+
], ee = () => [
|
|
315
270
|
"auto",
|
|
316
271
|
"hidden",
|
|
317
272
|
"clip",
|
|
318
273
|
"visible",
|
|
319
274
|
"scroll"
|
|
320
|
-
],
|
|
275
|
+
], S = () => [
|
|
321
276
|
"auto",
|
|
322
277
|
"contain",
|
|
323
278
|
"none"
|
|
324
279
|
], C = () => [
|
|
325
|
-
Z,
|
|
326
280
|
J,
|
|
281
|
+
q,
|
|
327
282
|
c
|
|
328
283
|
], w = () => [
|
|
329
|
-
|
|
284
|
+
H,
|
|
330
285
|
"full",
|
|
331
286
|
"auto",
|
|
332
287
|
...C()
|
|
333
|
-
],
|
|
334
|
-
|
|
288
|
+
], T = () => [
|
|
289
|
+
W,
|
|
335
290
|
"none",
|
|
336
291
|
"subgrid",
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
],
|
|
292
|
+
J,
|
|
293
|
+
q
|
|
294
|
+
], E = () => [
|
|
340
295
|
"auto",
|
|
341
296
|
{ span: [
|
|
342
297
|
"full",
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
298
|
+
W,
|
|
299
|
+
J,
|
|
300
|
+
q
|
|
346
301
|
] },
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
],
|
|
351
|
-
|
|
302
|
+
W,
|
|
303
|
+
J,
|
|
304
|
+
q
|
|
305
|
+
], D = () => [
|
|
306
|
+
W,
|
|
352
307
|
"auto",
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
],
|
|
308
|
+
J,
|
|
309
|
+
q
|
|
310
|
+
], O = () => [
|
|
356
311
|
"auto",
|
|
357
312
|
"min",
|
|
358
313
|
"max",
|
|
359
314
|
"fr",
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
],
|
|
315
|
+
J,
|
|
316
|
+
q
|
|
317
|
+
], k = () => [
|
|
363
318
|
"start",
|
|
364
319
|
"end",
|
|
365
320
|
"center",
|
|
@@ -370,15 +325,15 @@ var m = (e, t) => {
|
|
|
370
325
|
"baseline",
|
|
371
326
|
"center-safe",
|
|
372
327
|
"end-safe"
|
|
373
|
-
],
|
|
328
|
+
], A = () => [
|
|
374
329
|
"start",
|
|
375
330
|
"end",
|
|
376
331
|
"center",
|
|
377
332
|
"stretch",
|
|
378
333
|
"center-safe",
|
|
379
334
|
"end-safe"
|
|
380
|
-
],
|
|
381
|
-
|
|
335
|
+
], j = () => ["auto", ...C()], M = () => [
|
|
336
|
+
H,
|
|
382
337
|
"auto",
|
|
383
338
|
"full",
|
|
384
339
|
"dvw",
|
|
@@ -391,9 +346,9 @@ var m = (e, t) => {
|
|
|
391
346
|
"max",
|
|
392
347
|
"fit",
|
|
393
348
|
...C()
|
|
394
|
-
],
|
|
349
|
+
], te = () => [
|
|
395
350
|
s,
|
|
396
|
-
|
|
351
|
+
H,
|
|
397
352
|
"screen",
|
|
398
353
|
"full",
|
|
399
354
|
"dvw",
|
|
@@ -403,8 +358,8 @@ var m = (e, t) => {
|
|
|
403
358
|
"max",
|
|
404
359
|
"fit",
|
|
405
360
|
...C()
|
|
406
|
-
],
|
|
407
|
-
|
|
361
|
+
], ne = () => [
|
|
362
|
+
H,
|
|
408
363
|
"screen",
|
|
409
364
|
"full",
|
|
410
365
|
"lh",
|
|
@@ -415,50 +370,50 @@ var m = (e, t) => {
|
|
|
415
370
|
"max",
|
|
416
371
|
"fit",
|
|
417
372
|
...C()
|
|
418
|
-
],
|
|
373
|
+
], N = () => [
|
|
419
374
|
e,
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
],
|
|
375
|
+
J,
|
|
376
|
+
q
|
|
377
|
+
], re = () => [
|
|
423
378
|
...b(),
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
{ position: [
|
|
427
|
-
],
|
|
379
|
+
je,
|
|
380
|
+
Ee,
|
|
381
|
+
{ position: [J, q] }
|
|
382
|
+
], ie = () => ["no-repeat", { repeat: [
|
|
428
383
|
"",
|
|
429
384
|
"x",
|
|
430
385
|
"y",
|
|
431
386
|
"space",
|
|
432
387
|
"round"
|
|
433
|
-
] }],
|
|
388
|
+
] }], ae = () => [
|
|
434
389
|
"auto",
|
|
435
390
|
"cover",
|
|
436
391
|
"contain",
|
|
392
|
+
Me,
|
|
393
|
+
K,
|
|
394
|
+
{ size: [J, q] }
|
|
395
|
+
], P = () => [
|
|
396
|
+
me,
|
|
437
397
|
ke,
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
], se = () => [
|
|
441
|
-
W,
|
|
442
|
-
Ee,
|
|
443
|
-
Y
|
|
444
|
-
], N = () => [
|
|
398
|
+
Se
|
|
399
|
+
], F = () => [
|
|
445
400
|
"",
|
|
446
401
|
"none",
|
|
447
402
|
"full",
|
|
448
403
|
l,
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
],
|
|
404
|
+
J,
|
|
405
|
+
q
|
|
406
|
+
], I = () => [
|
|
452
407
|
"",
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
],
|
|
408
|
+
U,
|
|
409
|
+
ke,
|
|
410
|
+
Se
|
|
411
|
+
], oe = () => [
|
|
457
412
|
"solid",
|
|
458
413
|
"dashed",
|
|
459
414
|
"dotted",
|
|
460
415
|
"double"
|
|
461
|
-
],
|
|
416
|
+
], se = () => [
|
|
462
417
|
"normal",
|
|
463
418
|
"multiply",
|
|
464
419
|
"screen",
|
|
@@ -475,33 +430,33 @@ var m = (e, t) => {
|
|
|
475
430
|
"saturation",
|
|
476
431
|
"color",
|
|
477
432
|
"luminosity"
|
|
478
|
-
],
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
],
|
|
433
|
+
], L = () => [
|
|
434
|
+
U,
|
|
435
|
+
me,
|
|
436
|
+
je,
|
|
437
|
+
Ee
|
|
438
|
+
], ce = () => [
|
|
484
439
|
"",
|
|
485
440
|
"none",
|
|
486
441
|
m,
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
], R = () => [
|
|
490
|
-
"none",
|
|
491
|
-
H,
|
|
492
|
-
Z,
|
|
493
|
-
J
|
|
442
|
+
J,
|
|
443
|
+
q
|
|
494
444
|
], z = () => [
|
|
495
445
|
"none",
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
], ue = () => [
|
|
500
|
-
H,
|
|
501
|
-
Z,
|
|
502
|
-
J
|
|
446
|
+
U,
|
|
447
|
+
J,
|
|
448
|
+
q
|
|
503
449
|
], B = () => [
|
|
504
|
-
|
|
450
|
+
"none",
|
|
451
|
+
U,
|
|
452
|
+
J,
|
|
453
|
+
q
|
|
454
|
+
], V = () => [
|
|
455
|
+
U,
|
|
456
|
+
J,
|
|
457
|
+
q
|
|
458
|
+
], le = () => [
|
|
459
|
+
H,
|
|
505
460
|
"full",
|
|
506
461
|
...C()
|
|
507
462
|
];
|
|
@@ -517,7 +472,7 @@ var m = (e, t) => {
|
|
|
517
472
|
aspect: ["video"],
|
|
518
473
|
blur: [G],
|
|
519
474
|
breakpoint: [G],
|
|
520
|
-
color: [
|
|
475
|
+
color: [he],
|
|
521
476
|
container: [G],
|
|
522
477
|
"drop-shadow": [G],
|
|
523
478
|
ease: [
|
|
@@ -525,7 +480,7 @@ var m = (e, t) => {
|
|
|
525
480
|
"out",
|
|
526
481
|
"in-out"
|
|
527
482
|
],
|
|
528
|
-
font: [
|
|
483
|
+
font: [be],
|
|
529
484
|
"font-weight": [
|
|
530
485
|
"thin",
|
|
531
486
|
"extralight",
|
|
@@ -556,7 +511,7 @@ var m = (e, t) => {
|
|
|
556
511
|
],
|
|
557
512
|
radius: [G],
|
|
558
513
|
shadow: [G],
|
|
559
|
-
spacing: ["px",
|
|
514
|
+
spacing: ["px", U],
|
|
560
515
|
text: [G],
|
|
561
516
|
"text-shadow": [G],
|
|
562
517
|
tracking: [
|
|
@@ -572,9 +527,9 @@ var m = (e, t) => {
|
|
|
572
527
|
aspect: [{ aspect: [
|
|
573
528
|
"auto",
|
|
574
529
|
"square",
|
|
575
|
-
|
|
530
|
+
H,
|
|
531
|
+
q,
|
|
576
532
|
J,
|
|
577
|
-
Z,
|
|
578
533
|
g
|
|
579
534
|
] }],
|
|
580
535
|
container: ["container"],
|
|
@@ -582,15 +537,15 @@ var m = (e, t) => {
|
|
|
582
537
|
"",
|
|
583
538
|
"normal",
|
|
584
539
|
"size",
|
|
585
|
-
|
|
586
|
-
|
|
540
|
+
J,
|
|
541
|
+
q
|
|
587
542
|
] }],
|
|
588
|
-
"container-named": [
|
|
543
|
+
"container-named": [xe],
|
|
589
544
|
columns: [{ columns: [
|
|
590
|
-
|
|
545
|
+
U,
|
|
591
546
|
"auto",
|
|
547
|
+
q,
|
|
592
548
|
J,
|
|
593
|
-
Z,
|
|
594
549
|
s
|
|
595
550
|
] }],
|
|
596
551
|
"break-after": [{ "break-after": y() }],
|
|
@@ -651,12 +606,12 @@ var m = (e, t) => {
|
|
|
651
606
|
"scale-down"
|
|
652
607
|
] }],
|
|
653
608
|
"object-position": [{ object: x() }],
|
|
654
|
-
overflow: [{ overflow:
|
|
655
|
-
"overflow-x": [{ "overflow-x":
|
|
656
|
-
"overflow-y": [{ "overflow-y":
|
|
657
|
-
overscroll: [{ overscroll:
|
|
658
|
-
"overscroll-x": [{ "overscroll-x":
|
|
659
|
-
"overscroll-y": [{ "overscroll-y":
|
|
609
|
+
overflow: [{ overflow: ee() }],
|
|
610
|
+
"overflow-x": [{ "overflow-x": ee() }],
|
|
611
|
+
"overflow-y": [{ "overflow-y": ee() }],
|
|
612
|
+
overscroll: [{ overscroll: S() }],
|
|
613
|
+
"overscroll-x": [{ "overscroll-x": S() }],
|
|
614
|
+
"overscroll-y": [{ "overscroll-y": S() }],
|
|
660
615
|
position: [
|
|
661
616
|
"static",
|
|
662
617
|
"fixed",
|
|
@@ -687,13 +642,13 @@ var m = (e, t) => {
|
|
|
687
642
|
"collapse"
|
|
688
643
|
],
|
|
689
644
|
z: [{ z: [
|
|
690
|
-
|
|
645
|
+
W,
|
|
691
646
|
"auto",
|
|
692
|
-
|
|
693
|
-
|
|
647
|
+
J,
|
|
648
|
+
q
|
|
694
649
|
] }],
|
|
695
650
|
basis: [{ basis: [
|
|
696
|
-
|
|
651
|
+
H,
|
|
697
652
|
"full",
|
|
698
653
|
"auto",
|
|
699
654
|
s,
|
|
@@ -711,41 +666,41 @@ var m = (e, t) => {
|
|
|
711
666
|
"wrap-reverse"
|
|
712
667
|
] }],
|
|
713
668
|
flex: [{ flex: [
|
|
669
|
+
U,
|
|
714
670
|
H,
|
|
715
|
-
V,
|
|
716
671
|
"auto",
|
|
717
672
|
"initial",
|
|
718
673
|
"none",
|
|
719
|
-
|
|
674
|
+
q
|
|
720
675
|
] }],
|
|
721
676
|
grow: [{ grow: [
|
|
722
677
|
"",
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
678
|
+
U,
|
|
679
|
+
J,
|
|
680
|
+
q
|
|
726
681
|
] }],
|
|
727
682
|
shrink: [{ shrink: [
|
|
728
683
|
"",
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
684
|
+
U,
|
|
685
|
+
J,
|
|
686
|
+
q
|
|
732
687
|
] }],
|
|
733
688
|
order: [{ order: [
|
|
734
|
-
|
|
689
|
+
W,
|
|
735
690
|
"first",
|
|
736
691
|
"last",
|
|
737
692
|
"none",
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
] }],
|
|
741
|
-
"grid-cols": [{ "grid-cols":
|
|
742
|
-
"col-start-end": [{ col:
|
|
743
|
-
"col-start": [{ "col-start":
|
|
744
|
-
"col-end": [{ "col-end":
|
|
745
|
-
"grid-rows": [{ "grid-rows":
|
|
746
|
-
"row-start-end": [{ row:
|
|
747
|
-
"row-start": [{ "row-start":
|
|
748
|
-
"row-end": [{ "row-end":
|
|
693
|
+
J,
|
|
694
|
+
q
|
|
695
|
+
] }],
|
|
696
|
+
"grid-cols": [{ "grid-cols": T() }],
|
|
697
|
+
"col-start-end": [{ col: E() }],
|
|
698
|
+
"col-start": [{ "col-start": D() }],
|
|
699
|
+
"col-end": [{ "col-end": D() }],
|
|
700
|
+
"grid-rows": [{ "grid-rows": T() }],
|
|
701
|
+
"row-start-end": [{ row: E() }],
|
|
702
|
+
"row-start": [{ "row-start": D() }],
|
|
703
|
+
"row-end": [{ "row-end": D() }],
|
|
749
704
|
"grid-flow": [{ "grid-flow": [
|
|
750
705
|
"row",
|
|
751
706
|
"col",
|
|
@@ -753,24 +708,24 @@ var m = (e, t) => {
|
|
|
753
708
|
"row-dense",
|
|
754
709
|
"col-dense"
|
|
755
710
|
] }],
|
|
756
|
-
"auto-cols": [{ "auto-cols":
|
|
757
|
-
"auto-rows": [{ "auto-rows":
|
|
711
|
+
"auto-cols": [{ "auto-cols": O() }],
|
|
712
|
+
"auto-rows": [{ "auto-rows": O() }],
|
|
758
713
|
gap: [{ gap: C() }],
|
|
759
714
|
"gap-x": [{ "gap-x": C() }],
|
|
760
715
|
"gap-y": [{ "gap-y": C() }],
|
|
761
|
-
"justify-content": [{ justify: [...
|
|
762
|
-
"justify-items": [{ "justify-items": [...
|
|
763
|
-
"justify-self": [{ "justify-self": ["auto", ...
|
|
764
|
-
"align-content": [{ content: ["normal", ...
|
|
765
|
-
"align-items": [{ items: [...
|
|
716
|
+
"justify-content": [{ justify: [...k(), "normal"] }],
|
|
717
|
+
"justify-items": [{ "justify-items": [...A(), "normal"] }],
|
|
718
|
+
"justify-self": [{ "justify-self": ["auto", ...A()] }],
|
|
719
|
+
"align-content": [{ content: ["normal", ...k()] }],
|
|
720
|
+
"align-items": [{ items: [...A(), { baseline: ["", "last"] }] }],
|
|
766
721
|
"align-self": [{ self: [
|
|
767
722
|
"auto",
|
|
768
|
-
...
|
|
723
|
+
...A(),
|
|
769
724
|
{ baseline: ["", "last"] }
|
|
770
725
|
] }],
|
|
771
|
-
"place-content": [{ "place-content":
|
|
772
|
-
"place-items": [{ "place-items": [...
|
|
773
|
-
"place-self": [{ "place-self": ["auto", ...
|
|
726
|
+
"place-content": [{ "place-content": k() }],
|
|
727
|
+
"place-items": [{ "place-items": [...A(), "baseline"] }],
|
|
728
|
+
"place-self": [{ "place-self": ["auto", ...A()] }],
|
|
774
729
|
p: [{ p: C() }],
|
|
775
730
|
px: [{ px: C() }],
|
|
776
731
|
py: [{ py: C() }],
|
|
@@ -782,38 +737,38 @@ var m = (e, t) => {
|
|
|
782
737
|
pr: [{ pr: C() }],
|
|
783
738
|
pb: [{ pb: C() }],
|
|
784
739
|
pl: [{ pl: C() }],
|
|
785
|
-
m: [{ m:
|
|
786
|
-
mx: [{ mx:
|
|
787
|
-
my: [{ my:
|
|
788
|
-
ms: [{ ms:
|
|
789
|
-
me: [{ me:
|
|
790
|
-
mbs: [{ mbs:
|
|
791
|
-
mbe: [{ mbe:
|
|
792
|
-
mt: [{ mt:
|
|
793
|
-
mr: [{ mr:
|
|
794
|
-
mb: [{ mb:
|
|
795
|
-
ml: [{ ml:
|
|
740
|
+
m: [{ m: j() }],
|
|
741
|
+
mx: [{ mx: j() }],
|
|
742
|
+
my: [{ my: j() }],
|
|
743
|
+
ms: [{ ms: j() }],
|
|
744
|
+
me: [{ me: j() }],
|
|
745
|
+
mbs: [{ mbs: j() }],
|
|
746
|
+
mbe: [{ mbe: j() }],
|
|
747
|
+
mt: [{ mt: j() }],
|
|
748
|
+
mr: [{ mr: j() }],
|
|
749
|
+
mb: [{ mb: j() }],
|
|
750
|
+
ml: [{ ml: j() }],
|
|
796
751
|
"space-x": [{ "space-x": C() }],
|
|
797
752
|
"space-x-reverse": ["space-x-reverse"],
|
|
798
753
|
"space-y": [{ "space-y": C() }],
|
|
799
754
|
"space-y-reverse": ["space-y-reverse"],
|
|
800
|
-
size: [{ size:
|
|
801
|
-
"inline-size": [{ inline: ["auto", ...
|
|
802
|
-
"min-inline-size": [{ "min-inline": ["auto", ...
|
|
803
|
-
"max-inline-size": [{ "max-inline": ["none", ...
|
|
804
|
-
"block-size": [{ block: ["auto", ...
|
|
805
|
-
"min-block-size": [{ "min-block": ["auto", ...
|
|
806
|
-
"max-block-size": [{ "max-block": ["none", ...
|
|
755
|
+
size: [{ size: M() }],
|
|
756
|
+
"inline-size": [{ inline: ["auto", ...te()] }],
|
|
757
|
+
"min-inline-size": [{ "min-inline": ["auto", ...te()] }],
|
|
758
|
+
"max-inline-size": [{ "max-inline": ["none", ...te()] }],
|
|
759
|
+
"block-size": [{ block: ["auto", ...ne()] }],
|
|
760
|
+
"min-block-size": [{ "min-block": ["auto", ...ne()] }],
|
|
761
|
+
"max-block-size": [{ "max-block": ["none", ...ne()] }],
|
|
807
762
|
w: [{ w: [
|
|
808
763
|
s,
|
|
809
764
|
"screen",
|
|
810
|
-
...
|
|
765
|
+
...M()
|
|
811
766
|
] }],
|
|
812
767
|
"min-w": [{ "min-w": [
|
|
813
768
|
s,
|
|
814
769
|
"screen",
|
|
815
770
|
"none",
|
|
816
|
-
...
|
|
771
|
+
...M()
|
|
817
772
|
] }],
|
|
818
773
|
"max-w": [{ "max-w": [
|
|
819
774
|
s,
|
|
@@ -821,37 +776,37 @@ var m = (e, t) => {
|
|
|
821
776
|
"none",
|
|
822
777
|
"prose",
|
|
823
778
|
{ screen: [o] },
|
|
824
|
-
...
|
|
779
|
+
...M()
|
|
825
780
|
] }],
|
|
826
781
|
h: [{ h: [
|
|
827
782
|
"screen",
|
|
828
783
|
"lh",
|
|
829
|
-
...
|
|
784
|
+
...M()
|
|
830
785
|
] }],
|
|
831
786
|
"min-h": [{ "min-h": [
|
|
832
787
|
"screen",
|
|
833
788
|
"lh",
|
|
834
789
|
"none",
|
|
835
|
-
...
|
|
790
|
+
...M()
|
|
836
791
|
] }],
|
|
837
792
|
"max-h": [{ "max-h": [
|
|
838
793
|
"screen",
|
|
839
794
|
"lh",
|
|
840
795
|
"none",
|
|
841
|
-
...
|
|
796
|
+
...M()
|
|
842
797
|
] }],
|
|
843
798
|
"font-size": [{ text: [
|
|
844
799
|
"base",
|
|
845
800
|
n,
|
|
846
|
-
|
|
847
|
-
|
|
801
|
+
ke,
|
|
802
|
+
Se
|
|
848
803
|
] }],
|
|
849
804
|
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
850
805
|
"font-style": ["italic", "not-italic"],
|
|
851
806
|
"font-weight": [{ font: [
|
|
852
807
|
r,
|
|
853
|
-
|
|
854
|
-
|
|
808
|
+
Pe,
|
|
809
|
+
we
|
|
855
810
|
] }],
|
|
856
811
|
"font-stretch": [{ "font-stretch": [
|
|
857
812
|
"ultra-condensed",
|
|
@@ -863,15 +818,15 @@ var m = (e, t) => {
|
|
|
863
818
|
"expanded",
|
|
864
819
|
"extra-expanded",
|
|
865
820
|
"ultra-expanded",
|
|
866
|
-
|
|
867
|
-
|
|
821
|
+
me,
|
|
822
|
+
q
|
|
868
823
|
] }],
|
|
869
824
|
"font-family": [{ font: [
|
|
870
|
-
|
|
871
|
-
|
|
825
|
+
Ae,
|
|
826
|
+
Te,
|
|
872
827
|
t
|
|
873
828
|
] }],
|
|
874
|
-
"font-features": [{ "font-features": [
|
|
829
|
+
"font-features": [{ "font-features": [q] }],
|
|
875
830
|
"fvn-normal": ["normal-nums"],
|
|
876
831
|
"fvn-ordinal": ["ordinal"],
|
|
877
832
|
"fvn-slashed-zero": ["slashed-zero"],
|
|
@@ -880,14 +835,14 @@ var m = (e, t) => {
|
|
|
880
835
|
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
881
836
|
tracking: [{ tracking: [
|
|
882
837
|
i,
|
|
883
|
-
|
|
884
|
-
|
|
838
|
+
J,
|
|
839
|
+
q
|
|
885
840
|
] }],
|
|
886
841
|
"line-clamp": [{ "line-clamp": [
|
|
887
|
-
|
|
842
|
+
U,
|
|
888
843
|
"none",
|
|
889
|
-
|
|
890
|
-
|
|
844
|
+
J,
|
|
845
|
+
Ce
|
|
891
846
|
] }],
|
|
892
847
|
leading: [{ leading: [
|
|
893
848
|
"none",
|
|
@@ -896,16 +851,16 @@ var m = (e, t) => {
|
|
|
896
851
|
] }],
|
|
897
852
|
"list-image": [{ "list-image": [
|
|
898
853
|
"none",
|
|
899
|
-
|
|
900
|
-
|
|
854
|
+
J,
|
|
855
|
+
q
|
|
901
856
|
] }],
|
|
902
857
|
"list-style-position": [{ list: ["inside", "outside"] }],
|
|
903
858
|
"list-style-type": [{ list: [
|
|
904
859
|
"disc",
|
|
905
860
|
"decimal",
|
|
906
861
|
"none",
|
|
907
|
-
|
|
908
|
-
|
|
862
|
+
J,
|
|
863
|
+
q
|
|
909
864
|
] }],
|
|
910
865
|
"text-alignment": [{ text: [
|
|
911
866
|
"left",
|
|
@@ -915,28 +870,28 @@ var m = (e, t) => {
|
|
|
915
870
|
"start",
|
|
916
871
|
"end"
|
|
917
872
|
] }],
|
|
918
|
-
"placeholder-color": [{ placeholder:
|
|
919
|
-
"text-color": [{ text:
|
|
873
|
+
"placeholder-color": [{ placeholder: N() }],
|
|
874
|
+
"text-color": [{ text: N() }],
|
|
920
875
|
"text-decoration": [
|
|
921
876
|
"underline",
|
|
922
877
|
"overline",
|
|
923
878
|
"line-through",
|
|
924
879
|
"no-underline"
|
|
925
880
|
],
|
|
926
|
-
"text-decoration-style": [{ decoration: [...
|
|
881
|
+
"text-decoration-style": [{ decoration: [...oe(), "wavy"] }],
|
|
927
882
|
"text-decoration-thickness": [{ decoration: [
|
|
928
|
-
|
|
883
|
+
U,
|
|
929
884
|
"from-font",
|
|
930
885
|
"auto",
|
|
931
|
-
|
|
932
|
-
|
|
886
|
+
J,
|
|
887
|
+
Se
|
|
933
888
|
] }],
|
|
934
|
-
"text-decoration-color": [{ decoration:
|
|
889
|
+
"text-decoration-color": [{ decoration: N() }],
|
|
935
890
|
"underline-offset": [{ "underline-offset": [
|
|
936
|
-
|
|
891
|
+
U,
|
|
937
892
|
"auto",
|
|
938
|
-
|
|
939
|
-
|
|
893
|
+
J,
|
|
894
|
+
q
|
|
940
895
|
] }],
|
|
941
896
|
"text-transform": [
|
|
942
897
|
"uppercase",
|
|
@@ -957,9 +912,9 @@ var m = (e, t) => {
|
|
|
957
912
|
] }],
|
|
958
913
|
indent: [{ indent: C() }],
|
|
959
914
|
"tab-size": [{ tab: [
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
915
|
+
W,
|
|
916
|
+
J,
|
|
917
|
+
q
|
|
963
918
|
] }],
|
|
964
919
|
"vertical-align": [{ align: [
|
|
965
920
|
"baseline",
|
|
@@ -970,8 +925,8 @@ var m = (e, t) => {
|
|
|
970
925
|
"text-bottom",
|
|
971
926
|
"sub",
|
|
972
927
|
"super",
|
|
973
|
-
|
|
974
|
-
|
|
928
|
+
J,
|
|
929
|
+
q
|
|
975
930
|
] }],
|
|
976
931
|
whitespace: [{ whitespace: [
|
|
977
932
|
"normal",
|
|
@@ -999,8 +954,8 @@ var m = (e, t) => {
|
|
|
999
954
|
] }],
|
|
1000
955
|
content: [{ content: [
|
|
1001
956
|
"none",
|
|
1002
|
-
|
|
1003
|
-
|
|
957
|
+
J,
|
|
958
|
+
q
|
|
1004
959
|
] }],
|
|
1005
960
|
"bg-attachment": [{ bg: [
|
|
1006
961
|
"fixed",
|
|
@@ -1018,9 +973,9 @@ var m = (e, t) => {
|
|
|
1018
973
|
"padding",
|
|
1019
974
|
"content"
|
|
1020
975
|
] }],
|
|
1021
|
-
"bg-position": [{ bg:
|
|
1022
|
-
"bg-repeat": [{ bg:
|
|
1023
|
-
"bg-size": [{ bg:
|
|
976
|
+
"bg-position": [{ bg: re() }],
|
|
977
|
+
"bg-repeat": [{ bg: ie() }],
|
|
978
|
+
"bg-size": [{ bg: ae() }],
|
|
1024
979
|
"bg-image": [{ bg: [
|
|
1025
980
|
"none",
|
|
1026
981
|
{
|
|
@@ -1035,142 +990,142 @@ var m = (e, t) => {
|
|
|
1035
990
|
"l",
|
|
1036
991
|
"tl"
|
|
1037
992
|
] },
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
993
|
+
W,
|
|
994
|
+
J,
|
|
995
|
+
q
|
|
1041
996
|
],
|
|
1042
997
|
radial: [
|
|
1043
998
|
"",
|
|
1044
|
-
|
|
1045
|
-
|
|
999
|
+
J,
|
|
1000
|
+
q
|
|
1046
1001
|
],
|
|
1047
1002
|
conic: [
|
|
1048
1003
|
"",
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1004
|
+
W,
|
|
1005
|
+
J,
|
|
1006
|
+
q
|
|
1052
1007
|
]
|
|
1053
1008
|
},
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
] }],
|
|
1057
|
-
"bg-color": [{ bg:
|
|
1058
|
-
"gradient-from-pos": [{ from:
|
|
1059
|
-
"gradient-via-pos": [{ via:
|
|
1060
|
-
"gradient-to-pos": [{ to:
|
|
1061
|
-
"gradient-from": [{ from:
|
|
1062
|
-
"gradient-via": [{ via:
|
|
1063
|
-
"gradient-to": [{ to:
|
|
1064
|
-
rounded: [{ rounded:
|
|
1065
|
-
"rounded-s": [{ "rounded-s":
|
|
1066
|
-
"rounded-e": [{ "rounded-e":
|
|
1067
|
-
"rounded-t": [{ "rounded-t":
|
|
1068
|
-
"rounded-r": [{ "rounded-r":
|
|
1069
|
-
"rounded-b": [{ "rounded-b":
|
|
1070
|
-
"rounded-l": [{ "rounded-l":
|
|
1071
|
-
"rounded-ss": [{ "rounded-ss":
|
|
1072
|
-
"rounded-se": [{ "rounded-se":
|
|
1073
|
-
"rounded-ee": [{ "rounded-ee":
|
|
1074
|
-
"rounded-es": [{ "rounded-es":
|
|
1075
|
-
"rounded-tl": [{ "rounded-tl":
|
|
1076
|
-
"rounded-tr": [{ "rounded-tr":
|
|
1077
|
-
"rounded-br": [{ "rounded-br":
|
|
1078
|
-
"rounded-bl": [{ "rounded-bl":
|
|
1079
|
-
"border-w": [{ border:
|
|
1080
|
-
"border-w-x": [{ "border-x":
|
|
1081
|
-
"border-w-y": [{ "border-y":
|
|
1082
|
-
"border-w-s": [{ "border-s":
|
|
1083
|
-
"border-w-e": [{ "border-e":
|
|
1084
|
-
"border-w-bs": [{ "border-bs":
|
|
1085
|
-
"border-w-be": [{ "border-be":
|
|
1086
|
-
"border-w-t": [{ "border-t":
|
|
1087
|
-
"border-w-r": [{ "border-r":
|
|
1088
|
-
"border-w-b": [{ "border-b":
|
|
1089
|
-
"border-w-l": [{ "border-l":
|
|
1090
|
-
"divide-x": [{ "divide-x":
|
|
1009
|
+
Ne,
|
|
1010
|
+
De
|
|
1011
|
+
] }],
|
|
1012
|
+
"bg-color": [{ bg: N() }],
|
|
1013
|
+
"gradient-from-pos": [{ from: P() }],
|
|
1014
|
+
"gradient-via-pos": [{ via: P() }],
|
|
1015
|
+
"gradient-to-pos": [{ to: P() }],
|
|
1016
|
+
"gradient-from": [{ from: N() }],
|
|
1017
|
+
"gradient-via": [{ via: N() }],
|
|
1018
|
+
"gradient-to": [{ to: N() }],
|
|
1019
|
+
rounded: [{ rounded: F() }],
|
|
1020
|
+
"rounded-s": [{ "rounded-s": F() }],
|
|
1021
|
+
"rounded-e": [{ "rounded-e": F() }],
|
|
1022
|
+
"rounded-t": [{ "rounded-t": F() }],
|
|
1023
|
+
"rounded-r": [{ "rounded-r": F() }],
|
|
1024
|
+
"rounded-b": [{ "rounded-b": F() }],
|
|
1025
|
+
"rounded-l": [{ "rounded-l": F() }],
|
|
1026
|
+
"rounded-ss": [{ "rounded-ss": F() }],
|
|
1027
|
+
"rounded-se": [{ "rounded-se": F() }],
|
|
1028
|
+
"rounded-ee": [{ "rounded-ee": F() }],
|
|
1029
|
+
"rounded-es": [{ "rounded-es": F() }],
|
|
1030
|
+
"rounded-tl": [{ "rounded-tl": F() }],
|
|
1031
|
+
"rounded-tr": [{ "rounded-tr": F() }],
|
|
1032
|
+
"rounded-br": [{ "rounded-br": F() }],
|
|
1033
|
+
"rounded-bl": [{ "rounded-bl": F() }],
|
|
1034
|
+
"border-w": [{ border: I() }],
|
|
1035
|
+
"border-w-x": [{ "border-x": I() }],
|
|
1036
|
+
"border-w-y": [{ "border-y": I() }],
|
|
1037
|
+
"border-w-s": [{ "border-s": I() }],
|
|
1038
|
+
"border-w-e": [{ "border-e": I() }],
|
|
1039
|
+
"border-w-bs": [{ "border-bs": I() }],
|
|
1040
|
+
"border-w-be": [{ "border-be": I() }],
|
|
1041
|
+
"border-w-t": [{ "border-t": I() }],
|
|
1042
|
+
"border-w-r": [{ "border-r": I() }],
|
|
1043
|
+
"border-w-b": [{ "border-b": I() }],
|
|
1044
|
+
"border-w-l": [{ "border-l": I() }],
|
|
1045
|
+
"divide-x": [{ "divide-x": I() }],
|
|
1091
1046
|
"divide-x-reverse": ["divide-x-reverse"],
|
|
1092
|
-
"divide-y": [{ "divide-y":
|
|
1047
|
+
"divide-y": [{ "divide-y": I() }],
|
|
1093
1048
|
"divide-y-reverse": ["divide-y-reverse"],
|
|
1094
1049
|
"border-style": [{ border: [
|
|
1095
|
-
...
|
|
1050
|
+
...oe(),
|
|
1096
1051
|
"hidden",
|
|
1097
1052
|
"none"
|
|
1098
1053
|
] }],
|
|
1099
1054
|
"divide-style": [{ divide: [
|
|
1100
|
-
...
|
|
1055
|
+
...oe(),
|
|
1101
1056
|
"hidden",
|
|
1102
1057
|
"none"
|
|
1103
1058
|
] }],
|
|
1104
|
-
"border-color": [{ border:
|
|
1105
|
-
"border-color-x": [{ "border-x":
|
|
1106
|
-
"border-color-y": [{ "border-y":
|
|
1107
|
-
"border-color-s": [{ "border-s":
|
|
1108
|
-
"border-color-e": [{ "border-e":
|
|
1109
|
-
"border-color-bs": [{ "border-bs":
|
|
1110
|
-
"border-color-be": [{ "border-be":
|
|
1111
|
-
"border-color-t": [{ "border-t":
|
|
1112
|
-
"border-color-r": [{ "border-r":
|
|
1113
|
-
"border-color-b": [{ "border-b":
|
|
1114
|
-
"border-color-l": [{ "border-l":
|
|
1115
|
-
"divide-color": [{ divide:
|
|
1059
|
+
"border-color": [{ border: N() }],
|
|
1060
|
+
"border-color-x": [{ "border-x": N() }],
|
|
1061
|
+
"border-color-y": [{ "border-y": N() }],
|
|
1062
|
+
"border-color-s": [{ "border-s": N() }],
|
|
1063
|
+
"border-color-e": [{ "border-e": N() }],
|
|
1064
|
+
"border-color-bs": [{ "border-bs": N() }],
|
|
1065
|
+
"border-color-be": [{ "border-be": N() }],
|
|
1066
|
+
"border-color-t": [{ "border-t": N() }],
|
|
1067
|
+
"border-color-r": [{ "border-r": N() }],
|
|
1068
|
+
"border-color-b": [{ "border-b": N() }],
|
|
1069
|
+
"border-color-l": [{ "border-l": N() }],
|
|
1070
|
+
"divide-color": [{ divide: N() }],
|
|
1116
1071
|
"outline-style": [{ outline: [
|
|
1117
|
-
...
|
|
1072
|
+
...oe(),
|
|
1118
1073
|
"none",
|
|
1119
1074
|
"hidden"
|
|
1120
1075
|
] }],
|
|
1121
1076
|
"outline-offset": [{ "outline-offset": [
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1077
|
+
U,
|
|
1078
|
+
J,
|
|
1079
|
+
q
|
|
1125
1080
|
] }],
|
|
1126
1081
|
"outline-w": [{ outline: [
|
|
1127
1082
|
"",
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1083
|
+
U,
|
|
1084
|
+
ke,
|
|
1085
|
+
Se
|
|
1131
1086
|
] }],
|
|
1132
|
-
"outline-color": [{ outline:
|
|
1087
|
+
"outline-color": [{ outline: N() }],
|
|
1133
1088
|
shadow: [{ shadow: [
|
|
1134
1089
|
"",
|
|
1135
1090
|
"inner",
|
|
1136
1091
|
"none",
|
|
1137
1092
|
u,
|
|
1138
|
-
|
|
1139
|
-
|
|
1093
|
+
Y,
|
|
1094
|
+
Oe
|
|
1140
1095
|
] }],
|
|
1141
|
-
"shadow-color": [{ shadow:
|
|
1096
|
+
"shadow-color": [{ shadow: N() }],
|
|
1142
1097
|
"inset-shadow": [{ "inset-shadow": [
|
|
1143
1098
|
"none",
|
|
1144
1099
|
d,
|
|
1145
|
-
|
|
1146
|
-
|
|
1100
|
+
Y,
|
|
1101
|
+
Oe
|
|
1147
1102
|
] }],
|
|
1148
|
-
"inset-shadow-color": [{ "inset-shadow":
|
|
1149
|
-
"ring-w": [{ ring:
|
|
1103
|
+
"inset-shadow-color": [{ "inset-shadow": N() }],
|
|
1104
|
+
"ring-w": [{ ring: I() }],
|
|
1150
1105
|
"ring-w-inset": ["ring-inset"],
|
|
1151
|
-
"ring-color": [{ ring:
|
|
1152
|
-
"ring-offset-w": [{ "ring-offset": [
|
|
1153
|
-
"ring-offset-color": [{ "ring-offset":
|
|
1154
|
-
"inset-ring-w": [{ "inset-ring":
|
|
1155
|
-
"inset-ring-color": [{ "inset-ring":
|
|
1106
|
+
"ring-color": [{ ring: N() }],
|
|
1107
|
+
"ring-offset-w": [{ "ring-offset": [U, Se] }],
|
|
1108
|
+
"ring-offset-color": [{ "ring-offset": N() }],
|
|
1109
|
+
"inset-ring-w": [{ "inset-ring": I() }],
|
|
1110
|
+
"inset-ring-color": [{ "inset-ring": N() }],
|
|
1156
1111
|
"text-shadow": [{ "text-shadow": [
|
|
1157
1112
|
"none",
|
|
1158
1113
|
f,
|
|
1159
|
-
|
|
1160
|
-
|
|
1114
|
+
Y,
|
|
1115
|
+
Oe
|
|
1161
1116
|
] }],
|
|
1162
|
-
"text-shadow-color": [{ "text-shadow":
|
|
1117
|
+
"text-shadow-color": [{ "text-shadow": N() }],
|
|
1163
1118
|
opacity: [{ opacity: [
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1119
|
+
U,
|
|
1120
|
+
J,
|
|
1121
|
+
q
|
|
1167
1122
|
] }],
|
|
1168
1123
|
"mix-blend": [{ "mix-blend": [
|
|
1169
|
-
...
|
|
1124
|
+
...se(),
|
|
1170
1125
|
"plus-darker",
|
|
1171
1126
|
"plus-lighter"
|
|
1172
1127
|
] }],
|
|
1173
|
-
"bg-blend": [{ "bg-blend":
|
|
1128
|
+
"bg-blend": [{ "bg-blend": se() }],
|
|
1174
1129
|
"mask-clip": [{ "mask-clip": [
|
|
1175
1130
|
"border",
|
|
1176
1131
|
"padding",
|
|
@@ -1185,51 +1140,51 @@ var m = (e, t) => {
|
|
|
1185
1140
|
"intersect",
|
|
1186
1141
|
"exclude"
|
|
1187
1142
|
] }],
|
|
1188
|
-
"mask-image-linear-pos": [{ "mask-linear": [
|
|
1189
|
-
"mask-image-linear-from-pos": [{ "mask-linear-from":
|
|
1190
|
-
"mask-image-linear-to-pos": [{ "mask-linear-to":
|
|
1191
|
-
"mask-image-linear-from-color": [{ "mask-linear-from":
|
|
1192
|
-
"mask-image-linear-to-color": [{ "mask-linear-to":
|
|
1193
|
-
"mask-image-t-from-pos": [{ "mask-t-from":
|
|
1194
|
-
"mask-image-t-to-pos": [{ "mask-t-to":
|
|
1195
|
-
"mask-image-t-from-color": [{ "mask-t-from":
|
|
1196
|
-
"mask-image-t-to-color": [{ "mask-t-to":
|
|
1197
|
-
"mask-image-r-from-pos": [{ "mask-r-from":
|
|
1198
|
-
"mask-image-r-to-pos": [{ "mask-r-to":
|
|
1199
|
-
"mask-image-r-from-color": [{ "mask-r-from":
|
|
1200
|
-
"mask-image-r-to-color": [{ "mask-r-to":
|
|
1201
|
-
"mask-image-b-from-pos": [{ "mask-b-from":
|
|
1202
|
-
"mask-image-b-to-pos": [{ "mask-b-to":
|
|
1203
|
-
"mask-image-b-from-color": [{ "mask-b-from":
|
|
1204
|
-
"mask-image-b-to-color": [{ "mask-b-to":
|
|
1205
|
-
"mask-image-l-from-pos": [{ "mask-l-from":
|
|
1206
|
-
"mask-image-l-to-pos": [{ "mask-l-to":
|
|
1207
|
-
"mask-image-l-from-color": [{ "mask-l-from":
|
|
1208
|
-
"mask-image-l-to-color": [{ "mask-l-to":
|
|
1209
|
-
"mask-image-x-from-pos": [{ "mask-x-from":
|
|
1210
|
-
"mask-image-x-to-pos": [{ "mask-x-to":
|
|
1211
|
-
"mask-image-x-from-color": [{ "mask-x-from":
|
|
1212
|
-
"mask-image-x-to-color": [{ "mask-x-to":
|
|
1213
|
-
"mask-image-y-from-pos": [{ "mask-y-from":
|
|
1214
|
-
"mask-image-y-to-pos": [{ "mask-y-to":
|
|
1215
|
-
"mask-image-y-from-color": [{ "mask-y-from":
|
|
1216
|
-
"mask-image-y-to-color": [{ "mask-y-to":
|
|
1217
|
-
"mask-image-radial": [{ "mask-radial": [
|
|
1218
|
-
"mask-image-radial-from-pos": [{ "mask-radial-from":
|
|
1219
|
-
"mask-image-radial-to-pos": [{ "mask-radial-to":
|
|
1220
|
-
"mask-image-radial-from-color": [{ "mask-radial-from":
|
|
1221
|
-
"mask-image-radial-to-color": [{ "mask-radial-to":
|
|
1143
|
+
"mask-image-linear-pos": [{ "mask-linear": [U] }],
|
|
1144
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": L() }],
|
|
1145
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": L() }],
|
|
1146
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": N() }],
|
|
1147
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": N() }],
|
|
1148
|
+
"mask-image-t-from-pos": [{ "mask-t-from": L() }],
|
|
1149
|
+
"mask-image-t-to-pos": [{ "mask-t-to": L() }],
|
|
1150
|
+
"mask-image-t-from-color": [{ "mask-t-from": N() }],
|
|
1151
|
+
"mask-image-t-to-color": [{ "mask-t-to": N() }],
|
|
1152
|
+
"mask-image-r-from-pos": [{ "mask-r-from": L() }],
|
|
1153
|
+
"mask-image-r-to-pos": [{ "mask-r-to": L() }],
|
|
1154
|
+
"mask-image-r-from-color": [{ "mask-r-from": N() }],
|
|
1155
|
+
"mask-image-r-to-color": [{ "mask-r-to": N() }],
|
|
1156
|
+
"mask-image-b-from-pos": [{ "mask-b-from": L() }],
|
|
1157
|
+
"mask-image-b-to-pos": [{ "mask-b-to": L() }],
|
|
1158
|
+
"mask-image-b-from-color": [{ "mask-b-from": N() }],
|
|
1159
|
+
"mask-image-b-to-color": [{ "mask-b-to": N() }],
|
|
1160
|
+
"mask-image-l-from-pos": [{ "mask-l-from": L() }],
|
|
1161
|
+
"mask-image-l-to-pos": [{ "mask-l-to": L() }],
|
|
1162
|
+
"mask-image-l-from-color": [{ "mask-l-from": N() }],
|
|
1163
|
+
"mask-image-l-to-color": [{ "mask-l-to": N() }],
|
|
1164
|
+
"mask-image-x-from-pos": [{ "mask-x-from": L() }],
|
|
1165
|
+
"mask-image-x-to-pos": [{ "mask-x-to": L() }],
|
|
1166
|
+
"mask-image-x-from-color": [{ "mask-x-from": N() }],
|
|
1167
|
+
"mask-image-x-to-color": [{ "mask-x-to": N() }],
|
|
1168
|
+
"mask-image-y-from-pos": [{ "mask-y-from": L() }],
|
|
1169
|
+
"mask-image-y-to-pos": [{ "mask-y-to": L() }],
|
|
1170
|
+
"mask-image-y-from-color": [{ "mask-y-from": N() }],
|
|
1171
|
+
"mask-image-y-to-color": [{ "mask-y-to": N() }],
|
|
1172
|
+
"mask-image-radial": [{ "mask-radial": [J, q] }],
|
|
1173
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": L() }],
|
|
1174
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": L() }],
|
|
1175
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": N() }],
|
|
1176
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": N() }],
|
|
1222
1177
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
1223
1178
|
"mask-image-radial-size": [{ "mask-radial": [{
|
|
1224
1179
|
closest: ["side", "corner"],
|
|
1225
1180
|
farthest: ["side", "corner"]
|
|
1226
1181
|
}] }],
|
|
1227
1182
|
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
1228
|
-
"mask-image-conic-pos": [{ "mask-conic": [
|
|
1229
|
-
"mask-image-conic-from-pos": [{ "mask-conic-from":
|
|
1230
|
-
"mask-image-conic-to-pos": [{ "mask-conic-to":
|
|
1231
|
-
"mask-image-conic-from-color": [{ "mask-conic-from":
|
|
1232
|
-
"mask-image-conic-to-color": [{ "mask-conic-to":
|
|
1183
|
+
"mask-image-conic-pos": [{ "mask-conic": [U] }],
|
|
1184
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": L() }],
|
|
1185
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": L() }],
|
|
1186
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": N() }],
|
|
1187
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": N() }],
|
|
1233
1188
|
"mask-mode": [{ mask: [
|
|
1234
1189
|
"alpha",
|
|
1235
1190
|
"luminance",
|
|
@@ -1243,117 +1198,117 @@ var m = (e, t) => {
|
|
|
1243
1198
|
"stroke",
|
|
1244
1199
|
"view"
|
|
1245
1200
|
] }],
|
|
1246
|
-
"mask-position": [{ mask:
|
|
1247
|
-
"mask-repeat": [{ mask:
|
|
1248
|
-
"mask-size": [{ mask:
|
|
1201
|
+
"mask-position": [{ mask: re() }],
|
|
1202
|
+
"mask-repeat": [{ mask: ie() }],
|
|
1203
|
+
"mask-size": [{ mask: ae() }],
|
|
1249
1204
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1250
1205
|
"mask-image": [{ mask: [
|
|
1251
1206
|
"none",
|
|
1252
|
-
|
|
1253
|
-
|
|
1207
|
+
J,
|
|
1208
|
+
q
|
|
1254
1209
|
] }],
|
|
1255
1210
|
filter: [{ filter: [
|
|
1256
1211
|
"",
|
|
1257
1212
|
"none",
|
|
1258
|
-
|
|
1259
|
-
|
|
1213
|
+
J,
|
|
1214
|
+
q
|
|
1260
1215
|
] }],
|
|
1261
|
-
blur: [{ blur:
|
|
1216
|
+
blur: [{ blur: ce() }],
|
|
1262
1217
|
brightness: [{ brightness: [
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1218
|
+
U,
|
|
1219
|
+
J,
|
|
1220
|
+
q
|
|
1266
1221
|
] }],
|
|
1267
1222
|
contrast: [{ contrast: [
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1223
|
+
U,
|
|
1224
|
+
J,
|
|
1225
|
+
q
|
|
1271
1226
|
] }],
|
|
1272
1227
|
"drop-shadow": [{ "drop-shadow": [
|
|
1273
1228
|
"",
|
|
1274
1229
|
"none",
|
|
1275
1230
|
p,
|
|
1276
|
-
|
|
1277
|
-
|
|
1231
|
+
Y,
|
|
1232
|
+
Oe
|
|
1278
1233
|
] }],
|
|
1279
|
-
"drop-shadow-color": [{ "drop-shadow":
|
|
1234
|
+
"drop-shadow-color": [{ "drop-shadow": N() }],
|
|
1280
1235
|
grayscale: [{ grayscale: [
|
|
1281
1236
|
"",
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1237
|
+
U,
|
|
1238
|
+
J,
|
|
1239
|
+
q
|
|
1285
1240
|
] }],
|
|
1286
1241
|
"hue-rotate": [{ "hue-rotate": [
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1242
|
+
U,
|
|
1243
|
+
J,
|
|
1244
|
+
q
|
|
1290
1245
|
] }],
|
|
1291
1246
|
invert: [{ invert: [
|
|
1292
1247
|
"",
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1248
|
+
U,
|
|
1249
|
+
J,
|
|
1250
|
+
q
|
|
1296
1251
|
] }],
|
|
1297
1252
|
saturate: [{ saturate: [
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1253
|
+
U,
|
|
1254
|
+
J,
|
|
1255
|
+
q
|
|
1301
1256
|
] }],
|
|
1302
1257
|
sepia: [{ sepia: [
|
|
1303
1258
|
"",
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1259
|
+
U,
|
|
1260
|
+
J,
|
|
1261
|
+
q
|
|
1307
1262
|
] }],
|
|
1308
1263
|
"backdrop-filter": [{ "backdrop-filter": [
|
|
1309
1264
|
"",
|
|
1310
1265
|
"none",
|
|
1311
|
-
|
|
1312
|
-
|
|
1266
|
+
J,
|
|
1267
|
+
q
|
|
1313
1268
|
] }],
|
|
1314
|
-
"backdrop-blur": [{ "backdrop-blur":
|
|
1269
|
+
"backdrop-blur": [{ "backdrop-blur": ce() }],
|
|
1315
1270
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1271
|
+
U,
|
|
1272
|
+
J,
|
|
1273
|
+
q
|
|
1319
1274
|
] }],
|
|
1320
1275
|
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1276
|
+
U,
|
|
1277
|
+
J,
|
|
1278
|
+
q
|
|
1324
1279
|
] }],
|
|
1325
1280
|
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
1326
1281
|
"",
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1282
|
+
U,
|
|
1283
|
+
J,
|
|
1284
|
+
q
|
|
1330
1285
|
] }],
|
|
1331
1286
|
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1287
|
+
U,
|
|
1288
|
+
J,
|
|
1289
|
+
q
|
|
1335
1290
|
] }],
|
|
1336
1291
|
"backdrop-invert": [{ "backdrop-invert": [
|
|
1337
1292
|
"",
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1293
|
+
U,
|
|
1294
|
+
J,
|
|
1295
|
+
q
|
|
1341
1296
|
] }],
|
|
1342
1297
|
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1298
|
+
U,
|
|
1299
|
+
J,
|
|
1300
|
+
q
|
|
1346
1301
|
] }],
|
|
1347
1302
|
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1303
|
+
U,
|
|
1304
|
+
J,
|
|
1305
|
+
q
|
|
1351
1306
|
] }],
|
|
1352
1307
|
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
1353
1308
|
"",
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1309
|
+
U,
|
|
1310
|
+
J,
|
|
1311
|
+
q
|
|
1357
1312
|
] }],
|
|
1358
1313
|
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
1359
1314
|
"border-spacing": [{ "border-spacing": C() }],
|
|
@@ -1369,56 +1324,56 @@ var m = (e, t) => {
|
|
|
1369
1324
|
"shadow",
|
|
1370
1325
|
"transform",
|
|
1371
1326
|
"none",
|
|
1372
|
-
|
|
1373
|
-
|
|
1327
|
+
J,
|
|
1328
|
+
q
|
|
1374
1329
|
] }],
|
|
1375
1330
|
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
1376
1331
|
duration: [{ duration: [
|
|
1377
|
-
|
|
1332
|
+
U,
|
|
1378
1333
|
"initial",
|
|
1379
|
-
|
|
1380
|
-
|
|
1334
|
+
J,
|
|
1335
|
+
q
|
|
1381
1336
|
] }],
|
|
1382
1337
|
ease: [{ ease: [
|
|
1383
1338
|
"linear",
|
|
1384
1339
|
"initial",
|
|
1385
1340
|
_,
|
|
1386
|
-
|
|
1387
|
-
|
|
1341
|
+
J,
|
|
1342
|
+
q
|
|
1388
1343
|
] }],
|
|
1389
1344
|
delay: [{ delay: [
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1345
|
+
U,
|
|
1346
|
+
J,
|
|
1347
|
+
q
|
|
1393
1348
|
] }],
|
|
1394
1349
|
animate: [{ animate: [
|
|
1395
1350
|
"none",
|
|
1396
1351
|
v,
|
|
1397
|
-
|
|
1398
|
-
|
|
1352
|
+
J,
|
|
1353
|
+
q
|
|
1399
1354
|
] }],
|
|
1400
1355
|
backface: [{ backface: ["hidden", "visible"] }],
|
|
1401
1356
|
perspective: [{ perspective: [
|
|
1402
1357
|
h,
|
|
1403
|
-
|
|
1404
|
-
|
|
1358
|
+
J,
|
|
1359
|
+
q
|
|
1405
1360
|
] }],
|
|
1406
1361
|
"perspective-origin": [{ "perspective-origin": x() }],
|
|
1407
|
-
rotate: [{ rotate:
|
|
1408
|
-
"rotate-x": [{ "rotate-x":
|
|
1409
|
-
"rotate-y": [{ "rotate-y":
|
|
1410
|
-
"rotate-z": [{ "rotate-z":
|
|
1411
|
-
scale: [{ scale:
|
|
1412
|
-
"scale-x": [{ "scale-x":
|
|
1413
|
-
"scale-y": [{ "scale-y":
|
|
1414
|
-
"scale-z": [{ "scale-z":
|
|
1362
|
+
rotate: [{ rotate: z() }],
|
|
1363
|
+
"rotate-x": [{ "rotate-x": z() }],
|
|
1364
|
+
"rotate-y": [{ "rotate-y": z() }],
|
|
1365
|
+
"rotate-z": [{ "rotate-z": z() }],
|
|
1366
|
+
scale: [{ scale: B() }],
|
|
1367
|
+
"scale-x": [{ "scale-x": B() }],
|
|
1368
|
+
"scale-y": [{ "scale-y": B() }],
|
|
1369
|
+
"scale-z": [{ "scale-z": B() }],
|
|
1415
1370
|
"scale-3d": ["scale-3d"],
|
|
1416
|
-
skew: [{ skew:
|
|
1417
|
-
"skew-x": [{ "skew-x":
|
|
1418
|
-
"skew-y": [{ "skew-y":
|
|
1371
|
+
skew: [{ skew: V() }],
|
|
1372
|
+
"skew-x": [{ "skew-x": V() }],
|
|
1373
|
+
"skew-y": [{ "skew-y": V() }],
|
|
1419
1374
|
transform: [{ transform: [
|
|
1420
|
-
Z,
|
|
1421
1375
|
J,
|
|
1376
|
+
q,
|
|
1422
1377
|
"",
|
|
1423
1378
|
"none",
|
|
1424
1379
|
"gpu",
|
|
@@ -1426,19 +1381,19 @@ var m = (e, t) => {
|
|
|
1426
1381
|
] }],
|
|
1427
1382
|
"transform-origin": [{ origin: x() }],
|
|
1428
1383
|
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
1429
|
-
translate: [{ translate:
|
|
1430
|
-
"translate-x": [{ "translate-x":
|
|
1431
|
-
"translate-y": [{ "translate-y":
|
|
1432
|
-
"translate-z": [{ "translate-z":
|
|
1384
|
+
translate: [{ translate: le() }],
|
|
1385
|
+
"translate-x": [{ "translate-x": le() }],
|
|
1386
|
+
"translate-y": [{ "translate-y": le() }],
|
|
1387
|
+
"translate-z": [{ "translate-z": le() }],
|
|
1433
1388
|
"translate-none": ["translate-none"],
|
|
1434
1389
|
zoom: [{ zoom: [
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1390
|
+
W,
|
|
1391
|
+
J,
|
|
1392
|
+
q
|
|
1438
1393
|
] }],
|
|
1439
|
-
accent: [{ accent:
|
|
1394
|
+
accent: [{ accent: N() }],
|
|
1440
1395
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
1441
|
-
"caret-color": [{ caret:
|
|
1396
|
+
"caret-color": [{ caret: N() }],
|
|
1442
1397
|
"color-scheme": [{ scheme: [
|
|
1443
1398
|
"normal",
|
|
1444
1399
|
"dark",
|
|
@@ -1484,8 +1439,8 @@ var m = (e, t) => {
|
|
|
1484
1439
|
"nwse-resize",
|
|
1485
1440
|
"zoom-in",
|
|
1486
1441
|
"zoom-out",
|
|
1487
|
-
|
|
1488
|
-
|
|
1442
|
+
J,
|
|
1443
|
+
q
|
|
1489
1444
|
] }],
|
|
1490
1445
|
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
|
|
1491
1446
|
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
|
|
@@ -1496,8 +1451,8 @@ var m = (e, t) => {
|
|
|
1496
1451
|
"x"
|
|
1497
1452
|
] }],
|
|
1498
1453
|
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
1499
|
-
"scrollbar-thumb-color": [{ "scrollbar-thumb":
|
|
1500
|
-
"scrollbar-track-color": [{ "scrollbar-track":
|
|
1454
|
+
"scrollbar-thumb-color": [{ "scrollbar-thumb": N() }],
|
|
1455
|
+
"scrollbar-track-color": [{ "scrollbar-track": N() }],
|
|
1501
1456
|
"scrollbar-gutter": [{ "scrollbar-gutter": [
|
|
1502
1457
|
"auto",
|
|
1503
1458
|
"stable",
|
|
@@ -1571,17 +1526,17 @@ var m = (e, t) => {
|
|
|
1571
1526
|
"scroll",
|
|
1572
1527
|
"contents",
|
|
1573
1528
|
"transform",
|
|
1574
|
-
|
|
1575
|
-
|
|
1529
|
+
J,
|
|
1530
|
+
q
|
|
1576
1531
|
] }],
|
|
1577
|
-
fill: [{ fill: ["none", ...
|
|
1532
|
+
fill: [{ fill: ["none", ...N()] }],
|
|
1578
1533
|
"stroke-w": [{ stroke: [
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1534
|
+
U,
|
|
1535
|
+
ke,
|
|
1536
|
+
Se,
|
|
1537
|
+
Ce
|
|
1583
1538
|
] }],
|
|
1584
|
-
stroke: [{ stroke: ["none", ...
|
|
1539
|
+
stroke: [{ stroke: ["none", ...N()] }],
|
|
1585
1540
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
1586
1541
|
},
|
|
1587
1542
|
conflictingClassGroups: {
|
|
@@ -1838,44 +1793,123 @@ var m = (e, t) => {
|
|
|
1838
1793
|
]
|
|
1839
1794
|
};
|
|
1840
1795
|
});
|
|
1841
|
-
|
|
1842
|
-
//#region src/lib/utils/cn.ts
|
|
1796
|
+
// src/lib/utils/cn.ts
|
|
1843
1797
|
function $(...e) {
|
|
1844
|
-
return
|
|
1798
|
+
return Q(...e.filter(Boolean));
|
|
1799
|
+
}
|
|
1800
|
+
// src/lib/Checkbox.tsx
|
|
1801
|
+
function Ue({ checked: e, indeterminate: t = !1, disabled: n, className: r }) {
|
|
1802
|
+
return /* @__PURE__ */ s("span", {
|
|
1803
|
+
"aria-hidden": !0,
|
|
1804
|
+
className: $("inline-flex size-4.5 shrink-0 items-center justify-center rounded-[5px] border transition-colors", e || t ? "border-zinc-900 bg-zinc-900 text-white" : "border-zinc-300 bg-white text-transparent", n && "opacity-40", r),
|
|
1805
|
+
children: t && !e ? /* @__PURE__ */ s("span", { className: "h-0.5 w-2 rounded-full bg-current" }) : /* @__PURE__ */ s(p, { className: $("transition-opacity", e ? "opacity-100" : "opacity-0") })
|
|
1806
|
+
});
|
|
1807
|
+
}
|
|
1808
|
+
function We({ checked: t, indeterminate: n = !1, disabled: r, onChange: a, label: o, className: l }) {
|
|
1809
|
+
let u = i(null);
|
|
1810
|
+
return e(() => {
|
|
1811
|
+
u.current && (u.current.indeterminate = n && !t);
|
|
1812
|
+
}, [n, t]), /* @__PURE__ */ c("label", {
|
|
1813
|
+
className: $("relative inline-flex shrink-0 cursor-pointer items-center", r && "cursor-not-allowed", l),
|
|
1814
|
+
onClick: (e) => e.stopPropagation(),
|
|
1815
|
+
children: [/* @__PURE__ */ s("input", {
|
|
1816
|
+
ref: u,
|
|
1817
|
+
type: "checkbox",
|
|
1818
|
+
className: "peer sr-only",
|
|
1819
|
+
"aria-label": o,
|
|
1820
|
+
checked: t,
|
|
1821
|
+
disabled: r,
|
|
1822
|
+
onChange: (e) => a(e.target.checked)
|
|
1823
|
+
}), /* @__PURE__ */ s("span", {
|
|
1824
|
+
className: "rounded-[5px] peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-zinc-500",
|
|
1825
|
+
children: /* @__PURE__ */ s(Ue, {
|
|
1826
|
+
checked: t,
|
|
1827
|
+
indeterminate: n,
|
|
1828
|
+
disabled: r
|
|
1829
|
+
})
|
|
1830
|
+
})]
|
|
1831
|
+
});
|
|
1845
1832
|
}
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1833
|
+
// src/lib/icons/ColumnsIcon.tsx
|
|
1834
|
+
function Ge({ className: e }) {
|
|
1835
|
+
return /* @__PURE__ */ c("svg", {
|
|
1836
|
+
className: e,
|
|
1837
|
+
width: "16",
|
|
1838
|
+
height: "16",
|
|
1839
|
+
viewBox: "0 0 24 24",
|
|
1840
|
+
fill: "none",
|
|
1841
|
+
stroke: "currentColor",
|
|
1842
|
+
strokeWidth: "2",
|
|
1843
|
+
strokeLinecap: "round",
|
|
1844
|
+
strokeLinejoin: "round",
|
|
1850
1845
|
"aria-hidden": !0,
|
|
1851
|
-
|
|
1852
|
-
|
|
1846
|
+
children: [/* @__PURE__ */ s("rect", {
|
|
1847
|
+
x: "3",
|
|
1848
|
+
y: "4",
|
|
1849
|
+
width: "7",
|
|
1850
|
+
height: "16",
|
|
1851
|
+
rx: "1.5"
|
|
1852
|
+
}), /* @__PURE__ */ s("rect", {
|
|
1853
|
+
x: "14",
|
|
1854
|
+
y: "4",
|
|
1855
|
+
width: "7",
|
|
1856
|
+
height: "16",
|
|
1857
|
+
rx: "1.5"
|
|
1858
|
+
})]
|
|
1859
|
+
});
|
|
1860
|
+
}
|
|
1861
|
+
// src/lib/ColumnToggle.tsx
|
|
1862
|
+
var Ke = {
|
|
1863
|
+
visibility: "Visibility",
|
|
1864
|
+
sticky: "Pinning",
|
|
1865
|
+
features: "Features"
|
|
1866
|
+
};
|
|
1867
|
+
function qe({ checked: e, labelledBy: t, describedBy: n, onChange: r }) {
|
|
1868
|
+
return /* @__PURE__ */ s("button", {
|
|
1869
|
+
type: "button",
|
|
1870
|
+
role: "switch",
|
|
1871
|
+
"aria-checked": e,
|
|
1872
|
+
"aria-labelledby": t,
|
|
1873
|
+
"aria-describedby": n,
|
|
1874
|
+
onClick: () => r(!e),
|
|
1875
|
+
className: $("relative inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full transition-colors", "focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-zinc-500", e ? "bg-zinc-900" : "bg-zinc-200"),
|
|
1876
|
+
children: /* @__PURE__ */ s("span", {
|
|
1877
|
+
"aria-hidden": !0,
|
|
1878
|
+
className: $("inline-block size-4 rounded-full bg-white shadow-sm transition-transform", e ? "translate-x-4.5" : "translate-x-0.5")
|
|
1879
|
+
})
|
|
1853
1880
|
});
|
|
1854
1881
|
}
|
|
1855
|
-
function
|
|
1856
|
-
let
|
|
1882
|
+
function Je({ columns: n, visibleKeys: r, stickyColumns: o, onStickyChange: f, onChange: p, features: m = [], onFeatureChange: h, className: g, label: _ = "Columns" }) {
|
|
1883
|
+
let v = m.length ? [
|
|
1884
|
+
"visibility",
|
|
1885
|
+
"sticky",
|
|
1886
|
+
"features"
|
|
1887
|
+
] : ["visibility", "sticky"], [y, b] = a("visibility"), [x, ee] = a(1), S = d(), C = i(null), [w, T] = a(!1), E = i(null), D = t(), O = v.includes(y) ? y : "visibility";
|
|
1888
|
+
function k(e) {
|
|
1889
|
+
ee(v.indexOf(e) >= v.indexOf(O) ? 1 : -1), b(e);
|
|
1890
|
+
}
|
|
1857
1891
|
return e(() => {
|
|
1858
1892
|
function e(e) {
|
|
1859
|
-
|
|
1893
|
+
E.current?.contains(e.target) || T(!1);
|
|
1860
1894
|
}
|
|
1861
1895
|
return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
|
|
1862
|
-
}, []), /* @__PURE__ */
|
|
1863
|
-
ref:
|
|
1864
|
-
className: $("relative inline-flex",
|
|
1896
|
+
}, []), /* @__PURE__ */ c("div", {
|
|
1897
|
+
ref: E,
|
|
1898
|
+
className: $("relative inline-flex", g),
|
|
1865
1899
|
onKeyDown: (e) => {
|
|
1866
|
-
e.key === "Escape" && (
|
|
1900
|
+
e.key === "Escape" && (T(!1), C.current?.focus());
|
|
1867
1901
|
},
|
|
1868
|
-
children: [/* @__PURE__ */
|
|
1869
|
-
ref:
|
|
1902
|
+
children: [/* @__PURE__ */ c("button", {
|
|
1903
|
+
ref: C,
|
|
1870
1904
|
type: "button",
|
|
1871
1905
|
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"),
|
|
1872
1906
|
"aria-haspopup": "dialog",
|
|
1873
|
-
"aria-expanded":
|
|
1874
|
-
"aria-controls":
|
|
1875
|
-
onClick: () =>
|
|
1876
|
-
children: [/* @__PURE__ */
|
|
1877
|
-
}), /* @__PURE__ */
|
|
1878
|
-
id:
|
|
1907
|
+
"aria-expanded": w,
|
|
1908
|
+
"aria-controls": D,
|
|
1909
|
+
onClick: () => T((e) => !e),
|
|
1910
|
+
children: [/* @__PURE__ */ s(Ge, { className: "text-zinc-600" }), _]
|
|
1911
|
+
}), /* @__PURE__ */ s(l, { children: w ? /* @__PURE__ */ c(u.div, {
|
|
1912
|
+
id: D,
|
|
1879
1913
|
role: "dialog",
|
|
1880
1914
|
"aria-label": "Column settings",
|
|
1881
1915
|
initial: {
|
|
@@ -1903,18 +1937,18 @@ function We({ columns: n, visibleKeys: r, stickyColumns: l, onStickyChange: f, o
|
|
|
1903
1937
|
]
|
|
1904
1938
|
},
|
|
1905
1939
|
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__ */
|
|
1940
|
+
children: [/* @__PURE__ */ s("div", {
|
|
1907
1941
|
role: "tablist",
|
|
1908
1942
|
"aria-label": "Column settings",
|
|
1909
1943
|
className: "mb-1 flex gap-1 border-b border-zinc-100 pb-1",
|
|
1910
|
-
children:
|
|
1944
|
+
children: v.map((e) => /* @__PURE__ */ c("button", {
|
|
1911
1945
|
type: "button",
|
|
1912
1946
|
role: "tab",
|
|
1913
|
-
id: `${
|
|
1914
|
-
"aria-selected":
|
|
1915
|
-
"aria-controls": `${
|
|
1916
|
-
tabIndex:
|
|
1917
|
-
onClick: () =>
|
|
1947
|
+
id: `${D}-${e}-tab`,
|
|
1948
|
+
"aria-selected": O === e,
|
|
1949
|
+
"aria-controls": `${D}-${e}-panel`,
|
|
1950
|
+
tabIndex: O === e ? 0 : -1,
|
|
1951
|
+
onClick: () => k(e),
|
|
1918
1952
|
onKeyDown: (t) => {
|
|
1919
1953
|
if ([
|
|
1920
1954
|
"ArrowLeft",
|
|
@@ -1923,30 +1957,30 @@ function We({ columns: n, visibleKeys: r, stickyColumns: l, onStickyChange: f, o
|
|
|
1923
1957
|
"End"
|
|
1924
1958
|
].includes(t.key)) {
|
|
1925
1959
|
t.preventDefault();
|
|
1926
|
-
let n = t.key === "Home" ?
|
|
1927
|
-
|
|
1960
|
+
let n = v.indexOf(e), r = t.key === "Home" ? v[0] : t.key === "End" ? v[v.length - 1] : t.key === "ArrowRight" ? v[(n + 1) % v.length] : v[(n - 1 + v.length) % v.length];
|
|
1961
|
+
k(r), document.getElementById(`${D}-${r}-tab`)?.focus();
|
|
1928
1962
|
}
|
|
1929
1963
|
},
|
|
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",
|
|
1931
|
-
children: [
|
|
1932
|
-
layoutId: `${
|
|
1964
|
+
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", O === e ? "text-zinc-900" : "text-zinc-500 hover:bg-zinc-50"),
|
|
1965
|
+
children: [O === e && /* @__PURE__ */ s(u.span, {
|
|
1966
|
+
layoutId: `${D}-active-tab`,
|
|
1933
1967
|
className: "absolute inset-0 -z-10 rounded bg-zinc-100",
|
|
1934
|
-
transition:
|
|
1968
|
+
transition: S ? { duration: 0 } : {
|
|
1935
1969
|
type: "spring",
|
|
1936
1970
|
stiffness: 420,
|
|
1937
1971
|
damping: 34
|
|
1938
1972
|
}
|
|
1939
|
-
}), e
|
|
1973
|
+
}), Ke[e]]
|
|
1940
1974
|
}, e))
|
|
1941
|
-
}), /* @__PURE__ */
|
|
1975
|
+
}), /* @__PURE__ */ s("div", {
|
|
1942
1976
|
className: "overflow-hidden",
|
|
1943
|
-
children: /* @__PURE__ */
|
|
1977
|
+
children: /* @__PURE__ */ s(l, {
|
|
1944
1978
|
mode: "wait",
|
|
1945
1979
|
initial: !1,
|
|
1946
|
-
children: /* @__PURE__ */ u
|
|
1980
|
+
children: /* @__PURE__ */ s(u.div, {
|
|
1947
1981
|
initial: {
|
|
1948
1982
|
opacity: 0,
|
|
1949
|
-
x:
|
|
1983
|
+
x: S ? 0 : x * 10
|
|
1950
1984
|
},
|
|
1951
1985
|
animate: {
|
|
1952
1986
|
opacity: 1,
|
|
@@ -1957,32 +1991,51 @@ function We({ columns: n, visibleKeys: r, stickyColumns: l, onStickyChange: f, o
|
|
|
1957
1991
|
x: 0
|
|
1958
1992
|
},
|
|
1959
1993
|
transition: {
|
|
1960
|
-
duration:
|
|
1994
|
+
duration: S ? 0 : .14,
|
|
1961
1995
|
ease: "easeOut"
|
|
1962
1996
|
},
|
|
1963
1997
|
role: "tabpanel",
|
|
1964
|
-
id: `${
|
|
1965
|
-
"aria-labelledby": `${
|
|
1998
|
+
id: `${D}-${O}-panel`,
|
|
1999
|
+
"aria-labelledby": `${D}-${O}-tab`,
|
|
1966
2000
|
className: "max-h-64 overflow-auto",
|
|
1967
|
-
children:
|
|
2001
|
+
children: O === "features" ? m.map((e) => /* @__PURE__ */ c("div", {
|
|
2002
|
+
className: "flex items-center gap-3 rounded-md px-2.5 py-2 hover:bg-zinc-50",
|
|
2003
|
+
children: [/* @__PURE__ */ c("div", {
|
|
2004
|
+
className: "min-w-0 flex-1",
|
|
2005
|
+
children: [/* @__PURE__ */ s("div", {
|
|
2006
|
+
id: `${D}-${e.key}-label`,
|
|
2007
|
+
className: "text-sm text-zinc-800",
|
|
2008
|
+
children: e.label
|
|
2009
|
+
}), e.description ? /* @__PURE__ */ s("div", {
|
|
2010
|
+
id: `${D}-${e.key}-desc`,
|
|
2011
|
+
className: "text-xs text-zinc-500",
|
|
2012
|
+
children: e.description
|
|
2013
|
+
}) : null]
|
|
2014
|
+
}), /* @__PURE__ */ s(qe, {
|
|
2015
|
+
checked: e.enabled,
|
|
2016
|
+
labelledBy: `${D}-${e.key}-label`,
|
|
2017
|
+
describedBy: e.description ? `${D}-${e.key}-desc` : void 0,
|
|
2018
|
+
onChange: (t) => h?.(e.key, t)
|
|
2019
|
+
})]
|
|
2020
|
+
}, e.key)) : O === "sticky" ? o.map((e) => /* @__PURE__ */ c("div", {
|
|
1968
2021
|
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__ */
|
|
1970
|
-
id: `${
|
|
2022
|
+
children: [/* @__PURE__ */ s("span", {
|
|
2023
|
+
id: `${D}-${e.key}-label`,
|
|
1971
2024
|
className: "min-w-0 flex-1 truncate",
|
|
1972
2025
|
children: e.label
|
|
1973
|
-
}), /* @__PURE__ */
|
|
2026
|
+
}), /* @__PURE__ */ s("div", {
|
|
1974
2027
|
role: "radiogroup",
|
|
1975
|
-
"aria-labelledby": `${
|
|
2028
|
+
"aria-labelledby": `${D}-${e.key}-label`,
|
|
1976
2029
|
className: "flex shrink-0 items-center gap-2",
|
|
1977
2030
|
children: [
|
|
1978
2031
|
"none",
|
|
1979
2032
|
"left",
|
|
1980
2033
|
"right"
|
|
1981
|
-
].map((t) => /* @__PURE__ */
|
|
2034
|
+
].map((t) => /* @__PURE__ */ c("label", {
|
|
1982
2035
|
className: "flex cursor-pointer items-center gap-1 rounded py-1 text-xs",
|
|
1983
|
-
children: [/* @__PURE__ */
|
|
2036
|
+
children: [/* @__PURE__ */ s("input", {
|
|
1984
2037
|
type: "radio",
|
|
1985
|
-
name: `${
|
|
2038
|
+
name: `${D}-${e.key}-sticky`,
|
|
1986
2039
|
value: t,
|
|
1987
2040
|
checked: (e.sticky ?? "none") === t,
|
|
1988
2041
|
onChange: () => f(e.key, t === "none" ? null : t),
|
|
@@ -1992,10 +2045,10 @@ function We({ columns: n, visibleKeys: r, stickyColumns: l, onStickyChange: f, o
|
|
|
1992
2045
|
})]
|
|
1993
2046
|
}, e.key)) : n.map((e) => {
|
|
1994
2047
|
let t = r.has(e.key), n = t && r.size <= 1;
|
|
1995
|
-
return /* @__PURE__ */
|
|
2048
|
+
return /* @__PURE__ */ c("label", {
|
|
1996
2049
|
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
2050
|
children: [
|
|
1998
|
-
/* @__PURE__ */
|
|
2051
|
+
/* @__PURE__ */ s("input", {
|
|
1999
2052
|
type: "checkbox",
|
|
2000
2053
|
className: "peer sr-only",
|
|
2001
2054
|
checked: t,
|
|
@@ -2006,33 +2059,32 @@ function We({ columns: n, visibleKeys: r, stickyColumns: l, onStickyChange: f, o
|
|
|
2006
2059
|
if (n.size <= 1) return;
|
|
2007
2060
|
n.delete(e.key);
|
|
2008
2061
|
} else n.add(e.key);
|
|
2009
|
-
|
|
2062
|
+
p(n);
|
|
2010
2063
|
}
|
|
2011
2064
|
}),
|
|
2012
|
-
/* @__PURE__ */
|
|
2065
|
+
/* @__PURE__ */ s("span", {
|
|
2013
2066
|
className: "rounded peer-focus-visible:outline-2 peer-focus-visible:outline-zinc-500",
|
|
2014
|
-
children: /* @__PURE__ */
|
|
2067
|
+
children: /* @__PURE__ */ s(Ue, {
|
|
2015
2068
|
checked: t,
|
|
2016
2069
|
disabled: n
|
|
2017
2070
|
})
|
|
2018
2071
|
}),
|
|
2019
|
-
/* @__PURE__ */
|
|
2072
|
+
/* @__PURE__ */ s("span", {
|
|
2020
2073
|
className: "min-w-0 flex-1 truncate",
|
|
2021
2074
|
children: e.label
|
|
2022
2075
|
})
|
|
2023
2076
|
]
|
|
2024
2077
|
}, e.key);
|
|
2025
2078
|
})
|
|
2026
|
-
},
|
|
2079
|
+
}, O)
|
|
2027
2080
|
})
|
|
2028
2081
|
})]
|
|
2029
2082
|
}) : null })]
|
|
2030
2083
|
});
|
|
2031
2084
|
}
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
return /* @__PURE__ */ d("svg", {
|
|
2085
|
+
// src/lib/icons/DragHandleIcon.tsx
|
|
2086
|
+
function Ye({ className: e }) {
|
|
2087
|
+
return /* @__PURE__ */ c("svg", {
|
|
2036
2088
|
className: e,
|
|
2037
2089
|
width: "14",
|
|
2038
2090
|
height: "14",
|
|
@@ -2040,32 +2092,32 @@ function Ge({ className: e }) {
|
|
|
2040
2092
|
fill: "currentColor",
|
|
2041
2093
|
"aria-hidden": !0,
|
|
2042
2094
|
children: [
|
|
2043
|
-
/* @__PURE__ */
|
|
2095
|
+
/* @__PURE__ */ s("circle", {
|
|
2044
2096
|
cx: "5",
|
|
2045
2097
|
cy: "3.5",
|
|
2046
2098
|
r: "1.25"
|
|
2047
2099
|
}),
|
|
2048
|
-
/* @__PURE__ */
|
|
2100
|
+
/* @__PURE__ */ s("circle", {
|
|
2049
2101
|
cx: "11",
|
|
2050
2102
|
cy: "3.5",
|
|
2051
2103
|
r: "1.25"
|
|
2052
2104
|
}),
|
|
2053
|
-
/* @__PURE__ */
|
|
2105
|
+
/* @__PURE__ */ s("circle", {
|
|
2054
2106
|
cx: "5",
|
|
2055
2107
|
cy: "8",
|
|
2056
2108
|
r: "1.25"
|
|
2057
2109
|
}),
|
|
2058
|
-
/* @__PURE__ */
|
|
2110
|
+
/* @__PURE__ */ s("circle", {
|
|
2059
2111
|
cx: "11",
|
|
2060
2112
|
cy: "8",
|
|
2061
2113
|
r: "1.25"
|
|
2062
2114
|
}),
|
|
2063
|
-
/* @__PURE__ */
|
|
2115
|
+
/* @__PURE__ */ s("circle", {
|
|
2064
2116
|
cx: "5",
|
|
2065
2117
|
cy: "12.5",
|
|
2066
2118
|
r: "1.25"
|
|
2067
2119
|
}),
|
|
2068
|
-
/* @__PURE__ */
|
|
2120
|
+
/* @__PURE__ */ s("circle", {
|
|
2069
2121
|
cx: "11",
|
|
2070
2122
|
cy: "12.5",
|
|
2071
2123
|
r: "1.25"
|
|
@@ -2073,10 +2125,9 @@ function Ge({ className: e }) {
|
|
|
2073
2125
|
]
|
|
2074
2126
|
});
|
|
2075
2127
|
}
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
return /* @__PURE__ */ d("svg", {
|
|
2128
|
+
// src/lib/icons/SortIcon.tsx
|
|
2129
|
+
function Xe({ direction: e, className: t }) {
|
|
2130
|
+
return /* @__PURE__ */ c("svg", {
|
|
2080
2131
|
className: $("size-3.5 shrink-0 select-none ml-4", t),
|
|
2081
2132
|
viewBox: "0 0 14 14",
|
|
2082
2133
|
fill: "none",
|
|
@@ -2084,21 +2135,20 @@ function Ke({ direction: e, className: t }) {
|
|
|
2084
2135
|
strokeLinecap: "round",
|
|
2085
2136
|
strokeLinejoin: "round",
|
|
2086
2137
|
"aria-hidden": !0,
|
|
2087
|
-
children: [/* @__PURE__ */
|
|
2138
|
+
children: [/* @__PURE__ */ s("path", {
|
|
2088
2139
|
d: "M4 5.5L7 2.5L10 5.5",
|
|
2089
2140
|
strokeWidth: e === "asc" ? "2" : "1.5",
|
|
2090
2141
|
className: $("transition-colors", e === "asc" ? "stroke-zinc-900" : e === "desc" ? "stroke-zinc-300/50" : "stroke-zinc-400/80")
|
|
2091
|
-
}), /* @__PURE__ */
|
|
2142
|
+
}), /* @__PURE__ */ s("path", {
|
|
2092
2143
|
d: "M4 8.5L7 11.5L10 8.5",
|
|
2093
2144
|
strokeWidth: e === "desc" ? "2" : "1.5",
|
|
2094
2145
|
className: $("transition-colors", e === "desc" ? "stroke-zinc-900" : e === "asc" ? "stroke-zinc-300/50" : "stroke-zinc-400/80")
|
|
2095
2146
|
})]
|
|
2096
2147
|
});
|
|
2097
2148
|
}
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
return /* @__PURE__ */ u("svg", {
|
|
2149
|
+
// src/lib/LimitSelect.tsx
|
|
2150
|
+
function Ze({ className: e }) {
|
|
2151
|
+
return /* @__PURE__ */ s("svg", {
|
|
2102
2152
|
className: e,
|
|
2103
2153
|
width: "16",
|
|
2104
2154
|
height: "16",
|
|
@@ -2109,11 +2159,11 @@ function qe({ className: e }) {
|
|
|
2109
2159
|
strokeLinecap: "round",
|
|
2110
2160
|
strokeLinejoin: "round",
|
|
2111
2161
|
"aria-hidden": !0,
|
|
2112
|
-
children: /* @__PURE__ */
|
|
2162
|
+
children: /* @__PURE__ */ s("path", { d: "M6 9l6 6 6-6" })
|
|
2113
2163
|
});
|
|
2114
2164
|
}
|
|
2115
|
-
function
|
|
2116
|
-
return /* @__PURE__ */
|
|
2165
|
+
function Qe({ className: e }) {
|
|
2166
|
+
return /* @__PURE__ */ s("svg", {
|
|
2117
2167
|
className: e,
|
|
2118
2168
|
width: "16",
|
|
2119
2169
|
height: "16",
|
|
@@ -2124,65 +2174,64 @@ function Je({ className: e }) {
|
|
|
2124
2174
|
strokeLinecap: "round",
|
|
2125
2175
|
strokeLinejoin: "round",
|
|
2126
2176
|
"aria-hidden": !0,
|
|
2127
|
-
children: /* @__PURE__ */
|
|
2177
|
+
children: /* @__PURE__ */ s("path", { d: "M20 6L9 17l-5-5" })
|
|
2128
2178
|
});
|
|
2129
2179
|
}
|
|
2130
|
-
function
|
|
2131
|
-
let [
|
|
2180
|
+
function $e({ value: n, options: r, onChange: o, className: l }) {
|
|
2181
|
+
let [u, d] = a(!1), f = i(null), p = t();
|
|
2132
2182
|
return e(() => {
|
|
2133
2183
|
function e(e) {
|
|
2134
|
-
f.current?.contains(e.target) ||
|
|
2184
|
+
f.current?.contains(e.target) || d(!1);
|
|
2135
2185
|
}
|
|
2136
2186
|
function t(e) {
|
|
2137
|
-
e.key === "Escape" &&
|
|
2187
|
+
e.key === "Escape" && d(!1);
|
|
2138
2188
|
}
|
|
2139
2189
|
return document.addEventListener("mousedown", e), document.addEventListener("keydown", t), () => {
|
|
2140
2190
|
document.removeEventListener("mousedown", e), document.removeEventListener("keydown", t);
|
|
2141
2191
|
};
|
|
2142
|
-
}, []), /* @__PURE__ */
|
|
2192
|
+
}, []), /* @__PURE__ */ c("div", {
|
|
2143
2193
|
ref: f,
|
|
2144
|
-
className: $("relative inline-flex",
|
|
2145
|
-
children: [/* @__PURE__ */
|
|
2194
|
+
className: $("relative inline-flex", l),
|
|
2195
|
+
children: [/* @__PURE__ */ c("button", {
|
|
2146
2196
|
type: "button",
|
|
2147
2197
|
"aria-haspopup": "listbox",
|
|
2148
|
-
"aria-expanded":
|
|
2198
|
+
"aria-expanded": u,
|
|
2149
2199
|
"aria-controls": p,
|
|
2150
2200
|
"aria-label": "Rows per page",
|
|
2151
2201
|
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"),
|
|
2152
|
-
onClick: () =>
|
|
2153
|
-
children: [/* @__PURE__ */
|
|
2154
|
-
}),
|
|
2202
|
+
onClick: () => d((e) => !e),
|
|
2203
|
+
children: [/* @__PURE__ */ s("span", { children: n }), /* @__PURE__ */ s(Ze, { className: $("text-zinc-500 transition-transform duration-200", u && "rotate-180") })]
|
|
2204
|
+
}), u ? /* @__PURE__ */ s("ul", {
|
|
2155
2205
|
id: p,
|
|
2156
2206
|
role: "listbox",
|
|
2157
2207
|
"aria-label": "Rows per page",
|
|
2158
2208
|
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"),
|
|
2159
2209
|
children: r.map((e) => {
|
|
2160
2210
|
let t = e === n;
|
|
2161
|
-
return /* @__PURE__ */
|
|
2211
|
+
return /* @__PURE__ */ s("li", {
|
|
2162
2212
|
role: "option",
|
|
2163
2213
|
"aria-selected": t,
|
|
2164
|
-
children: /* @__PURE__ */
|
|
2214
|
+
children: /* @__PURE__ */ c("button", {
|
|
2165
2215
|
type: "button",
|
|
2166
2216
|
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"),
|
|
2167
2217
|
onClick: () => {
|
|
2168
|
-
o(e),
|
|
2218
|
+
o(e), d(!1);
|
|
2169
2219
|
},
|
|
2170
|
-
children: [/* @__PURE__ */
|
|
2220
|
+
children: [/* @__PURE__ */ c("span", { children: [e, " Items"] }), t ? /* @__PURE__ */ s(Qe, { className: "text-zinc-800" }) : null]
|
|
2171
2221
|
})
|
|
2172
2222
|
}, e);
|
|
2173
2223
|
})
|
|
2174
2224
|
}) : null]
|
|
2175
2225
|
});
|
|
2176
2226
|
}
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
function Xe(e, t) {
|
|
2227
|
+
// src/lib/Pagination.tsx
|
|
2228
|
+
function et(e, t) {
|
|
2180
2229
|
if (t <= 7) return Array.from({ length: t }, (e, t) => t + 1);
|
|
2181
2230
|
let n = e + 1, r = [];
|
|
2182
2231
|
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);
|
|
2183
2232
|
}
|
|
2184
|
-
function
|
|
2185
|
-
return /* @__PURE__ */
|
|
2233
|
+
function tt({ className: e }) {
|
|
2234
|
+
return /* @__PURE__ */ s("svg", {
|
|
2186
2235
|
className: e,
|
|
2187
2236
|
width: "14",
|
|
2188
2237
|
height: "14",
|
|
@@ -2193,11 +2242,11 @@ function Ze({ className: e }) {
|
|
|
2193
2242
|
strokeLinecap: "round",
|
|
2194
2243
|
strokeLinejoin: "round",
|
|
2195
2244
|
"aria-hidden": !0,
|
|
2196
|
-
children: /* @__PURE__ */
|
|
2245
|
+
children: /* @__PURE__ */ s("path", { d: "M15 18l-6-6 6-6" })
|
|
2197
2246
|
});
|
|
2198
2247
|
}
|
|
2199
|
-
function
|
|
2200
|
-
return /* @__PURE__ */
|
|
2248
|
+
function nt({ className: e }) {
|
|
2249
|
+
return /* @__PURE__ */ s("svg", {
|
|
2201
2250
|
className: e,
|
|
2202
2251
|
width: "14",
|
|
2203
2252
|
height: "14",
|
|
@@ -2208,23 +2257,23 @@ function Qe({ className: e }) {
|
|
|
2208
2257
|
strokeLinecap: "round",
|
|
2209
2258
|
strokeLinejoin: "round",
|
|
2210
2259
|
"aria-hidden": !0,
|
|
2211
|
-
children: /* @__PURE__ */
|
|
2260
|
+
children: /* @__PURE__ */ s("path", { d: "M9 18l6-6-6-6" })
|
|
2212
2261
|
});
|
|
2213
2262
|
}
|
|
2214
|
-
var
|
|
2215
|
-
function
|
|
2263
|
+
var rt = "inline-flex size-9 shrink-0 items-center justify-center rounded-md border text-sm transition-colors";
|
|
2264
|
+
function it({ skip: e, limit: t, total: n, limitOptions: r = [
|
|
2216
2265
|
10,
|
|
2217
2266
|
20,
|
|
2218
2267
|
50
|
|
2219
|
-
], onChange: i, className: a, startAddon: o, endAddon:
|
|
2220
|
-
let
|
|
2221
|
-
return /* @__PURE__ */
|
|
2268
|
+
], onChange: i, className: a, startAddon: o, endAddon: l }) {
|
|
2269
|
+
let u = Math.max(1, Math.ceil(n / t) || 1), d = Math.floor(e / t), f = et(d, u), p = n === 0 ? 0 : e + 1, m = Math.min(e + t, n);
|
|
2270
|
+
return /* @__PURE__ */ c("div", {
|
|
2222
2271
|
className: $("flex flex-wrap items-center justify-between gap-3 px-1 py-2 text-sm text-zinc-700", a),
|
|
2223
|
-
children: [/* @__PURE__ */
|
|
2272
|
+
children: [/* @__PURE__ */ c("div", {
|
|
2224
2273
|
className: "flex items-center gap-2 text-zinc-500",
|
|
2225
2274
|
children: [
|
|
2226
2275
|
o,
|
|
2227
|
-
/* @__PURE__ */
|
|
2276
|
+
/* @__PURE__ */ s($e, {
|
|
2228
2277
|
value: t,
|
|
2229
2278
|
options: r,
|
|
2230
2279
|
onChange: (e) => i({
|
|
@@ -2232,7 +2281,7 @@ function et({ skip: e, limit: t, total: n, limitOptions: r = [
|
|
|
2232
2281
|
skip: 0
|
|
2233
2282
|
})
|
|
2234
2283
|
}),
|
|
2235
|
-
/* @__PURE__ */
|
|
2284
|
+
/* @__PURE__ */ c("span", {
|
|
2236
2285
|
className: "hidden text-sm sm:inline",
|
|
2237
2286
|
children: [
|
|
2238
2287
|
p,
|
|
@@ -2243,90 +2292,291 @@ function et({ skip: e, limit: t, total: n, limitOptions: r = [
|
|
|
2243
2292
|
]
|
|
2244
2293
|
})
|
|
2245
2294
|
]
|
|
2246
|
-
}), /* @__PURE__ */
|
|
2295
|
+
}), /* @__PURE__ */ c("div", {
|
|
2247
2296
|
className: "flex items-center gap-2",
|
|
2248
|
-
children: [/* @__PURE__ */
|
|
2297
|
+
children: [/* @__PURE__ */ c("nav", {
|
|
2249
2298
|
className: "flex items-center gap-1.5",
|
|
2250
2299
|
"aria-label": "Pagination",
|
|
2251
2300
|
children: [
|
|
2252
|
-
/* @__PURE__ */
|
|
2301
|
+
/* @__PURE__ */ s("button", {
|
|
2253
2302
|
type: "button",
|
|
2254
|
-
className: $(
|
|
2255
|
-
disabled:
|
|
2303
|
+
className: $(rt, "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"),
|
|
2304
|
+
disabled: d <= 0,
|
|
2256
2305
|
"aria-label": "Previous page",
|
|
2257
2306
|
onClick: () => i({
|
|
2258
2307
|
limit: t,
|
|
2259
2308
|
skip: Math.max(0, e - t)
|
|
2260
2309
|
}),
|
|
2261
|
-
children: /* @__PURE__ */
|
|
2310
|
+
children: /* @__PURE__ */ s(tt, {})
|
|
2262
2311
|
}),
|
|
2263
|
-
f.map((e, n) => e === "ellipsis" ? /* @__PURE__ */
|
|
2312
|
+
f.map((e, n) => e === "ellipsis" ? /* @__PURE__ */ s("span", {
|
|
2264
2313
|
className: "inline-flex size-9 items-center justify-center text-zinc-400",
|
|
2265
2314
|
"aria-hidden": !0,
|
|
2266
2315
|
children: "…"
|
|
2267
|
-
}, `e-${n}`) : /* @__PURE__ */
|
|
2316
|
+
}, `e-${n}`) : /* @__PURE__ */ s("button", {
|
|
2268
2317
|
type: "button",
|
|
2269
2318
|
"aria-label": `Page ${e}`,
|
|
2270
|
-
"aria-current": e ===
|
|
2271
|
-
className: $(
|
|
2319
|
+
"aria-current": e === d + 1 ? "page" : void 0,
|
|
2320
|
+
className: $(rt, 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"),
|
|
2272
2321
|
onClick: () => i({
|
|
2273
2322
|
limit: t,
|
|
2274
2323
|
skip: (e - 1) * t
|
|
2275
2324
|
}),
|
|
2276
2325
|
children: e
|
|
2277
2326
|
}, e)),
|
|
2278
|
-
/* @__PURE__ */
|
|
2327
|
+
/* @__PURE__ */ s("button", {
|
|
2279
2328
|
type: "button",
|
|
2280
|
-
className: $(
|
|
2281
|
-
disabled:
|
|
2329
|
+
className: $(rt, "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"),
|
|
2330
|
+
disabled: d >= u - 1,
|
|
2282
2331
|
"aria-label": "Next page",
|
|
2283
2332
|
onClick: () => i({
|
|
2284
2333
|
limit: t,
|
|
2285
2334
|
skip: e + t
|
|
2286
2335
|
}),
|
|
2287
|
-
children: /* @__PURE__ */
|
|
2336
|
+
children: /* @__PURE__ */ s(nt, {})
|
|
2288
2337
|
})
|
|
2289
2338
|
]
|
|
2290
|
-
}),
|
|
2339
|
+
}), l]
|
|
2291
2340
|
})]
|
|
2292
2341
|
});
|
|
2293
2342
|
}
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2343
|
+
// src/lib/icons/MenuIcon.tsx
|
|
2344
|
+
function at({ className: e }) {
|
|
2345
|
+
return /* @__PURE__ */ c("svg", {
|
|
2346
|
+
className: e,
|
|
2347
|
+
width: "16",
|
|
2348
|
+
height: "16",
|
|
2349
|
+
viewBox: "0 0 24 24",
|
|
2350
|
+
fill: "none",
|
|
2351
|
+
stroke: "currentColor",
|
|
2352
|
+
strokeWidth: "2",
|
|
2353
|
+
strokeLinecap: "round",
|
|
2354
|
+
strokeLinejoin: "round",
|
|
2355
|
+
"aria-hidden": !0,
|
|
2356
|
+
children: [
|
|
2357
|
+
/* @__PURE__ */ s("path", { d: "M4 7h16" }),
|
|
2358
|
+
/* @__PURE__ */ s("path", { d: "M4 12h16" }),
|
|
2359
|
+
/* @__PURE__ */ s("path", { d: "M4 17h16" })
|
|
2360
|
+
]
|
|
2361
|
+
});
|
|
2362
|
+
}
|
|
2363
|
+
// src/lib/RowActionsMenu.tsx
|
|
2364
|
+
var ot = 6, st = 8;
|
|
2365
|
+
function ct(e, t, n) {
|
|
2366
|
+
return typeof e == "function" ? e(t, n) : !!e;
|
|
2367
|
+
}
|
|
2368
|
+
function lt(e) {
|
|
2369
|
+
return !("type" in e) || e.type === void 0 || e.type === "item";
|
|
2370
|
+
}
|
|
2371
|
+
function ut(e, t, n) {
|
|
2372
|
+
let r = e.filter((e) => !lt(e) || !ct(e.hidden, t, n)), i = [];
|
|
2373
|
+
for (let e of r) {
|
|
2374
|
+
let t = !lt(e) && e.type === "separator", n = i[i.length - 1], r = !n || !lt(n) && n.type === "separator";
|
|
2375
|
+
t && r || i.push(e);
|
|
2376
|
+
}
|
|
2377
|
+
for (; i.length;) {
|
|
2378
|
+
let e = i[i.length - 1];
|
|
2379
|
+
if (!lt(e) && e.type === "separator") i.pop();
|
|
2380
|
+
else break;
|
|
2381
|
+
}
|
|
2382
|
+
return i;
|
|
2383
|
+
}
|
|
2384
|
+
function dt({ row: r, rowIndex: p, actions: m, label: h = "Open row actions", triggerIcon: g, align: _ = "end", triggerClassName: v, menuClassName: y }) {
|
|
2385
|
+
let [b, x] = a(!1), [ee, S] = a({
|
|
2386
|
+
top: 0,
|
|
2387
|
+
left: 0,
|
|
2388
|
+
visibility: "hidden"
|
|
2389
|
+
}), [C, w] = a("bottom"), T = i(null), E = i(null), D = t(), O = d(), k = ut(m, r, p);
|
|
2390
|
+
function A(e = !1) {
|
|
2391
|
+
x(!1), e && T.current?.focus();
|
|
2392
|
+
}
|
|
2393
|
+
function j() {
|
|
2394
|
+
return Array.from(E.current?.querySelectorAll("[role=\"menuitem\"]:not([disabled])") ?? []);
|
|
2395
|
+
}
|
|
2396
|
+
n(() => {
|
|
2397
|
+
if (!b) return;
|
|
2398
|
+
let e = T.current, t = E.current;
|
|
2399
|
+
if (!e || !t) return;
|
|
2400
|
+
let n = e.getBoundingClientRect(), { offsetWidth: r, offsetHeight: i } = t, a = window.innerWidth, o = window.innerHeight, s = _ === "end" ? n.right - r : n.left;
|
|
2401
|
+
s = Math.min(Math.max(s, st), a - r - st);
|
|
2402
|
+
let c = n.bottom + ot + i <= o - st, l = n.top - ot - i >= st, u = !c && l ? "top" : "bottom", d = u === "top" ? n.top - ot - i : Math.min(n.bottom + ot, o - i - st);
|
|
2403
|
+
w(u), S({
|
|
2404
|
+
top: Math.max(d, st),
|
|
2405
|
+
left: s
|
|
2406
|
+
});
|
|
2407
|
+
let f = requestAnimationFrame(() => j()[0]?.focus());
|
|
2408
|
+
return () => cancelAnimationFrame(f);
|
|
2409
|
+
}, [b, _]), e(() => {
|
|
2410
|
+
if (!b) return;
|
|
2411
|
+
function e(e) {
|
|
2412
|
+
let t = e.target;
|
|
2413
|
+
T.current?.contains(t) || E.current?.contains(t) || x(!1);
|
|
2414
|
+
}
|
|
2415
|
+
function t(e) {
|
|
2416
|
+
E.current?.contains(e.target) || x(!1);
|
|
2417
|
+
}
|
|
2418
|
+
function n() {
|
|
2419
|
+
x(!1);
|
|
2420
|
+
}
|
|
2421
|
+
return document.addEventListener("mousedown", e), window.addEventListener("scroll", t, !0), window.addEventListener("resize", n), () => {
|
|
2422
|
+
document.removeEventListener("mousedown", e), window.removeEventListener("scroll", t, !0), window.removeEventListener("resize", n);
|
|
2423
|
+
};
|
|
2424
|
+
}, [b]);
|
|
2425
|
+
function M(e) {
|
|
2426
|
+
let t = j();
|
|
2427
|
+
if (!t.length) return;
|
|
2428
|
+
let n = t.indexOf(document.activeElement), r;
|
|
2429
|
+
switch (e.key) {
|
|
2430
|
+
case "ArrowDown":
|
|
2431
|
+
r = n < 0 ? 0 : (n + 1) % t.length;
|
|
2432
|
+
break;
|
|
2433
|
+
case "ArrowUp":
|
|
2434
|
+
r = n < 0 ? t.length - 1 : (n - 1 + t.length) % t.length;
|
|
2435
|
+
break;
|
|
2436
|
+
case "Home":
|
|
2437
|
+
r = 0;
|
|
2438
|
+
break;
|
|
2439
|
+
case "End":
|
|
2440
|
+
r = t.length - 1;
|
|
2441
|
+
break;
|
|
2442
|
+
case "Escape":
|
|
2443
|
+
e.preventDefault(), A(!0);
|
|
2444
|
+
return;
|
|
2445
|
+
case "Tab":
|
|
2446
|
+
A();
|
|
2447
|
+
return;
|
|
2448
|
+
default: return;
|
|
2449
|
+
}
|
|
2450
|
+
e.preventDefault(), t[r]?.focus();
|
|
2451
|
+
}
|
|
2452
|
+
return k.some(lt) ? /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("button", {
|
|
2453
|
+
ref: T,
|
|
2454
|
+
type: "button",
|
|
2455
|
+
"aria-label": h,
|
|
2456
|
+
"aria-haspopup": "menu",
|
|
2457
|
+
"aria-expanded": b,
|
|
2458
|
+
"aria-controls": b ? D : void 0,
|
|
2459
|
+
onClick: (e) => {
|
|
2460
|
+
e.stopPropagation(), S((e) => ({
|
|
2461
|
+
...e,
|
|
2462
|
+
visibility: "hidden"
|
|
2463
|
+
})), x((e) => !e);
|
|
2464
|
+
},
|
|
2465
|
+
onKeyDown: (e) => {
|
|
2466
|
+
e.key === "ArrowDown" && !b ? (e.preventDefault(), x(!0)) : e.key === "Escape" && b ? (e.preventDefault(), A()) : e.key === "ArrowDown" && b && (e.preventDefault(), j()[0]?.focus());
|
|
2467
|
+
},
|
|
2468
|
+
className: $("inline-flex size-8 cursor-pointer items-center justify-center rounded-md text-zinc-500", "transition-colors hover:bg-zinc-100 hover:text-zinc-900", "focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-zinc-500", b && "bg-zinc-100 text-zinc-900", v),
|
|
2469
|
+
children: g ?? /* @__PURE__ */ s(at, {})
|
|
2470
|
+
}), typeof document < "u" ? f(/* @__PURE__ */ s(l, { children: b ? /* @__PURE__ */ s(u.div, {
|
|
2471
|
+
ref: E,
|
|
2472
|
+
id: D,
|
|
2473
|
+
role: "menu",
|
|
2474
|
+
"aria-label": h,
|
|
2475
|
+
"aria-orientation": "vertical",
|
|
2476
|
+
onKeyDown: M,
|
|
2477
|
+
onClick: (e) => e.stopPropagation(),
|
|
2478
|
+
initial: {
|
|
2479
|
+
opacity: 0,
|
|
2480
|
+
scale: O ? 1 : .96,
|
|
2481
|
+
y: O ? 0 : C === "top" ? 4 : -4
|
|
2482
|
+
},
|
|
2483
|
+
animate: {
|
|
2484
|
+
opacity: 1,
|
|
2485
|
+
scale: 1,
|
|
2486
|
+
y: 0
|
|
2487
|
+
},
|
|
2488
|
+
exit: {
|
|
2489
|
+
opacity: 0,
|
|
2490
|
+
scale: O ? 1 : .97
|
|
2491
|
+
},
|
|
2492
|
+
transition: {
|
|
2493
|
+
duration: O ? 0 : .14,
|
|
2494
|
+
ease: [
|
|
2495
|
+
.16,
|
|
2496
|
+
1,
|
|
2497
|
+
.3,
|
|
2498
|
+
1
|
|
2499
|
+
]
|
|
2500
|
+
},
|
|
2501
|
+
style: {
|
|
2502
|
+
position: "fixed",
|
|
2503
|
+
...ee
|
|
2504
|
+
},
|
|
2505
|
+
className: $("z-50 w-56 max-w-[calc(100vw-1rem)] rounded-lg bg-white p-1.5 text-left", "shadow-[0_10px_38px_-10px_rgba(0,0,0,0.25),0_10px_20px_-15px_rgba(0,0,0,0.15)] ring-1 ring-black/5", _ === "end" ? C === "top" ? "origin-bottom-right" : "origin-top-right" : C === "top" ? "origin-bottom-left" : "origin-top-left", y),
|
|
2506
|
+
children: k.map((e) => {
|
|
2507
|
+
if (!lt(e)) return e.type === "separator" ? /* @__PURE__ */ s("div", {
|
|
2508
|
+
role: "separator",
|
|
2509
|
+
className: "-mx-1.5 my-1 h-px bg-zinc-100"
|
|
2510
|
+
}, e.key) : /* @__PURE__ */ s("div", {
|
|
2511
|
+
role: "presentation",
|
|
2512
|
+
className: "px-2.5 pb-1 pt-1.5 text-[11px] font-medium uppercase tracking-wide text-zinc-400",
|
|
2513
|
+
children: e.label
|
|
2514
|
+
}, e.key);
|
|
2515
|
+
let t = ct(e.disabled, r, p), n = e.variant === "danger";
|
|
2516
|
+
return /* @__PURE__ */ c("button", {
|
|
2517
|
+
type: "button",
|
|
2518
|
+
role: "menuitem",
|
|
2519
|
+
tabIndex: -1,
|
|
2520
|
+
disabled: t,
|
|
2521
|
+
onClick: () => {
|
|
2522
|
+
A(!0), e.onSelect(r, p);
|
|
2523
|
+
},
|
|
2524
|
+
onMouseEnter: (e) => {
|
|
2525
|
+
t || e.currentTarget.focus();
|
|
2526
|
+
},
|
|
2527
|
+
className: $("group/item flex w-full cursor-pointer items-center gap-2.5 rounded-md px-2.5 py-2 text-sm outline-none", "transition-colors disabled:cursor-not-allowed disabled:opacity-40", n ? "text-red-600 focus:bg-red-50" : "text-zinc-700 focus:bg-zinc-100 focus:text-zinc-900"),
|
|
2528
|
+
children: [
|
|
2529
|
+
e.icon ? /* @__PURE__ */ s("span", {
|
|
2530
|
+
"aria-hidden": !0,
|
|
2531
|
+
className: $("inline-flex size-4 shrink-0 items-center justify-center transition-colors [&>svg]:size-4", n ? "text-red-500" : "text-zinc-400 group-focus/item:text-zinc-700"),
|
|
2532
|
+
children: e.icon
|
|
2533
|
+
}) : null,
|
|
2534
|
+
/* @__PURE__ */ s("span", {
|
|
2535
|
+
className: "min-w-0 flex-1 truncate text-left",
|
|
2536
|
+
children: e.label
|
|
2537
|
+
}),
|
|
2538
|
+
e.shortcut ? /* @__PURE__ */ s("span", {
|
|
2539
|
+
className: "ml-3 shrink-0 text-xs tracking-wide text-zinc-400",
|
|
2540
|
+
children: e.shortcut
|
|
2541
|
+
}) : null
|
|
2542
|
+
]
|
|
2543
|
+
}, e.key);
|
|
2544
|
+
})
|
|
2545
|
+
}) : null }), document.body) : null] }) : null;
|
|
2546
|
+
}
|
|
2547
|
+
// src/lib/SkeletonRows.tsx
|
|
2548
|
+
function ft({ rowCount: e, columnCount: t, className: n, bordered: r = !1 }) {
|
|
2549
|
+
return /* @__PURE__ */ s(o, { children: Array.from({ length: e }).map((e, i) => /* @__PURE__ */ s("tr", {
|
|
2298
2550
|
className: $("animate-pulse", n),
|
|
2299
|
-
children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */
|
|
2300
|
-
className: "border-b border-zinc-100 px-3 py-3",
|
|
2301
|
-
children: /* @__PURE__ */
|
|
2551
|
+
children: Array.from({ length: t }).map((e, t) => /* @__PURE__ */ s("td", {
|
|
2552
|
+
className: $("border-b border-zinc-100 px-3 py-3", r && "border-r last:border-r-0"),
|
|
2553
|
+
children: /* @__PURE__ */ s("div", { className: "h-3 w-full rounded bg-zinc-200" })
|
|
2302
2554
|
}, t))
|
|
2303
|
-
},
|
|
2555
|
+
}, i)) });
|
|
2304
2556
|
}
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
function nt(e, t) {
|
|
2557
|
+
// src/lib/utils/columnOrder.ts
|
|
2558
|
+
function pt(e, t) {
|
|
2308
2559
|
if (!t?.length) return e;
|
|
2309
2560
|
let n = new Set(e), r = t.filter((e) => n.has(e)), i = e.filter((e) => !r.includes(e));
|
|
2310
2561
|
return [...r, ...i];
|
|
2311
2562
|
}
|
|
2312
|
-
function
|
|
2563
|
+
function mt(e, t, n) {
|
|
2313
2564
|
let r = e.indexOf(t), i = e.indexOf(n);
|
|
2314
2565
|
if (r === -1 || i === -1 || r === i) return e;
|
|
2315
2566
|
let a = e.filter((e, t) => t !== r);
|
|
2316
2567
|
return a.splice(i, 0, t), a;
|
|
2317
2568
|
}
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
function it(e, t, n) {
|
|
2569
|
+
// src/lib/utils/pagination.ts
|
|
2570
|
+
function ht(e, t, n) {
|
|
2321
2571
|
if (t <= 0) return 0;
|
|
2322
2572
|
let r = Math.floor((t - 1) / n) * n;
|
|
2323
2573
|
return Math.min(Math.max(0, e), Math.max(0, r));
|
|
2324
2574
|
}
|
|
2325
|
-
function
|
|
2575
|
+
function gt(e, t, n) {
|
|
2326
2576
|
return e.slice(t, t + n);
|
|
2327
2577
|
}
|
|
2328
|
-
function
|
|
2329
|
-
let t = e.total ?? e.dataLength, n = Math.max(1, e.limit), r =
|
|
2578
|
+
function _t(e) {
|
|
2579
|
+
let t = e.total ?? e.dataLength, n = Math.max(1, e.limit), r = ht(e.skip, t, n), i = Math.max(1, Math.ceil(t / n) || 1);
|
|
2330
2580
|
return {
|
|
2331
2581
|
limit: n,
|
|
2332
2582
|
skip: r,
|
|
@@ -2335,45 +2585,43 @@ function ot(e) {
|
|
|
2335
2585
|
pageCount: i
|
|
2336
2586
|
};
|
|
2337
2587
|
}
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
function st(e, t) {
|
|
2588
|
+
// src/lib/utils/stickyOffsets.ts
|
|
2589
|
+
function vt(e, t) {
|
|
2341
2590
|
return t?.[e.key] == null ? typeof e.width == "number" ? e.width : 120 : t[e.key];
|
|
2342
2591
|
}
|
|
2343
|
-
function
|
|
2592
|
+
function yt(e, t) {
|
|
2344
2593
|
let n = {}, r = 0;
|
|
2345
2594
|
for (let i of e) i.sticky === "left" && (n[i.key] = {
|
|
2346
2595
|
side: "left",
|
|
2347
2596
|
offset: r
|
|
2348
|
-
}, r +=
|
|
2597
|
+
}, r += vt(i, t));
|
|
2349
2598
|
let i = 0;
|
|
2350
2599
|
for (let r = e.length - 1; r >= 0; r--) {
|
|
2351
2600
|
let a = e[r];
|
|
2352
2601
|
a.sticky === "right" && (n[a.key] = {
|
|
2353
2602
|
side: "right",
|
|
2354
2603
|
offset: i
|
|
2355
|
-
}, i +=
|
|
2604
|
+
}, i += vt(a, t));
|
|
2356
2605
|
}
|
|
2357
2606
|
return n;
|
|
2358
2607
|
}
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
function ft(e, t) {
|
|
2608
|
+
// src/lib/SeeTable.tsx
|
|
2609
|
+
var bt = "__see_table_index__", xt = 120, St = 310;
|
|
2610
|
+
function Ct(e, t) {
|
|
2363
2611
|
return t?.length ? new Set(t) : new Set(e.filter((e) => e.defaultVisible !== !1).map((e) => e.key));
|
|
2364
2612
|
}
|
|
2365
|
-
function
|
|
2613
|
+
function wt(e, t, n, r) {
|
|
2366
2614
|
if (n?.includes(e)) return "left";
|
|
2367
2615
|
if (r?.includes(e)) return "right";
|
|
2368
2616
|
if (n === void 0 && r === void 0) return t;
|
|
2369
2617
|
}
|
|
2370
|
-
function
|
|
2618
|
+
function Tt(e, t, n) {
|
|
2371
2619
|
return e.map((e) => ({
|
|
2372
2620
|
...e,
|
|
2373
|
-
sticky:
|
|
2621
|
+
sticky: wt(e.key, e.sticky, t, n)
|
|
2374
2622
|
}));
|
|
2375
2623
|
}
|
|
2376
|
-
function
|
|
2624
|
+
function Et(e, t, n = "actions", r = "Actions", i = !1) {
|
|
2377
2625
|
return t ? (e.some((e) => e.key === n) ? e : [...e, {
|
|
2378
2626
|
key: n,
|
|
2379
2627
|
header: r,
|
|
@@ -2381,10 +2629,11 @@ function ht(e, t, n = "actions", r = "Actions") {
|
|
|
2381
2629
|
}]).map((e) => e.key === n ? {
|
|
2382
2630
|
...e,
|
|
2383
2631
|
width: e.width ?? "auto",
|
|
2632
|
+
className: i ? $("text-center", e.className) : e.className,
|
|
2384
2633
|
cell: (e, n) => t(e, n)
|
|
2385
2634
|
} : e) : e;
|
|
2386
2635
|
}
|
|
2387
|
-
function
|
|
2636
|
+
function Dt(e, t) {
|
|
2388
2637
|
let n = e.width === "auto" ? {
|
|
2389
2638
|
width: "1%",
|
|
2390
2639
|
whiteSpace: "nowrap",
|
|
@@ -2402,89 +2651,131 @@ function gt(e, t) {
|
|
|
2402
2651
|
[t.side]: t.offset
|
|
2403
2652
|
} : n;
|
|
2404
2653
|
}
|
|
2405
|
-
function
|
|
2654
|
+
function Ot({ columns: e, data: t, getRowId: o, defaultVisibleColumns: l, limit: u, skip: d, total: f, onPaginationChange: p, limitOptions: m = [
|
|
2406
2655
|
10,
|
|
2407
2656
|
20,
|
|
2408
2657
|
50
|
|
2409
|
-
], loading: h = !1, stickyLeft: g, stickyRight: _, renderActions: v,
|
|
2410
|
-
let
|
|
2411
|
-
|
|
2412
|
-
|
|
2658
|
+
], loading: h = !1, stickyLeft: g, stickyRight: _, renderActions: v, rowActions: y, rowActionsLabel: b, actionsKey: x = "actions", actionsHeader: ee = "Actions", columnOrder: S, onColumnOrderChange: C, enableColumnReorder: w, enableSorting: T, sortState: E, defaultSort: D, onSortChange: O, showColumnToggle: k = !0, columnTogglePosition: A = "after-skip", columnsLabel: j = "Columns", bordered: M = !0, enableRowSelection: te, selectedRowIds: ne, defaultSelectedRowIds: N, onSelectionChange: re, showFeatureToggles: ie = !0, onFeaturesChange: ae, showIndex: P = !1, indexHeader: F = "#", indexWidth: I = 56, renderIndex: oe, fieldClassNames: se, classNames: L }) {
|
|
2659
|
+
let [ce, R] = a({}), z = ce.columnReorder ?? w ?? typeof C == "function", B = ce.sorting ?? T ?? (typeof O == "function" || E !== void 0), V = ce.rowSelection ?? te ?? !1, [le, ue] = a(void 0), de = S ?? le;
|
|
2660
|
+
function fe(e) {
|
|
2661
|
+
S === void 0 && ue(e), C?.(e);
|
|
2662
|
+
}
|
|
2663
|
+
let pe = ne !== void 0, [H, U] = a(() => new Set(N ?? [])), W = r(() => pe ? new Set(ne) : H, [
|
|
2664
|
+
pe,
|
|
2665
|
+
ne,
|
|
2666
|
+
H
|
|
2667
|
+
]);
|
|
2668
|
+
function me(e, t) {
|
|
2669
|
+
R((n) => ({
|
|
2670
|
+
...n,
|
|
2671
|
+
[e]: t
|
|
2672
|
+
})), ae?.({
|
|
2673
|
+
rowSelection: V,
|
|
2674
|
+
columnReorder: z,
|
|
2675
|
+
sorting: B,
|
|
2676
|
+
[e]: t
|
|
2677
|
+
});
|
|
2678
|
+
}
|
|
2679
|
+
let G = i(null), [he, ge] = a(null), _e = i(!1), [ve, ye] = a(() => D ?? null), be = E !== void 0, xe = be ? E : ve, K = u !== void 0 && d !== void 0 && typeof p == "function", [q, Se] = a(m[0] ?? 10), [Ce, we] = a(0), [Te, Ee] = a(() => Ct(e, l)), De = K ? u : q, Oe = K ? d : Ce, J = L?.actionsTrigger, ke = L?.actionsMenu, Ae = r(() => y ? (e, t) => {
|
|
2680
|
+
let n = typeof y == "function" ? y(e, t) : y, r = /* @__PURE__ */ s(dt, {
|
|
2681
|
+
row: e,
|
|
2682
|
+
rowIndex: t,
|
|
2683
|
+
actions: n,
|
|
2684
|
+
label: b,
|
|
2685
|
+
triggerClassName: J,
|
|
2686
|
+
menuClassName: ke
|
|
2687
|
+
});
|
|
2688
|
+
return v ? /* @__PURE__ */ c("div", {
|
|
2689
|
+
className: "inline-flex items-center gap-1.5",
|
|
2690
|
+
children: [v(e, t), r]
|
|
2691
|
+
}) : r;
|
|
2692
|
+
} : v, [
|
|
2413
2693
|
y,
|
|
2414
|
-
|
|
2415
|
-
|
|
2694
|
+
v,
|
|
2695
|
+
b,
|
|
2696
|
+
J,
|
|
2697
|
+
ke
|
|
2698
|
+
]), je = r(() => Et(e, Ae, x, ee, !!y), [
|
|
2699
|
+
e,
|
|
2700
|
+
Ae,
|
|
2701
|
+
x,
|
|
2702
|
+
ee,
|
|
2703
|
+
y
|
|
2704
|
+
]), [Me, Ne] = a(() => /* @__PURE__ */ new Map()), Y = r(() => Tt(je, g, _).map((e) => ({
|
|
2416
2705
|
...e,
|
|
2417
|
-
sticky:
|
|
2706
|
+
sticky: Me.has(e.key) ? Me.get(e.key) ?? void 0 : e.sticky
|
|
2418
2707
|
})), [
|
|
2419
|
-
|
|
2708
|
+
je,
|
|
2420
2709
|
g,
|
|
2421
2710
|
_,
|
|
2422
|
-
|
|
2423
|
-
]),
|
|
2424
|
-
let e =
|
|
2711
|
+
Me
|
|
2712
|
+
]), Pe = r(() => {
|
|
2713
|
+
let e = pt(Y.map((e) => e.key), de), t = new Map(Y.map((e) => [e.key, e]));
|
|
2425
2714
|
return e.map((e) => t.get(e)).filter((e) => !!e);
|
|
2426
|
-
}, [
|
|
2427
|
-
key:
|
|
2428
|
-
header:
|
|
2429
|
-
width:
|
|
2430
|
-
sticky:
|
|
2715
|
+
}, [Y, de]), X = r(() => !P && !V ? null : {
|
|
2716
|
+
key: bt,
|
|
2717
|
+
header: P ? F : "",
|
|
2718
|
+
width: V ? P ? I + 28 : 48 : I,
|
|
2719
|
+
sticky: Me.has("__see_table_index__") ? Me.get("__see_table_index__") ?? void 0 : wt(bt, void 0, g, _),
|
|
2431
2720
|
cell: (e, t) => {
|
|
2432
|
-
|
|
2433
|
-
|
|
2721
|
+
if (!P) return null;
|
|
2722
|
+
let n = Oe + t + 1;
|
|
2723
|
+
return oe ? oe(e, t, n) : n;
|
|
2434
2724
|
}
|
|
2435
|
-
}
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2725
|
+
}, [
|
|
2726
|
+
P,
|
|
2727
|
+
V,
|
|
2728
|
+
F,
|
|
2729
|
+
I,
|
|
2730
|
+
Me,
|
|
2440
2731
|
_,
|
|
2441
2732
|
g,
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
]),
|
|
2445
|
-
let e =
|
|
2446
|
-
return
|
|
2733
|
+
Oe,
|
|
2734
|
+
oe
|
|
2735
|
+
]), Z = r(() => {
|
|
2736
|
+
let e = Pe.filter((e) => Te.has(e.key));
|
|
2737
|
+
return X ? [X, ...e] : e;
|
|
2447
2738
|
}, [
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
]),
|
|
2739
|
+
Pe,
|
|
2740
|
+
Te,
|
|
2741
|
+
X
|
|
2742
|
+
]), Fe = r(() => pt(Y.map((e) => e.key), de), [Y, de]), Ie = r(() => Pe.map((e) => ({
|
|
2452
2743
|
key: e.key,
|
|
2453
2744
|
label: e.header
|
|
2454
|
-
})), [
|
|
2455
|
-
function
|
|
2456
|
-
|
|
2745
|
+
})), [Pe]);
|
|
2746
|
+
function Le(e, t) {
|
|
2747
|
+
z && e !== "__see_table_index__" && (_e.current = !0, G.current = e, t.dataTransfer.effectAllowed = "move", t.dataTransfer.setData("text/plain", e));
|
|
2457
2748
|
}
|
|
2458
|
-
function
|
|
2459
|
-
|
|
2749
|
+
function Re(e, t) {
|
|
2750
|
+
z && G.current && e !== "__see_table_index__" && (t.preventDefault(), t.stopPropagation(), t.dataTransfer.dropEffect = "move", he !== e && ge(e));
|
|
2460
2751
|
}
|
|
2461
|
-
function
|
|
2462
|
-
if (!
|
|
2752
|
+
function ze(e, t) {
|
|
2753
|
+
if (!z || e === "__see_table_index__") return;
|
|
2463
2754
|
t.preventDefault(), t.stopPropagation();
|
|
2464
|
-
let n =
|
|
2465
|
-
|
|
2755
|
+
let n = G.current ?? t.dataTransfer.getData("text/plain");
|
|
2756
|
+
G.current = null, ge(null), n && n !== e && n !== "__see_table_index__" && fe(mt(Fe, n, e));
|
|
2466
2757
|
}
|
|
2467
|
-
function
|
|
2468
|
-
|
|
2469
|
-
|
|
2758
|
+
function Be() {
|
|
2759
|
+
G.current = null, ge(null), setTimeout(() => {
|
|
2760
|
+
_e.current = !1;
|
|
2470
2761
|
}, 50);
|
|
2471
2762
|
}
|
|
2472
|
-
function
|
|
2473
|
-
if (!
|
|
2474
|
-
let t =
|
|
2475
|
-
if (!t || t.sortable === !1 || e === "__see_table_index__" || e ===
|
|
2763
|
+
function Ve(e) {
|
|
2764
|
+
if (!B || _e.current) return;
|
|
2765
|
+
let t = Z.find((t) => t.key === e);
|
|
2766
|
+
if (!t || t.sortable === !1 || e === "__see_table_index__" || e === x) return;
|
|
2476
2767
|
let n;
|
|
2477
|
-
n =
|
|
2768
|
+
n = xe?.key === e ? xe.direction === "asc" ? {
|
|
2478
2769
|
key: e,
|
|
2479
2770
|
direction: "desc"
|
|
2480
2771
|
} : null : {
|
|
2481
2772
|
key: e,
|
|
2482
2773
|
direction: "asc"
|
|
2483
|
-
},
|
|
2774
|
+
}, be || (ye(n), K || we(0)), O?.(n);
|
|
2484
2775
|
}
|
|
2485
|
-
let
|
|
2486
|
-
if (!
|
|
2487
|
-
let { key: n, direction: r } =
|
|
2776
|
+
let He = r(() => {
|
|
2777
|
+
if (!B || !xe || K) return t;
|
|
2778
|
+
let { key: n, direction: r } = xe, i = e.find((e) => e.key === n)?.sortFn;
|
|
2488
2779
|
return [...t].sort((e, t) => {
|
|
2489
2780
|
if (i) {
|
|
2490
2781
|
let n = i(e, t);
|
|
@@ -2508,28 +2799,47 @@ function _t({ columns: e, data: t, getRowId: o, defaultVisibleColumns: s, limit:
|
|
|
2508
2799
|
});
|
|
2509
2800
|
}, [
|
|
2510
2801
|
t,
|
|
2511
|
-
|
|
2512
|
-
|
|
2802
|
+
xe,
|
|
2803
|
+
K,
|
|
2513
2804
|
e,
|
|
2514
|
-
|
|
2515
|
-
]),
|
|
2516
|
-
dataLength:
|
|
2517
|
-
limit:
|
|
2518
|
-
skip:
|
|
2805
|
+
B
|
|
2806
|
+
]), Q = _t({
|
|
2807
|
+
dataLength: He.length,
|
|
2808
|
+
limit: De,
|
|
2809
|
+
skip: Oe,
|
|
2519
2810
|
total: f
|
|
2520
|
-
}),
|
|
2811
|
+
}), Ue = K ? t : gt(He, Q.skip, Q.limit);
|
|
2812
|
+
function Ge(e, t) {
|
|
2813
|
+
return o?.(e, t) ?? String(Q.skip + t);
|
|
2814
|
+
}
|
|
2815
|
+
let Ke = Ue.map((e, t) => Ge(e, t)), qe = Ke.filter((e) => W.has(e)).length, Ze = Ke.length > 0 && qe === Ke.length;
|
|
2816
|
+
function Qe(e) {
|
|
2817
|
+
if (pe || U(e), !re) return;
|
|
2818
|
+
let n = (K ? t : He).filter((t, n) => e.has(o?.(t, K ? n : n % Q.limit) ?? String(K ? Q.skip + n : n)));
|
|
2819
|
+
re([...e], n);
|
|
2820
|
+
}
|
|
2821
|
+
function $e(e, t) {
|
|
2822
|
+
let n = new Set(W);
|
|
2823
|
+
t ? n.add(e) : n.delete(e), Qe(n);
|
|
2824
|
+
}
|
|
2825
|
+
function et(e) {
|
|
2826
|
+
let t = new Set(W);
|
|
2827
|
+
for (let n of Ke) e ? t.add(n) : t.delete(n);
|
|
2828
|
+
Qe(t);
|
|
2829
|
+
}
|
|
2830
|
+
let tt = i({}), [nt, rt] = a({});
|
|
2521
2831
|
n(() => {
|
|
2522
|
-
let e =
|
|
2832
|
+
let e = Z.filter((e) => e.sticky || e.width === "auto").map((e) => tt.current[e.key]).filter((e) => !!e);
|
|
2523
2833
|
if (e.length === 0) return;
|
|
2524
2834
|
let t = () => {
|
|
2525
2835
|
let e = {};
|
|
2526
|
-
for (let t of
|
|
2527
|
-
let n =
|
|
2836
|
+
for (let t of Z) {
|
|
2837
|
+
let n = tt.current[t.key];
|
|
2528
2838
|
if (!n) continue;
|
|
2529
2839
|
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);
|
|
2530
2840
|
i > 0 && (e[t.key] = i);
|
|
2531
2841
|
}
|
|
2532
|
-
|
|
2842
|
+
rt((t) => {
|
|
2533
2843
|
let n = Object.keys(e);
|
|
2534
2844
|
return n.length === Object.keys(t).length && n.every((n) => t[n] === e[n]) ? t : e;
|
|
2535
2845
|
});
|
|
@@ -2539,103 +2849,141 @@ function _t({ columns: e, data: t, getRowId: o, defaultVisibleColumns: s, limit:
|
|
|
2539
2849
|
for (let t of e) n.observe(t);
|
|
2540
2850
|
return () => n.disconnect();
|
|
2541
2851
|
}, [
|
|
2542
|
-
|
|
2543
|
-
|
|
2852
|
+
Z,
|
|
2853
|
+
Ue,
|
|
2544
2854
|
h,
|
|
2545
|
-
|
|
2855
|
+
Ae
|
|
2546
2856
|
]);
|
|
2547
|
-
let
|
|
2548
|
-
function
|
|
2549
|
-
|
|
2857
|
+
let at = r(() => yt(Z, nt), [Z, nt]);
|
|
2858
|
+
function ot(e) {
|
|
2859
|
+
K ? p(e) : (Se(e.limit), we(e.skip));
|
|
2550
2860
|
}
|
|
2551
|
-
return /* @__PURE__ */
|
|
2552
|
-
className: $("flex w-full flex-col gap-2",
|
|
2553
|
-
children: [/* @__PURE__ */
|
|
2554
|
-
className: $("w-full overflow-auto rounded border border-zinc-200/70", "scrollbar-none [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",
|
|
2555
|
-
children: /* @__PURE__ */
|
|
2556
|
-
className: $("min-w-full border-
|
|
2557
|
-
children: [/* @__PURE__ */
|
|
2558
|
-
className: $("bg-zinc-50",
|
|
2559
|
-
children: /* @__PURE__ */
|
|
2560
|
-
let
|
|
2561
|
-
return /* @__PURE__ */
|
|
2861
|
+
return /* @__PURE__ */ c("div", {
|
|
2862
|
+
className: $("flex w-full flex-col gap-2", L?.root),
|
|
2863
|
+
children: [/* @__PURE__ */ s("div", {
|
|
2864
|
+
className: $("w-full overflow-auto rounded border border-zinc-200/70", "scrollbar-none [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", L?.tableWrapper),
|
|
2865
|
+
children: /* @__PURE__ */ c("table", {
|
|
2866
|
+
className: $("min-w-full border-separate border-spacing-0 text-left text-sm text-zinc-500", L?.table),
|
|
2867
|
+
children: [/* @__PURE__ */ s("thead", {
|
|
2868
|
+
className: $("bg-zinc-50", L?.thead),
|
|
2869
|
+
children: /* @__PURE__ */ s("tr", { children: Z.map((e, t) => {
|
|
2870
|
+
let n = at[e.key], r = at[Z[t + 1]?.key]?.side === "right", i = B && e.key !== "__see_table_index__" && e.key !== x && e.sortable !== !1, a = xe?.key === e.key, o = a ? xe.direction : null;
|
|
2871
|
+
return /* @__PURE__ */ s("th", {
|
|
2562
2872
|
ref: (t) => {
|
|
2563
|
-
|
|
2873
|
+
tt.current[e.key] = t;
|
|
2564
2874
|
},
|
|
2565
|
-
draggable:
|
|
2566
|
-
onDragStart: (t) =>
|
|
2567
|
-
onDragOver: (t) =>
|
|
2568
|
-
onDrop: (t) =>
|
|
2569
|
-
onDragEnd:
|
|
2875
|
+
draggable: z && e.key !== "__see_table_index__",
|
|
2876
|
+
onDragStart: (t) => Le(e.key, t),
|
|
2877
|
+
onDragOver: (t) => Re(e.key, t),
|
|
2878
|
+
onDrop: (t) => ze(e.key, t),
|
|
2879
|
+
onDragEnd: Be,
|
|
2570
2880
|
onClick: () => {
|
|
2571
|
-
|
|
2881
|
+
i && Ve(e.key);
|
|
2572
2882
|
},
|
|
2573
|
-
"aria-sort":
|
|
2574
|
-
className: $("whitespace-nowrap border-b border-zinc-200 p-3", e.width !== "auto" && typeof e.width != "number" && "overflow-hidden text-ellipsis",
|
|
2575
|
-
style:
|
|
2576
|
-
children: /* @__PURE__ */
|
|
2883
|
+
"aria-sort": i ? o === "asc" ? "ascending" : o === "desc" ? "descending" : "none" : void 0,
|
|
2884
|
+
className: $("whitespace-nowrap border-b border-zinc-200 p-3", M && "border-r border-r-zinc-200/60 last:border-r-0", M && r && "border-r-0", M && n?.side === "right" && "border-l border-l-zinc-200/60", e.width !== "auto" && typeof e.width != "number" && "overflow-hidden text-ellipsis", i && "cursor-pointer select-none transition-colors hover:bg-zinc-100/80", z && e.key !== "__see_table_index__" && !i && "cursor-grab active:cursor-grabbing select-none", he === e.key && z && e.key !== "__see_table_index__" && "bg-zinc-200 ring-1 ring-inset ring-zinc-300", n && "sticky z-20 isolate bg-zinc-50", n?.side === "left" && "shadow-[4px_0_8px_-4px_rgba(0,0,0,0.15)]", n?.side === "right" && !M && "shadow-[-4px_0_8px_-4px_rgba(0,0,0,0.15)]", L?.th, e.className, "font-medium"),
|
|
2885
|
+
style: Dt(e, n),
|
|
2886
|
+
children: /* @__PURE__ */ c("span", {
|
|
2577
2887
|
className: "inline-flex items-center gap-1.5",
|
|
2578
2888
|
children: [
|
|
2579
|
-
|
|
2580
|
-
/* @__PURE__ */
|
|
2581
|
-
|
|
2889
|
+
z && e.key !== "__see_table_index__" ? /* @__PURE__ */ s(Ye, { className: "shrink-0 text-zinc-400 hover:text-zinc-600" }) : null,
|
|
2890
|
+
e.key === "__see_table_index__" && V ? /* @__PURE__ */ s(We, {
|
|
2891
|
+
label: "Select all rows on this page",
|
|
2892
|
+
checked: Ze,
|
|
2893
|
+
indeterminate: qe > 0 && !Ze,
|
|
2894
|
+
disabled: h || Ke.length === 0,
|
|
2895
|
+
onChange: et,
|
|
2896
|
+
className: $(P && "mr-1")
|
|
2897
|
+
}) : null,
|
|
2898
|
+
/* @__PURE__ */ s("span", {
|
|
2899
|
+
className: $(a && "font-semibold text-zinc-900"),
|
|
2582
2900
|
children: e.header
|
|
2583
2901
|
}),
|
|
2584
|
-
|
|
2902
|
+
i ? /* @__PURE__ */ s(Xe, { direction: o }) : null
|
|
2585
2903
|
]
|
|
2586
2904
|
})
|
|
2587
2905
|
}, e.key);
|
|
2588
2906
|
}) })
|
|
2589
|
-
}), /* @__PURE__ */
|
|
2590
|
-
className:
|
|
2591
|
-
children: h ? /* @__PURE__ */
|
|
2592
|
-
rowCount:
|
|
2593
|
-
columnCount:
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2907
|
+
}), /* @__PURE__ */ s("tbody", {
|
|
2908
|
+
className: L?.tbody,
|
|
2909
|
+
children: h ? /* @__PURE__ */ s(ft, {
|
|
2910
|
+
rowCount: Q.limit,
|
|
2911
|
+
columnCount: Z.length,
|
|
2912
|
+
bordered: M,
|
|
2913
|
+
className: L?.skeleton
|
|
2914
|
+
}) : Ue.map((e, t) => {
|
|
2915
|
+
let n = Ge(e, t), r = V && W.has(n);
|
|
2916
|
+
return /* @__PURE__ */ s("tr", {
|
|
2917
|
+
"data-selected": r || void 0,
|
|
2918
|
+
"aria-selected": V ? r : void 0,
|
|
2919
|
+
className: $("group bg-white", L?.tr),
|
|
2920
|
+
children: Z.map((i, a) => {
|
|
2921
|
+
let o = at[i.key], l = at[Z[a + 1]?.key]?.side === "right", u = i.cell ? i.cell(e, t) : e[i.key], d = i.key === "__see_table_index__" && V ? /* @__PURE__ */ c("span", {
|
|
2922
|
+
className: "inline-flex items-center gap-3",
|
|
2923
|
+
children: [/* @__PURE__ */ s(We, {
|
|
2924
|
+
label: `Select row ${Q.skip + t + 1}`,
|
|
2925
|
+
checked: r,
|
|
2926
|
+
onChange: (e) => $e(n, e)
|
|
2927
|
+
}), u]
|
|
2928
|
+
}) : u, f = se?.[i.key], p = typeof f == "function" ? f(e, t) : f;
|
|
2929
|
+
return /* @__PURE__ */ s("td", {
|
|
2930
|
+
className: $("border-b border-zinc-100/80 px-3 py-2 text-zinc-500 transition-colors group-hover:bg-zinc-50", M && "border-r border-r-zinc-100 last:border-r-0", M && l && "border-r-0", M && o?.side === "right" && "border-l border-l-zinc-100", i.width !== "auto" && typeof i.width != "number" && "overflow-hidden text-ellipsis whitespace-nowrap", o && "sticky z-10 isolate bg-white group-hover:bg-zinc-50", o?.side === "left" && "shadow-[4px_0_8px_-4px_rgba(0,0,0,0.15)]", o?.side === "right" && !M && "shadow-[-4px_0_8px_-4px_rgba(0,0,0,0.15)]", r && "bg-zinc-50 group-hover:bg-zinc-100", L?.td, i.className, p),
|
|
2931
|
+
style: Dt(i, o),
|
|
2932
|
+
children: d
|
|
2933
|
+
}, i.key);
|
|
2606
2934
|
})
|
|
2607
2935
|
}, n);
|
|
2608
2936
|
})
|
|
2609
2937
|
})]
|
|
2610
2938
|
})
|
|
2611
2939
|
}), (() => {
|
|
2612
|
-
let e =
|
|
2613
|
-
className:
|
|
2614
|
-
label:
|
|
2615
|
-
columns:
|
|
2616
|
-
stickyColumns: (
|
|
2940
|
+
let e = A === "before-limit" || A === "start", t = k ? /* @__PURE__ */ s(Je, {
|
|
2941
|
+
className: L?.columnToggle,
|
|
2942
|
+
label: j,
|
|
2943
|
+
columns: Ie,
|
|
2944
|
+
stickyColumns: (X ? [X, ...Pe] : Pe).map((e) => ({
|
|
2617
2945
|
key: e.key,
|
|
2618
|
-
label: e.header,
|
|
2946
|
+
label: e.key === "__see_table_index__" && !P ? "Selection" : e.header,
|
|
2619
2947
|
sticky: e.sticky
|
|
2620
2948
|
})),
|
|
2621
2949
|
onStickyChange: (e, t) => {
|
|
2622
|
-
|
|
2950
|
+
Ne((n) => new Map(n).set(e, t));
|
|
2623
2951
|
},
|
|
2624
|
-
visibleKeys:
|
|
2625
|
-
onChange:
|
|
2952
|
+
visibleKeys: Te,
|
|
2953
|
+
onChange: Ee,
|
|
2954
|
+
features: ie ? [
|
|
2955
|
+
{
|
|
2956
|
+
key: "rowSelection",
|
|
2957
|
+
label: "Row checkboxes",
|
|
2958
|
+
description: "Show a checkbox in the # column",
|
|
2959
|
+
enabled: V
|
|
2960
|
+
},
|
|
2961
|
+
{
|
|
2962
|
+
key: "columnReorder",
|
|
2963
|
+
label: "Drag & drop columns",
|
|
2964
|
+
description: "Reorder columns by dragging headers",
|
|
2965
|
+
enabled: z
|
|
2966
|
+
},
|
|
2967
|
+
{
|
|
2968
|
+
key: "sorting",
|
|
2969
|
+
label: "Sort by header",
|
|
2970
|
+
description: "Click a header title to sort",
|
|
2971
|
+
enabled: B
|
|
2972
|
+
}
|
|
2973
|
+
] : void 0,
|
|
2974
|
+
onFeatureChange: me
|
|
2626
2975
|
}) : void 0;
|
|
2627
|
-
return /* @__PURE__ */
|
|
2628
|
-
className:
|
|
2629
|
-
skip:
|
|
2630
|
-
limit:
|
|
2631
|
-
total:
|
|
2976
|
+
return /* @__PURE__ */ s(it, {
|
|
2977
|
+
className: L?.pagination,
|
|
2978
|
+
skip: Q.skip,
|
|
2979
|
+
limit: Q.limit,
|
|
2980
|
+
total: Q.total,
|
|
2632
2981
|
limitOptions: m,
|
|
2633
|
-
onChange:
|
|
2982
|
+
onChange: ot,
|
|
2634
2983
|
startAddon: e ? t : void 0,
|
|
2635
2984
|
endAddon: e ? void 0 : t
|
|
2636
2985
|
});
|
|
2637
2986
|
})()]
|
|
2638
2987
|
});
|
|
2639
2988
|
}
|
|
2640
|
-
|
|
2641
|
-
export { dt as DEFAULT_COL_MAX_WIDTH, ut as DEFAULT_COL_MIN_WIDTH, lt as INDEX_COLUMN_KEY, _t as MisterSeeGlobalTable };
|
|
2989
|
+
export { St as DEFAULT_COL_MAX_WIDTH, xt as DEFAULT_COL_MIN_WIDTH, bt as INDEX_COLUMN_KEY, at as MenuIcon, Ot as MisterSeeGlobalTable, dt as RowActionsMenu };
|