@ed.yakovich/component-library 0.0.19 → 0.0.21
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 +12 -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 +8 -8
- package/dist/components/OfferCards/index.js +1 -1
- package/dist/components/OfferCards/subComponents/OfferCard.js +17 -17
- package/dist/components/SaleBanner/index.js +15 -15
- package/dist/{index-C9Rf5U9q.js → index-BFRMsLf2.js} +149 -149
- package/dist/{index-b30029d4-E1YxEHFH.js → index-b30029d4-DpDVA7ky.js} +1 -1
- package/dist/lib/components/Cart/index.d.ts +2 -3
- package/dist/lib/components/Grid/index.d.ts +2 -3
- package/dist/lib/components/Nav/index.d.ts +2 -3
- package/dist/lib/components/StickyFooter/index.d.ts +2 -3
- package/dist/lib/main.d.ts +15 -4
- package/dist/{link-DO_Jvm9n.js → link-BXMBAsbM.js} +1 -1
- package/dist/main.js +32 -32
- package/dist/{prism-accordion.entry-DeyFGNx-.js → prism-accordion.entry-BVRl8Q0j.js} +1 -1
- package/dist/{prism-avatar_2.entry-MLbdVrJg.js → prism-avatar_2.entry-BNjKFcFi.js} +1 -1
- package/dist/{prism-badge.entry-BG5y7O5U.js → prism-badge.entry-SyFxIaku.js} +1 -1
- package/dist/{prism-banner.entry-DChrjpFH.js → prism-banner.entry-ChrmZFSz.js} +1 -1
- package/dist/{prism-breadcrumb.entry-1YzYlKen.js → prism-breadcrumb.entry-2tduUJeu.js} +1 -1
- package/dist/{prism-button_2.entry-DO8IGIoS.js → prism-button_2.entry-DL5BpxqW.js} +1 -1
- package/dist/{prism-card.entry-DQ6P4TZP.js → prism-card.entry-CsRbRVqr.js} +1 -1
- package/dist/{prism-carousel.entry-BA8zsHRW.js → prism-carousel.entry-DDW-POx8.js} +1 -1
- package/dist/{prism-checkbox-group.entry-CP4-gghb.js → prism-checkbox-group.entry-4USTd7l6.js} +1 -1
- package/dist/{prism-checkbox.entry-CJCy8fvC.js → prism-checkbox.entry-sdYY1BUk.js} +2 -2
- package/dist/{prism-data-table.entry--0djw8ls.js → prism-data-table.entry-4G2REPdT.js} +1 -1
- package/dist/{prism-datepicker.entry-DPm7tpKB.js → prism-datepicker.entry-DGYkPQJp.js} +1 -1
- package/dist/{prism-form.entry-CS1zRoMt.js → prism-form.entry-Pej_8xFZ.js} +1 -1
- package/dist/{prism-grid.entry-jcx2aMUm.js → prism-grid.entry-DvycMc9K.js} +1 -1
- package/dist/{prism-header.entry-CBSIpa0M.js → prism-header.entry-BVlQclP0.js} +1 -1
- package/dist/{prism-hero.entry-B0CKL5y9.js → prism-hero.entry-Bu8cIP4H.js} +1 -1
- package/dist/{prism-icon_2.entry-Aja4QGUK.js → prism-icon_2.entry-xl7BIY5w.js} +1 -1
- package/dist/{prism-image.entry-B--khr6E.js → prism-image.entry-DArtUvfr.js} +1 -1
- package/dist/{prism-input-file.entry-i5qJkwEK.js → prism-input-file.entry-kWNjRSim.js} +2 -2
- package/dist/{prism-input-otp.entry-DXoARuzH.js → prism-input-otp.entry-C1yDqH2L.js} +1 -1
- package/dist/{prism-input-text.entry-D4QQ-dYX.js → prism-input-text.entry-CeJ_hi57.js} +2 -2
- package/dist/{prism-input-textarea.entry-eeQHnhqC.js → prism-input-textarea.entry-07Gkw_om.js} +2 -2
- package/dist/{prism-layout.entry-bfKqOEnU.js → prism-layout.entry-DpFWLImJ.js} +1 -1
- package/dist/{prism-lineitem.entry-YIRZPVe_.js → prism-lineitem.entry-CXqGUqDX.js} +1 -1
- package/dist/{prism-menu.entry-BIlRCiaA.js → prism-menu.entry-pb69ctae.js} +1 -1
- package/dist/{prism-modal.entry-Kc-SpAR-.js → prism-modal.entry-DA-d2hd0.js} +1 -1
- package/dist/{prism-pagination.entry-BCo9aMdq.js → prism-pagination.entry-BIYCWIZp.js} +1 -1
- package/dist/{prism-popover.entry-LmDvzCiR.js → prism-popover.entry-BGqKxr8V.js} +1 -1
- package/dist/{prism-popper.entry-BqrcyTkE.js → prism-popper.entry-B3NOeRCH.js} +1 -1
- package/dist/{prism-progress.entry-29_ezvop.js → prism-progress.entry-Dj47iuDE.js} +1 -1
- package/dist/{prism-radio-group.entry-cL6AqjTk.js → prism-radio-group.entry-DgCYeCt_.js} +2 -2
- package/dist/{prism-radio.entry-CM_vZFZA.js → prism-radio.entry-DI1RjO2f.js} +2 -2
- package/dist/{prism-select.entry-B6A3gk7B.js → prism-select.entry-DzvTCVjF.js} +2 -2
- package/dist/{prism-switch.entry-CtEfKB58.js → prism-switch.entry-Bf75hTl1.js} +2 -2
- package/dist/{prism-tab.entry-DIDUhFlk.js → prism-tab.entry-D0A121WH.js} +1 -1
- package/dist/{prism-tabs.entry-Cj3dW5_E.js → prism-tabs.entry-zHeCT0FG.js} +1 -1
- package/dist/{prism-tooltip.entry-DEdY5eRd.js → prism-tooltip.entry-BnvohobY.js} +1 -1
- package/dist/{prism-typeahead.entry-D2XrvXaG.js → prism-typeahead.entry-Dod3FHf2.js} +1 -1
- package/package.json +1 -1
|
@@ -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-BFRMsLf2.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,30 +1,30 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { c as s } from "../../link-
|
|
3
|
-
import { P as
|
|
4
|
-
const b = (
|
|
5
|
-
const
|
|
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__ */
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { c as s } from "../../link-BXMBAsbM.js";
|
|
3
|
+
import { P as n } from "../../index-BFRMsLf2.js";
|
|
4
|
+
const o = typeof window < "u" ? s(n) : n, b = (d) => {
|
|
5
|
+
const { backUrl: r, nextUrl: t } = d;
|
|
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__ */ i("div", { className: "flex justify-center", children: [
|
|
7
7
|
/* @__PURE__ */ e("div", { className: "px-12 py-3 @lg/cart:border-l-3 border-blue-500 border-solid", children: /* @__PURE__ */ e(
|
|
8
|
-
|
|
8
|
+
o,
|
|
9
9
|
{
|
|
10
10
|
size: "xs",
|
|
11
11
|
display: "menu",
|
|
12
12
|
tone: "info",
|
|
13
13
|
type: "button",
|
|
14
|
-
disabled: !
|
|
15
|
-
to:
|
|
14
|
+
disabled: !r,
|
|
15
|
+
to: r,
|
|
16
16
|
children: /* @__PURE__ */ e("strong", { children: "Back" })
|
|
17
17
|
}
|
|
18
18
|
) }),
|
|
19
19
|
/* @__PURE__ */ e("div", { className: "px-12 py-3 border-l-3 border-blue-500 border-solid", children: /* @__PURE__ */ e(
|
|
20
|
-
|
|
20
|
+
o,
|
|
21
21
|
{
|
|
22
22
|
size: "xs",
|
|
23
23
|
display: "menu",
|
|
24
24
|
tone: "info",
|
|
25
25
|
type: "button",
|
|
26
|
-
disabled: !
|
|
27
|
-
to:
|
|
26
|
+
disabled: !t,
|
|
27
|
+
to: t,
|
|
28
28
|
children: /* @__PURE__ */ e("strong", { children: "Next" })
|
|
29
29
|
}
|
|
30
30
|
) })
|
|
@@ -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-BFRMsLf2.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-BFRMsLf2.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-BFRMsLf2.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,22 +1,22 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { c as a } from "../../link-
|
|
3
|
-
import { P as
|
|
4
|
-
const p = (
|
|
5
|
-
const
|
|
6
|
-
return /* @__PURE__ */ e("nav", { "data-component-id": "Nav", className: "p-6", children: /* @__PURE__ */ e("div", { className: "flex justify-center gap-4", children:
|
|
7
|
-
|
|
2
|
+
import { c as a } from "../../link-BXMBAsbM.js";
|
|
3
|
+
import { P as n } from "../../index-BFRMsLf2.js";
|
|
4
|
+
const d = typeof window < "u" ? a(n) : n, p = (o) => {
|
|
5
|
+
const { pages: r } = o;
|
|
6
|
+
return /* @__PURE__ */ e("nav", { "data-component-id": "Nav", className: "p-6", children: /* @__PURE__ */ e("div", { className: "flex justify-center gap-4", children: r.map(({ name: t, url: i }, s) => /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
7
|
+
d,
|
|
8
8
|
{
|
|
9
9
|
size: "xs",
|
|
10
10
|
display: "menu",
|
|
11
11
|
tone: "info",
|
|
12
12
|
type: "button",
|
|
13
|
-
to:
|
|
13
|
+
to: i,
|
|
14
14
|
activeProps: {
|
|
15
15
|
className: "font-bold text-blue-500 border-blue-500 border-b-2"
|
|
16
16
|
},
|
|
17
17
|
children: /* @__PURE__ */ e("strong", { children: t })
|
|
18
18
|
}
|
|
19
|
-
) }, `${t}-${
|
|
19
|
+
) }, `${t}-${s}`)) }) });
|
|
20
20
|
};
|
|
21
21
|
export {
|
|
22
22
|
p as Nav
|
|
@@ -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-BFRMsLf2.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,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { b as v, a as
|
|
3
|
-
import { c as
|
|
4
|
-
const w = (
|
|
5
|
-
const
|
|
2
|
+
import { P as h, b as v, a as f } from "../../../index-BFRMsLf2.js";
|
|
3
|
+
import { c as w } from "../../../link-BXMBAsbM.js";
|
|
4
|
+
const y = typeof window < "u" ? w(h) : h, $ = (p) => {
|
|
5
|
+
const {
|
|
6
6
|
isLoading: x = !1,
|
|
7
|
-
id:
|
|
8
|
-
icon:
|
|
9
|
-
heading:
|
|
7
|
+
id: l = "",
|
|
8
|
+
icon: i = "",
|
|
9
|
+
heading: s = "",
|
|
10
10
|
description: a = "",
|
|
11
11
|
iconList: r = [],
|
|
12
12
|
price: o = "",
|
|
@@ -16,17 +16,17 @@ const w = (f) => {
|
|
|
16
16
|
perMonth: b = !1,
|
|
17
17
|
handleOfferCardAction: g = () => {
|
|
18
18
|
}
|
|
19
|
-
} =
|
|
19
|
+
} = p;
|
|
20
20
|
return /* @__PURE__ */ t(
|
|
21
21
|
"div",
|
|
22
22
|
{
|
|
23
|
-
"data-component-id": `OfferCard--${
|
|
23
|
+
"data-component-id": `OfferCard--${l}`,
|
|
24
24
|
className: "border-3 border-blue-500 border-solid rounded-lg flex flex-col bg-white h-full text-center relative",
|
|
25
25
|
children: [
|
|
26
26
|
x && /* @__PURE__ */ e("div", { className: "absolute top-2 left-2", children: /* @__PURE__ */ e(v, { display: "inline", type: "spinner" }) }),
|
|
27
27
|
/* @__PURE__ */ t("div", { className: "grow p-4", children: [
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
i && /* @__PURE__ */ e(f, { name: i, tone: "info", theme: "outline", size: "md" }),
|
|
29
|
+
s && /* @__PURE__ */ e("h3", { className: "text-lg", children: /* @__PURE__ */ e("strong", { children: s }) }),
|
|
30
30
|
a && /* @__PURE__ */ e("p", { className: "text-xs", children: a }),
|
|
31
31
|
o && /* @__PURE__ */ t("p", { className: "mt-2", children: [
|
|
32
32
|
/* @__PURE__ */ e("span", { className: "text-5xl", children: /* @__PURE__ */ t("strong", { children: [
|
|
@@ -35,13 +35,13 @@ const w = (f) => {
|
|
|
35
35
|
] }) }),
|
|
36
36
|
b && /* @__PURE__ */ e("span", { className: "text-lg", children: "/mo" })
|
|
37
37
|
] }),
|
|
38
|
-
r.length > 0 && /* @__PURE__ */ e("ul", { className: "mt-4 list-disc text-left", children: r.map(({ icon:
|
|
39
|
-
|
|
38
|
+
r.length > 0 && /* @__PURE__ */ e("ul", { className: "mt-4 list-disc text-left", children: r.map(({ icon: n, description: m }, N) => /* @__PURE__ */ t("li", { className: "flex gap-2", children: [
|
|
39
|
+
n && /* @__PURE__ */ e(f, { name: n, tone: "info", theme: "outline", size: "xs" }),
|
|
40
40
|
m && /* @__PURE__ */ e("p", { className: "text-xs", children: m })
|
|
41
|
-
] }, `${
|
|
41
|
+
] }, `${n}-${N}`)) })
|
|
42
42
|
] }),
|
|
43
43
|
d && /* @__PURE__ */ e("div", { className: "mt-8 bg-blue-500 p-2", children: /* @__PURE__ */ e(
|
|
44
|
-
|
|
44
|
+
y,
|
|
45
45
|
{
|
|
46
46
|
size: "xs",
|
|
47
47
|
display: "link",
|
|
@@ -49,7 +49,7 @@ const w = (f) => {
|
|
|
49
49
|
type: "button",
|
|
50
50
|
className: "text-white",
|
|
51
51
|
disabled: u,
|
|
52
|
-
...c ? { to: c } : { onClick: () => g(
|
|
52
|
+
...c ? { to: c } : { onClick: () => g(l) },
|
|
53
53
|
children: d
|
|
54
54
|
}
|
|
55
55
|
) })
|
|
@@ -58,5 +58,5 @@ const w = (f) => {
|
|
|
58
58
|
);
|
|
59
59
|
};
|
|
60
60
|
export {
|
|
61
|
-
|
|
61
|
+
$ as default
|
|
62
62
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsx as l, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { P as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useSaleBannerContext as
|
|
5
|
-
const
|
|
6
|
-
const
|
|
2
|
+
import { P as c } from "../../index-BFRMsLf2.js";
|
|
3
|
+
import { c as S } from "../../link-BXMBAsbM.js";
|
|
4
|
+
import { useSaleBannerContext as $ } from "./context/index.js";
|
|
5
|
+
const j = typeof window < "u" ? S(c) : c, q = (m) => {
|
|
6
|
+
const { isHidden: x, componentId: h = "", heading: p = "", description: b = "", disclaimer: u = "", normalPrice: g = 0, salePrice: V = 0, linkText: N = "", linkUrl: P = "" } = m, e = $(), k = e == null ? void 0 : e.isHidden, f = (e == null ? void 0 : e.heading) || "", v = (e == null ? void 0 : e.description) || "", w = (e == null ? void 0 : e.disclaimer) || "", C = (e == null ? void 0 : e.normalPrice) || "", y = (e == null ? void 0 : e.salePrice) || "", B = (e == null ? void 0 : e.linkText) || "", H = (e == null ? void 0 : e.linkUrl) || "", T = () => ({
|
|
7
7
|
isHiddenVal: k || x,
|
|
8
8
|
headingVal: f || p,
|
|
9
9
|
descriptionVal: v || b,
|
|
10
|
-
disclaimerVal:
|
|
11
|
-
normalPriceVal:
|
|
12
|
-
salePriceVal:
|
|
13
|
-
linkTextVal:
|
|
14
|
-
linkUrlVal:
|
|
15
|
-
}), { isHiddenVal:
|
|
16
|
-
return
|
|
10
|
+
disclaimerVal: w || u,
|
|
11
|
+
normalPriceVal: C || g,
|
|
12
|
+
salePriceVal: y || V,
|
|
13
|
+
linkTextVal: B || N,
|
|
14
|
+
linkUrlVal: H || P
|
|
15
|
+
}), { isHiddenVal: U, headingVal: i, descriptionVal: a, disclaimerVal: r, normalPriceVal: s, salePriceVal: d, linkTextVal: t, linkUrlVal: o } = T();
|
|
16
|
+
return U ? null : /* @__PURE__ */ l(
|
|
17
17
|
"div",
|
|
18
18
|
{
|
|
19
19
|
"data-component-id": `SaleBanner--${h}`,
|
|
20
20
|
className: "relative border-3 border-blue-500 border-solid rounded-lg p-8 @container/salebanner",
|
|
21
21
|
children: /* @__PURE__ */ n("div", { className: "space-y-6", children: [
|
|
22
22
|
/* @__PURE__ */ n("div", { className: "space-y-2 @lg/salebanner:w-[50%] @xl/salebanner:w-[60%] @2xl/salebanner:w-[70%]", children: [
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
i && /* @__PURE__ */ l("h2", { className: "text-2xl @xl/salebanner:text-3xl @3xl/salebanner:text-5xl", children: /* @__PURE__ */ l("strong", { children: i }) }),
|
|
24
|
+
a && /* @__PURE__ */ l("p", { className: "text-md", children: a })
|
|
25
25
|
] }),
|
|
26
26
|
/* @__PURE__ */ l("div", { className: "text-center", children: /* @__PURE__ */ n("div", { className: "border-3 border-blue-500 border-solid rounded-full w-[200px] h-[200px] p-[40px] mx-auto @lg/salebanner:absolute @lg/salebanner:right-12 @lg/salebanner:top-12", children: [
|
|
27
27
|
s && /* @__PURE__ */ n("p", { className: "line-through text-md", children: [
|
|
@@ -38,7 +38,7 @@ const q = (c) => {
|
|
|
38
38
|
] })
|
|
39
39
|
] }) }),
|
|
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
|
-
|
|
41
|
+
j,
|
|
42
42
|
{
|
|
43
43
|
size: "xs",
|
|
44
44
|
display: "fill",
|