@sudobility/subscription-components 1.0.5 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +531 -520
- package/dist/index.umd.js +1 -1
- package/dist/subscription-layout.d.ts +7 -1
- package/dist/subscription-layout.d.ts.map +1 -1
- package/dist/subscription-provider.d.ts.map +1 -1
- package/dist/subscription-tile.d.ts +7 -1
- package/dist/subscription-tile.d.ts.map +1 -1
- package/dist/types.d.ts +14 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as M, jsx as g, Fragment as $e } from "react/jsx-runtime";
|
|
2
2
|
import { textVariants as be } from "@sudobility/design";
|
|
3
3
|
import { Card as Be, CardContent as We, Button as ve } from "@sudobility/components";
|
|
4
|
-
import { createContext as Ue, useState as
|
|
4
|
+
import { createContext as Ue, useState as K, useCallback as U, useEffect as Ye, useContext as Ke } from "react";
|
|
5
5
|
function Se(e) {
|
|
6
|
-
var o,
|
|
7
|
-
if (typeof e == "string" || typeof e == "number")
|
|
6
|
+
var o, t, r = "";
|
|
7
|
+
if (typeof e == "string" || typeof e == "number") r += e;
|
|
8
8
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
9
9
|
var s = e.length;
|
|
10
|
-
for (o = 0; o < s; o++) e[o] && (
|
|
11
|
-
} else for (
|
|
12
|
-
return
|
|
10
|
+
for (o = 0; o < s; o++) e[o] && (t = Se(e[o])) && (r && (r += " "), r += t);
|
|
11
|
+
} else for (t in e) e[t] && (r && (r += " "), r += t);
|
|
12
|
+
return r;
|
|
13
13
|
}
|
|
14
14
|
function qe() {
|
|
15
|
-
for (var e, o,
|
|
16
|
-
return
|
|
15
|
+
for (var e, o, t = 0, r = "", s = arguments.length; t < s; t++) (e = arguments[t]) && (o = Se(e)) && (r && (r += " "), r += o);
|
|
16
|
+
return r;
|
|
17
17
|
}
|
|
18
18
|
const Xe = (e, o) => {
|
|
19
|
-
const
|
|
20
|
-
for (let
|
|
21
|
-
r
|
|
22
|
-
for (let
|
|
23
|
-
|
|
24
|
-
return
|
|
19
|
+
const t = new Array(e.length + o.length);
|
|
20
|
+
for (let r = 0; r < e.length; r++)
|
|
21
|
+
t[r] = e[r];
|
|
22
|
+
for (let r = 0; r < o.length; r++)
|
|
23
|
+
t[e.length + r] = o[r];
|
|
24
|
+
return t;
|
|
25
25
|
}, Je = (e, o) => ({
|
|
26
26
|
classGroupId: e,
|
|
27
27
|
validator: o
|
|
28
|
-
}), Re = (e = /* @__PURE__ */ new Map(), o = null,
|
|
28
|
+
}), Re = (e = /* @__PURE__ */ new Map(), o = null, t) => ({
|
|
29
29
|
nextPart: e,
|
|
30
30
|
validators: o,
|
|
31
|
-
classGroupId:
|
|
31
|
+
classGroupId: t
|
|
32
32
|
}), ce = "-", Ce = [], He = "arbitrary..", Qe = (e) => {
|
|
33
|
-
const o =
|
|
34
|
-
conflictingClassGroups:
|
|
35
|
-
conflictingClassGroupModifiers:
|
|
33
|
+
const o = et(e), {
|
|
34
|
+
conflictingClassGroups: t,
|
|
35
|
+
conflictingClassGroupModifiers: r
|
|
36
36
|
} = e;
|
|
37
37
|
return {
|
|
38
38
|
getClassGroupId: (a) => {
|
|
@@ -43,86 +43,86 @@ const Xe = (e, o) => {
|
|
|
43
43
|
},
|
|
44
44
|
getConflictingClassGroupIds: (a, m) => {
|
|
45
45
|
if (m) {
|
|
46
|
-
const c =
|
|
46
|
+
const c = r[a], f = t[a];
|
|
47
47
|
return c ? f ? Xe(f, c) : c : f || Ce;
|
|
48
48
|
}
|
|
49
|
-
return
|
|
49
|
+
return t[a] || Ce;
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
}, Ie = (e, o,
|
|
52
|
+
}, Ie = (e, o, t) => {
|
|
53
53
|
if (e.length - o === 0)
|
|
54
|
-
return
|
|
55
|
-
const s = e[o], n =
|
|
54
|
+
return t.classGroupId;
|
|
55
|
+
const s = e[o], n = t.nextPart.get(s);
|
|
56
56
|
if (n) {
|
|
57
57
|
const f = Ie(e, o + 1, n);
|
|
58
58
|
if (f) return f;
|
|
59
59
|
}
|
|
60
|
-
const a =
|
|
60
|
+
const a = t.validators;
|
|
61
61
|
if (a === null)
|
|
62
62
|
return;
|
|
63
63
|
const m = o === 0 ? e.join(ce) : e.slice(o).join(ce), c = a.length;
|
|
64
64
|
for (let f = 0; f < c; f++) {
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
67
|
-
return
|
|
65
|
+
const k = a[f];
|
|
66
|
+
if (k.validator(m))
|
|
67
|
+
return k.classGroupId;
|
|
68
68
|
}
|
|
69
69
|
}, Ze = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
70
|
-
const o = e.slice(1, -1),
|
|
71
|
-
return
|
|
72
|
-
})(),
|
|
70
|
+
const o = e.slice(1, -1), t = o.indexOf(":"), r = o.slice(0, t);
|
|
71
|
+
return r ? He + r : void 0;
|
|
72
|
+
})(), et = (e) => {
|
|
73
73
|
const {
|
|
74
74
|
theme: o,
|
|
75
|
-
classGroups:
|
|
75
|
+
classGroups: t
|
|
76
76
|
} = e;
|
|
77
|
-
return
|
|
78
|
-
},
|
|
79
|
-
const
|
|
80
|
-
for (const
|
|
81
|
-
const s = e[
|
|
82
|
-
xe(s,
|
|
77
|
+
return tt(t, o);
|
|
78
|
+
}, tt = (e, o) => {
|
|
79
|
+
const t = Re();
|
|
80
|
+
for (const r in e) {
|
|
81
|
+
const s = e[r];
|
|
82
|
+
xe(s, t, r, o);
|
|
83
83
|
}
|
|
84
|
-
return
|
|
85
|
-
}, xe = (e, o,
|
|
84
|
+
return t;
|
|
85
|
+
}, xe = (e, o, t, r) => {
|
|
86
86
|
const s = e.length;
|
|
87
87
|
for (let n = 0; n < s; n++) {
|
|
88
88
|
const a = e[n];
|
|
89
|
-
|
|
89
|
+
rt(a, o, t, r);
|
|
90
90
|
}
|
|
91
|
-
},
|
|
91
|
+
}, rt = (e, o, t, r) => {
|
|
92
92
|
if (typeof e == "string") {
|
|
93
|
-
|
|
93
|
+
ot(e, o, t);
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
96
|
if (typeof e == "function") {
|
|
97
|
-
|
|
97
|
+
st(e, o, t, r);
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
|
-
|
|
101
|
-
},
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
},
|
|
105
|
-
if (
|
|
106
|
-
xe(e(
|
|
100
|
+
nt(e, o, t, r);
|
|
101
|
+
}, ot = (e, o, t) => {
|
|
102
|
+
const r = e === "" ? o : Me(o, e);
|
|
103
|
+
r.classGroupId = t;
|
|
104
|
+
}, st = (e, o, t, r) => {
|
|
105
|
+
if (at(e)) {
|
|
106
|
+
xe(e(r), o, t, r);
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
|
-
o.validators === null && (o.validators = []), o.validators.push(Je(
|
|
110
|
-
},
|
|
109
|
+
o.validators === null && (o.validators = []), o.validators.push(Je(t, e));
|
|
110
|
+
}, nt = (e, o, t, r) => {
|
|
111
111
|
const s = Object.entries(e), n = s.length;
|
|
112
112
|
for (let a = 0; a < n; a++) {
|
|
113
113
|
const [m, c] = s[a];
|
|
114
|
-
xe(c, Me(o, m),
|
|
114
|
+
xe(c, Me(o, m), t, r);
|
|
115
115
|
}
|
|
116
116
|
}, Me = (e, o) => {
|
|
117
|
-
let
|
|
118
|
-
const
|
|
117
|
+
let t = e;
|
|
118
|
+
const r = o.split(ce), s = r.length;
|
|
119
119
|
for (let n = 0; n < s; n++) {
|
|
120
|
-
const a =
|
|
121
|
-
let m =
|
|
122
|
-
m || (m = Re(),
|
|
120
|
+
const a = r[n];
|
|
121
|
+
let m = t.nextPart.get(a);
|
|
122
|
+
m || (m = Re(), t.nextPart.set(a, m)), t = m;
|
|
123
123
|
}
|
|
124
|
-
return
|
|
125
|
-
},
|
|
124
|
+
return t;
|
|
125
|
+
}, at = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, it = (e) => {
|
|
126
126
|
if (e < 1)
|
|
127
127
|
return {
|
|
128
128
|
get: () => {
|
|
@@ -130,178 +130,178 @@ const Xe = (e, o) => {
|
|
|
130
130
|
set: () => {
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
|
-
let o = 0,
|
|
133
|
+
let o = 0, t = /* @__PURE__ */ Object.create(null), r = /* @__PURE__ */ Object.create(null);
|
|
134
134
|
const s = (n, a) => {
|
|
135
|
-
|
|
135
|
+
t[n] = a, o++, o > e && (o = 0, r = t, t = /* @__PURE__ */ Object.create(null));
|
|
136
136
|
};
|
|
137
137
|
return {
|
|
138
138
|
get(n) {
|
|
139
|
-
let a =
|
|
139
|
+
let a = t[n];
|
|
140
140
|
if (a !== void 0)
|
|
141
141
|
return a;
|
|
142
|
-
if ((a =
|
|
142
|
+
if ((a = r[n]) !== void 0)
|
|
143
143
|
return s(n, a), a;
|
|
144
144
|
},
|
|
145
145
|
set(n, a) {
|
|
146
|
-
n in
|
|
146
|
+
n in t ? t[n] = a : s(n, a);
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
|
-
}, he = "!",
|
|
149
|
+
}, he = "!", Pe = ":", lt = [], ze = (e, o, t, r, s) => ({
|
|
150
150
|
modifiers: e,
|
|
151
151
|
hasImportantModifier: o,
|
|
152
|
-
baseClassName:
|
|
153
|
-
maybePostfixModifierPosition:
|
|
152
|
+
baseClassName: t,
|
|
153
|
+
maybePostfixModifierPosition: r,
|
|
154
154
|
isExternal: s
|
|
155
|
-
}),
|
|
155
|
+
}), ct = (e) => {
|
|
156
156
|
const {
|
|
157
157
|
prefix: o,
|
|
158
|
-
experimentalParseClassName:
|
|
158
|
+
experimentalParseClassName: t
|
|
159
159
|
} = e;
|
|
160
|
-
let
|
|
160
|
+
let r = (s) => {
|
|
161
161
|
const n = [];
|
|
162
162
|
let a = 0, m = 0, c = 0, f;
|
|
163
|
-
const
|
|
164
|
-
for (let
|
|
165
|
-
const w = s[
|
|
163
|
+
const k = s.length;
|
|
164
|
+
for (let z = 0; z < k; z++) {
|
|
165
|
+
const w = s[z];
|
|
166
166
|
if (a === 0 && m === 0) {
|
|
167
|
-
if (w ===
|
|
168
|
-
n.push(s.slice(c,
|
|
167
|
+
if (w === Pe) {
|
|
168
|
+
n.push(s.slice(c, z)), c = z + 1;
|
|
169
169
|
continue;
|
|
170
170
|
}
|
|
171
171
|
if (w === "/") {
|
|
172
|
-
f =
|
|
172
|
+
f = z;
|
|
173
173
|
continue;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
w === "[" ? a++ : w === "]" ? a-- : w === "(" ? m++ : w === ")" && m--;
|
|
177
177
|
}
|
|
178
|
-
const
|
|
179
|
-
let
|
|
180
|
-
|
|
178
|
+
const v = n.length === 0 ? s : s.slice(c);
|
|
179
|
+
let O = v, h = !1;
|
|
180
|
+
v.endsWith(he) ? (O = v.slice(0, -1), h = !0) : (
|
|
181
181
|
/**
|
|
182
182
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
183
183
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
184
184
|
*/
|
|
185
|
-
|
|
185
|
+
v.startsWith(he) && (O = v.slice(1), h = !0)
|
|
186
186
|
);
|
|
187
|
-
const
|
|
188
|
-
return
|
|
187
|
+
const R = f && f > c ? f - c : void 0;
|
|
188
|
+
return ze(n, h, O, R);
|
|
189
189
|
};
|
|
190
190
|
if (o) {
|
|
191
|
-
const s = o +
|
|
192
|
-
|
|
191
|
+
const s = o + Pe, n = r;
|
|
192
|
+
r = (a) => a.startsWith(s) ? n(a.slice(s.length)) : ze(lt, !1, a, void 0, !0);
|
|
193
193
|
}
|
|
194
|
-
if (
|
|
195
|
-
const s =
|
|
196
|
-
|
|
194
|
+
if (t) {
|
|
195
|
+
const s = r;
|
|
196
|
+
r = (n) => t({
|
|
197
197
|
className: n,
|
|
198
198
|
parseClassName: s
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
|
-
return
|
|
202
|
-
},
|
|
201
|
+
return r;
|
|
202
|
+
}, dt = (e) => {
|
|
203
203
|
const o = /* @__PURE__ */ new Map();
|
|
204
|
-
return e.orderSensitiveModifiers.forEach((
|
|
205
|
-
o.set(
|
|
206
|
-
}), (
|
|
207
|
-
const
|
|
204
|
+
return e.orderSensitiveModifiers.forEach((t, r) => {
|
|
205
|
+
o.set(t, 1e6 + r);
|
|
206
|
+
}), (t) => {
|
|
207
|
+
const r = [];
|
|
208
208
|
let s = [];
|
|
209
|
-
for (let n = 0; n <
|
|
210
|
-
const a =
|
|
211
|
-
m || c ? (s.length > 0 && (s.sort(),
|
|
209
|
+
for (let n = 0; n < t.length; n++) {
|
|
210
|
+
const a = t[n], m = a[0] === "[", c = o.has(a);
|
|
211
|
+
m || c ? (s.length > 0 && (s.sort(), r.push(...s), s = []), r.push(a)) : s.push(a);
|
|
212
212
|
}
|
|
213
|
-
return s.length > 0 && (s.sort(),
|
|
213
|
+
return s.length > 0 && (s.sort(), r.push(...s)), r;
|
|
214
214
|
};
|
|
215
|
-
},
|
|
216
|
-
cache:
|
|
217
|
-
parseClassName:
|
|
218
|
-
sortModifiers:
|
|
215
|
+
}, mt = (e) => ({
|
|
216
|
+
cache: it(e.cacheSize),
|
|
217
|
+
parseClassName: ct(e),
|
|
218
|
+
sortModifiers: dt(e),
|
|
219
219
|
...Qe(e)
|
|
220
|
-
}),
|
|
220
|
+
}), ut = /\s+/, pt = (e, o) => {
|
|
221
221
|
const {
|
|
222
|
-
parseClassName:
|
|
223
|
-
getClassGroupId:
|
|
222
|
+
parseClassName: t,
|
|
223
|
+
getClassGroupId: r,
|
|
224
224
|
getConflictingClassGroupIds: s,
|
|
225
225
|
sortModifiers: n
|
|
226
|
-
} = o, a = [], m = e.trim().split(
|
|
226
|
+
} = o, a = [], m = e.trim().split(ut);
|
|
227
227
|
let c = "";
|
|
228
228
|
for (let f = m.length - 1; f >= 0; f -= 1) {
|
|
229
|
-
const
|
|
230
|
-
isExternal:
|
|
231
|
-
modifiers:
|
|
229
|
+
const k = m[f], {
|
|
230
|
+
isExternal: v,
|
|
231
|
+
modifiers: O,
|
|
232
232
|
hasImportantModifier: h,
|
|
233
|
-
baseClassName:
|
|
234
|
-
maybePostfixModifierPosition:
|
|
235
|
-
} =
|
|
236
|
-
if (
|
|
237
|
-
c =
|
|
233
|
+
baseClassName: R,
|
|
234
|
+
maybePostfixModifierPosition: z
|
|
235
|
+
} = t(k);
|
|
236
|
+
if (v) {
|
|
237
|
+
c = k + (c.length > 0 ? " " + c : c);
|
|
238
238
|
continue;
|
|
239
239
|
}
|
|
240
|
-
let w = !!
|
|
241
|
-
if (!
|
|
240
|
+
let w = !!z, L = r(w ? R.substring(0, z) : R);
|
|
241
|
+
if (!L) {
|
|
242
242
|
if (!w) {
|
|
243
|
-
c =
|
|
243
|
+
c = k + (c.length > 0 ? " " + c : c);
|
|
244
244
|
continue;
|
|
245
245
|
}
|
|
246
|
-
if (
|
|
247
|
-
c =
|
|
246
|
+
if (L = r(R), !L) {
|
|
247
|
+
c = k + (c.length > 0 ? " " + c : c);
|
|
248
248
|
continue;
|
|
249
249
|
}
|
|
250
250
|
w = !1;
|
|
251
251
|
}
|
|
252
|
-
const
|
|
253
|
-
if (a.indexOf(
|
|
252
|
+
const _ = O.length === 0 ? "" : O.length === 1 ? O[0] : n(O).join(":"), F = h ? _ + he : _, C = F + L;
|
|
253
|
+
if (a.indexOf(C) > -1)
|
|
254
254
|
continue;
|
|
255
|
-
a.push(
|
|
256
|
-
const
|
|
257
|
-
for (let
|
|
258
|
-
const
|
|
259
|
-
a.push(
|
|
255
|
+
a.push(C);
|
|
256
|
+
const N = s(L, w);
|
|
257
|
+
for (let I = 0; I < N.length; ++I) {
|
|
258
|
+
const D = N[I];
|
|
259
|
+
a.push(F + D);
|
|
260
260
|
}
|
|
261
|
-
c =
|
|
261
|
+
c = k + (c.length > 0 ? " " + c : c);
|
|
262
262
|
}
|
|
263
263
|
return c;
|
|
264
|
-
},
|
|
265
|
-
let o = 0,
|
|
264
|
+
}, ft = (...e) => {
|
|
265
|
+
let o = 0, t, r, s = "";
|
|
266
266
|
for (; o < e.length; )
|
|
267
|
-
(
|
|
267
|
+
(t = e[o++]) && (r = De(t)) && (s && (s += " "), s += r);
|
|
268
268
|
return s;
|
|
269
269
|
}, De = (e) => {
|
|
270
270
|
if (typeof e == "string")
|
|
271
271
|
return e;
|
|
272
|
-
let o,
|
|
273
|
-
for (let
|
|
274
|
-
e[
|
|
275
|
-
return
|
|
276
|
-
},
|
|
277
|
-
let
|
|
272
|
+
let o, t = "";
|
|
273
|
+
for (let r = 0; r < e.length; r++)
|
|
274
|
+
e[r] && (o = De(e[r])) && (t && (t += " "), t += o);
|
|
275
|
+
return t;
|
|
276
|
+
}, gt = (e, ...o) => {
|
|
277
|
+
let t, r, s, n;
|
|
278
278
|
const a = (c) => {
|
|
279
|
-
const f = o.reduce((
|
|
280
|
-
return
|
|
279
|
+
const f = o.reduce((k, v) => v(k), e());
|
|
280
|
+
return t = mt(f), r = t.cache.get, s = t.cache.set, n = m, m(c);
|
|
281
281
|
}, m = (c) => {
|
|
282
|
-
const f =
|
|
282
|
+
const f = r(c);
|
|
283
283
|
if (f)
|
|
284
284
|
return f;
|
|
285
|
-
const
|
|
286
|
-
return s(c,
|
|
285
|
+
const k = pt(c, t);
|
|
286
|
+
return s(c, k), k;
|
|
287
287
|
};
|
|
288
|
-
return n = a, (...c) => n(
|
|
289
|
-
},
|
|
290
|
-
const o = (
|
|
288
|
+
return n = a, (...c) => n(ft(...c));
|
|
289
|
+
}, bt = [], A = (e) => {
|
|
290
|
+
const o = (t) => t[e] || bt;
|
|
291
291
|
return o.isThemeGetter = !0, o;
|
|
292
|
-
}, Ee = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Te = /^\((?:(\w[\w-]*):)?(.+)\)$/i,
|
|
292
|
+
}, Ee = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Te = /^\((?:(\w[\w-]*):)?(.+)\)$/i, ht = /^\d+\/\d+$/, xt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, wt = /\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$/, yt = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, kt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, vt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, H = (e) => ht.test(e), b = (e) => !!e && !Number.isNaN(Number(e)), Y = (e) => !!e && Number.isInteger(Number(e)), ue = (e) => e.endsWith("%") && b(e.slice(0, -1)), B = (e) => xt.test(e), Ct = () => !0, Pt = (e) => (
|
|
293
293
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
294
294
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
295
295
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
296
|
-
|
|
297
|
-
), Ge = () => !1,
|
|
298
|
-
const
|
|
299
|
-
return
|
|
300
|
-
},
|
|
301
|
-
const
|
|
302
|
-
return
|
|
303
|
-
}, Oe = (e) => e === "position" || e === "percentage",
|
|
304
|
-
const e =
|
|
296
|
+
wt.test(e) && !yt.test(e)
|
|
297
|
+
), Ge = () => !1, zt = (e) => kt.test(e), Nt = (e) => vt.test(e), At = (e) => !i(e) && !l(e), St = (e) => Q(e, Le, Ge), i = (e) => Ee.test(e), q = (e) => Q(e, _e, Pt), pe = (e) => Q(e, Et, b), Ne = (e) => Q(e, Oe, Ge), Rt = (e) => Q(e, je, Nt), ie = (e) => Q(e, Fe, zt), l = (e) => Te.test(e), ee = (e) => Z(e, _e), It = (e) => Z(e, Tt), Ae = (e) => Z(e, Oe), Mt = (e) => Z(e, Le), Dt = (e) => Z(e, je), le = (e) => Z(e, Fe, !0), Q = (e, o, t) => {
|
|
298
|
+
const r = Ee.exec(e);
|
|
299
|
+
return r ? r[1] ? o(r[1]) : t(r[2]) : !1;
|
|
300
|
+
}, Z = (e, o, t = !1) => {
|
|
301
|
+
const r = Te.exec(e);
|
|
302
|
+
return r ? r[1] ? o(r[1]) : t : !1;
|
|
303
|
+
}, Oe = (e) => e === "position" || e === "percentage", je = (e) => e === "image" || e === "url", Le = (e) => e === "length" || e === "size" || e === "bg-size", _e = (e) => e === "length", Et = (e) => e === "number", Tt = (e) => e === "family-name", Fe = (e) => e === "shadow", Gt = () => {
|
|
304
|
+
const e = A("color"), o = A("font"), t = A("text"), r = A("font-weight"), s = A("tracking"), n = A("leading"), a = A("breakpoint"), m = A("container"), c = A("spacing"), f = A("radius"), k = A("shadow"), v = A("inset-shadow"), O = A("text-shadow"), h = A("drop-shadow"), R = A("blur"), z = A("perspective"), w = A("aspect"), L = A("ease"), _ = A("animate"), F = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [
|
|
305
305
|
"center",
|
|
306
306
|
"top",
|
|
307
307
|
"bottom",
|
|
@@ -319,15 +319,15 @@ const Xe = (e, o) => {
|
|
|
319
319
|
"bottom-left",
|
|
320
320
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
321
321
|
"left-bottom"
|
|
322
|
-
],
|
|
323
|
-
span: ["full",
|
|
324
|
-
},
|
|
322
|
+
], N = () => [...C(), l, i], I = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", "contain", "none"], u = () => [l, i, c], V = () => [H, "full", "auto", ...u()], E = () => [Y, "none", "subgrid", l, i], W = () => ["auto", {
|
|
323
|
+
span: ["full", Y, l, i]
|
|
324
|
+
}, Y, l, i], X = () => [Y, "auto", l, i], te = () => ["auto", "min", "max", "fr", l, i], p = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], x = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], y = () => ["auto", ...u()], T = () => [H, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...u()], d = () => [e, l, i], J = () => [...C(), Ae, Ne, {
|
|
325
325
|
position: [l, i]
|
|
326
|
-
}],
|
|
326
|
+
}], re = () => ["no-repeat", {
|
|
327
327
|
repeat: ["", "x", "y", "space", "round"]
|
|
328
|
-
}], we = () => ["auto", "cover", "contain",
|
|
328
|
+
}], we = () => ["auto", "cover", "contain", Mt, St, {
|
|
329
329
|
size: [l, i]
|
|
330
|
-
}], de = () => [ue,
|
|
330
|
+
}], de = () => [ue, ee, q], j = () => [
|
|
331
331
|
// Deprecated since Tailwind CSS v4.0.0
|
|
332
332
|
"",
|
|
333
333
|
"none",
|
|
@@ -335,35 +335,35 @@ const Xe = (e, o) => {
|
|
|
335
335
|
f,
|
|
336
336
|
l,
|
|
337
337
|
i
|
|
338
|
-
],
|
|
338
|
+
], $ = () => ["", b, ee, q], oe = () => ["solid", "dashed", "dotted", "double"], ye = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], S = () => [b, ue, Ae, Ne], ke = () => [
|
|
339
339
|
// Deprecated since Tailwind CSS v4.0.0
|
|
340
340
|
"",
|
|
341
341
|
"none",
|
|
342
|
-
|
|
342
|
+
R,
|
|
343
343
|
l,
|
|
344
344
|
i
|
|
345
|
-
], se = () => ["none", b, l, i], ne = () => ["none", b, l, i], me = () => [b, l, i], ae = () => [
|
|
345
|
+
], se = () => ["none", b, l, i], ne = () => ["none", b, l, i], me = () => [b, l, i], ae = () => [H, "full", ...u()];
|
|
346
346
|
return {
|
|
347
347
|
cacheSize: 500,
|
|
348
348
|
theme: {
|
|
349
349
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
350
350
|
aspect: ["video"],
|
|
351
|
-
blur: [
|
|
352
|
-
breakpoint: [
|
|
353
|
-
color: [
|
|
354
|
-
container: [
|
|
355
|
-
"drop-shadow": [
|
|
351
|
+
blur: [B],
|
|
352
|
+
breakpoint: [B],
|
|
353
|
+
color: [Ct],
|
|
354
|
+
container: [B],
|
|
355
|
+
"drop-shadow": [B],
|
|
356
356
|
ease: ["in", "out", "in-out"],
|
|
357
|
-
font: [
|
|
357
|
+
font: [At],
|
|
358
358
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
359
|
-
"inset-shadow": [
|
|
359
|
+
"inset-shadow": [B],
|
|
360
360
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
361
361
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
362
|
-
radius: [
|
|
363
|
-
shadow: [
|
|
362
|
+
radius: [B],
|
|
363
|
+
shadow: [B],
|
|
364
364
|
spacing: ["px", b],
|
|
365
|
-
text: [
|
|
366
|
-
"text-shadow": [
|
|
365
|
+
text: [B],
|
|
366
|
+
"text-shadow": [B],
|
|
367
367
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
368
368
|
},
|
|
369
369
|
classGroups: {
|
|
@@ -375,7 +375,7 @@ const Xe = (e, o) => {
|
|
|
375
375
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
376
376
|
*/
|
|
377
377
|
aspect: [{
|
|
378
|
-
aspect: ["auto", "square",
|
|
378
|
+
aspect: ["auto", "square", H, i, l, w]
|
|
379
379
|
}],
|
|
380
380
|
/**
|
|
381
381
|
* Container
|
|
@@ -395,14 +395,14 @@ const Xe = (e, o) => {
|
|
|
395
395
|
* @see https://tailwindcss.com/docs/break-after
|
|
396
396
|
*/
|
|
397
397
|
"break-after": [{
|
|
398
|
-
"break-after":
|
|
398
|
+
"break-after": F()
|
|
399
399
|
}],
|
|
400
400
|
/**
|
|
401
401
|
* Break Before
|
|
402
402
|
* @see https://tailwindcss.com/docs/break-before
|
|
403
403
|
*/
|
|
404
404
|
"break-before": [{
|
|
405
|
-
"break-before":
|
|
405
|
+
"break-before": F()
|
|
406
406
|
}],
|
|
407
407
|
/**
|
|
408
408
|
* Break Inside
|
|
@@ -466,49 +466,49 @@ const Xe = (e, o) => {
|
|
|
466
466
|
* @see https://tailwindcss.com/docs/object-position
|
|
467
467
|
*/
|
|
468
468
|
"object-position": [{
|
|
469
|
-
object:
|
|
469
|
+
object: N()
|
|
470
470
|
}],
|
|
471
471
|
/**
|
|
472
472
|
* Overflow
|
|
473
473
|
* @see https://tailwindcss.com/docs/overflow
|
|
474
474
|
*/
|
|
475
475
|
overflow: [{
|
|
476
|
-
overflow:
|
|
476
|
+
overflow: I()
|
|
477
477
|
}],
|
|
478
478
|
/**
|
|
479
479
|
* Overflow X
|
|
480
480
|
* @see https://tailwindcss.com/docs/overflow
|
|
481
481
|
*/
|
|
482
482
|
"overflow-x": [{
|
|
483
|
-
"overflow-x":
|
|
483
|
+
"overflow-x": I()
|
|
484
484
|
}],
|
|
485
485
|
/**
|
|
486
486
|
* Overflow Y
|
|
487
487
|
* @see https://tailwindcss.com/docs/overflow
|
|
488
488
|
*/
|
|
489
489
|
"overflow-y": [{
|
|
490
|
-
"overflow-y":
|
|
490
|
+
"overflow-y": I()
|
|
491
491
|
}],
|
|
492
492
|
/**
|
|
493
493
|
* Overscroll Behavior
|
|
494
494
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
495
495
|
*/
|
|
496
496
|
overscroll: [{
|
|
497
|
-
overscroll:
|
|
497
|
+
overscroll: D()
|
|
498
498
|
}],
|
|
499
499
|
/**
|
|
500
500
|
* Overscroll Behavior X
|
|
501
501
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
502
502
|
*/
|
|
503
503
|
"overscroll-x": [{
|
|
504
|
-
"overscroll-x":
|
|
504
|
+
"overscroll-x": D()
|
|
505
505
|
}],
|
|
506
506
|
/**
|
|
507
507
|
* Overscroll Behavior Y
|
|
508
508
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
509
509
|
*/
|
|
510
510
|
"overscroll-y": [{
|
|
511
|
-
"overscroll-y":
|
|
511
|
+
"overscroll-y": D()
|
|
512
512
|
}],
|
|
513
513
|
/**
|
|
514
514
|
* Position
|
|
@@ -520,63 +520,63 @@ const Xe = (e, o) => {
|
|
|
520
520
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
521
521
|
*/
|
|
522
522
|
inset: [{
|
|
523
|
-
inset:
|
|
523
|
+
inset: V()
|
|
524
524
|
}],
|
|
525
525
|
/**
|
|
526
526
|
* Right / Left
|
|
527
527
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
528
528
|
*/
|
|
529
529
|
"inset-x": [{
|
|
530
|
-
"inset-x":
|
|
530
|
+
"inset-x": V()
|
|
531
531
|
}],
|
|
532
532
|
/**
|
|
533
533
|
* Top / Bottom
|
|
534
534
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
535
535
|
*/
|
|
536
536
|
"inset-y": [{
|
|
537
|
-
"inset-y":
|
|
537
|
+
"inset-y": V()
|
|
538
538
|
}],
|
|
539
539
|
/**
|
|
540
540
|
* Start
|
|
541
541
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
542
542
|
*/
|
|
543
543
|
start: [{
|
|
544
|
-
start:
|
|
544
|
+
start: V()
|
|
545
545
|
}],
|
|
546
546
|
/**
|
|
547
547
|
* End
|
|
548
548
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
549
549
|
*/
|
|
550
550
|
end: [{
|
|
551
|
-
end:
|
|
551
|
+
end: V()
|
|
552
552
|
}],
|
|
553
553
|
/**
|
|
554
554
|
* Top
|
|
555
555
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
556
556
|
*/
|
|
557
557
|
top: [{
|
|
558
|
-
top:
|
|
558
|
+
top: V()
|
|
559
559
|
}],
|
|
560
560
|
/**
|
|
561
561
|
* Right
|
|
562
562
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
563
563
|
*/
|
|
564
564
|
right: [{
|
|
565
|
-
right:
|
|
565
|
+
right: V()
|
|
566
566
|
}],
|
|
567
567
|
/**
|
|
568
568
|
* Bottom
|
|
569
569
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
570
570
|
*/
|
|
571
571
|
bottom: [{
|
|
572
|
-
bottom:
|
|
572
|
+
bottom: V()
|
|
573
573
|
}],
|
|
574
574
|
/**
|
|
575
575
|
* Left
|
|
576
576
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
577
577
|
*/
|
|
578
578
|
left: [{
|
|
579
|
-
left:
|
|
579
|
+
left: V()
|
|
580
580
|
}],
|
|
581
581
|
/**
|
|
582
582
|
* Visibility
|
|
@@ -588,7 +588,7 @@ const Xe = (e, o) => {
|
|
|
588
588
|
* @see https://tailwindcss.com/docs/z-index
|
|
589
589
|
*/
|
|
590
590
|
z: [{
|
|
591
|
-
z: [
|
|
591
|
+
z: [Y, "auto", l, i]
|
|
592
592
|
}],
|
|
593
593
|
// ------------------------
|
|
594
594
|
// --- Flexbox and Grid ---
|
|
@@ -598,7 +598,7 @@ const Xe = (e, o) => {
|
|
|
598
598
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
599
599
|
*/
|
|
600
600
|
basis: [{
|
|
601
|
-
basis: [
|
|
601
|
+
basis: [H, "full", "auto", m, ...u()]
|
|
602
602
|
}],
|
|
603
603
|
/**
|
|
604
604
|
* Flex Direction
|
|
@@ -619,7 +619,7 @@ const Xe = (e, o) => {
|
|
|
619
619
|
* @see https://tailwindcss.com/docs/flex
|
|
620
620
|
*/
|
|
621
621
|
flex: [{
|
|
622
|
-
flex: [b,
|
|
622
|
+
flex: [b, H, "auto", "initial", "none", i]
|
|
623
623
|
}],
|
|
624
624
|
/**
|
|
625
625
|
* Flex Grow
|
|
@@ -640,63 +640,63 @@ const Xe = (e, o) => {
|
|
|
640
640
|
* @see https://tailwindcss.com/docs/order
|
|
641
641
|
*/
|
|
642
642
|
order: [{
|
|
643
|
-
order: [
|
|
643
|
+
order: [Y, "first", "last", "none", l, i]
|
|
644
644
|
}],
|
|
645
645
|
/**
|
|
646
646
|
* Grid Template Columns
|
|
647
647
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
648
648
|
*/
|
|
649
649
|
"grid-cols": [{
|
|
650
|
-
"grid-cols":
|
|
650
|
+
"grid-cols": E()
|
|
651
651
|
}],
|
|
652
652
|
/**
|
|
653
653
|
* Grid Column Start / End
|
|
654
654
|
* @see https://tailwindcss.com/docs/grid-column
|
|
655
655
|
*/
|
|
656
656
|
"col-start-end": [{
|
|
657
|
-
col:
|
|
657
|
+
col: W()
|
|
658
658
|
}],
|
|
659
659
|
/**
|
|
660
660
|
* Grid Column Start
|
|
661
661
|
* @see https://tailwindcss.com/docs/grid-column
|
|
662
662
|
*/
|
|
663
663
|
"col-start": [{
|
|
664
|
-
"col-start":
|
|
664
|
+
"col-start": X()
|
|
665
665
|
}],
|
|
666
666
|
/**
|
|
667
667
|
* Grid Column End
|
|
668
668
|
* @see https://tailwindcss.com/docs/grid-column
|
|
669
669
|
*/
|
|
670
670
|
"col-end": [{
|
|
671
|
-
"col-end":
|
|
671
|
+
"col-end": X()
|
|
672
672
|
}],
|
|
673
673
|
/**
|
|
674
674
|
* Grid Template Rows
|
|
675
675
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
676
676
|
*/
|
|
677
677
|
"grid-rows": [{
|
|
678
|
-
"grid-rows":
|
|
678
|
+
"grid-rows": E()
|
|
679
679
|
}],
|
|
680
680
|
/**
|
|
681
681
|
* Grid Row Start / End
|
|
682
682
|
* @see https://tailwindcss.com/docs/grid-row
|
|
683
683
|
*/
|
|
684
684
|
"row-start-end": [{
|
|
685
|
-
row:
|
|
685
|
+
row: W()
|
|
686
686
|
}],
|
|
687
687
|
/**
|
|
688
688
|
* Grid Row Start
|
|
689
689
|
* @see https://tailwindcss.com/docs/grid-row
|
|
690
690
|
*/
|
|
691
691
|
"row-start": [{
|
|
692
|
-
"row-start":
|
|
692
|
+
"row-start": X()
|
|
693
693
|
}],
|
|
694
694
|
/**
|
|
695
695
|
* Grid Row End
|
|
696
696
|
* @see https://tailwindcss.com/docs/grid-row
|
|
697
697
|
*/
|
|
698
698
|
"row-end": [{
|
|
699
|
-
"row-end":
|
|
699
|
+
"row-end": X()
|
|
700
700
|
}],
|
|
701
701
|
/**
|
|
702
702
|
* Grid Auto Flow
|
|
@@ -710,14 +710,14 @@ const Xe = (e, o) => {
|
|
|
710
710
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
711
711
|
*/
|
|
712
712
|
"auto-cols": [{
|
|
713
|
-
"auto-cols":
|
|
713
|
+
"auto-cols": te()
|
|
714
714
|
}],
|
|
715
715
|
/**
|
|
716
716
|
* Grid Auto Rows
|
|
717
717
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
718
718
|
*/
|
|
719
719
|
"auto-rows": [{
|
|
720
|
-
"auto-rows":
|
|
720
|
+
"auto-rows": te()
|
|
721
721
|
}],
|
|
722
722
|
/**
|
|
723
723
|
* Gap
|
|
@@ -876,63 +876,63 @@ const Xe = (e, o) => {
|
|
|
876
876
|
* @see https://tailwindcss.com/docs/margin
|
|
877
877
|
*/
|
|
878
878
|
m: [{
|
|
879
|
-
m:
|
|
879
|
+
m: y()
|
|
880
880
|
}],
|
|
881
881
|
/**
|
|
882
882
|
* Margin X
|
|
883
883
|
* @see https://tailwindcss.com/docs/margin
|
|
884
884
|
*/
|
|
885
885
|
mx: [{
|
|
886
|
-
mx:
|
|
886
|
+
mx: y()
|
|
887
887
|
}],
|
|
888
888
|
/**
|
|
889
889
|
* Margin Y
|
|
890
890
|
* @see https://tailwindcss.com/docs/margin
|
|
891
891
|
*/
|
|
892
892
|
my: [{
|
|
893
|
-
my:
|
|
893
|
+
my: y()
|
|
894
894
|
}],
|
|
895
895
|
/**
|
|
896
896
|
* Margin Start
|
|
897
897
|
* @see https://tailwindcss.com/docs/margin
|
|
898
898
|
*/
|
|
899
899
|
ms: [{
|
|
900
|
-
ms:
|
|
900
|
+
ms: y()
|
|
901
901
|
}],
|
|
902
902
|
/**
|
|
903
903
|
* Margin End
|
|
904
904
|
* @see https://tailwindcss.com/docs/margin
|
|
905
905
|
*/
|
|
906
906
|
me: [{
|
|
907
|
-
me:
|
|
907
|
+
me: y()
|
|
908
908
|
}],
|
|
909
909
|
/**
|
|
910
910
|
* Margin Top
|
|
911
911
|
* @see https://tailwindcss.com/docs/margin
|
|
912
912
|
*/
|
|
913
913
|
mt: [{
|
|
914
|
-
mt:
|
|
914
|
+
mt: y()
|
|
915
915
|
}],
|
|
916
916
|
/**
|
|
917
917
|
* Margin Right
|
|
918
918
|
* @see https://tailwindcss.com/docs/margin
|
|
919
919
|
*/
|
|
920
920
|
mr: [{
|
|
921
|
-
mr:
|
|
921
|
+
mr: y()
|
|
922
922
|
}],
|
|
923
923
|
/**
|
|
924
924
|
* Margin Bottom
|
|
925
925
|
* @see https://tailwindcss.com/docs/margin
|
|
926
926
|
*/
|
|
927
927
|
mb: [{
|
|
928
|
-
mb:
|
|
928
|
+
mb: y()
|
|
929
929
|
}],
|
|
930
930
|
/**
|
|
931
931
|
* Margin Left
|
|
932
932
|
* @see https://tailwindcss.com/docs/margin
|
|
933
933
|
*/
|
|
934
934
|
ml: [{
|
|
935
|
-
ml:
|
|
935
|
+
ml: y()
|
|
936
936
|
}],
|
|
937
937
|
/**
|
|
938
938
|
* Space Between X
|
|
@@ -966,14 +966,14 @@ const Xe = (e, o) => {
|
|
|
966
966
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
967
967
|
*/
|
|
968
968
|
size: [{
|
|
969
|
-
size:
|
|
969
|
+
size: T()
|
|
970
970
|
}],
|
|
971
971
|
/**
|
|
972
972
|
* Width
|
|
973
973
|
* @see https://tailwindcss.com/docs/width
|
|
974
974
|
*/
|
|
975
975
|
w: [{
|
|
976
|
-
w: [m, "screen", ...
|
|
976
|
+
w: [m, "screen", ...T()]
|
|
977
977
|
}],
|
|
978
978
|
/**
|
|
979
979
|
* Min-Width
|
|
@@ -985,7 +985,7 @@ const Xe = (e, o) => {
|
|
|
985
985
|
"screen",
|
|
986
986
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
987
987
|
"none",
|
|
988
|
-
...
|
|
988
|
+
...T()
|
|
989
989
|
]
|
|
990
990
|
}],
|
|
991
991
|
/**
|
|
@@ -1003,7 +1003,7 @@ const Xe = (e, o) => {
|
|
|
1003
1003
|
{
|
|
1004
1004
|
screen: [a]
|
|
1005
1005
|
},
|
|
1006
|
-
...
|
|
1006
|
+
...T()
|
|
1007
1007
|
]
|
|
1008
1008
|
}],
|
|
1009
1009
|
/**
|
|
@@ -1011,21 +1011,21 @@ const Xe = (e, o) => {
|
|
|
1011
1011
|
* @see https://tailwindcss.com/docs/height
|
|
1012
1012
|
*/
|
|
1013
1013
|
h: [{
|
|
1014
|
-
h: ["screen", "lh", ...
|
|
1014
|
+
h: ["screen", "lh", ...T()]
|
|
1015
1015
|
}],
|
|
1016
1016
|
/**
|
|
1017
1017
|
* Min-Height
|
|
1018
1018
|
* @see https://tailwindcss.com/docs/min-height
|
|
1019
1019
|
*/
|
|
1020
1020
|
"min-h": [{
|
|
1021
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1021
|
+
"min-h": ["screen", "lh", "none", ...T()]
|
|
1022
1022
|
}],
|
|
1023
1023
|
/**
|
|
1024
1024
|
* Max-Height
|
|
1025
1025
|
* @see https://tailwindcss.com/docs/max-height
|
|
1026
1026
|
*/
|
|
1027
1027
|
"max-h": [{
|
|
1028
|
-
"max-h": ["screen", "lh", ...
|
|
1028
|
+
"max-h": ["screen", "lh", ...T()]
|
|
1029
1029
|
}],
|
|
1030
1030
|
// ------------------
|
|
1031
1031
|
// --- Typography ---
|
|
@@ -1035,7 +1035,7 @@ const Xe = (e, o) => {
|
|
|
1035
1035
|
* @see https://tailwindcss.com/docs/font-size
|
|
1036
1036
|
*/
|
|
1037
1037
|
"font-size": [{
|
|
1038
|
-
text: ["base",
|
|
1038
|
+
text: ["base", t, ee, q]
|
|
1039
1039
|
}],
|
|
1040
1040
|
/**
|
|
1041
1041
|
* Font Smoothing
|
|
@@ -1052,7 +1052,7 @@ const Xe = (e, o) => {
|
|
|
1052
1052
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1053
1053
|
*/
|
|
1054
1054
|
"font-weight": [{
|
|
1055
|
-
font: [
|
|
1055
|
+
font: [r, l, pe]
|
|
1056
1056
|
}],
|
|
1057
1057
|
/**
|
|
1058
1058
|
* Font Stretch
|
|
@@ -1066,7 +1066,7 @@ const Xe = (e, o) => {
|
|
|
1066
1066
|
* @see https://tailwindcss.com/docs/font-family
|
|
1067
1067
|
*/
|
|
1068
1068
|
"font-family": [{
|
|
1069
|
-
font: [
|
|
1069
|
+
font: [It, i, o]
|
|
1070
1070
|
}],
|
|
1071
1071
|
/**
|
|
1072
1072
|
* Font Variant Numeric
|
|
@@ -1183,7 +1183,7 @@ const Xe = (e, o) => {
|
|
|
1183
1183
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1184
1184
|
*/
|
|
1185
1185
|
"text-decoration-thickness": [{
|
|
1186
|
-
decoration: [b, "from-font", "auto", l,
|
|
1186
|
+
decoration: [b, "from-font", "auto", l, q]
|
|
1187
1187
|
}],
|
|
1188
1188
|
/**
|
|
1189
1189
|
* Text Decoration Color
|
|
@@ -1294,14 +1294,14 @@ const Xe = (e, o) => {
|
|
|
1294
1294
|
* @see https://tailwindcss.com/docs/background-position
|
|
1295
1295
|
*/
|
|
1296
1296
|
"bg-position": [{
|
|
1297
|
-
bg:
|
|
1297
|
+
bg: J()
|
|
1298
1298
|
}],
|
|
1299
1299
|
/**
|
|
1300
1300
|
* Background Repeat
|
|
1301
1301
|
* @see https://tailwindcss.com/docs/background-repeat
|
|
1302
1302
|
*/
|
|
1303
1303
|
"bg-repeat": [{
|
|
1304
|
-
bg:
|
|
1304
|
+
bg: re()
|
|
1305
1305
|
}],
|
|
1306
1306
|
/**
|
|
1307
1307
|
* Background Size
|
|
@@ -1318,10 +1318,10 @@ const Xe = (e, o) => {
|
|
|
1318
1318
|
bg: ["none", {
|
|
1319
1319
|
linear: [{
|
|
1320
1320
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1321
|
-
},
|
|
1321
|
+
}, Y, l, i],
|
|
1322
1322
|
radial: ["", l, i],
|
|
1323
|
-
conic: [
|
|
1324
|
-
},
|
|
1323
|
+
conic: [Y, l, i]
|
|
1324
|
+
}, Dt, Rt]
|
|
1325
1325
|
}],
|
|
1326
1326
|
/**
|
|
1327
1327
|
* Background Color
|
|
@@ -1380,175 +1380,175 @@ const Xe = (e, o) => {
|
|
|
1380
1380
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1381
1381
|
*/
|
|
1382
1382
|
rounded: [{
|
|
1383
|
-
rounded:
|
|
1383
|
+
rounded: j()
|
|
1384
1384
|
}],
|
|
1385
1385
|
/**
|
|
1386
1386
|
* Border Radius Start
|
|
1387
1387
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1388
1388
|
*/
|
|
1389
1389
|
"rounded-s": [{
|
|
1390
|
-
"rounded-s":
|
|
1390
|
+
"rounded-s": j()
|
|
1391
1391
|
}],
|
|
1392
1392
|
/**
|
|
1393
1393
|
* Border Radius End
|
|
1394
1394
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1395
1395
|
*/
|
|
1396
1396
|
"rounded-e": [{
|
|
1397
|
-
"rounded-e":
|
|
1397
|
+
"rounded-e": j()
|
|
1398
1398
|
}],
|
|
1399
1399
|
/**
|
|
1400
1400
|
* Border Radius Top
|
|
1401
1401
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1402
1402
|
*/
|
|
1403
1403
|
"rounded-t": [{
|
|
1404
|
-
"rounded-t":
|
|
1404
|
+
"rounded-t": j()
|
|
1405
1405
|
}],
|
|
1406
1406
|
/**
|
|
1407
1407
|
* Border Radius Right
|
|
1408
1408
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1409
1409
|
*/
|
|
1410
1410
|
"rounded-r": [{
|
|
1411
|
-
"rounded-r":
|
|
1411
|
+
"rounded-r": j()
|
|
1412
1412
|
}],
|
|
1413
1413
|
/**
|
|
1414
1414
|
* Border Radius Bottom
|
|
1415
1415
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1416
1416
|
*/
|
|
1417
1417
|
"rounded-b": [{
|
|
1418
|
-
"rounded-b":
|
|
1418
|
+
"rounded-b": j()
|
|
1419
1419
|
}],
|
|
1420
1420
|
/**
|
|
1421
1421
|
* Border Radius Left
|
|
1422
1422
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1423
1423
|
*/
|
|
1424
1424
|
"rounded-l": [{
|
|
1425
|
-
"rounded-l":
|
|
1425
|
+
"rounded-l": j()
|
|
1426
1426
|
}],
|
|
1427
1427
|
/**
|
|
1428
1428
|
* Border Radius Start Start
|
|
1429
1429
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1430
1430
|
*/
|
|
1431
1431
|
"rounded-ss": [{
|
|
1432
|
-
"rounded-ss":
|
|
1432
|
+
"rounded-ss": j()
|
|
1433
1433
|
}],
|
|
1434
1434
|
/**
|
|
1435
1435
|
* Border Radius Start End
|
|
1436
1436
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1437
1437
|
*/
|
|
1438
1438
|
"rounded-se": [{
|
|
1439
|
-
"rounded-se":
|
|
1439
|
+
"rounded-se": j()
|
|
1440
1440
|
}],
|
|
1441
1441
|
/**
|
|
1442
1442
|
* Border Radius End End
|
|
1443
1443
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1444
1444
|
*/
|
|
1445
1445
|
"rounded-ee": [{
|
|
1446
|
-
"rounded-ee":
|
|
1446
|
+
"rounded-ee": j()
|
|
1447
1447
|
}],
|
|
1448
1448
|
/**
|
|
1449
1449
|
* Border Radius End Start
|
|
1450
1450
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1451
1451
|
*/
|
|
1452
1452
|
"rounded-es": [{
|
|
1453
|
-
"rounded-es":
|
|
1453
|
+
"rounded-es": j()
|
|
1454
1454
|
}],
|
|
1455
1455
|
/**
|
|
1456
1456
|
* Border Radius Top Left
|
|
1457
1457
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1458
1458
|
*/
|
|
1459
1459
|
"rounded-tl": [{
|
|
1460
|
-
"rounded-tl":
|
|
1460
|
+
"rounded-tl": j()
|
|
1461
1461
|
}],
|
|
1462
1462
|
/**
|
|
1463
1463
|
* Border Radius Top Right
|
|
1464
1464
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1465
1465
|
*/
|
|
1466
1466
|
"rounded-tr": [{
|
|
1467
|
-
"rounded-tr":
|
|
1467
|
+
"rounded-tr": j()
|
|
1468
1468
|
}],
|
|
1469
1469
|
/**
|
|
1470
1470
|
* Border Radius Bottom Right
|
|
1471
1471
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1472
1472
|
*/
|
|
1473
1473
|
"rounded-br": [{
|
|
1474
|
-
"rounded-br":
|
|
1474
|
+
"rounded-br": j()
|
|
1475
1475
|
}],
|
|
1476
1476
|
/**
|
|
1477
1477
|
* Border Radius Bottom Left
|
|
1478
1478
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1479
1479
|
*/
|
|
1480
1480
|
"rounded-bl": [{
|
|
1481
|
-
"rounded-bl":
|
|
1481
|
+
"rounded-bl": j()
|
|
1482
1482
|
}],
|
|
1483
1483
|
/**
|
|
1484
1484
|
* Border Width
|
|
1485
1485
|
* @see https://tailwindcss.com/docs/border-width
|
|
1486
1486
|
*/
|
|
1487
1487
|
"border-w": [{
|
|
1488
|
-
border:
|
|
1488
|
+
border: $()
|
|
1489
1489
|
}],
|
|
1490
1490
|
/**
|
|
1491
1491
|
* Border Width X
|
|
1492
1492
|
* @see https://tailwindcss.com/docs/border-width
|
|
1493
1493
|
*/
|
|
1494
1494
|
"border-w-x": [{
|
|
1495
|
-
"border-x":
|
|
1495
|
+
"border-x": $()
|
|
1496
1496
|
}],
|
|
1497
1497
|
/**
|
|
1498
1498
|
* Border Width Y
|
|
1499
1499
|
* @see https://tailwindcss.com/docs/border-width
|
|
1500
1500
|
*/
|
|
1501
1501
|
"border-w-y": [{
|
|
1502
|
-
"border-y":
|
|
1502
|
+
"border-y": $()
|
|
1503
1503
|
}],
|
|
1504
1504
|
/**
|
|
1505
1505
|
* Border Width Start
|
|
1506
1506
|
* @see https://tailwindcss.com/docs/border-width
|
|
1507
1507
|
*/
|
|
1508
1508
|
"border-w-s": [{
|
|
1509
|
-
"border-s":
|
|
1509
|
+
"border-s": $()
|
|
1510
1510
|
}],
|
|
1511
1511
|
/**
|
|
1512
1512
|
* Border Width End
|
|
1513
1513
|
* @see https://tailwindcss.com/docs/border-width
|
|
1514
1514
|
*/
|
|
1515
1515
|
"border-w-e": [{
|
|
1516
|
-
"border-e":
|
|
1516
|
+
"border-e": $()
|
|
1517
1517
|
}],
|
|
1518
1518
|
/**
|
|
1519
1519
|
* Border Width Top
|
|
1520
1520
|
* @see https://tailwindcss.com/docs/border-width
|
|
1521
1521
|
*/
|
|
1522
1522
|
"border-w-t": [{
|
|
1523
|
-
"border-t":
|
|
1523
|
+
"border-t": $()
|
|
1524
1524
|
}],
|
|
1525
1525
|
/**
|
|
1526
1526
|
* Border Width Right
|
|
1527
1527
|
* @see https://tailwindcss.com/docs/border-width
|
|
1528
1528
|
*/
|
|
1529
1529
|
"border-w-r": [{
|
|
1530
|
-
"border-r":
|
|
1530
|
+
"border-r": $()
|
|
1531
1531
|
}],
|
|
1532
1532
|
/**
|
|
1533
1533
|
* Border Width Bottom
|
|
1534
1534
|
* @see https://tailwindcss.com/docs/border-width
|
|
1535
1535
|
*/
|
|
1536
1536
|
"border-w-b": [{
|
|
1537
|
-
"border-b":
|
|
1537
|
+
"border-b": $()
|
|
1538
1538
|
}],
|
|
1539
1539
|
/**
|
|
1540
1540
|
* Border Width Left
|
|
1541
1541
|
* @see https://tailwindcss.com/docs/border-width
|
|
1542
1542
|
*/
|
|
1543
1543
|
"border-w-l": [{
|
|
1544
|
-
"border-l":
|
|
1544
|
+
"border-l": $()
|
|
1545
1545
|
}],
|
|
1546
1546
|
/**
|
|
1547
1547
|
* Divide Width X
|
|
1548
1548
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1549
1549
|
*/
|
|
1550
1550
|
"divide-x": [{
|
|
1551
|
-
"divide-x":
|
|
1551
|
+
"divide-x": $()
|
|
1552
1552
|
}],
|
|
1553
1553
|
/**
|
|
1554
1554
|
* Divide Width X Reverse
|
|
@@ -1560,7 +1560,7 @@ const Xe = (e, o) => {
|
|
|
1560
1560
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1561
1561
|
*/
|
|
1562
1562
|
"divide-y": [{
|
|
1563
|
-
"divide-y":
|
|
1563
|
+
"divide-y": $()
|
|
1564
1564
|
}],
|
|
1565
1565
|
/**
|
|
1566
1566
|
* Divide Width Y Reverse
|
|
@@ -1670,7 +1670,7 @@ const Xe = (e, o) => {
|
|
|
1670
1670
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1671
1671
|
*/
|
|
1672
1672
|
"outline-w": [{
|
|
1673
|
-
outline: ["", b,
|
|
1673
|
+
outline: ["", b, ee, q]
|
|
1674
1674
|
}],
|
|
1675
1675
|
/**
|
|
1676
1676
|
* Outline Color
|
|
@@ -1691,7 +1691,7 @@ const Xe = (e, o) => {
|
|
|
1691
1691
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1692
1692
|
"",
|
|
1693
1693
|
"none",
|
|
1694
|
-
|
|
1694
|
+
k,
|
|
1695
1695
|
le,
|
|
1696
1696
|
ie
|
|
1697
1697
|
]
|
|
@@ -1708,7 +1708,7 @@ const Xe = (e, o) => {
|
|
|
1708
1708
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
1709
1709
|
*/
|
|
1710
1710
|
"inset-shadow": [{
|
|
1711
|
-
"inset-shadow": ["none",
|
|
1711
|
+
"inset-shadow": ["none", v, le, ie]
|
|
1712
1712
|
}],
|
|
1713
1713
|
/**
|
|
1714
1714
|
* Inset Box Shadow Color
|
|
@@ -1722,7 +1722,7 @@ const Xe = (e, o) => {
|
|
|
1722
1722
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
1723
1723
|
*/
|
|
1724
1724
|
"ring-w": [{
|
|
1725
|
-
ring:
|
|
1725
|
+
ring: $()
|
|
1726
1726
|
}],
|
|
1727
1727
|
/**
|
|
1728
1728
|
* Ring Width Inset
|
|
@@ -1745,7 +1745,7 @@ const Xe = (e, o) => {
|
|
|
1745
1745
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1746
1746
|
*/
|
|
1747
1747
|
"ring-offset-w": [{
|
|
1748
|
-
"ring-offset": [b,
|
|
1748
|
+
"ring-offset": [b, q]
|
|
1749
1749
|
}],
|
|
1750
1750
|
/**
|
|
1751
1751
|
* Ring Offset Color
|
|
@@ -1761,7 +1761,7 @@ const Xe = (e, o) => {
|
|
|
1761
1761
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
1762
1762
|
*/
|
|
1763
1763
|
"inset-ring-w": [{
|
|
1764
|
-
"inset-ring":
|
|
1764
|
+
"inset-ring": $()
|
|
1765
1765
|
}],
|
|
1766
1766
|
/**
|
|
1767
1767
|
* Inset Ring Color
|
|
@@ -1775,7 +1775,7 @@ const Xe = (e, o) => {
|
|
|
1775
1775
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
1776
1776
|
*/
|
|
1777
1777
|
"text-shadow": [{
|
|
1778
|
-
"text-shadow": ["none",
|
|
1778
|
+
"text-shadow": ["none", O, le, ie]
|
|
1779
1779
|
}],
|
|
1780
1780
|
/**
|
|
1781
1781
|
* Text Shadow Color
|
|
@@ -1827,10 +1827,10 @@ const Xe = (e, o) => {
|
|
|
1827
1827
|
"mask-linear": [b]
|
|
1828
1828
|
}],
|
|
1829
1829
|
"mask-image-linear-from-pos": [{
|
|
1830
|
-
"mask-linear-from":
|
|
1830
|
+
"mask-linear-from": S()
|
|
1831
1831
|
}],
|
|
1832
1832
|
"mask-image-linear-to-pos": [{
|
|
1833
|
-
"mask-linear-to":
|
|
1833
|
+
"mask-linear-to": S()
|
|
1834
1834
|
}],
|
|
1835
1835
|
"mask-image-linear-from-color": [{
|
|
1836
1836
|
"mask-linear-from": d()
|
|
@@ -1839,10 +1839,10 @@ const Xe = (e, o) => {
|
|
|
1839
1839
|
"mask-linear-to": d()
|
|
1840
1840
|
}],
|
|
1841
1841
|
"mask-image-t-from-pos": [{
|
|
1842
|
-
"mask-t-from":
|
|
1842
|
+
"mask-t-from": S()
|
|
1843
1843
|
}],
|
|
1844
1844
|
"mask-image-t-to-pos": [{
|
|
1845
|
-
"mask-t-to":
|
|
1845
|
+
"mask-t-to": S()
|
|
1846
1846
|
}],
|
|
1847
1847
|
"mask-image-t-from-color": [{
|
|
1848
1848
|
"mask-t-from": d()
|
|
@@ -1851,10 +1851,10 @@ const Xe = (e, o) => {
|
|
|
1851
1851
|
"mask-t-to": d()
|
|
1852
1852
|
}],
|
|
1853
1853
|
"mask-image-r-from-pos": [{
|
|
1854
|
-
"mask-r-from":
|
|
1854
|
+
"mask-r-from": S()
|
|
1855
1855
|
}],
|
|
1856
1856
|
"mask-image-r-to-pos": [{
|
|
1857
|
-
"mask-r-to":
|
|
1857
|
+
"mask-r-to": S()
|
|
1858
1858
|
}],
|
|
1859
1859
|
"mask-image-r-from-color": [{
|
|
1860
1860
|
"mask-r-from": d()
|
|
@@ -1863,10 +1863,10 @@ const Xe = (e, o) => {
|
|
|
1863
1863
|
"mask-r-to": d()
|
|
1864
1864
|
}],
|
|
1865
1865
|
"mask-image-b-from-pos": [{
|
|
1866
|
-
"mask-b-from":
|
|
1866
|
+
"mask-b-from": S()
|
|
1867
1867
|
}],
|
|
1868
1868
|
"mask-image-b-to-pos": [{
|
|
1869
|
-
"mask-b-to":
|
|
1869
|
+
"mask-b-to": S()
|
|
1870
1870
|
}],
|
|
1871
1871
|
"mask-image-b-from-color": [{
|
|
1872
1872
|
"mask-b-from": d()
|
|
@@ -1875,10 +1875,10 @@ const Xe = (e, o) => {
|
|
|
1875
1875
|
"mask-b-to": d()
|
|
1876
1876
|
}],
|
|
1877
1877
|
"mask-image-l-from-pos": [{
|
|
1878
|
-
"mask-l-from":
|
|
1878
|
+
"mask-l-from": S()
|
|
1879
1879
|
}],
|
|
1880
1880
|
"mask-image-l-to-pos": [{
|
|
1881
|
-
"mask-l-to":
|
|
1881
|
+
"mask-l-to": S()
|
|
1882
1882
|
}],
|
|
1883
1883
|
"mask-image-l-from-color": [{
|
|
1884
1884
|
"mask-l-from": d()
|
|
@@ -1887,10 +1887,10 @@ const Xe = (e, o) => {
|
|
|
1887
1887
|
"mask-l-to": d()
|
|
1888
1888
|
}],
|
|
1889
1889
|
"mask-image-x-from-pos": [{
|
|
1890
|
-
"mask-x-from":
|
|
1890
|
+
"mask-x-from": S()
|
|
1891
1891
|
}],
|
|
1892
1892
|
"mask-image-x-to-pos": [{
|
|
1893
|
-
"mask-x-to":
|
|
1893
|
+
"mask-x-to": S()
|
|
1894
1894
|
}],
|
|
1895
1895
|
"mask-image-x-from-color": [{
|
|
1896
1896
|
"mask-x-from": d()
|
|
@@ -1899,10 +1899,10 @@ const Xe = (e, o) => {
|
|
|
1899
1899
|
"mask-x-to": d()
|
|
1900
1900
|
}],
|
|
1901
1901
|
"mask-image-y-from-pos": [{
|
|
1902
|
-
"mask-y-from":
|
|
1902
|
+
"mask-y-from": S()
|
|
1903
1903
|
}],
|
|
1904
1904
|
"mask-image-y-to-pos": [{
|
|
1905
|
-
"mask-y-to":
|
|
1905
|
+
"mask-y-to": S()
|
|
1906
1906
|
}],
|
|
1907
1907
|
"mask-image-y-from-color": [{
|
|
1908
1908
|
"mask-y-from": d()
|
|
@@ -1914,10 +1914,10 @@ const Xe = (e, o) => {
|
|
|
1914
1914
|
"mask-radial": [l, i]
|
|
1915
1915
|
}],
|
|
1916
1916
|
"mask-image-radial-from-pos": [{
|
|
1917
|
-
"mask-radial-from":
|
|
1917
|
+
"mask-radial-from": S()
|
|
1918
1918
|
}],
|
|
1919
1919
|
"mask-image-radial-to-pos": [{
|
|
1920
|
-
"mask-radial-to":
|
|
1920
|
+
"mask-radial-to": S()
|
|
1921
1921
|
}],
|
|
1922
1922
|
"mask-image-radial-from-color": [{
|
|
1923
1923
|
"mask-radial-from": d()
|
|
@@ -1935,16 +1935,16 @@ const Xe = (e, o) => {
|
|
|
1935
1935
|
}]
|
|
1936
1936
|
}],
|
|
1937
1937
|
"mask-image-radial-pos": [{
|
|
1938
|
-
"mask-radial-at":
|
|
1938
|
+
"mask-radial-at": C()
|
|
1939
1939
|
}],
|
|
1940
1940
|
"mask-image-conic-pos": [{
|
|
1941
1941
|
"mask-conic": [b]
|
|
1942
1942
|
}],
|
|
1943
1943
|
"mask-image-conic-from-pos": [{
|
|
1944
|
-
"mask-conic-from":
|
|
1944
|
+
"mask-conic-from": S()
|
|
1945
1945
|
}],
|
|
1946
1946
|
"mask-image-conic-to-pos": [{
|
|
1947
|
-
"mask-conic-to":
|
|
1947
|
+
"mask-conic-to": S()
|
|
1948
1948
|
}],
|
|
1949
1949
|
"mask-image-conic-from-color": [{
|
|
1950
1950
|
"mask-conic-from": d()
|
|
@@ -1971,14 +1971,14 @@ const Xe = (e, o) => {
|
|
|
1971
1971
|
* @see https://tailwindcss.com/docs/mask-position
|
|
1972
1972
|
*/
|
|
1973
1973
|
"mask-position": [{
|
|
1974
|
-
mask:
|
|
1974
|
+
mask: J()
|
|
1975
1975
|
}],
|
|
1976
1976
|
/**
|
|
1977
1977
|
* Mask Repeat
|
|
1978
1978
|
* @see https://tailwindcss.com/docs/mask-repeat
|
|
1979
1979
|
*/
|
|
1980
1980
|
"mask-repeat": [{
|
|
1981
|
-
mask:
|
|
1981
|
+
mask: re()
|
|
1982
1982
|
}],
|
|
1983
1983
|
/**
|
|
1984
1984
|
* Mask Size
|
|
@@ -2244,7 +2244,7 @@ const Xe = (e, o) => {
|
|
|
2244
2244
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2245
2245
|
*/
|
|
2246
2246
|
ease: [{
|
|
2247
|
-
ease: ["linear", "initial",
|
|
2247
|
+
ease: ["linear", "initial", L, l, i]
|
|
2248
2248
|
}],
|
|
2249
2249
|
/**
|
|
2250
2250
|
* Transition Delay
|
|
@@ -2258,7 +2258,7 @@ const Xe = (e, o) => {
|
|
|
2258
2258
|
* @see https://tailwindcss.com/docs/animation
|
|
2259
2259
|
*/
|
|
2260
2260
|
animate: [{
|
|
2261
|
-
animate: ["none",
|
|
2261
|
+
animate: ["none", _, l, i]
|
|
2262
2262
|
}],
|
|
2263
2263
|
// ------------------
|
|
2264
2264
|
// --- Transforms ---
|
|
@@ -2275,14 +2275,14 @@ const Xe = (e, o) => {
|
|
|
2275
2275
|
* @see https://tailwindcss.com/docs/perspective
|
|
2276
2276
|
*/
|
|
2277
2277
|
perspective: [{
|
|
2278
|
-
perspective: [
|
|
2278
|
+
perspective: [z, l, i]
|
|
2279
2279
|
}],
|
|
2280
2280
|
/**
|
|
2281
2281
|
* Perspective Origin
|
|
2282
2282
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2283
2283
|
*/
|
|
2284
2284
|
"perspective-origin": [{
|
|
2285
|
-
"perspective-origin":
|
|
2285
|
+
"perspective-origin": N()
|
|
2286
2286
|
}],
|
|
2287
2287
|
/**
|
|
2288
2288
|
* Rotate
|
|
@@ -2378,7 +2378,7 @@ const Xe = (e, o) => {
|
|
|
2378
2378
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2379
2379
|
*/
|
|
2380
2380
|
"transform-origin": [{
|
|
2381
|
-
origin:
|
|
2381
|
+
origin: N()
|
|
2382
2382
|
}],
|
|
2383
2383
|
/**
|
|
2384
2384
|
* Transform Style
|
|
@@ -2695,7 +2695,7 @@ const Xe = (e, o) => {
|
|
|
2695
2695
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2696
2696
|
*/
|
|
2697
2697
|
"stroke-w": [{
|
|
2698
|
-
stroke: [b,
|
|
2698
|
+
stroke: [b, ee, q, pe]
|
|
2699
2699
|
}],
|
|
2700
2700
|
/**
|
|
2701
2701
|
* Stroke
|
|
@@ -2770,76 +2770,79 @@ const Xe = (e, o) => {
|
|
|
2770
2770
|
},
|
|
2771
2771
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
2772
2772
|
};
|
|
2773
|
-
},
|
|
2774
|
-
function
|
|
2775
|
-
return
|
|
2773
|
+
}, Ot = /* @__PURE__ */ gt(Gt);
|
|
2774
|
+
function P(...e) {
|
|
2775
|
+
return Ot(qe(e));
|
|
2776
2776
|
}
|
|
2777
|
-
const
|
|
2777
|
+
const jt = {
|
|
2778
2778
|
purple: "bg-purple-500",
|
|
2779
2779
|
green: "bg-green-500",
|
|
2780
2780
|
blue: "bg-blue-500",
|
|
2781
2781
|
yellow: "bg-yellow-400 !text-yellow-900",
|
|
2782
2782
|
red: "bg-red-500"
|
|
2783
|
-
},
|
|
2783
|
+
}, Lt = ({
|
|
2784
2784
|
id: e,
|
|
2785
2785
|
title: o,
|
|
2786
|
-
price:
|
|
2787
|
-
periodLabel:
|
|
2786
|
+
price: t,
|
|
2787
|
+
periodLabel: r,
|
|
2788
2788
|
features: s,
|
|
2789
2789
|
isSelected: n,
|
|
2790
2790
|
onSelect: a,
|
|
2791
2791
|
topBadge: m,
|
|
2792
2792
|
discountBadge: c,
|
|
2793
2793
|
premiumCallout: f,
|
|
2794
|
-
bottomNote:
|
|
2795
|
-
introPriceNote:
|
|
2796
|
-
isBestValue:
|
|
2794
|
+
bottomNote: k,
|
|
2795
|
+
introPriceNote: v,
|
|
2796
|
+
isBestValue: O = !1,
|
|
2797
2797
|
ctaButton: h,
|
|
2798
|
-
className:
|
|
2799
|
-
children:
|
|
2798
|
+
className: R,
|
|
2799
|
+
children: z,
|
|
2800
2800
|
disabled: w = !1,
|
|
2801
|
-
ariaLabel:
|
|
2801
|
+
ariaLabel: L,
|
|
2802
|
+
onTrack: _,
|
|
2803
|
+
trackingLabel: F,
|
|
2804
|
+
componentName: C = "SubscriptionTile"
|
|
2802
2805
|
}) => {
|
|
2803
|
-
const
|
|
2804
|
-
!w && !
|
|
2805
|
-
},
|
|
2806
|
-
!w && !
|
|
2807
|
-
},
|
|
2808
|
-
|
|
2806
|
+
const N = !!h, I = n ? "bg-blue-600 text-white ring-4 ring-blue-600 ring-offset-4 ring-offset-white dark:ring-offset-gray-900 border-transparent" : "bg-gray-100 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 hover:border-gray-300 dark:hover:border-gray-600 hover:shadow-md", D = () => {
|
|
2807
|
+
!w && !N && (_?.({ action: "select", trackingLabel: F, componentName: C }), a());
|
|
2808
|
+
}, u = (E) => {
|
|
2809
|
+
!w && !N && (E.key === "Enter" || E.key === " ") && (E.preventDefault(), _?.({ action: "select", trackingLabel: F, componentName: C }), a());
|
|
2810
|
+
}, V = (E) => {
|
|
2811
|
+
E.stopPropagation(), _?.({ action: "cta_click", trackingLabel: F, componentName: C }), h?.onClick && h.onClick();
|
|
2809
2812
|
};
|
|
2810
|
-
return /* @__PURE__ */
|
|
2813
|
+
return /* @__PURE__ */ M(
|
|
2811
2814
|
"div",
|
|
2812
2815
|
{
|
|
2813
|
-
className:
|
|
2814
|
-
"relative rounded-2xl p-6 transition-all flex flex-col",
|
|
2815
|
-
w ? "opacity-50 cursor-not-allowed" :
|
|
2816
|
-
|
|
2817
|
-
|
|
2816
|
+
className: P(
|
|
2817
|
+
"relative rounded-2xl p-6 transition-all flex flex-col h-full",
|
|
2818
|
+
w ? "opacity-50 cursor-not-allowed" : N ? "cursor-default" : "cursor-pointer",
|
|
2819
|
+
I,
|
|
2820
|
+
R
|
|
2818
2821
|
),
|
|
2819
|
-
onClick:
|
|
2820
|
-
onKeyDown:
|
|
2821
|
-
role:
|
|
2822
|
-
"aria-checked":
|
|
2823
|
-
"aria-label":
|
|
2822
|
+
onClick: D,
|
|
2823
|
+
onKeyDown: u,
|
|
2824
|
+
role: N ? "article" : "radio",
|
|
2825
|
+
"aria-checked": N ? void 0 : n,
|
|
2826
|
+
"aria-label": L || `${o} - ${t}${r || ""}`,
|
|
2824
2827
|
"aria-disabled": w,
|
|
2825
|
-
tabIndex:
|
|
2828
|
+
tabIndex: N || w ? -1 : 0,
|
|
2826
2829
|
children: [
|
|
2827
2830
|
m && /* @__PURE__ */ g("div", { className: "absolute -top-3 left-1/2 transform -translate-x-1/2", children: /* @__PURE__ */ g(
|
|
2828
2831
|
"span",
|
|
2829
2832
|
{
|
|
2830
|
-
className:
|
|
2831
|
-
|
|
2833
|
+
className: P(
|
|
2834
|
+
jt[m.color],
|
|
2832
2835
|
"text-white px-3 py-1 rounded-full text-sm font-semibold shadow-lg whitespace-nowrap"
|
|
2833
2836
|
),
|
|
2834
2837
|
children: m.text
|
|
2835
2838
|
}
|
|
2836
2839
|
) }),
|
|
2837
|
-
/* @__PURE__ */
|
|
2838
|
-
/* @__PURE__ */
|
|
2840
|
+
/* @__PURE__ */ M("div", { className: "flex flex-col flex-grow", children: [
|
|
2841
|
+
/* @__PURE__ */ M("div", { className: "text-center mb-6", children: [
|
|
2839
2842
|
/* @__PURE__ */ g(
|
|
2840
2843
|
"h3",
|
|
2841
2844
|
{
|
|
2842
|
-
className:
|
|
2845
|
+
className: P(
|
|
2843
2846
|
be.heading.h4(),
|
|
2844
2847
|
"mb-2",
|
|
2845
2848
|
n ? "text-white" : ""
|
|
@@ -2847,32 +2850,32 @@ const Lr = {
|
|
|
2847
2850
|
children: o
|
|
2848
2851
|
}
|
|
2849
2852
|
),
|
|
2850
|
-
/* @__PURE__ */
|
|
2853
|
+
/* @__PURE__ */ M("div", { className: "mb-3", children: [
|
|
2851
2854
|
/* @__PURE__ */ g(
|
|
2852
2855
|
"span",
|
|
2853
2856
|
{
|
|
2854
|
-
className:
|
|
2857
|
+
className: P(
|
|
2855
2858
|
"text-4xl font-bold",
|
|
2856
2859
|
n ? "text-white" : "text-gray-900 dark:text-gray-100"
|
|
2857
2860
|
),
|
|
2858
|
-
children:
|
|
2861
|
+
children: t
|
|
2859
2862
|
}
|
|
2860
2863
|
),
|
|
2861
|
-
|
|
2864
|
+
r && /* @__PURE__ */ g(
|
|
2862
2865
|
"span",
|
|
2863
2866
|
{
|
|
2864
|
-
className:
|
|
2867
|
+
className: P(
|
|
2865
2868
|
"text-lg",
|
|
2866
2869
|
n ? "text-blue-100" : "text-gray-500 dark:text-gray-400"
|
|
2867
2870
|
),
|
|
2868
|
-
children:
|
|
2871
|
+
children: r
|
|
2869
2872
|
}
|
|
2870
2873
|
)
|
|
2871
2874
|
] }),
|
|
2872
2875
|
c && /* @__PURE__ */ g(
|
|
2873
2876
|
"div",
|
|
2874
2877
|
{
|
|
2875
|
-
className:
|
|
2878
|
+
className: P(
|
|
2876
2879
|
"inline-flex items-center px-2 py-1 rounded-full text-sm font-semibold",
|
|
2877
2880
|
n ? "bg-blue-500 text-white" : "bg-green-100 text-green-700 dark:bg-green-900/50 dark:text-green-300"
|
|
2878
2881
|
),
|
|
@@ -2880,12 +2883,12 @@ const Lr = {
|
|
|
2880
2883
|
}
|
|
2881
2884
|
)
|
|
2882
2885
|
] }),
|
|
2883
|
-
|
|
2884
|
-
s.length > 0 && /* @__PURE__ */ g("div", { className: "space-y-3 mb-6 flex-grow", children: s.map((
|
|
2886
|
+
z,
|
|
2887
|
+
s.length > 0 && /* @__PURE__ */ g("div", { className: "space-y-3 mb-6 flex-grow", children: s.map((E, W) => /* @__PURE__ */ M("div", { className: "flex items-start", children: [
|
|
2885
2888
|
/* @__PURE__ */ g(
|
|
2886
2889
|
"svg",
|
|
2887
2890
|
{
|
|
2888
|
-
className:
|
|
2891
|
+
className: P(
|
|
2889
2892
|
"w-5 h-5 mr-3 flex-shrink-0",
|
|
2890
2893
|
n ? "text-blue-200" : "text-green-500"
|
|
2891
2894
|
),
|
|
@@ -2906,18 +2909,18 @@ const Lr = {
|
|
|
2906
2909
|
/* @__PURE__ */ g(
|
|
2907
2910
|
"span",
|
|
2908
2911
|
{
|
|
2909
|
-
className:
|
|
2912
|
+
className: P(
|
|
2910
2913
|
"text-sm text-left",
|
|
2911
2914
|
n ? "text-white" : "text-gray-700 dark:text-gray-300"
|
|
2912
2915
|
),
|
|
2913
|
-
children:
|
|
2916
|
+
children: E.replace(/^✓\s*/, "")
|
|
2914
2917
|
}
|
|
2915
2918
|
)
|
|
2916
|
-
] },
|
|
2917
|
-
f && /* @__PURE__ */
|
|
2919
|
+
] }, W)) }),
|
|
2920
|
+
f && /* @__PURE__ */ M(
|
|
2918
2921
|
"div",
|
|
2919
2922
|
{
|
|
2920
|
-
className:
|
|
2923
|
+
className: P(
|
|
2921
2924
|
"rounded-lg p-4 mb-4",
|
|
2922
2925
|
n ? "bg-blue-500/30" : "bg-gradient-to-r from-purple-50 to-blue-50 dark:from-purple-900/20 dark:to-blue-900/20"
|
|
2923
2926
|
),
|
|
@@ -2925,7 +2928,7 @@ const Lr = {
|
|
|
2925
2928
|
/* @__PURE__ */ g("div", { className: "flex items-center mb-2", children: /* @__PURE__ */ g(
|
|
2926
2929
|
"span",
|
|
2927
2930
|
{
|
|
2928
|
-
className:
|
|
2931
|
+
className: P(
|
|
2929
2932
|
"font-semibold text-sm",
|
|
2930
2933
|
n ? "text-white" : "text-purple-600 dark:text-purple-400"
|
|
2931
2934
|
),
|
|
@@ -2935,69 +2938,69 @@ const Lr = {
|
|
|
2935
2938
|
/* @__PURE__ */ g(
|
|
2936
2939
|
"ul",
|
|
2937
2940
|
{
|
|
2938
|
-
className:
|
|
2941
|
+
className: P(
|
|
2939
2942
|
"text-xs space-y-1",
|
|
2940
2943
|
n ? "text-blue-100" : "text-gray-600 dark:text-gray-400"
|
|
2941
2944
|
),
|
|
2942
|
-
children: f.features.map((
|
|
2945
|
+
children: f.features.map((E, W) => /* @__PURE__ */ M("li", { children: [
|
|
2943
2946
|
"• ",
|
|
2944
|
-
|
|
2945
|
-
] },
|
|
2947
|
+
E
|
|
2948
|
+
] }, W))
|
|
2946
2949
|
}
|
|
2947
2950
|
)
|
|
2948
2951
|
]
|
|
2949
2952
|
}
|
|
2950
2953
|
),
|
|
2951
|
-
|
|
2954
|
+
k && /* @__PURE__ */ g(
|
|
2952
2955
|
"div",
|
|
2953
2956
|
{
|
|
2954
|
-
className:
|
|
2957
|
+
className: P(
|
|
2955
2958
|
"text-center text-sm font-medium mb-4",
|
|
2956
2959
|
n ? "text-blue-100" : "text-blue-600 dark:text-blue-400"
|
|
2957
2960
|
),
|
|
2958
|
-
children:
|
|
2961
|
+
children: k
|
|
2959
2962
|
}
|
|
2960
2963
|
)
|
|
2961
2964
|
] }),
|
|
2962
|
-
/* @__PURE__ */
|
|
2963
|
-
|
|
2965
|
+
/* @__PURE__ */ M("div", { className: "mt-auto space-y-4", children: [
|
|
2966
|
+
v && /* @__PURE__ */ g(
|
|
2964
2967
|
"div",
|
|
2965
2968
|
{
|
|
2966
|
-
className:
|
|
2969
|
+
className: P(
|
|
2967
2970
|
"p-3 rounded-lg",
|
|
2968
2971
|
n ? "bg-blue-500/30" : "bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800"
|
|
2969
2972
|
),
|
|
2970
2973
|
children: /* @__PURE__ */ g(
|
|
2971
2974
|
"p",
|
|
2972
2975
|
{
|
|
2973
|
-
className:
|
|
2976
|
+
className: P(
|
|
2974
2977
|
"text-sm font-semibold text-center",
|
|
2975
2978
|
n ? "text-white" : "text-yellow-700 dark:text-yellow-300"
|
|
2976
2979
|
),
|
|
2977
|
-
children:
|
|
2980
|
+
children: v
|
|
2978
2981
|
}
|
|
2979
2982
|
)
|
|
2980
2983
|
}
|
|
2981
2984
|
),
|
|
2982
|
-
|
|
2985
|
+
N ? (
|
|
2983
2986
|
// CTA Button - like pricing page
|
|
2984
2987
|
h.href ? /* @__PURE__ */ g(
|
|
2985
2988
|
"a",
|
|
2986
2989
|
{
|
|
2987
2990
|
href: h.href,
|
|
2988
|
-
className:
|
|
2991
|
+
className: P(
|
|
2989
2992
|
"block w-full py-3 font-semibold rounded-lg text-center transition-colors",
|
|
2990
2993
|
n ? "bg-white text-blue-600 hover:bg-gray-100" : "bg-blue-600 text-white hover:bg-blue-700"
|
|
2991
2994
|
),
|
|
2992
|
-
onClick: (
|
|
2995
|
+
onClick: (E) => E.stopPropagation(),
|
|
2993
2996
|
children: h.label
|
|
2994
2997
|
}
|
|
2995
2998
|
) : /* @__PURE__ */ g(
|
|
2996
2999
|
"button",
|
|
2997
3000
|
{
|
|
2998
|
-
onClick:
|
|
3001
|
+
onClick: V,
|
|
2999
3002
|
disabled: w,
|
|
3000
|
-
className:
|
|
3003
|
+
className: P(
|
|
3001
3004
|
"w-full py-3 font-semibold rounded-lg transition-colors",
|
|
3002
3005
|
n ? "bg-white text-blue-600 hover:bg-gray-100" : "bg-blue-600 text-white hover:bg-blue-700",
|
|
3003
3006
|
w && "opacity-50 cursor-not-allowed"
|
|
@@ -3010,7 +3013,7 @@ const Lr = {
|
|
|
3010
3013
|
/* @__PURE__ */ g("div", { className: "flex justify-center", children: /* @__PURE__ */ g(
|
|
3011
3014
|
"div",
|
|
3012
3015
|
{
|
|
3013
|
-
className:
|
|
3016
|
+
className: P(
|
|
3014
3017
|
"w-5 h-5 rounded-full border-2 flex items-center justify-center",
|
|
3015
3018
|
n ? "border-white bg-white" : "border-gray-300 dark:border-gray-600"
|
|
3016
3019
|
),
|
|
@@ -3022,55 +3025,62 @@ const Lr = {
|
|
|
3022
3025
|
]
|
|
3023
3026
|
}
|
|
3024
3027
|
);
|
|
3025
|
-
},
|
|
3028
|
+
}, Yt = ({
|
|
3026
3029
|
title: e,
|
|
3027
3030
|
children: o,
|
|
3028
|
-
error:
|
|
3029
|
-
variant:
|
|
3031
|
+
error: t,
|
|
3032
|
+
variant: r = "selection",
|
|
3030
3033
|
currentStatus: s,
|
|
3031
3034
|
primaryAction: n,
|
|
3032
3035
|
secondaryAction: a,
|
|
3033
3036
|
minTileWidth: m = 240,
|
|
3034
3037
|
className: c,
|
|
3035
3038
|
headerContent: f,
|
|
3036
|
-
aboveProducts:
|
|
3037
|
-
footerContent:
|
|
3038
|
-
currentStatusLabel:
|
|
3039
|
-
freeTileConfig: h
|
|
3039
|
+
aboveProducts: k,
|
|
3040
|
+
footerContent: v,
|
|
3041
|
+
currentStatusLabel: O = "Current Status",
|
|
3042
|
+
freeTileConfig: h,
|
|
3043
|
+
onTrack: R,
|
|
3044
|
+
trackingLabel: z,
|
|
3045
|
+
componentName: w = "SubscriptionLayout"
|
|
3040
3046
|
}) => {
|
|
3041
|
-
const
|
|
3047
|
+
const L = r === "selection" && n, _ = () => {
|
|
3048
|
+
R?.({ action: "primary_action", trackingLabel: z, componentName: w }), n?.onClick();
|
|
3049
|
+
}, F = () => {
|
|
3050
|
+
R?.({ action: "secondary_action", trackingLabel: z, componentName: w }), a?.onClick();
|
|
3051
|
+
}, C = r === "cta" && h, N = {
|
|
3042
3052
|
display: "grid",
|
|
3043
3053
|
gridTemplateColumns: `repeat(auto-fit, minmax(min(100%, ${m}px), 1fr))`,
|
|
3044
3054
|
gap: "1.5rem"
|
|
3045
3055
|
};
|
|
3046
|
-
return /* @__PURE__ */ g(Be, { className: c, children: /* @__PURE__ */
|
|
3056
|
+
return /* @__PURE__ */ g(Be, { className: c, children: /* @__PURE__ */ M(We, { className: "pt-6", children: [
|
|
3047
3057
|
f,
|
|
3048
|
-
s && /* @__PURE__ */
|
|
3049
|
-
/* @__PURE__ */ g("h2", { className:
|
|
3050
|
-
s.isActive ? /* @__PURE__ */
|
|
3051
|
-
/* @__PURE__ */
|
|
3058
|
+
s && /* @__PURE__ */ M($e, { children: [
|
|
3059
|
+
/* @__PURE__ */ g("h2", { className: P(be.heading.h3(), "mb-4"), children: O }),
|
|
3060
|
+
s.isActive ? /* @__PURE__ */ M("div", { className: "bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg p-4 mb-6", children: [
|
|
3061
|
+
/* @__PURE__ */ M("div", { className: "flex items-center mb-2", children: [
|
|
3052
3062
|
/* @__PURE__ */ g("div", { className: "w-3 h-3 bg-green-500 rounded-full mr-3" }),
|
|
3053
3063
|
/* @__PURE__ */ g("span", { className: "font-semibold text-green-800 dark:text-green-300", children: s.activeContent?.title || "Active Subscription" })
|
|
3054
3064
|
] }),
|
|
3055
3065
|
s.activeContent?.fields && s.activeContent.fields.length > 0 && /* @__PURE__ */ g("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4 mt-4", children: s.activeContent.fields.map(
|
|
3056
|
-
(
|
|
3057
|
-
/* @__PURE__ */ g("p", { className: "text-sm text-green-600 dark:text-green-400", children:
|
|
3058
|
-
/* @__PURE__ */ g("p", { className: "font-semibold text-green-800 dark:text-green-300", children:
|
|
3059
|
-
] },
|
|
3066
|
+
(I, D) => /* @__PURE__ */ M("div", { children: [
|
|
3067
|
+
/* @__PURE__ */ g("p", { className: "text-sm text-green-600 dark:text-green-400", children: I.label }),
|
|
3068
|
+
/* @__PURE__ */ g("p", { className: "font-semibold text-green-800 dark:text-green-300", children: I.value })
|
|
3069
|
+
] }, D)
|
|
3060
3070
|
) })
|
|
3061
|
-
] }) : /* @__PURE__ */
|
|
3062
|
-
/* @__PURE__ */
|
|
3071
|
+
] }) : /* @__PURE__ */ M("div", { className: "bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4 mb-6", children: [
|
|
3072
|
+
/* @__PURE__ */ M("div", { className: "flex items-center mb-2", children: [
|
|
3063
3073
|
/* @__PURE__ */ g("div", { className: "w-3 h-3 bg-yellow-500 rounded-full mr-3" }),
|
|
3064
3074
|
/* @__PURE__ */ g("span", { className: "font-semibold text-yellow-800 dark:text-yellow-300", children: s.inactiveContent?.title || "No Active Subscription" })
|
|
3065
3075
|
] }),
|
|
3066
3076
|
s.inactiveContent?.message && /* @__PURE__ */ g("p", { className: "text-yellow-700 dark:text-yellow-400", children: s.inactiveContent.message })
|
|
3067
3077
|
] })
|
|
3068
3078
|
] }),
|
|
3069
|
-
/* @__PURE__ */ g("h2", { className:
|
|
3070
|
-
|
|
3071
|
-
/* @__PURE__ */
|
|
3072
|
-
|
|
3073
|
-
|
|
3079
|
+
/* @__PURE__ */ g("h2", { className: P(be.heading.h3(), "mb-4"), children: e }),
|
|
3080
|
+
k,
|
|
3081
|
+
/* @__PURE__ */ M("div", { style: N, children: [
|
|
3082
|
+
C && /* @__PURE__ */ g(
|
|
3083
|
+
Lt,
|
|
3074
3084
|
{
|
|
3075
3085
|
id: "free",
|
|
3076
3086
|
title: h.title,
|
|
@@ -3086,13 +3096,13 @@ const Lr = {
|
|
|
3086
3096
|
),
|
|
3087
3097
|
o
|
|
3088
3098
|
] }),
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3099
|
+
v,
|
|
3100
|
+
t && /* @__PURE__ */ g("div", { className: "bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg p-4 mt-6", children: /* @__PURE__ */ g("p", { className: "text-red-600 dark:text-red-400", children: t }) }),
|
|
3101
|
+
L && /* @__PURE__ */ M("div", { className: "flex flex-col sm:flex-row gap-3 mt-6", children: [
|
|
3092
3102
|
a && /* @__PURE__ */ g(
|
|
3093
3103
|
ve,
|
|
3094
3104
|
{
|
|
3095
|
-
onClick:
|
|
3105
|
+
onClick: F,
|
|
3096
3106
|
disabled: a.disabled || a.loading,
|
|
3097
3107
|
variant: "outline",
|
|
3098
3108
|
className: "sm:flex-shrink-0",
|
|
@@ -3102,7 +3112,7 @@ const Lr = {
|
|
|
3102
3112
|
/* @__PURE__ */ g(
|
|
3103
3113
|
ve,
|
|
3104
3114
|
{
|
|
3105
|
-
onClick:
|
|
3115
|
+
onClick: _,
|
|
3106
3116
|
disabled: n.disabled || n.loading,
|
|
3107
3117
|
className: "flex-1",
|
|
3108
3118
|
children: n.label
|
|
@@ -3111,11 +3121,11 @@ const Lr = {
|
|
|
3111
3121
|
] })
|
|
3112
3122
|
] }) });
|
|
3113
3123
|
};
|
|
3114
|
-
function
|
|
3124
|
+
function Kt({
|
|
3115
3125
|
options: e,
|
|
3116
3126
|
value: o,
|
|
3117
|
-
onChange:
|
|
3118
|
-
className:
|
|
3127
|
+
onChange: t,
|
|
3128
|
+
className: r,
|
|
3119
3129
|
disabled: s = !1,
|
|
3120
3130
|
size: n = "md"
|
|
3121
3131
|
}) {
|
|
@@ -3127,10 +3137,10 @@ function Kr({
|
|
|
3127
3137
|
return /* @__PURE__ */ g(
|
|
3128
3138
|
"div",
|
|
3129
3139
|
{
|
|
3130
|
-
className:
|
|
3140
|
+
className: P(
|
|
3131
3141
|
"inline-flex rounded-lg bg-gray-100 dark:bg-gray-800 p-1",
|
|
3132
3142
|
s && "opacity-50",
|
|
3133
|
-
|
|
3143
|
+
r
|
|
3134
3144
|
),
|
|
3135
3145
|
role: "radiogroup",
|
|
3136
3146
|
children: e.map((m) => {
|
|
@@ -3142,8 +3152,8 @@ function Kr({
|
|
|
3142
3152
|
role: "radio",
|
|
3143
3153
|
"aria-checked": c,
|
|
3144
3154
|
disabled: s,
|
|
3145
|
-
onClick: () => !s &&
|
|
3146
|
-
className:
|
|
3155
|
+
onClick: () => !s && t(m.value),
|
|
3156
|
+
className: P(
|
|
3147
3157
|
a[n],
|
|
3148
3158
|
"font-medium rounded-md transition-all focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-2",
|
|
3149
3159
|
c ? "bg-white dark:bg-gray-700 text-gray-900 dark:text-white shadow-sm" : "text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white",
|
|
@@ -3158,238 +3168,239 @@ function Kr({
|
|
|
3158
3168
|
);
|
|
3159
3169
|
}
|
|
3160
3170
|
let fe = null;
|
|
3161
|
-
const
|
|
3162
|
-
let
|
|
3163
|
-
const
|
|
3164
|
-
const
|
|
3171
|
+
const _t = async () => (fe || (fe = await import("@revenuecat/purchases-js")), fe);
|
|
3172
|
+
let G = null;
|
|
3173
|
+
const Ft = (e, o) => {
|
|
3174
|
+
const t = e.rcBillingProduct, r = t?.defaultSubscriptionOption, s = typeof o?.entitlement == "string" ? o.entitlement : void 0;
|
|
3165
3175
|
return {
|
|
3166
3176
|
identifier: e.identifier,
|
|
3167
|
-
productId:
|
|
3168
|
-
price:
|
|
3169
|
-
priceString:
|
|
3170
|
-
title:
|
|
3171
|
-
description:
|
|
3172
|
-
period:
|
|
3177
|
+
productId: t?.identifier || void 0,
|
|
3178
|
+
price: t?.currentPrice?.amountMicros ? (t.currentPrice.amountMicros / 1e6).toFixed(2) : "0",
|
|
3179
|
+
priceString: t?.currentPrice?.formattedPrice || "$0",
|
|
3180
|
+
title: t?.title || e.identifier,
|
|
3181
|
+
description: t?.description || "",
|
|
3182
|
+
period: t?.normalPeriodDuration || void 0,
|
|
3173
3183
|
introPrice: r?.introPrice?.price?.formattedPrice || void 0,
|
|
3174
3184
|
introPriceAmount: r?.introPrice?.price?.amountMicros ? (r.introPrice.price.amountMicros / 1e6).toFixed(2) : void 0,
|
|
3175
3185
|
introPricePeriod: r?.introPrice?.periodDuration || void 0,
|
|
3176
3186
|
introPriceCycles: r?.introPrice?.cycleCount || void 0,
|
|
3177
|
-
freeTrialPeriod: r?.trial?.periodDuration || void 0
|
|
3187
|
+
freeTrialPeriod: r?.trial?.periodDuration || void 0,
|
|
3188
|
+
entitlement: s
|
|
3178
3189
|
};
|
|
3179
3190
|
}, ge = (e, o) => {
|
|
3180
|
-
const
|
|
3181
|
-
return
|
|
3191
|
+
const t = e.entitlements.active[o];
|
|
3192
|
+
return t ? {
|
|
3182
3193
|
isActive: !0,
|
|
3183
|
-
expirationDate:
|
|
3184
|
-
purchaseDate:
|
|
3185
|
-
productIdentifier:
|
|
3186
|
-
willRenew:
|
|
3187
|
-
isSandbox:
|
|
3188
|
-
unsubscribeDetectedAt:
|
|
3189
|
-
billingIssueDetectedAt:
|
|
3194
|
+
expirationDate: t.expirationDate ? new Date(t.expirationDate) : void 0,
|
|
3195
|
+
purchaseDate: t.latestPurchaseDate ? new Date(t.latestPurchaseDate) : void 0,
|
|
3196
|
+
productIdentifier: t.productIdentifier,
|
|
3197
|
+
willRenew: t.willRenew,
|
|
3198
|
+
isSandbox: t.isSandbox,
|
|
3199
|
+
unsubscribeDetectedAt: t.unsubscribeDetectedAt ? new Date(t.unsubscribeDetectedAt) : void 0,
|
|
3200
|
+
billingIssueDetectedAt: t.billingIssueDetectedAt ? new Date(t.billingIssueDetectedAt) : void 0
|
|
3190
3201
|
} : { isActive: !1 };
|
|
3191
3202
|
}, Ve = Ue(
|
|
3192
3203
|
void 0
|
|
3193
|
-
),
|
|
3204
|
+
), qt = ({
|
|
3194
3205
|
apiKey: e,
|
|
3195
3206
|
entitlementId: o,
|
|
3196
|
-
userEmail:
|
|
3197
|
-
onError:
|
|
3207
|
+
userEmail: t,
|
|
3208
|
+
onError: r,
|
|
3198
3209
|
onPurchaseSuccess: s,
|
|
3199
3210
|
children: n
|
|
3200
3211
|
}) => {
|
|
3201
|
-
const [a, m] =
|
|
3202
|
-
m([]), f(null),
|
|
3203
|
-
}, []),
|
|
3204
|
-
if (
|
|
3212
|
+
const [a, m] = K([]), [c, f] = K(null), [k, v] = K(!1), [O, h] = K(null), [R, z] = K(!1), [w, L] = K(null), [_, F] = K(null), C = !e || e === "your_revenuecat_api_key_here", N = U(() => {
|
|
3213
|
+
m([]), f(null), F(null), h(null), z(!1), L(null), G = null;
|
|
3214
|
+
}, []), I = U(async () => {
|
|
3215
|
+
if (G)
|
|
3205
3216
|
try {
|
|
3206
|
-
const p = await
|
|
3217
|
+
const p = await G.getOfferings();
|
|
3207
3218
|
if (p.current) {
|
|
3208
|
-
|
|
3209
|
-
const x = p.current.availablePackages.map(
|
|
3210
|
-
|
|
3219
|
+
F(p.current);
|
|
3220
|
+
const x = p.current.metadata, y = p.current.availablePackages.map(
|
|
3221
|
+
(T) => Ft(T, x)
|
|
3211
3222
|
);
|
|
3212
|
-
m(
|
|
3223
|
+
m(y);
|
|
3213
3224
|
}
|
|
3214
3225
|
} catch (p) {
|
|
3215
3226
|
const x = p instanceof Error ? p.message : "Failed to load offerings";
|
|
3216
|
-
h(x),
|
|
3227
|
+
h(x), r?.(p instanceof Error ? p : new Error(x));
|
|
3217
3228
|
}
|
|
3218
|
-
}, [
|
|
3219
|
-
if (
|
|
3229
|
+
}, [r]), D = U(async () => {
|
|
3230
|
+
if (G)
|
|
3220
3231
|
try {
|
|
3221
|
-
const p = await
|
|
3232
|
+
const p = await G.getCustomerInfo(), x = ge(p, o);
|
|
3222
3233
|
f(x.isActive ? x : null);
|
|
3223
3234
|
} catch (p) {
|
|
3224
3235
|
const x = p instanceof Error ? p.message : "Failed to load subscription status";
|
|
3225
|
-
h(x),
|
|
3236
|
+
h(x), r?.(p instanceof Error ? p : new Error(x));
|
|
3226
3237
|
}
|
|
3227
|
-
}, [o,
|
|
3238
|
+
}, [o, r]), u = U(
|
|
3228
3239
|
async (p, x) => {
|
|
3229
|
-
if (w && w !== p &&
|
|
3240
|
+
if (w && w !== p && N(), !(R && w === p))
|
|
3230
3241
|
try {
|
|
3231
|
-
if (
|
|
3242
|
+
if (v(!0), h(null), C)
|
|
3232
3243
|
console.warn(
|
|
3233
3244
|
"[SubscriptionProvider] RevenueCat API key not configured"
|
|
3234
3245
|
), m([]), f(null);
|
|
3235
3246
|
else {
|
|
3236
|
-
const
|
|
3247
|
+
const y = await _t(), T = {
|
|
3237
3248
|
apiKey: e,
|
|
3238
3249
|
appUserId: p
|
|
3239
3250
|
};
|
|
3240
|
-
|
|
3241
|
-
const d = x ||
|
|
3242
|
-
if (d &&
|
|
3251
|
+
G = y.Purchases.configure(T);
|
|
3252
|
+
const d = x || t;
|
|
3253
|
+
if (d && G)
|
|
3243
3254
|
try {
|
|
3244
|
-
await
|
|
3255
|
+
await G.setAttributes({ email: d });
|
|
3245
3256
|
} catch {
|
|
3246
3257
|
}
|
|
3247
|
-
await Promise.all([
|
|
3258
|
+
await Promise.all([I(), D()]);
|
|
3248
3259
|
}
|
|
3249
|
-
|
|
3250
|
-
} catch (
|
|
3251
|
-
const
|
|
3252
|
-
h(
|
|
3260
|
+
L(p), z(!0);
|
|
3261
|
+
} catch (y) {
|
|
3262
|
+
const T = y instanceof Error ? y.message : "Failed to initialize";
|
|
3263
|
+
h(T), f(null), m([]), r?.(y instanceof Error ? y : new Error(T));
|
|
3253
3264
|
} finally {
|
|
3254
|
-
|
|
3265
|
+
v(!1);
|
|
3255
3266
|
}
|
|
3256
3267
|
},
|
|
3257
3268
|
[
|
|
3258
3269
|
w,
|
|
3259
|
-
|
|
3260
|
-
|
|
3270
|
+
R,
|
|
3271
|
+
C,
|
|
3261
3272
|
e,
|
|
3262
|
-
r,
|
|
3263
|
-
O,
|
|
3264
|
-
k,
|
|
3265
3273
|
t,
|
|
3266
|
-
|
|
3274
|
+
I,
|
|
3275
|
+
D,
|
|
3276
|
+
r,
|
|
3277
|
+
N
|
|
3267
3278
|
]
|
|
3268
|
-
),
|
|
3279
|
+
), V = U(
|
|
3269
3280
|
async (p) => {
|
|
3270
3281
|
try {
|
|
3271
|
-
if (
|
|
3272
|
-
await new Promise((
|
|
3273
|
-
const
|
|
3282
|
+
if (v(!0), h(null), C) {
|
|
3283
|
+
await new Promise((re) => setTimeout(re, 2e3));
|
|
3284
|
+
const J = {
|
|
3274
3285
|
isActive: !0,
|
|
3275
3286
|
expirationDate: new Date(Date.now() + 365 * 24 * 60 * 60 * 1e3),
|
|
3276
3287
|
purchaseDate: /* @__PURE__ */ new Date(),
|
|
3277
3288
|
productIdentifier: p,
|
|
3278
3289
|
willRenew: !0
|
|
3279
3290
|
};
|
|
3280
|
-
return f(
|
|
3291
|
+
return f(J), s?.(p), !0;
|
|
3281
3292
|
}
|
|
3282
|
-
if (!
|
|
3293
|
+
if (!G || !_)
|
|
3283
3294
|
throw new Error("Subscription service not initialized");
|
|
3284
|
-
const
|
|
3285
|
-
(
|
|
3295
|
+
const y = _.availablePackages.find(
|
|
3296
|
+
(J) => J.identifier === p
|
|
3286
3297
|
);
|
|
3287
|
-
if (!
|
|
3298
|
+
if (!y)
|
|
3288
3299
|
throw new Error(`Package not found: ${p}`);
|
|
3289
|
-
const
|
|
3290
|
-
rcPackage:
|
|
3291
|
-
...
|
|
3292
|
-
}), d = ge(
|
|
3300
|
+
const T = await G.purchase({
|
|
3301
|
+
rcPackage: y,
|
|
3302
|
+
...t ? { customerEmail: t } : {}
|
|
3303
|
+
}), d = ge(T.customerInfo, o);
|
|
3293
3304
|
return f(d.isActive ? d : null), d.isActive && s?.(p), d.isActive;
|
|
3294
3305
|
} catch (x) {
|
|
3295
|
-
const
|
|
3296
|
-
return h(
|
|
3306
|
+
const y = x instanceof Error ? x.message : "Purchase failed";
|
|
3307
|
+
return h(y), r?.(x instanceof Error ? x : new Error(y)), !1;
|
|
3297
3308
|
} finally {
|
|
3298
|
-
|
|
3309
|
+
v(!1);
|
|
3299
3310
|
}
|
|
3300
3311
|
},
|
|
3301
3312
|
[
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3313
|
+
C,
|
|
3314
|
+
_,
|
|
3315
|
+
t,
|
|
3305
3316
|
o,
|
|
3306
3317
|
s,
|
|
3307
|
-
|
|
3318
|
+
r
|
|
3308
3319
|
]
|
|
3309
|
-
),
|
|
3320
|
+
), E = U(async () => {
|
|
3310
3321
|
try {
|
|
3311
|
-
if (
|
|
3312
|
-
return await new Promise((
|
|
3313
|
-
if (!
|
|
3322
|
+
if (v(!0), h(null), C)
|
|
3323
|
+
return await new Promise((y) => setTimeout(y, 1e3)), h("No previous purchases found"), !1;
|
|
3324
|
+
if (!G)
|
|
3314
3325
|
throw new Error("Subscription service not initialized");
|
|
3315
|
-
const p = await
|
|
3326
|
+
const p = await G.getCustomerInfo(), x = ge(p, o);
|
|
3316
3327
|
return f(x.isActive ? x : null), x.isActive || h("No previous purchases found"), x.isActive;
|
|
3317
3328
|
} catch (p) {
|
|
3318
3329
|
const x = p instanceof Error ? p.message : "Restore failed";
|
|
3319
|
-
return h(x),
|
|
3330
|
+
return h(x), r?.(p instanceof Error ? p : new Error(x)), !1;
|
|
3320
3331
|
} finally {
|
|
3321
|
-
|
|
3332
|
+
v(!1);
|
|
3322
3333
|
}
|
|
3323
|
-
}, [
|
|
3324
|
-
if (!
|
|
3334
|
+
}, [C, o, r]), W = U(async () => {
|
|
3335
|
+
if (!C)
|
|
3325
3336
|
try {
|
|
3326
|
-
h(null), await Promise.all([
|
|
3337
|
+
h(null), await Promise.all([D(), I()]);
|
|
3327
3338
|
} catch (p) {
|
|
3328
3339
|
const x = p instanceof Error ? p.message : "Refresh failed";
|
|
3329
|
-
h(x),
|
|
3340
|
+
h(x), r?.(p instanceof Error ? p : new Error(x));
|
|
3330
3341
|
}
|
|
3331
|
-
}, [
|
|
3342
|
+
}, [C, D, I, r]), X = U(() => {
|
|
3332
3343
|
h(null);
|
|
3333
3344
|
}, []);
|
|
3334
3345
|
Ye(() => {
|
|
3335
|
-
if (!
|
|
3346
|
+
if (!R || C || !G) return;
|
|
3336
3347
|
const p = setInterval(
|
|
3337
3348
|
() => {
|
|
3338
|
-
|
|
3349
|
+
D().catch(() => {
|
|
3339
3350
|
});
|
|
3340
3351
|
},
|
|
3341
3352
|
300 * 1e3
|
|
3342
3353
|
);
|
|
3343
3354
|
return () => clearInterval(p);
|
|
3344
|
-
}, [
|
|
3345
|
-
const
|
|
3355
|
+
}, [R, C, D]);
|
|
3356
|
+
const te = {
|
|
3346
3357
|
products: a,
|
|
3347
3358
|
currentSubscription: c,
|
|
3348
|
-
isLoading:
|
|
3349
|
-
error:
|
|
3359
|
+
isLoading: k,
|
|
3360
|
+
error: O,
|
|
3350
3361
|
initialize: u,
|
|
3351
|
-
purchase:
|
|
3352
|
-
restore:
|
|
3353
|
-
refresh:
|
|
3354
|
-
clearError:
|
|
3362
|
+
purchase: V,
|
|
3363
|
+
restore: E,
|
|
3364
|
+
refresh: W,
|
|
3365
|
+
clearError: X
|
|
3355
3366
|
};
|
|
3356
|
-
return /* @__PURE__ */ g(Ve.Provider, { value:
|
|
3357
|
-
},
|
|
3367
|
+
return /* @__PURE__ */ g(Ve.Provider, { value: te, children: n });
|
|
3368
|
+
}, Xt = () => {
|
|
3358
3369
|
const e = Ke(Ve);
|
|
3359
3370
|
if (!e)
|
|
3360
3371
|
throw new Error(
|
|
3361
3372
|
"useSubscriptionContext must be used within a SubscriptionProvider"
|
|
3362
3373
|
);
|
|
3363
3374
|
return e;
|
|
3364
|
-
},
|
|
3375
|
+
}, Vt = () => {
|
|
3365
3376
|
try {
|
|
3366
3377
|
const e = [];
|
|
3367
|
-
for (let
|
|
3368
|
-
const
|
|
3369
|
-
|
|
3378
|
+
for (let t = 0; t < localStorage.length; t++) {
|
|
3379
|
+
const r = localStorage.key(t);
|
|
3380
|
+
r && (r.includes("revenuecat") || r.includes("rcb") || r.includes("rc_")) && e.push(r);
|
|
3370
3381
|
}
|
|
3371
|
-
e.forEach((
|
|
3382
|
+
e.forEach((t) => localStorage.removeItem(t));
|
|
3372
3383
|
const o = [];
|
|
3373
|
-
for (let
|
|
3374
|
-
const
|
|
3375
|
-
|
|
3384
|
+
for (let t = 0; t < sessionStorage.length; t++) {
|
|
3385
|
+
const r = sessionStorage.key(t);
|
|
3386
|
+
r && (r.includes("revenuecat") || r.includes("rcb") || r.includes("rc_")) && o.push(r);
|
|
3376
3387
|
}
|
|
3377
|
-
o.forEach((
|
|
3388
|
+
o.forEach((t) => sessionStorage.removeItem(t));
|
|
3378
3389
|
} catch {
|
|
3379
3390
|
}
|
|
3380
|
-
},
|
|
3391
|
+
}, Jt = () => {
|
|
3381
3392
|
try {
|
|
3382
|
-
|
|
3393
|
+
G && (G.close(), G = null), Vt();
|
|
3383
3394
|
} catch {
|
|
3384
3395
|
}
|
|
3385
3396
|
};
|
|
3386
3397
|
export {
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3398
|
+
Kt as SegmentedControl,
|
|
3399
|
+
Yt as SubscriptionLayout,
|
|
3400
|
+
qt as SubscriptionProvider,
|
|
3401
|
+
Lt as SubscriptionTile,
|
|
3402
|
+
Vt as clearRevenueCatCheckoutSessions,
|
|
3403
|
+
Jt as closeRevenueCatInstance,
|
|
3404
|
+
P as cn,
|
|
3405
|
+
Xt as useSubscriptionContext
|
|
3395
3406
|
};
|