@payai/x402-solana-react 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +448 -476
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as a, jsxs as m, Fragment as
|
|
2
|
-
import * as
|
|
3
|
-
import { useState as
|
|
1
|
+
import { jsx as a, jsxs as m, Fragment as ve } from "react/jsx-runtime";
|
|
2
|
+
import * as A from "react";
|
|
3
|
+
import { useState as Y, useCallback as Se, useMemo as Ce, useRef as dt, useEffect as re } from "react";
|
|
4
4
|
import { ConnectionProvider as mt, WalletProvider as ut, useWallet as gt } from "@solana/wallet-adapter-react";
|
|
5
5
|
import { WalletModalProvider as ht, WalletMultiButton as bt } from "@solana/wallet-adapter-react-ui";
|
|
6
|
-
import { WalletAdapterNetwork as
|
|
6
|
+
import { WalletAdapterNetwork as Pe } from "@solana/wallet-adapter-base";
|
|
7
7
|
import { PhantomWalletAdapter as pt, SolflareWalletAdapter as ft } from "@solana/wallet-adapter-wallets";
|
|
8
|
-
import { Connection as
|
|
9
|
-
import { getAssociatedTokenAddress as Ne, getAccount as
|
|
8
|
+
import { Connection as Ge, PublicKey as Z, ComputeBudgetProgram as Be, TransactionMessage as xt, VersionedTransaction as kt, clusterApiUrl as wt } from "@solana/web3.js";
|
|
9
|
+
import { getAssociatedTokenAddress as Ne, getAccount as vt, TOKEN_2022_PROGRAM_ID as Re, TOKEN_PROGRAM_ID as yt, getMint as Ft, createTransferCheckedInstruction as Ct } from "@solana/spl-token";
|
|
10
10
|
function Nt(t) {
|
|
11
11
|
return t === "solana" ? "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" : "4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU";
|
|
12
12
|
}
|
|
@@ -15,26 +15,26 @@ function Et(t) {
|
|
|
15
15
|
}
|
|
16
16
|
async function At(t, o, r) {
|
|
17
17
|
try {
|
|
18
|
-
const n = r || Et(o), s = new
|
|
18
|
+
const n = r || Et(o), s = new Ge(n, "confirmed"), l = new Z(t), i = new Z(Nt(o)), u = await Ne(
|
|
19
19
|
i,
|
|
20
20
|
l
|
|
21
|
-
), g = await
|
|
21
|
+
), g = await vt(s, u);
|
|
22
22
|
return (Number(g.amount) / 1e6).toFixed(2);
|
|
23
23
|
} catch (n) {
|
|
24
24
|
return console.error("Error fetching USDC balance:", n), "0.00";
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Ve(t) {
|
|
28
28
|
var o, r, n = "";
|
|
29
29
|
if (typeof t == "string" || typeof t == "number") n += t;
|
|
30
30
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
31
31
|
var s = t.length;
|
|
32
|
-
for (o = 0; o < s; o++) t[o] && (r =
|
|
32
|
+
for (o = 0; o < s; o++) t[o] && (r = Ve(t[o])) && (n && (n += " "), n += r);
|
|
33
33
|
} else for (r in t) t[r] && (n && (n += " "), n += r);
|
|
34
34
|
return n;
|
|
35
35
|
}
|
|
36
36
|
function Ke() {
|
|
37
|
-
for (var t, o, r = 0, n = "", s = arguments.length; r < s; r++) (t = arguments[r]) && (o =
|
|
37
|
+
for (var t, o, r = 0, n = "", s = arguments.length; r < s; r++) (t = arguments[r]) && (o = Ve(t)) && (n && (n += " "), n += o);
|
|
38
38
|
return n;
|
|
39
39
|
}
|
|
40
40
|
const Tt = (t, o) => {
|
|
@@ -47,64 +47,64 @@ const Tt = (t, o) => {
|
|
|
47
47
|
}, Dt = (t, o) => ({
|
|
48
48
|
classGroupId: t,
|
|
49
49
|
validator: o
|
|
50
|
-
}),
|
|
50
|
+
}), qe = (t = /* @__PURE__ */ new Map(), o = null, r) => ({
|
|
51
51
|
nextPart: t,
|
|
52
52
|
validators: o,
|
|
53
53
|
classGroupId: r
|
|
54
|
-
}), he = "-", Ie = [],
|
|
55
|
-
const o =
|
|
54
|
+
}), he = "-", Ie = [], Mt = "arbitrary..", St = (t) => {
|
|
55
|
+
const o = Bt(t), {
|
|
56
56
|
conflictingClassGroups: r,
|
|
57
57
|
conflictingClassGroupModifiers: n
|
|
58
58
|
} = t;
|
|
59
59
|
return {
|
|
60
60
|
getClassGroupId: (i) => {
|
|
61
61
|
if (i.startsWith("[") && i.endsWith("]"))
|
|
62
|
-
return
|
|
62
|
+
return Pt(i);
|
|
63
63
|
const u = i.split(he), g = u[0] === "" && u.length > 1 ? 1 : 0;
|
|
64
|
-
return
|
|
64
|
+
return Ye(u, g, o);
|
|
65
65
|
},
|
|
66
66
|
getConflictingClassGroupIds: (i, u) => {
|
|
67
67
|
if (u) {
|
|
68
|
-
const g = n[i],
|
|
69
|
-
return g ?
|
|
68
|
+
const g = n[i], p = r[i];
|
|
69
|
+
return g ? p ? Tt(p, g) : g : p || Ie;
|
|
70
70
|
}
|
|
71
71
|
return r[i] || Ie;
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
},
|
|
74
|
+
}, Ye = (t, o, r) => {
|
|
75
75
|
if (t.length - o === 0)
|
|
76
76
|
return r.classGroupId;
|
|
77
77
|
const s = t[o], l = r.nextPart.get(s);
|
|
78
78
|
if (l) {
|
|
79
|
-
const
|
|
80
|
-
if (
|
|
79
|
+
const p = Ye(t, o + 1, l);
|
|
80
|
+
if (p) return p;
|
|
81
81
|
}
|
|
82
82
|
const i = r.validators;
|
|
83
83
|
if (i === null)
|
|
84
84
|
return;
|
|
85
85
|
const u = o === 0 ? t.join(he) : t.slice(o).join(he), g = i.length;
|
|
86
|
-
for (let
|
|
87
|
-
const
|
|
88
|
-
if (
|
|
89
|
-
return
|
|
86
|
+
for (let p = 0; p < g; p++) {
|
|
87
|
+
const k = i[p];
|
|
88
|
+
if (k.validator(u))
|
|
89
|
+
return k.classGroupId;
|
|
90
90
|
}
|
|
91
|
-
},
|
|
91
|
+
}, Pt = (t) => t.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
92
92
|
const o = t.slice(1, -1), r = o.indexOf(":"), n = o.slice(0, r);
|
|
93
|
-
return n ?
|
|
94
|
-
})(),
|
|
93
|
+
return n ? Mt + n : void 0;
|
|
94
|
+
})(), Bt = (t) => {
|
|
95
95
|
const {
|
|
96
96
|
theme: o,
|
|
97
97
|
classGroups: r
|
|
98
98
|
} = t;
|
|
99
|
-
return
|
|
100
|
-
},
|
|
101
|
-
const r =
|
|
99
|
+
return Rt(r, o);
|
|
100
|
+
}, Rt = (t, o) => {
|
|
101
|
+
const r = qe();
|
|
102
102
|
for (const n in t) {
|
|
103
103
|
const s = t[n];
|
|
104
|
-
|
|
104
|
+
Me(s, r, n, o);
|
|
105
105
|
}
|
|
106
106
|
return r;
|
|
107
|
-
},
|
|
107
|
+
}, Me = (t, o, r, n) => {
|
|
108
108
|
const s = t.length;
|
|
109
109
|
for (let l = 0; l < s; l++) {
|
|
110
110
|
const i = t[l];
|
|
@@ -125,7 +125,7 @@ const Tt = (t, o) => {
|
|
|
125
125
|
n.classGroupId = r;
|
|
126
126
|
}, Lt = (t, o, r, n) => {
|
|
127
127
|
if (Ut(t)) {
|
|
128
|
-
|
|
128
|
+
Me(t(n), o, r, n);
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
131
|
o.validators === null && (o.validators = []), o.validators.push(Dt(r, t));
|
|
@@ -133,7 +133,7 @@ const Tt = (t, o) => {
|
|
|
133
133
|
const s = Object.entries(t), l = s.length;
|
|
134
134
|
for (let i = 0; i < l; i++) {
|
|
135
135
|
const [u, g] = s[i];
|
|
136
|
-
|
|
136
|
+
Me(g, He(o, u), r, n);
|
|
137
137
|
}
|
|
138
138
|
}, He = (t, o) => {
|
|
139
139
|
let r = t;
|
|
@@ -141,10 +141,10 @@ const Tt = (t, o) => {
|
|
|
141
141
|
for (let l = 0; l < s; l++) {
|
|
142
142
|
const i = n[l];
|
|
143
143
|
let u = r.nextPart.get(i);
|
|
144
|
-
u || (u =
|
|
144
|
+
u || (u = qe(), r.nextPart.set(i, u)), r = u;
|
|
145
145
|
}
|
|
146
146
|
return r;
|
|
147
|
-
}, Ut = (t) => "isThemeGetter" in t && t.isThemeGetter === !0,
|
|
147
|
+
}, Ut = (t) => "isThemeGetter" in t && t.isThemeGetter === !0, _t = (t) => {
|
|
148
148
|
if (t < 1)
|
|
149
149
|
return {
|
|
150
150
|
get: () => {
|
|
@@ -168,22 +168,22 @@ const Tt = (t, o) => {
|
|
|
168
168
|
l in r ? r[l] = i : s(l, i);
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
|
-
}, Ee = "!", ze = ":",
|
|
171
|
+
}, Ee = "!", ze = ":", $t = [], Le = (t, o, r, n, s) => ({
|
|
172
172
|
modifiers: t,
|
|
173
173
|
hasImportantModifier: o,
|
|
174
174
|
baseClassName: r,
|
|
175
175
|
maybePostfixModifierPosition: n,
|
|
176
176
|
isExternal: s
|
|
177
|
-
}),
|
|
177
|
+
}), Ot = (t) => {
|
|
178
178
|
const {
|
|
179
179
|
prefix: o,
|
|
180
180
|
experimentalParseClassName: r
|
|
181
181
|
} = t;
|
|
182
182
|
let n = (s) => {
|
|
183
183
|
const l = [];
|
|
184
|
-
let i = 0, u = 0, g = 0,
|
|
185
|
-
const
|
|
186
|
-
for (let N = 0; N <
|
|
184
|
+
let i = 0, u = 0, g = 0, p;
|
|
185
|
+
const k = s.length;
|
|
186
|
+
for (let N = 0; N < k; N++) {
|
|
187
187
|
const E = s[N];
|
|
188
188
|
if (i === 0 && u === 0) {
|
|
189
189
|
if (E === ze) {
|
|
@@ -191,27 +191,27 @@ const Tt = (t, o) => {
|
|
|
191
191
|
continue;
|
|
192
192
|
}
|
|
193
193
|
if (E === "/") {
|
|
194
|
-
|
|
194
|
+
p = N;
|
|
195
195
|
continue;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
E === "[" ? i++ : E === "]" ? i-- : E === "(" ? u++ : E === ")" && u--;
|
|
199
199
|
}
|
|
200
200
|
const w = l.length === 0 ? s : s.slice(g);
|
|
201
|
-
let d = w,
|
|
202
|
-
w.endsWith(Ee) ? (d = w.slice(0, -1),
|
|
201
|
+
let d = w, T = !1;
|
|
202
|
+
w.endsWith(Ee) ? (d = w.slice(0, -1), T = !0) : (
|
|
203
203
|
/**
|
|
204
204
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
205
205
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
206
206
|
*/
|
|
207
|
-
w.startsWith(Ee) && (d = w.slice(1),
|
|
207
|
+
w.startsWith(Ee) && (d = w.slice(1), T = !0)
|
|
208
208
|
);
|
|
209
|
-
const
|
|
210
|
-
return Le(l,
|
|
209
|
+
const M = p && p > g ? p - g : void 0;
|
|
210
|
+
return Le(l, T, d, M);
|
|
211
211
|
};
|
|
212
212
|
if (o) {
|
|
213
213
|
const s = o + ze, l = n;
|
|
214
|
-
n = (i) => i.startsWith(s) ? l(i.slice(s.length)) : Le(
|
|
214
|
+
n = (i) => i.startsWith(s) ? l(i.slice(s.length)) : Le($t, !1, i, void 0, !0);
|
|
215
215
|
}
|
|
216
216
|
if (r) {
|
|
217
217
|
const s = n;
|
|
@@ -234,56 +234,56 @@ const Tt = (t, o) => {
|
|
|
234
234
|
}
|
|
235
235
|
return s.length > 0 && (s.sort(), n.push(...s)), n;
|
|
236
236
|
};
|
|
237
|
-
},
|
|
238
|
-
cache:
|
|
239
|
-
parseClassName:
|
|
237
|
+
}, Gt = (t) => ({
|
|
238
|
+
cache: _t(t.cacheSize),
|
|
239
|
+
parseClassName: Ot(t),
|
|
240
240
|
sortModifiers: Wt(t),
|
|
241
|
-
...
|
|
242
|
-
}),
|
|
241
|
+
...St(t)
|
|
242
|
+
}), Vt = /\s+/, Kt = (t, o) => {
|
|
243
243
|
const {
|
|
244
244
|
parseClassName: r,
|
|
245
245
|
getClassGroupId: n,
|
|
246
246
|
getConflictingClassGroupIds: s,
|
|
247
247
|
sortModifiers: l
|
|
248
|
-
} = o, i = [], u = t.trim().split(
|
|
248
|
+
} = o, i = [], u = t.trim().split(Vt);
|
|
249
249
|
let g = "";
|
|
250
|
-
for (let
|
|
251
|
-
const
|
|
250
|
+
for (let p = u.length - 1; p >= 0; p -= 1) {
|
|
251
|
+
const k = u[p], {
|
|
252
252
|
isExternal: w,
|
|
253
253
|
modifiers: d,
|
|
254
|
-
hasImportantModifier:
|
|
255
|
-
baseClassName:
|
|
254
|
+
hasImportantModifier: T,
|
|
255
|
+
baseClassName: M,
|
|
256
256
|
maybePostfixModifierPosition: N
|
|
257
|
-
} = r(
|
|
257
|
+
} = r(k);
|
|
258
258
|
if (w) {
|
|
259
|
-
g =
|
|
259
|
+
g = k + (g.length > 0 ? " " + g : g);
|
|
260
260
|
continue;
|
|
261
261
|
}
|
|
262
|
-
let E = !!N,
|
|
263
|
-
if (!
|
|
262
|
+
let E = !!N, P = n(E ? M.substring(0, N) : M);
|
|
263
|
+
if (!P) {
|
|
264
264
|
if (!E) {
|
|
265
|
-
g =
|
|
265
|
+
g = k + (g.length > 0 ? " " + g : g);
|
|
266
266
|
continue;
|
|
267
267
|
}
|
|
268
|
-
if (
|
|
269
|
-
g =
|
|
268
|
+
if (P = n(M), !P) {
|
|
269
|
+
g = k + (g.length > 0 ? " " + g : g);
|
|
270
270
|
continue;
|
|
271
271
|
}
|
|
272
272
|
E = !1;
|
|
273
273
|
}
|
|
274
|
-
const
|
|
274
|
+
const I = d.length === 0 ? "" : d.length === 1 ? d[0] : l(d).join(":"), C = T ? I + Ee : I, y = C + P;
|
|
275
275
|
if (i.indexOf(y) > -1)
|
|
276
276
|
continue;
|
|
277
277
|
i.push(y);
|
|
278
|
-
const
|
|
279
|
-
for (let
|
|
280
|
-
const
|
|
281
|
-
i.push(C +
|
|
278
|
+
const z = s(P, E);
|
|
279
|
+
for (let L = 0; L < z.length; ++L) {
|
|
280
|
+
const $ = z[L];
|
|
281
|
+
i.push(C + $);
|
|
282
282
|
}
|
|
283
|
-
g =
|
|
283
|
+
g = k + (g.length > 0 ? " " + g : g);
|
|
284
284
|
}
|
|
285
285
|
return g;
|
|
286
|
-
},
|
|
286
|
+
}, qt = (...t) => {
|
|
287
287
|
let o = 0, r, n, s = "";
|
|
288
288
|
for (; o < t.length; )
|
|
289
289
|
(r = t[o++]) && (n = Xe(r)) && (s && (s += " "), s += n);
|
|
@@ -295,35 +295,35 @@ const Tt = (t, o) => {
|
|
|
295
295
|
for (let n = 0; n < t.length; n++)
|
|
296
296
|
t[n] && (o = Xe(t[n])) && (r && (r += " "), r += o);
|
|
297
297
|
return r;
|
|
298
|
-
},
|
|
298
|
+
}, Yt = (t, ...o) => {
|
|
299
299
|
let r, n, s, l;
|
|
300
300
|
const i = (g) => {
|
|
301
|
-
const
|
|
302
|
-
return r =
|
|
301
|
+
const p = o.reduce((k, w) => w(k), t());
|
|
302
|
+
return r = Gt(p), n = r.cache.get, s = r.cache.set, l = u, u(g);
|
|
303
303
|
}, u = (g) => {
|
|
304
|
-
const
|
|
305
|
-
if (
|
|
306
|
-
return
|
|
307
|
-
const
|
|
308
|
-
return s(g,
|
|
304
|
+
const p = n(g);
|
|
305
|
+
if (p)
|
|
306
|
+
return p;
|
|
307
|
+
const k = Kt(g, r);
|
|
308
|
+
return s(g, k), k;
|
|
309
309
|
};
|
|
310
|
-
return l = i, (...g) => l(
|
|
311
|
-
}, Ht = [],
|
|
310
|
+
return l = i, (...g) => l(qt(...g));
|
|
311
|
+
}, Ht = [], S = (t) => {
|
|
312
312
|
const o = (r) => r[t] || Ht;
|
|
313
313
|
return o.isThemeGetter = !0, o;
|
|
314
|
-
}, Je = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ze = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Xt = /^\d+\/\d+$/, Jt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Zt = /\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$/, Qt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, er = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, tr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, J = (t) => Xt.test(t), v = (t) => !!t && !Number.isNaN(Number(t)),
|
|
314
|
+
}, Je = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ze = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Xt = /^\d+\/\d+$/, Jt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Zt = /\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$/, Qt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, er = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, tr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, J = (t) => Xt.test(t), v = (t) => !!t && !Number.isNaN(Number(t)), q = (t) => !!t && Number.isInteger(Number(t)), ye = (t) => t.endsWith("%") && v(t.slice(0, -1)), V = (t) => Jt.test(t), rr = () => !0, or = (t) => (
|
|
315
315
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
316
316
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
317
317
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
318
318
|
Zt.test(t) && !Qt.test(t)
|
|
319
|
-
), Qe = () => !1, nr = (t) => er.test(t), ar = (t) => tr.test(t), lr = (t) => !
|
|
319
|
+
), Qe = () => !1, nr = (t) => er.test(t), ar = (t) => tr.test(t), lr = (t) => !h(t) && !b(t), sr = (t) => Q(t, rt, Qe), h = (t) => Je.test(t), H = (t) => Q(t, ot, or), Fe = (t) => Q(t, ur, v), je = (t) => Q(t, et, Qe), ir = (t) => Q(t, tt, ar), me = (t) => Q(t, nt, nr), b = (t) => Ze.test(t), oe = (t) => ee(t, ot), cr = (t) => ee(t, gr), Ue = (t) => ee(t, et), dr = (t) => ee(t, rt), mr = (t) => ee(t, tt), ue = (t) => ee(t, nt, !0), Q = (t, o, r) => {
|
|
320
320
|
const n = Je.exec(t);
|
|
321
321
|
return n ? n[1] ? o(n[1]) : r(n[2]) : !1;
|
|
322
322
|
}, ee = (t, o, r = !1) => {
|
|
323
323
|
const n = Ze.exec(t);
|
|
324
324
|
return n ? n[1] ? o(n[1]) : r : !1;
|
|
325
325
|
}, et = (t) => t === "position" || t === "percentage", tt = (t) => t === "image" || t === "url", rt = (t) => t === "length" || t === "size" || t === "bg-size", ot = (t) => t === "length", ur = (t) => t === "number", gr = (t) => t === "family-name", nt = (t) => t === "shadow", hr = () => {
|
|
326
|
-
const t =
|
|
326
|
+
const t = S("color"), o = S("font"), r = S("text"), n = S("font-weight"), s = S("tracking"), l = S("leading"), i = S("breakpoint"), u = S("container"), g = S("spacing"), p = S("radius"), k = S("shadow"), w = S("inset-shadow"), d = S("text-shadow"), T = S("drop-shadow"), M = S("blur"), N = S("perspective"), E = S("aspect"), P = S("ease"), I = S("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], y = () => [
|
|
327
327
|
"center",
|
|
328
328
|
"top",
|
|
329
329
|
"bottom",
|
|
@@ -341,51 +341,51 @@ const Tt = (t, o) => {
|
|
|
341
341
|
"bottom-left",
|
|
342
342
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
343
343
|
"left-bottom"
|
|
344
|
-
],
|
|
345
|
-
span: ["full",
|
|
346
|
-
},
|
|
347
|
-
position: [
|
|
344
|
+
], z = () => [...y(), b, h], L = () => ["auto", "hidden", "clip", "visible", "scroll"], $ = () => ["auto", "contain", "none"], x = () => [b, h, g], e = () => [J, "full", "auto", ...x()], j = () => [q, "none", "subgrid", b, h], te = () => ["auto", {
|
|
345
|
+
span: ["full", q, b, h]
|
|
346
|
+
}, q, b, h], W = () => [q, "auto", b, h], ne = () => ["auto", "min", "max", "fr", b, h], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], R = () => ["auto", ...x()], O = () => [J, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...x()], f = () => [t, b, h], ae = () => [...y(), Ue, je, {
|
|
347
|
+
position: [b, h]
|
|
348
348
|
}], le = () => ["no-repeat", {
|
|
349
349
|
repeat: ["", "x", "y", "space", "round"]
|
|
350
350
|
}], se = () => ["auto", "cover", "contain", dr, sr, {
|
|
351
|
-
size: [
|
|
352
|
-
}], X = () => [
|
|
351
|
+
size: [b, h]
|
|
352
|
+
}], X = () => [ye, oe, H], B = () => [
|
|
353
353
|
// Deprecated since Tailwind CSS v4.0.0
|
|
354
354
|
"",
|
|
355
355
|
"none",
|
|
356
356
|
"full",
|
|
357
|
-
h,
|
|
358
357
|
p,
|
|
359
|
-
b
|
|
360
|
-
|
|
358
|
+
b,
|
|
359
|
+
h
|
|
360
|
+
], U = () => ["", v, oe, H], _ = () => ["solid", "dashed", "dotted", "double"], D = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], F = () => [v, ye, Ue, je], ke = () => [
|
|
361
361
|
// Deprecated since Tailwind CSS v4.0.0
|
|
362
362
|
"",
|
|
363
363
|
"none",
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
], ie = () => ["none", v,
|
|
364
|
+
M,
|
|
365
|
+
b,
|
|
366
|
+
h
|
|
367
|
+
], ie = () => ["none", v, b, h], ce = () => ["none", v, b, h], we = () => [v, b, h], de = () => [J, "full", ...x()];
|
|
368
368
|
return {
|
|
369
369
|
cacheSize: 500,
|
|
370
370
|
theme: {
|
|
371
371
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
372
372
|
aspect: ["video"],
|
|
373
|
-
blur: [
|
|
374
|
-
breakpoint: [
|
|
373
|
+
blur: [V],
|
|
374
|
+
breakpoint: [V],
|
|
375
375
|
color: [rr],
|
|
376
|
-
container: [
|
|
377
|
-
"drop-shadow": [
|
|
376
|
+
container: [V],
|
|
377
|
+
"drop-shadow": [V],
|
|
378
378
|
ease: ["in", "out", "in-out"],
|
|
379
379
|
font: [lr],
|
|
380
380
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
381
|
-
"inset-shadow": [
|
|
381
|
+
"inset-shadow": [V],
|
|
382
382
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
383
383
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
384
|
-
radius: [
|
|
385
|
-
shadow: [
|
|
384
|
+
radius: [V],
|
|
385
|
+
shadow: [V],
|
|
386
386
|
spacing: ["px", v],
|
|
387
|
-
text: [
|
|
388
|
-
"text-shadow": [
|
|
387
|
+
text: [V],
|
|
388
|
+
"text-shadow": [V],
|
|
389
389
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
390
390
|
},
|
|
391
391
|
classGroups: {
|
|
@@ -397,7 +397,7 @@ const Tt = (t, o) => {
|
|
|
397
397
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
398
398
|
*/
|
|
399
399
|
aspect: [{
|
|
400
|
-
aspect: ["auto", "square", J,
|
|
400
|
+
aspect: ["auto", "square", J, h, b, E]
|
|
401
401
|
}],
|
|
402
402
|
/**
|
|
403
403
|
* Container
|
|
@@ -410,7 +410,7 @@ const Tt = (t, o) => {
|
|
|
410
410
|
* @see https://tailwindcss.com/docs/columns
|
|
411
411
|
*/
|
|
412
412
|
columns: [{
|
|
413
|
-
columns: [v,
|
|
413
|
+
columns: [v, h, b, u]
|
|
414
414
|
}],
|
|
415
415
|
/**
|
|
416
416
|
* Break After
|
|
@@ -488,49 +488,49 @@ const Tt = (t, o) => {
|
|
|
488
488
|
* @see https://tailwindcss.com/docs/object-position
|
|
489
489
|
*/
|
|
490
490
|
"object-position": [{
|
|
491
|
-
object:
|
|
491
|
+
object: z()
|
|
492
492
|
}],
|
|
493
493
|
/**
|
|
494
494
|
* Overflow
|
|
495
495
|
* @see https://tailwindcss.com/docs/overflow
|
|
496
496
|
*/
|
|
497
497
|
overflow: [{
|
|
498
|
-
overflow:
|
|
498
|
+
overflow: L()
|
|
499
499
|
}],
|
|
500
500
|
/**
|
|
501
501
|
* Overflow X
|
|
502
502
|
* @see https://tailwindcss.com/docs/overflow
|
|
503
503
|
*/
|
|
504
504
|
"overflow-x": [{
|
|
505
|
-
"overflow-x":
|
|
505
|
+
"overflow-x": L()
|
|
506
506
|
}],
|
|
507
507
|
/**
|
|
508
508
|
* Overflow Y
|
|
509
509
|
* @see https://tailwindcss.com/docs/overflow
|
|
510
510
|
*/
|
|
511
511
|
"overflow-y": [{
|
|
512
|
-
"overflow-y":
|
|
512
|
+
"overflow-y": L()
|
|
513
513
|
}],
|
|
514
514
|
/**
|
|
515
515
|
* Overscroll Behavior
|
|
516
516
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
517
517
|
*/
|
|
518
518
|
overscroll: [{
|
|
519
|
-
overscroll:
|
|
519
|
+
overscroll: $()
|
|
520
520
|
}],
|
|
521
521
|
/**
|
|
522
522
|
* Overscroll Behavior X
|
|
523
523
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
524
524
|
*/
|
|
525
525
|
"overscroll-x": [{
|
|
526
|
-
"overscroll-x":
|
|
526
|
+
"overscroll-x": $()
|
|
527
527
|
}],
|
|
528
528
|
/**
|
|
529
529
|
* Overscroll Behavior Y
|
|
530
530
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
531
531
|
*/
|
|
532
532
|
"overscroll-y": [{
|
|
533
|
-
"overscroll-y":
|
|
533
|
+
"overscroll-y": $()
|
|
534
534
|
}],
|
|
535
535
|
/**
|
|
536
536
|
* Position
|
|
@@ -610,7 +610,7 @@ const Tt = (t, o) => {
|
|
|
610
610
|
* @see https://tailwindcss.com/docs/z-index
|
|
611
611
|
*/
|
|
612
612
|
z: [{
|
|
613
|
-
z: [
|
|
613
|
+
z: [q, "auto", b, h]
|
|
614
614
|
}],
|
|
615
615
|
// ------------------------
|
|
616
616
|
// --- Flexbox and Grid ---
|
|
@@ -620,7 +620,7 @@ const Tt = (t, o) => {
|
|
|
620
620
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
621
621
|
*/
|
|
622
622
|
basis: [{
|
|
623
|
-
basis: [J, "full", "auto", u, ...
|
|
623
|
+
basis: [J, "full", "auto", u, ...x()]
|
|
624
624
|
}],
|
|
625
625
|
/**
|
|
626
626
|
* Flex Direction
|
|
@@ -641,28 +641,28 @@ const Tt = (t, o) => {
|
|
|
641
641
|
* @see https://tailwindcss.com/docs/flex
|
|
642
642
|
*/
|
|
643
643
|
flex: [{
|
|
644
|
-
flex: [v, J, "auto", "initial", "none",
|
|
644
|
+
flex: [v, J, "auto", "initial", "none", h]
|
|
645
645
|
}],
|
|
646
646
|
/**
|
|
647
647
|
* Flex Grow
|
|
648
648
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
649
649
|
*/
|
|
650
650
|
grow: [{
|
|
651
|
-
grow: ["", v,
|
|
651
|
+
grow: ["", v, b, h]
|
|
652
652
|
}],
|
|
653
653
|
/**
|
|
654
654
|
* Flex Shrink
|
|
655
655
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
656
656
|
*/
|
|
657
657
|
shrink: [{
|
|
658
|
-
shrink: ["", v,
|
|
658
|
+
shrink: ["", v, b, h]
|
|
659
659
|
}],
|
|
660
660
|
/**
|
|
661
661
|
* Order
|
|
662
662
|
* @see https://tailwindcss.com/docs/order
|
|
663
663
|
*/
|
|
664
664
|
order: [{
|
|
665
|
-
order: [
|
|
665
|
+
order: [q, "first", "last", "none", b, h]
|
|
666
666
|
}],
|
|
667
667
|
/**
|
|
668
668
|
* Grid Template Columns
|
|
@@ -746,21 +746,21 @@ const Tt = (t, o) => {
|
|
|
746
746
|
* @see https://tailwindcss.com/docs/gap
|
|
747
747
|
*/
|
|
748
748
|
gap: [{
|
|
749
|
-
gap:
|
|
749
|
+
gap: x()
|
|
750
750
|
}],
|
|
751
751
|
/**
|
|
752
752
|
* Gap X
|
|
753
753
|
* @see https://tailwindcss.com/docs/gap
|
|
754
754
|
*/
|
|
755
755
|
"gap-x": [{
|
|
756
|
-
"gap-x":
|
|
756
|
+
"gap-x": x()
|
|
757
757
|
}],
|
|
758
758
|
/**
|
|
759
759
|
* Gap Y
|
|
760
760
|
* @see https://tailwindcss.com/docs/gap
|
|
761
761
|
*/
|
|
762
762
|
"gap-y": [{
|
|
763
|
-
"gap-y":
|
|
763
|
+
"gap-y": x()
|
|
764
764
|
}],
|
|
765
765
|
/**
|
|
766
766
|
* Justify Content
|
|
@@ -774,14 +774,14 @@ const Tt = (t, o) => {
|
|
|
774
774
|
* @see https://tailwindcss.com/docs/justify-items
|
|
775
775
|
*/
|
|
776
776
|
"justify-items": [{
|
|
777
|
-
"justify-items": [...
|
|
777
|
+
"justify-items": [...G(), "normal"]
|
|
778
778
|
}],
|
|
779
779
|
/**
|
|
780
780
|
* Justify Self
|
|
781
781
|
* @see https://tailwindcss.com/docs/justify-self
|
|
782
782
|
*/
|
|
783
783
|
"justify-self": [{
|
|
784
|
-
"justify-self": ["auto", ...
|
|
784
|
+
"justify-self": ["auto", ...G()]
|
|
785
785
|
}],
|
|
786
786
|
/**
|
|
787
787
|
* Align Content
|
|
@@ -795,7 +795,7 @@ const Tt = (t, o) => {
|
|
|
795
795
|
* @see https://tailwindcss.com/docs/align-items
|
|
796
796
|
*/
|
|
797
797
|
"align-items": [{
|
|
798
|
-
items: [...
|
|
798
|
+
items: [...G(), {
|
|
799
799
|
baseline: ["", "last"]
|
|
800
800
|
}]
|
|
801
801
|
}],
|
|
@@ -804,7 +804,7 @@ const Tt = (t, o) => {
|
|
|
804
804
|
* @see https://tailwindcss.com/docs/align-self
|
|
805
805
|
*/
|
|
806
806
|
"align-self": [{
|
|
807
|
-
self: ["auto", ...
|
|
807
|
+
self: ["auto", ...G(), {
|
|
808
808
|
baseline: ["", "last"]
|
|
809
809
|
}]
|
|
810
810
|
}],
|
|
@@ -820,14 +820,14 @@ const Tt = (t, o) => {
|
|
|
820
820
|
* @see https://tailwindcss.com/docs/place-items
|
|
821
821
|
*/
|
|
822
822
|
"place-items": [{
|
|
823
|
-
"place-items": [...
|
|
823
|
+
"place-items": [...G(), "baseline"]
|
|
824
824
|
}],
|
|
825
825
|
/**
|
|
826
826
|
* Place Self
|
|
827
827
|
* @see https://tailwindcss.com/docs/place-self
|
|
828
828
|
*/
|
|
829
829
|
"place-self": [{
|
|
830
|
-
"place-self": ["auto", ...
|
|
830
|
+
"place-self": ["auto", ...G()]
|
|
831
831
|
}],
|
|
832
832
|
// Spacing
|
|
833
833
|
/**
|
|
@@ -835,133 +835,133 @@ const Tt = (t, o) => {
|
|
|
835
835
|
* @see https://tailwindcss.com/docs/padding
|
|
836
836
|
*/
|
|
837
837
|
p: [{
|
|
838
|
-
p:
|
|
838
|
+
p: x()
|
|
839
839
|
}],
|
|
840
840
|
/**
|
|
841
841
|
* Padding X
|
|
842
842
|
* @see https://tailwindcss.com/docs/padding
|
|
843
843
|
*/
|
|
844
844
|
px: [{
|
|
845
|
-
px:
|
|
845
|
+
px: x()
|
|
846
846
|
}],
|
|
847
847
|
/**
|
|
848
848
|
* Padding Y
|
|
849
849
|
* @see https://tailwindcss.com/docs/padding
|
|
850
850
|
*/
|
|
851
851
|
py: [{
|
|
852
|
-
py:
|
|
852
|
+
py: x()
|
|
853
853
|
}],
|
|
854
854
|
/**
|
|
855
855
|
* Padding Start
|
|
856
856
|
* @see https://tailwindcss.com/docs/padding
|
|
857
857
|
*/
|
|
858
858
|
ps: [{
|
|
859
|
-
ps:
|
|
859
|
+
ps: x()
|
|
860
860
|
}],
|
|
861
861
|
/**
|
|
862
862
|
* Padding End
|
|
863
863
|
* @see https://tailwindcss.com/docs/padding
|
|
864
864
|
*/
|
|
865
865
|
pe: [{
|
|
866
|
-
pe:
|
|
866
|
+
pe: x()
|
|
867
867
|
}],
|
|
868
868
|
/**
|
|
869
869
|
* Padding Top
|
|
870
870
|
* @see https://tailwindcss.com/docs/padding
|
|
871
871
|
*/
|
|
872
872
|
pt: [{
|
|
873
|
-
pt:
|
|
873
|
+
pt: x()
|
|
874
874
|
}],
|
|
875
875
|
/**
|
|
876
876
|
* Padding Right
|
|
877
877
|
* @see https://tailwindcss.com/docs/padding
|
|
878
878
|
*/
|
|
879
879
|
pr: [{
|
|
880
|
-
pr:
|
|
880
|
+
pr: x()
|
|
881
881
|
}],
|
|
882
882
|
/**
|
|
883
883
|
* Padding Bottom
|
|
884
884
|
* @see https://tailwindcss.com/docs/padding
|
|
885
885
|
*/
|
|
886
886
|
pb: [{
|
|
887
|
-
pb:
|
|
887
|
+
pb: x()
|
|
888
888
|
}],
|
|
889
889
|
/**
|
|
890
890
|
* Padding Left
|
|
891
891
|
* @see https://tailwindcss.com/docs/padding
|
|
892
892
|
*/
|
|
893
893
|
pl: [{
|
|
894
|
-
pl:
|
|
894
|
+
pl: x()
|
|
895
895
|
}],
|
|
896
896
|
/**
|
|
897
897
|
* Margin
|
|
898
898
|
* @see https://tailwindcss.com/docs/margin
|
|
899
899
|
*/
|
|
900
900
|
m: [{
|
|
901
|
-
m:
|
|
901
|
+
m: R()
|
|
902
902
|
}],
|
|
903
903
|
/**
|
|
904
904
|
* Margin X
|
|
905
905
|
* @see https://tailwindcss.com/docs/margin
|
|
906
906
|
*/
|
|
907
907
|
mx: [{
|
|
908
|
-
mx:
|
|
908
|
+
mx: R()
|
|
909
909
|
}],
|
|
910
910
|
/**
|
|
911
911
|
* Margin Y
|
|
912
912
|
* @see https://tailwindcss.com/docs/margin
|
|
913
913
|
*/
|
|
914
914
|
my: [{
|
|
915
|
-
my:
|
|
915
|
+
my: R()
|
|
916
916
|
}],
|
|
917
917
|
/**
|
|
918
918
|
* Margin Start
|
|
919
919
|
* @see https://tailwindcss.com/docs/margin
|
|
920
920
|
*/
|
|
921
921
|
ms: [{
|
|
922
|
-
ms:
|
|
922
|
+
ms: R()
|
|
923
923
|
}],
|
|
924
924
|
/**
|
|
925
925
|
* Margin End
|
|
926
926
|
* @see https://tailwindcss.com/docs/margin
|
|
927
927
|
*/
|
|
928
928
|
me: [{
|
|
929
|
-
me:
|
|
929
|
+
me: R()
|
|
930
930
|
}],
|
|
931
931
|
/**
|
|
932
932
|
* Margin Top
|
|
933
933
|
* @see https://tailwindcss.com/docs/margin
|
|
934
934
|
*/
|
|
935
935
|
mt: [{
|
|
936
|
-
mt:
|
|
936
|
+
mt: R()
|
|
937
937
|
}],
|
|
938
938
|
/**
|
|
939
939
|
* Margin Right
|
|
940
940
|
* @see https://tailwindcss.com/docs/margin
|
|
941
941
|
*/
|
|
942
942
|
mr: [{
|
|
943
|
-
mr:
|
|
943
|
+
mr: R()
|
|
944
944
|
}],
|
|
945
945
|
/**
|
|
946
946
|
* Margin Bottom
|
|
947
947
|
* @see https://tailwindcss.com/docs/margin
|
|
948
948
|
*/
|
|
949
949
|
mb: [{
|
|
950
|
-
mb:
|
|
950
|
+
mb: R()
|
|
951
951
|
}],
|
|
952
952
|
/**
|
|
953
953
|
* Margin Left
|
|
954
954
|
* @see https://tailwindcss.com/docs/margin
|
|
955
955
|
*/
|
|
956
956
|
ml: [{
|
|
957
|
-
ml:
|
|
957
|
+
ml: R()
|
|
958
958
|
}],
|
|
959
959
|
/**
|
|
960
960
|
* Space Between X
|
|
961
961
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
962
962
|
*/
|
|
963
963
|
"space-x": [{
|
|
964
|
-
"space-x":
|
|
964
|
+
"space-x": x()
|
|
965
965
|
}],
|
|
966
966
|
/**
|
|
967
967
|
* Space Between X Reverse
|
|
@@ -973,7 +973,7 @@ const Tt = (t, o) => {
|
|
|
973
973
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
974
974
|
*/
|
|
975
975
|
"space-y": [{
|
|
976
|
-
"space-y":
|
|
976
|
+
"space-y": x()
|
|
977
977
|
}],
|
|
978
978
|
/**
|
|
979
979
|
* Space Between Y Reverse
|
|
@@ -988,14 +988,14 @@ const Tt = (t, o) => {
|
|
|
988
988
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
989
989
|
*/
|
|
990
990
|
size: [{
|
|
991
|
-
size:
|
|
991
|
+
size: O()
|
|
992
992
|
}],
|
|
993
993
|
/**
|
|
994
994
|
* Width
|
|
995
995
|
* @see https://tailwindcss.com/docs/width
|
|
996
996
|
*/
|
|
997
997
|
w: [{
|
|
998
|
-
w: [u, "screen",
|
|
998
|
+
w: [u, "screen", ...O()]
|
|
999
999
|
}],
|
|
1000
1000
|
/**
|
|
1001
1001
|
* Min-Width
|
|
@@ -1007,7 +1007,7 @@ const Tt = (t, o) => {
|
|
|
1007
1007
|
"screen",
|
|
1008
1008
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1009
1009
|
"none",
|
|
1010
|
-
|
|
1010
|
+
...O()
|
|
1011
1011
|
]
|
|
1012
1012
|
}],
|
|
1013
1013
|
/**
|
|
@@ -1025,7 +1025,7 @@ const Tt = (t, o) => {
|
|
|
1025
1025
|
{
|
|
1026
1026
|
screen: [i]
|
|
1027
1027
|
},
|
|
1028
|
-
|
|
1028
|
+
...O()
|
|
1029
1029
|
]
|
|
1030
1030
|
}],
|
|
1031
1031
|
/**
|
|
@@ -1033,21 +1033,21 @@ const Tt = (t, o) => {
|
|
|
1033
1033
|
* @see https://tailwindcss.com/docs/height
|
|
1034
1034
|
*/
|
|
1035
1035
|
h: [{
|
|
1036
|
-
h: ["screen", "lh",
|
|
1036
|
+
h: ["screen", "lh", ...O()]
|
|
1037
1037
|
}],
|
|
1038
1038
|
/**
|
|
1039
1039
|
* Min-Height
|
|
1040
1040
|
* @see https://tailwindcss.com/docs/min-height
|
|
1041
1041
|
*/
|
|
1042
1042
|
"min-h": [{
|
|
1043
|
-
"min-h": ["screen", "lh", "none",
|
|
1043
|
+
"min-h": ["screen", "lh", "none", ...O()]
|
|
1044
1044
|
}],
|
|
1045
1045
|
/**
|
|
1046
1046
|
* Max-Height
|
|
1047
1047
|
* @see https://tailwindcss.com/docs/max-height
|
|
1048
1048
|
*/
|
|
1049
1049
|
"max-h": [{
|
|
1050
|
-
"max-h": ["screen", "lh",
|
|
1050
|
+
"max-h": ["screen", "lh", ...O()]
|
|
1051
1051
|
}],
|
|
1052
1052
|
// ------------------
|
|
1053
1053
|
// --- Typography ---
|
|
@@ -1074,21 +1074,21 @@ const Tt = (t, o) => {
|
|
|
1074
1074
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1075
1075
|
*/
|
|
1076
1076
|
"font-weight": [{
|
|
1077
|
-
font: [n,
|
|
1077
|
+
font: [n, b, Fe]
|
|
1078
1078
|
}],
|
|
1079
1079
|
/**
|
|
1080
1080
|
* Font Stretch
|
|
1081
1081
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1082
1082
|
*/
|
|
1083
1083
|
"font-stretch": [{
|
|
1084
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
1084
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", ye, h]
|
|
1085
1085
|
}],
|
|
1086
1086
|
/**
|
|
1087
1087
|
* Font Family
|
|
1088
1088
|
* @see https://tailwindcss.com/docs/font-family
|
|
1089
1089
|
*/
|
|
1090
1090
|
"font-family": [{
|
|
1091
|
-
font: [cr,
|
|
1091
|
+
font: [cr, h, o]
|
|
1092
1092
|
}],
|
|
1093
1093
|
/**
|
|
1094
1094
|
* Font Variant Numeric
|
|
@@ -1125,14 +1125,14 @@ const Tt = (t, o) => {
|
|
|
1125
1125
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1126
1126
|
*/
|
|
1127
1127
|
tracking: [{
|
|
1128
|
-
tracking: [s,
|
|
1128
|
+
tracking: [s, b, h]
|
|
1129
1129
|
}],
|
|
1130
1130
|
/**
|
|
1131
1131
|
* Line Clamp
|
|
1132
1132
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1133
1133
|
*/
|
|
1134
1134
|
"line-clamp": [{
|
|
1135
|
-
"line-clamp": [v, "none",
|
|
1135
|
+
"line-clamp": [v, "none", b, Fe]
|
|
1136
1136
|
}],
|
|
1137
1137
|
/**
|
|
1138
1138
|
* Line Height
|
|
@@ -1142,7 +1142,7 @@ const Tt = (t, o) => {
|
|
|
1142
1142
|
leading: [
|
|
1143
1143
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1144
1144
|
l,
|
|
1145
|
-
...
|
|
1145
|
+
...x()
|
|
1146
1146
|
]
|
|
1147
1147
|
}],
|
|
1148
1148
|
/**
|
|
@@ -1150,7 +1150,7 @@ const Tt = (t, o) => {
|
|
|
1150
1150
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1151
1151
|
*/
|
|
1152
1152
|
"list-image": [{
|
|
1153
|
-
"list-image": ["none",
|
|
1153
|
+
"list-image": ["none", b, h]
|
|
1154
1154
|
}],
|
|
1155
1155
|
/**
|
|
1156
1156
|
* List Style Position
|
|
@@ -1164,7 +1164,7 @@ const Tt = (t, o) => {
|
|
|
1164
1164
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1165
1165
|
*/
|
|
1166
1166
|
"list-style-type": [{
|
|
1167
|
-
list: ["disc", "decimal", "none",
|
|
1167
|
+
list: ["disc", "decimal", "none", b, h]
|
|
1168
1168
|
}],
|
|
1169
1169
|
/**
|
|
1170
1170
|
* Text Alignment
|
|
@@ -1198,14 +1198,14 @@ const Tt = (t, o) => {
|
|
|
1198
1198
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1199
1199
|
*/
|
|
1200
1200
|
"text-decoration-style": [{
|
|
1201
|
-
decoration: [...
|
|
1201
|
+
decoration: [..._(), "wavy"]
|
|
1202
1202
|
}],
|
|
1203
1203
|
/**
|
|
1204
1204
|
* Text Decoration Thickness
|
|
1205
1205
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1206
1206
|
*/
|
|
1207
1207
|
"text-decoration-thickness": [{
|
|
1208
|
-
decoration: [v, "from-font", "auto",
|
|
1208
|
+
decoration: [v, "from-font", "auto", b, H]
|
|
1209
1209
|
}],
|
|
1210
1210
|
/**
|
|
1211
1211
|
* Text Decoration Color
|
|
@@ -1219,7 +1219,7 @@ const Tt = (t, o) => {
|
|
|
1219
1219
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1220
1220
|
*/
|
|
1221
1221
|
"underline-offset": [{
|
|
1222
|
-
"underline-offset": [v, "auto",
|
|
1222
|
+
"underline-offset": [v, "auto", b, h]
|
|
1223
1223
|
}],
|
|
1224
1224
|
/**
|
|
1225
1225
|
* Text Transform
|
|
@@ -1243,14 +1243,14 @@ const Tt = (t, o) => {
|
|
|
1243
1243
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1244
1244
|
*/
|
|
1245
1245
|
indent: [{
|
|
1246
|
-
indent:
|
|
1246
|
+
indent: x()
|
|
1247
1247
|
}],
|
|
1248
1248
|
/**
|
|
1249
1249
|
* Vertical Alignment
|
|
1250
1250
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1251
1251
|
*/
|
|
1252
1252
|
"vertical-align": [{
|
|
1253
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1253
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", b, h]
|
|
1254
1254
|
}],
|
|
1255
1255
|
/**
|
|
1256
1256
|
* Whitespace
|
|
@@ -1285,7 +1285,7 @@ const Tt = (t, o) => {
|
|
|
1285
1285
|
* @see https://tailwindcss.com/docs/content
|
|
1286
1286
|
*/
|
|
1287
1287
|
content: [{
|
|
1288
|
-
content: ["none",
|
|
1288
|
+
content: ["none", b, h]
|
|
1289
1289
|
}],
|
|
1290
1290
|
// -------------------
|
|
1291
1291
|
// --- Backgrounds ---
|
|
@@ -1340,9 +1340,9 @@ const Tt = (t, o) => {
|
|
|
1340
1340
|
bg: ["none", {
|
|
1341
1341
|
linear: [{
|
|
1342
1342
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1343
|
-
},
|
|
1344
|
-
radial: ["",
|
|
1345
|
-
conic: [
|
|
1343
|
+
}, q, b, h],
|
|
1344
|
+
radial: ["", b, h],
|
|
1345
|
+
conic: [q, b, h]
|
|
1346
1346
|
}, mr, ir]
|
|
1347
1347
|
}],
|
|
1348
1348
|
/**
|
|
@@ -1402,105 +1402,105 @@ const Tt = (t, o) => {
|
|
|
1402
1402
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1403
1403
|
*/
|
|
1404
1404
|
rounded: [{
|
|
1405
|
-
rounded:
|
|
1405
|
+
rounded: B()
|
|
1406
1406
|
}],
|
|
1407
1407
|
/**
|
|
1408
1408
|
* Border Radius Start
|
|
1409
1409
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1410
1410
|
*/
|
|
1411
1411
|
"rounded-s": [{
|
|
1412
|
-
"rounded-s":
|
|
1412
|
+
"rounded-s": B()
|
|
1413
1413
|
}],
|
|
1414
1414
|
/**
|
|
1415
1415
|
* Border Radius End
|
|
1416
1416
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1417
1417
|
*/
|
|
1418
1418
|
"rounded-e": [{
|
|
1419
|
-
"rounded-e":
|
|
1419
|
+
"rounded-e": B()
|
|
1420
1420
|
}],
|
|
1421
1421
|
/**
|
|
1422
1422
|
* Border Radius Top
|
|
1423
1423
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1424
1424
|
*/
|
|
1425
1425
|
"rounded-t": [{
|
|
1426
|
-
"rounded-t":
|
|
1426
|
+
"rounded-t": B()
|
|
1427
1427
|
}],
|
|
1428
1428
|
/**
|
|
1429
1429
|
* Border Radius Right
|
|
1430
1430
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1431
1431
|
*/
|
|
1432
1432
|
"rounded-r": [{
|
|
1433
|
-
"rounded-r":
|
|
1433
|
+
"rounded-r": B()
|
|
1434
1434
|
}],
|
|
1435
1435
|
/**
|
|
1436
1436
|
* Border Radius Bottom
|
|
1437
1437
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1438
1438
|
*/
|
|
1439
1439
|
"rounded-b": [{
|
|
1440
|
-
"rounded-b":
|
|
1440
|
+
"rounded-b": B()
|
|
1441
1441
|
}],
|
|
1442
1442
|
/**
|
|
1443
1443
|
* Border Radius Left
|
|
1444
1444
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1445
1445
|
*/
|
|
1446
1446
|
"rounded-l": [{
|
|
1447
|
-
"rounded-l":
|
|
1447
|
+
"rounded-l": B()
|
|
1448
1448
|
}],
|
|
1449
1449
|
/**
|
|
1450
1450
|
* Border Radius Start Start
|
|
1451
1451
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1452
1452
|
*/
|
|
1453
1453
|
"rounded-ss": [{
|
|
1454
|
-
"rounded-ss":
|
|
1454
|
+
"rounded-ss": B()
|
|
1455
1455
|
}],
|
|
1456
1456
|
/**
|
|
1457
1457
|
* Border Radius Start End
|
|
1458
1458
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1459
1459
|
*/
|
|
1460
1460
|
"rounded-se": [{
|
|
1461
|
-
"rounded-se":
|
|
1461
|
+
"rounded-se": B()
|
|
1462
1462
|
}],
|
|
1463
1463
|
/**
|
|
1464
1464
|
* Border Radius End End
|
|
1465
1465
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1466
1466
|
*/
|
|
1467
1467
|
"rounded-ee": [{
|
|
1468
|
-
"rounded-ee":
|
|
1468
|
+
"rounded-ee": B()
|
|
1469
1469
|
}],
|
|
1470
1470
|
/**
|
|
1471
1471
|
* Border Radius End Start
|
|
1472
1472
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1473
1473
|
*/
|
|
1474
1474
|
"rounded-es": [{
|
|
1475
|
-
"rounded-es":
|
|
1475
|
+
"rounded-es": B()
|
|
1476
1476
|
}],
|
|
1477
1477
|
/**
|
|
1478
1478
|
* Border Radius Top Left
|
|
1479
1479
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1480
1480
|
*/
|
|
1481
1481
|
"rounded-tl": [{
|
|
1482
|
-
"rounded-tl":
|
|
1482
|
+
"rounded-tl": B()
|
|
1483
1483
|
}],
|
|
1484
1484
|
/**
|
|
1485
1485
|
* Border Radius Top Right
|
|
1486
1486
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1487
1487
|
*/
|
|
1488
1488
|
"rounded-tr": [{
|
|
1489
|
-
"rounded-tr":
|
|
1489
|
+
"rounded-tr": B()
|
|
1490
1490
|
}],
|
|
1491
1491
|
/**
|
|
1492
1492
|
* Border Radius Bottom Right
|
|
1493
1493
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1494
1494
|
*/
|
|
1495
1495
|
"rounded-br": [{
|
|
1496
|
-
"rounded-br":
|
|
1496
|
+
"rounded-br": B()
|
|
1497
1497
|
}],
|
|
1498
1498
|
/**
|
|
1499
1499
|
* Border Radius Bottom Left
|
|
1500
1500
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1501
1501
|
*/
|
|
1502
1502
|
"rounded-bl": [{
|
|
1503
|
-
"rounded-bl":
|
|
1503
|
+
"rounded-bl": B()
|
|
1504
1504
|
}],
|
|
1505
1505
|
/**
|
|
1506
1506
|
* Border Width
|
|
@@ -1594,14 +1594,14 @@ const Tt = (t, o) => {
|
|
|
1594
1594
|
* @see https://tailwindcss.com/docs/border-style
|
|
1595
1595
|
*/
|
|
1596
1596
|
"border-style": [{
|
|
1597
|
-
border: [...
|
|
1597
|
+
border: [..._(), "hidden", "none"]
|
|
1598
1598
|
}],
|
|
1599
1599
|
/**
|
|
1600
1600
|
* Divide Style
|
|
1601
1601
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
1602
1602
|
*/
|
|
1603
1603
|
"divide-style": [{
|
|
1604
|
-
divide: [...
|
|
1604
|
+
divide: [..._(), "hidden", "none"]
|
|
1605
1605
|
}],
|
|
1606
1606
|
/**
|
|
1607
1607
|
* Border Color
|
|
@@ -1678,14 +1678,14 @@ const Tt = (t, o) => {
|
|
|
1678
1678
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1679
1679
|
*/
|
|
1680
1680
|
"outline-style": [{
|
|
1681
|
-
outline: [...
|
|
1681
|
+
outline: [..._(), "none", "hidden"]
|
|
1682
1682
|
}],
|
|
1683
1683
|
/**
|
|
1684
1684
|
* Outline Offset
|
|
1685
1685
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1686
1686
|
*/
|
|
1687
1687
|
"outline-offset": [{
|
|
1688
|
-
"outline-offset": [v,
|
|
1688
|
+
"outline-offset": [v, b, h]
|
|
1689
1689
|
}],
|
|
1690
1690
|
/**
|
|
1691
1691
|
* Outline Width
|
|
@@ -1713,7 +1713,7 @@ const Tt = (t, o) => {
|
|
|
1713
1713
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1714
1714
|
"",
|
|
1715
1715
|
"none",
|
|
1716
|
-
|
|
1716
|
+
k,
|
|
1717
1717
|
ue,
|
|
1718
1718
|
me
|
|
1719
1719
|
]
|
|
@@ -1811,21 +1811,21 @@ const Tt = (t, o) => {
|
|
|
1811
1811
|
* @see https://tailwindcss.com/docs/opacity
|
|
1812
1812
|
*/
|
|
1813
1813
|
opacity: [{
|
|
1814
|
-
opacity: [v,
|
|
1814
|
+
opacity: [v, b, h]
|
|
1815
1815
|
}],
|
|
1816
1816
|
/**
|
|
1817
1817
|
* Mix Blend Mode
|
|
1818
1818
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1819
1819
|
*/
|
|
1820
1820
|
"mix-blend": [{
|
|
1821
|
-
"mix-blend": [...
|
|
1821
|
+
"mix-blend": [...D(), "plus-darker", "plus-lighter"]
|
|
1822
1822
|
}],
|
|
1823
1823
|
/**
|
|
1824
1824
|
* Background Blend Mode
|
|
1825
1825
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1826
1826
|
*/
|
|
1827
1827
|
"bg-blend": [{
|
|
1828
|
-
"bg-blend":
|
|
1828
|
+
"bg-blend": D()
|
|
1829
1829
|
}],
|
|
1830
1830
|
/**
|
|
1831
1831
|
* Mask Clip
|
|
@@ -1933,7 +1933,7 @@ const Tt = (t, o) => {
|
|
|
1933
1933
|
"mask-y-to": f()
|
|
1934
1934
|
}],
|
|
1935
1935
|
"mask-image-radial": [{
|
|
1936
|
-
"mask-radial": [
|
|
1936
|
+
"mask-radial": [b, h]
|
|
1937
1937
|
}],
|
|
1938
1938
|
"mask-image-radial-from-pos": [{
|
|
1939
1939
|
"mask-radial-from": F()
|
|
@@ -2021,7 +2021,7 @@ const Tt = (t, o) => {
|
|
|
2021
2021
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2022
2022
|
*/
|
|
2023
2023
|
"mask-image": [{
|
|
2024
|
-
mask: ["none",
|
|
2024
|
+
mask: ["none", b, h]
|
|
2025
2025
|
}],
|
|
2026
2026
|
// ---------------
|
|
2027
2027
|
// --- Filters ---
|
|
@@ -2035,8 +2035,8 @@ const Tt = (t, o) => {
|
|
|
2035
2035
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2036
2036
|
"",
|
|
2037
2037
|
"none",
|
|
2038
|
-
|
|
2039
|
-
|
|
2038
|
+
b,
|
|
2039
|
+
h
|
|
2040
2040
|
]
|
|
2041
2041
|
}],
|
|
2042
2042
|
/**
|
|
@@ -2051,14 +2051,14 @@ const Tt = (t, o) => {
|
|
|
2051
2051
|
* @see https://tailwindcss.com/docs/brightness
|
|
2052
2052
|
*/
|
|
2053
2053
|
brightness: [{
|
|
2054
|
-
brightness: [v,
|
|
2054
|
+
brightness: [v, b, h]
|
|
2055
2055
|
}],
|
|
2056
2056
|
/**
|
|
2057
2057
|
* Contrast
|
|
2058
2058
|
* @see https://tailwindcss.com/docs/contrast
|
|
2059
2059
|
*/
|
|
2060
2060
|
contrast: [{
|
|
2061
|
-
contrast: [v,
|
|
2061
|
+
contrast: [v, b, h]
|
|
2062
2062
|
}],
|
|
2063
2063
|
/**
|
|
2064
2064
|
* Drop Shadow
|
|
@@ -2069,7 +2069,7 @@ const Tt = (t, o) => {
|
|
|
2069
2069
|
// Deprecated since Tailwind CSS v4.0.0
|
|
2070
2070
|
"",
|
|
2071
2071
|
"none",
|
|
2072
|
-
|
|
2072
|
+
T,
|
|
2073
2073
|
ue,
|
|
2074
2074
|
me
|
|
2075
2075
|
]
|
|
@@ -2086,35 +2086,35 @@ const Tt = (t, o) => {
|
|
|
2086
2086
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2087
2087
|
*/
|
|
2088
2088
|
grayscale: [{
|
|
2089
|
-
grayscale: ["", v,
|
|
2089
|
+
grayscale: ["", v, b, h]
|
|
2090
2090
|
}],
|
|
2091
2091
|
/**
|
|
2092
2092
|
* Hue Rotate
|
|
2093
2093
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2094
2094
|
*/
|
|
2095
2095
|
"hue-rotate": [{
|
|
2096
|
-
"hue-rotate": [v,
|
|
2096
|
+
"hue-rotate": [v, b, h]
|
|
2097
2097
|
}],
|
|
2098
2098
|
/**
|
|
2099
2099
|
* Invert
|
|
2100
2100
|
* @see https://tailwindcss.com/docs/invert
|
|
2101
2101
|
*/
|
|
2102
2102
|
invert: [{
|
|
2103
|
-
invert: ["", v,
|
|
2103
|
+
invert: ["", v, b, h]
|
|
2104
2104
|
}],
|
|
2105
2105
|
/**
|
|
2106
2106
|
* Saturate
|
|
2107
2107
|
* @see https://tailwindcss.com/docs/saturate
|
|
2108
2108
|
*/
|
|
2109
2109
|
saturate: [{
|
|
2110
|
-
saturate: [v,
|
|
2110
|
+
saturate: [v, b, h]
|
|
2111
2111
|
}],
|
|
2112
2112
|
/**
|
|
2113
2113
|
* Sepia
|
|
2114
2114
|
* @see https://tailwindcss.com/docs/sepia
|
|
2115
2115
|
*/
|
|
2116
2116
|
sepia: [{
|
|
2117
|
-
sepia: ["", v,
|
|
2117
|
+
sepia: ["", v, b, h]
|
|
2118
2118
|
}],
|
|
2119
2119
|
/**
|
|
2120
2120
|
* Backdrop Filter
|
|
@@ -2125,8 +2125,8 @@ const Tt = (t, o) => {
|
|
|
2125
2125
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2126
2126
|
"",
|
|
2127
2127
|
"none",
|
|
2128
|
-
|
|
2129
|
-
|
|
2128
|
+
b,
|
|
2129
|
+
h
|
|
2130
2130
|
]
|
|
2131
2131
|
}],
|
|
2132
2132
|
/**
|
|
@@ -2141,56 +2141,56 @@ const Tt = (t, o) => {
|
|
|
2141
2141
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2142
2142
|
*/
|
|
2143
2143
|
"backdrop-brightness": [{
|
|
2144
|
-
"backdrop-brightness": [v,
|
|
2144
|
+
"backdrop-brightness": [v, b, h]
|
|
2145
2145
|
}],
|
|
2146
2146
|
/**
|
|
2147
2147
|
* Backdrop Contrast
|
|
2148
2148
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2149
2149
|
*/
|
|
2150
2150
|
"backdrop-contrast": [{
|
|
2151
|
-
"backdrop-contrast": [v,
|
|
2151
|
+
"backdrop-contrast": [v, b, h]
|
|
2152
2152
|
}],
|
|
2153
2153
|
/**
|
|
2154
2154
|
* Backdrop Grayscale
|
|
2155
2155
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2156
2156
|
*/
|
|
2157
2157
|
"backdrop-grayscale": [{
|
|
2158
|
-
"backdrop-grayscale": ["", v,
|
|
2158
|
+
"backdrop-grayscale": ["", v, b, h]
|
|
2159
2159
|
}],
|
|
2160
2160
|
/**
|
|
2161
2161
|
* Backdrop Hue Rotate
|
|
2162
2162
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2163
2163
|
*/
|
|
2164
2164
|
"backdrop-hue-rotate": [{
|
|
2165
|
-
"backdrop-hue-rotate": [v,
|
|
2165
|
+
"backdrop-hue-rotate": [v, b, h]
|
|
2166
2166
|
}],
|
|
2167
2167
|
/**
|
|
2168
2168
|
* Backdrop Invert
|
|
2169
2169
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2170
2170
|
*/
|
|
2171
2171
|
"backdrop-invert": [{
|
|
2172
|
-
"backdrop-invert": ["", v,
|
|
2172
|
+
"backdrop-invert": ["", v, b, h]
|
|
2173
2173
|
}],
|
|
2174
2174
|
/**
|
|
2175
2175
|
* Backdrop Opacity
|
|
2176
2176
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2177
2177
|
*/
|
|
2178
2178
|
"backdrop-opacity": [{
|
|
2179
|
-
"backdrop-opacity": [v,
|
|
2179
|
+
"backdrop-opacity": [v, b, h]
|
|
2180
2180
|
}],
|
|
2181
2181
|
/**
|
|
2182
2182
|
* Backdrop Saturate
|
|
2183
2183
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2184
2184
|
*/
|
|
2185
2185
|
"backdrop-saturate": [{
|
|
2186
|
-
"backdrop-saturate": [v,
|
|
2186
|
+
"backdrop-saturate": [v, b, h]
|
|
2187
2187
|
}],
|
|
2188
2188
|
/**
|
|
2189
2189
|
* Backdrop Sepia
|
|
2190
2190
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2191
2191
|
*/
|
|
2192
2192
|
"backdrop-sepia": [{
|
|
2193
|
-
"backdrop-sepia": ["", v,
|
|
2193
|
+
"backdrop-sepia": ["", v, b, h]
|
|
2194
2194
|
}],
|
|
2195
2195
|
// --------------
|
|
2196
2196
|
// --- Tables ---
|
|
@@ -2207,21 +2207,21 @@ const Tt = (t, o) => {
|
|
|
2207
2207
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2208
2208
|
*/
|
|
2209
2209
|
"border-spacing": [{
|
|
2210
|
-
"border-spacing":
|
|
2210
|
+
"border-spacing": x()
|
|
2211
2211
|
}],
|
|
2212
2212
|
/**
|
|
2213
2213
|
* Border Spacing X
|
|
2214
2214
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2215
2215
|
*/
|
|
2216
2216
|
"border-spacing-x": [{
|
|
2217
|
-
"border-spacing-x":
|
|
2217
|
+
"border-spacing-x": x()
|
|
2218
2218
|
}],
|
|
2219
2219
|
/**
|
|
2220
2220
|
* Border Spacing Y
|
|
2221
2221
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2222
2222
|
*/
|
|
2223
2223
|
"border-spacing-y": [{
|
|
2224
|
-
"border-spacing-y":
|
|
2224
|
+
"border-spacing-y": x()
|
|
2225
2225
|
}],
|
|
2226
2226
|
/**
|
|
2227
2227
|
* Table Layout
|
|
@@ -2245,7 +2245,7 @@ const Tt = (t, o) => {
|
|
|
2245
2245
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2246
2246
|
*/
|
|
2247
2247
|
transition: [{
|
|
2248
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
2248
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", b, h]
|
|
2249
2249
|
}],
|
|
2250
2250
|
/**
|
|
2251
2251
|
* Transition Behavior
|
|
@@ -2259,28 +2259,28 @@ const Tt = (t, o) => {
|
|
|
2259
2259
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2260
2260
|
*/
|
|
2261
2261
|
duration: [{
|
|
2262
|
-
duration: [v, "initial",
|
|
2262
|
+
duration: [v, "initial", b, h]
|
|
2263
2263
|
}],
|
|
2264
2264
|
/**
|
|
2265
2265
|
* Transition Timing Function
|
|
2266
2266
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2267
2267
|
*/
|
|
2268
2268
|
ease: [{
|
|
2269
|
-
ease: ["linear", "initial",
|
|
2269
|
+
ease: ["linear", "initial", P, b, h]
|
|
2270
2270
|
}],
|
|
2271
2271
|
/**
|
|
2272
2272
|
* Transition Delay
|
|
2273
2273
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2274
2274
|
*/
|
|
2275
2275
|
delay: [{
|
|
2276
|
-
delay: [v,
|
|
2276
|
+
delay: [v, b, h]
|
|
2277
2277
|
}],
|
|
2278
2278
|
/**
|
|
2279
2279
|
* Animation
|
|
2280
2280
|
* @see https://tailwindcss.com/docs/animation
|
|
2281
2281
|
*/
|
|
2282
2282
|
animate: [{
|
|
2283
|
-
animate: ["none",
|
|
2283
|
+
animate: ["none", I, b, h]
|
|
2284
2284
|
}],
|
|
2285
2285
|
// ------------------
|
|
2286
2286
|
// --- Transforms ---
|
|
@@ -2297,14 +2297,14 @@ const Tt = (t, o) => {
|
|
|
2297
2297
|
* @see https://tailwindcss.com/docs/perspective
|
|
2298
2298
|
*/
|
|
2299
2299
|
perspective: [{
|
|
2300
|
-
perspective: [N,
|
|
2300
|
+
perspective: [N, b, h]
|
|
2301
2301
|
}],
|
|
2302
2302
|
/**
|
|
2303
2303
|
* Perspective Origin
|
|
2304
2304
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2305
2305
|
*/
|
|
2306
2306
|
"perspective-origin": [{
|
|
2307
|
-
"perspective-origin":
|
|
2307
|
+
"perspective-origin": z()
|
|
2308
2308
|
}],
|
|
2309
2309
|
/**
|
|
2310
2310
|
* Rotate
|
|
@@ -2393,14 +2393,14 @@ const Tt = (t, o) => {
|
|
|
2393
2393
|
* @see https://tailwindcss.com/docs/transform
|
|
2394
2394
|
*/
|
|
2395
2395
|
transform: [{
|
|
2396
|
-
transform: [
|
|
2396
|
+
transform: [b, h, "", "none", "gpu", "cpu"]
|
|
2397
2397
|
}],
|
|
2398
2398
|
/**
|
|
2399
2399
|
* Transform Origin
|
|
2400
2400
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2401
2401
|
*/
|
|
2402
2402
|
"transform-origin": [{
|
|
2403
|
-
origin:
|
|
2403
|
+
origin: z()
|
|
2404
2404
|
}],
|
|
2405
2405
|
/**
|
|
2406
2406
|
* Transform Style
|
|
@@ -2478,7 +2478,7 @@ const Tt = (t, o) => {
|
|
|
2478
2478
|
* @see https://tailwindcss.com/docs/cursor
|
|
2479
2479
|
*/
|
|
2480
2480
|
cursor: [{
|
|
2481
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
2481
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", b, h]
|
|
2482
2482
|
}],
|
|
2483
2483
|
/**
|
|
2484
2484
|
* Field Sizing
|
|
@@ -2513,126 +2513,126 @@ const Tt = (t, o) => {
|
|
|
2513
2513
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2514
2514
|
*/
|
|
2515
2515
|
"scroll-m": [{
|
|
2516
|
-
"scroll-m":
|
|
2516
|
+
"scroll-m": x()
|
|
2517
2517
|
}],
|
|
2518
2518
|
/**
|
|
2519
2519
|
* Scroll Margin X
|
|
2520
2520
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2521
2521
|
*/
|
|
2522
2522
|
"scroll-mx": [{
|
|
2523
|
-
"scroll-mx":
|
|
2523
|
+
"scroll-mx": x()
|
|
2524
2524
|
}],
|
|
2525
2525
|
/**
|
|
2526
2526
|
* Scroll Margin Y
|
|
2527
2527
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2528
2528
|
*/
|
|
2529
2529
|
"scroll-my": [{
|
|
2530
|
-
"scroll-my":
|
|
2530
|
+
"scroll-my": x()
|
|
2531
2531
|
}],
|
|
2532
2532
|
/**
|
|
2533
2533
|
* Scroll Margin Start
|
|
2534
2534
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2535
2535
|
*/
|
|
2536
2536
|
"scroll-ms": [{
|
|
2537
|
-
"scroll-ms":
|
|
2537
|
+
"scroll-ms": x()
|
|
2538
2538
|
}],
|
|
2539
2539
|
/**
|
|
2540
2540
|
* Scroll Margin End
|
|
2541
2541
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2542
2542
|
*/
|
|
2543
2543
|
"scroll-me": [{
|
|
2544
|
-
"scroll-me":
|
|
2544
|
+
"scroll-me": x()
|
|
2545
2545
|
}],
|
|
2546
2546
|
/**
|
|
2547
2547
|
* Scroll Margin Top
|
|
2548
2548
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2549
2549
|
*/
|
|
2550
2550
|
"scroll-mt": [{
|
|
2551
|
-
"scroll-mt":
|
|
2551
|
+
"scroll-mt": x()
|
|
2552
2552
|
}],
|
|
2553
2553
|
/**
|
|
2554
2554
|
* Scroll Margin Right
|
|
2555
2555
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2556
2556
|
*/
|
|
2557
2557
|
"scroll-mr": [{
|
|
2558
|
-
"scroll-mr":
|
|
2558
|
+
"scroll-mr": x()
|
|
2559
2559
|
}],
|
|
2560
2560
|
/**
|
|
2561
2561
|
* Scroll Margin Bottom
|
|
2562
2562
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2563
2563
|
*/
|
|
2564
2564
|
"scroll-mb": [{
|
|
2565
|
-
"scroll-mb":
|
|
2565
|
+
"scroll-mb": x()
|
|
2566
2566
|
}],
|
|
2567
2567
|
/**
|
|
2568
2568
|
* Scroll Margin Left
|
|
2569
2569
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2570
2570
|
*/
|
|
2571
2571
|
"scroll-ml": [{
|
|
2572
|
-
"scroll-ml":
|
|
2572
|
+
"scroll-ml": x()
|
|
2573
2573
|
}],
|
|
2574
2574
|
/**
|
|
2575
2575
|
* Scroll Padding
|
|
2576
2576
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2577
2577
|
*/
|
|
2578
2578
|
"scroll-p": [{
|
|
2579
|
-
"scroll-p":
|
|
2579
|
+
"scroll-p": x()
|
|
2580
2580
|
}],
|
|
2581
2581
|
/**
|
|
2582
2582
|
* Scroll Padding X
|
|
2583
2583
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2584
2584
|
*/
|
|
2585
2585
|
"scroll-px": [{
|
|
2586
|
-
"scroll-px":
|
|
2586
|
+
"scroll-px": x()
|
|
2587
2587
|
}],
|
|
2588
2588
|
/**
|
|
2589
2589
|
* Scroll Padding Y
|
|
2590
2590
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2591
2591
|
*/
|
|
2592
2592
|
"scroll-py": [{
|
|
2593
|
-
"scroll-py":
|
|
2593
|
+
"scroll-py": x()
|
|
2594
2594
|
}],
|
|
2595
2595
|
/**
|
|
2596
2596
|
* Scroll Padding Start
|
|
2597
2597
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2598
2598
|
*/
|
|
2599
2599
|
"scroll-ps": [{
|
|
2600
|
-
"scroll-ps":
|
|
2600
|
+
"scroll-ps": x()
|
|
2601
2601
|
}],
|
|
2602
2602
|
/**
|
|
2603
2603
|
* Scroll Padding End
|
|
2604
2604
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2605
2605
|
*/
|
|
2606
2606
|
"scroll-pe": [{
|
|
2607
|
-
"scroll-pe":
|
|
2607
|
+
"scroll-pe": x()
|
|
2608
2608
|
}],
|
|
2609
2609
|
/**
|
|
2610
2610
|
* Scroll Padding Top
|
|
2611
2611
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2612
2612
|
*/
|
|
2613
2613
|
"scroll-pt": [{
|
|
2614
|
-
"scroll-pt":
|
|
2614
|
+
"scroll-pt": x()
|
|
2615
2615
|
}],
|
|
2616
2616
|
/**
|
|
2617
2617
|
* Scroll Padding Right
|
|
2618
2618
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2619
2619
|
*/
|
|
2620
2620
|
"scroll-pr": [{
|
|
2621
|
-
"scroll-pr":
|
|
2621
|
+
"scroll-pr": x()
|
|
2622
2622
|
}],
|
|
2623
2623
|
/**
|
|
2624
2624
|
* Scroll Padding Bottom
|
|
2625
2625
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2626
2626
|
*/
|
|
2627
2627
|
"scroll-pb": [{
|
|
2628
|
-
"scroll-pb":
|
|
2628
|
+
"scroll-pb": x()
|
|
2629
2629
|
}],
|
|
2630
2630
|
/**
|
|
2631
2631
|
* Scroll Padding Left
|
|
2632
2632
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2633
2633
|
*/
|
|
2634
2634
|
"scroll-pl": [{
|
|
2635
|
-
"scroll-pl":
|
|
2635
|
+
"scroll-pl": x()
|
|
2636
2636
|
}],
|
|
2637
2637
|
/**
|
|
2638
2638
|
* Scroll Snap Align
|
|
@@ -2700,7 +2700,7 @@ const Tt = (t, o) => {
|
|
|
2700
2700
|
* @see https://tailwindcss.com/docs/will-change
|
|
2701
2701
|
*/
|
|
2702
2702
|
"will-change": [{
|
|
2703
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2703
|
+
"will-change": ["auto", "scroll", "contents", "transform", b, h]
|
|
2704
2704
|
}],
|
|
2705
2705
|
// -----------
|
|
2706
2706
|
// --- SVG ---
|
|
@@ -2792,11 +2792,11 @@ const Tt = (t, o) => {
|
|
|
2792
2792
|
},
|
|
2793
2793
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2794
2794
|
};
|
|
2795
|
-
}, br = /* @__PURE__ */
|
|
2795
|
+
}, br = /* @__PURE__ */ Yt(hr);
|
|
2796
2796
|
function c(...t) {
|
|
2797
2797
|
return br(Ke(t));
|
|
2798
2798
|
}
|
|
2799
|
-
const be =
|
|
2799
|
+
const be = A.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
2800
2800
|
"div",
|
|
2801
2801
|
{
|
|
2802
2802
|
ref: r,
|
|
@@ -2808,7 +2808,7 @@ const be = T.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
|
2808
2808
|
}
|
|
2809
2809
|
));
|
|
2810
2810
|
be.displayName = "Card";
|
|
2811
|
-
const Ae =
|
|
2811
|
+
const Ae = A.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
2812
2812
|
"div",
|
|
2813
2813
|
{
|
|
2814
2814
|
ref: r,
|
|
@@ -2817,7 +2817,7 @@ const Ae = T.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
|
2817
2817
|
}
|
|
2818
2818
|
));
|
|
2819
2819
|
Ae.displayName = "CardHeader";
|
|
2820
|
-
const Te =
|
|
2820
|
+
const Te = A.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
2821
2821
|
"div",
|
|
2822
2822
|
{
|
|
2823
2823
|
ref: r,
|
|
@@ -2826,7 +2826,7 @@ const Te = T.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
|
2826
2826
|
}
|
|
2827
2827
|
));
|
|
2828
2828
|
Te.displayName = "CardTitle";
|
|
2829
|
-
const De =
|
|
2829
|
+
const De = A.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
2830
2830
|
"div",
|
|
2831
2831
|
{
|
|
2832
2832
|
ref: r,
|
|
@@ -2835,9 +2835,9 @@ const De = T.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
|
2835
2835
|
}
|
|
2836
2836
|
));
|
|
2837
2837
|
De.displayName = "CardDescription";
|
|
2838
|
-
const pe =
|
|
2838
|
+
const pe = A.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a("div", { ref: r, className: c("p-6 pt-0", t), ...o }));
|
|
2839
2839
|
pe.displayName = "CardContent";
|
|
2840
|
-
const pr =
|
|
2840
|
+
const pr = A.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
2841
2841
|
"div",
|
|
2842
2842
|
{
|
|
2843
2843
|
ref: r,
|
|
@@ -2846,7 +2846,7 @@ const pr = T.forwardRef(({ className: t, ...o }, r) => /* @__PURE__ */ a(
|
|
|
2846
2846
|
}
|
|
2847
2847
|
));
|
|
2848
2848
|
pr.displayName = "CardFooter";
|
|
2849
|
-
function
|
|
2849
|
+
function _e(t, o) {
|
|
2850
2850
|
if (typeof t == "function")
|
|
2851
2851
|
return t(o);
|
|
2852
2852
|
t != null && (t.current = o);
|
|
@@ -2855,19 +2855,19 @@ function fr(...t) {
|
|
|
2855
2855
|
return (o) => {
|
|
2856
2856
|
let r = !1;
|
|
2857
2857
|
const n = t.map((s) => {
|
|
2858
|
-
const l =
|
|
2858
|
+
const l = _e(s, o);
|
|
2859
2859
|
return !r && typeof l == "function" && (r = !0), l;
|
|
2860
2860
|
});
|
|
2861
2861
|
if (r)
|
|
2862
2862
|
return () => {
|
|
2863
2863
|
for (let s = 0; s < n.length; s++) {
|
|
2864
2864
|
const l = n[s];
|
|
2865
|
-
typeof l == "function" ? l() :
|
|
2865
|
+
typeof l == "function" ? l() : _e(t[s], null);
|
|
2866
2866
|
}
|
|
2867
2867
|
};
|
|
2868
2868
|
};
|
|
2869
2869
|
}
|
|
2870
|
-
var xr = /* @__PURE__ */ Symbol.for("react.lazy"), fe =
|
|
2870
|
+
var xr = /* @__PURE__ */ Symbol.for("react.lazy"), fe = A[" use ".trim().toString()];
|
|
2871
2871
|
function kr(t) {
|
|
2872
2872
|
return typeof t == "object" && t !== null && "then" in t;
|
|
2873
2873
|
}
|
|
@@ -2876,34 +2876,34 @@ function at(t) {
|
|
|
2876
2876
|
}
|
|
2877
2877
|
// @__NO_SIDE_EFFECTS__
|
|
2878
2878
|
function wr(t) {
|
|
2879
|
-
const o = /* @__PURE__ */
|
|
2879
|
+
const o = /* @__PURE__ */ yr(t), r = A.forwardRef((n, s) => {
|
|
2880
2880
|
let { children: l, ...i } = n;
|
|
2881
2881
|
at(l) && typeof fe == "function" && (l = fe(l._payload));
|
|
2882
|
-
const u =
|
|
2882
|
+
const u = A.Children.toArray(l), g = u.find(Cr);
|
|
2883
2883
|
if (g) {
|
|
2884
|
-
const
|
|
2885
|
-
return /* @__PURE__ */ a(o, { ...i, ref: s, children:
|
|
2884
|
+
const p = g.props.children, k = u.map((w) => w === g ? A.Children.count(p) > 1 ? A.Children.only(null) : A.isValidElement(p) ? p.props.children : null : w);
|
|
2885
|
+
return /* @__PURE__ */ a(o, { ...i, ref: s, children: A.isValidElement(p) ? A.cloneElement(p, void 0, k) : null });
|
|
2886
2886
|
}
|
|
2887
2887
|
return /* @__PURE__ */ a(o, { ...i, ref: s, children: l });
|
|
2888
2888
|
});
|
|
2889
2889
|
return r.displayName = `${t}.Slot`, r;
|
|
2890
2890
|
}
|
|
2891
|
-
var
|
|
2891
|
+
var vr = /* @__PURE__ */ wr("Slot");
|
|
2892
2892
|
// @__NO_SIDE_EFFECTS__
|
|
2893
|
-
function
|
|
2894
|
-
const o =
|
|
2893
|
+
function yr(t) {
|
|
2894
|
+
const o = A.forwardRef((r, n) => {
|
|
2895
2895
|
let { children: s, ...l } = r;
|
|
2896
|
-
if (at(s) && typeof fe == "function" && (s = fe(s._payload)),
|
|
2896
|
+
if (at(s) && typeof fe == "function" && (s = fe(s._payload)), A.isValidElement(s)) {
|
|
2897
2897
|
const i = Er(s), u = Nr(l, s.props);
|
|
2898
|
-
return s.type !==
|
|
2898
|
+
return s.type !== A.Fragment && (u.ref = n ? fr(n, i) : i), A.cloneElement(s, u);
|
|
2899
2899
|
}
|
|
2900
|
-
return
|
|
2900
|
+
return A.Children.count(s) > 1 ? A.Children.only(null) : null;
|
|
2901
2901
|
});
|
|
2902
2902
|
return o.displayName = `${t}.SlotClone`, o;
|
|
2903
2903
|
}
|
|
2904
2904
|
var Fr = /* @__PURE__ */ Symbol("radix.slottable");
|
|
2905
2905
|
function Cr(t) {
|
|
2906
|
-
return
|
|
2906
|
+
return A.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Fr;
|
|
2907
2907
|
}
|
|
2908
2908
|
function Nr(t, o) {
|
|
2909
2909
|
const r = { ...o };
|
|
@@ -2920,21 +2920,21 @@ function Er(t) {
|
|
|
2920
2920
|
let o = Object.getOwnPropertyDescriptor(t.props, "ref")?.get, r = o && "isReactWarning" in o && o.isReactWarning;
|
|
2921
2921
|
return r ? t.ref : (o = Object.getOwnPropertyDescriptor(t, "ref")?.get, r = o && "isReactWarning" in o && o.isReactWarning, r ? t.props.ref : t.props.ref || t.ref);
|
|
2922
2922
|
}
|
|
2923
|
-
const
|
|
2923
|
+
const $e = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, Oe = Ke, lt = (t, o) => (r) => {
|
|
2924
2924
|
var n;
|
|
2925
|
-
if (o?.variants == null) return
|
|
2926
|
-
const { variants: s, defaultVariants: l } = o, i = Object.keys(s).map((
|
|
2927
|
-
const
|
|
2928
|
-
if (
|
|
2929
|
-
const d =
|
|
2930
|
-
return s[
|
|
2931
|
-
}), u = r && Object.entries(r).reduce((
|
|
2932
|
-
let [w, d] =
|
|
2933
|
-
return d === void 0 || (
|
|
2934
|
-
}, {}), g = o == null || (n = o.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((
|
|
2935
|
-
let { class: w, className: d, ...
|
|
2936
|
-
return Object.entries(
|
|
2937
|
-
let [N, E] =
|
|
2925
|
+
if (o?.variants == null) return Oe(t, r?.class, r?.className);
|
|
2926
|
+
const { variants: s, defaultVariants: l } = o, i = Object.keys(s).map((p) => {
|
|
2927
|
+
const k = r?.[p], w = l?.[p];
|
|
2928
|
+
if (k === null) return null;
|
|
2929
|
+
const d = $e(k) || $e(w);
|
|
2930
|
+
return s[p][d];
|
|
2931
|
+
}), u = r && Object.entries(r).reduce((p, k) => {
|
|
2932
|
+
let [w, d] = k;
|
|
2933
|
+
return d === void 0 || (p[w] = d), p;
|
|
2934
|
+
}, {}), g = o == null || (n = o.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((p, k) => {
|
|
2935
|
+
let { class: w, className: d, ...T } = k;
|
|
2936
|
+
return Object.entries(T).every((M) => {
|
|
2937
|
+
let [N, E] = M;
|
|
2938
2938
|
return Array.isArray(E) ? E.includes({
|
|
2939
2939
|
...l,
|
|
2940
2940
|
...u
|
|
@@ -2943,12 +2943,12 @@ const _e = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, $e = Ke, l
|
|
|
2943
2943
|
...u
|
|
2944
2944
|
}[N] === E;
|
|
2945
2945
|
}) ? [
|
|
2946
|
-
...
|
|
2946
|
+
...p,
|
|
2947
2947
|
w,
|
|
2948
2948
|
d
|
|
2949
|
-
] :
|
|
2949
|
+
] : p;
|
|
2950
2950
|
}, []);
|
|
2951
|
-
return
|
|
2951
|
+
return Oe(t, i, g, r?.class, r?.className);
|
|
2952
2952
|
}, Ar = lt(
|
|
2953
2953
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
2954
2954
|
{
|
|
@@ -2973,9 +2973,9 @@ const _e = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, $e = Ke, l
|
|
|
2973
2973
|
size: "default"
|
|
2974
2974
|
}
|
|
2975
2975
|
}
|
|
2976
|
-
), st =
|
|
2976
|
+
), st = A.forwardRef(
|
|
2977
2977
|
({ className: t, variant: o, size: r, asChild: n = !1, ...s }, l) => /* @__PURE__ */ a(
|
|
2978
|
-
n ?
|
|
2978
|
+
n ? vr : "button",
|
|
2979
2979
|
{
|
|
2980
2980
|
className: c(Ar({ variant: o, size: r, className: t })),
|
|
2981
2981
|
ref: l,
|
|
@@ -2984,7 +2984,7 @@ const _e = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, $e = Ke, l
|
|
|
2984
2984
|
)
|
|
2985
2985
|
);
|
|
2986
2986
|
st.displayName = "Button";
|
|
2987
|
-
const xe =
|
|
2987
|
+
const xe = A.forwardRef(
|
|
2988
2988
|
({ className: t, size: o = "md", variant: r = "default", ...n }, s) => {
|
|
2989
2989
|
const l = {
|
|
2990
2990
|
sm: "h-4 w-4",
|
|
@@ -3013,7 +3013,7 @@ const xe = T.forwardRef(
|
|
|
3013
3013
|
}
|
|
3014
3014
|
);
|
|
3015
3015
|
xe.displayName = "Spinner";
|
|
3016
|
-
const ge =
|
|
3016
|
+
const ge = A.forwardRef(
|
|
3017
3017
|
({
|
|
3018
3018
|
amount: t,
|
|
3019
3019
|
description: o,
|
|
@@ -3024,8 +3024,8 @@ const ge = T.forwardRef(
|
|
|
3024
3024
|
style: i,
|
|
3025
3025
|
customText: u,
|
|
3026
3026
|
...g
|
|
3027
|
-
},
|
|
3028
|
-
const
|
|
3027
|
+
}, p) => {
|
|
3028
|
+
const k = (w) => new Intl.NumberFormat("en-US", {
|
|
3029
3029
|
style: "currency",
|
|
3030
3030
|
currency: "USD",
|
|
3031
3031
|
minimumFractionDigits: 2
|
|
@@ -3033,7 +3033,7 @@ const ge = T.forwardRef(
|
|
|
3033
3033
|
return /* @__PURE__ */ a(
|
|
3034
3034
|
st,
|
|
3035
3035
|
{
|
|
3036
|
-
ref:
|
|
3036
|
+
ref: p,
|
|
3037
3037
|
onClick: r,
|
|
3038
3038
|
disabled: n || s,
|
|
3039
3039
|
className: c(
|
|
@@ -3055,7 +3055,7 @@ const ge = T.forwardRef(
|
|
|
3055
3055
|
}
|
|
3056
3056
|
),
|
|
3057
3057
|
/* @__PURE__ */ a("span", { children: "Processing Payment..." })
|
|
3058
|
-
] }) : /* @__PURE__ */ a("span", { children: u || `Pay ${
|
|
3058
|
+
] }) : /* @__PURE__ */ a("span", { children: u || `Pay ${k(t)} USDC` })
|
|
3059
3059
|
}
|
|
3060
3060
|
);
|
|
3061
3061
|
}
|
|
@@ -3090,7 +3090,7 @@ const ct = ({
|
|
|
3090
3090
|
className: i,
|
|
3091
3091
|
style: u
|
|
3092
3092
|
}) => {
|
|
3093
|
-
const g = t?.publicKey?.toString() || t?.address,
|
|
3093
|
+
const g = t?.publicKey?.toString() || t?.address, p = (w) => `${w.slice(0, 4)}...${w.slice(-4)}`, k = () => r === "solana" ? "Mainnet" : "Devnet";
|
|
3094
3094
|
return !t || !g ? /* @__PURE__ */ a(be, { className: c("border-dashed", i), style: u, children: /* @__PURE__ */ a(pe, { className: "p-4 text-center text-muted-foreground", children: /* @__PURE__ */ a("p", { className: "text-sm", children: "No wallet connected" }) }) }) : /* @__PURE__ */ a(
|
|
3095
3095
|
"div",
|
|
3096
3096
|
{
|
|
@@ -3141,7 +3141,7 @@ const ct = ({
|
|
|
3141
3141
|
"text-sm",
|
|
3142
3142
|
l === "light" || l === "solana-light" ? "text-black" : l === "terminal" ? "text-white font-vt323" : l === "terminal-light" ? "text-black font-vt323" : l === "seeker-light" ? "text-black" : "text-white font-mono"
|
|
3143
3143
|
),
|
|
3144
|
-
children:
|
|
3144
|
+
children: p(g)
|
|
3145
3145
|
}
|
|
3146
3146
|
)
|
|
3147
3147
|
] })
|
|
@@ -3212,7 +3212,7 @@ const ct = ({
|
|
|
3212
3212
|
"text-xs",
|
|
3213
3213
|
l === "terminal" ? "border-green-400/30 text-white font-vt323" : "border-slate-300 text-slate-700"
|
|
3214
3214
|
),
|
|
3215
|
-
children:
|
|
3215
|
+
children: k()
|
|
3216
3216
|
}
|
|
3217
3217
|
)
|
|
3218
3218
|
] })
|
|
@@ -3221,23 +3221,14 @@ const ct = ({
|
|
|
3221
3221
|
);
|
|
3222
3222
|
};
|
|
3223
3223
|
ct.displayName = "WalletSection";
|
|
3224
|
-
|
|
3225
|
-
if (typeof globalThis < "u" && typeof globalThis.atob == "function") {
|
|
3226
|
-
const o = globalThis.atob(t), r = new Uint8Array(o.length);
|
|
3227
|
-
for (let s = 0; s < o.length; s++)
|
|
3228
|
-
r[s] = o.charCodeAt(s);
|
|
3229
|
-
return new TextDecoder("utf-8").decode(r);
|
|
3230
|
-
}
|
|
3231
|
-
return Buffer.from(t, "base64").toString("utf-8");
|
|
3232
|
-
}
|
|
3233
|
-
var Pr = "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
|
|
3224
|
+
var Dr = "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
|
|
3234
3225
|
function Mr(t) {
|
|
3235
3226
|
return t === "solana" || t === "solana-devnet" || t.startsWith("solana:");
|
|
3236
3227
|
}
|
|
3237
3228
|
function Sr(t) {
|
|
3238
|
-
return t === "solana" || t ===
|
|
3229
|
+
return t === "solana" || t === Dr;
|
|
3239
3230
|
}
|
|
3240
|
-
function
|
|
3231
|
+
function Pr(t, o, r) {
|
|
3241
3232
|
const n = Buffer.from(t.serialize()).toString(
|
|
3242
3233
|
"base64"
|
|
3243
3234
|
), s = {
|
|
@@ -3252,27 +3243,16 @@ function Rr(t, o, r) {
|
|
|
3252
3243
|
transaction: n
|
|
3253
3244
|
}
|
|
3254
3245
|
};
|
|
3255
|
-
return Buffer.from(JSON.stringify(s)).toString(
|
|
3256
|
-
}
|
|
3257
|
-
function Br(t, o) {
|
|
3258
|
-
const r = Buffer.from(t.serialize()).toString("base64"), n = {
|
|
3259
|
-
x402Version: 1,
|
|
3260
|
-
scheme: o.scheme,
|
|
3261
|
-
network: o.network,
|
|
3262
|
-
payload: {
|
|
3263
|
-
transaction: r
|
|
3264
|
-
}
|
|
3265
|
-
};
|
|
3266
|
-
return Buffer.from(JSON.stringify(n)).toString(
|
|
3246
|
+
return Buffer.from(JSON.stringify(s)).toString(
|
|
3267
3247
|
"base64"
|
|
3268
3248
|
);
|
|
3269
3249
|
}
|
|
3270
|
-
function
|
|
3250
|
+
function Br(t) {
|
|
3271
3251
|
return Sr(t) ? "https://api.mainnet-beta.solana.com" : "https://api.devnet.solana.com";
|
|
3272
3252
|
}
|
|
3273
|
-
var
|
|
3274
|
-
async function
|
|
3275
|
-
const n = new
|
|
3253
|
+
var Rr = 7e3, Ir = 1;
|
|
3254
|
+
async function zr(t, o, r) {
|
|
3255
|
+
const n = new Ge(r, "confirmed"), s = o.extra?.feePayer;
|
|
3276
3256
|
if (!s)
|
|
3277
3257
|
throw new Error(
|
|
3278
3258
|
"Missing facilitator feePayer in payment requirements (extra.feePayer)."
|
|
@@ -3286,28 +3266,28 @@ async function jr(t, o, r) {
|
|
|
3286
3266
|
const g = new Z(o.payTo);
|
|
3287
3267
|
if (!o.asset)
|
|
3288
3268
|
throw new Error("Missing token mint for SPL transfer");
|
|
3289
|
-
const
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
units:
|
|
3269
|
+
const p = new Z(o.asset), k = [];
|
|
3270
|
+
k.push(
|
|
3271
|
+
Be.setComputeUnitLimit({
|
|
3272
|
+
units: Rr
|
|
3293
3273
|
})
|
|
3294
|
-
),
|
|
3295
|
-
|
|
3296
|
-
microLamports:
|
|
3274
|
+
), k.push(
|
|
3275
|
+
Be.setComputeUnitPrice({
|
|
3276
|
+
microLamports: Ir
|
|
3297
3277
|
})
|
|
3298
3278
|
);
|
|
3299
|
-
const d = (await n.getAccountInfo(
|
|
3300
|
-
|
|
3279
|
+
const d = (await n.getAccountInfo(p, "confirmed"))?.owner?.toBase58() === Re.toBase58() ? Re : yt, T = await Ft(n, p, void 0, d), M = await Ne(
|
|
3280
|
+
p,
|
|
3301
3281
|
u,
|
|
3302
3282
|
!1,
|
|
3303
3283
|
d
|
|
3304
3284
|
), N = await Ne(
|
|
3305
|
-
|
|
3285
|
+
p,
|
|
3306
3286
|
g,
|
|
3307
3287
|
!1,
|
|
3308
3288
|
d
|
|
3309
3289
|
);
|
|
3310
|
-
if (!await n.getAccountInfo(
|
|
3290
|
+
if (!await n.getAccountInfo(M, "confirmed"))
|
|
3311
3291
|
throw new Error(
|
|
3312
3292
|
`User does not have an Associated Token Account for ${o.asset}. Please create one first or ensure you have the required token.`
|
|
3313
3293
|
);
|
|
@@ -3318,96 +3298,88 @@ async function jr(t, o, r) {
|
|
|
3318
3298
|
throw new Error(
|
|
3319
3299
|
`Destination does not have an Associated Token Account for ${o.asset}. The receiver must create their token account before receiving payments.`
|
|
3320
3300
|
);
|
|
3321
|
-
const
|
|
3322
|
-
if (!
|
|
3301
|
+
const I = o.amount || o.maxAmountRequired;
|
|
3302
|
+
if (!I)
|
|
3323
3303
|
throw new Error("Missing amount in payment requirements");
|
|
3324
|
-
const C = BigInt(
|
|
3325
|
-
|
|
3304
|
+
const C = BigInt(I);
|
|
3305
|
+
k.push(
|
|
3326
3306
|
Ct(
|
|
3327
|
-
|
|
3328
|
-
|
|
3307
|
+
M,
|
|
3308
|
+
p,
|
|
3329
3309
|
N,
|
|
3330
3310
|
u,
|
|
3331
3311
|
C,
|
|
3332
|
-
|
|
3312
|
+
T.decimals,
|
|
3333
3313
|
[],
|
|
3334
3314
|
d
|
|
3335
3315
|
)
|
|
3336
3316
|
);
|
|
3337
|
-
const { blockhash: y } = await n.getLatestBlockhash("confirmed"),
|
|
3317
|
+
const { blockhash: y } = await n.getLatestBlockhash("confirmed"), z = new xt({
|
|
3338
3318
|
payerKey: l,
|
|
3339
3319
|
recentBlockhash: y,
|
|
3340
|
-
instructions:
|
|
3341
|
-
}).compileToV0Message(),
|
|
3320
|
+
instructions: k
|
|
3321
|
+
}).compileToV0Message(), L = new kt(z);
|
|
3342
3322
|
if (typeof t?.signTransaction != "function")
|
|
3343
3323
|
throw new Error("Connected wallet does not support signTransaction");
|
|
3344
|
-
return await t.signTransaction(
|
|
3345
|
-
}
|
|
3346
|
-
function Ur(t) {
|
|
3347
|
-
const o = Dr(t);
|
|
3348
|
-
return JSON.parse(o);
|
|
3324
|
+
return await t.signTransaction(L);
|
|
3349
3325
|
}
|
|
3350
|
-
function
|
|
3326
|
+
function Lr(t, o, r, n = BigInt(0), s = !1) {
|
|
3351
3327
|
const l = (...i) => {
|
|
3352
3328
|
s && console.log("[x402-solana]", ...i);
|
|
3353
3329
|
};
|
|
3354
3330
|
return async (i, u) => {
|
|
3355
3331
|
const g = typeof i == "string" ? i : i.url;
|
|
3356
3332
|
l("Making initial request to:", g);
|
|
3357
|
-
const
|
|
3358
|
-
if (l("Initial response status:",
|
|
3359
|
-
return
|
|
3333
|
+
const p = await t(i, u);
|
|
3334
|
+
if (l("Initial response status:", p.status), p.status !== 402)
|
|
3335
|
+
return p;
|
|
3360
3336
|
l("Got 402, parsing payment requirements...");
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
(P) => P.scheme === "exact" && Mr(P.network)
|
|
3337
|
+
const k = await p.json();
|
|
3338
|
+
l("Payment requirements:", JSON.stringify(k, null, 2));
|
|
3339
|
+
const w = k.accepts || [], d = w.find(
|
|
3340
|
+
(C) => C.scheme === "exact" && Mr(C.network)
|
|
3366
3341
|
);
|
|
3367
|
-
if (!
|
|
3342
|
+
if (!d)
|
|
3368
3343
|
throw console.error(
|
|
3369
3344
|
"❌ No suitable Solana payment requirements found. Available networks:",
|
|
3370
|
-
|
|
3345
|
+
w.map((C) => C.network)
|
|
3371
3346
|
), new Error("No suitable Solana payment requirements found");
|
|
3372
|
-
const
|
|
3373
|
-
|
|
3347
|
+
const T = BigInt(
|
|
3348
|
+
d.amount || d.maxAmountRequired || "0"
|
|
3374
3349
|
);
|
|
3375
|
-
if (n > BigInt(0) &&
|
|
3350
|
+
if (n > BigInt(0) && T > n)
|
|
3376
3351
|
throw new Error("Payment amount exceeds maximum allowed");
|
|
3377
|
-
const
|
|
3352
|
+
const M = typeof i == "string" ? i : i.url;
|
|
3378
3353
|
l("Creating signed transaction...");
|
|
3379
|
-
const
|
|
3354
|
+
const N = await zr(
|
|
3380
3355
|
o,
|
|
3381
|
-
|
|
3356
|
+
d,
|
|
3382
3357
|
r
|
|
3383
3358
|
);
|
|
3384
3359
|
l("Transaction signed successfully");
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
A
|
|
3393
|
-
), C = "X-PAYMENT"), l("Payment header created, length:", B.length), l("Using header:", C);
|
|
3394
|
-
const y = {
|
|
3360
|
+
const E = Pr(
|
|
3361
|
+
N,
|
|
3362
|
+
d,
|
|
3363
|
+
M
|
|
3364
|
+
);
|
|
3365
|
+
l("Payment header created, length:", E.length);
|
|
3366
|
+
const P = {
|
|
3395
3367
|
...u,
|
|
3396
3368
|
headers: {
|
|
3397
3369
|
...u?.headers || {},
|
|
3398
|
-
|
|
3370
|
+
"PAYMENT-SIGNATURE": E
|
|
3399
3371
|
}
|
|
3400
3372
|
};
|
|
3401
|
-
l(
|
|
3402
|
-
const I = await t(i,
|
|
3373
|
+
l("Retrying request with PAYMENT-SIGNATURE header...");
|
|
3374
|
+
const I = await t(i, P);
|
|
3403
3375
|
return l("Retry response status:", I.status), I;
|
|
3404
3376
|
};
|
|
3405
3377
|
}
|
|
3406
|
-
var
|
|
3378
|
+
var jr = class {
|
|
3407
3379
|
paymentFetch;
|
|
3408
3380
|
constructor(t) {
|
|
3409
|
-
const o = t.rpcUrl ||
|
|
3410
|
-
this.paymentFetch =
|
|
3381
|
+
const o = t.rpcUrl || Br(t.network), r = t.customFetch || globalThis.fetch.bind(globalThis);
|
|
3382
|
+
this.paymentFetch = Lr(
|
|
3411
3383
|
r,
|
|
3412
3384
|
t.wallet,
|
|
3413
3385
|
o,
|
|
@@ -3423,79 +3395,79 @@ var _r = class {
|
|
|
3423
3395
|
return this.paymentFetch(t, o);
|
|
3424
3396
|
}
|
|
3425
3397
|
};
|
|
3426
|
-
function
|
|
3427
|
-
return new
|
|
3398
|
+
function Ur(t) {
|
|
3399
|
+
return new jr(t);
|
|
3428
3400
|
}
|
|
3429
|
-
function
|
|
3430
|
-
const [o, r] =
|
|
3431
|
-
r("idle"), s(null), i(null), g(null),
|
|
3401
|
+
function _r(t) {
|
|
3402
|
+
const [o, r] = Y("idle"), [n, s] = Y(null), [l, i] = Y(null), [u, g] = Y(null), [p, k] = Y(!1), w = Se(() => {
|
|
3403
|
+
r("idle"), s(null), i(null), g(null), k(!1);
|
|
3432
3404
|
}, []);
|
|
3433
3405
|
return {
|
|
3434
|
-
pay:
|
|
3435
|
-
async (
|
|
3406
|
+
pay: Se(
|
|
3407
|
+
async (T, M) => {
|
|
3436
3408
|
try {
|
|
3437
|
-
if (
|
|
3438
|
-
throw new Error(`Payment amount ${
|
|
3409
|
+
if (k(!0), r("pending"), s(null), t.amount && T > t.amount)
|
|
3410
|
+
throw new Error(`Payment amount ${T} exceeds maximum allowed ${t.amount}`);
|
|
3439
3411
|
const N = t.wallet.publicKey?.toString() || t.wallet.address;
|
|
3440
3412
|
if (!N)
|
|
3441
3413
|
throw new Error("Wallet not connected");
|
|
3442
|
-
const E =
|
|
3414
|
+
const E = Ur({
|
|
3443
3415
|
wallet: t.wallet,
|
|
3444
3416
|
network: t.network,
|
|
3445
3417
|
rpcUrl: t.rpcUrl,
|
|
3446
3418
|
amount: t.amount ? BigInt(Math.floor(t.amount * 1e6)) : void 0,
|
|
3447
3419
|
verbose: t.verbose
|
|
3448
3420
|
});
|
|
3449
|
-
let
|
|
3450
|
-
t.network === "solana" ?
|
|
3451
|
-
const
|
|
3421
|
+
let P;
|
|
3422
|
+
t.network === "solana" ? P = "https://x402.payai.network/api/solana/paid-content" : P = "https://x402.payai.network/api/solana-devnet/paid-content";
|
|
3423
|
+
const I = t.apiEndpoint || P, C = I === P;
|
|
3452
3424
|
t.verbose && console.log("Initiating x402 payment:", {
|
|
3453
|
-
endpoint:
|
|
3425
|
+
endpoint: I,
|
|
3454
3426
|
isDemo: C,
|
|
3455
|
-
amount:
|
|
3456
|
-
description:
|
|
3427
|
+
amount: T,
|
|
3428
|
+
description: M,
|
|
3457
3429
|
wallet: N,
|
|
3458
3430
|
network: t.network
|
|
3459
3431
|
});
|
|
3460
|
-
const y = await E.fetch(
|
|
3432
|
+
const y = await E.fetch(I, {
|
|
3461
3433
|
method: "POST",
|
|
3462
3434
|
headers: {
|
|
3463
3435
|
"Content-Type": "application/json"
|
|
3464
3436
|
},
|
|
3465
3437
|
body: JSON.stringify({
|
|
3466
|
-
message:
|
|
3467
|
-
amount:
|
|
3438
|
+
message: M,
|
|
3439
|
+
amount: T
|
|
3468
3440
|
})
|
|
3469
3441
|
});
|
|
3470
3442
|
if (!y.ok)
|
|
3471
3443
|
throw new Error(`Payment request failed: ${y.statusText}`);
|
|
3472
|
-
let
|
|
3473
|
-
const
|
|
3474
|
-
if (
|
|
3475
|
-
|
|
3444
|
+
let z, L = null;
|
|
3445
|
+
const $ = y.headers.get("content-type");
|
|
3446
|
+
if ($ && $.includes("application/json"))
|
|
3447
|
+
z = await y.json(), L = JSON.stringify(z);
|
|
3476
3448
|
else {
|
|
3477
3449
|
const j = await y.text();
|
|
3478
|
-
|
|
3450
|
+
z = { content: j }, L = j;
|
|
3479
3451
|
}
|
|
3480
|
-
g(
|
|
3481
|
-
const
|
|
3452
|
+
g(L), t.verbose && console.log("Payment successful:", z);
|
|
3453
|
+
const x = y.headers.get("PAYMENT-RESPONSE");
|
|
3482
3454
|
let e = `tx_${Date.now()}`;
|
|
3483
|
-
if (
|
|
3455
|
+
if (x)
|
|
3484
3456
|
try {
|
|
3485
|
-
const j = JSON.parse(atob(
|
|
3457
|
+
const j = JSON.parse(atob(x));
|
|
3486
3458
|
e = j.transactionId || j.signature || e, t.verbose && console.log("Payment details:", j);
|
|
3487
3459
|
} catch (j) {
|
|
3488
3460
|
t.verbose && console.warn("Could not decode payment response:", j);
|
|
3489
3461
|
}
|
|
3490
|
-
return i(e), r("success"),
|
|
3462
|
+
return i(e), r("success"), k(!1), e;
|
|
3491
3463
|
} catch (N) {
|
|
3492
3464
|
const E = N instanceof Error ? N : new Error("Payment failed");
|
|
3493
|
-
return s(E), r("error"),
|
|
3465
|
+
return s(E), r("error"), k(!1), null;
|
|
3494
3466
|
}
|
|
3495
3467
|
},
|
|
3496
3468
|
[t]
|
|
3497
3469
|
),
|
|
3498
|
-
isLoading:
|
|
3470
|
+
isLoading: p,
|
|
3499
3471
|
status: o,
|
|
3500
3472
|
error: n,
|
|
3501
3473
|
transactionId: l,
|
|
@@ -3513,42 +3485,42 @@ const We = ({
|
|
|
3513
3485
|
facilitatorUrl: i,
|
|
3514
3486
|
theme: u = "solana-light",
|
|
3515
3487
|
logoUrl: g = "https://raw.githubusercontent.com/PayAINetwork/x402-solana-react/main/src/components/ui/SolanaLogo.svg",
|
|
3516
|
-
showPaymentDetails:
|
|
3517
|
-
onDisconnect:
|
|
3488
|
+
showPaymentDetails: p = !0,
|
|
3489
|
+
onDisconnect: k,
|
|
3518
3490
|
classNames: w,
|
|
3519
3491
|
customStyles: d,
|
|
3520
|
-
maxPaymentAmount:
|
|
3492
|
+
maxPaymentAmount: T,
|
|
3521
3493
|
// enablePaymentCaching = false, // TODO: Implement in future
|
|
3522
3494
|
// autoRetry = false, // TODO: Implement in future
|
|
3523
|
-
onPaymentStart:
|
|
3495
|
+
onPaymentStart: M,
|
|
3524
3496
|
onPaymentSuccess: N,
|
|
3525
3497
|
onPaymentError: E,
|
|
3526
|
-
onWalletConnect:
|
|
3527
|
-
children:
|
|
3498
|
+
onWalletConnect: P,
|
|
3499
|
+
children: I
|
|
3528
3500
|
}) => {
|
|
3529
3501
|
const C = gt(), y = Ce(() => r || {
|
|
3530
3502
|
publicKey: C.publicKey ? { toString: () => C.publicKey.toString() } : void 0,
|
|
3531
3503
|
signTransaction: C.signTransaction
|
|
3532
|
-
}, [r, C.publicKey, C.signTransaction]), [
|
|
3504
|
+
}, [r, C.publicKey, C.signTransaction]), [z, L] = Y(!1), [$, x] = Y("0.00"), [e, j] = Y(() => u === "system" ? typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : "dark" : u), te = dt(null), W = n === "solana" ? "Mainnet" : "Devnet", { pay: ne, isLoading: K, status: G, error: R, transactionId: O, responseContent: f, reset: ae } = _r({
|
|
3533
3505
|
wallet: y,
|
|
3534
3506
|
network: n,
|
|
3535
3507
|
rpcUrl: s,
|
|
3536
3508
|
apiEndpoint: l,
|
|
3537
3509
|
facilitatorUrl: i,
|
|
3538
|
-
amount:
|
|
3510
|
+
amount: T
|
|
3539
3511
|
}), le = () => {
|
|
3540
|
-
|
|
3512
|
+
k ? k() : !r && C.disconnect && C.disconnect();
|
|
3541
3513
|
}, se = r ? !!(r.publicKey || r.address) : !!(C.connected || C.publicKey);
|
|
3542
3514
|
re(() => {
|
|
3543
3515
|
if (u === "system")
|
|
3544
3516
|
if (typeof window < "u" && window.matchMedia) {
|
|
3545
|
-
const
|
|
3546
|
-
j(
|
|
3517
|
+
const D = window.matchMedia("(prefers-color-scheme: dark)"), F = () => {
|
|
3518
|
+
j(D.matches ? "dark" : "light");
|
|
3547
3519
|
};
|
|
3548
|
-
if (
|
|
3549
|
-
return
|
|
3550
|
-
if (
|
|
3551
|
-
return
|
|
3520
|
+
if (D.addEventListener)
|
|
3521
|
+
return D.addEventListener("change", F), F(), () => D.removeEventListener("change", F);
|
|
3522
|
+
if (D.addListener)
|
|
3523
|
+
return D.addListener(F), F(), () => D.removeListener(F);
|
|
3552
3524
|
F();
|
|
3553
3525
|
} else
|
|
3554
3526
|
j("dark");
|
|
@@ -3556,13 +3528,13 @@ const We = ({
|
|
|
3556
3528
|
j(u);
|
|
3557
3529
|
}, [u]), re(() => {
|
|
3558
3530
|
document.body.className = document.body.className.replace(/wallet-modal-theme-\w+/g, "").replace(/\s+/g, " ").trim();
|
|
3559
|
-
const
|
|
3560
|
-
return
|
|
3531
|
+
const D = u === "system" ? e : u;
|
|
3532
|
+
return D && (document.body.className += ` wallet-modal-theme-${D}`), () => {
|
|
3561
3533
|
document.body.className = document.body.className.replace(/wallet-modal-theme-\w+/g, "").replace(/\s+/g, " ").trim();
|
|
3562
3534
|
};
|
|
3563
3535
|
}, [u, e]), re(() => {
|
|
3564
|
-
const
|
|
3565
|
-
|
|
3536
|
+
const D = C.publicKey?.toString() || r?.publicKey?.toString() || r?.address;
|
|
3537
|
+
D && C.connected && (console.log("Wallet connected:", D), P?.(D), At(D, n, s).then(x)), !C.connected && !r && x("0.00");
|
|
3566
3538
|
}, [
|
|
3567
3539
|
C.publicKey,
|
|
3568
3540
|
C.connected,
|
|
@@ -3570,18 +3542,18 @@ const We = ({
|
|
|
3570
3542
|
r,
|
|
3571
3543
|
n,
|
|
3572
3544
|
s,
|
|
3573
|
-
|
|
3545
|
+
P
|
|
3574
3546
|
]), re(() => {
|
|
3575
|
-
|
|
3576
|
-
}, [
|
|
3577
|
-
|
|
3578
|
-
}, [
|
|
3547
|
+
G === "success" && O && (L(!0), N?.(O, f));
|
|
3548
|
+
}, [G, O, f, N]), re(() => {
|
|
3549
|
+
R && E?.(R);
|
|
3550
|
+
}, [R, E]);
|
|
3579
3551
|
const X = async () => {
|
|
3580
|
-
|
|
3552
|
+
M?.(), await ne(t, o);
|
|
3581
3553
|
};
|
|
3582
|
-
if (
|
|
3583
|
-
return /* @__PURE__ */ a(
|
|
3584
|
-
const
|
|
3554
|
+
if (z)
|
|
3555
|
+
return /* @__PURE__ */ a(ve, { children: I });
|
|
3556
|
+
const B = R && (e === "dark" || e === "solana-dark" || e === "light" || e === "solana-light" || e === "seeker" || e === "seeker-2" || e === "seeker-light" || e === "terminal" || e === "terminal-light"), _ = (() => {
|
|
3585
3557
|
switch (e) {
|
|
3586
3558
|
case "solana-dark":
|
|
3587
3559
|
return {
|
|
@@ -4210,7 +4182,7 @@ const We = ({
|
|
|
4210
4182
|
{
|
|
4211
4183
|
className: c(
|
|
4212
4184
|
"flex items-center justify-center min-h-screen p-4",
|
|
4213
|
-
|
|
4185
|
+
_.container,
|
|
4214
4186
|
w?.container
|
|
4215
4187
|
),
|
|
4216
4188
|
style: e === "dark" ? {
|
|
@@ -4263,7 +4235,7 @@ const We = ({
|
|
|
4263
4235
|
/* @__PURE__ */ m(
|
|
4264
4236
|
be,
|
|
4265
4237
|
{
|
|
4266
|
-
className: c("w-full max-w-lg shadow-2xl border-0",
|
|
4238
|
+
className: c("w-full max-w-lg shadow-2xl border-0", _.card, w?.card),
|
|
4267
4239
|
style: e === "seeker" ? {
|
|
4268
4240
|
backgroundColor: "#171719",
|
|
4269
4241
|
...d?.card
|
|
@@ -4317,7 +4289,7 @@ const We = ({
|
|
|
4317
4289
|
/* @__PURE__ */ a(
|
|
4318
4290
|
Te,
|
|
4319
4291
|
{
|
|
4320
|
-
className: c("text-l fw-bold pb-1",
|
|
4292
|
+
className: c("text-l fw-bold pb-1", _.title, w?.text),
|
|
4321
4293
|
style: d?.text,
|
|
4322
4294
|
children: "Premium Content XYZ"
|
|
4323
4295
|
}
|
|
@@ -4351,7 +4323,7 @@ const We = ({
|
|
|
4351
4323
|
} : e === "seeker-light" ? { marginBottom: "1rem" } : e === "light" || e === "solana-light" ? { marginBottom: "1rem" } : e === "dark" || e === "solana-dark" ? { marginBottom: "1rem" } : void 0
|
|
4352
4324
|
}
|
|
4353
4325
|
),
|
|
4354
|
-
!
|
|
4326
|
+
!B && /* @__PURE__ */ m("div", { className: "text-center", children: [
|
|
4355
4327
|
/* @__PURE__ */ a(
|
|
4356
4328
|
"h2",
|
|
4357
4329
|
{
|
|
@@ -4381,7 +4353,7 @@ const We = ({
|
|
|
4381
4353
|
)
|
|
4382
4354
|
] })
|
|
4383
4355
|
] }),
|
|
4384
|
-
/* @__PURE__ */ a(pe, { className: "space-y-6", children:
|
|
4356
|
+
/* @__PURE__ */ a(pe, { className: "space-y-6", children: B ? /* @__PURE__ */ m(ve, { children: [
|
|
4385
4357
|
/* @__PURE__ */ a("div", { className: "flex justify-center mb-4", children: /* @__PURE__ */ a("div", { className: "w-16 h-16 rounded-full bg-red-500 flex items-center justify-center", children: /* @__PURE__ */ a(
|
|
4386
4358
|
"svg",
|
|
4387
4359
|
{
|
|
@@ -4410,7 +4382,7 @@ const We = ({
|
|
|
4410
4382
|
"text-center text-sm mb-6",
|
|
4411
4383
|
e === "dark" || e === "solana-dark" || e === "seeker" || e === "seeker-2" ? "text-gray-400" : "text-slate-600"
|
|
4412
4384
|
),
|
|
4413
|
-
children:
|
|
4385
|
+
children: R?.message || "It looks like your wallet doesn't have enough funds or the transaction was declined. Please review the details and try again."
|
|
4414
4386
|
}
|
|
4415
4387
|
),
|
|
4416
4388
|
/* @__PURE__ */ a(
|
|
@@ -4487,7 +4459,7 @@ const We = ({
|
|
|
4487
4459
|
),
|
|
4488
4460
|
children: [
|
|
4489
4461
|
"$",
|
|
4490
|
-
|
|
4462
|
+
$
|
|
4491
4463
|
]
|
|
4492
4464
|
}
|
|
4493
4465
|
)
|
|
@@ -4679,7 +4651,7 @@ const We = ({
|
|
|
4679
4651
|
]
|
|
4680
4652
|
}
|
|
4681
4653
|
) })
|
|
4682
|
-
] }) : /* @__PURE__ */ m(
|
|
4654
|
+
] }) : /* @__PURE__ */ m(ve, { children: [
|
|
4683
4655
|
/* @__PURE__ */ a(
|
|
4684
4656
|
ct,
|
|
4685
4657
|
{
|
|
@@ -4703,10 +4675,10 @@ const We = ({
|
|
|
4703
4675
|
} : e === "light" || e === "solana-light" ? { backgroundColor: "#F4F4F5", border: "none" } : void 0
|
|
4704
4676
|
}
|
|
4705
4677
|
),
|
|
4706
|
-
|
|
4678
|
+
p && (e === "seeker" || e === "seeker-2" ? /* @__PURE__ */ m(
|
|
4707
4679
|
"div",
|
|
4708
4680
|
{
|
|
4709
|
-
className: c("p-6",
|
|
4681
|
+
className: c("p-6", _.paymentDetails),
|
|
4710
4682
|
style: e === "seeker" ? {
|
|
4711
4683
|
backgroundColor: "rgba(0, 0, 0, 0.12)"
|
|
4712
4684
|
} : e === "seeker-2" ? { backgroundColor: "#171A1A" } : void 0,
|
|
@@ -4734,7 +4706,7 @@ const We = ({
|
|
|
4734
4706
|
/* @__PURE__ */ a("span", { className: "text-sm text-white", children: "Available Balance" }),
|
|
4735
4707
|
/* @__PURE__ */ m("div", { className: "text-sm text-white", children: [
|
|
4736
4708
|
"$",
|
|
4737
|
-
|
|
4709
|
+
$
|
|
4738
4710
|
] })
|
|
4739
4711
|
] }),
|
|
4740
4712
|
/* @__PURE__ */ m("div", { className: "flex items-center justify-between", children: [
|
|
@@ -4762,7 +4734,7 @@ const We = ({
|
|
|
4762
4734
|
{
|
|
4763
4735
|
className: c(
|
|
4764
4736
|
"p-6",
|
|
4765
|
-
e === "light" || e === "solana-light" ? "bg-[#F4F4F5] border-none rounded-xl" :
|
|
4737
|
+
e === "light" || e === "solana-light" ? "bg-[#F4F4F5] border-none rounded-xl" : _.paymentDetails
|
|
4766
4738
|
),
|
|
4767
4739
|
style: e === "terminal" ? {
|
|
4768
4740
|
backgroundColor: "#0B2D2D",
|
|
@@ -4854,7 +4826,7 @@ const We = ({
|
|
|
4854
4826
|
),
|
|
4855
4827
|
children: [
|
|
4856
4828
|
"$",
|
|
4857
|
-
|
|
4829
|
+
$
|
|
4858
4830
|
]
|
|
4859
4831
|
}
|
|
4860
4832
|
)
|
|
@@ -4941,7 +4913,7 @@ const We = ({
|
|
|
4941
4913
|
/* @__PURE__ */ a(
|
|
4942
4914
|
"span",
|
|
4943
4915
|
{
|
|
4944
|
-
className: c("text-sm",
|
|
4916
|
+
className: c("text-sm", _.securityMessage),
|
|
4945
4917
|
style: e === "terminal" ? { color: "#FFFFFF99" } : e === "seeker" ? { color: "#FFFFFF66" } : e === "seeker-2" ? { color: "#FFFFFF66" } : e === "terminal-light" ? { color: "#71717A" } : e === "seeker-light" ? { color: "#000000" } : void 0,
|
|
4946
4918
|
children: "Secure payment powered by Solana"
|
|
4947
4919
|
}
|
|
@@ -4957,7 +4929,7 @@ const We = ({
|
|
|
4957
4929
|
disabled: K || !y?.publicKey,
|
|
4958
4930
|
className: c(
|
|
4959
4931
|
"w-full h-12",
|
|
4960
|
-
e === "dark" || e === "solana-dark" ? e === "dark" ? "bg-[#FFFFFF1F] rounded-full" : "bg-solana-gradient rounded-full" :
|
|
4932
|
+
e === "dark" || e === "solana-dark" ? e === "dark" ? "bg-[#FFFFFF1F] rounded-full" : "bg-solana-gradient rounded-full" : _.button,
|
|
4961
4933
|
w?.button
|
|
4962
4934
|
),
|
|
4963
4935
|
style: e === "terminal" ? {
|
|
@@ -4987,12 +4959,12 @@ const We = ({
|
|
|
4987
4959
|
} : d?.button
|
|
4988
4960
|
}
|
|
4989
4961
|
),
|
|
4990
|
-
|
|
4962
|
+
R && /* @__PURE__ */ a("div", { className: "bg-red-50 border border-red-200 rounded-lg p-4", children: /* @__PURE__ */ m("p", { className: "text-sm text-red-800 text-center", children: [
|
|
4991
4963
|
/* @__PURE__ */ a("span", { className: "font-semibold", children: "Payment Error:" }),
|
|
4992
4964
|
" ",
|
|
4993
|
-
|
|
4965
|
+
R.message
|
|
4994
4966
|
] }) }),
|
|
4995
|
-
/* @__PURE__ */ a("div", { className: "text-center", children: /* @__PURE__ */ m("p", { className: c("text-sm",
|
|
4967
|
+
/* @__PURE__ */ a("div", { className: "text-center", children: /* @__PURE__ */ m("p", { className: c("text-sm", _.helperText), children: [
|
|
4996
4968
|
/* @__PURE__ */ m(
|
|
4997
4969
|
"span",
|
|
4998
4970
|
{
|
|
@@ -5009,7 +4981,7 @@ const We = ({
|
|
|
5009
4981
|
href: "#",
|
|
5010
4982
|
className: c(
|
|
5011
4983
|
"font-medium",
|
|
5012
|
-
e === "seeker" || e === "seeker-2" ? "text-[#95D2E6]" : e === "seeker-light" ? "hover:opacity-90" : e === "light" || e === "solana-light" ? "text-purple-600" : e === "terminal" || e === "terminal-light" ? "hover:opacity-90" :
|
|
4984
|
+
e === "seeker" || e === "seeker-2" ? "text-[#95D2E6]" : e === "seeker-light" ? "hover:opacity-90" : e === "light" || e === "solana-light" ? "text-purple-600" : e === "terminal" || e === "terminal-light" ? "hover:opacity-90" : _.helperLink || "text-[#4ADE80]"
|
|
5013
4985
|
),
|
|
5014
4986
|
style: e === "terminal" ? { color: "#32FEFF" } : e === "terminal-light" ? { color: "#000000" } : e === "seeker" ? { color: "#95D2E6" } : e === "seeker-2" ? { color: "#95D2E6" } : e === "seeker-light" ? { color: "#00BECC" } : void 0,
|
|
5015
4987
|
children: [
|
|
@@ -5045,20 +5017,20 @@ const We = ({
|
|
|
5045
5017
|
]
|
|
5046
5018
|
}
|
|
5047
5019
|
);
|
|
5048
|
-
},
|
|
5020
|
+
}, $r = ({
|
|
5049
5021
|
autoSetupProviders: t = !0,
|
|
5050
5022
|
providerNetwork: o,
|
|
5051
5023
|
providerEndpoint: r,
|
|
5052
5024
|
...n
|
|
5053
5025
|
}) => {
|
|
5054
|
-
const s = o ?? (n.network === "solana" ?
|
|
5026
|
+
const s = o ?? (n.network === "solana" ? Pe.Mainnet : Pe.Devnet), l = Ce(
|
|
5055
5027
|
() => r || n.rpcUrl || wt(s),
|
|
5056
5028
|
[r, n.rpcUrl, s]
|
|
5057
5029
|
), i = Ce(() => [new pt(), new ft()], []);
|
|
5058
5030
|
return t ? /* @__PURE__ */ a(mt, { endpoint: l, children: /* @__PURE__ */ a(ut, { wallets: i, autoConnect: !0, children: /* @__PURE__ */ a(ht, { children: /* @__PURE__ */ a(We, { ...n }) }) }) }) : /* @__PURE__ */ a(We, { ...n });
|
|
5059
5031
|
};
|
|
5060
|
-
|
|
5061
|
-
const
|
|
5032
|
+
$r.displayName = "X402Paywall";
|
|
5033
|
+
const Or = ({
|
|
5062
5034
|
status: t,
|
|
5063
5035
|
message: o,
|
|
5064
5036
|
progress: r,
|
|
@@ -5156,7 +5128,7 @@ const Gr = ({
|
|
|
5156
5128
|
) })
|
|
5157
5129
|
] });
|
|
5158
5130
|
};
|
|
5159
|
-
|
|
5131
|
+
Or.displayName = "PaymentStatus";
|
|
5160
5132
|
export {
|
|
5161
5133
|
it as Badge,
|
|
5162
5134
|
st as Button,
|
|
@@ -5166,11 +5138,11 @@ export {
|
|
|
5166
5138
|
Ae as CardHeader,
|
|
5167
5139
|
Te as CardTitle,
|
|
5168
5140
|
ge as PaymentButton,
|
|
5169
|
-
|
|
5141
|
+
Or as PaymentStatus,
|
|
5170
5142
|
xe as Spinner,
|
|
5171
5143
|
ct as WalletSection,
|
|
5172
|
-
|
|
5144
|
+
$r as X402Paywall,
|
|
5173
5145
|
c as cn,
|
|
5174
|
-
|
|
5146
|
+
_r as useX402Payment
|
|
5175
5147
|
};
|
|
5176
5148
|
//# sourceMappingURL=index.mjs.map
|