rds-ui-system 2.28.0 → 2.30.0
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/lib/components/atoms/FilterChip/FilterChip.d.ts +1 -0
- package/dist/lib/components/molecules/Modal/Modal.d.ts +1 -0
- package/dist/lib/components/molecules/MultiSelect/MultiSelect.d.ts +1 -0
- package/dist/rds-ui-system.es.js +822 -810
- package/dist/rds-ui-system.umd.js +5 -5
- package/package.json +1 -1
package/dist/rds-ui-system.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import nt, { forwardRef as z, useState as E, useEffect as S, useRef as se, useMemo as Ce, useCallback as be, memo as Se } from "react";
|
|
2
2
|
var ge = { exports: {} }, fe = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
@@ -10,7 +10,7 @@ var ge = { exports: {} }, fe = {};
|
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
12
|
var He;
|
|
13
|
-
function
|
|
13
|
+
function ct() {
|
|
14
14
|
if (He) return fe;
|
|
15
15
|
He = 1;
|
|
16
16
|
var s = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
@@ -42,15 +42,15 @@ var xe = {};
|
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
44
|
var Ae;
|
|
45
|
-
function
|
|
45
|
+
function ot() {
|
|
46
46
|
return Ae || (Ae = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
47
47
|
function s(f) {
|
|
48
48
|
if (f == null) return null;
|
|
49
49
|
if (typeof f == "function")
|
|
50
|
-
return f.$$typeof ===
|
|
50
|
+
return f.$$typeof === U ? null : f.displayName || f.name || null;
|
|
51
51
|
if (typeof f == "string") return f;
|
|
52
52
|
switch (f) {
|
|
53
|
-
case
|
|
53
|
+
case u:
|
|
54
54
|
return "Fragment";
|
|
55
55
|
case R:
|
|
56
56
|
return "Profiler";
|
|
@@ -60,7 +60,7 @@ function at() {
|
|
|
60
60
|
return "Suspense";
|
|
61
61
|
case W:
|
|
62
62
|
return "SuspenseList";
|
|
63
|
-
case
|
|
63
|
+
case O:
|
|
64
64
|
return "Activity";
|
|
65
65
|
}
|
|
66
66
|
if (typeof f == "object")
|
|
@@ -71,15 +71,15 @@ function at() {
|
|
|
71
71
|
return f.displayName || "Context";
|
|
72
72
|
case V:
|
|
73
73
|
return (f._context.displayName || "Context") + ".Consumer";
|
|
74
|
-
case
|
|
75
|
-
var
|
|
76
|
-
return f = f.displayName, f || (f =
|
|
74
|
+
case k:
|
|
75
|
+
var _ = f.render;
|
|
76
|
+
return f = f.displayName, f || (f = _.displayName || _.name || "", f = f !== "" ? "ForwardRef(" + f + ")" : "ForwardRef"), f;
|
|
77
77
|
case g:
|
|
78
|
-
return
|
|
78
|
+
return _ = f.displayName || null, _ !== null ? _ : s(f.type) || "Memo";
|
|
79
79
|
case Z:
|
|
80
|
-
|
|
80
|
+
_ = f._payload, f = f._init;
|
|
81
81
|
try {
|
|
82
|
-
return s(f(
|
|
82
|
+
return s(f(_));
|
|
83
83
|
} catch {
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -91,48 +91,48 @@ function at() {
|
|
|
91
91
|
function t(f) {
|
|
92
92
|
try {
|
|
93
93
|
r(f);
|
|
94
|
-
var
|
|
94
|
+
var _ = !1;
|
|
95
95
|
} catch {
|
|
96
|
-
|
|
96
|
+
_ = !0;
|
|
97
97
|
}
|
|
98
|
-
if (
|
|
99
|
-
|
|
100
|
-
var N =
|
|
98
|
+
if (_) {
|
|
99
|
+
_ = console;
|
|
100
|
+
var N = _.error, M = typeof Symbol == "function" && Symbol.toStringTag && f[Symbol.toStringTag] || f.constructor.name || "Object";
|
|
101
101
|
return N.call(
|
|
102
|
-
|
|
102
|
+
_,
|
|
103
103
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
104
104
|
M
|
|
105
105
|
), r(f);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
function i(f) {
|
|
109
|
-
if (f ===
|
|
109
|
+
if (f === u) return "<>";
|
|
110
110
|
if (typeof f == "object" && f !== null && f.$$typeof === Z)
|
|
111
111
|
return "<...>";
|
|
112
112
|
try {
|
|
113
|
-
var
|
|
114
|
-
return
|
|
113
|
+
var _ = s(f);
|
|
114
|
+
return _ ? "<" + _ + ">" : "<...>";
|
|
115
115
|
} catch {
|
|
116
116
|
return "<...>";
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
function a() {
|
|
120
|
-
var f =
|
|
120
|
+
var f = $.A;
|
|
121
121
|
return f === null ? null : f.getOwner();
|
|
122
122
|
}
|
|
123
123
|
function l() {
|
|
124
124
|
return Error("react-stack-top-frame");
|
|
125
125
|
}
|
|
126
126
|
function n(f) {
|
|
127
|
-
if (
|
|
128
|
-
var
|
|
129
|
-
if (
|
|
127
|
+
if (q.call(f, "key")) {
|
|
128
|
+
var _ = Object.getOwnPropertyDescriptor(f, "key").get;
|
|
129
|
+
if (_ && _.isReactWarning) return !1;
|
|
130
130
|
}
|
|
131
131
|
return f.key !== void 0;
|
|
132
132
|
}
|
|
133
|
-
function o(f,
|
|
133
|
+
function o(f, _) {
|
|
134
134
|
function N() {
|
|
135
|
-
|
|
135
|
+
G || (G = !0);
|
|
136
136
|
}
|
|
137
137
|
N.isReactWarning = !0, Object.defineProperty(f, "key", {
|
|
138
138
|
get: N,
|
|
@@ -141,14 +141,14 @@ function at() {
|
|
|
141
141
|
}
|
|
142
142
|
function c() {
|
|
143
143
|
var f = s(this.type);
|
|
144
|
-
return
|
|
144
|
+
return X[f] || (X[f] = !0), f = this.props.ref, f !== void 0 ? f : null;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function d(f, _, N, M, J, ne) {
|
|
147
147
|
var C = N.ref;
|
|
148
148
|
return f = {
|
|
149
149
|
$$typeof: H,
|
|
150
150
|
type: f,
|
|
151
|
-
key:
|
|
151
|
+
key: _,
|
|
152
152
|
props: N,
|
|
153
153
|
_owner: M
|
|
154
154
|
}, (C !== void 0 ? C : null) !== null ? Object.defineProperty(f, "ref", {
|
|
@@ -168,55 +168,55 @@ function at() {
|
|
|
168
168
|
configurable: !1,
|
|
169
169
|
enumerable: !1,
|
|
170
170
|
writable: !0,
|
|
171
|
-
value:
|
|
171
|
+
value: J
|
|
172
172
|
}), Object.defineProperty(f, "_debugTask", {
|
|
173
173
|
configurable: !1,
|
|
174
174
|
enumerable: !1,
|
|
175
175
|
writable: !0,
|
|
176
|
-
value:
|
|
176
|
+
value: ne
|
|
177
177
|
}), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
var C =
|
|
179
|
+
function h(f, _, N, M, J, ne) {
|
|
180
|
+
var C = _.children;
|
|
181
181
|
if (C !== void 0)
|
|
182
182
|
if (M) {
|
|
183
|
-
if (
|
|
183
|
+
if (Q(C)) {
|
|
184
184
|
for (M = 0; M < C.length; M++)
|
|
185
|
-
|
|
185
|
+
m(C[M]);
|
|
186
186
|
Object.freeze && Object.freeze(C);
|
|
187
187
|
}
|
|
188
|
-
} else
|
|
189
|
-
if (
|
|
188
|
+
} else m(C);
|
|
189
|
+
if (q.call(_, "key")) {
|
|
190
190
|
C = s(f);
|
|
191
|
-
var
|
|
192
|
-
return
|
|
191
|
+
var F = Object.keys(_).filter(function(ce) {
|
|
192
|
+
return ce !== "key";
|
|
193
193
|
});
|
|
194
|
-
M = 0 <
|
|
194
|
+
M = 0 < F.length ? "{key: someKey, " + F.join(": ..., ") + ": ...}" : "{key: someKey}", he[C + M] || (F = 0 < F.length ? "{" + F.join(": ..., ") + ": ...}" : "{}", he[C + M] = !0);
|
|
195
195
|
}
|
|
196
|
-
if (C = null, N !== void 0 && (t(N), C = "" + N), n(
|
|
196
|
+
if (C = null, N !== void 0 && (t(N), C = "" + N), n(_) && (t(_.key), C = "" + _.key), "key" in _) {
|
|
197
197
|
N = {};
|
|
198
|
-
for (var
|
|
199
|
-
|
|
200
|
-
} else N =
|
|
198
|
+
for (var ee in _)
|
|
199
|
+
ee !== "key" && (N[ee] = _[ee]);
|
|
200
|
+
} else N = _;
|
|
201
201
|
return C && o(
|
|
202
202
|
N,
|
|
203
203
|
typeof f == "function" ? f.displayName || f.name || "Unknown" : f
|
|
204
|
-
),
|
|
204
|
+
), d(
|
|
205
205
|
f,
|
|
206
206
|
C,
|
|
207
207
|
N,
|
|
208
208
|
a(),
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
J,
|
|
210
|
+
ne
|
|
211
211
|
);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
|
|
213
|
+
function m(f) {
|
|
214
|
+
L(f) ? f._store && (f._store.validated = 1) : typeof f == "object" && f !== null && f.$$typeof === Z && (f._payload.status === "fulfilled" ? L(f._payload.value) && f._payload.value._store && (f._payload.value._store.validated = 1) : f._store && (f._store.validated = 1));
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function L(f) {
|
|
217
217
|
return typeof f == "object" && f !== null && f.$$typeof === H;
|
|
218
218
|
}
|
|
219
|
-
var j =
|
|
219
|
+
var j = nt, H = Symbol.for("react.transitional.element"), A = Symbol.for("react.portal"), u = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), T = Symbol.for("react.context"), k = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), W = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), Z = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), U = Symbol.for("react.client.reference"), $ = j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, q = Object.prototype.hasOwnProperty, Q = Array.isArray, D = console.createTask ? console.createTask : function() {
|
|
220
220
|
return null;
|
|
221
221
|
};
|
|
222
222
|
j = {
|
|
@@ -224,146 +224,146 @@ function at() {
|
|
|
224
224
|
return f();
|
|
225
225
|
}
|
|
226
226
|
};
|
|
227
|
-
var
|
|
227
|
+
var G, X = {}, v = j.react_stack_bottom_frame.bind(
|
|
228
228
|
j,
|
|
229
229
|
l
|
|
230
|
-
)(), de =
|
|
231
|
-
xe.Fragment =
|
|
232
|
-
var M = 1e4 >
|
|
233
|
-
return
|
|
230
|
+
)(), de = D(i(l)), he = {};
|
|
231
|
+
xe.Fragment = u, xe.jsx = function(f, _, N) {
|
|
232
|
+
var M = 1e4 > $.recentlyCreatedOwnerStacks++;
|
|
233
|
+
return h(
|
|
234
234
|
f,
|
|
235
|
-
|
|
235
|
+
_,
|
|
236
236
|
N,
|
|
237
237
|
!1,
|
|
238
238
|
M ? Error("react-stack-top-frame") : v,
|
|
239
|
-
M ?
|
|
239
|
+
M ? D(i(f)) : de
|
|
240
240
|
);
|
|
241
|
-
}, xe.jsxs = function(f,
|
|
242
|
-
var M = 1e4 >
|
|
243
|
-
return
|
|
241
|
+
}, xe.jsxs = function(f, _, N) {
|
|
242
|
+
var M = 1e4 > $.recentlyCreatedOwnerStacks++;
|
|
243
|
+
return h(
|
|
244
244
|
f,
|
|
245
|
-
|
|
245
|
+
_,
|
|
246
246
|
N,
|
|
247
247
|
!0,
|
|
248
248
|
M ? Error("react-stack-top-frame") : v,
|
|
249
|
-
M ?
|
|
249
|
+
M ? D(i(f)) : de
|
|
250
250
|
);
|
|
251
251
|
};
|
|
252
252
|
})()), xe;
|
|
253
253
|
}
|
|
254
254
|
var Re;
|
|
255
|
-
function
|
|
256
|
-
return Re || (Re = 1, process.env.NODE_ENV === "production" ? ge.exports =
|
|
255
|
+
function dt() {
|
|
256
|
+
return Re || (Re = 1, process.env.NODE_ENV === "production" ? ge.exports = ct() : ge.exports = ot()), ge.exports;
|
|
257
257
|
}
|
|
258
|
-
var e =
|
|
259
|
-
const
|
|
258
|
+
var e = dt();
|
|
259
|
+
const ht = (s, r) => {
|
|
260
260
|
const t = new Array(s.length + r.length);
|
|
261
261
|
for (let i = 0; i < s.length; i++)
|
|
262
262
|
t[i] = s[i];
|
|
263
263
|
for (let i = 0; i < r.length; i++)
|
|
264
264
|
t[s.length + i] = r[i];
|
|
265
265
|
return t;
|
|
266
|
-
},
|
|
266
|
+
}, ft = (s, r) => ({
|
|
267
267
|
classGroupId: s,
|
|
268
268
|
validator: r
|
|
269
|
-
}),
|
|
269
|
+
}), Ie = (s = /* @__PURE__ */ new Map(), r = null, t) => ({
|
|
270
270
|
nextPart: s,
|
|
271
271
|
validators: r,
|
|
272
272
|
classGroupId: t
|
|
273
|
-
}), ke = "-", Pe = [],
|
|
274
|
-
const r =
|
|
273
|
+
}), ke = "-", Pe = [], xt = "arbitrary..", pt = (s) => {
|
|
274
|
+
const r = mt(s), {
|
|
275
275
|
conflictingClassGroups: t,
|
|
276
276
|
conflictingClassGroupModifiers: i
|
|
277
277
|
} = s;
|
|
278
278
|
return {
|
|
279
279
|
getClassGroupId: (n) => {
|
|
280
280
|
if (n.startsWith("[") && n.endsWith("]"))
|
|
281
|
-
return
|
|
281
|
+
return wt(n);
|
|
282
282
|
const o = n.split(ke), c = o[0] === "" && o.length > 1 ? 1 : 0;
|
|
283
|
-
return
|
|
283
|
+
return ze(o, c, r);
|
|
284
284
|
},
|
|
285
285
|
getConflictingClassGroupIds: (n, o) => {
|
|
286
286
|
if (o) {
|
|
287
|
-
const c = i[n],
|
|
288
|
-
return c ?
|
|
287
|
+
const c = i[n], d = t[n];
|
|
288
|
+
return c ? d ? ht(d, c) : c : d || Pe;
|
|
289
289
|
}
|
|
290
290
|
return t[n] || Pe;
|
|
291
291
|
}
|
|
292
292
|
};
|
|
293
|
-
},
|
|
293
|
+
}, ze = (s, r, t) => {
|
|
294
294
|
if (s.length - r === 0)
|
|
295
295
|
return t.classGroupId;
|
|
296
296
|
const a = s[r], l = t.nextPart.get(a);
|
|
297
297
|
if (l) {
|
|
298
|
-
const
|
|
299
|
-
if (
|
|
298
|
+
const d = ze(s, r + 1, l);
|
|
299
|
+
if (d) return d;
|
|
300
300
|
}
|
|
301
301
|
const n = t.validators;
|
|
302
302
|
if (n === null)
|
|
303
303
|
return;
|
|
304
304
|
const o = r === 0 ? s.join(ke) : s.slice(r).join(ke), c = n.length;
|
|
305
|
-
for (let
|
|
306
|
-
const
|
|
307
|
-
if (
|
|
308
|
-
return
|
|
305
|
+
for (let d = 0; d < c; d++) {
|
|
306
|
+
const h = n[d];
|
|
307
|
+
if (h.validator(o))
|
|
308
|
+
return h.classGroupId;
|
|
309
309
|
}
|
|
310
|
-
},
|
|
310
|
+
}, wt = (s) => s.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
311
311
|
const r = s.slice(1, -1), t = r.indexOf(":"), i = r.slice(0, t);
|
|
312
|
-
return i ?
|
|
313
|
-
})(),
|
|
312
|
+
return i ? xt + i : void 0;
|
|
313
|
+
})(), mt = (s) => {
|
|
314
314
|
const {
|
|
315
315
|
theme: r,
|
|
316
316
|
classGroups: t
|
|
317
317
|
} = s;
|
|
318
|
-
return
|
|
319
|
-
},
|
|
320
|
-
const t =
|
|
318
|
+
return ut(t, r);
|
|
319
|
+
}, ut = (s, r) => {
|
|
320
|
+
const t = Ie();
|
|
321
321
|
for (const i in s) {
|
|
322
322
|
const a = s[i];
|
|
323
|
-
|
|
323
|
+
Ve(a, t, i, r);
|
|
324
324
|
}
|
|
325
325
|
return t;
|
|
326
|
-
},
|
|
326
|
+
}, Ve = (s, r, t, i) => {
|
|
327
327
|
const a = s.length;
|
|
328
328
|
for (let l = 0; l < a; l++) {
|
|
329
329
|
const n = s[l];
|
|
330
|
-
|
|
330
|
+
gt(n, r, t, i);
|
|
331
331
|
}
|
|
332
|
-
},
|
|
332
|
+
}, gt = (s, r, t, i) => {
|
|
333
333
|
if (typeof s == "string") {
|
|
334
|
-
|
|
334
|
+
vt(s, r, t);
|
|
335
335
|
return;
|
|
336
336
|
}
|
|
337
337
|
if (typeof s == "function") {
|
|
338
|
-
|
|
338
|
+
jt(s, r, t, i);
|
|
339
339
|
return;
|
|
340
340
|
}
|
|
341
|
-
|
|
342
|
-
},
|
|
343
|
-
const i = s === "" ? r :
|
|
341
|
+
bt(s, r, t, i);
|
|
342
|
+
}, vt = (s, r, t) => {
|
|
343
|
+
const i = s === "" ? r : Oe(r, s);
|
|
344
344
|
i.classGroupId = t;
|
|
345
|
-
},
|
|
346
|
-
if (
|
|
347
|
-
|
|
345
|
+
}, jt = (s, r, t, i) => {
|
|
346
|
+
if (kt(s)) {
|
|
347
|
+
Ve(s(i), r, t, i);
|
|
348
348
|
return;
|
|
349
349
|
}
|
|
350
|
-
r.validators === null && (r.validators = []), r.validators.push(
|
|
351
|
-
},
|
|
350
|
+
r.validators === null && (r.validators = []), r.validators.push(ft(t, s));
|
|
351
|
+
}, bt = (s, r, t, i) => {
|
|
352
352
|
const a = Object.entries(s), l = a.length;
|
|
353
353
|
for (let n = 0; n < l; n++) {
|
|
354
354
|
const [o, c] = a[n];
|
|
355
|
-
|
|
355
|
+
Ve(c, Oe(r, o), t, i);
|
|
356
356
|
}
|
|
357
|
-
},
|
|
357
|
+
}, Oe = (s, r) => {
|
|
358
358
|
let t = s;
|
|
359
359
|
const i = r.split(ke), a = i.length;
|
|
360
360
|
for (let l = 0; l < a; l++) {
|
|
361
361
|
const n = i[l];
|
|
362
362
|
let o = t.nextPart.get(n);
|
|
363
|
-
o || (o =
|
|
363
|
+
o || (o = Ie(), t.nextPart.set(n, o)), t = o;
|
|
364
364
|
}
|
|
365
365
|
return t;
|
|
366
|
-
},
|
|
366
|
+
}, kt = (s) => "isThemeGetter" in s && s.isThemeGetter === !0, Lt = (s) => {
|
|
367
367
|
if (s < 1)
|
|
368
368
|
return {
|
|
369
369
|
get: () => {
|
|
@@ -387,50 +387,50 @@ const ct = (s, r) => {
|
|
|
387
387
|
l in t ? t[l] = n : a(l, n);
|
|
388
388
|
}
|
|
389
389
|
};
|
|
390
|
-
},
|
|
390
|
+
}, ye = "!", Ze = ":", _t = [], Te = (s, r, t, i, a) => ({
|
|
391
391
|
modifiers: s,
|
|
392
392
|
hasImportantModifier: r,
|
|
393
393
|
baseClassName: t,
|
|
394
394
|
maybePostfixModifierPosition: i,
|
|
395
395
|
isExternal: a
|
|
396
|
-
}),
|
|
396
|
+
}), yt = (s) => {
|
|
397
397
|
const {
|
|
398
398
|
prefix: r,
|
|
399
399
|
experimentalParseClassName: t
|
|
400
400
|
} = s;
|
|
401
401
|
let i = (a) => {
|
|
402
402
|
const l = [];
|
|
403
|
-
let n = 0, o = 0, c = 0,
|
|
404
|
-
const
|
|
405
|
-
for (let A = 0; A <
|
|
406
|
-
const
|
|
403
|
+
let n = 0, o = 0, c = 0, d;
|
|
404
|
+
const h = a.length;
|
|
405
|
+
for (let A = 0; A < h; A++) {
|
|
406
|
+
const u = a[A];
|
|
407
407
|
if (n === 0 && o === 0) {
|
|
408
|
-
if (
|
|
408
|
+
if (u === Ze) {
|
|
409
409
|
l.push(a.slice(c, A)), c = A + 1;
|
|
410
410
|
continue;
|
|
411
411
|
}
|
|
412
|
-
if (
|
|
413
|
-
|
|
412
|
+
if (u === "/") {
|
|
413
|
+
d = A;
|
|
414
414
|
continue;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
|
|
417
|
+
u === "[" ? n++ : u === "]" ? n-- : u === "(" ? o++ : u === ")" && o--;
|
|
418
418
|
}
|
|
419
|
-
const
|
|
420
|
-
let
|
|
421
|
-
|
|
419
|
+
const m = l.length === 0 ? a : a.slice(c);
|
|
420
|
+
let L = m, j = !1;
|
|
421
|
+
m.endsWith(ye) ? (L = m.slice(0, -1), j = !0) : (
|
|
422
422
|
/**
|
|
423
423
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
424
424
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
425
425
|
*/
|
|
426
|
-
|
|
426
|
+
m.startsWith(ye) && (L = m.slice(1), j = !0)
|
|
427
427
|
);
|
|
428
|
-
const H =
|
|
429
|
-
return Te(l, j,
|
|
428
|
+
const H = d && d > c ? d - c : void 0;
|
|
429
|
+
return Te(l, j, L, H);
|
|
430
430
|
};
|
|
431
431
|
if (r) {
|
|
432
432
|
const a = r + Ze, l = i;
|
|
433
|
-
i = (n) => n.startsWith(a) ? l(n.slice(a.length)) : Te(
|
|
433
|
+
i = (n) => n.startsWith(a) ? l(n.slice(a.length)) : Te(_t, !1, n, void 0, !0);
|
|
434
434
|
}
|
|
435
435
|
if (t) {
|
|
436
436
|
const a = i;
|
|
@@ -440,7 +440,7 @@ const ct = (s, r) => {
|
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
return i;
|
|
443
|
-
},
|
|
443
|
+
}, Nt = (s) => {
|
|
444
444
|
const r = /* @__PURE__ */ new Map();
|
|
445
445
|
return s.orderSensitiveModifiers.forEach((t, i) => {
|
|
446
446
|
r.set(t, 1e6 + i);
|
|
@@ -453,96 +453,96 @@ const ct = (s, r) => {
|
|
|
453
453
|
}
|
|
454
454
|
return a.length > 0 && (a.sort(), i.push(...a)), i;
|
|
455
455
|
};
|
|
456
|
-
},
|
|
457
|
-
cache:
|
|
458
|
-
parseClassName:
|
|
459
|
-
sortModifiers:
|
|
460
|
-
...
|
|
461
|
-
}),
|
|
456
|
+
}, Ct = (s) => ({
|
|
457
|
+
cache: Lt(s.cacheSize),
|
|
458
|
+
parseClassName: yt(s),
|
|
459
|
+
sortModifiers: Nt(s),
|
|
460
|
+
...pt(s)
|
|
461
|
+
}), Vt = /\s+/, Mt = (s, r) => {
|
|
462
462
|
const {
|
|
463
463
|
parseClassName: t,
|
|
464
464
|
getClassGroupId: i,
|
|
465
465
|
getConflictingClassGroupIds: a,
|
|
466
466
|
sortModifiers: l
|
|
467
|
-
} = r, n = [], o = s.trim().split(
|
|
467
|
+
} = r, n = [], o = s.trim().split(Vt);
|
|
468
468
|
let c = "";
|
|
469
|
-
for (let
|
|
470
|
-
const
|
|
471
|
-
isExternal:
|
|
472
|
-
modifiers:
|
|
469
|
+
for (let d = o.length - 1; d >= 0; d -= 1) {
|
|
470
|
+
const h = o[d], {
|
|
471
|
+
isExternal: m,
|
|
472
|
+
modifiers: L,
|
|
473
473
|
hasImportantModifier: j,
|
|
474
474
|
baseClassName: H,
|
|
475
475
|
maybePostfixModifierPosition: A
|
|
476
|
-
} = t(
|
|
477
|
-
if (
|
|
478
|
-
c =
|
|
476
|
+
} = t(h);
|
|
477
|
+
if (m) {
|
|
478
|
+
c = h + (c.length > 0 ? " " + c : c);
|
|
479
479
|
continue;
|
|
480
480
|
}
|
|
481
|
-
let
|
|
481
|
+
let u = !!A, b = i(u ? H.substring(0, A) : H);
|
|
482
482
|
if (!b) {
|
|
483
|
-
if (!
|
|
484
|
-
c =
|
|
483
|
+
if (!u) {
|
|
484
|
+
c = h + (c.length > 0 ? " " + c : c);
|
|
485
485
|
continue;
|
|
486
486
|
}
|
|
487
487
|
if (b = i(H), !b) {
|
|
488
|
-
c =
|
|
488
|
+
c = h + (c.length > 0 ? " " + c : c);
|
|
489
489
|
continue;
|
|
490
490
|
}
|
|
491
|
-
|
|
491
|
+
u = !1;
|
|
492
492
|
}
|
|
493
|
-
const R =
|
|
493
|
+
const R = L.length === 0 ? "" : L.length === 1 ? L[0] : l(L).join(":"), V = j ? R + ye : R, T = V + b;
|
|
494
494
|
if (n.indexOf(T) > -1)
|
|
495
495
|
continue;
|
|
496
496
|
n.push(T);
|
|
497
|
-
const
|
|
498
|
-
for (let P = 0; P <
|
|
499
|
-
const W =
|
|
497
|
+
const k = a(b, u);
|
|
498
|
+
for (let P = 0; P < k.length; ++P) {
|
|
499
|
+
const W = k[P];
|
|
500
500
|
n.push(V + W);
|
|
501
501
|
}
|
|
502
|
-
c =
|
|
502
|
+
c = h + (c.length > 0 ? " " + c : c);
|
|
503
503
|
}
|
|
504
504
|
return c;
|
|
505
|
-
},
|
|
505
|
+
}, Ht = (...s) => {
|
|
506
506
|
let r = 0, t, i, a = "";
|
|
507
507
|
for (; r < s.length; )
|
|
508
|
-
(t = s[r++]) && (i =
|
|
508
|
+
(t = s[r++]) && (i = Ue(t)) && (a && (a += " "), a += i);
|
|
509
509
|
return a;
|
|
510
|
-
},
|
|
510
|
+
}, Ue = (s) => {
|
|
511
511
|
if (typeof s == "string")
|
|
512
512
|
return s;
|
|
513
513
|
let r, t = "";
|
|
514
514
|
for (let i = 0; i < s.length; i++)
|
|
515
|
-
s[i] && (r =
|
|
515
|
+
s[i] && (r = Ue(s[i])) && (t && (t += " "), t += r);
|
|
516
516
|
return t;
|
|
517
|
-
},
|
|
517
|
+
}, At = (s, ...r) => {
|
|
518
518
|
let t, i, a, l;
|
|
519
519
|
const n = (c) => {
|
|
520
|
-
const
|
|
521
|
-
return t =
|
|
520
|
+
const d = r.reduce((h, m) => m(h), s());
|
|
521
|
+
return t = Ct(d), i = t.cache.get, a = t.cache.set, l = o, o(c);
|
|
522
522
|
}, o = (c) => {
|
|
523
|
-
const
|
|
524
|
-
if (
|
|
525
|
-
return
|
|
526
|
-
const
|
|
527
|
-
return a(c,
|
|
523
|
+
const d = i(c);
|
|
524
|
+
if (d)
|
|
525
|
+
return d;
|
|
526
|
+
const h = Mt(c, t);
|
|
527
|
+
return a(c, h), h;
|
|
528
528
|
};
|
|
529
|
-
return l = n, (...c) => l(
|
|
530
|
-
},
|
|
531
|
-
const r = (t) => t[s] ||
|
|
529
|
+
return l = n, (...c) => l(Ht(...c));
|
|
530
|
+
}, Rt = [], B = (s) => {
|
|
531
|
+
const r = (t) => t[s] || Rt;
|
|
532
532
|
return r.isThemeGetter = !0, r;
|
|
533
|
-
},
|
|
533
|
+
}, Ge = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ye = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Pt = /^\d+\/\d+$/, Zt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Tt = /\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$/, Et = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Bt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Wt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, oe = (s) => Pt.test(s), y = (s) => !!s && !Number.isNaN(Number(s)), te = (s) => !!s && Number.isInteger(Number(s)), _e = (s) => s.endsWith("%") && y(s.slice(0, -1)), K = (s) => Zt.test(s), $e = () => !0, St = (s) => (
|
|
534
534
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
535
535
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
536
536
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
537
|
-
|
|
538
|
-
),
|
|
539
|
-
const i = Ue.exec(s);
|
|
540
|
-
return i ? i[1] ? r(i[1]) : t(i[2]) : !1;
|
|
541
|
-
}, oe = (s, r, t = !1) => {
|
|
537
|
+
Tt.test(s) && !Et.test(s)
|
|
538
|
+
), Me = () => !1, It = (s) => Bt.test(s), zt = (s) => Wt.test(s), Ot = (s) => !p(s) && !w(s), Ut = (s) => re(s, Je, Me), p = (s) => Ge.test(s), ie = (s) => re(s, Ke, St), Ee = (s) => re(s, qt, y), Gt = (s) => re(s, Qe, $e), Yt = (s) => re(s, qe, Me), Be = (s) => re(s, De, Me), $t = (s) => re(s, Xe, zt), ve = (s) => re(s, Fe, It), w = (s) => Ye.test(s), pe = (s) => le(s, Ke), Dt = (s) => le(s, qe), We = (s) => le(s, De), Xt = (s) => le(s, Je), Jt = (s) => le(s, Xe), je = (s) => le(s, Fe, !0), Kt = (s) => le(s, Qe, !0), re = (s, r, t) => {
|
|
542
539
|
const i = Ge.exec(s);
|
|
540
|
+
return i ? i[1] ? r(i[1]) : t(i[2]) : !1;
|
|
541
|
+
}, le = (s, r, t = !1) => {
|
|
542
|
+
const i = Ye.exec(s);
|
|
543
543
|
return i ? i[1] ? r(i[1]) : t : !1;
|
|
544
|
-
},
|
|
545
|
-
const s = B("color"), r = B("font"), t = B("text"), i = B("font-weight"), a = B("tracking"), l = B("leading"), n = B("breakpoint"), o = B("container"), c = B("spacing"),
|
|
544
|
+
}, De = (s) => s === "position" || s === "percentage", Xe = (s) => s === "image" || s === "url", Je = (s) => s === "length" || s === "size" || s === "bg-size", Ke = (s) => s === "length", qt = (s) => s === "number", qe = (s) => s === "family-name", Qe = (s) => s === "number" || s === "weight", Fe = (s) => s === "shadow", Qt = () => {
|
|
545
|
+
const s = B("color"), r = B("font"), t = B("text"), i = B("font-weight"), a = B("tracking"), l = B("leading"), n = B("breakpoint"), o = B("container"), c = B("spacing"), d = B("radius"), h = B("shadow"), m = B("inset-shadow"), L = B("text-shadow"), j = B("drop-shadow"), H = B("blur"), A = B("perspective"), u = B("aspect"), b = B("ease"), R = B("animate"), V = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], T = () => [
|
|
546
546
|
"center",
|
|
547
547
|
"top",
|
|
548
548
|
"bottom",
|
|
@@ -560,51 +560,51 @@ const ct = (s, r) => {
|
|
|
560
560
|
"bottom-left",
|
|
561
561
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
562
562
|
"left-bottom"
|
|
563
|
-
],
|
|
564
|
-
span: ["full",
|
|
565
|
-
},
|
|
566
|
-
position: [
|
|
563
|
+
], k = () => [...T(), w, p], P = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", "contain", "none"], g = () => [w, p, c], Z = () => [oe, "full", "auto", ...g()], O = () => [te, "none", "subgrid", w, p], U = () => ["auto", {
|
|
564
|
+
span: ["full", te, w, p]
|
|
565
|
+
}, te, w, p], $ = () => [te, "auto", w, p], q = () => ["auto", "min", "max", "fr", w, p], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], D = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], G = () => ["auto", ...g()], X = () => [oe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...g()], v = () => [s, w, p], de = () => [...T(), We, Be, {
|
|
566
|
+
position: [w, p]
|
|
567
567
|
}], he = () => ["no-repeat", {
|
|
568
568
|
repeat: ["", "x", "y", "space", "round"]
|
|
569
|
-
}], f = () => ["auto", "cover", "contain",
|
|
570
|
-
size: [
|
|
571
|
-
}],
|
|
569
|
+
}], f = () => ["auto", "cover", "contain", Xt, Ut, {
|
|
570
|
+
size: [w, p]
|
|
571
|
+
}], _ = () => [_e, pe, ie], N = () => [
|
|
572
572
|
// Deprecated since Tailwind CSS v4.0.0
|
|
573
573
|
"",
|
|
574
574
|
"none",
|
|
575
575
|
"full",
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
], M = () => ["",
|
|
576
|
+
d,
|
|
577
|
+
w,
|
|
578
|
+
p
|
|
579
|
+
], M = () => ["", y, pe, ie], J = () => ["solid", "dashed", "dotted", "double"], ne = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], C = () => [y, _e, We, Be], F = () => [
|
|
580
580
|
// Deprecated since Tailwind CSS v4.0.0
|
|
581
581
|
"",
|
|
582
582
|
"none",
|
|
583
583
|
H,
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
],
|
|
584
|
+
w,
|
|
585
|
+
p
|
|
586
|
+
], ee = () => ["none", y, w, p], ce = () => ["none", y, w, p], Le = () => [y, w, p], ue = () => [oe, "full", ...g()];
|
|
587
587
|
return {
|
|
588
588
|
cacheSize: 500,
|
|
589
589
|
theme: {
|
|
590
590
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
591
591
|
aspect: ["video"],
|
|
592
|
-
blur: [
|
|
593
|
-
breakpoint: [
|
|
594
|
-
color: [
|
|
595
|
-
container: [
|
|
596
|
-
"drop-shadow": [
|
|
592
|
+
blur: [K],
|
|
593
|
+
breakpoint: [K],
|
|
594
|
+
color: [$e],
|
|
595
|
+
container: [K],
|
|
596
|
+
"drop-shadow": [K],
|
|
597
597
|
ease: ["in", "out", "in-out"],
|
|
598
|
-
font: [
|
|
598
|
+
font: [Ot],
|
|
599
599
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
600
|
-
"inset-shadow": [
|
|
600
|
+
"inset-shadow": [K],
|
|
601
601
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
602
602
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
603
|
-
radius: [
|
|
604
|
-
shadow: [
|
|
605
|
-
spacing: ["px",
|
|
606
|
-
text: [
|
|
607
|
-
"text-shadow": [
|
|
603
|
+
radius: [K],
|
|
604
|
+
shadow: [K],
|
|
605
|
+
spacing: ["px", y],
|
|
606
|
+
text: [K],
|
|
607
|
+
"text-shadow": [K],
|
|
608
608
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
609
609
|
},
|
|
610
610
|
classGroups: {
|
|
@@ -616,7 +616,7 @@ const ct = (s, r) => {
|
|
|
616
616
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
617
617
|
*/
|
|
618
618
|
aspect: [{
|
|
619
|
-
aspect: ["auto", "square",
|
|
619
|
+
aspect: ["auto", "square", oe, p, w, u]
|
|
620
620
|
}],
|
|
621
621
|
/**
|
|
622
622
|
* Container
|
|
@@ -629,7 +629,7 @@ const ct = (s, r) => {
|
|
|
629
629
|
* @see https://tailwindcss.com/docs/columns
|
|
630
630
|
*/
|
|
631
631
|
columns: [{
|
|
632
|
-
columns: [
|
|
632
|
+
columns: [y, p, w, o]
|
|
633
633
|
}],
|
|
634
634
|
/**
|
|
635
635
|
* Break After
|
|
@@ -707,7 +707,7 @@ const ct = (s, r) => {
|
|
|
707
707
|
* @see https://tailwindcss.com/docs/object-position
|
|
708
708
|
*/
|
|
709
709
|
"object-position": [{
|
|
710
|
-
object:
|
|
710
|
+
object: k()
|
|
711
711
|
}],
|
|
712
712
|
/**
|
|
713
713
|
* Overflow
|
|
@@ -829,7 +829,7 @@ const ct = (s, r) => {
|
|
|
829
829
|
* @see https://tailwindcss.com/docs/z-index
|
|
830
830
|
*/
|
|
831
831
|
z: [{
|
|
832
|
-
z: [
|
|
832
|
+
z: [te, "auto", w, p]
|
|
833
833
|
}],
|
|
834
834
|
// ------------------------
|
|
835
835
|
// --- Flexbox and Grid ---
|
|
@@ -839,7 +839,7 @@ const ct = (s, r) => {
|
|
|
839
839
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
840
840
|
*/
|
|
841
841
|
basis: [{
|
|
842
|
-
basis: [
|
|
842
|
+
basis: [oe, "full", "auto", o, ...g()]
|
|
843
843
|
}],
|
|
844
844
|
/**
|
|
845
845
|
* Flex Direction
|
|
@@ -860,84 +860,84 @@ const ct = (s, r) => {
|
|
|
860
860
|
* @see https://tailwindcss.com/docs/flex
|
|
861
861
|
*/
|
|
862
862
|
flex: [{
|
|
863
|
-
flex: [
|
|
863
|
+
flex: [y, oe, "auto", "initial", "none", p]
|
|
864
864
|
}],
|
|
865
865
|
/**
|
|
866
866
|
* Flex Grow
|
|
867
867
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
868
868
|
*/
|
|
869
869
|
grow: [{
|
|
870
|
-
grow: ["",
|
|
870
|
+
grow: ["", y, w, p]
|
|
871
871
|
}],
|
|
872
872
|
/**
|
|
873
873
|
* Flex Shrink
|
|
874
874
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
875
875
|
*/
|
|
876
876
|
shrink: [{
|
|
877
|
-
shrink: ["",
|
|
877
|
+
shrink: ["", y, w, p]
|
|
878
878
|
}],
|
|
879
879
|
/**
|
|
880
880
|
* Order
|
|
881
881
|
* @see https://tailwindcss.com/docs/order
|
|
882
882
|
*/
|
|
883
883
|
order: [{
|
|
884
|
-
order: [
|
|
884
|
+
order: [te, "first", "last", "none", w, p]
|
|
885
885
|
}],
|
|
886
886
|
/**
|
|
887
887
|
* Grid Template Columns
|
|
888
888
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
889
889
|
*/
|
|
890
890
|
"grid-cols": [{
|
|
891
|
-
"grid-cols":
|
|
891
|
+
"grid-cols": O()
|
|
892
892
|
}],
|
|
893
893
|
/**
|
|
894
894
|
* Grid Column Start / End
|
|
895
895
|
* @see https://tailwindcss.com/docs/grid-column
|
|
896
896
|
*/
|
|
897
897
|
"col-start-end": [{
|
|
898
|
-
col:
|
|
898
|
+
col: U()
|
|
899
899
|
}],
|
|
900
900
|
/**
|
|
901
901
|
* Grid Column Start
|
|
902
902
|
* @see https://tailwindcss.com/docs/grid-column
|
|
903
903
|
*/
|
|
904
904
|
"col-start": [{
|
|
905
|
-
"col-start":
|
|
905
|
+
"col-start": $()
|
|
906
906
|
}],
|
|
907
907
|
/**
|
|
908
908
|
* Grid Column End
|
|
909
909
|
* @see https://tailwindcss.com/docs/grid-column
|
|
910
910
|
*/
|
|
911
911
|
"col-end": [{
|
|
912
|
-
"col-end":
|
|
912
|
+
"col-end": $()
|
|
913
913
|
}],
|
|
914
914
|
/**
|
|
915
915
|
* Grid Template Rows
|
|
916
916
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
917
917
|
*/
|
|
918
918
|
"grid-rows": [{
|
|
919
|
-
"grid-rows":
|
|
919
|
+
"grid-rows": O()
|
|
920
920
|
}],
|
|
921
921
|
/**
|
|
922
922
|
* Grid Row Start / End
|
|
923
923
|
* @see https://tailwindcss.com/docs/grid-row
|
|
924
924
|
*/
|
|
925
925
|
"row-start-end": [{
|
|
926
|
-
row:
|
|
926
|
+
row: U()
|
|
927
927
|
}],
|
|
928
928
|
/**
|
|
929
929
|
* Grid Row Start
|
|
930
930
|
* @see https://tailwindcss.com/docs/grid-row
|
|
931
931
|
*/
|
|
932
932
|
"row-start": [{
|
|
933
|
-
"row-start":
|
|
933
|
+
"row-start": $()
|
|
934
934
|
}],
|
|
935
935
|
/**
|
|
936
936
|
* Grid Row End
|
|
937
937
|
* @see https://tailwindcss.com/docs/grid-row
|
|
938
938
|
*/
|
|
939
939
|
"row-end": [{
|
|
940
|
-
"row-end":
|
|
940
|
+
"row-end": $()
|
|
941
941
|
}],
|
|
942
942
|
/**
|
|
943
943
|
* Grid Auto Flow
|
|
@@ -951,14 +951,14 @@ const ct = (s, r) => {
|
|
|
951
951
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
952
952
|
*/
|
|
953
953
|
"auto-cols": [{
|
|
954
|
-
"auto-cols":
|
|
954
|
+
"auto-cols": q()
|
|
955
955
|
}],
|
|
956
956
|
/**
|
|
957
957
|
* Grid Auto Rows
|
|
958
958
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
959
959
|
*/
|
|
960
960
|
"auto-rows": [{
|
|
961
|
-
"auto-rows":
|
|
961
|
+
"auto-rows": q()
|
|
962
962
|
}],
|
|
963
963
|
/**
|
|
964
964
|
* Gap
|
|
@@ -986,35 +986,35 @@ const ct = (s, r) => {
|
|
|
986
986
|
* @see https://tailwindcss.com/docs/justify-content
|
|
987
987
|
*/
|
|
988
988
|
"justify-content": [{
|
|
989
|
-
justify: [...
|
|
989
|
+
justify: [...Q(), "normal"]
|
|
990
990
|
}],
|
|
991
991
|
/**
|
|
992
992
|
* Justify Items
|
|
993
993
|
* @see https://tailwindcss.com/docs/justify-items
|
|
994
994
|
*/
|
|
995
995
|
"justify-items": [{
|
|
996
|
-
"justify-items": [
|
|
996
|
+
"justify-items": [...D(), "normal"]
|
|
997
997
|
}],
|
|
998
998
|
/**
|
|
999
999
|
* Justify Self
|
|
1000
1000
|
* @see https://tailwindcss.com/docs/justify-self
|
|
1001
1001
|
*/
|
|
1002
1002
|
"justify-self": [{
|
|
1003
|
-
"justify-self": ["auto",
|
|
1003
|
+
"justify-self": ["auto", ...D()]
|
|
1004
1004
|
}],
|
|
1005
1005
|
/**
|
|
1006
1006
|
* Align Content
|
|
1007
1007
|
* @see https://tailwindcss.com/docs/align-content
|
|
1008
1008
|
*/
|
|
1009
1009
|
"align-content": [{
|
|
1010
|
-
content: ["normal", ...
|
|
1010
|
+
content: ["normal", ...Q()]
|
|
1011
1011
|
}],
|
|
1012
1012
|
/**
|
|
1013
1013
|
* Align Items
|
|
1014
1014
|
* @see https://tailwindcss.com/docs/align-items
|
|
1015
1015
|
*/
|
|
1016
1016
|
"align-items": [{
|
|
1017
|
-
items: [
|
|
1017
|
+
items: [...D(), {
|
|
1018
1018
|
baseline: ["", "last"]
|
|
1019
1019
|
}]
|
|
1020
1020
|
}],
|
|
@@ -1023,7 +1023,7 @@ const ct = (s, r) => {
|
|
|
1023
1023
|
* @see https://tailwindcss.com/docs/align-self
|
|
1024
1024
|
*/
|
|
1025
1025
|
"align-self": [{
|
|
1026
|
-
self: ["auto",
|
|
1026
|
+
self: ["auto", ...D(), {
|
|
1027
1027
|
baseline: ["", "last"]
|
|
1028
1028
|
}]
|
|
1029
1029
|
}],
|
|
@@ -1032,21 +1032,21 @@ const ct = (s, r) => {
|
|
|
1032
1032
|
* @see https://tailwindcss.com/docs/place-content
|
|
1033
1033
|
*/
|
|
1034
1034
|
"place-content": [{
|
|
1035
|
-
"place-content":
|
|
1035
|
+
"place-content": Q()
|
|
1036
1036
|
}],
|
|
1037
1037
|
/**
|
|
1038
1038
|
* Place Items
|
|
1039
1039
|
* @see https://tailwindcss.com/docs/place-items
|
|
1040
1040
|
*/
|
|
1041
1041
|
"place-items": [{
|
|
1042
|
-
"place-items": [
|
|
1042
|
+
"place-items": [...D(), "baseline"]
|
|
1043
1043
|
}],
|
|
1044
1044
|
/**
|
|
1045
1045
|
* Place Self
|
|
1046
1046
|
* @see https://tailwindcss.com/docs/place-self
|
|
1047
1047
|
*/
|
|
1048
1048
|
"place-self": [{
|
|
1049
|
-
"place-self": ["auto",
|
|
1049
|
+
"place-self": ["auto", ...D()]
|
|
1050
1050
|
}],
|
|
1051
1051
|
// Spacing
|
|
1052
1052
|
/**
|
|
@@ -1117,63 +1117,63 @@ const ct = (s, r) => {
|
|
|
1117
1117
|
* @see https://tailwindcss.com/docs/margin
|
|
1118
1118
|
*/
|
|
1119
1119
|
m: [{
|
|
1120
|
-
m:
|
|
1120
|
+
m: G()
|
|
1121
1121
|
}],
|
|
1122
1122
|
/**
|
|
1123
1123
|
* Margin X
|
|
1124
1124
|
* @see https://tailwindcss.com/docs/margin
|
|
1125
1125
|
*/
|
|
1126
1126
|
mx: [{
|
|
1127
|
-
mx:
|
|
1127
|
+
mx: G()
|
|
1128
1128
|
}],
|
|
1129
1129
|
/**
|
|
1130
1130
|
* Margin Y
|
|
1131
1131
|
* @see https://tailwindcss.com/docs/margin
|
|
1132
1132
|
*/
|
|
1133
1133
|
my: [{
|
|
1134
|
-
my:
|
|
1134
|
+
my: G()
|
|
1135
1135
|
}],
|
|
1136
1136
|
/**
|
|
1137
1137
|
* Margin Start
|
|
1138
1138
|
* @see https://tailwindcss.com/docs/margin
|
|
1139
1139
|
*/
|
|
1140
1140
|
ms: [{
|
|
1141
|
-
ms:
|
|
1141
|
+
ms: G()
|
|
1142
1142
|
}],
|
|
1143
1143
|
/**
|
|
1144
1144
|
* Margin End
|
|
1145
1145
|
* @see https://tailwindcss.com/docs/margin
|
|
1146
1146
|
*/
|
|
1147
1147
|
me: [{
|
|
1148
|
-
me:
|
|
1148
|
+
me: G()
|
|
1149
1149
|
}],
|
|
1150
1150
|
/**
|
|
1151
1151
|
* Margin Top
|
|
1152
1152
|
* @see https://tailwindcss.com/docs/margin
|
|
1153
1153
|
*/
|
|
1154
1154
|
mt: [{
|
|
1155
|
-
mt:
|
|
1155
|
+
mt: G()
|
|
1156
1156
|
}],
|
|
1157
1157
|
/**
|
|
1158
1158
|
* Margin Right
|
|
1159
1159
|
* @see https://tailwindcss.com/docs/margin
|
|
1160
1160
|
*/
|
|
1161
1161
|
mr: [{
|
|
1162
|
-
mr:
|
|
1162
|
+
mr: G()
|
|
1163
1163
|
}],
|
|
1164
1164
|
/**
|
|
1165
1165
|
* Margin Bottom
|
|
1166
1166
|
* @see https://tailwindcss.com/docs/margin
|
|
1167
1167
|
*/
|
|
1168
1168
|
mb: [{
|
|
1169
|
-
mb:
|
|
1169
|
+
mb: G()
|
|
1170
1170
|
}],
|
|
1171
1171
|
/**
|
|
1172
1172
|
* Margin Left
|
|
1173
1173
|
* @see https://tailwindcss.com/docs/margin
|
|
1174
1174
|
*/
|
|
1175
1175
|
ml: [{
|
|
1176
|
-
ml:
|
|
1176
|
+
ml: G()
|
|
1177
1177
|
}],
|
|
1178
1178
|
/**
|
|
1179
1179
|
* Space Between X
|
|
@@ -1207,14 +1207,14 @@ const ct = (s, r) => {
|
|
|
1207
1207
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1208
1208
|
*/
|
|
1209
1209
|
size: [{
|
|
1210
|
-
size:
|
|
1210
|
+
size: X()
|
|
1211
1211
|
}],
|
|
1212
1212
|
/**
|
|
1213
1213
|
* Width
|
|
1214
1214
|
* @see https://tailwindcss.com/docs/width
|
|
1215
1215
|
*/
|
|
1216
1216
|
w: [{
|
|
1217
|
-
w: [o, "screen", ...
|
|
1217
|
+
w: [o, "screen", ...X()]
|
|
1218
1218
|
}],
|
|
1219
1219
|
/**
|
|
1220
1220
|
* Min-Width
|
|
@@ -1226,7 +1226,7 @@ const ct = (s, r) => {
|
|
|
1226
1226
|
"screen",
|
|
1227
1227
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1228
1228
|
"none",
|
|
1229
|
-
...
|
|
1229
|
+
...X()
|
|
1230
1230
|
]
|
|
1231
1231
|
}],
|
|
1232
1232
|
/**
|
|
@@ -1244,7 +1244,7 @@ const ct = (s, r) => {
|
|
|
1244
1244
|
{
|
|
1245
1245
|
screen: [n]
|
|
1246
1246
|
},
|
|
1247
|
-
...
|
|
1247
|
+
...X()
|
|
1248
1248
|
]
|
|
1249
1249
|
}],
|
|
1250
1250
|
/**
|
|
@@ -1252,21 +1252,21 @@ const ct = (s, r) => {
|
|
|
1252
1252
|
* @see https://tailwindcss.com/docs/height
|
|
1253
1253
|
*/
|
|
1254
1254
|
h: [{
|
|
1255
|
-
h: ["screen", "lh", ...
|
|
1255
|
+
h: ["screen", "lh", ...X()]
|
|
1256
1256
|
}],
|
|
1257
1257
|
/**
|
|
1258
1258
|
* Min-Height
|
|
1259
1259
|
* @see https://tailwindcss.com/docs/min-height
|
|
1260
1260
|
*/
|
|
1261
1261
|
"min-h": [{
|
|
1262
|
-
"min-h": ["screen", "lh", "none", ...
|
|
1262
|
+
"min-h": ["screen", "lh", "none", ...X()]
|
|
1263
1263
|
}],
|
|
1264
1264
|
/**
|
|
1265
1265
|
* Max-Height
|
|
1266
1266
|
* @see https://tailwindcss.com/docs/max-height
|
|
1267
1267
|
*/
|
|
1268
1268
|
"max-h": [{
|
|
1269
|
-
"max-h": ["screen", "lh", ...
|
|
1269
|
+
"max-h": ["screen", "lh", ...X()]
|
|
1270
1270
|
}],
|
|
1271
1271
|
// ------------------
|
|
1272
1272
|
// --- Typography ---
|
|
@@ -1276,7 +1276,7 @@ const ct = (s, r) => {
|
|
|
1276
1276
|
* @see https://tailwindcss.com/docs/font-size
|
|
1277
1277
|
*/
|
|
1278
1278
|
"font-size": [{
|
|
1279
|
-
text: ["base", t, pe,
|
|
1279
|
+
text: ["base", t, pe, ie]
|
|
1280
1280
|
}],
|
|
1281
1281
|
/**
|
|
1282
1282
|
* Font Smoothing
|
|
@@ -1293,21 +1293,21 @@ const ct = (s, r) => {
|
|
|
1293
1293
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1294
1294
|
*/
|
|
1295
1295
|
"font-weight": [{
|
|
1296
|
-
font: [i,
|
|
1296
|
+
font: [i, Kt, Gt]
|
|
1297
1297
|
}],
|
|
1298
1298
|
/**
|
|
1299
1299
|
* Font Stretch
|
|
1300
1300
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1301
1301
|
*/
|
|
1302
1302
|
"font-stretch": [{
|
|
1303
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", _e,
|
|
1303
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", _e, p]
|
|
1304
1304
|
}],
|
|
1305
1305
|
/**
|
|
1306
1306
|
* Font Family
|
|
1307
1307
|
* @see https://tailwindcss.com/docs/font-family
|
|
1308
1308
|
*/
|
|
1309
1309
|
"font-family": [{
|
|
1310
|
-
font: [
|
|
1310
|
+
font: [Dt, Yt, r]
|
|
1311
1311
|
}],
|
|
1312
1312
|
/**
|
|
1313
1313
|
* Font Variant Numeric
|
|
@@ -1344,14 +1344,14 @@ const ct = (s, r) => {
|
|
|
1344
1344
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1345
1345
|
*/
|
|
1346
1346
|
tracking: [{
|
|
1347
|
-
tracking: [a,
|
|
1347
|
+
tracking: [a, w, p]
|
|
1348
1348
|
}],
|
|
1349
1349
|
/**
|
|
1350
1350
|
* Line Clamp
|
|
1351
1351
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1352
1352
|
*/
|
|
1353
1353
|
"line-clamp": [{
|
|
1354
|
-
"line-clamp": [
|
|
1354
|
+
"line-clamp": [y, "none", w, Ee]
|
|
1355
1355
|
}],
|
|
1356
1356
|
/**
|
|
1357
1357
|
* Line Height
|
|
@@ -1369,7 +1369,7 @@ const ct = (s, r) => {
|
|
|
1369
1369
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1370
1370
|
*/
|
|
1371
1371
|
"list-image": [{
|
|
1372
|
-
"list-image": ["none",
|
|
1372
|
+
"list-image": ["none", w, p]
|
|
1373
1373
|
}],
|
|
1374
1374
|
/**
|
|
1375
1375
|
* List Style Position
|
|
@@ -1383,7 +1383,7 @@ const ct = (s, r) => {
|
|
|
1383
1383
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1384
1384
|
*/
|
|
1385
1385
|
"list-style-type": [{
|
|
1386
|
-
list: ["disc", "decimal", "none",
|
|
1386
|
+
list: ["disc", "decimal", "none", w, p]
|
|
1387
1387
|
}],
|
|
1388
1388
|
/**
|
|
1389
1389
|
* Text Alignment
|
|
@@ -1417,14 +1417,14 @@ const ct = (s, r) => {
|
|
|
1417
1417
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1418
1418
|
*/
|
|
1419
1419
|
"text-decoration-style": [{
|
|
1420
|
-
decoration: [...
|
|
1420
|
+
decoration: [...J(), "wavy"]
|
|
1421
1421
|
}],
|
|
1422
1422
|
/**
|
|
1423
1423
|
* Text Decoration Thickness
|
|
1424
1424
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1425
1425
|
*/
|
|
1426
1426
|
"text-decoration-thickness": [{
|
|
1427
|
-
decoration: [
|
|
1427
|
+
decoration: [y, "from-font", "auto", w, ie]
|
|
1428
1428
|
}],
|
|
1429
1429
|
/**
|
|
1430
1430
|
* Text Decoration Color
|
|
@@ -1438,7 +1438,7 @@ const ct = (s, r) => {
|
|
|
1438
1438
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1439
1439
|
*/
|
|
1440
1440
|
"underline-offset": [{
|
|
1441
|
-
"underline-offset": [
|
|
1441
|
+
"underline-offset": [y, "auto", w, p]
|
|
1442
1442
|
}],
|
|
1443
1443
|
/**
|
|
1444
1444
|
* Text Transform
|
|
@@ -1469,7 +1469,7 @@ const ct = (s, r) => {
|
|
|
1469
1469
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1470
1470
|
*/
|
|
1471
1471
|
"vertical-align": [{
|
|
1472
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1472
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", w, p]
|
|
1473
1473
|
}],
|
|
1474
1474
|
/**
|
|
1475
1475
|
* Whitespace
|
|
@@ -1504,7 +1504,7 @@ const ct = (s, r) => {
|
|
|
1504
1504
|
* @see https://tailwindcss.com/docs/content
|
|
1505
1505
|
*/
|
|
1506
1506
|
content: [{
|
|
1507
|
-
content: ["none",
|
|
1507
|
+
content: ["none", w, p]
|
|
1508
1508
|
}],
|
|
1509
1509
|
// -------------------
|
|
1510
1510
|
// --- Backgrounds ---
|
|
@@ -1559,10 +1559,10 @@ const ct = (s, r) => {
|
|
|
1559
1559
|
bg: ["none", {
|
|
1560
1560
|
linear: [{
|
|
1561
1561
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1562
|
-
},
|
|
1563
|
-
radial: ["",
|
|
1564
|
-
conic: [
|
|
1565
|
-
},
|
|
1562
|
+
}, te, w, p],
|
|
1563
|
+
radial: ["", w, p],
|
|
1564
|
+
conic: [te, w, p]
|
|
1565
|
+
}, Jt, $t]
|
|
1566
1566
|
}],
|
|
1567
1567
|
/**
|
|
1568
1568
|
* Background Color
|
|
@@ -1576,21 +1576,21 @@ const ct = (s, r) => {
|
|
|
1576
1576
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1577
1577
|
*/
|
|
1578
1578
|
"gradient-from-pos": [{
|
|
1579
|
-
from:
|
|
1579
|
+
from: _()
|
|
1580
1580
|
}],
|
|
1581
1581
|
/**
|
|
1582
1582
|
* Gradient Color Stops Via Position
|
|
1583
1583
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1584
1584
|
*/
|
|
1585
1585
|
"gradient-via-pos": [{
|
|
1586
|
-
via:
|
|
1586
|
+
via: _()
|
|
1587
1587
|
}],
|
|
1588
1588
|
/**
|
|
1589
1589
|
* Gradient Color Stops To Position
|
|
1590
1590
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1591
1591
|
*/
|
|
1592
1592
|
"gradient-to-pos": [{
|
|
1593
|
-
to:
|
|
1593
|
+
to: _()
|
|
1594
1594
|
}],
|
|
1595
1595
|
/**
|
|
1596
1596
|
* Gradient Color Stops From
|
|
@@ -1813,14 +1813,14 @@ const ct = (s, r) => {
|
|
|
1813
1813
|
* @see https://tailwindcss.com/docs/border-style
|
|
1814
1814
|
*/
|
|
1815
1815
|
"border-style": [{
|
|
1816
|
-
border: [...
|
|
1816
|
+
border: [...J(), "hidden", "none"]
|
|
1817
1817
|
}],
|
|
1818
1818
|
/**
|
|
1819
1819
|
* Divide Style
|
|
1820
1820
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
1821
1821
|
*/
|
|
1822
1822
|
"divide-style": [{
|
|
1823
|
-
divide: [...
|
|
1823
|
+
divide: [...J(), "hidden", "none"]
|
|
1824
1824
|
}],
|
|
1825
1825
|
/**
|
|
1826
1826
|
* Border Color
|
|
@@ -1897,21 +1897,21 @@ const ct = (s, r) => {
|
|
|
1897
1897
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1898
1898
|
*/
|
|
1899
1899
|
"outline-style": [{
|
|
1900
|
-
outline: [...
|
|
1900
|
+
outline: [...J(), "none", "hidden"]
|
|
1901
1901
|
}],
|
|
1902
1902
|
/**
|
|
1903
1903
|
* Outline Offset
|
|
1904
1904
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1905
1905
|
*/
|
|
1906
1906
|
"outline-offset": [{
|
|
1907
|
-
"outline-offset": [
|
|
1907
|
+
"outline-offset": [y, w, p]
|
|
1908
1908
|
}],
|
|
1909
1909
|
/**
|
|
1910
1910
|
* Outline Width
|
|
1911
1911
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1912
1912
|
*/
|
|
1913
1913
|
"outline-w": [{
|
|
1914
|
-
outline: ["",
|
|
1914
|
+
outline: ["", y, pe, ie]
|
|
1915
1915
|
}],
|
|
1916
1916
|
/**
|
|
1917
1917
|
* Outline Color
|
|
@@ -1932,7 +1932,7 @@ const ct = (s, r) => {
|
|
|
1932
1932
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1933
1933
|
"",
|
|
1934
1934
|
"none",
|
|
1935
|
-
|
|
1935
|
+
h,
|
|
1936
1936
|
je,
|
|
1937
1937
|
ve
|
|
1938
1938
|
]
|
|
@@ -1949,7 +1949,7 @@ const ct = (s, r) => {
|
|
|
1949
1949
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
1950
1950
|
*/
|
|
1951
1951
|
"inset-shadow": [{
|
|
1952
|
-
"inset-shadow": ["none",
|
|
1952
|
+
"inset-shadow": ["none", m, je, ve]
|
|
1953
1953
|
}],
|
|
1954
1954
|
/**
|
|
1955
1955
|
* Inset Box Shadow Color
|
|
@@ -1986,7 +1986,7 @@ const ct = (s, r) => {
|
|
|
1986
1986
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1987
1987
|
*/
|
|
1988
1988
|
"ring-offset-w": [{
|
|
1989
|
-
"ring-offset": [
|
|
1989
|
+
"ring-offset": [y, ie]
|
|
1990
1990
|
}],
|
|
1991
1991
|
/**
|
|
1992
1992
|
* Ring Offset Color
|
|
@@ -2016,7 +2016,7 @@ const ct = (s, r) => {
|
|
|
2016
2016
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
2017
2017
|
*/
|
|
2018
2018
|
"text-shadow": [{
|
|
2019
|
-
"text-shadow": ["none",
|
|
2019
|
+
"text-shadow": ["none", L, je, ve]
|
|
2020
2020
|
}],
|
|
2021
2021
|
/**
|
|
2022
2022
|
* Text Shadow Color
|
|
@@ -2030,21 +2030,21 @@ const ct = (s, r) => {
|
|
|
2030
2030
|
* @see https://tailwindcss.com/docs/opacity
|
|
2031
2031
|
*/
|
|
2032
2032
|
opacity: [{
|
|
2033
|
-
opacity: [
|
|
2033
|
+
opacity: [y, w, p]
|
|
2034
2034
|
}],
|
|
2035
2035
|
/**
|
|
2036
2036
|
* Mix Blend Mode
|
|
2037
2037
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2038
2038
|
*/
|
|
2039
2039
|
"mix-blend": [{
|
|
2040
|
-
"mix-blend": [...
|
|
2040
|
+
"mix-blend": [...ne(), "plus-darker", "plus-lighter"]
|
|
2041
2041
|
}],
|
|
2042
2042
|
/**
|
|
2043
2043
|
* Background Blend Mode
|
|
2044
2044
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2045
2045
|
*/
|
|
2046
2046
|
"bg-blend": [{
|
|
2047
|
-
"bg-blend":
|
|
2047
|
+
"bg-blend": ne()
|
|
2048
2048
|
}],
|
|
2049
2049
|
/**
|
|
2050
2050
|
* Mask Clip
|
|
@@ -2065,7 +2065,7 @@ const ct = (s, r) => {
|
|
|
2065
2065
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2066
2066
|
*/
|
|
2067
2067
|
"mask-image-linear-pos": [{
|
|
2068
|
-
"mask-linear": [
|
|
2068
|
+
"mask-linear": [y]
|
|
2069
2069
|
}],
|
|
2070
2070
|
"mask-image-linear-from-pos": [{
|
|
2071
2071
|
"mask-linear-from": C()
|
|
@@ -2152,7 +2152,7 @@ const ct = (s, r) => {
|
|
|
2152
2152
|
"mask-y-to": v()
|
|
2153
2153
|
}],
|
|
2154
2154
|
"mask-image-radial": [{
|
|
2155
|
-
"mask-radial": [
|
|
2155
|
+
"mask-radial": [w, p]
|
|
2156
2156
|
}],
|
|
2157
2157
|
"mask-image-radial-from-pos": [{
|
|
2158
2158
|
"mask-radial-from": C()
|
|
@@ -2179,7 +2179,7 @@ const ct = (s, r) => {
|
|
|
2179
2179
|
"mask-radial-at": T()
|
|
2180
2180
|
}],
|
|
2181
2181
|
"mask-image-conic-pos": [{
|
|
2182
|
-
"mask-conic": [
|
|
2182
|
+
"mask-conic": [y]
|
|
2183
2183
|
}],
|
|
2184
2184
|
"mask-image-conic-from-pos": [{
|
|
2185
2185
|
"mask-conic-from": C()
|
|
@@ -2240,7 +2240,7 @@ const ct = (s, r) => {
|
|
|
2240
2240
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2241
2241
|
*/
|
|
2242
2242
|
"mask-image": [{
|
|
2243
|
-
mask: ["none",
|
|
2243
|
+
mask: ["none", w, p]
|
|
2244
2244
|
}],
|
|
2245
2245
|
// ---------------
|
|
2246
2246
|
// --- Filters ---
|
|
@@ -2254,8 +2254,8 @@ const ct = (s, r) => {
|
|
|
2254
2254
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2255
2255
|
"",
|
|
2256
2256
|
"none",
|
|
2257
|
-
|
|
2258
|
-
|
|
2257
|
+
w,
|
|
2258
|
+
p
|
|
2259
2259
|
]
|
|
2260
2260
|
}],
|
|
2261
2261
|
/**
|
|
@@ -2263,21 +2263,21 @@ const ct = (s, r) => {
|
|
|
2263
2263
|
* @see https://tailwindcss.com/docs/blur
|
|
2264
2264
|
*/
|
|
2265
2265
|
blur: [{
|
|
2266
|
-
blur:
|
|
2266
|
+
blur: F()
|
|
2267
2267
|
}],
|
|
2268
2268
|
/**
|
|
2269
2269
|
* Brightness
|
|
2270
2270
|
* @see https://tailwindcss.com/docs/brightness
|
|
2271
2271
|
*/
|
|
2272
2272
|
brightness: [{
|
|
2273
|
-
brightness: [
|
|
2273
|
+
brightness: [y, w, p]
|
|
2274
2274
|
}],
|
|
2275
2275
|
/**
|
|
2276
2276
|
* Contrast
|
|
2277
2277
|
* @see https://tailwindcss.com/docs/contrast
|
|
2278
2278
|
*/
|
|
2279
2279
|
contrast: [{
|
|
2280
|
-
contrast: [
|
|
2280
|
+
contrast: [y, w, p]
|
|
2281
2281
|
}],
|
|
2282
2282
|
/**
|
|
2283
2283
|
* Drop Shadow
|
|
@@ -2305,35 +2305,35 @@ const ct = (s, r) => {
|
|
|
2305
2305
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2306
2306
|
*/
|
|
2307
2307
|
grayscale: [{
|
|
2308
|
-
grayscale: ["",
|
|
2308
|
+
grayscale: ["", y, w, p]
|
|
2309
2309
|
}],
|
|
2310
2310
|
/**
|
|
2311
2311
|
* Hue Rotate
|
|
2312
2312
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2313
2313
|
*/
|
|
2314
2314
|
"hue-rotate": [{
|
|
2315
|
-
"hue-rotate": [
|
|
2315
|
+
"hue-rotate": [y, w, p]
|
|
2316
2316
|
}],
|
|
2317
2317
|
/**
|
|
2318
2318
|
* Invert
|
|
2319
2319
|
* @see https://tailwindcss.com/docs/invert
|
|
2320
2320
|
*/
|
|
2321
2321
|
invert: [{
|
|
2322
|
-
invert: ["",
|
|
2322
|
+
invert: ["", y, w, p]
|
|
2323
2323
|
}],
|
|
2324
2324
|
/**
|
|
2325
2325
|
* Saturate
|
|
2326
2326
|
* @see https://tailwindcss.com/docs/saturate
|
|
2327
2327
|
*/
|
|
2328
2328
|
saturate: [{
|
|
2329
|
-
saturate: [
|
|
2329
|
+
saturate: [y, w, p]
|
|
2330
2330
|
}],
|
|
2331
2331
|
/**
|
|
2332
2332
|
* Sepia
|
|
2333
2333
|
* @see https://tailwindcss.com/docs/sepia
|
|
2334
2334
|
*/
|
|
2335
2335
|
sepia: [{
|
|
2336
|
-
sepia: ["",
|
|
2336
|
+
sepia: ["", y, w, p]
|
|
2337
2337
|
}],
|
|
2338
2338
|
/**
|
|
2339
2339
|
* Backdrop Filter
|
|
@@ -2344,8 +2344,8 @@ const ct = (s, r) => {
|
|
|
2344
2344
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2345
2345
|
"",
|
|
2346
2346
|
"none",
|
|
2347
|
-
|
|
2348
|
-
|
|
2347
|
+
w,
|
|
2348
|
+
p
|
|
2349
2349
|
]
|
|
2350
2350
|
}],
|
|
2351
2351
|
/**
|
|
@@ -2353,63 +2353,63 @@ const ct = (s, r) => {
|
|
|
2353
2353
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
2354
2354
|
*/
|
|
2355
2355
|
"backdrop-blur": [{
|
|
2356
|
-
"backdrop-blur":
|
|
2356
|
+
"backdrop-blur": F()
|
|
2357
2357
|
}],
|
|
2358
2358
|
/**
|
|
2359
2359
|
* Backdrop Brightness
|
|
2360
2360
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2361
2361
|
*/
|
|
2362
2362
|
"backdrop-brightness": [{
|
|
2363
|
-
"backdrop-brightness": [
|
|
2363
|
+
"backdrop-brightness": [y, w, p]
|
|
2364
2364
|
}],
|
|
2365
2365
|
/**
|
|
2366
2366
|
* Backdrop Contrast
|
|
2367
2367
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2368
2368
|
*/
|
|
2369
2369
|
"backdrop-contrast": [{
|
|
2370
|
-
"backdrop-contrast": [
|
|
2370
|
+
"backdrop-contrast": [y, w, p]
|
|
2371
2371
|
}],
|
|
2372
2372
|
/**
|
|
2373
2373
|
* Backdrop Grayscale
|
|
2374
2374
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2375
2375
|
*/
|
|
2376
2376
|
"backdrop-grayscale": [{
|
|
2377
|
-
"backdrop-grayscale": ["",
|
|
2377
|
+
"backdrop-grayscale": ["", y, w, p]
|
|
2378
2378
|
}],
|
|
2379
2379
|
/**
|
|
2380
2380
|
* Backdrop Hue Rotate
|
|
2381
2381
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2382
2382
|
*/
|
|
2383
2383
|
"backdrop-hue-rotate": [{
|
|
2384
|
-
"backdrop-hue-rotate": [
|
|
2384
|
+
"backdrop-hue-rotate": [y, w, p]
|
|
2385
2385
|
}],
|
|
2386
2386
|
/**
|
|
2387
2387
|
* Backdrop Invert
|
|
2388
2388
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2389
2389
|
*/
|
|
2390
2390
|
"backdrop-invert": [{
|
|
2391
|
-
"backdrop-invert": ["",
|
|
2391
|
+
"backdrop-invert": ["", y, w, p]
|
|
2392
2392
|
}],
|
|
2393
2393
|
/**
|
|
2394
2394
|
* Backdrop Opacity
|
|
2395
2395
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2396
2396
|
*/
|
|
2397
2397
|
"backdrop-opacity": [{
|
|
2398
|
-
"backdrop-opacity": [
|
|
2398
|
+
"backdrop-opacity": [y, w, p]
|
|
2399
2399
|
}],
|
|
2400
2400
|
/**
|
|
2401
2401
|
* Backdrop Saturate
|
|
2402
2402
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2403
2403
|
*/
|
|
2404
2404
|
"backdrop-saturate": [{
|
|
2405
|
-
"backdrop-saturate": [
|
|
2405
|
+
"backdrop-saturate": [y, w, p]
|
|
2406
2406
|
}],
|
|
2407
2407
|
/**
|
|
2408
2408
|
* Backdrop Sepia
|
|
2409
2409
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2410
2410
|
*/
|
|
2411
2411
|
"backdrop-sepia": [{
|
|
2412
|
-
"backdrop-sepia": ["",
|
|
2412
|
+
"backdrop-sepia": ["", y, w, p]
|
|
2413
2413
|
}],
|
|
2414
2414
|
// --------------
|
|
2415
2415
|
// --- Tables ---
|
|
@@ -2464,7 +2464,7 @@ const ct = (s, r) => {
|
|
|
2464
2464
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2465
2465
|
*/
|
|
2466
2466
|
transition: [{
|
|
2467
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
2467
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", w, p]
|
|
2468
2468
|
}],
|
|
2469
2469
|
/**
|
|
2470
2470
|
* Transition Behavior
|
|
@@ -2478,28 +2478,28 @@ const ct = (s, r) => {
|
|
|
2478
2478
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2479
2479
|
*/
|
|
2480
2480
|
duration: [{
|
|
2481
|
-
duration: [
|
|
2481
|
+
duration: [y, "initial", w, p]
|
|
2482
2482
|
}],
|
|
2483
2483
|
/**
|
|
2484
2484
|
* Transition Timing Function
|
|
2485
2485
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2486
2486
|
*/
|
|
2487
2487
|
ease: [{
|
|
2488
|
-
ease: ["linear", "initial", b,
|
|
2488
|
+
ease: ["linear", "initial", b, w, p]
|
|
2489
2489
|
}],
|
|
2490
2490
|
/**
|
|
2491
2491
|
* Transition Delay
|
|
2492
2492
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2493
2493
|
*/
|
|
2494
2494
|
delay: [{
|
|
2495
|
-
delay: [
|
|
2495
|
+
delay: [y, w, p]
|
|
2496
2496
|
}],
|
|
2497
2497
|
/**
|
|
2498
2498
|
* Animation
|
|
2499
2499
|
* @see https://tailwindcss.com/docs/animation
|
|
2500
2500
|
*/
|
|
2501
2501
|
animate: [{
|
|
2502
|
-
animate: ["none", R,
|
|
2502
|
+
animate: ["none", R, w, p]
|
|
2503
2503
|
}],
|
|
2504
2504
|
// ------------------
|
|
2505
2505
|
// --- Transforms ---
|
|
@@ -2516,70 +2516,70 @@ const ct = (s, r) => {
|
|
|
2516
2516
|
* @see https://tailwindcss.com/docs/perspective
|
|
2517
2517
|
*/
|
|
2518
2518
|
perspective: [{
|
|
2519
|
-
perspective: [A,
|
|
2519
|
+
perspective: [A, w, p]
|
|
2520
2520
|
}],
|
|
2521
2521
|
/**
|
|
2522
2522
|
* Perspective Origin
|
|
2523
2523
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2524
2524
|
*/
|
|
2525
2525
|
"perspective-origin": [{
|
|
2526
|
-
"perspective-origin":
|
|
2526
|
+
"perspective-origin": k()
|
|
2527
2527
|
}],
|
|
2528
2528
|
/**
|
|
2529
2529
|
* Rotate
|
|
2530
2530
|
* @see https://tailwindcss.com/docs/rotate
|
|
2531
2531
|
*/
|
|
2532
2532
|
rotate: [{
|
|
2533
|
-
rotate:
|
|
2533
|
+
rotate: ee()
|
|
2534
2534
|
}],
|
|
2535
2535
|
/**
|
|
2536
2536
|
* Rotate X
|
|
2537
2537
|
* @see https://tailwindcss.com/docs/rotate
|
|
2538
2538
|
*/
|
|
2539
2539
|
"rotate-x": [{
|
|
2540
|
-
"rotate-x":
|
|
2540
|
+
"rotate-x": ee()
|
|
2541
2541
|
}],
|
|
2542
2542
|
/**
|
|
2543
2543
|
* Rotate Y
|
|
2544
2544
|
* @see https://tailwindcss.com/docs/rotate
|
|
2545
2545
|
*/
|
|
2546
2546
|
"rotate-y": [{
|
|
2547
|
-
"rotate-y":
|
|
2547
|
+
"rotate-y": ee()
|
|
2548
2548
|
}],
|
|
2549
2549
|
/**
|
|
2550
2550
|
* Rotate Z
|
|
2551
2551
|
* @see https://tailwindcss.com/docs/rotate
|
|
2552
2552
|
*/
|
|
2553
2553
|
"rotate-z": [{
|
|
2554
|
-
"rotate-z":
|
|
2554
|
+
"rotate-z": ee()
|
|
2555
2555
|
}],
|
|
2556
2556
|
/**
|
|
2557
2557
|
* Scale
|
|
2558
2558
|
* @see https://tailwindcss.com/docs/scale
|
|
2559
2559
|
*/
|
|
2560
2560
|
scale: [{
|
|
2561
|
-
scale:
|
|
2561
|
+
scale: ce()
|
|
2562
2562
|
}],
|
|
2563
2563
|
/**
|
|
2564
2564
|
* Scale X
|
|
2565
2565
|
* @see https://tailwindcss.com/docs/scale
|
|
2566
2566
|
*/
|
|
2567
2567
|
"scale-x": [{
|
|
2568
|
-
"scale-x":
|
|
2568
|
+
"scale-x": ce()
|
|
2569
2569
|
}],
|
|
2570
2570
|
/**
|
|
2571
2571
|
* Scale Y
|
|
2572
2572
|
* @see https://tailwindcss.com/docs/scale
|
|
2573
2573
|
*/
|
|
2574
2574
|
"scale-y": [{
|
|
2575
|
-
"scale-y":
|
|
2575
|
+
"scale-y": ce()
|
|
2576
2576
|
}],
|
|
2577
2577
|
/**
|
|
2578
2578
|
* Scale Z
|
|
2579
2579
|
* @see https://tailwindcss.com/docs/scale
|
|
2580
2580
|
*/
|
|
2581
2581
|
"scale-z": [{
|
|
2582
|
-
"scale-z":
|
|
2582
|
+
"scale-z": ce()
|
|
2583
2583
|
}],
|
|
2584
2584
|
/**
|
|
2585
2585
|
* Scale 3D
|
|
@@ -2612,14 +2612,14 @@ const ct = (s, r) => {
|
|
|
2612
2612
|
* @see https://tailwindcss.com/docs/transform
|
|
2613
2613
|
*/
|
|
2614
2614
|
transform: [{
|
|
2615
|
-
transform: [
|
|
2615
|
+
transform: [w, p, "", "none", "gpu", "cpu"]
|
|
2616
2616
|
}],
|
|
2617
2617
|
/**
|
|
2618
2618
|
* Transform Origin
|
|
2619
2619
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2620
2620
|
*/
|
|
2621
2621
|
"transform-origin": [{
|
|
2622
|
-
origin:
|
|
2622
|
+
origin: k()
|
|
2623
2623
|
}],
|
|
2624
2624
|
/**
|
|
2625
2625
|
* Transform Style
|
|
@@ -2697,7 +2697,7 @@ const ct = (s, r) => {
|
|
|
2697
2697
|
* @see https://tailwindcss.com/docs/cursor
|
|
2698
2698
|
*/
|
|
2699
2699
|
cursor: [{
|
|
2700
|
-
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",
|
|
2700
|
+
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", w, p]
|
|
2701
2701
|
}],
|
|
2702
2702
|
/**
|
|
2703
2703
|
* Field Sizing
|
|
@@ -2919,7 +2919,7 @@ const ct = (s, r) => {
|
|
|
2919
2919
|
* @see https://tailwindcss.com/docs/will-change
|
|
2920
2920
|
*/
|
|
2921
2921
|
"will-change": [{
|
|
2922
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2922
|
+
"will-change": ["auto", "scroll", "contents", "transform", w, p]
|
|
2923
2923
|
}],
|
|
2924
2924
|
// -----------
|
|
2925
2925
|
// --- SVG ---
|
|
@@ -2936,7 +2936,7 @@ const ct = (s, r) => {
|
|
|
2936
2936
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2937
2937
|
*/
|
|
2938
2938
|
"stroke-w": [{
|
|
2939
|
-
stroke: [
|
|
2939
|
+
stroke: [y, pe, ie, Ee]
|
|
2940
2940
|
}],
|
|
2941
2941
|
/**
|
|
2942
2942
|
* Stroke
|
|
@@ -3011,7 +3011,7 @@ const ct = (s, r) => {
|
|
|
3011
3011
|
},
|
|
3012
3012
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3013
3013
|
};
|
|
3014
|
-
},
|
|
3014
|
+
}, x = /* @__PURE__ */ At(Qt), et = {
|
|
3015
3015
|
Warning: (s, r, t) => s ? /* @__PURE__ */ e.jsxs(
|
|
3016
3016
|
"svg",
|
|
3017
3017
|
{
|
|
@@ -5063,17 +5063,17 @@ const ct = (s, r) => {
|
|
|
5063
5063
|
)
|
|
5064
5064
|
}
|
|
5065
5065
|
)
|
|
5066
|
-
},
|
|
5066
|
+
}, Cs = {
|
|
5067
5067
|
DEFAULT: "default",
|
|
5068
5068
|
OUTLINED: "outlined",
|
|
5069
5069
|
TEXT: "text",
|
|
5070
5070
|
UNSTYLED: "unstyled"
|
|
5071
|
-
},
|
|
5071
|
+
}, Ft = {
|
|
5072
5072
|
DEFAULT: "bg-button hover:bg-grey-800 disabled:bg-grey-100 active:bg-grey-900 disabled:text-grey-300 text-white",
|
|
5073
5073
|
OUTLINED: "bg-white hover:bg-grey-50 active:bg-[#e9e8ea] text-black border border-[1px] border-black disabled:bg-white disabled:text-grey-300 disabled:border-grey-300",
|
|
5074
5074
|
TEXT: "bg-transparent p-2 hover:bg-grey-500 hover:text-white [&_path]:hover:!fill-white disabled:text-grey-300",
|
|
5075
5075
|
UNSTYLED: ""
|
|
5076
|
-
},
|
|
5076
|
+
}, I = z(
|
|
5077
5077
|
({
|
|
5078
5078
|
label: s,
|
|
5079
5079
|
variant: r = "DEFAULT",
|
|
@@ -5084,49 +5084,49 @@ const ct = (s, r) => {
|
|
|
5084
5084
|
children: n,
|
|
5085
5085
|
disabled: o,
|
|
5086
5086
|
iconPosition: c = "leading",
|
|
5087
|
-
...
|
|
5088
|
-
},
|
|
5089
|
-
const
|
|
5087
|
+
...d
|
|
5088
|
+
}, h) => {
|
|
5089
|
+
const m = () => /* @__PURE__ */ e.jsx("span", { "data-testid": "icon-wrapper", children: et[a](t, o == !0, l || "black") });
|
|
5090
5090
|
return /* @__PURE__ */ e.jsxs(
|
|
5091
5091
|
"button",
|
|
5092
5092
|
{
|
|
5093
|
-
ref:
|
|
5093
|
+
ref: h,
|
|
5094
5094
|
disabled: o,
|
|
5095
|
-
className:
|
|
5095
|
+
className: x(
|
|
5096
5096
|
"rds-button gap-2 overflow-hidden rounded transition-all duration-100",
|
|
5097
5097
|
"flex items-center justify-center px-6 py-3.5",
|
|
5098
5098
|
"disabled:pointer-events-none disabled:cursor-not-allowed",
|
|
5099
|
-
|
|
5099
|
+
Ft[r],
|
|
5100
5100
|
i
|
|
5101
5101
|
),
|
|
5102
5102
|
"data-testid": "test-button",
|
|
5103
5103
|
type: "button",
|
|
5104
|
-
...
|
|
5104
|
+
...d,
|
|
5105
5105
|
children: [
|
|
5106
|
-
a && c === "leading" && /* @__PURE__ */ e.jsx(
|
|
5106
|
+
a && c === "leading" && /* @__PURE__ */ e.jsx(m, {}),
|
|
5107
5107
|
n ?? s,
|
|
5108
|
-
a && c === "trailing" && /* @__PURE__ */ e.jsx(
|
|
5108
|
+
a && c === "trailing" && /* @__PURE__ */ e.jsx(m, {})
|
|
5109
5109
|
]
|
|
5110
5110
|
}
|
|
5111
5111
|
);
|
|
5112
5112
|
}
|
|
5113
5113
|
);
|
|
5114
|
-
|
|
5115
|
-
const
|
|
5114
|
+
I.displayName = "Button";
|
|
5115
|
+
const ae = ({ message: s, showErrorStyles: r = !1, className: t }) => /* @__PURE__ */ e.jsx(
|
|
5116
5116
|
"p",
|
|
5117
5117
|
{
|
|
5118
|
-
className:
|
|
5118
|
+
className: x(
|
|
5119
5119
|
"w-full flex-grow bg-white text-left text-xs text-grey-700",
|
|
5120
5120
|
r && "text-error",
|
|
5121
5121
|
t
|
|
5122
5122
|
),
|
|
5123
5123
|
children: s
|
|
5124
5124
|
}
|
|
5125
|
-
),
|
|
5125
|
+
), Vs = {
|
|
5126
5126
|
DEFAULT: "primary"
|
|
5127
|
-
},
|
|
5127
|
+
}, Ms = {
|
|
5128
5128
|
DEFAULT: "bg-yellow-200 hover-bg-green-400 active-bg-green-500"
|
|
5129
|
-
}, we =
|
|
5129
|
+
}, we = z(
|
|
5130
5130
|
({
|
|
5131
5131
|
label: s,
|
|
5132
5132
|
disabled: r = !1,
|
|
@@ -5137,16 +5137,16 @@ const ie = ({ message: s, showErrorStyles: r = !1, className: t }) => /* @__PURE
|
|
|
5137
5137
|
value: n,
|
|
5138
5138
|
id: o,
|
|
5139
5139
|
readOnly: c,
|
|
5140
|
-
supportingText:
|
|
5141
|
-
className:
|
|
5142
|
-
...
|
|
5143
|
-
},
|
|
5144
|
-
const [j, H] = E(l || !1), [A,
|
|
5145
|
-
|
|
5140
|
+
supportingText: d,
|
|
5141
|
+
className: h,
|
|
5142
|
+
...m
|
|
5143
|
+
}, L) => {
|
|
5144
|
+
const [j, H] = E(l || !1), [A, u] = E(!1);
|
|
5145
|
+
S(() => {
|
|
5146
5146
|
H(l || !1);
|
|
5147
5147
|
}, [l]);
|
|
5148
5148
|
const b = t || i;
|
|
5149
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
5149
|
+
return /* @__PURE__ */ e.jsxs("div", { className: x("flex max-w-full flex-col", h), children: [
|
|
5150
5150
|
/* @__PURE__ */ e.jsxs(
|
|
5151
5151
|
"div",
|
|
5152
5152
|
{
|
|
@@ -5201,7 +5201,7 @@ const ie = ({ message: s, showErrorStyles: r = !1, className: t }) => /* @__PURE
|
|
|
5201
5201
|
"input",
|
|
5202
5202
|
{
|
|
5203
5203
|
type: "checkbox",
|
|
5204
|
-
ref:
|
|
5204
|
+
ref: L,
|
|
5205
5205
|
id: o,
|
|
5206
5206
|
value: n,
|
|
5207
5207
|
checked: j,
|
|
@@ -5210,39 +5210,39 @@ const ie = ({ message: s, showErrorStyles: r = !1, className: t }) => /* @__PURE
|
|
|
5210
5210
|
},
|
|
5211
5211
|
readOnly: c,
|
|
5212
5212
|
className: "absolute h-[1.2em] w-[1.2em] cursor-pointer opacity-0",
|
|
5213
|
-
onMouseEnter: () =>
|
|
5214
|
-
onMouseLeave: () =>
|
|
5213
|
+
onMouseEnter: () => u(!0),
|
|
5214
|
+
onMouseLeave: () => u(!1),
|
|
5215
5215
|
"data-testid": "test-checkbox-input",
|
|
5216
5216
|
required: i,
|
|
5217
5217
|
disabled: r,
|
|
5218
|
-
...
|
|
5218
|
+
...m
|
|
5219
5219
|
}
|
|
5220
5220
|
)
|
|
5221
5221
|
]
|
|
5222
5222
|
}
|
|
5223
5223
|
),
|
|
5224
|
-
|
|
5224
|
+
d && /* @__PURE__ */ e.jsx(ae, { message: d, showErrorStyles: b, className: "mt-1" })
|
|
5225
5225
|
] });
|
|
5226
5226
|
}
|
|
5227
5227
|
);
|
|
5228
5228
|
we.displayName = "Checkbox";
|
|
5229
|
-
const
|
|
5229
|
+
const Y = z(
|
|
5230
5230
|
({ name: s, isIconSolid: r = !1, isDisabled: t, iconColor: i, ...a }, l) => {
|
|
5231
|
-
const n =
|
|
5231
|
+
const n = et[s];
|
|
5232
5232
|
return n ? /* @__PURE__ */ e.jsx("span", { ref: l, ...a, "data-testid": "test-icon", children: n(r, !!t, i || "black") }) : null;
|
|
5233
5233
|
}
|
|
5234
5234
|
);
|
|
5235
|
-
|
|
5236
|
-
const
|
|
5235
|
+
Y.displayName = "Icon";
|
|
5236
|
+
const Hs = {
|
|
5237
5237
|
DEFAULT: "default"
|
|
5238
|
-
},
|
|
5238
|
+
}, As = {
|
|
5239
5239
|
DEFAULT: "bg-black hover:bg-black-800 active:bg-grey-900"
|
|
5240
|
-
},
|
|
5241
|
-
({ label: s, disabled: r, onClick: t, className: i,
|
|
5240
|
+
}, tt = z(
|
|
5241
|
+
({ label: s, disabled: r, onClick: t, className: i, hideIcon: a = !1, ...l }, n) => /* @__PURE__ */ e.jsxs(
|
|
5242
5242
|
"button",
|
|
5243
5243
|
{
|
|
5244
|
-
ref:
|
|
5245
|
-
className:
|
|
5244
|
+
ref: n,
|
|
5245
|
+
className: x(
|
|
5246
5246
|
"inline-block w-fit overflow-hidden rounded-lg py-1.5 pl-3 pr-2",
|
|
5247
5247
|
"relative flex items-center justify-center gap-2",
|
|
5248
5248
|
"group bg-brand-50 text-black transition-colors duration-300 hover:bg-brand-100",
|
|
@@ -5252,15 +5252,15 @@ const Ns = {
|
|
|
5252
5252
|
onClick: t,
|
|
5253
5253
|
disabled: r,
|
|
5254
5254
|
type: "button",
|
|
5255
|
-
...
|
|
5255
|
+
...l,
|
|
5256
5256
|
"data-testid": "test-filterchip-button",
|
|
5257
5257
|
children: [
|
|
5258
5258
|
/* @__PURE__ */ e.jsx("span", { className: "flex-shrink-0 flex-grow-0 text-center text-sm font-medium", children: s }),
|
|
5259
|
-
/* @__PURE__ */ e.jsx(
|
|
5260
|
-
|
|
5259
|
+
!a && /* @__PURE__ */ e.jsx(
|
|
5260
|
+
Y,
|
|
5261
5261
|
{
|
|
5262
5262
|
name: "Close",
|
|
5263
|
-
className:
|
|
5263
|
+
className: x(
|
|
5264
5264
|
"fill-black transition-all duration-300 group-hover:bg-brand-100 [&_svg]:h-[18px] [&_svg]:w-[18px]",
|
|
5265
5265
|
i ?? "fill-current"
|
|
5266
5266
|
)
|
|
@@ -5270,23 +5270,23 @@ const Ns = {
|
|
|
5270
5270
|
}
|
|
5271
5271
|
)
|
|
5272
5272
|
);
|
|
5273
|
-
|
|
5274
|
-
const
|
|
5273
|
+
tt.displayName = "FilterChip";
|
|
5274
|
+
const Rs = {
|
|
5275
5275
|
h1: "h1",
|
|
5276
5276
|
h2: "h2",
|
|
5277
5277
|
h3: "h3"
|
|
5278
|
-
},
|
|
5278
|
+
}, es = {
|
|
5279
5279
|
h1: "text-black rds-h1",
|
|
5280
5280
|
h2: "text-black rds-h2",
|
|
5281
5281
|
h3: "text-black rds-h3"
|
|
5282
|
-
},
|
|
5282
|
+
}, st = z(
|
|
5283
5283
|
({ variant: s = "h1", children: r, bold: t, label: i, className: a, ...l }, n) => {
|
|
5284
5284
|
const o = s === "h2" ? "h2" : s === "h3" ? "h3" : "h1";
|
|
5285
5285
|
return /* @__PURE__ */ e.jsx(
|
|
5286
5286
|
o,
|
|
5287
5287
|
{
|
|
5288
5288
|
ref: n,
|
|
5289
|
-
className:
|
|
5289
|
+
className: x(es[s], t && "font-semibold", a),
|
|
5290
5290
|
"data-testid": "test-heading",
|
|
5291
5291
|
...l,
|
|
5292
5292
|
children: r ?? i
|
|
@@ -5294,12 +5294,12 @@ const Vs = {
|
|
|
5294
5294
|
);
|
|
5295
5295
|
}
|
|
5296
5296
|
);
|
|
5297
|
-
|
|
5298
|
-
const
|
|
5297
|
+
st.displayName = "Heading";
|
|
5298
|
+
const Ps = {
|
|
5299
5299
|
DEFAULT: "default"
|
|
5300
|
-
},
|
|
5300
|
+
}, ts = {
|
|
5301
5301
|
DEFAULT: "flex flex-col justify-start items-start self-stretch flex-grow-0 flex-shrink-0 gap-2.5 transition-all duration-400 rounded border border-1 border-grey-800 hover:outline outline-offset-0 outline-1"
|
|
5302
|
-
},
|
|
5302
|
+
}, ss = z(
|
|
5303
5303
|
({
|
|
5304
5304
|
placeholder: s,
|
|
5305
5305
|
label: r,
|
|
@@ -5310,41 +5310,41 @@ const Ms = {
|
|
|
5310
5310
|
value: n,
|
|
5311
5311
|
name: o,
|
|
5312
5312
|
type: c,
|
|
5313
|
-
id:
|
|
5314
|
-
supportingText:
|
|
5315
|
-
required:
|
|
5316
|
-
className:
|
|
5313
|
+
id: d,
|
|
5314
|
+
supportingText: h,
|
|
5315
|
+
required: m,
|
|
5316
|
+
className: L,
|
|
5317
5317
|
resetValue: j,
|
|
5318
5318
|
...H
|
|
5319
5319
|
}, A) => {
|
|
5320
|
-
const [
|
|
5321
|
-
|
|
5320
|
+
const [u, b] = E(n || "");
|
|
5321
|
+
S(() => {
|
|
5322
5322
|
b(n || "");
|
|
5323
5323
|
}, [n]);
|
|
5324
5324
|
const R = (Z) => {
|
|
5325
|
-
const { value:
|
|
5326
|
-
b(
|
|
5325
|
+
const { value: O } = Z.target;
|
|
5326
|
+
b(O), l && l(Z);
|
|
5327
5327
|
}, V = () => {
|
|
5328
5328
|
b(""), j == null || j();
|
|
5329
|
-
}, [T,
|
|
5330
|
-
|
|
5331
|
-
}, W =
|
|
5329
|
+
}, [T, k] = E(!1), P = () => {
|
|
5330
|
+
k(!T);
|
|
5331
|
+
}, W = m || a, g = `h-[3.1em] w-full transition-colors px-4 py-2 rounded-md disabled:cursor-not-allowed disabled:pointer-events-none
|
|
5332
5332
|
${W ? "!border-error" : ""}
|
|
5333
|
-
${
|
|
5333
|
+
${ts[t]}`;
|
|
5334
5334
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs(
|
|
5335
5335
|
"div",
|
|
5336
5336
|
{
|
|
5337
|
-
className:
|
|
5337
|
+
className: x(
|
|
5338
5338
|
"relative flex h-14 w-full flex-shrink-0 flex-grow-0 flex-col items-start justify-start rounded-tl rounded-tr bg-white",
|
|
5339
5339
|
i && "pointer-events-none cursor-not-allowed opacity-[0.3]",
|
|
5340
|
-
|
|
5340
|
+
L
|
|
5341
5341
|
),
|
|
5342
5342
|
"data-testid": "test-input",
|
|
5343
5343
|
children: [
|
|
5344
5344
|
r && /* @__PURE__ */ e.jsx(
|
|
5345
5345
|
"label",
|
|
5346
5346
|
{
|
|
5347
|
-
className:
|
|
5347
|
+
className: x(
|
|
5348
5348
|
"absolute -top-2 left-2 flex items-center justify-start rounded bg-white px-1 text-left text-xs text-black",
|
|
5349
5349
|
W && "text-error"
|
|
5350
5350
|
),
|
|
@@ -5355,9 +5355,9 @@ const Ms = {
|
|
|
5355
5355
|
/* @__PURE__ */ e.jsx(
|
|
5356
5356
|
"input",
|
|
5357
5357
|
{
|
|
5358
|
-
id:
|
|
5358
|
+
id: d,
|
|
5359
5359
|
ref: A,
|
|
5360
|
-
value:
|
|
5360
|
+
value: u,
|
|
5361
5361
|
name: o,
|
|
5362
5362
|
type: T ? "text" : c,
|
|
5363
5363
|
onChange: R,
|
|
@@ -5365,7 +5365,7 @@ const Ms = {
|
|
|
5365
5365
|
className: g,
|
|
5366
5366
|
style: { WebkitAppearance: "none", appearance: "none" },
|
|
5367
5367
|
disabled: i,
|
|
5368
|
-
required:
|
|
5368
|
+
required: m,
|
|
5369
5369
|
"aria-invalid": a,
|
|
5370
5370
|
"data-testid": "test-input-input",
|
|
5371
5371
|
...H
|
|
@@ -5378,7 +5378,7 @@ const Ms = {
|
|
|
5378
5378
|
className: "absolute right-[0.08em] top-[0.1em] flex h-[2.8em] flex-shrink-0 flex-grow-0 items-center justify-center gap-2.5 rounded-r py-0 pl-2 pr-2",
|
|
5379
5379
|
children: [
|
|
5380
5380
|
c == "password" && /* @__PURE__ */ e.jsx(
|
|
5381
|
-
|
|
5381
|
+
I,
|
|
5382
5382
|
{
|
|
5383
5383
|
onClick: (Z) => {
|
|
5384
5384
|
Z.preventDefault(), P();
|
|
@@ -5390,7 +5390,7 @@ const Ms = {
|
|
|
5390
5390
|
}
|
|
5391
5391
|
),
|
|
5392
5392
|
a ? /* @__PURE__ */ e.jsx(
|
|
5393
|
-
|
|
5393
|
+
I,
|
|
5394
5394
|
{
|
|
5395
5395
|
iconName: "Error",
|
|
5396
5396
|
onClick: V,
|
|
@@ -5400,49 +5400,49 @@ const Ms = {
|
|
|
5400
5400
|
"data-testid": "button-clear"
|
|
5401
5401
|
}
|
|
5402
5402
|
) : /* @__PURE__ */ e.jsx(
|
|
5403
|
-
|
|
5403
|
+
I,
|
|
5404
5404
|
{
|
|
5405
5405
|
iconName: "Cancel",
|
|
5406
5406
|
onClick: V,
|
|
5407
5407
|
variant: "TEXT",
|
|
5408
|
-
className:
|
|
5408
|
+
className: x("hover:bg-transparent [&_path]:hover:!fill-black", c === "number" && "hidden"),
|
|
5409
5409
|
"data-testid": "button-clear"
|
|
5410
5410
|
}
|
|
5411
5411
|
)
|
|
5412
5412
|
]
|
|
5413
5413
|
}
|
|
5414
5414
|
),
|
|
5415
|
-
|
|
5415
|
+
h && /* @__PURE__ */ e.jsx(ae, { message: h, showErrorStyles: W, className: "ml-4 mt-1" })
|
|
5416
5416
|
]
|
|
5417
5417
|
}
|
|
5418
5418
|
) });
|
|
5419
5419
|
}
|
|
5420
5420
|
);
|
|
5421
|
-
|
|
5421
|
+
ss.displayName = "Input";
|
|
5422
5422
|
const me = (s) => /* @__PURE__ */ e.jsx(
|
|
5423
5423
|
"a",
|
|
5424
5424
|
{
|
|
5425
5425
|
...s,
|
|
5426
|
-
className:
|
|
5426
|
+
className: x(
|
|
5427
5427
|
"rds-copy-lg cursor-pointer underline-offset-2 hover:underline",
|
|
5428
5428
|
s.disabled && "pointer-events-none cursor-none opacity-50",
|
|
5429
5429
|
s.className
|
|
5430
5430
|
),
|
|
5431
5431
|
children: s.children
|
|
5432
5432
|
}
|
|
5433
|
-
),
|
|
5433
|
+
), rs = ({ className: s, classNameLoader: r }) => /* @__PURE__ */ e.jsx("div", { className: x("loader fixed left-0 top-0 z-[999] flex items-center justify-center", s), children: /* @__PURE__ */ e.jsx(
|
|
5434
5434
|
"div",
|
|
5435
5435
|
{
|
|
5436
|
-
className:
|
|
5436
|
+
className: x(
|
|
5437
5437
|
"spinner h-14 w-14 animate-spin rounded-full border-[0.4em] border-brand-grey-light border-r-brand",
|
|
5438
5438
|
r
|
|
5439
5439
|
)
|
|
5440
5440
|
}
|
|
5441
|
-
) }),
|
|
5441
|
+
) }), Zs = {
|
|
5442
5442
|
DEFAULT: "primary"
|
|
5443
|
-
},
|
|
5443
|
+
}, Ts = {
|
|
5444
5444
|
DEFAULT: "bg-yellow-200 hover-bg-green-400 active-bg-green-500"
|
|
5445
|
-
},
|
|
5445
|
+
}, rt = z(
|
|
5446
5446
|
({
|
|
5447
5447
|
label: s,
|
|
5448
5448
|
disabled: r = !1,
|
|
@@ -5453,17 +5453,17 @@ const me = (s) => /* @__PURE__ */ e.jsx(
|
|
|
5453
5453
|
id: n,
|
|
5454
5454
|
readOnly: o,
|
|
5455
5455
|
className: c,
|
|
5456
|
-
...
|
|
5457
|
-
},
|
|
5458
|
-
const [
|
|
5459
|
-
|
|
5460
|
-
|
|
5456
|
+
...d
|
|
5457
|
+
}, h) => {
|
|
5458
|
+
const [m, L] = E(l || !1), [j, H] = E(!1);
|
|
5459
|
+
S(() => {
|
|
5460
|
+
L(l || !1);
|
|
5461
5461
|
}, [l]);
|
|
5462
5462
|
const A = t || i;
|
|
5463
5463
|
return /* @__PURE__ */ e.jsxs(
|
|
5464
5464
|
"div",
|
|
5465
5465
|
{
|
|
5466
|
-
className:
|
|
5466
|
+
className: x(
|
|
5467
5467
|
"relative flex items-center justify-start gap-2",
|
|
5468
5468
|
r && "pointer-events-none opacity-50",
|
|
5469
5469
|
c
|
|
@@ -5478,7 +5478,7 @@ const me = (s) => /* @__PURE__ */ e.jsx(
|
|
|
5478
5478
|
viewBox: "0 0 20 20",
|
|
5479
5479
|
fill: "none",
|
|
5480
5480
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5481
|
-
className: `relative h-5 w-5 flex-shrink-0 flex-grow-0 ${
|
|
5481
|
+
className: `relative h-5 w-5 flex-shrink-0 flex-grow-0 ${m ? "text-black" : "text-white"}`,
|
|
5482
5482
|
preserveAspectRatio: "none",
|
|
5483
5483
|
children: [
|
|
5484
5484
|
/* @__PURE__ */ e.jsx(
|
|
@@ -5495,27 +5495,27 @@ const me = (s) => /* @__PURE__ */ e.jsx(
|
|
|
5495
5495
|
}
|
|
5496
5496
|
),
|
|
5497
5497
|
j && /* @__PURE__ */ e.jsx("circle", { cx: 10, cy: 10, r: 6, fill: "lightgrey", "data-testid": "circle" }),
|
|
5498
|
-
|
|
5498
|
+
m && /* @__PURE__ */ e.jsx("circle", { cx: 10, cy: 10, r: 6, fill: "black" })
|
|
5499
5499
|
]
|
|
5500
5500
|
}
|
|
5501
5501
|
),
|
|
5502
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
5502
|
+
/* @__PURE__ */ e.jsx("span", { className: x("text-left text-base text-black"), children: s }),
|
|
5503
5503
|
/* @__PURE__ */ e.jsx(
|
|
5504
5504
|
"input",
|
|
5505
5505
|
{
|
|
5506
5506
|
type: "checkbox",
|
|
5507
|
-
ref:
|
|
5507
|
+
ref: h,
|
|
5508
5508
|
id: n,
|
|
5509
|
-
checked:
|
|
5510
|
-
onChange: (
|
|
5511
|
-
|
|
5509
|
+
checked: m,
|
|
5510
|
+
onChange: (u) => {
|
|
5511
|
+
L(u.target.checked), a == null || a(u);
|
|
5512
5512
|
},
|
|
5513
5513
|
readOnly: o,
|
|
5514
5514
|
className: "absolute h-[1.2em] w-[1.2em] cursor-pointer opacity-0",
|
|
5515
5515
|
onMouseEnter: () => H(!0),
|
|
5516
5516
|
onMouseLeave: () => H(!1),
|
|
5517
5517
|
"data-testid": "test-radio-input",
|
|
5518
|
-
...
|
|
5518
|
+
...d
|
|
5519
5519
|
}
|
|
5520
5520
|
)
|
|
5521
5521
|
]
|
|
@@ -5523,11 +5523,11 @@ const me = (s) => /* @__PURE__ */ e.jsx(
|
|
|
5523
5523
|
);
|
|
5524
5524
|
}
|
|
5525
5525
|
);
|
|
5526
|
-
|
|
5527
|
-
const
|
|
5526
|
+
rt.displayName = "Radio";
|
|
5527
|
+
const Es = {
|
|
5528
5528
|
DEFAULT: "default",
|
|
5529
5529
|
GREY: "grey"
|
|
5530
|
-
},
|
|
5530
|
+
}, it = z(
|
|
5531
5531
|
({
|
|
5532
5532
|
option: s,
|
|
5533
5533
|
isActive: r,
|
|
@@ -5538,17 +5538,17 @@ const Rs = {
|
|
|
5538
5538
|
checkboxPosition: n = "leading",
|
|
5539
5539
|
showAmount: o,
|
|
5540
5540
|
...c
|
|
5541
|
-
},
|
|
5542
|
-
const [
|
|
5543
|
-
|
|
5544
|
-
r !== void 0 &&
|
|
5541
|
+
}, d) => {
|
|
5542
|
+
const [h, m] = E(!1);
|
|
5543
|
+
S(() => {
|
|
5544
|
+
r !== void 0 && m(r);
|
|
5545
5545
|
}, [r]);
|
|
5546
|
-
const
|
|
5546
|
+
const L = a && n === "leading", j = a && n === "trailing";
|
|
5547
5547
|
return /* @__PURE__ */ e.jsx(
|
|
5548
5548
|
"li",
|
|
5549
5549
|
{
|
|
5550
|
-
ref:
|
|
5551
|
-
className:
|
|
5550
|
+
ref: d,
|
|
5551
|
+
className: x(
|
|
5552
5552
|
"w-full cursor-pointer list-none border-b border-brand-50",
|
|
5553
5553
|
"delay-10 transition-all duration-200 hover:bg-brand-50",
|
|
5554
5554
|
"last:rounded-b last:border-transparent",
|
|
@@ -5564,23 +5564,23 @@ const Rs = {
|
|
|
5564
5564
|
children: /* @__PURE__ */ e.jsxs(
|
|
5565
5565
|
"button",
|
|
5566
5566
|
{
|
|
5567
|
-
className:
|
|
5567
|
+
className: x("flex w-full items-center px-4 py-2 text-left", j && "justify-between"),
|
|
5568
5568
|
onClick: () => {
|
|
5569
|
-
i(s),
|
|
5569
|
+
i(s), m(!h);
|
|
5570
5570
|
},
|
|
5571
5571
|
type: "button",
|
|
5572
5572
|
children: [
|
|
5573
|
-
|
|
5573
|
+
L && /* @__PURE__ */ e.jsx(
|
|
5574
5574
|
we,
|
|
5575
5575
|
{
|
|
5576
5576
|
id: "checkbox-" + s.id,
|
|
5577
|
-
checked:
|
|
5577
|
+
checked: h,
|
|
5578
5578
|
onChange: () => {
|
|
5579
|
-
i(s),
|
|
5579
|
+
i(s), m(!h);
|
|
5580
5580
|
}
|
|
5581
5581
|
}
|
|
5582
5582
|
),
|
|
5583
|
-
/* @__PURE__ */ e.jsxs("span", { className:
|
|
5583
|
+
/* @__PURE__ */ e.jsxs("span", { className: x(L && "ml-4"), children: [
|
|
5584
5584
|
/* @__PURE__ */ e.jsx("span", { children: s.name }),
|
|
5585
5585
|
o && s.amountResults && /* @__PURE__ */ e.jsxs("span", { className: "ml-4", children: [
|
|
5586
5586
|
"(",
|
|
@@ -5592,9 +5592,9 @@ const Rs = {
|
|
|
5592
5592
|
we,
|
|
5593
5593
|
{
|
|
5594
5594
|
id: "checkbox-" + s.id,
|
|
5595
|
-
checked:
|
|
5595
|
+
checked: h,
|
|
5596
5596
|
onChange: () => {
|
|
5597
|
-
i(s),
|
|
5597
|
+
i(s), m(!h);
|
|
5598
5598
|
}
|
|
5599
5599
|
}
|
|
5600
5600
|
)
|
|
@@ -5605,14 +5605,14 @@ const Rs = {
|
|
|
5605
5605
|
);
|
|
5606
5606
|
}
|
|
5607
5607
|
);
|
|
5608
|
-
|
|
5609
|
-
const
|
|
5608
|
+
it.displayName = "SelectItem";
|
|
5609
|
+
const Bs = ({ className: s }) => /* @__PURE__ */ e.jsx(
|
|
5610
5610
|
"div",
|
|
5611
5611
|
{
|
|
5612
|
-
className:
|
|
5612
|
+
className: x("h- animate-pulse rounded bg-gray-300 dark:bg-gray-500", s),
|
|
5613
5613
|
"data-testid": "test-skeleton"
|
|
5614
5614
|
}
|
|
5615
|
-
),
|
|
5615
|
+
), Ws = ({
|
|
5616
5616
|
min: s,
|
|
5617
5617
|
max: r,
|
|
5618
5618
|
step: t = 1,
|
|
@@ -5623,18 +5623,18 @@ const Ps = ({ className: s }) => /* @__PURE__ */ e.jsx(
|
|
|
5623
5623
|
thumbColor: o = "bg-white",
|
|
5624
5624
|
percentage: c
|
|
5625
5625
|
}) => {
|
|
5626
|
-
const [
|
|
5627
|
-
const j = Number(
|
|
5628
|
-
|
|
5626
|
+
const [d, h] = E(i), m = (L) => {
|
|
5627
|
+
const j = Number(L.target.value);
|
|
5628
|
+
h(j), l == null || l(j);
|
|
5629
5629
|
};
|
|
5630
5630
|
return /* @__PURE__ */ e.jsxs("div", { className: "relative flex h-[1.5em] w-full items-center", children: [
|
|
5631
5631
|
/* @__PURE__ */ e.jsx("div", { className: "absolute h-2 w-full rounded-lg border border-black" }),
|
|
5632
5632
|
/* @__PURE__ */ e.jsx(
|
|
5633
5633
|
"div",
|
|
5634
5634
|
{
|
|
5635
|
-
className:
|
|
5635
|
+
className: x("absolute h-2 rounded-lg border border-black transition-all duration-0", n),
|
|
5636
5636
|
style: {
|
|
5637
|
-
width: `${(
|
|
5637
|
+
width: `${(d - s) / (r - s) * 100}%`
|
|
5638
5638
|
},
|
|
5639
5639
|
"data-testid": "test-track"
|
|
5640
5640
|
}
|
|
@@ -5646,10 +5646,10 @@ const Ps = ({ className: s }) => /* @__PURE__ */ e.jsx(
|
|
|
5646
5646
|
min: s,
|
|
5647
5647
|
max: r,
|
|
5648
5648
|
step: t,
|
|
5649
|
-
value:
|
|
5650
|
-
onChange:
|
|
5649
|
+
value: d,
|
|
5650
|
+
onChange: m,
|
|
5651
5651
|
disabled: a,
|
|
5652
|
-
className:
|
|
5652
|
+
className: x(
|
|
5653
5653
|
"relative z-20 h-2 w-full cursor-pointer appearance-none rounded-lg bg-transparent",
|
|
5654
5654
|
"hover:brightness-90 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50"
|
|
5655
5655
|
),
|
|
@@ -5663,12 +5663,12 @@ const Ps = ({ className: s }) => /* @__PURE__ */ e.jsx(
|
|
|
5663
5663
|
/* @__PURE__ */ e.jsx(
|
|
5664
5664
|
"div",
|
|
5665
5665
|
{
|
|
5666
|
-
className:
|
|
5666
|
+
className: x(
|
|
5667
5667
|
"absolute top-1/2 h-[1.3em] w-[1.3em] rounded-full border border-black bg-red-500 shadow-md transition-transform duration-200 ease-in-out",
|
|
5668
5668
|
o
|
|
5669
5669
|
),
|
|
5670
5670
|
style: {
|
|
5671
|
-
left: `${(
|
|
5671
|
+
left: `${(d - (s - 1)) / (r - (s - 2)) * 100}%`,
|
|
5672
5672
|
transform: "translate(-50%, -50%)"
|
|
5673
5673
|
},
|
|
5674
5674
|
"data-testid": "test-thumb"
|
|
@@ -5679,18 +5679,18 @@ const Ps = ({ className: s }) => /* @__PURE__ */ e.jsx(
|
|
|
5679
5679
|
{
|
|
5680
5680
|
className: "absolute text-sm font-medium text-black",
|
|
5681
5681
|
style: {
|
|
5682
|
-
left: `${(
|
|
5682
|
+
left: `${(d - (s - 1)) / (r - (s - 2)) * 100}%`,
|
|
5683
5683
|
transform: "translate(-50%, -150%)",
|
|
5684
5684
|
top: "1em"
|
|
5685
5685
|
},
|
|
5686
5686
|
children: [
|
|
5687
|
-
Math.round(
|
|
5687
|
+
Math.round(d),
|
|
5688
5688
|
"%"
|
|
5689
5689
|
]
|
|
5690
5690
|
}
|
|
5691
5691
|
)
|
|
5692
5692
|
] });
|
|
5693
|
-
},
|
|
5693
|
+
}, is = ({
|
|
5694
5694
|
label: s,
|
|
5695
5695
|
active: r,
|
|
5696
5696
|
setIsActive: t,
|
|
@@ -5705,7 +5705,7 @@ const Ps = ({ className: s }) => /* @__PURE__ */ e.jsx(
|
|
|
5705
5705
|
c,
|
|
5706
5706
|
{
|
|
5707
5707
|
onClick: t,
|
|
5708
|
-
className:
|
|
5708
|
+
className: x(
|
|
5709
5709
|
"border-b-2 border-b-brand-grey-dark px-4 py-2 text-brand-grey-dark",
|
|
5710
5710
|
r && "border-b-brand font-semibold text-brand",
|
|
5711
5711
|
n && "border-b-brand",
|
|
@@ -5718,26 +5718,26 @@ const Ps = ({ className: s }) => /* @__PURE__ */ e.jsx(
|
|
|
5718
5718
|
children: s
|
|
5719
5719
|
}
|
|
5720
5720
|
);
|
|
5721
|
-
},
|
|
5721
|
+
}, Ss = {
|
|
5722
5722
|
DEFAULT: "default",
|
|
5723
5723
|
LARGE: "large",
|
|
5724
5724
|
SMALL: "small",
|
|
5725
5725
|
BUTTON: "button",
|
|
5726
5726
|
TAB: "tab"
|
|
5727
|
-
},
|
|
5727
|
+
}, ls = {
|
|
5728
5728
|
DEFAULT: "rds-copy",
|
|
5729
5729
|
SMALL: "rds-copy-small",
|
|
5730
5730
|
LARGE: "rds-copy-large",
|
|
5731
5731
|
BUTTON: "rds-button",
|
|
5732
5732
|
TAB: "rds-tab"
|
|
5733
|
-
},
|
|
5733
|
+
}, Ne = z(
|
|
5734
5734
|
({ isDisabled: s = !1, text: r, children: t, bold: i, className: a, title: l, variant: n = "DEFAULT" }, o) => /* @__PURE__ */ e.jsx(
|
|
5735
5735
|
"p",
|
|
5736
5736
|
{
|
|
5737
5737
|
ref: o,
|
|
5738
5738
|
title: l,
|
|
5739
|
-
className:
|
|
5740
|
-
|
|
5739
|
+
className: x(
|
|
5740
|
+
ls[n],
|
|
5741
5741
|
i && "font-semibold",
|
|
5742
5742
|
s && "pointer-events-none cursor-not-allowed opacity-[0.3]",
|
|
5743
5743
|
a
|
|
@@ -5747,12 +5747,12 @@ const Ps = ({ className: s }) => /* @__PURE__ */ e.jsx(
|
|
|
5747
5747
|
}
|
|
5748
5748
|
)
|
|
5749
5749
|
);
|
|
5750
|
-
|
|
5751
|
-
const
|
|
5750
|
+
Ne.displayName = "Text";
|
|
5751
|
+
const Is = {
|
|
5752
5752
|
DEFAULT: "default"
|
|
5753
|
-
},
|
|
5753
|
+
}, as = {
|
|
5754
5754
|
DEFAULT: "flex flex-col justify-start items-start self-stretch flex-grow-0 flex-shrink-0 gap-2.5 transition-all duration-400 rounded border border-1 border-grey-800 hover:outline outline-offset-0 outline-1"
|
|
5755
|
-
},
|
|
5755
|
+
}, ns = z(
|
|
5756
5756
|
({
|
|
5757
5757
|
value: s,
|
|
5758
5758
|
placeholder: r,
|
|
@@ -5763,13 +5763,13 @@ const Es = {
|
|
|
5763
5763
|
defaultValue: n,
|
|
5764
5764
|
required: o,
|
|
5765
5765
|
onChange: c,
|
|
5766
|
-
supportingText:
|
|
5767
|
-
id:
|
|
5768
|
-
...
|
|
5769
|
-
},
|
|
5766
|
+
supportingText: d,
|
|
5767
|
+
id: h,
|
|
5768
|
+
...m
|
|
5769
|
+
}, L) => {
|
|
5770
5770
|
const j = `h-[3.1em] w-full transition-colors px-4 py-3 rounded-md
|
|
5771
5771
|
${o || l ? "border-error" : ""}
|
|
5772
|
-
${
|
|
5772
|
+
${as[i]} ${a ? "cursor-not-allowed pointer-events-none" : ""} ${m.rows !== void 0 && "h-fit"}`;
|
|
5773
5773
|
return /* @__PURE__ */ e.jsxs(
|
|
5774
5774
|
"div",
|
|
5775
5775
|
{
|
|
@@ -5787,8 +5787,8 @@ const Es = {
|
|
|
5787
5787
|
/* @__PURE__ */ e.jsx(
|
|
5788
5788
|
"textarea",
|
|
5789
5789
|
{
|
|
5790
|
-
id:
|
|
5791
|
-
ref:
|
|
5790
|
+
id: h,
|
|
5791
|
+
ref: L,
|
|
5792
5792
|
value: s,
|
|
5793
5793
|
defaultValue: n,
|
|
5794
5794
|
placeholder: r,
|
|
@@ -5797,31 +5797,31 @@ const Es = {
|
|
|
5797
5797
|
disabled: a,
|
|
5798
5798
|
required: o,
|
|
5799
5799
|
"data-testid": "test-textarea-input",
|
|
5800
|
-
...
|
|
5800
|
+
...m
|
|
5801
5801
|
}
|
|
5802
5802
|
),
|
|
5803
|
-
|
|
5803
|
+
d && /* @__PURE__ */ e.jsx(ae, { message: d, className: "ml-4 mt-1", showErrorStyles: o || l })
|
|
5804
5804
|
]
|
|
5805
5805
|
}
|
|
5806
5806
|
);
|
|
5807
5807
|
}
|
|
5808
5808
|
);
|
|
5809
|
-
|
|
5810
|
-
const
|
|
5809
|
+
ns.displayName = "Textarea";
|
|
5810
|
+
const zs = {
|
|
5811
5811
|
DEFAULT: "default"
|
|
5812
|
-
},
|
|
5812
|
+
}, Os = {
|
|
5813
5813
|
DEFAULT: "bg-black hover:bg-black-800 active:bg-grey-900"
|
|
5814
|
-
},
|
|
5814
|
+
}, Us = ({ options: s, allowMultiple: r = !1, className: t }) => {
|
|
5815
5815
|
const [i, a] = E(void 0), [l, n] = E([]), o = (c) => {
|
|
5816
|
-
r ? l.includes(c) ? n(l.filter((
|
|
5816
|
+
r ? l.includes(c) ? n(l.filter((d) => d !== c)) : n([...l, c]) : a((d) => d === c ? void 0 : c);
|
|
5817
5817
|
};
|
|
5818
5818
|
return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsx(
|
|
5819
5819
|
"div",
|
|
5820
5820
|
{
|
|
5821
|
-
className:
|
|
5821
|
+
className: x("w-full overflow-hidden rounded border border-brand-black", t),
|
|
5822
5822
|
"data-testid": "test-accordion",
|
|
5823
|
-
children: s.map((c,
|
|
5824
|
-
const
|
|
5823
|
+
children: s.map((c, d) => {
|
|
5824
|
+
const h = i === d || l.includes(d);
|
|
5825
5825
|
return /* @__PURE__ */ e.jsxs(
|
|
5826
5826
|
"div",
|
|
5827
5827
|
{
|
|
@@ -5831,20 +5831,20 @@ const Bs = {
|
|
|
5831
5831
|
"button",
|
|
5832
5832
|
{
|
|
5833
5833
|
className: "flex h-[2.5em] w-full justify-between border-b bg-brand-white px-4",
|
|
5834
|
-
onClick: () => o(
|
|
5835
|
-
"data-testid": "test-accordion-header-" +
|
|
5834
|
+
onClick: () => o(d),
|
|
5835
|
+
"data-testid": "test-accordion-header-" + d,
|
|
5836
5836
|
type: "button",
|
|
5837
5837
|
children: [
|
|
5838
5838
|
c.title,
|
|
5839
|
-
|
|
5839
|
+
h ? /* @__PURE__ */ e.jsx(Y, { name: "ExpandLess" }) : /* @__PURE__ */ e.jsx(Y, { name: "ExpandMore" })
|
|
5840
5840
|
]
|
|
5841
5841
|
}
|
|
5842
5842
|
),
|
|
5843
5843
|
/* @__PURE__ */ e.jsx(
|
|
5844
5844
|
"div",
|
|
5845
5845
|
{
|
|
5846
|
-
className: `h-fit transition-all duration-500 ${
|
|
5847
|
-
"data-testid": "test-accordion-body-" +
|
|
5846
|
+
className: `h-fit transition-all duration-500 ${h ? "max-h-[15em] overflow-y-scroll" : "max-h-0 overflow-hidden"}`,
|
|
5847
|
+
"data-testid": "test-accordion-body-" + d,
|
|
5848
5848
|
children: c.content ? (
|
|
5849
5849
|
// if your classNames aren't working, change it to "class" because we do not have jsx-Elements here but normal html-Elements
|
|
5850
5850
|
/* @__PURE__ */ e.jsx("div", { className: "p-4", children: c.content })
|
|
@@ -5853,17 +5853,17 @@ const Bs = {
|
|
|
5853
5853
|
)
|
|
5854
5854
|
]
|
|
5855
5855
|
},
|
|
5856
|
-
"accordion-" +
|
|
5856
|
+
"accordion-" + d
|
|
5857
5857
|
);
|
|
5858
5858
|
})
|
|
5859
5859
|
}
|
|
5860
5860
|
) });
|
|
5861
|
-
},
|
|
5862
|
-
/* @__PURE__ */ e.jsx(me, { ...i, className:
|
|
5863
|
-
a < s.length - 1 && /* @__PURE__ */ e.jsx(
|
|
5864
|
-
] }, "breadcrumb-" + i.label)) }),
|
|
5865
|
-
const [a, l] = E(!1), n =
|
|
5866
|
-
|
|
5861
|
+
}, cs = ({ links: s, variant: r = "dark", className: t }) => /* @__PURE__ */ e.jsx("ol", { className: x("flex gap-2", t), "data-testid": "test-breadcrumb", children: s.map((i, a) => /* @__PURE__ */ e.jsxs("li", { className: "flex items-center gap-2", children: [
|
|
5862
|
+
/* @__PURE__ */ e.jsx(me, { ...i, className: x("text-sm", r === "light" ? "text-white" : "text-black"), children: i.label }),
|
|
5863
|
+
a < s.length - 1 && /* @__PURE__ */ e.jsx(Y, { name: "KeyboardArrowRight", iconColor: r === "light" ? "white" : "black" })
|
|
5864
|
+
] }, "breadcrumb-" + i.label)) }), os = ({ title: s, links: r, className: t, variant: i = "dark" }) => {
|
|
5865
|
+
const [a, l] = E(!1), n = se(null);
|
|
5866
|
+
S(() => {
|
|
5867
5867
|
const c = () => {
|
|
5868
5868
|
l(!1);
|
|
5869
5869
|
};
|
|
@@ -5884,16 +5884,16 @@ const Bs = {
|
|
|
5884
5884
|
onMouseEnter: () => {
|
|
5885
5885
|
l(!0);
|
|
5886
5886
|
},
|
|
5887
|
-
className:
|
|
5887
|
+
className: x("rds-copy-lg flex text-white", i === "dark" && "text-black"),
|
|
5888
5888
|
type: "button",
|
|
5889
5889
|
children: [
|
|
5890
5890
|
s,
|
|
5891
5891
|
/* @__PURE__ */ e.jsx(
|
|
5892
|
-
|
|
5892
|
+
Y,
|
|
5893
5893
|
{
|
|
5894
5894
|
name: "ExpandMore",
|
|
5895
5895
|
iconColor: i === "dark" ? "fill-black" : "fill-white",
|
|
5896
|
-
className:
|
|
5896
|
+
className: x(a && "rotate-180 duration-300")
|
|
5897
5897
|
}
|
|
5898
5898
|
)
|
|
5899
5899
|
]
|
|
@@ -5902,12 +5902,12 @@ const Bs = {
|
|
|
5902
5902
|
/* @__PURE__ */ e.jsx(
|
|
5903
5903
|
"div",
|
|
5904
5904
|
{
|
|
5905
|
-
className:
|
|
5905
|
+
className: x(
|
|
5906
5906
|
"absolute top-full z-10 mt-4 h-fit w-fit min-w-36 rounded-lg transition-all duration-500",
|
|
5907
5907
|
a ? "max-h-96 opacity-100" : "max-h-0 overflow-hidden opacity-0",
|
|
5908
5908
|
t
|
|
5909
5909
|
),
|
|
5910
|
-
children: /* @__PURE__ */ e.jsx("ul", { ref: n, onMouseLeave: o, children: r.map((c,
|
|
5910
|
+
children: /* @__PURE__ */ e.jsx("ul", { ref: n, onMouseLeave: o, children: r.map((c, d) => /* @__PURE__ */ e.jsx(
|
|
5911
5911
|
"li",
|
|
5912
5912
|
{
|
|
5913
5913
|
className: "px-4 py-2 transition-all duration-150 first:rounded-t-lg last:rounded-b-lg hover:backdrop-brightness-75",
|
|
@@ -5915,7 +5915,7 @@ const Bs = {
|
|
|
5915
5915
|
me,
|
|
5916
5916
|
{
|
|
5917
5917
|
href: c.href,
|
|
5918
|
-
className:
|
|
5918
|
+
className: x(
|
|
5919
5919
|
i === "dark" ? "text-black" : "text-white",
|
|
5920
5920
|
c.active && "underline underline-offset-8"
|
|
5921
5921
|
),
|
|
@@ -5923,12 +5923,12 @@ const Bs = {
|
|
|
5923
5923
|
}
|
|
5924
5924
|
)
|
|
5925
5925
|
},
|
|
5926
|
-
s +
|
|
5926
|
+
s + d
|
|
5927
5927
|
)) })
|
|
5928
5928
|
}
|
|
5929
5929
|
)
|
|
5930
5930
|
] });
|
|
5931
|
-
},
|
|
5931
|
+
}, ds = z(
|
|
5932
5932
|
({
|
|
5933
5933
|
options: s,
|
|
5934
5934
|
selectedOption: r,
|
|
@@ -5939,23 +5939,23 @@ const Bs = {
|
|
|
5939
5939
|
hasError: n = !1,
|
|
5940
5940
|
placeholder: o = "Auswählen",
|
|
5941
5941
|
showSearchField: c = !1,
|
|
5942
|
-
searchFieldPlaceholder:
|
|
5943
|
-
className:
|
|
5944
|
-
errorMessage:
|
|
5945
|
-
clearSearchValue:
|
|
5942
|
+
searchFieldPlaceholder: d = "Optionen durchsuchen",
|
|
5943
|
+
className: h,
|
|
5944
|
+
errorMessage: m,
|
|
5945
|
+
clearSearchValue: L = !1,
|
|
5946
5946
|
classNameWrapper: j,
|
|
5947
5947
|
onSearchEnter: H
|
|
5948
5948
|
}, A) => {
|
|
5949
|
-
const [
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
}, [
|
|
5949
|
+
const [u, b] = E("");
|
|
5950
|
+
S(() => {
|
|
5951
|
+
L && u.length > 0 && b("");
|
|
5952
|
+
}, [L]);
|
|
5953
5953
|
const R = s.find((V) => V.id === r);
|
|
5954
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
5954
|
+
return /* @__PURE__ */ e.jsxs("div", { className: x("relative w-fit", j), children: [
|
|
5955
5955
|
/* @__PURE__ */ e.jsx(
|
|
5956
5956
|
"label",
|
|
5957
5957
|
{
|
|
5958
|
-
className:
|
|
5958
|
+
className: x(
|
|
5959
5959
|
"absolute -top-2 left-3 rounded bg-white px-1 text-xs text-black",
|
|
5960
5960
|
n && "text-error"
|
|
5961
5961
|
),
|
|
@@ -5968,10 +5968,10 @@ const Bs = {
|
|
|
5968
5968
|
"select",
|
|
5969
5969
|
{
|
|
5970
5970
|
id: "basic-select-" + i,
|
|
5971
|
-
className:
|
|
5971
|
+
className: x(
|
|
5972
5972
|
"rds-select bg-white disabled:bg-grey-100",
|
|
5973
5973
|
c && "[&::picker(select)]:pt-10",
|
|
5974
|
-
|
|
5974
|
+
h
|
|
5975
5975
|
),
|
|
5976
5976
|
value: typeof r == "string" ? r : r == null ? void 0 : r.id,
|
|
5977
5977
|
onChange: (V) => t(V.target.value),
|
|
@@ -5982,18 +5982,18 @@ const Bs = {
|
|
|
5982
5982
|
"input",
|
|
5983
5983
|
{
|
|
5984
5984
|
type: "text",
|
|
5985
|
-
value:
|
|
5985
|
+
value: u,
|
|
5986
5986
|
onChange: (V) => b == null ? void 0 : b(V.target.value),
|
|
5987
5987
|
onBlur: () => H == null ? void 0 : H(),
|
|
5988
|
-
className:
|
|
5988
|
+
className: x(
|
|
5989
5989
|
"pointer-events-none absolute top-0 z-[10] h-0 w-full rounded-t border bg-white p-2 opacity-0 shadow-sm transition-all focus:outline-none",
|
|
5990
5990
|
"pointer-events-auto h-fit opacity-100",
|
|
5991
5991
|
a && "hidden"
|
|
5992
5992
|
),
|
|
5993
|
-
placeholder:
|
|
5993
|
+
placeholder: d
|
|
5994
5994
|
}
|
|
5995
5995
|
),
|
|
5996
|
-
s.filter((V) => V.name.includes(
|
|
5996
|
+
s.filter((V) => V.name.includes(u)).map((V) => /* @__PURE__ */ e.jsxs("option", { value: V.id, className: x(l == null ? void 0 : l.className), children: [
|
|
5997
5997
|
/* @__PURE__ */ e.jsx(
|
|
5998
5998
|
we,
|
|
5999
5999
|
{
|
|
@@ -6007,37 +6007,37 @@ const Bs = {
|
|
|
6007
6007
|
]
|
|
6008
6008
|
}
|
|
6009
6009
|
),
|
|
6010
|
-
|
|
6010
|
+
m && /* @__PURE__ */ e.jsx(ae, { message: m, showErrorStyles: !0 })
|
|
6011
6011
|
] });
|
|
6012
6012
|
}
|
|
6013
6013
|
);
|
|
6014
|
-
|
|
6015
|
-
const
|
|
6016
|
-
const [i, a] = E(!1), l =
|
|
6017
|
-
|
|
6018
|
-
const
|
|
6014
|
+
ds.displayName = "HTMLSelect";
|
|
6015
|
+
const hs = ({ navigation: s, className: r, classNameDropdown: t }) => {
|
|
6016
|
+
const [i, a] = E(!1), l = se(null), [n, o] = E(void 0);
|
|
6017
|
+
S(() => {
|
|
6018
|
+
const h = () => {
|
|
6019
6019
|
a(!1);
|
|
6020
6020
|
};
|
|
6021
|
-
return l.current && l.current.addEventListener("mouseleave",
|
|
6022
|
-
l.current && l.current.removeEventListener("mouseleave",
|
|
6021
|
+
return l.current && l.current.addEventListener("mouseleave", h), () => {
|
|
6022
|
+
l.current && l.current.removeEventListener("mouseleave", h);
|
|
6023
6023
|
};
|
|
6024
6024
|
}, []);
|
|
6025
6025
|
const c = () => {
|
|
6026
6026
|
a(!1);
|
|
6027
|
-
},
|
|
6028
|
-
return /* @__PURE__ */ e.jsxs("div", { className:
|
|
6029
|
-
/* @__PURE__ */ e.jsx("button", { onClick: () => a(!i), type: "button", children: /* @__PURE__ */ e.jsx(
|
|
6027
|
+
}, d = "py-2 last:pb-0";
|
|
6028
|
+
return /* @__PURE__ */ e.jsxs("div", { className: x("flex items-center lg:hidden", r), children: [
|
|
6029
|
+
/* @__PURE__ */ e.jsx("button", { onClick: () => a(!i), type: "button", children: /* @__PURE__ */ e.jsx(Y, { name: "Menu", iconColor: "fill-white", className: "block [&_svg]:h-8 [&_svg]:w-8" }) }),
|
|
6030
6030
|
/* @__PURE__ */ e.jsx(
|
|
6031
6031
|
"div",
|
|
6032
6032
|
{
|
|
6033
|
-
className:
|
|
6033
|
+
className: x(
|
|
6034
6034
|
"absolute right-0 top-[100%] h-fit w-fit min-w-48 rounded-lg rounded-tr-none p-4 transition-all duration-500",
|
|
6035
6035
|
i ? "max-h-96 opacity-100" : "max-h-0 overflow-hidden opacity-0",
|
|
6036
6036
|
t
|
|
6037
6037
|
),
|
|
6038
6038
|
children: /* @__PURE__ */ e.jsx("ul", { ref: l, onMouseLeave: c, children: n ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
6039
6039
|
/* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx(
|
|
6040
|
-
|
|
6040
|
+
I,
|
|
6041
6041
|
{
|
|
6042
6042
|
variant: "TEXT",
|
|
6043
6043
|
iconName: "KeyboardArrowLeft",
|
|
@@ -6045,39 +6045,42 @@ const ns = ({ navigation: s, className: r, classNameDropdown: t }) => {
|
|
|
6045
6045
|
onClick: () => o(void 0)
|
|
6046
6046
|
}
|
|
6047
6047
|
) }),
|
|
6048
|
-
n.links.map((
|
|
6049
|
-
] }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: s.map((
|
|
6048
|
+
n.links.map((h) => /* @__PURE__ */ e.jsx("li", { className: d, children: /* @__PURE__ */ e.jsx(me, { href: h.href, children: h.label }) }, "link-" + h.label))
|
|
6049
|
+
] }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: s.map((h, m) => "title" in h ? /* @__PURE__ */ e.jsxs(
|
|
6050
6050
|
"button",
|
|
6051
6051
|
{
|
|
6052
|
-
onClick: () => o(
|
|
6052
|
+
onClick: () => o(h),
|
|
6053
6053
|
className: "flex items-center",
|
|
6054
6054
|
type: "button",
|
|
6055
6055
|
children: [
|
|
6056
|
-
|
|
6056
|
+
h.title,
|
|
6057
6057
|
" ",
|
|
6058
|
-
/* @__PURE__ */ e.jsx(
|
|
6058
|
+
/* @__PURE__ */ e.jsx(Y, { name: "KeyboardArrowRight" })
|
|
6059
6059
|
]
|
|
6060
6060
|
},
|
|
6061
|
-
"dropdown-" +
|
|
6062
|
-
) : /* @__PURE__ */ e.jsx("li", { className:
|
|
6061
|
+
"dropdown-" + h.title
|
|
6062
|
+
) : /* @__PURE__ */ e.jsx("li", { className: d, children: /* @__PURE__ */ e.jsx(me, { href: h.href, children: h.label }) }, h.label + m)) }) })
|
|
6063
6063
|
}
|
|
6064
6064
|
)
|
|
6065
6065
|
] });
|
|
6066
|
-
},
|
|
6066
|
+
}, Gs = {
|
|
6067
6067
|
DEFAULT: "default"
|
|
6068
|
-
},
|
|
6069
|
-
({ children: s, onClick: r, width: t, height: i, className: a, headline: l },
|
|
6070
|
-
const
|
|
6071
|
-
return
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6068
|
+
}, fs = z(
|
|
6069
|
+
({ children: s, onClick: r, width: t, height: i, className: a, headline: l, open: n }, o) => {
|
|
6070
|
+
const c = se(null);
|
|
6071
|
+
return S(() => {
|
|
6072
|
+
if (n)
|
|
6073
|
+
return document.body.style.overflow = "hidden", () => {
|
|
6074
|
+
document.body.style.overflow = "";
|
|
6075
|
+
};
|
|
6076
|
+
}, [n]), S(() => {
|
|
6077
|
+
const d = (m) => {
|
|
6078
|
+
m.key === "Escape" && (m.preventDefault(), m.stopPropagation(), r == null || r());
|
|
6079
|
+
}, h = c.current;
|
|
6080
|
+
return h && document.addEventListener("keydown", d), () => {
|
|
6081
|
+
h && document.removeEventListener("keydown", d);
|
|
6079
6082
|
};
|
|
6080
|
-
}, [r]), /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
6083
|
+
}, [r]), n ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
6081
6084
|
/* @__PURE__ */ e.jsx(
|
|
6082
6085
|
"div",
|
|
6083
6086
|
{
|
|
@@ -6090,20 +6093,20 @@ const ns = ({ navigation: s, className: r, classNameDropdown: t }) => {
|
|
|
6090
6093
|
"div",
|
|
6091
6094
|
{
|
|
6092
6095
|
"data-testid": "test-modal",
|
|
6093
|
-
ref: (
|
|
6094
|
-
|
|
6096
|
+
ref: (d) => {
|
|
6097
|
+
c.current = d, typeof o == "function" ? o(d) : o && (o.current = d);
|
|
6095
6098
|
},
|
|
6096
6099
|
tabIndex: -1,
|
|
6097
|
-
className:
|
|
6100
|
+
className: x(
|
|
6098
6101
|
`fixed left-1/2 top-1/2 z-50 max-h-full max-w-full -translate-x-1/2 -translate-y-1/2 overflow-hidden rounded-md border border-white bg-white p-4 md:p-6 lg:p-8 ${a} `
|
|
6099
6102
|
),
|
|
6100
6103
|
style: { width: t || "", height: i || "" },
|
|
6101
|
-
onClick: (
|
|
6104
|
+
onClick: (d) => d.stopPropagation(),
|
|
6102
6105
|
children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col", children: [
|
|
6103
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
6104
|
-
l && /* @__PURE__ */ e.jsx(
|
|
6106
|
+
/* @__PURE__ */ e.jsxs("div", { className: x("flex items-center justify-end p-2", l && "justify-between"), children: [
|
|
6107
|
+
l && /* @__PURE__ */ e.jsx(st, { variant: "h3", children: l }),
|
|
6105
6108
|
/* @__PURE__ */ e.jsx(
|
|
6106
|
-
|
|
6109
|
+
I,
|
|
6107
6110
|
{
|
|
6108
6111
|
iconName: "Close",
|
|
6109
6112
|
onClick: r,
|
|
@@ -6116,29 +6119,29 @@ const ns = ({ navigation: s, className: r, classNameDropdown: t }) => {
|
|
|
6116
6119
|
] })
|
|
6117
6120
|
}
|
|
6118
6121
|
)
|
|
6119
|
-
] });
|
|
6122
|
+
] }) : null;
|
|
6120
6123
|
}
|
|
6121
6124
|
);
|
|
6122
|
-
|
|
6123
|
-
function
|
|
6124
|
-
const [t, i] = E(!1), [a, l] = E(""), n =
|
|
6125
|
-
switch (
|
|
6125
|
+
fs.displayName = "Modal";
|
|
6126
|
+
function lt({ clearSearchValue: s, onCommit: r }) {
|
|
6127
|
+
const [t, i] = E(!1), [a, l] = E(""), n = se(null), o = se(null), c = be((h) => {
|
|
6128
|
+
switch (h.key) {
|
|
6126
6129
|
case "ArrowDown":
|
|
6127
6130
|
case "Enter":
|
|
6128
6131
|
case " ":
|
|
6129
|
-
|
|
6132
|
+
h.preventDefault(), i(!0);
|
|
6130
6133
|
break;
|
|
6131
6134
|
case "Escape":
|
|
6132
6135
|
case "Tab":
|
|
6133
6136
|
i(!1);
|
|
6134
6137
|
break;
|
|
6135
6138
|
}
|
|
6136
|
-
}, []),
|
|
6137
|
-
|
|
6139
|
+
}, []), d = be((h) => {
|
|
6140
|
+
h.currentTarget.contains(h.relatedTarget) || i(!1);
|
|
6138
6141
|
}, []);
|
|
6139
|
-
return
|
|
6142
|
+
return S(() => {
|
|
6140
6143
|
!t && r && r();
|
|
6141
|
-
}, [t]),
|
|
6144
|
+
}, [t]), S(() => {
|
|
6142
6145
|
s && a && l("");
|
|
6143
6146
|
}, [s]), {
|
|
6144
6147
|
/* state */
|
|
@@ -6157,34 +6160,34 @@ function st({ clearSearchValue: s, onCommit: r }) {
|
|
|
6157
6160
|
role: "combobox",
|
|
6158
6161
|
"aria-expanded": t,
|
|
6159
6162
|
"aria-haspopup": "listbox",
|
|
6160
|
-
onBlur:
|
|
6163
|
+
onBlur: d
|
|
6161
6164
|
}),
|
|
6162
6165
|
getButtonProps: () => ({
|
|
6163
6166
|
ref: o,
|
|
6164
6167
|
type: "button",
|
|
6165
6168
|
"aria-expanded": t,
|
|
6166
6169
|
"aria-haspopup": "listbox",
|
|
6167
|
-
onClick: () => i((
|
|
6170
|
+
onClick: () => i((h) => !h),
|
|
6168
6171
|
onKeyDown: c
|
|
6169
6172
|
})
|
|
6170
6173
|
};
|
|
6171
6174
|
}
|
|
6172
|
-
function
|
|
6175
|
+
function xs({
|
|
6173
6176
|
selectedOptions: s,
|
|
6174
6177
|
options: r,
|
|
6175
6178
|
onSelectionChange: t,
|
|
6176
6179
|
exceptionOptions: i,
|
|
6177
6180
|
clearSearchValue: a
|
|
6178
6181
|
}) {
|
|
6179
|
-
const l =
|
|
6182
|
+
const l = lt({
|
|
6180
6183
|
clearSearchValue: a,
|
|
6181
6184
|
onCommit: () => {
|
|
6182
6185
|
n && t(n.map((c) => c.id));
|
|
6183
6186
|
}
|
|
6184
|
-
}), n =
|
|
6187
|
+
}), n = Ce(() => r.filter((c) => s.includes(c.id)), [r, s]), o = be(
|
|
6185
6188
|
(c) => {
|
|
6186
|
-
let
|
|
6187
|
-
i != null && i.includes(c.id) ?
|
|
6189
|
+
let d = s;
|
|
6190
|
+
i != null && i.includes(c.id) ? d = [c.id] : s.includes(c.id) ? d = s.filter((h) => h !== c.id && !(i != null && i.includes(h))) : d = [...s.filter((h) => !(i != null && i.includes(h))), c.id], t(d);
|
|
6188
6191
|
},
|
|
6189
6192
|
[s, i, t]
|
|
6190
6193
|
);
|
|
@@ -6194,13 +6197,13 @@ function os({
|
|
|
6194
6197
|
toggleOption: o
|
|
6195
6198
|
};
|
|
6196
6199
|
}
|
|
6197
|
-
function
|
|
6200
|
+
function ps({
|
|
6198
6201
|
options: s,
|
|
6199
6202
|
selectedOption: r,
|
|
6200
6203
|
onSelectionChange: t,
|
|
6201
6204
|
clearSearchValue: i
|
|
6202
6205
|
}) {
|
|
6203
|
-
const a =
|
|
6206
|
+
const a = Ce(() => s.find((o) => o.id === r), [s, r]), l = lt({
|
|
6204
6207
|
clearSearchValue: i
|
|
6205
6208
|
});
|
|
6206
6209
|
return {
|
|
@@ -6211,7 +6214,7 @@ function ds({
|
|
|
6211
6214
|
}
|
|
6212
6215
|
};
|
|
6213
6216
|
}
|
|
6214
|
-
const
|
|
6217
|
+
const at = ({
|
|
6215
6218
|
className: s,
|
|
6216
6219
|
isOpen: r,
|
|
6217
6220
|
wideDropdown: t,
|
|
@@ -6221,39 +6224,39 @@ const rt = ({
|
|
|
6221
6224
|
showSearchField: n,
|
|
6222
6225
|
inputValue: o = "",
|
|
6223
6226
|
setInputValue: c,
|
|
6224
|
-
searchFieldPlaceholder:
|
|
6225
|
-
currSelected:
|
|
6226
|
-
onSearchEnter:
|
|
6227
|
+
searchFieldPlaceholder: d,
|
|
6228
|
+
currSelected: h,
|
|
6229
|
+
onSearchEnter: m
|
|
6227
6230
|
}) => {
|
|
6228
|
-
const
|
|
6229
|
-
const b =
|
|
6231
|
+
const L = se(null), j = se(null), H = se(null), A = (u) => {
|
|
6232
|
+
const b = u.current;
|
|
6230
6233
|
b == null || b.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
6231
6234
|
};
|
|
6232
|
-
return
|
|
6233
|
-
const
|
|
6234
|
-
if (
|
|
6235
|
-
const R = setTimeout(() => A(
|
|
6235
|
+
return S(() => {
|
|
6236
|
+
const u = h.length === 1 && r, b = u && o.length === 0;
|
|
6237
|
+
if (u || b) {
|
|
6238
|
+
const R = setTimeout(() => A(L), 500);
|
|
6236
6239
|
return () => clearTimeout(R);
|
|
6237
6240
|
}
|
|
6238
|
-
}, [r,
|
|
6241
|
+
}, [r, h, o, L]), /* @__PURE__ */ e.jsxs("div", { children: [
|
|
6239
6242
|
n && /* @__PURE__ */ e.jsx(
|
|
6240
6243
|
"input",
|
|
6241
6244
|
{
|
|
6242
6245
|
type: "text",
|
|
6243
6246
|
value: o,
|
|
6244
|
-
onChange: (
|
|
6245
|
-
onBlur: () =>
|
|
6246
|
-
className:
|
|
6247
|
+
onChange: (u) => c == null ? void 0 : c(u.target.value),
|
|
6248
|
+
onBlur: () => m == null ? void 0 : m(),
|
|
6249
|
+
className: x(
|
|
6247
6250
|
"pointer-events-none absolute z-[10] mt-1 h-0 w-full rounded-t border bg-white p-2 opacity-0 shadow-sm transition-all focus:outline-none",
|
|
6248
6251
|
r && "pointer-events-auto h-fit opacity-100"
|
|
6249
6252
|
),
|
|
6250
|
-
placeholder:
|
|
6253
|
+
placeholder: d
|
|
6251
6254
|
}
|
|
6252
6255
|
),
|
|
6253
6256
|
/* @__PURE__ */ e.jsx(
|
|
6254
6257
|
"div",
|
|
6255
6258
|
{
|
|
6256
|
-
className:
|
|
6259
|
+
className: x(
|
|
6257
6260
|
"absolute left-0 top-full z-[5] mt-1 h-0 w-full cursor-pointer overflow-y-auto overflow-x-hidden rounded-b border bg-grey-50 opacity-0 shadow-md outline-none transition-all",
|
|
6258
6261
|
r && "h-fit max-h-60 opacity-100",
|
|
6259
6262
|
t && "w-fit",
|
|
@@ -6264,23 +6267,23 @@ const rt = ({
|
|
|
6264
6267
|
children: /* @__PURE__ */ e.jsxs(
|
|
6265
6268
|
"ul",
|
|
6266
6269
|
{
|
|
6267
|
-
className:
|
|
6270
|
+
className: x("h-full w-full", r && "h-fit max-h-[200px]", n && r && "top-10"),
|
|
6268
6271
|
"data-testid": "test-multiselect-list",
|
|
6269
6272
|
ref: j,
|
|
6270
6273
|
children: [
|
|
6271
6274
|
a.length === 0 && /* @__PURE__ */ e.jsx("p", { className: "bg-slate-200 p-2", children: "keine Optionen gefunden" }),
|
|
6272
|
-
r && (a == null ? void 0 : a.filter((
|
|
6273
|
-
|
|
6275
|
+
r && (a == null ? void 0 : a.filter((u) => u.name.toLowerCase().includes(o.toLowerCase())).map((u) => /* @__PURE__ */ e.jsx(
|
|
6276
|
+
it,
|
|
6274
6277
|
{
|
|
6275
|
-
id:
|
|
6276
|
-
option:
|
|
6277
|
-
isActive:
|
|
6278
|
+
id: u.id,
|
|
6279
|
+
option: u,
|
|
6280
|
+
isActive: h == null ? void 0 : h.some((b) => b.id === u.id),
|
|
6278
6281
|
onSelectionChange: i,
|
|
6279
6282
|
className: t ? "whitespace-nowrap" : void 0,
|
|
6280
|
-
ref:
|
|
6283
|
+
ref: h.length === 1 && (h != null && h.some((b) => b.id === u.id)) ? L : null,
|
|
6281
6284
|
...l
|
|
6282
6285
|
},
|
|
6283
|
-
|
|
6286
|
+
u.id
|
|
6284
6287
|
)))
|
|
6285
6288
|
]
|
|
6286
6289
|
}
|
|
@@ -6288,11 +6291,11 @@ const rt = ({
|
|
|
6288
6291
|
}
|
|
6289
6292
|
)
|
|
6290
6293
|
] });
|
|
6291
|
-
},
|
|
6294
|
+
}, Ys = {
|
|
6292
6295
|
DEFAULT: "default"
|
|
6293
|
-
},
|
|
6296
|
+
}, ws = {
|
|
6294
6297
|
DEFAULT: "rounded border border-black bg-brand-white duration-300 transition-all hover:bg-grey-100"
|
|
6295
|
-
},
|
|
6298
|
+
}, ms = z(
|
|
6296
6299
|
({
|
|
6297
6300
|
selectedOptions: s = [],
|
|
6298
6301
|
onSelectionChange: r,
|
|
@@ -6303,62 +6306,63 @@ const rt = ({
|
|
|
6303
6306
|
wideDropdown: n = !1,
|
|
6304
6307
|
optionProps: o,
|
|
6305
6308
|
hasError: c = !1,
|
|
6306
|
-
errorMessage:
|
|
6307
|
-
placeholder:
|
|
6308
|
-
showSelectedAsChips:
|
|
6309
|
-
exceptionOptions:
|
|
6309
|
+
errorMessage: d,
|
|
6310
|
+
placeholder: h = "Auswählen",
|
|
6311
|
+
showSelectedAsChips: m = !1,
|
|
6312
|
+
exceptionOptions: L,
|
|
6310
6313
|
showSearchField: j = !1,
|
|
6311
6314
|
searchFieldPlaceholder: H = "Optionen durchsuchen",
|
|
6312
6315
|
className: A,
|
|
6313
|
-
clearSearchValue:
|
|
6314
|
-
onSearchEnter: b
|
|
6315
|
-
|
|
6316
|
-
|
|
6316
|
+
clearSearchValue: u = !1,
|
|
6317
|
+
onSearchEnter: b,
|
|
6318
|
+
classNameChips: R
|
|
6319
|
+
}, V) => {
|
|
6320
|
+
const { isOpen: T, currSelected: k, inputValue: P, setInputValue: W, toggleOption: g, getRootProps: Z, getButtonProps: O } = xs({
|
|
6317
6321
|
selectedOptions: s,
|
|
6318
6322
|
options: t,
|
|
6319
6323
|
onSelectionChange: r,
|
|
6320
|
-
exceptionOptions:
|
|
6321
|
-
clearSearchValue:
|
|
6324
|
+
exceptionOptions: L,
|
|
6325
|
+
clearSearchValue: u
|
|
6322
6326
|
});
|
|
6323
6327
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
6324
6328
|
/* @__PURE__ */ e.jsxs(
|
|
6325
6329
|
"div",
|
|
6326
6330
|
{
|
|
6327
|
-
...
|
|
6328
|
-
ref:
|
|
6329
|
-
className:
|
|
6331
|
+
...Z(),
|
|
6332
|
+
ref: V,
|
|
6333
|
+
className: x("relative rounded", ws[l], c && "border-error", A),
|
|
6330
6334
|
children: [
|
|
6331
6335
|
/* @__PURE__ */ e.jsxs(
|
|
6332
6336
|
"button",
|
|
6333
6337
|
{
|
|
6334
|
-
...
|
|
6338
|
+
...O(),
|
|
6335
6339
|
"data-testid": "test-multiselect",
|
|
6336
6340
|
type: "button",
|
|
6337
6341
|
disabled: i,
|
|
6338
6342
|
className: "flex w-full items-start justify-between rounded px-4 py-3 disabled:pointer-events-none disabled:bg-grey-100",
|
|
6339
6343
|
children: [
|
|
6340
6344
|
/* @__PURE__ */ e.jsx("label", { className: "absolute -top-2 left-3 rounded bg-white px-1 text-xs", children: a }),
|
|
6341
|
-
!
|
|
6345
|
+
!m && k.length > 0 ? /* @__PURE__ */ e.jsx("span", { className: "truncate", children: k.map((U) => U.name).join(", ") }) : /* @__PURE__ */ e.jsx("p", { children: h }),
|
|
6342
6346
|
/* @__PURE__ */ e.jsx(
|
|
6343
|
-
|
|
6347
|
+
Y,
|
|
6344
6348
|
{
|
|
6345
6349
|
name: "ExpandLess",
|
|
6346
|
-
className:
|
|
6350
|
+
className: x("h-6 w-6 transition-transform duration-200", T && "rotate-180")
|
|
6347
6351
|
}
|
|
6348
6352
|
)
|
|
6349
6353
|
]
|
|
6350
6354
|
}
|
|
6351
6355
|
),
|
|
6352
6356
|
/* @__PURE__ */ e.jsx(
|
|
6353
|
-
|
|
6357
|
+
at,
|
|
6354
6358
|
{
|
|
6355
|
-
isOpen:
|
|
6359
|
+
isOpen: T,
|
|
6356
6360
|
options: t,
|
|
6357
|
-
currSelected:
|
|
6358
|
-
handleSelection:
|
|
6361
|
+
currSelected: k,
|
|
6362
|
+
handleSelection: g,
|
|
6359
6363
|
optionProps: o,
|
|
6360
|
-
inputValue:
|
|
6361
|
-
setInputValue:
|
|
6364
|
+
inputValue: P,
|
|
6365
|
+
setInputValue: W,
|
|
6362
6366
|
showSearchField: j,
|
|
6363
6367
|
searchFieldPlaceholder: H,
|
|
6364
6368
|
wideDropdown: n,
|
|
@@ -6368,25 +6372,33 @@ const rt = ({
|
|
|
6368
6372
|
]
|
|
6369
6373
|
}
|
|
6370
6374
|
),
|
|
6371
|
-
c &&
|
|
6372
|
-
|
|
6375
|
+
c && d && /* @__PURE__ */ e.jsx(ae, { message: d, showErrorStyles: !0, className: "mt-2" }),
|
|
6376
|
+
m && k.length > 0 && /* @__PURE__ */ e.jsx("div", { className: "mt-2 flex flex-wrap gap-4", children: k.map((U) => /* @__PURE__ */ e.jsx(
|
|
6377
|
+
tt,
|
|
6378
|
+
{
|
|
6379
|
+
label: U.name,
|
|
6380
|
+
onClick: () => g(U),
|
|
6381
|
+
className: R
|
|
6382
|
+
},
|
|
6383
|
+
U.id
|
|
6384
|
+
)) })
|
|
6373
6385
|
] });
|
|
6374
6386
|
}
|
|
6375
6387
|
);
|
|
6376
|
-
|
|
6377
|
-
const
|
|
6388
|
+
ms.displayName = "MultiSelect";
|
|
6389
|
+
const $s = {
|
|
6378
6390
|
PRIMARY: "primary",
|
|
6379
6391
|
SECONDARY: "secondary",
|
|
6380
6392
|
TERTIARY: "tertiary"
|
|
6381
|
-
},
|
|
6393
|
+
}, us = {
|
|
6382
6394
|
PRIMARY: "bg-white hover:bg-black-800 active:bg-grey-900",
|
|
6383
6395
|
SECONDARY: "bg-blue-200 hover:bg-blue-400 active:bg-blue-500",
|
|
6384
6396
|
TERTIARY: "bg-red-200 hover:bg-red-400 active:bg-red-500"
|
|
6385
|
-
},
|
|
6397
|
+
}, gs = {
|
|
6386
6398
|
SECONDARY: "bg-blue-500 text-white",
|
|
6387
6399
|
TERTIARY: "bg-red-500 text-white",
|
|
6388
6400
|
PRIMARY: "bg-black text-white"
|
|
6389
|
-
},
|
|
6401
|
+
}, vs = ({ pages: s, onNavigate: r, classNames: t, activeIndex: i }) => {
|
|
6390
6402
|
const [a, l] = E([2, 3]), n = be(() => {
|
|
6391
6403
|
if (i === 2 || i === s - 1)
|
|
6392
6404
|
return;
|
|
@@ -6401,13 +6413,13 @@ const Os = {
|
|
|
6401
6413
|
const c = [i - 1, i, i + 1];
|
|
6402
6414
|
l(c);
|
|
6403
6415
|
}, [s, i]);
|
|
6404
|
-
|
|
6416
|
+
S(() => {
|
|
6405
6417
|
n();
|
|
6406
6418
|
}, [i]);
|
|
6407
6419
|
const o = i !== s && i !== s - 1 && i !== s - 2;
|
|
6408
6420
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
6409
6421
|
/* @__PURE__ */ e.jsx(
|
|
6410
|
-
|
|
6422
|
+
I,
|
|
6411
6423
|
{
|
|
6412
6424
|
className: t(i === 1),
|
|
6413
6425
|
onClick: () => r == null ? void 0 : r(1),
|
|
@@ -6416,19 +6428,19 @@ const Os = {
|
|
|
6416
6428
|
}
|
|
6417
6429
|
),
|
|
6418
6430
|
a[0] !== 2 && /* @__PURE__ */ e.jsx(e.Fragment, { children: "..." }),
|
|
6419
|
-
a.map((c,
|
|
6420
|
-
|
|
6431
|
+
a.map((c, d) => /* @__PURE__ */ e.jsx(
|
|
6432
|
+
I,
|
|
6421
6433
|
{
|
|
6422
6434
|
className: t(i === c),
|
|
6423
6435
|
onClick: () => r == null ? void 0 : r(c),
|
|
6424
|
-
"data-testid": "test-pagination-button-" +
|
|
6436
|
+
"data-testid": "test-pagination-button-" + d,
|
|
6425
6437
|
children: /* @__PURE__ */ e.jsx("p", { className: "w-4 flex-shrink-0 flex-grow-0 text-center text-sm font-medium", children: c })
|
|
6426
6438
|
},
|
|
6427
|
-
|
|
6439
|
+
d
|
|
6428
6440
|
)),
|
|
6429
6441
|
o && /* @__PURE__ */ e.jsx(e.Fragment, { children: "..." }),
|
|
6430
6442
|
/* @__PURE__ */ e.jsx(
|
|
6431
|
-
|
|
6443
|
+
I,
|
|
6432
6444
|
{
|
|
6433
6445
|
className: t(i === s),
|
|
6434
6446
|
onClick: () => r == null ? void 0 : r(10),
|
|
@@ -6437,46 +6449,46 @@ const Os = {
|
|
|
6437
6449
|
}
|
|
6438
6450
|
)
|
|
6439
6451
|
] });
|
|
6440
|
-
},
|
|
6441
|
-
const [i, a] = E(1), l = (
|
|
6442
|
-
a((
|
|
6452
|
+
}, Ds = ({ pages: s, variant: r = "PRIMARY", onNavigate: t }) => {
|
|
6453
|
+
const [i, a] = E(1), l = (d) => {
|
|
6454
|
+
a((h) => h === d ? h : d), t == null || t(d);
|
|
6443
6455
|
}, n = {
|
|
6444
6456
|
className: "relative h-6 w-6 flex-shrink-0 flex-grow-0 bg-transparent px-2 hover:bg-grey-300 active:bg-grey-400 [&_path]:disabled:!fill-white",
|
|
6445
6457
|
iconColor: "black",
|
|
6446
6458
|
iconPosition: "leading"
|
|
6447
|
-
}, o = (
|
|
6459
|
+
}, o = (d) => x(
|
|
6448
6460
|
"flex h-fit rounded p-1 text-black active:text-white",
|
|
6449
6461
|
// TODO: add active states per variant
|
|
6450
|
-
|
|
6451
|
-
|
|
6462
|
+
us[r],
|
|
6463
|
+
d && gs[r]
|
|
6452
6464
|
), c = s <= 5;
|
|
6453
6465
|
return /* @__PURE__ */ e.jsxs("div", { className: "relative flex items-center justify-center gap-4", "data-testid": "test-pagination", children: [
|
|
6454
6466
|
/* @__PURE__ */ e.jsx(
|
|
6455
|
-
|
|
6467
|
+
I,
|
|
6456
6468
|
{
|
|
6457
6469
|
iconName: "KeyboardArrowLeft",
|
|
6458
6470
|
onClick: () => {
|
|
6459
|
-
const
|
|
6460
|
-
a(
|
|
6471
|
+
const d = i - 1;
|
|
6472
|
+
a(d), t == null || t(d);
|
|
6461
6473
|
},
|
|
6462
6474
|
disabled: i === 1,
|
|
6463
6475
|
"data-testid": "button-prev",
|
|
6464
6476
|
...n
|
|
6465
6477
|
}
|
|
6466
6478
|
),
|
|
6467
|
-
c ? /* @__PURE__ */ e.jsx(e.Fragment, { children: Array.from(Array(s)).map((
|
|
6468
|
-
|
|
6479
|
+
c ? /* @__PURE__ */ e.jsx(e.Fragment, { children: Array.from(Array(s)).map((d, h) => /* @__PURE__ */ e.jsx(
|
|
6480
|
+
I,
|
|
6469
6481
|
{
|
|
6470
|
-
className: o(i ===
|
|
6482
|
+
className: o(i === h + 1),
|
|
6471
6483
|
onClick: () => {
|
|
6472
|
-
l(
|
|
6484
|
+
l(h), t == null || t(h);
|
|
6473
6485
|
},
|
|
6474
|
-
"data-testid": "test-pagination-button-" +
|
|
6475
|
-
children: /* @__PURE__ */ e.jsx("p", { className: "w-4 flex-shrink-0 flex-grow-0 text-center text-sm font-medium", children:
|
|
6486
|
+
"data-testid": "test-pagination-button-" + h,
|
|
6487
|
+
children: /* @__PURE__ */ e.jsx("p", { className: "w-4 flex-shrink-0 flex-grow-0 text-center text-sm font-medium", children: h + 1 })
|
|
6476
6488
|
},
|
|
6477
|
-
|
|
6489
|
+
h
|
|
6478
6490
|
)) }) : /* @__PURE__ */ e.jsx(
|
|
6479
|
-
|
|
6491
|
+
vs,
|
|
6480
6492
|
{
|
|
6481
6493
|
activeIndex: i,
|
|
6482
6494
|
classNames: o,
|
|
@@ -6485,12 +6497,12 @@ const Os = {
|
|
|
6485
6497
|
}
|
|
6486
6498
|
),
|
|
6487
6499
|
/* @__PURE__ */ e.jsx(
|
|
6488
|
-
|
|
6500
|
+
I,
|
|
6489
6501
|
{
|
|
6490
6502
|
iconName: "KeyboardArrowRight",
|
|
6491
6503
|
onClick: () => {
|
|
6492
|
-
const
|
|
6493
|
-
a(
|
|
6504
|
+
const d = i + 1;
|
|
6505
|
+
a(d), t == null || t(d);
|
|
6494
6506
|
},
|
|
6495
6507
|
disabled: i === s,
|
|
6496
6508
|
"data-testid": "button-next",
|
|
@@ -6498,7 +6510,7 @@ const Os = {
|
|
|
6498
6510
|
}
|
|
6499
6511
|
)
|
|
6500
6512
|
] });
|
|
6501
|
-
},
|
|
6513
|
+
}, Xs = ({
|
|
6502
6514
|
options: s,
|
|
6503
6515
|
supportingText: r,
|
|
6504
6516
|
required: t,
|
|
@@ -6506,9 +6518,9 @@ const Os = {
|
|
|
6506
6518
|
setSelectedValue: a,
|
|
6507
6519
|
className: l,
|
|
6508
6520
|
showSupportingText: n
|
|
6509
|
-
}) => /* @__PURE__ */ e.jsxs("div", { className:
|
|
6521
|
+
}) => /* @__PURE__ */ e.jsxs("div", { className: x("flex flex-col gap-2", l), "data-testid": "test-radioGroup", children: [
|
|
6510
6522
|
s.map((o) => /* @__PURE__ */ e.jsx(
|
|
6511
|
-
|
|
6523
|
+
rt,
|
|
6512
6524
|
{
|
|
6513
6525
|
value: o.value,
|
|
6514
6526
|
label: o.label,
|
|
@@ -6518,14 +6530,14 @@ const Os = {
|
|
|
6518
6530
|
},
|
|
6519
6531
|
"radio-group-" + o.value
|
|
6520
6532
|
)),
|
|
6521
|
-
n && r && /* @__PURE__ */ e.jsx(
|
|
6522
|
-
] }),
|
|
6533
|
+
n && r && /* @__PURE__ */ e.jsx(ae, { message: r, showErrorStyles: t, className: "mt-1" })
|
|
6534
|
+
] }), Js = {
|
|
6523
6535
|
DEFAULT: "default",
|
|
6524
6536
|
TOP_PULL: "top_pull"
|
|
6525
|
-
},
|
|
6537
|
+
}, Ks = {
|
|
6526
6538
|
DEFAULT: "bg-black hover:bg-black-800 active:bg-grey-900",
|
|
6527
6539
|
TOP_PULL: "bg-black hover:bg-black-800 active:bg-grey-900"
|
|
6528
|
-
},
|
|
6540
|
+
}, js = z(
|
|
6529
6541
|
({
|
|
6530
6542
|
options: s,
|
|
6531
6543
|
selectedOption: r,
|
|
@@ -6536,14 +6548,14 @@ const Os = {
|
|
|
6536
6548
|
wideDropdown: n = !1,
|
|
6537
6549
|
hasError: o = !1,
|
|
6538
6550
|
placeholder: c = "Auswählen",
|
|
6539
|
-
showSearchField:
|
|
6540
|
-
searchFieldPlaceholder:
|
|
6541
|
-
className:
|
|
6542
|
-
errorMessage:
|
|
6551
|
+
showSearchField: d = !1,
|
|
6552
|
+
searchFieldPlaceholder: h,
|
|
6553
|
+
className: m,
|
|
6554
|
+
errorMessage: L,
|
|
6543
6555
|
clearSearchValue: j,
|
|
6544
6556
|
onSearchEnter: H
|
|
6545
6557
|
}, A) => {
|
|
6546
|
-
const { isOpen:
|
|
6558
|
+
const { isOpen: u, currSelected: b, inputValue: R, setInputValue: V, selectOption: T, getRootProps: k, getButtonProps: P } = ps({
|
|
6547
6559
|
options: s,
|
|
6548
6560
|
selectedOption: typeof r == "string" ? r : r == null ? void 0 : r.id,
|
|
6549
6561
|
onSelectionChange: t,
|
|
@@ -6553,9 +6565,9 @@ const Os = {
|
|
|
6553
6565
|
/* @__PURE__ */ e.jsxs(
|
|
6554
6566
|
"div",
|
|
6555
6567
|
{
|
|
6556
|
-
...
|
|
6568
|
+
...k(),
|
|
6557
6569
|
ref: A,
|
|
6558
|
-
className:
|
|
6570
|
+
className: x("relative rounded border border-black", o && "border-error", m),
|
|
6559
6571
|
children: [
|
|
6560
6572
|
/* @__PURE__ */ e.jsxs(
|
|
6561
6573
|
"button",
|
|
@@ -6567,17 +6579,17 @@ const Os = {
|
|
|
6567
6579
|
/* @__PURE__ */ e.jsx(
|
|
6568
6580
|
"label",
|
|
6569
6581
|
{
|
|
6570
|
-
className:
|
|
6582
|
+
className: x("absolute -top-2 left-3 rounded bg-white px-1 text-xs", o && "text-error"),
|
|
6571
6583
|
children: i
|
|
6572
6584
|
}
|
|
6573
6585
|
),
|
|
6574
6586
|
/* @__PURE__ */ e.jsxs("div", { className: "flex w-full items-center justify-between py-1 pl-4", children: [
|
|
6575
6587
|
/* @__PURE__ */ e.jsx("div", { className: "truncate text-left", children: (b == null ? void 0 : b.name) ?? c }),
|
|
6576
6588
|
/* @__PURE__ */ e.jsx(
|
|
6577
|
-
|
|
6589
|
+
Y,
|
|
6578
6590
|
{
|
|
6579
6591
|
name: "ExpandLess",
|
|
6580
|
-
className:
|
|
6592
|
+
className: x("h-6 w-6 transition-transform duration-200", u && "rotate-180")
|
|
6581
6593
|
}
|
|
6582
6594
|
)
|
|
6583
6595
|
] })
|
|
@@ -6585,9 +6597,9 @@ const Os = {
|
|
|
6585
6597
|
}
|
|
6586
6598
|
),
|
|
6587
6599
|
/* @__PURE__ */ e.jsx(
|
|
6588
|
-
|
|
6600
|
+
at,
|
|
6589
6601
|
{
|
|
6590
|
-
isOpen:
|
|
6602
|
+
isOpen: u,
|
|
6591
6603
|
options: s,
|
|
6592
6604
|
currSelected: b ? [b] : [],
|
|
6593
6605
|
handleSelection: T,
|
|
@@ -6595,20 +6607,20 @@ const Os = {
|
|
|
6595
6607
|
inputValue: R,
|
|
6596
6608
|
setInputValue: V,
|
|
6597
6609
|
wideDropdown: n,
|
|
6598
|
-
showSearchField:
|
|
6599
|
-
searchFieldPlaceholder:
|
|
6610
|
+
showSearchField: d,
|
|
6611
|
+
searchFieldPlaceholder: h,
|
|
6600
6612
|
onSearchEnter: H
|
|
6601
6613
|
}
|
|
6602
6614
|
)
|
|
6603
6615
|
]
|
|
6604
6616
|
}
|
|
6605
6617
|
),
|
|
6606
|
-
o &&
|
|
6618
|
+
o && L && /* @__PURE__ */ e.jsx(ae, { message: L, showErrorStyles: !0, className: "mt-2" })
|
|
6607
6619
|
] });
|
|
6608
6620
|
}
|
|
6609
6621
|
);
|
|
6610
|
-
|
|
6611
|
-
const
|
|
6622
|
+
js.displayName = "Select";
|
|
6623
|
+
const qs = ({
|
|
6612
6624
|
tabs: s,
|
|
6613
6625
|
activeTab: r,
|
|
6614
6626
|
setActiveTab: t,
|
|
@@ -6618,21 +6630,21 @@ const Ds = ({
|
|
|
6618
6630
|
classNameTabPrevActive: n,
|
|
6619
6631
|
setPreviousActive: o,
|
|
6620
6632
|
tabSize: c = "fit"
|
|
6621
|
-
}) => /* @__PURE__ */ e.jsx("div", { className:
|
|
6622
|
-
|
|
6633
|
+
}) => /* @__PURE__ */ e.jsx("div", { className: x("flex", i), children: s.map((d, h) => /* @__PURE__ */ e.jsx(
|
|
6634
|
+
is,
|
|
6623
6635
|
{
|
|
6624
|
-
label:
|
|
6636
|
+
label: d.label,
|
|
6625
6637
|
className: a,
|
|
6626
6638
|
activeClassName: l,
|
|
6627
6639
|
prevActiveClassName: n,
|
|
6628
|
-
wasPreviouslyActive: o &&
|
|
6629
|
-
active:
|
|
6640
|
+
wasPreviouslyActive: o && h < r,
|
|
6641
|
+
active: h === r,
|
|
6630
6642
|
size: c,
|
|
6631
|
-
setIsActive: () => t == null ? void 0 : t(
|
|
6643
|
+
setIsActive: () => t == null ? void 0 : t(h)
|
|
6632
6644
|
}
|
|
6633
6645
|
)) });
|
|
6634
|
-
var
|
|
6635
|
-
const
|
|
6646
|
+
var bs = /* @__PURE__ */ ((s) => (s.SUCCESS = "success", s.INFO = "info", s.ERROR = "error", s))(bs || {});
|
|
6647
|
+
const ks = ({
|
|
6636
6648
|
type: s,
|
|
6637
6649
|
message: r,
|
|
6638
6650
|
showClosingButton: t = !0,
|
|
@@ -6644,7 +6656,7 @@ const gs = ({
|
|
|
6644
6656
|
return /* @__PURE__ */ e.jsxs(
|
|
6645
6657
|
"div",
|
|
6646
6658
|
{
|
|
6647
|
-
className:
|
|
6659
|
+
className: x(
|
|
6648
6660
|
"flex w-80 justify-between rounded p-2 text-white drop-shadow-sm",
|
|
6649
6661
|
s === "success" && "bg-success",
|
|
6650
6662
|
s === "error" && "bg-error",
|
|
@@ -6654,10 +6666,10 @@ const gs = ({
|
|
|
6654
6666
|
"data-testid": "test-toast",
|
|
6655
6667
|
children: [
|
|
6656
6668
|
/* @__PURE__ */ e.jsxs("div", { className: "flex grow", children: [
|
|
6657
|
-
/* @__PURE__ */ e.jsx(
|
|
6658
|
-
/* @__PURE__ */ e.jsx("span", { className:
|
|
6669
|
+
/* @__PURE__ */ e.jsx(Y, { name: n, iconColor: "white", className: "mr-2 pt-0.5", isIconSolid: !0 }),
|
|
6670
|
+
/* @__PURE__ */ e.jsx("span", { className: x(i && "max-w-[68%]"), children: r }),
|
|
6659
6671
|
i && /* @__PURE__ */ e.jsx(
|
|
6660
|
-
|
|
6672
|
+
I,
|
|
6661
6673
|
{
|
|
6662
6674
|
variant: "TEXT",
|
|
6663
6675
|
label: "Details",
|
|
@@ -6668,7 +6680,7 @@ const gs = ({
|
|
|
6668
6680
|
a && /* @__PURE__ */ e.jsx("a", { href: a, className: "rds-button ml-2 self-end p-2 underline-offset-2 hover:underline", children: "Details" })
|
|
6669
6681
|
] }),
|
|
6670
6682
|
t && /* @__PURE__ */ e.jsx(
|
|
6671
|
-
|
|
6683
|
+
I,
|
|
6672
6684
|
{
|
|
6673
6685
|
iconColor: "fill-white",
|
|
6674
6686
|
iconName: "Close",
|
|
@@ -6678,7 +6690,7 @@ const gs = ({
|
|
|
6678
6690
|
]
|
|
6679
6691
|
}
|
|
6680
6692
|
);
|
|
6681
|
-
},
|
|
6693
|
+
}, Qs = ({
|
|
6682
6694
|
logo: s,
|
|
6683
6695
|
className: r,
|
|
6684
6696
|
classNameContent: t,
|
|
@@ -6688,27 +6700,27 @@ const gs = ({
|
|
|
6688
6700
|
variant: n,
|
|
6689
6701
|
handleLogout: o,
|
|
6690
6702
|
account: c,
|
|
6691
|
-
breadcrumbs:
|
|
6692
|
-
}) => /* @__PURE__ */ e.jsxs("header", { className:
|
|
6693
|
-
/* @__PURE__ */ e.jsxs("div", { className:
|
|
6703
|
+
breadcrumbs: d
|
|
6704
|
+
}) => /* @__PURE__ */ e.jsxs("header", { className: x("fixed right-0 top-0 z-0 w-full py-5", r), children: [
|
|
6705
|
+
/* @__PURE__ */ e.jsxs("div", { className: x("mx-auto flex items-center justify-between lg:justify-start", t), children: [
|
|
6694
6706
|
s,
|
|
6695
6707
|
a && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
6696
|
-
/* @__PURE__ */ e.jsx("nav", { className: "ml-8 mr-4 hidden grow items-center lg:flex", children: /* @__PURE__ */ e.jsx("ul", { className: "flex items-center gap-4", children: a == null ? void 0 : a.map((
|
|
6708
|
+
/* @__PURE__ */ e.jsx("nav", { className: "ml-8 mr-4 hidden grow items-center lg:flex", children: /* @__PURE__ */ e.jsx("ul", { className: "flex items-center gap-4", children: a == null ? void 0 : a.map((h) => "title" in h ? /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx(os, { ...h, className: l, variant: n }) }, "dropdown-" + h.title) : /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx(
|
|
6697
6709
|
me,
|
|
6698
6710
|
{
|
|
6699
|
-
href:
|
|
6700
|
-
className:
|
|
6711
|
+
href: h.href,
|
|
6712
|
+
className: x(
|
|
6701
6713
|
n === "light" ? "text-white" : "text-black",
|
|
6702
|
-
|
|
6714
|
+
h.active && "underline underline-offset-8"
|
|
6703
6715
|
),
|
|
6704
|
-
children:
|
|
6716
|
+
children: h.label
|
|
6705
6717
|
}
|
|
6706
|
-
) }, "headerlink-" +
|
|
6707
|
-
/* @__PURE__ */ e.jsx(
|
|
6718
|
+
) }, "headerlink-" + h.label)) }) }),
|
|
6719
|
+
/* @__PURE__ */ e.jsx(hs, { navigation: a, classNameDropdown: l })
|
|
6708
6720
|
] }),
|
|
6709
6721
|
i,
|
|
6710
6722
|
o && /* @__PURE__ */ e.jsx(
|
|
6711
|
-
|
|
6723
|
+
I,
|
|
6712
6724
|
{
|
|
6713
6725
|
onClick: o,
|
|
6714
6726
|
iconName: "Login",
|
|
@@ -6719,8 +6731,8 @@ const gs = ({
|
|
|
6719
6731
|
),
|
|
6720
6732
|
c
|
|
6721
6733
|
] }),
|
|
6722
|
-
|
|
6723
|
-
] }),
|
|
6734
|
+
d && d.length > 0 && /* @__PURE__ */ e.jsx(cs, { links: d, variant: n, className: "mx-auto mt-4 max-w-[80%]" })
|
|
6735
|
+
] }), Ls = ({
|
|
6724
6736
|
data: s,
|
|
6725
6737
|
tableColumnsData: r,
|
|
6726
6738
|
onSelectionChange: t,
|
|
@@ -6729,19 +6741,19 @@ const gs = ({
|
|
|
6729
6741
|
}) => /* @__PURE__ */ e.jsx(
|
|
6730
6742
|
"tr",
|
|
6731
6743
|
{
|
|
6732
|
-
className:
|
|
6744
|
+
className: x(
|
|
6733
6745
|
"transition-colors duration-200 hover:bg-slate-200",
|
|
6734
6746
|
i && a % 2 === 0 && i
|
|
6735
6747
|
),
|
|
6736
6748
|
children: r.map((l) => {
|
|
6737
6749
|
const n = "td-table-" + l.id + (Object.keys(s).includes("id") ? s.id : JSON.stringify(s));
|
|
6738
6750
|
if (l.render)
|
|
6739
|
-
return /* @__PURE__ */ e.jsx("td", { className:
|
|
6751
|
+
return /* @__PURE__ */ e.jsx("td", { className: x(l.centered && "text-center"), children: l.render(s) }, n);
|
|
6740
6752
|
const o = s[l.id];
|
|
6741
|
-
return typeof o == "boolean" ? /* @__PURE__ */ e.jsx("td", { className: "flex min-h-[34px] items-center justify-center", children: /* @__PURE__ */ e.jsx(we, { id: "", checked: o, onChange: () => t == null ? void 0 : t(s) }) }, n) : typeof o == "string" || typeof o == "number" ? /* @__PURE__ */ e.jsx("td", { className:
|
|
6753
|
+
return typeof o == "boolean" ? /* @__PURE__ */ e.jsx("td", { className: "flex min-h-[34px] items-center justify-center", children: /* @__PURE__ */ e.jsx(we, { id: "", checked: o, onChange: () => t == null ? void 0 : t(s) }) }, n) : typeof o == "string" || typeof o == "number" ? /* @__PURE__ */ e.jsx("td", { className: x(l.centered && "text-center"), children: o }, n) : /* @__PURE__ */ e.jsx("td", { children: "unhandled - please check" }, n);
|
|
6742
6754
|
})
|
|
6743
6755
|
}
|
|
6744
|
-
),
|
|
6756
|
+
), _s = Se(Ls), ys = ({
|
|
6745
6757
|
tableColumnsData: s,
|
|
6746
6758
|
classNameBody: r,
|
|
6747
6759
|
classNameHead: t,
|
|
@@ -6751,76 +6763,76 @@ const gs = ({
|
|
|
6751
6763
|
onSelectionChange: n,
|
|
6752
6764
|
alternatingRowColor: o,
|
|
6753
6765
|
onDisabledSorting: c,
|
|
6754
|
-
noResultsMessage:
|
|
6755
|
-
loadingMessage:
|
|
6756
|
-
isLoading:
|
|
6757
|
-
classNameLoader:
|
|
6766
|
+
noResultsMessage: d,
|
|
6767
|
+
loadingMessage: h,
|
|
6768
|
+
isLoading: m,
|
|
6769
|
+
classNameLoader: L,
|
|
6758
6770
|
parentSortDir: j,
|
|
6759
6771
|
highlightActiveFilter: H = !1,
|
|
6760
6772
|
borderStyles: A
|
|
6761
6773
|
}) => {
|
|
6762
|
-
const [
|
|
6763
|
-
|
|
6774
|
+
const [u, b] = E(void 0), [R, V] = E("asc");
|
|
6775
|
+
S(() => {
|
|
6764
6776
|
j && V(j);
|
|
6765
|
-
}, [j]),
|
|
6766
|
-
c &&
|
|
6767
|
-
}, [c,
|
|
6768
|
-
const T =
|
|
6769
|
-
const
|
|
6770
|
-
if (!
|
|
6771
|
-
const g = typeof l[0][
|
|
6772
|
-
return g === "string" ? P.sort((Z,
|
|
6773
|
-
var
|
|
6774
|
-
const
|
|
6775
|
-
return W === "asc" ?
|
|
6776
|
-
}) : g === "number" && P.sort((Z,
|
|
6777
|
-
}, [l,
|
|
6777
|
+
}, [j]), S(() => {
|
|
6778
|
+
c && u && c(u, R);
|
|
6779
|
+
}, [c, u, R]);
|
|
6780
|
+
const T = Ce(() => {
|
|
6781
|
+
const k = u, P = l, W = j ?? R;
|
|
6782
|
+
if (!k || c) return P;
|
|
6783
|
+
const g = typeof l[0][k];
|
|
6784
|
+
return g === "string" ? P.sort((Z, O) => {
|
|
6785
|
+
var q, Q;
|
|
6786
|
+
const U = ((q = Z[k]) == null ? void 0 : q.toString().toLowerCase()) || "", $ = ((Q = O[k]) == null ? void 0 : Q.toString().toLowerCase()) || "";
|
|
6787
|
+
return W === "asc" ? U.localeCompare($) : $.localeCompare(U);
|
|
6788
|
+
}) : g === "number" && P.sort((Z, O) => W === "asc" ? +Z[k] - +O[k] : +O[k] - +Z[k]), P;
|
|
6789
|
+
}, [l, u, R, j, c]);
|
|
6778
6790
|
return /* @__PURE__ */ e.jsxs(
|
|
6779
6791
|
"div",
|
|
6780
6792
|
{
|
|
6781
|
-
className:
|
|
6793
|
+
className: x(
|
|
6782
6794
|
"flex w-full flex-col",
|
|
6783
6795
|
A === "cell" && "[&_td]:border [&_td]:border-solid [&_th]:border [&_th]:border-solid",
|
|
6784
6796
|
A === "outline" && "border border-solid",
|
|
6785
6797
|
a
|
|
6786
6798
|
),
|
|
6787
6799
|
children: [
|
|
6788
|
-
/* @__PURE__ */ e.jsxs("table", { className:
|
|
6789
|
-
/* @__PURE__ */ e.jsx("thead", { className:
|
|
6800
|
+
/* @__PURE__ */ e.jsxs("table", { className: x("table-auto [&_td]:pr-4 [&_th]:pr-4", i), children: [
|
|
6801
|
+
/* @__PURE__ */ e.jsx("thead", { className: x("text-left", t), children: /* @__PURE__ */ e.jsx("tr", { children: s.map((k) => /* @__PURE__ */ e.jsx("th", { className: x(k.centered && "text-center"), children: k.renderHeader ? /* @__PURE__ */ e.jsx(e.Fragment, { children: k.renderHeader }) : k.isSorting ? /* @__PURE__ */ e.jsxs(
|
|
6790
6802
|
"button",
|
|
6791
6803
|
{
|
|
6792
6804
|
onClick: () => {
|
|
6793
|
-
b(
|
|
6805
|
+
b(k.id), u === k.id && V((P) => P === "asc" ? "desc" : "asc");
|
|
6794
6806
|
},
|
|
6795
|
-
className:
|
|
6807
|
+
className: x(
|
|
6796
6808
|
"flex items-center gap-x-2",
|
|
6797
|
-
|
|
6798
|
-
|
|
6809
|
+
k.centered && "w-full justify-center",
|
|
6810
|
+
u === k.id && H && "underline underline-offset-2"
|
|
6799
6811
|
),
|
|
6800
6812
|
children: [
|
|
6801
|
-
|
|
6802
|
-
/* @__PURE__ */ e.jsx(
|
|
6813
|
+
k.title,
|
|
6814
|
+
/* @__PURE__ */ e.jsx(Y, { name: R === "asc" ? "South" : "North", className: "[&_svg]:!h-4 [&_svg]:!w-4" })
|
|
6803
6815
|
]
|
|
6804
6816
|
}
|
|
6805
|
-
) :
|
|
6806
|
-
/* @__PURE__ */ e.jsx("tbody", { className: r, children: !
|
|
6807
|
-
|
|
6817
|
+
) : k.title }, "th-table-" + k.id)) }) }),
|
|
6818
|
+
/* @__PURE__ */ e.jsx("tbody", { className: r, children: !m && T.map((k, P) => /* @__PURE__ */ e.jsx(
|
|
6819
|
+
_s,
|
|
6808
6820
|
{
|
|
6809
|
-
data:
|
|
6821
|
+
data: k,
|
|
6810
6822
|
index: P,
|
|
6811
6823
|
tableColumnsData: s,
|
|
6812
6824
|
alternatingRowColor: o,
|
|
6813
6825
|
onSelectionChange: n
|
|
6814
6826
|
},
|
|
6815
|
-
"tr-table-" + P + JSON.stringify(
|
|
6827
|
+
"tr-table-" + P + JSON.stringify(k)
|
|
6816
6828
|
)) })
|
|
6817
6829
|
] }),
|
|
6818
|
-
|
|
6819
|
-
T.length === 0 && !
|
|
6830
|
+
m && /* @__PURE__ */ e.jsx("div", { className: "my-8", children: h ? /* @__PURE__ */ e.jsx(Ne, { children: h }) : /* @__PURE__ */ e.jsx(rs, { classNameLoader: L, className: "relative" }) }),
|
|
6831
|
+
T.length === 0 && !m && /* @__PURE__ */ e.jsx("div", { className: "m-8", children: /* @__PURE__ */ e.jsx(Ne, { children: d ?? "Keine Daten gefunden" }) })
|
|
6820
6832
|
]
|
|
6821
6833
|
}
|
|
6822
6834
|
);
|
|
6823
|
-
},
|
|
6835
|
+
}, Fs = Se(ys), er = ({
|
|
6824
6836
|
duration: s,
|
|
6825
6837
|
positionY: r,
|
|
6826
6838
|
positionX: t,
|
|
@@ -6829,13 +6841,13 @@ const gs = ({
|
|
|
6829
6841
|
children: l,
|
|
6830
6842
|
className: n
|
|
6831
6843
|
}) => {
|
|
6832
|
-
const [o, c] = E(!1),
|
|
6844
|
+
const [o, c] = E(!1), d = () => setTimeout(() => {
|
|
6833
6845
|
c(!1);
|
|
6834
6846
|
}, s);
|
|
6835
|
-
return
|
|
6847
|
+
return S(() => (i && c(!0), d(), () => clearTimeout(d())), [i]), o ? /* @__PURE__ */ e.jsxs(
|
|
6836
6848
|
"div",
|
|
6837
6849
|
{
|
|
6838
|
-
className:
|
|
6850
|
+
className: x(
|
|
6839
6851
|
"absolute",
|
|
6840
6852
|
r === "top" && "top-0",
|
|
6841
6853
|
r === "bottom" && "bottom-0",
|
|
@@ -6845,71 +6857,71 @@ const gs = ({
|
|
|
6845
6857
|
n
|
|
6846
6858
|
),
|
|
6847
6859
|
children: [
|
|
6848
|
-
a && /* @__PURE__ */ e.jsx(
|
|
6860
|
+
a && /* @__PURE__ */ e.jsx(ks, { ...a }),
|
|
6849
6861
|
l
|
|
6850
6862
|
]
|
|
6851
6863
|
}
|
|
6852
6864
|
) : null;
|
|
6853
6865
|
};
|
|
6854
6866
|
export {
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6867
|
+
zs as ACCORDION_VARIANT,
|
|
6868
|
+
Cs as BUTTON_VARIANT,
|
|
6869
|
+
cs as Breadcrumb,
|
|
6870
|
+
I as Button,
|
|
6871
|
+
Vs as CHECKBOX_VARIANT,
|
|
6860
6872
|
we as Checkbox,
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
+
Us as ContentAccordion,
|
|
6874
|
+
os as Dropdown,
|
|
6875
|
+
Hs as FILTERCHIP_VARIANT,
|
|
6876
|
+
tt as FilterChip,
|
|
6877
|
+
Rs as HEADING_VARIANT,
|
|
6878
|
+
ds as HTMLSelect,
|
|
6879
|
+
Qs as Header,
|
|
6880
|
+
st as Heading,
|
|
6881
|
+
Ps as INPUT_VARIANT,
|
|
6882
|
+
Y as Icon,
|
|
6883
|
+
ae as InfoText,
|
|
6884
|
+
ss as Input,
|
|
6873
6885
|
me as Link,
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
|
|
6910
|
-
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
|
|
6886
|
+
rs as Loader,
|
|
6887
|
+
Gs as MODAL_VARIANT,
|
|
6888
|
+
Ys as MULTISELECT_VARIANT,
|
|
6889
|
+
hs as MobileNav,
|
|
6890
|
+
fs as Modal,
|
|
6891
|
+
ms as MultiSelect,
|
|
6892
|
+
$s as PAGINATION_VARIANT,
|
|
6893
|
+
Ds as Pagination,
|
|
6894
|
+
Zs as RADIO_VARIANT,
|
|
6895
|
+
rt as Radio,
|
|
6896
|
+
Xs as RadioGroup,
|
|
6897
|
+
Es as SELECT_ITEM_VARIANT,
|
|
6898
|
+
Js as SELECT_VARIANT,
|
|
6899
|
+
js as Select,
|
|
6900
|
+
at as SelectDropdown,
|
|
6901
|
+
it as SelectItem,
|
|
6902
|
+
Bs as Skeleton,
|
|
6903
|
+
Ws as Slider,
|
|
6904
|
+
Is as TEXTAREA_VARIANT,
|
|
6905
|
+
Ss as TEXT_VARIANT,
|
|
6906
|
+
is as Tab,
|
|
6907
|
+
Fs as Table,
|
|
6908
|
+
qs as Tabs,
|
|
6909
|
+
Ne as Text,
|
|
6910
|
+
ns as Textarea,
|
|
6911
|
+
ks as Toast,
|
|
6912
|
+
er as ToastDisplay,
|
|
6913
|
+
bs as ToastType,
|
|
6914
|
+
Os as accordionVariant,
|
|
6915
|
+
Ft as buttonVariantStyles,
|
|
6916
|
+
Ms as checkboxVariant,
|
|
6917
|
+
As as filterChipVariant,
|
|
6918
|
+
es as headingVariantStyles,
|
|
6919
|
+
et as iconMapping,
|
|
6920
|
+
ts as inputVariant,
|
|
6921
|
+
us as paginationVariant,
|
|
6922
|
+
Ts as radioboxVariant,
|
|
6923
|
+
Ks as selectVariant,
|
|
6924
|
+
ls as textVariantClasses,
|
|
6925
|
+
as as textarea,
|
|
6926
|
+
ws as variantClasses
|
|
6915
6927
|
};
|