@goodhood-web/ui 1.5.0-development.1 → 1.5.0-development.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/index.d.ts +32 -31
- package/index.js +11 -11
- package/index.mjs +78 -76
- package/lib/Accordion/Accordion.d.ts +1 -0
- package/lib/Accordion/Accordion.types.d.ts +1 -0
- package/lib/Accordion/AccordionItem.d.ts +1 -0
- package/lib/Accordion/AccordionItem.types.d.ts +1 -0
- package/lib/BaseButton/BaseButton.d.ts +2 -1
- package/lib/Button/Button.d.ts +1 -0
- package/lib/Button/Button.types.d.ts +2 -1
- package/lib/ButtonPrimary/ButtonPrimary.d.ts +1 -0
- package/lib/ButtonPrimary/ButtonPrimary.types.d.ts +2 -1
- package/lib/Card/Card.d.ts +1 -0
- package/lib/Card/Card.types.d.ts +3 -2
- package/lib/Card/CardBody/CardBody.d.ts +1 -0
- package/lib/Card/CardBody/CardBody.types.d.ts +1 -0
- package/lib/Card/CardHeader/CardHeader.d.ts +2 -1
- package/lib/Card/CardHeader/CardHeader.type.d.ts +6 -4
- package/lib/Divider/Divider.d.ts +1 -0
- package/lib/Fieldset/Fieldset.d.ts +1 -0
- package/lib/Fieldset/Fieldset.types.d.ts +1 -0
- package/lib/Form/Form.d.ts +1 -0
- package/lib/Form/Form.types.d.ts +1 -0
- package/lib/Icon/Icon.d.ts +2 -1
- package/lib/Icon/Icon.types.d.ts +3 -2
- package/lib/Icon/icons/24x24/index.d.ts +42 -42
- package/lib/Icon/icons/32x32/index.d.ts +88 -88
- package/lib/Icon/icons/index.d.ts +130 -130
- package/lib/IconButton/IconButton.d.ts +2 -1
- package/lib/IconButton/IconButton.types.d.ts +3 -1
- package/lib/Image/Image.d.ts +1 -0
- package/lib/LabelPill/LabelPill.d.ts +1 -0
- package/lib/Legend/Legend.d.ts +1 -0
- package/lib/MenuItem/MenuItem.d.ts +1 -0
- package/lib/MenuItem/MenuItem.types.d.ts +2 -1
- package/lib/Modal/Backdrop/Backdrop.d.ts +2 -1
- package/lib/Modal/Modal.d.ts +1 -0
- package/lib/Modal/Modal.types.d.ts +3 -2
- package/lib/NavBar/NavBar.d.ts +1 -0
- package/lib/NavBar/NavBar.types.d.ts +1 -0
- package/lib/NavBar/NavItem/NavItem.d.ts +1 -0
- package/lib/NavBar/NavItem/NavItem.types.d.ts +2 -1
- package/lib/NotificationBubble/NotificationBubble.d.ts +1 -0
- package/lib/NotificationBubble/NotificationBubble.types.d.ts +1 -0
- package/lib/PlaceholderThumbnail/PlaceholderThumbnail.d.ts +1 -0
- package/lib/PlaceholderThumbnail/PlaceholderThumbnail.type.d.ts +1 -1
- package/lib/Popup/Popup.d.ts +1 -0
- package/lib/Popup/Popup.types.d.ts +2 -1
- package/lib/TextButton/TextButton.d.ts +1 -0
- package/lib/TextButton/TextButton.types.d.ts +4 -3
- package/lib/TextInput/TextInput.d.ts +1 -0
- package/lib/TextInput/TextInput.types.d.ts +2 -1
- package/lib/Thumbnail/Thumbnail.d.ts +1 -0
- package/lib/Thumbnail/Thumbnail.type.d.ts +1 -0
- package/lib/Toggle/Toggle.d.ts +1 -0
- package/lib/Toggle/Toggle.types.d.ts +1 -0
- package/lib/ToggleInput/ToggleInput.d.ts +1 -0
- package/lib/ToggleInput/ToggleInput.types.d.ts +2 -1
- package/lib/Typography/Typography.d.ts +1 -0
- package/lib/Typography/Typography.types.d.ts +1 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/utils/index.d.ts +1 -0
package/index.mjs
CHANGED
|
@@ -74,8 +74,8 @@ function as() {
|
|
|
74
74
|
}
|
|
75
75
|
function _(u, y, P) {
|
|
76
76
|
{
|
|
77
|
-
var I = T.ReactDebugCurrentFrame,
|
|
78
|
-
|
|
77
|
+
var I = T.ReactDebugCurrentFrame, oe = I.getStackAddendum();
|
|
78
|
+
oe !== "" && (y += "%s", P = P.concat([oe]));
|
|
79
79
|
var ue = P.map(function(ee) {
|
|
80
80
|
return String(ee);
|
|
81
81
|
});
|
|
@@ -95,8 +95,8 @@ function as() {
|
|
|
95
95
|
var I = u.displayName;
|
|
96
96
|
if (I)
|
|
97
97
|
return I;
|
|
98
|
-
var
|
|
99
|
-
return
|
|
98
|
+
var oe = y.displayName || y.name || "";
|
|
99
|
+
return oe !== "" ? P + "(" + oe + ")" : P;
|
|
100
100
|
}
|
|
101
101
|
function Y(u) {
|
|
102
102
|
return u.displayName || "Context";
|
|
@@ -136,7 +136,7 @@ function as() {
|
|
|
136
136
|
var I = u.displayName || null;
|
|
137
137
|
return I !== null ? I : j(u.type) || "Memo";
|
|
138
138
|
case p: {
|
|
139
|
-
var
|
|
139
|
+
var oe = u, ue = oe._payload, ee = oe._init;
|
|
140
140
|
try {
|
|
141
141
|
return j(ee(ue));
|
|
142
142
|
} catch {
|
|
@@ -214,8 +214,8 @@ function as() {
|
|
|
214
214
|
if (Z === void 0)
|
|
215
215
|
try {
|
|
216
216
|
throw Error();
|
|
217
|
-
} catch (
|
|
218
|
-
var I =
|
|
217
|
+
} catch (oe) {
|
|
218
|
+
var I = oe.stack.trim().match(/\n( *(at )?)/);
|
|
219
219
|
Z = I && I[1] || "";
|
|
220
220
|
}
|
|
221
221
|
return `
|
|
@@ -237,7 +237,7 @@ function as() {
|
|
|
237
237
|
}
|
|
238
238
|
var I;
|
|
239
239
|
ne = !0;
|
|
240
|
-
var
|
|
240
|
+
var oe = Error.prepareStackTrace;
|
|
241
241
|
Error.prepareStackTrace = void 0;
|
|
242
242
|
var ue;
|
|
243
243
|
ue = H.current, H.current = null, W();
|
|
@@ -293,7 +293,7 @@ function as() {
|
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
} finally {
|
|
296
|
-
ne = !1, H.current = ue, J(), Error.prepareStackTrace =
|
|
296
|
+
ne = !1, H.current = ue, J(), Error.prepareStackTrace = oe;
|
|
297
297
|
}
|
|
298
298
|
var Ze = u ? u.displayName || u.name : "", Kn = Ze ? K(Ze) : "";
|
|
299
299
|
return typeof u == "function" && Q.set(u, Kn), Kn;
|
|
@@ -325,9 +325,9 @@ function as() {
|
|
|
325
325
|
case h:
|
|
326
326
|
return Ae(u.type, y, P);
|
|
327
327
|
case p: {
|
|
328
|
-
var I = u,
|
|
328
|
+
var I = u, oe = I._payload, ue = I._init;
|
|
329
329
|
try {
|
|
330
|
-
return Ae(ue(
|
|
330
|
+
return Ae(ue(oe), y, P);
|
|
331
331
|
} catch {
|
|
332
332
|
}
|
|
333
333
|
}
|
|
@@ -342,7 +342,7 @@ function as() {
|
|
|
342
342
|
} else
|
|
343
343
|
Vn.setExtraStackFrame(null);
|
|
344
344
|
}
|
|
345
|
-
function Lo(u, y, P, I,
|
|
345
|
+
function Lo(u, y, P, I, oe) {
|
|
346
346
|
{
|
|
347
347
|
var ue = Function.call.bind(mt);
|
|
348
348
|
for (var ee in u)
|
|
@@ -357,7 +357,7 @@ function as() {
|
|
|
357
357
|
} catch (he) {
|
|
358
358
|
X = he;
|
|
359
359
|
}
|
|
360
|
-
X && !(X instanceof Error) && (gt(
|
|
360
|
+
X && !(X instanceof Error) && (gt(oe), S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", I || "React class", P, ee, typeof X), gt(null)), X instanceof Error && !(X.message in Nn) && (Nn[X.message] = !0, gt(oe), S("Failed %s type: %s", P, X.message), gt(null));
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
}
|
|
@@ -436,7 +436,7 @@ function as() {
|
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
var Ho = function(u, y, P, I,
|
|
439
|
+
var Ho = function(u, y, P, I, oe, ue, ee) {
|
|
440
440
|
var X = {
|
|
441
441
|
// This tag allows us to uniquely identify this as a React Element
|
|
442
442
|
$$typeof: e,
|
|
@@ -462,13 +462,13 @@ function as() {
|
|
|
462
462
|
configurable: !1,
|
|
463
463
|
enumerable: !1,
|
|
464
464
|
writable: !1,
|
|
465
|
-
value:
|
|
465
|
+
value: oe
|
|
466
466
|
}), Object.freeze && (Object.freeze(X.props), Object.freeze(X)), X;
|
|
467
467
|
};
|
|
468
|
-
function Do(u, y, P, I,
|
|
468
|
+
function Do(u, y, P, I, oe) {
|
|
469
469
|
{
|
|
470
470
|
var ue, ee = {}, X = null, ge = null;
|
|
471
|
-
P !== void 0 && (Wn(P), X = "" + P), Vo(y) && (Wn(y.key), X = "" + y.key), No(y) && (ge = y.ref, jo(y,
|
|
471
|
+
P !== void 0 && (Wn(P), X = "" + P), Vo(y) && (Wn(y.key), X = "" + y.key), No(y) && (ge = y.ref, jo(y, oe));
|
|
472
472
|
for (ue in y)
|
|
473
473
|
mt.call(y, ue) && !Io.hasOwnProperty(ue) && (ee[ue] = y[ue]);
|
|
474
474
|
if (u && u.defaultProps) {
|
|
@@ -480,7 +480,7 @@ function as() {
|
|
|
480
480
|
var pe = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
|
|
481
481
|
X && Wo(ee, pe), ge && Bo(ee, pe);
|
|
482
482
|
}
|
|
483
|
-
return Ho(u, X, ge,
|
|
483
|
+
return Ho(u, X, ge, oe, I, Qe.current, ee);
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
var Qt = T.ReactCurrentOwner, Dn = T.ReactDebugCurrentFrame;
|
|
@@ -557,9 +557,9 @@ Check the top-level render call using <` + P + ">.");
|
|
|
557
557
|
else if (Gt(u))
|
|
558
558
|
u._store && (u._store.validated = !0);
|
|
559
559
|
else if (u) {
|
|
560
|
-
var
|
|
561
|
-
if (typeof
|
|
562
|
-
for (var ue =
|
|
560
|
+
var oe = M(u);
|
|
561
|
+
if (typeof oe == "function" && oe !== u.entries)
|
|
562
|
+
for (var ue = oe.call(u), ee; !(ee = ue.next()).done; )
|
|
563
563
|
Gt(ee.value) && qn(ee.value, y);
|
|
564
564
|
}
|
|
565
565
|
}
|
|
@@ -583,8 +583,8 @@ Check the top-level render call using <` + P + ">.");
|
|
|
583
583
|
Lo(P, u.props, "prop", I, u);
|
|
584
584
|
} else if (y.PropTypes !== void 0 && !Xt) {
|
|
585
585
|
Xt = !0;
|
|
586
|
-
var
|
|
587
|
-
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",
|
|
586
|
+
var oe = j(y);
|
|
587
|
+
S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", oe || "Unknown");
|
|
588
588
|
}
|
|
589
589
|
typeof y.getDefaultProps == "function" && !y.getDefaultProps.isReactClassApproved && S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
590
590
|
}
|
|
@@ -601,18 +601,18 @@ Check the top-level render call using <` + P + ">.");
|
|
|
601
601
|
u.ref !== null && (De(u), S("Invalid attribute `ref` supplied to `React.Fragment`."), De(null));
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
|
-
function Yn(u, y, P, I,
|
|
604
|
+
function Yn(u, y, P, I, oe, ue) {
|
|
605
605
|
{
|
|
606
606
|
var ee = z(u);
|
|
607
607
|
if (!ee) {
|
|
608
608
|
var X = "";
|
|
609
609
|
(u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (X += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
610
|
-
var ge = Zo(
|
|
610
|
+
var ge = Zo(oe);
|
|
611
611
|
ge ? X += ge : X += Zn();
|
|
612
612
|
var he;
|
|
613
613
|
u === null ? he = "null" : Yt(u) ? he = "array" : u !== void 0 && u.$$typeof === e ? (he = "<" + (j(u.type) || "Unknown") + " />", X = " Did you accidentally export a JSX literal instead of a component?") : he = typeof u, S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", he, X);
|
|
614
614
|
}
|
|
615
|
-
var pe = Do(u, y, P,
|
|
615
|
+
var pe = Do(u, y, P, oe, ue);
|
|
616
616
|
if (pe == null)
|
|
617
617
|
return pe;
|
|
618
618
|
if (ee) {
|
|
@@ -658,7 +658,7 @@ function Vr(t) {
|
|
|
658
658
|
t[n] && (r && (r += " "), r += n);
|
|
659
659
|
return r;
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function re() {
|
|
662
662
|
for (var t, e, n = 0, r = "", o = arguments.length; n < o; n++)
|
|
663
663
|
(t = arguments[n]) && (e = Vr(t)) && (r && (r += " "), r += e);
|
|
664
664
|
return r;
|
|
@@ -684,7 +684,7 @@ const is = "_heading_1xhnf_106", ls = "_title_1xhnf_120", cs = "_icon_1xhnf_132"
|
|
|
684
684
|
"button",
|
|
685
685
|
{
|
|
686
686
|
id: `accordion-header-${r}`,
|
|
687
|
-
className:
|
|
687
|
+
className: re(ze.heading, t),
|
|
688
688
|
"aria-expanded": a,
|
|
689
689
|
"aria-controls": `accordion-panel-${r}`,
|
|
690
690
|
"data-expanded": a,
|
|
@@ -705,7 +705,7 @@ const is = "_heading_1xhnf_106", ls = "_title_1xhnf_120", cs = "_icon_1xhnf_132"
|
|
|
705
705
|
{
|
|
706
706
|
name: "chevron_down",
|
|
707
707
|
size: "24",
|
|
708
|
-
className:
|
|
708
|
+
className: re(ze.icon, {
|
|
709
709
|
[ze.iconExpanded]: a
|
|
710
710
|
})
|
|
711
711
|
}
|
|
@@ -717,7 +717,7 @@ const is = "_heading_1xhnf_106", ls = "_title_1xhnf_120", cs = "_icon_1xhnf_132"
|
|
|
717
717
|
"div",
|
|
718
718
|
{
|
|
719
719
|
id: `accordion-panel-${r}`,
|
|
720
|
-
className:
|
|
720
|
+
className: re(ze.panel, e),
|
|
721
721
|
"data-expanded": a,
|
|
722
722
|
"aria-labelledby": `accordion-header-${r}`,
|
|
723
723
|
hidden: !a,
|
|
@@ -1695,13 +1695,13 @@ function Ws(t) {
|
|
|
1695
1695
|
className: s
|
|
1696
1696
|
} = t;
|
|
1697
1697
|
if (!e) {
|
|
1698
|
-
const m =
|
|
1698
|
+
const m = re(n == null ? void 0 : n.className, s, o == null ? void 0 : o.className, r == null ? void 0 : r.className), b = G({}, n == null ? void 0 : n.style, o == null ? void 0 : o.style, r == null ? void 0 : r.style), k = G({}, n, o, r);
|
|
1699
1699
|
return m.length > 0 && (k.className = m), Object.keys(b).length > 0 && (k.style = b), {
|
|
1700
1700
|
props: k,
|
|
1701
1701
|
internalRef: void 0
|
|
1702
1702
|
};
|
|
1703
1703
|
}
|
|
1704
|
-
const a = Oe(G({}, o, r)), l = cr(r), c = cr(o), d = e(a), f =
|
|
1704
|
+
const a = Oe(G({}, o, r)), l = cr(r), c = cr(o), d = e(a), f = re(d == null ? void 0 : d.className, n == null ? void 0 : n.className, s, o == null ? void 0 : o.className, r == null ? void 0 : r.className), h = G({}, d == null ? void 0 : d.style, n == null ? void 0 : n.style, o == null ? void 0 : o.style, r == null ? void 0 : r.style), p = G({}, d, n, c, l);
|
|
1705
1705
|
return f.length > 0 && (p.className = f), Object.keys(h).length > 0 && (p.style = h), {
|
|
1706
1706
|
props: p,
|
|
1707
1707
|
internalRef: d.ref
|
|
@@ -3994,7 +3994,7 @@ const ti = "_baseBtn_100xp_106", cn = {
|
|
|
3994
3994
|
"aria-label": e,
|
|
3995
3995
|
"aria-labelledby": n,
|
|
3996
3996
|
"aria-disabled": s,
|
|
3997
|
-
className:
|
|
3997
|
+
className: re(cn.baseBtn, h, o),
|
|
3998
3998
|
role: a,
|
|
3999
3999
|
disabled: s,
|
|
4000
4000
|
"aria-pressed": c,
|
|
@@ -4009,7 +4009,7 @@ function qt(t) {
|
|
|
4009
4009
|
const e = "href" in t, { children: n, className: r, disabled: o = !1 } = t, { active: s, focusVisible: a, getRootProps: l } = Xr({
|
|
4010
4010
|
...t,
|
|
4011
4011
|
rootRef: t.ref
|
|
4012
|
-
}), c =
|
|
4012
|
+
}), c = re(Je.baseBtn, {
|
|
4013
4013
|
[Je["baseBtn--active"]]: s,
|
|
4014
4014
|
[Je["baseBtn--focusVisible"]]: a
|
|
4015
4015
|
});
|
|
@@ -4020,7 +4020,7 @@ function qt(t) {
|
|
|
4020
4020
|
{
|
|
4021
4021
|
"aria-label": b,
|
|
4022
4022
|
"aria-labelledby": k,
|
|
4023
|
-
className:
|
|
4023
|
+
className: re(Je.baseBtn, c, r),
|
|
4024
4024
|
href: M,
|
|
4025
4025
|
target: _,
|
|
4026
4026
|
onClick: T,
|
|
@@ -4037,7 +4037,7 @@ function qt(t) {
|
|
|
4037
4037
|
"aria-label": d,
|
|
4038
4038
|
"aria-labelledby": f,
|
|
4039
4039
|
"aria-disabled": o,
|
|
4040
|
-
className:
|
|
4040
|
+
className: re(Je.baseBtn, c, r),
|
|
4041
4041
|
role: p,
|
|
4042
4042
|
disabled: o,
|
|
4043
4043
|
onClick: h,
|
|
@@ -4080,7 +4080,7 @@ function hi(t) {
|
|
|
4080
4080
|
}
|
|
4081
4081
|
function ye({ as: t, children: e, className: n, type: r }) {
|
|
4082
4082
|
const o = t || hi(r);
|
|
4083
|
-
return /* @__PURE__ */ C.jsx(o, { className:
|
|
4083
|
+
return /* @__PURE__ */ C.jsx(o, { className: re(di[r], n), children: e });
|
|
4084
4084
|
}
|
|
4085
4085
|
const pi = "_primaryButton_18o48_106", et = {
|
|
4086
4086
|
primaryButton: pi,
|
|
@@ -4109,7 +4109,7 @@ const pi = "_primaryButton_18o48_106", et = {
|
|
|
4109
4109
|
qt,
|
|
4110
4110
|
{
|
|
4111
4111
|
...a,
|
|
4112
|
-
className:
|
|
4112
|
+
className: re(et.primaryButton, l, c, e, {
|
|
4113
4113
|
[et["primaryButton--loading"]]: r
|
|
4114
4114
|
}),
|
|
4115
4115
|
children: [
|
|
@@ -4131,21 +4131,22 @@ const pi = "_primaryButton_18o48_106", et = {
|
|
|
4131
4131
|
"root--border-radius": "_root--border-radius_1s5qq_116"
|
|
4132
4132
|
}, wi = "_root_15ekd_106", vi = {
|
|
4133
4133
|
root: wi
|
|
4134
|
-
}, bi = ({ children: t, className: e }) => /* @__PURE__ */ C.jsx("div", { className:
|
|
4134
|
+
}, bi = ({ children: t, className: e }) => /* @__PURE__ */ C.jsx("div", { className: re(vi.root, e), children: t }), ki = "_root_95whd_106", xi = "_title_95whd_114", yr = {
|
|
4135
4135
|
root: ki,
|
|
4136
4136
|
title: xi
|
|
4137
4137
|
}, yi = ({
|
|
4138
4138
|
as: t,
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4139
|
+
className: e,
|
|
4140
|
+
headline: n,
|
|
4141
|
+
leftElement: r,
|
|
4142
|
+
rightElement: o,
|
|
4143
|
+
type: s = "h3"
|
|
4143
4144
|
}) => {
|
|
4144
|
-
const
|
|
4145
|
-
return /* @__PURE__ */ C.jsxs("header", { className: yr.root, children: [
|
|
4146
|
-
|
|
4147
|
-
/* @__PURE__ */ C.jsx(ye, { type:
|
|
4148
|
-
|
|
4145
|
+
const a = Ke(r, [je, _r]), l = Ke(o, [_r]);
|
|
4146
|
+
return /* @__PURE__ */ C.jsxs("header", { className: re(yr.root, e), children: [
|
|
4147
|
+
a,
|
|
4148
|
+
/* @__PURE__ */ C.jsx(ye, { type: s, as: t, className: yr.title, children: n }),
|
|
4149
|
+
l
|
|
4149
4150
|
] });
|
|
4150
4151
|
}, G2 = ({
|
|
4151
4152
|
ariaLabel: t,
|
|
@@ -4161,7 +4162,7 @@ const pi = "_primaryButton_18o48_106", et = {
|
|
|
4161
4162
|
{
|
|
4162
4163
|
role: s,
|
|
4163
4164
|
"aria-label": t,
|
|
4164
|
-
className:
|
|
4165
|
+
className: re(
|
|
4165
4166
|
xr.root,
|
|
4166
4167
|
{
|
|
4167
4168
|
[xr["root--border-radius"]]: n
|
|
@@ -4194,7 +4195,7 @@ const pi = "_primaryButton_18o48_106", et = {
|
|
|
4194
4195
|
return /* @__PURE__ */ C.jsx(
|
|
4195
4196
|
"fieldset",
|
|
4196
4197
|
{
|
|
4197
|
-
className:
|
|
4198
|
+
className: re(Ci.fieldset, e),
|
|
4198
4199
|
disabled: n,
|
|
4199
4200
|
name: o,
|
|
4200
4201
|
form: r,
|
|
@@ -4358,7 +4359,7 @@ const pi = "_primaryButton_18o48_106", et = {
|
|
|
4358
4359
|
return a ? /* @__PURE__ */ C.jsx(
|
|
4359
4360
|
a,
|
|
4360
4361
|
{
|
|
4361
|
-
className:
|
|
4362
|
+
className: re(Ti.iconComponent, t),
|
|
4362
4363
|
title: o,
|
|
4363
4364
|
role: n,
|
|
4364
4365
|
width: r,
|
|
@@ -4374,20 +4375,21 @@ const pi = "_primaryButton_18o48_106", et = {
|
|
|
4374
4375
|
}, Eu = (t) => t === "small" ? "24" : "32", _r = ({
|
|
4375
4376
|
className: t,
|
|
4376
4377
|
icon: e,
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4378
|
+
iconClassName: n,
|
|
4379
|
+
size: r = "medium",
|
|
4380
|
+
variant: o,
|
|
4381
|
+
...s
|
|
4380
4382
|
}) => {
|
|
4381
|
-
const
|
|
4383
|
+
const a = Eu(r);
|
|
4382
4384
|
return /* @__PURE__ */ C.jsx(
|
|
4383
4385
|
qt,
|
|
4384
4386
|
{
|
|
4385
|
-
...
|
|
4386
|
-
className:
|
|
4387
|
-
[un[`iconButton--${
|
|
4388
|
-
[un[`iconButton--${
|
|
4387
|
+
...s,
|
|
4388
|
+
className: re(un.iconButton, t, {
|
|
4389
|
+
[un[`iconButton--${o}`]]: o,
|
|
4390
|
+
[un[`iconButton--${o}-${r}`]]: o
|
|
4389
4391
|
}),
|
|
4390
|
-
children: /* @__PURE__ */ C.jsx(je, { size:
|
|
4392
|
+
children: /* @__PURE__ */ C.jsx(je, { size: a, name: e, className: n })
|
|
4391
4393
|
}
|
|
4392
4394
|
);
|
|
4393
4395
|
}, _u = ({ alt: t, className: e, src: n }) => /* @__PURE__ */ C.jsx("img", { className: e, src: n, alt: t }), Ru = "_labelPill_q3hqu_106", Rr = {
|
|
@@ -4399,11 +4401,11 @@ const pi = "_primaryButton_18o48_106", et = {
|
|
|
4399
4401
|
small: "detail-upper-case"
|
|
4400
4402
|
}, Su = ({ className: t, label: e, size: n }) => {
|
|
4401
4403
|
const r = Rr[`labelPill--${n}`];
|
|
4402
|
-
return /* @__PURE__ */ C.jsx("span", { className:
|
|
4404
|
+
return /* @__PURE__ */ C.jsx("span", { className: re(Rr.labelPill, r, t), children: /* @__PURE__ */ C.jsx(ye, { type: Cu[n], children: e }) });
|
|
4403
4405
|
}, Tu = "_legend_1km52_106", $u = "_text_1km52_112", Cr = {
|
|
4404
4406
|
legend: Tu,
|
|
4405
4407
|
text: $u
|
|
4406
|
-
}, nf = ({ className: t, headline: e, text: n }) => /* @__PURE__ */ C.jsxs("legend", { className:
|
|
4408
|
+
}, nf = ({ className: t, headline: e, text: n }) => /* @__PURE__ */ C.jsxs("legend", { className: re(Cr.legend, t), children: [
|
|
4407
4409
|
/* @__PURE__ */ C.jsx(ye, { type: "h5", children: e }),
|
|
4408
4410
|
n && /* @__PURE__ */ C.jsx(ye, { className: Cr.text, type: "body-regular", as: "p", children: n })
|
|
4409
4411
|
] }), Mu = "_wrapper_cfopj_106", Pu = "_loadingSpinner_cfopj_113", Sr = {
|
|
@@ -5866,10 +5868,10 @@ const h2 = "_menuItem_1uvgo_106", p2 = "_highlightFrame_1uvgo_118", m2 = "_right
|
|
|
5866
5868
|
{
|
|
5867
5869
|
role: s,
|
|
5868
5870
|
onClick: r,
|
|
5869
|
-
className:
|
|
5871
|
+
className: re(nt.menuItem, {
|
|
5870
5872
|
[nt["menuItem--selected"]]: t
|
|
5871
5873
|
}),
|
|
5872
|
-
children: /* @__PURE__ */ C.jsxs("span", { className:
|
|
5874
|
+
children: /* @__PURE__ */ C.jsxs("span", { className: re(nt.highlightFrame), children: [
|
|
5873
5875
|
/* @__PURE__ */ C.jsx("span", { className: nt.leftIcon, children: n }),
|
|
5874
5876
|
/* @__PURE__ */ C.jsx(ye, { type: t ? "h5" : "body-large", as: "span", children: a }),
|
|
5875
5877
|
e && /* @__PURE__ */ C.jsx(Su, { label: e, size: "medium" }),
|
|
@@ -5881,7 +5883,7 @@ const h2 = "_menuItem_1uvgo_106", p2 = "_highlightFrame_1uvgo_118", m2 = "_right
|
|
|
5881
5883
|
bubble: v2,
|
|
5882
5884
|
"bubble--empty": "_bubble--empty_pnw1n_139"
|
|
5883
5885
|
}, b2 = 9, Ar = (t) => {
|
|
5884
|
-
const { ariaLabel: e, children: n, value: r } = t, o = r === void 0, s = o ? void 0 : Math.max(0, r).toString(), a =
|
|
5886
|
+
const { ariaLabel: e, children: n, value: r } = t, o = r === void 0, s = o ? void 0 : Math.max(0, r).toString(), a = re({
|
|
5885
5887
|
[fn["bubble--empty"]]: o,
|
|
5886
5888
|
[fn.bubble]: !0
|
|
5887
5889
|
});
|
|
@@ -5921,7 +5923,7 @@ function y2({
|
|
|
5921
5923
|
qt,
|
|
5922
5924
|
{
|
|
5923
5925
|
...a,
|
|
5924
|
-
className:
|
|
5926
|
+
className: re(dn.textButton, dn[`textButton--${t}`]),
|
|
5925
5927
|
disabled: e,
|
|
5926
5928
|
children: [
|
|
5927
5929
|
l,
|
|
@@ -5930,7 +5932,7 @@ function y2({
|
|
|
5930
5932
|
{
|
|
5931
5933
|
type: x2[o],
|
|
5932
5934
|
as: "span",
|
|
5933
|
-
className:
|
|
5935
|
+
className: re(dn.textButtonTypography),
|
|
5934
5936
|
children: s
|
|
5935
5937
|
}
|
|
5936
5938
|
),
|
|
@@ -5943,7 +5945,7 @@ const E2 = "_backdrop_1wj3v_106", _2 = {
|
|
|
5943
5945
|
backdrop: E2
|
|
5944
5946
|
}, Mo = ft.forwardRef((t, e) => /* @__PURE__ */ C.jsx("div", { ref: e, ...t, className: _2.backdrop }));
|
|
5945
5947
|
Mo.displayName = "Backdrop";
|
|
5946
|
-
const R2 = "
|
|
5948
|
+
const R2 = "_modal_13zj1_106", C2 = "_modalWrapper_13zj1_114", S2 = "_modalHeader_13zj1_119", T2 = "_modalFooter_13zj1_141", yt = {
|
|
5947
5949
|
modal: R2,
|
|
5948
5950
|
modalWrapper: C2,
|
|
5949
5951
|
modalHeader: S2,
|
|
@@ -6005,7 +6007,7 @@ const R2 = "_modal_f3s3y_106", C2 = "_modalWrapper_f3s3y_114", S2 = "_modalHeade
|
|
|
6005
6007
|
return /* @__PURE__ */ C.jsx("li", { className: rt.listItem, children: /* @__PURE__ */ C.jsxs(
|
|
6006
6008
|
qt,
|
|
6007
6009
|
{
|
|
6008
|
-
className:
|
|
6010
|
+
className: re(rt.navItem, {
|
|
6009
6011
|
[rt["navItem--active"]]: t
|
|
6010
6012
|
}),
|
|
6011
6013
|
onClick: a,
|
|
@@ -6027,14 +6029,14 @@ const R2 = "_modal_f3s3y_106", C2 = "_modalWrapper_f3s3y_114", S2 = "_modalHeade
|
|
|
6027
6029
|
return /* @__PURE__ */ C.jsx(
|
|
6028
6030
|
"div",
|
|
6029
6031
|
{
|
|
6030
|
-
className:
|
|
6032
|
+
className: re(Et.wrapper, t, {
|
|
6031
6033
|
[Et[`wrapper--${n}`]]: n
|
|
6032
6034
|
}),
|
|
6033
6035
|
"data-testid": "placeholder-thumbnail",
|
|
6034
6036
|
children: /* @__PURE__ */ C.jsx(
|
|
6035
6037
|
"div",
|
|
6036
6038
|
{
|
|
6037
|
-
className:
|
|
6039
|
+
className: re(Et.wrapper, {
|
|
6038
6040
|
[Et["wrapper--iconWrapper"]]: n === "large"
|
|
6039
6041
|
}),
|
|
6040
6042
|
children: r
|
|
@@ -6089,7 +6091,7 @@ const ff = ({ anchor: t, children: e, id: n, offset: r = "sm", open: o, placemen
|
|
|
6089
6091
|
name: o,
|
|
6090
6092
|
"aria-disabled": h,
|
|
6091
6093
|
"aria-label": r,
|
|
6092
|
-
className:
|
|
6094
|
+
className: re(Fe.textInput, b, m, {
|
|
6093
6095
|
[Fe["textInput--error"]]: p
|
|
6094
6096
|
}),
|
|
6095
6097
|
placeholder: ""
|
|
@@ -6132,7 +6134,7 @@ const ff = ({ anchor: t, children: e, id: n, offset: r = "sm", open: o, placemen
|
|
|
6132
6134
|
return /* @__PURE__ */ C.jsx(
|
|
6133
6135
|
"div",
|
|
6134
6136
|
{
|
|
6135
|
-
className:
|
|
6137
|
+
className: re(_t.root, _t[`root--${r}`], _t[`root--${n}`], {
|
|
6136
6138
|
[s]: e
|
|
6137
6139
|
}),
|
|
6138
6140
|
children: o && /* @__PURE__ */ C.jsx(_u, { src: o, alt: t })
|
|
@@ -6144,7 +6146,7 @@ const ff = ({ anchor: t, children: e, id: n, offset: r = "sm", open: o, placemen
|
|
|
6144
6146
|
focusVisible: D2
|
|
6145
6147
|
}, Z2 = (t) => {
|
|
6146
6148
|
const { checked: e, disabled: n, focusVisible: r, getInputProps: o } = ei(t), { className: s, id: a } = t;
|
|
6147
|
-
return /* @__PURE__ */ C.jsxs("span", { className:
|
|
6149
|
+
return /* @__PURE__ */ C.jsxs("span", { className: re(hn.switch, s), children: [
|
|
6148
6150
|
/* @__PURE__ */ C.jsx(
|
|
6149
6151
|
"input",
|
|
6150
6152
|
{
|
|
@@ -6160,7 +6162,7 @@ const ff = ({ anchor: t, children: e, id: n, offset: r = "sm", open: o, placemen
|
|
|
6160
6162
|
/* @__PURE__ */ C.jsx(
|
|
6161
6163
|
"span",
|
|
6162
6164
|
{
|
|
6163
|
-
className:
|
|
6165
|
+
className: re(hn.slider, {
|
|
6164
6166
|
[hn.focusVisible]: r
|
|
6165
6167
|
})
|
|
6166
6168
|
}
|
|
@@ -6184,7 +6186,7 @@ const ff = ({ anchor: t, children: e, id: n, offset: r = "sm", open: o, placemen
|
|
|
6184
6186
|
}) => /* @__PURE__ */ C.jsxs(
|
|
6185
6187
|
"label",
|
|
6186
6188
|
{
|
|
6187
|
-
className:
|
|
6189
|
+
className: re(qe.toggleInput, {
|
|
6188
6190
|
[qe["toggleInput--withBorder"]]: a,
|
|
6189
6191
|
[qe["toggleInput--checked"]]: t,
|
|
6190
6192
|
[qe["toggleInput--disabled"]]: n
|
package/lib/Button/Button.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { ButtonProps } from '../Button/Button.types';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
|
|
3
4
|
export interface ButtonPrimaryProps extends Omit<ButtonProps, 'children'> {
|
|
4
5
|
children?: React.ReactNode;
|
|
5
6
|
color?: 'highlight' | 'primary';
|
package/lib/Card/Card.d.ts
CHANGED
package/lib/Card/Card.types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { CardBodyProps } from './CardBody/CardBody.types';
|
|
3
1
|
import { CardHeaderProps } from './CardHeader/CardHeader.type';
|
|
2
|
+
import { CardBodyProps } from './CardBody/CardBody.types';
|
|
3
|
+
import { ReactElement } from 'react';
|
|
4
|
+
|
|
4
5
|
export interface CardProps {
|
|
5
6
|
ariaLabel?: string;
|
|
6
7
|
as?: Extract<keyof JSX.IntrinsicElements, 'section' | 'div'>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { CardHeaderProps } from './CardHeader.type';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
declare const CardHeader: ({ as, className, headline, leftElement, rightElement, type, }: CardHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
export default CardHeader;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { BaseButtonProps } from '../../BaseButton/BaseButton';
|
|
3
|
-
import { IconProps } from '../../Icon/Icon.types';
|
|
4
|
-
import { IconButtonProps } from '../../IconButton/IconButton.types';
|
|
5
1
|
import { TypographyProps } from '../../Typography/Typography.types';
|
|
2
|
+
import { IconButtonProps } from '../../IconButton/IconButton.types';
|
|
3
|
+
import { IconProps } from '../../Icon/Icon.types';
|
|
4
|
+
import { BaseButtonProps } from '../../BaseButton/BaseButton';
|
|
5
|
+
import { ReactElement } from 'react';
|
|
6
|
+
|
|
6
7
|
export type CardHeaderProps = {
|
|
7
8
|
as?: Exclude<TypographyProps['as'], 'h1' | 'p' | 'span'>;
|
|
9
|
+
className?: string;
|
|
8
10
|
headline: string;
|
|
9
11
|
leftElement?: ReactElement<IconProps | IconButtonProps>;
|
|
10
12
|
rightElement?: ReactElement<BaseButtonProps>;
|
package/lib/Divider/Divider.d.ts
CHANGED
package/lib/Form/Form.d.ts
CHANGED
package/lib/Form/Form.types.d.ts
CHANGED
package/lib/Icon/Icon.d.ts
CHANGED