@agilys-system/design-system 1.0.0 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,102 +1,103 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as E, createElement as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsxs as C, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as E, createElement as Ne, useId as fe, useRef as ze, useState as Ce, useEffect as ae } from "react";
|
|
3
|
+
import { createPortal as _e } from "react-dom";
|
|
4
|
+
function be(e) {
|
|
5
|
+
var t, r, n = "";
|
|
6
|
+
if (typeof e == "string" || typeof e == "number") n += e;
|
|
6
7
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
7
8
|
var s = e.length;
|
|
8
|
-
for (t = 0; t < s; t++) e[t] && (r =
|
|
9
|
-
} else for (r in e) e[r] && (
|
|
10
|
-
return
|
|
9
|
+
for (t = 0; t < s; t++) e[t] && (r = be(e[t])) && (n && (n += " "), n += r);
|
|
10
|
+
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
11
|
+
return n;
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
-
for (var e, t, r = 0,
|
|
14
|
-
return
|
|
13
|
+
function ge() {
|
|
14
|
+
for (var e, t, r = 0, n = "", s = arguments.length; r < s; r++) (e = arguments[r]) && (t = be(e)) && (n && (n += " "), n += t);
|
|
15
|
+
return n;
|
|
15
16
|
}
|
|
16
|
-
const
|
|
17
|
-
var
|
|
18
|
-
if ((t == null ? void 0 : t.variants) == null) return
|
|
19
|
-
const { variants: s, defaultVariants:
|
|
20
|
-
const p = r == null ? void 0 : r[c], m =
|
|
17
|
+
const ie = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, le = ge, H = (e, t) => (r) => {
|
|
18
|
+
var n;
|
|
19
|
+
if ((t == null ? void 0 : t.variants) == null) return le(e, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
20
|
+
const { variants: s, defaultVariants: o } = t, i = Object.keys(s).map((c) => {
|
|
21
|
+
const p = r == null ? void 0 : r[c], m = o == null ? void 0 : o[c];
|
|
21
22
|
if (p === null) return null;
|
|
22
|
-
const
|
|
23
|
-
return s[c][
|
|
23
|
+
const b = ie(p) || ie(m);
|
|
24
|
+
return s[c][b];
|
|
24
25
|
}), a = r && Object.entries(r).reduce((c, p) => {
|
|
25
|
-
let [m,
|
|
26
|
-
return
|
|
27
|
-
}, {}), u = t == null || (
|
|
28
|
-
let { class: m, className:
|
|
29
|
-
return Object.entries(
|
|
30
|
-
let [
|
|
31
|
-
return Array.isArray(
|
|
32
|
-
...
|
|
26
|
+
let [m, b] = p;
|
|
27
|
+
return b === void 0 || (c[m] = b), c;
|
|
28
|
+
}, {}), u = t == null || (n = t.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((c, p) => {
|
|
29
|
+
let { class: m, className: b, ...z } = p;
|
|
30
|
+
return Object.entries(z).every((k) => {
|
|
31
|
+
let [g, f] = k;
|
|
32
|
+
return Array.isArray(f) ? f.includes({
|
|
33
|
+
...o,
|
|
33
34
|
...a
|
|
34
|
-
}[
|
|
35
|
-
...
|
|
35
|
+
}[g]) : {
|
|
36
|
+
...o,
|
|
36
37
|
...a
|
|
37
|
-
}[
|
|
38
|
+
}[g] === f;
|
|
38
39
|
}) ? [
|
|
39
40
|
...c,
|
|
40
41
|
m,
|
|
41
|
-
|
|
42
|
+
b
|
|
42
43
|
] : c;
|
|
43
44
|
}, []);
|
|
44
|
-
return
|
|
45
|
-
}, te = "-",
|
|
46
|
-
const t =
|
|
45
|
+
return le(e, i, u, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
46
|
+
}, te = "-", Se = (e) => {
|
|
47
|
+
const t = je(e), {
|
|
47
48
|
conflictingClassGroups: r,
|
|
48
|
-
conflictingClassGroupModifiers:
|
|
49
|
+
conflictingClassGroupModifiers: n
|
|
49
50
|
} = e;
|
|
50
51
|
return {
|
|
51
52
|
getClassGroupId: (i) => {
|
|
52
53
|
const a = i.split(te);
|
|
53
|
-
return a[0] === "" && a.length !== 1 && a.shift(),
|
|
54
|
+
return a[0] === "" && a.length !== 1 && a.shift(), me(a, t) || Me(i);
|
|
54
55
|
},
|
|
55
56
|
getConflictingClassGroupIds: (i, a) => {
|
|
56
57
|
const u = r[i] || [];
|
|
57
|
-
return a &&
|
|
58
|
+
return a && n[i] ? [...u, ...n[i]] : u;
|
|
58
59
|
}
|
|
59
60
|
};
|
|
60
|
-
},
|
|
61
|
+
}, me = (e, t) => {
|
|
61
62
|
var i;
|
|
62
63
|
if (e.length === 0)
|
|
63
64
|
return t.classGroupId;
|
|
64
|
-
const r = e[0],
|
|
65
|
+
const r = e[0], n = t.nextPart.get(r), s = n ? me(e.slice(1), n) : void 0;
|
|
65
66
|
if (s)
|
|
66
67
|
return s;
|
|
67
68
|
if (t.validators.length === 0)
|
|
68
69
|
return;
|
|
69
|
-
const
|
|
70
|
+
const o = e.join(te);
|
|
70
71
|
return (i = t.validators.find(({
|
|
71
72
|
validator: a
|
|
72
|
-
}) => a(
|
|
73
|
-
},
|
|
74
|
-
if (
|
|
75
|
-
const t =
|
|
73
|
+
}) => a(o))) == null ? void 0 : i.classGroupId;
|
|
74
|
+
}, ce = /^\[(.+)\]$/, Me = (e) => {
|
|
75
|
+
if (ce.test(e)) {
|
|
76
|
+
const t = ce.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
76
77
|
if (r)
|
|
77
78
|
return "arbitrary.." + r;
|
|
78
79
|
}
|
|
79
|
-
},
|
|
80
|
+
}, je = (e) => {
|
|
80
81
|
const {
|
|
81
82
|
theme: t,
|
|
82
83
|
prefix: r
|
|
83
|
-
} = e,
|
|
84
|
+
} = e, n = {
|
|
84
85
|
nextPart: /* @__PURE__ */ new Map(),
|
|
85
86
|
validators: []
|
|
86
87
|
};
|
|
87
|
-
return
|
|
88
|
-
|
|
89
|
-
}),
|
|
90
|
-
},
|
|
88
|
+
return Ie(Object.entries(e.classGroups), r).forEach(([o, i]) => {
|
|
89
|
+
Y(i, n, o, t);
|
|
90
|
+
}), n;
|
|
91
|
+
}, Y = (e, t, r, n) => {
|
|
91
92
|
e.forEach((s) => {
|
|
92
93
|
if (typeof s == "string") {
|
|
93
|
-
const
|
|
94
|
-
|
|
94
|
+
const o = s === "" ? t : de(t, s);
|
|
95
|
+
o.classGroupId = r;
|
|
95
96
|
return;
|
|
96
97
|
}
|
|
97
98
|
if (typeof s == "function") {
|
|
98
|
-
if (
|
|
99
|
-
|
|
99
|
+
if (Ae(s)) {
|
|
100
|
+
Y(s(n), t, r, n);
|
|
100
101
|
return;
|
|
101
102
|
}
|
|
102
103
|
t.validators.push({
|
|
@@ -105,22 +106,22 @@ const ae = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ie = be, Z
|
|
|
105
106
|
});
|
|
106
107
|
return;
|
|
107
108
|
}
|
|
108
|
-
Object.entries(s).forEach(([
|
|
109
|
-
|
|
109
|
+
Object.entries(s).forEach(([o, i]) => {
|
|
110
|
+
Y(i, de(t, o), r, n);
|
|
110
111
|
});
|
|
111
112
|
});
|
|
112
|
-
},
|
|
113
|
+
}, de = (e, t) => {
|
|
113
114
|
let r = e;
|
|
114
|
-
return t.split(te).forEach((
|
|
115
|
-
r.nextPart.has(
|
|
115
|
+
return t.split(te).forEach((n) => {
|
|
116
|
+
r.nextPart.has(n) || r.nextPart.set(n, {
|
|
116
117
|
nextPart: /* @__PURE__ */ new Map(),
|
|
117
118
|
validators: []
|
|
118
|
-
}), r = r.nextPart.get(
|
|
119
|
+
}), r = r.nextPart.get(n);
|
|
119
120
|
}), r;
|
|
120
|
-
},
|
|
121
|
-
const s =
|
|
121
|
+
}, Ae = (e) => e.isThemeGetter, Ie = (e, t) => t ? e.map(([r, n]) => {
|
|
122
|
+
const s = n.map((o) => typeof o == "string" ? t + o : typeof o == "object" ? Object.fromEntries(Object.entries(o).map(([i, a]) => [t + i, a])) : o);
|
|
122
123
|
return [r, s];
|
|
123
|
-
}) : e,
|
|
124
|
+
}) : e, Re = (e) => {
|
|
124
125
|
if (e < 1)
|
|
125
126
|
return {
|
|
126
127
|
get: () => {
|
|
@@ -128,179 +129,179 @@ const ae = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ie = be, Z
|
|
|
128
129
|
set: () => {
|
|
129
130
|
}
|
|
130
131
|
};
|
|
131
|
-
let t = 0, r = /* @__PURE__ */ new Map(),
|
|
132
|
-
const s = (
|
|
133
|
-
r.set(
|
|
132
|
+
let t = 0, r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
133
|
+
const s = (o, i) => {
|
|
134
|
+
r.set(o, i), t++, t > e && (t = 0, n = r, r = /* @__PURE__ */ new Map());
|
|
134
135
|
};
|
|
135
136
|
return {
|
|
136
|
-
get(
|
|
137
|
-
let i = r.get(
|
|
137
|
+
get(o) {
|
|
138
|
+
let i = r.get(o);
|
|
138
139
|
if (i !== void 0)
|
|
139
140
|
return i;
|
|
140
|
-
if ((i =
|
|
141
|
-
return s(
|
|
141
|
+
if ((i = n.get(o)) !== void 0)
|
|
142
|
+
return s(o, i), i;
|
|
142
143
|
},
|
|
143
|
-
set(
|
|
144
|
-
r.has(
|
|
144
|
+
set(o, i) {
|
|
145
|
+
r.has(o) ? r.set(o, i) : s(o, i);
|
|
145
146
|
}
|
|
146
147
|
};
|
|
147
|
-
},
|
|
148
|
+
}, he = "!", Ee = (e) => {
|
|
148
149
|
const {
|
|
149
150
|
separator: t,
|
|
150
151
|
experimentalParseClassName: r
|
|
151
|
-
} = e,
|
|
152
|
+
} = e, n = t.length === 1, s = t[0], o = t.length, i = (a) => {
|
|
152
153
|
const u = [];
|
|
153
154
|
let c = 0, p = 0, m;
|
|
154
|
-
for (let
|
|
155
|
-
let v = a[
|
|
155
|
+
for (let f = 0; f < a.length; f++) {
|
|
156
|
+
let v = a[f];
|
|
156
157
|
if (c === 0) {
|
|
157
|
-
if (v === s && (
|
|
158
|
-
u.push(a.slice(p,
|
|
158
|
+
if (v === s && (n || a.slice(f, f + o) === t)) {
|
|
159
|
+
u.push(a.slice(p, f)), p = f + o;
|
|
159
160
|
continue;
|
|
160
161
|
}
|
|
161
162
|
if (v === "/") {
|
|
162
|
-
m =
|
|
163
|
+
m = f;
|
|
163
164
|
continue;
|
|
164
165
|
}
|
|
165
166
|
}
|
|
166
167
|
v === "[" ? c++ : v === "]" && c--;
|
|
167
168
|
}
|
|
168
|
-
const
|
|
169
|
+
const b = u.length === 0 ? a : a.substring(p), z = b.startsWith(he), k = z ? b.substring(1) : b, g = m && m > p ? m - p : void 0;
|
|
169
170
|
return {
|
|
170
171
|
modifiers: u,
|
|
171
|
-
hasImportantModifier:
|
|
172
|
-
baseClassName:
|
|
173
|
-
maybePostfixModifierPosition:
|
|
172
|
+
hasImportantModifier: z,
|
|
173
|
+
baseClassName: k,
|
|
174
|
+
maybePostfixModifierPosition: g
|
|
174
175
|
};
|
|
175
176
|
};
|
|
176
177
|
return r ? (a) => r({
|
|
177
178
|
className: a,
|
|
178
179
|
parseClassName: i
|
|
179
180
|
}) : i;
|
|
180
|
-
},
|
|
181
|
+
}, Ve = (e) => {
|
|
181
182
|
if (e.length <= 1)
|
|
182
183
|
return e;
|
|
183
184
|
const t = [];
|
|
184
185
|
let r = [];
|
|
185
|
-
return e.forEach((
|
|
186
|
-
|
|
186
|
+
return e.forEach((n) => {
|
|
187
|
+
n[0] === "[" ? (t.push(...r.sort(), n), r = []) : r.push(n);
|
|
187
188
|
}), t.push(...r.sort()), t;
|
|
188
|
-
},
|
|
189
|
-
cache:
|
|
190
|
-
parseClassName:
|
|
191
|
-
...
|
|
192
|
-
}),
|
|
189
|
+
}, Ge = (e) => ({
|
|
190
|
+
cache: Re(e.cacheSize),
|
|
191
|
+
parseClassName: Ee(e),
|
|
192
|
+
...Se(e)
|
|
193
|
+
}), Te = /\s+/, Le = (e, t) => {
|
|
193
194
|
const {
|
|
194
195
|
parseClassName: r,
|
|
195
|
-
getClassGroupId:
|
|
196
|
+
getClassGroupId: n,
|
|
196
197
|
getConflictingClassGroupIds: s
|
|
197
|
-
} = t,
|
|
198
|
+
} = t, o = [], i = e.trim().split(Te);
|
|
198
199
|
let a = "";
|
|
199
200
|
for (let u = i.length - 1; u >= 0; u -= 1) {
|
|
200
201
|
const c = i[u], {
|
|
201
202
|
modifiers: p,
|
|
202
203
|
hasImportantModifier: m,
|
|
203
|
-
baseClassName:
|
|
204
|
-
maybePostfixModifierPosition:
|
|
204
|
+
baseClassName: b,
|
|
205
|
+
maybePostfixModifierPosition: z
|
|
205
206
|
} = r(c);
|
|
206
|
-
let
|
|
207
|
-
if (!
|
|
208
|
-
if (!
|
|
207
|
+
let k = !!z, g = n(k ? b.substring(0, z) : b);
|
|
208
|
+
if (!g) {
|
|
209
|
+
if (!k) {
|
|
209
210
|
a = c + (a.length > 0 ? " " + a : a);
|
|
210
211
|
continue;
|
|
211
212
|
}
|
|
212
|
-
if (
|
|
213
|
+
if (g = n(b), !g) {
|
|
213
214
|
a = c + (a.length > 0 ? " " + a : a);
|
|
214
215
|
continue;
|
|
215
216
|
}
|
|
216
|
-
|
|
217
|
+
k = !1;
|
|
217
218
|
}
|
|
218
|
-
const
|
|
219
|
-
if (
|
|
219
|
+
const f = Ve(p).join(":"), v = m ? f + he : f, N = v + g;
|
|
220
|
+
if (o.includes(N))
|
|
220
221
|
continue;
|
|
221
|
-
|
|
222
|
-
const
|
|
223
|
-
for (let
|
|
224
|
-
const L =
|
|
225
|
-
|
|
222
|
+
o.push(N);
|
|
223
|
+
const M = s(g, k);
|
|
224
|
+
for (let j = 0; j < M.length; ++j) {
|
|
225
|
+
const L = M[j];
|
|
226
|
+
o.push(v + L);
|
|
226
227
|
}
|
|
227
228
|
a = c + (a.length > 0 ? " " + a : a);
|
|
228
229
|
}
|
|
229
230
|
return a;
|
|
230
231
|
};
|
|
231
|
-
function
|
|
232
|
-
let e = 0, t, r,
|
|
232
|
+
function We() {
|
|
233
|
+
let e = 0, t, r, n = "";
|
|
233
234
|
for (; e < arguments.length; )
|
|
234
|
-
(t = arguments[e++]) && (r =
|
|
235
|
-
return
|
|
235
|
+
(t = arguments[e++]) && (r = xe(t)) && (n && (n += " "), n += r);
|
|
236
|
+
return n;
|
|
236
237
|
}
|
|
237
|
-
const
|
|
238
|
+
const xe = (e) => {
|
|
238
239
|
if (typeof e == "string")
|
|
239
240
|
return e;
|
|
240
241
|
let t, r = "";
|
|
241
|
-
for (let
|
|
242
|
-
e[
|
|
242
|
+
for (let n = 0; n < e.length; n++)
|
|
243
|
+
e[n] && (t = xe(e[n])) && (r && (r += " "), r += t);
|
|
243
244
|
return r;
|
|
244
245
|
};
|
|
245
|
-
function
|
|
246
|
-
let r,
|
|
246
|
+
function Be(e, ...t) {
|
|
247
|
+
let r, n, s, o = i;
|
|
247
248
|
function i(u) {
|
|
248
249
|
const c = t.reduce((p, m) => m(p), e());
|
|
249
|
-
return r =
|
|
250
|
+
return r = Ge(c), n = r.cache.get, s = r.cache.set, o = a, a(u);
|
|
250
251
|
}
|
|
251
252
|
function a(u) {
|
|
252
|
-
const c =
|
|
253
|
+
const c = n(u);
|
|
253
254
|
if (c)
|
|
254
255
|
return c;
|
|
255
|
-
const p =
|
|
256
|
+
const p = Le(u, r);
|
|
256
257
|
return s(u, p), p;
|
|
257
258
|
}
|
|
258
259
|
return function() {
|
|
259
|
-
return
|
|
260
|
+
return o(We.apply(null, arguments));
|
|
260
261
|
};
|
|
261
262
|
}
|
|
262
|
-
const
|
|
263
|
+
const h = (e) => {
|
|
263
264
|
const t = (r) => r[e] || [];
|
|
264
265
|
return t.isThemeGetter = !0, t;
|
|
265
|
-
},
|
|
266
|
-
const
|
|
267
|
-
return
|
|
268
|
-
},
|
|
266
|
+
}, ye = /^\[(?:([a-z-]+):)?(.+)\]$/i, Pe = /^\d+\/\d+$/, $e = /* @__PURE__ */ new Set(["px", "full", "screen"]), Oe = /^(\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$/, Fe = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, He = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, qe = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, R = (e) => W(e) || $e.has(e) || Pe.test(e), V = (e) => B(e, "length", et), W = (e) => !!e && !Number.isNaN(Number(e)), Q = (e) => B(e, "number", W), O = (e) => !!e && Number.isInteger(Number(e)), Je = (e) => e.endsWith("%") && W(e.slice(0, -1)), d = (e) => ye.test(e), G = (e) => Oe.test(e), Xe = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Ze = (e) => B(e, Xe, ve), Ke = (e) => B(e, "position", ve), Qe = /* @__PURE__ */ new Set(["image", "url"]), Ye = (e) => B(e, Qe, rt), De = (e) => B(e, "", tt), U = () => !0, B = (e, t, r) => {
|
|
267
|
+
const n = ye.exec(e);
|
|
268
|
+
return n ? n[1] ? typeof t == "string" ? n[1] === t : t.has(n[1]) : r(n[2]) : !1;
|
|
269
|
+
}, et = (e) => (
|
|
269
270
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
270
271
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
271
272
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
272
|
-
|
|
273
|
-
),
|
|
274
|
-
const e =
|
|
273
|
+
Ue.test(e) && !Fe.test(e)
|
|
274
|
+
), ve = () => !1, tt = (e) => He.test(e), rt = (e) => qe.test(e), nt = () => {
|
|
275
|
+
const e = h("colors"), t = h("spacing"), r = h("blur"), n = h("brightness"), s = h("borderColor"), o = h("borderRadius"), i = h("borderSpacing"), a = h("borderWidth"), u = h("contrast"), c = h("grayscale"), p = h("hueRotate"), m = h("invert"), b = h("gap"), z = h("gradientColorStops"), k = h("gradientColorStopPositions"), g = h("inset"), f = h("margin"), v = h("opacity"), N = h("padding"), M = h("saturate"), j = h("scale"), L = h("sepia"), q = h("skew"), w = h("space"), _ = h("translate"), T = () => ["auto", "contain", "none"], A = () => ["auto", "hidden", "clip", "visible", "scroll"], P = () => ["auto", d, t], y = () => [d, t], re = () => ["", R, V], J = () => ["auto", W, d], ne = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], X = () => ["solid", "dashed", "dotted", "double", "none"], oe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], $ = () => ["", "0", d], se = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [W, d];
|
|
275
276
|
return {
|
|
276
277
|
cacheSize: 500,
|
|
277
278
|
separator: ":",
|
|
278
279
|
theme: {
|
|
279
280
|
colors: [U],
|
|
280
|
-
spacing: [R,
|
|
281
|
-
blur: ["none", "",
|
|
281
|
+
spacing: [R, V],
|
|
282
|
+
blur: ["none", "", G, d],
|
|
282
283
|
brightness: I(),
|
|
283
284
|
borderColor: [e],
|
|
284
|
-
borderRadius: ["none", "", "full",
|
|
285
|
-
borderSpacing:
|
|
285
|
+
borderRadius: ["none", "", "full", G, d],
|
|
286
|
+
borderSpacing: y(),
|
|
286
287
|
borderWidth: re(),
|
|
287
288
|
contrast: I(),
|
|
288
289
|
grayscale: $(),
|
|
289
290
|
hueRotate: I(),
|
|
290
291
|
invert: $(),
|
|
291
|
-
gap:
|
|
292
|
+
gap: y(),
|
|
292
293
|
gradientColorStops: [e],
|
|
293
|
-
gradientColorStopPositions: [
|
|
294
|
+
gradientColorStopPositions: [Je, V],
|
|
294
295
|
inset: P(),
|
|
295
296
|
margin: P(),
|
|
296
297
|
opacity: I(),
|
|
297
|
-
padding:
|
|
298
|
+
padding: y(),
|
|
298
299
|
saturate: I(),
|
|
299
300
|
scale: I(),
|
|
300
301
|
sepia: $(),
|
|
301
302
|
skew: I(),
|
|
302
|
-
space:
|
|
303
|
-
translate:
|
|
303
|
+
space: y(),
|
|
304
|
+
translate: y()
|
|
304
305
|
},
|
|
305
306
|
classGroups: {
|
|
306
307
|
// Layout
|
|
@@ -321,7 +322,7 @@ const g = (e) => {
|
|
|
321
322
|
* @see https://tailwindcss.com/docs/columns
|
|
322
323
|
*/
|
|
323
324
|
columns: [{
|
|
324
|
-
columns: [
|
|
325
|
+
columns: [G]
|
|
325
326
|
}],
|
|
326
327
|
/**
|
|
327
328
|
* Break After
|
|
@@ -394,28 +395,28 @@ const g = (e) => {
|
|
|
394
395
|
* @see https://tailwindcss.com/docs/object-position
|
|
395
396
|
*/
|
|
396
397
|
"object-position": [{
|
|
397
|
-
object: [...
|
|
398
|
+
object: [...ne(), d]
|
|
398
399
|
}],
|
|
399
400
|
/**
|
|
400
401
|
* Overflow
|
|
401
402
|
* @see https://tailwindcss.com/docs/overflow
|
|
402
403
|
*/
|
|
403
404
|
overflow: [{
|
|
404
|
-
overflow:
|
|
405
|
+
overflow: A()
|
|
405
406
|
}],
|
|
406
407
|
/**
|
|
407
408
|
* Overflow X
|
|
408
409
|
* @see https://tailwindcss.com/docs/overflow
|
|
409
410
|
*/
|
|
410
411
|
"overflow-x": [{
|
|
411
|
-
"overflow-x":
|
|
412
|
+
"overflow-x": A()
|
|
412
413
|
}],
|
|
413
414
|
/**
|
|
414
415
|
* Overflow Y
|
|
415
416
|
* @see https://tailwindcss.com/docs/overflow
|
|
416
417
|
*/
|
|
417
418
|
"overflow-y": [{
|
|
418
|
-
"overflow-y":
|
|
419
|
+
"overflow-y": A()
|
|
419
420
|
}],
|
|
420
421
|
/**
|
|
421
422
|
* Overscroll Behavior
|
|
@@ -448,63 +449,63 @@ const g = (e) => {
|
|
|
448
449
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
449
450
|
*/
|
|
450
451
|
inset: [{
|
|
451
|
-
inset: [
|
|
452
|
+
inset: [g]
|
|
452
453
|
}],
|
|
453
454
|
/**
|
|
454
455
|
* Right / Left
|
|
455
456
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
456
457
|
*/
|
|
457
458
|
"inset-x": [{
|
|
458
|
-
"inset-x": [
|
|
459
|
+
"inset-x": [g]
|
|
459
460
|
}],
|
|
460
461
|
/**
|
|
461
462
|
* Top / Bottom
|
|
462
463
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
463
464
|
*/
|
|
464
465
|
"inset-y": [{
|
|
465
|
-
"inset-y": [
|
|
466
|
+
"inset-y": [g]
|
|
466
467
|
}],
|
|
467
468
|
/**
|
|
468
469
|
* Start
|
|
469
470
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
470
471
|
*/
|
|
471
472
|
start: [{
|
|
472
|
-
start: [
|
|
473
|
+
start: [g]
|
|
473
474
|
}],
|
|
474
475
|
/**
|
|
475
476
|
* End
|
|
476
477
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
477
478
|
*/
|
|
478
479
|
end: [{
|
|
479
|
-
end: [
|
|
480
|
+
end: [g]
|
|
480
481
|
}],
|
|
481
482
|
/**
|
|
482
483
|
* Top
|
|
483
484
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
484
485
|
*/
|
|
485
486
|
top: [{
|
|
486
|
-
top: [
|
|
487
|
+
top: [g]
|
|
487
488
|
}],
|
|
488
489
|
/**
|
|
489
490
|
* Right
|
|
490
491
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
491
492
|
*/
|
|
492
493
|
right: [{
|
|
493
|
-
right: [
|
|
494
|
+
right: [g]
|
|
494
495
|
}],
|
|
495
496
|
/**
|
|
496
497
|
* Bottom
|
|
497
498
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
498
499
|
*/
|
|
499
500
|
bottom: [{
|
|
500
|
-
bottom: [
|
|
501
|
+
bottom: [g]
|
|
501
502
|
}],
|
|
502
503
|
/**
|
|
503
504
|
* Left
|
|
504
505
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
505
506
|
*/
|
|
506
507
|
left: [{
|
|
507
|
-
left: [
|
|
508
|
+
left: [g]
|
|
508
509
|
}],
|
|
509
510
|
/**
|
|
510
511
|
* Visibility
|
|
@@ -589,14 +590,14 @@ const g = (e) => {
|
|
|
589
590
|
* @see https://tailwindcss.com/docs/grid-column
|
|
590
591
|
*/
|
|
591
592
|
"col-start": [{
|
|
592
|
-
"col-start":
|
|
593
|
+
"col-start": J()
|
|
593
594
|
}],
|
|
594
595
|
/**
|
|
595
596
|
* Grid Column End
|
|
596
597
|
* @see https://tailwindcss.com/docs/grid-column
|
|
597
598
|
*/
|
|
598
599
|
"col-end": [{
|
|
599
|
-
"col-end":
|
|
600
|
+
"col-end": J()
|
|
600
601
|
}],
|
|
601
602
|
/**
|
|
602
603
|
* Grid Template Rows
|
|
@@ -619,14 +620,14 @@ const g = (e) => {
|
|
|
619
620
|
* @see https://tailwindcss.com/docs/grid-row
|
|
620
621
|
*/
|
|
621
622
|
"row-start": [{
|
|
622
|
-
"row-start":
|
|
623
|
+
"row-start": J()
|
|
623
624
|
}],
|
|
624
625
|
/**
|
|
625
626
|
* Grid Row End
|
|
626
627
|
* @see https://tailwindcss.com/docs/grid-row
|
|
627
628
|
*/
|
|
628
629
|
"row-end": [{
|
|
629
|
-
"row-end":
|
|
630
|
+
"row-end": J()
|
|
630
631
|
}],
|
|
631
632
|
/**
|
|
632
633
|
* Grid Auto Flow
|
|
@@ -654,28 +655,28 @@ const g = (e) => {
|
|
|
654
655
|
* @see https://tailwindcss.com/docs/gap
|
|
655
656
|
*/
|
|
656
657
|
gap: [{
|
|
657
|
-
gap: [
|
|
658
|
+
gap: [b]
|
|
658
659
|
}],
|
|
659
660
|
/**
|
|
660
661
|
* Gap X
|
|
661
662
|
* @see https://tailwindcss.com/docs/gap
|
|
662
663
|
*/
|
|
663
664
|
"gap-x": [{
|
|
664
|
-
"gap-x": [
|
|
665
|
+
"gap-x": [b]
|
|
665
666
|
}],
|
|
666
667
|
/**
|
|
667
668
|
* Gap Y
|
|
668
669
|
* @see https://tailwindcss.com/docs/gap
|
|
669
670
|
*/
|
|
670
671
|
"gap-y": [{
|
|
671
|
-
"gap-y": [
|
|
672
|
+
"gap-y": [b]
|
|
672
673
|
}],
|
|
673
674
|
/**
|
|
674
675
|
* Justify Content
|
|
675
676
|
* @see https://tailwindcss.com/docs/justify-content
|
|
676
677
|
*/
|
|
677
678
|
"justify-content": [{
|
|
678
|
-
justify: ["normal", ...
|
|
679
|
+
justify: ["normal", ...K()]
|
|
679
680
|
}],
|
|
680
681
|
/**
|
|
681
682
|
* Justify Items
|
|
@@ -696,7 +697,7 @@ const g = (e) => {
|
|
|
696
697
|
* @see https://tailwindcss.com/docs/align-content
|
|
697
698
|
*/
|
|
698
699
|
"align-content": [{
|
|
699
|
-
content: ["normal", ...
|
|
700
|
+
content: ["normal", ...K(), "baseline"]
|
|
700
701
|
}],
|
|
701
702
|
/**
|
|
702
703
|
* Align Items
|
|
@@ -717,7 +718,7 @@ const g = (e) => {
|
|
|
717
718
|
* @see https://tailwindcss.com/docs/place-content
|
|
718
719
|
*/
|
|
719
720
|
"place-content": [{
|
|
720
|
-
"place-content": [...
|
|
721
|
+
"place-content": [...K(), "baseline"]
|
|
721
722
|
}],
|
|
722
723
|
/**
|
|
723
724
|
* Place Items
|
|
@@ -739,133 +740,133 @@ const g = (e) => {
|
|
|
739
740
|
* @see https://tailwindcss.com/docs/padding
|
|
740
741
|
*/
|
|
741
742
|
p: [{
|
|
742
|
-
p: [
|
|
743
|
+
p: [N]
|
|
743
744
|
}],
|
|
744
745
|
/**
|
|
745
746
|
* Padding X
|
|
746
747
|
* @see https://tailwindcss.com/docs/padding
|
|
747
748
|
*/
|
|
748
749
|
px: [{
|
|
749
|
-
px: [
|
|
750
|
+
px: [N]
|
|
750
751
|
}],
|
|
751
752
|
/**
|
|
752
753
|
* Padding Y
|
|
753
754
|
* @see https://tailwindcss.com/docs/padding
|
|
754
755
|
*/
|
|
755
756
|
py: [{
|
|
756
|
-
py: [
|
|
757
|
+
py: [N]
|
|
757
758
|
}],
|
|
758
759
|
/**
|
|
759
760
|
* Padding Start
|
|
760
761
|
* @see https://tailwindcss.com/docs/padding
|
|
761
762
|
*/
|
|
762
763
|
ps: [{
|
|
763
|
-
ps: [
|
|
764
|
+
ps: [N]
|
|
764
765
|
}],
|
|
765
766
|
/**
|
|
766
767
|
* Padding End
|
|
767
768
|
* @see https://tailwindcss.com/docs/padding
|
|
768
769
|
*/
|
|
769
770
|
pe: [{
|
|
770
|
-
pe: [
|
|
771
|
+
pe: [N]
|
|
771
772
|
}],
|
|
772
773
|
/**
|
|
773
774
|
* Padding Top
|
|
774
775
|
* @see https://tailwindcss.com/docs/padding
|
|
775
776
|
*/
|
|
776
777
|
pt: [{
|
|
777
|
-
pt: [
|
|
778
|
+
pt: [N]
|
|
778
779
|
}],
|
|
779
780
|
/**
|
|
780
781
|
* Padding Right
|
|
781
782
|
* @see https://tailwindcss.com/docs/padding
|
|
782
783
|
*/
|
|
783
784
|
pr: [{
|
|
784
|
-
pr: [
|
|
785
|
+
pr: [N]
|
|
785
786
|
}],
|
|
786
787
|
/**
|
|
787
788
|
* Padding Bottom
|
|
788
789
|
* @see https://tailwindcss.com/docs/padding
|
|
789
790
|
*/
|
|
790
791
|
pb: [{
|
|
791
|
-
pb: [
|
|
792
|
+
pb: [N]
|
|
792
793
|
}],
|
|
793
794
|
/**
|
|
794
795
|
* Padding Left
|
|
795
796
|
* @see https://tailwindcss.com/docs/padding
|
|
796
797
|
*/
|
|
797
798
|
pl: [{
|
|
798
|
-
pl: [
|
|
799
|
+
pl: [N]
|
|
799
800
|
}],
|
|
800
801
|
/**
|
|
801
802
|
* Margin
|
|
802
803
|
* @see https://tailwindcss.com/docs/margin
|
|
803
804
|
*/
|
|
804
805
|
m: [{
|
|
805
|
-
m: [
|
|
806
|
+
m: [f]
|
|
806
807
|
}],
|
|
807
808
|
/**
|
|
808
809
|
* Margin X
|
|
809
810
|
* @see https://tailwindcss.com/docs/margin
|
|
810
811
|
*/
|
|
811
812
|
mx: [{
|
|
812
|
-
mx: [
|
|
813
|
+
mx: [f]
|
|
813
814
|
}],
|
|
814
815
|
/**
|
|
815
816
|
* Margin Y
|
|
816
817
|
* @see https://tailwindcss.com/docs/margin
|
|
817
818
|
*/
|
|
818
819
|
my: [{
|
|
819
|
-
my: [
|
|
820
|
+
my: [f]
|
|
820
821
|
}],
|
|
821
822
|
/**
|
|
822
823
|
* Margin Start
|
|
823
824
|
* @see https://tailwindcss.com/docs/margin
|
|
824
825
|
*/
|
|
825
826
|
ms: [{
|
|
826
|
-
ms: [
|
|
827
|
+
ms: [f]
|
|
827
828
|
}],
|
|
828
829
|
/**
|
|
829
830
|
* Margin End
|
|
830
831
|
* @see https://tailwindcss.com/docs/margin
|
|
831
832
|
*/
|
|
832
833
|
me: [{
|
|
833
|
-
me: [
|
|
834
|
+
me: [f]
|
|
834
835
|
}],
|
|
835
836
|
/**
|
|
836
837
|
* Margin Top
|
|
837
838
|
* @see https://tailwindcss.com/docs/margin
|
|
838
839
|
*/
|
|
839
840
|
mt: [{
|
|
840
|
-
mt: [
|
|
841
|
+
mt: [f]
|
|
841
842
|
}],
|
|
842
843
|
/**
|
|
843
844
|
* Margin Right
|
|
844
845
|
* @see https://tailwindcss.com/docs/margin
|
|
845
846
|
*/
|
|
846
847
|
mr: [{
|
|
847
|
-
mr: [
|
|
848
|
+
mr: [f]
|
|
848
849
|
}],
|
|
849
850
|
/**
|
|
850
851
|
* Margin Bottom
|
|
851
852
|
* @see https://tailwindcss.com/docs/margin
|
|
852
853
|
*/
|
|
853
854
|
mb: [{
|
|
854
|
-
mb: [
|
|
855
|
+
mb: [f]
|
|
855
856
|
}],
|
|
856
857
|
/**
|
|
857
858
|
* Margin Left
|
|
858
859
|
* @see https://tailwindcss.com/docs/margin
|
|
859
860
|
*/
|
|
860
861
|
ml: [{
|
|
861
|
-
ml: [
|
|
862
|
+
ml: [f]
|
|
862
863
|
}],
|
|
863
864
|
/**
|
|
864
865
|
* Space Between X
|
|
865
866
|
* @see https://tailwindcss.com/docs/space
|
|
866
867
|
*/
|
|
867
868
|
"space-x": [{
|
|
868
|
-
"space-x": [
|
|
869
|
+
"space-x": [w]
|
|
869
870
|
}],
|
|
870
871
|
/**
|
|
871
872
|
* Space Between X Reverse
|
|
@@ -877,7 +878,7 @@ const g = (e) => {
|
|
|
877
878
|
* @see https://tailwindcss.com/docs/space
|
|
878
879
|
*/
|
|
879
880
|
"space-y": [{
|
|
880
|
-
"space-y": [
|
|
881
|
+
"space-y": [w]
|
|
881
882
|
}],
|
|
882
883
|
/**
|
|
883
884
|
* Space Between Y Reverse
|
|
@@ -905,8 +906,8 @@ const g = (e) => {
|
|
|
905
906
|
*/
|
|
906
907
|
"max-w": [{
|
|
907
908
|
"max-w": [d, t, "none", "full", "min", "max", "fit", "prose", {
|
|
908
|
-
screen: [
|
|
909
|
-
},
|
|
909
|
+
screen: [G]
|
|
910
|
+
}, G]
|
|
910
911
|
}],
|
|
911
912
|
/**
|
|
912
913
|
* Height
|
|
@@ -942,7 +943,7 @@ const g = (e) => {
|
|
|
942
943
|
* @see https://tailwindcss.com/docs/font-size
|
|
943
944
|
*/
|
|
944
945
|
"font-size": [{
|
|
945
|
-
text: ["base",
|
|
946
|
+
text: ["base", G, V]
|
|
946
947
|
}],
|
|
947
948
|
/**
|
|
948
949
|
* Font Smoothing
|
|
@@ -959,7 +960,7 @@ const g = (e) => {
|
|
|
959
960
|
* @see https://tailwindcss.com/docs/font-weight
|
|
960
961
|
*/
|
|
961
962
|
"font-weight": [{
|
|
962
|
-
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black",
|
|
963
|
+
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Q]
|
|
963
964
|
}],
|
|
964
965
|
/**
|
|
965
966
|
* Font Family
|
|
@@ -1010,7 +1011,7 @@ const g = (e) => {
|
|
|
1010
1011
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1011
1012
|
*/
|
|
1012
1013
|
"line-clamp": [{
|
|
1013
|
-
"line-clamp": ["none", W,
|
|
1014
|
+
"line-clamp": ["none", W, Q]
|
|
1014
1015
|
}],
|
|
1015
1016
|
/**
|
|
1016
1017
|
* Line Height
|
|
@@ -1086,14 +1087,14 @@ const g = (e) => {
|
|
|
1086
1087
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1087
1088
|
*/
|
|
1088
1089
|
"text-decoration-style": [{
|
|
1089
|
-
decoration: [...
|
|
1090
|
+
decoration: [...X(), "wavy"]
|
|
1090
1091
|
}],
|
|
1091
1092
|
/**
|
|
1092
1093
|
* Text Decoration Thickness
|
|
1093
1094
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1094
1095
|
*/
|
|
1095
1096
|
"text-decoration-thickness": [{
|
|
1096
|
-
decoration: ["auto", "from-font", R,
|
|
1097
|
+
decoration: ["auto", "from-font", R, V]
|
|
1097
1098
|
}],
|
|
1098
1099
|
/**
|
|
1099
1100
|
* Text Underline Offset
|
|
@@ -1131,7 +1132,7 @@ const g = (e) => {
|
|
|
1131
1132
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1132
1133
|
*/
|
|
1133
1134
|
indent: [{
|
|
1134
|
-
indent:
|
|
1135
|
+
indent: y()
|
|
1135
1136
|
}],
|
|
1136
1137
|
/**
|
|
1137
1138
|
* Vertical Alignment
|
|
@@ -1203,7 +1204,7 @@ const g = (e) => {
|
|
|
1203
1204
|
* @see https://tailwindcss.com/docs/background-position
|
|
1204
1205
|
*/
|
|
1205
1206
|
"bg-position": [{
|
|
1206
|
-
bg: [...
|
|
1207
|
+
bg: [...ne(), Ke]
|
|
1207
1208
|
}],
|
|
1208
1209
|
/**
|
|
1209
1210
|
* Background Repeat
|
|
@@ -1219,7 +1220,7 @@ const g = (e) => {
|
|
|
1219
1220
|
* @see https://tailwindcss.com/docs/background-size
|
|
1220
1221
|
*/
|
|
1221
1222
|
"bg-size": [{
|
|
1222
|
-
bg: ["auto", "cover", "contain",
|
|
1223
|
+
bg: ["auto", "cover", "contain", Ze]
|
|
1223
1224
|
}],
|
|
1224
1225
|
/**
|
|
1225
1226
|
* Background Image
|
|
@@ -1228,7 +1229,7 @@ const g = (e) => {
|
|
|
1228
1229
|
"bg-image": [{
|
|
1229
1230
|
bg: ["none", {
|
|
1230
1231
|
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1231
|
-
},
|
|
1232
|
+
}, Ye]
|
|
1232
1233
|
}],
|
|
1233
1234
|
/**
|
|
1234
1235
|
* Background Color
|
|
@@ -1242,42 +1243,42 @@ const g = (e) => {
|
|
|
1242
1243
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1243
1244
|
*/
|
|
1244
1245
|
"gradient-from-pos": [{
|
|
1245
|
-
from: [
|
|
1246
|
+
from: [k]
|
|
1246
1247
|
}],
|
|
1247
1248
|
/**
|
|
1248
1249
|
* Gradient Color Stops Via Position
|
|
1249
1250
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1250
1251
|
*/
|
|
1251
1252
|
"gradient-via-pos": [{
|
|
1252
|
-
via: [
|
|
1253
|
+
via: [k]
|
|
1253
1254
|
}],
|
|
1254
1255
|
/**
|
|
1255
1256
|
* Gradient Color Stops To Position
|
|
1256
1257
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1257
1258
|
*/
|
|
1258
1259
|
"gradient-to-pos": [{
|
|
1259
|
-
to: [
|
|
1260
|
+
to: [k]
|
|
1260
1261
|
}],
|
|
1261
1262
|
/**
|
|
1262
1263
|
* Gradient Color Stops From
|
|
1263
1264
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1264
1265
|
*/
|
|
1265
1266
|
"gradient-from": [{
|
|
1266
|
-
from: [
|
|
1267
|
+
from: [z]
|
|
1267
1268
|
}],
|
|
1268
1269
|
/**
|
|
1269
1270
|
* Gradient Color Stops Via
|
|
1270
1271
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1271
1272
|
*/
|
|
1272
1273
|
"gradient-via": [{
|
|
1273
|
-
via: [
|
|
1274
|
+
via: [z]
|
|
1274
1275
|
}],
|
|
1275
1276
|
/**
|
|
1276
1277
|
* Gradient Color Stops To
|
|
1277
1278
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1278
1279
|
*/
|
|
1279
1280
|
"gradient-to": [{
|
|
1280
|
-
to: [
|
|
1281
|
+
to: [z]
|
|
1281
1282
|
}],
|
|
1282
1283
|
// Borders
|
|
1283
1284
|
/**
|
|
@@ -1285,105 +1286,105 @@ const g = (e) => {
|
|
|
1285
1286
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1286
1287
|
*/
|
|
1287
1288
|
rounded: [{
|
|
1288
|
-
rounded: [
|
|
1289
|
+
rounded: [o]
|
|
1289
1290
|
}],
|
|
1290
1291
|
/**
|
|
1291
1292
|
* Border Radius Start
|
|
1292
1293
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1293
1294
|
*/
|
|
1294
1295
|
"rounded-s": [{
|
|
1295
|
-
"rounded-s": [
|
|
1296
|
+
"rounded-s": [o]
|
|
1296
1297
|
}],
|
|
1297
1298
|
/**
|
|
1298
1299
|
* Border Radius End
|
|
1299
1300
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1300
1301
|
*/
|
|
1301
1302
|
"rounded-e": [{
|
|
1302
|
-
"rounded-e": [
|
|
1303
|
+
"rounded-e": [o]
|
|
1303
1304
|
}],
|
|
1304
1305
|
/**
|
|
1305
1306
|
* Border Radius Top
|
|
1306
1307
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1307
1308
|
*/
|
|
1308
1309
|
"rounded-t": [{
|
|
1309
|
-
"rounded-t": [
|
|
1310
|
+
"rounded-t": [o]
|
|
1310
1311
|
}],
|
|
1311
1312
|
/**
|
|
1312
1313
|
* Border Radius Right
|
|
1313
1314
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1314
1315
|
*/
|
|
1315
1316
|
"rounded-r": [{
|
|
1316
|
-
"rounded-r": [
|
|
1317
|
+
"rounded-r": [o]
|
|
1317
1318
|
}],
|
|
1318
1319
|
/**
|
|
1319
1320
|
* Border Radius Bottom
|
|
1320
1321
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1321
1322
|
*/
|
|
1322
1323
|
"rounded-b": [{
|
|
1323
|
-
"rounded-b": [
|
|
1324
|
+
"rounded-b": [o]
|
|
1324
1325
|
}],
|
|
1325
1326
|
/**
|
|
1326
1327
|
* Border Radius Left
|
|
1327
1328
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1328
1329
|
*/
|
|
1329
1330
|
"rounded-l": [{
|
|
1330
|
-
"rounded-l": [
|
|
1331
|
+
"rounded-l": [o]
|
|
1331
1332
|
}],
|
|
1332
1333
|
/**
|
|
1333
1334
|
* Border Radius Start Start
|
|
1334
1335
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1335
1336
|
*/
|
|
1336
1337
|
"rounded-ss": [{
|
|
1337
|
-
"rounded-ss": [
|
|
1338
|
+
"rounded-ss": [o]
|
|
1338
1339
|
}],
|
|
1339
1340
|
/**
|
|
1340
1341
|
* Border Radius Start End
|
|
1341
1342
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1342
1343
|
*/
|
|
1343
1344
|
"rounded-se": [{
|
|
1344
|
-
"rounded-se": [
|
|
1345
|
+
"rounded-se": [o]
|
|
1345
1346
|
}],
|
|
1346
1347
|
/**
|
|
1347
1348
|
* Border Radius End End
|
|
1348
1349
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1349
1350
|
*/
|
|
1350
1351
|
"rounded-ee": [{
|
|
1351
|
-
"rounded-ee": [
|
|
1352
|
+
"rounded-ee": [o]
|
|
1352
1353
|
}],
|
|
1353
1354
|
/**
|
|
1354
1355
|
* Border Radius End Start
|
|
1355
1356
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1356
1357
|
*/
|
|
1357
1358
|
"rounded-es": [{
|
|
1358
|
-
"rounded-es": [
|
|
1359
|
+
"rounded-es": [o]
|
|
1359
1360
|
}],
|
|
1360
1361
|
/**
|
|
1361
1362
|
* Border Radius Top Left
|
|
1362
1363
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1363
1364
|
*/
|
|
1364
1365
|
"rounded-tl": [{
|
|
1365
|
-
"rounded-tl": [
|
|
1366
|
+
"rounded-tl": [o]
|
|
1366
1367
|
}],
|
|
1367
1368
|
/**
|
|
1368
1369
|
* Border Radius Top Right
|
|
1369
1370
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1370
1371
|
*/
|
|
1371
1372
|
"rounded-tr": [{
|
|
1372
|
-
"rounded-tr": [
|
|
1373
|
+
"rounded-tr": [o]
|
|
1373
1374
|
}],
|
|
1374
1375
|
/**
|
|
1375
1376
|
* Border Radius Bottom Right
|
|
1376
1377
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1377
1378
|
*/
|
|
1378
1379
|
"rounded-br": [{
|
|
1379
|
-
"rounded-br": [
|
|
1380
|
+
"rounded-br": [o]
|
|
1380
1381
|
}],
|
|
1381
1382
|
/**
|
|
1382
1383
|
* Border Radius Bottom Left
|
|
1383
1384
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1384
1385
|
*/
|
|
1385
1386
|
"rounded-bl": [{
|
|
1386
|
-
"rounded-bl": [
|
|
1387
|
+
"rounded-bl": [o]
|
|
1387
1388
|
}],
|
|
1388
1389
|
/**
|
|
1389
1390
|
* Border Width
|
|
@@ -1460,7 +1461,7 @@ const g = (e) => {
|
|
|
1460
1461
|
* @see https://tailwindcss.com/docs/border-style
|
|
1461
1462
|
*/
|
|
1462
1463
|
"border-style": [{
|
|
1463
|
-
border: [...
|
|
1464
|
+
border: [...X(), "hidden"]
|
|
1464
1465
|
}],
|
|
1465
1466
|
/**
|
|
1466
1467
|
* Divide Width X
|
|
@@ -1498,7 +1499,7 @@ const g = (e) => {
|
|
|
1498
1499
|
* @see https://tailwindcss.com/docs/divide-style
|
|
1499
1500
|
*/
|
|
1500
1501
|
"divide-style": [{
|
|
1501
|
-
divide:
|
|
1502
|
+
divide: X()
|
|
1502
1503
|
}],
|
|
1503
1504
|
/**
|
|
1504
1505
|
* Border Color
|
|
@@ -1575,7 +1576,7 @@ const g = (e) => {
|
|
|
1575
1576
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1576
1577
|
*/
|
|
1577
1578
|
"outline-style": [{
|
|
1578
|
-
outline: ["", ...
|
|
1579
|
+
outline: ["", ...X()]
|
|
1579
1580
|
}],
|
|
1580
1581
|
/**
|
|
1581
1582
|
* Outline Offset
|
|
@@ -1589,7 +1590,7 @@ const g = (e) => {
|
|
|
1589
1590
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1590
1591
|
*/
|
|
1591
1592
|
"outline-w": [{
|
|
1592
|
-
outline: [R,
|
|
1593
|
+
outline: [R, V]
|
|
1593
1594
|
}],
|
|
1594
1595
|
/**
|
|
1595
1596
|
* Outline Color
|
|
@@ -1629,7 +1630,7 @@ const g = (e) => {
|
|
|
1629
1630
|
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
1630
1631
|
*/
|
|
1631
1632
|
"ring-offset-w": [{
|
|
1632
|
-
"ring-offset": [R,
|
|
1633
|
+
"ring-offset": [R, V]
|
|
1633
1634
|
}],
|
|
1634
1635
|
/**
|
|
1635
1636
|
* Ring Offset Color
|
|
@@ -1644,7 +1645,7 @@ const g = (e) => {
|
|
|
1644
1645
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
1645
1646
|
*/
|
|
1646
1647
|
shadow: [{
|
|
1647
|
-
shadow: ["", "inner", "none",
|
|
1648
|
+
shadow: ["", "inner", "none", G, De]
|
|
1648
1649
|
}],
|
|
1649
1650
|
/**
|
|
1650
1651
|
* Box Shadow Color
|
|
@@ -1665,14 +1666,14 @@ const g = (e) => {
|
|
|
1665
1666
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1666
1667
|
*/
|
|
1667
1668
|
"mix-blend": [{
|
|
1668
|
-
"mix-blend": [...
|
|
1669
|
+
"mix-blend": [...oe(), "plus-lighter", "plus-darker"]
|
|
1669
1670
|
}],
|
|
1670
1671
|
/**
|
|
1671
1672
|
* Background Blend Mode
|
|
1672
1673
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1673
1674
|
*/
|
|
1674
1675
|
"bg-blend": [{
|
|
1675
|
-
"bg-blend":
|
|
1676
|
+
"bg-blend": oe()
|
|
1676
1677
|
}],
|
|
1677
1678
|
// Filters
|
|
1678
1679
|
/**
|
|
@@ -1695,7 +1696,7 @@ const g = (e) => {
|
|
|
1695
1696
|
* @see https://tailwindcss.com/docs/brightness
|
|
1696
1697
|
*/
|
|
1697
1698
|
brightness: [{
|
|
1698
|
-
brightness: [
|
|
1699
|
+
brightness: [n]
|
|
1699
1700
|
}],
|
|
1700
1701
|
/**
|
|
1701
1702
|
* Contrast
|
|
@@ -1709,7 +1710,7 @@ const g = (e) => {
|
|
|
1709
1710
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
1710
1711
|
*/
|
|
1711
1712
|
"drop-shadow": [{
|
|
1712
|
-
"drop-shadow": ["", "none",
|
|
1713
|
+
"drop-shadow": ["", "none", G, d]
|
|
1713
1714
|
}],
|
|
1714
1715
|
/**
|
|
1715
1716
|
* Grayscale
|
|
@@ -1737,7 +1738,7 @@ const g = (e) => {
|
|
|
1737
1738
|
* @see https://tailwindcss.com/docs/saturate
|
|
1738
1739
|
*/
|
|
1739
1740
|
saturate: [{
|
|
1740
|
-
saturate: [
|
|
1741
|
+
saturate: [M]
|
|
1741
1742
|
}],
|
|
1742
1743
|
/**
|
|
1743
1744
|
* Sepia
|
|
@@ -1766,7 +1767,7 @@ const g = (e) => {
|
|
|
1766
1767
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
1767
1768
|
*/
|
|
1768
1769
|
"backdrop-brightness": [{
|
|
1769
|
-
"backdrop-brightness": [
|
|
1770
|
+
"backdrop-brightness": [n]
|
|
1770
1771
|
}],
|
|
1771
1772
|
/**
|
|
1772
1773
|
* Backdrop Contrast
|
|
@@ -1808,7 +1809,7 @@ const g = (e) => {
|
|
|
1808
1809
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
1809
1810
|
*/
|
|
1810
1811
|
"backdrop-saturate": [{
|
|
1811
|
-
"backdrop-saturate": [
|
|
1812
|
+
"backdrop-saturate": [M]
|
|
1812
1813
|
}],
|
|
1813
1814
|
/**
|
|
1814
1815
|
* Backdrop Sepia
|
|
@@ -1909,21 +1910,21 @@ const g = (e) => {
|
|
|
1909
1910
|
* @see https://tailwindcss.com/docs/scale
|
|
1910
1911
|
*/
|
|
1911
1912
|
scale: [{
|
|
1912
|
-
scale: [
|
|
1913
|
+
scale: [j]
|
|
1913
1914
|
}],
|
|
1914
1915
|
/**
|
|
1915
1916
|
* Scale X
|
|
1916
1917
|
* @see https://tailwindcss.com/docs/scale
|
|
1917
1918
|
*/
|
|
1918
1919
|
"scale-x": [{
|
|
1919
|
-
"scale-x": [
|
|
1920
|
+
"scale-x": [j]
|
|
1920
1921
|
}],
|
|
1921
1922
|
/**
|
|
1922
1923
|
* Scale Y
|
|
1923
1924
|
* @see https://tailwindcss.com/docs/scale
|
|
1924
1925
|
*/
|
|
1925
1926
|
"scale-y": [{
|
|
1926
|
-
"scale-y": [
|
|
1927
|
+
"scale-y": [j]
|
|
1927
1928
|
}],
|
|
1928
1929
|
/**
|
|
1929
1930
|
* Rotate
|
|
@@ -1937,28 +1938,28 @@ const g = (e) => {
|
|
|
1937
1938
|
* @see https://tailwindcss.com/docs/translate
|
|
1938
1939
|
*/
|
|
1939
1940
|
"translate-x": [{
|
|
1940
|
-
"translate-x": [
|
|
1941
|
+
"translate-x": [_]
|
|
1941
1942
|
}],
|
|
1942
1943
|
/**
|
|
1943
1944
|
* Translate Y
|
|
1944
1945
|
* @see https://tailwindcss.com/docs/translate
|
|
1945
1946
|
*/
|
|
1946
1947
|
"translate-y": [{
|
|
1947
|
-
"translate-y": [
|
|
1948
|
+
"translate-y": [_]
|
|
1948
1949
|
}],
|
|
1949
1950
|
/**
|
|
1950
1951
|
* Skew X
|
|
1951
1952
|
* @see https://tailwindcss.com/docs/skew
|
|
1952
1953
|
*/
|
|
1953
1954
|
"skew-x": [{
|
|
1954
|
-
"skew-x": [
|
|
1955
|
+
"skew-x": [q]
|
|
1955
1956
|
}],
|
|
1956
1957
|
/**
|
|
1957
1958
|
* Skew Y
|
|
1958
1959
|
* @see https://tailwindcss.com/docs/skew
|
|
1959
1960
|
*/
|
|
1960
1961
|
"skew-y": [{
|
|
1961
|
-
"skew-y": [
|
|
1962
|
+
"skew-y": [q]
|
|
1962
1963
|
}],
|
|
1963
1964
|
/**
|
|
1964
1965
|
* Transform Origin
|
|
@@ -2022,126 +2023,126 @@ const g = (e) => {
|
|
|
2022
2023
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2023
2024
|
*/
|
|
2024
2025
|
"scroll-m": [{
|
|
2025
|
-
"scroll-m":
|
|
2026
|
+
"scroll-m": y()
|
|
2026
2027
|
}],
|
|
2027
2028
|
/**
|
|
2028
2029
|
* Scroll Margin X
|
|
2029
2030
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2030
2031
|
*/
|
|
2031
2032
|
"scroll-mx": [{
|
|
2032
|
-
"scroll-mx":
|
|
2033
|
+
"scroll-mx": y()
|
|
2033
2034
|
}],
|
|
2034
2035
|
/**
|
|
2035
2036
|
* Scroll Margin Y
|
|
2036
2037
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2037
2038
|
*/
|
|
2038
2039
|
"scroll-my": [{
|
|
2039
|
-
"scroll-my":
|
|
2040
|
+
"scroll-my": y()
|
|
2040
2041
|
}],
|
|
2041
2042
|
/**
|
|
2042
2043
|
* Scroll Margin Start
|
|
2043
2044
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2044
2045
|
*/
|
|
2045
2046
|
"scroll-ms": [{
|
|
2046
|
-
"scroll-ms":
|
|
2047
|
+
"scroll-ms": y()
|
|
2047
2048
|
}],
|
|
2048
2049
|
/**
|
|
2049
2050
|
* Scroll Margin End
|
|
2050
2051
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2051
2052
|
*/
|
|
2052
2053
|
"scroll-me": [{
|
|
2053
|
-
"scroll-me":
|
|
2054
|
+
"scroll-me": y()
|
|
2054
2055
|
}],
|
|
2055
2056
|
/**
|
|
2056
2057
|
* Scroll Margin Top
|
|
2057
2058
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2058
2059
|
*/
|
|
2059
2060
|
"scroll-mt": [{
|
|
2060
|
-
"scroll-mt":
|
|
2061
|
+
"scroll-mt": y()
|
|
2061
2062
|
}],
|
|
2062
2063
|
/**
|
|
2063
2064
|
* Scroll Margin Right
|
|
2064
2065
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2065
2066
|
*/
|
|
2066
2067
|
"scroll-mr": [{
|
|
2067
|
-
"scroll-mr":
|
|
2068
|
+
"scroll-mr": y()
|
|
2068
2069
|
}],
|
|
2069
2070
|
/**
|
|
2070
2071
|
* Scroll Margin Bottom
|
|
2071
2072
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2072
2073
|
*/
|
|
2073
2074
|
"scroll-mb": [{
|
|
2074
|
-
"scroll-mb":
|
|
2075
|
+
"scroll-mb": y()
|
|
2075
2076
|
}],
|
|
2076
2077
|
/**
|
|
2077
2078
|
* Scroll Margin Left
|
|
2078
2079
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2079
2080
|
*/
|
|
2080
2081
|
"scroll-ml": [{
|
|
2081
|
-
"scroll-ml":
|
|
2082
|
+
"scroll-ml": y()
|
|
2082
2083
|
}],
|
|
2083
2084
|
/**
|
|
2084
2085
|
* Scroll Padding
|
|
2085
2086
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2086
2087
|
*/
|
|
2087
2088
|
"scroll-p": [{
|
|
2088
|
-
"scroll-p":
|
|
2089
|
+
"scroll-p": y()
|
|
2089
2090
|
}],
|
|
2090
2091
|
/**
|
|
2091
2092
|
* Scroll Padding X
|
|
2092
2093
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2093
2094
|
*/
|
|
2094
2095
|
"scroll-px": [{
|
|
2095
|
-
"scroll-px":
|
|
2096
|
+
"scroll-px": y()
|
|
2096
2097
|
}],
|
|
2097
2098
|
/**
|
|
2098
2099
|
* Scroll Padding Y
|
|
2099
2100
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2100
2101
|
*/
|
|
2101
2102
|
"scroll-py": [{
|
|
2102
|
-
"scroll-py":
|
|
2103
|
+
"scroll-py": y()
|
|
2103
2104
|
}],
|
|
2104
2105
|
/**
|
|
2105
2106
|
* Scroll Padding Start
|
|
2106
2107
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2107
2108
|
*/
|
|
2108
2109
|
"scroll-ps": [{
|
|
2109
|
-
"scroll-ps":
|
|
2110
|
+
"scroll-ps": y()
|
|
2110
2111
|
}],
|
|
2111
2112
|
/**
|
|
2112
2113
|
* Scroll Padding End
|
|
2113
2114
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2114
2115
|
*/
|
|
2115
2116
|
"scroll-pe": [{
|
|
2116
|
-
"scroll-pe":
|
|
2117
|
+
"scroll-pe": y()
|
|
2117
2118
|
}],
|
|
2118
2119
|
/**
|
|
2119
2120
|
* Scroll Padding Top
|
|
2120
2121
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2121
2122
|
*/
|
|
2122
2123
|
"scroll-pt": [{
|
|
2123
|
-
"scroll-pt":
|
|
2124
|
+
"scroll-pt": y()
|
|
2124
2125
|
}],
|
|
2125
2126
|
/**
|
|
2126
2127
|
* Scroll Padding Right
|
|
2127
2128
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2128
2129
|
*/
|
|
2129
2130
|
"scroll-pr": [{
|
|
2130
|
-
"scroll-pr":
|
|
2131
|
+
"scroll-pr": y()
|
|
2131
2132
|
}],
|
|
2132
2133
|
/**
|
|
2133
2134
|
* Scroll Padding Bottom
|
|
2134
2135
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2135
2136
|
*/
|
|
2136
2137
|
"scroll-pb": [{
|
|
2137
|
-
"scroll-pb":
|
|
2138
|
+
"scroll-pb": y()
|
|
2138
2139
|
}],
|
|
2139
2140
|
/**
|
|
2140
2141
|
* Scroll Padding Left
|
|
2141
2142
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2142
2143
|
*/
|
|
2143
2144
|
"scroll-pl": [{
|
|
2144
|
-
"scroll-pl":
|
|
2145
|
+
"scroll-pl": y()
|
|
2145
2146
|
}],
|
|
2146
2147
|
/**
|
|
2147
2148
|
* Scroll Snap Align
|
|
@@ -2224,7 +2225,7 @@ const g = (e) => {
|
|
|
2224
2225
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2225
2226
|
*/
|
|
2226
2227
|
"stroke-w": [{
|
|
2227
|
-
stroke: [R,
|
|
2228
|
+
stroke: [R, V, Q]
|
|
2228
2229
|
}],
|
|
2229
2230
|
/**
|
|
2230
2231
|
* Stroke
|
|
@@ -2299,18 +2300,18 @@ const g = (e) => {
|
|
|
2299
2300
|
"font-size": ["leading"]
|
|
2300
2301
|
}
|
|
2301
2302
|
};
|
|
2302
|
-
},
|
|
2303
|
-
function
|
|
2304
|
-
return
|
|
2303
|
+
}, ot = /* @__PURE__ */ Be(nt);
|
|
2304
|
+
function x(...e) {
|
|
2305
|
+
return ot(ge(e));
|
|
2305
2306
|
}
|
|
2306
|
-
const
|
|
2307
|
+
const st = H(
|
|
2307
2308
|
"inline-flex items-center justify-center gap-2 rounded-lg font-sans font-normal transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-agilys-primary disabled:pointer-events-none disabled:opacity-50",
|
|
2308
2309
|
{
|
|
2309
2310
|
variants: {
|
|
2310
2311
|
variant: {
|
|
2311
2312
|
primary: "bg-agilys-primary text-white text-sm shadow-[0px_2px_6px_0px_rgba(71,71,245,0.16),inset_0px_0px_10px_0px_rgba(255,255,255,0.3)] hover:bg-agilys-primary/90",
|
|
2312
2313
|
secondary: "bg-white text-neutral-secondary text-base shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)] hover:bg-gray-50",
|
|
2313
|
-
destructive: "bg-danger-
|
|
2314
|
+
destructive: "bg-danger-light text-danger-dark text-sm shadow-[0px_2px_6px_0px_rgba(243,22,22,0.16)] hover:bg-danger-light/80"
|
|
2314
2315
|
},
|
|
2315
2316
|
size: {
|
|
2316
2317
|
sm: "h-9 px-3 text-sm",
|
|
@@ -2327,29 +2328,29 @@ const et = Z(
|
|
|
2327
2328
|
size: "md"
|
|
2328
2329
|
}
|
|
2329
2330
|
}
|
|
2330
|
-
),
|
|
2331
|
+
), at = E(
|
|
2331
2332
|
({
|
|
2332
2333
|
className: e,
|
|
2333
2334
|
variant: t,
|
|
2334
2335
|
size: r,
|
|
2335
|
-
fullWidth:
|
|
2336
|
+
fullWidth: n,
|
|
2336
2337
|
isLoading: s = !1,
|
|
2337
|
-
leftIcon:
|
|
2338
|
+
leftIcon: o,
|
|
2338
2339
|
disabled: i,
|
|
2339
2340
|
children: a,
|
|
2340
2341
|
...u
|
|
2341
2342
|
}, c) => {
|
|
2342
2343
|
const p = r === "icon";
|
|
2343
|
-
return /* @__PURE__ */
|
|
2344
|
+
return /* @__PURE__ */ C(
|
|
2344
2345
|
"button",
|
|
2345
2346
|
{
|
|
2346
2347
|
ref: c,
|
|
2347
|
-
className:
|
|
2348
|
+
className: x(st({ variant: t, size: r, fullWidth: n }), e),
|
|
2348
2349
|
disabled: i || s,
|
|
2349
2350
|
"aria-busy": s,
|
|
2350
2351
|
...u,
|
|
2351
2352
|
children: [
|
|
2352
|
-
s && /* @__PURE__ */
|
|
2353
|
+
s && /* @__PURE__ */ C(
|
|
2353
2354
|
"svg",
|
|
2354
2355
|
{
|
|
2355
2356
|
className: "size-[18px] animate-spin",
|
|
@@ -2379,15 +2380,15 @@ const et = Z(
|
|
|
2379
2380
|
]
|
|
2380
2381
|
}
|
|
2381
2382
|
),
|
|
2382
|
-
!s &&
|
|
2383
|
+
!s && o && /* @__PURE__ */ l("span", { className: "size-6 shrink-0 [&>svg]:size-full", "aria-hidden": "true", children: o }),
|
|
2383
2384
|
p ? /* @__PURE__ */ l("span", { className: "size-5 shrink-0 [&>svg]:size-full", children: a }) : a
|
|
2384
2385
|
]
|
|
2385
2386
|
}
|
|
2386
2387
|
);
|
|
2387
2388
|
}
|
|
2388
2389
|
);
|
|
2389
|
-
|
|
2390
|
-
const
|
|
2390
|
+
at.displayName = "Button";
|
|
2391
|
+
const it = H(
|
|
2391
2392
|
"inline-flex items-center justify-center h-6 font-sans text-sm font-normal leading-6 whitespace-nowrap",
|
|
2392
2393
|
{
|
|
2393
2394
|
variants: {
|
|
@@ -2417,33 +2418,33 @@ const rt = Z(
|
|
|
2417
2418
|
status: "default"
|
|
2418
2419
|
}
|
|
2419
2420
|
}
|
|
2420
|
-
),
|
|
2421
|
+
), lt = {
|
|
2421
2422
|
default: "bg-agilys-primary",
|
|
2422
2423
|
success: "bg-success-60",
|
|
2423
2424
|
alert: "bg-warning-accent",
|
|
2424
2425
|
error: "bg-danger-60"
|
|
2425
|
-
},
|
|
2426
|
-
({ className: e, variant: t = "filled", status: r = "default", children:
|
|
2426
|
+
}, ct = E(
|
|
2427
|
+
({ className: e, variant: t = "filled", status: r = "default", children: n, ...s }, o) => /* @__PURE__ */ C(
|
|
2427
2428
|
"span",
|
|
2428
2429
|
{
|
|
2429
|
-
ref:
|
|
2430
|
-
className:
|
|
2430
|
+
ref: o,
|
|
2431
|
+
className: x(it({ variant: t, status: r }), e),
|
|
2431
2432
|
...s,
|
|
2432
2433
|
children: [
|
|
2433
2434
|
t === "dot" && /* @__PURE__ */ l(
|
|
2434
2435
|
"span",
|
|
2435
2436
|
{
|
|
2436
|
-
className:
|
|
2437
|
+
className: x("size-2 shrink-0 rounded-full", lt[r ?? "default"]),
|
|
2437
2438
|
"aria-hidden": "true"
|
|
2438
2439
|
}
|
|
2439
2440
|
),
|
|
2440
|
-
|
|
2441
|
+
n
|
|
2441
2442
|
]
|
|
2442
2443
|
}
|
|
2443
2444
|
)
|
|
2444
2445
|
);
|
|
2445
|
-
|
|
2446
|
-
const
|
|
2446
|
+
ct.displayName = "Badge";
|
|
2447
|
+
const dt = H("font-sans text-gray-900", {
|
|
2447
2448
|
variants: {
|
|
2448
2449
|
variant: {
|
|
2449
2450
|
h1: "text-3xl leading-tight font-bold",
|
|
@@ -2466,7 +2467,7 @@ const st = Z("font-sans text-gray-900", {
|
|
|
2466
2467
|
defaultVariants: {
|
|
2467
2468
|
variant: "body"
|
|
2468
2469
|
}
|
|
2469
|
-
}),
|
|
2470
|
+
}), ut = {
|
|
2470
2471
|
h1: "h1",
|
|
2471
2472
|
h2: "h2",
|
|
2472
2473
|
h3: "h3",
|
|
@@ -2476,42 +2477,42 @@ const st = Z("font-sans text-gray-900", {
|
|
|
2476
2477
|
body: "p",
|
|
2477
2478
|
bodySm: "p",
|
|
2478
2479
|
caption: "span"
|
|
2479
|
-
},
|
|
2480
|
-
({ className: e, variant: t = "body", weight: r, as:
|
|
2481
|
-
const a =
|
|
2482
|
-
return
|
|
2480
|
+
}, S = E(
|
|
2481
|
+
({ className: e, variant: t = "body", weight: r, as: n, children: s, ...o }, i) => {
|
|
2482
|
+
const a = n ?? ut[t ?? "body"];
|
|
2483
|
+
return Ne(
|
|
2483
2484
|
a,
|
|
2484
2485
|
{
|
|
2485
2486
|
ref: i,
|
|
2486
|
-
className:
|
|
2487
|
-
...
|
|
2487
|
+
className: x(dt({ variant: t, weight: r }), e),
|
|
2488
|
+
...o
|
|
2488
2489
|
},
|
|
2489
2490
|
s
|
|
2490
2491
|
);
|
|
2491
2492
|
}
|
|
2492
2493
|
);
|
|
2493
|
-
|
|
2494
|
-
function
|
|
2495
|
-
return t.split(".").reduce((r,
|
|
2494
|
+
S.displayName = "Typography";
|
|
2495
|
+
function pt(e, t) {
|
|
2496
|
+
return t.split(".").reduce((r, n) => r == null ? void 0 : r[n], e);
|
|
2496
2497
|
}
|
|
2497
|
-
function
|
|
2498
|
+
function ft(e, t) {
|
|
2498
2499
|
if (t.callback) return t.callback(e);
|
|
2499
2500
|
if (!t.key) return null;
|
|
2500
|
-
const r =
|
|
2501
|
-
return r == null || r === "" ? null : /* @__PURE__ */ l(
|
|
2501
|
+
const r = pt(e, t.key);
|
|
2502
|
+
return r == null || r === "" ? null : /* @__PURE__ */ l(S, { as: "span", variant: "body", className: "truncate text-neutral-text-primary", children: r });
|
|
2502
2503
|
}
|
|
2503
|
-
const
|
|
2504
|
+
const we = {
|
|
2504
2505
|
left: "text-left justify-start",
|
|
2505
2506
|
center: "text-center justify-center",
|
|
2506
2507
|
right: "text-right justify-end"
|
|
2507
2508
|
}, D = E(
|
|
2508
|
-
({ className: e, ...t }, r) => /* @__PURE__ */
|
|
2509
|
+
({ className: e, ...t }, r) => /* @__PURE__ */ C("span", { className: "relative inline-flex size-5 shrink-0 items-center justify-center", children: [
|
|
2509
2510
|
/* @__PURE__ */ l(
|
|
2510
2511
|
"input",
|
|
2511
2512
|
{
|
|
2512
2513
|
ref: r,
|
|
2513
2514
|
type: "checkbox",
|
|
2514
|
-
className:
|
|
2515
|
+
className: x(
|
|
2515
2516
|
"peer size-5 shrink-0 cursor-pointer appearance-none rounded border-2 border-neutral-divider-primary bg-white shadow-[0px_0px_2px_0px_rgba(66,74,98,0.09)] checked:border-agilys-primary checked:bg-agilys-primary disabled:cursor-not-allowed disabled:opacity-50",
|
|
2516
2517
|
e
|
|
2517
2518
|
),
|
|
@@ -2540,11 +2541,11 @@ const ye = {
|
|
|
2540
2541
|
] })
|
|
2541
2542
|
);
|
|
2542
2543
|
D.displayName = "TableCheckbox";
|
|
2543
|
-
function
|
|
2544
|
+
function bt({ className: e }) {
|
|
2544
2545
|
return /* @__PURE__ */ l(
|
|
2545
2546
|
"svg",
|
|
2546
2547
|
{
|
|
2547
|
-
className:
|
|
2548
|
+
className: x("size-5 shrink-0", e),
|
|
2548
2549
|
viewBox: "0 0 24 24",
|
|
2549
2550
|
fill: "none",
|
|
2550
2551
|
"aria-hidden": "true",
|
|
@@ -2562,33 +2563,33 @@ function ct({ className: e }) {
|
|
|
2562
2563
|
);
|
|
2563
2564
|
}
|
|
2564
2565
|
const ee = E(
|
|
2565
|
-
({ className: e, align: t = "left", sortable: r, sorted:
|
|
2566
|
+
({ className: e, align: t = "left", sortable: r, sorted: n, onSort: s, children: o, ...i }, a) => /* @__PURE__ */ l(
|
|
2566
2567
|
"th",
|
|
2567
2568
|
{
|
|
2568
2569
|
ref: a,
|
|
2569
|
-
className:
|
|
2570
|
+
className: x("border-b border-neutral-divider-secondary px-5 py-2", e),
|
|
2570
2571
|
...i,
|
|
2571
|
-
children: /* @__PURE__ */
|
|
2572
|
+
children: /* @__PURE__ */ C(
|
|
2572
2573
|
"span",
|
|
2573
2574
|
{
|
|
2574
|
-
className:
|
|
2575
|
+
className: x(
|
|
2575
2576
|
"flex items-center gap-1.5",
|
|
2576
|
-
|
|
2577
|
+
we[t ?? "left"],
|
|
2577
2578
|
r && "cursor-pointer select-none"
|
|
2578
2579
|
),
|
|
2579
2580
|
onClick: r ? s : void 0,
|
|
2580
2581
|
children: [
|
|
2581
2582
|
/* @__PURE__ */ l(
|
|
2582
|
-
|
|
2583
|
+
S,
|
|
2583
2584
|
{
|
|
2584
2585
|
as: "span",
|
|
2585
2586
|
variant: "bodySm",
|
|
2586
2587
|
weight: "medium",
|
|
2587
2588
|
className: "flex-1 truncate text-neutral-text-secondary",
|
|
2588
|
-
children:
|
|
2589
|
+
children: o
|
|
2589
2590
|
}
|
|
2590
2591
|
),
|
|
2591
|
-
r && /* @__PURE__ */ l(
|
|
2592
|
+
r && /* @__PURE__ */ l(bt, { className: x(n && "text-agilys-primary") })
|
|
2592
2593
|
]
|
|
2593
2594
|
}
|
|
2594
2595
|
)
|
|
@@ -2596,102 +2597,102 @@ const ee = E(
|
|
|
2596
2597
|
)
|
|
2597
2598
|
);
|
|
2598
2599
|
ee.displayName = "TableHeadCell";
|
|
2599
|
-
function
|
|
2600
|
+
function ue({
|
|
2600
2601
|
align: e = "left",
|
|
2601
2602
|
className: t,
|
|
2602
2603
|
children: r,
|
|
2603
|
-
onClick:
|
|
2604
|
+
onClick: n
|
|
2604
2605
|
}) {
|
|
2605
2606
|
return /* @__PURE__ */ l(
|
|
2606
2607
|
"td",
|
|
2607
2608
|
{
|
|
2608
|
-
onClick:
|
|
2609
|
-
className:
|
|
2610
|
-
children: /* @__PURE__ */ l("span", { className:
|
|
2609
|
+
onClick: n,
|
|
2610
|
+
className: x("border-b border-neutral-divider-secondary px-5 py-3", t),
|
|
2611
|
+
children: /* @__PURE__ */ l("span", { className: x("flex items-center gap-2", we[e ?? "left"]), children: r })
|
|
2611
2612
|
}
|
|
2612
2613
|
);
|
|
2613
2614
|
}
|
|
2614
|
-
function
|
|
2615
|
+
function gt(e, t, r) {
|
|
2615
2616
|
if (typeof r == "function") return r(e);
|
|
2616
|
-
const
|
|
2617
|
-
return r ?
|
|
2617
|
+
const n = e;
|
|
2618
|
+
return r ? n[r] ?? t : n.id ?? t;
|
|
2618
2619
|
}
|
|
2619
|
-
function
|
|
2620
|
+
function Mt({
|
|
2620
2621
|
keys: e,
|
|
2621
2622
|
data: t,
|
|
2622
2623
|
rowKey: r,
|
|
2623
|
-
loading:
|
|
2624
|
+
loading: n,
|
|
2624
2625
|
loadingMessage: s = "Carregando dados...",
|
|
2625
|
-
emptyMessage:
|
|
2626
|
+
emptyMessage: o = "Nenhum dado para ser exibido!",
|
|
2626
2627
|
selectable: i,
|
|
2627
2628
|
selectedRowKeys: a,
|
|
2628
2629
|
onSelectionChange: u,
|
|
2629
2630
|
sortKey: c,
|
|
2630
2631
|
sortDirection: p,
|
|
2631
2632
|
onSortChange: m,
|
|
2632
|
-
onRowClick:
|
|
2633
|
-
shadow:
|
|
2634
|
-
border:
|
|
2635
|
-
className:
|
|
2636
|
-
...
|
|
2633
|
+
onRowClick: b,
|
|
2634
|
+
shadow: z = !1,
|
|
2635
|
+
border: k = !0,
|
|
2636
|
+
className: g,
|
|
2637
|
+
...f
|
|
2637
2638
|
}) {
|
|
2638
|
-
const v = e.length + (i ? 1 : 0),
|
|
2639
|
-
u && u(
|
|
2640
|
-
},
|
|
2639
|
+
const v = e.length + (i ? 1 : 0), N = a ?? [], M = t.map((w, _) => gt(w, _, r)), j = M.length > 0 && M.every((w) => N.includes(w)), L = () => {
|
|
2640
|
+
u && u(j ? [] : M);
|
|
2641
|
+
}, q = (w) => {
|
|
2641
2642
|
u && u(
|
|
2642
|
-
|
|
2643
|
+
N.includes(w) ? N.filter((_) => _ !== w) : [...N, w]
|
|
2643
2644
|
);
|
|
2644
2645
|
};
|
|
2645
2646
|
return /* @__PURE__ */ l(
|
|
2646
2647
|
"div",
|
|
2647
2648
|
{
|
|
2648
|
-
className:
|
|
2649
|
+
className: x(
|
|
2649
2650
|
"w-full overflow-x-auto rounded-lg",
|
|
2650
|
-
|
|
2651
|
-
|
|
2651
|
+
k && "border border-neutral-divider-secondary",
|
|
2652
|
+
z && "shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)]"
|
|
2652
2653
|
),
|
|
2653
|
-
children: /* @__PURE__ */
|
|
2654
|
-
/* @__PURE__ */ l("thead", { children: /* @__PURE__ */
|
|
2655
|
-
i && /* @__PURE__ */ l(ee, { align: "center", className: "w-11", children: /* @__PURE__ */ l(D, { checked:
|
|
2656
|
-
e.map((
|
|
2654
|
+
children: /* @__PURE__ */ C("table", { className: x("w-full border-collapse font-sans", g), ...f, children: [
|
|
2655
|
+
/* @__PURE__ */ l("thead", { children: /* @__PURE__ */ C("tr", { children: [
|
|
2656
|
+
i && /* @__PURE__ */ l(ee, { align: "center", className: "w-11", children: /* @__PURE__ */ l(D, { checked: j, onChange: L, "aria-label": "Selecionar todas as linhas" }) }),
|
|
2657
|
+
e.map((w, _) => /* @__PURE__ */ l(
|
|
2657
2658
|
ee,
|
|
2658
2659
|
{
|
|
2659
|
-
align:
|
|
2660
|
-
sortable: !!
|
|
2661
|
-
sorted:
|
|
2662
|
-
onSort: () =>
|
|
2663
|
-
children:
|
|
2660
|
+
align: w.align,
|
|
2661
|
+
sortable: !!w.key && !!m,
|
|
2662
|
+
sorted: w.key && c === w.key ? p : !1,
|
|
2663
|
+
onSort: () => w.key && (m == null ? void 0 : m(w.key)),
|
|
2664
|
+
children: w.label
|
|
2664
2665
|
},
|
|
2665
|
-
|
|
2666
|
+
w.key ?? `column-${_}`
|
|
2666
2667
|
))
|
|
2667
2668
|
] }) }),
|
|
2668
|
-
/* @__PURE__ */ l("tbody", { children:
|
|
2669
|
-
const T = _
|
|
2670
|
-
return /* @__PURE__ */
|
|
2669
|
+
/* @__PURE__ */ l("tbody", { children: n ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l("td", { colSpan: v, className: "border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6", children: /* @__PURE__ */ l(S, { as: "p", variant: "body", className: "w-full text-center text-neutral-text-secondary", children: s }) }) }) : t.length === 0 ? /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l("td", { colSpan: v, className: "border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6", children: /* @__PURE__ */ l(S, { as: "p", variant: "body", className: "w-full text-center text-neutral-text-secondary", children: o }) }) }) : t.map((w, _) => {
|
|
2670
|
+
const T = M[_];
|
|
2671
|
+
return /* @__PURE__ */ C(
|
|
2671
2672
|
"tr",
|
|
2672
2673
|
{
|
|
2673
|
-
onClick:
|
|
2674
|
-
className:
|
|
2675
|
-
|
|
2676
|
-
|
|
2674
|
+
onClick: b ? () => b(w) : void 0,
|
|
2675
|
+
className: x(
|
|
2676
|
+
_ % 2 === 0 ? "bg-neutral-surface-lightest" : "bg-white",
|
|
2677
|
+
b && "cursor-pointer"
|
|
2677
2678
|
),
|
|
2678
2679
|
children: [
|
|
2679
|
-
i && /* @__PURE__ */ l(
|
|
2680
|
+
i && /* @__PURE__ */ l(ue, { align: "center", onClick: (A) => A.stopPropagation(), children: /* @__PURE__ */ l(
|
|
2680
2681
|
D,
|
|
2681
2682
|
{
|
|
2682
|
-
checked:
|
|
2683
|
-
onChange: () =>
|
|
2683
|
+
checked: N.includes(T),
|
|
2684
|
+
onChange: () => q(T),
|
|
2684
2685
|
"aria-label": "Selecionar linha"
|
|
2685
2686
|
}
|
|
2686
2687
|
) }),
|
|
2687
|
-
e.map((
|
|
2688
|
-
|
|
2688
|
+
e.map((A, P) => /* @__PURE__ */ l(
|
|
2689
|
+
ue,
|
|
2689
2690
|
{
|
|
2690
|
-
align:
|
|
2691
|
-
className:
|
|
2692
|
-
children:
|
|
2691
|
+
align: A.align,
|
|
2692
|
+
className: A.className,
|
|
2693
|
+
children: ft(w, A)
|
|
2693
2694
|
},
|
|
2694
|
-
|
|
2695
|
+
A.key ?? `column-${P}`
|
|
2695
2696
|
))
|
|
2696
2697
|
]
|
|
2697
2698
|
},
|
|
@@ -2702,7 +2703,7 @@ function xt({
|
|
|
2702
2703
|
}
|
|
2703
2704
|
);
|
|
2704
2705
|
}
|
|
2705
|
-
const
|
|
2706
|
+
const mt = H(
|
|
2706
2707
|
"relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-neutral-surface-lightest font-sans font-medium text-neutral-text-secondary",
|
|
2707
2708
|
{
|
|
2708
2709
|
variants: {
|
|
@@ -2717,44 +2718,44 @@ const ut = Z(
|
|
|
2717
2718
|
}
|
|
2718
2719
|
}
|
|
2719
2720
|
);
|
|
2720
|
-
function
|
|
2721
|
-
var
|
|
2722
|
-
const t = e.trim().split(/\s+/), r = t.length > 1 ? `${t[0][0]}${t[t.length - 1][0]}` : (
|
|
2721
|
+
function ht(e) {
|
|
2722
|
+
var n;
|
|
2723
|
+
const t = e.trim().split(/\s+/), r = t.length > 1 ? `${t[0][0]}${t[t.length - 1][0]}` : (n = t[0]) == null ? void 0 : n.slice(0, 2);
|
|
2723
2724
|
return r == null ? void 0 : r.toUpperCase();
|
|
2724
2725
|
}
|
|
2725
|
-
const
|
|
2726
|
+
const xt = {
|
|
2726
2727
|
sm: "caption",
|
|
2727
2728
|
md: "bodySm",
|
|
2728
2729
|
lg: "body"
|
|
2729
|
-
},
|
|
2730
|
-
({ className: e, size: t, src: r, alt:
|
|
2730
|
+
}, ke = E(
|
|
2731
|
+
({ className: e, size: t, src: r, alt: n = "", name: s, ...o }, i) => {
|
|
2731
2732
|
const a = t ?? "md";
|
|
2732
|
-
return /* @__PURE__ */ l("span", { ref: i, className:
|
|
2733
|
-
|
|
2733
|
+
return /* @__PURE__ */ l("span", { ref: i, className: x(mt({ size: t }), e), ...o, children: r ? /* @__PURE__ */ l("img", { src: r, alt: n, className: "size-full object-cover" }) : s && /* @__PURE__ */ l(
|
|
2734
|
+
S,
|
|
2734
2735
|
{
|
|
2735
2736
|
as: "span",
|
|
2736
|
-
variant:
|
|
2737
|
+
variant: xt[a],
|
|
2737
2738
|
weight: "medium",
|
|
2738
2739
|
className: "text-inherit leading-none",
|
|
2739
|
-
children:
|
|
2740
|
+
children: ht(s)
|
|
2740
2741
|
}
|
|
2741
2742
|
) });
|
|
2742
2743
|
}
|
|
2743
2744
|
);
|
|
2744
|
-
|
|
2745
|
-
function
|
|
2745
|
+
ke.displayName = "Avatar";
|
|
2746
|
+
function jt({
|
|
2746
2747
|
src: e,
|
|
2747
2748
|
name: t,
|
|
2748
2749
|
description: r,
|
|
2749
|
-
size:
|
|
2750
|
+
size: n = "md",
|
|
2750
2751
|
className: s
|
|
2751
2752
|
}) {
|
|
2752
|
-
return /* @__PURE__ */
|
|
2753
|
-
/* @__PURE__ */ l(
|
|
2754
|
-
/* @__PURE__ */
|
|
2755
|
-
/* @__PURE__ */ l(
|
|
2753
|
+
return /* @__PURE__ */ C("div", { className: x("flex min-w-0 items-center gap-2", s), children: [
|
|
2754
|
+
/* @__PURE__ */ l(ke, { src: e, name: t, size: n }),
|
|
2755
|
+
/* @__PURE__ */ C("div", { className: "flex min-w-0 flex-col", children: [
|
|
2756
|
+
/* @__PURE__ */ l(S, { as: "span", variant: "body", className: "truncate", children: t }),
|
|
2756
2757
|
r && /* @__PURE__ */ l(
|
|
2757
|
-
|
|
2758
|
+
S,
|
|
2758
2759
|
{
|
|
2759
2760
|
as: "span",
|
|
2760
2761
|
variant: "bodySm",
|
|
@@ -2766,19 +2767,19 @@ function yt({
|
|
|
2766
2767
|
] });
|
|
2767
2768
|
}
|
|
2768
2769
|
const F = "ellipsis";
|
|
2769
|
-
function
|
|
2770
|
-
return Array.from({ length: t - e + 1 }, (r,
|
|
2770
|
+
function Z(e, t) {
|
|
2771
|
+
return Array.from({ length: t - e + 1 }, (r, n) => e + n);
|
|
2771
2772
|
}
|
|
2772
|
-
function
|
|
2773
|
-
if (r * 2 + 5 >= t) return
|
|
2774
|
-
const s = Math.max(e - r, 1),
|
|
2775
|
-
return !i && a ? [...
|
|
2773
|
+
function yt(e, t, r) {
|
|
2774
|
+
if (r * 2 + 5 >= t) return Z(1, t);
|
|
2775
|
+
const s = Math.max(e - r, 1), o = Math.min(e + r, t), i = s > 2, a = o < t - 1;
|
|
2776
|
+
return !i && a ? [...Z(1, 3 + r * 2), F, t] : i && !a ? [1, F, ...Z(t - (2 + r * 2), t)] : [1, F, ...Z(s, o), F, t];
|
|
2776
2777
|
}
|
|
2777
|
-
function
|
|
2778
|
+
function pe({ direction: e, className: t }) {
|
|
2778
2779
|
return /* @__PURE__ */ l(
|
|
2779
2780
|
"svg",
|
|
2780
2781
|
{
|
|
2781
|
-
className:
|
|
2782
|
+
className: x("size-4", t),
|
|
2782
2783
|
viewBox: "0 0 24 24",
|
|
2783
2784
|
fill: "none",
|
|
2784
2785
|
"aria-hidden": "true",
|
|
@@ -2795,19 +2796,19 @@ function ue({ direction: e, className: t }) {
|
|
|
2795
2796
|
}
|
|
2796
2797
|
);
|
|
2797
2798
|
}
|
|
2798
|
-
const
|
|
2799
|
-
({ currentPage: e, totalPages: t, onPageChange: r, siblingCount:
|
|
2799
|
+
const vt = E(
|
|
2800
|
+
({ currentPage: e, totalPages: t, onPageChange: r, siblingCount: n = 1, className: s, ...o }, i) => {
|
|
2800
2801
|
if (t <= 1) return null;
|
|
2801
|
-
const a =
|
|
2802
|
+
const a = yt(e, t, n), u = (c) => {
|
|
2802
2803
|
c < 1 || c > t || c === e || r(c);
|
|
2803
2804
|
};
|
|
2804
|
-
return /* @__PURE__ */
|
|
2805
|
+
return /* @__PURE__ */ C(
|
|
2805
2806
|
"nav",
|
|
2806
2807
|
{
|
|
2807
2808
|
ref: i,
|
|
2808
2809
|
"aria-label": "Paginação",
|
|
2809
|
-
className:
|
|
2810
|
-
...
|
|
2810
|
+
className: x("flex items-center gap-1 font-sans", s),
|
|
2811
|
+
...o,
|
|
2811
2812
|
children: [
|
|
2812
2813
|
/* @__PURE__ */ l(
|
|
2813
2814
|
"button",
|
|
@@ -2817,7 +2818,7 @@ const ft = E(
|
|
|
2817
2818
|
disabled: e === 1,
|
|
2818
2819
|
onClick: () => u(e - 1),
|
|
2819
2820
|
className: "inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-neutral-text-secondary transition-colors hover:bg-neutral-surface-lightest disabled:pointer-events-none disabled:opacity-40",
|
|
2820
|
-
children: /* @__PURE__ */ l(
|
|
2821
|
+
children: /* @__PURE__ */ l(pe, { direction: "left" })
|
|
2821
2822
|
}
|
|
2822
2823
|
),
|
|
2823
2824
|
a.map(
|
|
@@ -2825,7 +2826,7 @@ const ft = E(
|
|
|
2825
2826
|
"span",
|
|
2826
2827
|
{
|
|
2827
2828
|
className: "inline-flex size-9 shrink-0 items-center justify-center text-neutral-text-secondary",
|
|
2828
|
-
children: /* @__PURE__ */ l(
|
|
2829
|
+
children: /* @__PURE__ */ l(S, { as: "span", variant: "bodySm", className: "text-inherit", children: "…" })
|
|
2829
2830
|
},
|
|
2830
2831
|
`ellipsis-${p}`
|
|
2831
2832
|
) : /* @__PURE__ */ l(
|
|
@@ -2834,11 +2835,11 @@ const ft = E(
|
|
|
2834
2835
|
type: "button",
|
|
2835
2836
|
"aria-current": c === e ? "page" : void 0,
|
|
2836
2837
|
onClick: () => u(c),
|
|
2837
|
-
className:
|
|
2838
|
+
className: x(
|
|
2838
2839
|
"inline-flex size-9 shrink-0 items-center justify-center rounded-lg transition-colors",
|
|
2839
|
-
c === e ? "bg-
|
|
2840
|
+
c === e ? "bg-neutral-surface-selected text-agilys-primary" : "text-neutral-text-secondary hover:bg-neutral-surface-lightest"
|
|
2840
2841
|
),
|
|
2841
|
-
children: /* @__PURE__ */ l(
|
|
2842
|
+
children: /* @__PURE__ */ l(S, { as: "span", variant: "bodySm", weight: "medium", className: "text-inherit", children: c })
|
|
2842
2843
|
},
|
|
2843
2844
|
c
|
|
2844
2845
|
)
|
|
@@ -2851,7 +2852,7 @@ const ft = E(
|
|
|
2851
2852
|
disabled: e === t,
|
|
2852
2853
|
onClick: () => u(e + 1),
|
|
2853
2854
|
className: "inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-neutral-text-secondary transition-colors hover:bg-neutral-surface-lightest disabled:pointer-events-none disabled:opacity-40",
|
|
2854
|
-
children: /* @__PURE__ */ l(
|
|
2855
|
+
children: /* @__PURE__ */ l(pe, { direction: "right" })
|
|
2855
2856
|
}
|
|
2856
2857
|
)
|
|
2857
2858
|
]
|
|
@@ -2859,22 +2860,210 @@ const ft = E(
|
|
|
2859
2860
|
);
|
|
2860
2861
|
}
|
|
2861
2862
|
);
|
|
2862
|
-
|
|
2863
|
+
vt.displayName = "Pagination";
|
|
2864
|
+
const wt = H(
|
|
2865
|
+
"flex h-11 w-full min-w-0 items-center gap-2 rounded-lg bg-white px-3 shadow-[0px_4px_2px_0px_rgba(0,0,0,0.05)] transition-shadow focus-within:ring-2 focus-within:ring-agilys-primary",
|
|
2866
|
+
{
|
|
2867
|
+
variants: {
|
|
2868
|
+
hasError: {
|
|
2869
|
+
true: "ring-2 ring-danger-60 focus-within:ring-danger-60",
|
|
2870
|
+
false: ""
|
|
2871
|
+
}
|
|
2872
|
+
},
|
|
2873
|
+
defaultVariants: {
|
|
2874
|
+
hasError: !1
|
|
2875
|
+
}
|
|
2876
|
+
}
|
|
2877
|
+
), kt = E(
|
|
2878
|
+
({
|
|
2879
|
+
className: e,
|
|
2880
|
+
containerClassName: t,
|
|
2881
|
+
label: r,
|
|
2882
|
+
leftIcon: n,
|
|
2883
|
+
rightIcon: s,
|
|
2884
|
+
bgIcon: o = !1,
|
|
2885
|
+
error: i,
|
|
2886
|
+
disabled: a,
|
|
2887
|
+
id: u,
|
|
2888
|
+
...c
|
|
2889
|
+
}, p) => {
|
|
2890
|
+
const m = fe(), b = u ?? m, z = typeof i == "string" ? i : i == null ? void 0 : i.message, k = !!z, g = `${b}-error`;
|
|
2891
|
+
return /* @__PURE__ */ C("div", { className: x("flex w-full min-w-0 flex-col gap-1.5", t), children: [
|
|
2892
|
+
r && /* @__PURE__ */ l(
|
|
2893
|
+
"label",
|
|
2894
|
+
{
|
|
2895
|
+
htmlFor: b,
|
|
2896
|
+
className: "font-sans text-sm font-normal leading-6 text-neutral-text-primary",
|
|
2897
|
+
children: r
|
|
2898
|
+
}
|
|
2899
|
+
),
|
|
2900
|
+
/* @__PURE__ */ C(
|
|
2901
|
+
"div",
|
|
2902
|
+
{
|
|
2903
|
+
className: x(
|
|
2904
|
+
wt({ hasError: k }),
|
|
2905
|
+
a && "pointer-events-none opacity-50"
|
|
2906
|
+
),
|
|
2907
|
+
children: [
|
|
2908
|
+
n && /* @__PURE__ */ l(
|
|
2909
|
+
"span",
|
|
2910
|
+
{
|
|
2911
|
+
className: "flex size-6 shrink-0 items-center justify-center text-neutral-secondary [&>svg]:size-full",
|
|
2912
|
+
"aria-hidden": "true",
|
|
2913
|
+
children: n
|
|
2914
|
+
}
|
|
2915
|
+
),
|
|
2916
|
+
/* @__PURE__ */ l(
|
|
2917
|
+
"input",
|
|
2918
|
+
{
|
|
2919
|
+
ref: p,
|
|
2920
|
+
id: b,
|
|
2921
|
+
disabled: a,
|
|
2922
|
+
"aria-invalid": k || void 0,
|
|
2923
|
+
"aria-describedby": k ? g : void 0,
|
|
2924
|
+
className: x(
|
|
2925
|
+
"w-full min-w-0 flex-1 bg-transparent font-sans text-base leading-6 text-neutral-text-primary placeholder:text-neutral-secondary focus:outline-none disabled:cursor-not-allowed",
|
|
2926
|
+
e
|
|
2927
|
+
),
|
|
2928
|
+
...c
|
|
2929
|
+
}
|
|
2930
|
+
),
|
|
2931
|
+
s && /* @__PURE__ */ l(
|
|
2932
|
+
"span",
|
|
2933
|
+
{
|
|
2934
|
+
className: x(
|
|
2935
|
+
"flex size-6 shrink-0 items-center justify-center text-neutral-secondary [&>svg]:size-full",
|
|
2936
|
+
o && "rounded-md bg-lightGray p-1"
|
|
2937
|
+
),
|
|
2938
|
+
"aria-hidden": "true",
|
|
2939
|
+
children: s
|
|
2940
|
+
}
|
|
2941
|
+
)
|
|
2942
|
+
]
|
|
2943
|
+
}
|
|
2944
|
+
),
|
|
2945
|
+
k && /* @__PURE__ */ l("span", { id: g, role: "alert", className: "font-sans text-xs leading-normal text-danger-60", children: z })
|
|
2946
|
+
] });
|
|
2947
|
+
}
|
|
2948
|
+
);
|
|
2949
|
+
kt.displayName = "Input";
|
|
2950
|
+
function Nt() {
|
|
2951
|
+
return /* @__PURE__ */ l("svg", { className: "size-5", viewBox: "0 0 24 24", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ l(
|
|
2952
|
+
"path",
|
|
2953
|
+
{
|
|
2954
|
+
d: "M18 6L6 18M6 6l12 12",
|
|
2955
|
+
stroke: "currentColor",
|
|
2956
|
+
strokeWidth: "2",
|
|
2957
|
+
strokeLinecap: "round"
|
|
2958
|
+
}
|
|
2959
|
+
) });
|
|
2960
|
+
}
|
|
2961
|
+
const zt = E(
|
|
2962
|
+
({
|
|
2963
|
+
open: e,
|
|
2964
|
+
onClose: t,
|
|
2965
|
+
title: r,
|
|
2966
|
+
children: n,
|
|
2967
|
+
footer: s,
|
|
2968
|
+
closeOnBackdropClick: o = !0,
|
|
2969
|
+
showCloseButton: i = !0,
|
|
2970
|
+
className: a,
|
|
2971
|
+
contentClassName: u,
|
|
2972
|
+
...c
|
|
2973
|
+
}, p) => {
|
|
2974
|
+
const m = fe(), b = ze(null), [z, k] = Ce(!1);
|
|
2975
|
+
return ae(() => k(!0), []), ae(() => {
|
|
2976
|
+
var v;
|
|
2977
|
+
if (!e) return;
|
|
2978
|
+
const g = document.body.style.overflow;
|
|
2979
|
+
document.body.style.overflow = "hidden", (v = b.current) == null || v.focus();
|
|
2980
|
+
const f = (N) => {
|
|
2981
|
+
N.key === "Escape" && t();
|
|
2982
|
+
};
|
|
2983
|
+
return document.addEventListener("keydown", f), () => {
|
|
2984
|
+
document.body.style.overflow = g, document.removeEventListener("keydown", f);
|
|
2985
|
+
};
|
|
2986
|
+
}, [e, t]), !e || !z ? null : _e(
|
|
2987
|
+
/* @__PURE__ */ l(
|
|
2988
|
+
"div",
|
|
2989
|
+
{
|
|
2990
|
+
className: "fixed inset-0 z-50 flex items-center justify-center overflow-y-auto bg-black/40 p-4",
|
|
2991
|
+
onClick: o ? t : void 0,
|
|
2992
|
+
children: /* @__PURE__ */ C(
|
|
2993
|
+
"div",
|
|
2994
|
+
{
|
|
2995
|
+
ref: p,
|
|
2996
|
+
role: "dialog",
|
|
2997
|
+
"aria-modal": "true",
|
|
2998
|
+
"aria-labelledby": r ? m : void 0,
|
|
2999
|
+
onClick: (g) => g.stopPropagation(),
|
|
3000
|
+
className: x(
|
|
3001
|
+
"relative flex w-full min-w-0 max-w-lg flex-col gap-6 rounded-xl bg-[#fcfcfc] p-6 shadow-[0px_0px_2px_0px_rgba(34,34,34,0.08)] sm:p-8",
|
|
3002
|
+
a
|
|
3003
|
+
),
|
|
3004
|
+
...c,
|
|
3005
|
+
children: [
|
|
3006
|
+
i && /* @__PURE__ */ l(
|
|
3007
|
+
"button",
|
|
3008
|
+
{
|
|
3009
|
+
ref: b,
|
|
3010
|
+
type: "button",
|
|
3011
|
+
onClick: t,
|
|
3012
|
+
"aria-label": "Fechar",
|
|
3013
|
+
className: "absolute right-4 top-4 flex size-6 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary sm:right-5 sm:top-5",
|
|
3014
|
+
children: /* @__PURE__ */ l(Nt, {})
|
|
3015
|
+
}
|
|
3016
|
+
),
|
|
3017
|
+
r && /* @__PURE__ */ l("div", { className: "pr-8", children: /* @__PURE__ */ l(
|
|
3018
|
+
S,
|
|
3019
|
+
{
|
|
3020
|
+
as: "h2",
|
|
3021
|
+
id: m,
|
|
3022
|
+
variant: "h4",
|
|
3023
|
+
weight: "medium",
|
|
3024
|
+
className: "text-neutral-text-primary",
|
|
3025
|
+
children: r
|
|
3026
|
+
}
|
|
3027
|
+
) }),
|
|
3028
|
+
/* @__PURE__ */ l(
|
|
3029
|
+
"div",
|
|
3030
|
+
{
|
|
3031
|
+
className: x(
|
|
3032
|
+
"max-h-[70vh] min-w-0 overflow-y-auto overflow-x-hidden font-sans text-sm leading-relaxed text-neutral-text-secondary sm:text-base",
|
|
3033
|
+
u
|
|
3034
|
+
),
|
|
3035
|
+
children: n
|
|
3036
|
+
}
|
|
3037
|
+
),
|
|
3038
|
+
s && /* @__PURE__ */ l("div", { className: "flex flex-wrap items-center gap-2.5 pt-1", children: s })
|
|
3039
|
+
]
|
|
3040
|
+
}
|
|
3041
|
+
)
|
|
3042
|
+
}
|
|
3043
|
+
),
|
|
3044
|
+
document.body
|
|
3045
|
+
);
|
|
3046
|
+
}
|
|
3047
|
+
);
|
|
3048
|
+
zt.displayName = "Modal";
|
|
2863
3049
|
export {
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
3050
|
+
ke as Avatar,
|
|
3051
|
+
jt as AvatarColumn,
|
|
3052
|
+
ct as Badge,
|
|
3053
|
+
at as Button,
|
|
3054
|
+
kt as Input,
|
|
3055
|
+
zt as Modal,
|
|
3056
|
+
vt as Pagination,
|
|
3057
|
+
Mt as Table,
|
|
3058
|
+
ue as TableCell,
|
|
2871
3059
|
D as TableCheckbox,
|
|
2872
3060
|
ee as TableHeadCell,
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
3061
|
+
S as Typography,
|
|
3062
|
+
mt as avatarVariants,
|
|
3063
|
+
it as badgeVariants,
|
|
3064
|
+
st as buttonVariants,
|
|
3065
|
+
x as cn,
|
|
3066
|
+
wt as inputVariants,
|
|
3067
|
+
dt as typographyVariants
|
|
2879
3068
|
};
|
|
2880
3069
|
//# sourceMappingURL=agilys-design-system.js.map
|