@takecasper/acuity-design-system 1.12.1 → 1.12.3
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 +5 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +146 -136
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -130,14 +130,14 @@ function nt() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var A = Object.assign,
|
|
133
|
+
var A = Object.assign, z = 0, Z, de, K, F, ce, H, U;
|
|
134
134
|
function Be() {
|
|
135
135
|
}
|
|
136
136
|
Be.__reactDisabledLog = !0;
|
|
137
137
|
function _r() {
|
|
138
138
|
{
|
|
139
|
-
if (
|
|
140
|
-
Z = console.log, de = console.info, K = console.warn,
|
|
139
|
+
if (z === 0) {
|
|
140
|
+
Z = console.log, de = console.info, K = console.warn, F = console.error, ce = console.group, H = console.groupCollapsed, U = console.groupEnd;
|
|
141
141
|
var t = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
@@ -154,12 +154,12 @@ function nt() {
|
|
|
154
154
|
groupEnd: t
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
z++;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
function Sr() {
|
|
161
161
|
{
|
|
162
|
-
if (
|
|
162
|
+
if (z--, z === 0) {
|
|
163
163
|
var t = {
|
|
164
164
|
configurable: !0,
|
|
165
165
|
enumerable: !0,
|
|
@@ -176,20 +176,20 @@ function nt() {
|
|
|
176
176
|
value: K
|
|
177
177
|
}),
|
|
178
178
|
error: A({}, t, {
|
|
179
|
-
value:
|
|
179
|
+
value: F
|
|
180
180
|
}),
|
|
181
181
|
group: A({}, t, {
|
|
182
182
|
value: ce
|
|
183
183
|
}),
|
|
184
184
|
groupCollapsed: A({}, t, {
|
|
185
|
-
value:
|
|
185
|
+
value: H
|
|
186
186
|
}),
|
|
187
187
|
groupEnd: A({}, t, {
|
|
188
188
|
value: U
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
z < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
var Re = S.ReactCurrentDispatcher, We;
|
|
@@ -2216,7 +2216,7 @@ function Qt(e, n) {
|
|
|
2216
2216
|
return [i, s];
|
|
2217
2217
|
}) : e;
|
|
2218
2218
|
}
|
|
2219
|
-
function
|
|
2219
|
+
function eo(e) {
|
|
2220
2220
|
if (e < 1)
|
|
2221
2221
|
return {
|
|
2222
2222
|
get: () => {
|
|
@@ -2242,7 +2242,7 @@ function e1(e) {
|
|
|
2242
2242
|
};
|
|
2243
2243
|
}
|
|
2244
2244
|
const vr = "!";
|
|
2245
|
-
function
|
|
2245
|
+
function ro(e) {
|
|
2246
2246
|
const n = e.separator, i = n.length === 1, r = n[0], s = n.length;
|
|
2247
2247
|
return function(d) {
|
|
2248
2248
|
const u = [];
|
|
@@ -2270,7 +2270,7 @@ function r1(e) {
|
|
|
2270
2270
|
};
|
|
2271
2271
|
};
|
|
2272
2272
|
}
|
|
2273
|
-
function
|
|
2273
|
+
function to(e) {
|
|
2274
2274
|
if (e.length <= 1)
|
|
2275
2275
|
return e;
|
|
2276
2276
|
const n = [];
|
|
@@ -2279,21 +2279,21 @@ function t1(e) {
|
|
|
2279
2279
|
r[0] === "[" ? (n.push(...i.sort(), r), i = []) : i.push(r);
|
|
2280
2280
|
}), n.push(...i.sort()), n;
|
|
2281
2281
|
}
|
|
2282
|
-
function
|
|
2282
|
+
function oo(e) {
|
|
2283
2283
|
return {
|
|
2284
|
-
cache:
|
|
2285
|
-
splitModifiers:
|
|
2284
|
+
cache: eo(e.cacheSize),
|
|
2285
|
+
splitModifiers: ro(e),
|
|
2286
2286
|
...qt(e)
|
|
2287
2287
|
};
|
|
2288
2288
|
}
|
|
2289
|
-
const
|
|
2290
|
-
function
|
|
2289
|
+
const no = /\s+/;
|
|
2290
|
+
function so(e, n) {
|
|
2291
2291
|
const {
|
|
2292
2292
|
splitModifiers: i,
|
|
2293
2293
|
getClassGroupId: r,
|
|
2294
2294
|
getConflictingClassGroupIds: s
|
|
2295
2295
|
} = n, a = /* @__PURE__ */ new Set();
|
|
2296
|
-
return e.trim().split(
|
|
2296
|
+
return e.trim().split(no).map((d) => {
|
|
2297
2297
|
const {
|
|
2298
2298
|
modifiers: u,
|
|
2299
2299
|
hasImportantModifier: p,
|
|
@@ -2314,7 +2314,7 @@ function s1(e, n) {
|
|
|
2314
2314
|
};
|
|
2315
2315
|
j = !1;
|
|
2316
2316
|
}
|
|
2317
|
-
const _ =
|
|
2317
|
+
const _ = to(u).join(":");
|
|
2318
2318
|
return {
|
|
2319
2319
|
isTailwindClass: !0,
|
|
2320
2320
|
modifierId: p ? _ + vr : _,
|
|
@@ -2333,7 +2333,7 @@ function s1(e, n) {
|
|
|
2333
2333
|
return a.has(f) ? !1 : (a.add(f), s(p, g).forEach((x) => a.add(u + x)), !0);
|
|
2334
2334
|
}).reverse().map((d) => d.originalClassName).join(" ");
|
|
2335
2335
|
}
|
|
2336
|
-
function
|
|
2336
|
+
function io() {
|
|
2337
2337
|
let e = 0, n, i, r = "";
|
|
2338
2338
|
for (; e < arguments.length; )
|
|
2339
2339
|
(n = arguments[e++]) && (i = kr(n)) && (r && (r += " "), r += i);
|
|
@@ -2347,33 +2347,33 @@ function kr(e) {
|
|
|
2347
2347
|
e[r] && (n = kr(e[r])) && (i && (i += " "), i += n);
|
|
2348
2348
|
return i;
|
|
2349
2349
|
}
|
|
2350
|
-
function
|
|
2350
|
+
function ao(e, ...n) {
|
|
2351
2351
|
let i, r, s, a = d;
|
|
2352
2352
|
function d(p) {
|
|
2353
2353
|
const g = n.reduce((f, x) => x(f), e());
|
|
2354
|
-
return i =
|
|
2354
|
+
return i = oo(g), r = i.cache.get, s = i.cache.set, a = u, u(p);
|
|
2355
2355
|
}
|
|
2356
2356
|
function u(p) {
|
|
2357
2357
|
const g = r(p);
|
|
2358
2358
|
if (g)
|
|
2359
2359
|
return g;
|
|
2360
|
-
const f =
|
|
2360
|
+
const f = so(p, i);
|
|
2361
2361
|
return s(p, f), f;
|
|
2362
2362
|
}
|
|
2363
2363
|
return function() {
|
|
2364
|
-
return a(
|
|
2364
|
+
return a(io.apply(null, arguments));
|
|
2365
2365
|
};
|
|
2366
2366
|
}
|
|
2367
2367
|
function L(e) {
|
|
2368
2368
|
const n = (i) => i[e] || [];
|
|
2369
2369
|
return n.isThemeGetter = !0, n;
|
|
2370
2370
|
}
|
|
2371
|
-
const wr = /^\[(?:([a-z-]+):)?(.+)\]$/i,
|
|
2371
|
+
const wr = /^\[(?:([a-z-]+):)?(.+)\]$/i, lo = /^\d+\/\d+$/, co = /* @__PURE__ */ new Set(["px", "full", "screen"]), uo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, fo = /\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$/, po = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, ho = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, go = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
2372
2372
|
function N(e) {
|
|
2373
|
-
return Y(e) ||
|
|
2373
|
+
return Y(e) || co.has(e) || lo.test(e);
|
|
2374
2374
|
}
|
|
2375
|
-
function
|
|
2376
|
-
return te(e, "length",
|
|
2375
|
+
function D(e) {
|
|
2376
|
+
return te(e, "length", jo);
|
|
2377
2377
|
}
|
|
2378
2378
|
function Y(e) {
|
|
2379
2379
|
return !!e && !Number.isNaN(Number(e));
|
|
@@ -2384,28 +2384,28 @@ function Me(e) {
|
|
|
2384
2384
|
function he(e) {
|
|
2385
2385
|
return !!e && Number.isInteger(Number(e));
|
|
2386
2386
|
}
|
|
2387
|
-
function
|
|
2387
|
+
function bo(e) {
|
|
2388
2388
|
return e.endsWith("%") && Y(e.slice(0, -1));
|
|
2389
2389
|
}
|
|
2390
2390
|
function b(e) {
|
|
2391
2391
|
return wr.test(e);
|
|
2392
2392
|
}
|
|
2393
|
-
function
|
|
2394
|
-
return
|
|
2393
|
+
function G(e) {
|
|
2394
|
+
return uo.test(e);
|
|
2395
2395
|
}
|
|
2396
|
-
const
|
|
2397
|
-
function
|
|
2398
|
-
return te(e,
|
|
2396
|
+
const Co = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
|
|
2397
|
+
function mo(e) {
|
|
2398
|
+
return te(e, Co, jr);
|
|
2399
2399
|
}
|
|
2400
|
-
function
|
|
2400
|
+
function xo(e) {
|
|
2401
2401
|
return te(e, "position", jr);
|
|
2402
2402
|
}
|
|
2403
|
-
const
|
|
2404
|
-
function
|
|
2405
|
-
return te(e,
|
|
2403
|
+
const vo = /* @__PURE__ */ new Set(["image", "url"]);
|
|
2404
|
+
function ko(e) {
|
|
2405
|
+
return te(e, vo, Lo);
|
|
2406
2406
|
}
|
|
2407
|
-
function
|
|
2408
|
-
return te(e, "",
|
|
2407
|
+
function wo(e) {
|
|
2408
|
+
return te(e, "", yo);
|
|
2409
2409
|
}
|
|
2410
2410
|
function ge() {
|
|
2411
2411
|
return !0;
|
|
@@ -2414,46 +2414,46 @@ function te(e, n, i) {
|
|
|
2414
2414
|
const r = wr.exec(e);
|
|
2415
2415
|
return r ? r[1] ? typeof n == "string" ? r[1] === n : n.has(r[1]) : i(r[2]) : !1;
|
|
2416
2416
|
}
|
|
2417
|
-
function
|
|
2418
|
-
return
|
|
2417
|
+
function jo(e) {
|
|
2418
|
+
return fo.test(e) && !po.test(e);
|
|
2419
2419
|
}
|
|
2420
2420
|
function jr() {
|
|
2421
2421
|
return !1;
|
|
2422
2422
|
}
|
|
2423
|
-
function
|
|
2424
|
-
return
|
|
2423
|
+
function yo(e) {
|
|
2424
|
+
return ho.test(e);
|
|
2425
2425
|
}
|
|
2426
|
-
function
|
|
2427
|
-
return
|
|
2426
|
+
function Lo(e) {
|
|
2427
|
+
return go.test(e);
|
|
2428
2428
|
}
|
|
2429
|
-
function
|
|
2430
|
-
const e = L("colors"), n = L("spacing"), i = L("blur"), r = L("brightness"), s = L("borderColor"), a = L("borderRadius"), d = L("borderSpacing"), u = L("borderWidth"), p = L("contrast"), g = L("grayscale"), f = L("hueRotate"), x = L("invert"), j = L("gap"), _ = L("gradientColorStops"), I = L("gradientColorStopPositions"), M = L("inset"), R = L("margin"), S = L("opacity"), y = L("padding"), be = L("saturate"), ie = L("scale"), Ce = L("sepia"), me = L("skew"), xe = L("space"), ve = L("translate"), J = () => ["auto", "contain", "none"], ae = () => ["auto", "hidden", "clip", "visible", "scroll"], le = () => ["auto", b, n], k = () => [b, n], V = () => ["", N,
|
|
2429
|
+
function Mo() {
|
|
2430
|
+
const e = L("colors"), n = L("spacing"), i = L("blur"), r = L("brightness"), s = L("borderColor"), a = L("borderRadius"), d = L("borderSpacing"), u = L("borderWidth"), p = L("contrast"), g = L("grayscale"), f = L("hueRotate"), x = L("invert"), j = L("gap"), _ = L("gradientColorStops"), I = L("gradientColorStopPositions"), M = L("inset"), R = L("margin"), S = L("opacity"), y = L("padding"), be = L("saturate"), ie = L("scale"), Ce = L("sepia"), me = L("skew"), xe = L("space"), ve = L("translate"), J = () => ["auto", "contain", "none"], ae = () => ["auto", "hidden", "clip", "visible", "scroll"], le = () => ["auto", b, n], k = () => [b, n], V = () => ["", N, D], A = () => ["auto", Y, b], z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Z = () => ["solid", "dashed", "dotted", "double", "none"], de = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], F = () => ["", "0", b], ce = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], H = () => [Y, Me], U = () => [Y, b];
|
|
2431
2431
|
return {
|
|
2432
2432
|
cacheSize: 500,
|
|
2433
2433
|
separator: ":",
|
|
2434
2434
|
theme: {
|
|
2435
2435
|
colors: [ge],
|
|
2436
|
-
spacing: [N,
|
|
2437
|
-
blur: ["none", "",
|
|
2438
|
-
brightness:
|
|
2436
|
+
spacing: [N, D],
|
|
2437
|
+
blur: ["none", "", G, b],
|
|
2438
|
+
brightness: H(),
|
|
2439
2439
|
borderColor: [e],
|
|
2440
|
-
borderRadius: ["none", "", "full",
|
|
2440
|
+
borderRadius: ["none", "", "full", G, b],
|
|
2441
2441
|
borderSpacing: k(),
|
|
2442
2442
|
borderWidth: V(),
|
|
2443
|
-
contrast:
|
|
2444
|
-
grayscale:
|
|
2443
|
+
contrast: H(),
|
|
2444
|
+
grayscale: F(),
|
|
2445
2445
|
hueRotate: U(),
|
|
2446
|
-
invert:
|
|
2446
|
+
invert: F(),
|
|
2447
2447
|
gap: k(),
|
|
2448
2448
|
gradientColorStops: [e],
|
|
2449
|
-
gradientColorStopPositions: [
|
|
2449
|
+
gradientColorStopPositions: [bo, D],
|
|
2450
2450
|
inset: le(),
|
|
2451
2451
|
margin: le(),
|
|
2452
|
-
opacity:
|
|
2452
|
+
opacity: H(),
|
|
2453
2453
|
padding: k(),
|
|
2454
|
-
saturate:
|
|
2455
|
-
scale:
|
|
2456
|
-
sepia:
|
|
2454
|
+
saturate: H(),
|
|
2455
|
+
scale: H(),
|
|
2456
|
+
sepia: F(),
|
|
2457
2457
|
skew: U(),
|
|
2458
2458
|
space: k(),
|
|
2459
2459
|
translate: k()
|
|
@@ -2477,7 +2477,7 @@ function L1() {
|
|
|
2477
2477
|
* @see https://tailwindcss.com/docs/columns
|
|
2478
2478
|
*/
|
|
2479
2479
|
columns: [{
|
|
2480
|
-
columns: [
|
|
2480
|
+
columns: [G]
|
|
2481
2481
|
}],
|
|
2482
2482
|
/**
|
|
2483
2483
|
* Break After
|
|
@@ -2550,7 +2550,7 @@ function L1() {
|
|
|
2550
2550
|
* @see https://tailwindcss.com/docs/object-position
|
|
2551
2551
|
*/
|
|
2552
2552
|
"object-position": [{
|
|
2553
|
-
object: [...
|
|
2553
|
+
object: [...z(), b]
|
|
2554
2554
|
}],
|
|
2555
2555
|
/**
|
|
2556
2556
|
* Overflow
|
|
@@ -2708,14 +2708,14 @@ function L1() {
|
|
|
2708
2708
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
2709
2709
|
*/
|
|
2710
2710
|
grow: [{
|
|
2711
|
-
grow:
|
|
2711
|
+
grow: F()
|
|
2712
2712
|
}],
|
|
2713
2713
|
/**
|
|
2714
2714
|
* Flex Shrink
|
|
2715
2715
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
2716
2716
|
*/
|
|
2717
2717
|
shrink: [{
|
|
2718
|
-
shrink:
|
|
2718
|
+
shrink: F()
|
|
2719
2719
|
}],
|
|
2720
2720
|
/**
|
|
2721
2721
|
* Order
|
|
@@ -3061,8 +3061,8 @@ function L1() {
|
|
|
3061
3061
|
*/
|
|
3062
3062
|
"max-w": [{
|
|
3063
3063
|
"max-w": [b, n, "none", "full", "min", "max", "fit", "prose", {
|
|
3064
|
-
screen: [
|
|
3065
|
-
},
|
|
3064
|
+
screen: [G]
|
|
3065
|
+
}, G]
|
|
3066
3066
|
}],
|
|
3067
3067
|
/**
|
|
3068
3068
|
* Height
|
|
@@ -3098,7 +3098,7 @@ function L1() {
|
|
|
3098
3098
|
* @see https://tailwindcss.com/docs/font-size
|
|
3099
3099
|
*/
|
|
3100
3100
|
"font-size": [{
|
|
3101
|
-
text: ["base",
|
|
3101
|
+
text: ["base", G, D]
|
|
3102
3102
|
}],
|
|
3103
3103
|
/**
|
|
3104
3104
|
* Font Smoothing
|
|
@@ -3249,7 +3249,7 @@ function L1() {
|
|
|
3249
3249
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
3250
3250
|
*/
|
|
3251
3251
|
"text-decoration-thickness": [{
|
|
3252
|
-
decoration: ["auto", "from-font", N,
|
|
3252
|
+
decoration: ["auto", "from-font", N, D]
|
|
3253
3253
|
}],
|
|
3254
3254
|
/**
|
|
3255
3255
|
* Text Underline Offset
|
|
@@ -3359,7 +3359,7 @@ function L1() {
|
|
|
3359
3359
|
* @see https://tailwindcss.com/docs/background-position
|
|
3360
3360
|
*/
|
|
3361
3361
|
"bg-position": [{
|
|
3362
|
-
bg: [...
|
|
3362
|
+
bg: [...z(), xo]
|
|
3363
3363
|
}],
|
|
3364
3364
|
/**
|
|
3365
3365
|
* Background Repeat
|
|
@@ -3375,7 +3375,7 @@ function L1() {
|
|
|
3375
3375
|
* @see https://tailwindcss.com/docs/background-size
|
|
3376
3376
|
*/
|
|
3377
3377
|
"bg-size": [{
|
|
3378
|
-
bg: ["auto", "cover", "contain",
|
|
3378
|
+
bg: ["auto", "cover", "contain", mo]
|
|
3379
3379
|
}],
|
|
3380
3380
|
/**
|
|
3381
3381
|
* Background Image
|
|
@@ -3384,7 +3384,7 @@ function L1() {
|
|
|
3384
3384
|
"bg-image": [{
|
|
3385
3385
|
bg: ["none", {
|
|
3386
3386
|
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
3387
|
-
},
|
|
3387
|
+
}, ko]
|
|
3388
3388
|
}],
|
|
3389
3389
|
/**
|
|
3390
3390
|
* Background Color
|
|
@@ -3731,7 +3731,7 @@ function L1() {
|
|
|
3731
3731
|
* @see https://tailwindcss.com/docs/outline-width
|
|
3732
3732
|
*/
|
|
3733
3733
|
"outline-w": [{
|
|
3734
|
-
outline: [N,
|
|
3734
|
+
outline: [N, D]
|
|
3735
3735
|
}],
|
|
3736
3736
|
/**
|
|
3737
3737
|
* Outline Color
|
|
@@ -3771,7 +3771,7 @@ function L1() {
|
|
|
3771
3771
|
* @see https://tailwindcss.com/docs/ring-offset-width
|
|
3772
3772
|
*/
|
|
3773
3773
|
"ring-offset-w": [{
|
|
3774
|
-
"ring-offset": [N,
|
|
3774
|
+
"ring-offset": [N, D]
|
|
3775
3775
|
}],
|
|
3776
3776
|
/**
|
|
3777
3777
|
* Ring Offset Color
|
|
@@ -3786,7 +3786,7 @@ function L1() {
|
|
|
3786
3786
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
3787
3787
|
*/
|
|
3788
3788
|
shadow: [{
|
|
3789
|
-
shadow: ["", "inner", "none",
|
|
3789
|
+
shadow: ["", "inner", "none", G, wo]
|
|
3790
3790
|
}],
|
|
3791
3791
|
/**
|
|
3792
3792
|
* Box Shadow Color
|
|
@@ -3851,7 +3851,7 @@ function L1() {
|
|
|
3851
3851
|
* @see https://tailwindcss.com/docs/drop-shadow
|
|
3852
3852
|
*/
|
|
3853
3853
|
"drop-shadow": [{
|
|
3854
|
-
"drop-shadow": ["", "none",
|
|
3854
|
+
"drop-shadow": ["", "none", G, b]
|
|
3855
3855
|
}],
|
|
3856
3856
|
/**
|
|
3857
3857
|
* Grayscale
|
|
@@ -4366,7 +4366,7 @@ function L1() {
|
|
|
4366
4366
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
4367
4367
|
*/
|
|
4368
4368
|
"stroke-w": [{
|
|
4369
|
-
stroke: [N,
|
|
4369
|
+
stroke: [N, D, Me]
|
|
4370
4370
|
}],
|
|
4371
4371
|
/**
|
|
4372
4372
|
* Stroke
|
|
@@ -4442,11 +4442,11 @@ function L1() {
|
|
|
4442
4442
|
}
|
|
4443
4443
|
};
|
|
4444
4444
|
}
|
|
4445
|
-
const
|
|
4446
|
-
function
|
|
4445
|
+
const B = /* @__PURE__ */ ao(Mo);
|
|
4446
|
+
function Eo() {
|
|
4447
4447
|
return Math.floor(Math.random() * 1e7);
|
|
4448
4448
|
}
|
|
4449
|
-
const
|
|
4449
|
+
const Ro = P(
|
|
4450
4450
|
[
|
|
4451
4451
|
"preflight",
|
|
4452
4452
|
"ds-flex",
|
|
@@ -4468,7 +4468,7 @@ const E1 = P(
|
|
|
4468
4468
|
}
|
|
4469
4469
|
}
|
|
4470
4470
|
}
|
|
4471
|
-
),
|
|
4471
|
+
), Wo = (e) => B(Ro(e)), _o = P("", {
|
|
4472
4472
|
variants: {
|
|
4473
4473
|
variant: {
|
|
4474
4474
|
success: "ds-text-success-green-dark",
|
|
@@ -4477,7 +4477,7 @@ const E1 = P(
|
|
|
4477
4477
|
error: "ds-text-danger-red-dark"
|
|
4478
4478
|
}
|
|
4479
4479
|
}
|
|
4480
|
-
}), ar = (e) =>
|
|
4480
|
+
}), ar = (e) => B(_o(e)), So = P("", {
|
|
4481
4481
|
variants: {
|
|
4482
4482
|
variant: {
|
|
4483
4483
|
success: ["ds-text-success-green-darkest", "ds-stroke-success-green-darkest"],
|
|
@@ -4486,7 +4486,7 @@ const E1 = P(
|
|
|
4486
4486
|
error: ["ds-text-danger-red-darkest", "ds-stroke-danger-red-darkest"]
|
|
4487
4487
|
}
|
|
4488
4488
|
}
|
|
4489
|
-
}), ee = (e) =>
|
|
4489
|
+
}), ee = (e) => B(So(e)), $o = ({
|
|
4490
4490
|
variant: e = "info",
|
|
4491
4491
|
isDismissible: n = !0,
|
|
4492
4492
|
showIcon: i = !0,
|
|
@@ -4495,7 +4495,7 @@ const E1 = P(
|
|
|
4495
4495
|
description: a = "",
|
|
4496
4496
|
content: d = void 0,
|
|
4497
4497
|
closeAriaLabel: u = "Close button",
|
|
4498
|
-
id: p = "alert_" +
|
|
4498
|
+
id: p = "alert_" + Eo().toString(),
|
|
4499
4499
|
handleClose: g
|
|
4500
4500
|
}) => {
|
|
4501
4501
|
const f = {
|
|
@@ -4504,7 +4504,7 @@ const E1 = P(
|
|
|
4504
4504
|
warning: /* @__PURE__ */ o.jsx(gr, { className: ee({ variant: e }) }),
|
|
4505
4505
|
error: /* @__PURE__ */ o.jsx(br, { className: ee({ variant: e }) })
|
|
4506
4506
|
};
|
|
4507
|
-
return /* @__PURE__ */ o.jsxs("div", { id: p, className:
|
|
4507
|
+
return /* @__PURE__ */ o.jsxs("div", { id: p, className: Wo({ variant: e }), children: [
|
|
4508
4508
|
/* @__PURE__ */ o.jsxs("div", { className: "ds-flex ds-flex-row", children: [
|
|
4509
4509
|
i && /* @__PURE__ */ o.jsx(
|
|
4510
4510
|
"div",
|
|
@@ -4544,7 +4544,7 @@ const E1 = P(
|
|
|
4544
4544
|
] }),
|
|
4545
4545
|
n === !0 && /* @__PURE__ */ o.jsx("button", { className: "ds-h-5", onClick: g, "aria-label": u, children: /* @__PURE__ */ o.jsx(Cr, { width: "1rem", height: "1rem", className: ee({ variant: e }) }) })
|
|
4546
4546
|
] });
|
|
4547
|
-
},
|
|
4547
|
+
}, r1 = $o, yr = (e, n, i, r) => {
|
|
4548
4548
|
const s = `preflight ${i}`;
|
|
4549
4549
|
return {
|
|
4550
4550
|
// TODO: Construct class that includes passed classes plus preflight
|
|
@@ -4601,7 +4601,7 @@ const E1 = P(
|
|
|
4601
4601
|
}
|
|
4602
4602
|
)
|
|
4603
4603
|
};
|
|
4604
|
-
},
|
|
4604
|
+
}, Vo = ({
|
|
4605
4605
|
size: e = "small",
|
|
4606
4606
|
name: n,
|
|
4607
4607
|
hasIndicator: i = !1,
|
|
@@ -4629,7 +4629,7 @@ const E1 = P(
|
|
|
4629
4629
|
s
|
|
4630
4630
|
), p = i && u[n] || d[n];
|
|
4631
4631
|
return /* @__PURE__ */ o.jsx(o.Fragment, { children: p });
|
|
4632
|
-
}, re =
|
|
4632
|
+
}, re = Vo;
|
|
4633
4633
|
Object.keys(yr()).sort(
|
|
4634
4634
|
(e, n) => e.localeCompare(n)
|
|
4635
4635
|
);
|
|
@@ -4650,12 +4650,12 @@ function Mr(e) {
|
|
|
4650
4650
|
e[i] && (r && (r += " "), r += i);
|
|
4651
4651
|
return r;
|
|
4652
4652
|
}
|
|
4653
|
-
function
|
|
4653
|
+
function Ao() {
|
|
4654
4654
|
for (var e, n, i = 0, r = "", s = arguments.length; i < s; i++)
|
|
4655
4655
|
(e = arguments[i]) && (n = Mr(e)) && (r && (r += " "), r += n);
|
|
4656
4656
|
return r;
|
|
4657
4657
|
}
|
|
4658
|
-
const lr = (...e) =>
|
|
4658
|
+
const lr = (...e) => B(Ao(...e)), Pe = [
|
|
4659
4659
|
"disabled:ds-bg-neutrals-lighter",
|
|
4660
4660
|
"disabled:ds-text-neutrals-dark",
|
|
4661
4661
|
"disabled:ds-border-neutrals-light",
|
|
@@ -4772,7 +4772,7 @@ const lr = (...e) => G(V1(...e)), Pe = [
|
|
|
4772
4772
|
}
|
|
4773
4773
|
}
|
|
4774
4774
|
}
|
|
4775
|
-
),
|
|
4775
|
+
), To = ({
|
|
4776
4776
|
variant: e = "primary",
|
|
4777
4777
|
text: n,
|
|
4778
4778
|
label: i = "",
|
|
@@ -4854,28 +4854,38 @@ const lr = (...e) => G(V1(...e)), Pe = [
|
|
|
4854
4854
|
)
|
|
4855
4855
|
] })
|
|
4856
4856
|
}
|
|
4857
|
-
) }),
|
|
4857
|
+
) }), t1 = To, Po = ({
|
|
4858
4858
|
bodyContent: e = void 0,
|
|
4859
4859
|
iconName: n = void 0,
|
|
4860
4860
|
title: i = "",
|
|
4861
|
-
footerContent: r = void 0
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
className: "ds-text-neutrals-darker",
|
|
4870
|
-
hasIndicator: !1,
|
|
4871
|
-
altText: n
|
|
4872
|
-
}
|
|
4861
|
+
footerContent: r = void 0,
|
|
4862
|
+
className: s = ""
|
|
4863
|
+
}) => /* @__PURE__ */ o.jsxs(
|
|
4864
|
+
"div",
|
|
4865
|
+
{
|
|
4866
|
+
className: B(
|
|
4867
|
+
"preflight ds-flex ds-flex-col ds-items-start ds-gap-6 ds-rounded-lg ds-border ds-border-neutrals-light ds-p-5",
|
|
4868
|
+
s
|
|
4873
4869
|
),
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4870
|
+
children: [
|
|
4871
|
+
i && /* @__PURE__ */ o.jsxs("div", { className: "ds-flex ds-flex-row ds-items-center ds-gap-3", children: [
|
|
4872
|
+
n && /* @__PURE__ */ o.jsx(
|
|
4873
|
+
re,
|
|
4874
|
+
{
|
|
4875
|
+
size: "medium",
|
|
4876
|
+
name: n,
|
|
4877
|
+
className: "ds-text-neutrals-darker",
|
|
4878
|
+
hasIndicator: !1,
|
|
4879
|
+
altText: n
|
|
4880
|
+
}
|
|
4881
|
+
),
|
|
4882
|
+
/* @__PURE__ */ o.jsx(qo, { size: "small", text: i, hasMarginBottom: !1 })
|
|
4883
|
+
] }),
|
|
4884
|
+
e && /* @__PURE__ */ o.jsx("div", { className: "ds-text-base", children: e }),
|
|
4885
|
+
r && /* @__PURE__ */ o.jsx("div", { children: r })
|
|
4886
|
+
]
|
|
4887
|
+
}
|
|
4888
|
+
), o1 = Po, Io = P(
|
|
4879
4889
|
[
|
|
4880
4890
|
"preflight",
|
|
4881
4891
|
"ds-h-4",
|
|
@@ -4903,14 +4913,14 @@ const lr = (...e) => G(V1(...e)), Pe = [
|
|
|
4903
4913
|
}
|
|
4904
4914
|
}
|
|
4905
4915
|
}
|
|
4906
|
-
), Rr = (e) =>
|
|
4916
|
+
), Rr = (e) => B(Io(e)), Oo = P(["preflight", "ds-font-base", "ds-ml-2", "ds-text-base"], {
|
|
4907
4917
|
variants: {
|
|
4908
4918
|
disabled: {
|
|
4909
4919
|
false: "ds-cursor-pointer",
|
|
4910
4920
|
true: "ds-text-neutrals"
|
|
4911
4921
|
}
|
|
4912
4922
|
}
|
|
4913
|
-
}), Wr = (e) =>
|
|
4923
|
+
}), Wr = (e) => B(Oo(e)), No = ({
|
|
4914
4924
|
id: e = "",
|
|
4915
4925
|
label: n = "",
|
|
4916
4926
|
name: i = "",
|
|
@@ -4930,7 +4940,7 @@ const lr = (...e) => G(V1(...e)), Pe = [
|
|
|
4930
4940
|
name: i,
|
|
4931
4941
|
disabled: s,
|
|
4932
4942
|
type: "checkbox",
|
|
4933
|
-
className:
|
|
4943
|
+
className: `ds-form-checkbox ${Rr({ disabled: s })} ds-rounded`,
|
|
4934
4944
|
checked: r,
|
|
4935
4945
|
ref: u,
|
|
4936
4946
|
...d
|
|
@@ -4938,16 +4948,16 @@ const lr = (...e) => G(V1(...e)), Pe = [
|
|
|
4938
4948
|
),
|
|
4939
4949
|
/* @__PURE__ */ o.jsx("label", { htmlFor: e, className: Wr({ disabled: s }), children: n })
|
|
4940
4950
|
] });
|
|
4941
|
-
},
|
|
4942
|
-
function
|
|
4951
|
+
}, n1 = No, q = "large", oe = "medium", ne = "small", se = "extra-large", ur = "h1", Bo = "h2", zo = "h3", Fo = "div";
|
|
4952
|
+
function Ho(e) {
|
|
4943
4953
|
return {
|
|
4944
4954
|
[q]: ur,
|
|
4945
|
-
[oe]:
|
|
4946
|
-
[ne]:
|
|
4947
|
-
[se]:
|
|
4955
|
+
[oe]: Bo,
|
|
4956
|
+
[ne]: zo,
|
|
4957
|
+
[se]: Fo
|
|
4948
4958
|
}[e] || ur;
|
|
4949
4959
|
}
|
|
4950
|
-
const
|
|
4960
|
+
const Do = P("preflight ds-font-sans", {
|
|
4951
4961
|
variants: {
|
|
4952
4962
|
size: {
|
|
4953
4963
|
[ne]: "ds-mb-3",
|
|
@@ -4965,7 +4975,7 @@ const H1 = P("preflight ds-font-sans", {
|
|
|
4965
4975
|
[se]: "ds-text-4xl ds-font-semibold"
|
|
4966
4976
|
}
|
|
4967
4977
|
}
|
|
4968
|
-
}),
|
|
4978
|
+
}), Go = P("ds-mt-0 ds-font-bold ds-text-neutrals-dark", {
|
|
4969
4979
|
variants: {
|
|
4970
4980
|
size: {
|
|
4971
4981
|
[ne]: "ds-mb-1 ds-text-sm",
|
|
@@ -4974,7 +4984,7 @@ const H1 = P("preflight ds-font-sans", {
|
|
|
4974
4984
|
[se]: "ds-mb-3 ds-text-base"
|
|
4975
4985
|
}
|
|
4976
4986
|
}
|
|
4977
|
-
}),
|
|
4987
|
+
}), Zo = P("ds-mb-0 ds-text-neutrals-dark", {
|
|
4978
4988
|
variants: {
|
|
4979
4989
|
size: {
|
|
4980
4990
|
[ne]: "ds-mt-1 ds-text-base",
|
|
@@ -4983,7 +4993,7 @@ const H1 = P("preflight ds-font-sans", {
|
|
|
4983
4993
|
[se]: "ds-mt-3 ds-text-base"
|
|
4984
4994
|
}
|
|
4985
4995
|
}
|
|
4986
|
-
}),
|
|
4996
|
+
}), Uo = P("ds-text-neutrals-light", {
|
|
4987
4997
|
variants: {
|
|
4988
4998
|
size: {
|
|
4989
4999
|
[ne]: "ds-mt-2",
|
|
@@ -4992,7 +5002,7 @@ const H1 = P("preflight ds-font-sans", {
|
|
|
4992
5002
|
[se]: "ds-mt-3"
|
|
4993
5003
|
}
|
|
4994
5004
|
}
|
|
4995
|
-
}),
|
|
5005
|
+
}), Yo = ({
|
|
4996
5006
|
size: e = q,
|
|
4997
5007
|
className: n = "",
|
|
4998
5008
|
text: i = "",
|
|
@@ -5003,32 +5013,32 @@ const H1 = P("preflight ds-font-sans", {
|
|
|
5003
5013
|
headingTag: u,
|
|
5004
5014
|
...p
|
|
5005
5015
|
}) => {
|
|
5006
|
-
const g = r ? /* @__PURE__ */ o.jsx("p", { className:
|
|
5016
|
+
const g = r ? /* @__PURE__ */ o.jsx("p", { className: Go({ size: e }), children: r }) : null, f = s ? /* @__PURE__ */ o.jsx("p", { className: Zo({ size: e }), children: s }) : null, x = a ? /* @__PURE__ */ o.jsx("hr", { className: Uo({ size: e }) }) : null, j = d ? Do({ size: e }) : "preflight", _ = {
|
|
5007
5017
|
div: /* @__PURE__ */ o.jsx("div", { className: Ee({ size: e }), children: i }),
|
|
5008
5018
|
h3: /* @__PURE__ */ o.jsx("h3", { className: Ee({ size: e }), children: i }),
|
|
5009
5019
|
h2: /* @__PURE__ */ o.jsx("h2", { className: Ee({ size: e }), children: i }),
|
|
5010
5020
|
h1: /* @__PURE__ */ o.jsx("h1", { className: Ee({ size: e }), children: i })
|
|
5011
5021
|
};
|
|
5012
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
5022
|
+
return /* @__PURE__ */ o.jsxs("div", { className: B(j, n), ...p, children: [
|
|
5013
5023
|
g,
|
|
5014
|
-
_[u ||
|
|
5024
|
+
_[u || Ho(e)],
|
|
5015
5025
|
f,
|
|
5016
5026
|
x
|
|
5017
5027
|
] });
|
|
5018
|
-
},
|
|
5028
|
+
}, qo = Yo, Jo = ({ label: e = "", name: n, id: i, disabled: r = !1, ...s }) => /* @__PURE__ */ o.jsxs("div", { className: "ds-flex ds-h-4 ds-items-center", children: [
|
|
5019
5029
|
/* @__PURE__ */ o.jsx(
|
|
5020
5030
|
"input",
|
|
5021
5031
|
{
|
|
5022
5032
|
id: i,
|
|
5023
5033
|
name: n,
|
|
5024
5034
|
type: "radio",
|
|
5025
|
-
className: Rr({ disabled: r })
|
|
5035
|
+
className: `ds-form-radio ${Rr({ disabled: r })}`,
|
|
5026
5036
|
disabled: r,
|
|
5027
5037
|
...s
|
|
5028
5038
|
}
|
|
5029
5039
|
),
|
|
5030
5040
|
/* @__PURE__ */ o.jsx("label", { htmlFor: i, className: Wr({ disabled: r }), children: e })
|
|
5031
|
-
] }),
|
|
5041
|
+
] }), s1 = Jo, Ko = P(
|
|
5032
5042
|
[
|
|
5033
5043
|
"preflight",
|
|
5034
5044
|
"ds-font-sans",
|
|
@@ -5061,24 +5071,24 @@ const H1 = P("preflight ds-font-sans", {
|
|
|
5061
5071
|
}
|
|
5062
5072
|
}
|
|
5063
5073
|
}
|
|
5064
|
-
),
|
|
5074
|
+
), Xo = ({
|
|
5065
5075
|
text: e,
|
|
5066
5076
|
href: n,
|
|
5067
5077
|
type: i = "default",
|
|
5068
5078
|
iconName: r,
|
|
5069
5079
|
...s
|
|
5070
|
-
}) => /* @__PURE__ */ o.jsxs("a", { href: n, type: i, className:
|
|
5080
|
+
}) => /* @__PURE__ */ o.jsxs("a", { href: n, type: i, className: B(Ko({ type: i })), ...s, children: [
|
|
5071
5081
|
e,
|
|
5072
5082
|
r && /* @__PURE__ */ o.jsx(re, { altText: e, name: r, size: "small" })
|
|
5073
|
-
] }),
|
|
5083
|
+
] }), i1 = Xo;
|
|
5074
5084
|
export {
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5085
|
+
r1 as Alert,
|
|
5086
|
+
t1 as Button,
|
|
5087
|
+
o1 as Card,
|
|
5088
|
+
n1 as Checkbox,
|
|
5089
|
+
qo as Heading,
|
|
5080
5090
|
re as Icon,
|
|
5081
|
-
|
|
5082
|
-
|
|
5091
|
+
i1 as Link,
|
|
5092
|
+
s1 as Radio
|
|
5083
5093
|
};
|
|
5084
5094
|
//# sourceMappingURL=index.es.js.map
|