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