@myelmut/design-system 0.1.43 → 0.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +10 -8
- package/dist/index.es.js.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -718,15 +718,16 @@ const _t = ({ videoId: e, alt: t, className: a, placeholderImageMobile: r, hasSo
|
|
|
718
718
|
}, ee = {
|
|
719
719
|
vertical: "absolute right-0 bottom-0 left-0 z-1 max-h-34 w-full",
|
|
720
720
|
horizontal: "max-md:h-full max-md:w-19 md:w-full"
|
|
721
|
-
}, Ut = ({ label: e, layout: t = "vertical", illustration: a, disabled: r, className: n = "", illustrationClassName: o = "",
|
|
722
|
-
const
|
|
721
|
+
}, Ut = ({ label: e, layout: t = "vertical", illustration: a, disabled: r, className: n = "", illustrationClassName: o = "", isActive: c = !1, ...m }) => {
|
|
722
|
+
const g = s(
|
|
723
723
|
"relative md:px-5 md:py-6 flex md:flex-col items-center overflow-hidden rounded-input bg-beige-dark text-claret-violet-dark transition-all duration-300 focus:outline-none cursor-pointer disabled:cursor-not-allowed disabled:pointer-events-none disabled:opacity-50",
|
|
724
724
|
"after:absolute after:content-[''] after:border after:rounded-input after:border-beige-ultra-dark after:inset-0 after:z-0 hover:after:border-claret-violet-dark after:transition-colors after:duration-300 focus-visible:after:border-claret-violet-dark",
|
|
725
725
|
"md:rounded-illustrated-card-button md:after:rounded-illustrated-card-button md:w-51.25 md:aspect-4/5",
|
|
726
726
|
o1[t],
|
|
727
|
+
c && "after:border-claret-violet-dark",
|
|
727
728
|
n
|
|
728
729
|
);
|
|
729
|
-
return /* @__PURE__ */ d("button", { className:
|
|
730
|
+
return /* @__PURE__ */ d("button", { className: g, disabled: r, ...m, tabIndex: r ? -1 : 0, children: [
|
|
730
731
|
/* @__PURE__ */ l("span", { className: "flex flex-col gap-2.5", children: /* @__PURE__ */ l("span", { className: "text-sm-mobile w-full font-semibold md:text-xl", children: e }) }),
|
|
731
732
|
/* @__PURE__ */ l("div", { className: s("md:absolute md:right-0 md:bottom-0 md:left-0 md:z-1 md:h-34 md:w-full", ee[t]), children: /* @__PURE__ */ l("img", { src: a, alt: e, className: s("w-full origin-top object-contain md:absolute md:top-0 md:right-0 md:left-0 md:z-1 md:scale-120", ee[t], o), loading: "lazy", decoding: "async" }) })
|
|
732
733
|
] });
|
|
@@ -758,13 +759,13 @@ const _t = ({ videoId: e, alt: t, className: a, placeholderImageMobile: r, hasSo
|
|
|
758
759
|
type: "button",
|
|
759
760
|
disabled: r,
|
|
760
761
|
className: s(
|
|
761
|
-
"focus-visible:outline-claret-violet-dark relative z-1 flex h-full flex-1 cursor-pointer items-center gap-3 rounded-full p-1 transition-colors duration-600 ease-in-out focus-visible:outline-2 md:gap-6 md:
|
|
762
|
+
"focus-visible:outline-claret-violet-dark relative z-1 flex h-full flex-1 cursor-pointer items-center gap-3 rounded-full p-1 transition-colors duration-600 ease-in-out focus-visible:outline-2 md:gap-6 md:py-1.5",
|
|
762
763
|
p === 0 ? "pe-6 md:pe-11" : "flex-row-reverse ps-6 md:ps-11",
|
|
763
764
|
a === u.value && "text-beige-dark"
|
|
764
765
|
),
|
|
765
766
|
onClick: () => c(u.value),
|
|
766
767
|
children: [
|
|
767
|
-
/* @__PURE__ */ l("span", { className: "bg-lavender-blue-dark block h-9 w-9
|
|
768
|
+
/* @__PURE__ */ l("span", { className: "bg-lavender-blue-dark block h-9 w-9 shrink-0 overflow-hidden rounded-full md:h-17 md:w-17", children: u.image && /* @__PURE__ */ l("img", { src: u.image, alt: u.label, className: "h-full w-full object-cover", loading: "lazy", decoding: "async" }) }),
|
|
768
769
|
/* @__PURE__ */ l(C, { size: "button", variant: "span", className: s(h, u.labelMobile && "hidden md:block"), children: u.label }),
|
|
769
770
|
/* @__PURE__ */ l(C, { size: "button", variant: "span", className: s(h, u.labelMobile && "block md:hidden"), children: u.labelMobile })
|
|
770
771
|
]
|
|
@@ -839,7 +840,7 @@ const _t = ({ videoId: e, alt: t, className: a, placeholderImageMobile: r, hasSo
|
|
|
839
840
|
}
|
|
840
841
|
),
|
|
841
842
|
/* @__PURE__ */ l(Q, { name: n, options: A, value: u, onChange: B, disabled: g, isOpen: y, className: s("border-0 pe-9.5", y && "h-full", b && "pt-0") }),
|
|
842
|
-
/* @__PURE__ */ l(me, { className: s("absolute top-4.5 right-3 z-20 w-3 transition-transform duration-300", y && "rotate-180", g && "opacity-40") })
|
|
843
|
+
/* @__PURE__ */ l(me, { onClick: () => L(!y), className: s("pointer-cursor absolute top-4.5 right-3 z-20 w-3 transition-transform duration-300", y && "rotate-180", g && "opacity-40") })
|
|
843
844
|
] })
|
|
844
845
|
] }),
|
|
845
846
|
/* @__PURE__ */ l(T, { id: `${t}-error`, hasError: m, message: c })
|
|
@@ -863,8 +864,9 @@ const _t = ({ videoId: e, alt: t, className: a, placeholderImageMobile: r, hasSo
|
|
|
863
864
|
},
|
|
864
865
|
[b]
|
|
865
866
|
), x = a ? `${e}-option-${a}` : void 0, E = s(
|
|
866
|
-
"rounded-input border-claret-violet-dark transition-duration-3000 will-change-height
|
|
867
|
+
"rounded-input border-claret-violet-dark transition-duration-3000 will-change-height will-change-max-height w-full overflow-auto border bg-white px-3 py-2.5 opacity-0 transition-all md:min-w-max",
|
|
867
868
|
g && "max-h-33 h-auto opacity-100",
|
|
869
|
+
!g && "max-h-0 h-0",
|
|
868
870
|
o
|
|
869
871
|
);
|
|
870
872
|
return /* @__PURE__ */ d("ul", { tabIndex: -1, "aria-activedescendant": x, role: "listbox", className: E, ref: u, children: [
|
|
@@ -1560,8 +1562,8 @@ const b2 = ({ content: e, className: t }) => /* @__PURE__ */ d("div", { classNam
|
|
|
1560
1562
|
large: "p-6 h-80 md:h-112.5 justify-between rounded-card w-60"
|
|
1561
1563
|
}, y2 = ({ variant: e = "primary", size: t = "large", value: a, metric: r, description: n, className: o }) => /* @__PURE__ */ d("div", { className: s("border-claret-violet-dark flex flex-col border", Lt[e], Et[t], o), children: [
|
|
1562
1564
|
/* @__PURE__ */ d("p", { className: "leading-none", children: [
|
|
1563
|
-
/* @__PURE__ */ l(I, { size: "display-lg", className: "hidden md:inline", children: a }),
|
|
1564
1565
|
/* @__PURE__ */ l(I, { size: "display-xl", className: "inline md:hidden", children: a }),
|
|
1566
|
+
/* @__PURE__ */ l(I, { size: "display-lg", className: "hidden md:inline", children: a }),
|
|
1565
1567
|
/* @__PURE__ */ l(I, { size: "display-md", children: r })
|
|
1566
1568
|
] }),
|
|
1567
1569
|
/* @__PURE__ */ l(C, { size: "md", className: "hidden md:block", children: n }),
|