@clasing/ui 0.1.71 → 0.1.73
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.d.ts +8 -1
- package/dist/index.es.js +998 -958
- package/dist/index.umd.js +9 -9
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Ke, { forwardRef as
|
|
1
|
+
import Ke, { forwardRef as L, useState as q, useEffect as ae, useRef as Qe, cloneElement as Tr, useMemo as Ue, useCallback as He, createContext as Dr, useContext as _r } from "react";
|
|
2
2
|
import * as zr from "@tabler/icons-react";
|
|
3
|
-
import { min as Ir, max as Rr, startOfMonth as
|
|
3
|
+
import { min as Ir, max as Rr, startOfMonth as Wr, endOfMonth as Fr, eachDayOfInterval as Tt, format as ne, startOfWeek as Ar, addMinutes as Dt } from "date-fns";
|
|
4
4
|
import { DayPicker as _t } from "react-day-picker";
|
|
5
|
-
import { useFloating as Ze, offset as zt, flip as It, shift as Rt, autoUpdate as
|
|
5
|
+
import { useFloating as Ze, offset as zt, flip as It, shift as Rt, autoUpdate as Wt, useDismiss as Ft, useInteractions as At, useTransitionStatus as Ot, useTransitionStyles as et, FloatingPortal as tt, useClick as Or, useRole as $r, FloatingOverlay as Vr, FloatingFocusManager as Br, arrow as Gr, FloatingArrow as Yr } from "@floating-ui/react";
|
|
6
6
|
import qr from "react-dom";
|
|
7
7
|
var Je = { exports: {} }, Pe = {};
|
|
8
8
|
/**
|
|
@@ -19,12 +19,12 @@ function Ur() {
|
|
|
19
19
|
if (kt) return Pe;
|
|
20
20
|
kt = 1;
|
|
21
21
|
var e = Ke, r = Symbol.for("react.element"), t = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
|
-
function l(d,
|
|
23
|
-
var u,
|
|
24
|
-
c !== void 0 && (
|
|
25
|
-
for (u in
|
|
26
|
-
if (d && d.defaultProps) for (u in
|
|
27
|
-
return { $$typeof: r, type: d, key:
|
|
22
|
+
function l(d, b, c) {
|
|
23
|
+
var u, g = {}, p = null, v = null;
|
|
24
|
+
c !== void 0 && (p = "" + c), b.key !== void 0 && (p = "" + b.key), b.ref !== void 0 && (v = b.ref);
|
|
25
|
+
for (u in b) o.call(b, u) && !a.hasOwnProperty(u) && (g[u] = b[u]);
|
|
26
|
+
if (d && d.defaultProps) for (u in b = d.defaultProps, b) g[u] === void 0 && (g[u] = b[u]);
|
|
27
|
+
return { $$typeof: r, type: d, key: p, ref: v, props: g, _owner: i.current };
|
|
28
28
|
}
|
|
29
29
|
return Pe.Fragment = t, Pe.jsx = l, Pe.jsxs = l, Pe;
|
|
30
30
|
}
|
|
@@ -41,54 +41,54 @@ var Ne = {};
|
|
|
41
41
|
var jt;
|
|
42
42
|
function Xr() {
|
|
43
43
|
return jt || (jt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
-
var e = Ke, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"),
|
|
45
|
-
function
|
|
44
|
+
var e = Ke, r = Symbol.for("react.element"), t = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), x = Symbol.iterator, w = "@@iterator";
|
|
45
|
+
function h(n) {
|
|
46
46
|
if (n === null || typeof n != "object")
|
|
47
47
|
return null;
|
|
48
|
-
var m =
|
|
48
|
+
var m = x && n[x] || n[w];
|
|
49
49
|
return typeof m == "function" ? m : null;
|
|
50
50
|
}
|
|
51
51
|
var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
|
-
function
|
|
52
|
+
function f(n) {
|
|
53
53
|
{
|
|
54
|
-
for (var m = arguments.length, y = new Array(m > 1 ? m - 1 : 0),
|
|
55
|
-
y[
|
|
54
|
+
for (var m = arguments.length, y = new Array(m > 1 ? m - 1 : 0), j = 1; j < m; j++)
|
|
55
|
+
y[j - 1] = arguments[j];
|
|
56
56
|
S("error", n, y);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
function S(n, m, y) {
|
|
60
60
|
{
|
|
61
|
-
var
|
|
62
|
-
|
|
63
|
-
var O = y.map(function(
|
|
64
|
-
return String(
|
|
61
|
+
var j = k.ReactDebugCurrentFrame, z = j.getStackAddendum();
|
|
62
|
+
z !== "" && (m += "%s", y = y.concat([z]));
|
|
63
|
+
var O = y.map(function(D) {
|
|
64
|
+
return String(D);
|
|
65
65
|
});
|
|
66
66
|
O.unshift("Warning: " + m), Function.prototype.apply.call(console[n], console, O);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
var
|
|
70
|
-
|
|
71
|
-
function
|
|
72
|
-
return !!(typeof n == "string" || typeof n == "function" || n === o || n === a ||
|
|
69
|
+
var C = !1, P = !1, $ = !1, W = !1, A = !1, G;
|
|
70
|
+
G = Symbol.for("react.module.reference");
|
|
71
|
+
function F(n) {
|
|
72
|
+
return !!(typeof n == "string" || typeof n == "function" || n === o || n === a || A || n === i || n === c || n === u || W || n === v || C || P || $ || typeof n == "object" && n !== null && (n.$$typeof === p || n.$$typeof === g || n.$$typeof === l || n.$$typeof === d || n.$$typeof === b || // This needs to include all possible module reference object
|
|
73
73
|
// types supported by any Flight configuration anywhere since
|
|
74
74
|
// we don't know which Flight build this will end up being used
|
|
75
75
|
// with.
|
|
76
|
-
n.$$typeof ===
|
|
76
|
+
n.$$typeof === G || n.getModuleId !== void 0));
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
var
|
|
80
|
-
if (
|
|
81
|
-
return
|
|
82
|
-
var
|
|
83
|
-
return
|
|
78
|
+
function re(n, m, y) {
|
|
79
|
+
var j = n.displayName;
|
|
80
|
+
if (j)
|
|
81
|
+
return j;
|
|
82
|
+
var z = m.displayName || m.name || "";
|
|
83
|
+
return z !== "" ? y + "(" + z + ")" : y;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function R(n) {
|
|
86
86
|
return n.displayName || "Context";
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function J(n) {
|
|
89
89
|
if (n == null)
|
|
90
90
|
return null;
|
|
91
|
-
if (typeof n.tag == "number" &&
|
|
91
|
+
if (typeof n.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
92
92
|
return n.displayName || n.name || null;
|
|
93
93
|
if (typeof n == "string")
|
|
94
94
|
return n;
|
|
@@ -110,19 +110,19 @@ function Xr() {
|
|
|
110
110
|
switch (n.$$typeof) {
|
|
111
111
|
case d:
|
|
112
112
|
var m = n;
|
|
113
|
-
return
|
|
113
|
+
return R(m) + ".Consumer";
|
|
114
114
|
case l:
|
|
115
115
|
var y = n;
|
|
116
|
-
return
|
|
117
|
-
case g:
|
|
118
|
-
return me(n, n.render, "ForwardRef");
|
|
116
|
+
return R(y._context) + ".Provider";
|
|
119
117
|
case b:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
118
|
+
return re(n, n.render, "ForwardRef");
|
|
119
|
+
case g:
|
|
120
|
+
var j = n.displayName || null;
|
|
121
|
+
return j !== null ? j : J(n.type) || "Memo";
|
|
122
|
+
case p: {
|
|
123
|
+
var z = n, O = z._payload, D = z._init;
|
|
124
124
|
try {
|
|
125
|
-
return
|
|
125
|
+
return J(D(O));
|
|
126
126
|
} catch {
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
@@ -130,14 +130,14 @@ function Xr() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var
|
|
133
|
+
var K = Object.assign, se = 0, Z, be, me, M, B, X, ke;
|
|
134
134
|
function je() {
|
|
135
135
|
}
|
|
136
136
|
je.__reactDisabledLog = !0;
|
|
137
|
-
function
|
|
137
|
+
function Te() {
|
|
138
138
|
{
|
|
139
|
-
if (
|
|
140
|
-
|
|
139
|
+
if (se === 0) {
|
|
140
|
+
Z = console.log, be = console.info, me = console.warn, M = console.error, B = console.group, X = console.groupCollapsed, ke = console.groupEnd;
|
|
141
141
|
var n = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
@@ -154,133 +154,133 @@ function Xr() {
|
|
|
154
154
|
groupEnd: n
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
se++;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
function he() {
|
|
161
161
|
{
|
|
162
|
-
if (
|
|
162
|
+
if (se--, se === 0) {
|
|
163
163
|
var n = {
|
|
164
164
|
configurable: !0,
|
|
165
165
|
enumerable: !0,
|
|
166
166
|
writable: !0
|
|
167
167
|
};
|
|
168
168
|
Object.defineProperties(console, {
|
|
169
|
-
log:
|
|
170
|
-
value:
|
|
169
|
+
log: K({}, n, {
|
|
170
|
+
value: Z
|
|
171
171
|
}),
|
|
172
|
-
info:
|
|
173
|
-
value:
|
|
172
|
+
info: K({}, n, {
|
|
173
|
+
value: be
|
|
174
174
|
}),
|
|
175
|
-
warn:
|
|
176
|
-
value:
|
|
175
|
+
warn: K({}, n, {
|
|
176
|
+
value: me
|
|
177
177
|
}),
|
|
178
|
-
error:
|
|
179
|
-
value:
|
|
178
|
+
error: K({}, n, {
|
|
179
|
+
value: M
|
|
180
180
|
}),
|
|
181
|
-
group:
|
|
182
|
-
value:
|
|
181
|
+
group: K({}, n, {
|
|
182
|
+
value: B
|
|
183
183
|
}),
|
|
184
|
-
groupCollapsed:
|
|
185
|
-
value:
|
|
184
|
+
groupCollapsed: K({}, n, {
|
|
185
|
+
value: X
|
|
186
186
|
}),
|
|
187
|
-
groupEnd:
|
|
187
|
+
groupEnd: K({}, n, {
|
|
188
188
|
value: ke
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
se < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
var
|
|
196
|
-
function
|
|
195
|
+
var de = k.ReactCurrentDispatcher, Ae;
|
|
196
|
+
function De(n, m, y) {
|
|
197
197
|
{
|
|
198
198
|
if (Ae === void 0)
|
|
199
199
|
try {
|
|
200
200
|
throw Error();
|
|
201
|
-
} catch (
|
|
202
|
-
var
|
|
203
|
-
Ae =
|
|
201
|
+
} catch (z) {
|
|
202
|
+
var j = z.stack.trim().match(/\n( *(at )?)/);
|
|
203
|
+
Ae = j && j[1] || "";
|
|
204
204
|
}
|
|
205
205
|
return `
|
|
206
206
|
` + Ae + n;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
var Oe = !1,
|
|
209
|
+
var Oe = !1, _e;
|
|
210
210
|
{
|
|
211
211
|
var ar = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
|
-
|
|
212
|
+
_e = new ar();
|
|
213
213
|
}
|
|
214
214
|
function it(n, m) {
|
|
215
215
|
if (!n || Oe)
|
|
216
216
|
return "";
|
|
217
217
|
{
|
|
218
|
-
var y =
|
|
218
|
+
var y = _e.get(n);
|
|
219
219
|
if (y !== void 0)
|
|
220
220
|
return y;
|
|
221
221
|
}
|
|
222
|
-
var
|
|
222
|
+
var j;
|
|
223
223
|
Oe = !0;
|
|
224
|
-
var
|
|
224
|
+
var z = Error.prepareStackTrace;
|
|
225
225
|
Error.prepareStackTrace = void 0;
|
|
226
226
|
var O;
|
|
227
|
-
O =
|
|
227
|
+
O = de.current, de.current = null, Te();
|
|
228
228
|
try {
|
|
229
229
|
if (m) {
|
|
230
|
-
var
|
|
230
|
+
var D = function() {
|
|
231
231
|
throw Error();
|
|
232
232
|
};
|
|
233
|
-
if (Object.defineProperty(
|
|
233
|
+
if (Object.defineProperty(D.prototype, "props", {
|
|
234
234
|
set: function() {
|
|
235
235
|
throw Error();
|
|
236
236
|
}
|
|
237
237
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
238
|
try {
|
|
239
|
-
Reflect.construct(
|
|
240
|
-
} catch (
|
|
241
|
-
|
|
239
|
+
Reflect.construct(D, []);
|
|
240
|
+
} catch (ee) {
|
|
241
|
+
j = ee;
|
|
242
242
|
}
|
|
243
|
-
Reflect.construct(n, [],
|
|
243
|
+
Reflect.construct(n, [], D);
|
|
244
244
|
} else {
|
|
245
245
|
try {
|
|
246
|
-
|
|
247
|
-
} catch (
|
|
248
|
-
|
|
246
|
+
D.call();
|
|
247
|
+
} catch (ee) {
|
|
248
|
+
j = ee;
|
|
249
249
|
}
|
|
250
|
-
n.call(
|
|
250
|
+
n.call(D.prototype);
|
|
251
251
|
}
|
|
252
252
|
} else {
|
|
253
253
|
try {
|
|
254
254
|
throw Error();
|
|
255
|
-
} catch (
|
|
256
|
-
|
|
255
|
+
} catch (ee) {
|
|
256
|
+
j = ee;
|
|
257
257
|
}
|
|
258
258
|
n();
|
|
259
259
|
}
|
|
260
|
-
} catch (
|
|
261
|
-
if (
|
|
262
|
-
for (var
|
|
263
|
-
`), Q =
|
|
264
|
-
`),
|
|
265
|
-
|
|
266
|
-
for (;
|
|
267
|
-
if (
|
|
268
|
-
if (
|
|
260
|
+
} catch (ee) {
|
|
261
|
+
if (ee && j && typeof ee.stack == "string") {
|
|
262
|
+
for (var E = ee.stack.split(`
|
|
263
|
+
`), Q = j.stack.split(`
|
|
264
|
+
`), Y = E.length - 1, U = Q.length - 1; Y >= 1 && U >= 0 && E[Y] !== Q[U]; )
|
|
265
|
+
U--;
|
|
266
|
+
for (; Y >= 1 && U >= 0; Y--, U--)
|
|
267
|
+
if (E[Y] !== Q[U]) {
|
|
268
|
+
if (Y !== 1 || U !== 1)
|
|
269
269
|
do
|
|
270
|
-
if (
|
|
270
|
+
if (Y--, U--, U < 0 || E[Y] !== Q[U]) {
|
|
271
271
|
var oe = `
|
|
272
|
-
` +
|
|
273
|
-
return n.displayName && oe.includes("<anonymous>") && (oe = oe.replace("<anonymous>", n.displayName)), typeof n == "function" &&
|
|
272
|
+
` + E[Y].replace(" at new ", " at ");
|
|
273
|
+
return n.displayName && oe.includes("<anonymous>") && (oe = oe.replace("<anonymous>", n.displayName)), typeof n == "function" && _e.set(n, oe), oe;
|
|
274
274
|
}
|
|
275
|
-
while (
|
|
275
|
+
while (Y >= 1 && U >= 0);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
|
-
Oe = !1,
|
|
280
|
+
Oe = !1, de.current = O, he(), Error.prepareStackTrace = z;
|
|
281
281
|
}
|
|
282
|
-
var ve = n ? n.displayName || n.name : "", pe = ve ?
|
|
283
|
-
return typeof n == "function" &&
|
|
282
|
+
var ve = n ? n.displayName || n.name : "", pe = ve ? De(ve) : "";
|
|
283
|
+
return typeof n == "function" && _e.set(n, pe), pe;
|
|
284
284
|
}
|
|
285
285
|
function sr(n, m, y) {
|
|
286
286
|
return it(n, !1);
|
|
@@ -289,29 +289,29 @@ function Xr() {
|
|
|
289
289
|
var m = n.prototype;
|
|
290
290
|
return !!(m && m.isReactComponent);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function ze(n, m, y) {
|
|
293
293
|
if (n == null)
|
|
294
294
|
return "";
|
|
295
295
|
if (typeof n == "function")
|
|
296
296
|
return it(n, lr(n));
|
|
297
297
|
if (typeof n == "string")
|
|
298
|
-
return
|
|
298
|
+
return De(n);
|
|
299
299
|
switch (n) {
|
|
300
300
|
case c:
|
|
301
|
-
return
|
|
301
|
+
return De("Suspense");
|
|
302
302
|
case u:
|
|
303
|
-
return
|
|
303
|
+
return De("SuspenseList");
|
|
304
304
|
}
|
|
305
305
|
if (typeof n == "object")
|
|
306
306
|
switch (n.$$typeof) {
|
|
307
|
-
case g:
|
|
308
|
-
return sr(n.render);
|
|
309
307
|
case b:
|
|
310
|
-
return
|
|
311
|
-
case
|
|
312
|
-
|
|
308
|
+
return sr(n.render);
|
|
309
|
+
case g:
|
|
310
|
+
return ze(n.type, m, y);
|
|
311
|
+
case p: {
|
|
312
|
+
var j = n, z = j._payload, O = j._init;
|
|
313
313
|
try {
|
|
314
|
-
return
|
|
314
|
+
return ze(O(z), m, y);
|
|
315
315
|
} catch {
|
|
316
316
|
}
|
|
317
317
|
}
|
|
@@ -319,29 +319,29 @@ function Xr() {
|
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
321
|
var Ce = Object.prototype.hasOwnProperty, dt = {}, ct = k.ReactDebugCurrentFrame;
|
|
322
|
-
function
|
|
322
|
+
function Ie(n) {
|
|
323
323
|
if (n) {
|
|
324
|
-
var m = n._owner, y =
|
|
324
|
+
var m = n._owner, y = ze(n.type, n._source, m ? m.type : null);
|
|
325
325
|
ct.setExtraStackFrame(y);
|
|
326
326
|
} else
|
|
327
327
|
ct.setExtraStackFrame(null);
|
|
328
328
|
}
|
|
329
|
-
function ir(n, m, y,
|
|
329
|
+
function ir(n, m, y, j, z) {
|
|
330
330
|
{
|
|
331
331
|
var O = Function.call.bind(Ce);
|
|
332
|
-
for (var
|
|
333
|
-
if (O(n,
|
|
334
|
-
var
|
|
332
|
+
for (var D in n)
|
|
333
|
+
if (O(n, D)) {
|
|
334
|
+
var E = void 0;
|
|
335
335
|
try {
|
|
336
|
-
if (typeof n[
|
|
337
|
-
var Q = Error((
|
|
336
|
+
if (typeof n[D] != "function") {
|
|
337
|
+
var Q = Error((j || "React class") + ": " + y + " type `" + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[D] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
338
|
throw Q.name = "Invariant Violation", Q;
|
|
339
339
|
}
|
|
340
|
-
|
|
341
|
-
} catch (
|
|
342
|
-
|
|
340
|
+
E = n[D](m, D, j, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
+
} catch (Y) {
|
|
342
|
+
E = Y;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
E && !(E instanceof Error) && (Ie(z), f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", j || "React class", y, D, typeof E), Ie(null)), E instanceof Error && !(E.message in dt) && (dt[E.message] = !0, Ie(z), f("Failed %s type: %s", y, E.message), Ie(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
@@ -367,7 +367,7 @@ function Xr() {
|
|
|
367
367
|
}
|
|
368
368
|
function bt(n) {
|
|
369
369
|
if (ur(n))
|
|
370
|
-
return
|
|
370
|
+
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", cr(n)), ut(n);
|
|
371
371
|
}
|
|
372
372
|
var Se = k.ReactCurrentOwner, br = {
|
|
373
373
|
key: !0,
|
|
@@ -394,14 +394,14 @@ function Xr() {
|
|
|
394
394
|
}
|
|
395
395
|
function fr(n, m) {
|
|
396
396
|
if (typeof n.ref == "string" && Se.current && m && Se.current.stateNode !== m) {
|
|
397
|
-
var y =
|
|
398
|
-
Ve[y] || (
|
|
397
|
+
var y = J(Se.current.type);
|
|
398
|
+
Ve[y] || (f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', J(Se.current.type), n.ref), Ve[y] = !0);
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
function hr(n, m) {
|
|
402
402
|
{
|
|
403
403
|
var y = function() {
|
|
404
|
-
mt || (mt = !0,
|
|
404
|
+
mt || (mt = !0, f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", m));
|
|
405
405
|
};
|
|
406
406
|
y.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
407
407
|
get: y,
|
|
@@ -412,7 +412,7 @@ function Xr() {
|
|
|
412
412
|
function pr(n, m) {
|
|
413
413
|
{
|
|
414
414
|
var y = function() {
|
|
415
|
-
gt || (gt = !0,
|
|
415
|
+
gt || (gt = !0, f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", m));
|
|
416
416
|
};
|
|
417
417
|
y.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
418
418
|
get: y,
|
|
@@ -420,57 +420,57 @@ function Xr() {
|
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
var xr = function(n, m, y,
|
|
424
|
-
var
|
|
423
|
+
var xr = function(n, m, y, j, z, O, D) {
|
|
424
|
+
var E = {
|
|
425
425
|
// This tag allows us to uniquely identify this as a React Element
|
|
426
426
|
$$typeof: r,
|
|
427
427
|
// Built-in properties that belong on the element
|
|
428
428
|
type: n,
|
|
429
429
|
key: m,
|
|
430
430
|
ref: y,
|
|
431
|
-
props:
|
|
431
|
+
props: D,
|
|
432
432
|
// Record the component responsible for creating this element.
|
|
433
433
|
_owner: O
|
|
434
434
|
};
|
|
435
|
-
return
|
|
435
|
+
return E._store = {}, Object.defineProperty(E._store, "validated", {
|
|
436
436
|
configurable: !1,
|
|
437
437
|
enumerable: !1,
|
|
438
438
|
writable: !0,
|
|
439
439
|
value: !1
|
|
440
|
-
}), Object.defineProperty(
|
|
440
|
+
}), Object.defineProperty(E, "_self", {
|
|
441
441
|
configurable: !1,
|
|
442
442
|
enumerable: !1,
|
|
443
443
|
writable: !1,
|
|
444
|
-
value:
|
|
445
|
-
}), Object.defineProperty(
|
|
444
|
+
value: j
|
|
445
|
+
}), Object.defineProperty(E, "_source", {
|
|
446
446
|
configurable: !1,
|
|
447
447
|
enumerable: !1,
|
|
448
448
|
writable: !1,
|
|
449
|
-
value:
|
|
450
|
-
}), Object.freeze && (Object.freeze(
|
|
449
|
+
value: z
|
|
450
|
+
}), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
|
|
451
451
|
};
|
|
452
|
-
function vr(n, m, y,
|
|
452
|
+
function vr(n, m, y, j, z) {
|
|
453
453
|
{
|
|
454
|
-
var O,
|
|
455
|
-
y !== void 0 && (bt(y),
|
|
454
|
+
var O, D = {}, E = null, Q = null;
|
|
455
|
+
y !== void 0 && (bt(y), E = "" + y), gr(m) && (bt(m.key), E = "" + m.key), mr(m) && (Q = m.ref, fr(m, z));
|
|
456
456
|
for (O in m)
|
|
457
|
-
Ce.call(m, O) && !br.hasOwnProperty(O) && (
|
|
457
|
+
Ce.call(m, O) && !br.hasOwnProperty(O) && (D[O] = m[O]);
|
|
458
458
|
if (n && n.defaultProps) {
|
|
459
|
-
var
|
|
460
|
-
for (O in
|
|
461
|
-
|
|
459
|
+
var Y = n.defaultProps;
|
|
460
|
+
for (O in Y)
|
|
461
|
+
D[O] === void 0 && (D[O] = Y[O]);
|
|
462
462
|
}
|
|
463
|
-
if (
|
|
464
|
-
var
|
|
465
|
-
|
|
463
|
+
if (E || Q) {
|
|
464
|
+
var U = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
465
|
+
E && hr(D, U), Q && pr(D, U);
|
|
466
466
|
}
|
|
467
|
-
return xr(n,
|
|
467
|
+
return xr(n, E, Q, z, j, Se.current, D);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
var Be = k.ReactCurrentOwner, ft = k.ReactDebugCurrentFrame;
|
|
471
471
|
function xe(n) {
|
|
472
472
|
if (n) {
|
|
473
|
-
var m = n._owner, y =
|
|
473
|
+
var m = n._owner, y = ze(n.type, n._source, m ? m.type : null);
|
|
474
474
|
ft.setExtraStackFrame(y);
|
|
475
475
|
} else
|
|
476
476
|
ft.setExtraStackFrame(null);
|
|
@@ -483,7 +483,7 @@ function Xr() {
|
|
|
483
483
|
function ht() {
|
|
484
484
|
{
|
|
485
485
|
if (Be.current) {
|
|
486
|
-
var n =
|
|
486
|
+
var n = J(Be.current.type);
|
|
487
487
|
if (n)
|
|
488
488
|
return `
|
|
489
489
|
|
|
@@ -517,8 +517,8 @@ Check the top-level render call using <` + y + ">.");
|
|
|
517
517
|
if (pt[y])
|
|
518
518
|
return;
|
|
519
519
|
pt[y] = !0;
|
|
520
|
-
var
|
|
521
|
-
n && n._owner && n._owner !== Be.current && (
|
|
520
|
+
var j = "";
|
|
521
|
+
n && n._owner && n._owner !== Be.current && (j = " It was passed a child from " + J(n._owner.type) + "."), xe(n), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, j), xe(null);
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
function vt(n, m) {
|
|
@@ -527,16 +527,16 @@ Check the top-level render call using <` + y + ">.");
|
|
|
527
527
|
return;
|
|
528
528
|
if ($e(n))
|
|
529
529
|
for (var y = 0; y < n.length; y++) {
|
|
530
|
-
var
|
|
531
|
-
Ye(
|
|
530
|
+
var j = n[y];
|
|
531
|
+
Ye(j) && xt(j, m);
|
|
532
532
|
}
|
|
533
533
|
else if (Ye(n))
|
|
534
534
|
n._store && (n._store.validated = !0);
|
|
535
535
|
else if (n) {
|
|
536
|
-
var
|
|
537
|
-
if (typeof
|
|
538
|
-
for (var O =
|
|
539
|
-
Ye(
|
|
536
|
+
var z = h(n);
|
|
537
|
+
if (typeof z == "function" && z !== n.entries)
|
|
538
|
+
for (var O = z.call(n), D; !(D = O.next()).done; )
|
|
539
|
+
Ye(D.value) && xt(D.value, m);
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
}
|
|
@@ -548,70 +548,70 @@ Check the top-level render call using <` + y + ">.");
|
|
|
548
548
|
var y;
|
|
549
549
|
if (typeof m == "function")
|
|
550
550
|
y = m.propTypes;
|
|
551
|
-
else if (typeof m == "object" && (m.$$typeof ===
|
|
551
|
+
else if (typeof m == "object" && (m.$$typeof === b || // Note: Memo only checks outer props here.
|
|
552
552
|
// Inner props are checked in the reconciler.
|
|
553
|
-
m.$$typeof ===
|
|
553
|
+
m.$$typeof === g))
|
|
554
554
|
y = m.propTypes;
|
|
555
555
|
else
|
|
556
556
|
return;
|
|
557
557
|
if (y) {
|
|
558
|
-
var
|
|
559
|
-
ir(y, n.props, "prop",
|
|
558
|
+
var j = J(m);
|
|
559
|
+
ir(y, n.props, "prop", j, n);
|
|
560
560
|
} else if (m.PropTypes !== void 0 && !Ge) {
|
|
561
561
|
Ge = !0;
|
|
562
|
-
var
|
|
563
|
-
|
|
562
|
+
var z = J(m);
|
|
563
|
+
f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", z || "Unknown");
|
|
564
564
|
}
|
|
565
|
-
typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved &&
|
|
565
|
+
typeof m.getDefaultProps == "function" && !m.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
function jr(n) {
|
|
569
569
|
{
|
|
570
570
|
for (var m = Object.keys(n.props), y = 0; y < m.length; y++) {
|
|
571
|
-
var
|
|
572
|
-
if (
|
|
573
|
-
xe(n),
|
|
571
|
+
var j = m[y];
|
|
572
|
+
if (j !== "children" && j !== "key") {
|
|
573
|
+
xe(n), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", j), xe(null);
|
|
574
574
|
break;
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
n.ref !== null && (xe(n),
|
|
577
|
+
n.ref !== null && (xe(n), f("Invalid attribute `ref` supplied to `React.Fragment`."), xe(null));
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
var yt = {};
|
|
581
|
-
function wt(n, m, y,
|
|
581
|
+
function wt(n, m, y, j, z, O) {
|
|
582
582
|
{
|
|
583
|
-
var
|
|
584
|
-
if (!
|
|
585
|
-
var
|
|
586
|
-
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (
|
|
583
|
+
var D = F(n);
|
|
584
|
+
if (!D) {
|
|
585
|
+
var E = "";
|
|
586
|
+
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (E += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
587
587
|
var Q = yr();
|
|
588
|
-
Q ?
|
|
589
|
-
var
|
|
590
|
-
n === null ?
|
|
588
|
+
Q ? E += Q : E += ht();
|
|
589
|
+
var Y;
|
|
590
|
+
n === null ? Y = "null" : $e(n) ? Y = "array" : n !== void 0 && n.$$typeof === r ? (Y = "<" + (J(n.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : Y = typeof n, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Y, E);
|
|
591
591
|
}
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
594
|
-
return
|
|
595
|
-
if (
|
|
592
|
+
var U = vr(n, m, y, z, O);
|
|
593
|
+
if (U == null)
|
|
594
|
+
return U;
|
|
595
|
+
if (D) {
|
|
596
596
|
var oe = m.children;
|
|
597
597
|
if (oe !== void 0)
|
|
598
|
-
if (
|
|
598
|
+
if (j)
|
|
599
599
|
if ($e(oe)) {
|
|
600
600
|
for (var ve = 0; ve < oe.length; ve++)
|
|
601
601
|
vt(oe[ve], n);
|
|
602
602
|
Object.freeze && Object.freeze(oe);
|
|
603
603
|
} else
|
|
604
|
-
|
|
604
|
+
f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
605
605
|
else
|
|
606
606
|
vt(oe, n);
|
|
607
607
|
}
|
|
608
608
|
if (Ce.call(m, "key")) {
|
|
609
|
-
var pe =
|
|
609
|
+
var pe = J(n), ee = Object.keys(m).filter(function(Er) {
|
|
610
610
|
return Er !== "key";
|
|
611
|
-
}), qe =
|
|
611
|
+
}), qe = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
612
612
|
if (!yt[pe + qe]) {
|
|
613
|
-
var Mr =
|
|
614
|
-
|
|
613
|
+
var Mr = ee.length > 0 ? "{" + ee.join(": ..., ") + ": ...}" : "{}";
|
|
614
|
+
f(`A props object containing a "key" prop is being spread into JSX:
|
|
615
615
|
let props = %s;
|
|
616
616
|
<%s {...props} />
|
|
617
617
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -619,7 +619,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
619
619
|
<%s key={someKey} {...props} />`, qe, pe, Mr, pe), yt[pe + qe] = !0;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
return n === o ? jr(
|
|
622
|
+
return n === o ? jr(U) : kr(U), U;
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
function Cr(n, m, y) {
|
|
@@ -634,7 +634,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
634
634
|
}
|
|
635
635
|
process.env.NODE_ENV === "production" ? Je.exports = Ur() : Je.exports = Xr();
|
|
636
636
|
var s = Je.exports;
|
|
637
|
-
const Da =
|
|
637
|
+
const Da = L(
|
|
638
638
|
({ rounded: e = !0, ...r }, t) => {
|
|
639
639
|
const o = e ? "rounded-full" : "rounded-sm";
|
|
640
640
|
if (!r.src)
|
|
@@ -658,7 +658,7 @@ function $t(e) {
|
|
|
658
658
|
} else for (t in e) e[t] && (o && (o += " "), o += t);
|
|
659
659
|
return o;
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function te() {
|
|
662
662
|
for (var e, r, t = 0, o = "", i = arguments.length; t < i; t++) (e = arguments[t]) && (r = $t(e)) && (o && (o += " "), o += r);
|
|
663
663
|
return o;
|
|
664
664
|
}
|
|
@@ -673,8 +673,8 @@ const rt = "-", Hr = (e) => {
|
|
|
673
673
|
return d[0] === "" && d.length !== 1 && d.shift(), Vt(d, r) || Jr(l);
|
|
674
674
|
},
|
|
675
675
|
getConflictingClassGroupIds: (l, d) => {
|
|
676
|
-
const
|
|
677
|
-
return d && o[l] ? [...
|
|
676
|
+
const b = t[l] || [];
|
|
677
|
+
return d && o[l] ? [...b, ...o[l]] : b;
|
|
678
678
|
}
|
|
679
679
|
};
|
|
680
680
|
}, Vt = (e, r) => {
|
|
@@ -769,28 +769,28 @@ const rt = "-", Hr = (e) => {
|
|
|
769
769
|
separator: r,
|
|
770
770
|
experimentalParseClassName: t
|
|
771
771
|
} = e, o = r.length === 1, i = r[0], a = r.length, l = (d) => {
|
|
772
|
-
const
|
|
773
|
-
let c = 0, u = 0,
|
|
774
|
-
for (let
|
|
775
|
-
let k = d[
|
|
772
|
+
const b = [];
|
|
773
|
+
let c = 0, u = 0, g;
|
|
774
|
+
for (let h = 0; h < d.length; h++) {
|
|
775
|
+
let k = d[h];
|
|
776
776
|
if (c === 0) {
|
|
777
|
-
if (k === i && (o || d.slice(
|
|
778
|
-
|
|
777
|
+
if (k === i && (o || d.slice(h, h + a) === r)) {
|
|
778
|
+
b.push(d.slice(u, h)), u = h + a;
|
|
779
779
|
continue;
|
|
780
780
|
}
|
|
781
781
|
if (k === "/") {
|
|
782
|
-
|
|
782
|
+
g = h;
|
|
783
783
|
continue;
|
|
784
784
|
}
|
|
785
785
|
}
|
|
786
786
|
k === "[" ? c++ : k === "]" && c--;
|
|
787
787
|
}
|
|
788
|
-
const
|
|
788
|
+
const p = b.length === 0 ? d : d.substring(u), v = p.startsWith(Bt), x = v ? p.substring(1) : p, w = g && g > u ? g - u : void 0;
|
|
789
789
|
return {
|
|
790
|
-
modifiers:
|
|
790
|
+
modifiers: b,
|
|
791
791
|
hasImportantModifier: v,
|
|
792
|
-
baseClassName:
|
|
793
|
-
maybePostfixModifierPosition:
|
|
792
|
+
baseClassName: x,
|
|
793
|
+
maybePostfixModifierPosition: w
|
|
794
794
|
};
|
|
795
795
|
};
|
|
796
796
|
return t ? (d) => t({
|
|
@@ -816,33 +816,33 @@ const rt = "-", Hr = (e) => {
|
|
|
816
816
|
getConflictingClassGroupIds: i
|
|
817
817
|
} = r, a = [], l = e.trim().split(nn);
|
|
818
818
|
let d = "";
|
|
819
|
-
for (let
|
|
820
|
-
const c = l[
|
|
819
|
+
for (let b = l.length - 1; b >= 0; b -= 1) {
|
|
820
|
+
const c = l[b], {
|
|
821
821
|
modifiers: u,
|
|
822
|
-
hasImportantModifier:
|
|
823
|
-
baseClassName:
|
|
822
|
+
hasImportantModifier: g,
|
|
823
|
+
baseClassName: p,
|
|
824
824
|
maybePostfixModifierPosition: v
|
|
825
825
|
} = t(c);
|
|
826
|
-
let
|
|
827
|
-
if (!
|
|
828
|
-
if (!
|
|
826
|
+
let x = !!v, w = o(x ? p.substring(0, v) : p);
|
|
827
|
+
if (!w) {
|
|
828
|
+
if (!x) {
|
|
829
829
|
d = c + (d.length > 0 ? " " + d : d);
|
|
830
830
|
continue;
|
|
831
831
|
}
|
|
832
|
-
if (
|
|
832
|
+
if (w = o(p), !w) {
|
|
833
833
|
d = c + (d.length > 0 ? " " + d : d);
|
|
834
834
|
continue;
|
|
835
835
|
}
|
|
836
|
-
|
|
836
|
+
x = !1;
|
|
837
837
|
}
|
|
838
|
-
const
|
|
839
|
-
if (a.includes(
|
|
838
|
+
const h = tn(u).join(":"), k = g ? h + Bt : h, f = k + w;
|
|
839
|
+
if (a.includes(f))
|
|
840
840
|
continue;
|
|
841
|
-
a.push(
|
|
842
|
-
const S = i(
|
|
843
|
-
for (let
|
|
844
|
-
const
|
|
845
|
-
a.push(k +
|
|
841
|
+
a.push(f);
|
|
842
|
+
const S = i(w, x);
|
|
843
|
+
for (let C = 0; C < S.length; ++C) {
|
|
844
|
+
const P = S[C];
|
|
845
|
+
a.push(k + P);
|
|
846
846
|
}
|
|
847
847
|
d = c + (d.length > 0 ? " " + d : d);
|
|
848
848
|
}
|
|
@@ -864,16 +864,16 @@ const Gt = (e) => {
|
|
|
864
864
|
};
|
|
865
865
|
function sn(e, ...r) {
|
|
866
866
|
let t, o, i, a = l;
|
|
867
|
-
function l(
|
|
868
|
-
const c = r.reduce((u,
|
|
869
|
-
return t = rn(c), o = t.cache.get, i = t.cache.set, a = d, d(
|
|
867
|
+
function l(b) {
|
|
868
|
+
const c = r.reduce((u, g) => g(u), e());
|
|
869
|
+
return t = rn(c), o = t.cache.get, i = t.cache.set, a = d, d(b);
|
|
870
870
|
}
|
|
871
|
-
function d(
|
|
872
|
-
const c = o(
|
|
871
|
+
function d(b) {
|
|
872
|
+
const c = o(b);
|
|
873
873
|
if (c)
|
|
874
874
|
return c;
|
|
875
|
-
const u = on(
|
|
876
|
-
return i(
|
|
875
|
+
const u = on(b, t);
|
|
876
|
+
return i(b, u), u;
|
|
877
877
|
}
|
|
878
878
|
return function() {
|
|
879
879
|
return a(an.apply(null, arguments));
|
|
@@ -882,7 +882,7 @@ function sn(e, ...r) {
|
|
|
882
882
|
const V = (e) => {
|
|
883
883
|
const r = (t) => t[e] || [];
|
|
884
884
|
return r.isThemeGetter = !0, r;
|
|
885
|
-
}, Yt = /^\[(?:([a-z-]+):)?(.+)\]$/i, ln = /^\d+\/\d+$/, dn = /* @__PURE__ */ new Set(["px", "full", "screen"]), cn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, un = /\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$/, bn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, mn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, gn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,
|
|
885
|
+
}, Yt = /^\[(?:([a-z-]+):)?(.+)\]$/i, ln = /^\d+\/\d+$/, dn = /* @__PURE__ */ new Set(["px", "full", "screen"]), cn = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, un = /\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$/, bn = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, mn = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, gn = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, ce = (e) => ye(e) || dn.has(e) || ln.test(e), ge = (e) => we(e, "length", kn), ye = (e) => !!e && !Number.isNaN(Number(e)), Xe = (e) => we(e, "number", ye), Me = (e) => !!e && Number.isInteger(Number(e)), fn = (e) => e.endsWith("%") && ye(e.slice(0, -1)), N = (e) => Yt.test(e), fe = (e) => cn.test(e), hn = /* @__PURE__ */ new Set(["length", "size", "percentage"]), pn = (e) => we(e, hn, qt), xn = (e) => we(e, "position", qt), vn = /* @__PURE__ */ new Set(["image", "url"]), yn = (e) => we(e, vn, Cn), wn = (e) => we(e, "", jn), Ee = () => !0, we = (e, r, t) => {
|
|
886
886
|
const o = Yt.exec(e);
|
|
887
887
|
return o ? o[1] ? typeof r == "string" ? o[1] === r : r.has(o[1]) : t(o[2]) : !1;
|
|
888
888
|
}, kn = (e) => (
|
|
@@ -891,36 +891,36 @@ const V = (e) => {
|
|
|
891
891
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
892
892
|
un.test(e) && !bn.test(e)
|
|
893
893
|
), qt = () => !1, jn = (e) => mn.test(e), Cn = (e) => gn.test(e), Sn = () => {
|
|
894
|
-
const e = V("colors"), r = V("spacing"), t = V("blur"), o = V("brightness"), i = V("borderColor"), a = V("borderRadius"), l = V("borderSpacing"), d = V("borderWidth"),
|
|
894
|
+
const e = V("colors"), r = V("spacing"), t = V("blur"), o = V("brightness"), i = V("borderColor"), a = V("borderRadius"), l = V("borderSpacing"), d = V("borderWidth"), b = V("contrast"), c = V("grayscale"), u = V("hueRotate"), g = V("invert"), p = V("gap"), v = V("gradientColorStops"), x = V("gradientColorStopPositions"), w = V("inset"), h = V("margin"), k = V("opacity"), f = V("padding"), S = V("saturate"), C = V("scale"), P = V("sepia"), $ = V("skew"), W = V("space"), A = V("translate"), G = () => ["auto", "contain", "none"], F = () => ["auto", "hidden", "clip", "visible", "scroll"], re = () => ["auto", N, r], R = () => [N, r], J = () => ["", ce, ge], K = () => ["auto", ye, N], se = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Z = () => ["solid", "dashed", "dotted", "double", "none"], be = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], me = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], M = () => ["", "0", N], B = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], X = () => [ye, N];
|
|
895
895
|
return {
|
|
896
896
|
cacheSize: 500,
|
|
897
897
|
separator: ":",
|
|
898
898
|
theme: {
|
|
899
899
|
colors: [Ee],
|
|
900
|
-
spacing: [
|
|
901
|
-
blur: ["none", "",
|
|
902
|
-
brightness:
|
|
900
|
+
spacing: [ce, ge],
|
|
901
|
+
blur: ["none", "", fe, N],
|
|
902
|
+
brightness: X(),
|
|
903
903
|
borderColor: [e],
|
|
904
|
-
borderRadius: ["none", "", "full",
|
|
905
|
-
borderSpacing:
|
|
906
|
-
borderWidth:
|
|
907
|
-
contrast:
|
|
908
|
-
grayscale:
|
|
909
|
-
hueRotate:
|
|
910
|
-
invert:
|
|
911
|
-
gap:
|
|
904
|
+
borderRadius: ["none", "", "full", fe, N],
|
|
905
|
+
borderSpacing: R(),
|
|
906
|
+
borderWidth: J(),
|
|
907
|
+
contrast: X(),
|
|
908
|
+
grayscale: M(),
|
|
909
|
+
hueRotate: X(),
|
|
910
|
+
invert: M(),
|
|
911
|
+
gap: R(),
|
|
912
912
|
gradientColorStops: [e],
|
|
913
|
-
gradientColorStopPositions: [fn,
|
|
914
|
-
inset:
|
|
915
|
-
margin:
|
|
916
|
-
opacity:
|
|
917
|
-
padding:
|
|
918
|
-
saturate:
|
|
919
|
-
scale:
|
|
920
|
-
sepia:
|
|
921
|
-
skew:
|
|
922
|
-
space:
|
|
923
|
-
translate:
|
|
913
|
+
gradientColorStopPositions: [fn, ge],
|
|
914
|
+
inset: re(),
|
|
915
|
+
margin: re(),
|
|
916
|
+
opacity: X(),
|
|
917
|
+
padding: R(),
|
|
918
|
+
saturate: X(),
|
|
919
|
+
scale: X(),
|
|
920
|
+
sepia: M(),
|
|
921
|
+
skew: X(),
|
|
922
|
+
space: R(),
|
|
923
|
+
translate: R()
|
|
924
924
|
},
|
|
925
925
|
classGroups: {
|
|
926
926
|
// Layout
|
|
@@ -929,7 +929,7 @@ const V = (e) => {
|
|
|
929
929
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
930
930
|
*/
|
|
931
931
|
aspect: [{
|
|
932
|
-
aspect: ["auto", "square", "video",
|
|
932
|
+
aspect: ["auto", "square", "video", N]
|
|
933
933
|
}],
|
|
934
934
|
/**
|
|
935
935
|
* Container
|
|
@@ -941,21 +941,21 @@ const V = (e) => {
|
|
|
941
941
|
* @see https://tailwindcss.com/docs/columns
|
|
942
942
|
*/
|
|
943
943
|
columns: [{
|
|
944
|
-
columns: [
|
|
944
|
+
columns: [fe]
|
|
945
945
|
}],
|
|
946
946
|
/**
|
|
947
947
|
* Break After
|
|
948
948
|
* @see https://tailwindcss.com/docs/break-after
|
|
949
949
|
*/
|
|
950
950
|
"break-after": [{
|
|
951
|
-
"break-after":
|
|
951
|
+
"break-after": B()
|
|
952
952
|
}],
|
|
953
953
|
/**
|
|
954
954
|
* Break Before
|
|
955
955
|
* @see https://tailwindcss.com/docs/break-before
|
|
956
956
|
*/
|
|
957
957
|
"break-before": [{
|
|
958
|
-
"break-before":
|
|
958
|
+
"break-before": B()
|
|
959
959
|
}],
|
|
960
960
|
/**
|
|
961
961
|
* Break Inside
|
|
@@ -1014,49 +1014,49 @@ const V = (e) => {
|
|
|
1014
1014
|
* @see https://tailwindcss.com/docs/object-position
|
|
1015
1015
|
*/
|
|
1016
1016
|
"object-position": [{
|
|
1017
|
-
object: [...
|
|
1017
|
+
object: [...se(), N]
|
|
1018
1018
|
}],
|
|
1019
1019
|
/**
|
|
1020
1020
|
* Overflow
|
|
1021
1021
|
* @see https://tailwindcss.com/docs/overflow
|
|
1022
1022
|
*/
|
|
1023
1023
|
overflow: [{
|
|
1024
|
-
overflow:
|
|
1024
|
+
overflow: F()
|
|
1025
1025
|
}],
|
|
1026
1026
|
/**
|
|
1027
1027
|
* Overflow X
|
|
1028
1028
|
* @see https://tailwindcss.com/docs/overflow
|
|
1029
1029
|
*/
|
|
1030
1030
|
"overflow-x": [{
|
|
1031
|
-
"overflow-x":
|
|
1031
|
+
"overflow-x": F()
|
|
1032
1032
|
}],
|
|
1033
1033
|
/**
|
|
1034
1034
|
* Overflow Y
|
|
1035
1035
|
* @see https://tailwindcss.com/docs/overflow
|
|
1036
1036
|
*/
|
|
1037
1037
|
"overflow-y": [{
|
|
1038
|
-
"overflow-y":
|
|
1038
|
+
"overflow-y": F()
|
|
1039
1039
|
}],
|
|
1040
1040
|
/**
|
|
1041
1041
|
* Overscroll Behavior
|
|
1042
1042
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1043
1043
|
*/
|
|
1044
1044
|
overscroll: [{
|
|
1045
|
-
overscroll:
|
|
1045
|
+
overscroll: G()
|
|
1046
1046
|
}],
|
|
1047
1047
|
/**
|
|
1048
1048
|
* Overscroll Behavior X
|
|
1049
1049
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1050
1050
|
*/
|
|
1051
1051
|
"overscroll-x": [{
|
|
1052
|
-
"overscroll-x":
|
|
1052
|
+
"overscroll-x": G()
|
|
1053
1053
|
}],
|
|
1054
1054
|
/**
|
|
1055
1055
|
* Overscroll Behavior Y
|
|
1056
1056
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1057
1057
|
*/
|
|
1058
1058
|
"overscroll-y": [{
|
|
1059
|
-
"overscroll-y":
|
|
1059
|
+
"overscroll-y": G()
|
|
1060
1060
|
}],
|
|
1061
1061
|
/**
|
|
1062
1062
|
* Position
|
|
@@ -1068,63 +1068,63 @@ const V = (e) => {
|
|
|
1068
1068
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1069
1069
|
*/
|
|
1070
1070
|
inset: [{
|
|
1071
|
-
inset: [
|
|
1071
|
+
inset: [w]
|
|
1072
1072
|
}],
|
|
1073
1073
|
/**
|
|
1074
1074
|
* Right / Left
|
|
1075
1075
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1076
1076
|
*/
|
|
1077
1077
|
"inset-x": [{
|
|
1078
|
-
"inset-x": [
|
|
1078
|
+
"inset-x": [w]
|
|
1079
1079
|
}],
|
|
1080
1080
|
/**
|
|
1081
1081
|
* Top / Bottom
|
|
1082
1082
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1083
1083
|
*/
|
|
1084
1084
|
"inset-y": [{
|
|
1085
|
-
"inset-y": [
|
|
1085
|
+
"inset-y": [w]
|
|
1086
1086
|
}],
|
|
1087
1087
|
/**
|
|
1088
1088
|
* Start
|
|
1089
1089
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1090
1090
|
*/
|
|
1091
1091
|
start: [{
|
|
1092
|
-
start: [
|
|
1092
|
+
start: [w]
|
|
1093
1093
|
}],
|
|
1094
1094
|
/**
|
|
1095
1095
|
* End
|
|
1096
1096
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1097
1097
|
*/
|
|
1098
1098
|
end: [{
|
|
1099
|
-
end: [
|
|
1099
|
+
end: [w]
|
|
1100
1100
|
}],
|
|
1101
1101
|
/**
|
|
1102
1102
|
* Top
|
|
1103
1103
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1104
1104
|
*/
|
|
1105
1105
|
top: [{
|
|
1106
|
-
top: [
|
|
1106
|
+
top: [w]
|
|
1107
1107
|
}],
|
|
1108
1108
|
/**
|
|
1109
1109
|
* Right
|
|
1110
1110
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1111
1111
|
*/
|
|
1112
1112
|
right: [{
|
|
1113
|
-
right: [
|
|
1113
|
+
right: [w]
|
|
1114
1114
|
}],
|
|
1115
1115
|
/**
|
|
1116
1116
|
* Bottom
|
|
1117
1117
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1118
1118
|
*/
|
|
1119
1119
|
bottom: [{
|
|
1120
|
-
bottom: [
|
|
1120
|
+
bottom: [w]
|
|
1121
1121
|
}],
|
|
1122
1122
|
/**
|
|
1123
1123
|
* Left
|
|
1124
1124
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1125
1125
|
*/
|
|
1126
1126
|
left: [{
|
|
1127
|
-
left: [
|
|
1127
|
+
left: [w]
|
|
1128
1128
|
}],
|
|
1129
1129
|
/**
|
|
1130
1130
|
* Visibility
|
|
@@ -1136,7 +1136,7 @@ const V = (e) => {
|
|
|
1136
1136
|
* @see https://tailwindcss.com/docs/z-index
|
|
1137
1137
|
*/
|
|
1138
1138
|
z: [{
|
|
1139
|
-
z: ["auto", Me,
|
|
1139
|
+
z: ["auto", Me, N]
|
|
1140
1140
|
}],
|
|
1141
1141
|
// Flexbox and Grid
|
|
1142
1142
|
/**
|
|
@@ -1144,7 +1144,7 @@ const V = (e) => {
|
|
|
1144
1144
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1145
1145
|
*/
|
|
1146
1146
|
basis: [{
|
|
1147
|
-
basis:
|
|
1147
|
+
basis: re()
|
|
1148
1148
|
}],
|
|
1149
1149
|
/**
|
|
1150
1150
|
* Flex Direction
|
|
@@ -1165,28 +1165,28 @@ const V = (e) => {
|
|
|
1165
1165
|
* @see https://tailwindcss.com/docs/flex
|
|
1166
1166
|
*/
|
|
1167
1167
|
flex: [{
|
|
1168
|
-
flex: ["1", "auto", "initial", "none",
|
|
1168
|
+
flex: ["1", "auto", "initial", "none", N]
|
|
1169
1169
|
}],
|
|
1170
1170
|
/**
|
|
1171
1171
|
* Flex Grow
|
|
1172
1172
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1173
1173
|
*/
|
|
1174
1174
|
grow: [{
|
|
1175
|
-
grow:
|
|
1175
|
+
grow: M()
|
|
1176
1176
|
}],
|
|
1177
1177
|
/**
|
|
1178
1178
|
* Flex Shrink
|
|
1179
1179
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1180
1180
|
*/
|
|
1181
1181
|
shrink: [{
|
|
1182
|
-
shrink:
|
|
1182
|
+
shrink: M()
|
|
1183
1183
|
}],
|
|
1184
1184
|
/**
|
|
1185
1185
|
* Order
|
|
1186
1186
|
* @see https://tailwindcss.com/docs/order
|
|
1187
1187
|
*/
|
|
1188
1188
|
order: [{
|
|
1189
|
-
order: ["first", "last", "none", Me,
|
|
1189
|
+
order: ["first", "last", "none", Me, N]
|
|
1190
1190
|
}],
|
|
1191
1191
|
/**
|
|
1192
1192
|
* Grid Template Columns
|
|
@@ -1201,22 +1201,22 @@ const V = (e) => {
|
|
|
1201
1201
|
*/
|
|
1202
1202
|
"col-start-end": [{
|
|
1203
1203
|
col: ["auto", {
|
|
1204
|
-
span: ["full", Me,
|
|
1205
|
-
},
|
|
1204
|
+
span: ["full", Me, N]
|
|
1205
|
+
}, N]
|
|
1206
1206
|
}],
|
|
1207
1207
|
/**
|
|
1208
1208
|
* Grid Column Start
|
|
1209
1209
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1210
1210
|
*/
|
|
1211
1211
|
"col-start": [{
|
|
1212
|
-
"col-start":
|
|
1212
|
+
"col-start": K()
|
|
1213
1213
|
}],
|
|
1214
1214
|
/**
|
|
1215
1215
|
* Grid Column End
|
|
1216
1216
|
* @see https://tailwindcss.com/docs/grid-column
|
|
1217
1217
|
*/
|
|
1218
1218
|
"col-end": [{
|
|
1219
|
-
"col-end":
|
|
1219
|
+
"col-end": K()
|
|
1220
1220
|
}],
|
|
1221
1221
|
/**
|
|
1222
1222
|
* Grid Template Rows
|
|
@@ -1231,22 +1231,22 @@ const V = (e) => {
|
|
|
1231
1231
|
*/
|
|
1232
1232
|
"row-start-end": [{
|
|
1233
1233
|
row: ["auto", {
|
|
1234
|
-
span: [Me,
|
|
1235
|
-
},
|
|
1234
|
+
span: [Me, N]
|
|
1235
|
+
}, N]
|
|
1236
1236
|
}],
|
|
1237
1237
|
/**
|
|
1238
1238
|
* Grid Row Start
|
|
1239
1239
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1240
1240
|
*/
|
|
1241
1241
|
"row-start": [{
|
|
1242
|
-
"row-start":
|
|
1242
|
+
"row-start": K()
|
|
1243
1243
|
}],
|
|
1244
1244
|
/**
|
|
1245
1245
|
* Grid Row End
|
|
1246
1246
|
* @see https://tailwindcss.com/docs/grid-row
|
|
1247
1247
|
*/
|
|
1248
1248
|
"row-end": [{
|
|
1249
|
-
"row-end":
|
|
1249
|
+
"row-end": K()
|
|
1250
1250
|
}],
|
|
1251
1251
|
/**
|
|
1252
1252
|
* Grid Auto Flow
|
|
@@ -1260,42 +1260,42 @@ const V = (e) => {
|
|
|
1260
1260
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
1261
1261
|
*/
|
|
1262
1262
|
"auto-cols": [{
|
|
1263
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
1263
|
+
"auto-cols": ["auto", "min", "max", "fr", N]
|
|
1264
1264
|
}],
|
|
1265
1265
|
/**
|
|
1266
1266
|
* Grid Auto Rows
|
|
1267
1267
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
1268
1268
|
*/
|
|
1269
1269
|
"auto-rows": [{
|
|
1270
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
1270
|
+
"auto-rows": ["auto", "min", "max", "fr", N]
|
|
1271
1271
|
}],
|
|
1272
1272
|
/**
|
|
1273
1273
|
* Gap
|
|
1274
1274
|
* @see https://tailwindcss.com/docs/gap
|
|
1275
1275
|
*/
|
|
1276
1276
|
gap: [{
|
|
1277
|
-
gap: [
|
|
1277
|
+
gap: [p]
|
|
1278
1278
|
}],
|
|
1279
1279
|
/**
|
|
1280
1280
|
* Gap X
|
|
1281
1281
|
* @see https://tailwindcss.com/docs/gap
|
|
1282
1282
|
*/
|
|
1283
1283
|
"gap-x": [{
|
|
1284
|
-
"gap-x": [
|
|
1284
|
+
"gap-x": [p]
|
|
1285
1285
|
}],
|
|
1286
1286
|
/**
|
|
1287
1287
|
* Gap Y
|
|
1288
1288
|
* @see https://tailwindcss.com/docs/gap
|
|
1289
1289
|
*/
|
|
1290
1290
|
"gap-y": [{
|
|
1291
|
-
"gap-y": [
|
|
1291
|
+
"gap-y": [p]
|
|
1292
1292
|
}],
|
|
1293
1293
|
/**
|
|
1294
1294
|
* Justify Content
|
|
1295
1295
|
* @see https://tailwindcss.com/docs/justify-content
|
|
1296
1296
|
*/
|
|
1297
1297
|
"justify-content": [{
|
|
1298
|
-
justify: ["normal", ...
|
|
1298
|
+
justify: ["normal", ...me()]
|
|
1299
1299
|
}],
|
|
1300
1300
|
/**
|
|
1301
1301
|
* Justify Items
|
|
@@ -1316,7 +1316,7 @@ const V = (e) => {
|
|
|
1316
1316
|
* @see https://tailwindcss.com/docs/align-content
|
|
1317
1317
|
*/
|
|
1318
1318
|
"align-content": [{
|
|
1319
|
-
content: ["normal", ...
|
|
1319
|
+
content: ["normal", ...me(), "baseline"]
|
|
1320
1320
|
}],
|
|
1321
1321
|
/**
|
|
1322
1322
|
* Align Items
|
|
@@ -1337,7 +1337,7 @@ const V = (e) => {
|
|
|
1337
1337
|
* @see https://tailwindcss.com/docs/place-content
|
|
1338
1338
|
*/
|
|
1339
1339
|
"place-content": [{
|
|
1340
|
-
"place-content": [...
|
|
1340
|
+
"place-content": [...me(), "baseline"]
|
|
1341
1341
|
}],
|
|
1342
1342
|
/**
|
|
1343
1343
|
* Place Items
|
|
@@ -1359,133 +1359,133 @@ const V = (e) => {
|
|
|
1359
1359
|
* @see https://tailwindcss.com/docs/padding
|
|
1360
1360
|
*/
|
|
1361
1361
|
p: [{
|
|
1362
|
-
p: [
|
|
1362
|
+
p: [f]
|
|
1363
1363
|
}],
|
|
1364
1364
|
/**
|
|
1365
1365
|
* Padding X
|
|
1366
1366
|
* @see https://tailwindcss.com/docs/padding
|
|
1367
1367
|
*/
|
|
1368
1368
|
px: [{
|
|
1369
|
-
px: [
|
|
1369
|
+
px: [f]
|
|
1370
1370
|
}],
|
|
1371
1371
|
/**
|
|
1372
1372
|
* Padding Y
|
|
1373
1373
|
* @see https://tailwindcss.com/docs/padding
|
|
1374
1374
|
*/
|
|
1375
1375
|
py: [{
|
|
1376
|
-
py: [
|
|
1376
|
+
py: [f]
|
|
1377
1377
|
}],
|
|
1378
1378
|
/**
|
|
1379
1379
|
* Padding Start
|
|
1380
1380
|
* @see https://tailwindcss.com/docs/padding
|
|
1381
1381
|
*/
|
|
1382
1382
|
ps: [{
|
|
1383
|
-
ps: [
|
|
1383
|
+
ps: [f]
|
|
1384
1384
|
}],
|
|
1385
1385
|
/**
|
|
1386
1386
|
* Padding End
|
|
1387
1387
|
* @see https://tailwindcss.com/docs/padding
|
|
1388
1388
|
*/
|
|
1389
1389
|
pe: [{
|
|
1390
|
-
pe: [
|
|
1390
|
+
pe: [f]
|
|
1391
1391
|
}],
|
|
1392
1392
|
/**
|
|
1393
1393
|
* Padding Top
|
|
1394
1394
|
* @see https://tailwindcss.com/docs/padding
|
|
1395
1395
|
*/
|
|
1396
1396
|
pt: [{
|
|
1397
|
-
pt: [
|
|
1397
|
+
pt: [f]
|
|
1398
1398
|
}],
|
|
1399
1399
|
/**
|
|
1400
1400
|
* Padding Right
|
|
1401
1401
|
* @see https://tailwindcss.com/docs/padding
|
|
1402
1402
|
*/
|
|
1403
1403
|
pr: [{
|
|
1404
|
-
pr: [
|
|
1404
|
+
pr: [f]
|
|
1405
1405
|
}],
|
|
1406
1406
|
/**
|
|
1407
1407
|
* Padding Bottom
|
|
1408
1408
|
* @see https://tailwindcss.com/docs/padding
|
|
1409
1409
|
*/
|
|
1410
1410
|
pb: [{
|
|
1411
|
-
pb: [
|
|
1411
|
+
pb: [f]
|
|
1412
1412
|
}],
|
|
1413
1413
|
/**
|
|
1414
1414
|
* Padding Left
|
|
1415
1415
|
* @see https://tailwindcss.com/docs/padding
|
|
1416
1416
|
*/
|
|
1417
1417
|
pl: [{
|
|
1418
|
-
pl: [
|
|
1418
|
+
pl: [f]
|
|
1419
1419
|
}],
|
|
1420
1420
|
/**
|
|
1421
1421
|
* Margin
|
|
1422
1422
|
* @see https://tailwindcss.com/docs/margin
|
|
1423
1423
|
*/
|
|
1424
1424
|
m: [{
|
|
1425
|
-
m: [
|
|
1425
|
+
m: [h]
|
|
1426
1426
|
}],
|
|
1427
1427
|
/**
|
|
1428
1428
|
* Margin X
|
|
1429
1429
|
* @see https://tailwindcss.com/docs/margin
|
|
1430
1430
|
*/
|
|
1431
1431
|
mx: [{
|
|
1432
|
-
mx: [
|
|
1432
|
+
mx: [h]
|
|
1433
1433
|
}],
|
|
1434
1434
|
/**
|
|
1435
1435
|
* Margin Y
|
|
1436
1436
|
* @see https://tailwindcss.com/docs/margin
|
|
1437
1437
|
*/
|
|
1438
1438
|
my: [{
|
|
1439
|
-
my: [
|
|
1439
|
+
my: [h]
|
|
1440
1440
|
}],
|
|
1441
1441
|
/**
|
|
1442
1442
|
* Margin Start
|
|
1443
1443
|
* @see https://tailwindcss.com/docs/margin
|
|
1444
1444
|
*/
|
|
1445
1445
|
ms: [{
|
|
1446
|
-
ms: [
|
|
1446
|
+
ms: [h]
|
|
1447
1447
|
}],
|
|
1448
1448
|
/**
|
|
1449
1449
|
* Margin End
|
|
1450
1450
|
* @see https://tailwindcss.com/docs/margin
|
|
1451
1451
|
*/
|
|
1452
1452
|
me: [{
|
|
1453
|
-
me: [
|
|
1453
|
+
me: [h]
|
|
1454
1454
|
}],
|
|
1455
1455
|
/**
|
|
1456
1456
|
* Margin Top
|
|
1457
1457
|
* @see https://tailwindcss.com/docs/margin
|
|
1458
1458
|
*/
|
|
1459
1459
|
mt: [{
|
|
1460
|
-
mt: [
|
|
1460
|
+
mt: [h]
|
|
1461
1461
|
}],
|
|
1462
1462
|
/**
|
|
1463
1463
|
* Margin Right
|
|
1464
1464
|
* @see https://tailwindcss.com/docs/margin
|
|
1465
1465
|
*/
|
|
1466
1466
|
mr: [{
|
|
1467
|
-
mr: [
|
|
1467
|
+
mr: [h]
|
|
1468
1468
|
}],
|
|
1469
1469
|
/**
|
|
1470
1470
|
* Margin Bottom
|
|
1471
1471
|
* @see https://tailwindcss.com/docs/margin
|
|
1472
1472
|
*/
|
|
1473
1473
|
mb: [{
|
|
1474
|
-
mb: [
|
|
1474
|
+
mb: [h]
|
|
1475
1475
|
}],
|
|
1476
1476
|
/**
|
|
1477
1477
|
* Margin Left
|
|
1478
1478
|
* @see https://tailwindcss.com/docs/margin
|
|
1479
1479
|
*/
|
|
1480
1480
|
ml: [{
|
|
1481
|
-
ml: [
|
|
1481
|
+
ml: [h]
|
|
1482
1482
|
}],
|
|
1483
1483
|
/**
|
|
1484
1484
|
* Space Between X
|
|
1485
1485
|
* @see https://tailwindcss.com/docs/space
|
|
1486
1486
|
*/
|
|
1487
1487
|
"space-x": [{
|
|
1488
|
-
"space-x": [
|
|
1488
|
+
"space-x": [W]
|
|
1489
1489
|
}],
|
|
1490
1490
|
/**
|
|
1491
1491
|
* Space Between X Reverse
|
|
@@ -1497,7 +1497,7 @@ const V = (e) => {
|
|
|
1497
1497
|
* @see https://tailwindcss.com/docs/space
|
|
1498
1498
|
*/
|
|
1499
1499
|
"space-y": [{
|
|
1500
|
-
"space-y": [
|
|
1500
|
+
"space-y": [W]
|
|
1501
1501
|
}],
|
|
1502
1502
|
/**
|
|
1503
1503
|
* Space Between Y Reverse
|
|
@@ -1510,51 +1510,51 @@ const V = (e) => {
|
|
|
1510
1510
|
* @see https://tailwindcss.com/docs/width
|
|
1511
1511
|
*/
|
|
1512
1512
|
w: [{
|
|
1513
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
1513
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", N, r]
|
|
1514
1514
|
}],
|
|
1515
1515
|
/**
|
|
1516
1516
|
* Min-Width
|
|
1517
1517
|
* @see https://tailwindcss.com/docs/min-width
|
|
1518
1518
|
*/
|
|
1519
1519
|
"min-w": [{
|
|
1520
|
-
"min-w": [
|
|
1520
|
+
"min-w": [N, r, "min", "max", "fit"]
|
|
1521
1521
|
}],
|
|
1522
1522
|
/**
|
|
1523
1523
|
* Max-Width
|
|
1524
1524
|
* @see https://tailwindcss.com/docs/max-width
|
|
1525
1525
|
*/
|
|
1526
1526
|
"max-w": [{
|
|
1527
|
-
"max-w": [
|
|
1528
|
-
screen: [
|
|
1529
|
-
},
|
|
1527
|
+
"max-w": [N, r, "none", "full", "min", "max", "fit", "prose", {
|
|
1528
|
+
screen: [fe]
|
|
1529
|
+
}, fe]
|
|
1530
1530
|
}],
|
|
1531
1531
|
/**
|
|
1532
1532
|
* Height
|
|
1533
1533
|
* @see https://tailwindcss.com/docs/height
|
|
1534
1534
|
*/
|
|
1535
1535
|
h: [{
|
|
1536
|
-
h: [
|
|
1536
|
+
h: [N, r, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1537
1537
|
}],
|
|
1538
1538
|
/**
|
|
1539
1539
|
* Min-Height
|
|
1540
1540
|
* @see https://tailwindcss.com/docs/min-height
|
|
1541
1541
|
*/
|
|
1542
1542
|
"min-h": [{
|
|
1543
|
-
"min-h": [
|
|
1543
|
+
"min-h": [N, r, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1544
1544
|
}],
|
|
1545
1545
|
/**
|
|
1546
1546
|
* Max-Height
|
|
1547
1547
|
* @see https://tailwindcss.com/docs/max-height
|
|
1548
1548
|
*/
|
|
1549
1549
|
"max-h": [{
|
|
1550
|
-
"max-h": [
|
|
1550
|
+
"max-h": [N, r, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
1551
1551
|
}],
|
|
1552
1552
|
/**
|
|
1553
1553
|
* Size
|
|
1554
1554
|
* @see https://tailwindcss.com/docs/size
|
|
1555
1555
|
*/
|
|
1556
1556
|
size: [{
|
|
1557
|
-
size: [
|
|
1557
|
+
size: [N, r, "auto", "min", "max", "fit"]
|
|
1558
1558
|
}],
|
|
1559
1559
|
// Typography
|
|
1560
1560
|
/**
|
|
@@ -1562,7 +1562,7 @@ const V = (e) => {
|
|
|
1562
1562
|
* @see https://tailwindcss.com/docs/font-size
|
|
1563
1563
|
*/
|
|
1564
1564
|
"font-size": [{
|
|
1565
|
-
text: ["base",
|
|
1565
|
+
text: ["base", fe, ge]
|
|
1566
1566
|
}],
|
|
1567
1567
|
/**
|
|
1568
1568
|
* Font Smoothing
|
|
@@ -1623,7 +1623,7 @@ const V = (e) => {
|
|
|
1623
1623
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1624
1624
|
*/
|
|
1625
1625
|
tracking: [{
|
|
1626
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
1626
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", N]
|
|
1627
1627
|
}],
|
|
1628
1628
|
/**
|
|
1629
1629
|
* Line Clamp
|
|
@@ -1637,21 +1637,21 @@ const V = (e) => {
|
|
|
1637
1637
|
* @see https://tailwindcss.com/docs/line-height
|
|
1638
1638
|
*/
|
|
1639
1639
|
leading: [{
|
|
1640
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose",
|
|
1640
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", ce, N]
|
|
1641
1641
|
}],
|
|
1642
1642
|
/**
|
|
1643
1643
|
* List Style Image
|
|
1644
1644
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1645
1645
|
*/
|
|
1646
1646
|
"list-image": [{
|
|
1647
|
-
"list-image": ["none",
|
|
1647
|
+
"list-image": ["none", N]
|
|
1648
1648
|
}],
|
|
1649
1649
|
/**
|
|
1650
1650
|
* List Style Type
|
|
1651
1651
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1652
1652
|
*/
|
|
1653
1653
|
"list-style-type": [{
|
|
1654
|
-
list: ["none", "disc", "decimal",
|
|
1654
|
+
list: ["none", "disc", "decimal", N]
|
|
1655
1655
|
}],
|
|
1656
1656
|
/**
|
|
1657
1657
|
* List Style Position
|
|
@@ -1706,21 +1706,21 @@ const V = (e) => {
|
|
|
1706
1706
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1707
1707
|
*/
|
|
1708
1708
|
"text-decoration-style": [{
|
|
1709
|
-
decoration: [...
|
|
1709
|
+
decoration: [...Z(), "wavy"]
|
|
1710
1710
|
}],
|
|
1711
1711
|
/**
|
|
1712
1712
|
* Text Decoration Thickness
|
|
1713
1713
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1714
1714
|
*/
|
|
1715
1715
|
"text-decoration-thickness": [{
|
|
1716
|
-
decoration: ["auto", "from-font",
|
|
1716
|
+
decoration: ["auto", "from-font", ce, ge]
|
|
1717
1717
|
}],
|
|
1718
1718
|
/**
|
|
1719
1719
|
* Text Underline Offset
|
|
1720
1720
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1721
1721
|
*/
|
|
1722
1722
|
"underline-offset": [{
|
|
1723
|
-
"underline-offset": ["auto",
|
|
1723
|
+
"underline-offset": ["auto", ce, N]
|
|
1724
1724
|
}],
|
|
1725
1725
|
/**
|
|
1726
1726
|
* Text Decoration Color
|
|
@@ -1751,14 +1751,14 @@ const V = (e) => {
|
|
|
1751
1751
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1752
1752
|
*/
|
|
1753
1753
|
indent: [{
|
|
1754
|
-
indent:
|
|
1754
|
+
indent: R()
|
|
1755
1755
|
}],
|
|
1756
1756
|
/**
|
|
1757
1757
|
* Vertical Alignment
|
|
1758
1758
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1759
1759
|
*/
|
|
1760
1760
|
"vertical-align": [{
|
|
1761
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1761
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", N]
|
|
1762
1762
|
}],
|
|
1763
1763
|
/**
|
|
1764
1764
|
* Whitespace
|
|
@@ -1786,7 +1786,7 @@ const V = (e) => {
|
|
|
1786
1786
|
* @see https://tailwindcss.com/docs/content
|
|
1787
1787
|
*/
|
|
1788
1788
|
content: [{
|
|
1789
|
-
content: ["none",
|
|
1789
|
+
content: ["none", N]
|
|
1790
1790
|
}],
|
|
1791
1791
|
// Backgrounds
|
|
1792
1792
|
/**
|
|
@@ -1823,7 +1823,7 @@ const V = (e) => {
|
|
|
1823
1823
|
* @see https://tailwindcss.com/docs/background-position
|
|
1824
1824
|
*/
|
|
1825
1825
|
"bg-position": [{
|
|
1826
|
-
bg: [...
|
|
1826
|
+
bg: [...se(), xn]
|
|
1827
1827
|
}],
|
|
1828
1828
|
/**
|
|
1829
1829
|
* Background Repeat
|
|
@@ -1862,21 +1862,21 @@ const V = (e) => {
|
|
|
1862
1862
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1863
1863
|
*/
|
|
1864
1864
|
"gradient-from-pos": [{
|
|
1865
|
-
from: [
|
|
1865
|
+
from: [x]
|
|
1866
1866
|
}],
|
|
1867
1867
|
/**
|
|
1868
1868
|
* Gradient Color Stops Via Position
|
|
1869
1869
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1870
1870
|
*/
|
|
1871
1871
|
"gradient-via-pos": [{
|
|
1872
|
-
via: [
|
|
1872
|
+
via: [x]
|
|
1873
1873
|
}],
|
|
1874
1874
|
/**
|
|
1875
1875
|
* Gradient Color Stops To Position
|
|
1876
1876
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1877
1877
|
*/
|
|
1878
1878
|
"gradient-to-pos": [{
|
|
1879
|
-
to: [
|
|
1879
|
+
to: [x]
|
|
1880
1880
|
}],
|
|
1881
1881
|
/**
|
|
1882
1882
|
* Gradient Color Stops From
|
|
@@ -2080,7 +2080,7 @@ const V = (e) => {
|
|
|
2080
2080
|
* @see https://tailwindcss.com/docs/border-style
|
|
2081
2081
|
*/
|
|
2082
2082
|
"border-style": [{
|
|
2083
|
-
border: [...
|
|
2083
|
+
border: [...Z(), "hidden"]
|
|
2084
2084
|
}],
|
|
2085
2085
|
/**
|
|
2086
2086
|
* Divide Width X
|
|
@@ -2118,7 +2118,7 @@ const V = (e) => {
|
|
|
2118
2118
|
* @see https://tailwindcss.com/docs/divide-style
|
|
2119
2119
|
*/
|
|
2120
2120
|
"divide-style": [{
|
|
2121
|
-
divide:
|
|
2121
|
+
divide: Z()
|
|
2122
2122
|
}],
|
|
2123
2123
|
/**
|
|
2124
2124
|
* Border Color
|
|
@@ -2195,21 +2195,21 @@ const V = (e) => {
|
|
|
2195
2195
|
* @see https://tailwindcss.com/docs/outline-style
|
|
2196
2196
|
*/
|
|
2197
2197
|
"outline-style": [{
|
|
2198
|
-
outline: ["", ...
|
|
2198
|
+
outline: ["", ...Z()]
|
|
2199
2199
|
}],
|
|
2200
2200
|
/**
|
|
2201
2201
|
* Outline Offset
|
|
2202
2202
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2203
2203
|
*/
|
|
2204
2204
|
"outline-offset": [{
|
|
2205
|
-
"outline-offset": [
|
|
2205
|
+
"outline-offset": [ce, N]
|
|
2206
2206
|
}],
|
|
2207
2207
|
/**
|
|
2208
2208
|
* Outline Width
|
|
2209
2209
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2210
2210
|
*/
|
|
2211
2211
|
"outline-w": [{
|
|
2212
|
-
outline: [
|
|
2212
|
+
outline: [ce, ge]
|
|
2213
2213
|
}],
|
|
2214
2214
|
/**
|
|
2215
2215
|
* Outline Color
|
|
@@ -2223,7 +2223,7 @@ const V = (e) => {
|
|
|
2223
2223
|
* @see https://tailwindcss.com/docs/ring-width
|
|
2224
2224
|
*/
|
|
2225
2225
|
"ring-w": [{
|
|
2226
|
-
ring:
|
|
2226
|
+
ring: J()
|
|
2227
2227
|
}],
|
|
2228
2228
|
/**
|
|
2229
2229
|
* Ring Width Inset
|
|
@@ -2249,7 +2249,7 @@ const V = (e) => {
|
|
|
2249
2249
|
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
2250
2250
|
*/
|
|
2251
2251
|
"ring-offset-w": [{
|
|
2252
|
-
"ring-offset": [
|
|
2252
|
+
"ring-offset": [ce, ge]
|
|
2253
2253
|
}],
|
|
2254
2254
|
/**
|
|
2255
2255
|
* Ring Offset Color
|
|
@@ -2264,7 +2264,7 @@ const V = (e) => {
|
|
|
2264
2264
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
2265
2265
|
*/
|
|
2266
2266
|
shadow: [{
|
|
2267
|
-
shadow: ["", "inner", "none",
|
|
2267
|
+
shadow: ["", "inner", "none", fe, wn]
|
|
2268
2268
|
}],
|
|
2269
2269
|
/**
|
|
2270
2270
|
* Box Shadow Color
|
|
@@ -2285,14 +2285,14 @@ const V = (e) => {
|
|
|
2285
2285
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2286
2286
|
*/
|
|
2287
2287
|
"mix-blend": [{
|
|
2288
|
-
"mix-blend": [...
|
|
2288
|
+
"mix-blend": [...be(), "plus-lighter", "plus-darker"]
|
|
2289
2289
|
}],
|
|
2290
2290
|
/**
|
|
2291
2291
|
* Background Blend Mode
|
|
2292
2292
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2293
2293
|
*/
|
|
2294
2294
|
"bg-blend": [{
|
|
2295
|
-
"bg-blend":
|
|
2295
|
+
"bg-blend": be()
|
|
2296
2296
|
}],
|
|
2297
2297
|
// Filters
|
|
2298
2298
|
/**
|
|
@@ -2322,14 +2322,14 @@ const V = (e) => {
|
|
|
2322
2322
|
* @see https://tailwindcss.com/docs/contrast
|
|
2323
2323
|
*/
|
|
2324
2324
|
contrast: [{
|
|
2325
|
-
contrast: [
|
|
2325
|
+
contrast: [b]
|
|
2326
2326
|
}],
|
|
2327
2327
|
/**
|
|
2328
2328
|
* Drop Shadow
|
|
2329
2329
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
2330
2330
|
*/
|
|
2331
2331
|
"drop-shadow": [{
|
|
2332
|
-
"drop-shadow": ["", "none",
|
|
2332
|
+
"drop-shadow": ["", "none", fe, N]
|
|
2333
2333
|
}],
|
|
2334
2334
|
/**
|
|
2335
2335
|
* Grayscale
|
|
@@ -2350,7 +2350,7 @@ const V = (e) => {
|
|
|
2350
2350
|
* @see https://tailwindcss.com/docs/invert
|
|
2351
2351
|
*/
|
|
2352
2352
|
invert: [{
|
|
2353
|
-
invert: [
|
|
2353
|
+
invert: [g]
|
|
2354
2354
|
}],
|
|
2355
2355
|
/**
|
|
2356
2356
|
* Saturate
|
|
@@ -2364,7 +2364,7 @@ const V = (e) => {
|
|
|
2364
2364
|
* @see https://tailwindcss.com/docs/sepia
|
|
2365
2365
|
*/
|
|
2366
2366
|
sepia: [{
|
|
2367
|
-
sepia: [
|
|
2367
|
+
sepia: [P]
|
|
2368
2368
|
}],
|
|
2369
2369
|
/**
|
|
2370
2370
|
* Backdrop Filter
|
|
@@ -2393,7 +2393,7 @@ const V = (e) => {
|
|
|
2393
2393
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2394
2394
|
*/
|
|
2395
2395
|
"backdrop-contrast": [{
|
|
2396
|
-
"backdrop-contrast": [
|
|
2396
|
+
"backdrop-contrast": [b]
|
|
2397
2397
|
}],
|
|
2398
2398
|
/**
|
|
2399
2399
|
* Backdrop Grayscale
|
|
@@ -2414,7 +2414,7 @@ const V = (e) => {
|
|
|
2414
2414
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2415
2415
|
*/
|
|
2416
2416
|
"backdrop-invert": [{
|
|
2417
|
-
"backdrop-invert": [
|
|
2417
|
+
"backdrop-invert": [g]
|
|
2418
2418
|
}],
|
|
2419
2419
|
/**
|
|
2420
2420
|
* Backdrop Opacity
|
|
@@ -2435,7 +2435,7 @@ const V = (e) => {
|
|
|
2435
2435
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2436
2436
|
*/
|
|
2437
2437
|
"backdrop-sepia": [{
|
|
2438
|
-
"backdrop-sepia": [
|
|
2438
|
+
"backdrop-sepia": [P]
|
|
2439
2439
|
}],
|
|
2440
2440
|
// Tables
|
|
2441
2441
|
/**
|
|
@@ -2486,35 +2486,35 @@ const V = (e) => {
|
|
|
2486
2486
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2487
2487
|
*/
|
|
2488
2488
|
transition: [{
|
|
2489
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
2489
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", N]
|
|
2490
2490
|
}],
|
|
2491
2491
|
/**
|
|
2492
2492
|
* Transition Duration
|
|
2493
2493
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2494
2494
|
*/
|
|
2495
2495
|
duration: [{
|
|
2496
|
-
duration:
|
|
2496
|
+
duration: X()
|
|
2497
2497
|
}],
|
|
2498
2498
|
/**
|
|
2499
2499
|
* Transition Timing Function
|
|
2500
2500
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2501
2501
|
*/
|
|
2502
2502
|
ease: [{
|
|
2503
|
-
ease: ["linear", "in", "out", "in-out",
|
|
2503
|
+
ease: ["linear", "in", "out", "in-out", N]
|
|
2504
2504
|
}],
|
|
2505
2505
|
/**
|
|
2506
2506
|
* Transition Delay
|
|
2507
2507
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2508
2508
|
*/
|
|
2509
2509
|
delay: [{
|
|
2510
|
-
delay:
|
|
2510
|
+
delay: X()
|
|
2511
2511
|
}],
|
|
2512
2512
|
/**
|
|
2513
2513
|
* Animation
|
|
2514
2514
|
* @see https://tailwindcss.com/docs/animation
|
|
2515
2515
|
*/
|
|
2516
2516
|
animate: [{
|
|
2517
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
2517
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", N]
|
|
2518
2518
|
}],
|
|
2519
2519
|
// Transforms
|
|
2520
2520
|
/**
|
|
@@ -2529,63 +2529,63 @@ const V = (e) => {
|
|
|
2529
2529
|
* @see https://tailwindcss.com/docs/scale
|
|
2530
2530
|
*/
|
|
2531
2531
|
scale: [{
|
|
2532
|
-
scale: [
|
|
2532
|
+
scale: [C]
|
|
2533
2533
|
}],
|
|
2534
2534
|
/**
|
|
2535
2535
|
* Scale X
|
|
2536
2536
|
* @see https://tailwindcss.com/docs/scale
|
|
2537
2537
|
*/
|
|
2538
2538
|
"scale-x": [{
|
|
2539
|
-
"scale-x": [
|
|
2539
|
+
"scale-x": [C]
|
|
2540
2540
|
}],
|
|
2541
2541
|
/**
|
|
2542
2542
|
* Scale Y
|
|
2543
2543
|
* @see https://tailwindcss.com/docs/scale
|
|
2544
2544
|
*/
|
|
2545
2545
|
"scale-y": [{
|
|
2546
|
-
"scale-y": [
|
|
2546
|
+
"scale-y": [C]
|
|
2547
2547
|
}],
|
|
2548
2548
|
/**
|
|
2549
2549
|
* Rotate
|
|
2550
2550
|
* @see https://tailwindcss.com/docs/rotate
|
|
2551
2551
|
*/
|
|
2552
2552
|
rotate: [{
|
|
2553
|
-
rotate: [Me,
|
|
2553
|
+
rotate: [Me, N]
|
|
2554
2554
|
}],
|
|
2555
2555
|
/**
|
|
2556
2556
|
* Translate X
|
|
2557
2557
|
* @see https://tailwindcss.com/docs/translate
|
|
2558
2558
|
*/
|
|
2559
2559
|
"translate-x": [{
|
|
2560
|
-
"translate-x": [
|
|
2560
|
+
"translate-x": [A]
|
|
2561
2561
|
}],
|
|
2562
2562
|
/**
|
|
2563
2563
|
* Translate Y
|
|
2564
2564
|
* @see https://tailwindcss.com/docs/translate
|
|
2565
2565
|
*/
|
|
2566
2566
|
"translate-y": [{
|
|
2567
|
-
"translate-y": [
|
|
2567
|
+
"translate-y": [A]
|
|
2568
2568
|
}],
|
|
2569
2569
|
/**
|
|
2570
2570
|
* Skew X
|
|
2571
2571
|
* @see https://tailwindcss.com/docs/skew
|
|
2572
2572
|
*/
|
|
2573
2573
|
"skew-x": [{
|
|
2574
|
-
"skew-x": [
|
|
2574
|
+
"skew-x": [$]
|
|
2575
2575
|
}],
|
|
2576
2576
|
/**
|
|
2577
2577
|
* Skew Y
|
|
2578
2578
|
* @see https://tailwindcss.com/docs/skew
|
|
2579
2579
|
*/
|
|
2580
2580
|
"skew-y": [{
|
|
2581
|
-
"skew-y": [
|
|
2581
|
+
"skew-y": [$]
|
|
2582
2582
|
}],
|
|
2583
2583
|
/**
|
|
2584
2584
|
* Transform Origin
|
|
2585
2585
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2586
2586
|
*/
|
|
2587
2587
|
"transform-origin": [{
|
|
2588
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
2588
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", N]
|
|
2589
2589
|
}],
|
|
2590
2590
|
// Interactivity
|
|
2591
2591
|
/**
|
|
@@ -2607,7 +2607,7 @@ const V = (e) => {
|
|
|
2607
2607
|
* @see https://tailwindcss.com/docs/cursor
|
|
2608
2608
|
*/
|
|
2609
2609
|
cursor: [{
|
|
2610
|
-
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",
|
|
2610
|
+
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", N]
|
|
2611
2611
|
}],
|
|
2612
2612
|
/**
|
|
2613
2613
|
* Caret Color
|
|
@@ -2642,126 +2642,126 @@ const V = (e) => {
|
|
|
2642
2642
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2643
2643
|
*/
|
|
2644
2644
|
"scroll-m": [{
|
|
2645
|
-
"scroll-m":
|
|
2645
|
+
"scroll-m": R()
|
|
2646
2646
|
}],
|
|
2647
2647
|
/**
|
|
2648
2648
|
* Scroll Margin X
|
|
2649
2649
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2650
2650
|
*/
|
|
2651
2651
|
"scroll-mx": [{
|
|
2652
|
-
"scroll-mx":
|
|
2652
|
+
"scroll-mx": R()
|
|
2653
2653
|
}],
|
|
2654
2654
|
/**
|
|
2655
2655
|
* Scroll Margin Y
|
|
2656
2656
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2657
2657
|
*/
|
|
2658
2658
|
"scroll-my": [{
|
|
2659
|
-
"scroll-my":
|
|
2659
|
+
"scroll-my": R()
|
|
2660
2660
|
}],
|
|
2661
2661
|
/**
|
|
2662
2662
|
* Scroll Margin Start
|
|
2663
2663
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2664
2664
|
*/
|
|
2665
2665
|
"scroll-ms": [{
|
|
2666
|
-
"scroll-ms":
|
|
2666
|
+
"scroll-ms": R()
|
|
2667
2667
|
}],
|
|
2668
2668
|
/**
|
|
2669
2669
|
* Scroll Margin End
|
|
2670
2670
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2671
2671
|
*/
|
|
2672
2672
|
"scroll-me": [{
|
|
2673
|
-
"scroll-me":
|
|
2673
|
+
"scroll-me": R()
|
|
2674
2674
|
}],
|
|
2675
2675
|
/**
|
|
2676
2676
|
* Scroll Margin Top
|
|
2677
2677
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2678
2678
|
*/
|
|
2679
2679
|
"scroll-mt": [{
|
|
2680
|
-
"scroll-mt":
|
|
2680
|
+
"scroll-mt": R()
|
|
2681
2681
|
}],
|
|
2682
2682
|
/**
|
|
2683
2683
|
* Scroll Margin Right
|
|
2684
2684
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2685
2685
|
*/
|
|
2686
2686
|
"scroll-mr": [{
|
|
2687
|
-
"scroll-mr":
|
|
2687
|
+
"scroll-mr": R()
|
|
2688
2688
|
}],
|
|
2689
2689
|
/**
|
|
2690
2690
|
* Scroll Margin Bottom
|
|
2691
2691
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2692
2692
|
*/
|
|
2693
2693
|
"scroll-mb": [{
|
|
2694
|
-
"scroll-mb":
|
|
2694
|
+
"scroll-mb": R()
|
|
2695
2695
|
}],
|
|
2696
2696
|
/**
|
|
2697
2697
|
* Scroll Margin Left
|
|
2698
2698
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
2699
2699
|
*/
|
|
2700
2700
|
"scroll-ml": [{
|
|
2701
|
-
"scroll-ml":
|
|
2701
|
+
"scroll-ml": R()
|
|
2702
2702
|
}],
|
|
2703
2703
|
/**
|
|
2704
2704
|
* Scroll Padding
|
|
2705
2705
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2706
2706
|
*/
|
|
2707
2707
|
"scroll-p": [{
|
|
2708
|
-
"scroll-p":
|
|
2708
|
+
"scroll-p": R()
|
|
2709
2709
|
}],
|
|
2710
2710
|
/**
|
|
2711
2711
|
* Scroll Padding X
|
|
2712
2712
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2713
2713
|
*/
|
|
2714
2714
|
"scroll-px": [{
|
|
2715
|
-
"scroll-px":
|
|
2715
|
+
"scroll-px": R()
|
|
2716
2716
|
}],
|
|
2717
2717
|
/**
|
|
2718
2718
|
* Scroll Padding Y
|
|
2719
2719
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2720
2720
|
*/
|
|
2721
2721
|
"scroll-py": [{
|
|
2722
|
-
"scroll-py":
|
|
2722
|
+
"scroll-py": R()
|
|
2723
2723
|
}],
|
|
2724
2724
|
/**
|
|
2725
2725
|
* Scroll Padding Start
|
|
2726
2726
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2727
2727
|
*/
|
|
2728
2728
|
"scroll-ps": [{
|
|
2729
|
-
"scroll-ps":
|
|
2729
|
+
"scroll-ps": R()
|
|
2730
2730
|
}],
|
|
2731
2731
|
/**
|
|
2732
2732
|
* Scroll Padding End
|
|
2733
2733
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2734
2734
|
*/
|
|
2735
2735
|
"scroll-pe": [{
|
|
2736
|
-
"scroll-pe":
|
|
2736
|
+
"scroll-pe": R()
|
|
2737
2737
|
}],
|
|
2738
2738
|
/**
|
|
2739
2739
|
* Scroll Padding Top
|
|
2740
2740
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2741
2741
|
*/
|
|
2742
2742
|
"scroll-pt": [{
|
|
2743
|
-
"scroll-pt":
|
|
2743
|
+
"scroll-pt": R()
|
|
2744
2744
|
}],
|
|
2745
2745
|
/**
|
|
2746
2746
|
* Scroll Padding Right
|
|
2747
2747
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2748
2748
|
*/
|
|
2749
2749
|
"scroll-pr": [{
|
|
2750
|
-
"scroll-pr":
|
|
2750
|
+
"scroll-pr": R()
|
|
2751
2751
|
}],
|
|
2752
2752
|
/**
|
|
2753
2753
|
* Scroll Padding Bottom
|
|
2754
2754
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2755
2755
|
*/
|
|
2756
2756
|
"scroll-pb": [{
|
|
2757
|
-
"scroll-pb":
|
|
2757
|
+
"scroll-pb": R()
|
|
2758
2758
|
}],
|
|
2759
2759
|
/**
|
|
2760
2760
|
* Scroll Padding Left
|
|
2761
2761
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
2762
2762
|
*/
|
|
2763
2763
|
"scroll-pl": [{
|
|
2764
|
-
"scroll-pl":
|
|
2764
|
+
"scroll-pl": R()
|
|
2765
2765
|
}],
|
|
2766
2766
|
/**
|
|
2767
2767
|
* Scroll Snap Align
|
|
@@ -2829,7 +2829,7 @@ const V = (e) => {
|
|
|
2829
2829
|
* @see https://tailwindcss.com/docs/will-change
|
|
2830
2830
|
*/
|
|
2831
2831
|
"will-change": [{
|
|
2832
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2832
|
+
"will-change": ["auto", "scroll", "contents", "transform", N]
|
|
2833
2833
|
}],
|
|
2834
2834
|
// SVG
|
|
2835
2835
|
/**
|
|
@@ -2844,7 +2844,7 @@ const V = (e) => {
|
|
|
2844
2844
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2845
2845
|
*/
|
|
2846
2846
|
"stroke-w": [{
|
|
2847
|
-
stroke: [
|
|
2847
|
+
stroke: [ce, ge, Xe]
|
|
2848
2848
|
}],
|
|
2849
2849
|
/**
|
|
2850
2850
|
* Stroke
|
|
@@ -2919,36 +2919,36 @@ const V = (e) => {
|
|
|
2919
2919
|
"font-size": ["leading"]
|
|
2920
2920
|
}
|
|
2921
2921
|
};
|
|
2922
|
-
}, Pn = /* @__PURE__ */ sn(Sn),
|
|
2922
|
+
}, Pn = /* @__PURE__ */ sn(Sn), T = (...e) => Pn(te(e)), Pt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Nt = te, H = (e, r) => (t) => {
|
|
2923
2923
|
var o;
|
|
2924
2924
|
if ((r == null ? void 0 : r.variants) == null) return Nt(e, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
|
|
2925
2925
|
const { variants: i, defaultVariants: a } = r, l = Object.keys(i).map((c) => {
|
|
2926
|
-
const u = t == null ? void 0 : t[c],
|
|
2926
|
+
const u = t == null ? void 0 : t[c], g = a == null ? void 0 : a[c];
|
|
2927
2927
|
if (u === null) return null;
|
|
2928
|
-
const
|
|
2929
|
-
return i[c][
|
|
2928
|
+
const p = Pt(u) || Pt(g);
|
|
2929
|
+
return i[c][p];
|
|
2930
2930
|
}), d = t && Object.entries(t).reduce((c, u) => {
|
|
2931
|
-
let [
|
|
2932
|
-
return
|
|
2933
|
-
}, {}),
|
|
2934
|
-
let { class:
|
|
2935
|
-
return Object.entries(v).every((
|
|
2936
|
-
let [
|
|
2937
|
-
return Array.isArray(
|
|
2931
|
+
let [g, p] = u;
|
|
2932
|
+
return p === void 0 || (c[g] = p), c;
|
|
2933
|
+
}, {}), b = r == null || (o = r.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((c, u) => {
|
|
2934
|
+
let { class: g, className: p, ...v } = u;
|
|
2935
|
+
return Object.entries(v).every((x) => {
|
|
2936
|
+
let [w, h] = x;
|
|
2937
|
+
return Array.isArray(h) ? h.includes({
|
|
2938
2938
|
...a,
|
|
2939
2939
|
...d
|
|
2940
|
-
}[
|
|
2940
|
+
}[w]) : {
|
|
2941
2941
|
...a,
|
|
2942
2942
|
...d
|
|
2943
|
-
}[
|
|
2943
|
+
}[w] === h;
|
|
2944
2944
|
}) ? [
|
|
2945
2945
|
...c,
|
|
2946
|
-
|
|
2947
|
-
|
|
2946
|
+
g,
|
|
2947
|
+
p
|
|
2948
2948
|
] : c;
|
|
2949
2949
|
}, []);
|
|
2950
|
-
return Nt(e, l,
|
|
2951
|
-
}, Nn = "", Mn =
|
|
2950
|
+
return Nt(e, l, b, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
|
|
2951
|
+
}, Nn = "", Mn = H(Nn, {
|
|
2952
2952
|
variants: {
|
|
2953
2953
|
intent: {
|
|
2954
2954
|
"display-sm": "text-7xl leading-6xl tracking-tight",
|
|
@@ -2983,7 +2983,7 @@ const V = (e) => {
|
|
|
2983
2983
|
intent: "paragraph-md",
|
|
2984
2984
|
weight: "regular"
|
|
2985
2985
|
}
|
|
2986
|
-
}),
|
|
2986
|
+
}), I = ({
|
|
2987
2987
|
as: e = "span",
|
|
2988
2988
|
intent: r,
|
|
2989
2989
|
className: t,
|
|
@@ -2994,11 +2994,11 @@ const V = (e) => {
|
|
|
2994
2994
|
return /* @__PURE__ */ s.jsx(
|
|
2995
2995
|
a,
|
|
2996
2996
|
{
|
|
2997
|
-
className:
|
|
2997
|
+
className: T(Mn({ intent: r, weight: o, className: t })),
|
|
2998
2998
|
...i
|
|
2999
2999
|
}
|
|
3000
3000
|
);
|
|
3001
|
-
}, Ut =
|
|
3001
|
+
}, Ut = L(
|
|
3002
3002
|
({ iconName: e, iconText: r, stroke: t = 1, onClick: o, size: i = 24, ...a }, l) => {
|
|
3003
3003
|
if (e) {
|
|
3004
3004
|
const d = zr[e];
|
|
@@ -3019,7 +3019,7 @@ const V = (e) => {
|
|
|
3019
3019
|
{
|
|
3020
3020
|
className: "flex items-center justify-center",
|
|
3021
3021
|
style: { width: i, height: i },
|
|
3022
|
-
children: /* @__PURE__ */ s.jsx(
|
|
3022
|
+
children: /* @__PURE__ */ s.jsx(I, { intent: i <= 16 ? "label-sm" : "label-md", children: d })
|
|
3023
3023
|
}
|
|
3024
3024
|
);
|
|
3025
3025
|
} else
|
|
@@ -3027,7 +3027,7 @@ const V = (e) => {
|
|
|
3027
3027
|
}
|
|
3028
3028
|
);
|
|
3029
3029
|
Ut.displayName = "IconComponent";
|
|
3030
|
-
const
|
|
3030
|
+
const _ = Ut, En = "!border-sm flex w-fit items-center justify-center gap-2 rounded-sm", Tn = H(En, {
|
|
3031
3031
|
variants: {
|
|
3032
3032
|
utility: {
|
|
3033
3033
|
error: "border-border-transparent bg-background-utility-error-light text-content-utility-error",
|
|
@@ -3072,7 +3072,7 @@ const z = Ut, En = "!border-sm flex w-fit items-center justify-center gap-2 roun
|
|
|
3072
3072
|
weight: "regular",
|
|
3073
3073
|
rounded: "rectangle"
|
|
3074
3074
|
}
|
|
3075
|
-
}), Xt =
|
|
3075
|
+
}), Xt = L(
|
|
3076
3076
|
({
|
|
3077
3077
|
children: e,
|
|
3078
3078
|
iconLeft: r,
|
|
@@ -3082,27 +3082,27 @@ const z = Ut, En = "!border-sm flex w-fit items-center justify-center gap-2 roun
|
|
|
3082
3082
|
iconOnly: a,
|
|
3083
3083
|
size: l,
|
|
3084
3084
|
rounded: d,
|
|
3085
|
-
weight:
|
|
3085
|
+
weight: b,
|
|
3086
3086
|
className: c,
|
|
3087
3087
|
...u
|
|
3088
|
-
},
|
|
3088
|
+
}, g) => {
|
|
3089
3089
|
typeof r == "string" && (r = { name: r }), typeof t == "string" && (t = { name: t });
|
|
3090
|
-
const
|
|
3090
|
+
const p = {
|
|
3091
3091
|
xs: "h-3",
|
|
3092
3092
|
sm: "h-4",
|
|
3093
3093
|
md: "h-4",
|
|
3094
3094
|
lg: "h-5"
|
|
3095
|
-
}, v = o ? { utility: o } : { intent: i },
|
|
3095
|
+
}, v = o ? { utility: o } : { intent: i }, x = a ? { iconOnly: a } : { size: l };
|
|
3096
3096
|
return /* @__PURE__ */ s.jsxs(
|
|
3097
3097
|
"span",
|
|
3098
3098
|
{
|
|
3099
|
-
ref:
|
|
3100
|
-
className:
|
|
3099
|
+
ref: g,
|
|
3100
|
+
className: T(
|
|
3101
3101
|
Tn({
|
|
3102
3102
|
...v,
|
|
3103
|
-
...
|
|
3103
|
+
...x,
|
|
3104
3104
|
rounded: d,
|
|
3105
|
-
weight:
|
|
3105
|
+
weight: b,
|
|
3106
3106
|
className: c
|
|
3107
3107
|
}),
|
|
3108
3108
|
a && "px-2.5 py-2"
|
|
@@ -3110,20 +3110,20 @@ const z = Ut, En = "!border-sm flex w-fit items-center justify-center gap-2 roun
|
|
|
3110
3110
|
...u,
|
|
3111
3111
|
children: [
|
|
3112
3112
|
r && /* @__PURE__ */ s.jsx(
|
|
3113
|
-
|
|
3113
|
+
_,
|
|
3114
3114
|
{
|
|
3115
3115
|
iconName: r.name,
|
|
3116
3116
|
stroke: r.stroke,
|
|
3117
|
-
className:
|
|
3117
|
+
className: p[l || "xs"]
|
|
3118
3118
|
}
|
|
3119
3119
|
),
|
|
3120
3120
|
!a && e,
|
|
3121
3121
|
t && /* @__PURE__ */ s.jsx(
|
|
3122
|
-
|
|
3122
|
+
_,
|
|
3123
3123
|
{
|
|
3124
3124
|
iconName: t.name,
|
|
3125
3125
|
stroke: t.stroke,
|
|
3126
|
-
className:
|
|
3126
|
+
className: p[l || "xs"]
|
|
3127
3127
|
}
|
|
3128
3128
|
)
|
|
3129
3129
|
]
|
|
@@ -3133,12 +3133,12 @@ const z = Ut, En = "!border-sm flex w-fit items-center justify-center gap-2 roun
|
|
|
3133
3133
|
);
|
|
3134
3134
|
Xt.displayName = "Badge";
|
|
3135
3135
|
const Dn = Xt, nt = ({ className: e }) => /* @__PURE__ */ s.jsx(
|
|
3136
|
-
|
|
3136
|
+
_,
|
|
3137
3137
|
{
|
|
3138
3138
|
iconName: "IconLoader2",
|
|
3139
3139
|
className: `${e} animate-spin`
|
|
3140
3140
|
}
|
|
3141
|
-
), ot = "relative flex items-center justify-center gap-2 rounded-sm !border-xs transition-colors", _n =
|
|
3141
|
+
), ot = "relative flex items-center justify-center gap-2 rounded-sm !border-xs transition-colors", _n = H(ot, {
|
|
3142
3142
|
variants: {
|
|
3143
3143
|
intent: {
|
|
3144
3144
|
"primary-red": [
|
|
@@ -3265,7 +3265,7 @@ const Dn = Xt, nt = ({ className: e }) => /* @__PURE__ */ s.jsx(
|
|
|
3265
3265
|
size: "md",
|
|
3266
3266
|
weight: "regular"
|
|
3267
3267
|
}
|
|
3268
|
-
}), zn =
|
|
3268
|
+
}), zn = H(`${ot} cursor-default`, {
|
|
3269
3269
|
variants: {
|
|
3270
3270
|
intent: {
|
|
3271
3271
|
"primary-red": [
|
|
@@ -3320,7 +3320,7 @@ const Dn = Xt, nt = ({ className: e }) => /* @__PURE__ */ s.jsx(
|
|
|
3320
3320
|
size: "md",
|
|
3321
3321
|
weight: "regular"
|
|
3322
3322
|
}
|
|
3323
|
-
}), In =
|
|
3323
|
+
}), In = H(ot, {
|
|
3324
3324
|
variants: {
|
|
3325
3325
|
intent: {
|
|
3326
3326
|
"primary-red": [
|
|
@@ -3375,7 +3375,7 @@ const Dn = Xt, nt = ({ className: e }) => /* @__PURE__ */ s.jsx(
|
|
|
3375
3375
|
size: "md",
|
|
3376
3376
|
weight: "regular"
|
|
3377
3377
|
}
|
|
3378
|
-
}), Rn =
|
|
3378
|
+
}), Rn = L(
|
|
3379
3379
|
({
|
|
3380
3380
|
className: e,
|
|
3381
3381
|
intent: r,
|
|
@@ -3385,15 +3385,15 @@ const Dn = Xt, nt = ({ className: e }) => /* @__PURE__ */ s.jsx(
|
|
|
3385
3385
|
children: a,
|
|
3386
3386
|
iconLeft: l,
|
|
3387
3387
|
iconRight: d,
|
|
3388
|
-
iconTextLeft:
|
|
3388
|
+
iconTextLeft: b,
|
|
3389
3389
|
iconTextRight: c,
|
|
3390
3390
|
isLoading: u,
|
|
3391
|
-
isActive:
|
|
3392
|
-
disabled:
|
|
3391
|
+
isActive: g,
|
|
3392
|
+
disabled: p,
|
|
3393
3393
|
...v
|
|
3394
|
-
},
|
|
3394
|
+
}, x) => {
|
|
3395
3395
|
typeof l == "string" && (l = { name: l }), typeof d == "string" && (d = { name: d });
|
|
3396
|
-
const
|
|
3396
|
+
const w = {
|
|
3397
3397
|
sm: "h-6",
|
|
3398
3398
|
md: "h-6",
|
|
3399
3399
|
lg: "h-6"
|
|
@@ -3401,18 +3401,18 @@ const Dn = Xt, nt = ({ className: e }) => /* @__PURE__ */ s.jsx(
|
|
|
3401
3401
|
return /* @__PURE__ */ s.jsxs(
|
|
3402
3402
|
"button",
|
|
3403
3403
|
{
|
|
3404
|
-
ref:
|
|
3405
|
-
className:
|
|
3406
|
-
u ? zn({ intent: r, weight: o, size: t, rounded: i, className: e }) :
|
|
3404
|
+
ref: x,
|
|
3405
|
+
className: T(
|
|
3406
|
+
u ? zn({ intent: r, weight: o, size: t, rounded: i, className: e }) : g ? In({ intent: r, weight: o, size: t, rounded: i, className: e }) : _n({ intent: r, weight: o, size: t, rounded: i, className: e })
|
|
3407
3407
|
),
|
|
3408
|
-
disabled:
|
|
3408
|
+
disabled: p || u,
|
|
3409
3409
|
...v,
|
|
3410
3410
|
children: [
|
|
3411
3411
|
/* @__PURE__ */ s.jsx(
|
|
3412
3412
|
"span",
|
|
3413
3413
|
{
|
|
3414
3414
|
className: `absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 ${u ? "visible opacity-100" : "invisible opacity-0"}`,
|
|
3415
|
-
children: /* @__PURE__ */ s.jsx(nt, { className:
|
|
3415
|
+
children: /* @__PURE__ */ s.jsx(nt, { className: w[t || "md"] })
|
|
3416
3416
|
}
|
|
3417
3417
|
),
|
|
3418
3418
|
/* @__PURE__ */ s.jsxs(
|
|
@@ -3420,23 +3420,23 @@ const Dn = Xt, nt = ({ className: e }) => /* @__PURE__ */ s.jsx(
|
|
|
3420
3420
|
{
|
|
3421
3421
|
className: `flex items-center justify-center gap-2 ${u ? "invisible opacity-0" : "visible opacity-100"}`,
|
|
3422
3422
|
children: [
|
|
3423
|
-
l ||
|
|
3424
|
-
|
|
3423
|
+
l || b ? /* @__PURE__ */ s.jsx(
|
|
3424
|
+
_,
|
|
3425
3425
|
{
|
|
3426
3426
|
iconName: l == null ? void 0 : l.name,
|
|
3427
|
-
iconText:
|
|
3427
|
+
iconText: b,
|
|
3428
3428
|
stroke: l == null ? void 0 : l.stroke,
|
|
3429
|
-
className:
|
|
3429
|
+
className: w[t || "md"]
|
|
3430
3430
|
}
|
|
3431
3431
|
) : null,
|
|
3432
3432
|
a,
|
|
3433
3433
|
d || c ? /* @__PURE__ */ s.jsx(
|
|
3434
|
-
|
|
3434
|
+
_,
|
|
3435
3435
|
{
|
|
3436
3436
|
iconName: d == null ? void 0 : d.name,
|
|
3437
3437
|
iconText: c,
|
|
3438
3438
|
stroke: d == null ? void 0 : d.stroke,
|
|
3439
|
-
className:
|
|
3439
|
+
className: w[t || "md"]
|
|
3440
3440
|
}
|
|
3441
3441
|
) : null
|
|
3442
3442
|
]
|
|
@@ -3448,7 +3448,7 @@ const Dn = Xt, nt = ({ className: e }) => /* @__PURE__ */ s.jsx(
|
|
|
3448
3448
|
}
|
|
3449
3449
|
);
|
|
3450
3450
|
Rn.displayName = "Button";
|
|
3451
|
-
const at = "flex items-center justify-center transition-colors relative border !border-xs",
|
|
3451
|
+
const at = "flex items-center justify-center transition-colors relative border !border-xs", Wn = H(at, {
|
|
3452
3452
|
variants: {
|
|
3453
3453
|
intent: {
|
|
3454
3454
|
"primary-red": [
|
|
@@ -3569,7 +3569,7 @@ const at = "flex items-center justify-center transition-colors relative border !
|
|
|
3569
3569
|
size: "md",
|
|
3570
3570
|
rounded: "sm"
|
|
3571
3571
|
}
|
|
3572
|
-
}),
|
|
3572
|
+
}), Fn = H(at, {
|
|
3573
3573
|
variants: {
|
|
3574
3574
|
intent: {
|
|
3575
3575
|
"primary-red": [
|
|
@@ -3618,7 +3618,7 @@ const at = "flex items-center justify-center transition-colors relative border !
|
|
|
3618
3618
|
size: "md",
|
|
3619
3619
|
rounded: "sm"
|
|
3620
3620
|
}
|
|
3621
|
-
}), An =
|
|
3621
|
+
}), An = H(at, {
|
|
3622
3622
|
variants: {
|
|
3623
3623
|
intent: {
|
|
3624
3624
|
"primary-red": [
|
|
@@ -3667,7 +3667,7 @@ const at = "flex items-center justify-center transition-colors relative border !
|
|
|
3667
3667
|
size: "md",
|
|
3668
3668
|
rounded: "sm"
|
|
3669
3669
|
}
|
|
3670
|
-
}), On =
|
|
3670
|
+
}), On = L(
|
|
3671
3671
|
({
|
|
3672
3672
|
iconName: e,
|
|
3673
3673
|
iconText: r,
|
|
@@ -3677,12 +3677,12 @@ const at = "flex items-center justify-center transition-colors relative border !
|
|
|
3677
3677
|
rounded: a,
|
|
3678
3678
|
disabled: l,
|
|
3679
3679
|
isLoading: d,
|
|
3680
|
-
isActive:
|
|
3680
|
+
isActive: b,
|
|
3681
3681
|
notification: c,
|
|
3682
3682
|
...u
|
|
3683
|
-
},
|
|
3683
|
+
}, g) => {
|
|
3684
3684
|
typeof e == "string" && (e = { name: e });
|
|
3685
|
-
const
|
|
3685
|
+
const p = {
|
|
3686
3686
|
sm: "h-5",
|
|
3687
3687
|
md: "h-6",
|
|
3688
3688
|
lg: "h-6"
|
|
@@ -3690,22 +3690,22 @@ const at = "flex items-center justify-center transition-colors relative border !
|
|
|
3690
3690
|
return /* @__PURE__ */ s.jsxs(
|
|
3691
3691
|
"button",
|
|
3692
3692
|
{
|
|
3693
|
-
ref:
|
|
3694
|
-
className:
|
|
3695
|
-
d ?
|
|
3693
|
+
ref: g,
|
|
3694
|
+
className: T(
|
|
3695
|
+
d ? Fn({ intent: o, size: i, rounded: a, className: t }) : b ? An({ intent: o, size: i, rounded: a, className: t }) : Wn({ intent: o, size: i, rounded: a, className: t })
|
|
3696
3696
|
),
|
|
3697
3697
|
disabled: l || d,
|
|
3698
3698
|
...u,
|
|
3699
3699
|
children: [
|
|
3700
3700
|
c && !d && /* @__PURE__ */ s.jsx(
|
|
3701
|
-
|
|
3701
|
+
_,
|
|
3702
3702
|
{
|
|
3703
3703
|
iconName: "IconCircleFilled",
|
|
3704
3704
|
className: `absolute ${a === "full" ? "right-2 top-2" : "right-1 top-1"} h-[6px] w-[6px] ${o === "primary-red" ? "text-button-primary-content-pressed" : "text-button-primary-background-enabled"}`
|
|
3705
3705
|
}
|
|
3706
3706
|
),
|
|
3707
|
-
d ? /* @__PURE__ */ s.jsx(nt, { className:
|
|
3708
|
-
|
|
3707
|
+
d ? /* @__PURE__ */ s.jsx(nt, { className: p[i || "md"] }) : /* @__PURE__ */ s.jsx(s.Fragment, { children: e && /* @__PURE__ */ s.jsx(
|
|
3708
|
+
_,
|
|
3709
3709
|
{
|
|
3710
3710
|
iconName: e.name,
|
|
3711
3711
|
stroke: e.stroke,
|
|
@@ -3719,7 +3719,7 @@ const at = "flex items-center justify-center transition-colors relative border !
|
|
|
3719
3719
|
}
|
|
3720
3720
|
);
|
|
3721
3721
|
On.displayName = "ButtonIcon";
|
|
3722
|
-
const st = "flex relative items-center justify-center gap-2 transition-colors py-1", $n =
|
|
3722
|
+
const st = "flex relative items-center justify-center gap-2 transition-colors py-1", $n = H(st, {
|
|
3723
3723
|
variants: {
|
|
3724
3724
|
intent: {
|
|
3725
3725
|
primary: [
|
|
@@ -3746,7 +3746,7 @@ const st = "flex relative items-center justify-center gap-2 transition-colors py
|
|
|
3746
3746
|
size: "md",
|
|
3747
3747
|
weight: "regular"
|
|
3748
3748
|
}
|
|
3749
|
-
}), Vn =
|
|
3749
|
+
}), Vn = H(
|
|
3750
3750
|
`${st} cursor-default`,
|
|
3751
3751
|
{
|
|
3752
3752
|
variants: {
|
|
@@ -3771,7 +3771,7 @@ const st = "flex relative items-center justify-center gap-2 transition-colors py
|
|
|
3771
3771
|
weight: "regular"
|
|
3772
3772
|
}
|
|
3773
3773
|
}
|
|
3774
|
-
), Bn =
|
|
3774
|
+
), Bn = H(st, {
|
|
3775
3775
|
variants: {
|
|
3776
3776
|
intent: {
|
|
3777
3777
|
primary: ["text-button-link-content-disabled"]
|
|
@@ -3793,7 +3793,7 @@ const st = "flex relative items-center justify-center gap-2 transition-colors py
|
|
|
3793
3793
|
size: "md",
|
|
3794
3794
|
weight: "regular"
|
|
3795
3795
|
}
|
|
3796
|
-
}), Gn =
|
|
3796
|
+
}), Gn = L(
|
|
3797
3797
|
({
|
|
3798
3798
|
className: e,
|
|
3799
3799
|
intent: r,
|
|
@@ -3803,11 +3803,11 @@ const st = "flex relative items-center justify-center gap-2 transition-colors py
|
|
|
3803
3803
|
iconLeft: a,
|
|
3804
3804
|
iconRight: l,
|
|
3805
3805
|
iconTextLeft: d,
|
|
3806
|
-
iconTextRight:
|
|
3806
|
+
iconTextRight: b,
|
|
3807
3807
|
isLoading: c,
|
|
3808
3808
|
disabled: u,
|
|
3809
|
-
...
|
|
3810
|
-
},
|
|
3809
|
+
...g
|
|
3810
|
+
}, p) => {
|
|
3811
3811
|
typeof a == "string" && (a = { name: a }), typeof l == "string" && (l = { name: l });
|
|
3812
3812
|
const v = {
|
|
3813
3813
|
sm: "h-5",
|
|
@@ -3817,12 +3817,12 @@ const st = "flex relative items-center justify-center gap-2 transition-colors py
|
|
|
3817
3817
|
return /* @__PURE__ */ s.jsxs(
|
|
3818
3818
|
"button",
|
|
3819
3819
|
{
|
|
3820
|
-
ref:
|
|
3821
|
-
className:
|
|
3820
|
+
ref: p,
|
|
3821
|
+
className: T(
|
|
3822
3822
|
c ? Vn({ intent: r, weight: o, size: t, className: e }) : u ? Bn({ intent: r, weight: o, size: t, className: e }) : $n({ intent: r, weight: o, size: t, className: e })
|
|
3823
3823
|
),
|
|
3824
3824
|
disabled: u || c,
|
|
3825
|
-
...
|
|
3825
|
+
...g,
|
|
3826
3826
|
children: [
|
|
3827
3827
|
/* @__PURE__ */ s.jsx(
|
|
3828
3828
|
"span",
|
|
@@ -3837,7 +3837,7 @@ const st = "flex relative items-center justify-center gap-2 transition-colors py
|
|
|
3837
3837
|
className: `flex items-center justify-center gap-2 ${c ? "invisible opacity-0" : "visible opacity-100"}`,
|
|
3838
3838
|
children: [
|
|
3839
3839
|
a || d ? /* @__PURE__ */ s.jsx(
|
|
3840
|
-
|
|
3840
|
+
_,
|
|
3841
3841
|
{
|
|
3842
3842
|
iconName: a == null ? void 0 : a.name,
|
|
3843
3843
|
iconText: d,
|
|
@@ -3846,11 +3846,11 @@ const st = "flex relative items-center justify-center gap-2 transition-colors py
|
|
|
3846
3846
|
}
|
|
3847
3847
|
) : null,
|
|
3848
3848
|
i,
|
|
3849
|
-
l ||
|
|
3850
|
-
|
|
3849
|
+
l || b ? /* @__PURE__ */ s.jsx(
|
|
3850
|
+
_,
|
|
3851
3851
|
{
|
|
3852
3852
|
iconName: l == null ? void 0 : l.name,
|
|
3853
|
-
iconText:
|
|
3853
|
+
iconText: b,
|
|
3854
3854
|
stroke: l == null ? void 0 : l.stroke,
|
|
3855
3855
|
className: v[t || "md"]
|
|
3856
3856
|
}
|
|
@@ -3864,7 +3864,7 @@ const st = "flex relative items-center justify-center gap-2 transition-colors py
|
|
|
3864
3864
|
}
|
|
3865
3865
|
);
|
|
3866
3866
|
Gn.displayName = "ButtonLink";
|
|
3867
|
-
function
|
|
3867
|
+
function ue(e) {
|
|
3868
3868
|
return (r = {}) => {
|
|
3869
3869
|
const t = r.width ? String(r.width) : e.defaultWidth;
|
|
3870
3870
|
return e.formats[t] || e.formats[e.defaultWidth];
|
|
@@ -3890,12 +3890,12 @@ function ie(e) {
|
|
|
3890
3890
|
const o = t.width, i = o && e.matchPatterns[o] || e.matchPatterns[e.defaultMatchWidth], a = r.match(i);
|
|
3891
3891
|
if (!a)
|
|
3892
3892
|
return null;
|
|
3893
|
-
const l = a[0], d = o && e.parsePatterns[o] || e.parsePatterns[e.defaultParseWidth],
|
|
3893
|
+
const l = a[0], d = o && e.parsePatterns[o] || e.parsePatterns[e.defaultParseWidth], b = Array.isArray(d) ? qn(d, (g) => g.test(l)) : (
|
|
3894
3894
|
// [TODO] -- I challenge you to fix the type
|
|
3895
|
-
Yn(d, (
|
|
3895
|
+
Yn(d, (g) => g.test(l))
|
|
3896
3896
|
);
|
|
3897
3897
|
let c;
|
|
3898
|
-
c = e.valueCallback ? e.valueCallback(
|
|
3898
|
+
c = e.valueCallback ? e.valueCallback(b) : b, c = t.valueCallback ? (
|
|
3899
3899
|
// [TODO] -- I challenge you to fix the type
|
|
3900
3900
|
t.valueCallback(c)
|
|
3901
3901
|
) : c;
|
|
@@ -4268,19 +4268,19 @@ const Un = {
|
|
|
4268
4268
|
medium: "{{date}}, {{time}}",
|
|
4269
4269
|
short: "{{date}}, {{time}}"
|
|
4270
4270
|
}, po = {
|
|
4271
|
-
date:
|
|
4271
|
+
date: ue({
|
|
4272
4272
|
formats: go,
|
|
4273
4273
|
defaultWidth: "full"
|
|
4274
4274
|
}),
|
|
4275
|
-
time:
|
|
4275
|
+
time: ue({
|
|
4276
4276
|
formats: fo,
|
|
4277
4277
|
defaultWidth: "full"
|
|
4278
4278
|
}),
|
|
4279
|
-
dateTime:
|
|
4279
|
+
dateTime: ue({
|
|
4280
4280
|
formats: ho,
|
|
4281
4281
|
defaultWidth: "full"
|
|
4282
4282
|
})
|
|
4283
|
-
},
|
|
4283
|
+
}, Re = {
|
|
4284
4284
|
code: "en-GB",
|
|
4285
4285
|
formatDistance: Jt,
|
|
4286
4286
|
formatLong: po,
|
|
@@ -4307,19 +4307,19 @@ const Un = {
|
|
|
4307
4307
|
medium: "{{date}}, {{time}}",
|
|
4308
4308
|
short: "{{date}}, {{time}}"
|
|
4309
4309
|
}, wo = {
|
|
4310
|
-
date:
|
|
4310
|
+
date: ue({
|
|
4311
4311
|
formats: xo,
|
|
4312
4312
|
defaultWidth: "full"
|
|
4313
4313
|
}),
|
|
4314
|
-
time:
|
|
4314
|
+
time: ue({
|
|
4315
4315
|
formats: vo,
|
|
4316
4316
|
defaultWidth: "full"
|
|
4317
4317
|
}),
|
|
4318
|
-
dateTime:
|
|
4318
|
+
dateTime: ue({
|
|
4319
4319
|
formats: yo,
|
|
4320
4320
|
defaultWidth: "full"
|
|
4321
4321
|
})
|
|
4322
|
-
},
|
|
4322
|
+
}, We = {
|
|
4323
4323
|
code: "en-US",
|
|
4324
4324
|
formatDistance: Jt,
|
|
4325
4325
|
formatLong: wo,
|
|
@@ -4412,15 +4412,15 @@ const Un = {
|
|
|
4412
4412
|
medium: "{{date}}, {{time}}",
|
|
4413
4413
|
short: "{{date}}, {{time}}"
|
|
4414
4414
|
}, No = {
|
|
4415
|
-
date:
|
|
4415
|
+
date: ue({
|
|
4416
4416
|
formats: Co,
|
|
4417
4417
|
defaultWidth: "full"
|
|
4418
4418
|
}),
|
|
4419
|
-
time:
|
|
4419
|
+
time: ue({
|
|
4420
4420
|
formats: So,
|
|
4421
4421
|
defaultWidth: "full"
|
|
4422
4422
|
}),
|
|
4423
|
-
dateTime:
|
|
4423
|
+
dateTime: ue({
|
|
4424
4424
|
formats: Po,
|
|
4425
4425
|
defaultWidth: "full"
|
|
4426
4426
|
})
|
|
@@ -4520,7 +4520,7 @@ const Un = {
|
|
|
4520
4520
|
evening: "tarde",
|
|
4521
4521
|
night: "noche"
|
|
4522
4522
|
}
|
|
4523
|
-
},
|
|
4523
|
+
}, Wo = {
|
|
4524
4524
|
narrow: {
|
|
4525
4525
|
am: "a",
|
|
4526
4526
|
pm: "p",
|
|
@@ -4551,8 +4551,8 @@ const Un = {
|
|
|
4551
4551
|
evening: "de la tarde",
|
|
4552
4552
|
night: "de la noche"
|
|
4553
4553
|
}
|
|
4554
|
-
},
|
|
4555
|
-
ordinalNumber:
|
|
4554
|
+
}, Fo = (e, r) => Number(e) + "º", Ao = {
|
|
4555
|
+
ordinalNumber: Fo,
|
|
4556
4556
|
era: le({
|
|
4557
4557
|
values: Do,
|
|
4558
4558
|
defaultWidth: "wide"
|
|
@@ -4573,7 +4573,7 @@ const Un = {
|
|
|
4573
4573
|
dayPeriod: le({
|
|
4574
4574
|
values: Ro,
|
|
4575
4575
|
defaultWidth: "wide",
|
|
4576
|
-
formattingValues:
|
|
4576
|
+
formattingValues: Wo,
|
|
4577
4577
|
defaultFormattingWidth: "wide"
|
|
4578
4578
|
})
|
|
4579
4579
|
}, Oo = /^(\d+)(º)?/i, $o = /\d+/i, Vo = {
|
|
@@ -4703,13 +4703,27 @@ const Un = {
|
|
|
4703
4703
|
className: "focus:border-0 focus:ring-transparent focus:border-transparent text-md h-fit !w-fit cursor-pointer appearance-none rounded-md border-none pl-1 pr-9 font-semibold transition-colors focus:outline-none focus:ring-0",
|
|
4704
4704
|
onChange: e,
|
|
4705
4705
|
value: r,
|
|
4706
|
-
children: t == null ? void 0 : t.map((o, i) =>
|
|
4706
|
+
children: t == null ? void 0 : t.map((o, i) => {
|
|
4707
|
+
const a = o.value === r;
|
|
4708
|
+
return /* @__PURE__ */ s.jsx(
|
|
4709
|
+
"option",
|
|
4710
|
+
{
|
|
4711
|
+
value: o.value,
|
|
4712
|
+
disabled: o.disabled,
|
|
4713
|
+
className: T("disabled:hidden", {
|
|
4714
|
+
"bg-background-blue-subtle font-semibold text-content-accent-blue": a
|
|
4715
|
+
}),
|
|
4716
|
+
children: o.label
|
|
4717
|
+
},
|
|
4718
|
+
i
|
|
4719
|
+
);
|
|
4720
|
+
})
|
|
4707
4721
|
}
|
|
4708
4722
|
), Zo = ({
|
|
4709
4723
|
orientation: e = "down",
|
|
4710
4724
|
size: r = 16
|
|
4711
4725
|
}) => /* @__PURE__ */ s.jsx(
|
|
4712
|
-
|
|
4726
|
+
_,
|
|
4713
4727
|
{
|
|
4714
4728
|
iconName: e === "left" ? "IconChevronLeft" : "IconChevronRight",
|
|
4715
4729
|
stroke: 1,
|
|
@@ -4719,52 +4733,53 @@ const Un = {
|
|
|
4719
4733
|
locale: e = "enGB",
|
|
4720
4734
|
disabledDates: r,
|
|
4721
4735
|
enabledDates: t,
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4736
|
+
dropdownsSelectors: o = !0,
|
|
4737
|
+
hideNavigation: i = !1,
|
|
4738
|
+
showOutsideDays: a = !0,
|
|
4739
|
+
minDate: l,
|
|
4740
|
+
maxDate: d,
|
|
4741
|
+
value: b,
|
|
4742
|
+
className: c,
|
|
4743
|
+
onChange: u
|
|
4729
4744
|
}) => {
|
|
4730
|
-
const [
|
|
4731
|
-
if (
|
|
4732
|
-
const
|
|
4733
|
-
Tt({ start:
|
|
4734
|
-
|
|
4735
|
-
(
|
|
4736
|
-
) ||
|
|
4745
|
+
const [g, p] = q(), v = (W) => W.filter((A) => A !== void 0), w = Array.isArray(t) ? t.map((W) => new Date(W)) : t ? new Date(t) : void 0, h = Array.isArray(w) ? v(w) : w ? [w] : [], k = h.length > 0 ? Ir(h) : void 0, f = h.length > 0 ? Rr(h) : void 0, S = () => Array.isArray(r) ? r.map((W) => new Date(W)) : r ? new Date(r) : void 0, C = Array.isArray(S()) ? [...S()] : [];
|
|
4746
|
+
if (k && f) {
|
|
4747
|
+
const W = Wr(k), A = Fr(f);
|
|
4748
|
+
Tt({ start: W, end: A }).forEach((G) => {
|
|
4749
|
+
h.some(
|
|
4750
|
+
(F) => F.setHours(0, 0, 0, 0) === G.setHours(0, 0, 0, 0)
|
|
4751
|
+
) || C.push(G);
|
|
4737
4752
|
});
|
|
4738
4753
|
}
|
|
4739
4754
|
ae(() => {
|
|
4740
|
-
if (
|
|
4741
|
-
const
|
|
4742
|
-
isNaN(
|
|
4755
|
+
if (b) {
|
|
4756
|
+
const W = new Date(b);
|
|
4757
|
+
isNaN(W.getTime()) || p(W);
|
|
4743
4758
|
} else
|
|
4744
|
-
|
|
4745
|
-
}, [
|
|
4746
|
-
const
|
|
4747
|
-
|
|
4748
|
-
},
|
|
4749
|
-
return /* @__PURE__ */ s.jsx("div", { className:
|
|
4759
|
+
p(void 0);
|
|
4760
|
+
}, [b]);
|
|
4761
|
+
const P = (W) => {
|
|
4762
|
+
p(W), u && u(W ? ne(W, "yyyy-MM-dd") : void 0);
|
|
4763
|
+
}, $ = e === "enGB" ? Re : e === "enUS" ? We : Fe;
|
|
4764
|
+
return /* @__PURE__ */ s.jsx("div", { className: T("p-2", c), children: /* @__PURE__ */ s.jsx(
|
|
4750
4765
|
_t,
|
|
4751
4766
|
{
|
|
4752
4767
|
mode: "single",
|
|
4753
|
-
captionLayout: "dropdown",
|
|
4754
|
-
selected:
|
|
4755
|
-
onSelect:
|
|
4756
|
-
locale:
|
|
4757
|
-
startMonth:
|
|
4758
|
-
endMonth:
|
|
4759
|
-
disabled:
|
|
4760
|
-
showOutsideDays:
|
|
4761
|
-
hideNavigation:
|
|
4768
|
+
captionLayout: o ? "dropdown" : "label",
|
|
4769
|
+
selected: g,
|
|
4770
|
+
onSelect: P,
|
|
4771
|
+
locale: $,
|
|
4772
|
+
startMonth: l || k || new Date(1900, 1, 1),
|
|
4773
|
+
endMonth: d || f || new Date(2100, 12, 31),
|
|
4774
|
+
disabled: C,
|
|
4775
|
+
showOutsideDays: a,
|
|
4776
|
+
hideNavigation: i,
|
|
4762
4777
|
className: "p-2",
|
|
4763
4778
|
classNames: {
|
|
4764
4779
|
root: "w-fit text-sm text-center",
|
|
4765
4780
|
weekday: "text-content-text-subtle font-regular",
|
|
4766
4781
|
month_grid: "border-separate",
|
|
4767
|
-
month_caption: `h-9 relative ${
|
|
4782
|
+
month_caption: `h-9 relative flex items-center w-full ${i ? "hidden" : ""}`,
|
|
4768
4783
|
dropdowns: "absolute w-fit items-center justify-center z-10 left-1/2 flex -translate-x-1/2 top-1/2 -translate-y-1/2",
|
|
4769
4784
|
button_next: "rounded-full border-none lg:hover:bg-background-neutral transition-colors z-[1] p-2 disabled:opacity-50",
|
|
4770
4785
|
button_previous: "rounded-full border-none lg:hover:bg-background-neutral transition-colors z-[1] p-2 disabled:opacity-50",
|
|
@@ -4772,17 +4787,18 @@ const Un = {
|
|
|
4772
4787
|
selected: "bg-background-blue-subtle border-xs !border-border-blue text-content-accent-blue lg:hover:!bg-background-blue/10 transition-colors font-semibold",
|
|
4773
4788
|
today: "font-semibold bg-background-blue-subtle",
|
|
4774
4789
|
disabled: "text-content-text-disabled lg:hover:!bg-background-white border-border-subtle",
|
|
4790
|
+
caption_label: "text-content-text-default text-base font-semibold leading-none self-center w-full",
|
|
4775
4791
|
outside: "text-content-text-disabled border-border-subtle bg-background-white",
|
|
4776
4792
|
day_button: "text-sm h-9 w-9 whitespace-nowrap border-none",
|
|
4777
4793
|
day: "h-9 w-9 aspect-square text-sm rounded-sm border-xs border-border-default lg:hover:bg-background-blue-subtle transition-colors p-0 whitespace-nowrap"
|
|
4778
4794
|
},
|
|
4779
4795
|
components: {
|
|
4780
4796
|
Dropdown: Qo,
|
|
4781
|
-
Chevron: ({ orientation:
|
|
4797
|
+
Chevron: ({ orientation: W, size: A }) => /* @__PURE__ */ s.jsx(Zo, { orientation: W, size: A })
|
|
4782
4798
|
}
|
|
4783
4799
|
}
|
|
4784
4800
|
) });
|
|
4785
|
-
}, ta = "flex flex-col gap-4 p-6 text-content-text-default rounded-lg", ra =
|
|
4801
|
+
}, ta = "flex flex-col gap-4 p-6 text-content-text-default rounded-lg", ra = H(ta, {
|
|
4786
4802
|
variants: {
|
|
4787
4803
|
intent: {
|
|
4788
4804
|
default: "bg-background-white",
|
|
@@ -4802,26 +4818,26 @@ const Un = {
|
|
|
4802
4818
|
intent: "default",
|
|
4803
4819
|
shadow: "none"
|
|
4804
4820
|
}
|
|
4805
|
-
}), Zt =
|
|
4821
|
+
}), Zt = L(
|
|
4806
4822
|
({ className: e, intent: r, shadow: t, children: o, ...i }, a) => /* @__PURE__ */ s.jsx(
|
|
4807
4823
|
"div",
|
|
4808
4824
|
{
|
|
4809
4825
|
ref: a,
|
|
4810
|
-
className:
|
|
4826
|
+
className: T(ra({ intent: r, shadow: t, className: e })),
|
|
4811
4827
|
...i,
|
|
4812
4828
|
children: o
|
|
4813
4829
|
}
|
|
4814
4830
|
)
|
|
4815
4831
|
);
|
|
4816
4832
|
Zt.displayName = "Card";
|
|
4817
|
-
const _a = Zt, za =
|
|
4818
|
-
({ label: e, className: r, helperText: t, error: o, touched: i, ...a }, l) => /* @__PURE__ */ s.jsxs("div", { className:
|
|
4833
|
+
const _a = Zt, za = L(
|
|
4834
|
+
({ label: e, className: r, helperText: t, error: o, touched: i, ...a }, l) => /* @__PURE__ */ s.jsxs("div", { className: T("flex flex-col gap-3", r), children: [
|
|
4819
4835
|
/* @__PURE__ */ s.jsxs("div", { className: "flex flex-row items-center gap-3", children: [
|
|
4820
4836
|
/* @__PURE__ */ s.jsx(
|
|
4821
4837
|
"input",
|
|
4822
4838
|
{
|
|
4823
4839
|
type: "checkbox",
|
|
4824
|
-
className:
|
|
4840
|
+
className: te(
|
|
4825
4841
|
"checked:border-2 checked:ring-offset-transparent h-6 w-6 rounded-sm transition-colors duration-100 checked:text-content-accent-blue focus:outline-border-bolder"
|
|
4826
4842
|
),
|
|
4827
4843
|
ref: l,
|
|
@@ -4829,7 +4845,7 @@ const _a = Zt, za = H(
|
|
|
4829
4845
|
}
|
|
4830
4846
|
),
|
|
4831
4847
|
e && /* @__PURE__ */ s.jsx("label", { htmlFor: a.id, children: /* @__PURE__ */ s.jsx(
|
|
4832
|
-
|
|
4848
|
+
I,
|
|
4833
4849
|
{
|
|
4834
4850
|
intent: "label-lg",
|
|
4835
4851
|
weight: "semibold",
|
|
@@ -4838,10 +4854,10 @@ const _a = Zt, za = H(
|
|
|
4838
4854
|
}
|
|
4839
4855
|
) })
|
|
4840
4856
|
] }),
|
|
4841
|
-
t && /* @__PURE__ */ s.jsx(
|
|
4842
|
-
o && i && /* @__PURE__ */ s.jsx(
|
|
4857
|
+
t && /* @__PURE__ */ s.jsx(I, { intent: "label-md", className: "text-content-text-subtle", children: t }),
|
|
4858
|
+
o && i && /* @__PURE__ */ s.jsx(I, { intent: "label-md", className: "text-content-utility-error", children: o })
|
|
4843
4859
|
] })
|
|
4844
|
-
), na = "inline-flex items-center gap-2 rounded-full !border-xs px-3 py-1 transition-colors cursor-pointer", oa =
|
|
4860
|
+
), na = "inline-flex items-center gap-2 rounded-full !border-xs px-3 py-1 transition-colors cursor-pointer", oa = H(na, {
|
|
4845
4861
|
variants: {
|
|
4846
4862
|
intent: {
|
|
4847
4863
|
selected: [
|
|
@@ -4885,7 +4901,7 @@ const _a = Zt, za = H(
|
|
|
4885
4901
|
size: "md",
|
|
4886
4902
|
weight: "regular"
|
|
4887
4903
|
}
|
|
4888
|
-
}), er =
|
|
4904
|
+
}), er = L(
|
|
4889
4905
|
({
|
|
4890
4906
|
className: e,
|
|
4891
4907
|
intent: r,
|
|
@@ -4895,19 +4911,19 @@ const _a = Zt, za = H(
|
|
|
4895
4911
|
iconLeft: a,
|
|
4896
4912
|
iconRight: l,
|
|
4897
4913
|
notification: d,
|
|
4898
|
-
disabled:
|
|
4914
|
+
disabled: b,
|
|
4899
4915
|
...c
|
|
4900
4916
|
}, u) => (typeof a == "string" && (a = { name: a }), typeof l == "string" && (l = { name: l }), /* @__PURE__ */ s.jsxs(
|
|
4901
4917
|
"button",
|
|
4902
4918
|
{
|
|
4903
4919
|
ref: u,
|
|
4904
|
-
className:
|
|
4905
|
-
disabled:
|
|
4920
|
+
className: T(oa({ intent: r, size: t, weight: o, className: e })),
|
|
4921
|
+
disabled: b,
|
|
4906
4922
|
type: "button",
|
|
4907
4923
|
...c,
|
|
4908
4924
|
children: [
|
|
4909
4925
|
a && /* @__PURE__ */ s.jsx(
|
|
4910
|
-
|
|
4926
|
+
_,
|
|
4911
4927
|
{
|
|
4912
4928
|
iconName: a == null ? void 0 : a.name,
|
|
4913
4929
|
stroke: a == null ? void 0 : a.stroke,
|
|
@@ -4916,7 +4932,7 @@ const _a = Zt, za = H(
|
|
|
4916
4932
|
),
|
|
4917
4933
|
i,
|
|
4918
4934
|
l && /* @__PURE__ */ s.jsx(
|
|
4919
|
-
|
|
4935
|
+
_,
|
|
4920
4936
|
{
|
|
4921
4937
|
iconName: l == null ? void 0 : l.name,
|
|
4922
4938
|
stroke: l == null ? void 0 : l.stroke,
|
|
@@ -4924,7 +4940,7 @@ const _a = Zt, za = H(
|
|
|
4924
4940
|
}
|
|
4925
4941
|
),
|
|
4926
4942
|
d && /* @__PURE__ */ s.jsx(
|
|
4927
|
-
|
|
4943
|
+
_,
|
|
4928
4944
|
{
|
|
4929
4945
|
iconName: "IconCircleFilled",
|
|
4930
4946
|
size: 6,
|
|
@@ -4936,7 +4952,7 @@ const _a = Zt, za = H(
|
|
|
4936
4952
|
))
|
|
4937
4953
|
);
|
|
4938
4954
|
er.displayName = "Chip";
|
|
4939
|
-
const lt =
|
|
4955
|
+
const lt = L(
|
|
4940
4956
|
({
|
|
4941
4957
|
children: e,
|
|
4942
4958
|
trigger: r,
|
|
@@ -4946,16 +4962,17 @@ const lt = H(
|
|
|
4946
4962
|
close: a = !1,
|
|
4947
4963
|
className: l,
|
|
4948
4964
|
onMouseDown: d,
|
|
4949
|
-
onMouseUp:
|
|
4950
|
-
|
|
4965
|
+
onMouseUp: b,
|
|
4966
|
+
popoverWidth: c = "auto"
|
|
4967
|
+
}, u) => {
|
|
4951
4968
|
var A;
|
|
4952
|
-
const [
|
|
4953
|
-
open:
|
|
4954
|
-
onOpenChange:
|
|
4969
|
+
const [g, p] = q(t), v = Qe(null), { refs: x, floatingStyles: w, context: h } = Ze({
|
|
4970
|
+
open: g,
|
|
4971
|
+
onOpenChange: p,
|
|
4955
4972
|
placement: o,
|
|
4956
4973
|
middleware: [zt(8), It(), Rt()],
|
|
4957
|
-
whileElementsMounted:
|
|
4958
|
-
}),
|
|
4974
|
+
whileElementsMounted: Wt
|
|
4975
|
+
}), k = Ft(h, { outsidePress: !0 }), { getReferenceProps: f, getFloatingProps: S } = At([k]), { isMounted: C } = Ot(h), { styles: P } = et(h, {
|
|
4959
4976
|
initial: {
|
|
4960
4977
|
opacity: 0,
|
|
4961
4978
|
transform: "scale(0.90)",
|
|
@@ -4974,41 +4991,41 @@ const lt = H(
|
|
|
4974
4991
|
transitionDuration: "0.1s",
|
|
4975
4992
|
transitionTimingFunction: "ease-out"
|
|
4976
4993
|
}
|
|
4977
|
-
}),
|
|
4978
|
-
onClick: (
|
|
4979
|
-
|
|
4994
|
+
}), W = Tr(r, {
|
|
4995
|
+
onClick: (G) => {
|
|
4996
|
+
G.stopPropagation(), p((F) => !F);
|
|
4980
4997
|
},
|
|
4981
|
-
ref: (
|
|
4982
|
-
|
|
4998
|
+
ref: (G) => {
|
|
4999
|
+
v.current = G, x.setReference(G);
|
|
4983
5000
|
},
|
|
4984
|
-
...
|
|
5001
|
+
...f()
|
|
4985
5002
|
});
|
|
4986
5003
|
return ae(() => {
|
|
4987
|
-
a &&
|
|
5004
|
+
a && p(!1);
|
|
4988
5005
|
}, [a]), /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
4989
|
-
|
|
4990
|
-
|
|
5006
|
+
W,
|
|
5007
|
+
C && /* @__PURE__ */ s.jsx(tt, { children: /* @__PURE__ */ s.jsx(
|
|
4991
5008
|
"div",
|
|
4992
5009
|
{
|
|
4993
|
-
ref:
|
|
5010
|
+
ref: x.setFloating,
|
|
4994
5011
|
style: {
|
|
4995
|
-
...
|
|
4996
|
-
minWidth: (A =
|
|
5012
|
+
...w,
|
|
5013
|
+
minWidth: c === "as-trigger" ? (A = v.current) == null ? void 0 : A.offsetWidth : void 0
|
|
4997
5014
|
},
|
|
4998
5015
|
className: "z-[99999]",
|
|
4999
|
-
...
|
|
5016
|
+
...S(),
|
|
5000
5017
|
children: /* @__PURE__ */ s.jsx(
|
|
5001
5018
|
"div",
|
|
5002
5019
|
{
|
|
5003
|
-
style: { ...
|
|
5004
|
-
ref:
|
|
5005
|
-
className:
|
|
5006
|
-
"
|
|
5020
|
+
style: { ...P },
|
|
5021
|
+
ref: u,
|
|
5022
|
+
className: T(
|
|
5023
|
+
"rounded-sm bg-background-white p-4 shadow-sm",
|
|
5007
5024
|
l
|
|
5008
5025
|
),
|
|
5009
5026
|
onMouseDown: d,
|
|
5010
|
-
onMouseUp:
|
|
5011
|
-
onClick: i ? () =>
|
|
5027
|
+
onMouseUp: b,
|
|
5028
|
+
onClick: i ? () => p(!1) : void 0,
|
|
5012
5029
|
children: e || /* @__PURE__ */ s.jsx("div", { children: "Your placeholder here" })
|
|
5013
5030
|
}
|
|
5014
5031
|
)
|
|
@@ -5016,7 +5033,7 @@ const lt = H(
|
|
|
5016
5033
|
) })
|
|
5017
5034
|
] });
|
|
5018
5035
|
}
|
|
5019
|
-
), aa =
|
|
5036
|
+
), aa = L(
|
|
5020
5037
|
({
|
|
5021
5038
|
className: e,
|
|
5022
5039
|
placeholder: r,
|
|
@@ -5025,43 +5042,45 @@ const lt = H(
|
|
|
5025
5042
|
helperText: i,
|
|
5026
5043
|
disabledDates: a,
|
|
5027
5044
|
enabledDates: l,
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5045
|
+
calendarDropdowns: d = !0,
|
|
5046
|
+
hideNavigation: b = !1,
|
|
5047
|
+
showOutsideDays: c = !0,
|
|
5048
|
+
closeOnAction: u = !0,
|
|
5049
|
+
locale: g = "enGB",
|
|
5050
|
+
error: p,
|
|
5051
|
+
touched: v,
|
|
5052
|
+
value: x,
|
|
5053
|
+
minDate: w,
|
|
5054
|
+
onChange: h,
|
|
5055
|
+
maxDate: k,
|
|
5056
|
+
...f
|
|
5057
|
+
}, S) => {
|
|
5058
|
+
const [C, P] = q(), [$, W] = q(!1), A = (F) => {
|
|
5059
|
+
P(F), h && h({
|
|
5042
5060
|
target: {
|
|
5043
|
-
name:
|
|
5044
|
-
value:
|
|
5061
|
+
name: f.name,
|
|
5062
|
+
value: F ? ne(F, "yyyy-MM-dd") : ""
|
|
5045
5063
|
}
|
|
5046
|
-
}),
|
|
5047
|
-
|
|
5064
|
+
}), u && (W(!0), setTimeout(() => {
|
|
5065
|
+
W(!1);
|
|
5048
5066
|
}, 200));
|
|
5049
5067
|
};
|
|
5050
5068
|
ae(() => {
|
|
5051
|
-
if (
|
|
5052
|
-
const
|
|
5053
|
-
isNaN(
|
|
5054
|
-
}
|
|
5055
|
-
|
|
5056
|
-
|
|
5069
|
+
if (x) {
|
|
5070
|
+
const F = new Date(x);
|
|
5071
|
+
isNaN(F.getTime()) || P(F);
|
|
5072
|
+
} else
|
|
5073
|
+
P(void 0);
|
|
5074
|
+
}, [x]);
|
|
5075
|
+
const G = g === "enGB" ? Re : g === "enUS" ? We : Fe;
|
|
5057
5076
|
return /* @__PURE__ */ s.jsxs(
|
|
5058
5077
|
"div",
|
|
5059
5078
|
{
|
|
5060
|
-
ref:
|
|
5061
|
-
className:
|
|
5062
|
-
...
|
|
5079
|
+
ref: S,
|
|
5080
|
+
className: T("flex flex-col gap-3", e),
|
|
5081
|
+
...f,
|
|
5063
5082
|
children: [
|
|
5064
|
-
o && /* @__PURE__ */ s.jsx("label", { htmlFor:
|
|
5083
|
+
o && /* @__PURE__ */ s.jsx("label", { htmlFor: f.id, children: /* @__PURE__ */ s.jsx(I, { intent: "label-lg", weight: "semibold", children: o }) }),
|
|
5065
5084
|
/* @__PURE__ */ s.jsx(
|
|
5066
5085
|
lt,
|
|
5067
5086
|
{
|
|
@@ -5069,59 +5088,61 @@ const lt = H(
|
|
|
5069
5088
|
"button",
|
|
5070
5089
|
{
|
|
5071
5090
|
type: "button",
|
|
5072
|
-
className:
|
|
5091
|
+
className: te(
|
|
5073
5092
|
"flex w-full cursor-pointer items-center gap-2 whitespace-pre-wrap rounded-sm border-xs border-border-default p-3 text-base focus:border-border-bolder focus:outline-2 focus:outline-offset-4 focus:outline-border-bolder",
|
|
5074
5093
|
{
|
|
5075
|
-
"text-content-text-subtlest": !
|
|
5076
|
-
"border-border-
|
|
5077
|
-
"border-border-utility-
|
|
5094
|
+
"text-content-text-subtlest": !C,
|
|
5095
|
+
"border-border-blue font-semibold text-content-accent-blue focus:border-border-blue-bolder active:border-border-blue-bolder": C,
|
|
5096
|
+
"border-border-utility-success focus:outline-border-utility-success": v && !p,
|
|
5097
|
+
"border-border-utility-error focus:outline-border-utility-error": p && v
|
|
5078
5098
|
}
|
|
5079
5099
|
),
|
|
5080
5100
|
children: [
|
|
5081
5101
|
/* @__PURE__ */ s.jsx(
|
|
5082
|
-
|
|
5102
|
+
_,
|
|
5083
5103
|
{
|
|
5084
5104
|
iconName: "IconCalendar",
|
|
5085
5105
|
size: 20,
|
|
5086
5106
|
className: "pointer-events-none"
|
|
5087
5107
|
}
|
|
5088
5108
|
),
|
|
5089
|
-
|
|
5109
|
+
C ? ne(C, "PPP", { locale: G }) : r || "Select a date",
|
|
5090
5110
|
/* @__PURE__ */ s.jsx(
|
|
5091
5111
|
"input",
|
|
5092
5112
|
{
|
|
5093
5113
|
hidden: !0,
|
|
5094
5114
|
onChange: () => null,
|
|
5095
|
-
value:
|
|
5115
|
+
value: C ? ne(C, "yyyy-MM-dd") : x || ""
|
|
5096
5116
|
}
|
|
5097
5117
|
)
|
|
5098
5118
|
]
|
|
5099
5119
|
}
|
|
5100
5120
|
),
|
|
5101
|
-
close:
|
|
5121
|
+
close: $,
|
|
5102
5122
|
placement: t,
|
|
5103
5123
|
className: "rounded-sm !border-xs border-border-default p-0 shadow-none",
|
|
5104
5124
|
children: /* @__PURE__ */ s.jsx(
|
|
5105
5125
|
ea,
|
|
5106
5126
|
{
|
|
5107
|
-
locale:
|
|
5127
|
+
locale: g,
|
|
5108
5128
|
disabledDates: a,
|
|
5109
5129
|
enabledDates: l,
|
|
5110
|
-
hideNavigation:
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5130
|
+
hideNavigation: b,
|
|
5131
|
+
dropdownsSelectors: d,
|
|
5132
|
+
showOutsideDays: c,
|
|
5133
|
+
value: C ? ne(C, "yyyy-MM-dd") : x,
|
|
5134
|
+
maxDate: k,
|
|
5135
|
+
minDate: w,
|
|
5136
|
+
onChange: (F) => {
|
|
5137
|
+
const re = F ? new Date(F) : void 0;
|
|
5138
|
+
A(re);
|
|
5118
5139
|
},
|
|
5119
5140
|
className: "p-0"
|
|
5120
5141
|
}
|
|
5121
5142
|
)
|
|
5122
5143
|
}
|
|
5123
5144
|
),
|
|
5124
|
-
|
|
5145
|
+
p && v ? /* @__PURE__ */ s.jsx(I, { intent: "label-md", className: "text-content-utility-error", children: p }) : i ? /* @__PURE__ */ s.jsx(I, { intent: "label-md", children: i }) : null
|
|
5125
5146
|
]
|
|
5126
5147
|
}
|
|
5127
5148
|
);
|
|
@@ -5134,19 +5155,33 @@ const la = ({ onChange: e, value: r, options: t }) => /* @__PURE__ */ s.jsx(
|
|
|
5134
5155
|
className: "focus:border-0 focus:ring-transparent focus:border-transparent text-md h-fit !w-fit cursor-pointer appearance-none rounded-md border-none pl-1 pr-9 font-semibold transition-colors focus:outline-none focus:ring-0",
|
|
5135
5156
|
onChange: e,
|
|
5136
5157
|
value: r,
|
|
5137
|
-
children: t == null ? void 0 : t.map((o, i) =>
|
|
5158
|
+
children: t == null ? void 0 : t.map((o, i) => {
|
|
5159
|
+
const a = o.value === r;
|
|
5160
|
+
return /* @__PURE__ */ s.jsx(
|
|
5161
|
+
"option",
|
|
5162
|
+
{
|
|
5163
|
+
value: o.value,
|
|
5164
|
+
disabled: o.disabled,
|
|
5165
|
+
className: T("disabled:hidden", {
|
|
5166
|
+
"bg-background-blue-subtle font-semibold text-content-accent-blue": a
|
|
5167
|
+
}),
|
|
5168
|
+
children: o.label
|
|
5169
|
+
},
|
|
5170
|
+
i
|
|
5171
|
+
);
|
|
5172
|
+
})
|
|
5138
5173
|
}
|
|
5139
5174
|
), ia = ({
|
|
5140
5175
|
orientation: e = "down",
|
|
5141
5176
|
size: r = 16
|
|
5142
5177
|
}) => /* @__PURE__ */ s.jsx(
|
|
5143
|
-
|
|
5178
|
+
_,
|
|
5144
5179
|
{
|
|
5145
5180
|
iconName: e === "left" ? "IconChevronLeft" : "IconChevronRight",
|
|
5146
5181
|
stroke: 1,
|
|
5147
5182
|
size: r
|
|
5148
5183
|
}
|
|
5149
|
-
), da =
|
|
5184
|
+
), da = L(
|
|
5150
5185
|
({
|
|
5151
5186
|
className: e,
|
|
5152
5187
|
locale: r = "enGB",
|
|
@@ -5156,50 +5191,51 @@ const la = ({ onChange: e, value: r, options: t }) => /* @__PURE__ */ s.jsx(
|
|
|
5156
5191
|
helperText: a,
|
|
5157
5192
|
placement: l = "bottom",
|
|
5158
5193
|
error: d,
|
|
5159
|
-
touched:
|
|
5194
|
+
touched: b,
|
|
5160
5195
|
startDate: c,
|
|
5161
5196
|
endDate: u,
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5197
|
+
calendarDropdowns: g = !0,
|
|
5198
|
+
onChange: p,
|
|
5199
|
+
minDate: v,
|
|
5200
|
+
maxDate: x,
|
|
5201
|
+
...w
|
|
5202
|
+
}, h) => {
|
|
5203
|
+
const [k, f] = q({
|
|
5168
5204
|
from: c ? new Date(c) : void 0,
|
|
5169
5205
|
to: u ? new Date(u) : void 0
|
|
5170
|
-
}),
|
|
5171
|
-
if (
|
|
5172
|
-
const
|
|
5173
|
-
from:
|
|
5174
|
-
to:
|
|
5206
|
+
}), S = (P) => {
|
|
5207
|
+
if (f(P), p) {
|
|
5208
|
+
const $ = {
|
|
5209
|
+
from: P.from ? ne(P.from, "yyyy-MM-dd") : "",
|
|
5210
|
+
to: P.to ? ne(P.to, "yyyy-MM-dd") : ""
|
|
5175
5211
|
};
|
|
5176
|
-
|
|
5212
|
+
p({
|
|
5177
5213
|
target: {
|
|
5178
|
-
name:
|
|
5179
|
-
value:
|
|
5214
|
+
name: w.name,
|
|
5215
|
+
value: $
|
|
5180
5216
|
}
|
|
5181
5217
|
});
|
|
5182
5218
|
}
|
|
5183
5219
|
};
|
|
5184
5220
|
ae(() => {
|
|
5185
5221
|
if (c) {
|
|
5186
|
-
const
|
|
5187
|
-
isNaN(
|
|
5222
|
+
const P = new Date(c);
|
|
5223
|
+
isNaN(P.getTime()) || f(($) => ({ ...$, from: P }));
|
|
5188
5224
|
}
|
|
5189
5225
|
if (u) {
|
|
5190
|
-
const
|
|
5191
|
-
isNaN(
|
|
5226
|
+
const P = new Date(u);
|
|
5227
|
+
isNaN(P.getTime()) || f(($) => ({ ...$, to: P }));
|
|
5192
5228
|
}
|
|
5193
5229
|
}, [c, u]);
|
|
5194
|
-
const
|
|
5230
|
+
const C = r === "enGB" ? Re : r === "enUS" ? We : Fe;
|
|
5195
5231
|
return /* @__PURE__ */ s.jsxs(
|
|
5196
5232
|
"div",
|
|
5197
5233
|
{
|
|
5198
|
-
ref:
|
|
5199
|
-
className:
|
|
5200
|
-
...
|
|
5234
|
+
ref: h,
|
|
5235
|
+
className: T("flex flex-col gap-3", e),
|
|
5236
|
+
...w,
|
|
5201
5237
|
children: [
|
|
5202
|
-
o && /* @__PURE__ */ s.jsx("label", { htmlFor:
|
|
5238
|
+
o && /* @__PURE__ */ s.jsx("label", { htmlFor: w.id, children: /* @__PURE__ */ s.jsx(I, { intent: "label-lg", weight: "semibold", children: o }) }),
|
|
5203
5239
|
/* @__PURE__ */ s.jsx(
|
|
5204
5240
|
lt,
|
|
5205
5241
|
{
|
|
@@ -5207,47 +5243,48 @@ const la = ({ onChange: e, value: r, options: t }) => /* @__PURE__ */ s.jsx(
|
|
|
5207
5243
|
"button",
|
|
5208
5244
|
{
|
|
5209
5245
|
type: "button",
|
|
5210
|
-
className:
|
|
5246
|
+
className: te(
|
|
5211
5247
|
"flex w-full cursor-pointer items-center gap-2 whitespace-pre-wrap rounded-sm border-xs border-border-default p-3 text-base focus:border-border-bolder focus:outline-2 focus:outline-offset-4 focus:outline-border-bolder",
|
|
5212
5248
|
{
|
|
5213
|
-
"text-content-text-subtlest": !
|
|
5214
|
-
"border-border-utility-success focus:outline-border-utility-success":
|
|
5215
|
-
"border-border-utility-error focus:outline-border-utility-error": d &&
|
|
5249
|
+
"text-content-text-subtlest": !k.from && !k.to,
|
|
5250
|
+
"border-border-utility-success focus:outline-border-utility-success": b && !d,
|
|
5251
|
+
"border-border-utility-error focus:outline-border-utility-error": d && b
|
|
5216
5252
|
}
|
|
5217
5253
|
),
|
|
5218
5254
|
children: [
|
|
5219
5255
|
/* @__PURE__ */ s.jsx(
|
|
5220
|
-
|
|
5256
|
+
_,
|
|
5221
5257
|
{
|
|
5222
5258
|
iconName: "IconCalendar",
|
|
5223
5259
|
size: 20,
|
|
5224
5260
|
className: "pointer-events-none"
|
|
5225
5261
|
}
|
|
5226
5262
|
),
|
|
5227
|
-
|
|
5263
|
+
k.from && k.to ? `${ne(k.from, "PPP", { locale: C })} - ${ne(k.to, "PPP", { locale: C })}` : t || "Select a date range",
|
|
5228
5264
|
/* @__PURE__ */ s.jsx(
|
|
5229
5265
|
"input",
|
|
5230
5266
|
{
|
|
5231
5267
|
hidden: !0,
|
|
5232
5268
|
onChange: () => null,
|
|
5233
|
-
value:
|
|
5269
|
+
value: k.from && k.to ? `${ne(k.from, "yyyy-MM-dd")} to ${ne(k.to, "yyyy-MM-dd")}` : `${c || ""} to ${u || ""}`
|
|
5234
5270
|
}
|
|
5235
5271
|
)
|
|
5236
5272
|
]
|
|
5237
5273
|
}
|
|
5238
5274
|
),
|
|
5239
5275
|
placement: l,
|
|
5276
|
+
popoverWidth: "auto",
|
|
5240
5277
|
className: "rounded-sm !border-xs border-border-default p-0 shadow-none",
|
|
5241
5278
|
children: /* @__PURE__ */ s.jsx(
|
|
5242
5279
|
_t,
|
|
5243
5280
|
{
|
|
5244
5281
|
mode: "range",
|
|
5245
|
-
captionLayout: "dropdown",
|
|
5246
|
-
selected:
|
|
5247
|
-
onSelect:
|
|
5248
|
-
locale:
|
|
5249
|
-
startMonth:
|
|
5250
|
-
endMonth:
|
|
5282
|
+
captionLayout: g ? "dropdown" : "label",
|
|
5283
|
+
selected: k,
|
|
5284
|
+
onSelect: S,
|
|
5285
|
+
locale: C,
|
|
5286
|
+
startMonth: v || new Date(1900, 0, 1),
|
|
5287
|
+
endMonth: x || new Date(2100, 11, 31),
|
|
5251
5288
|
showOutsideDays: !0,
|
|
5252
5289
|
disabled: i,
|
|
5253
5290
|
className: "p-2",
|
|
@@ -5256,7 +5293,7 @@ const la = ({ onChange: e, value: r, options: t }) => /* @__PURE__ */ s.jsx(
|
|
|
5256
5293
|
root: "w-fit text-sm text-center",
|
|
5257
5294
|
weekday: "text-content-text-subtle font-regular",
|
|
5258
5295
|
month_grid: "border-separate",
|
|
5259
|
-
month_caption: "h-9 relative",
|
|
5296
|
+
month_caption: "h-9 relative flex items-center w-full",
|
|
5260
5297
|
dropdowns: "absolute w-fit items-center justify-center z-10 left-1/2 flex -translate-x-1/2 top-1/2 -translate-y-1/2",
|
|
5261
5298
|
button_next: "rounded-full border-none lg:hover:bg-background-neutral transition-colors z-[1] p-2",
|
|
5262
5299
|
button_previous: "rounded-full border-none lg:hover:bg-background-neutral transition-colors z-[1] p-2",
|
|
@@ -5265,6 +5302,7 @@ const la = ({ onChange: e, value: r, options: t }) => /* @__PURE__ */ s.jsx(
|
|
|
5265
5302
|
today: "font-semibold bg-background-blue-subtle",
|
|
5266
5303
|
outside: "text-content-text-disabled border-border-subtle bg-background-white",
|
|
5267
5304
|
day_button: "text-sm h-9 w-9 whitespace-nowrap border-none",
|
|
5305
|
+
caption_label: "text-content-text-default text-base font-semibold leading-none self-center w-full",
|
|
5268
5306
|
disabled: "text-content-text-disabled lg:hover:!bg-background-white border-border-subtle",
|
|
5269
5307
|
day: "h-9 w-9 aspect-square text-sm rounded-sm border-xs border-border-default lg:hover:bg-background-blue-subtle transition-colors p-0 whitespace-nowrap",
|
|
5270
5308
|
range_end: "!bg-background-blue border-xs !border-border-blue text-content-text-inverse lg:hover:!bg-background-blue/90 transition-colors font-semibold",
|
|
@@ -5273,33 +5311,33 @@ const la = ({ onChange: e, value: r, options: t }) => /* @__PURE__ */ s.jsx(
|
|
|
5273
5311
|
},
|
|
5274
5312
|
components: {
|
|
5275
5313
|
Dropdown: la,
|
|
5276
|
-
Chevron: ({ orientation:
|
|
5314
|
+
Chevron: ({ orientation: P, size: $ }) => /* @__PURE__ */ s.jsx(ia, { orientation: P, size: $ })
|
|
5277
5315
|
}
|
|
5278
5316
|
}
|
|
5279
5317
|
)
|
|
5280
5318
|
}
|
|
5281
5319
|
),
|
|
5282
|
-
d &&
|
|
5320
|
+
d && b ? /* @__PURE__ */ s.jsx(I, { intent: "label-md", className: "text-content-utility-error", children: d }) : /* @__PURE__ */ s.jsx(I, { intent: "label-md", children: a })
|
|
5283
5321
|
]
|
|
5284
5322
|
}
|
|
5285
5323
|
);
|
|
5286
5324
|
}
|
|
5287
5325
|
), ca = da;
|
|
5288
5326
|
ca.displayName = "DateRangePicker";
|
|
5289
|
-
const Mt = { enGB:
|
|
5327
|
+
const Mt = { enGB: Re, enUS: We, es: Fe }, ua = (e) => {
|
|
5290
5328
|
const r = Ar(/* @__PURE__ */ new Date(), { locale: Mt[e] });
|
|
5291
5329
|
return Tt({
|
|
5292
5330
|
start: r,
|
|
5293
5331
|
end: Dt(r, 6 * 24 * 60)
|
|
5294
5332
|
}).map(
|
|
5295
|
-
(t) =>
|
|
5333
|
+
(t) => ne(t, "EEEE", { locale: Mt[e] }).toUpperCase()
|
|
5296
5334
|
);
|
|
5297
5335
|
}, ba = (e, r, t) => {
|
|
5298
5336
|
const o = [];
|
|
5299
5337
|
let i = /* @__PURE__ */ new Date(`1970-01-01T${e}:00`);
|
|
5300
5338
|
const a = /* @__PURE__ */ new Date(`1970-01-01T${r}:00`);
|
|
5301
5339
|
for (; i <= a; )
|
|
5302
|
-
o.push(
|
|
5340
|
+
o.push(ne(i, "HH:mm")), i = Dt(i, t);
|
|
5303
5341
|
return o;
|
|
5304
5342
|
}, ma = (e) => {
|
|
5305
5343
|
if (new Set(e).size !== e.length)
|
|
@@ -5315,105 +5353,105 @@ const Mt = { enGB: Ie, enUS: Re, es: Fe }, ua = (e) => {
|
|
|
5315
5353
|
disabledDays: d = []
|
|
5316
5354
|
}) => {
|
|
5317
5355
|
ma(d);
|
|
5318
|
-
const
|
|
5356
|
+
const b = Ue(() => ua(o), [o]), c = Ue(
|
|
5319
5357
|
() => r ? Object.keys(r) : [],
|
|
5320
5358
|
[r]
|
|
5321
5359
|
), u = He(() => {
|
|
5322
|
-
for (const
|
|
5323
|
-
if (!d.includes(
|
|
5324
|
-
return
|
|
5360
|
+
for (const f of b)
|
|
5361
|
+
if (!d.includes(f) && (c.includes(f) || !r))
|
|
5362
|
+
return f;
|
|
5325
5363
|
return "MONDAY";
|
|
5326
|
-
}, [
|
|
5364
|
+
}, [b, d, c, r]), [g, p] = q(
|
|
5327
5365
|
u()
|
|
5328
|
-
), [v,
|
|
5366
|
+
), [v, x] = q({});
|
|
5329
5367
|
ae(() => {
|
|
5330
|
-
|
|
5368
|
+
p(u());
|
|
5331
5369
|
}, []);
|
|
5332
|
-
const
|
|
5333
|
-
var
|
|
5334
|
-
return r && c.includes(
|
|
5335
|
-
const
|
|
5336
|
-
return
|
|
5370
|
+
const w = Ue(() => {
|
|
5371
|
+
var f;
|
|
5372
|
+
return r && c.includes(g) ? ((f = r[g]) == null ? void 0 : f.filter((S) => {
|
|
5373
|
+
const C = /* @__PURE__ */ new Date(`1970-01-01T${S}:00`), P = /* @__PURE__ */ new Date(`1970-01-01T${e.start}:00`), $ = /* @__PURE__ */ new Date(`1970-01-01T${e.end}:00`);
|
|
5374
|
+
return C >= P && C <= $;
|
|
5337
5375
|
})) || [] : ba(
|
|
5338
5376
|
e.start,
|
|
5339
5377
|
e.end,
|
|
5340
5378
|
i
|
|
5341
5379
|
);
|
|
5342
|
-
}, [r, c,
|
|
5343
|
-
if (!c.includes(
|
|
5380
|
+
}, [r, c, g, e, i]), h = (f) => {
|
|
5381
|
+
if (!c.includes(g) && r) return;
|
|
5344
5382
|
const S = { ...v };
|
|
5345
5383
|
if (a) {
|
|
5346
|
-
for (const
|
|
5347
|
-
S[
|
|
5348
|
-
S[
|
|
5384
|
+
for (const C in S)
|
|
5385
|
+
S[C] = [];
|
|
5386
|
+
S[g] = [f];
|
|
5349
5387
|
} else if (l)
|
|
5350
|
-
S[
|
|
5388
|
+
S[g] = [f];
|
|
5351
5389
|
else {
|
|
5352
|
-
const
|
|
5353
|
-
S[
|
|
5390
|
+
const C = v[g] || [];
|
|
5391
|
+
S[g] = C.includes(f) ? C.filter((P) => P !== f) : [...C, f];
|
|
5354
5392
|
}
|
|
5355
|
-
|
|
5356
|
-
}, k = (
|
|
5357
|
-
d.includes(
|
|
5393
|
+
x(S), t == null || t(S);
|
|
5394
|
+
}, k = (f) => {
|
|
5395
|
+
d.includes(f) || p(f);
|
|
5358
5396
|
};
|
|
5359
5397
|
return /* @__PURE__ */ s.jsxs("div", { className: "flex flex-col gap-3", children: [
|
|
5360
|
-
/* @__PURE__ */ s.jsx("div", { className: "grid grid-cols-7", children:
|
|
5361
|
-
var
|
|
5362
|
-
const S =
|
|
5398
|
+
/* @__PURE__ */ s.jsx("div", { className: "grid grid-cols-7", children: b.map((f) => {
|
|
5399
|
+
var $;
|
|
5400
|
+
const S = g === f, C = ((($ = v[f]) == null ? void 0 : $.length) || 0) > 0, P = (r ? !c.includes(f) : !1) || d.includes(f);
|
|
5363
5401
|
return /* @__PURE__ */ s.jsxs(
|
|
5364
5402
|
"button",
|
|
5365
5403
|
{
|
|
5366
5404
|
type: "button",
|
|
5367
|
-
"aria-label":
|
|
5368
|
-
onClick: () => k(
|
|
5369
|
-
disabled:
|
|
5370
|
-
className:
|
|
5405
|
+
"aria-label": f,
|
|
5406
|
+
onClick: () => k(f),
|
|
5407
|
+
disabled: P,
|
|
5408
|
+
className: T(
|
|
5371
5409
|
"flex justify-start gap-1 !border-b-sm bg-background-white p-1 text-left text-sm transition-colors ease-in-out max-md:flex-col-reverse md:items-center",
|
|
5372
5410
|
{
|
|
5373
5411
|
"border-border-blue-bolder font-semibold": S,
|
|
5374
5412
|
"border-border-subtle text-content-text-subtlest": !S,
|
|
5375
|
-
"opacity-50":
|
|
5413
|
+
"opacity-50": P
|
|
5376
5414
|
}
|
|
5377
5415
|
),
|
|
5378
5416
|
children: [
|
|
5379
|
-
|
|
5417
|
+
f.slice(0, 3),
|
|
5380
5418
|
/* @__PURE__ */ s.jsx(
|
|
5381
5419
|
"span",
|
|
5382
5420
|
{
|
|
5383
|
-
className:
|
|
5421
|
+
className: T(
|
|
5384
5422
|
"rounded-full bg-background-blue p-0.5 text-content-text-inverse",
|
|
5385
5423
|
{
|
|
5386
|
-
"opacity-0": !
|
|
5424
|
+
"opacity-0": !C || P
|
|
5387
5425
|
}
|
|
5388
5426
|
),
|
|
5389
|
-
children: /* @__PURE__ */ s.jsx(
|
|
5427
|
+
children: /* @__PURE__ */ s.jsx(_, { iconName: "IconCalendarCheck", size: 16 })
|
|
5390
5428
|
}
|
|
5391
5429
|
)
|
|
5392
5430
|
]
|
|
5393
5431
|
},
|
|
5394
|
-
|
|
5432
|
+
f
|
|
5395
5433
|
);
|
|
5396
5434
|
}) }),
|
|
5397
|
-
/* @__PURE__ */ s.jsx("div", { className: "grid grid-cols-3 gap-3 sm:grid-cols-5", children:
|
|
5398
|
-
var
|
|
5399
|
-
const S = (
|
|
5435
|
+
/* @__PURE__ */ s.jsx("div", { className: "grid grid-cols-3 gap-3 sm:grid-cols-5", children: w.map((f) => {
|
|
5436
|
+
var P;
|
|
5437
|
+
const S = (P = v[g]) == null ? void 0 : P.includes(f), C = (r ? !c.includes(g) : !1) || d.includes(g);
|
|
5400
5438
|
return /* @__PURE__ */ s.jsx(
|
|
5401
5439
|
"button",
|
|
5402
5440
|
{
|
|
5403
5441
|
type: "button",
|
|
5404
|
-
"aria-label":
|
|
5405
|
-
className:
|
|
5442
|
+
"aria-label": f,
|
|
5443
|
+
className: T(
|
|
5406
5444
|
"rounded-sm !border-xs bg-background-white p-1 text-center text-base transition-colors ease-in-out",
|
|
5407
5445
|
{
|
|
5408
|
-
"border-border-blue-bolder font-semibold text-content-accent-blue": S && !
|
|
5409
|
-
"border-border-default text-content-text-default": !S && !
|
|
5410
|
-
"cursor-not-allowed border-border-subtle opacity-50":
|
|
5446
|
+
"border-border-blue-bolder font-semibold text-content-accent-blue": S && !C,
|
|
5447
|
+
"border-border-default text-content-text-default": !S && !C,
|
|
5448
|
+
"cursor-not-allowed border-border-subtle opacity-50": C
|
|
5411
5449
|
}
|
|
5412
5450
|
),
|
|
5413
|
-
onClick: () => !
|
|
5414
|
-
children:
|
|
5451
|
+
onClick: () => !C && h(f),
|
|
5452
|
+
children: f
|
|
5415
5453
|
},
|
|
5416
|
-
`${
|
|
5454
|
+
`${g}-${f}`
|
|
5417
5455
|
);
|
|
5418
5456
|
}) })
|
|
5419
5457
|
] });
|
|
@@ -5426,7 +5464,7 @@ const Mt = { enGB: Ie, enUS: Re, es: Fe }, ua = (e) => {
|
|
|
5426
5464
|
document.removeEventListener("mousedown", t);
|
|
5427
5465
|
};
|
|
5428
5466
|
}, [e, r]);
|
|
5429
|
-
}, fa =
|
|
5467
|
+
}, fa = L(
|
|
5430
5468
|
({
|
|
5431
5469
|
label: e,
|
|
5432
5470
|
iconName: r,
|
|
@@ -5436,98 +5474,100 @@ const Mt = { enGB: Ie, enUS: Re, es: Fe }, ua = (e) => {
|
|
|
5436
5474
|
touched: a,
|
|
5437
5475
|
options: l = [],
|
|
5438
5476
|
placement: d = "bottom",
|
|
5439
|
-
placeholder:
|
|
5477
|
+
placeholder: b = "Select an option",
|
|
5440
5478
|
searchPlaceholder: c = "Search...",
|
|
5441
5479
|
canSelectAll: u,
|
|
5442
|
-
selectAllLabel:
|
|
5443
|
-
canSearch:
|
|
5480
|
+
selectAllLabel: g = "Select All",
|
|
5481
|
+
canSearch: p,
|
|
5444
5482
|
multiple: v,
|
|
5445
|
-
value:
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5483
|
+
value: x,
|
|
5484
|
+
dropdownWidth: w,
|
|
5485
|
+
...h
|
|
5486
|
+
}, k) => {
|
|
5487
|
+
const [f, S] = q(!1), [C, P] = q(l), [$, W] = q(""), [A, G] = q(null), [F, re] = q([]), [R, J] = q(!1);
|
|
5449
5488
|
ae(() => {
|
|
5450
5489
|
if (l)
|
|
5451
5490
|
if (v) {
|
|
5452
|
-
const
|
|
5453
|
-
(
|
|
5491
|
+
const M = l.filter(
|
|
5492
|
+
(B) => x == null ? void 0 : x.includes(B.value)
|
|
5454
5493
|
);
|
|
5455
|
-
|
|
5494
|
+
re(M);
|
|
5456
5495
|
} else {
|
|
5457
|
-
const
|
|
5458
|
-
|
|
5496
|
+
const M = l.find((B) => B.value === x) || null;
|
|
5497
|
+
G(M);
|
|
5459
5498
|
}
|
|
5460
|
-
}, [
|
|
5461
|
-
|
|
5499
|
+
}, [x, l, v]), ae(() => {
|
|
5500
|
+
P(
|
|
5462
5501
|
l.filter(
|
|
5463
|
-
(
|
|
5502
|
+
(M) => M.label.toLowerCase().includes($.toLowerCase())
|
|
5464
5503
|
)
|
|
5465
5504
|
);
|
|
5466
|
-
}, [
|
|
5467
|
-
const
|
|
5468
|
-
var
|
|
5469
|
-
if (
|
|
5470
|
-
v ? (
|
|
5505
|
+
}, [$, l]);
|
|
5506
|
+
const K = (M) => {
|
|
5507
|
+
var B, X, ke, je, Te;
|
|
5508
|
+
if (M === null) {
|
|
5509
|
+
v ? (re([]), (B = h.onChange) == null || B.call(h, [])) : (G(null), (X = h.onChange) == null || X.call(h, null), S(!1));
|
|
5471
5510
|
return;
|
|
5472
5511
|
}
|
|
5473
5512
|
if (v) {
|
|
5474
|
-
let
|
|
5475
|
-
|
|
5476
|
-
(
|
|
5477
|
-
) :
|
|
5513
|
+
let he = [...F];
|
|
5514
|
+
F.some((de) => de.value === M.value) ? he = he.filter(
|
|
5515
|
+
(de) => de.value !== M.value
|
|
5516
|
+
) : he.push(M), re(he), (ke = h.onChange) == null || ke.call(h, he.map((de) => de.value));
|
|
5478
5517
|
} else
|
|
5479
|
-
A && A.value ===
|
|
5480
|
-
},
|
|
5518
|
+
A && A.value === M.value ? (G(null), (je = h.onChange) == null || je.call(h, null)) : (G(M), (Te = h.onChange) == null || Te.call(h, M.value)), S(!1);
|
|
5519
|
+
}, se = Qe(null);
|
|
5481
5520
|
ga({
|
|
5482
|
-
ref:
|
|
5483
|
-
handler: () =>
|
|
5521
|
+
ref: se,
|
|
5522
|
+
handler: () => S(!1)
|
|
5484
5523
|
});
|
|
5485
|
-
const
|
|
5486
|
-
var
|
|
5487
|
-
|
|
5524
|
+
const Z = l.length === F.length, be = v ? F.length === 0 : A === null, me = () => {
|
|
5525
|
+
var M, B;
|
|
5526
|
+
Z ? (re([]), (M = h.onChange) == null || M.call(h, [])) : (re(l), (B = h.onChange) == null || B.call(h, l.map((X) => X.value)));
|
|
5488
5527
|
};
|
|
5489
|
-
return /* @__PURE__ */ s.jsxs("div", { ref:
|
|
5490
|
-
e && /* @__PURE__ */ s.jsx("label", { htmlFor:
|
|
5528
|
+
return /* @__PURE__ */ s.jsxs("div", { ref: k, className: T("flex flex-col gap-3", t), children: [
|
|
5529
|
+
e && /* @__PURE__ */ s.jsx("label", { htmlFor: h.id, children: /* @__PURE__ */ s.jsx(I, { intent: "label-lg", weight: "semibold", children: e }) }),
|
|
5491
5530
|
/* @__PURE__ */ s.jsx(
|
|
5492
5531
|
lt,
|
|
5493
5532
|
{
|
|
5494
5533
|
placement: d,
|
|
5495
|
-
onMouseDown: () =>
|
|
5496
|
-
onMouseUp: () =>
|
|
5497
|
-
className: "
|
|
5534
|
+
onMouseDown: () => J(!0),
|
|
5535
|
+
onMouseUp: () => J(!1),
|
|
5536
|
+
className: "w-full overflow-hidden rounded-sm !border-xs border-border-bolder p-0 shadow-none",
|
|
5537
|
+
popoverWidth: w,
|
|
5498
5538
|
trigger: /* @__PURE__ */ s.jsxs(
|
|
5499
5539
|
"div",
|
|
5500
5540
|
{
|
|
5501
|
-
ref:
|
|
5502
|
-
className:
|
|
5541
|
+
ref: se,
|
|
5542
|
+
className: te(
|
|
5503
5543
|
"relative flex w-full cursor-pointer items-center justify-between gap-2 rounded-sm border-xs border-border-default p-3 text-left transition-colors placeholder:text-base placeholder:text-content-text-subtlest focus:outline-1 focus:outline-offset-4 lg:hover:bg-background-neutral",
|
|
5504
5544
|
{
|
|
5505
|
-
"border-border-bolder":
|
|
5545
|
+
"border-border-bolder": f,
|
|
5506
5546
|
"focus:outline-border-default lg:hover:border-border-default": !i,
|
|
5507
5547
|
"border-border-utility-error focus:outline-border-utility-error": i && a,
|
|
5508
|
-
"border-border-utility-success focus:outline-border-utility-success": a && !i && (v ?
|
|
5548
|
+
"border-border-utility-success focus:outline-border-utility-success": a && !i && (v ? F.length !== null : A !== null),
|
|
5509
5549
|
"pl-9": r,
|
|
5510
|
-
"!border-border-blue bg-background-blue-subtle text-content-accent-blue": !
|
|
5550
|
+
"!border-border-blue bg-background-blue-subtle text-content-accent-blue": !be
|
|
5511
5551
|
}
|
|
5512
5552
|
),
|
|
5513
|
-
...
|
|
5553
|
+
...h,
|
|
5514
5554
|
tabIndex: 0,
|
|
5515
5555
|
role: "combobox",
|
|
5516
|
-
"aria-expanded":
|
|
5556
|
+
"aria-expanded": f,
|
|
5517
5557
|
"aria-haspopup": "listbox",
|
|
5518
|
-
"aria-labelledby":
|
|
5519
|
-
onClick: () =>
|
|
5558
|
+
"aria-labelledby": h.id,
|
|
5559
|
+
onClick: () => S(!f),
|
|
5520
5560
|
onBlur: () => {
|
|
5521
5561
|
setTimeout(() => {
|
|
5522
|
-
|
|
5562
|
+
R || S(!1);
|
|
5523
5563
|
}, 0);
|
|
5524
5564
|
},
|
|
5525
|
-
onKeyDown: (
|
|
5526
|
-
(
|
|
5565
|
+
onKeyDown: (M) => {
|
|
5566
|
+
(M.key === "Enter" || M.key === " ") && S(!f);
|
|
5527
5567
|
},
|
|
5528
5568
|
children: [
|
|
5529
5569
|
r && /* @__PURE__ */ s.jsx(
|
|
5530
|
-
|
|
5570
|
+
_,
|
|
5531
5571
|
{
|
|
5532
5572
|
iconName: r,
|
|
5533
5573
|
size: 16,
|
|
@@ -5535,20 +5575,20 @@ const Mt = { enGB: Ie, enUS: Re, es: Fe }, ua = (e) => {
|
|
|
5535
5575
|
}
|
|
5536
5576
|
),
|
|
5537
5577
|
/* @__PURE__ */ s.jsx(
|
|
5538
|
-
|
|
5578
|
+
I,
|
|
5539
5579
|
{
|
|
5540
5580
|
intent: "label-lg",
|
|
5541
|
-
className:
|
|
5542
|
-
"text-content-text-subtlest": v ?
|
|
5581
|
+
className: te("flex-1 truncate", {
|
|
5582
|
+
"text-content-text-subtlest": v ? F.length === 0 : !A
|
|
5543
5583
|
}),
|
|
5544
|
-
weight:
|
|
5545
|
-
children: v ?
|
|
5584
|
+
weight: be ? "regular" : "semibold",
|
|
5585
|
+
children: v ? F.map((M) => M.label).join(", ") || b : (A == null ? void 0 : A.label) || b
|
|
5546
5586
|
}
|
|
5547
5587
|
),
|
|
5548
5588
|
/* @__PURE__ */ s.jsx(
|
|
5549
|
-
|
|
5589
|
+
_,
|
|
5550
5590
|
{
|
|
5551
|
-
iconName:
|
|
5591
|
+
iconName: f ? "IconChevronUp" : "IconChevronDown",
|
|
5552
5592
|
size: 16,
|
|
5553
5593
|
className: "ml-auto text-content-text-default"
|
|
5554
5594
|
}
|
|
@@ -5563,91 +5603,91 @@ const Mt = { enGB: Ie, enUS: Re, es: Fe }, ua = (e) => {
|
|
|
5563
5603
|
role: "listbox",
|
|
5564
5604
|
tabIndex: -1,
|
|
5565
5605
|
children: [
|
|
5566
|
-
|
|
5606
|
+
p && /* @__PURE__ */ s.jsx(
|
|
5567
5607
|
"input",
|
|
5568
5608
|
{
|
|
5569
5609
|
type: "text",
|
|
5570
5610
|
className: "w-full border-b-xs border-border-subtle p-2 text-sm text-content-text-default focus:border-border-subtle focus:border-border-transparent focus:bg-background-neutral focus:outline-none focus:ring-0",
|
|
5571
5611
|
placeholder: c,
|
|
5572
|
-
value:
|
|
5573
|
-
onChange: (
|
|
5612
|
+
value: $,
|
|
5613
|
+
onChange: (M) => W(M.target.value)
|
|
5574
5614
|
}
|
|
5575
5615
|
),
|
|
5576
|
-
!
|
|
5616
|
+
!p && !v && /* @__PURE__ */ s.jsx(
|
|
5577
5617
|
"button",
|
|
5578
5618
|
{
|
|
5579
5619
|
type: "button",
|
|
5580
5620
|
className: "w-full rounded-sm border-b-xs border-border-subtle px-3 py-4 text-left text-content-text-subtlest hover:text-content-text-subtle lg:hover:bg-background-neutral",
|
|
5581
|
-
onClick: () =>
|
|
5582
|
-
tabIndex:
|
|
5583
|
-
children: /* @__PURE__ */ s.jsx(
|
|
5621
|
+
onClick: () => K(null),
|
|
5622
|
+
tabIndex: f ? 0 : -1,
|
|
5623
|
+
children: /* @__PURE__ */ s.jsx(I, { intent: "label-md", children: b })
|
|
5584
5624
|
}
|
|
5585
5625
|
),
|
|
5586
5626
|
v && u && /* @__PURE__ */ s.jsx("div", { children: /* @__PURE__ */ s.jsxs(
|
|
5587
5627
|
"button",
|
|
5588
5628
|
{
|
|
5589
|
-
onClick:
|
|
5590
|
-
className:
|
|
5629
|
+
onClick: me,
|
|
5630
|
+
className: T(
|
|
5591
5631
|
"flex w-full items-center gap-3 overflow-ellipsis whitespace-nowrap border-b-xs border-border-subtle px-3 py-4 text-left text-sm transition-all",
|
|
5592
5632
|
{
|
|
5593
|
-
"bg-background-blue-subtle font-semibold text-content-accent-blue":
|
|
5594
|
-
"text-content-text-subtle lg:hover:bg-background-blue-subtle lg:hover:text-content-text-default": !
|
|
5633
|
+
"bg-background-blue-subtle font-semibold text-content-accent-blue": Z,
|
|
5634
|
+
"text-content-text-subtle lg:hover:bg-background-blue-subtle lg:hover:text-content-text-default": !Z
|
|
5595
5635
|
}
|
|
5596
5636
|
),
|
|
5597
5637
|
children: [
|
|
5598
5638
|
/* @__PURE__ */ s.jsx(
|
|
5599
|
-
|
|
5639
|
+
_,
|
|
5600
5640
|
{
|
|
5601
|
-
iconName:
|
|
5641
|
+
iconName: Z ? "IconSquareCheckFilled" : "IconSquare",
|
|
5602
5642
|
size: 20,
|
|
5603
|
-
className:
|
|
5604
|
-
"text-background-blue":
|
|
5605
|
-
"text-content-text-subtlest": !
|
|
5643
|
+
className: te("max-h-5 min-h-5 min-w-5 max-w-5", {
|
|
5644
|
+
"text-background-blue": Z,
|
|
5645
|
+
"text-content-text-subtlest": !Z
|
|
5606
5646
|
})
|
|
5607
5647
|
}
|
|
5608
5648
|
),
|
|
5609
|
-
|
|
5649
|
+
g
|
|
5610
5650
|
]
|
|
5611
5651
|
}
|
|
5612
5652
|
) }),
|
|
5613
|
-
|
|
5614
|
-
const
|
|
5653
|
+
C.map((M) => {
|
|
5654
|
+
const B = v ? F.some((X) => X.value === M.value) : (A == null ? void 0 : A.value) === M.value;
|
|
5615
5655
|
return /* @__PURE__ */ s.jsxs(
|
|
5616
5656
|
"button",
|
|
5617
5657
|
{
|
|
5618
5658
|
type: "button",
|
|
5619
|
-
className:
|
|
5659
|
+
className: T(
|
|
5620
5660
|
"flex w-full gap-3 overflow-ellipsis whitespace-nowrap border-b-xs border-border-subtle px-3 py-4 text-left transition-all",
|
|
5621
5661
|
{
|
|
5622
|
-
"bg-background-blue-subtle text-content-accent-blue":
|
|
5623
|
-
"text-content-text-subtle lg:hover:bg-background-blue-subtle lg:hover:text-content-text-default":
|
|
5662
|
+
"bg-background-blue-subtle text-content-accent-blue": B,
|
|
5663
|
+
"text-content-text-subtle lg:hover:bg-background-blue-subtle lg:hover:text-content-text-default": !B
|
|
5624
5664
|
}
|
|
5625
5665
|
),
|
|
5626
|
-
onClick: () =>
|
|
5627
|
-
tabIndex:
|
|
5666
|
+
onClick: () => K(M),
|
|
5667
|
+
tabIndex: f ? 0 : -1,
|
|
5628
5668
|
children: [
|
|
5629
5669
|
/* @__PURE__ */ s.jsx(
|
|
5630
|
-
|
|
5670
|
+
_,
|
|
5631
5671
|
{
|
|
5632
|
-
iconName:
|
|
5672
|
+
iconName: B ? "IconSquareCheckFilled" : "IconSquare",
|
|
5633
5673
|
size: 20,
|
|
5634
|
-
className:
|
|
5635
|
-
"text-background-blue":
|
|
5636
|
-
"text-content-text-subtlest":
|
|
5674
|
+
className: te("max-h-5 min-h-5 min-w-5 max-w-5", {
|
|
5675
|
+
"text-background-blue": B,
|
|
5676
|
+
"text-content-text-subtlest": !B
|
|
5637
5677
|
})
|
|
5638
5678
|
}
|
|
5639
5679
|
),
|
|
5640
5680
|
/* @__PURE__ */ s.jsx(
|
|
5641
|
-
|
|
5681
|
+
I,
|
|
5642
5682
|
{
|
|
5643
5683
|
intent: "label-md",
|
|
5644
|
-
weight:
|
|
5645
|
-
children:
|
|
5684
|
+
weight: B ? "semibold" : "regular",
|
|
5685
|
+
children: M.label
|
|
5646
5686
|
}
|
|
5647
5687
|
)
|
|
5648
5688
|
]
|
|
5649
5689
|
},
|
|
5650
|
-
|
|
5690
|
+
M.value
|
|
5651
5691
|
);
|
|
5652
5692
|
})
|
|
5653
5693
|
]
|
|
@@ -5655,12 +5695,12 @@ const Mt = { enGB: Ie, enUS: Re, es: Fe }, ua = (e) => {
|
|
|
5655
5695
|
)
|
|
5656
5696
|
}
|
|
5657
5697
|
),
|
|
5658
|
-
i && a ? /* @__PURE__ */ s.jsx(
|
|
5698
|
+
i && a ? /* @__PURE__ */ s.jsx(I, { intent: "label-md", className: "-mt-1 text-content-utility-error", children: i }) : o ? /* @__PURE__ */ s.jsx(I, { intent: "label-md", className: "-mt-1 text-content-text-subtle", children: o }) : null
|
|
5659
5699
|
] });
|
|
5660
5700
|
}
|
|
5661
5701
|
);
|
|
5662
5702
|
fa.displayName = "DropdownSelect";
|
|
5663
|
-
const ha =
|
|
5703
|
+
const ha = L(
|
|
5664
5704
|
({
|
|
5665
5705
|
label: e,
|
|
5666
5706
|
iconName: r,
|
|
@@ -5670,16 +5710,16 @@ const ha = H(
|
|
|
5670
5710
|
touched: a,
|
|
5671
5711
|
type: l = "text",
|
|
5672
5712
|
...d
|
|
5673
|
-
},
|
|
5713
|
+
}, b) => {
|
|
5674
5714
|
typeof r == "string" && (r = { name: r });
|
|
5675
|
-
const [c, u] =
|
|
5715
|
+
const [c, u] = q(!1), g = l === "textarea" ? "textarea" : "input";
|
|
5676
5716
|
return /* @__PURE__ */ s.jsxs("div", { className: "flex flex-col gap-3", children: [
|
|
5677
5717
|
e && /* @__PURE__ */ s.jsx("label", { htmlFor: d.id, children: /* @__PURE__ */ s.jsx(
|
|
5678
|
-
|
|
5718
|
+
I,
|
|
5679
5719
|
{
|
|
5680
5720
|
intent: "label-lg",
|
|
5681
5721
|
weight: "semibold",
|
|
5682
|
-
className:
|
|
5722
|
+
className: te({
|
|
5683
5723
|
"text-content-text-disabled-bolder": d.disabled
|
|
5684
5724
|
}),
|
|
5685
5725
|
children: e
|
|
@@ -5689,24 +5729,24 @@ const ha = H(
|
|
|
5689
5729
|
r && l !== "textarea" && l !== "color" && /* @__PURE__ */ s.jsx(
|
|
5690
5730
|
"span",
|
|
5691
5731
|
{
|
|
5692
|
-
className:
|
|
5732
|
+
className: te("absolute left-3 top-1/2 -translate-y-1/2", {
|
|
5693
5733
|
"text-content-text-subtle": !i && !a,
|
|
5694
5734
|
"text-content-utility-error": i && a,
|
|
5695
5735
|
"text-content-utility-success": a && !i && d.value !== void 0,
|
|
5696
5736
|
"text-content-text-disabled-bolder": d.disabled
|
|
5697
5737
|
}),
|
|
5698
5738
|
children: typeof r == "object" ? /* @__PURE__ */ s.jsx(
|
|
5699
|
-
|
|
5739
|
+
_,
|
|
5700
5740
|
{
|
|
5701
5741
|
iconName: r.name,
|
|
5702
5742
|
stroke: r.stroke,
|
|
5703
5743
|
size: 20
|
|
5704
5744
|
}
|
|
5705
|
-
) : /* @__PURE__ */ s.jsx(
|
|
5745
|
+
) : /* @__PURE__ */ s.jsx(_, { iconName: r, size: 20 })
|
|
5706
5746
|
}
|
|
5707
5747
|
),
|
|
5708
5748
|
i && a && l !== "password" && l !== "color" && /* @__PURE__ */ s.jsx(
|
|
5709
|
-
|
|
5749
|
+
_,
|
|
5710
5750
|
{
|
|
5711
5751
|
iconName: "IconAlertCircleFilled",
|
|
5712
5752
|
size: 20,
|
|
@@ -5714,7 +5754,7 @@ const ha = H(
|
|
|
5714
5754
|
}
|
|
5715
5755
|
),
|
|
5716
5756
|
a && !i && d.value !== void 0 && l !== "password" && l !== "color" && /* @__PURE__ */ s.jsx(
|
|
5717
|
-
|
|
5757
|
+
_,
|
|
5718
5758
|
{
|
|
5719
5759
|
iconName: "IconCircleCheckFilled",
|
|
5720
5760
|
size: 20,
|
|
@@ -5728,7 +5768,7 @@ const ha = H(
|
|
|
5728
5768
|
className: "absolute right-3 top-1/2 -translate-y-1/2 rounded-full p-1 transition-colors lg:hover:bg-background-neutral",
|
|
5729
5769
|
onClick: () => u(!c),
|
|
5730
5770
|
children: /* @__PURE__ */ s.jsx(
|
|
5731
|
-
|
|
5771
|
+
_,
|
|
5732
5772
|
{
|
|
5733
5773
|
iconName: c ? "IconEyeOff" : "IconEye",
|
|
5734
5774
|
size: 20
|
|
@@ -5737,10 +5777,10 @@ const ha = H(
|
|
|
5737
5777
|
}
|
|
5738
5778
|
),
|
|
5739
5779
|
/* @__PURE__ */ s.jsx(
|
|
5740
|
-
|
|
5780
|
+
g,
|
|
5741
5781
|
{
|
|
5742
|
-
ref:
|
|
5743
|
-
className:
|
|
5782
|
+
ref: b,
|
|
5783
|
+
className: T(
|
|
5744
5784
|
"peer flex w-full items-center gap-2 rounded-sm border-xs border-border-default p-3 outline-offset-2 transition-colors focus:border-xs focus:border-border-bolder focus:outline-2 focus:outline-border-bolder focus:ring-0 active:border-xs disabled:border-background-disabled disabled:bg-background-disabled disabled:text-content-text-disabled-bolder disabled:placeholder:text-content-text-disabled lg:hover:bg-background-neutral",
|
|
5745
5785
|
{
|
|
5746
5786
|
"border-border-utility-error pr-9 text-content-utility-error focus:border-border-utility-error focus:outline-border-utility-error": i && a,
|
|
@@ -5756,11 +5796,11 @@ const ha = H(
|
|
|
5756
5796
|
}
|
|
5757
5797
|
)
|
|
5758
5798
|
] }),
|
|
5759
|
-
i && a ? /* @__PURE__ */ s.jsx(
|
|
5760
|
-
|
|
5799
|
+
i && a ? /* @__PURE__ */ s.jsx(I, { intent: "label-md", className: "-mt-1 text-content-utility-error", children: i }) : o ? /* @__PURE__ */ s.jsx(
|
|
5800
|
+
I,
|
|
5761
5801
|
{
|
|
5762
5802
|
intent: "label-md",
|
|
5763
|
-
className:
|
|
5803
|
+
className: te("-mt-1", {
|
|
5764
5804
|
"text-content-text-subtle": !i && !a,
|
|
5765
5805
|
"text-content-utility-error": i && a,
|
|
5766
5806
|
"text-content-utility-success": a && !i && d.value !== void 0,
|
|
@@ -5782,16 +5822,16 @@ const pa = ({
|
|
|
5782
5822
|
intent: a = "card",
|
|
5783
5823
|
overlay: l = "blur",
|
|
5784
5824
|
closeButtonAriaLabel: d = "Close",
|
|
5785
|
-
closeOnClickOutside:
|
|
5825
|
+
closeOnClickOutside: b = !0
|
|
5786
5826
|
}) => {
|
|
5787
5827
|
const { refs: c, context: u } = Ze({
|
|
5788
5828
|
open: t,
|
|
5789
5829
|
onOpenChange: o,
|
|
5790
|
-
whileElementsMounted:
|
|
5791
|
-
}),
|
|
5792
|
-
outsidePress:
|
|
5830
|
+
whileElementsMounted: Wt
|
|
5831
|
+
}), g = Or(u), p = Ft(u, {
|
|
5832
|
+
outsidePress: b,
|
|
5793
5833
|
escapeKey: !0
|
|
5794
|
-
}), v = $r(u), { getFloatingProps:
|
|
5834
|
+
}), v = $r(u), { getFloatingProps: x } = At([g, p, v]), { styles: w } = et(u, {
|
|
5795
5835
|
initial: {
|
|
5796
5836
|
opacity: 0,
|
|
5797
5837
|
transform: a === "sheet" ? "translateY(30px)" : "scale(0.90)",
|
|
@@ -5815,7 +5855,7 @@ const pa = ({
|
|
|
5815
5855
|
Vr,
|
|
5816
5856
|
{
|
|
5817
5857
|
lockScroll: !0,
|
|
5818
|
-
className:
|
|
5858
|
+
className: T("z-[999] overflow-hidden", {
|
|
5819
5859
|
"flex items-center justify-center": a === "card" || a === "wizard" || a === "fullscreen",
|
|
5820
5860
|
"flex items-end justify-center": a === "sheet",
|
|
5821
5861
|
"bg-surface-overlay": l === "opacity",
|
|
@@ -5825,9 +5865,9 @@ const pa = ({
|
|
|
5825
5865
|
"div",
|
|
5826
5866
|
{
|
|
5827
5867
|
ref: c.setFloating,
|
|
5828
|
-
...
|
|
5829
|
-
style: { ...
|
|
5830
|
-
className:
|
|
5868
|
+
...x(),
|
|
5869
|
+
style: { ...w },
|
|
5870
|
+
className: T(
|
|
5831
5871
|
"relative bg-background-white shadow-sm",
|
|
5832
5872
|
{
|
|
5833
5873
|
"md-w-fit m-2 rounded-lg p-6": a === "card",
|
|
@@ -5845,7 +5885,7 @@ const pa = ({
|
|
|
5845
5885
|
type: "button",
|
|
5846
5886
|
onClick: () => o(!1),
|
|
5847
5887
|
className: "absolute right-4 top-4 cursor-pointer transition-colors lg:hover:text-content-text-subtle",
|
|
5848
|
-
children: /* @__PURE__ */ s.jsx(
|
|
5888
|
+
children: /* @__PURE__ */ s.jsx(_, { iconName: "IconX" })
|
|
5849
5889
|
}
|
|
5850
5890
|
),
|
|
5851
5891
|
r
|
|
@@ -5862,22 +5902,22 @@ const pa = ({
|
|
|
5862
5902
|
iconName: i = "IconInfoCircleFilled",
|
|
5863
5903
|
arrow: a
|
|
5864
5904
|
}) => {
|
|
5865
|
-
const [l, d] =
|
|
5905
|
+
const [l, d] = q(!1), b = Qe(null), [c, u] = q(!1);
|
|
5866
5906
|
ae(() => {
|
|
5867
5907
|
u(window.innerWidth < 768);
|
|
5868
5908
|
const k = () => u(window.innerWidth < 768);
|
|
5869
5909
|
return window.addEventListener("resize", k), () => window.removeEventListener("resize", k);
|
|
5870
5910
|
}, []);
|
|
5871
|
-
const { refs:
|
|
5911
|
+
const { refs: g, floatingStyles: p, context: v } = Ze({
|
|
5872
5912
|
placement: o,
|
|
5873
5913
|
middleware: [
|
|
5874
5914
|
zt(8),
|
|
5875
5915
|
It(),
|
|
5876
5916
|
Rt(),
|
|
5877
|
-
a ? Gr({ element:
|
|
5917
|
+
a ? Gr({ element: b }) : void 0
|
|
5878
5918
|
],
|
|
5879
5919
|
open: l
|
|
5880
|
-
}), { isMounted:
|
|
5920
|
+
}), { isMounted: x } = Ot(v), { styles: w } = et(v, {
|
|
5881
5921
|
initial: {
|
|
5882
5922
|
opacity: 0,
|
|
5883
5923
|
transform: "scale(0.90)",
|
|
@@ -5896,16 +5936,16 @@ const pa = ({
|
|
|
5896
5936
|
transitionDuration: "0.1s",
|
|
5897
5937
|
transitionTimingFunction: "ease-out"
|
|
5898
5938
|
}
|
|
5899
|
-
}),
|
|
5939
|
+
}), h = () => {
|
|
5900
5940
|
c && d(!0);
|
|
5901
5941
|
};
|
|
5902
5942
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
5903
5943
|
/* @__PURE__ */ s.jsx(
|
|
5904
5944
|
"div",
|
|
5905
5945
|
{
|
|
5906
|
-
ref:
|
|
5946
|
+
ref: g.setReference,
|
|
5907
5947
|
className: "relative inline-flex",
|
|
5908
|
-
onClick: c ?
|
|
5948
|
+
onClick: c ? h : void 0,
|
|
5909
5949
|
onMouseEnter: c ? void 0 : () => d(!0),
|
|
5910
5950
|
onMouseLeave: c ? void 0 : () => d(!1),
|
|
5911
5951
|
onFocus: c ? void 0 : () => d(!0),
|
|
@@ -5915,7 +5955,7 @@ const pa = ({
|
|
|
5915
5955
|
"aria-describedby": "tooltip-content",
|
|
5916
5956
|
tabIndex: 0,
|
|
5917
5957
|
children: r || /* @__PURE__ */ s.jsx(
|
|
5918
|
-
|
|
5958
|
+
_,
|
|
5919
5959
|
{
|
|
5920
5960
|
iconName: i,
|
|
5921
5961
|
size: 20,
|
|
@@ -5924,15 +5964,15 @@ const pa = ({
|
|
|
5924
5964
|
)
|
|
5925
5965
|
}
|
|
5926
5966
|
),
|
|
5927
|
-
!c &&
|
|
5967
|
+
!c && x && /* @__PURE__ */ s.jsx(tt, { children: /* @__PURE__ */ s.jsxs("div", { ref: g.setFloating, style: p, children: [
|
|
5928
5968
|
a ? /* @__PURE__ */ s.jsx(
|
|
5929
5969
|
Yr,
|
|
5930
5970
|
{
|
|
5931
|
-
ref:
|
|
5971
|
+
ref: b,
|
|
5932
5972
|
context: v,
|
|
5933
5973
|
width: 24,
|
|
5934
5974
|
height: 14,
|
|
5935
|
-
style: { ...
|
|
5975
|
+
style: { ...w },
|
|
5936
5976
|
tipRadius: 2,
|
|
5937
5977
|
className: "z-[51] fill-background-white drop-shadow-sm"
|
|
5938
5978
|
}
|
|
@@ -5940,8 +5980,8 @@ const pa = ({
|
|
|
5940
5980
|
/* @__PURE__ */ s.jsx(
|
|
5941
5981
|
"div",
|
|
5942
5982
|
{
|
|
5943
|
-
style: { ...
|
|
5944
|
-
className:
|
|
5983
|
+
style: { ...w },
|
|
5984
|
+
className: T(
|
|
5945
5985
|
"z-50 rounded-md bg-background-white p-3 text-sm shadow-sm",
|
|
5946
5986
|
t
|
|
5947
5987
|
),
|
|
@@ -5964,7 +6004,7 @@ const pa = ({
|
|
|
5964
6004
|
] });
|
|
5965
6005
|
};
|
|
5966
6006
|
tr.displayName = "Tooltip";
|
|
5967
|
-
const xa = "flex flex-col gap-4 p-6 rounded-lg !border-xs transition-colors ease-in-out", va =
|
|
6007
|
+
const xa = "flex flex-col gap-4 p-6 rounded-lg !border-xs transition-colors ease-in-out", va = H(xa, {
|
|
5968
6008
|
variants: {
|
|
5969
6009
|
intent: {
|
|
5970
6010
|
default: "border-border-transparent bg-background-white",
|
|
@@ -5984,7 +6024,7 @@ const xa = "flex flex-col gap-4 p-6 rounded-lg !border-xs transition-colors ease
|
|
|
5984
6024
|
intent: "outline",
|
|
5985
6025
|
shadow: "none"
|
|
5986
6026
|
}
|
|
5987
|
-
}), rr =
|
|
6027
|
+
}), rr = L(
|
|
5988
6028
|
({
|
|
5989
6029
|
className: e,
|
|
5990
6030
|
intent: r,
|
|
@@ -5994,42 +6034,42 @@ const xa = "flex flex-col gap-4 p-6 rounded-lg !border-xs transition-colors ease
|
|
|
5994
6034
|
text: a,
|
|
5995
6035
|
helperText: l,
|
|
5996
6036
|
badgeText: d,
|
|
5997
|
-
disabled:
|
|
6037
|
+
disabled: b,
|
|
5998
6038
|
utilityBadge: c,
|
|
5999
6039
|
colorBadge: u,
|
|
6000
|
-
badgeSize:
|
|
6001
|
-
iconName:
|
|
6040
|
+
badgeSize: g = "xs",
|
|
6041
|
+
iconName: p,
|
|
6002
6042
|
iconText: v,
|
|
6003
|
-
tooltipIconName:
|
|
6004
|
-
tooltipText:
|
|
6005
|
-
tooltipTitle:
|
|
6043
|
+
tooltipIconName: x = "IconHelpCircleFilled",
|
|
6044
|
+
tooltipText: w,
|
|
6045
|
+
tooltipTitle: h,
|
|
6006
6046
|
tooltipPlacement: k = "top",
|
|
6007
|
-
...
|
|
6047
|
+
...f
|
|
6008
6048
|
}, S) => /* @__PURE__ */ s.jsxs(
|
|
6009
6049
|
"div",
|
|
6010
6050
|
{
|
|
6011
6051
|
ref: S,
|
|
6012
|
-
className:
|
|
6052
|
+
className: T(va({ intent: r, shadow: t, className: e }), {
|
|
6013
6053
|
"border-border-blue-bolder bg-background-blue-subtle": o,
|
|
6014
|
-
"border-border-transparent bg-background-disabled":
|
|
6015
|
-
"cursor-pointer active:lg:bg-background-blue/10":
|
|
6016
|
-
"cursor-pointer active:lg:bg-background-neutral/80":
|
|
6054
|
+
"border-border-transparent bg-background-disabled": b,
|
|
6055
|
+
"cursor-pointer active:lg:bg-background-blue/10": f.onClick && o && !b,
|
|
6056
|
+
"cursor-pointer active:lg:bg-background-neutral/80": f.onClick && !o && !b
|
|
6017
6057
|
}),
|
|
6018
|
-
...
|
|
6058
|
+
...f,
|
|
6019
6059
|
children: [
|
|
6020
|
-
d ||
|
|
6021
|
-
|
|
6060
|
+
d || p || v ? /* @__PURE__ */ s.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
6061
|
+
p || v ? /* @__PURE__ */ s.jsx(
|
|
6022
6062
|
"div",
|
|
6023
6063
|
{
|
|
6024
|
-
className:
|
|
6064
|
+
className: T("rounded-sm p-2", {
|
|
6025
6065
|
"bg-background-blue-subtle text-content-accent-blue": !o,
|
|
6026
6066
|
"bg-background-white text-content-accent-blue": o,
|
|
6027
|
-
"bg-background-white text-content-text-disabled-bolder":
|
|
6067
|
+
"bg-background-white text-content-text-disabled-bolder": b
|
|
6028
6068
|
}),
|
|
6029
6069
|
children: /* @__PURE__ */ s.jsx(
|
|
6030
|
-
|
|
6070
|
+
_,
|
|
6031
6071
|
{
|
|
6032
|
-
iconName:
|
|
6072
|
+
iconName: p,
|
|
6033
6073
|
iconText: v,
|
|
6034
6074
|
size: 20
|
|
6035
6075
|
}
|
|
@@ -6041,60 +6081,60 @@ const xa = "flex flex-col gap-4 p-6 rounded-lg !border-xs transition-colors ease
|
|
|
6041
6081
|
{
|
|
6042
6082
|
utility: c,
|
|
6043
6083
|
intent: u,
|
|
6044
|
-
size:
|
|
6084
|
+
size: g,
|
|
6045
6085
|
weight: "semibold",
|
|
6046
6086
|
className: "justify-self-end",
|
|
6047
6087
|
children: d
|
|
6048
6088
|
}
|
|
6049
6089
|
) : null,
|
|
6050
|
-
|
|
6090
|
+
w ? /* @__PURE__ */ s.jsx("div", { className: "w-fit", children: /* @__PURE__ */ s.jsx(
|
|
6051
6091
|
tr,
|
|
6052
6092
|
{
|
|
6053
6093
|
placement: k,
|
|
6054
|
-
trigger:
|
|
6055
|
-
|
|
6094
|
+
trigger: x ? /* @__PURE__ */ s.jsx(
|
|
6095
|
+
_,
|
|
6056
6096
|
{
|
|
6057
|
-
iconName:
|
|
6097
|
+
iconName: x,
|
|
6058
6098
|
size: 20,
|
|
6059
6099
|
className: "min-w-5 min-h-5"
|
|
6060
6100
|
}
|
|
6061
6101
|
) : void 0,
|
|
6062
|
-
children:
|
|
6063
|
-
|
|
6064
|
-
|
|
6102
|
+
children: h || w ? /* @__PURE__ */ s.jsxs("div", { className: "flex flex-col gap-1 text-content-text-subtle", children: [
|
|
6103
|
+
h ? /* @__PURE__ */ s.jsx(I, { as: "p", intent: "paragraph-md", weight: "semibold", children: h }) : null,
|
|
6104
|
+
w ? /* @__PURE__ */ s.jsx(I, { as: "p", intent: "paragraph-md", children: w }) : null
|
|
6065
6105
|
] }) : null
|
|
6066
6106
|
}
|
|
6067
6107
|
) }) : null
|
|
6068
6108
|
] }) : null,
|
|
6069
6109
|
/* @__PURE__ */ s.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
6070
6110
|
i ? /* @__PURE__ */ s.jsx(
|
|
6071
|
-
|
|
6111
|
+
I,
|
|
6072
6112
|
{
|
|
6073
6113
|
intent: "label-xl",
|
|
6074
6114
|
weight: "semibold",
|
|
6075
|
-
className:
|
|
6076
|
-
"text-content-text-disabled-bolder":
|
|
6115
|
+
className: T("text-content-text-default", {
|
|
6116
|
+
"text-content-text-disabled-bolder": b
|
|
6077
6117
|
}),
|
|
6078
6118
|
children: i
|
|
6079
6119
|
}
|
|
6080
6120
|
) : null,
|
|
6081
6121
|
a ? /* @__PURE__ */ s.jsx(
|
|
6082
|
-
|
|
6122
|
+
I,
|
|
6083
6123
|
{
|
|
6084
6124
|
intent: "paragraph-md",
|
|
6085
|
-
className:
|
|
6086
|
-
"text-content-text-disabled-bolder":
|
|
6125
|
+
className: T("text-content-text-subtle", {
|
|
6126
|
+
"text-content-text-disabled-bolder": b
|
|
6087
6127
|
}),
|
|
6088
6128
|
children: a
|
|
6089
6129
|
}
|
|
6090
6130
|
) : null
|
|
6091
6131
|
] }),
|
|
6092
6132
|
l ? /* @__PURE__ */ s.jsx(
|
|
6093
|
-
|
|
6133
|
+
I,
|
|
6094
6134
|
{
|
|
6095
6135
|
intent: "paragraph-sm",
|
|
6096
|
-
className:
|
|
6097
|
-
"text-content-text-disabled-bolder":
|
|
6136
|
+
className: T("text-content-text-subtlest", {
|
|
6137
|
+
"text-content-text-disabled-bolder": b
|
|
6098
6138
|
}),
|
|
6099
6139
|
children: l
|
|
6100
6140
|
}
|
|
@@ -6104,7 +6144,7 @@ const xa = "flex flex-col gap-4 p-6 rounded-lg !border-xs transition-colors ease
|
|
|
6104
6144
|
)
|
|
6105
6145
|
);
|
|
6106
6146
|
rr.displayName = "InteractiveCard";
|
|
6107
|
-
const Ra = rr, ya = "transition-all ease-out duration-500 relative overflow-hidden", Et =
|
|
6147
|
+
const Ra = rr, ya = "transition-all ease-out duration-500 relative overflow-hidden", Et = H(ya, {
|
|
6108
6148
|
variants: {
|
|
6109
6149
|
intent: {
|
|
6110
6150
|
brand: "bg-background-brand",
|
|
@@ -6127,7 +6167,7 @@ const Ra = rr, ya = "transition-all ease-out duration-500 relative overflow-hidd
|
|
|
6127
6167
|
size: "md",
|
|
6128
6168
|
rounded: "full"
|
|
6129
6169
|
}
|
|
6130
|
-
}),
|
|
6170
|
+
}), Wa = ({
|
|
6131
6171
|
progress: e,
|
|
6132
6172
|
className: r,
|
|
6133
6173
|
intent: t,
|
|
@@ -6149,7 +6189,7 @@ const Ra = rr, ya = "transition-all ease-out duration-500 relative overflow-hidd
|
|
|
6149
6189
|
left: `${e}%`,
|
|
6150
6190
|
transform: `${e > 50 ? "translateX(-100%)" : "translateX(0%)"} `
|
|
6151
6191
|
},
|
|
6152
|
-
children: /* @__PURE__ */ s.jsxs(
|
|
6192
|
+
children: /* @__PURE__ */ s.jsxs(I, { intent: "label-md", weight: "semibold", children: [
|
|
6153
6193
|
e,
|
|
6154
6194
|
"%"
|
|
6155
6195
|
] })
|
|
@@ -6158,7 +6198,7 @@ const Ra = rr, ya = "transition-all ease-out duration-500 relative overflow-hidd
|
|
|
6158
6198
|
/* @__PURE__ */ s.jsx(
|
|
6159
6199
|
"span",
|
|
6160
6200
|
{
|
|
6161
|
-
className:
|
|
6201
|
+
className: T(
|
|
6162
6202
|
"inner-block border-l-border-transparent border-r-border-transparent absolute bottom-full mb-0.5 border-[8px] border-b-none border-t-background-black"
|
|
6163
6203
|
),
|
|
6164
6204
|
style: {
|
|
@@ -6170,14 +6210,14 @@ const Ra = rr, ya = "transition-all ease-out duration-500 relative overflow-hidd
|
|
|
6170
6210
|
/* @__PURE__ */ s.jsx(
|
|
6171
6211
|
"div",
|
|
6172
6212
|
{
|
|
6173
|
-
className:
|
|
6213
|
+
className: T(
|
|
6174
6214
|
Et({ size: o, rounded: i }),
|
|
6175
6215
|
"relative w-full bg-background-disabled"
|
|
6176
6216
|
),
|
|
6177
6217
|
children: /* @__PURE__ */ s.jsx(
|
|
6178
6218
|
"div",
|
|
6179
6219
|
{
|
|
6180
|
-
className:
|
|
6220
|
+
className: T(
|
|
6181
6221
|
Et({ intent: t, size: o, rounded: i, className: r })
|
|
6182
6222
|
),
|
|
6183
6223
|
style: { width: `${e}%` }
|
|
@@ -6186,7 +6226,7 @@ const Ra = rr, ya = "transition-all ease-out duration-500 relative overflow-hidd
|
|
|
6186
6226
|
}
|
|
6187
6227
|
)
|
|
6188
6228
|
] });
|
|
6189
|
-
},
|
|
6229
|
+
}, Fa = ({
|
|
6190
6230
|
id: e,
|
|
6191
6231
|
label: r,
|
|
6192
6232
|
options: t,
|
|
@@ -6195,64 +6235,64 @@ const Ra = rr, ya = "transition-all ease-out duration-500 relative overflow-hidd
|
|
|
6195
6235
|
setSelectedOptions: a,
|
|
6196
6236
|
className: l,
|
|
6197
6237
|
disabled: d,
|
|
6198
|
-
helperText:
|
|
6238
|
+
helperText: b,
|
|
6199
6239
|
error: c,
|
|
6200
6240
|
touched: u
|
|
6201
6241
|
}) => {
|
|
6202
|
-
const
|
|
6242
|
+
const g = i, p = (x) => {
|
|
6203
6243
|
if (!o)
|
|
6204
|
-
return a(
|
|
6205
|
-
let
|
|
6206
|
-
return
|
|
6207
|
-
}, v = (
|
|
6208
|
-
return t.length === 0 ? null : /* @__PURE__ */ s.jsxs("div", { className:
|
|
6244
|
+
return a(x.value), x.value;
|
|
6245
|
+
let w = [];
|
|
6246
|
+
return w = Array.isArray(g) ? g.includes(x.value) ? g.filter((h) => h !== x.value) : [...g, x.value] : [x.value], a(w), w;
|
|
6247
|
+
}, v = (x) => o && Array.isArray(i) ? i.includes(x.value) : i === x.value;
|
|
6248
|
+
return t.length === 0 ? null : /* @__PURE__ */ s.jsxs("div", { className: T("flex flex-col gap-3", l), children: [
|
|
6209
6249
|
r && /* @__PURE__ */ s.jsx("label", { htmlFor: e, children: /* @__PURE__ */ s.jsx(
|
|
6210
|
-
|
|
6250
|
+
I,
|
|
6211
6251
|
{
|
|
6212
6252
|
intent: "label-lg",
|
|
6213
6253
|
weight: "semibold",
|
|
6214
|
-
className:
|
|
6254
|
+
className: te({ "text-content-text-disabled-bolder": d }),
|
|
6215
6255
|
children: r
|
|
6216
6256
|
}
|
|
6217
6257
|
) }),
|
|
6218
|
-
/* @__PURE__ */ s.jsx("div", { className: "flex flex-wrap gap-2", children: t.map((
|
|
6219
|
-
const
|
|
6258
|
+
/* @__PURE__ */ s.jsx("div", { className: "flex flex-wrap gap-2", children: t.map((x) => {
|
|
6259
|
+
const w = v(x);
|
|
6220
6260
|
return /* @__PURE__ */ s.jsx(
|
|
6221
6261
|
er,
|
|
6222
6262
|
{
|
|
6223
|
-
intent:
|
|
6224
|
-
iconLeft:
|
|
6225
|
-
onClick: () => x
|
|
6263
|
+
intent: w ? "selected" : "unselected",
|
|
6264
|
+
iconLeft: w ? "IconCheck" : void 0,
|
|
6265
|
+
onClick: () => p(x),
|
|
6226
6266
|
disabled: d,
|
|
6227
|
-
children:
|
|
6267
|
+
children: x.label
|
|
6228
6268
|
},
|
|
6229
|
-
|
|
6269
|
+
x.label
|
|
6230
6270
|
);
|
|
6231
6271
|
}) }),
|
|
6232
|
-
c && u ? /* @__PURE__ */ s.jsx(
|
|
6233
|
-
|
|
6272
|
+
c && u ? /* @__PURE__ */ s.jsx(I, { intent: "label-md", className: "-mt-1 text-content-utility-error", children: c }) : /* @__PURE__ */ s.jsx(
|
|
6273
|
+
I,
|
|
6234
6274
|
{
|
|
6235
6275
|
intent: "label-md",
|
|
6236
|
-
className:
|
|
6276
|
+
className: te("-mt-1", {
|
|
6237
6277
|
"text-content-text-subtle": !c && !u,
|
|
6238
6278
|
"text-content-utility-error": c && u,
|
|
6239
6279
|
"text-content-utility-success": u && !c,
|
|
6240
6280
|
"text-content-text-disabled-bolder": d
|
|
6241
6281
|
}),
|
|
6242
|
-
children:
|
|
6282
|
+
children: b
|
|
6243
6283
|
}
|
|
6244
6284
|
)
|
|
6245
6285
|
] });
|
|
6246
6286
|
}, Aa = ({ className: e, ...r }) => /* @__PURE__ */ s.jsx(
|
|
6247
6287
|
"div",
|
|
6248
6288
|
{
|
|
6249
|
-
className:
|
|
6289
|
+
className: T(
|
|
6250
6290
|
"before:animate-shimmer relative isolate h-4 w-full space-y-5 overflow-hidden rounded-md bg-background-black/10 p-2 shadow-xl shadow-background-black/5 before:absolute before:inset-0 before:-translate-x-full before:border-t-xs before:border-background-black/5 before:bg-gradient-to-r before:from-background-transparent before:via-background-black/5 before:to-background-transparent",
|
|
6251
6291
|
e
|
|
6252
6292
|
),
|
|
6253
6293
|
...r
|
|
6254
6294
|
}
|
|
6255
|
-
), wa =
|
|
6295
|
+
), wa = H(
|
|
6256
6296
|
"inline-flex shrink-0 cursor-pointer items-center rounded-full !border-sm border-border-subtle transition-colors focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-border-default focus-visible:ring-offset-2 focus-visible:!ring-offset-border-transparent disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-background-blue data-[state=unchecked]:bg-background-white",
|
|
6257
6297
|
{
|
|
6258
6298
|
variants: {
|
|
@@ -6265,7 +6305,7 @@ const Ra = rr, ya = "transition-all ease-out duration-500 relative overflow-hidd
|
|
|
6265
6305
|
switchSize: "md"
|
|
6266
6306
|
}
|
|
6267
6307
|
}
|
|
6268
|
-
), ka =
|
|
6308
|
+
), ka = H(
|
|
6269
6309
|
"pointer-events-none block rounded-full ring-0 transition-transform data-[state=unchecked]:translate-x-px data-[state=checked]:bg-background-white data-[state=unchecked]:bg-background-disabled",
|
|
6270
6310
|
{
|
|
6271
6311
|
variants: {
|
|
@@ -6278,7 +6318,7 @@ const Ra = rr, ya = "transition-all ease-out duration-500 relative overflow-hidd
|
|
|
6278
6318
|
switchSize: "md"
|
|
6279
6319
|
}
|
|
6280
6320
|
}
|
|
6281
|
-
), ja =
|
|
6321
|
+
), ja = L(
|
|
6282
6322
|
({
|
|
6283
6323
|
className: e,
|
|
6284
6324
|
defaultChecked: r,
|
|
@@ -6288,14 +6328,14 @@ const Ra = rr, ya = "transition-all ease-out duration-500 relative overflow-hidd
|
|
|
6288
6328
|
switchSize: a,
|
|
6289
6329
|
...l
|
|
6290
6330
|
}, d) => {
|
|
6291
|
-
const [
|
|
6331
|
+
const [b, c] = q(
|
|
6292
6332
|
r || !1
|
|
6293
|
-
), u = t !== void 0,
|
|
6333
|
+
), u = t !== void 0, g = u ? t : b, p = () => {
|
|
6294
6334
|
if (i) return;
|
|
6295
|
-
const
|
|
6296
|
-
u || c(
|
|
6297
|
-
}, v = (
|
|
6298
|
-
(
|
|
6335
|
+
const x = !g;
|
|
6336
|
+
u || c(x), o == null || o(x);
|
|
6337
|
+
}, v = (x) => {
|
|
6338
|
+
(x.key === " " || x.key === "Enter") && (x.preventDefault(), p());
|
|
6299
6339
|
};
|
|
6300
6340
|
return /* @__PURE__ */ s.jsx(
|
|
6301
6341
|
"button",
|
|
@@ -6303,12 +6343,12 @@ const Ra = rr, ya = "transition-all ease-out duration-500 relative overflow-hidd
|
|
|
6303
6343
|
ref: d,
|
|
6304
6344
|
type: "button",
|
|
6305
6345
|
role: "switch",
|
|
6306
|
-
"aria-checked":
|
|
6307
|
-
"data-state":
|
|
6308
|
-
onClick:
|
|
6346
|
+
"aria-checked": g,
|
|
6347
|
+
"data-state": g ? "checked" : "unchecked",
|
|
6348
|
+
onClick: p,
|
|
6309
6349
|
onKeyDown: v,
|
|
6310
6350
|
disabled: i,
|
|
6311
|
-
className:
|
|
6351
|
+
className: T(
|
|
6312
6352
|
wa({
|
|
6313
6353
|
switchSize: a,
|
|
6314
6354
|
className: e
|
|
@@ -6318,7 +6358,7 @@ const Ra = rr, ya = "transition-all ease-out duration-500 relative overflow-hidd
|
|
|
6318
6358
|
children: /* @__PURE__ */ s.jsx(
|
|
6319
6359
|
"span",
|
|
6320
6360
|
{
|
|
6321
|
-
"data-state":
|
|
6361
|
+
"data-state": g ? "checked" : "unchecked",
|
|
6322
6362
|
className: ka({ switchSize: a })
|
|
6323
6363
|
}
|
|
6324
6364
|
)
|
|
@@ -6327,7 +6367,7 @@ const Ra = rr, ya = "transition-all ease-out duration-500 relative overflow-hidd
|
|
|
6327
6367
|
}
|
|
6328
6368
|
);
|
|
6329
6369
|
ja.displayName = "Switch";
|
|
6330
|
-
const Ca =
|
|
6370
|
+
const Ca = H(
|
|
6331
6371
|
"pointer-events-auto flex w-fit gap-4 rounded-sm p-3 shadow-sm",
|
|
6332
6372
|
{
|
|
6333
6373
|
variants: {
|
|
@@ -6353,45 +6393,45 @@ const Ca = U(
|
|
|
6353
6393
|
canClose: a,
|
|
6354
6394
|
position: l,
|
|
6355
6395
|
duration: d,
|
|
6356
|
-
...
|
|
6396
|
+
...b
|
|
6357
6397
|
}, c) => {
|
|
6358
|
-
const u = l === "top" || l === "top-left" || l === "top-right" ? "animate-fade-in-top-to-bottom" : "animate-fade-in-bottom-to-top",
|
|
6398
|
+
const u = l === "top" || l === "top-left" || l === "top-right" ? "animate-fade-in-top-to-bottom" : "animate-fade-in-bottom-to-top", g = l === "top" || l === "top-left" || l === "top-right" ? "animate-fade-out-bottom-to-top" : "animate-fade-out-top-to-bottom", [p, v] = q(!1);
|
|
6359
6399
|
return ae(() => {
|
|
6360
6400
|
if (d && a) {
|
|
6361
|
-
const
|
|
6401
|
+
const x = setTimeout(() => {
|
|
6362
6402
|
v(!0);
|
|
6363
6403
|
}, d - 250);
|
|
6364
|
-
return () => clearTimeout(
|
|
6404
|
+
return () => clearTimeout(x);
|
|
6365
6405
|
}
|
|
6366
6406
|
}, [d, a]), ae(() => {
|
|
6367
|
-
if (
|
|
6368
|
-
const
|
|
6407
|
+
if (p && i && a) {
|
|
6408
|
+
const x = setTimeout(() => {
|
|
6369
6409
|
i();
|
|
6370
6410
|
}, 250);
|
|
6371
|
-
return () => clearTimeout(
|
|
6411
|
+
return () => clearTimeout(x);
|
|
6372
6412
|
}
|
|
6373
|
-
}, [
|
|
6413
|
+
}, [p, i, a]), /* @__PURE__ */ s.jsxs(
|
|
6374
6414
|
"div",
|
|
6375
6415
|
{
|
|
6376
6416
|
ref: c,
|
|
6377
|
-
className:
|
|
6417
|
+
className: T(
|
|
6378
6418
|
Ca({ intent: o }),
|
|
6379
6419
|
e,
|
|
6380
6420
|
a && u,
|
|
6381
|
-
|
|
6421
|
+
p && a && g
|
|
6382
6422
|
),
|
|
6383
|
-
...
|
|
6423
|
+
...b,
|
|
6384
6424
|
children: [
|
|
6385
6425
|
/* @__PURE__ */ s.jsxs("div", { className: "flex flex-col gap-3", children: [
|
|
6386
6426
|
/* @__PURE__ */ s.jsx(
|
|
6387
|
-
|
|
6427
|
+
_,
|
|
6388
6428
|
{
|
|
6389
6429
|
iconName: o === "info" ? "IconInfoCircleFilled" : o === "success" ? "IconCircleCheckFilled" : o === "warning" ? "IconAlertTriangleFilled" : o === "error" ? "IconForbidFilled" : "IconHelpCircleFilled",
|
|
6390
6430
|
size: 16
|
|
6391
6431
|
}
|
|
6392
6432
|
),
|
|
6393
6433
|
r ? /* @__PURE__ */ s.jsx(
|
|
6394
|
-
|
|
6434
|
+
I,
|
|
6395
6435
|
{
|
|
6396
6436
|
intent: "label-lg",
|
|
6397
6437
|
className: "text-content-text-default",
|
|
@@ -6399,7 +6439,7 @@ const Ca = U(
|
|
|
6399
6439
|
children: r
|
|
6400
6440
|
}
|
|
6401
6441
|
) : null,
|
|
6402
|
-
/* @__PURE__ */ s.jsx(
|
|
6442
|
+
/* @__PURE__ */ s.jsx(I, { intent: "paragraph-sm", className: "text-content-text-default", children: t })
|
|
6403
6443
|
] }),
|
|
6404
6444
|
a ? /* @__PURE__ */ s.jsx(
|
|
6405
6445
|
"button",
|
|
@@ -6408,7 +6448,7 @@ const Ca = U(
|
|
|
6408
6448
|
type: "button",
|
|
6409
6449
|
onClick: () => v(!0),
|
|
6410
6450
|
children: /* @__PURE__ */ s.jsx(
|
|
6411
|
-
|
|
6451
|
+
_,
|
|
6412
6452
|
{
|
|
6413
6453
|
iconName: "IconX",
|
|
6414
6454
|
size: 16,
|
|
@@ -6429,9 +6469,9 @@ const or = Dr(void 0), Oa = () => {
|
|
|
6429
6469
|
throw new Error("useToasts must be used within a ToastProvider");
|
|
6430
6470
|
return e;
|
|
6431
6471
|
}, Sa = () => `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, $a = ({ children: e }) => {
|
|
6432
|
-
const [r, t] =
|
|
6472
|
+
const [r, t] = q([]), [o, i] = q(!1), [a, l] = q(""), d = He(
|
|
6433
6473
|
(c) => {
|
|
6434
|
-
t((u) => u.filter((
|
|
6474
|
+
t((u) => u.filter((g) => g.id !== c));
|
|
6435
6475
|
},
|
|
6436
6476
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
6437
6477
|
[r]
|
|
@@ -6439,28 +6479,28 @@ const or = Dr(void 0), Oa = () => {
|
|
|
6439
6479
|
ae(() => {
|
|
6440
6480
|
i(!0);
|
|
6441
6481
|
}, []);
|
|
6442
|
-
const
|
|
6482
|
+
const b = He(
|
|
6443
6483
|
({
|
|
6444
6484
|
title: c,
|
|
6445
6485
|
message: u,
|
|
6446
|
-
intent:
|
|
6447
|
-
position:
|
|
6486
|
+
intent: g,
|
|
6487
|
+
position: p = "bottom-right",
|
|
6448
6488
|
canClose: v,
|
|
6449
|
-
duration:
|
|
6489
|
+
duration: x = 4e3
|
|
6450
6490
|
}) => {
|
|
6451
|
-
const
|
|
6452
|
-
id:
|
|
6491
|
+
const w = Sa(), h = {
|
|
6492
|
+
id: w,
|
|
6453
6493
|
title: c,
|
|
6454
6494
|
message: u,
|
|
6455
|
-
intent:
|
|
6456
|
-
position:
|
|
6495
|
+
intent: g,
|
|
6496
|
+
position: p,
|
|
6457
6497
|
canClose: v,
|
|
6458
|
-
duration:
|
|
6459
|
-
onClose: () => d(
|
|
6498
|
+
duration: x,
|
|
6499
|
+
onClose: () => d(w)
|
|
6460
6500
|
};
|
|
6461
|
-
switch (t((k) => [...k.slice(-2),
|
|
6462
|
-
t((k) => k.filter((
|
|
6463
|
-
},
|
|
6501
|
+
switch (t((k) => [...k.slice(-2), h]), setTimeout(() => {
|
|
6502
|
+
t((k) => k.filter((f) => f.id !== w));
|
|
6503
|
+
}, x), p) {
|
|
6464
6504
|
case "top-right":
|
|
6465
6505
|
l("top-4 right-4");
|
|
6466
6506
|
break;
|
|
@@ -6484,7 +6524,7 @@ const or = Dr(void 0), Oa = () => {
|
|
|
6484
6524
|
},
|
|
6485
6525
|
[d]
|
|
6486
6526
|
);
|
|
6487
|
-
return /* @__PURE__ */ s.jsxs(or.Provider, { value:
|
|
6527
|
+
return /* @__PURE__ */ s.jsxs(or.Provider, { value: b, children: [
|
|
6488
6528
|
e,
|
|
6489
6529
|
o ? qr.createPortal(
|
|
6490
6530
|
/* @__PURE__ */ s.jsx("div", { className: "pointer-events-none fixed inset-0 z-[9999]", children: /* @__PURE__ */ s.jsx("div", { className: `absolute flex flex-col gap-4 ${a}`, children: r.map((c) => /* @__PURE__ */ s.jsx(
|
|
@@ -6518,24 +6558,24 @@ export {
|
|
|
6518
6558
|
sa as Datepicker,
|
|
6519
6559
|
Ia as DayTimePicker,
|
|
6520
6560
|
fa as DropdownSelect,
|
|
6521
|
-
|
|
6561
|
+
_ as IconComponent,
|
|
6522
6562
|
ha as Input,
|
|
6523
6563
|
Ra as InteractiveCard,
|
|
6524
6564
|
pa as Modal,
|
|
6525
6565
|
lt as Popover,
|
|
6526
|
-
|
|
6527
|
-
|
|
6566
|
+
Wa as ProgressBar,
|
|
6567
|
+
Fa as SelectableChips,
|
|
6528
6568
|
Aa as Skeleton,
|
|
6529
6569
|
nt as Spinner,
|
|
6530
6570
|
ja as Switch,
|
|
6531
|
-
|
|
6571
|
+
I as Text,
|
|
6532
6572
|
nr as Toast,
|
|
6533
6573
|
$a as ToastProvider,
|
|
6534
6574
|
tr as Tooltip,
|
|
6535
6575
|
In as buttonActiveStyles,
|
|
6536
6576
|
An as buttonIconActiveStyles,
|
|
6537
|
-
|
|
6538
|
-
|
|
6577
|
+
Fn as buttonIconLoadingStyles,
|
|
6578
|
+
Wn as buttonIconStyles,
|
|
6539
6579
|
$n as buttonLinkStyles,
|
|
6540
6580
|
zn as buttonLoadingStyles,
|
|
6541
6581
|
_n as buttonStyles,
|