@myelmut/design-system 0.1.51 → 0.1.52
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 +15 -11
- package/dist/index.es.js.map +1 -1
- package/dist/types/index.d.ts +3 -2
- package/package.json +1 -1
- package/src/components/Base/Text/Text.tsx +2 -0
- package/src/components/Base/Title/Title.tsx +1 -0
- package/src/components/Inputs/WizardTextInput/WizardTextInput.tsx +1 -1
- package/src/components/Navigation/WizardNavbar/WizardNavbar.tsx +9 -6
package/dist/index.es.js
CHANGED
|
@@ -426,19 +426,20 @@ const Te = () => {
|
|
|
426
426
|
] }),
|
|
427
427
|
/* @__PURE__ */ l(p, { size: "md", className: "leading-none", children: n("wizard.myPet") })
|
|
428
428
|
] });
|
|
429
|
-
}, kt = ({ variant: e = "default", totalSteps: t = 8, currentStep: a = 1, className: r
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
/* @__PURE__ */ l(
|
|
429
|
+
}, kt = ({ variant: e = "default", totalSteps: t = 8, currentStep: a = 1, className: r, backToPreviousStep: n = () => {
|
|
430
|
+
} }) => {
|
|
431
|
+
const { t: o } = Q("design");
|
|
432
|
+
return /* @__PURE__ */ d("nav", { className: A("fixed top-0 right-0 left-0 z-20", Je[e], r), children: [
|
|
433
|
+
/* @__PURE__ */ d("div", { className: A("container flex items-center", Ve[e]), children: [
|
|
434
|
+
/* @__PURE__ */ l(N, { onClick: n, as: "button", variant: "terciary", color: e === "payment" ? "light" : "dark", className: A(e === "default" && "hidden"), children: o("navigation.back") }),
|
|
435
|
+
/* @__PURE__ */ l("a", { href: "/", className: "mx-auto w-28", children: /* @__PURE__ */ l(L, { variant: e === "payment" ? "secondary" : "primary" }) }),
|
|
435
436
|
e != "default" && /* @__PURE__ */ l(We, { variant: e, totalSteps: t, currentStep: a })
|
|
436
437
|
] }),
|
|
437
|
-
e != "default" && /* @__PURE__ */ d("div", { className: "container
|
|
438
|
+
e != "default" && /* @__PURE__ */ d("div", { className: "container", children: [
|
|
438
439
|
/* @__PURE__ */ l(Ye, { variant: e, totalSteps: t, currentStep: a }),
|
|
439
440
|
e === "form" && /* @__PURE__ */ l(Ue, { totalSteps: t, currentStep: a, className: "mx-auto mt-6 w-full md:mt-3.5 md:w-3/4" })
|
|
440
441
|
] }),
|
|
441
|
-
e === "payment" && /* @__PURE__ */ l(W, { content:
|
|
442
|
+
e === "payment" && /* @__PURE__ */ l(W, { content: o("wizard.promotionBanner"), className: "top-full" })
|
|
442
443
|
] });
|
|
443
444
|
}, W = ({ content: e, className: t }) => /* @__PURE__ */ l("div", { "data-banner": !0, className: A("bg-lavender-blue-light text-claret-violet-dark absolute right-0 left-0 overflow-hidden py-2.5 transition-all duration-300", t), children: /* @__PURE__ */ d("div", { className: "max-md:animate-banner flex items-center justify-start leading-none max-lg:min-w-max max-lg:will-change-transform md:container md:mx-auto md:justify-center", children: [
|
|
444
445
|
/* @__PURE__ */ l(p, { size: "button", className: "max-lg:!text-sm-mobile max-lg:px-3 max-lg:whitespace-nowrap md:text-center", children: e }),
|
|
@@ -528,7 +529,8 @@ const X = {
|
|
|
528
529
|
components: {
|
|
529
530
|
br: /* @__PURE__ */ l("br", {}),
|
|
530
531
|
b: /* @__PURE__ */ l("b", {}),
|
|
531
|
-
i: /* @__PURE__ */ l("i", {})
|
|
532
|
+
i: /* @__PURE__ */ l("i", {}),
|
|
533
|
+
u: /* @__PURE__ */ l("u", {})
|
|
532
534
|
}
|
|
533
535
|
}
|
|
534
536
|
) : a });
|
|
@@ -540,7 +542,8 @@ const X = {
|
|
|
540
542
|
components: {
|
|
541
543
|
br: /* @__PURE__ */ l("br", {}),
|
|
542
544
|
b: /* @__PURE__ */ l("b", {}),
|
|
543
|
-
i: /* @__PURE__ */ l("i", {})
|
|
545
|
+
i: /* @__PURE__ */ l("i", {}),
|
|
546
|
+
u: /* @__PURE__ */ l("u", {})
|
|
544
547
|
}
|
|
545
548
|
}
|
|
546
549
|
) : a });
|
|
@@ -568,7 +571,8 @@ const X = {
|
|
|
568
571
|
br: /* @__PURE__ */ l("br", {}),
|
|
569
572
|
b: /* @__PURE__ */ l("b", {}),
|
|
570
573
|
i: /* @__PURE__ */ l("i", {}),
|
|
571
|
-
highlight: /* @__PURE__ */ l("span", { className: "text-lavender-blue-light italic" })
|
|
574
|
+
highlight: /* @__PURE__ */ l("span", { className: "text-lavender-blue-light italic" }),
|
|
575
|
+
u: /* @__PURE__ */ l("u", {})
|
|
572
576
|
}
|
|
573
577
|
}
|
|
574
578
|
) : r;
|