@workokay/atom 0.2.6 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +473 -449
- package/dist/index.js.map +1 -1
- package/package.json +8 -14
package/dist/index.js
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
import * as T from "react";
|
|
2
|
-
import
|
|
2
|
+
import Ue from "react";
|
|
3
3
|
var de = { exports: {} }, ae = {};
|
|
4
|
-
/**
|
|
5
|
-
* @license React
|
|
6
|
-
* react-jsx-runtime.production.js
|
|
7
|
-
*
|
|
8
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
|
-
*
|
|
10
|
-
* This source code is licensed under the MIT license found in the
|
|
11
|
-
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/
|
|
13
4
|
var ye;
|
|
14
|
-
function
|
|
5
|
+
function Je() {
|
|
15
6
|
if (ye) return ae;
|
|
16
7
|
ye = 1;
|
|
17
8
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
@@ -33,17 +24,8 @@ function De() {
|
|
|
33
24
|
return ae.Fragment = t, ae.jsx = r, ae.jsxs = r, ae;
|
|
34
25
|
}
|
|
35
26
|
var ie = {};
|
|
36
|
-
/**
|
|
37
|
-
* @license React
|
|
38
|
-
* react-jsx-runtime.development.js
|
|
39
|
-
*
|
|
40
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
41
|
-
*
|
|
42
|
-
* This source code is licensed under the MIT license found in the
|
|
43
|
-
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/
|
|
45
27
|
var we;
|
|
46
|
-
function
|
|
28
|
+
function Xe() {
|
|
47
29
|
return we || (we = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
48
30
|
function e(n) {
|
|
49
31
|
if (n == null) return null;
|
|
@@ -51,13 +33,13 @@ function Ye() {
|
|
|
51
33
|
return n.$$typeof === X ? null : n.displayName || n.name || null;
|
|
52
34
|
if (typeof n == "string") return n;
|
|
53
35
|
switch (n) {
|
|
54
|
-
case
|
|
36
|
+
case R:
|
|
55
37
|
return "Fragment";
|
|
56
|
-
case
|
|
38
|
+
case O:
|
|
57
39
|
return "Profiler";
|
|
58
|
-
case
|
|
40
|
+
case E:
|
|
59
41
|
return "StrictMode";
|
|
60
|
-
case
|
|
42
|
+
case P:
|
|
61
43
|
return "Suspense";
|
|
62
44
|
case $:
|
|
63
45
|
return "SuspenseList";
|
|
@@ -68,21 +50,21 @@ function Ye() {
|
|
|
68
50
|
switch (typeof n.tag == "number" && console.error(
|
|
69
51
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
52
|
), n.$$typeof) {
|
|
71
|
-
case
|
|
53
|
+
case _:
|
|
72
54
|
return "Portal";
|
|
73
55
|
case V:
|
|
74
56
|
return n.displayName || "Context";
|
|
75
|
-
case
|
|
57
|
+
case N:
|
|
76
58
|
return (n._context.displayName || "Context") + ".Consumer";
|
|
77
59
|
case L:
|
|
78
|
-
var
|
|
79
|
-
return n = n.displayName, n || (n =
|
|
60
|
+
var b = n.render;
|
|
61
|
+
return n = n.displayName, n || (n = b.displayName || b.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
|
|
80
62
|
case p:
|
|
81
|
-
return
|
|
82
|
-
case
|
|
83
|
-
|
|
63
|
+
return b = n.displayName || null, b !== null ? b : e(n.type) || "Memo";
|
|
64
|
+
case S:
|
|
65
|
+
b = n._payload, n = n._init;
|
|
84
66
|
try {
|
|
85
|
-
return e(n(
|
|
67
|
+
return e(n(b));
|
|
86
68
|
} catch {
|
|
87
69
|
}
|
|
88
70
|
}
|
|
@@ -94,33 +76,33 @@ function Ye() {
|
|
|
94
76
|
function r(n) {
|
|
95
77
|
try {
|
|
96
78
|
t(n);
|
|
97
|
-
var
|
|
79
|
+
var b = !1;
|
|
98
80
|
} catch {
|
|
99
|
-
|
|
81
|
+
b = !0;
|
|
100
82
|
}
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
var h =
|
|
83
|
+
if (b) {
|
|
84
|
+
b = console;
|
|
85
|
+
var h = b.error, y = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
104
86
|
return h.call(
|
|
105
|
-
|
|
87
|
+
b,
|
|
106
88
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
89
|
y
|
|
108
90
|
), t(n);
|
|
109
91
|
}
|
|
110
92
|
}
|
|
111
93
|
function o(n) {
|
|
112
|
-
if (n ===
|
|
113
|
-
if (typeof n == "object" && n !== null && n.$$typeof ===
|
|
94
|
+
if (n === R) return "<>";
|
|
95
|
+
if (typeof n == "object" && n !== null && n.$$typeof === S)
|
|
114
96
|
return "<...>";
|
|
115
97
|
try {
|
|
116
|
-
var
|
|
117
|
-
return
|
|
98
|
+
var b = e(n);
|
|
99
|
+
return b ? "<" + b + ">" : "<...>";
|
|
118
100
|
} catch {
|
|
119
101
|
return "<...>";
|
|
120
102
|
}
|
|
121
103
|
}
|
|
122
104
|
function s() {
|
|
123
|
-
var n =
|
|
105
|
+
var n = Y.A;
|
|
124
106
|
return n === null ? null : n.getOwner();
|
|
125
107
|
}
|
|
126
108
|
function a() {
|
|
@@ -128,16 +110,16 @@ function Ye() {
|
|
|
128
110
|
}
|
|
129
111
|
function i(n) {
|
|
130
112
|
if (te.call(n, "key")) {
|
|
131
|
-
var
|
|
132
|
-
if (
|
|
113
|
+
var b = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
114
|
+
if (b && b.isReactWarning) return !1;
|
|
133
115
|
}
|
|
134
116
|
return n.key !== void 0;
|
|
135
117
|
}
|
|
136
|
-
function d(n,
|
|
118
|
+
function d(n, b) {
|
|
137
119
|
function h() {
|
|
138
120
|
I || (I = !0, console.error(
|
|
139
121
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
140
|
-
|
|
122
|
+
b
|
|
141
123
|
));
|
|
142
124
|
}
|
|
143
125
|
h.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
@@ -145,23 +127,23 @@ function Ye() {
|
|
|
145
127
|
configurable: !0
|
|
146
128
|
});
|
|
147
129
|
}
|
|
148
|
-
function
|
|
130
|
+
function u() {
|
|
149
131
|
var n = e(this.type);
|
|
150
|
-
return
|
|
132
|
+
return M[n] || (M[n] = !0, console.error(
|
|
151
133
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
152
134
|
)), n = this.props.ref, n !== void 0 ? n : null;
|
|
153
135
|
}
|
|
154
|
-
function
|
|
136
|
+
function m(n, b, h, y, q, H) {
|
|
155
137
|
var v = h.ref;
|
|
156
138
|
return n = {
|
|
157
|
-
$$typeof:
|
|
139
|
+
$$typeof: z,
|
|
158
140
|
type: n,
|
|
159
|
-
key:
|
|
141
|
+
key: b,
|
|
160
142
|
props: h,
|
|
161
143
|
_owner: y
|
|
162
144
|
}, (v !== void 0 ? v : null) !== null ? Object.defineProperty(n, "ref", {
|
|
163
145
|
enumerable: !1,
|
|
164
|
-
get:
|
|
146
|
+
get: u
|
|
165
147
|
}) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
|
|
166
148
|
configurable: !1,
|
|
167
149
|
enumerable: !1,
|
|
@@ -184,8 +166,8 @@ function Ye() {
|
|
|
184
166
|
value: H
|
|
185
167
|
}), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
|
|
186
168
|
}
|
|
187
|
-
function x(n,
|
|
188
|
-
var v =
|
|
169
|
+
function x(n, b, h, y, q, H) {
|
|
170
|
+
var v = b.children;
|
|
189
171
|
if (v !== void 0)
|
|
190
172
|
if (y)
|
|
191
173
|
if (oe(v)) {
|
|
@@ -197,9 +179,9 @@ function Ye() {
|
|
|
197
179
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
198
180
|
);
|
|
199
181
|
else w(v);
|
|
200
|
-
if (te.call(
|
|
182
|
+
if (te.call(b, "key")) {
|
|
201
183
|
v = e(n);
|
|
202
|
-
var W = Object.keys(
|
|
184
|
+
var W = Object.keys(b).filter(function(Z) {
|
|
203
185
|
return Z !== "key";
|
|
204
186
|
});
|
|
205
187
|
y = 0 < W.length ? "{key: someKey, " + W.join(": ..., ") + ": ...}" : "{key: someKey}", se[v + y] || (W = 0 < W.length ? "{" + W.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
@@ -215,15 +197,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
215
197
|
v
|
|
216
198
|
), se[v + y] = !0);
|
|
217
199
|
}
|
|
218
|
-
if (v = null, h !== void 0 && (r(h), v = "" + h), i(
|
|
200
|
+
if (v = null, h !== void 0 && (r(h), v = "" + h), i(b) && (r(b.key), v = "" + b.key), "key" in b) {
|
|
219
201
|
h = {};
|
|
220
|
-
for (var
|
|
221
|
-
|
|
222
|
-
} else h =
|
|
202
|
+
for (var D in b)
|
|
203
|
+
D !== "key" && (h[D] = b[D]);
|
|
204
|
+
} else h = b;
|
|
223
205
|
return v && d(
|
|
224
206
|
h,
|
|
225
207
|
typeof n == "function" ? n.displayName || n.name || "Unknown" : n
|
|
226
|
-
),
|
|
208
|
+
), m(
|
|
227
209
|
n,
|
|
228
210
|
v,
|
|
229
211
|
h,
|
|
@@ -233,100 +215,100 @@ React keys must be passed directly to JSX without using spread:
|
|
|
233
215
|
);
|
|
234
216
|
}
|
|
235
217
|
function w(n) {
|
|
236
|
-
k(n) ? n._store && (n._store.validated = 1) : typeof n == "object" && n !== null && n.$$typeof ===
|
|
218
|
+
k(n) ? n._store && (n._store.validated = 1) : typeof n == "object" && n !== null && n.$$typeof === S && (n._payload.status === "fulfilled" ? k(n._payload.value) && n._payload.value._store && (n._payload.value._store.validated = 1) : n._store && (n._store.validated = 1));
|
|
237
219
|
}
|
|
238
220
|
function k(n) {
|
|
239
|
-
return typeof n == "object" && n !== null && n.$$typeof ===
|
|
221
|
+
return typeof n == "object" && n !== null && n.$$typeof === z;
|
|
240
222
|
}
|
|
241
|
-
var
|
|
223
|
+
var C = Ue, z = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), R = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), O = Symbol.for("react.profiler"), N = Symbol.for("react.consumer"), V = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), J = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), Y = C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, te = Object.prototype.hasOwnProperty, oe = Array.isArray, G = console.createTask ? console.createTask : function() {
|
|
242
224
|
return null;
|
|
243
225
|
};
|
|
244
|
-
|
|
226
|
+
C = {
|
|
245
227
|
react_stack_bottom_frame: function(n) {
|
|
246
228
|
return n();
|
|
247
229
|
}
|
|
248
230
|
};
|
|
249
|
-
var I,
|
|
250
|
-
|
|
231
|
+
var I, M = {}, f = C.react_stack_bottom_frame.bind(
|
|
232
|
+
C,
|
|
251
233
|
a
|
|
252
|
-
)(), ne =
|
|
253
|
-
ie.Fragment =
|
|
254
|
-
var y = 1e4 >
|
|
234
|
+
)(), ne = G(o(a)), se = {};
|
|
235
|
+
ie.Fragment = R, ie.jsx = function(n, b, h) {
|
|
236
|
+
var y = 1e4 > Y.recentlyCreatedOwnerStacks++;
|
|
255
237
|
return x(
|
|
256
238
|
n,
|
|
257
|
-
|
|
239
|
+
b,
|
|
258
240
|
h,
|
|
259
241
|
!1,
|
|
260
|
-
y ? Error("react-stack-top-frame") :
|
|
261
|
-
y ?
|
|
242
|
+
y ? Error("react-stack-top-frame") : f,
|
|
243
|
+
y ? G(o(n)) : ne
|
|
262
244
|
);
|
|
263
|
-
}, ie.jsxs = function(n,
|
|
264
|
-
var y = 1e4 >
|
|
245
|
+
}, ie.jsxs = function(n, b, h) {
|
|
246
|
+
var y = 1e4 > Y.recentlyCreatedOwnerStacks++;
|
|
265
247
|
return x(
|
|
266
248
|
n,
|
|
267
|
-
|
|
249
|
+
b,
|
|
268
250
|
h,
|
|
269
251
|
!0,
|
|
270
|
-
y ? Error("react-stack-top-frame") :
|
|
271
|
-
y ?
|
|
252
|
+
y ? Error("react-stack-top-frame") : f,
|
|
253
|
+
y ? G(o(n)) : ne
|
|
272
254
|
);
|
|
273
255
|
};
|
|
274
256
|
})()), ie;
|
|
275
257
|
}
|
|
276
258
|
var ke;
|
|
277
|
-
function
|
|
278
|
-
return ke || (ke = 1, process.env.NODE_ENV === "production" ? de.exports =
|
|
259
|
+
function He() {
|
|
260
|
+
return ke || (ke = 1, process.env.NODE_ENV === "production" ? de.exports = Je() : de.exports = Xe()), de.exports;
|
|
279
261
|
}
|
|
280
|
-
var
|
|
281
|
-
function
|
|
262
|
+
var j = He();
|
|
263
|
+
function je(e) {
|
|
282
264
|
var t, r, o = "";
|
|
283
265
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
284
266
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
285
267
|
var s = e.length;
|
|
286
|
-
for (t = 0; t < s; t++) e[t] && (r =
|
|
268
|
+
for (t = 0; t < s; t++) e[t] && (r = je(e[t])) && (o && (o += " "), o += r);
|
|
287
269
|
} else for (r in e) e[r] && (o && (o += " "), o += r);
|
|
288
270
|
return o;
|
|
289
271
|
}
|
|
290
|
-
function
|
|
291
|
-
for (var e, t, r = 0, o = "", s = arguments.length; r < s; r++) (e = arguments[r]) && (t =
|
|
272
|
+
function Pe() {
|
|
273
|
+
for (var e, t, r = 0, o = "", s = arguments.length; r < s; r++) (e = arguments[r]) && (t = je(e)) && (o && (o += " "), o += t);
|
|
292
274
|
return o;
|
|
293
275
|
}
|
|
294
|
-
const Re = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e,
|
|
276
|
+
const Re = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, _e = Pe, Oe = (e, t) => (r) => {
|
|
295
277
|
var o;
|
|
296
|
-
if (t?.variants == null) return
|
|
297
|
-
const { variants: s, defaultVariants: a } = t, i = Object.keys(s).map((
|
|
298
|
-
const x = r?.[
|
|
278
|
+
if (t?.variants == null) return _e(e, r?.class, r?.className);
|
|
279
|
+
const { variants: s, defaultVariants: a } = t, i = Object.keys(s).map((m) => {
|
|
280
|
+
const x = r?.[m], w = a?.[m];
|
|
299
281
|
if (x === null) return null;
|
|
300
282
|
const k = Re(x) || Re(w);
|
|
301
|
-
return s[
|
|
302
|
-
}), d = r && Object.entries(r).reduce((
|
|
283
|
+
return s[m][k];
|
|
284
|
+
}), d = r && Object.entries(r).reduce((m, x) => {
|
|
303
285
|
let [w, k] = x;
|
|
304
|
-
return k === void 0 || (
|
|
305
|
-
}, {}),
|
|
306
|
-
let { class: w, className: k, ...
|
|
307
|
-
return Object.entries(
|
|
308
|
-
let [
|
|
309
|
-
return Array.isArray(
|
|
286
|
+
return k === void 0 || (m[w] = k), m;
|
|
287
|
+
}, {}), u = t == null || (o = t.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((m, x) => {
|
|
288
|
+
let { class: w, className: k, ...C } = x;
|
|
289
|
+
return Object.entries(C).every((z) => {
|
|
290
|
+
let [_, R] = z;
|
|
291
|
+
return Array.isArray(R) ? R.includes({
|
|
310
292
|
...a,
|
|
311
293
|
...d
|
|
312
|
-
}[
|
|
294
|
+
}[_]) : {
|
|
313
295
|
...a,
|
|
314
296
|
...d
|
|
315
|
-
}[
|
|
297
|
+
}[_] === R;
|
|
316
298
|
}) ? [
|
|
317
|
-
...
|
|
299
|
+
...m,
|
|
318
300
|
w,
|
|
319
301
|
k
|
|
320
|
-
] :
|
|
302
|
+
] : m;
|
|
321
303
|
}, []);
|
|
322
|
-
return
|
|
304
|
+
return _e(e, i, u, r?.class, r?.className);
|
|
323
305
|
};
|
|
324
306
|
function Se(e, t) {
|
|
325
307
|
if (typeof e == "function")
|
|
326
308
|
return e(t);
|
|
327
309
|
e != null && (e.current = t);
|
|
328
310
|
}
|
|
329
|
-
function
|
|
311
|
+
function Ze(...e) {
|
|
330
312
|
return (t) => {
|
|
331
313
|
let r = !1;
|
|
332
314
|
const o = e.map((s) => {
|
|
@@ -342,125 +324,167 @@ function Ue(...e) {
|
|
|
342
324
|
};
|
|
343
325
|
};
|
|
344
326
|
}
|
|
327
|
+
var Qe = Symbol.for("react.lazy"), fe = T[" use ".trim().toString()];
|
|
328
|
+
function Ke(e) {
|
|
329
|
+
return typeof e == "object" && e !== null && "then" in e;
|
|
330
|
+
}
|
|
331
|
+
function Ne(e) {
|
|
332
|
+
return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === Qe && "_payload" in e && Ke(e._payload);
|
|
333
|
+
}
|
|
345
334
|
// @__NO_SIDE_EFFECTS__
|
|
346
|
-
function
|
|
347
|
-
const t = /* @__PURE__ */
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
335
|
+
function er(e) {
|
|
336
|
+
const t = /* @__PURE__ */ tr(e), r = T.forwardRef((o, s) => {
|
|
337
|
+
let { children: a, ...i } = o;
|
|
338
|
+
Ne(a) && typeof fe == "function" && (a = fe(a._payload));
|
|
339
|
+
const d = T.Children.toArray(a), u = d.find(nr);
|
|
340
|
+
if (u) {
|
|
341
|
+
const m = u.props.children, x = d.map((w) => w === u ? T.Children.count(m) > 1 ? T.Children.only(null) : T.isValidElement(m) ? m.props.children : null : w);
|
|
342
|
+
return /* @__PURE__ */ j.jsx(t, { ...i, ref: s, children: T.isValidElement(m) ? T.cloneElement(m, void 0, x) : null });
|
|
352
343
|
}
|
|
353
|
-
return /* @__PURE__ */
|
|
344
|
+
return /* @__PURE__ */ j.jsx(t, { ...i, ref: s, children: a });
|
|
354
345
|
});
|
|
355
346
|
return r.displayName = `${e}.Slot`, r;
|
|
356
347
|
}
|
|
357
|
-
var
|
|
348
|
+
var rr = /* @__PURE__ */ er("Slot");
|
|
358
349
|
// @__NO_SIDE_EFFECTS__
|
|
359
|
-
function
|
|
350
|
+
function tr(e) {
|
|
360
351
|
const t = T.forwardRef((r, o) => {
|
|
361
|
-
|
|
362
|
-
if (T.isValidElement(s)) {
|
|
363
|
-
const i =
|
|
364
|
-
return s.type !== T.Fragment && (d.ref = o ?
|
|
352
|
+
let { children: s, ...a } = r;
|
|
353
|
+
if (Ne(s) && typeof fe == "function" && (s = fe(s._payload)), T.isValidElement(s)) {
|
|
354
|
+
const i = ar(s), d = sr(a, s.props);
|
|
355
|
+
return s.type !== T.Fragment && (d.ref = o ? Ze(o, i) : i), T.cloneElement(s, d);
|
|
365
356
|
}
|
|
366
357
|
return T.Children.count(s) > 1 ? T.Children.only(null) : null;
|
|
367
358
|
});
|
|
368
359
|
return t.displayName = `${e}.SlotClone`, t;
|
|
369
360
|
}
|
|
370
|
-
var
|
|
371
|
-
function
|
|
372
|
-
return T.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
361
|
+
var or = Symbol("radix.slottable");
|
|
362
|
+
function nr(e) {
|
|
363
|
+
return T.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === or;
|
|
373
364
|
}
|
|
374
|
-
function
|
|
365
|
+
function sr(e, t) {
|
|
375
366
|
const r = { ...t };
|
|
376
367
|
for (const o in t) {
|
|
377
368
|
const s = e[o], a = t[o];
|
|
378
369
|
/^on[A-Z]/.test(o) ? s && a ? r[o] = (...d) => {
|
|
379
|
-
const
|
|
380
|
-
return s(...d),
|
|
370
|
+
const u = a(...d);
|
|
371
|
+
return s(...d), u;
|
|
381
372
|
} : s && (r[o] = s) : o === "style" ? r[o] = { ...s, ...a } : o === "className" && (r[o] = [s, a].filter(Boolean).join(" "));
|
|
382
373
|
}
|
|
383
374
|
return { ...e, ...r };
|
|
384
375
|
}
|
|
385
|
-
function
|
|
376
|
+
function ar(e) {
|
|
386
377
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
387
378
|
return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
388
379
|
}
|
|
389
|
-
const
|
|
390
|
-
const
|
|
380
|
+
const ir = (e, t) => {
|
|
381
|
+
const r = new Array(e.length + t.length);
|
|
382
|
+
for (let o = 0; o < e.length; o++)
|
|
383
|
+
r[o] = e[o];
|
|
384
|
+
for (let o = 0; o < t.length; o++)
|
|
385
|
+
r[e.length + o] = t[o];
|
|
386
|
+
return r;
|
|
387
|
+
}, lr = (e, t) => ({
|
|
388
|
+
classGroupId: e,
|
|
389
|
+
validator: t
|
|
390
|
+
}), Ie = (e = /* @__PURE__ */ new Map(), t = null, r) => ({
|
|
391
|
+
nextPart: e,
|
|
392
|
+
validators: t,
|
|
393
|
+
classGroupId: r
|
|
394
|
+
}), pe = "-", Ee = [], cr = "arbitrary..", dr = (e) => {
|
|
395
|
+
const t = mr(e), {
|
|
391
396
|
conflictingClassGroups: r,
|
|
392
397
|
conflictingClassGroupModifiers: o
|
|
393
398
|
} = e;
|
|
394
399
|
return {
|
|
395
400
|
getClassGroupId: (i) => {
|
|
396
|
-
|
|
397
|
-
|
|
401
|
+
if (i.startsWith("[") && i.endsWith("]"))
|
|
402
|
+
return ur(i);
|
|
403
|
+
const d = i.split(pe), u = d[0] === "" && d.length > 1 ? 1 : 0;
|
|
404
|
+
return Ge(d, u, t);
|
|
398
405
|
},
|
|
399
406
|
getConflictingClassGroupIds: (i, d) => {
|
|
400
|
-
|
|
401
|
-
|
|
407
|
+
if (d) {
|
|
408
|
+
const u = o[i], m = r[i];
|
|
409
|
+
return u ? m ? ir(m, u) : u : m || Ee;
|
|
410
|
+
}
|
|
411
|
+
return r[i] || Ee;
|
|
402
412
|
}
|
|
403
413
|
};
|
|
404
|
-
},
|
|
405
|
-
if (e.length === 0)
|
|
406
|
-
return
|
|
407
|
-
const
|
|
408
|
-
if (
|
|
409
|
-
|
|
410
|
-
|
|
414
|
+
}, Ge = (e, t, r) => {
|
|
415
|
+
if (e.length - t === 0)
|
|
416
|
+
return r.classGroupId;
|
|
417
|
+
const s = e[t], a = r.nextPart.get(s);
|
|
418
|
+
if (a) {
|
|
419
|
+
const m = Ge(e, t + 1, a);
|
|
420
|
+
if (m) return m;
|
|
421
|
+
}
|
|
422
|
+
const i = r.validators;
|
|
423
|
+
if (i === null)
|
|
411
424
|
return;
|
|
412
|
-
const
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
if (_e.test(e)) {
|
|
418
|
-
const t = _e.exec(e)[1], r = t?.substring(0, t.indexOf(":"));
|
|
419
|
-
if (r)
|
|
420
|
-
return "arbitrary.." + r;
|
|
425
|
+
const d = t === 0 ? e.join(pe) : e.slice(t).join(pe), u = i.length;
|
|
426
|
+
for (let m = 0; m < u; m++) {
|
|
427
|
+
const x = i[m];
|
|
428
|
+
if (x.validator(d))
|
|
429
|
+
return x.classGroupId;
|
|
421
430
|
}
|
|
422
|
-
},
|
|
431
|
+
}, ur = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
432
|
+
const t = e.slice(1, -1), r = t.indexOf(":"), o = t.slice(0, r);
|
|
433
|
+
return o ? cr + o : void 0;
|
|
434
|
+
})(), mr = (e) => {
|
|
423
435
|
const {
|
|
424
436
|
theme: t,
|
|
425
437
|
classGroups: r
|
|
426
|
-
} = e
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
for (const
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
438
|
+
} = e;
|
|
439
|
+
return fr(r, t);
|
|
440
|
+
}, fr = (e, t) => {
|
|
441
|
+
const r = Ie();
|
|
442
|
+
for (const o in e) {
|
|
443
|
+
const s = e[o];
|
|
444
|
+
xe(s, r, o, t);
|
|
445
|
+
}
|
|
446
|
+
return r;
|
|
447
|
+
}, xe = (e, t, r, o) => {
|
|
448
|
+
const s = e.length;
|
|
449
|
+
for (let a = 0; a < s; a++) {
|
|
450
|
+
const i = e[a];
|
|
451
|
+
pr(i, t, r, o);
|
|
452
|
+
}
|
|
453
|
+
}, pr = (e, t, r, o) => {
|
|
454
|
+
if (typeof e == "string") {
|
|
455
|
+
br(e, t, r);
|
|
456
|
+
return;
|
|
457
|
+
}
|
|
458
|
+
if (typeof e == "function") {
|
|
459
|
+
gr(e, t, r, o);
|
|
460
|
+
return;
|
|
461
|
+
}
|
|
462
|
+
hr(e, t, r, o);
|
|
463
|
+
}, br = (e, t, r) => {
|
|
464
|
+
const o = e === "" ? t : Me(t, e);
|
|
465
|
+
o.classGroupId = r;
|
|
466
|
+
}, gr = (e, t, r, o) => {
|
|
467
|
+
if (vr(e)) {
|
|
468
|
+
xe(e(o), t, r, o);
|
|
469
|
+
return;
|
|
470
|
+
}
|
|
471
|
+
t.validators === null && (t.validators = []), t.validators.push(lr(r, e));
|
|
472
|
+
}, hr = (e, t, r, o) => {
|
|
473
|
+
const s = Object.entries(e), a = s.length;
|
|
474
|
+
for (let i = 0; i < a; i++) {
|
|
475
|
+
const [d, u] = s[i];
|
|
476
|
+
xe(u, Me(t, d), r, o);
|
|
477
|
+
}
|
|
478
|
+
}, Me = (e, t) => {
|
|
456
479
|
let r = e;
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
}
|
|
463
|
-
|
|
480
|
+
const o = t.split(pe), s = o.length;
|
|
481
|
+
for (let a = 0; a < s; a++) {
|
|
482
|
+
const i = o[a];
|
|
483
|
+
let d = r.nextPart.get(i);
|
|
484
|
+
d || (d = Ie(), r.nextPart.set(i, d)), r = d;
|
|
485
|
+
}
|
|
486
|
+
return r;
|
|
487
|
+
}, vr = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, xr = (e) => {
|
|
464
488
|
if (e < 1)
|
|
465
489
|
return {
|
|
466
490
|
get: () => {
|
|
@@ -468,61 +492,66 @@ const xe = "-", rr = (e) => {
|
|
|
468
492
|
set: () => {
|
|
469
493
|
}
|
|
470
494
|
};
|
|
471
|
-
let t = 0, r = /* @__PURE__ */
|
|
495
|
+
let t = 0, r = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
|
|
472
496
|
const s = (a, i) => {
|
|
473
|
-
r
|
|
497
|
+
r[a] = i, t++, t > e && (t = 0, o = r, r = /* @__PURE__ */ Object.create(null));
|
|
474
498
|
};
|
|
475
499
|
return {
|
|
476
500
|
get(a) {
|
|
477
|
-
let i = r
|
|
501
|
+
let i = r[a];
|
|
478
502
|
if (i !== void 0)
|
|
479
503
|
return i;
|
|
480
|
-
if ((i = o
|
|
504
|
+
if ((i = o[a]) !== void 0)
|
|
481
505
|
return s(a, i), i;
|
|
482
506
|
},
|
|
483
507
|
set(a, i) {
|
|
484
|
-
|
|
508
|
+
a in r ? r[a] = i : s(a, i);
|
|
485
509
|
}
|
|
486
510
|
};
|
|
487
|
-
},
|
|
511
|
+
}, ve = "!", Ce = ":", yr = [], Ae = (e, t, r, o, s) => ({
|
|
512
|
+
modifiers: e,
|
|
513
|
+
hasImportantModifier: t,
|
|
514
|
+
baseClassName: r,
|
|
515
|
+
maybePostfixModifierPosition: o,
|
|
516
|
+
isExternal: s
|
|
517
|
+
}), wr = (e) => {
|
|
488
518
|
const {
|
|
489
519
|
prefix: t,
|
|
490
520
|
experimentalParseClassName: r
|
|
491
521
|
} = e;
|
|
492
522
|
let o = (s) => {
|
|
493
523
|
const a = [];
|
|
494
|
-
let i = 0, d = 0,
|
|
495
|
-
|
|
496
|
-
|
|
524
|
+
let i = 0, d = 0, u = 0, m;
|
|
525
|
+
const x = s.length;
|
|
526
|
+
for (let _ = 0; _ < x; _++) {
|
|
527
|
+
const R = s[_];
|
|
497
528
|
if (i === 0 && d === 0) {
|
|
498
|
-
if (R ===
|
|
499
|
-
a.push(s.slice(
|
|
529
|
+
if (R === Ce) {
|
|
530
|
+
a.push(s.slice(u, _)), u = _ + 1;
|
|
500
531
|
continue;
|
|
501
532
|
}
|
|
502
533
|
if (R === "/") {
|
|
503
|
-
|
|
534
|
+
m = _;
|
|
504
535
|
continue;
|
|
505
536
|
}
|
|
506
537
|
}
|
|
507
538
|
R === "[" ? i++ : R === "]" ? i-- : R === "(" ? d++ : R === ")" && d--;
|
|
508
539
|
}
|
|
509
|
-
const
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
540
|
+
const w = a.length === 0 ? s : s.slice(u);
|
|
541
|
+
let k = w, C = !1;
|
|
542
|
+
w.endsWith(ve) ? (k = w.slice(0, -1), C = !0) : (
|
|
543
|
+
/**
|
|
544
|
+
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
545
|
+
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
546
|
+
*/
|
|
547
|
+
w.startsWith(ve) && (k = w.slice(1), C = !0)
|
|
548
|
+
);
|
|
549
|
+
const z = m && m > u ? m - u : void 0;
|
|
550
|
+
return Ae(a, C, k, z);
|
|
516
551
|
};
|
|
517
552
|
if (t) {
|
|
518
|
-
const s = t +
|
|
519
|
-
o = (i) => i.startsWith(s) ? a(i.
|
|
520
|
-
isExternal: !0,
|
|
521
|
-
modifiers: [],
|
|
522
|
-
hasImportantModifier: !1,
|
|
523
|
-
baseClassName: i,
|
|
524
|
-
maybePostfixModifierPosition: void 0
|
|
525
|
-
};
|
|
553
|
+
const s = t + Ce, a = o;
|
|
554
|
+
o = (i) => i.startsWith(s) ? a(i.slice(s.length)) : Ae(yr, !1, i, void 0, !0);
|
|
526
555
|
}
|
|
527
556
|
if (r) {
|
|
528
557
|
const s = o;
|
|
@@ -532,114 +561,109 @@ const xe = "-", rr = (e) => {
|
|
|
532
561
|
});
|
|
533
562
|
}
|
|
534
563
|
return o;
|
|
535
|
-
},
|
|
536
|
-
const t =
|
|
537
|
-
return (o) => {
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
const
|
|
541
|
-
let
|
|
542
|
-
|
|
543
|
-
i[0] === "["
|
|
544
|
-
|
|
564
|
+
}, kr = (e) => {
|
|
565
|
+
const t = /* @__PURE__ */ new Map();
|
|
566
|
+
return e.orderSensitiveModifiers.forEach((r, o) => {
|
|
567
|
+
t.set(r, 1e6 + o);
|
|
568
|
+
}), (r) => {
|
|
569
|
+
const o = [];
|
|
570
|
+
let s = [];
|
|
571
|
+
for (let a = 0; a < r.length; a++) {
|
|
572
|
+
const i = r[a], d = i[0] === "[", u = t.has(i);
|
|
573
|
+
d || u ? (s.length > 0 && (s.sort(), o.push(...s), s = []), o.push(i)) : s.push(i);
|
|
574
|
+
}
|
|
575
|
+
return s.length > 0 && (s.sort(), o.push(...s)), o;
|
|
545
576
|
};
|
|
546
|
-
},
|
|
547
|
-
cache:
|
|
548
|
-
parseClassName:
|
|
549
|
-
sortModifiers:
|
|
550
|
-
...
|
|
551
|
-
}),
|
|
577
|
+
}, Rr = (e) => ({
|
|
578
|
+
cache: xr(e.cacheSize),
|
|
579
|
+
parseClassName: wr(e),
|
|
580
|
+
sortModifiers: kr(e),
|
|
581
|
+
...dr(e)
|
|
582
|
+
}), _r = /\s+/, Sr = (e, t) => {
|
|
552
583
|
const {
|
|
553
584
|
parseClassName: r,
|
|
554
585
|
getClassGroupId: o,
|
|
555
586
|
getConflictingClassGroupIds: s,
|
|
556
587
|
sortModifiers: a
|
|
557
|
-
} = t, i = [], d = e.trim().split(
|
|
558
|
-
let
|
|
559
|
-
for (let
|
|
560
|
-
const x = d[
|
|
588
|
+
} = t, i = [], d = e.trim().split(_r);
|
|
589
|
+
let u = "";
|
|
590
|
+
for (let m = d.length - 1; m >= 0; m -= 1) {
|
|
591
|
+
const x = d[m], {
|
|
561
592
|
isExternal: w,
|
|
562
593
|
modifiers: k,
|
|
563
|
-
hasImportantModifier:
|
|
564
|
-
baseClassName:
|
|
565
|
-
maybePostfixModifierPosition:
|
|
594
|
+
hasImportantModifier: C,
|
|
595
|
+
baseClassName: z,
|
|
596
|
+
maybePostfixModifierPosition: _
|
|
566
597
|
} = r(x);
|
|
567
598
|
if (w) {
|
|
568
|
-
|
|
599
|
+
u = x + (u.length > 0 ? " " + u : u);
|
|
569
600
|
continue;
|
|
570
601
|
}
|
|
571
|
-
let
|
|
572
|
-
if (!
|
|
573
|
-
if (!
|
|
574
|
-
|
|
602
|
+
let R = !!_, E = o(R ? z.substring(0, _) : z);
|
|
603
|
+
if (!E) {
|
|
604
|
+
if (!R) {
|
|
605
|
+
u = x + (u.length > 0 ? " " + u : u);
|
|
575
606
|
continue;
|
|
576
607
|
}
|
|
577
|
-
if (
|
|
578
|
-
|
|
608
|
+
if (E = o(z), !E) {
|
|
609
|
+
u = x + (u.length > 0 ? " " + u : u);
|
|
579
610
|
continue;
|
|
580
611
|
}
|
|
581
|
-
|
|
612
|
+
R = !1;
|
|
582
613
|
}
|
|
583
|
-
const
|
|
584
|
-
if (i.
|
|
614
|
+
const O = k.length === 0 ? "" : k.length === 1 ? k[0] : a(k).join(":"), N = C ? O + ve : O, V = N + E;
|
|
615
|
+
if (i.indexOf(V) > -1)
|
|
585
616
|
continue;
|
|
586
617
|
i.push(V);
|
|
587
|
-
const L = s(
|
|
588
|
-
for (let
|
|
589
|
-
const $ = L[
|
|
590
|
-
i.push(
|
|
618
|
+
const L = s(E, R);
|
|
619
|
+
for (let P = 0; P < L.length; ++P) {
|
|
620
|
+
const $ = L[P];
|
|
621
|
+
i.push(N + $);
|
|
591
622
|
}
|
|
592
|
-
|
|
623
|
+
u = x + (u.length > 0 ? " " + u : u);
|
|
593
624
|
}
|
|
594
|
-
return
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
}
|
|
602
|
-
const Oe = (e) => {
|
|
625
|
+
return u;
|
|
626
|
+
}, Er = (...e) => {
|
|
627
|
+
let t = 0, r, o, s = "";
|
|
628
|
+
for (; t < e.length; )
|
|
629
|
+
(r = e[t++]) && (o = Ve(r)) && (s && (s += " "), s += o);
|
|
630
|
+
return s;
|
|
631
|
+
}, Ve = (e) => {
|
|
603
632
|
if (typeof e == "string")
|
|
604
633
|
return e;
|
|
605
634
|
let t, r = "";
|
|
606
635
|
for (let o = 0; o < e.length; o++)
|
|
607
|
-
e[o] && (t =
|
|
636
|
+
e[o] && (t = Ve(e[o])) && (r && (r += " "), r += t);
|
|
608
637
|
return r;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
const x = mr(m, r);
|
|
621
|
-
return s(m, x), x;
|
|
622
|
-
}
|
|
623
|
-
return function() {
|
|
624
|
-
return a(pr.apply(null, arguments));
|
|
638
|
+
}, Cr = (e, ...t) => {
|
|
639
|
+
let r, o, s, a;
|
|
640
|
+
const i = (u) => {
|
|
641
|
+
const m = t.reduce((x, w) => w(x), e());
|
|
642
|
+
return r = Rr(m), o = r.cache.get, s = r.cache.set, a = d, d(u);
|
|
643
|
+
}, d = (u) => {
|
|
644
|
+
const m = o(u);
|
|
645
|
+
if (m)
|
|
646
|
+
return m;
|
|
647
|
+
const x = Sr(u, r);
|
|
648
|
+
return s(u, x), x;
|
|
625
649
|
};
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
const t = (r) => r[e] ||
|
|
650
|
+
return a = i, (...u) => a(Er(...u));
|
|
651
|
+
}, Ar = [], A = (e) => {
|
|
652
|
+
const t = (r) => r[e] || Ar;
|
|
629
653
|
return t.isThemeGetter = !0, t;
|
|
630
|
-
},
|
|
654
|
+
}, Le = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, $e = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Tr = /^\d+\/\d+$/, zr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, jr = /\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$/, Pr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Or = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Nr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Q = (e) => Tr.test(e), g = (e) => !!e && !Number.isNaN(Number(e)), B = (e) => !!e && Number.isInteger(Number(e)), ge = (e) => e.endsWith("%") && g(e.slice(0, -1)), F = (e) => zr.test(e), Ir = () => !0, Gr = (e) => (
|
|
631
655
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
632
656
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
633
657
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
634
|
-
|
|
635
|
-
),
|
|
636
|
-
const o =
|
|
658
|
+
jr.test(e) && !Pr.test(e)
|
|
659
|
+
), qe = () => !1, Mr = (e) => Or.test(e), Vr = (e) => Nr.test(e), Lr = (e) => !l(e) && !c(e), $r = (e) => ee(e, Ye, qe), l = (e) => Le.test(e), U = (e) => ee(e, De, Gr), he = (e) => ee(e, Dr, g), Te = (e) => ee(e, We, qe), qr = (e) => ee(e, Fe, Vr), ue = (e) => ee(e, Be, Mr), c = (e) => $e.test(e), le = (e) => re(e, De), Wr = (e) => re(e, Br), ze = (e) => re(e, We), Fr = (e) => re(e, Ye), Yr = (e) => re(e, Fe), me = (e) => re(e, Be, !0), ee = (e, t, r) => {
|
|
660
|
+
const o = Le.exec(e);
|
|
637
661
|
return o ? o[1] ? t(o[1]) : r(o[2]) : !1;
|
|
638
662
|
}, re = (e, t, r = !1) => {
|
|
639
|
-
const o =
|
|
663
|
+
const o = $e.exec(e);
|
|
640
664
|
return o ? o[1] ? t(o[1]) : r : !1;
|
|
641
|
-
},
|
|
642
|
-
const e = A("color"), t = A("font"), r = A("text"), o = A("font-weight"), s = A("tracking"), a = A("leading"), i = A("breakpoint"), d = A("container"),
|
|
665
|
+
}, We = (e) => e === "position" || e === "percentage", Fe = (e) => e === "image" || e === "url", Ye = (e) => e === "length" || e === "size" || e === "bg-size", De = (e) => e === "length", Dr = (e) => e === "number", Br = (e) => e === "family-name", Be = (e) => e === "shadow", Ur = () => {
|
|
666
|
+
const e = A("color"), t = A("font"), r = A("text"), o = A("font-weight"), s = A("tracking"), a = A("leading"), i = A("breakpoint"), d = A("container"), u = A("spacing"), m = A("radius"), x = A("shadow"), w = A("inset-shadow"), k = A("text-shadow"), C = A("drop-shadow"), z = A("blur"), _ = A("perspective"), R = A("aspect"), E = A("ease"), O = A("animate"), N = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], V = () => [
|
|
643
667
|
"center",
|
|
644
668
|
"top",
|
|
645
669
|
"bottom",
|
|
@@ -657,30 +681,30 @@ const A = (e) => {
|
|
|
657
681
|
"bottom-left",
|
|
658
682
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
659
683
|
"left-bottom"
|
|
660
|
-
], L = () => [...V(), c, l],
|
|
684
|
+
], L = () => [...V(), c, l], P = () => ["auto", "hidden", "clip", "visible", "scroll"], $ = () => ["auto", "contain", "none"], p = () => [c, l, u], S = () => [Q, "full", "auto", ...p()], J = () => [B, "none", "subgrid", c, l], X = () => ["auto", {
|
|
661
685
|
span: ["full", B, c, l]
|
|
662
|
-
}, B, c, l],
|
|
686
|
+
}, B, c, l], Y = () => [B, "auto", c, l], te = () => ["auto", "min", "max", "fr", c, l], oe = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], I = () => ["auto", ...p()], M = () => [Q, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...p()], f = () => [e, c, l], ne = () => [...V(), ze, Te, {
|
|
663
687
|
position: [c, l]
|
|
664
688
|
}], se = () => ["no-repeat", {
|
|
665
689
|
repeat: ["", "x", "y", "space", "round"]
|
|
666
|
-
}], n = () => ["auto", "cover", "contain",
|
|
690
|
+
}], n = () => ["auto", "cover", "contain", Fr, $r, {
|
|
667
691
|
size: [c, l]
|
|
668
|
-
}],
|
|
692
|
+
}], b = () => [ge, le, U], h = () => [
|
|
669
693
|
// Deprecated since Tailwind CSS v4.0.0
|
|
670
694
|
"",
|
|
671
695
|
"none",
|
|
672
696
|
"full",
|
|
673
|
-
|
|
697
|
+
m,
|
|
674
698
|
c,
|
|
675
699
|
l
|
|
676
|
-
], y = () => ["", g, le, U], q = () => ["solid", "dashed", "dotted", "double"], H = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], v = () => [g,
|
|
700
|
+
], y = () => ["", g, le, U], q = () => ["solid", "dashed", "dotted", "double"], H = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], v = () => [g, ge, ze, Te], W = () => [
|
|
677
701
|
// Deprecated since Tailwind CSS v4.0.0
|
|
678
702
|
"",
|
|
679
703
|
"none",
|
|
680
|
-
|
|
704
|
+
z,
|
|
681
705
|
c,
|
|
682
706
|
l
|
|
683
|
-
],
|
|
707
|
+
], D = () => ["none", g, c, l], Z = () => ["none", g, c, l], be = () => [g, c, l], ce = () => [Q, "full", ...p()];
|
|
684
708
|
return {
|
|
685
709
|
cacheSize: 500,
|
|
686
710
|
theme: {
|
|
@@ -688,11 +712,11 @@ const A = (e) => {
|
|
|
688
712
|
aspect: ["video"],
|
|
689
713
|
blur: [F],
|
|
690
714
|
breakpoint: [F],
|
|
691
|
-
color: [
|
|
715
|
+
color: [Ir],
|
|
692
716
|
container: [F],
|
|
693
717
|
"drop-shadow": [F],
|
|
694
718
|
ease: ["in", "out", "in-out"],
|
|
695
|
-
font: [
|
|
719
|
+
font: [Lr],
|
|
696
720
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
697
721
|
"inset-shadow": [F],
|
|
698
722
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -713,7 +737,7 @@ const A = (e) => {
|
|
|
713
737
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
714
738
|
*/
|
|
715
739
|
aspect: [{
|
|
716
|
-
aspect: ["auto", "square", Q, l, c,
|
|
740
|
+
aspect: ["auto", "square", Q, l, c, R]
|
|
717
741
|
}],
|
|
718
742
|
/**
|
|
719
743
|
* Container
|
|
@@ -733,14 +757,14 @@ const A = (e) => {
|
|
|
733
757
|
* @see https://tailwindcss.com/docs/break-after
|
|
734
758
|
*/
|
|
735
759
|
"break-after": [{
|
|
736
|
-
"break-after":
|
|
760
|
+
"break-after": N()
|
|
737
761
|
}],
|
|
738
762
|
/**
|
|
739
763
|
* Break Before
|
|
740
764
|
* @see https://tailwindcss.com/docs/break-before
|
|
741
765
|
*/
|
|
742
766
|
"break-before": [{
|
|
743
|
-
"break-before":
|
|
767
|
+
"break-before": N()
|
|
744
768
|
}],
|
|
745
769
|
/**
|
|
746
770
|
* Break Inside
|
|
@@ -811,21 +835,21 @@ const A = (e) => {
|
|
|
811
835
|
* @see https://tailwindcss.com/docs/overflow
|
|
812
836
|
*/
|
|
813
837
|
overflow: [{
|
|
814
|
-
overflow:
|
|
838
|
+
overflow: P()
|
|
815
839
|
}],
|
|
816
840
|
/**
|
|
817
841
|
* Overflow X
|
|
818
842
|
* @see https://tailwindcss.com/docs/overflow
|
|
819
843
|
*/
|
|
820
844
|
"overflow-x": [{
|
|
821
|
-
"overflow-x":
|
|
845
|
+
"overflow-x": P()
|
|
822
846
|
}],
|
|
823
847
|
/**
|
|
824
848
|
* Overflow Y
|
|
825
849
|
* @see https://tailwindcss.com/docs/overflow
|
|
826
850
|
*/
|
|
827
851
|
"overflow-y": [{
|
|
828
|
-
"overflow-y":
|
|
852
|
+
"overflow-y": P()
|
|
829
853
|
}],
|
|
830
854
|
/**
|
|
831
855
|
* Overscroll Behavior
|
|
@@ -858,63 +882,63 @@ const A = (e) => {
|
|
|
858
882
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
859
883
|
*/
|
|
860
884
|
inset: [{
|
|
861
|
-
inset:
|
|
885
|
+
inset: S()
|
|
862
886
|
}],
|
|
863
887
|
/**
|
|
864
888
|
* Right / Left
|
|
865
889
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
866
890
|
*/
|
|
867
891
|
"inset-x": [{
|
|
868
|
-
"inset-x":
|
|
892
|
+
"inset-x": S()
|
|
869
893
|
}],
|
|
870
894
|
/**
|
|
871
895
|
* Top / Bottom
|
|
872
896
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
873
897
|
*/
|
|
874
898
|
"inset-y": [{
|
|
875
|
-
"inset-y":
|
|
899
|
+
"inset-y": S()
|
|
876
900
|
}],
|
|
877
901
|
/**
|
|
878
902
|
* Start
|
|
879
903
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
880
904
|
*/
|
|
881
905
|
start: [{
|
|
882
|
-
start:
|
|
906
|
+
start: S()
|
|
883
907
|
}],
|
|
884
908
|
/**
|
|
885
909
|
* End
|
|
886
910
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
887
911
|
*/
|
|
888
912
|
end: [{
|
|
889
|
-
end:
|
|
913
|
+
end: S()
|
|
890
914
|
}],
|
|
891
915
|
/**
|
|
892
916
|
* Top
|
|
893
917
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
894
918
|
*/
|
|
895
919
|
top: [{
|
|
896
|
-
top:
|
|
920
|
+
top: S()
|
|
897
921
|
}],
|
|
898
922
|
/**
|
|
899
923
|
* Right
|
|
900
924
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
901
925
|
*/
|
|
902
926
|
right: [{
|
|
903
|
-
right:
|
|
927
|
+
right: S()
|
|
904
928
|
}],
|
|
905
929
|
/**
|
|
906
930
|
* Bottom
|
|
907
931
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
908
932
|
*/
|
|
909
933
|
bottom: [{
|
|
910
|
-
bottom:
|
|
934
|
+
bottom: S()
|
|
911
935
|
}],
|
|
912
936
|
/**
|
|
913
937
|
* Left
|
|
914
938
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
915
939
|
*/
|
|
916
940
|
left: [{
|
|
917
|
-
left:
|
|
941
|
+
left: S()
|
|
918
942
|
}],
|
|
919
943
|
/**
|
|
920
944
|
* Visibility
|
|
@@ -999,14 +1023,14 @@ const A = (e) => {
|
|
|
999
1023
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1000
1024
|
*/
|
|
1001
1025
|
"col-start": [{
|
|
1002
|
-
"col-start":
|
|
1026
|
+
"col-start": Y()
|
|
1003
1027
|
}],
|
|
1004
1028
|
/**
|
|
1005
1029
|
* Grid Column End
|
|
1006
1030
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1007
1031
|
*/
|
|
1008
1032
|
"col-end": [{
|
|
1009
|
-
"col-end":
|
|
1033
|
+
"col-end": Y()
|
|
1010
1034
|
}],
|
|
1011
1035
|
/**
|
|
1012
1036
|
* Grid Template Rows
|
|
@@ -1027,14 +1051,14 @@ const A = (e) => {
|
|
|
1027
1051
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1028
1052
|
*/
|
|
1029
1053
|
"row-start": [{
|
|
1030
|
-
"row-start":
|
|
1054
|
+
"row-start": Y()
|
|
1031
1055
|
}],
|
|
1032
1056
|
/**
|
|
1033
1057
|
* Grid Row End
|
|
1034
1058
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1035
1059
|
*/
|
|
1036
1060
|
"row-end": [{
|
|
1037
|
-
"row-end":
|
|
1061
|
+
"row-end": Y()
|
|
1038
1062
|
}],
|
|
1039
1063
|
/**
|
|
1040
1064
|
* Grid Auto Flow
|
|
@@ -1090,14 +1114,14 @@ const A = (e) => {
|
|
|
1090
1114
|
* @see https://tailwindcss.com/docs/justify-items
|
|
1091
1115
|
*/
|
|
1092
1116
|
"justify-items": [{
|
|
1093
|
-
"justify-items": [...
|
|
1117
|
+
"justify-items": [...G(), "normal"]
|
|
1094
1118
|
}],
|
|
1095
1119
|
/**
|
|
1096
1120
|
* Justify Self
|
|
1097
1121
|
* @see https://tailwindcss.com/docs/justify-self
|
|
1098
1122
|
*/
|
|
1099
1123
|
"justify-self": [{
|
|
1100
|
-
"justify-self": ["auto", ...
|
|
1124
|
+
"justify-self": ["auto", ...G()]
|
|
1101
1125
|
}],
|
|
1102
1126
|
/**
|
|
1103
1127
|
* Align Content
|
|
@@ -1111,7 +1135,7 @@ const A = (e) => {
|
|
|
1111
1135
|
* @see https://tailwindcss.com/docs/align-items
|
|
1112
1136
|
*/
|
|
1113
1137
|
"align-items": [{
|
|
1114
|
-
items: [...
|
|
1138
|
+
items: [...G(), {
|
|
1115
1139
|
baseline: ["", "last"]
|
|
1116
1140
|
}]
|
|
1117
1141
|
}],
|
|
@@ -1120,7 +1144,7 @@ const A = (e) => {
|
|
|
1120
1144
|
* @see https://tailwindcss.com/docs/align-self
|
|
1121
1145
|
*/
|
|
1122
1146
|
"align-self": [{
|
|
1123
|
-
self: ["auto", ...
|
|
1147
|
+
self: ["auto", ...G(), {
|
|
1124
1148
|
baseline: ["", "last"]
|
|
1125
1149
|
}]
|
|
1126
1150
|
}],
|
|
@@ -1136,14 +1160,14 @@ const A = (e) => {
|
|
|
1136
1160
|
* @see https://tailwindcss.com/docs/place-items
|
|
1137
1161
|
*/
|
|
1138
1162
|
"place-items": [{
|
|
1139
|
-
"place-items": [...
|
|
1163
|
+
"place-items": [...G(), "baseline"]
|
|
1140
1164
|
}],
|
|
1141
1165
|
/**
|
|
1142
1166
|
* Place Self
|
|
1143
1167
|
* @see https://tailwindcss.com/docs/place-self
|
|
1144
1168
|
*/
|
|
1145
1169
|
"place-self": [{
|
|
1146
|
-
"place-self": ["auto", ...
|
|
1170
|
+
"place-self": ["auto", ...G()]
|
|
1147
1171
|
}],
|
|
1148
1172
|
// Spacing
|
|
1149
1173
|
/**
|
|
@@ -1304,14 +1328,14 @@ const A = (e) => {
|
|
|
1304
1328
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1305
1329
|
*/
|
|
1306
1330
|
size: [{
|
|
1307
|
-
size:
|
|
1331
|
+
size: M()
|
|
1308
1332
|
}],
|
|
1309
1333
|
/**
|
|
1310
1334
|
* Width
|
|
1311
1335
|
* @see https://tailwindcss.com/docs/width
|
|
1312
1336
|
*/
|
|
1313
1337
|
w: [{
|
|
1314
|
-
w: [d, "screen", ...
|
|
1338
|
+
w: [d, "screen", ...M()]
|
|
1315
1339
|
}],
|
|
1316
1340
|
/**
|
|
1317
1341
|
* Min-Width
|
|
@@ -1323,7 +1347,7 @@ const A = (e) => {
|
|
|
1323
1347
|
"screen",
|
|
1324
1348
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1325
1349
|
"none",
|
|
1326
|
-
...
|
|
1350
|
+
...M()
|
|
1327
1351
|
]
|
|
1328
1352
|
}],
|
|
1329
1353
|
/**
|
|
@@ -1341,7 +1365,7 @@ const A = (e) => {
|
|
|
1341
1365
|
{
|
|
1342
1366
|
screen: [i]
|
|
1343
1367
|
},
|
|
1344
|
-
...
|
|
1368
|
+
...M()
|
|
1345
1369
|
]
|
|
1346
1370
|
}],
|
|
1347
1371
|
/**
|
|
@@ -1349,21 +1373,21 @@ const A = (e) => {
|
|
|
1349
1373
|
* @see https://tailwindcss.com/docs/height
|
|
1350
1374
|
*/
|
|
1351
1375
|
h: [{
|
|
1352
|
-
h: ["screen", "lh", ...
|
|
1376
|
+
h: ["screen", "lh", ...M()]
|
|
1353
1377
|
}],
|
|
1354
1378
|
/**
|
|
1355
1379
|
* Min-Height
|
|
1356
1380
|
* @see https://tailwindcss.com/docs/min-height
|
|
1357
1381
|
*/
|
|
1358
1382
|
"min-h": [{
|
|
1359
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1383
|
+
"min-h": ["screen", "lh", "none", ...M()]
|
|
1360
1384
|
}],
|
|
1361
1385
|
/**
|
|
1362
1386
|
* Max-Height
|
|
1363
1387
|
* @see https://tailwindcss.com/docs/max-height
|
|
1364
1388
|
*/
|
|
1365
1389
|
"max-h": [{
|
|
1366
|
-
"max-h": ["screen", "lh", ...
|
|
1390
|
+
"max-h": ["screen", "lh", ...M()]
|
|
1367
1391
|
}],
|
|
1368
1392
|
// ------------------
|
|
1369
1393
|
// --- Typography ---
|
|
@@ -1390,21 +1414,21 @@ const A = (e) => {
|
|
|
1390
1414
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1391
1415
|
*/
|
|
1392
1416
|
"font-weight": [{
|
|
1393
|
-
font: [o, c,
|
|
1417
|
+
font: [o, c, he]
|
|
1394
1418
|
}],
|
|
1395
1419
|
/**
|
|
1396
1420
|
* Font Stretch
|
|
1397
1421
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1398
1422
|
*/
|
|
1399
1423
|
"font-stretch": [{
|
|
1400
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
1424
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", ge, l]
|
|
1401
1425
|
}],
|
|
1402
1426
|
/**
|
|
1403
1427
|
* Font Family
|
|
1404
1428
|
* @see https://tailwindcss.com/docs/font-family
|
|
1405
1429
|
*/
|
|
1406
1430
|
"font-family": [{
|
|
1407
|
-
font: [
|
|
1431
|
+
font: [Wr, l, t]
|
|
1408
1432
|
}],
|
|
1409
1433
|
/**
|
|
1410
1434
|
* Font Variant Numeric
|
|
@@ -1448,7 +1472,7 @@ const A = (e) => {
|
|
|
1448
1472
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1449
1473
|
*/
|
|
1450
1474
|
"line-clamp": [{
|
|
1451
|
-
"line-clamp": [g, "none", c,
|
|
1475
|
+
"line-clamp": [g, "none", c, he]
|
|
1452
1476
|
}],
|
|
1453
1477
|
/**
|
|
1454
1478
|
* Line Height
|
|
@@ -1495,14 +1519,14 @@ const A = (e) => {
|
|
|
1495
1519
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
1496
1520
|
*/
|
|
1497
1521
|
"placeholder-color": [{
|
|
1498
|
-
placeholder:
|
|
1522
|
+
placeholder: f()
|
|
1499
1523
|
}],
|
|
1500
1524
|
/**
|
|
1501
1525
|
* Text Color
|
|
1502
1526
|
* @see https://tailwindcss.com/docs/text-color
|
|
1503
1527
|
*/
|
|
1504
1528
|
"text-color": [{
|
|
1505
|
-
text:
|
|
1529
|
+
text: f()
|
|
1506
1530
|
}],
|
|
1507
1531
|
/**
|
|
1508
1532
|
* Text Decoration
|
|
@@ -1528,7 +1552,7 @@ const A = (e) => {
|
|
|
1528
1552
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
1529
1553
|
*/
|
|
1530
1554
|
"text-decoration-color": [{
|
|
1531
|
-
decoration:
|
|
1555
|
+
decoration: f()
|
|
1532
1556
|
}],
|
|
1533
1557
|
/**
|
|
1534
1558
|
* Text Underline Offset
|
|
@@ -1659,56 +1683,56 @@ const A = (e) => {
|
|
|
1659
1683
|
}, B, c, l],
|
|
1660
1684
|
radial: ["", c, l],
|
|
1661
1685
|
conic: [B, c, l]
|
|
1662
|
-
},
|
|
1686
|
+
}, Yr, qr]
|
|
1663
1687
|
}],
|
|
1664
1688
|
/**
|
|
1665
1689
|
* Background Color
|
|
1666
1690
|
* @see https://tailwindcss.com/docs/background-color
|
|
1667
1691
|
*/
|
|
1668
1692
|
"bg-color": [{
|
|
1669
|
-
bg:
|
|
1693
|
+
bg: f()
|
|
1670
1694
|
}],
|
|
1671
1695
|
/**
|
|
1672
1696
|
* Gradient Color Stops From Position
|
|
1673
1697
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1674
1698
|
*/
|
|
1675
1699
|
"gradient-from-pos": [{
|
|
1676
|
-
from:
|
|
1700
|
+
from: b()
|
|
1677
1701
|
}],
|
|
1678
1702
|
/**
|
|
1679
1703
|
* Gradient Color Stops Via Position
|
|
1680
1704
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1681
1705
|
*/
|
|
1682
1706
|
"gradient-via-pos": [{
|
|
1683
|
-
via:
|
|
1707
|
+
via: b()
|
|
1684
1708
|
}],
|
|
1685
1709
|
/**
|
|
1686
1710
|
* Gradient Color Stops To Position
|
|
1687
1711
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1688
1712
|
*/
|
|
1689
1713
|
"gradient-to-pos": [{
|
|
1690
|
-
to:
|
|
1714
|
+
to: b()
|
|
1691
1715
|
}],
|
|
1692
1716
|
/**
|
|
1693
1717
|
* Gradient Color Stops From
|
|
1694
1718
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1695
1719
|
*/
|
|
1696
1720
|
"gradient-from": [{
|
|
1697
|
-
from:
|
|
1721
|
+
from: f()
|
|
1698
1722
|
}],
|
|
1699
1723
|
/**
|
|
1700
1724
|
* Gradient Color Stops Via
|
|
1701
1725
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1702
1726
|
*/
|
|
1703
1727
|
"gradient-via": [{
|
|
1704
|
-
via:
|
|
1728
|
+
via: f()
|
|
1705
1729
|
}],
|
|
1706
1730
|
/**
|
|
1707
1731
|
* Gradient Color Stops To
|
|
1708
1732
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1709
1733
|
*/
|
|
1710
1734
|
"gradient-to": [{
|
|
1711
|
-
to:
|
|
1735
|
+
to: f()
|
|
1712
1736
|
}],
|
|
1713
1737
|
// ---------------
|
|
1714
1738
|
// --- Borders ---
|
|
@@ -1924,70 +1948,70 @@ const A = (e) => {
|
|
|
1924
1948
|
* @see https://tailwindcss.com/docs/border-color
|
|
1925
1949
|
*/
|
|
1926
1950
|
"border-color": [{
|
|
1927
|
-
border:
|
|
1951
|
+
border: f()
|
|
1928
1952
|
}],
|
|
1929
1953
|
/**
|
|
1930
1954
|
* Border Color X
|
|
1931
1955
|
* @see https://tailwindcss.com/docs/border-color
|
|
1932
1956
|
*/
|
|
1933
1957
|
"border-color-x": [{
|
|
1934
|
-
"border-x":
|
|
1958
|
+
"border-x": f()
|
|
1935
1959
|
}],
|
|
1936
1960
|
/**
|
|
1937
1961
|
* Border Color Y
|
|
1938
1962
|
* @see https://tailwindcss.com/docs/border-color
|
|
1939
1963
|
*/
|
|
1940
1964
|
"border-color-y": [{
|
|
1941
|
-
"border-y":
|
|
1965
|
+
"border-y": f()
|
|
1942
1966
|
}],
|
|
1943
1967
|
/**
|
|
1944
1968
|
* Border Color S
|
|
1945
1969
|
* @see https://tailwindcss.com/docs/border-color
|
|
1946
1970
|
*/
|
|
1947
1971
|
"border-color-s": [{
|
|
1948
|
-
"border-s":
|
|
1972
|
+
"border-s": f()
|
|
1949
1973
|
}],
|
|
1950
1974
|
/**
|
|
1951
1975
|
* Border Color E
|
|
1952
1976
|
* @see https://tailwindcss.com/docs/border-color
|
|
1953
1977
|
*/
|
|
1954
1978
|
"border-color-e": [{
|
|
1955
|
-
"border-e":
|
|
1979
|
+
"border-e": f()
|
|
1956
1980
|
}],
|
|
1957
1981
|
/**
|
|
1958
1982
|
* Border Color Top
|
|
1959
1983
|
* @see https://tailwindcss.com/docs/border-color
|
|
1960
1984
|
*/
|
|
1961
1985
|
"border-color-t": [{
|
|
1962
|
-
"border-t":
|
|
1986
|
+
"border-t": f()
|
|
1963
1987
|
}],
|
|
1964
1988
|
/**
|
|
1965
1989
|
* Border Color Right
|
|
1966
1990
|
* @see https://tailwindcss.com/docs/border-color
|
|
1967
1991
|
*/
|
|
1968
1992
|
"border-color-r": [{
|
|
1969
|
-
"border-r":
|
|
1993
|
+
"border-r": f()
|
|
1970
1994
|
}],
|
|
1971
1995
|
/**
|
|
1972
1996
|
* Border Color Bottom
|
|
1973
1997
|
* @see https://tailwindcss.com/docs/border-color
|
|
1974
1998
|
*/
|
|
1975
1999
|
"border-color-b": [{
|
|
1976
|
-
"border-b":
|
|
2000
|
+
"border-b": f()
|
|
1977
2001
|
}],
|
|
1978
2002
|
/**
|
|
1979
2003
|
* Border Color Left
|
|
1980
2004
|
* @see https://tailwindcss.com/docs/border-color
|
|
1981
2005
|
*/
|
|
1982
2006
|
"border-color-l": [{
|
|
1983
|
-
"border-l":
|
|
2007
|
+
"border-l": f()
|
|
1984
2008
|
}],
|
|
1985
2009
|
/**
|
|
1986
2010
|
* Divide Color
|
|
1987
2011
|
* @see https://tailwindcss.com/docs/divide-color
|
|
1988
2012
|
*/
|
|
1989
2013
|
"divide-color": [{
|
|
1990
|
-
divide:
|
|
2014
|
+
divide: f()
|
|
1991
2015
|
}],
|
|
1992
2016
|
/**
|
|
1993
2017
|
* Outline Style
|
|
@@ -2015,7 +2039,7 @@ const A = (e) => {
|
|
|
2015
2039
|
* @see https://tailwindcss.com/docs/outline-color
|
|
2016
2040
|
*/
|
|
2017
2041
|
"outline-color": [{
|
|
2018
|
-
outline:
|
|
2042
|
+
outline: f()
|
|
2019
2043
|
}],
|
|
2020
2044
|
// ---------------
|
|
2021
2045
|
// --- Effects ---
|
|
@@ -2039,7 +2063,7 @@ const A = (e) => {
|
|
|
2039
2063
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
2040
2064
|
*/
|
|
2041
2065
|
"shadow-color": [{
|
|
2042
|
-
shadow:
|
|
2066
|
+
shadow: f()
|
|
2043
2067
|
}],
|
|
2044
2068
|
/**
|
|
2045
2069
|
* Inset Box Shadow
|
|
@@ -2053,7 +2077,7 @@ const A = (e) => {
|
|
|
2053
2077
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
2054
2078
|
*/
|
|
2055
2079
|
"inset-shadow-color": [{
|
|
2056
|
-
"inset-shadow":
|
|
2080
|
+
"inset-shadow": f()
|
|
2057
2081
|
}],
|
|
2058
2082
|
/**
|
|
2059
2083
|
* Ring Width
|
|
@@ -2074,7 +2098,7 @@ const A = (e) => {
|
|
|
2074
2098
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
2075
2099
|
*/
|
|
2076
2100
|
"ring-color": [{
|
|
2077
|
-
ring:
|
|
2101
|
+
ring: f()
|
|
2078
2102
|
}],
|
|
2079
2103
|
/**
|
|
2080
2104
|
* Ring Offset Width
|
|
@@ -2092,7 +2116,7 @@ const A = (e) => {
|
|
|
2092
2116
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2093
2117
|
*/
|
|
2094
2118
|
"ring-offset-color": [{
|
|
2095
|
-
"ring-offset":
|
|
2119
|
+
"ring-offset": f()
|
|
2096
2120
|
}],
|
|
2097
2121
|
/**
|
|
2098
2122
|
* Inset Ring Width
|
|
@@ -2106,7 +2130,7 @@ const A = (e) => {
|
|
|
2106
2130
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
2107
2131
|
*/
|
|
2108
2132
|
"inset-ring-color": [{
|
|
2109
|
-
"inset-ring":
|
|
2133
|
+
"inset-ring": f()
|
|
2110
2134
|
}],
|
|
2111
2135
|
/**
|
|
2112
2136
|
* Text Shadow
|
|
@@ -2120,7 +2144,7 @@ const A = (e) => {
|
|
|
2120
2144
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
2121
2145
|
*/
|
|
2122
2146
|
"text-shadow-color": [{
|
|
2123
|
-
"text-shadow":
|
|
2147
|
+
"text-shadow": f()
|
|
2124
2148
|
}],
|
|
2125
2149
|
/**
|
|
2126
2150
|
* Opacity
|
|
@@ -2171,10 +2195,10 @@ const A = (e) => {
|
|
|
2171
2195
|
"mask-linear-to": v()
|
|
2172
2196
|
}],
|
|
2173
2197
|
"mask-image-linear-from-color": [{
|
|
2174
|
-
"mask-linear-from":
|
|
2198
|
+
"mask-linear-from": f()
|
|
2175
2199
|
}],
|
|
2176
2200
|
"mask-image-linear-to-color": [{
|
|
2177
|
-
"mask-linear-to":
|
|
2201
|
+
"mask-linear-to": f()
|
|
2178
2202
|
}],
|
|
2179
2203
|
"mask-image-t-from-pos": [{
|
|
2180
2204
|
"mask-t-from": v()
|
|
@@ -2183,10 +2207,10 @@ const A = (e) => {
|
|
|
2183
2207
|
"mask-t-to": v()
|
|
2184
2208
|
}],
|
|
2185
2209
|
"mask-image-t-from-color": [{
|
|
2186
|
-
"mask-t-from":
|
|
2210
|
+
"mask-t-from": f()
|
|
2187
2211
|
}],
|
|
2188
2212
|
"mask-image-t-to-color": [{
|
|
2189
|
-
"mask-t-to":
|
|
2213
|
+
"mask-t-to": f()
|
|
2190
2214
|
}],
|
|
2191
2215
|
"mask-image-r-from-pos": [{
|
|
2192
2216
|
"mask-r-from": v()
|
|
@@ -2195,10 +2219,10 @@ const A = (e) => {
|
|
|
2195
2219
|
"mask-r-to": v()
|
|
2196
2220
|
}],
|
|
2197
2221
|
"mask-image-r-from-color": [{
|
|
2198
|
-
"mask-r-from":
|
|
2222
|
+
"mask-r-from": f()
|
|
2199
2223
|
}],
|
|
2200
2224
|
"mask-image-r-to-color": [{
|
|
2201
|
-
"mask-r-to":
|
|
2225
|
+
"mask-r-to": f()
|
|
2202
2226
|
}],
|
|
2203
2227
|
"mask-image-b-from-pos": [{
|
|
2204
2228
|
"mask-b-from": v()
|
|
@@ -2207,10 +2231,10 @@ const A = (e) => {
|
|
|
2207
2231
|
"mask-b-to": v()
|
|
2208
2232
|
}],
|
|
2209
2233
|
"mask-image-b-from-color": [{
|
|
2210
|
-
"mask-b-from":
|
|
2234
|
+
"mask-b-from": f()
|
|
2211
2235
|
}],
|
|
2212
2236
|
"mask-image-b-to-color": [{
|
|
2213
|
-
"mask-b-to":
|
|
2237
|
+
"mask-b-to": f()
|
|
2214
2238
|
}],
|
|
2215
2239
|
"mask-image-l-from-pos": [{
|
|
2216
2240
|
"mask-l-from": v()
|
|
@@ -2219,10 +2243,10 @@ const A = (e) => {
|
|
|
2219
2243
|
"mask-l-to": v()
|
|
2220
2244
|
}],
|
|
2221
2245
|
"mask-image-l-from-color": [{
|
|
2222
|
-
"mask-l-from":
|
|
2246
|
+
"mask-l-from": f()
|
|
2223
2247
|
}],
|
|
2224
2248
|
"mask-image-l-to-color": [{
|
|
2225
|
-
"mask-l-to":
|
|
2249
|
+
"mask-l-to": f()
|
|
2226
2250
|
}],
|
|
2227
2251
|
"mask-image-x-from-pos": [{
|
|
2228
2252
|
"mask-x-from": v()
|
|
@@ -2231,10 +2255,10 @@ const A = (e) => {
|
|
|
2231
2255
|
"mask-x-to": v()
|
|
2232
2256
|
}],
|
|
2233
2257
|
"mask-image-x-from-color": [{
|
|
2234
|
-
"mask-x-from":
|
|
2258
|
+
"mask-x-from": f()
|
|
2235
2259
|
}],
|
|
2236
2260
|
"mask-image-x-to-color": [{
|
|
2237
|
-
"mask-x-to":
|
|
2261
|
+
"mask-x-to": f()
|
|
2238
2262
|
}],
|
|
2239
2263
|
"mask-image-y-from-pos": [{
|
|
2240
2264
|
"mask-y-from": v()
|
|
@@ -2243,10 +2267,10 @@ const A = (e) => {
|
|
|
2243
2267
|
"mask-y-to": v()
|
|
2244
2268
|
}],
|
|
2245
2269
|
"mask-image-y-from-color": [{
|
|
2246
|
-
"mask-y-from":
|
|
2270
|
+
"mask-y-from": f()
|
|
2247
2271
|
}],
|
|
2248
2272
|
"mask-image-y-to-color": [{
|
|
2249
|
-
"mask-y-to":
|
|
2273
|
+
"mask-y-to": f()
|
|
2250
2274
|
}],
|
|
2251
2275
|
"mask-image-radial": [{
|
|
2252
2276
|
"mask-radial": [c, l]
|
|
@@ -2258,10 +2282,10 @@ const A = (e) => {
|
|
|
2258
2282
|
"mask-radial-to": v()
|
|
2259
2283
|
}],
|
|
2260
2284
|
"mask-image-radial-from-color": [{
|
|
2261
|
-
"mask-radial-from":
|
|
2285
|
+
"mask-radial-from": f()
|
|
2262
2286
|
}],
|
|
2263
2287
|
"mask-image-radial-to-color": [{
|
|
2264
|
-
"mask-radial-to":
|
|
2288
|
+
"mask-radial-to": f()
|
|
2265
2289
|
}],
|
|
2266
2290
|
"mask-image-radial-shape": [{
|
|
2267
2291
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -2285,10 +2309,10 @@ const A = (e) => {
|
|
|
2285
2309
|
"mask-conic-to": v()
|
|
2286
2310
|
}],
|
|
2287
2311
|
"mask-image-conic-from-color": [{
|
|
2288
|
-
"mask-conic-from":
|
|
2312
|
+
"mask-conic-from": f()
|
|
2289
2313
|
}],
|
|
2290
2314
|
"mask-image-conic-to-color": [{
|
|
2291
|
-
"mask-conic-to":
|
|
2315
|
+
"mask-conic-to": f()
|
|
2292
2316
|
}],
|
|
2293
2317
|
/**
|
|
2294
2318
|
* Mask Mode
|
|
@@ -2385,7 +2409,7 @@ const A = (e) => {
|
|
|
2385
2409
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2386
2410
|
"",
|
|
2387
2411
|
"none",
|
|
2388
|
-
|
|
2412
|
+
C,
|
|
2389
2413
|
me,
|
|
2390
2414
|
ue
|
|
2391
2415
|
]
|
|
@@ -2395,7 +2419,7 @@ const A = (e) => {
|
|
|
2395
2419
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
2396
2420
|
*/
|
|
2397
2421
|
"drop-shadow-color": [{
|
|
2398
|
-
"drop-shadow":
|
|
2422
|
+
"drop-shadow": f()
|
|
2399
2423
|
}],
|
|
2400
2424
|
/**
|
|
2401
2425
|
* Grayscale
|
|
@@ -2582,7 +2606,7 @@ const A = (e) => {
|
|
|
2582
2606
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2583
2607
|
*/
|
|
2584
2608
|
ease: [{
|
|
2585
|
-
ease: ["linear", "initial",
|
|
2609
|
+
ease: ["linear", "initial", E, c, l]
|
|
2586
2610
|
}],
|
|
2587
2611
|
/**
|
|
2588
2612
|
* Transition Delay
|
|
@@ -2596,7 +2620,7 @@ const A = (e) => {
|
|
|
2596
2620
|
* @see https://tailwindcss.com/docs/animation
|
|
2597
2621
|
*/
|
|
2598
2622
|
animate: [{
|
|
2599
|
-
animate: ["none",
|
|
2623
|
+
animate: ["none", O, c, l]
|
|
2600
2624
|
}],
|
|
2601
2625
|
// ------------------
|
|
2602
2626
|
// --- Transforms ---
|
|
@@ -2613,7 +2637,7 @@ const A = (e) => {
|
|
|
2613
2637
|
* @see https://tailwindcss.com/docs/perspective
|
|
2614
2638
|
*/
|
|
2615
2639
|
perspective: [{
|
|
2616
|
-
perspective: [
|
|
2640
|
+
perspective: [_, c, l]
|
|
2617
2641
|
}],
|
|
2618
2642
|
/**
|
|
2619
2643
|
* Perspective Origin
|
|
@@ -2627,28 +2651,28 @@ const A = (e) => {
|
|
|
2627
2651
|
* @see https://tailwindcss.com/docs/rotate
|
|
2628
2652
|
*/
|
|
2629
2653
|
rotate: [{
|
|
2630
|
-
rotate:
|
|
2654
|
+
rotate: D()
|
|
2631
2655
|
}],
|
|
2632
2656
|
/**
|
|
2633
2657
|
* Rotate X
|
|
2634
2658
|
* @see https://tailwindcss.com/docs/rotate
|
|
2635
2659
|
*/
|
|
2636
2660
|
"rotate-x": [{
|
|
2637
|
-
"rotate-x":
|
|
2661
|
+
"rotate-x": D()
|
|
2638
2662
|
}],
|
|
2639
2663
|
/**
|
|
2640
2664
|
* Rotate Y
|
|
2641
2665
|
* @see https://tailwindcss.com/docs/rotate
|
|
2642
2666
|
*/
|
|
2643
2667
|
"rotate-y": [{
|
|
2644
|
-
"rotate-y":
|
|
2668
|
+
"rotate-y": D()
|
|
2645
2669
|
}],
|
|
2646
2670
|
/**
|
|
2647
2671
|
* Rotate Z
|
|
2648
2672
|
* @see https://tailwindcss.com/docs/rotate
|
|
2649
2673
|
*/
|
|
2650
2674
|
"rotate-z": [{
|
|
2651
|
-
"rotate-z":
|
|
2675
|
+
"rotate-z": D()
|
|
2652
2676
|
}],
|
|
2653
2677
|
/**
|
|
2654
2678
|
* Scale
|
|
@@ -2688,21 +2712,21 @@ const A = (e) => {
|
|
|
2688
2712
|
* @see https://tailwindcss.com/docs/skew
|
|
2689
2713
|
*/
|
|
2690
2714
|
skew: [{
|
|
2691
|
-
skew:
|
|
2715
|
+
skew: be()
|
|
2692
2716
|
}],
|
|
2693
2717
|
/**
|
|
2694
2718
|
* Skew X
|
|
2695
2719
|
* @see https://tailwindcss.com/docs/skew
|
|
2696
2720
|
*/
|
|
2697
2721
|
"skew-x": [{
|
|
2698
|
-
"skew-x":
|
|
2722
|
+
"skew-x": be()
|
|
2699
2723
|
}],
|
|
2700
2724
|
/**
|
|
2701
2725
|
* Skew Y
|
|
2702
2726
|
* @see https://tailwindcss.com/docs/skew
|
|
2703
2727
|
*/
|
|
2704
2728
|
"skew-y": [{
|
|
2705
|
-
"skew-y":
|
|
2729
|
+
"skew-y": be()
|
|
2706
2730
|
}],
|
|
2707
2731
|
/**
|
|
2708
2732
|
* Transform
|
|
@@ -2766,7 +2790,7 @@ const A = (e) => {
|
|
|
2766
2790
|
* @see https://tailwindcss.com/docs/accent-color
|
|
2767
2791
|
*/
|
|
2768
2792
|
accent: [{
|
|
2769
|
-
accent:
|
|
2793
|
+
accent: f()
|
|
2770
2794
|
}],
|
|
2771
2795
|
/**
|
|
2772
2796
|
* Appearance
|
|
@@ -2780,7 +2804,7 @@ const A = (e) => {
|
|
|
2780
2804
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
2781
2805
|
*/
|
|
2782
2806
|
"caret-color": [{
|
|
2783
|
-
caret:
|
|
2807
|
+
caret: f()
|
|
2784
2808
|
}],
|
|
2785
2809
|
/**
|
|
2786
2810
|
* Color Scheme
|
|
@@ -3026,21 +3050,21 @@ const A = (e) => {
|
|
|
3026
3050
|
* @see https://tailwindcss.com/docs/fill
|
|
3027
3051
|
*/
|
|
3028
3052
|
fill: [{
|
|
3029
|
-
fill: ["none", ...
|
|
3053
|
+
fill: ["none", ...f()]
|
|
3030
3054
|
}],
|
|
3031
3055
|
/**
|
|
3032
3056
|
* Stroke Width
|
|
3033
3057
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3034
3058
|
*/
|
|
3035
3059
|
"stroke-w": [{
|
|
3036
|
-
stroke: [g, le, U,
|
|
3060
|
+
stroke: [g, le, U, he]
|
|
3037
3061
|
}],
|
|
3038
3062
|
/**
|
|
3039
3063
|
* Stroke
|
|
3040
3064
|
* @see https://tailwindcss.com/docs/stroke
|
|
3041
3065
|
*/
|
|
3042
3066
|
stroke: [{
|
|
3043
|
-
stroke: ["none", ...
|
|
3067
|
+
stroke: ["none", ...f()]
|
|
3044
3068
|
}],
|
|
3045
3069
|
// ---------------------
|
|
3046
3070
|
// --- Accessibility ---
|
|
@@ -3108,11 +3132,11 @@ const A = (e) => {
|
|
|
3108
3132
|
},
|
|
3109
3133
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3110
3134
|
};
|
|
3111
|
-
},
|
|
3135
|
+
}, Jr = /* @__PURE__ */ Cr(Ur);
|
|
3112
3136
|
function K(...e) {
|
|
3113
|
-
return
|
|
3137
|
+
return Jr(Pe(e));
|
|
3114
3138
|
}
|
|
3115
|
-
const
|
|
3139
|
+
const Xr = Oe(
|
|
3116
3140
|
"inline-flex items-center justify-center whitespace-nowrap select-none disabled:opacity-50 disabled:pointer-events-none rounded-md font-medium leading-none focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-[var(--atom-ring-color)] focus-visible:ring-offset-[var(--atom-ring-offset)] transition-colors transition-transform duration-150 ease-in-out relative overflow-hidden isolate [&>svg]:fill-current [&>svg]:stroke-current motion-reduce:transform-none motion-reduce:transition-none",
|
|
3117
3141
|
{
|
|
3118
3142
|
variants: {
|
|
@@ -3160,7 +3184,7 @@ const Ir = je(
|
|
|
3160
3184
|
],
|
|
3161
3185
|
defaultVariants: { variant: "primary", size: "md" }
|
|
3162
3186
|
}
|
|
3163
|
-
),
|
|
3187
|
+
), Hr = T.forwardRef(
|
|
3164
3188
|
({
|
|
3165
3189
|
className: e,
|
|
3166
3190
|
variant: t,
|
|
@@ -3170,37 +3194,37 @@ const Ir = je(
|
|
|
3170
3194
|
ripple: a = !0,
|
|
3171
3195
|
onPointerDown: i,
|
|
3172
3196
|
disabled: d,
|
|
3173
|
-
type:
|
|
3174
|
-
...
|
|
3197
|
+
type: u,
|
|
3198
|
+
...m
|
|
3175
3199
|
}, x) => {
|
|
3176
|
-
const w = !!s, k = w ?
|
|
3177
|
-
if (i?.(
|
|
3178
|
-
const
|
|
3179
|
-
if (!
|
|
3180
|
-
const
|
|
3181
|
-
|
|
3182
|
-
const J = (t ?? "primary") === "ghost" || t === "icon" || t === "iconGhost" || t === "iconSquare" || t === "iconSquareGhost" || t === "secondary", X = getComputedStyle(
|
|
3183
|
-
|
|
3200
|
+
const w = !!s, k = w ? rr : "button", C = T.useRef(null), z = d ? "" : void 0, _ = w ? void 0 : u ?? "button", R = (E) => {
|
|
3201
|
+
if (i?.(E), !a || d || E.button !== 0) return;
|
|
3202
|
+
const O = C.current;
|
|
3203
|
+
if (!O) return;
|
|
3204
|
+
const N = O.getBoundingClientRect(), P = Math.max(N.width, N.height) * (r === "sm" ? 0.5 : r === "lg" ? 0.7 : 0.6), $ = E.clientX - N.left - P, p = E.clientY - N.top - P, S = document.createElement("span");
|
|
3205
|
+
S.className = "atom-ripple", S.style.width = `${P * 2}px`, S.style.height = `${P * 2}px`, S.style.left = `${$}px`, S.style.top = `${p}px`;
|
|
3206
|
+
const J = (t ?? "primary") === "ghost" || t === "icon" || t === "iconGhost" || t === "iconSquare" || t === "iconSquareGhost" || t === "secondary", X = getComputedStyle(O).getPropertyValue(J ? "--atom-ripple-color-ghost" : "--atom-ripple-color-solid").trim();
|
|
3207
|
+
S.style.background = X || "currentColor", O.appendChild(S), S.addEventListener("animationend", () => S.remove(), { once: !0 });
|
|
3184
3208
|
};
|
|
3185
|
-
return /* @__PURE__ */
|
|
3209
|
+
return /* @__PURE__ */ j.jsx(
|
|
3186
3210
|
k,
|
|
3187
3211
|
{
|
|
3188
|
-
...
|
|
3189
|
-
"data-disabled":
|
|
3212
|
+
...m,
|
|
3213
|
+
"data-disabled": z,
|
|
3190
3214
|
"aria-disabled": w && d ? !0 : void 0,
|
|
3191
|
-
type:
|
|
3192
|
-
ref: (
|
|
3193
|
-
|
|
3215
|
+
type: _,
|
|
3216
|
+
ref: (E) => {
|
|
3217
|
+
C.current = E, typeof x == "function" ? x(E) : x && (x.current = E);
|
|
3194
3218
|
},
|
|
3195
|
-
onPointerDown:
|
|
3196
|
-
className: K(
|
|
3219
|
+
onPointerDown: R,
|
|
3220
|
+
className: K(Xr({ variant: t, size: r, fullWidth: o }), e),
|
|
3197
3221
|
disabled: w ? void 0 : d
|
|
3198
3222
|
}
|
|
3199
3223
|
);
|
|
3200
3224
|
}
|
|
3201
3225
|
);
|
|
3202
|
-
|
|
3203
|
-
const
|
|
3226
|
+
Hr.displayName = "Button";
|
|
3227
|
+
const Zr = Oe(
|
|
3204
3228
|
"block w-full rounded-md outline-none leading-none bg-[var(--atom-input-bg)] text-[var(--atom-input-fg)] placeholder:text-[color-mix(in srgb, var(--atom-input-fg) 55%, transparent)] border border-[var(--atom-input-border)] transition-colors duration-150 ease-in-out hover:bg-[color-mix(in srgb, var(--atom-primary) 6%, transparent)] hover:border-[color-mix(in srgb, var(--atom-input-border) 70%, var(--atom-primary) 30%)] focus:outline-none focus:border-[var(--atom-input-focus,var(--atom-primary))] caret-[var(--atom-primary)] selection:bg-[color-mix(in srgb, var(--atom-primary) 30%, transparent)] disabled:opacity-60 disabled:cursor-not-allowed disabled:hover:bg-[var(--atom-input-bg)] disabled:hover:border-[var(--atom-input-border)] read-only:bg-[color-mix(in srgb, var(--atom-input-bg) 90%, var(--atom-border) 10%)] read-only:cursor-default read-only:hover:bg-[color-mix(in srgb, var(--atom-input-bg) 90%, var(--atom-border) 10%)]",
|
|
3205
3229
|
{
|
|
3206
3230
|
variants: {
|
|
@@ -3219,7 +3243,7 @@ const Gr = je(
|
|
|
3219
3243
|
},
|
|
3220
3244
|
defaultVariants: { size: "md", tone: "default" }
|
|
3221
3245
|
}
|
|
3222
|
-
),
|
|
3246
|
+
), Qr = T.forwardRef(
|
|
3223
3247
|
({
|
|
3224
3248
|
className: e,
|
|
3225
3249
|
size: t,
|
|
@@ -3229,27 +3253,27 @@ const Gr = je(
|
|
|
3229
3253
|
hint: a,
|
|
3230
3254
|
errorText: i,
|
|
3231
3255
|
loading: d = !1,
|
|
3232
|
-
id:
|
|
3233
|
-
...
|
|
3256
|
+
id: u,
|
|
3257
|
+
...m
|
|
3234
3258
|
}, x) => {
|
|
3235
|
-
const w = T.useId(), k =
|
|
3236
|
-
a &&
|
|
3237
|
-
const
|
|
3238
|
-
return /* @__PURE__ */
|
|
3239
|
-
/* @__PURE__ */
|
|
3240
|
-
|
|
3259
|
+
const w = T.useId(), k = u ?? `inp_${w}`, C = !!o, z = !!s || d, _ = [];
|
|
3260
|
+
a && _.push(`${k}__hint`), i && _.push(`${k}__err`);
|
|
3261
|
+
const R = t === "lg" ? "w-10" : t === "sm" ? "w-8" : "w-9", E = t === "lg" ? "[&>svg]:w-5 [&>svg]:h-5" : t === "sm" ? "[&>svg]:w-4 [&>svg]:h-4" : "[&>svg]:w-5 [&>svg]:h-5", O = r === "invalid" ? "hover:bg-[color-mix(in srgb, var(--atom-error) 6%, transparent)] hover:border-[color-mix(in srgb, var(--atom-input-border) 70%, var(--atom-error) 30%)] focus:border-[var(--atom-error)]" : r === "success" ? "hover:bg-[color-mix(in srgb, var(--atom-success) 6%, transparent)] hover:border-[color-mix(in srgb, var(--atom-input-border) 70%, var(--atom-success) 30%)] focus:border-[var(--atom-success)]" : "";
|
|
3262
|
+
return /* @__PURE__ */ j.jsxs("div", { children: [
|
|
3263
|
+
/* @__PURE__ */ j.jsxs("div", { className: "relative", children: [
|
|
3264
|
+
C && /* @__PURE__ */ j.jsx(
|
|
3241
3265
|
"span",
|
|
3242
3266
|
{
|
|
3243
3267
|
className: K(
|
|
3244
3268
|
"pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 flex items-center justify-center",
|
|
3245
|
-
|
|
3269
|
+
R
|
|
3246
3270
|
),
|
|
3247
3271
|
"aria-hidden": "true",
|
|
3248
|
-
children: /* @__PURE__ */
|
|
3272
|
+
children: /* @__PURE__ */ j.jsx(
|
|
3249
3273
|
"span",
|
|
3250
3274
|
{
|
|
3251
3275
|
className: K(
|
|
3252
|
-
|
|
3276
|
+
E,
|
|
3253
3277
|
"text-[var(--atom-muted)] [&>svg]:fill-current [&>svg]:stroke-current"
|
|
3254
3278
|
),
|
|
3255
3279
|
children: o
|
|
@@ -3257,52 +3281,52 @@ const Gr = je(
|
|
|
3257
3281
|
)
|
|
3258
3282
|
}
|
|
3259
3283
|
),
|
|
3260
|
-
|
|
3284
|
+
z && /* @__PURE__ */ j.jsx(
|
|
3261
3285
|
"span",
|
|
3262
3286
|
{
|
|
3263
3287
|
className: K(
|
|
3264
3288
|
"absolute right-0 top-1/2 -translate-y-1/2 flex items-center justify-center",
|
|
3265
|
-
|
|
3289
|
+
R
|
|
3266
3290
|
),
|
|
3267
|
-
children: /* @__PURE__ */
|
|
3291
|
+
children: /* @__PURE__ */ j.jsx(
|
|
3268
3292
|
"span",
|
|
3269
3293
|
{
|
|
3270
3294
|
className: K(
|
|
3271
|
-
|
|
3295
|
+
E,
|
|
3272
3296
|
"text-[var(--atom-muted)] [&>svg]:fill-current [&>svg]:stroke-current"
|
|
3273
3297
|
),
|
|
3274
|
-
children: d ? /* @__PURE__ */
|
|
3275
|
-
/* @__PURE__ */
|
|
3276
|
-
/* @__PURE__ */
|
|
3298
|
+
children: d ? /* @__PURE__ */ j.jsxs("svg", { viewBox: "0 0 24 24", className: "animate-spin", fill: "none", stroke: "currentColor", children: [
|
|
3299
|
+
/* @__PURE__ */ j.jsx("circle", { cx: "12", cy: "12", r: "9", strokeOpacity: ".2", strokeWidth: "3" }),
|
|
3300
|
+
/* @__PURE__ */ j.jsx("path", { d: "M21 12a9 9 0 0 1-9 9", strokeWidth: "3", strokeLinecap: "round" })
|
|
3277
3301
|
] }) : s
|
|
3278
3302
|
}
|
|
3279
3303
|
)
|
|
3280
3304
|
}
|
|
3281
3305
|
),
|
|
3282
|
-
/* @__PURE__ */
|
|
3306
|
+
/* @__PURE__ */ j.jsx(
|
|
3283
3307
|
"input",
|
|
3284
3308
|
{
|
|
3285
3309
|
id: k,
|
|
3286
3310
|
ref: x,
|
|
3287
|
-
className: K(
|
|
3311
|
+
className: K(Zr({ size: t, tone: r, hasLeft: C, hasRight: z }), O, e),
|
|
3288
3312
|
"aria-invalid": r === "invalid" || !!i || void 0,
|
|
3289
|
-
"aria-readonly":
|
|
3313
|
+
"aria-readonly": m.readOnly || void 0,
|
|
3290
3314
|
"aria-busy": d || void 0,
|
|
3291
|
-
"aria-describedby":
|
|
3292
|
-
...
|
|
3315
|
+
"aria-describedby": _.length ? _.join(" ") : void 0,
|
|
3316
|
+
...m
|
|
3293
3317
|
}
|
|
3294
3318
|
)
|
|
3295
3319
|
] }),
|
|
3296
|
-
(a || i) && /* @__PURE__ */
|
|
3297
|
-
i && /* @__PURE__ */
|
|
3298
|
-
a && /* @__PURE__ */
|
|
3320
|
+
(a || i) && /* @__PURE__ */ j.jsxs("div", { className: "mt-1 text-xs leading-snug", children: [
|
|
3321
|
+
i && /* @__PURE__ */ j.jsx("p", { id: `${k}__err`, className: "text-(--atom-error)", children: i }),
|
|
3322
|
+
a && /* @__PURE__ */ j.jsx("p", { id: `${k}__hint`, className: "text-(--atom-error)", children: a })
|
|
3299
3323
|
] })
|
|
3300
3324
|
] });
|
|
3301
3325
|
}
|
|
3302
3326
|
);
|
|
3303
|
-
|
|
3327
|
+
Qr.displayName = "Input";
|
|
3304
3328
|
export {
|
|
3305
|
-
|
|
3306
|
-
|
|
3329
|
+
Hr as Button,
|
|
3330
|
+
Qr as Input
|
|
3307
3331
|
};
|
|
3308
3332
|
//# sourceMappingURL=index.js.map
|