@courtneyring/components-library 1.0.0 → 1.0.2

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 (45) hide show
  1. package/dist/animations/FadeInMotion.js +4785 -0
  2. package/dist/assets/Background.css +1 -1
  3. package/dist/assets/Banner.css +1 -1
  4. package/dist/assets/BorderedBackground.css +1 -1
  5. package/dist/assets/Button.css +1 -1
  6. package/dist/assets/Container.css +1 -1
  7. package/dist/assets/Fifty.css +1 -1
  8. package/dist/assets/Footer.css +1 -1
  9. package/dist/assets/IconDetail.css +1 -0
  10. package/dist/assets/ImageTextBlock.css +1 -1
  11. package/dist/assets/List.css +1 -1
  12. package/dist/assets/MenuButton.css +1 -0
  13. package/dist/assets/Navbar.css +1 -0
  14. package/dist/assets/Note.css +1 -1
  15. package/dist/assets/Overlay.css +1 -0
  16. package/dist/assets/OverlayHero.css +1 -1
  17. package/dist/assets/PageContainer.css +1 -1
  18. package/dist/assets/PinnedImage.css +1 -0
  19. package/dist/assets/Promo.css +1 -0
  20. package/dist/assets/PromoGroup.css +1 -0
  21. package/dist/assets/Timeline.css +1 -1
  22. package/dist/assets/index.css +1 -0
  23. package/dist/components/Background/Background.js +5 -4
  24. package/dist/components/Banner/Banner.js +13 -10
  25. package/dist/components/BorderedBackground/BorderedBackground.js +27 -31
  26. package/dist/components/Button/Button.js +29 -24
  27. package/dist/components/Container/Container.js +3 -3
  28. package/dist/components/Fifty/Fifty.js +12 -12
  29. package/dist/components/Footer/Footer.js +9 -9
  30. package/dist/components/IconDetail/IconDetail.js +14 -0
  31. package/dist/components/ImageTextBlock/ImageTextBlock.js +31 -19
  32. package/dist/components/List/List.js +5 -5
  33. package/dist/components/MenuButton/MenuButton.js +18 -0
  34. package/dist/components/Navbar/Navbar.js +455 -0
  35. package/dist/components/Note/Note.js +21 -16
  36. package/dist/components/Overlay/Overlay.js +31 -0
  37. package/dist/components/OverlayHero/OverlayHero.js +13 -13
  38. package/dist/components/PageContainer/PageContainer.js +13 -13
  39. package/dist/components/PinnedImage/PinnedImage.js +44 -0
  40. package/dist/components/Promo/Promo.js +33 -0
  41. package/dist/components/PromoGroup/PromoGroup.js +13 -0
  42. package/dist/components/Timeline/Timeline.js +19 -19
  43. package/dist/index.js +52 -0
  44. package/package.json +8 -4
  45. package/dist/main.js +0 -24
@@ -0,0 +1,33 @@
1
+ "use client";
2
+ import { jsxs as i, jsx as o } from "react/jsx-runtime";
3
+ import c from "../Button/Button.js";
4
+ import '../../assets/Promo.css';const d = "_promo_jirwp_1", h = "_image_jirwp_47", x = "_promo__header_jirwp_52", j = "_promo__body_jirwp_79", N = "_stat_jirwp_100", g = "_statText_jirwp_110", a = {
5
+ promo: d,
6
+ image: h,
7
+ promo__header: x,
8
+ promo__body: j,
9
+ stat: N,
10
+ statText: g
11
+ }, w = ({ icon: r, header: e, body: l, cta: s, color: p, stats: t, image: m, textAlign: n }) => /* @__PURE__ */ i(
12
+ s ? "a" : "div",
13
+ {
14
+ className: ` ${a.promo}`,
15
+ href: s?.value,
16
+ "data-color": p,
17
+ "data-text-align": n,
18
+ children: [
19
+ r && /* @__PURE__ */ o("span", { className: "material-symbols-outlined", children: r }),
20
+ m && /* @__PURE__ */ o("img", { className: a.image, src: m }),
21
+ e && /* @__PURE__ */ o("h3", { className: a.promo__header, children: e }),
22
+ /* @__PURE__ */ o("p", { className: a.promo__body, children: l }),
23
+ s && /* @__PURE__ */ o(c, { ...s }),
24
+ t && t.map((_) => /* @__PURE__ */ i("div", { className: a.stat, children: [
25
+ /* @__PURE__ */ o("span", { className: "material-symbols-outlined", children: _.icon }),
26
+ /* @__PURE__ */ o("span", { className: a.statText, children: _.text })
27
+ ] }))
28
+ ]
29
+ }
30
+ );
31
+ export {
32
+ w as default
33
+ };
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ import { jsxs as d, Fragment as t, jsx as r } from "react/jsx-runtime";
3
+ import { Children as i } from "react";
4
+ import '../../assets/PromoGroup.css';const n = "_group_bfi13_1", c = "_header_bfi13_8", e = {
5
+ group: n,
6
+ header: c
7
+ }, l = ({ header: o, children: s }) => /* @__PURE__ */ d(t, { children: [
8
+ /* @__PURE__ */ r("h2", { className: e.header, children: o }),
9
+ /* @__PURE__ */ r("div", { className: e.group, children: i.map(s, (a, h) => a) })
10
+ ] });
11
+ export {
12
+ l as default
13
+ };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { jsxs as c, Fragment as h, jsx as t } from "react/jsx-runtime";
3
- import { useRef as a, useEffect as u } from "react";
2
+ import { jsxs as l, Fragment as g, jsx as t } from "react/jsx-runtime";
3
+ import { useRef as a, useEffect as h } from "react";
4
4
  import { g as o, S as p } from "../../ScrollTrigger-DDbij8gI.js";
5
- import '../../assets/Timeline.css';const f = "_spacer_9nrlt_750", x = "_timelineWrapper_9nrlt_755", g = "_linePin_9nrlt_761", v = "_timelineLine_9nrlt_771", N = "_items_9nrlt_782", y = "_item_9nrlt_782", P = "_text_9nrlt_798", n = {
6
- spacer: f,
7
- timelineWrapper: x,
8
- linePin: g,
5
+ import '../../assets/Timeline.css';const u = "_spacer_1g76i_1", f = "_timelineWrapper_1g76i_6", x = "_linePin_1g76i_12", v = "_timelineLine_1g76i_22", N = "_items_1g76i_33", y = "_item_1g76i_33", P = "_text_1g76i_49", i = {
6
+ spacer: u,
7
+ timelineWrapper: f,
8
+ linePin: x,
9
9
  timelineLine: v,
10
10
  items: N,
11
11
  item: y,
@@ -19,8 +19,8 @@ const W = [
19
19
  ];
20
20
  function L() {
21
21
  const s = a(null), d = a(null), m = a(null);
22
- return u(() => {
23
- const e = window.innerHeight, l = o.context(() => {
22
+ return h(() => {
23
+ const e = window.innerHeight, c = o.context(() => {
24
24
  p.create({
25
25
  trigger: s.current,
26
26
  start: "top top",
@@ -29,23 +29,23 @@ function L() {
29
29
  pin: d.current,
30
30
  scrub: !0,
31
31
  onUpdate: (_) => {
32
- const r = _.progress;
33
- let i;
34
- r < 0.25 ? i = r / 0.25 * 0.5 * e : r < 0.75 ? i = 0.5 * e : i = 0.5 * e + (r - 0.75) / 0.25 * 0.5 * e, o.set(m.current, { height: i });
32
+ const n = _.progress;
33
+ let r;
34
+ n < 0.25 ? r = n / 0.25 * 0.5 * e : n < 0.75 ? r = 0.5 * e : r = 0.5 * e + (n - 0.75) / 0.25 * 0.5 * e, o.set(m.current, { height: r });
35
35
  }
36
36
  });
37
37
  }, s);
38
- return () => l.revert();
39
- }, []), /* @__PURE__ */ c(h, { children: [
40
- /* @__PURE__ */ t("div", { className: n.spacer }),
41
- /* @__PURE__ */ c("section", { className: n.timelineWrapper, ref: s, children: [
42
- /* @__PURE__ */ t("div", { className: n.linePin, children: /* @__PURE__ */ t("div", { className: n.timelineLine, ref: m }) }),
43
- /* @__PURE__ */ t("div", { className: n.items, children: W.map((e, l) => /* @__PURE__ */ t("div", { className: n.item, children: /* @__PURE__ */ c("div", { className: n.text, children: [
38
+ return () => c.revert();
39
+ }, []), /* @__PURE__ */ l(g, { children: [
40
+ /* @__PURE__ */ t("div", { className: i.spacer }),
41
+ /* @__PURE__ */ l("section", { className: i.timelineWrapper, ref: s, children: [
42
+ /* @__PURE__ */ t("div", { className: i.linePin, children: /* @__PURE__ */ t("div", { className: i.timelineLine, ref: m }) }),
43
+ /* @__PURE__ */ t("div", { className: i.items, children: W.map((e, c) => /* @__PURE__ */ t("div", { className: i.item, children: /* @__PURE__ */ l("div", { className: i.text, children: [
44
44
  /* @__PURE__ */ t("h3", { children: e.year }),
45
45
  /* @__PURE__ */ t("p", { children: e.text })
46
- ] }) }, l)) })
46
+ ] }) }, c)) })
47
47
  ] }),
48
- /* @__PURE__ */ t("div", { className: n.spacer })
48
+ /* @__PURE__ */ t("div", { className: i.spacer })
49
49
  ] });
50
50
  }
51
51
  export {
package/dist/index.js ADDED
@@ -0,0 +1,52 @@
1
+ import { default as y } from "./components/Background/Background.js";
2
+ import { default as _ } from "./components/Banner/Banner.js";
3
+ import { default as g } from "./components/BorderedBackground/BorderedBackground.js";
4
+ import t from "./components/Button/Button.js";
5
+ import { default as k } from "./components/Container/Container.js";
6
+ import { default as O } from "./components/Fifty/Fifty.js";
7
+ import { default as j } from "./components/Footer/Footer.js";
8
+ import { default as z } from "./components/ImageTextBlock/ImageTextBlock.js";
9
+ import { default as G } from "./components/List/List.js";
10
+ import { default as D } from "./components/OverlayHero/OverlayHero.js";
11
+ import { default as L } from "./components/Note/Note.js";
12
+ import { default as T } from "./components/Promo/Promo.js";
13
+ import { default as A } from "./components/PromoGroup/PromoGroup.js";
14
+ import { default as J } from "./components/MenuButton/MenuButton.js";
15
+ import { default as Q } from "./components/Navbar/Navbar.js";
16
+ import { default as S } from "./components/PinnedImage/PinnedImage.js";
17
+ import { default as V } from "./components/IconDetail/IconDetail.js";
18
+ import { default as X } from "./components/Overlay/Overlay.js";
19
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
20
+ import d from "./utils/parse.js";
21
+ import './assets/index.css';const m = "_overlay_10zq6_2", u = "_ctas_10zq6_54", f = {
22
+ overlay: m,
23
+ ctas: u
24
+ }, c = ({ header: s, body: l, primaryCta: o, secondaryCta: r }) => /* @__PURE__ */ a("div", { className: f.overlay, children: [
25
+ /* @__PURE__ */ e("h2", { children: s }),
26
+ /* @__PURE__ */ e("div", { children: d(l) }),
27
+ /* @__PURE__ */ a("div", { className: f.ctas, children: [
28
+ o && /* @__PURE__ */ e(t, { ...o }),
29
+ r && /* @__PURE__ */ e(t, { ...r })
30
+ ] })
31
+ ] });
32
+ export {
33
+ y as Background,
34
+ _ as Banner,
35
+ g as BorderedBackground,
36
+ t as Button,
37
+ k as Container,
38
+ O as Fifty,
39
+ j as Footer,
40
+ c as GenericOverlay,
41
+ V as IconDetail,
42
+ z as ImageTextBlock,
43
+ G as List,
44
+ J as MenuButton,
45
+ Q as Navbar,
46
+ L as Note,
47
+ X as Overlay,
48
+ D as OverlayHero,
49
+ S as PinnedImage,
50
+ T as Promo,
51
+ A as PromoGroup
52
+ };
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@courtneyring/components-library",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
5
8
  "exports": {
6
9
  ".": {
7
- "default": "./dist/main.js"
10
+ "default": "./dist/index.js"
8
11
  }
9
12
  },
10
13
  "files": [
@@ -23,6 +26,7 @@
23
26
  "classnames": "^2.5.1",
24
27
  "gsap": "^3.13.0",
25
28
  "moment": "^2.30.1",
29
+ "motion": "^12.26.2",
26
30
  "react": "^19.1.1",
27
31
  "react-dom": "^19.1.1"
28
32
  },
@@ -32,12 +36,12 @@
32
36
  "@storybook/addon-a11y": "^9.1.10",
33
37
  "@storybook/addon-docs": "^9.1.10",
34
38
  "@storybook/react-vite": "^9.1.10",
35
- "@vitejs/plugin-react": "^5.0.4",
39
+ "@vitejs/plugin-react": "^5.1.2",
36
40
  "eslint": "^9.36.0",
37
41
  "eslint-plugin-react-hooks": "^5.2.0",
38
42
  "eslint-plugin-react-refresh": "^0.4.22",
39
43
  "eslint-plugin-storybook": "^9.1.10",
40
- "glob": "^11.0.3",
44
+ "glob": "^11.1.0",
41
45
  "globals": "^16.4.0",
42
46
  "sass-embedded": "^1.93.2",
43
47
  "storybook": "^9.1.10",
package/dist/main.js DELETED
@@ -1,24 +0,0 @@
1
- import { default as r } from "./components/Background/Background.js";
2
- import { default as a } from "./components/Banner/Banner.js";
3
- import { default as d } from "./components/BorderedBackground/BorderedBackground.js";
4
- import { default as l } from "./components/Button/Button.js";
5
- import { default as s } from "./components/Container/Container.js";
6
- import { default as p } from "./components/Fifty/Fifty.js";
7
- import { default as B } from "./components/Footer/Footer.js";
8
- import { default as g } from "./components/ImageTextBlock/ImageTextBlock.js";
9
- import { default as k } from "./components/List/List.js";
10
- import { default as F } from "./components/OverlayHero/OverlayHero.js";
11
- import { default as C } from "./components/Note/Note.js";
12
- export {
13
- r as Background,
14
- a as Banner,
15
- d as BorderedBackground,
16
- l as Button,
17
- s as Container,
18
- p as Fifty,
19
- B as Footer,
20
- g as ImageTextBlock,
21
- k as List,
22
- C as Note,
23
- F as OverlayHero
24
- };