@dhasdk/simple-ui 0.0.24 → 0.0.25
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/README.md +123 -0
- package/index.d.ts +3 -3
- package/index.js +6 -6
- package/index.mjs +928 -921
- package/lib/Modal.d.ts +2 -1
- package/lib/SideBarNav.d.ts +1 -0
- package/lib/Skeleton.d.ts +2 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as V, jsx as o, Fragment as pe } from "react/jsx-runtime";
|
|
2
2
|
import * as re from "react";
|
|
3
|
-
import { forwardRef as J, useState as A, Children as Oe, isValidElement as Te, cloneElement as Le, useEffect as R, useRef as
|
|
3
|
+
import { forwardRef as J, useState as A, Children as Oe, isValidElement as Te, cloneElement as Le, useEffect as R, useRef as W, useCallback as Me } from "react";
|
|
4
4
|
import { useLocation as Ye, Link as he, NavLink as Re } from "react-router-dom";
|
|
5
5
|
const Ce = "-", Be = (e) => {
|
|
6
6
|
const t = Ge(e), {
|
|
@@ -8,28 +8,28 @@ const Ce = "-", Be = (e) => {
|
|
|
8
8
|
conflictingClassGroupModifiers: n
|
|
9
9
|
} = e;
|
|
10
10
|
return {
|
|
11
|
-
getClassGroupId: (
|
|
12
|
-
const s =
|
|
13
|
-
return s[0] === "" && s.length !== 1 && s.shift(), _e(s, t) || Pe(
|
|
11
|
+
getClassGroupId: (c) => {
|
|
12
|
+
const s = c.split(Ce);
|
|
13
|
+
return s[0] === "" && s.length !== 1 && s.shift(), _e(s, t) || Pe(c);
|
|
14
14
|
},
|
|
15
|
-
getConflictingClassGroupIds: (
|
|
16
|
-
const p = r[
|
|
17
|
-
return s && n[
|
|
15
|
+
getConflictingClassGroupIds: (c, s) => {
|
|
16
|
+
const p = r[c] || [];
|
|
17
|
+
return s && n[c] ? [...p, ...n[c]] : p;
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
}, _e = (e, t) => {
|
|
21
|
-
var
|
|
21
|
+
var c;
|
|
22
22
|
if (e.length === 0)
|
|
23
23
|
return t.classGroupId;
|
|
24
|
-
const r = e[0], n = t.nextPart.get(r),
|
|
25
|
-
if (
|
|
26
|
-
return
|
|
24
|
+
const r = e[0], n = t.nextPart.get(r), a = n ? _e(e.slice(1), n) : void 0;
|
|
25
|
+
if (a)
|
|
26
|
+
return a;
|
|
27
27
|
if (t.validators.length === 0)
|
|
28
28
|
return;
|
|
29
|
-
const
|
|
30
|
-
return (
|
|
29
|
+
const l = e.join(Ce);
|
|
30
|
+
return (c = t.validators.find(({
|
|
31
31
|
validator: s
|
|
32
|
-
}) => s(
|
|
32
|
+
}) => s(l))) == null ? void 0 : c.classGroupId;
|
|
33
33
|
}, $e = /^\[(.+)\]$/, Pe = (e) => {
|
|
34
34
|
if ($e.test(e)) {
|
|
35
35
|
const t = $e.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
@@ -44,29 +44,29 @@ const Ce = "-", Be = (e) => {
|
|
|
44
44
|
nextPart: /* @__PURE__ */ new Map(),
|
|
45
45
|
validators: []
|
|
46
46
|
};
|
|
47
|
-
return Ue(Object.entries(e.classGroups), r).forEach(([
|
|
48
|
-
ke(
|
|
47
|
+
return Ue(Object.entries(e.classGroups), r).forEach(([l, c]) => {
|
|
48
|
+
ke(c, n, l, t);
|
|
49
49
|
}), n;
|
|
50
50
|
}, ke = (e, t, r, n) => {
|
|
51
|
-
e.forEach((
|
|
52
|
-
if (typeof
|
|
53
|
-
const
|
|
54
|
-
|
|
51
|
+
e.forEach((a) => {
|
|
52
|
+
if (typeof a == "string") {
|
|
53
|
+
const l = a === "" ? t : Ne(t, a);
|
|
54
|
+
l.classGroupId = r;
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
if (typeof
|
|
58
|
-
if (Fe(
|
|
59
|
-
ke(
|
|
57
|
+
if (typeof a == "function") {
|
|
58
|
+
if (Fe(a)) {
|
|
59
|
+
ke(a(n), t, r, n);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
62
|
t.validators.push({
|
|
63
|
-
validator:
|
|
63
|
+
validator: a,
|
|
64
64
|
classGroupId: r
|
|
65
65
|
});
|
|
66
66
|
return;
|
|
67
67
|
}
|
|
68
|
-
Object.entries(
|
|
69
|
-
ke(
|
|
68
|
+
Object.entries(a).forEach(([l, c]) => {
|
|
69
|
+
ke(c, Ne(t, l), r, n);
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
72
|
}, Ne = (e, t) => {
|
|
@@ -78,8 +78,8 @@ const Ce = "-", Be = (e) => {
|
|
|
78
78
|
}), r = r.nextPart.get(n);
|
|
79
79
|
}), r;
|
|
80
80
|
}, Fe = (e) => e.isThemeGetter, Ue = (e, t) => t ? e.map(([r, n]) => {
|
|
81
|
-
const
|
|
82
|
-
return [r,
|
|
81
|
+
const a = n.map((l) => typeof l == "string" ? t + l : typeof l == "object" ? Object.fromEntries(Object.entries(l).map(([c, s]) => [t + c, s])) : l);
|
|
82
|
+
return [r, a];
|
|
83
83
|
}) : e, We = (e) => {
|
|
84
84
|
if (e < 1)
|
|
85
85
|
return {
|
|
@@ -89,54 +89,54 @@ const Ce = "-", Be = (e) => {
|
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
91
|
let t = 0, r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
|
|
92
|
-
const
|
|
93
|
-
r.set(
|
|
92
|
+
const a = (l, c) => {
|
|
93
|
+
r.set(l, c), t++, t > e && (t = 0, n = r, r = /* @__PURE__ */ new Map());
|
|
94
94
|
};
|
|
95
95
|
return {
|
|
96
|
-
get(
|
|
97
|
-
let
|
|
98
|
-
if (
|
|
99
|
-
return
|
|
100
|
-
if ((
|
|
101
|
-
return l
|
|
96
|
+
get(l) {
|
|
97
|
+
let c = r.get(l);
|
|
98
|
+
if (c !== void 0)
|
|
99
|
+
return c;
|
|
100
|
+
if ((c = n.get(l)) !== void 0)
|
|
101
|
+
return a(l, c), c;
|
|
102
102
|
},
|
|
103
|
-
set(
|
|
104
|
-
r.has(
|
|
103
|
+
set(l, c) {
|
|
104
|
+
r.has(l) ? r.set(l, c) : a(l, c);
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
107
|
}, Ve = "!", Ze = (e) => {
|
|
108
108
|
const {
|
|
109
109
|
separator: t,
|
|
110
110
|
experimentalParseClassName: r
|
|
111
|
-
} = e, n = t.length === 1,
|
|
111
|
+
} = e, n = t.length === 1, a = t[0], l = t.length, c = (s) => {
|
|
112
112
|
const p = [];
|
|
113
|
-
let f = 0,
|
|
114
|
-
for (let
|
|
115
|
-
let
|
|
113
|
+
let f = 0, v = 0, w;
|
|
114
|
+
for (let b = 0; b < s.length; b++) {
|
|
115
|
+
let $ = s[b];
|
|
116
116
|
if (f === 0) {
|
|
117
|
-
if (
|
|
118
|
-
p.push(s.slice(
|
|
117
|
+
if ($ === a && (n || s.slice(b, b + l) === t)) {
|
|
118
|
+
p.push(s.slice(v, b)), v = b + l;
|
|
119
119
|
continue;
|
|
120
120
|
}
|
|
121
|
-
if (
|
|
122
|
-
|
|
121
|
+
if ($ === "/") {
|
|
122
|
+
w = b;
|
|
123
123
|
continue;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
$ === "[" ? f++ : $ === "]" && f--;
|
|
127
127
|
}
|
|
128
|
-
const
|
|
128
|
+
const C = p.length === 0 ? s : s.substring(v), h = C.startsWith(Ve), i = h ? C.substring(1) : C, d = w && w > v ? w - v : void 0;
|
|
129
129
|
return {
|
|
130
130
|
modifiers: p,
|
|
131
|
-
hasImportantModifier:
|
|
132
|
-
baseClassName:
|
|
133
|
-
maybePostfixModifierPosition:
|
|
131
|
+
hasImportantModifier: h,
|
|
132
|
+
baseClassName: i,
|
|
133
|
+
maybePostfixModifierPosition: d
|
|
134
134
|
};
|
|
135
135
|
};
|
|
136
136
|
return r ? (s) => r({
|
|
137
137
|
className: s,
|
|
138
|
-
parseClassName:
|
|
139
|
-
}) :
|
|
138
|
+
parseClassName: c
|
|
139
|
+
}) : c;
|
|
140
140
|
}, Ke = (e) => {
|
|
141
141
|
if (e.length <= 1)
|
|
142
142
|
return e;
|
|
@@ -153,36 +153,36 @@ const Ce = "-", Be = (e) => {
|
|
|
153
153
|
const {
|
|
154
154
|
parseClassName: r,
|
|
155
155
|
getClassGroupId: n,
|
|
156
|
-
getConflictingClassGroupIds:
|
|
157
|
-
} = t,
|
|
156
|
+
getConflictingClassGroupIds: a
|
|
157
|
+
} = t, l = [], c = e.trim().split(Je);
|
|
158
158
|
let s = "";
|
|
159
|
-
for (let p =
|
|
160
|
-
const f =
|
|
161
|
-
modifiers:
|
|
162
|
-
hasImportantModifier:
|
|
163
|
-
baseClassName:
|
|
164
|
-
maybePostfixModifierPosition:
|
|
159
|
+
for (let p = c.length - 1; p >= 0; p -= 1) {
|
|
160
|
+
const f = c[p], {
|
|
161
|
+
modifiers: v,
|
|
162
|
+
hasImportantModifier: w,
|
|
163
|
+
baseClassName: C,
|
|
164
|
+
maybePostfixModifierPosition: h
|
|
165
165
|
} = r(f);
|
|
166
|
-
let
|
|
167
|
-
if (!
|
|
168
|
-
if (!
|
|
166
|
+
let i = !!h, d = n(i ? C.substring(0, h) : C);
|
|
167
|
+
if (!d) {
|
|
168
|
+
if (!i) {
|
|
169
169
|
s = f + (s.length > 0 ? " " + s : s);
|
|
170
170
|
continue;
|
|
171
171
|
}
|
|
172
|
-
if (
|
|
172
|
+
if (d = n(C), !d) {
|
|
173
173
|
s = f + (s.length > 0 ? " " + s : s);
|
|
174
174
|
continue;
|
|
175
175
|
}
|
|
176
|
-
|
|
176
|
+
i = !1;
|
|
177
177
|
}
|
|
178
|
-
const
|
|
179
|
-
if (
|
|
178
|
+
const b = Ke(v).join(":"), $ = w ? b + Ve : b, L = $ + d;
|
|
179
|
+
if (l.includes(L))
|
|
180
180
|
continue;
|
|
181
|
-
|
|
182
|
-
const E =
|
|
181
|
+
l.push(L);
|
|
182
|
+
const E = a(d, i);
|
|
183
183
|
for (let j = 0; j < E.length; ++j) {
|
|
184
184
|
const H = E[j];
|
|
185
|
-
|
|
185
|
+
l.push($ + H);
|
|
186
186
|
}
|
|
187
187
|
s = f + (s.length > 0 ? " " + s : s);
|
|
188
188
|
}
|
|
@@ -203,26 +203,26 @@ const Ie = (e) => {
|
|
|
203
203
|
return r;
|
|
204
204
|
};
|
|
205
205
|
function et(e, ...t) {
|
|
206
|
-
let r, n,
|
|
207
|
-
function
|
|
208
|
-
const f = t.reduce((
|
|
209
|
-
return r = qe(f), n = r.cache.get,
|
|
206
|
+
let r, n, a, l = c;
|
|
207
|
+
function c(p) {
|
|
208
|
+
const f = t.reduce((v, w) => w(v), e());
|
|
209
|
+
return r = qe(f), n = r.cache.get, a = r.cache.set, l = s, s(p);
|
|
210
210
|
}
|
|
211
211
|
function s(p) {
|
|
212
212
|
const f = n(p);
|
|
213
213
|
if (f)
|
|
214
214
|
return f;
|
|
215
|
-
const
|
|
216
|
-
return
|
|
215
|
+
const v = Qe(p, r);
|
|
216
|
+
return a(p, v), v;
|
|
217
217
|
}
|
|
218
218
|
return function() {
|
|
219
|
-
return
|
|
219
|
+
return l(Xe.apply(null, arguments));
|
|
220
220
|
};
|
|
221
221
|
}
|
|
222
222
|
const O = (e) => {
|
|
223
223
|
const t = (r) => r[e] || [];
|
|
224
224
|
return t.isThemeGetter = !0, t;
|
|
225
|
-
}, Ae = /^\[(?:([a-z-]+):)?(.+)\]$/i, tt = /^\d+\/\d+$/, rt = /* @__PURE__ */ new Set(["px", "full", "screen"]), nt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ot = /\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$/, st = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, at = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, lt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Q = (e) => le(e) || rt.has(e) || tt.test(e), ee = (e) => ie(e, "length", mt), le = (e) => !!e && !Number.isNaN(Number(e)), xe = (e) => ie(e, "number", le), ue = (e) => !!e && Number.isInteger(Number(e)), it = (e) => e.endsWith("%") && le(e.slice(0, -1)),
|
|
225
|
+
}, Ae = /^\[(?:([a-z-]+):)?(.+)\]$/i, tt = /^\d+\/\d+$/, rt = /* @__PURE__ */ new Set(["px", "full", "screen"]), nt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ot = /\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$/, st = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, at = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, lt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Q = (e) => le(e) || rt.has(e) || tt.test(e), ee = (e) => ie(e, "length", mt), le = (e) => !!e && !Number.isNaN(Number(e)), xe = (e) => ie(e, "number", le), ue = (e) => !!e && Number.isInteger(Number(e)), it = (e) => e.endsWith("%") && le(e.slice(0, -1)), z = (e) => Ae.test(e), te = (e) => nt.test(e), ct = /* @__PURE__ */ new Set(["length", "size", "percentage"]), dt = (e) => ie(e, ct, je), ut = (e) => ie(e, "position", je), gt = /* @__PURE__ */ new Set(["image", "url"]), ft = (e) => ie(e, gt, ht), bt = (e) => ie(e, "", pt), ge = () => !0, ie = (e, t, r) => {
|
|
226
226
|
const n = Ae.exec(e);
|
|
227
227
|
return n ? n[1] ? typeof t == "string" ? n[1] === t : t.has(n[1]) : r(n[2]) : !1;
|
|
228
228
|
}, mt = (e) => (
|
|
@@ -231,33 +231,33 @@ const O = (e) => {
|
|
|
231
231
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
232
232
|
ot.test(e) && !st.test(e)
|
|
233
233
|
), je = () => !1, pt = (e) => at.test(e), ht = (e) => lt.test(e), xt = () => {
|
|
234
|
-
const e = O("colors"), t = O("spacing"), r = O("blur"), n = O("brightness"),
|
|
234
|
+
const e = O("colors"), t = O("spacing"), r = O("blur"), n = O("brightness"), a = O("borderColor"), l = O("borderRadius"), c = O("borderSpacing"), s = O("borderWidth"), p = O("contrast"), f = O("grayscale"), v = O("hueRotate"), w = O("invert"), C = O("gap"), h = O("gradientColorStops"), i = O("gradientColorStopPositions"), d = O("inset"), b = O("margin"), $ = O("opacity"), L = O("padding"), E = O("saturate"), j = O("scale"), H = O("sepia"), T = O("skew"), U = O("space"), q = O("translate"), G = () => ["auto", "contain", "none"], S = () => ["auto", "hidden", "clip", "visible", "scroll"], y = () => ["auto", z, t], _ = () => [z, t], Z = () => ["", Q, ee], m = () => ["auto", le, z], g = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], u = () => ["solid", "dashed", "dotted", "double", "none"], k = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], x = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], N = () => ["", "0", z], D = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], I = () => [le, z];
|
|
235
235
|
return {
|
|
236
236
|
cacheSize: 500,
|
|
237
237
|
separator: ":",
|
|
238
238
|
theme: {
|
|
239
239
|
colors: [ge],
|
|
240
240
|
spacing: [Q, ee],
|
|
241
|
-
blur: ["none", "", te,
|
|
241
|
+
blur: ["none", "", te, z],
|
|
242
242
|
brightness: I(),
|
|
243
243
|
borderColor: [e],
|
|
244
|
-
borderRadius: ["none", "", "full", te,
|
|
244
|
+
borderRadius: ["none", "", "full", te, z],
|
|
245
245
|
borderSpacing: _(),
|
|
246
|
-
borderWidth:
|
|
246
|
+
borderWidth: Z(),
|
|
247
247
|
contrast: I(),
|
|
248
|
-
grayscale:
|
|
248
|
+
grayscale: N(),
|
|
249
249
|
hueRotate: I(),
|
|
250
|
-
invert:
|
|
250
|
+
invert: N(),
|
|
251
251
|
gap: _(),
|
|
252
252
|
gradientColorStops: [e],
|
|
253
253
|
gradientColorStopPositions: [it, ee],
|
|
254
|
-
inset:
|
|
255
|
-
margin:
|
|
254
|
+
inset: y(),
|
|
255
|
+
margin: y(),
|
|
256
256
|
opacity: I(),
|
|
257
257
|
padding: _(),
|
|
258
258
|
saturate: I(),
|
|
259
259
|
scale: I(),
|
|
260
|
-
sepia:
|
|
260
|
+
sepia: N(),
|
|
261
261
|
skew: I(),
|
|
262
262
|
space: _(),
|
|
263
263
|
translate: _()
|
|
@@ -269,7 +269,7 @@ const O = (e) => {
|
|
|
269
269
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
270
270
|
*/
|
|
271
271
|
aspect: [{
|
|
272
|
-
aspect: ["auto", "square", "video",
|
|
272
|
+
aspect: ["auto", "square", "video", z]
|
|
273
273
|
}],
|
|
274
274
|
/**
|
|
275
275
|
* Container
|
|
@@ -288,14 +288,14 @@ const O = (e) => {
|
|
|
288
288
|
* @see https://tailwindcss.com/docs/break-after
|
|
289
289
|
*/
|
|
290
290
|
"break-after": [{
|
|
291
|
-
"break-after":
|
|
291
|
+
"break-after": D()
|
|
292
292
|
}],
|
|
293
293
|
/**
|
|
294
294
|
* Break Before
|
|
295
295
|
* @see https://tailwindcss.com/docs/break-before
|
|
296
296
|
*/
|
|
297
297
|
"break-before": [{
|
|
298
|
-
"break-before":
|
|
298
|
+
"break-before": D()
|
|
299
299
|
}],
|
|
300
300
|
/**
|
|
301
301
|
* Break Inside
|
|
@@ -354,28 +354,28 @@ const O = (e) => {
|
|
|
354
354
|
* @see https://tailwindcss.com/docs/object-position
|
|
355
355
|
*/
|
|
356
356
|
"object-position": [{
|
|
357
|
-
object: [...g(),
|
|
357
|
+
object: [...g(), z]
|
|
358
358
|
}],
|
|
359
359
|
/**
|
|
360
360
|
* Overflow
|
|
361
361
|
* @see https://tailwindcss.com/docs/overflow
|
|
362
362
|
*/
|
|
363
363
|
overflow: [{
|
|
364
|
-
overflow:
|
|
364
|
+
overflow: S()
|
|
365
365
|
}],
|
|
366
366
|
/**
|
|
367
367
|
* Overflow X
|
|
368
368
|
* @see https://tailwindcss.com/docs/overflow
|
|
369
369
|
*/
|
|
370
370
|
"overflow-x": [{
|
|
371
|
-
"overflow-x":
|
|
371
|
+
"overflow-x": S()
|
|
372
372
|
}],
|
|
373
373
|
/**
|
|
374
374
|
* Overflow Y
|
|
375
375
|
* @see https://tailwindcss.com/docs/overflow
|
|
376
376
|
*/
|
|
377
377
|
"overflow-y": [{
|
|
378
|
-
"overflow-y":
|
|
378
|
+
"overflow-y": S()
|
|
379
379
|
}],
|
|
380
380
|
/**
|
|
381
381
|
* Overscroll Behavior
|
|
@@ -408,63 +408,63 @@ const O = (e) => {
|
|
|
408
408
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
409
409
|
*/
|
|
410
410
|
inset: [{
|
|
411
|
-
inset: [
|
|
411
|
+
inset: [d]
|
|
412
412
|
}],
|
|
413
413
|
/**
|
|
414
414
|
* Right / Left
|
|
415
415
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
416
416
|
*/
|
|
417
417
|
"inset-x": [{
|
|
418
|
-
"inset-x": [
|
|
418
|
+
"inset-x": [d]
|
|
419
419
|
}],
|
|
420
420
|
/**
|
|
421
421
|
* Top / Bottom
|
|
422
422
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
423
423
|
*/
|
|
424
424
|
"inset-y": [{
|
|
425
|
-
"inset-y": [
|
|
425
|
+
"inset-y": [d]
|
|
426
426
|
}],
|
|
427
427
|
/**
|
|
428
428
|
* Start
|
|
429
429
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
430
430
|
*/
|
|
431
431
|
start: [{
|
|
432
|
-
start: [
|
|
432
|
+
start: [d]
|
|
433
433
|
}],
|
|
434
434
|
/**
|
|
435
435
|
* End
|
|
436
436
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
437
437
|
*/
|
|
438
438
|
end: [{
|
|
439
|
-
end: [
|
|
439
|
+
end: [d]
|
|
440
440
|
}],
|
|
441
441
|
/**
|
|
442
442
|
* Top
|
|
443
443
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
444
444
|
*/
|
|
445
445
|
top: [{
|
|
446
|
-
top: [
|
|
446
|
+
top: [d]
|
|
447
447
|
}],
|
|
448
448
|
/**
|
|
449
449
|
* Right
|
|
450
450
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
451
451
|
*/
|
|
452
452
|
right: [{
|
|
453
|
-
right: [
|
|
453
|
+
right: [d]
|
|
454
454
|
}],
|
|
455
455
|
/**
|
|
456
456
|
* Bottom
|
|
457
457
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
458
458
|
*/
|
|
459
459
|
bottom: [{
|
|
460
|
-
bottom: [
|
|
460
|
+
bottom: [d]
|
|
461
461
|
}],
|
|
462
462
|
/**
|
|
463
463
|
* Left
|
|
464
464
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
465
465
|
*/
|
|
466
466
|
left: [{
|
|
467
|
-
left: [
|
|
467
|
+
left: [d]
|
|
468
468
|
}],
|
|
469
469
|
/**
|
|
470
470
|
* Visibility
|
|
@@ -476,7 +476,7 @@ const O = (e) => {
|
|
|
476
476
|
* @see https://tailwindcss.com/docs/z-index
|
|
477
477
|
*/
|
|
478
478
|
z: [{
|
|
479
|
-
z: ["auto", ue,
|
|
479
|
+
z: ["auto", ue, z]
|
|
480
480
|
}],
|
|
481
481
|
// Flexbox and Grid
|
|
482
482
|
/**
|
|
@@ -484,7 +484,7 @@ const O = (e) => {
|
|
|
484
484
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
485
485
|
*/
|
|
486
486
|
basis: [{
|
|
487
|
-
basis:
|
|
487
|
+
basis: y()
|
|
488
488
|
}],
|
|
489
489
|
/**
|
|
490
490
|
* Flex Direction
|
|
@@ -505,28 +505,28 @@ const O = (e) => {
|
|
|
505
505
|
* @see https://tailwindcss.com/docs/flex
|
|
506
506
|
*/
|
|
507
507
|
flex: [{
|
|
508
|
-
flex: ["1", "auto", "initial", "none",
|
|
508
|
+
flex: ["1", "auto", "initial", "none", z]
|
|
509
509
|
}],
|
|
510
510
|
/**
|
|
511
511
|
* Flex Grow
|
|
512
512
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
513
513
|
*/
|
|
514
514
|
grow: [{
|
|
515
|
-
grow:
|
|
515
|
+
grow: N()
|
|
516
516
|
}],
|
|
517
517
|
/**
|
|
518
518
|
* Flex Shrink
|
|
519
519
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
520
520
|
*/
|
|
521
521
|
shrink: [{
|
|
522
|
-
shrink:
|
|
522
|
+
shrink: N()
|
|
523
523
|
}],
|
|
524
524
|
/**
|
|
525
525
|
* Order
|
|
526
526
|
* @see https://tailwindcss.com/docs/order
|
|
527
527
|
*/
|
|
528
528
|
order: [{
|
|
529
|
-
order: ["first", "last", "none", ue,
|
|
529
|
+
order: ["first", "last", "none", ue, z]
|
|
530
530
|
}],
|
|
531
531
|
/**
|
|
532
532
|
* Grid Template Columns
|
|
@@ -541,22 +541,22 @@ const O = (e) => {
|
|
|
541
541
|
*/
|
|
542
542
|
"col-start-end": [{
|
|
543
543
|
col: ["auto", {
|
|
544
|
-
span: ["full", ue,
|
|
545
|
-
},
|
|
544
|
+
span: ["full", ue, z]
|
|
545
|
+
}, z]
|
|
546
546
|
}],
|
|
547
547
|
/**
|
|
548
548
|
* Grid Column Start
|
|
549
549
|
* @see https://tailwindcss.com/docs/grid-column
|
|
550
550
|
*/
|
|
551
551
|
"col-start": [{
|
|
552
|
-
"col-start":
|
|
552
|
+
"col-start": m()
|
|
553
553
|
}],
|
|
554
554
|
/**
|
|
555
555
|
* Grid Column End
|
|
556
556
|
* @see https://tailwindcss.com/docs/grid-column
|
|
557
557
|
*/
|
|
558
558
|
"col-end": [{
|
|
559
|
-
"col-end":
|
|
559
|
+
"col-end": m()
|
|
560
560
|
}],
|
|
561
561
|
/**
|
|
562
562
|
* Grid Template Rows
|
|
@@ -571,22 +571,22 @@ const O = (e) => {
|
|
|
571
571
|
*/
|
|
572
572
|
"row-start-end": [{
|
|
573
573
|
row: ["auto", {
|
|
574
|
-
span: [ue,
|
|
575
|
-
},
|
|
574
|
+
span: [ue, z]
|
|
575
|
+
}, z]
|
|
576
576
|
}],
|
|
577
577
|
/**
|
|
578
578
|
* Grid Row Start
|
|
579
579
|
* @see https://tailwindcss.com/docs/grid-row
|
|
580
580
|
*/
|
|
581
581
|
"row-start": [{
|
|
582
|
-
"row-start":
|
|
582
|
+
"row-start": m()
|
|
583
583
|
}],
|
|
584
584
|
/**
|
|
585
585
|
* Grid Row End
|
|
586
586
|
* @see https://tailwindcss.com/docs/grid-row
|
|
587
587
|
*/
|
|
588
588
|
"row-end": [{
|
|
589
|
-
"row-end":
|
|
589
|
+
"row-end": m()
|
|
590
590
|
}],
|
|
591
591
|
/**
|
|
592
592
|
* Grid Auto Flow
|
|
@@ -600,42 +600,42 @@ const O = (e) => {
|
|
|
600
600
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
601
601
|
*/
|
|
602
602
|
"auto-cols": [{
|
|
603
|
-
"auto-cols": ["auto", "min", "max", "fr",
|
|
603
|
+
"auto-cols": ["auto", "min", "max", "fr", z]
|
|
604
604
|
}],
|
|
605
605
|
/**
|
|
606
606
|
* Grid Auto Rows
|
|
607
607
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
608
608
|
*/
|
|
609
609
|
"auto-rows": [{
|
|
610
|
-
"auto-rows": ["auto", "min", "max", "fr",
|
|
610
|
+
"auto-rows": ["auto", "min", "max", "fr", z]
|
|
611
611
|
}],
|
|
612
612
|
/**
|
|
613
613
|
* Gap
|
|
614
614
|
* @see https://tailwindcss.com/docs/gap
|
|
615
615
|
*/
|
|
616
616
|
gap: [{
|
|
617
|
-
gap: [
|
|
617
|
+
gap: [C]
|
|
618
618
|
}],
|
|
619
619
|
/**
|
|
620
620
|
* Gap X
|
|
621
621
|
* @see https://tailwindcss.com/docs/gap
|
|
622
622
|
*/
|
|
623
623
|
"gap-x": [{
|
|
624
|
-
"gap-x": [
|
|
624
|
+
"gap-x": [C]
|
|
625
625
|
}],
|
|
626
626
|
/**
|
|
627
627
|
* Gap Y
|
|
628
628
|
* @see https://tailwindcss.com/docs/gap
|
|
629
629
|
*/
|
|
630
630
|
"gap-y": [{
|
|
631
|
-
"gap-y": [
|
|
631
|
+
"gap-y": [C]
|
|
632
632
|
}],
|
|
633
633
|
/**
|
|
634
634
|
* Justify Content
|
|
635
635
|
* @see https://tailwindcss.com/docs/justify-content
|
|
636
636
|
*/
|
|
637
637
|
"justify-content": [{
|
|
638
|
-
justify: ["normal", ...
|
|
638
|
+
justify: ["normal", ...x()]
|
|
639
639
|
}],
|
|
640
640
|
/**
|
|
641
641
|
* Justify Items
|
|
@@ -656,7 +656,7 @@ const O = (e) => {
|
|
|
656
656
|
* @see https://tailwindcss.com/docs/align-content
|
|
657
657
|
*/
|
|
658
658
|
"align-content": [{
|
|
659
|
-
content: ["normal", ...
|
|
659
|
+
content: ["normal", ...x(), "baseline"]
|
|
660
660
|
}],
|
|
661
661
|
/**
|
|
662
662
|
* Align Items
|
|
@@ -677,7 +677,7 @@ const O = (e) => {
|
|
|
677
677
|
* @see https://tailwindcss.com/docs/place-content
|
|
678
678
|
*/
|
|
679
679
|
"place-content": [{
|
|
680
|
-
"place-content": [...
|
|
680
|
+
"place-content": [...x(), "baseline"]
|
|
681
681
|
}],
|
|
682
682
|
/**
|
|
683
683
|
* Place Items
|
|
@@ -699,133 +699,133 @@ const O = (e) => {
|
|
|
699
699
|
* @see https://tailwindcss.com/docs/padding
|
|
700
700
|
*/
|
|
701
701
|
p: [{
|
|
702
|
-
p: [
|
|
702
|
+
p: [L]
|
|
703
703
|
}],
|
|
704
704
|
/**
|
|
705
705
|
* Padding X
|
|
706
706
|
* @see https://tailwindcss.com/docs/padding
|
|
707
707
|
*/
|
|
708
708
|
px: [{
|
|
709
|
-
px: [
|
|
709
|
+
px: [L]
|
|
710
710
|
}],
|
|
711
711
|
/**
|
|
712
712
|
* Padding Y
|
|
713
713
|
* @see https://tailwindcss.com/docs/padding
|
|
714
714
|
*/
|
|
715
715
|
py: [{
|
|
716
|
-
py: [
|
|
716
|
+
py: [L]
|
|
717
717
|
}],
|
|
718
718
|
/**
|
|
719
719
|
* Padding Start
|
|
720
720
|
* @see https://tailwindcss.com/docs/padding
|
|
721
721
|
*/
|
|
722
722
|
ps: [{
|
|
723
|
-
ps: [
|
|
723
|
+
ps: [L]
|
|
724
724
|
}],
|
|
725
725
|
/**
|
|
726
726
|
* Padding End
|
|
727
727
|
* @see https://tailwindcss.com/docs/padding
|
|
728
728
|
*/
|
|
729
729
|
pe: [{
|
|
730
|
-
pe: [
|
|
730
|
+
pe: [L]
|
|
731
731
|
}],
|
|
732
732
|
/**
|
|
733
733
|
* Padding Top
|
|
734
734
|
* @see https://tailwindcss.com/docs/padding
|
|
735
735
|
*/
|
|
736
736
|
pt: [{
|
|
737
|
-
pt: [
|
|
737
|
+
pt: [L]
|
|
738
738
|
}],
|
|
739
739
|
/**
|
|
740
740
|
* Padding Right
|
|
741
741
|
* @see https://tailwindcss.com/docs/padding
|
|
742
742
|
*/
|
|
743
743
|
pr: [{
|
|
744
|
-
pr: [
|
|
744
|
+
pr: [L]
|
|
745
745
|
}],
|
|
746
746
|
/**
|
|
747
747
|
* Padding Bottom
|
|
748
748
|
* @see https://tailwindcss.com/docs/padding
|
|
749
749
|
*/
|
|
750
750
|
pb: [{
|
|
751
|
-
pb: [
|
|
751
|
+
pb: [L]
|
|
752
752
|
}],
|
|
753
753
|
/**
|
|
754
754
|
* Padding Left
|
|
755
755
|
* @see https://tailwindcss.com/docs/padding
|
|
756
756
|
*/
|
|
757
757
|
pl: [{
|
|
758
|
-
pl: [
|
|
758
|
+
pl: [L]
|
|
759
759
|
}],
|
|
760
760
|
/**
|
|
761
761
|
* Margin
|
|
762
762
|
* @see https://tailwindcss.com/docs/margin
|
|
763
763
|
*/
|
|
764
764
|
m: [{
|
|
765
|
-
m: [
|
|
765
|
+
m: [b]
|
|
766
766
|
}],
|
|
767
767
|
/**
|
|
768
768
|
* Margin X
|
|
769
769
|
* @see https://tailwindcss.com/docs/margin
|
|
770
770
|
*/
|
|
771
771
|
mx: [{
|
|
772
|
-
mx: [
|
|
772
|
+
mx: [b]
|
|
773
773
|
}],
|
|
774
774
|
/**
|
|
775
775
|
* Margin Y
|
|
776
776
|
* @see https://tailwindcss.com/docs/margin
|
|
777
777
|
*/
|
|
778
778
|
my: [{
|
|
779
|
-
my: [
|
|
779
|
+
my: [b]
|
|
780
780
|
}],
|
|
781
781
|
/**
|
|
782
782
|
* Margin Start
|
|
783
783
|
* @see https://tailwindcss.com/docs/margin
|
|
784
784
|
*/
|
|
785
785
|
ms: [{
|
|
786
|
-
ms: [
|
|
786
|
+
ms: [b]
|
|
787
787
|
}],
|
|
788
788
|
/**
|
|
789
789
|
* Margin End
|
|
790
790
|
* @see https://tailwindcss.com/docs/margin
|
|
791
791
|
*/
|
|
792
792
|
me: [{
|
|
793
|
-
me: [
|
|
793
|
+
me: [b]
|
|
794
794
|
}],
|
|
795
795
|
/**
|
|
796
796
|
* Margin Top
|
|
797
797
|
* @see https://tailwindcss.com/docs/margin
|
|
798
798
|
*/
|
|
799
799
|
mt: [{
|
|
800
|
-
mt: [
|
|
800
|
+
mt: [b]
|
|
801
801
|
}],
|
|
802
802
|
/**
|
|
803
803
|
* Margin Right
|
|
804
804
|
* @see https://tailwindcss.com/docs/margin
|
|
805
805
|
*/
|
|
806
806
|
mr: [{
|
|
807
|
-
mr: [
|
|
807
|
+
mr: [b]
|
|
808
808
|
}],
|
|
809
809
|
/**
|
|
810
810
|
* Margin Bottom
|
|
811
811
|
* @see https://tailwindcss.com/docs/margin
|
|
812
812
|
*/
|
|
813
813
|
mb: [{
|
|
814
|
-
mb: [
|
|
814
|
+
mb: [b]
|
|
815
815
|
}],
|
|
816
816
|
/**
|
|
817
817
|
* Margin Left
|
|
818
818
|
* @see https://tailwindcss.com/docs/margin
|
|
819
819
|
*/
|
|
820
820
|
ml: [{
|
|
821
|
-
ml: [
|
|
821
|
+
ml: [b]
|
|
822
822
|
}],
|
|
823
823
|
/**
|
|
824
824
|
* Space Between X
|
|
825
825
|
* @see https://tailwindcss.com/docs/space
|
|
826
826
|
*/
|
|
827
827
|
"space-x": [{
|
|
828
|
-
"space-x": [
|
|
828
|
+
"space-x": [U]
|
|
829
829
|
}],
|
|
830
830
|
/**
|
|
831
831
|
* Space Between X Reverse
|
|
@@ -837,7 +837,7 @@ const O = (e) => {
|
|
|
837
837
|
* @see https://tailwindcss.com/docs/space
|
|
838
838
|
*/
|
|
839
839
|
"space-y": [{
|
|
840
|
-
"space-y": [
|
|
840
|
+
"space-y": [U]
|
|
841
841
|
}],
|
|
842
842
|
/**
|
|
843
843
|
* Space Between Y Reverse
|
|
@@ -850,21 +850,21 @@ const O = (e) => {
|
|
|
850
850
|
* @see https://tailwindcss.com/docs/width
|
|
851
851
|
*/
|
|
852
852
|
w: [{
|
|
853
|
-
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw",
|
|
853
|
+
w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", z, t]
|
|
854
854
|
}],
|
|
855
855
|
/**
|
|
856
856
|
* Min-Width
|
|
857
857
|
* @see https://tailwindcss.com/docs/min-width
|
|
858
858
|
*/
|
|
859
859
|
"min-w": [{
|
|
860
|
-
"min-w": [
|
|
860
|
+
"min-w": [z, t, "min", "max", "fit"]
|
|
861
861
|
}],
|
|
862
862
|
/**
|
|
863
863
|
* Max-Width
|
|
864
864
|
* @see https://tailwindcss.com/docs/max-width
|
|
865
865
|
*/
|
|
866
866
|
"max-w": [{
|
|
867
|
-
"max-w": [
|
|
867
|
+
"max-w": [z, t, "none", "full", "min", "max", "fit", "prose", {
|
|
868
868
|
screen: [te]
|
|
869
869
|
}, te]
|
|
870
870
|
}],
|
|
@@ -873,28 +873,28 @@ const O = (e) => {
|
|
|
873
873
|
* @see https://tailwindcss.com/docs/height
|
|
874
874
|
*/
|
|
875
875
|
h: [{
|
|
876
|
-
h: [
|
|
876
|
+
h: [z, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
877
877
|
}],
|
|
878
878
|
/**
|
|
879
879
|
* Min-Height
|
|
880
880
|
* @see https://tailwindcss.com/docs/min-height
|
|
881
881
|
*/
|
|
882
882
|
"min-h": [{
|
|
883
|
-
"min-h": [
|
|
883
|
+
"min-h": [z, t, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
884
884
|
}],
|
|
885
885
|
/**
|
|
886
886
|
* Max-Height
|
|
887
887
|
* @see https://tailwindcss.com/docs/max-height
|
|
888
888
|
*/
|
|
889
889
|
"max-h": [{
|
|
890
|
-
"max-h": [
|
|
890
|
+
"max-h": [z, t, "min", "max", "fit", "svh", "lvh", "dvh"]
|
|
891
891
|
}],
|
|
892
892
|
/**
|
|
893
893
|
* Size
|
|
894
894
|
* @see https://tailwindcss.com/docs/size
|
|
895
895
|
*/
|
|
896
896
|
size: [{
|
|
897
|
-
size: [
|
|
897
|
+
size: [z, t, "auto", "min", "max", "fit"]
|
|
898
898
|
}],
|
|
899
899
|
// Typography
|
|
900
900
|
/**
|
|
@@ -963,7 +963,7 @@ const O = (e) => {
|
|
|
963
963
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
964
964
|
*/
|
|
965
965
|
tracking: [{
|
|
966
|
-
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest",
|
|
966
|
+
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", z]
|
|
967
967
|
}],
|
|
968
968
|
/**
|
|
969
969
|
* Line Clamp
|
|
@@ -977,21 +977,21 @@ const O = (e) => {
|
|
|
977
977
|
* @see https://tailwindcss.com/docs/line-height
|
|
978
978
|
*/
|
|
979
979
|
leading: [{
|
|
980
|
-
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", Q,
|
|
980
|
+
leading: ["none", "tight", "snug", "normal", "relaxed", "loose", Q, z]
|
|
981
981
|
}],
|
|
982
982
|
/**
|
|
983
983
|
* List Style Image
|
|
984
984
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
985
985
|
*/
|
|
986
986
|
"list-image": [{
|
|
987
|
-
"list-image": ["none",
|
|
987
|
+
"list-image": ["none", z]
|
|
988
988
|
}],
|
|
989
989
|
/**
|
|
990
990
|
* List Style Type
|
|
991
991
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
992
992
|
*/
|
|
993
993
|
"list-style-type": [{
|
|
994
|
-
list: ["none", "disc", "decimal",
|
|
994
|
+
list: ["none", "disc", "decimal", z]
|
|
995
995
|
}],
|
|
996
996
|
/**
|
|
997
997
|
* List Style Position
|
|
@@ -1013,7 +1013,7 @@ const O = (e) => {
|
|
|
1013
1013
|
* @see https://tailwindcss.com/docs/placeholder-opacity
|
|
1014
1014
|
*/
|
|
1015
1015
|
"placeholder-opacity": [{
|
|
1016
|
-
"placeholder-opacity": [
|
|
1016
|
+
"placeholder-opacity": [$]
|
|
1017
1017
|
}],
|
|
1018
1018
|
/**
|
|
1019
1019
|
* Text Alignment
|
|
@@ -1034,7 +1034,7 @@ const O = (e) => {
|
|
|
1034
1034
|
* @see https://tailwindcss.com/docs/text-opacity
|
|
1035
1035
|
*/
|
|
1036
1036
|
"text-opacity": [{
|
|
1037
|
-
"text-opacity": [
|
|
1037
|
+
"text-opacity": [$]
|
|
1038
1038
|
}],
|
|
1039
1039
|
/**
|
|
1040
1040
|
* Text Decoration
|
|
@@ -1060,7 +1060,7 @@ const O = (e) => {
|
|
|
1060
1060
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1061
1061
|
*/
|
|
1062
1062
|
"underline-offset": [{
|
|
1063
|
-
"underline-offset": ["auto", Q,
|
|
1063
|
+
"underline-offset": ["auto", Q, z]
|
|
1064
1064
|
}],
|
|
1065
1065
|
/**
|
|
1066
1066
|
* Text Decoration Color
|
|
@@ -1098,7 +1098,7 @@ const O = (e) => {
|
|
|
1098
1098
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1099
1099
|
*/
|
|
1100
1100
|
"vertical-align": [{
|
|
1101
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1101
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", z]
|
|
1102
1102
|
}],
|
|
1103
1103
|
/**
|
|
1104
1104
|
* Whitespace
|
|
@@ -1126,7 +1126,7 @@ const O = (e) => {
|
|
|
1126
1126
|
* @see https://tailwindcss.com/docs/content
|
|
1127
1127
|
*/
|
|
1128
1128
|
content: [{
|
|
1129
|
-
content: ["none",
|
|
1129
|
+
content: ["none", z]
|
|
1130
1130
|
}],
|
|
1131
1131
|
// Backgrounds
|
|
1132
1132
|
/**
|
|
@@ -1149,7 +1149,7 @@ const O = (e) => {
|
|
|
1149
1149
|
* @see https://tailwindcss.com/docs/background-opacity
|
|
1150
1150
|
*/
|
|
1151
1151
|
"bg-opacity": [{
|
|
1152
|
-
"bg-opacity": [
|
|
1152
|
+
"bg-opacity": [$]
|
|
1153
1153
|
}],
|
|
1154
1154
|
/**
|
|
1155
1155
|
* Background Origin
|
|
@@ -1202,42 +1202,42 @@ const O = (e) => {
|
|
|
1202
1202
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1203
1203
|
*/
|
|
1204
1204
|
"gradient-from-pos": [{
|
|
1205
|
-
from: [
|
|
1205
|
+
from: [i]
|
|
1206
1206
|
}],
|
|
1207
1207
|
/**
|
|
1208
1208
|
* Gradient Color Stops Via Position
|
|
1209
1209
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1210
1210
|
*/
|
|
1211
1211
|
"gradient-via-pos": [{
|
|
1212
|
-
via: [
|
|
1212
|
+
via: [i]
|
|
1213
1213
|
}],
|
|
1214
1214
|
/**
|
|
1215
1215
|
* Gradient Color Stops To Position
|
|
1216
1216
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1217
1217
|
*/
|
|
1218
1218
|
"gradient-to-pos": [{
|
|
1219
|
-
to: [
|
|
1219
|
+
to: [i]
|
|
1220
1220
|
}],
|
|
1221
1221
|
/**
|
|
1222
1222
|
* Gradient Color Stops From
|
|
1223
1223
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1224
1224
|
*/
|
|
1225
1225
|
"gradient-from": [{
|
|
1226
|
-
from: [
|
|
1226
|
+
from: [h]
|
|
1227
1227
|
}],
|
|
1228
1228
|
/**
|
|
1229
1229
|
* Gradient Color Stops Via
|
|
1230
1230
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1231
1231
|
*/
|
|
1232
1232
|
"gradient-via": [{
|
|
1233
|
-
via: [
|
|
1233
|
+
via: [h]
|
|
1234
1234
|
}],
|
|
1235
1235
|
/**
|
|
1236
1236
|
* Gradient Color Stops To
|
|
1237
1237
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1238
1238
|
*/
|
|
1239
1239
|
"gradient-to": [{
|
|
1240
|
-
to: [
|
|
1240
|
+
to: [h]
|
|
1241
1241
|
}],
|
|
1242
1242
|
// Borders
|
|
1243
1243
|
/**
|
|
@@ -1245,105 +1245,105 @@ const O = (e) => {
|
|
|
1245
1245
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1246
1246
|
*/
|
|
1247
1247
|
rounded: [{
|
|
1248
|
-
rounded: [
|
|
1248
|
+
rounded: [l]
|
|
1249
1249
|
}],
|
|
1250
1250
|
/**
|
|
1251
1251
|
* Border Radius Start
|
|
1252
1252
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1253
1253
|
*/
|
|
1254
1254
|
"rounded-s": [{
|
|
1255
|
-
"rounded-s": [
|
|
1255
|
+
"rounded-s": [l]
|
|
1256
1256
|
}],
|
|
1257
1257
|
/**
|
|
1258
1258
|
* Border Radius End
|
|
1259
1259
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1260
1260
|
*/
|
|
1261
1261
|
"rounded-e": [{
|
|
1262
|
-
"rounded-e": [
|
|
1262
|
+
"rounded-e": [l]
|
|
1263
1263
|
}],
|
|
1264
1264
|
/**
|
|
1265
1265
|
* Border Radius Top
|
|
1266
1266
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1267
1267
|
*/
|
|
1268
1268
|
"rounded-t": [{
|
|
1269
|
-
"rounded-t": [
|
|
1269
|
+
"rounded-t": [l]
|
|
1270
1270
|
}],
|
|
1271
1271
|
/**
|
|
1272
1272
|
* Border Radius Right
|
|
1273
1273
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1274
1274
|
*/
|
|
1275
1275
|
"rounded-r": [{
|
|
1276
|
-
"rounded-r": [
|
|
1276
|
+
"rounded-r": [l]
|
|
1277
1277
|
}],
|
|
1278
1278
|
/**
|
|
1279
1279
|
* Border Radius Bottom
|
|
1280
1280
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1281
1281
|
*/
|
|
1282
1282
|
"rounded-b": [{
|
|
1283
|
-
"rounded-b": [
|
|
1283
|
+
"rounded-b": [l]
|
|
1284
1284
|
}],
|
|
1285
1285
|
/**
|
|
1286
1286
|
* Border Radius Left
|
|
1287
1287
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1288
1288
|
*/
|
|
1289
1289
|
"rounded-l": [{
|
|
1290
|
-
"rounded-l": [
|
|
1290
|
+
"rounded-l": [l]
|
|
1291
1291
|
}],
|
|
1292
1292
|
/**
|
|
1293
1293
|
* Border Radius Start Start
|
|
1294
1294
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1295
1295
|
*/
|
|
1296
1296
|
"rounded-ss": [{
|
|
1297
|
-
"rounded-ss": [
|
|
1297
|
+
"rounded-ss": [l]
|
|
1298
1298
|
}],
|
|
1299
1299
|
/**
|
|
1300
1300
|
* Border Radius Start End
|
|
1301
1301
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1302
1302
|
*/
|
|
1303
1303
|
"rounded-se": [{
|
|
1304
|
-
"rounded-se": [
|
|
1304
|
+
"rounded-se": [l]
|
|
1305
1305
|
}],
|
|
1306
1306
|
/**
|
|
1307
1307
|
* Border Radius End End
|
|
1308
1308
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1309
1309
|
*/
|
|
1310
1310
|
"rounded-ee": [{
|
|
1311
|
-
"rounded-ee": [
|
|
1311
|
+
"rounded-ee": [l]
|
|
1312
1312
|
}],
|
|
1313
1313
|
/**
|
|
1314
1314
|
* Border Radius End Start
|
|
1315
1315
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1316
1316
|
*/
|
|
1317
1317
|
"rounded-es": [{
|
|
1318
|
-
"rounded-es": [
|
|
1318
|
+
"rounded-es": [l]
|
|
1319
1319
|
}],
|
|
1320
1320
|
/**
|
|
1321
1321
|
* Border Radius Top Left
|
|
1322
1322
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1323
1323
|
*/
|
|
1324
1324
|
"rounded-tl": [{
|
|
1325
|
-
"rounded-tl": [
|
|
1325
|
+
"rounded-tl": [l]
|
|
1326
1326
|
}],
|
|
1327
1327
|
/**
|
|
1328
1328
|
* Border Radius Top Right
|
|
1329
1329
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1330
1330
|
*/
|
|
1331
1331
|
"rounded-tr": [{
|
|
1332
|
-
"rounded-tr": [
|
|
1332
|
+
"rounded-tr": [l]
|
|
1333
1333
|
}],
|
|
1334
1334
|
/**
|
|
1335
1335
|
* Border Radius Bottom Right
|
|
1336
1336
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1337
1337
|
*/
|
|
1338
1338
|
"rounded-br": [{
|
|
1339
|
-
"rounded-br": [
|
|
1339
|
+
"rounded-br": [l]
|
|
1340
1340
|
}],
|
|
1341
1341
|
/**
|
|
1342
1342
|
* Border Radius Bottom Left
|
|
1343
1343
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1344
1344
|
*/
|
|
1345
1345
|
"rounded-bl": [{
|
|
1346
|
-
"rounded-bl": [
|
|
1346
|
+
"rounded-bl": [l]
|
|
1347
1347
|
}],
|
|
1348
1348
|
/**
|
|
1349
1349
|
* Border Width
|
|
@@ -1413,7 +1413,7 @@ const O = (e) => {
|
|
|
1413
1413
|
* @see https://tailwindcss.com/docs/border-opacity
|
|
1414
1414
|
*/
|
|
1415
1415
|
"border-opacity": [{
|
|
1416
|
-
"border-opacity": [
|
|
1416
|
+
"border-opacity": [$]
|
|
1417
1417
|
}],
|
|
1418
1418
|
/**
|
|
1419
1419
|
* Border Style
|
|
@@ -1451,7 +1451,7 @@ const O = (e) => {
|
|
|
1451
1451
|
* @see https://tailwindcss.com/docs/divide-opacity
|
|
1452
1452
|
*/
|
|
1453
1453
|
"divide-opacity": [{
|
|
1454
|
-
"divide-opacity": [
|
|
1454
|
+
"divide-opacity": [$]
|
|
1455
1455
|
}],
|
|
1456
1456
|
/**
|
|
1457
1457
|
* Divide Style
|
|
@@ -1465,70 +1465,70 @@ const O = (e) => {
|
|
|
1465
1465
|
* @see https://tailwindcss.com/docs/border-color
|
|
1466
1466
|
*/
|
|
1467
1467
|
"border-color": [{
|
|
1468
|
-
border: [
|
|
1468
|
+
border: [a]
|
|
1469
1469
|
}],
|
|
1470
1470
|
/**
|
|
1471
1471
|
* Border Color X
|
|
1472
1472
|
* @see https://tailwindcss.com/docs/border-color
|
|
1473
1473
|
*/
|
|
1474
1474
|
"border-color-x": [{
|
|
1475
|
-
"border-x": [
|
|
1475
|
+
"border-x": [a]
|
|
1476
1476
|
}],
|
|
1477
1477
|
/**
|
|
1478
1478
|
* Border Color Y
|
|
1479
1479
|
* @see https://tailwindcss.com/docs/border-color
|
|
1480
1480
|
*/
|
|
1481
1481
|
"border-color-y": [{
|
|
1482
|
-
"border-y": [
|
|
1482
|
+
"border-y": [a]
|
|
1483
1483
|
}],
|
|
1484
1484
|
/**
|
|
1485
1485
|
* Border Color S
|
|
1486
1486
|
* @see https://tailwindcss.com/docs/border-color
|
|
1487
1487
|
*/
|
|
1488
1488
|
"border-color-s": [{
|
|
1489
|
-
"border-s": [
|
|
1489
|
+
"border-s": [a]
|
|
1490
1490
|
}],
|
|
1491
1491
|
/**
|
|
1492
1492
|
* Border Color E
|
|
1493
1493
|
* @see https://tailwindcss.com/docs/border-color
|
|
1494
1494
|
*/
|
|
1495
1495
|
"border-color-e": [{
|
|
1496
|
-
"border-e": [
|
|
1496
|
+
"border-e": [a]
|
|
1497
1497
|
}],
|
|
1498
1498
|
/**
|
|
1499
1499
|
* Border Color Top
|
|
1500
1500
|
* @see https://tailwindcss.com/docs/border-color
|
|
1501
1501
|
*/
|
|
1502
1502
|
"border-color-t": [{
|
|
1503
|
-
"border-t": [
|
|
1503
|
+
"border-t": [a]
|
|
1504
1504
|
}],
|
|
1505
1505
|
/**
|
|
1506
1506
|
* Border Color Right
|
|
1507
1507
|
* @see https://tailwindcss.com/docs/border-color
|
|
1508
1508
|
*/
|
|
1509
1509
|
"border-color-r": [{
|
|
1510
|
-
"border-r": [
|
|
1510
|
+
"border-r": [a]
|
|
1511
1511
|
}],
|
|
1512
1512
|
/**
|
|
1513
1513
|
* Border Color Bottom
|
|
1514
1514
|
* @see https://tailwindcss.com/docs/border-color
|
|
1515
1515
|
*/
|
|
1516
1516
|
"border-color-b": [{
|
|
1517
|
-
"border-b": [
|
|
1517
|
+
"border-b": [a]
|
|
1518
1518
|
}],
|
|
1519
1519
|
/**
|
|
1520
1520
|
* Border Color Left
|
|
1521
1521
|
* @see https://tailwindcss.com/docs/border-color
|
|
1522
1522
|
*/
|
|
1523
1523
|
"border-color-l": [{
|
|
1524
|
-
"border-l": [
|
|
1524
|
+
"border-l": [a]
|
|
1525
1525
|
}],
|
|
1526
1526
|
/**
|
|
1527
1527
|
* Divide Color
|
|
1528
1528
|
* @see https://tailwindcss.com/docs/divide-color
|
|
1529
1529
|
*/
|
|
1530
1530
|
"divide-color": [{
|
|
1531
|
-
divide: [
|
|
1531
|
+
divide: [a]
|
|
1532
1532
|
}],
|
|
1533
1533
|
/**
|
|
1534
1534
|
* Outline Style
|
|
@@ -1542,7 +1542,7 @@ const O = (e) => {
|
|
|
1542
1542
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1543
1543
|
*/
|
|
1544
1544
|
"outline-offset": [{
|
|
1545
|
-
"outline-offset": [Q,
|
|
1545
|
+
"outline-offset": [Q, z]
|
|
1546
1546
|
}],
|
|
1547
1547
|
/**
|
|
1548
1548
|
* Outline Width
|
|
@@ -1563,7 +1563,7 @@ const O = (e) => {
|
|
|
1563
1563
|
* @see https://tailwindcss.com/docs/ring-width
|
|
1564
1564
|
*/
|
|
1565
1565
|
"ring-w": [{
|
|
1566
|
-
ring:
|
|
1566
|
+
ring: Z()
|
|
1567
1567
|
}],
|
|
1568
1568
|
/**
|
|
1569
1569
|
* Ring Width Inset
|
|
@@ -1582,7 +1582,7 @@ const O = (e) => {
|
|
|
1582
1582
|
* @see https://tailwindcss.com/docs/ring-opacity
|
|
1583
1583
|
*/
|
|
1584
1584
|
"ring-opacity": [{
|
|
1585
|
-
"ring-opacity": [
|
|
1585
|
+
"ring-opacity": [$]
|
|
1586
1586
|
}],
|
|
1587
1587
|
/**
|
|
1588
1588
|
* Ring Offset Width
|
|
@@ -1618,21 +1618,21 @@ const O = (e) => {
|
|
|
1618
1618
|
* @see https://tailwindcss.com/docs/opacity
|
|
1619
1619
|
*/
|
|
1620
1620
|
opacity: [{
|
|
1621
|
-
opacity: [
|
|
1621
|
+
opacity: [$]
|
|
1622
1622
|
}],
|
|
1623
1623
|
/**
|
|
1624
1624
|
* Mix Blend Mode
|
|
1625
1625
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1626
1626
|
*/
|
|
1627
1627
|
"mix-blend": [{
|
|
1628
|
-
"mix-blend": [...
|
|
1628
|
+
"mix-blend": [...k(), "plus-lighter", "plus-darker"]
|
|
1629
1629
|
}],
|
|
1630
1630
|
/**
|
|
1631
1631
|
* Background Blend Mode
|
|
1632
1632
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1633
1633
|
*/
|
|
1634
1634
|
"bg-blend": [{
|
|
1635
|
-
"bg-blend":
|
|
1635
|
+
"bg-blend": k()
|
|
1636
1636
|
}],
|
|
1637
1637
|
// Filters
|
|
1638
1638
|
/**
|
|
@@ -1669,7 +1669,7 @@ const O = (e) => {
|
|
|
1669
1669
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
1670
1670
|
*/
|
|
1671
1671
|
"drop-shadow": [{
|
|
1672
|
-
"drop-shadow": ["", "none", te,
|
|
1672
|
+
"drop-shadow": ["", "none", te, z]
|
|
1673
1673
|
}],
|
|
1674
1674
|
/**
|
|
1675
1675
|
* Grayscale
|
|
@@ -1683,14 +1683,14 @@ const O = (e) => {
|
|
|
1683
1683
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
1684
1684
|
*/
|
|
1685
1685
|
"hue-rotate": [{
|
|
1686
|
-
"hue-rotate": [
|
|
1686
|
+
"hue-rotate": [v]
|
|
1687
1687
|
}],
|
|
1688
1688
|
/**
|
|
1689
1689
|
* Invert
|
|
1690
1690
|
* @see https://tailwindcss.com/docs/invert
|
|
1691
1691
|
*/
|
|
1692
1692
|
invert: [{
|
|
1693
|
-
invert: [
|
|
1693
|
+
invert: [w]
|
|
1694
1694
|
}],
|
|
1695
1695
|
/**
|
|
1696
1696
|
* Saturate
|
|
@@ -1747,21 +1747,21 @@ const O = (e) => {
|
|
|
1747
1747
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
1748
1748
|
*/
|
|
1749
1749
|
"backdrop-hue-rotate": [{
|
|
1750
|
-
"backdrop-hue-rotate": [
|
|
1750
|
+
"backdrop-hue-rotate": [v]
|
|
1751
1751
|
}],
|
|
1752
1752
|
/**
|
|
1753
1753
|
* Backdrop Invert
|
|
1754
1754
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
1755
1755
|
*/
|
|
1756
1756
|
"backdrop-invert": [{
|
|
1757
|
-
"backdrop-invert": [
|
|
1757
|
+
"backdrop-invert": [w]
|
|
1758
1758
|
}],
|
|
1759
1759
|
/**
|
|
1760
1760
|
* Backdrop Opacity
|
|
1761
1761
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
1762
1762
|
*/
|
|
1763
1763
|
"backdrop-opacity": [{
|
|
1764
|
-
"backdrop-opacity": [
|
|
1764
|
+
"backdrop-opacity": [$]
|
|
1765
1765
|
}],
|
|
1766
1766
|
/**
|
|
1767
1767
|
* Backdrop Saturate
|
|
@@ -1790,21 +1790,21 @@ const O = (e) => {
|
|
|
1790
1790
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
1791
1791
|
*/
|
|
1792
1792
|
"border-spacing": [{
|
|
1793
|
-
"border-spacing": [
|
|
1793
|
+
"border-spacing": [c]
|
|
1794
1794
|
}],
|
|
1795
1795
|
/**
|
|
1796
1796
|
* Border Spacing X
|
|
1797
1797
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
1798
1798
|
*/
|
|
1799
1799
|
"border-spacing-x": [{
|
|
1800
|
-
"border-spacing-x": [
|
|
1800
|
+
"border-spacing-x": [c]
|
|
1801
1801
|
}],
|
|
1802
1802
|
/**
|
|
1803
1803
|
* Border Spacing Y
|
|
1804
1804
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
1805
1805
|
*/
|
|
1806
1806
|
"border-spacing-y": [{
|
|
1807
|
-
"border-spacing-y": [
|
|
1807
|
+
"border-spacing-y": [c]
|
|
1808
1808
|
}],
|
|
1809
1809
|
/**
|
|
1810
1810
|
* Table Layout
|
|
@@ -1826,7 +1826,7 @@ const O = (e) => {
|
|
|
1826
1826
|
* @see https://tailwindcss.com/docs/transition-property
|
|
1827
1827
|
*/
|
|
1828
1828
|
transition: [{
|
|
1829
|
-
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform",
|
|
1829
|
+
transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", z]
|
|
1830
1830
|
}],
|
|
1831
1831
|
/**
|
|
1832
1832
|
* Transition Duration
|
|
@@ -1840,7 +1840,7 @@ const O = (e) => {
|
|
|
1840
1840
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
1841
1841
|
*/
|
|
1842
1842
|
ease: [{
|
|
1843
|
-
ease: ["linear", "in", "out", "in-out",
|
|
1843
|
+
ease: ["linear", "in", "out", "in-out", z]
|
|
1844
1844
|
}],
|
|
1845
1845
|
/**
|
|
1846
1846
|
* Transition Delay
|
|
@@ -1854,7 +1854,7 @@ const O = (e) => {
|
|
|
1854
1854
|
* @see https://tailwindcss.com/docs/animation
|
|
1855
1855
|
*/
|
|
1856
1856
|
animate: [{
|
|
1857
|
-
animate: ["none", "spin", "ping", "pulse", "bounce",
|
|
1857
|
+
animate: ["none", "spin", "ping", "pulse", "bounce", z]
|
|
1858
1858
|
}],
|
|
1859
1859
|
// Transforms
|
|
1860
1860
|
/**
|
|
@@ -1890,7 +1890,7 @@ const O = (e) => {
|
|
|
1890
1890
|
* @see https://tailwindcss.com/docs/rotate
|
|
1891
1891
|
*/
|
|
1892
1892
|
rotate: [{
|
|
1893
|
-
rotate: [ue,
|
|
1893
|
+
rotate: [ue, z]
|
|
1894
1894
|
}],
|
|
1895
1895
|
/**
|
|
1896
1896
|
* Translate X
|
|
@@ -1911,21 +1911,21 @@ const O = (e) => {
|
|
|
1911
1911
|
* @see https://tailwindcss.com/docs/skew
|
|
1912
1912
|
*/
|
|
1913
1913
|
"skew-x": [{
|
|
1914
|
-
"skew-x": [
|
|
1914
|
+
"skew-x": [T]
|
|
1915
1915
|
}],
|
|
1916
1916
|
/**
|
|
1917
1917
|
* Skew Y
|
|
1918
1918
|
* @see https://tailwindcss.com/docs/skew
|
|
1919
1919
|
*/
|
|
1920
1920
|
"skew-y": [{
|
|
1921
|
-
"skew-y": [
|
|
1921
|
+
"skew-y": [T]
|
|
1922
1922
|
}],
|
|
1923
1923
|
/**
|
|
1924
1924
|
* Transform Origin
|
|
1925
1925
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
1926
1926
|
*/
|
|
1927
1927
|
"transform-origin": [{
|
|
1928
|
-
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
1928
|
+
origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", z]
|
|
1929
1929
|
}],
|
|
1930
1930
|
// Interactivity
|
|
1931
1931
|
/**
|
|
@@ -1947,7 +1947,7 @@ const O = (e) => {
|
|
|
1947
1947
|
* @see https://tailwindcss.com/docs/cursor
|
|
1948
1948
|
*/
|
|
1949
1949
|
cursor: [{
|
|
1950
|
-
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",
|
|
1950
|
+
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", z]
|
|
1951
1951
|
}],
|
|
1952
1952
|
/**
|
|
1953
1953
|
* Caret Color
|
|
@@ -2169,7 +2169,7 @@ const O = (e) => {
|
|
|
2169
2169
|
* @see https://tailwindcss.com/docs/will-change
|
|
2170
2170
|
*/
|
|
2171
2171
|
"will-change": [{
|
|
2172
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2172
|
+
"will-change": ["auto", "scroll", "contents", "transform", z]
|
|
2173
2173
|
}],
|
|
2174
2174
|
// SVG
|
|
2175
2175
|
/**
|
|
@@ -2265,23 +2265,23 @@ const O = (e) => {
|
|
|
2265
2265
|
label: t,
|
|
2266
2266
|
classNameContainer: r = "",
|
|
2267
2267
|
chevron: n = !0,
|
|
2268
|
-
iconAccordionOpened:
|
|
2269
|
-
iconAccordionClosed:
|
|
2270
|
-
rounded:
|
|
2268
|
+
iconAccordionOpened: a,
|
|
2269
|
+
iconAccordionClosed: l,
|
|
2270
|
+
rounded: c = !1,
|
|
2271
2271
|
classNameHeading: s = "",
|
|
2272
2272
|
classNameContent: p = "",
|
|
2273
2273
|
onExpand: f,
|
|
2274
|
-
singleOpen:
|
|
2275
|
-
index:
|
|
2276
|
-
children:
|
|
2277
|
-
...
|
|
2278
|
-
},
|
|
2279
|
-
const [
|
|
2280
|
-
f &&
|
|
2274
|
+
singleOpen: v,
|
|
2275
|
+
index: w,
|
|
2276
|
+
children: C,
|
|
2277
|
+
...h
|
|
2278
|
+
}, i) => {
|
|
2279
|
+
const [d, b] = A(!1), $ = `accordion-${w ?? t.replace(/\s+/g, "-").toLowerCase()}`, L = () => {
|
|
2280
|
+
f && v && f(b), b(!d);
|
|
2281
2281
|
}, E = (j) => {
|
|
2282
|
-
(j.key === "Enter" || j.key === " ") && (j.preventDefault(),
|
|
2282
|
+
(j.key === "Enter" || j.key === " ") && (j.preventDefault(), L(), console.log("key pressed, event.key === '" + j.key + "', index: " + w + ", label: " + t));
|
|
2283
2283
|
};
|
|
2284
|
-
return /* @__PURE__ */ V("div", { ref:
|
|
2284
|
+
return /* @__PURE__ */ V("div", { ref: i, className: r, children: [
|
|
2285
2285
|
/* @__PURE__ */ V(
|
|
2286
2286
|
"button",
|
|
2287
2287
|
{
|
|
@@ -2289,33 +2289,33 @@ const O = (e) => {
|
|
|
2289
2289
|
Mt,
|
|
2290
2290
|
Nt.variant,
|
|
2291
2291
|
s,
|
|
2292
|
-
|
|
2292
|
+
c && (d ? "rounded-t-md" : "rounded-md")
|
|
2293
2293
|
),
|
|
2294
|
-
"aria-controls": `${
|
|
2295
|
-
"aria-expanded":
|
|
2296
|
-
id: `${
|
|
2297
|
-
onClick:
|
|
2294
|
+
"aria-controls": `${$}-content`,
|
|
2295
|
+
"aria-expanded": d,
|
|
2296
|
+
id: `${$}-header`,
|
|
2297
|
+
onClick: L,
|
|
2298
2298
|
onKeyDown: E,
|
|
2299
|
-
...
|
|
2299
|
+
...h,
|
|
2300
2300
|
children: [
|
|
2301
2301
|
/* @__PURE__ */ o("span", { children: t }),
|
|
2302
|
-
/* @__PURE__ */ o("span", { children:
|
|
2302
|
+
/* @__PURE__ */ o("span", { children: d ? a || /* @__PURE__ */ o("img", { src: n ? kt : wt, alt: "Close Icon" }) : l || /* @__PURE__ */ o("img", { src: n ? yt : vt, alt: "Open Icon" }) })
|
|
2303
2303
|
]
|
|
2304
2304
|
}
|
|
2305
2305
|
),
|
|
2306
|
-
|
|
2306
|
+
d && /* @__PURE__ */ o(
|
|
2307
2307
|
"div",
|
|
2308
2308
|
{
|
|
2309
2309
|
className: M(
|
|
2310
2310
|
$t,
|
|
2311
2311
|
St.variant,
|
|
2312
2312
|
p,
|
|
2313
|
-
|
|
2313
|
+
c && "rounded-b-md"
|
|
2314
2314
|
),
|
|
2315
|
-
id: `${
|
|
2315
|
+
id: `${$}-content`,
|
|
2316
2316
|
role: "region",
|
|
2317
|
-
"aria-labelledby": `${
|
|
2318
|
-
children:
|
|
2317
|
+
"aria-labelledby": `${$}-header`,
|
|
2318
|
+
children: C
|
|
2319
2319
|
}
|
|
2320
2320
|
)
|
|
2321
2321
|
] });
|
|
@@ -2326,36 +2326,36 @@ const O = (e) => {
|
|
|
2326
2326
|
variant: t = "default",
|
|
2327
2327
|
chevron: r,
|
|
2328
2328
|
iconAccordionOpened: n,
|
|
2329
|
-
iconAccordionClosed:
|
|
2330
|
-
rounded:
|
|
2331
|
-
classNameContainer:
|
|
2329
|
+
iconAccordionClosed: a,
|
|
2330
|
+
rounded: l,
|
|
2331
|
+
classNameContainer: c,
|
|
2332
2332
|
singleOpen: s = !0,
|
|
2333
2333
|
classNameChildHeading: p,
|
|
2334
2334
|
classNameChildContent: f,
|
|
2335
|
-
...
|
|
2336
|
-
},
|
|
2337
|
-
const [
|
|
2335
|
+
...v
|
|
2336
|
+
}, w) => {
|
|
2337
|
+
const [C, h] = A(
|
|
2338
2338
|
null
|
|
2339
|
-
),
|
|
2340
|
-
|
|
2339
|
+
), i = (d) => {
|
|
2340
|
+
C && C(!1), h(() => d);
|
|
2341
2341
|
};
|
|
2342
|
-
return /* @__PURE__ */ o("div", { ref:
|
|
2342
|
+
return /* @__PURE__ */ o("div", { ref: w, ...v, className: M(Ct, c), children: Oe.map(e, (d, b) => Te(d) ? Le(d, {
|
|
2343
2343
|
// <AccordionProps> to ensure child component sees parent specification in code
|
|
2344
|
-
...
|
|
2344
|
+
...d.props,
|
|
2345
2345
|
// Merge existing props from the child
|
|
2346
2346
|
variant: t,
|
|
2347
2347
|
chevron: r,
|
|
2348
2348
|
iconAccordionOpened: n,
|
|
2349
|
-
iconAccordionClosed:
|
|
2350
|
-
rounded:
|
|
2351
|
-
classNameHeading: M(p,
|
|
2349
|
+
iconAccordionClosed: a,
|
|
2350
|
+
rounded: l,
|
|
2351
|
+
classNameHeading: M(p, d.props.classNameHeading),
|
|
2352
2352
|
// className for child component
|
|
2353
|
-
classNameContent: M(f,
|
|
2354
|
-
index:
|
|
2353
|
+
classNameContent: M(f, d.props.classNameContent),
|
|
2354
|
+
index: b,
|
|
2355
2355
|
singleOpen: s,
|
|
2356
|
-
onExpand: (
|
|
2356
|
+
onExpand: ($) => i($)
|
|
2357
2357
|
// Pass expansion handler to child
|
|
2358
|
-
}) :
|
|
2358
|
+
}) : d) });
|
|
2359
2359
|
}
|
|
2360
2360
|
), Dt = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='thumb_up'%3e%3cmask%20id='mask0_320_1845'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20id='Bounding%20box'%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_320_1845)'%3e%3cpath%20id='thumb_up_2'%20d='M18%2021H8V8L15%201L16.25%202.25C16.3667%202.36667%2016.4625%202.525%2016.5375%202.725C16.6125%202.925%2016.65%203.11667%2016.65%203.3V3.65L15.55%208H21C21.5333%208%2022%208.2%2022.4%208.6C22.8%209%2023%209.46667%2023%2010V12C23%2012.1167%2022.9875%2012.2417%2022.9625%2012.375C22.9375%2012.5083%2022.9%2012.6333%2022.85%2012.75L19.85%2019.8C19.7%2020.1333%2019.45%2020.4167%2019.1%2020.65C18.75%2020.8833%2018.3833%2021%2018%2021ZM6%208V21H2V8H6Z'%20fill='black'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", zt = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='warning'%3e%3cmask%20id='mask0_311_2053'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20id='Bounding%20box'%20width='24'%20height='24'%20fill='red'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_311_2053)'%3e%3cpath%20id='warning_2'%20d='M1%2021L12%202L23%2021H1ZM12%2018C12.2833%2018%2012.5208%2017.9042%2012.7125%2017.7125C12.9042%2017.5208%2013%2017.2833%2013%2017C13%2016.7167%2012.9042%2016.4792%2012.7125%2016.2875C12.5208%2016.0958%2012.2833%2016%2012%2016C11.7167%2016%2011.4792%2016.0958%2011.2875%2016.2875C11.0958%2016.4792%2011%2016.7167%2011%2017C11%2017.2833%2011.0958%2017.5208%2011.2875%2017.7125C11.4792%2017.9042%2011.7167%2018%2012%2018ZM11%2015H13V10H11V15Z'%20fill='black'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Lt = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='emergency_home'%3e%3cmask%20id='mask0_320_1821'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20id='Bounding%20box'%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_320_1821)'%3e%3cpath%20id='emergency_home_2'%20d='M11.9996%2022.0251C11.7329%2022.0251%2011.4788%2021.9751%2011.2371%2021.8751C10.9954%2021.7751%2010.7746%2021.6334%2010.5746%2021.4501L2.54961%2013.4251C2.36628%2013.2251%202.22461%2013.0043%202.12461%2012.7626C2.02461%2012.5209%201.97461%2012.2668%201.97461%2012.0001C1.97461%2011.7334%202.02461%2011.4751%202.12461%2011.2251C2.22461%2010.9751%202.36628%2010.7584%202.54961%2010.5751L10.5746%202.5501C10.7746%202.3501%2010.9954%202.20426%2011.2371%202.1126C11.4788%202.02093%2011.7329%201.9751%2011.9996%201.9751C12.2663%201.9751%2012.5246%202.02093%2012.7746%202.1126C13.0246%202.20426%2013.2413%202.3501%2013.4246%202.5501L21.4496%2010.5751C21.6496%2010.7584%2021.7954%2010.9751%2021.8871%2011.2251C21.9788%2011.4751%2022.0246%2011.7334%2022.0246%2012.0001C22.0246%2012.2668%2021.9788%2012.5209%2021.8871%2012.7626C21.7954%2013.0043%2021.6496%2013.2251%2021.4496%2013.4251L13.4246%2021.4501C13.2413%2021.6334%2013.0246%2021.7751%2012.7746%2021.8751C12.5246%2021.9751%2012.2663%2022.0251%2011.9996%2022.0251ZM10.9996%2013.0001H12.9996V7.0001H10.9996V13.0001ZM11.9996%2016.0001C12.2829%2016.0001%2012.5204%2015.9043%2012.7121%2015.7126C12.9038%2015.5209%2012.9996%2015.2834%2012.9996%2015.0001C12.9996%2014.7168%2012.9038%2014.4793%2012.7121%2014.2876C12.5204%2014.0959%2012.2829%2014.0001%2011.9996%2014.0001C11.7163%2014.0001%2011.4788%2014.0959%2011.2871%2014.2876C11.0954%2014.4793%2010.9996%2014.7168%2010.9996%2015.0001C10.9996%2015.2834%2011.0954%2015.5209%2011.2871%2015.7126C11.4788%2015.9043%2011.7163%2016.0001%2011.9996%2016.0001Z'%20fill='black'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", _t = "data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='close_small'%20d='M1.40349%2010L0%208.60349L3.60898%204.98753L0%201.39651L1.40349%200L5.01247%203.60623L8.59651%200L10%201.39651L6.39102%204.98753L10%208.60349L8.59651%2010L5.01247%206.39377L1.40349%2010Z'%20fill='black'/%3e%3c/svg%3e", Se = [
|
|
2361
2361
|
{
|
|
@@ -2475,48 +2475,48 @@ const O = (e) => {
|
|
|
2475
2475
|
subVariant: t = "default",
|
|
2476
2476
|
className: r,
|
|
2477
2477
|
svgClasses: n = "size-1.5 fill-yellow-400",
|
|
2478
|
-
imagePath:
|
|
2479
|
-
imageAlt:
|
|
2480
|
-
classNameImage:
|
|
2478
|
+
imagePath: a,
|
|
2479
|
+
imageAlt: l,
|
|
2480
|
+
classNameImage: c,
|
|
2481
2481
|
children: s,
|
|
2482
2482
|
...p
|
|
2483
2483
|
}, f) => {
|
|
2484
|
-
const [
|
|
2485
|
-
|
|
2484
|
+
const [v, w] = A(), [C, h] = A(), [i, d] = A(zt), b = () => {
|
|
2485
|
+
w(M(v, "hidden"));
|
|
2486
2486
|
};
|
|
2487
2487
|
return R(() => {
|
|
2488
2488
|
var E, j;
|
|
2489
|
-
const
|
|
2490
|
-
(H) => H.variant === e && H.subVariant ===
|
|
2489
|
+
const $ = t === "custom" ? "default" : t, L = (E = Se.find(
|
|
2490
|
+
(H) => H.variant === e && H.subVariant === $
|
|
2491
2491
|
)) == null ? void 0 : E.classes;
|
|
2492
2492
|
if (e === "icon") {
|
|
2493
2493
|
const H = (j = Se.find(
|
|
2494
|
-
(
|
|
2494
|
+
(T) => T.variant === e && T.subVariant === $
|
|
2495
2495
|
)) == null ? void 0 : j.svgClasses;
|
|
2496
|
-
|
|
2496
|
+
h(t === "custom" ? M(H, n) : H);
|
|
2497
2497
|
}
|
|
2498
|
-
e === "hazard" ?
|
|
2498
|
+
e === "hazard" ? d(Lt) : e === "go" && d(Dt), w(M(L, r));
|
|
2499
2499
|
}, [t, r, e, n]), /* @__PURE__ */ V(pe, { children: [
|
|
2500
|
-
e === "default" && /* @__PURE__ */ o("div", { className:
|
|
2501
|
-
(e === "warning" || e === "hazard" || e === "go") && /* @__PURE__ */ V("div", { className:
|
|
2502
|
-
/* @__PURE__ */ o("div", { className: "size-6 flex-col justify-center items-center gap-2.5 inline-flex overflow-hidden relative", children: /* @__PURE__ */ o("div", { className: "left-0 top-0 absolute", children: /* @__PURE__ */ o("img", { className: "size-6", src:
|
|
2500
|
+
e === "default" && /* @__PURE__ */ o("div", { className: v, ...p, ref: f, children: s }),
|
|
2501
|
+
(e === "warning" || e === "hazard" || e === "go") && /* @__PURE__ */ V("div", { className: v, children: [
|
|
2502
|
+
/* @__PURE__ */ o("div", { className: "size-6 flex-col justify-center items-center gap-2.5 inline-flex overflow-hidden relative", children: /* @__PURE__ */ o("div", { className: "left-0 top-0 absolute", children: /* @__PURE__ */ o("img", { className: "size-6", src: i, alt: `${e} icon` }) }) }),
|
|
2503
2503
|
/* @__PURE__ */ o("div", { className: "grow shrink basis-0 self-stretch text-black text-sm font-normal font-['Arial'] leading-[19px]", children: s }),
|
|
2504
2504
|
/* @__PURE__ */ o(
|
|
2505
2505
|
"button",
|
|
2506
2506
|
{
|
|
2507
|
-
onClick:
|
|
2507
|
+
onClick: b,
|
|
2508
2508
|
className: "size-3 py-px justify-center items-center gap-2.5 flex",
|
|
2509
2509
|
"aria-label": "Close modal",
|
|
2510
2510
|
children: /* @__PURE__ */ o("img", { src: _t, alt: "close alert icon" })
|
|
2511
2511
|
}
|
|
2512
2512
|
)
|
|
2513
2513
|
] }),
|
|
2514
|
-
e === "icon" && /* @__PURE__ */ V("div", { className:
|
|
2515
|
-
/* @__PURE__ */ o("svg", { viewBox: "0 0 6 6", "aria-hidden": "true", className:
|
|
2514
|
+
e === "icon" && /* @__PURE__ */ V("div", { className: v, ...p, ref: f, children: [
|
|
2515
|
+
/* @__PURE__ */ o("svg", { viewBox: "0 0 6 6", "aria-hidden": "true", className: C, role: "img", children: /* @__PURE__ */ o("circle", { r: 3, cx: 3, cy: 3 }) }),
|
|
2516
2516
|
s
|
|
2517
2517
|
] }),
|
|
2518
|
-
e === "media" && /* @__PURE__ */ V("div", { className:
|
|
2519
|
-
/* @__PURE__ */ o("div", { className: "col-start-1 col-span-2", children: /* @__PURE__ */ o("img", { className: M("h-full",
|
|
2518
|
+
e === "media" && /* @__PURE__ */ V("div", { className: v, ...p, ref: f, children: [
|
|
2519
|
+
/* @__PURE__ */ o("div", { className: "col-start-1 col-span-2", children: /* @__PURE__ */ o("img", { className: M("h-full", c), src: a, alt: l }) }),
|
|
2520
2520
|
/* @__PURE__ */ o("div", { className: "w-full ml-2 col-start-3 col-span-3", children: s })
|
|
2521
2521
|
] })
|
|
2522
2522
|
] });
|
|
@@ -2548,30 +2548,34 @@ const O = (e) => {
|
|
|
2548
2548
|
onClick: t,
|
|
2549
2549
|
className: r,
|
|
2550
2550
|
icon: n,
|
|
2551
|
-
iconPosition:
|
|
2552
|
-
variant:
|
|
2553
|
-
type:
|
|
2551
|
+
iconPosition: a,
|
|
2552
|
+
variant: l = "default",
|
|
2553
|
+
type: c = "button",
|
|
2554
2554
|
children: s,
|
|
2555
2555
|
selected: p = !1,
|
|
2556
2556
|
classNameSelected: f,
|
|
2557
|
-
...
|
|
2558
|
-
},
|
|
2559
|
-
const [
|
|
2557
|
+
...v
|
|
2558
|
+
}, w) => {
|
|
2559
|
+
const [C, h] = A("");
|
|
2560
2560
|
return R(() => {
|
|
2561
|
-
let
|
|
2562
|
-
p && !f ?
|
|
2563
|
-
}, [
|
|
2561
|
+
let i = ve[l].normal || ve.default.normal;
|
|
2562
|
+
p && !f ? i = M(i, ve[l].selected) : p && f && (i = M(i, f)), h(M(Vt, i));
|
|
2563
|
+
}, [p, f, l]), /* @__PURE__ */ V(
|
|
2564
2564
|
"button",
|
|
2565
2565
|
{
|
|
2566
|
-
type:
|
|
2566
|
+
type: c,
|
|
2567
2567
|
onClick: t,
|
|
2568
|
-
className: `${
|
|
2569
|
-
|
|
2570
|
-
|
|
2568
|
+
className: `${a === "iconOnly" ? M(
|
|
2569
|
+
C,
|
|
2570
|
+
"px-[12px] md:px-[14px] lg:px-[16px] py-[12px] md:py-[14px] lg:py-[16px]",
|
|
2571
|
+
r
|
|
2572
|
+
) : M(C, r)}`,
|
|
2573
|
+
ref: w,
|
|
2574
|
+
...v,
|
|
2571
2575
|
children: [
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2576
|
+
a === "left" && n && /* @__PURE__ */ o("span", { className: "icon-left mr-3 size-6", children: n }),
|
|
2577
|
+
a === "iconOnly" && n ? /* @__PURE__ */ o("span", { className: "size-6", children: n }) : /* @__PURE__ */ o("span", { className: "button-text", children: s || e }),
|
|
2578
|
+
a === "right" && n && /* @__PURE__ */ o("span", { className: "icon-right ml-3 size-6", children: n })
|
|
2575
2579
|
]
|
|
2576
2580
|
}
|
|
2577
2581
|
);
|
|
@@ -2581,14 +2585,14 @@ const O = (e) => {
|
|
|
2581
2585
|
// image top
|
|
2582
2586
|
bold: "font-bold"
|
|
2583
2587
|
}, gr = re.forwardRef(
|
|
2584
|
-
({ classNameContainer: e, className: t, variant: r = "default", auto: n = !0, separator:
|
|
2588
|
+
({ classNameContainer: e, className: t, variant: r = "default", auto: n = !0, separator: a = It, ...l }, c) => {
|
|
2585
2589
|
const s = Ye().pathname.split("/").filter((p) => p !== "");
|
|
2586
2590
|
return /* @__PURE__ */ o(
|
|
2587
2591
|
"nav",
|
|
2588
2592
|
{
|
|
2589
2593
|
className: M(jt[r], e),
|
|
2590
|
-
...
|
|
2591
|
-
ref:
|
|
2594
|
+
...l,
|
|
2595
|
+
ref: c,
|
|
2592
2596
|
"aria-label": "Breadcrumbs",
|
|
2593
2597
|
children: /* @__PURE__ */ V("ol", { className: "flex list-none", children: [
|
|
2594
2598
|
/* @__PURE__ */ V("li", { className: "breadcrumb-item inline-flex items-center", children: [
|
|
@@ -2614,10 +2618,10 @@ const O = (e) => {
|
|
|
2614
2618
|
children: /* @__PURE__ */ o("img", { src: At, alt: "home icon" })
|
|
2615
2619
|
}
|
|
2616
2620
|
),
|
|
2617
|
-
s.length > 1 ? /* @__PURE__ */ o("span", { className: M("me-2", t), children: /* @__PURE__ */ o("img", { src:
|
|
2621
|
+
s.length > 1 ? /* @__PURE__ */ o("span", { className: M("me-2", t), children: /* @__PURE__ */ o("img", { src: a, alt: "vector" }) }) : ""
|
|
2618
2622
|
] }),
|
|
2619
2623
|
s.map((p, f) => {
|
|
2620
|
-
const
|
|
2624
|
+
const v = "/" + s.slice(0, f + 1).join("/");
|
|
2621
2625
|
return /* @__PURE__ */ V("li", { className: "breadcrumb-item inline-flex items-center", children: [
|
|
2622
2626
|
f === s.length - 1 ? (
|
|
2623
2627
|
// Render the current page as plain text
|
|
@@ -2634,7 +2638,7 @@ const O = (e) => {
|
|
|
2634
2638
|
/* @__PURE__ */ o(
|
|
2635
2639
|
he,
|
|
2636
2640
|
{
|
|
2637
|
-
to:
|
|
2641
|
+
to: v,
|
|
2638
2642
|
className: M(
|
|
2639
2643
|
"text-[#747476] hover:text-[#0000ff] md:hover:underline capitalize me-2",
|
|
2640
2644
|
t
|
|
@@ -2643,7 +2647,7 @@ const O = (e) => {
|
|
|
2643
2647
|
}
|
|
2644
2648
|
)
|
|
2645
2649
|
),
|
|
2646
|
-
f < s.length - 1 && /* @__PURE__ */ o("span", { className: M("me-2", t), children: /* @__PURE__ */ o("img", { src:
|
|
2650
|
+
f < s.length - 1 && /* @__PURE__ */ o("span", { className: M("me-2", t), children: /* @__PURE__ */ o("img", { src: a, alt: "vector" }) })
|
|
2647
2651
|
] }, f);
|
|
2648
2652
|
})
|
|
2649
2653
|
] })
|
|
@@ -2665,13 +2669,13 @@ const O = (e) => {
|
|
|
2665
2669
|
variant: t = "default",
|
|
2666
2670
|
variantStyle: r = "default",
|
|
2667
2671
|
imagePath: n,
|
|
2668
|
-
classNameImage:
|
|
2669
|
-
imageInset:
|
|
2670
|
-
alt:
|
|
2672
|
+
classNameImage: a = "w-full h-full",
|
|
2673
|
+
imageInset: l = !1,
|
|
2674
|
+
alt: c,
|
|
2671
2675
|
ariaLabel: s = "card component",
|
|
2672
2676
|
children: p,
|
|
2673
2677
|
...f
|
|
2674
|
-
},
|
|
2678
|
+
}, v) => /* @__PURE__ */ V(
|
|
2675
2679
|
"div",
|
|
2676
2680
|
{
|
|
2677
2681
|
className: M(
|
|
@@ -2681,14 +2685,14 @@ const O = (e) => {
|
|
|
2681
2685
|
e
|
|
2682
2686
|
),
|
|
2683
2687
|
"aria-label": s,
|
|
2684
|
-
ref:
|
|
2688
|
+
ref: v,
|
|
2685
2689
|
...f,
|
|
2686
2690
|
children: [
|
|
2687
2691
|
/* @__PURE__ */ o(
|
|
2688
2692
|
"div",
|
|
2689
2693
|
{
|
|
2690
|
-
className: M("flex-initial items-center justify-center w-full",
|
|
2691
|
-
children: n && /* @__PURE__ */ o("img", { src: n, alt:
|
|
2694
|
+
className: M("flex-initial items-center justify-center w-full", l && (t === "default" || t === "imageBottom" ? Ot : Tt)),
|
|
2695
|
+
children: n && /* @__PURE__ */ o("img", { src: n, alt: c, className: a })
|
|
2692
2696
|
}
|
|
2693
2697
|
),
|
|
2694
2698
|
/* @__PURE__ */ o("div", { className: "flex-auto px-4 my-2", children: p })
|
|
@@ -2702,29 +2706,29 @@ const fr = ({
|
|
|
2702
2706
|
classNameMessage: t = "",
|
|
2703
2707
|
classNameOverLimitMessage: r = "",
|
|
2704
2708
|
maxCharacters: n,
|
|
2705
|
-
children:
|
|
2706
|
-
altRemainingMessageText:
|
|
2707
|
-
altOverageMessageText:
|
|
2709
|
+
children: a,
|
|
2710
|
+
altRemainingMessageText: l,
|
|
2711
|
+
altOverageMessageText: c
|
|
2708
2712
|
}) => {
|
|
2709
|
-
const [s, p] = A(`${n} characters allowed`), [f,
|
|
2713
|
+
const [s, p] = A(`${n} characters allowed`), [f, v] = A(!1);
|
|
2710
2714
|
return /* @__PURE__ */ V("div", { className: e, children: [
|
|
2711
2715
|
/* @__PURE__ */ o(
|
|
2712
2716
|
"div",
|
|
2713
2717
|
{
|
|
2714
|
-
onInput: (
|
|
2715
|
-
const
|
|
2716
|
-
if (
|
|
2718
|
+
onInput: (C) => {
|
|
2719
|
+
const i = C.target.value.length;
|
|
2720
|
+
if (v(i > n), i === 0)
|
|
2717
2721
|
p(`${n} characters allowed`);
|
|
2718
|
-
else if (
|
|
2719
|
-
const
|
|
2720
|
-
p(`${n -
|
|
2722
|
+
else if (i <= n) {
|
|
2723
|
+
const d = " " + (l ?? "remaining");
|
|
2724
|
+
p(`${n - i}${d}`);
|
|
2721
2725
|
} else {
|
|
2722
|
-
const
|
|
2723
|
-
p(`${
|
|
2726
|
+
const d = " " + (c ?? "characters too many");
|
|
2727
|
+
p(`${i - n}${d}`);
|
|
2724
2728
|
}
|
|
2725
2729
|
},
|
|
2726
2730
|
className: "mb-2",
|
|
2727
|
-
children:
|
|
2731
|
+
children: a
|
|
2728
2732
|
}
|
|
2729
2733
|
),
|
|
2730
2734
|
/* @__PURE__ */ o(
|
|
@@ -2746,256 +2750,256 @@ var Ee = { exports: {} };
|
|
|
2746
2750
|
(function(r, n) {
|
|
2747
2751
|
e.exports = n();
|
|
2748
2752
|
})(Rt, function() {
|
|
2749
|
-
var r = 1e3, n = 6e4,
|
|
2750
|
-
var g = ["th", "st", "nd", "rd"], u =
|
|
2751
|
-
return "[" +
|
|
2752
|
-
} }, E = function(
|
|
2753
|
-
var
|
|
2754
|
-
return !
|
|
2755
|
-
}, j = { s: E, z: function(
|
|
2756
|
-
var g = -
|
|
2757
|
-
return (g <= 0 ? "+" : "-") + E(
|
|
2758
|
-
}, m: function
|
|
2759
|
-
if (g.date() < u.date()) return -
|
|
2760
|
-
var
|
|
2761
|
-
return +(-(
|
|
2762
|
-
}, a: function(
|
|
2763
|
-
return
|
|
2764
|
-
}, p: function(
|
|
2765
|
-
return { M:
|
|
2766
|
-
}, u: function(
|
|
2767
|
-
return
|
|
2768
|
-
} }, H = "en",
|
|
2769
|
-
|
|
2770
|
-
var
|
|
2771
|
-
return
|
|
2772
|
-
}, G = function
|
|
2773
|
-
var
|
|
2753
|
+
var r = 1e3, n = 6e4, a = 36e5, l = "millisecond", c = "second", s = "minute", p = "hour", f = "day", v = "week", w = "month", C = "quarter", h = "year", i = "date", d = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, $ = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, L = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(m) {
|
|
2754
|
+
var g = ["th", "st", "nd", "rd"], u = m % 100;
|
|
2755
|
+
return "[" + m + (g[(u - 20) % 10] || g[u] || g[0]) + "]";
|
|
2756
|
+
} }, E = function(m, g, u) {
|
|
2757
|
+
var k = String(m);
|
|
2758
|
+
return !k || k.length >= g ? m : "" + Array(g + 1 - k.length).join(u) + m;
|
|
2759
|
+
}, j = { s: E, z: function(m) {
|
|
2760
|
+
var g = -m.utcOffset(), u = Math.abs(g), k = Math.floor(u / 60), x = u % 60;
|
|
2761
|
+
return (g <= 0 ? "+" : "-") + E(k, 2, "0") + ":" + E(x, 2, "0");
|
|
2762
|
+
}, m: function m(g, u) {
|
|
2763
|
+
if (g.date() < u.date()) return -m(u, g);
|
|
2764
|
+
var k = 12 * (u.year() - g.year()) + (u.month() - g.month()), x = g.clone().add(k, w), N = u - x < 0, D = g.clone().add(k + (N ? -1 : 1), w);
|
|
2765
|
+
return +(-(k + (u - x) / (N ? x - D : D - x)) || 0);
|
|
2766
|
+
}, a: function(m) {
|
|
2767
|
+
return m < 0 ? Math.ceil(m) || 0 : Math.floor(m);
|
|
2768
|
+
}, p: function(m) {
|
|
2769
|
+
return { M: w, y: h, w: v, d: f, D: i, h: p, m: s, s: c, ms: l, Q: C }[m] || String(m || "").toLowerCase().replace(/s$/, "");
|
|
2770
|
+
}, u: function(m) {
|
|
2771
|
+
return m === void 0;
|
|
2772
|
+
} }, H = "en", T = {};
|
|
2773
|
+
T[H] = L;
|
|
2774
|
+
var U = "$isDayjsObject", q = function(m) {
|
|
2775
|
+
return m instanceof _ || !(!m || !m[U]);
|
|
2776
|
+
}, G = function m(g, u, k) {
|
|
2777
|
+
var x;
|
|
2774
2778
|
if (!g) return H;
|
|
2775
2779
|
if (typeof g == "string") {
|
|
2776
|
-
var
|
|
2777
|
-
|
|
2778
|
-
var
|
|
2779
|
-
if (!
|
|
2780
|
+
var N = g.toLowerCase();
|
|
2781
|
+
T[N] && (x = N), u && (T[N] = u, x = N);
|
|
2782
|
+
var D = g.split("-");
|
|
2783
|
+
if (!x && D.length > 1) return m(D[0]);
|
|
2780
2784
|
} else {
|
|
2781
2785
|
var I = g.name;
|
|
2782
|
-
|
|
2786
|
+
T[I] = g, x = I;
|
|
2783
2787
|
}
|
|
2784
|
-
return !
|
|
2785
|
-
},
|
|
2786
|
-
if (q(
|
|
2788
|
+
return !k && x && (H = x), x || !k && H;
|
|
2789
|
+
}, S = function(m, g) {
|
|
2790
|
+
if (q(m)) return m.clone();
|
|
2787
2791
|
var u = typeof g == "object" ? g : {};
|
|
2788
|
-
return u.date =
|
|
2789
|
-
},
|
|
2790
|
-
|
|
2791
|
-
return
|
|
2792
|
+
return u.date = m, u.args = arguments, new _(u);
|
|
2793
|
+
}, y = j;
|
|
2794
|
+
y.l = G, y.i = q, y.w = function(m, g) {
|
|
2795
|
+
return S(m, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
2792
2796
|
};
|
|
2793
2797
|
var _ = function() {
|
|
2794
|
-
function
|
|
2795
|
-
this.$L = G(u.locale, null, !0), this.parse(u), this.$x = this.$x || u.x || {}, this[
|
|
2798
|
+
function m(u) {
|
|
2799
|
+
this.$L = G(u.locale, null, !0), this.parse(u), this.$x = this.$x || u.x || {}, this[U] = !0;
|
|
2796
2800
|
}
|
|
2797
|
-
var g =
|
|
2801
|
+
var g = m.prototype;
|
|
2798
2802
|
return g.parse = function(u) {
|
|
2799
|
-
this.$d = function(
|
|
2800
|
-
var
|
|
2801
|
-
if (
|
|
2802
|
-
if (
|
|
2803
|
-
if (
|
|
2804
|
-
if (typeof
|
|
2805
|
-
var
|
|
2806
|
-
if (
|
|
2807
|
-
var I =
|
|
2808
|
-
return
|
|
2803
|
+
this.$d = function(k) {
|
|
2804
|
+
var x = k.date, N = k.utc;
|
|
2805
|
+
if (x === null) return /* @__PURE__ */ new Date(NaN);
|
|
2806
|
+
if (y.u(x)) return /* @__PURE__ */ new Date();
|
|
2807
|
+
if (x instanceof Date) return new Date(x);
|
|
2808
|
+
if (typeof x == "string" && !/Z$/i.test(x)) {
|
|
2809
|
+
var D = x.match(b);
|
|
2810
|
+
if (D) {
|
|
2811
|
+
var I = D[2] - 1 || 0, Y = (D[7] || "0").substring(0, 3);
|
|
2812
|
+
return N ? new Date(Date.UTC(D[1], I, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, Y)) : new Date(D[1], I, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, Y);
|
|
2809
2813
|
}
|
|
2810
2814
|
}
|
|
2811
|
-
return new Date(
|
|
2815
|
+
return new Date(x);
|
|
2812
2816
|
}(u), this.init();
|
|
2813
2817
|
}, g.init = function() {
|
|
2814
2818
|
var u = this.$d;
|
|
2815
2819
|
this.$y = u.getFullYear(), this.$M = u.getMonth(), this.$D = u.getDate(), this.$W = u.getDay(), this.$H = u.getHours(), this.$m = u.getMinutes(), this.$s = u.getSeconds(), this.$ms = u.getMilliseconds();
|
|
2816
2820
|
}, g.$utils = function() {
|
|
2817
|
-
return
|
|
2821
|
+
return y;
|
|
2818
2822
|
}, g.isValid = function() {
|
|
2819
|
-
return this.$d.toString() !==
|
|
2820
|
-
}, g.isSame = function(u,
|
|
2821
|
-
var
|
|
2822
|
-
return this.startOf(
|
|
2823
|
-
}, g.isAfter = function(u,
|
|
2824
|
-
return
|
|
2825
|
-
}, g.isBefore = function(u,
|
|
2826
|
-
return this.endOf(
|
|
2827
|
-
}, g.$g = function(u,
|
|
2828
|
-
return
|
|
2823
|
+
return this.$d.toString() !== d;
|
|
2824
|
+
}, g.isSame = function(u, k) {
|
|
2825
|
+
var x = S(u);
|
|
2826
|
+
return this.startOf(k) <= x && x <= this.endOf(k);
|
|
2827
|
+
}, g.isAfter = function(u, k) {
|
|
2828
|
+
return S(u) < this.startOf(k);
|
|
2829
|
+
}, g.isBefore = function(u, k) {
|
|
2830
|
+
return this.endOf(k) < S(u);
|
|
2831
|
+
}, g.$g = function(u, k, x) {
|
|
2832
|
+
return y.u(u) ? this[k] : this.set(x, u);
|
|
2829
2833
|
}, g.unix = function() {
|
|
2830
2834
|
return Math.floor(this.valueOf() / 1e3);
|
|
2831
2835
|
}, g.valueOf = function() {
|
|
2832
2836
|
return this.$d.getTime();
|
|
2833
|
-
}, g.startOf = function(u,
|
|
2834
|
-
var
|
|
2835
|
-
var X =
|
|
2836
|
-
return
|
|
2837
|
-
},
|
|
2838
|
-
return
|
|
2839
|
-
}, B = this.$W, P = this.$M,
|
|
2840
|
-
switch (
|
|
2837
|
+
}, g.startOf = function(u, k) {
|
|
2838
|
+
var x = this, N = !!y.u(k) || k, D = y.p(u), I = function(oe, F) {
|
|
2839
|
+
var X = y.w(x.$u ? Date.UTC(x.$y, F, oe) : new Date(x.$y, F, oe), x);
|
|
2840
|
+
return N ? X : X.endOf(f);
|
|
2841
|
+
}, Y = function(oe, F) {
|
|
2842
|
+
return y.w(x.toDate()[oe].apply(x.toDate("s"), (N ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(F)), x);
|
|
2843
|
+
}, B = this.$W, P = this.$M, K = this.$D, ae = "set" + (this.$u ? "UTC" : "");
|
|
2844
|
+
switch (D) {
|
|
2845
|
+
case h:
|
|
2846
|
+
return N ? I(1, 0) : I(31, 11);
|
|
2847
|
+
case w:
|
|
2848
|
+
return N ? I(1, P) : I(0, P + 1);
|
|
2841
2849
|
case v:
|
|
2842
|
-
return $ ? I(1, 0) : I(31, 11);
|
|
2843
|
-
case y:
|
|
2844
|
-
return $ ? I(1, P) : I(0, P + 1);
|
|
2845
|
-
case x:
|
|
2846
2850
|
var ne = this.$locale().weekStart || 0, ce = (B < ne ? B + 7 : B) - ne;
|
|
2847
|
-
return I(
|
|
2851
|
+
return I(N ? K - ce : K + (6 - ce), P);
|
|
2848
2852
|
case f:
|
|
2849
|
-
case
|
|
2850
|
-
return
|
|
2853
|
+
case i:
|
|
2854
|
+
return Y(ae + "Hours", 0);
|
|
2851
2855
|
case p:
|
|
2852
|
-
return
|
|
2856
|
+
return Y(ae + "Minutes", 1);
|
|
2853
2857
|
case s:
|
|
2854
|
-
return
|
|
2855
|
-
case
|
|
2856
|
-
return
|
|
2858
|
+
return Y(ae + "Seconds", 2);
|
|
2859
|
+
case c:
|
|
2860
|
+
return Y(ae + "Milliseconds", 3);
|
|
2857
2861
|
default:
|
|
2858
2862
|
return this.clone();
|
|
2859
2863
|
}
|
|
2860
2864
|
}, g.endOf = function(u) {
|
|
2861
2865
|
return this.startOf(u, !1);
|
|
2862
|
-
}, g.$set = function(u,
|
|
2863
|
-
var
|
|
2864
|
-
if (
|
|
2865
|
-
var B = this.clone().set(
|
|
2866
|
-
B.$d[I](
|
|
2867
|
-
} else I && this.$d[I](
|
|
2866
|
+
}, g.$set = function(u, k) {
|
|
2867
|
+
var x, N = y.p(u), D = "set" + (this.$u ? "UTC" : ""), I = (x = {}, x[f] = D + "Date", x[i] = D + "Date", x[w] = D + "Month", x[h] = D + "FullYear", x[p] = D + "Hours", x[s] = D + "Minutes", x[c] = D + "Seconds", x[l] = D + "Milliseconds", x)[N], Y = N === f ? this.$D + (k - this.$W) : k;
|
|
2868
|
+
if (N === w || N === h) {
|
|
2869
|
+
var B = this.clone().set(i, 1);
|
|
2870
|
+
B.$d[I](Y), B.init(), this.$d = B.set(i, Math.min(this.$D, B.daysInMonth())).$d;
|
|
2871
|
+
} else I && this.$d[I](Y);
|
|
2868
2872
|
return this.init(), this;
|
|
2869
|
-
}, g.set = function(u,
|
|
2870
|
-
return this.clone().$set(u,
|
|
2873
|
+
}, g.set = function(u, k) {
|
|
2874
|
+
return this.clone().$set(u, k);
|
|
2871
2875
|
}, g.get = function(u) {
|
|
2872
|
-
return this[
|
|
2873
|
-
}, g.add = function(u,
|
|
2874
|
-
var
|
|
2876
|
+
return this[y.p(u)]();
|
|
2877
|
+
}, g.add = function(u, k) {
|
|
2878
|
+
var x, N = this;
|
|
2875
2879
|
u = Number(u);
|
|
2876
|
-
var
|
|
2877
|
-
var
|
|
2878
|
-
return
|
|
2880
|
+
var D = y.p(k), I = function(P) {
|
|
2881
|
+
var K = S(N);
|
|
2882
|
+
return y.w(K.date(K.date() + Math.round(P * u)), N);
|
|
2879
2883
|
};
|
|
2880
|
-
if (
|
|
2881
|
-
if (
|
|
2882
|
-
if (
|
|
2883
|
-
if (
|
|
2884
|
-
var
|
|
2885
|
-
return
|
|
2886
|
-
}, g.subtract = function(u,
|
|
2887
|
-
return this.add(-1 * u,
|
|
2884
|
+
if (D === w) return this.set(w, this.$M + u);
|
|
2885
|
+
if (D === h) return this.set(h, this.$y + u);
|
|
2886
|
+
if (D === f) return I(1);
|
|
2887
|
+
if (D === v) return I(7);
|
|
2888
|
+
var Y = (x = {}, x[s] = n, x[p] = a, x[c] = r, x)[D] || 1, B = this.$d.getTime() + u * Y;
|
|
2889
|
+
return y.w(B, this);
|
|
2890
|
+
}, g.subtract = function(u, k) {
|
|
2891
|
+
return this.add(-1 * u, k);
|
|
2888
2892
|
}, g.format = function(u) {
|
|
2889
|
-
var
|
|
2890
|
-
if (!this.isValid()) return
|
|
2891
|
-
var
|
|
2892
|
-
return F && (F[X] || F(
|
|
2893
|
+
var k = this, x = this.$locale();
|
|
2894
|
+
if (!this.isValid()) return x.invalidDate || d;
|
|
2895
|
+
var N = u || "YYYY-MM-DDTHH:mm:ssZ", D = y.z(this), I = this.$H, Y = this.$m, B = this.$M, P = x.weekdays, K = x.months, ae = x.meridiem, ne = function(F, X, de, be) {
|
|
2896
|
+
return F && (F[X] || F(k, N)) || de[X].slice(0, be);
|
|
2893
2897
|
}, ce = function(F) {
|
|
2894
|
-
return
|
|
2898
|
+
return y.s(I % 12 || 12, F, "0");
|
|
2895
2899
|
}, oe = ae || function(F, X, de) {
|
|
2896
2900
|
var be = F < 12 ? "AM" : "PM";
|
|
2897
2901
|
return de ? be.toLowerCase() : be;
|
|
2898
2902
|
};
|
|
2899
|
-
return
|
|
2903
|
+
return N.replace($, function(F, X) {
|
|
2900
2904
|
return X || function(de) {
|
|
2901
2905
|
switch (de) {
|
|
2902
2906
|
case "YY":
|
|
2903
|
-
return String(
|
|
2907
|
+
return String(k.$y).slice(-2);
|
|
2904
2908
|
case "YYYY":
|
|
2905
|
-
return
|
|
2909
|
+
return y.s(k.$y, 4, "0");
|
|
2906
2910
|
case "M":
|
|
2907
2911
|
return B + 1;
|
|
2908
2912
|
case "MM":
|
|
2909
|
-
return
|
|
2913
|
+
return y.s(B + 1, 2, "0");
|
|
2910
2914
|
case "MMM":
|
|
2911
|
-
return ne(
|
|
2915
|
+
return ne(x.monthsShort, B, K, 3);
|
|
2912
2916
|
case "MMMM":
|
|
2913
|
-
return ne(
|
|
2917
|
+
return ne(K, B);
|
|
2914
2918
|
case "D":
|
|
2915
|
-
return
|
|
2919
|
+
return k.$D;
|
|
2916
2920
|
case "DD":
|
|
2917
|
-
return
|
|
2921
|
+
return y.s(k.$D, 2, "0");
|
|
2918
2922
|
case "d":
|
|
2919
|
-
return String(
|
|
2923
|
+
return String(k.$W);
|
|
2920
2924
|
case "dd":
|
|
2921
|
-
return ne(
|
|
2925
|
+
return ne(x.weekdaysMin, k.$W, P, 2);
|
|
2922
2926
|
case "ddd":
|
|
2923
|
-
return ne(
|
|
2927
|
+
return ne(x.weekdaysShort, k.$W, P, 3);
|
|
2924
2928
|
case "dddd":
|
|
2925
|
-
return P[
|
|
2929
|
+
return P[k.$W];
|
|
2926
2930
|
case "H":
|
|
2927
2931
|
return String(I);
|
|
2928
2932
|
case "HH":
|
|
2929
|
-
return
|
|
2933
|
+
return y.s(I, 2, "0");
|
|
2930
2934
|
case "h":
|
|
2931
2935
|
return ce(1);
|
|
2932
2936
|
case "hh":
|
|
2933
2937
|
return ce(2);
|
|
2934
2938
|
case "a":
|
|
2935
|
-
return oe(I,
|
|
2939
|
+
return oe(I, Y, !0);
|
|
2936
2940
|
case "A":
|
|
2937
|
-
return oe(I,
|
|
2941
|
+
return oe(I, Y, !1);
|
|
2938
2942
|
case "m":
|
|
2939
|
-
return String(
|
|
2943
|
+
return String(Y);
|
|
2940
2944
|
case "mm":
|
|
2941
|
-
return
|
|
2945
|
+
return y.s(Y, 2, "0");
|
|
2942
2946
|
case "s":
|
|
2943
|
-
return String(
|
|
2947
|
+
return String(k.$s);
|
|
2944
2948
|
case "ss":
|
|
2945
|
-
return
|
|
2949
|
+
return y.s(k.$s, 2, "0");
|
|
2946
2950
|
case "SSS":
|
|
2947
|
-
return
|
|
2951
|
+
return y.s(k.$ms, 3, "0");
|
|
2948
2952
|
case "Z":
|
|
2949
|
-
return
|
|
2953
|
+
return D;
|
|
2950
2954
|
}
|
|
2951
2955
|
return null;
|
|
2952
|
-
}(F) ||
|
|
2956
|
+
}(F) || D.replace(":", "");
|
|
2953
2957
|
});
|
|
2954
2958
|
}, g.utcOffset = function() {
|
|
2955
2959
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
2956
|
-
}, g.diff = function(u,
|
|
2957
|
-
var
|
|
2958
|
-
return
|
|
2960
|
+
}, g.diff = function(u, k, x) {
|
|
2961
|
+
var N, D = this, I = y.p(k), Y = S(u), B = (Y.utcOffset() - this.utcOffset()) * n, P = this - Y, K = function() {
|
|
2962
|
+
return y.m(D, Y);
|
|
2959
2963
|
};
|
|
2960
2964
|
switch (I) {
|
|
2961
|
-
case
|
|
2962
|
-
|
|
2963
|
-
break;
|
|
2964
|
-
case y:
|
|
2965
|
-
$ = Z();
|
|
2965
|
+
case h:
|
|
2966
|
+
N = K() / 12;
|
|
2966
2967
|
break;
|
|
2967
2968
|
case w:
|
|
2968
|
-
|
|
2969
|
+
N = K();
|
|
2970
|
+
break;
|
|
2971
|
+
case C:
|
|
2972
|
+
N = K() / 3;
|
|
2969
2973
|
break;
|
|
2970
|
-
case
|
|
2971
|
-
|
|
2974
|
+
case v:
|
|
2975
|
+
N = (P - B) / 6048e5;
|
|
2972
2976
|
break;
|
|
2973
2977
|
case f:
|
|
2974
|
-
|
|
2978
|
+
N = (P - B) / 864e5;
|
|
2975
2979
|
break;
|
|
2976
2980
|
case p:
|
|
2977
|
-
|
|
2981
|
+
N = P / a;
|
|
2978
2982
|
break;
|
|
2979
2983
|
case s:
|
|
2980
|
-
|
|
2984
|
+
N = P / n;
|
|
2981
2985
|
break;
|
|
2982
|
-
case
|
|
2983
|
-
|
|
2986
|
+
case c:
|
|
2987
|
+
N = P / r;
|
|
2984
2988
|
break;
|
|
2985
2989
|
default:
|
|
2986
|
-
|
|
2990
|
+
N = P;
|
|
2987
2991
|
}
|
|
2988
|
-
return
|
|
2992
|
+
return x ? N : y.a(N);
|
|
2989
2993
|
}, g.daysInMonth = function() {
|
|
2990
|
-
return this.endOf(
|
|
2994
|
+
return this.endOf(w).$D;
|
|
2991
2995
|
}, g.$locale = function() {
|
|
2992
|
-
return
|
|
2993
|
-
}, g.locale = function(u,
|
|
2996
|
+
return T[this.$L];
|
|
2997
|
+
}, g.locale = function(u, k) {
|
|
2994
2998
|
if (!u) return this.$L;
|
|
2995
|
-
var
|
|
2996
|
-
return
|
|
2999
|
+
var x = this.clone(), N = G(u, k, !0);
|
|
3000
|
+
return N && (x.$L = N), x;
|
|
2997
3001
|
}, g.clone = function() {
|
|
2998
|
-
return
|
|
3002
|
+
return y.w(this.$d, this);
|
|
2999
3003
|
}, g.toDate = function() {
|
|
3000
3004
|
return new Date(this.valueOf());
|
|
3001
3005
|
}, g.toJSON = function() {
|
|
@@ -3004,17 +3008,17 @@ var Ee = { exports: {} };
|
|
|
3004
3008
|
return this.$d.toISOString();
|
|
3005
3009
|
}, g.toString = function() {
|
|
3006
3010
|
return this.$d.toUTCString();
|
|
3007
|
-
},
|
|
3008
|
-
}(),
|
|
3009
|
-
return
|
|
3010
|
-
|
|
3011
|
-
return this.$g(g,
|
|
3011
|
+
}, m;
|
|
3012
|
+
}(), Z = _.prototype;
|
|
3013
|
+
return S.prototype = Z, [["$ms", l], ["$s", c], ["$m", s], ["$H", p], ["$W", f], ["$M", w], ["$y", h], ["$D", i]].forEach(function(m) {
|
|
3014
|
+
Z[m[1]] = function(g) {
|
|
3015
|
+
return this.$g(g, m[0], m[1]);
|
|
3012
3016
|
};
|
|
3013
|
-
}),
|
|
3014
|
-
return
|
|
3015
|
-
},
|
|
3016
|
-
return
|
|
3017
|
-
},
|
|
3017
|
+
}), S.extend = function(m, g) {
|
|
3018
|
+
return m.$i || (m(g, _, S), m.$i = !0), S;
|
|
3019
|
+
}, S.locale = G, S.isDayjs = q, S.unix = function(m) {
|
|
3020
|
+
return S(1e3 * m);
|
|
3021
|
+
}, S.en = T[H], S.Ls = T, S.p = {}, S;
|
|
3018
3022
|
});
|
|
3019
3023
|
})(Ee);
|
|
3020
3024
|
var Pt = Ee.exports;
|
|
@@ -3024,73 +3028,73 @@ const fe = /* @__PURE__ */ Bt(Pt), Gt = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
3024
3028
|
value: r,
|
|
3025
3029
|
onChange: n
|
|
3026
3030
|
}) => {
|
|
3027
|
-
const [
|
|
3031
|
+
const [a, l] = A(!1), [c, s] = A(r), [p, f] = A(!0), [v, w] = A(!!r), [C, h] = A(
|
|
3028
3032
|
fe(r, "MM-DD-YYYY", !0).isValid() ? fe(r, "MM-DD-YYYY", !0) : null
|
|
3029
|
-
),
|
|
3033
|
+
), i = W(null), d = W(null), b = W(null), $ = (C == null ? void 0 : C.daysInMonth()) || 30, L = (C == null ? void 0 : C.startOf("month").day()) || 0;
|
|
3030
3034
|
R(() => {
|
|
3031
|
-
|
|
3032
|
-
const
|
|
3033
|
-
|
|
3035
|
+
c || (r = fe().format("MM-DD-YYYY"), w(!1)), s(r);
|
|
3036
|
+
const S = fe(r, "MM-DD-YYYY", !0);
|
|
3037
|
+
h(S.isValid() ? S : null), f(S.isValid() && r !== "");
|
|
3034
3038
|
}, [r]), R(() => {
|
|
3035
|
-
function
|
|
3036
|
-
|
|
3039
|
+
function S(y) {
|
|
3040
|
+
i.current && (i.current.contains(y.target) || l(!1));
|
|
3037
3041
|
}
|
|
3038
|
-
if (
|
|
3039
|
-
const
|
|
3042
|
+
if (a && b.current) {
|
|
3043
|
+
const y = b.current.querySelector(
|
|
3040
3044
|
'[role="button"]:not([disabled])'
|
|
3041
3045
|
);
|
|
3042
|
-
|
|
3046
|
+
y == null || y.focus(), document.addEventListener("mousedown", S);
|
|
3043
3047
|
}
|
|
3044
3048
|
return () => {
|
|
3045
|
-
document.removeEventListener("mousedown",
|
|
3049
|
+
document.removeEventListener("mousedown", S);
|
|
3046
3050
|
};
|
|
3047
|
-
}, [
|
|
3048
|
-
const E = (
|
|
3051
|
+
}, [a]);
|
|
3052
|
+
const E = (S) => {
|
|
3049
3053
|
var _;
|
|
3050
|
-
const
|
|
3051
|
-
|
|
3052
|
-
}, j = (
|
|
3053
|
-
|
|
3054
|
-
}, H = (
|
|
3055
|
-
const
|
|
3056
|
-
if (s(
|
|
3057
|
-
f(!1), n(
|
|
3054
|
+
const y = S.format("MM-DD-YYYY");
|
|
3055
|
+
w(!0), h(S), s(y), f(!0), n(y), l(!1), (_ = d.current) == null || _.focus();
|
|
3056
|
+
}, j = (S, y) => {
|
|
3057
|
+
S.key === "Enter" && E(y);
|
|
3058
|
+
}, H = (S) => {
|
|
3059
|
+
const y = S.target.value;
|
|
3060
|
+
if (s(y), w(!0), !/^\d{1,2}-\d{2}-\d{4}$/.test(y)) {
|
|
3061
|
+
f(!1), n(y);
|
|
3058
3062
|
return;
|
|
3059
3063
|
}
|
|
3060
|
-
const
|
|
3061
|
-
|
|
3062
|
-
},
|
|
3063
|
-
|
|
3064
|
-
},
|
|
3065
|
-
|
|
3064
|
+
const Z = fe(y, "MM-DD-YYYY", !0);
|
|
3065
|
+
Z.isValid() ? (console.log("MAYBEDATE IS VALID"), h(Z), f(!0), n(y)) : (console.log("MAYBEDATE IS --NOT-- VALID"), f(!1), n(y));
|
|
3066
|
+
}, T = () => {
|
|
3067
|
+
l((S) => !S);
|
|
3068
|
+
}, U = () => {
|
|
3069
|
+
C && h(C.subtract(1, "month"));
|
|
3066
3070
|
}, q = () => {
|
|
3067
|
-
|
|
3071
|
+
C && h(C.add(1, "month"));
|
|
3068
3072
|
}, G = () => {
|
|
3069
|
-
if (!
|
|
3070
|
-
const
|
|
3071
|
-
for (let
|
|
3072
|
-
|
|
3073
|
-
for (let
|
|
3074
|
-
const _ =
|
|
3075
|
-
|
|
3073
|
+
if (!C) return null;
|
|
3074
|
+
const S = [];
|
|
3075
|
+
for (let y = 0; y < L; y++)
|
|
3076
|
+
S.push(/* @__PURE__ */ o("div", { className: "w-8 h-8" }, `empty-${y}`));
|
|
3077
|
+
for (let y = 1; y <= $; y++) {
|
|
3078
|
+
const _ = C.date(y);
|
|
3079
|
+
S.push(
|
|
3076
3080
|
/* @__PURE__ */ o(
|
|
3077
3081
|
"button",
|
|
3078
3082
|
{
|
|
3079
3083
|
role: "presentation",
|
|
3080
3084
|
tabIndex: 0,
|
|
3081
3085
|
onClick: () => E(_),
|
|
3082
|
-
onKeyDown: (
|
|
3083
|
-
className: `w-8 h-8 ${_.isSame(
|
|
3086
|
+
onKeyDown: (Z) => j(Z, _),
|
|
3087
|
+
className: `w-8 h-8 ${_.isSame(C, "date") ? "bg-blue-500 text-white" : ""} hover:bg-blue-100 focus:ring`,
|
|
3084
3088
|
"aria-label": _.format("MMMM D, YYYY"),
|
|
3085
|
-
children:
|
|
3089
|
+
children: y
|
|
3086
3090
|
},
|
|
3087
|
-
|
|
3091
|
+
y
|
|
3088
3092
|
)
|
|
3089
3093
|
);
|
|
3090
3094
|
}
|
|
3091
|
-
return
|
|
3095
|
+
return S;
|
|
3092
3096
|
};
|
|
3093
|
-
return /* @__PURE__ */ V("div", { className: "relative", ref:
|
|
3097
|
+
return /* @__PURE__ */ V("div", { className: "relative", ref: i, children: [
|
|
3094
3098
|
/* @__PURE__ */ o("label", { htmlFor: e, id: "date-picker-input", className: "block text-sm font-medium text-gray-700", children: t }),
|
|
3095
3099
|
/* @__PURE__ */ V("div", { className: "flex items-center mt-1", children: [
|
|
3096
3100
|
/* @__PURE__ */ o(
|
|
@@ -3099,8 +3103,8 @@ const fe = /* @__PURE__ */ Bt(Pt), Gt = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
3099
3103
|
id: e,
|
|
3100
3104
|
type: "text",
|
|
3101
3105
|
"aria-labelledby": "date-picker-input",
|
|
3102
|
-
ref:
|
|
3103
|
-
value:
|
|
3106
|
+
ref: d,
|
|
3107
|
+
value: v ? c : "",
|
|
3104
3108
|
onChange: H,
|
|
3105
3109
|
placeholder: "MM-DD-YYYY",
|
|
3106
3110
|
className: `block w-full border-gray-300 border-2 rounded-l-md rounded-r-none py-2
|
|
@@ -3111,12 +3115,12 @@ const fe = /* @__PURE__ */ Bt(Pt), Gt = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
3111
3115
|
"button",
|
|
3112
3116
|
{
|
|
3113
3117
|
type: "button",
|
|
3114
|
-
onClick:
|
|
3118
|
+
onClick: T,
|
|
3115
3119
|
className: `px-3 py-2 bg-gray-100 border-2 border-gray-300 rounded-r-md rounded-l-none hover:bg-gray-200
|
|
3116
3120
|
focus:outline-none focus:border-blue-500`,
|
|
3117
3121
|
"aria-label": "Open calendar",
|
|
3118
3122
|
"aria-haspopup": "dialog",
|
|
3119
|
-
"aria-expanded":
|
|
3123
|
+
"aria-expanded": a,
|
|
3120
3124
|
"aria-controls": `${e}-dialog`,
|
|
3121
3125
|
children: /* @__PURE__ */ o(
|
|
3122
3126
|
"img",
|
|
@@ -3129,10 +3133,10 @@ const fe = /* @__PURE__ */ Bt(Pt), Gt = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
3129
3133
|
}
|
|
3130
3134
|
)
|
|
3131
3135
|
] }),
|
|
3132
|
-
|
|
3136
|
+
a && /* @__PURE__ */ V(
|
|
3133
3137
|
"div",
|
|
3134
3138
|
{
|
|
3135
|
-
ref:
|
|
3139
|
+
ref: b,
|
|
3136
3140
|
id: `${e}-dialog`,
|
|
3137
3141
|
role: "dialog",
|
|
3138
3142
|
"aria-label": "Calendar",
|
|
@@ -3142,13 +3146,13 @@ const fe = /* @__PURE__ */ Bt(Pt), Gt = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
3142
3146
|
/* @__PURE__ */ o(
|
|
3143
3147
|
"button",
|
|
3144
3148
|
{
|
|
3145
|
-
onClick:
|
|
3149
|
+
onClick: U,
|
|
3146
3150
|
className: "px-3 py-2 bg-gray-100 border border-gray-300 rounded-md hover:bg-gray-200 focus:outline-none focus:ring",
|
|
3147
3151
|
"aria-label": "Previous month",
|
|
3148
3152
|
children: "<"
|
|
3149
3153
|
}
|
|
3150
3154
|
),
|
|
3151
|
-
/* @__PURE__ */ o("div", { className: "text-lg font-semibold", children:
|
|
3155
|
+
/* @__PURE__ */ o("div", { className: "text-lg font-semibold", children: C == null ? void 0 : C.format("MMMM YYYY") }),
|
|
3152
3156
|
/* @__PURE__ */ o(
|
|
3153
3157
|
"button",
|
|
3154
3158
|
{
|
|
@@ -3174,7 +3178,95 @@ const fe = /* @__PURE__ */ Bt(Pt), Gt = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
3174
3178
|
),
|
|
3175
3179
|
!p && /* @__PURE__ */ o("p", { className: "text-red-600", children: "Please enter a valid date 'MM-DD-YYYY'" })
|
|
3176
3180
|
] });
|
|
3177
|
-
},
|
|
3181
|
+
}, we = {
|
|
3182
|
+
default: {
|
|
3183
|
+
container: "flex border-b border-gray-200",
|
|
3184
|
+
tab: "text-[#092068]",
|
|
3185
|
+
title: "",
|
|
3186
|
+
active: "border-b-2 border-[#092068] hover:border-b-2 hover:border-[#7392f3] hover:font-bold active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] focus:rounded-md",
|
|
3187
|
+
inactive: "hover:border-b-2 hover:border-[#7392f3] hover:font-bold"
|
|
3188
|
+
},
|
|
3189
|
+
outline: {
|
|
3190
|
+
container: "flex border-b border-gray-200",
|
|
3191
|
+
tab: "border-2 border-blue-500 text-blue-500",
|
|
3192
|
+
title: "",
|
|
3193
|
+
active: "border-2 bg-[#092068] text-white hover:bg-[#d1dbfb] hover:text-[#092068] hover:font-bold active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1)]",
|
|
3194
|
+
inactive: "text-[#092068] hover:bg-[#d1dbfb] hover:font-bold"
|
|
3195
|
+
},
|
|
3196
|
+
transparent: {
|
|
3197
|
+
container: "flex border-b border-gray-200",
|
|
3198
|
+
tab: "text-[#092068]",
|
|
3199
|
+
title: "",
|
|
3200
|
+
active: "border-b-2 border-[#092068] hover:border-b-2 hover:border-[#7392f3] hover:font-bold active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] focus:rounded-md",
|
|
3201
|
+
inactive: "hover:border-b-2 hover:border-[#7392f3] hover:font-bold"
|
|
3202
|
+
}
|
|
3203
|
+
};
|
|
3204
|
+
var Ft = /* @__PURE__ */ ((e) => (e.Right = "right", e.Left = "left", e.IconOnly = "iconOnly", e.None = "undefined", e))(Ft || {});
|
|
3205
|
+
const mr = ({ variant: e = "default", tabs: t, className: r, classNameContainer: n }) => {
|
|
3206
|
+
const [a, l] = A(0), [c, s] = A(!1), [p, f] = A(""), v = W([]);
|
|
3207
|
+
e === "" && (e = "default");
|
|
3208
|
+
const w = Me((i) => {
|
|
3209
|
+
var d;
|
|
3210
|
+
(d = v.current[i]) == null || d.focus();
|
|
3211
|
+
}, []), C = Me(
|
|
3212
|
+
(i, d) => {
|
|
3213
|
+
if (i.key === "ArrowRight") {
|
|
3214
|
+
const b = (d + 1) % t.length;
|
|
3215
|
+
l(b), w(b);
|
|
3216
|
+
} else if (i.key === "ArrowLeft") {
|
|
3217
|
+
const b = (d - 1 + t.length) % t.length;
|
|
3218
|
+
l(b), w(b);
|
|
3219
|
+
} else i.key === "Home" ? (l(0), w(0)) : i.key === "End" && (l(t.length - 1), w(t.length - 1));
|
|
3220
|
+
},
|
|
3221
|
+
[t.length, w]
|
|
3222
|
+
), h = (i) => {
|
|
3223
|
+
s(!0), f(i);
|
|
3224
|
+
};
|
|
3225
|
+
return /* @__PURE__ */ V("div", { className: M("w-full", n), children: [
|
|
3226
|
+
/* @__PURE__ */ o(
|
|
3227
|
+
"div",
|
|
3228
|
+
{
|
|
3229
|
+
role: "tablist",
|
|
3230
|
+
"aria-label": "Tabs",
|
|
3231
|
+
className: M(we[e].container, r),
|
|
3232
|
+
children: t.map((i, d) => /* @__PURE__ */ V(
|
|
3233
|
+
"button",
|
|
3234
|
+
{
|
|
3235
|
+
role: "tab",
|
|
3236
|
+
id: `tab-${i.id}`,
|
|
3237
|
+
onMouseEnter: () => h(i.id),
|
|
3238
|
+
onMouseLeave: () => s(!1),
|
|
3239
|
+
"aria-selected": a === d,
|
|
3240
|
+
"aria-controls": `panel-${i.id}`,
|
|
3241
|
+
tabIndex: a === d ? 0 : -1,
|
|
3242
|
+
ref: (b) => v.current[d] = b,
|
|
3243
|
+
className: `flex px-4 py-2 focus:outline-none ${e === "outline" ? `border-[#092068] ${d === 0 ? "border-l-2 border-t-2 border-b-2 rounded-l-md focus:rounded-l-md" : d === t.length - 1 ? "border-r-2 border-t-2 border-b-2 rounded-r-md focus:rounded-r-md" : "border-t-2 border-b-2"}` : ""} ${M(a === d ? we[e].active : we[e].inactive)}`,
|
|
3244
|
+
onClick: () => l(d),
|
|
3245
|
+
onKeyDown: (b) => C(b, d),
|
|
3246
|
+
children: [
|
|
3247
|
+
i.iconPosition === "left" && i.activeIcon && /* @__PURE__ */ o("span", { className: "icon-left mr-3 size-6", children: a === d ? c && p === i.id ? i.inactiveIcon : i.activeIcon : i.inactiveIcon }),
|
|
3248
|
+
i.iconPosition === "iconOnly" && i.activeIcon ? /* @__PURE__ */ o("span", { className: "size-6", children: a === d ? c && p === i.id ? i.inactiveIcon : i.activeIcon : i.inactiveIcon }) : /* @__PURE__ */ o("span", { className: "button-text", children: i.label }),
|
|
3249
|
+
i.iconPosition === "right" && i.activeIcon && /* @__PURE__ */ o("span", { className: "icon-right ml-3 size-6", children: a === d ? c && p === i.id ? i.inactiveIcon : i.activeIcon : i.inactiveIcon })
|
|
3250
|
+
]
|
|
3251
|
+
},
|
|
3252
|
+
i.id
|
|
3253
|
+
))
|
|
3254
|
+
}
|
|
3255
|
+
),
|
|
3256
|
+
t.map((i, d) => /* @__PURE__ */ o(
|
|
3257
|
+
"div",
|
|
3258
|
+
{
|
|
3259
|
+
role: "tabpanel",
|
|
3260
|
+
id: `panel-${i.id}`,
|
|
3261
|
+
"aria-labelledby": `tab-${i.id}`,
|
|
3262
|
+
hidden: a !== d,
|
|
3263
|
+
className: "p-4",
|
|
3264
|
+
children: i.content
|
|
3265
|
+
},
|
|
3266
|
+
i.id
|
|
3267
|
+
))
|
|
3268
|
+
] });
|
|
3269
|
+
}, De = "h-10 px-4 py-2 arial rounded-sm border-2 border-[#c6c6c6] p-1 ps-2 mx-2 bg-white hover:outline-[#c6c6c6] focus:outline-[#0256ab] active:outline-[#0256ab]", Ut = [
|
|
3178
3270
|
{
|
|
3179
3271
|
variant: "default",
|
|
3180
3272
|
classes: "rounded-xl hover:bg-dha-mc-pale-blue text-black hover:dha-mc-primary-text hover:border-dha-mc-secondary-border disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive disabled:border-dha-mc-secondary-border disabled:border-2 w-[90vw] lg:max-w-[25em]"
|
|
@@ -3191,32 +3283,32 @@ const fe = /* @__PURE__ */ Bt(Pt), Gt = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
3191
3283
|
variant: "MedCard",
|
|
3192
3284
|
classes: "rounded-sm text-black hover:dha-mc-primary-text hover:border-dha-mc-secondary-border disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive disabled:border-dha-mc-secondary-border disabled:border-2 w-[90vw] lg:max-w-[15em]"
|
|
3193
3285
|
}
|
|
3194
|
-
],
|
|
3286
|
+
], Wt = J(
|
|
3195
3287
|
({
|
|
3196
3288
|
className: e,
|
|
3197
3289
|
variant: t = "default",
|
|
3198
3290
|
label: r,
|
|
3199
3291
|
classNameLabel: n,
|
|
3200
|
-
labelBaseColor:
|
|
3292
|
+
labelBaseColor: a = "#fff",
|
|
3201
3293
|
// labelInputColor = '#fff',
|
|
3202
|
-
textShadow:
|
|
3203
|
-
...
|
|
3294
|
+
textShadow: l = !1,
|
|
3295
|
+
...c
|
|
3204
3296
|
}, s) => {
|
|
3205
|
-
const [p, f] = A(), [
|
|
3297
|
+
const [p, f] = A(), [v, w] = A(De), [C, h] = A(!1), i = W(null);
|
|
3206
3298
|
if (R(() => {
|
|
3207
|
-
var
|
|
3208
|
-
t &&
|
|
3209
|
-
}, [e, t,
|
|
3210
|
-
const
|
|
3211
|
-
if (!
|
|
3212
|
-
const
|
|
3213
|
-
const
|
|
3214
|
-
f(
|
|
3299
|
+
var d;
|
|
3300
|
+
t && w(M(De, (d = Ut.find((b) => b.variant === t)) == null ? void 0 : d.classes, e));
|
|
3301
|
+
}, [e, t, C]), R(() => {
|
|
3302
|
+
const d = i.current;
|
|
3303
|
+
if (!d) return;
|
|
3304
|
+
const b = ($) => {
|
|
3305
|
+
const L = getComputedStyle(d);
|
|
3306
|
+
f(L.backgroundColor), h($);
|
|
3215
3307
|
};
|
|
3216
|
-
return
|
|
3217
|
-
|
|
3308
|
+
return b(!0), d.addEventListener("mouseover", () => b(!0)), d.addEventListener("mouseout", () => b(!1)), () => {
|
|
3309
|
+
d.removeEventListener("mouseover", () => b), d.removeEventListener("mouseout", () => b);
|
|
3218
3310
|
};
|
|
3219
|
-
}, [
|
|
3311
|
+
}, [a, C]), !["default", "Outline", "nonHover", "MedCard"].includes(t))
|
|
3220
3312
|
throw new Error(
|
|
3221
3313
|
`Invalid variant: "${t}". Valid variants are: "default", "Outline", "nonHover", "MedCard".`
|
|
3222
3314
|
);
|
|
@@ -3229,11 +3321,11 @@ const fe = /* @__PURE__ */ Bt(Pt), Gt = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
3229
3321
|
n
|
|
3230
3322
|
),
|
|
3231
3323
|
style: {
|
|
3232
|
-
background: `linear-gradient(to bottom, ${
|
|
3233
|
-
textShadow:
|
|
3324
|
+
background: `linear-gradient(to bottom, ${a} 0%, ${a} 50%, ${p} 60%, ${p} 100%)`,
|
|
3325
|
+
textShadow: l ? `1px 1px 2px ${a}, 0 0 1em ${a}, 0 0 0.2em ${a}` : ""
|
|
3234
3326
|
},
|
|
3235
3327
|
children: [
|
|
3236
|
-
|
|
3328
|
+
c.required && /* @__PURE__ */ o("span", { className: "text-red-500", children: "*" }),
|
|
3237
3329
|
r
|
|
3238
3330
|
]
|
|
3239
3331
|
}
|
|
@@ -3241,47 +3333,47 @@ const fe = /* @__PURE__ */ Bt(Pt), Gt = "data:image/svg+xml,%3csvg%20xmlns='http
|
|
|
3241
3333
|
/* @__PURE__ */ o(
|
|
3242
3334
|
"input",
|
|
3243
3335
|
{
|
|
3244
|
-
className:
|
|
3336
|
+
className: v,
|
|
3245
3337
|
"aria-label": r,
|
|
3246
|
-
ref: (
|
|
3247
|
-
typeof s == "function" ? s(
|
|
3338
|
+
ref: (d) => {
|
|
3339
|
+
typeof s == "function" ? s(d) : s && (s.current = d), i.current = d;
|
|
3248
3340
|
},
|
|
3249
|
-
...
|
|
3341
|
+
...c
|
|
3250
3342
|
}
|
|
3251
3343
|
)
|
|
3252
3344
|
] });
|
|
3253
3345
|
}
|
|
3254
3346
|
);
|
|
3255
|
-
|
|
3256
|
-
const
|
|
3347
|
+
Wt.displayName = "Input";
|
|
3348
|
+
const Zt = ({
|
|
3257
3349
|
items: e,
|
|
3258
3350
|
header: t,
|
|
3259
3351
|
className: r = "",
|
|
3260
3352
|
classNameItem: n = "",
|
|
3261
|
-
children:
|
|
3262
|
-
withDividers:
|
|
3263
|
-
classNameDividerColor:
|
|
3353
|
+
children: a,
|
|
3354
|
+
withDividers: l = !1,
|
|
3355
|
+
classNameDividerColor: c = "",
|
|
3264
3356
|
isDecimal: s = !1,
|
|
3265
3357
|
isDisc: p = !1
|
|
3266
3358
|
}) => /* @__PURE__ */ V("div", { className: "p-0 m-0", children: [
|
|
3267
3359
|
/* @__PURE__ */ o("p", { children: t }),
|
|
3268
3360
|
/* @__PURE__ */ V("ul", { className: M("pl-10 list-none w-full", s ? "list-decimal" : "", p ? "list-disc" : "", r), children: [
|
|
3269
|
-
e && e.map((f,
|
|
3361
|
+
e && e.map((f, v) => /* @__PURE__ */ o(
|
|
3270
3362
|
He,
|
|
3271
3363
|
{
|
|
3272
|
-
className: M("w-full",
|
|
3364
|
+
className: M("w-full", l && v !== e.length - 1 ? "border-b" : "", c !== "" && v !== e.length - 1 ? "border-" + c : "", n),
|
|
3273
3365
|
children: f.children
|
|
3274
3366
|
},
|
|
3275
|
-
|
|
3367
|
+
v
|
|
3276
3368
|
)),
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
(f,
|
|
3369
|
+
a && re.Children.map(
|
|
3370
|
+
a,
|
|
3371
|
+
(f, v) => re.isValidElement(f) ? re.cloneElement(f, {
|
|
3280
3372
|
className: M(
|
|
3281
3373
|
f.props.className,
|
|
3282
3374
|
"w-full",
|
|
3283
|
-
|
|
3284
|
-
|
|
3375
|
+
l && v !== re.Children.count(a) - 1 ? "border-b" : "",
|
|
3376
|
+
c !== "" && v !== re.Children.count(a) - 1 ? "border-" + c : ""
|
|
3285
3377
|
)
|
|
3286
3378
|
}) : f
|
|
3287
3379
|
)
|
|
@@ -3315,47 +3407,48 @@ const Wt = ({
|
|
|
3315
3407
|
body: "",
|
|
3316
3408
|
button: "px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600 focus:outline-none focus:ring ring-blue-400"
|
|
3317
3409
|
}
|
|
3318
|
-
},
|
|
3410
|
+
}, pr = ({
|
|
3319
3411
|
isOpen: e,
|
|
3320
3412
|
variant: t = "default",
|
|
3321
3413
|
onClose: r,
|
|
3322
3414
|
title: n,
|
|
3323
|
-
className:
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3415
|
+
className: a,
|
|
3416
|
+
closeButton: l = !0,
|
|
3417
|
+
clickOutsideCloses: c = !1,
|
|
3418
|
+
displayClosingX: s = !0,
|
|
3419
|
+
closeButtonText: p = "Close",
|
|
3420
|
+
continueButton: f = !1,
|
|
3421
|
+
continueButtonHandler: v,
|
|
3422
|
+
continueButtonText: w = "Continue",
|
|
3423
|
+
children: C
|
|
3331
3424
|
}) => {
|
|
3332
|
-
const
|
|
3425
|
+
const h = W(null), i = W(null);
|
|
3333
3426
|
if (R(() => {
|
|
3334
|
-
if (
|
|
3335
|
-
const
|
|
3336
|
-
|
|
3427
|
+
if (c) {
|
|
3428
|
+
const b = ($) => {
|
|
3429
|
+
h.current && !h.current.contains($.target) && r();
|
|
3337
3430
|
};
|
|
3338
|
-
return document.addEventListener("mousedown",
|
|
3339
|
-
document.removeEventListener("mousedown",
|
|
3431
|
+
return document.addEventListener("mousedown", b), () => {
|
|
3432
|
+
document.removeEventListener("mousedown", b);
|
|
3340
3433
|
};
|
|
3341
3434
|
}
|
|
3342
3435
|
}, [r]), R(() => {
|
|
3343
|
-
var
|
|
3344
|
-
const
|
|
3345
|
-
|
|
3346
|
-
},
|
|
3347
|
-
var
|
|
3348
|
-
const
|
|
3436
|
+
var L;
|
|
3437
|
+
const b = (E) => {
|
|
3438
|
+
E.key === "Escape" && e && r();
|
|
3439
|
+
}, $ = (E) => {
|
|
3440
|
+
var U;
|
|
3441
|
+
const j = (U = h.current) == null ? void 0 : U.querySelectorAll(
|
|
3349
3442
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
3350
|
-
),
|
|
3351
|
-
|
|
3443
|
+
), H = j == null ? void 0 : j[0], T = j == null ? void 0 : j[j.length - 1];
|
|
3444
|
+
E.key === "Tab" && j && (E.shiftKey && document.activeElement === H ? (E.preventDefault(), T == null || T.focus()) : !E.shiftKey && document.activeElement === T && (E.preventDefault(), H == null || H.focus()));
|
|
3352
3445
|
};
|
|
3353
|
-
return e ? (document.body.style.overflow = "hidden", window.addEventListener("keydown",
|
|
3354
|
-
window.removeEventListener("keydown",
|
|
3446
|
+
return e ? (document.body.style.overflow = "hidden", window.addEventListener("keydown", b), window.addEventListener("keydown", $), (L = i.current) == null || L.focus()) : document.body.style.overflow = "auto", () => {
|
|
3447
|
+
window.removeEventListener("keydown", b), window.removeEventListener("keydown", $), document.body.style.overflow = "auto";
|
|
3355
3448
|
};
|
|
3356
3449
|
}, [e, r]), !e) return null;
|
|
3357
|
-
const
|
|
3358
|
-
|
|
3450
|
+
const d = () => {
|
|
3451
|
+
v && v(), r();
|
|
3359
3452
|
};
|
|
3360
3453
|
return /* @__PURE__ */ o(
|
|
3361
3454
|
"div",
|
|
@@ -3365,15 +3458,15 @@ const Wt = ({
|
|
|
3365
3458
|
children: /* @__PURE__ */ V(
|
|
3366
3459
|
"div",
|
|
3367
3460
|
{
|
|
3368
|
-
className: M(se[t].container,
|
|
3369
|
-
ref:
|
|
3461
|
+
className: M(se[t].container, a),
|
|
3462
|
+
ref: h,
|
|
3370
3463
|
"aria-labelledby": "modal-title",
|
|
3371
3464
|
role: "dialog",
|
|
3372
3465
|
"aria-modal": "true",
|
|
3373
3466
|
children: [
|
|
3374
3467
|
/* @__PURE__ */ V("div", { className: M(se[t].title), children: [
|
|
3375
3468
|
/* @__PURE__ */ o("h2", { id: "modal-title", className: M("text-lg font-medium text-gray-900", se[t].titleHeading), children: n }),
|
|
3376
|
-
|
|
3469
|
+
s && /* @__PURE__ */ o(
|
|
3377
3470
|
"button",
|
|
3378
3471
|
{
|
|
3379
3472
|
onClick: r,
|
|
@@ -3386,23 +3479,23 @@ const Wt = ({
|
|
|
3386
3479
|
}
|
|
3387
3480
|
)
|
|
3388
3481
|
] }),
|
|
3389
|
-
/* @__PURE__ */ o("div", { className: M(se[t].body), children:
|
|
3482
|
+
/* @__PURE__ */ o("div", { className: M(se[t].body), children: C }),
|
|
3390
3483
|
/* @__PURE__ */ V("div", { className: "mt-4 flex justify-end", children: [
|
|
3391
|
-
/* @__PURE__ */ o(
|
|
3484
|
+
l && /* @__PURE__ */ o(
|
|
3392
3485
|
"button",
|
|
3393
3486
|
{
|
|
3394
|
-
ref:
|
|
3487
|
+
ref: i,
|
|
3395
3488
|
onClick: r,
|
|
3396
3489
|
className: M(se[t].button),
|
|
3397
|
-
children:
|
|
3490
|
+
children: p
|
|
3398
3491
|
}
|
|
3399
3492
|
),
|
|
3400
|
-
|
|
3493
|
+
f && /* @__PURE__ */ o(
|
|
3401
3494
|
"button",
|
|
3402
3495
|
{
|
|
3403
|
-
onClick:
|
|
3496
|
+
onClick: d,
|
|
3404
3497
|
className: M(se[t].button, "ms-4"),
|
|
3405
|
-
children:
|
|
3498
|
+
children: w
|
|
3406
3499
|
}
|
|
3407
3500
|
)
|
|
3408
3501
|
] })
|
|
@@ -3411,147 +3504,147 @@ const Wt = ({
|
|
|
3411
3504
|
)
|
|
3412
3505
|
}
|
|
3413
3506
|
);
|
|
3414
|
-
},
|
|
3507
|
+
}, hr = J(
|
|
3415
3508
|
({
|
|
3416
3509
|
className: e = "",
|
|
3417
3510
|
iconLeft: t,
|
|
3418
3511
|
iconLeftSelected: r,
|
|
3419
3512
|
iconRight: n,
|
|
3420
|
-
iconRightSelected:
|
|
3421
|
-
children:
|
|
3422
|
-
onClick:
|
|
3513
|
+
iconRightSelected: a,
|
|
3514
|
+
children: l,
|
|
3515
|
+
onClick: c,
|
|
3423
3516
|
selected: s = !1,
|
|
3424
3517
|
...p
|
|
3425
3518
|
}, f) => {
|
|
3426
|
-
const [
|
|
3519
|
+
const [v, w] = A(), [C, h] = A(), [i, d] = A("bg-white");
|
|
3427
3520
|
return R(() => {
|
|
3428
|
-
const
|
|
3429
|
-
|
|
3430
|
-
}, [t, n,
|
|
3431
|
-
|
|
3521
|
+
const b = "text-lg font-normal font-['Arial'] leading-normal ";
|
|
3522
|
+
h(t && n ? b : t ? b + "mr-6" : n ? b + "ml-6" : b + "ml-6 mr-6");
|
|
3523
|
+
}, [t, n, l]), R(() => {
|
|
3524
|
+
d(s ? "bg-[#092068] focus:bg-[#092068] text-white" : "bg-white"), w(M(
|
|
3432
3525
|
"relative inline-flex items-center justify-center whitespace-nowrap rounded-3xl transition-colors focus-visible:outline-none font-[`Arial`] disabled:pointer-events-none disabled:opacity-50 border-2 border-[#092068] text-[#092068] text-lg focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] bg-white hover:bg-[#D1DBFB] active:bg-[#9fc5f0] focus:bg-white disabled:bg-[#939194] disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive focus:border-black disabled:border-dha-mc-secondary-border disabled:border-2 h-[48px] mt-1",
|
|
3433
|
-
|
|
3526
|
+
i,
|
|
3434
3527
|
e
|
|
3435
3528
|
));
|
|
3436
|
-
}, [e,
|
|
3529
|
+
}, [e, i, s]), /* @__PURE__ */ V(
|
|
3437
3530
|
"button",
|
|
3438
3531
|
{
|
|
3439
|
-
onClick:
|
|
3440
|
-
className:
|
|
3532
|
+
onClick: c,
|
|
3533
|
+
className: v,
|
|
3441
3534
|
ref: f,
|
|
3442
3535
|
...p,
|
|
3443
3536
|
children: [
|
|
3444
3537
|
t && /* @__PURE__ */ o("span", { className: "ml-6 mr-2.5 size-6", children: s && r ? r : t }),
|
|
3445
|
-
/* @__PURE__ */ o("div", { className:
|
|
3446
|
-
n && /* @__PURE__ */ o("span", { className: "ml-2.5 mr-6 size-6", children: s &&
|
|
3538
|
+
/* @__PURE__ */ o("div", { className: C, children: l }),
|
|
3539
|
+
n && /* @__PURE__ */ o("span", { className: "ml-2.5 mr-6 size-6", children: s && a ? a : n })
|
|
3447
3540
|
]
|
|
3448
3541
|
}
|
|
3449
3542
|
);
|
|
3450
3543
|
}
|
|
3451
|
-
),
|
|
3544
|
+
), xr = J(
|
|
3452
3545
|
({
|
|
3453
3546
|
className: e = "",
|
|
3454
3547
|
classNameChildren: t = "",
|
|
3455
3548
|
classNameSubHeader: r = "",
|
|
3456
3549
|
iconLeft: n,
|
|
3457
|
-
iconRight:
|
|
3458
|
-
underline:
|
|
3459
|
-
subHeader:
|
|
3550
|
+
iconRight: a,
|
|
3551
|
+
underline: l = !1,
|
|
3552
|
+
subHeader: c = !1,
|
|
3460
3553
|
children: s,
|
|
3461
3554
|
...p
|
|
3462
3555
|
}, f) => {
|
|
3463
|
-
const [
|
|
3556
|
+
const [v, w] = A(""), C = "px-2 justify-start items-start gap-4 inline-flex w-full";
|
|
3464
3557
|
return R(() => {
|
|
3465
|
-
|
|
3466
|
-
}, [e,
|
|
3558
|
+
w(M(C, l ? "border-b-2 border-black" : "", e));
|
|
3559
|
+
}, [e, l]), /* @__PURE__ */ V("div", { className: M(v, e), children: [
|
|
3467
3560
|
/* @__PURE__ */ V("div", { className: "grow shrink basis-0 justify-start items-start gap-2 flex", children: [
|
|
3468
3561
|
n && n,
|
|
3469
3562
|
/* @__PURE__ */ V("div", { className: "flex-col justify-start items-start inline-flex w-full", children: [
|
|
3470
3563
|
/* @__PURE__ */ o("div", { className: M("self-stretch text-[#07192d] text-[40px] font-normal font-['Arial'] leading-[48px] pb-1", t), children: s }),
|
|
3471
|
-
|
|
3564
|
+
c && /* @__PURE__ */ o("div", { className: M("text-[#07192d] text-xl font-normal font-['Arial'] leading-[30px]", r), children: c })
|
|
3472
3565
|
] })
|
|
3473
3566
|
] }),
|
|
3474
|
-
|
|
3567
|
+
a && a
|
|
3475
3568
|
] });
|
|
3476
3569
|
}
|
|
3477
|
-
),
|
|
3570
|
+
), Kt = "outline-none outline-offset-0 flex justify-between items-center w-[292px] md:w-[343px] lg:w-[600px] h-14 border focus:outline-4 focus:outline-[#fa89f1] shadow-sm px-4 py-2 bg-white text-lg font-medium text-gray-700 hover:bg-gray-50 border-[#b3b3b3]", ze = {
|
|
3478
3571
|
default: "hover:bg-gray-200 text-blackhover:border-gray-400 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive h-12 mt-1 disabled:border-dha-mc-secondary-border disabled:border-2",
|
|
3479
3572
|
fill: "hover:bg-[#0c2c8e] text-base text-white bg-[#092068] hover:border-gray-400 disabled:bg-dha-mc-bottom-nav-background disabled:text-dha-mc-checkbox-inactive h-12 mt-1 disabled:border-dha-mc-secondary-border disabled:border-2 py-3 pl-[15px] pr-[9px] ",
|
|
3480
3573
|
outline: "border-dha-mc-true-blue bg-white border-2 text-dha-mc-true-blue disabled:border-dha-mc-secondary-border disabled:text-dha-mc-checkbox-inactive"
|
|
3481
|
-
},
|
|
3574
|
+
}, vr = ({
|
|
3482
3575
|
className: e,
|
|
3483
3576
|
label: t,
|
|
3484
3577
|
options: r,
|
|
3485
3578
|
optionsLabel: n,
|
|
3486
|
-
disabled:
|
|
3487
|
-
variant:
|
|
3488
|
-
setSelectedOption:
|
|
3579
|
+
disabled: a = !1,
|
|
3580
|
+
variant: l = "default",
|
|
3581
|
+
setSelectedOption: c,
|
|
3489
3582
|
error: s = !1,
|
|
3490
3583
|
width: p = "",
|
|
3491
3584
|
...f
|
|
3492
3585
|
}) => {
|
|
3493
|
-
const
|
|
3586
|
+
const v = W(null), w = W(null), C = W(null), [h, i] = A(!1), [d, b] = A(!1), [$, L] = A(n || "Options"), [E, j] = A(null), H = W("bottom-[60px]"), [T, U] = A("");
|
|
3494
3587
|
R(() => {
|
|
3495
|
-
if (
|
|
3496
|
-
const
|
|
3588
|
+
if (w.current) {
|
|
3589
|
+
const m = w.current.getBoundingClientRect(), g = Math.floor(m.height) + 2;
|
|
3497
3590
|
H.current = "bottom-[" + g + "px]", console.log("button height: ", H.current);
|
|
3498
3591
|
}
|
|
3499
|
-
}, [
|
|
3592
|
+
}, [w.current]);
|
|
3500
3593
|
const q = () => {
|
|
3501
|
-
if (
|
|
3502
|
-
const
|
|
3594
|
+
if (v.current && C.current) {
|
|
3595
|
+
const m = v.current.getBoundingClientRect(), g = C.current.offsetHeight;
|
|
3503
3596
|
console.log("dropdownHeight: ", g);
|
|
3504
|
-
const u = window.innerHeight,
|
|
3505
|
-
console.log("windowHeight: ", u), console.log("documentHeight: ",
|
|
3597
|
+
const u = window.innerHeight, k = document.body.offsetHeight, x = u > k ? k : u;
|
|
3598
|
+
console.log("windowHeight: ", u), console.log("documentHeight: ", k), console.log("calculated containerHeight: ", x), console.log("buttonRect.bottom: ", m.bottom), x - m.bottom < g && m.top > g ? b(!0) : b(!1);
|
|
3506
3599
|
}
|
|
3507
|
-
}, G =
|
|
3600
|
+
}, G = W([]);
|
|
3508
3601
|
R(() => {
|
|
3509
3602
|
G.current = G.current.slice(0, r.length);
|
|
3510
3603
|
}, [r]);
|
|
3511
|
-
const [
|
|
3512
|
-
|
|
3604
|
+
const [S, y] = A(0), _ = () => {
|
|
3605
|
+
i(!h), y(0);
|
|
3513
3606
|
};
|
|
3514
3607
|
R(() => {
|
|
3515
|
-
|
|
3608
|
+
U(s ? "border-2 border-[#ff0004]" : "");
|
|
3516
3609
|
}, [s]), R(() => {
|
|
3517
|
-
function
|
|
3518
|
-
|
|
3610
|
+
function m(k) {
|
|
3611
|
+
h && v.current && !v.current.contains(k.target) && i(!1);
|
|
3519
3612
|
}
|
|
3520
|
-
function g(
|
|
3521
|
-
|
|
3613
|
+
function g(k) {
|
|
3614
|
+
h && k.key === "Escape" && i(!1);
|
|
3522
3615
|
}
|
|
3523
|
-
function u(
|
|
3524
|
-
|
|
3616
|
+
function u(k) {
|
|
3617
|
+
h && v.current && !v.current.contains(k.target) && i(!1);
|
|
3525
3618
|
}
|
|
3526
|
-
return document.addEventListener("mousedown",
|
|
3527
|
-
document.removeEventListener("mousedown",
|
|
3619
|
+
return document.addEventListener("mousedown", m), document.addEventListener("touchend", m), document.addEventListener("keydown", g), document.addEventListener("focusin", u), () => {
|
|
3620
|
+
document.removeEventListener("mousedown", m), document.removeEventListener("touchend", m), document.removeEventListener("keydown", g), document.removeEventListener("focusin", u);
|
|
3528
3621
|
};
|
|
3529
|
-
}, [
|
|
3530
|
-
|
|
3531
|
-
}, [
|
|
3532
|
-
var
|
|
3533
|
-
|
|
3534
|
-
}, [
|
|
3535
|
-
const
|
|
3536
|
-
if (
|
|
3537
|
-
switch (
|
|
3622
|
+
}, [h]), R(() => {
|
|
3623
|
+
h && q();
|
|
3624
|
+
}, [h]), R(() => {
|
|
3625
|
+
var m;
|
|
3626
|
+
h && ((m = G.current[S]) == null || m.focus());
|
|
3627
|
+
}, [S, h]);
|
|
3628
|
+
const Z = (m) => {
|
|
3629
|
+
if (h)
|
|
3630
|
+
switch (m.key) {
|
|
3538
3631
|
case "ArrowDown":
|
|
3539
|
-
|
|
3632
|
+
m.preventDefault(), y((g) => {
|
|
3540
3633
|
const u = (g + 1) % r.length;
|
|
3541
3634
|
return j(u), u;
|
|
3542
3635
|
});
|
|
3543
3636
|
break;
|
|
3544
3637
|
case "ArrowUp":
|
|
3545
|
-
|
|
3638
|
+
m.preventDefault(), y((g) => {
|
|
3546
3639
|
const u = (g - 1 + r.length) % r.length;
|
|
3547
3640
|
return j(u), u;
|
|
3548
3641
|
});
|
|
3549
3642
|
break;
|
|
3550
3643
|
case "Home":
|
|
3551
|
-
|
|
3644
|
+
m.preventDefault(), y(0);
|
|
3552
3645
|
break;
|
|
3553
3646
|
case "End":
|
|
3554
|
-
|
|
3647
|
+
m.preventDefault(), y(r.length - 1);
|
|
3555
3648
|
break;
|
|
3556
3649
|
}
|
|
3557
3650
|
};
|
|
@@ -3559,32 +3652,32 @@ const Wt = ({
|
|
|
3559
3652
|
"div",
|
|
3560
3653
|
{
|
|
3561
3654
|
className: M("relative inline-block text-left"),
|
|
3562
|
-
ref:
|
|
3655
|
+
ref: v,
|
|
3563
3656
|
...f,
|
|
3564
|
-
"aria-disabled":
|
|
3657
|
+
"aria-disabled": a,
|
|
3565
3658
|
children: [
|
|
3566
3659
|
t ? /* @__PURE__ */ o("p", { className: "text-[#092068] mb-2", children: t }) : "",
|
|
3567
3660
|
/* @__PURE__ */ V(
|
|
3568
3661
|
"button",
|
|
3569
3662
|
{
|
|
3570
3663
|
onClick: _,
|
|
3571
|
-
ref:
|
|
3664
|
+
ref: w,
|
|
3572
3665
|
className: M(
|
|
3573
|
-
|
|
3574
|
-
ze[
|
|
3575
|
-
|
|
3666
|
+
Kt,
|
|
3667
|
+
ze[l] || ze.default,
|
|
3668
|
+
T,
|
|
3576
3669
|
e,
|
|
3577
3670
|
p,
|
|
3578
|
-
|
|
3671
|
+
h && d && "rounded-b-lg" || h && !d && "rounded-t-lg" || "rounded-lg"
|
|
3579
3672
|
),
|
|
3580
|
-
"aria-label": "Select options - " +
|
|
3581
|
-
"aria-disabled":
|
|
3582
|
-
"aria-expanded":
|
|
3673
|
+
"aria-label": "Select options - " + $,
|
|
3674
|
+
"aria-disabled": a,
|
|
3675
|
+
"aria-expanded": h,
|
|
3583
3676
|
"aria-haspopup": "listbox",
|
|
3584
|
-
disabled:
|
|
3677
|
+
disabled: a,
|
|
3585
3678
|
tabIndex: 0,
|
|
3586
3679
|
children: [
|
|
3587
|
-
|
|
3680
|
+
$,
|
|
3588
3681
|
/* @__PURE__ */ o(
|
|
3589
3682
|
"svg",
|
|
3590
3683
|
{
|
|
@@ -3600,20 +3693,20 @@ const Wt = ({
|
|
|
3600
3693
|
]
|
|
3601
3694
|
}
|
|
3602
3695
|
),
|
|
3603
|
-
|
|
3696
|
+
h && /* @__PURE__ */ o(
|
|
3604
3697
|
"div",
|
|
3605
3698
|
{
|
|
3606
3699
|
role: "listbox",
|
|
3607
|
-
ref:
|
|
3700
|
+
ref: C,
|
|
3608
3701
|
"aria-label": "Select option",
|
|
3609
|
-
onKeyDown:
|
|
3702
|
+
onKeyDown: Z,
|
|
3610
3703
|
className: M(
|
|
3611
3704
|
"absolute w-[292px] md:w-[343px] lg:w-[600px] shadow-lg bg-white ring-1 ring-white ring-opacity-5 focus:outline-none z-10",
|
|
3612
3705
|
p,
|
|
3613
|
-
|
|
3614
|
-
|
|
3706
|
+
h && d && "rounded-t-lg pt-1" || h && !d && "rounded-b-lg pb-1",
|
|
3707
|
+
d && H.current
|
|
3615
3708
|
),
|
|
3616
|
-
children: r.map((
|
|
3709
|
+
children: r.map((m, g) => (
|
|
3617
3710
|
// <li key={item.name}>
|
|
3618
3711
|
/* @__PURE__ */ o(
|
|
3619
3712
|
"button",
|
|
@@ -3623,16 +3716,16 @@ const Wt = ({
|
|
|
3623
3716
|
hover:bg-[#092068]/20 focus:outline-none focus:bg-[#092068]/20`,
|
|
3624
3717
|
role: "option",
|
|
3625
3718
|
"aria-selected": E === g,
|
|
3626
|
-
"aria-label": "option " +
|
|
3719
|
+
"aria-label": "option " + m.name,
|
|
3627
3720
|
onClick: () => {
|
|
3628
|
-
j(g),
|
|
3721
|
+
j(g), L(m.name), c(m.value || m.name), i(!1);
|
|
3629
3722
|
},
|
|
3630
3723
|
onKeyDown: (u) => {
|
|
3631
|
-
u.key === "Enter" || u.code === "Enter" || u.key === " " ? (j(g),
|
|
3724
|
+
u.key === "Enter" || u.code === "Enter" || u.key === " " ? (j(g), L(m.name), c(m.value || m.name), i(!1)) : u.key === "Escape" && i(!1);
|
|
3632
3725
|
},
|
|
3633
|
-
children:
|
|
3726
|
+
children: m.name
|
|
3634
3727
|
},
|
|
3635
|
-
|
|
3728
|
+
m.name
|
|
3636
3729
|
)
|
|
3637
3730
|
))
|
|
3638
3731
|
}
|
|
@@ -3640,28 +3733,89 @@ const Wt = ({
|
|
|
3640
3733
|
]
|
|
3641
3734
|
}
|
|
3642
3735
|
);
|
|
3643
|
-
},
|
|
3736
|
+
}, wr = J(
|
|
3737
|
+
({
|
|
3738
|
+
className: e,
|
|
3739
|
+
appName: t,
|
|
3740
|
+
image: r,
|
|
3741
|
+
classNameImage: n = "",
|
|
3742
|
+
clickOutsideCloses: a,
|
|
3743
|
+
classNameImageContainer: l = "",
|
|
3744
|
+
menu: c = !1,
|
|
3745
|
+
classNameMenu: s = "",
|
|
3746
|
+
version: p,
|
|
3747
|
+
menuItems: f,
|
|
3748
|
+
children: v,
|
|
3749
|
+
...w
|
|
3750
|
+
}, C) => {
|
|
3751
|
+
const h = W(null), [i, d] = A(!1);
|
|
3752
|
+
return R(() => {
|
|
3753
|
+
if (a) {
|
|
3754
|
+
const b = ($) => {
|
|
3755
|
+
h.current && !h.current.contains($.target) && d(!1);
|
|
3756
|
+
};
|
|
3757
|
+
return document.addEventListener("mousedown", b), () => {
|
|
3758
|
+
document.removeEventListener("mousedown", b);
|
|
3759
|
+
};
|
|
3760
|
+
}
|
|
3761
|
+
}, [d]), console.log("menu: ", c), console.log("showMenu: ", i), // eslint-disable-next-line react/jsx-no-useless-fragment
|
|
3762
|
+
/* @__PURE__ */ V(pe, { children: [
|
|
3763
|
+
c && /* @__PURE__ */ o("button", { className: M("size-8 mb-4", s), onClick: () => d(!i), children: /* @__PURE__ */ o(qt, { classes: "fill-slate-500 hover:fill-black size-8" }) }),
|
|
3764
|
+
/* @__PURE__ */ V(
|
|
3765
|
+
"div",
|
|
3766
|
+
{
|
|
3767
|
+
ref: h,
|
|
3768
|
+
className: M(
|
|
3769
|
+
"relative w-56 h-screen flex flex-col px-4 pb-4 pt-10 bg-white overflow-y-auto",
|
|
3770
|
+
// menu is used but hidden off screen
|
|
3771
|
+
c && "fixed z-20 right-0 top-0 translate-x-full transition-transform duration-300",
|
|
3772
|
+
// menu used and displayed
|
|
3773
|
+
c && i && "translate-x-0",
|
|
3774
|
+
e
|
|
3775
|
+
),
|
|
3776
|
+
children: [
|
|
3777
|
+
/* @__PURE__ */ o("div", { className: M("w-16 h-16 mx-auto", l), children: /* @__PURE__ */ o("img", { src: r, className: M("border border-[#bbbabc] w-16 h-16 bg-[#eeeeef] ring-1", n), alt: "application icon" }) }),
|
|
3778
|
+
/* @__PURE__ */ o("div", { className: "text-center mt-2", children: t }),
|
|
3779
|
+
/* @__PURE__ */ o("div", { className: "[204px] mt-3 h-px bg-[#d9d9d9]" }),
|
|
3780
|
+
/* @__PURE__ */ o(Zt, { className: "pl-6 mt-6", children: f.map((b, $) => /* @__PURE__ */ o(
|
|
3781
|
+
He,
|
|
3782
|
+
{
|
|
3783
|
+
className: "pb-4",
|
|
3784
|
+
children: b.target && /* @__PURE__ */ o(Re, { to: b.target, children: b.children })
|
|
3785
|
+
},
|
|
3786
|
+
$
|
|
3787
|
+
)) }),
|
|
3788
|
+
/* @__PURE__ */ o("div", { className: "align-bottom mt-auto text-right right-2 bottom-1", children: p })
|
|
3789
|
+
]
|
|
3790
|
+
}
|
|
3791
|
+
)
|
|
3792
|
+
] });
|
|
3793
|
+
}
|
|
3794
|
+
), qt = ({ classes: e = "fill-green-600" }) => /* @__PURE__ */ V("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", className: e, children: [
|
|
3795
|
+
/* @__PURE__ */ o("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
|
3796
|
+
/* @__PURE__ */ o("path", { d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" })
|
|
3797
|
+
] }), Jt = {
|
|
3644
3798
|
default: " h-48 w-56 pt-2",
|
|
3645
3799
|
custom: " h-48 w-56 pt-2"
|
|
3646
|
-
},
|
|
3647
|
-
({ className: e, variant: t = "default",
|
|
3800
|
+
}, Qt = re.forwardRef(
|
|
3801
|
+
({ className: e, variant: t = "default", cssColorClass: r = "", children: n, ...a }, l) => /* @__PURE__ */ o(
|
|
3648
3802
|
"div",
|
|
3649
3803
|
{
|
|
3650
3804
|
className: M(
|
|
3651
3805
|
"flex flex-row flex-wrap animate-pulse",
|
|
3652
|
-
|
|
3806
|
+
Jt[t],
|
|
3653
3807
|
e
|
|
3654
3808
|
),
|
|
3655
3809
|
"aria-label": "Skeleton Component",
|
|
3656
3810
|
role: "status",
|
|
3657
3811
|
ref: l,
|
|
3658
|
-
...
|
|
3659
|
-
children:
|
|
3812
|
+
...a,
|
|
3813
|
+
children: n
|
|
3660
3814
|
}
|
|
3661
3815
|
)
|
|
3662
3816
|
);
|
|
3663
|
-
|
|
3664
|
-
const
|
|
3817
|
+
Qt.displayName = "Card";
|
|
3818
|
+
const yr = ({ className: e = "", inline: t = !1 }) => t ? /* @__PURE__ */ o(
|
|
3665
3819
|
"div",
|
|
3666
3820
|
{
|
|
3667
3821
|
role: "presentation",
|
|
@@ -3683,7 +3837,7 @@ const vr = ({ className: e = "", inline: t = !1 }) => t ? /* @__PURE__ */ o(
|
|
|
3683
3837
|
}
|
|
3684
3838
|
),
|
|
3685
3839
|
/* @__PURE__ */ o("div", { className: "basis-full h-0" })
|
|
3686
|
-
] }),
|
|
3840
|
+
] }), kr = ({ className: e = "", inline: t = !1 }) => t ? /* @__PURE__ */ o(
|
|
3687
3841
|
"div",
|
|
3688
3842
|
{
|
|
3689
3843
|
role: "presentation",
|
|
@@ -3705,7 +3859,22 @@ const vr = ({ className: e = "", inline: t = !1 }) => t ? /* @__PURE__ */ o(
|
|
|
3705
3859
|
}
|
|
3706
3860
|
),
|
|
3707
3861
|
/* @__PURE__ */ o("div", { className: "basis-full h-0" })
|
|
3708
|
-
] }),
|
|
3862
|
+
] }), Cr = ({ className: e = "" }) => /* @__PURE__ */ o("div", { role: "presentation", className: M("rounded-lg bg-slate-300 grow h-24 my-1 mx-2", e) }), Mr = ({ className: e = "" }) => /* @__PURE__ */ o("div", { role: "presentation", className: "basis-full h-0" }), Xt = ({ className: e, children: t, skipTo: r }) => {
|
|
3863
|
+
let n = null;
|
|
3864
|
+
const a = (l) => {
|
|
3865
|
+
l.preventDefault();
|
|
3866
|
+
const c = document.querySelector(r);
|
|
3867
|
+
c && (c.tabIndex = -1, c.focus(), n = setTimeout(() => c.removeAttribute("tabindex"), 1e3));
|
|
3868
|
+
};
|
|
3869
|
+
return R(() => () => {
|
|
3870
|
+
n && clearTimeout(n);
|
|
3871
|
+
}, [n]), Le(t, { onClick: a, className: e });
|
|
3872
|
+
};
|
|
3873
|
+
Xt.defaultProps = {
|
|
3874
|
+
className: "skip-link",
|
|
3875
|
+
skipTo: "main:first-of-type"
|
|
3876
|
+
};
|
|
3877
|
+
const er = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='clock'%3e%3cpath%20id='Vector'%20d='M16.0413%2010.5C16.0413%2013.8367%2013.3364%2016.5416%209.99967%2016.5416C6.66295%2016.5416%203.95801%2013.8367%203.95801%2010.5C3.95801%207.16326%206.66295%204.45831%209.99967%204.45831C13.3364%204.45831%2016.0413%207.16326%2016.0413%2010.5Z'%20stroke='%23713F12'%20stroke-width='1.5'/%3e%3cpath%20id='Vector_2'%20d='M10%207.16669V10.5L11.6667%2012.1667'%20stroke='%23713F12'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/g%3e%3c/svg%3e", tr = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='check'%3e%3cpath%20id='Vector%2051'%20d='M4.16699%2011.3333L8.33366%2015.5L15.8337%205.5'%20stroke='%2314532D'%20stroke-width='1.75'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e", rr = "data:image/svg+xml,%3csvg%20width='20'%20height='21'%20viewBox='0%200%2020%2021'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='close'%3e%3cpath%20id='Vector'%20d='M14.375%206.125L5.625%2014.875'%20stroke='%237F1D1D'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector_2'%20d='M5.625%206.125L14.375%2014.875'%20stroke='%237F1D1D'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e", ye = [
|
|
3709
3878
|
{
|
|
3710
3879
|
variant: "available",
|
|
3711
3880
|
classes: "h-[45px] px-4 py-3 bg-green-50 rounded-[100px] border border-green-700 justify-center items-center gap-2 inline-flex",
|
|
@@ -3724,130 +3893,42 @@ const vr = ({ className: e = "", inline: t = !1 }) => t ? /* @__PURE__ */ o(
|
|
|
3724
3893
|
imgDivClasses: "w-5 h-5 relative overflow-hidden",
|
|
3725
3894
|
childClasses: "text-red-900 text-lg font-normal font-[`Arial`]"
|
|
3726
3895
|
}
|
|
3727
|
-
],
|
|
3896
|
+
], $r = J(
|
|
3728
3897
|
({
|
|
3729
3898
|
variant: e = "available",
|
|
3730
3899
|
className: t,
|
|
3731
3900
|
image: r,
|
|
3732
3901
|
classNameChild: n,
|
|
3733
|
-
classNameImage:
|
|
3734
|
-
children:
|
|
3735
|
-
...
|
|
3902
|
+
classNameImage: a,
|
|
3903
|
+
children: l,
|
|
3904
|
+
...c
|
|
3736
3905
|
}, s) => {
|
|
3737
|
-
const [p, f] = A(), [
|
|
3906
|
+
const [p, f] = A(), [v, w] = A(), [C, h] = A();
|
|
3738
3907
|
return R(() => {
|
|
3739
|
-
var
|
|
3908
|
+
var i, d, b;
|
|
3740
3909
|
f(M(
|
|
3741
|
-
(
|
|
3910
|
+
(i = ye.find(($) => $.variant === e)) == null ? void 0 : i.classes,
|
|
3742
3911
|
t
|
|
3743
|
-
)),
|
|
3744
|
-
(
|
|
3912
|
+
)), h(M(
|
|
3913
|
+
(d = ye.find(($) => $.variant === e)) == null ? void 0 : d.childClasses,
|
|
3745
3914
|
n
|
|
3746
|
-
)),
|
|
3747
|
-
(
|
|
3748
|
-
|
|
3915
|
+
)), w(M(
|
|
3916
|
+
(b = ye.find(($) => $.variant === e)) == null ? void 0 : b.imgDivClasses,
|
|
3917
|
+
a
|
|
3749
3918
|
));
|
|
3750
|
-
}, [e, t, n,
|
|
3751
|
-
/* @__PURE__ */ o("div", { className:
|
|
3919
|
+
}, [e, t, n, a]), /* @__PURE__ */ V("div", { className: p, ref: s, children: [
|
|
3920
|
+
/* @__PURE__ */ o("div", { className: v, children: r || // if we have an image prop - display
|
|
3752
3921
|
(e === "available" ? (
|
|
3753
3922
|
// else if we are variant 'available' ...
|
|
3754
|
-
/* @__PURE__ */ o("img", { src:
|
|
3755
|
-
) : e === "inProgress" ? /* @__PURE__ */ o("img", { src:
|
|
3923
|
+
/* @__PURE__ */ o("img", { src: tr, alt: "check mark" })
|
|
3924
|
+
) : e === "inProgress" ? /* @__PURE__ */ o("img", { src: er, alt: "clock" }) : (
|
|
3756
3925
|
// else we are variant 'inProgress' ...
|
|
3757
|
-
/* @__PURE__ */ o("img", { src:
|
|
3926
|
+
/* @__PURE__ */ o("img", { src: rr, alt: "close" })
|
|
3758
3927
|
)) }),
|
|
3759
|
-
/* @__PURE__ */ o("div", { className:
|
|
3928
|
+
/* @__PURE__ */ o("div", { className: C, children: l })
|
|
3760
3929
|
] });
|
|
3761
3930
|
}
|
|
3762
|
-
),
|
|
3763
|
-
default: {
|
|
3764
|
-
container: "flex border-b border-gray-200",
|
|
3765
|
-
tab: "text-[#092068]",
|
|
3766
|
-
title: "",
|
|
3767
|
-
active: "border-b-2 border-[#092068] hover:border-b-2 hover:border-[#7392f3] hover:font-bold active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] focus:rounded-md",
|
|
3768
|
-
inactive: "hover:border-b-2 hover:border-[#7392f3] hover:font-bold"
|
|
3769
|
-
},
|
|
3770
|
-
outline: {
|
|
3771
|
-
container: "flex border-b border-gray-200",
|
|
3772
|
-
tab: "border-2 border-blue-500 text-blue-500",
|
|
3773
|
-
title: "",
|
|
3774
|
-
active: "border-2 bg-[#092068] text-white hover:bg-[#d1dbfb] hover:text-[#092068] hover:font-bold active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1)]",
|
|
3775
|
-
inactive: "text-[#092068] hover:bg-[#d1dbfb] hover:font-bold"
|
|
3776
|
-
},
|
|
3777
|
-
transparent: {
|
|
3778
|
-
container: "flex border-b border-gray-200",
|
|
3779
|
-
tab: "text-[#092068]",
|
|
3780
|
-
title: "",
|
|
3781
|
-
active: "border-b-2 border-[#092068] hover:border-b-2 hover:border-[#7392f3] hover:font-bold active:bg-[#9fc5f0] focus:shadow-[0px_0px_0px_3px_rgba(251,137,241,1.00)] focus:rounded-md",
|
|
3782
|
-
inactive: "hover:border-b-2 hover:border-[#7392f3] hover:font-bold"
|
|
3783
|
-
}
|
|
3784
|
-
};
|
|
3785
|
-
var er = /* @__PURE__ */ ((e) => (e.Right = "right", e.Left = "left", e.IconOnly = "iconOnly", e.None = "undefined", e))(er || {});
|
|
3786
|
-
const Mr = ({ variant: e = "default", tabs: t, className: r, classNameContainer: n }) => {
|
|
3787
|
-
const [l, i] = A(0), [d, s] = A(!1), [p, f] = A(""), x = U([]);
|
|
3788
|
-
e === "" && (e = "default");
|
|
3789
|
-
const y = Me((c) => {
|
|
3790
|
-
var a;
|
|
3791
|
-
(a = x.current[c]) == null || a.focus();
|
|
3792
|
-
}, []), w = Me(
|
|
3793
|
-
(c, a) => {
|
|
3794
|
-
if (c.key === "ArrowRight") {
|
|
3795
|
-
const m = (a + 1) % t.length;
|
|
3796
|
-
i(m), y(m);
|
|
3797
|
-
} else if (c.key === "ArrowLeft") {
|
|
3798
|
-
const m = (a - 1 + t.length) % t.length;
|
|
3799
|
-
i(m), y(m);
|
|
3800
|
-
} else c.key === "Home" ? (i(0), y(0)) : c.key === "End" && (i(t.length - 1), y(t.length - 1));
|
|
3801
|
-
},
|
|
3802
|
-
[t.length, y]
|
|
3803
|
-
), v = (c) => {
|
|
3804
|
-
s(!0), f(c);
|
|
3805
|
-
};
|
|
3806
|
-
return /* @__PURE__ */ V("div", { className: M("w-full", n), children: [
|
|
3807
|
-
/* @__PURE__ */ o(
|
|
3808
|
-
"div",
|
|
3809
|
-
{
|
|
3810
|
-
role: "tablist",
|
|
3811
|
-
"aria-label": "Tabs",
|
|
3812
|
-
className: M(ye[e].container, r),
|
|
3813
|
-
children: t.map((c, a) => /* @__PURE__ */ V(
|
|
3814
|
-
"button",
|
|
3815
|
-
{
|
|
3816
|
-
role: "tab",
|
|
3817
|
-
id: `tab-${c.id}`,
|
|
3818
|
-
onMouseEnter: () => v(c.id),
|
|
3819
|
-
onMouseLeave: () => s(!1),
|
|
3820
|
-
"aria-selected": l === a,
|
|
3821
|
-
"aria-controls": `panel-${c.id}`,
|
|
3822
|
-
tabIndex: l === a ? 0 : -1,
|
|
3823
|
-
ref: (m) => x.current[a] = m,
|
|
3824
|
-
className: `flex px-4 py-2 focus:outline-none ${e === "outline" ? `border-[#092068] ${a === 0 ? "border-l-2 border-t-2 border-b-2 rounded-l-md focus:rounded-l-md" : a === t.length - 1 ? "border-r-2 border-t-2 border-b-2 rounded-r-md focus:rounded-r-md" : "border-t-2 border-b-2"}` : ""} ${M(l === a ? ye[e].active : ye[e].inactive)}`,
|
|
3825
|
-
onClick: () => i(a),
|
|
3826
|
-
onKeyDown: (m) => w(m, a),
|
|
3827
|
-
children: [
|
|
3828
|
-
c.iconPosition === "left" && c.activeIcon && /* @__PURE__ */ o("span", { className: "icon-left mr-3 size-6", children: l === a ? d && p === c.id ? c.inactiveIcon : c.activeIcon : c.inactiveIcon }),
|
|
3829
|
-
c.iconPosition === "iconOnly" && c.activeIcon ? /* @__PURE__ */ o("span", { className: "size-6", children: l === a ? d && p === c.id ? c.inactiveIcon : c.activeIcon : c.inactiveIcon }) : /* @__PURE__ */ o("span", { className: "button-text", children: c.label }),
|
|
3830
|
-
c.iconPosition === "right" && c.activeIcon && /* @__PURE__ */ o("span", { className: "icon-right ml-3 size-6", children: l === a ? d && p === c.id ? c.inactiveIcon : c.activeIcon : c.inactiveIcon })
|
|
3831
|
-
]
|
|
3832
|
-
},
|
|
3833
|
-
c.id
|
|
3834
|
-
))
|
|
3835
|
-
}
|
|
3836
|
-
),
|
|
3837
|
-
t.map((c, a) => /* @__PURE__ */ o(
|
|
3838
|
-
"div",
|
|
3839
|
-
{
|
|
3840
|
-
role: "tabpanel",
|
|
3841
|
-
id: `panel-${c.id}`,
|
|
3842
|
-
"aria-labelledby": `tab-${c.id}`,
|
|
3843
|
-
hidden: l !== a,
|
|
3844
|
-
className: "p-4",
|
|
3845
|
-
children: c.content
|
|
3846
|
-
},
|
|
3847
|
-
c.id
|
|
3848
|
-
))
|
|
3849
|
-
] });
|
|
3850
|
-
}, tr = "w-16 h-8 flex lg:w-[49.74px] lg:!h-[24.87px] lg:p-[3.1px] items-center p-1 rounded-2xl cursor-pointer transition-colors duration-300", rr = "bg-white w-6 h-6 lg:w-[18.65px] lg:!h-[18.65px] rounded-full shadow-[0px_4px_4.900000095367432px_0px_rgba(0,0,0,0.12)] transform transition-transform duration-300", me = [
|
|
3931
|
+
), nr = "w-16 h-8 flex lg:w-[49.74px] lg:!h-[24.87px] lg:p-[3.1px] items-center p-1 rounded-2xl cursor-pointer transition-colors duration-300", or = "bg-white w-6 h-6 lg:w-[18.65px] lg:!h-[18.65px] rounded-full shadow-[0px_4px_4.900000095367432px_0px_rgba(0,0,0,0.12)] transform transition-transform duration-300", me = [
|
|
3851
3932
|
{
|
|
3852
3933
|
variant: "default",
|
|
3853
3934
|
classes: "bg-[#d0cfd1] hover:bg-[#bbbabc]",
|
|
@@ -3867,128 +3948,54 @@ const Mr = ({ variant: e = "default", tabs: t, className: r, classNameContainer:
|
|
|
3867
3948
|
buttonClasses: "translate-x-0",
|
|
3868
3949
|
toggledButtonClasses: "translate-x-8 lg:translate-x-6"
|
|
3869
3950
|
}
|
|
3870
|
-
],
|
|
3951
|
+
], Nr = J(
|
|
3871
3952
|
({
|
|
3872
3953
|
defaultChecked: e = !1,
|
|
3873
3954
|
disabled: t = !1,
|
|
3874
3955
|
onCheckedChange: r,
|
|
3875
3956
|
label: n,
|
|
3876
|
-
className:
|
|
3877
|
-
classNameButton:
|
|
3878
|
-
variant:
|
|
3957
|
+
className: a,
|
|
3958
|
+
classNameButton: l,
|
|
3959
|
+
variant: c = "default",
|
|
3879
3960
|
type: s = "button",
|
|
3880
3961
|
children: p,
|
|
3881
3962
|
...f
|
|
3882
|
-
},
|
|
3883
|
-
var
|
|
3884
|
-
const [
|
|
3963
|
+
}, v) => {
|
|
3964
|
+
var i, d, b, $;
|
|
3965
|
+
const [w, C] = A(e);
|
|
3885
3966
|
return /* @__PURE__ */ o(
|
|
3886
3967
|
"button",
|
|
3887
3968
|
{
|
|
3888
3969
|
onClick: () => {
|
|
3889
|
-
const
|
|
3890
|
-
|
|
3970
|
+
const L = !w;
|
|
3971
|
+
C(L), r && r(L);
|
|
3891
3972
|
},
|
|
3892
3973
|
disabled: t,
|
|
3893
3974
|
role: "switch",
|
|
3894
|
-
"aria-checked":
|
|
3975
|
+
"aria-checked": w,
|
|
3895
3976
|
"aria-disabled": t,
|
|
3896
3977
|
...f,
|
|
3897
|
-
ref:
|
|
3898
|
-
"aria-label": n || `Toggle ${
|
|
3978
|
+
ref: v,
|
|
3979
|
+
"aria-label": n || `Toggle ${w ? "on" : "off"}`,
|
|
3899
3980
|
className: M(
|
|
3900
|
-
`${
|
|
3901
|
-
${
|
|
3902
|
-
|
|
3981
|
+
`${nr}
|
|
3982
|
+
${w ? (i = me.find((L) => L.variant === c)) == null ? void 0 : i.toggledClasses : (d = me.find((L) => L.variant === c)) == null ? void 0 : d.classes}`,
|
|
3983
|
+
a
|
|
3903
3984
|
),
|
|
3904
3985
|
children: /* @__PURE__ */ o(
|
|
3905
3986
|
"div",
|
|
3906
3987
|
{
|
|
3907
3988
|
className: M(
|
|
3908
|
-
`${
|
|
3909
|
-
${
|
|
3910
|
-
|
|
3989
|
+
`${or}
|
|
3990
|
+
${w ? (b = me.find((L) => L.variant === c)) == null ? void 0 : b.toggledButtonClasses : ($ = me.find((L) => L.variant === c)) == null ? void 0 : $.buttonClasses}`,
|
|
3991
|
+
l
|
|
3911
3992
|
)
|
|
3912
3993
|
}
|
|
3913
3994
|
)
|
|
3914
3995
|
}
|
|
3915
3996
|
);
|
|
3916
3997
|
}
|
|
3917
|
-
)
|
|
3918
|
-
({
|
|
3919
|
-
className: e,
|
|
3920
|
-
appName: t,
|
|
3921
|
-
image: r,
|
|
3922
|
-
classNameImage: n = "",
|
|
3923
|
-
clickOutsideCloses: l,
|
|
3924
|
-
menu: i = !1,
|
|
3925
|
-
classNameMenu: d = "",
|
|
3926
|
-
version: s,
|
|
3927
|
-
menuItems: p,
|
|
3928
|
-
children: f,
|
|
3929
|
-
...x
|
|
3930
|
-
}, y) => {
|
|
3931
|
-
const w = U(null), [v, c] = A(!1);
|
|
3932
|
-
return R(() => {
|
|
3933
|
-
if (l) {
|
|
3934
|
-
const a = (m) => {
|
|
3935
|
-
w.current && !w.current.contains(m.target) && c(!1);
|
|
3936
|
-
};
|
|
3937
|
-
return document.addEventListener("mousedown", a), () => {
|
|
3938
|
-
document.removeEventListener("mousedown", a);
|
|
3939
|
-
};
|
|
3940
|
-
}
|
|
3941
|
-
}, [c]), console.log("menu: ", i), console.log("showMenu: ", v), // eslint-disable-next-line react/jsx-no-useless-fragment
|
|
3942
|
-
/* @__PURE__ */ V(pe, { children: [
|
|
3943
|
-
i && /* @__PURE__ */ o("button", { className: M("size-8 mb-4", d), onClick: () => c(!v), children: /* @__PURE__ */ o(nr, { classes: "fill-slate-500 hover:fill-black size-8" }) }),
|
|
3944
|
-
/* @__PURE__ */ V(
|
|
3945
|
-
"div",
|
|
3946
|
-
{
|
|
3947
|
-
ref: w,
|
|
3948
|
-
className: M(
|
|
3949
|
-
"relative w-56 h-screen flex flex-col px-4 pb-4 pt-10 bg-white overflow-y-auto",
|
|
3950
|
-
// menu is used but hidden off screen
|
|
3951
|
-
i && "fixed z-20 right-0 top-0 translate-x-full transition-transform duration-300",
|
|
3952
|
-
// menu used and displayed
|
|
3953
|
-
i && v && "translate-x-0",
|
|
3954
|
-
e
|
|
3955
|
-
),
|
|
3956
|
-
children: [
|
|
3957
|
-
/* @__PURE__ */ o("div", { className: "w-16 h-16 mx-auto", children: /* @__PURE__ */ o("img", { src: r, className: M("border border-[#bbbabc] w-16 h-16 bg-[#eeeeef] ring-1", n), alt: "application icon" }) }),
|
|
3958
|
-
/* @__PURE__ */ o("div", { className: "text-center mt-2", children: t }),
|
|
3959
|
-
/* @__PURE__ */ o("div", { className: "[204px] mt-3 h-px bg-[#d9d9d9]" }),
|
|
3960
|
-
/* @__PURE__ */ o(Wt, { className: "pl-6 mt-6", children: p.map((a, m) => /* @__PURE__ */ o(
|
|
3961
|
-
He,
|
|
3962
|
-
{
|
|
3963
|
-
className: "pb-4",
|
|
3964
|
-
children: a.target && /* @__PURE__ */ o(Re, { to: a.target, children: a.children })
|
|
3965
|
-
},
|
|
3966
|
-
m
|
|
3967
|
-
)) }),
|
|
3968
|
-
/* @__PURE__ */ o("div", { className: "align-bottom mt-auto text-right right-2 bottom-1", children: s })
|
|
3969
|
-
]
|
|
3970
|
-
}
|
|
3971
|
-
)
|
|
3972
|
-
] });
|
|
3973
|
-
}
|
|
3974
|
-
), nr = ({ classes: e = "fill-green-600" }) => /* @__PURE__ */ V("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", className: e, children: [
|
|
3975
|
-
/* @__PURE__ */ o("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
|
3976
|
-
/* @__PURE__ */ o("path", { d: "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" })
|
|
3977
|
-
] }), or = ({ className: e, children: t, skipTo: r }) => {
|
|
3978
|
-
let n = null;
|
|
3979
|
-
const l = (i) => {
|
|
3980
|
-
i.preventDefault();
|
|
3981
|
-
const d = document.querySelector(r);
|
|
3982
|
-
d && (d.tabIndex = -1, d.focus(), n = setTimeout(() => d.removeAttribute("tabindex"), 1e3));
|
|
3983
|
-
};
|
|
3984
|
-
return R(() => () => {
|
|
3985
|
-
n && clearTimeout(n);
|
|
3986
|
-
}, [n]), Le(t, { onClick: l, className: e });
|
|
3987
|
-
};
|
|
3988
|
-
or.defaultProps = {
|
|
3989
|
-
className: "skip-link",
|
|
3990
|
-
skipTo: "main:first-of-type"
|
|
3991
|
-
};
|
|
3998
|
+
);
|
|
3992
3999
|
export {
|
|
3993
4000
|
ir as Accordion,
|
|
3994
4001
|
cr as AccordionParent,
|
|
@@ -3998,22 +4005,22 @@ export {
|
|
|
3998
4005
|
Yt as Card,
|
|
3999
4006
|
fr as CharacterCounter,
|
|
4000
4007
|
br as DatePicker,
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4008
|
+
Ft as IconPosition,
|
|
4009
|
+
Wt as Input,
|
|
4010
|
+
Zt as List,
|
|
4004
4011
|
He as ListItem,
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4012
|
+
pr as Modal,
|
|
4013
|
+
hr as Pill,
|
|
4014
|
+
xr as SectionHeader,
|
|
4015
|
+
vr as Select,
|
|
4016
|
+
wr as SideBarNav,
|
|
4017
|
+
yr as SkelCircle,
|
|
4018
|
+
kr as SkelLine,
|
|
4019
|
+
Mr as SkelRow,
|
|
4020
|
+
Cr as SkelSection,
|
|
4021
|
+
Qt as Skeleton,
|
|
4022
|
+
Xt as SkipLink,
|
|
4023
|
+
$r as Status,
|
|
4024
|
+
mr as Tabs,
|
|
4025
|
+
Nr as Toggle
|
|
4019
4026
|
};
|