@ed.yakovich/component-library 0.0.15 → 0.0.17
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/context/index.js +7 -0
- package/dist/components/Accordion/index.js +38 -0
- package/dist/components/Accordion/types/index.js +1 -0
- package/dist/components/Cart/index.js +34 -0
- package/dist/components/EquipmentSummary/context/index.js +10 -0
- package/dist/components/EquipmentSummary/index.js +65 -0
- package/dist/components/EquipmentSummary/types/index.js +1 -0
- package/dist/components/Grid/index.js +19 -0
- package/dist/components/HeroBanner/context/index.js +7 -0
- package/dist/components/HeroBanner/index.js +33 -0
- package/dist/components/HeroBanner/types/index.js +1 -0
- package/dist/components/InfoBanner/index.js +24 -4
- package/dist/components/Nav/index.js +19 -0
- package/dist/components/OfferCards/context/index.js +7 -0
- package/dist/components/OfferCards/index.js +30 -0
- package/dist/components/OfferCards/subComponents/OfferCard.js +61 -0
- package/dist/components/OfferCards/types/index.js +1 -0
- package/dist/components/SaleBanner/context/index.js +7 -0
- package/dist/components/SaleBanner/index.js +58 -0
- package/dist/components/SaleBanner/types/index.js +1 -0
- package/dist/{index-ba31999b-V1s4iffq.js → index-0d8e0844-BJzWsYCM.js} +2443 -2491
- package/dist/index-CIJ0X8ia.js +29141 -0
- package/dist/index-b30029d4-CYulIFrS.js +12 -0
- package/dist/index-e6818ded-r_t6ryaW.js +57 -0
- package/dist/{index.esm-a7c99373-DUoLYEEM.js → index.esm-322571ff-D1REhsOg.js} +1 -1
- package/dist/lib/components/Accordion/context/index.d.ts +10 -0
- package/dist/lib/components/Accordion/index.d.ts +2 -0
- package/dist/lib/components/Accordion/types/index.d.ts +13 -0
- package/dist/lib/components/Cart/index.d.ts +6 -0
- package/dist/lib/components/EquipmentSummary/context/index.d.ts +10 -0
- package/dist/lib/components/EquipmentSummary/index.d.ts +2 -0
- package/dist/lib/components/EquipmentSummary/types/index.d.ts +14 -0
- package/dist/lib/components/Grid/index.d.ts +13 -0
- package/dist/lib/components/HeroBanner/context/index.d.ts +10 -0
- package/dist/lib/components/HeroBanner/index.d.ts +2 -0
- package/dist/lib/components/HeroBanner/types/index.d.ts +11 -0
- package/dist/lib/components/Nav/index.d.ts +8 -0
- package/dist/lib/components/OfferCards/context/index.d.ts +9 -0
- package/dist/lib/components/OfferCards/index.d.ts +2 -0
- package/dist/lib/components/OfferCards/subComponents/OfferCard.d.ts +3 -0
- package/dist/lib/components/OfferCards/types/index.d.ts +26 -0
- package/dist/lib/components/SaleBanner/context/index.d.ts +10 -0
- package/dist/lib/components/SaleBanner/index.d.ts +2 -0
- package/dist/lib/components/SaleBanner/types/index.d.ts +11 -0
- package/dist/lib/main.d.ts +13 -0
- package/dist/main.js +32 -6
- package/dist/prism-accordion.entry-BxWxJTzN.js +51 -0
- package/dist/prism-avatar_2.entry-D13WJm8L.js +68 -0
- package/dist/prism-badge.entry-DxUacM3U.js +58 -0
- package/dist/prism-banner.entry-C2PB-eYg.js +82 -0
- package/dist/prism-breadcrumb.entry-Xs2uvtMJ.js +33 -0
- package/dist/prism-button_2.entry-Bu7aTvL3.js +110 -0
- package/dist/prism-card.entry-DN_z84zN.js +119 -0
- package/dist/prism-carousel.entry-R9W3QWAj.js +3111 -0
- package/dist/prism-checkbox-group.entry-D6r-q0Hm.js +62 -0
- package/dist/prism-checkbox.entry-w99uqUBB.js +99 -0
- package/dist/prism-data-table.entry-Ckducvo-.js +10475 -0
- package/dist/prism-datepicker.entry-QpabfLme.js +249 -0
- package/dist/{prism-form.entry-C8VzGp6c.js → prism-form.entry-B0of8RQh.js} +11 -11
- package/dist/prism-grid.entry-CFnOi_Vc.js +28 -0
- package/dist/prism-header.entry-0LjtG822.js +202 -0
- package/dist/prism-hero.entry-DVipQrOc.js +23 -0
- package/dist/prism-icon_2.entry-FQ8c7tJr.js +118 -0
- package/dist/prism-image.entry-BtjBPMeE.js +38 -0
- package/dist/prism-input-file.entry-CXYV9xtO.js +119 -0
- package/dist/prism-input-otp.entry-CXBN1WBi.js +63 -0
- package/dist/prism-input-text.entry-D5yPqcBS.js +228 -0
- package/dist/prism-input-textarea.entry-6O7qdk_r.js +140 -0
- package/dist/prism-layout.entry-CJcjgXky.js +20 -0
- package/dist/prism-lineitem.entry-BSBcpGKE.js +44 -0
- package/dist/prism-menu.entry-hxjFECbL.js +231 -0
- package/dist/prism-modal.entry-BIavEySL.js +94 -0
- package/dist/prism-pagination.entry-cJjWcUeH.js +60 -0
- package/dist/prism-popover.entry-EiL6rh8c.js +1013 -0
- package/dist/prism-popper.entry-B3NAqQHK.js +959 -0
- package/dist/prism-progress.entry-DkyB0j-F.js +79 -0
- package/dist/prism-radio-group.entry-nR5BA0H-.js +66 -0
- package/dist/prism-radio.entry-2oHibUZp.js +101 -0
- package/dist/prism-select.entry-DaSGr0dP.js +230 -0
- package/dist/prism-switch.entry-CiUr8IHK.js +95 -0
- package/dist/prism-tab.entry-Db7WSxCT.js +20 -0
- package/dist/prism-tabs.entry-BSS5u08w.js +70 -0
- package/dist/prism-tooltip.entry-Dqu6PskB.js +52 -0
- package/dist/prism-typeahead.entry-BMyMjXSV.js +1234 -0
- package/package.json +3 -2
- package/dist/index-44540db3-BN5vFHKr.js +0 -44
- package/dist/index-4d46d9ca-BtyZMEt1.js +0 -12
- package/dist/index-D9BZSjMp.js +0 -21158
- package/dist/prism-accordion.entry-D4g7wdXB.js +0 -51
- package/dist/prism-avatar_3.entry-C1H9bg9y.js +0 -335
- package/dist/prism-badge.entry-CWLalQsR.js +0 -56
- package/dist/prism-banner.entry-D1sce4tY.js +0 -105
- package/dist/prism-breadcrumb.entry-C282yHQl.js +0 -33
- package/dist/prism-button_3.entry-DIg1AEXF.js +0 -240
- package/dist/prism-card.entry-DaxGD-uX.js +0 -152
- package/dist/prism-carousel.entry-BGmaoDVM.js +0 -3346
- package/dist/prism-checkbox-group.entry-Dwa_mvjd.js +0 -62
- package/dist/prism-checkbox.entry-CZvx2AHI.js +0 -116
- package/dist/prism-data-table.entry-DACAS8BE.js +0 -3591
- package/dist/prism-datepicker.entry-CHUyjilE.js +0 -279
- package/dist/prism-dialog.entry-DdO9Kt32.js +0 -73
- package/dist/prism-drawer.entry-Dn0rvW9U.js +0 -43
- package/dist/prism-header.entry-D0PypuC3.js +0 -227
- package/dist/prism-hero.entry-DQ8G7Jb_.js +0 -23
- package/dist/prism-image.entry-tx9Pc3k_.js +0 -38
- package/dist/prism-input-file.entry-CO-2LZxG.js +0 -119
- package/dist/prism-input-otp.entry-ZAxExI2D.js +0 -79
- package/dist/prism-input-text.entry-EXsN4rgi.js +0 -278
- package/dist/prism-input-textarea.entry-CRqY4mr9.js +0 -145
- package/dist/prism-input-time.entry-BJ9he6MX.js +0 -85
- package/dist/prism-layout.entry-ulDWjtj8.js +0 -20
- package/dist/prism-lineitem.entry-DJk6X6mR.js +0 -47
- package/dist/prism-modal.entry-C795YZic.js +0 -95
- package/dist/prism-pagination.entry-DYQieAu3.js +0 -69
- package/dist/prism-popover.entry-BgLcACZw.js +0 -1114
- package/dist/prism-progress.entry-Z21rpoTm.js +0 -79
- package/dist/prism-radio_2.entry-C0HPCb3G.js +0 -159
- package/dist/prism-select.entry-B_l-ab1d.js +0 -286
- package/dist/prism-switch.entry-OkC8X1bD.js +0 -95
- package/dist/prism-tab.entry-szftB_wL.js +0 -20
- package/dist/prism-tabs.entry-0UR3WF52.js +0 -72
- package/dist/prism-text.entry-BEAZ8xEV.js +0 -28
- package/dist/prism-treelist.entry-UX4FM4Bi.js +0 -135
- package/dist/prism-typeahead.entry-CwOiAFQE.js +0 -1264
- package/dist/purify-9647b094-0-ZyuBNz.js +0 -572
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as n, useContext as c } from "react";
|
|
3
|
+
const t = n({}), s = () => c(t), d = ({ model: o, children: e }) => /* @__PURE__ */ r(t.Provider, { value: { ...o }, children: e });
|
|
4
|
+
export {
|
|
5
|
+
d as AccordionContextProvider,
|
|
6
|
+
s as useAccordionContext
|
|
7
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c as B } from "../../index-CIJ0X8ia.js";
|
|
3
|
+
import { useAccordionContext as F } from "./context/index.js";
|
|
4
|
+
const $ = (n) => {
|
|
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 = () => ({
|
|
6
|
+
isHiddenVal: C || d,
|
|
7
|
+
labelVal: V || c,
|
|
8
|
+
descriptionVal: m || r,
|
|
9
|
+
labelSecondaryVal: S || s,
|
|
10
|
+
onClickVal: k || t,
|
|
11
|
+
toneVal: u || p,
|
|
12
|
+
collapsedVal: y || b
|
|
13
|
+
}), { isHiddenVal: A, labelVal: f, descriptionVal: g, labelSecondaryVal: h, onClickVal: j, toneVal: v, collapsedVal: o } = H();
|
|
14
|
+
return A ? null : /* @__PURE__ */ e(
|
|
15
|
+
"div",
|
|
16
|
+
{
|
|
17
|
+
"data-component-id": `Accordion--${i}`,
|
|
18
|
+
className: "border-3 border-blue-500 border-solid rounded-lg @container/accordion",
|
|
19
|
+
children: /* @__PURE__ */ e(
|
|
20
|
+
B,
|
|
21
|
+
{
|
|
22
|
+
label: f,
|
|
23
|
+
labelSecondary: h,
|
|
24
|
+
description: g,
|
|
25
|
+
onClick: j,
|
|
26
|
+
tone: v,
|
|
27
|
+
...o && {
|
|
28
|
+
collapsed: !!o
|
|
29
|
+
},
|
|
30
|
+
children: a
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
$ as Accordion
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { P as d } from "../../index-CIJ0X8ia.js";
|
|
3
|
+
const o = (l) => {
|
|
4
|
+
const { backUrl: r, nextUrl: t } = l;
|
|
5
|
+
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__ */ s("div", { className: "flex justify-center", children: [
|
|
6
|
+
/* @__PURE__ */ e("div", { className: "px-12 py-3 @lg/cart:border-l-3 border-blue-500 border-solid", children: /* @__PURE__ */ e(
|
|
7
|
+
d,
|
|
8
|
+
{
|
|
9
|
+
size: "xs",
|
|
10
|
+
display: "menu",
|
|
11
|
+
tone: "info",
|
|
12
|
+
type: "button",
|
|
13
|
+
disabled: !r,
|
|
14
|
+
href: r,
|
|
15
|
+
children: /* @__PURE__ */ e("strong", { children: "Back" })
|
|
16
|
+
}
|
|
17
|
+
) }),
|
|
18
|
+
/* @__PURE__ */ e("div", { className: "px-12 py-3 border-l-3 border-blue-500 border-solid", children: /* @__PURE__ */ e(
|
|
19
|
+
d,
|
|
20
|
+
{
|
|
21
|
+
size: "xs",
|
|
22
|
+
display: "menu",
|
|
23
|
+
tone: "info",
|
|
24
|
+
type: "button",
|
|
25
|
+
disabled: !t,
|
|
26
|
+
href: t,
|
|
27
|
+
children: /* @__PURE__ */ e("strong", { children: "Next" })
|
|
28
|
+
}
|
|
29
|
+
) })
|
|
30
|
+
] }) }) });
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
o as Cart
|
|
34
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as n, useContext as m } from "react";
|
|
3
|
+
const e = n({}), c = () => m(e), i = ({
|
|
4
|
+
model: t,
|
|
5
|
+
children: o
|
|
6
|
+
}) => /* @__PURE__ */ r(e.Provider, { value: { ...t }, children: o });
|
|
7
|
+
export {
|
|
8
|
+
i as EquipmentSummaryContextProvider,
|
|
9
|
+
c as useEquipmentSummaryContext
|
|
10
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
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-CIJ0X8ia.js";
|
|
3
|
+
import { useEquipmentSummaryContext as $ } from "./context/index.js";
|
|
4
|
+
const I = (m) => {
|
|
5
|
+
const {
|
|
6
|
+
isHidden: o,
|
|
7
|
+
componentId: u = "",
|
|
8
|
+
heading: c = "",
|
|
9
|
+
description: p = "",
|
|
10
|
+
isLoading: h = !1,
|
|
11
|
+
equipmentList: g = []
|
|
12
|
+
} = m, e = $(), q = e == null ? void 0 : e.isHidden, L = (e == null ? void 0 : e.heading) || "", b = (e == null ? void 0 : e.description) || "", r = (e == null ? void 0 : e.equipmentList) || [], f = (e == null ? void 0 : e.isLoading) || "", V = () => ({
|
|
13
|
+
isHiddenVal: q || o,
|
|
14
|
+
headingVal: L || c,
|
|
15
|
+
descriptionVal: b || p,
|
|
16
|
+
isLoadingVal: f || h,
|
|
17
|
+
equipmentListVal: r.length > 0 ? r : g
|
|
18
|
+
}), { isHiddenVal: v, headingVal: y, descriptionVal: x, isLoadingVal: C, equipmentListVal: t } = V(), N = (n) => {
|
|
19
|
+
switch (n) {
|
|
20
|
+
case "return":
|
|
21
|
+
return "caution";
|
|
22
|
+
case "keep":
|
|
23
|
+
return "positive";
|
|
24
|
+
default:
|
|
25
|
+
return "neutral";
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
return v ? null : /* @__PURE__ */ i(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
"data-component-id": `EquipmentSummary--${u}`,
|
|
32
|
+
className: "border-3 border-blue-500 border-solid rounded-lg p-8 @container/equipmentsummary",
|
|
33
|
+
children: /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(
|
|
34
|
+
P,
|
|
35
|
+
{
|
|
36
|
+
label: y,
|
|
37
|
+
description: x,
|
|
38
|
+
tone: "neutral2-inverse",
|
|
39
|
+
collapsed: !1,
|
|
40
|
+
children: /* @__PURE__ */ i("div", { children: C ? /* @__PURE__ */ i(S, { display: "inline", type: "dots" }) : /* @__PURE__ */ i("div", { children: t.length > 0 && /* @__PURE__ */ i("ul", { className: "space-y-4", children: t.map(({ icon: n, title: d, description: l, actionType: s }, H) => /* @__PURE__ */ a("li", { children: [
|
|
41
|
+
/* @__PURE__ */ a("div", { className: "@xs/equipmentsummary:flex @xs/equipmentsummary:justify-between", children: [
|
|
42
|
+
/* @__PURE__ */ a("div", { className: "flex gap-2", children: [
|
|
43
|
+
n && /* @__PURE__ */ i(j, { name: n, tone: "info", theme: "outline", size: "sm" }),
|
|
44
|
+
d && /* @__PURE__ */ i("span", { children: d })
|
|
45
|
+
] }),
|
|
46
|
+
s && /* @__PURE__ */ i("div", { className: "ml-8 mb-2 @xs/equipmentsummary:ml-0 @xs/equipmentsummary:mb-0", children: /* @__PURE__ */ i(
|
|
47
|
+
E,
|
|
48
|
+
{
|
|
49
|
+
label: s,
|
|
50
|
+
size: "md",
|
|
51
|
+
tone: N(s),
|
|
52
|
+
children: s
|
|
53
|
+
}
|
|
54
|
+
) })
|
|
55
|
+
] }),
|
|
56
|
+
l && /* @__PURE__ */ i("p", { className: "ml-8 text-xs", children: /* @__PURE__ */ i("em", { children: l }) })
|
|
57
|
+
] }, `${d}-${H}`)) }) }) })
|
|
58
|
+
}
|
|
59
|
+
) })
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
};
|
|
63
|
+
export {
|
|
64
|
+
I as EquipmentSummary
|
|
65
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
const p = (d) => {
|
|
3
|
+
const { flushX: i, flushY: c, maxWidth: e = "", maxColAmount: r = "1", colSpan: s = "", gapX: l = "gap-x-6", gapY: t = "gap-y-6", children: g } = d, a = () => {
|
|
4
|
+
switch (r) {
|
|
5
|
+
case "4":
|
|
6
|
+
return "@2xl/gridcomp:grid-cols-4";
|
|
7
|
+
case "3":
|
|
8
|
+
return "@2xl/gridcomp:grid-cols-3";
|
|
9
|
+
case "2":
|
|
10
|
+
return "@2xl/gridcomp:grid-cols-2";
|
|
11
|
+
default:
|
|
12
|
+
return "@2xl/gridcomp:grid-cols-1";
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
return /* @__PURE__ */ o("section", { "data-component-id": "Grid", className: "@container/gridcomp", children: /* @__PURE__ */ o("div", { className: `w-full mx-auto grid grid-cols-1 ${e} ${parseInt(r) > 2 ? "@md/gridcomp:grid-cols-2" : "@md/gridcomp:grid-cols-1"} ${a()} ${l} ${t} ${s} ${i ? "" : "px-4"} ${c ? "" : "py-4"}`, children: g }) });
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
p as Grid
|
|
19
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as n, useContext as x } from "react";
|
|
3
|
+
const e = n({}), a = () => x(e), u = ({ model: t, children: o }) => /* @__PURE__ */ r(e.Provider, { value: { ...t }, children: o });
|
|
4
|
+
export {
|
|
5
|
+
u as HeroBannerContextProvider,
|
|
6
|
+
a as useHeroBannerContext
|
|
7
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx as n, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import { a as c } from "../../index-CIJ0X8ia.js";
|
|
3
|
+
import { useHeroBannerContext as j } from "./context/index.js";
|
|
4
|
+
const z = (h) => {
|
|
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 = () => ({
|
|
6
|
+
isHiddenVal: V || m,
|
|
7
|
+
iconVal: f || p,
|
|
8
|
+
headingVal: H || x,
|
|
9
|
+
descriptionVal: C || b,
|
|
10
|
+
listDataVal: r.length > 0 ? r : u
|
|
11
|
+
}), { isHiddenVal: D, iconVal: l, headingVal: o, descriptionVal: s, listDataVal: t } = N();
|
|
12
|
+
return D ? null : /* @__PURE__ */ n(
|
|
13
|
+
"div",
|
|
14
|
+
{
|
|
15
|
+
"data-component-id": `HeroBanner--${g}`,
|
|
16
|
+
className: "border-3 border-blue-500 border-solid rounded-lg p-8 @container/herobanner",
|
|
17
|
+
children: /* @__PURE__ */ a("div", { className: "@lg/herobanner:flex @lg/herobanner:justify-between gap-2", children: [
|
|
18
|
+
/* @__PURE__ */ a("div", { children: [
|
|
19
|
+
l && /* @__PURE__ */ n(c, { name: l, tone: "info", theme: "outline", size: "lg" }),
|
|
20
|
+
o && /* @__PURE__ */ n("h2", { className: "text-xl @xl/herobanner:text-2xl @3xl/herobanner:text-4xl", children: /* @__PURE__ */ n("strong", { children: o }) }),
|
|
21
|
+
s && /* @__PURE__ */ n("p", { className: "text-xs", children: s })
|
|
22
|
+
] }),
|
|
23
|
+
t.length > 0 && /* @__PURE__ */ n("div", { className: "@lg/herobanner:w-[250px] @lg/herobanner:shrink-0", children: /* @__PURE__ */ n("ul", { children: t.map(({ icon: d, description: i }, v) => /* @__PURE__ */ a("li", { className: "flex gap-2", children: [
|
|
24
|
+
d && /* @__PURE__ */ n(c, { name: d, tone: "info", theme: "outline", size: "sm" }),
|
|
25
|
+
i && /* @__PURE__ */ n("span", { children: i })
|
|
26
|
+
] }, `${i}-${v}`)) }) })
|
|
27
|
+
] })
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
z as HeroBanner
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,6 +1,26 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import "./context/index.js";
|
|
1
|
+
import { jsx as e, jsxs as V } from "react/jsx-runtime";
|
|
2
|
+
import { a as u } from "../../index-CIJ0X8ia.js";
|
|
3
|
+
import { useInfoBannerContext as N } from "./context/index.js";
|
|
4
|
+
const I = (t) => {
|
|
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 = () => ({
|
|
6
|
+
isHiddenVal: m || a,
|
|
7
|
+
iconVal: h || l,
|
|
8
|
+
headingVal: p || r,
|
|
9
|
+
descriptionVal: g || c
|
|
10
|
+
}), { isHiddenVal: x, iconVal: i, headingVal: s, descriptionVal: o } = f();
|
|
11
|
+
return x ? null : /* @__PURE__ */ e(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
"data-component-id": `InfoBanner--${d}`,
|
|
15
|
+
className: "bg-blue-500 p-4 text-white @container/infobanner",
|
|
16
|
+
children: /* @__PURE__ */ e("div", { className: "text-center", children: /* @__PURE__ */ V("div", { className: "space-y-1", children: [
|
|
17
|
+
i && /* @__PURE__ */ e(u, { name: i, tone: "info", theme: "outline", size: "md" }),
|
|
18
|
+
s && /* @__PURE__ */ e("div", { className: "text-center @lg/infobanner:px-14", children: /* @__PURE__ */ e("h2", { className: "text-3xl", children: /* @__PURE__ */ e("strong", { children: s }) }) }),
|
|
19
|
+
o && /* @__PURE__ */ e("p", { className: "text-xs mb-2", children: /* @__PURE__ */ e("strong", { children: o }) })
|
|
20
|
+
] }) })
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
};
|
|
4
24
|
export {
|
|
5
|
-
|
|
25
|
+
I as InfoBanner
|
|
6
26
|
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { P as o } from "../../index-CIJ0X8ia.js";
|
|
3
|
+
const d = (r) => {
|
|
4
|
+
const { pages: t } = r;
|
|
5
|
+
return /* @__PURE__ */ e("nav", { "data-component-id": "Nav", className: "p-6", children: /* @__PURE__ */ e("div", { className: "flex justify-center gap-4", children: t.map(({ name: n, url: i }, s) => /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
6
|
+
o,
|
|
7
|
+
{
|
|
8
|
+
size: "xs",
|
|
9
|
+
display: "menu",
|
|
10
|
+
tone: "info",
|
|
11
|
+
type: "button",
|
|
12
|
+
href: i,
|
|
13
|
+
children: /* @__PURE__ */ e("strong", { children: n })
|
|
14
|
+
}
|
|
15
|
+
) }, `${n}-${s}`)) }) });
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
d as Nav
|
|
19
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as n, useContext as s } from "react";
|
|
3
|
+
const e = n({}), C = () => s(e), c = ({ model: t, children: r }) => /* @__PURE__ */ o(e.Provider, { value: { ...t }, children: r });
|
|
4
|
+
export {
|
|
5
|
+
c as OfferCardsContextProvider,
|
|
6
|
+
C as useOfferCardsContext
|
|
7
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { a as N, b as $ } from "../../index-CIJ0X8ia.js";
|
|
3
|
+
import b from "./subComponents/OfferCard.js";
|
|
4
|
+
import { useOfferCardsContext as j } from "./context/index.js";
|
|
5
|
+
const z = (o) => {
|
|
6
|
+
const {
|
|
7
|
+
isHidden: t,
|
|
8
|
+
componentId: c = "",
|
|
9
|
+
icon: f = "",
|
|
10
|
+
heading: m = "",
|
|
11
|
+
isLoading: g = !1,
|
|
12
|
+
offerCardList: h = []
|
|
13
|
+
} = o, i = j(), p = i == null ? void 0 : i.isHidden, C = (i == null ? void 0 : i.icon) || "", L = (i == null ? void 0 : i.heading) || "", V = (i == null ? void 0 : i.isLoading) || "", a = (i == null ? void 0 : i.offerCardList) || [], x = i == null ? void 0 : i.handleOfferCardAction, u = () => ({
|
|
14
|
+
isHiddenVal: p || t,
|
|
15
|
+
iconVal: C || f,
|
|
16
|
+
headingVal: L || m,
|
|
17
|
+
isLoadingVal: V || g,
|
|
18
|
+
offerCardListVal: a.length > 0 ? a : h
|
|
19
|
+
}), { isHiddenVal: O, iconVal: n, headingVal: d, isLoadingVal: H, offerCardListVal: r } = u();
|
|
20
|
+
return O ? null : /* @__PURE__ */ l("div", { "data-component-id": `OfferCards--${c}`, className: "@container/offercards", children: [
|
|
21
|
+
(d || n) && /* @__PURE__ */ l("div", { className: "mb-4 flex items-center gap-2 mt-10", children: [
|
|
22
|
+
n && /* @__PURE__ */ s(N, { name: n, tone: "expressive", theme: "fill", size: "md" }),
|
|
23
|
+
d && /* @__PURE__ */ s("h2", { className: "text-xl @2xl/offercards:text-2xl", children: /* @__PURE__ */ s("strong", { children: d }) })
|
|
24
|
+
] }),
|
|
25
|
+
H ? /* @__PURE__ */ s($, { display: "inline", type: "dots" }) : /* @__PURE__ */ s("div", { children: r.length > 0 && /* @__PURE__ */ s("ul", { className: "grid grid-cols-1 gap-4 @xl/offercards:grid-cols-2 @3xl/offercards:grid-cols-3", children: r.map((e, v) => /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(b, { ...e, handleOfferCardAction: x }) }, `${e == null ? void 0 : e.id}-${v}`)) }) })
|
|
26
|
+
] });
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
z as OfferCards
|
|
30
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { b as N, a as h, P as v } from "../../../index-CIJ0X8ia.js";
|
|
3
|
+
const P = (f) => {
|
|
4
|
+
const {
|
|
5
|
+
isLoading: p = !1,
|
|
6
|
+
id: s = "",
|
|
7
|
+
icon: n = "",
|
|
8
|
+
heading: a = "",
|
|
9
|
+
description: i = "",
|
|
10
|
+
iconList: r = [],
|
|
11
|
+
price: d = "",
|
|
12
|
+
buttonLabel: o = "",
|
|
13
|
+
buttonHref: c = "",
|
|
14
|
+
buttonDisabled: x,
|
|
15
|
+
perMonth: b = !1,
|
|
16
|
+
handleOfferCardAction: u = () => {
|
|
17
|
+
}
|
|
18
|
+
} = f;
|
|
19
|
+
return /* @__PURE__ */ l(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
"data-component-id": `OfferCard--${s}`,
|
|
23
|
+
className: "border-3 border-blue-500 border-solid rounded-lg flex flex-col bg-white h-full text-center relative",
|
|
24
|
+
children: [
|
|
25
|
+
p && /* @__PURE__ */ e("div", { className: "absolute top-2 left-2", children: /* @__PURE__ */ e(N, { display: "inline", type: "spinner" }) }),
|
|
26
|
+
/* @__PURE__ */ l("div", { className: "grow p-4", children: [
|
|
27
|
+
n && /* @__PURE__ */ e(h, { name: n, tone: "info", theme: "outline", size: "md" }),
|
|
28
|
+
a && /* @__PURE__ */ e("h3", { className: "text-lg", children: /* @__PURE__ */ e("strong", { children: a }) }),
|
|
29
|
+
i && /* @__PURE__ */ e("p", { className: "text-xs", children: i }),
|
|
30
|
+
d && /* @__PURE__ */ l("p", { className: "mt-2", children: [
|
|
31
|
+
/* @__PURE__ */ e("span", { className: "text-5xl", children: /* @__PURE__ */ l("strong", { children: [
|
|
32
|
+
"$",
|
|
33
|
+
Math.floor(d)
|
|
34
|
+
] }) }),
|
|
35
|
+
b && /* @__PURE__ */ e("span", { className: "text-lg", children: "/mo" })
|
|
36
|
+
] }),
|
|
37
|
+
r.length > 0 && /* @__PURE__ */ e("ul", { className: "mt-4 list-disc text-left", children: r.map(({ icon: t, description: m }, g) => /* @__PURE__ */ l("li", { className: "flex gap-2", children: [
|
|
38
|
+
t && /* @__PURE__ */ e(h, { name: t, tone: "info", theme: "outline", size: "xs" }),
|
|
39
|
+
m && /* @__PURE__ */ e("p", { className: "text-xs", children: m })
|
|
40
|
+
] }, `${t}-${g}`)) })
|
|
41
|
+
] }),
|
|
42
|
+
o && /* @__PURE__ */ e("div", { className: "mt-8 bg-blue-500 p-2", children: /* @__PURE__ */ e(
|
|
43
|
+
v,
|
|
44
|
+
{
|
|
45
|
+
size: "xs",
|
|
46
|
+
display: "link",
|
|
47
|
+
tone: "info",
|
|
48
|
+
type: "button",
|
|
49
|
+
className: "text-white",
|
|
50
|
+
disabled: x,
|
|
51
|
+
...c ? { href: c } : { onClick: () => u(s) },
|
|
52
|
+
children: o
|
|
53
|
+
}
|
|
54
|
+
) })
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
P as default
|
|
61
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as r, useContext as x } from "react";
|
|
3
|
+
const e = r({}), s = () => x(e), u = ({ model: t, children: n }) => /* @__PURE__ */ o(e.Provider, { value: { ...t }, children: n });
|
|
4
|
+
export {
|
|
5
|
+
u as SaleBannerContextProvider,
|
|
6
|
+
s as useSaleBannerContext
|
|
7
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsx as l, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { P as B } from "../../index-CIJ0X8ia.js";
|
|
3
|
+
import { useSaleBannerContext as S } from "./context/index.js";
|
|
4
|
+
const F = (o) => {
|
|
5
|
+
const { isHidden: m, componentId: h = "", heading: x = "", description: p = "", disclaimer: b = "", normalPrice: g = 0, salePrice: u = 0, linkText: V = "", linkUrl: N = "" } = o, e = S(), P = e == null ? void 0 : e.isHidden, k = (e == null ? void 0 : e.heading) || "", f = (e == null ? void 0 : e.description) || "", v = (e == null ? void 0 : e.disclaimer) || "", C = (e == null ? void 0 : e.normalPrice) || "", w = (e == null ? void 0 : e.salePrice) || "", H = (e == null ? void 0 : e.linkText) || "", T = (e == null ? void 0 : e.linkUrl) || "", U = () => ({
|
|
6
|
+
isHiddenVal: P || m,
|
|
7
|
+
headingVal: k || x,
|
|
8
|
+
descriptionVal: f || p,
|
|
9
|
+
disclaimerVal: v || b,
|
|
10
|
+
normalPriceVal: C || g,
|
|
11
|
+
salePriceVal: w || u,
|
|
12
|
+
linkTextVal: H || V,
|
|
13
|
+
linkUrlVal: T || N
|
|
14
|
+
}), { isHiddenVal: y, headingVal: a, descriptionVal: i, disclaimerVal: r, normalPriceVal: s, salePriceVal: d, linkTextVal: t, linkUrlVal: c } = U();
|
|
15
|
+
return y ? null : /* @__PURE__ */ l(
|
|
16
|
+
"div",
|
|
17
|
+
{
|
|
18
|
+
"data-component-id": `SaleBanner--${h}`,
|
|
19
|
+
className: "relative border-3 border-blue-500 border-solid rounded-lg p-8 @container/salebanner",
|
|
20
|
+
children: /* @__PURE__ */ n("div", { className: "space-y-6", children: [
|
|
21
|
+
/* @__PURE__ */ n("div", { className: "space-y-2 @lg/salebanner:w-[50%] @xl/salebanner:w-[60%] @2xl/salebanner:w-[70%]", children: [
|
|
22
|
+
a && /* @__PURE__ */ l("h2", { className: "text-2xl @xl/salebanner:text-3xl @3xl/salebanner:text-5xl", children: /* @__PURE__ */ l("strong", { children: a }) }),
|
|
23
|
+
i && /* @__PURE__ */ l("p", { className: "text-md", children: i })
|
|
24
|
+
] }),
|
|
25
|
+
/* @__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: [
|
|
26
|
+
s && /* @__PURE__ */ n("p", { className: "line-through text-md", children: [
|
|
27
|
+
"$",
|
|
28
|
+
s,
|
|
29
|
+
"/mo"
|
|
30
|
+
] }),
|
|
31
|
+
d && /* @__PURE__ */ n("div", { children: [
|
|
32
|
+
/* @__PURE__ */ l("h2", { className: "text-6xl", children: /* @__PURE__ */ n("strong", { children: [
|
|
33
|
+
"$",
|
|
34
|
+
d
|
|
35
|
+
] }) }),
|
|
36
|
+
/* @__PURE__ */ l("span", { className: "text-xl", children: /* @__PURE__ */ l("strong", { children: "/mo" }) })
|
|
37
|
+
] })
|
|
38
|
+
] }) }),
|
|
39
|
+
t && c && /* @__PURE__ */ l("div", { className: "text-center bg-blue-500 rounded-full w-[200px] mx-auto px-2", children: /* @__PURE__ */ l(
|
|
40
|
+
B,
|
|
41
|
+
{
|
|
42
|
+
size: "xs",
|
|
43
|
+
display: "fill",
|
|
44
|
+
tone: "info",
|
|
45
|
+
type: "button",
|
|
46
|
+
className: "text-white font-bold",
|
|
47
|
+
href: c,
|
|
48
|
+
children: t
|
|
49
|
+
}
|
|
50
|
+
) }),
|
|
51
|
+
/* @__PURE__ */ l("div", { className: "@lg/salebanner:w-[50%]", children: r && /* @__PURE__ */ l("p", { className: "text-xs", children: r }) })
|
|
52
|
+
] })
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
F as SaleBanner
|
|
58
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|