@ed.yakovich/component-library 0.0.17 → 0.0.19
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/components/Accordion/index.js +1 -1
- package/dist/components/Cart/index.js +13 -12
- package/dist/components/EquipmentSummary/index.js +1 -1
- package/dist/components/HeroBanner/index.js +1 -1
- package/dist/components/InfoBanner/index.js +1 -1
- package/dist/components/Nav/index.js +12 -8
- package/dist/components/OfferCards/index.js +1 -1
- package/dist/components/OfferCards/subComponents/OfferCard.js +29 -28
- package/dist/components/SaleBanner/index.js +18 -17
- package/dist/{index-CIJ0X8ia.js → index-C9Rf5U9q.js} +1670 -1668
- package/dist/{index-b30029d4-CYulIFrS.js → index-b30029d4-E1YxEHFH.js} +1 -1
- package/dist/link-DO_Jvm9n.js +685 -0
- package/dist/{prism-accordion.entry-BxWxJTzN.js → prism-accordion.entry-DeyFGNx-.js} +1 -1
- package/dist/{prism-avatar_2.entry-D13WJm8L.js → prism-avatar_2.entry-MLbdVrJg.js} +1 -1
- package/dist/{prism-badge.entry-DxUacM3U.js → prism-badge.entry-BG5y7O5U.js} +1 -1
- package/dist/{prism-banner.entry-C2PB-eYg.js → prism-banner.entry-DChrjpFH.js} +1 -1
- package/dist/{prism-breadcrumb.entry-Xs2uvtMJ.js → prism-breadcrumb.entry-1YzYlKen.js} +1 -1
- package/dist/{prism-button_2.entry-Bu7aTvL3.js → prism-button_2.entry-DO8IGIoS.js} +1 -1
- package/dist/{prism-card.entry-DN_z84zN.js → prism-card.entry-DQ6P4TZP.js} +1 -1
- package/dist/{prism-carousel.entry-R9W3QWAj.js → prism-carousel.entry-BA8zsHRW.js} +1 -1
- package/dist/{prism-checkbox-group.entry-D6r-q0Hm.js → prism-checkbox-group.entry-CP4-gghb.js} +1 -1
- package/dist/{prism-checkbox.entry-w99uqUBB.js → prism-checkbox.entry-CJCy8fvC.js} +2 -2
- package/dist/{prism-data-table.entry-Ckducvo-.js → prism-data-table.entry--0djw8ls.js} +1 -1
- package/dist/{prism-datepicker.entry-QpabfLme.js → prism-datepicker.entry-DPm7tpKB.js} +1 -1
- package/dist/{prism-form.entry-B0of8RQh.js → prism-form.entry-CS1zRoMt.js} +1 -1
- package/dist/{prism-grid.entry-CFnOi_Vc.js → prism-grid.entry-jcx2aMUm.js} +1 -1
- package/dist/{prism-header.entry-0LjtG822.js → prism-header.entry-CBSIpa0M.js} +1 -1
- package/dist/{prism-hero.entry-DVipQrOc.js → prism-hero.entry-B0CKL5y9.js} +1 -1
- package/dist/{prism-icon_2.entry-FQ8c7tJr.js → prism-icon_2.entry-Aja4QGUK.js} +1 -1
- package/dist/{prism-image.entry-BtjBPMeE.js → prism-image.entry-B--khr6E.js} +1 -1
- package/dist/{prism-input-file.entry-CXYV9xtO.js → prism-input-file.entry-i5qJkwEK.js} +2 -2
- package/dist/{prism-input-otp.entry-CXBN1WBi.js → prism-input-otp.entry-DXoARuzH.js} +1 -1
- package/dist/{prism-input-text.entry-D5yPqcBS.js → prism-input-text.entry-D4QQ-dYX.js} +2 -2
- package/dist/{prism-input-textarea.entry-6O7qdk_r.js → prism-input-textarea.entry-eeQHnhqC.js} +2 -2
- package/dist/{prism-layout.entry-CJcjgXky.js → prism-layout.entry-bfKqOEnU.js} +1 -1
- package/dist/{prism-lineitem.entry-BSBcpGKE.js → prism-lineitem.entry-YIRZPVe_.js} +1 -1
- package/dist/{prism-menu.entry-hxjFECbL.js → prism-menu.entry-BIlRCiaA.js} +1 -1
- package/dist/{prism-modal.entry-BIavEySL.js → prism-modal.entry-Kc-SpAR-.js} +1 -1
- package/dist/{prism-pagination.entry-cJjWcUeH.js → prism-pagination.entry-BCo9aMdq.js} +1 -1
- package/dist/{prism-popover.entry-EiL6rh8c.js → prism-popover.entry-LmDvzCiR.js} +1 -1
- package/dist/{prism-popper.entry-B3NAqQHK.js → prism-popper.entry-BqrcyTkE.js} +1 -1
- package/dist/{prism-progress.entry-DkyB0j-F.js → prism-progress.entry-29_ezvop.js} +1 -1
- package/dist/{prism-radio-group.entry-nR5BA0H-.js → prism-radio-group.entry-cL6AqjTk.js} +2 -2
- package/dist/{prism-radio.entry-2oHibUZp.js → prism-radio.entry-CM_vZFZA.js} +2 -2
- package/dist/{prism-select.entry-DaSGr0dP.js → prism-select.entry-B6A3gk7B.js} +2 -2
- package/dist/{prism-switch.entry-CiUr8IHK.js → prism-switch.entry-CtEfKB58.js} +2 -2
- package/dist/{prism-tab.entry-Db7WSxCT.js → prism-tab.entry-DIDUhFlk.js} +1 -1
- package/dist/{prism-tabs.entry-BSS5u08w.js → prism-tabs.entry-Cj3dW5_E.js} +1 -1
- package/dist/{prism-tooltip.entry-Dqu6PskB.js → prism-tooltip.entry-DEdY5eRd.js} +1 -1
- package/dist/{prism-typeahead.entry-BMyMjXSV.js → prism-typeahead.entry-D2XrvXaG.js} +1 -1
- package/package.json +5 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { c as B } from "../../index-
|
|
2
|
+
import { c as B } from "../../index-C9Rf5U9q.js";
|
|
3
3
|
import { useAccordionContext as F } from "./context/index.js";
|
|
4
4
|
const $ = (n) => {
|
|
5
5
|
const { children: a, isHidden: d, componentId: i = "", label: c = "", description: r = "", labelSecondary: s = "", onClick: t, tone: p = "", collapsed: b } = n, l = F(), C = l == null ? void 0 : l.isHidden, V = (l == null ? void 0 : l.label) || "", m = (l == null ? void 0 : l.description) || "", S = (l == null ? void 0 : l.labelSecondary) || "", k = (l == null ? void 0 : l.onClick) || "", u = (l == null ? void 0 : l.tone) || "", y = l == null ? void 0 : l.collapsed, H = () => ({
|
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { c as s } from "../../link-DO_Jvm9n.js";
|
|
3
|
+
import { P as d } from "../../index-C9Rf5U9q.js";
|
|
4
|
+
const b = (i) => {
|
|
5
|
+
const r = s(d), { backUrl: t, nextUrl: o } = i;
|
|
6
|
+
return /* @__PURE__ */ e("nav", { "data-component-id": "Cart", className: "mt-4 border-t-3 border-blue-500 border-solid @container/cart", children: /* @__PURE__ */ e("div", { className: "w-full flex justify-center @lg/cart:justify-end", children: /* @__PURE__ */ n("div", { className: "flex justify-center", children: [
|
|
6
7
|
/* @__PURE__ */ e("div", { className: "px-12 py-3 @lg/cart:border-l-3 border-blue-500 border-solid", children: /* @__PURE__ */ e(
|
|
7
|
-
|
|
8
|
+
r,
|
|
8
9
|
{
|
|
9
10
|
size: "xs",
|
|
10
11
|
display: "menu",
|
|
11
12
|
tone: "info",
|
|
12
13
|
type: "button",
|
|
13
|
-
disabled: !
|
|
14
|
-
|
|
14
|
+
disabled: !t,
|
|
15
|
+
to: t,
|
|
15
16
|
children: /* @__PURE__ */ e("strong", { children: "Back" })
|
|
16
17
|
}
|
|
17
18
|
) }),
|
|
18
19
|
/* @__PURE__ */ e("div", { className: "px-12 py-3 border-l-3 border-blue-500 border-solid", children: /* @__PURE__ */ e(
|
|
19
|
-
|
|
20
|
+
r,
|
|
20
21
|
{
|
|
21
22
|
size: "xs",
|
|
22
23
|
display: "menu",
|
|
23
24
|
tone: "info",
|
|
24
25
|
type: "button",
|
|
25
|
-
disabled: !
|
|
26
|
-
|
|
26
|
+
disabled: !o,
|
|
27
|
+
to: o,
|
|
27
28
|
children: /* @__PURE__ */ e("strong", { children: "Next" })
|
|
28
29
|
}
|
|
29
30
|
) })
|
|
30
31
|
] }) }) });
|
|
31
32
|
};
|
|
32
33
|
export {
|
|
33
|
-
|
|
34
|
+
b as Cart
|
|
34
35
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { c as P, b as S, a as j, d as E } from "../../index-
|
|
2
|
+
import { c as P, b as S, a as j, d as E } from "../../index-C9Rf5U9q.js";
|
|
3
3
|
import { useEquipmentSummaryContext as $ } from "./context/index.js";
|
|
4
4
|
const I = (m) => {
|
|
5
5
|
const {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { a as c } from "../../index-
|
|
2
|
+
import { a as c } from "../../index-C9Rf5U9q.js";
|
|
3
3
|
import { useHeroBannerContext as j } from "./context/index.js";
|
|
4
4
|
const z = (h) => {
|
|
5
5
|
const { isHidden: m, componentId: g = "", icon: p = "", heading: x = "", description: b = "", listData: u = [] } = h, e = j(), V = e == null ? void 0 : e.isHidden, f = (e == null ? void 0 : e.icon) || "", H = (e == null ? void 0 : e.heading) || "", C = (e == null ? void 0 : e.description) || "", r = (e == null ? void 0 : e.listData) || [], N = () => ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as V } from "react/jsx-runtime";
|
|
2
|
-
import { a as u } from "../../index-
|
|
2
|
+
import { a as u } from "../../index-C9Rf5U9q.js";
|
|
3
3
|
import { useInfoBannerContext as N } from "./context/index.js";
|
|
4
4
|
const I = (t) => {
|
|
5
5
|
const { isHidden: a, componentId: d = "", heading: r = "", description: c = "", icon: l = "" } = t, n = N(), m = n == null ? void 0 : n.isHidden, h = (n == null ? void 0 : n.icon) || "", p = (n == null ? void 0 : n.heading) || "", g = (n == null ? void 0 : n.description) || "", f = () => ({
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { c as a } from "../../link-DO_Jvm9n.js";
|
|
3
|
+
import { P as c } from "../../index-C9Rf5U9q.js";
|
|
4
|
+
const p = (r) => {
|
|
5
|
+
const o = a(c), { pages: n } = r;
|
|
6
|
+
return /* @__PURE__ */ e("nav", { "data-component-id": "Nav", className: "p-6", children: /* @__PURE__ */ e("div", { className: "flex justify-center gap-4", children: n.map(({ name: t, url: s }, i) => /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
6
7
|
o,
|
|
7
8
|
{
|
|
8
9
|
size: "xs",
|
|
9
10
|
display: "menu",
|
|
10
11
|
tone: "info",
|
|
11
12
|
type: "button",
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
to: s,
|
|
14
|
+
activeProps: {
|
|
15
|
+
className: "font-bold text-blue-500 border-blue-500 border-b-2"
|
|
16
|
+
},
|
|
17
|
+
children: /* @__PURE__ */ e("strong", { children: t })
|
|
14
18
|
}
|
|
15
|
-
) }, `${
|
|
19
|
+
) }, `${t}-${i}`)) }) });
|
|
16
20
|
};
|
|
17
21
|
export {
|
|
18
|
-
|
|
22
|
+
p as Nav
|
|
19
23
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { a as N, b as $ } from "../../index-
|
|
2
|
+
import { a as N, b as $ } from "../../index-C9Rf5U9q.js";
|
|
3
3
|
import b from "./subComponents/OfferCard.js";
|
|
4
4
|
import { useOfferCardsContext as j } from "./context/index.js";
|
|
5
5
|
const z = (o) => {
|
|
@@ -1,55 +1,56 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { b as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { b as v, a as h, P } from "../../../index-C9Rf5U9q.js";
|
|
3
|
+
import { c as k } from "../../../link-DO_Jvm9n.js";
|
|
4
|
+
const w = (f) => {
|
|
5
|
+
const p = k(P), {
|
|
6
|
+
isLoading: x = !1,
|
|
6
7
|
id: s = "",
|
|
7
8
|
icon: n = "",
|
|
8
|
-
heading:
|
|
9
|
-
description:
|
|
9
|
+
heading: i = "",
|
|
10
|
+
description: a = "",
|
|
10
11
|
iconList: r = [],
|
|
11
|
-
price:
|
|
12
|
-
buttonLabel:
|
|
12
|
+
price: o = "",
|
|
13
|
+
buttonLabel: d = "",
|
|
13
14
|
buttonHref: c = "",
|
|
14
|
-
buttonDisabled:
|
|
15
|
+
buttonDisabled: u,
|
|
15
16
|
perMonth: b = !1,
|
|
16
|
-
handleOfferCardAction:
|
|
17
|
+
handleOfferCardAction: g = () => {
|
|
17
18
|
}
|
|
18
19
|
} = f;
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ t(
|
|
20
21
|
"div",
|
|
21
22
|
{
|
|
22
23
|
"data-component-id": `OfferCard--${s}`,
|
|
23
24
|
className: "border-3 border-blue-500 border-solid rounded-lg flex flex-col bg-white h-full text-center relative",
|
|
24
25
|
children: [
|
|
25
|
-
|
|
26
|
-
/* @__PURE__ */
|
|
26
|
+
x && /* @__PURE__ */ e("div", { className: "absolute top-2 left-2", children: /* @__PURE__ */ e(v, { display: "inline", type: "spinner" }) }),
|
|
27
|
+
/* @__PURE__ */ t("div", { className: "grow p-4", children: [
|
|
27
28
|
n && /* @__PURE__ */ e(h, { name: n, tone: "info", theme: "outline", size: "md" }),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
/* @__PURE__ */ e("span", { className: "text-5xl", children: /* @__PURE__ */
|
|
29
|
+
i && /* @__PURE__ */ e("h3", { className: "text-lg", children: /* @__PURE__ */ e("strong", { children: i }) }),
|
|
30
|
+
a && /* @__PURE__ */ e("p", { className: "text-xs", children: a }),
|
|
31
|
+
o && /* @__PURE__ */ t("p", { className: "mt-2", children: [
|
|
32
|
+
/* @__PURE__ */ e("span", { className: "text-5xl", children: /* @__PURE__ */ t("strong", { children: [
|
|
32
33
|
"$",
|
|
33
|
-
Math.floor(
|
|
34
|
+
Math.floor(o)
|
|
34
35
|
] }) }),
|
|
35
36
|
b && /* @__PURE__ */ e("span", { className: "text-lg", children: "/mo" })
|
|
36
37
|
] }),
|
|
37
|
-
r.length > 0 && /* @__PURE__ */ e("ul", { className: "mt-4 list-disc text-left", children: r.map(({ icon:
|
|
38
|
-
|
|
38
|
+
r.length > 0 && /* @__PURE__ */ e("ul", { className: "mt-4 list-disc text-left", children: r.map(({ icon: l, description: m }, N) => /* @__PURE__ */ t("li", { className: "flex gap-2", children: [
|
|
39
|
+
l && /* @__PURE__ */ e(h, { name: l, tone: "info", theme: "outline", size: "xs" }),
|
|
39
40
|
m && /* @__PURE__ */ e("p", { className: "text-xs", children: m })
|
|
40
|
-
] }, `${
|
|
41
|
+
] }, `${l}-${N}`)) })
|
|
41
42
|
] }),
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
d && /* @__PURE__ */ e("div", { className: "mt-8 bg-blue-500 p-2", children: /* @__PURE__ */ e(
|
|
44
|
+
p,
|
|
44
45
|
{
|
|
45
46
|
size: "xs",
|
|
46
47
|
display: "link",
|
|
47
48
|
tone: "info",
|
|
48
49
|
type: "button",
|
|
49
50
|
className: "text-white",
|
|
50
|
-
disabled:
|
|
51
|
-
...c ? {
|
|
52
|
-
children:
|
|
51
|
+
disabled: u,
|
|
52
|
+
...c ? { to: c } : { onClick: () => g(s) },
|
|
53
|
+
children: d
|
|
53
54
|
}
|
|
54
55
|
) })
|
|
55
56
|
]
|
|
@@ -57,5 +58,5 @@ const P = (f) => {
|
|
|
57
58
|
);
|
|
58
59
|
};
|
|
59
60
|
export {
|
|
60
|
-
|
|
61
|
+
w as default
|
|
61
62
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { jsx as l, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { P as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
import { P as S } from "../../index-C9Rf5U9q.js";
|
|
3
|
+
import { c as $ } from "../../link-DO_Jvm9n.js";
|
|
4
|
+
import { useSaleBannerContext as j } from "./context/index.js";
|
|
5
|
+
const q = (c) => {
|
|
6
|
+
const m = $(S), { isHidden: x, componentId: h = "", heading: p = "", description: b = "", disclaimer: u = "", normalPrice: g = 0, salePrice: V = 0, linkText: N = "", linkUrl: P = "" } = c, e = j(), k = e == null ? void 0 : e.isHidden, f = (e == null ? void 0 : e.heading) || "", v = (e == null ? void 0 : e.description) || "", C = (e == null ? void 0 : e.disclaimer) || "", w = (e == null ? void 0 : e.normalPrice) || "", B = (e == null ? void 0 : e.salePrice) || "", H = (e == null ? void 0 : e.linkText) || "", T = (e == null ? void 0 : e.linkUrl) || "", U = () => ({
|
|
7
|
+
isHiddenVal: k || x,
|
|
8
|
+
headingVal: f || p,
|
|
9
|
+
descriptionVal: v || b,
|
|
10
|
+
disclaimerVal: C || u,
|
|
11
|
+
normalPriceVal: w || g,
|
|
12
|
+
salePriceVal: B || V,
|
|
13
|
+
linkTextVal: H || N,
|
|
14
|
+
linkUrlVal: T || P
|
|
15
|
+
}), { isHiddenVal: y, headingVal: a, descriptionVal: i, disclaimerVal: r, normalPriceVal: s, salePriceVal: d, linkTextVal: t, linkUrlVal: o } = U();
|
|
15
16
|
return y ? null : /* @__PURE__ */ l(
|
|
16
17
|
"div",
|
|
17
18
|
{
|
|
@@ -36,15 +37,15 @@ const F = (o) => {
|
|
|
36
37
|
/* @__PURE__ */ l("span", { className: "text-xl", children: /* @__PURE__ */ l("strong", { children: "/mo" }) })
|
|
37
38
|
] })
|
|
38
39
|
] }) }),
|
|
39
|
-
t &&
|
|
40
|
-
|
|
40
|
+
t && o && /* @__PURE__ */ l("div", { className: "text-center bg-blue-500 rounded-full w-[200px] mx-auto px-2", children: /* @__PURE__ */ l(
|
|
41
|
+
m,
|
|
41
42
|
{
|
|
42
43
|
size: "xs",
|
|
43
44
|
display: "fill",
|
|
44
45
|
tone: "info",
|
|
45
46
|
type: "button",
|
|
46
47
|
className: "text-white font-bold",
|
|
47
|
-
|
|
48
|
+
to: o,
|
|
48
49
|
children: t
|
|
49
50
|
}
|
|
50
51
|
) }),
|
|
@@ -54,5 +55,5 @@ const F = (o) => {
|
|
|
54
55
|
);
|
|
55
56
|
};
|
|
56
57
|
export {
|
|
57
|
-
|
|
58
|
+
q as SaleBanner
|
|
58
59
|
};
|