@ed.yakovich/component-library 0.0.17 → 0.0.18

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