@takecasper/acuity-design-system 1.12.1 → 1.12.2
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 +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +86 -86
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -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
2375
|
function H(e) {
|
|
2376
|
-
return te(e, "length",
|
|
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
2393
|
function D(e) {
|
|
2394
|
-
return
|
|
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,19 +2414,19 @@ 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
|
|
2429
|
+
function Mo() {
|
|
2430
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, H], A = () => ["auto", Y, b], B = () => ["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"], z = () => ["", "0", b], ce = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [Y, Me], U = () => [Y, b];
|
|
2431
2431
|
return {
|
|
2432
2432
|
cacheSize: 500,
|
|
@@ -2446,7 +2446,7 @@ function L1() {
|
|
|
2446
2446
|
invert: z(),
|
|
2447
2447
|
gap: k(),
|
|
2448
2448
|
gradientColorStops: [e],
|
|
2449
|
-
gradientColorStopPositions: [
|
|
2449
|
+
gradientColorStopPositions: [bo, H],
|
|
2450
2450
|
inset: le(),
|
|
2451
2451
|
margin: le(),
|
|
2452
2452
|
opacity: F(),
|
|
@@ -3359,7 +3359,7 @@ function L1() {
|
|
|
3359
3359
|
* @see https://tailwindcss.com/docs/background-position
|
|
3360
3360
|
*/
|
|
3361
3361
|
"bg-position": [{
|
|
3362
|
-
bg: [...B(),
|
|
3362
|
+
bg: [...B(), 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
|
|
@@ -3786,7 +3786,7 @@ function L1() {
|
|
|
3786
3786
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
3787
3787
|
*/
|
|
3788
3788
|
shadow: [{
|
|
3789
|
-
shadow: ["", "inner", "none", D,
|
|
3789
|
+
shadow: ["", "inner", "none", D, wo]
|
|
3790
3790
|
}],
|
|
3791
3791
|
/**
|
|
3792
3792
|
* Box Shadow Color
|
|
@@ -4442,11 +4442,11 @@ function L1() {
|
|
|
4442
4442
|
}
|
|
4443
4443
|
};
|
|
4444
4444
|
}
|
|
4445
|
-
const G = /* @__PURE__ */
|
|
4446
|
-
function
|
|
4445
|
+
const G = /* @__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) => G(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) => G(
|
|
4480
|
+
}), ar = (e) => G(_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) => G(
|
|
4489
|
+
}), ee = (e) => G(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) => G(
|
|
4658
|
+
const lr = (...e) => G(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,7 +4854,7 @@ 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 = "",
|
|
@@ -4871,11 +4871,11 @@ const lr = (...e) => G(V1(...e)), Pe = [
|
|
|
4871
4871
|
altText: n
|
|
4872
4872
|
}
|
|
4873
4873
|
),
|
|
4874
|
-
/* @__PURE__ */ o.jsx(
|
|
4874
|
+
/* @__PURE__ */ o.jsx(qo, { size: "small", text: i, hasMarginBottom: !1 })
|
|
4875
4875
|
] }),
|
|
4876
4876
|
e && /* @__PURE__ */ o.jsx("div", { className: "ds-text-base", children: e }),
|
|
4877
4877
|
r && /* @__PURE__ */ o.jsx("div", { children: r })
|
|
4878
|
-
] }),
|
|
4878
|
+
] }), o1 = Po, Io = P(
|
|
4879
4879
|
[
|
|
4880
4880
|
"preflight",
|
|
4881
4881
|
"ds-h-4",
|
|
@@ -4903,14 +4903,14 @@ const lr = (...e) => G(V1(...e)), Pe = [
|
|
|
4903
4903
|
}
|
|
4904
4904
|
}
|
|
4905
4905
|
}
|
|
4906
|
-
), Rr = (e) => G(
|
|
4906
|
+
), Rr = (e) => G(Io(e)), Oo = P(["preflight", "ds-font-base", "ds-ml-2", "ds-text-base"], {
|
|
4907
4907
|
variants: {
|
|
4908
4908
|
disabled: {
|
|
4909
4909
|
false: "ds-cursor-pointer",
|
|
4910
4910
|
true: "ds-text-neutrals"
|
|
4911
4911
|
}
|
|
4912
4912
|
}
|
|
4913
|
-
}), Wr = (e) => G(
|
|
4913
|
+
}), Wr = (e) => G(Oo(e)), No = ({
|
|
4914
4914
|
id: e = "",
|
|
4915
4915
|
label: n = "",
|
|
4916
4916
|
name: i = "",
|
|
@@ -4930,7 +4930,7 @@ const lr = (...e) => G(V1(...e)), Pe = [
|
|
|
4930
4930
|
name: i,
|
|
4931
4931
|
disabled: s,
|
|
4932
4932
|
type: "checkbox",
|
|
4933
|
-
className:
|
|
4933
|
+
className: `ds-form-checkbox ${Rr({ disabled: s })} ds-rounded`,
|
|
4934
4934
|
checked: r,
|
|
4935
4935
|
ref: u,
|
|
4936
4936
|
...d
|
|
@@ -4938,16 +4938,16 @@ const lr = (...e) => G(V1(...e)), Pe = [
|
|
|
4938
4938
|
),
|
|
4939
4939
|
/* @__PURE__ */ o.jsx("label", { htmlFor: e, className: Wr({ disabled: s }), children: n })
|
|
4940
4940
|
] });
|
|
4941
|
-
},
|
|
4942
|
-
function
|
|
4941
|
+
}, n1 = No, q = "large", oe = "medium", ne = "small", se = "extra-large", ur = "h1", Bo = "h2", zo = "h3", Fo = "div";
|
|
4942
|
+
function Ho(e) {
|
|
4943
4943
|
return {
|
|
4944
4944
|
[q]: ur,
|
|
4945
|
-
[oe]:
|
|
4946
|
-
[ne]:
|
|
4947
|
-
[se]:
|
|
4945
|
+
[oe]: Bo,
|
|
4946
|
+
[ne]: zo,
|
|
4947
|
+
[se]: Fo
|
|
4948
4948
|
}[e] || ur;
|
|
4949
4949
|
}
|
|
4950
|
-
const
|
|
4950
|
+
const Do = P("preflight ds-font-sans", {
|
|
4951
4951
|
variants: {
|
|
4952
4952
|
size: {
|
|
4953
4953
|
[ne]: "ds-mb-3",
|
|
@@ -4965,7 +4965,7 @@ const H1 = P("preflight ds-font-sans", {
|
|
|
4965
4965
|
[se]: "ds-text-4xl ds-font-semibold"
|
|
4966
4966
|
}
|
|
4967
4967
|
}
|
|
4968
|
-
}),
|
|
4968
|
+
}), Go = P("ds-mt-0 ds-font-bold ds-text-neutrals-dark", {
|
|
4969
4969
|
variants: {
|
|
4970
4970
|
size: {
|
|
4971
4971
|
[ne]: "ds-mb-1 ds-text-sm",
|
|
@@ -4974,7 +4974,7 @@ const H1 = P("preflight ds-font-sans", {
|
|
|
4974
4974
|
[se]: "ds-mb-3 ds-text-base"
|
|
4975
4975
|
}
|
|
4976
4976
|
}
|
|
4977
|
-
}),
|
|
4977
|
+
}), Zo = P("ds-mb-0 ds-text-neutrals-dark", {
|
|
4978
4978
|
variants: {
|
|
4979
4979
|
size: {
|
|
4980
4980
|
[ne]: "ds-mt-1 ds-text-base",
|
|
@@ -4983,7 +4983,7 @@ const H1 = P("preflight ds-font-sans", {
|
|
|
4983
4983
|
[se]: "ds-mt-3 ds-text-base"
|
|
4984
4984
|
}
|
|
4985
4985
|
}
|
|
4986
|
-
}),
|
|
4986
|
+
}), Uo = P("ds-text-neutrals-light", {
|
|
4987
4987
|
variants: {
|
|
4988
4988
|
size: {
|
|
4989
4989
|
[ne]: "ds-mt-2",
|
|
@@ -4992,7 +4992,7 @@ const H1 = P("preflight ds-font-sans", {
|
|
|
4992
4992
|
[se]: "ds-mt-3"
|
|
4993
4993
|
}
|
|
4994
4994
|
}
|
|
4995
|
-
}),
|
|
4995
|
+
}), Yo = ({
|
|
4996
4996
|
size: e = q,
|
|
4997
4997
|
className: n = "",
|
|
4998
4998
|
text: i = "",
|
|
@@ -5003,7 +5003,7 @@ const H1 = P("preflight ds-font-sans", {
|
|
|
5003
5003
|
headingTag: u,
|
|
5004
5004
|
...p
|
|
5005
5005
|
}) => {
|
|
5006
|
-
const g = r ? /* @__PURE__ */ o.jsx("p", { className:
|
|
5006
|
+
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
5007
|
div: /* @__PURE__ */ o.jsx("div", { className: Ee({ size: e }), children: i }),
|
|
5008
5008
|
h3: /* @__PURE__ */ o.jsx("h3", { className: Ee({ size: e }), children: i }),
|
|
5009
5009
|
h2: /* @__PURE__ */ o.jsx("h2", { className: Ee({ size: e }), children: i }),
|
|
@@ -5011,24 +5011,24 @@ const H1 = P("preflight ds-font-sans", {
|
|
|
5011
5011
|
};
|
|
5012
5012
|
return /* @__PURE__ */ o.jsxs("div", { className: G(j, n), ...p, children: [
|
|
5013
5013
|
g,
|
|
5014
|
-
_[u ||
|
|
5014
|
+
_[u || Ho(e)],
|
|
5015
5015
|
f,
|
|
5016
5016
|
x
|
|
5017
5017
|
] });
|
|
5018
|
-
},
|
|
5018
|
+
}, 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
5019
|
/* @__PURE__ */ o.jsx(
|
|
5020
5020
|
"input",
|
|
5021
5021
|
{
|
|
5022
5022
|
id: i,
|
|
5023
5023
|
name: n,
|
|
5024
5024
|
type: "radio",
|
|
5025
|
-
className: Rr({ disabled: r })
|
|
5025
|
+
className: `ds-form-radio ${Rr({ disabled: r })}`,
|
|
5026
5026
|
disabled: r,
|
|
5027
5027
|
...s
|
|
5028
5028
|
}
|
|
5029
5029
|
),
|
|
5030
5030
|
/* @__PURE__ */ o.jsx("label", { htmlFor: i, className: Wr({ disabled: r }), children: e })
|
|
5031
|
-
] }),
|
|
5031
|
+
] }), s1 = Jo, Ko = P(
|
|
5032
5032
|
[
|
|
5033
5033
|
"preflight",
|
|
5034
5034
|
"ds-font-sans",
|
|
@@ -5061,24 +5061,24 @@ const H1 = P("preflight ds-font-sans", {
|
|
|
5061
5061
|
}
|
|
5062
5062
|
}
|
|
5063
5063
|
}
|
|
5064
|
-
),
|
|
5064
|
+
), Xo = ({
|
|
5065
5065
|
text: e,
|
|
5066
5066
|
href: n,
|
|
5067
5067
|
type: i = "default",
|
|
5068
5068
|
iconName: r,
|
|
5069
5069
|
...s
|
|
5070
|
-
}) => /* @__PURE__ */ o.jsxs("a", { href: n, type: i, className: G(
|
|
5070
|
+
}) => /* @__PURE__ */ o.jsxs("a", { href: n, type: i, className: G(Ko({ type: i })), ...s, children: [
|
|
5071
5071
|
e,
|
|
5072
5072
|
r && /* @__PURE__ */ o.jsx(re, { altText: e, name: r, size: "small" })
|
|
5073
|
-
] }),
|
|
5073
|
+
] }), i1 = Xo;
|
|
5074
5074
|
export {
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5075
|
+
r1 as Alert,
|
|
5076
|
+
t1 as Button,
|
|
5077
|
+
o1 as Card,
|
|
5078
|
+
n1 as Checkbox,
|
|
5079
|
+
qo as Heading,
|
|
5080
5080
|
re as Icon,
|
|
5081
|
-
|
|
5082
|
-
|
|
5081
|
+
i1 as Link,
|
|
5082
|
+
s1 as Radio
|
|
5083
5083
|
};
|
|
5084
5084
|
//# sourceMappingURL=index.es.js.map
|