@courtneyring/components-library 1.0.19 → 1.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.
Files changed (40) hide show
  1. package/README.md +11 -11
  2. package/dist/AccordionItem-DuHzStoZ.js +40 -0
  3. package/dist/{Particles-O0-WQKRj.js → Particles-CKNJUrOc.js} +3 -0
  4. package/dist/animations/FadeIn.js +8 -1
  5. package/dist/assets/AccordionItem.css +1 -0
  6. package/dist/assets/Banner.css +1 -1
  7. package/dist/assets/Container.css +1 -1
  8. package/dist/assets/Fifty.css +1 -1
  9. package/dist/assets/GenericOverlay.css +1 -1
  10. package/dist/assets/IconDetail.css +1 -1
  11. package/dist/assets/MenuButton.css +1 -1
  12. package/dist/assets/Navbar.css +1 -1
  13. package/dist/assets/Overlay.css +1 -1
  14. package/dist/assets/OverlayHero.css +1 -1
  15. package/dist/assets/PinnedImage.css +1 -1
  16. package/dist/assets/PromoGroup.css +1 -1
  17. package/dist/assets/RSVPEmbed.css +1 -0
  18. package/dist/assets/TextBlock.css +1 -0
  19. package/dist/assets/index.css +1 -1
  20. package/dist/components/Accordion/Accordion.js +26 -0
  21. package/dist/components/Accordion/AccordionItem.js +8 -0
  22. package/dist/components/Banner/Banner.js +14 -14
  23. package/dist/components/Container/Container.js +28 -16
  24. package/dist/components/Fifty/Fifty.js +26 -17
  25. package/dist/components/GenericOverlay/GenericOverlay.js +16 -16
  26. package/dist/components/IconDetail/IconDetail.js +7 -7
  27. package/dist/components/ImageTextBlock/ImageTextBlock.js +26 -32
  28. package/dist/components/MenuButton/MenuButton.js +18 -18
  29. package/dist/components/Navbar/Navbar.js +43 -43
  30. package/dist/components/Overlay/Overlay.js +25 -19
  31. package/dist/components/OverlayHero/OverlayHero.js +7 -7
  32. package/dist/components/PageContainer/PageContainer.js +19 -5
  33. package/dist/components/ParticleBackground/ParticleBackground.js +31 -0
  34. package/dist/components/PinnedImage/PinnedImage.js +30 -30
  35. package/dist/components/PromoGroup/PromoGroup.js +27 -20
  36. package/dist/components/RSVPEmbed/RSVPEmbed.js +18 -0
  37. package/dist/components/TextBlock/TextBlock.js +27 -0
  38. package/dist/components/Toolbar/Toolbar.js +5 -5
  39. package/dist/index.js +68 -64
  40. package/package.json +4 -2
@@ -5,7 +5,7 @@ import "../../index-BlCqcUwj.js";
5
5
  import "../../hooks/useFadeIn.js";
6
6
  import d from "../Button/Button.js";
7
7
  import { c as m } from "../../index-BIlioXmW.js";
8
- import "../../Particles-O0-WQKRj.js";
8
+ import "../../Particles-CKNJUrOc.js";
9
9
  import "../../index-DyQs5aC7.js";
10
10
  import "../PinnedImage/PinnedImage.js";
11
11
  import "../ParallaxImageGrid/ParallaxImageGrid.js";
@@ -22,27 +22,34 @@ import '../../assets/PromoGroup.css';const n = "_group_qbcz0_2", h = "_slider_qb
22
22
  statText: z
23
23
  }, P = ({ header: i, promos: s }) => /* @__PURE__ */ c(l, { children: [
24
24
  /* @__PURE__ */ t("h2", { className: e.header, children: i }),
25
- /* @__PURE__ */ t("div", { className: m(e.group, s.length > 3 && e.slider), style: { "--promos": s.length }, children: s.map((a, r) => /* @__PURE__ */ c(
25
+ /* @__PURE__ */ t(
26
26
  "div",
27
27
  {
28
- delay: 0.1 * r,
29
- className: e.promo,
30
- "data-color": a.color,
31
- "data-text-align": a.textAlign,
32
- children: [
33
- a.icon && /* @__PURE__ */ t("span", { className: "material-symbols-outlined", children: a.icon }),
34
- a.image && /* @__PURE__ */ t("img", { className: e.image, src: a.image }),
35
- a.header && /* @__PURE__ */ t("h3", { className: e.promo__header, children: a.header }),
36
- /* @__PURE__ */ t("p", { className: e.promo__body, children: a.body }),
37
- a.cta && /* @__PURE__ */ t("div", { className: e.cta, children: /* @__PURE__ */ t(d, { ...a.cta }) }),
38
- a.stats && /* @__PURE__ */ t("div", { className: e.stats, children: a.stats.map((o, _) => /* @__PURE__ */ c("div", { className: e.stat, children: [
39
- /* @__PURE__ */ t("span", { className: "material-symbols-outlined", children: o.icon }),
40
- /* @__PURE__ */ t("span", { className: e.statText, children: o.text })
41
- ] }, `stat-${_}`)) })
42
- ]
43
- },
44
- `promo-${r}`
45
- )) })
28
+ className: m(e.group, s.length > 3 && e.slider),
29
+ style: { "--promos": s.length },
30
+ children: s.map((a, r) => /* @__PURE__ */ c(
31
+ "div",
32
+ {
33
+ delay: 0.1 * r,
34
+ className: e.promo,
35
+ "data-color": a.color,
36
+ "data-text-align": a.textAlign,
37
+ children: [
38
+ a.icon && /* @__PURE__ */ t("span", { className: "material-symbols-outlined", children: a.icon }),
39
+ a.image && /* @__PURE__ */ t("img", { className: e.image, src: a.image }),
40
+ a.header && /* @__PURE__ */ t("h3", { className: e.promo__header, children: a.header }),
41
+ /* @__PURE__ */ t("p", { className: e.promo__body, children: a.body }),
42
+ a.cta && /* @__PURE__ */ t("div", { className: e.cta, children: /* @__PURE__ */ t(d, { ...a.cta }) }),
43
+ a.stats && /* @__PURE__ */ t("div", { className: e.stats, children: a.stats.map((o, _) => /* @__PURE__ */ c("div", { className: e.stat, children: [
44
+ /* @__PURE__ */ t("span", { className: "material-symbols-outlined", children: o.icon }),
45
+ /* @__PURE__ */ t("span", { className: e.statText, children: o.text })
46
+ ] }, `stat-${_}`)) })
47
+ ]
48
+ },
49
+ `promo-${r}`
50
+ ))
51
+ }
52
+ )
46
53
  ] });
47
54
  export {
48
55
  P as default
@@ -0,0 +1,18 @@
1
+ "use client";
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ import { useRef as c, useEffect as s } from "react";
4
+ import '../../assets/RSVPEmbed.css';const p = "_wrapper_1mgkx_1", a = {
5
+ wrapper: p
6
+ };
7
+ function f({ embedUrl: t }) {
8
+ const r = c(null);
9
+ return s(() => {
10
+ const e = document.createElement("script");
11
+ return e.src = t, e.async = !0, r.current?.appendChild(e), () => {
12
+ r.current && (r.current.innerHTML = "");
13
+ };
14
+ }, []), /* @__PURE__ */ n("div", { ref: r, className: a.wrapper });
15
+ }
16
+ export {
17
+ f as default
18
+ };
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import { jsxs as l, jsx as c } from "react/jsx-runtime";
3
+ import { createElement as d } from "react";
4
+ import n from "../../utils/parse.js";
5
+ import m from "../IconDetail/IconDetail.js";
6
+ import '../../assets/TextBlock.css';const h = "_title_1v9uh_1", _ = "_blocks_1v9uh_47", p = "_block_1v9uh_47", k = "_blockHeader_1v9uh_58", v = "_description_1v9uh_88", e = {
7
+ title: h,
8
+ blocks: _,
9
+ block: p,
10
+ blockHeader: k,
11
+ description: v
12
+ }, x = ({ header: t, blocks: i }) => /* @__PURE__ */ l("div", { className: e.container, children: [
13
+ /* @__PURE__ */ c("h2", { className: e.title, children: t }),
14
+ /* @__PURE__ */ c("div", { className: e.blocks, children: i.map((s, o) => (
15
+ // <div className={styles.block} key={`block-${idx}`}>
16
+ /* @__PURE__ */ l("div", { className: e.block, children: [
17
+ /* @__PURE__ */ c("h3", { className: e.blockHeader, children: s.header }),
18
+ /* @__PURE__ */ l("div", { className: e.content, children: [
19
+ /* @__PURE__ */ c("div", { className: e.description, children: n(s.description) }),
20
+ /* @__PURE__ */ c("div", { className: e.details, children: s.details && s.details.map((a, r) => /* @__PURE__ */ d(m, { ...a, key: r })) })
21
+ ] })
22
+ ] }, `block-${o}`)
23
+ )) })
24
+ ] });
25
+ export {
26
+ x as default
27
+ };
@@ -5,17 +5,17 @@ import { useState as l, useEffect as c } from "react";
5
5
  import '../../assets/Toolbar.css';const h = "_toolbar_17thg_1", m = {
6
6
  toolbar: h
7
7
  }, g = () => {
8
- const [e, n] = l(!0), r = d(), s = (t) => {
9
- console.log(t.code), t.code === "KeyI" && (t.preventDefault(), t.stopPropagation(), n(!e));
8
+ const [t, n] = l(!1), s = d(), r = (e) => {
9
+ e.code === "KeyI" && (e.preventDefault(), e.stopPropagation(), n(!t));
10
10
  };
11
- return c(() => (window.addEventListener("keyup", s), () => window.removeEventListener("keyup", s)), [e]), e ? /* @__PURE__ */ o("div", { className: m.toolbar, children: [
11
+ return c(() => (window.addEventListener("keyup", r), () => window.removeEventListener("keyup", r)), [t]), t ? /* @__PURE__ */ o("div", { className: m.toolbar, children: [
12
12
  /* @__PURE__ */ o("div", { children: [
13
13
  "Width: ",
14
- r.innerWidth
14
+ s.innerWidth
15
15
  ] }),
16
16
  /* @__PURE__ */ o("div", { children: [
17
17
  "Height: ",
18
- r.innerHeight
18
+ s.innerHeight
19
19
  ] })
20
20
  ] }) : /* @__PURE__ */ i(a, {});
21
21
  };
package/dist/index.js CHANGED
@@ -1,67 +1,71 @@
1
- import { default as g } from "./components/PromoGroup/PromoGroup.js";
2
- import { default as H } from "./components/Background/Background.js";
3
- import { default as O } from "./components/Banner/Banner.js";
4
- import { default as T } from "./components/BorderedBackground/BorderedBackground.js";
5
- import { default as F } from "./components/Button/Button.js";
6
- import { default as D } from "./components/Container/Container.js";
7
- import { default as L } from "./components/Fifty/Fifty.js";
8
- import { default as $ } from "./components/Footer/Footer.js";
9
- import { default as w } from "./components/ImageTextBlock/ImageTextBlock.js";
10
- import { default as A } from "./components/List/List.js";
11
- import { default as K } from "./components/OverlayHero/OverlayHero.js";
12
- import { default as R } from "./components/Note/Note.js";
13
- import { default as U } from "./components/MenuButton/MenuButton.js";
14
- import { default as W } from "./components/Navbar/Navbar.js";
15
- import { default as Y } from "./components/PinnedImage/PinnedImage.js";
16
- import f from "./components/IconDetail/IconDetail.js";
17
- import { default as ee } from "./components/Overlay/Overlay.js";
18
- import { default as oe } from "./components/GenericOverlay/GenericOverlay.js";
19
- import { default as te } from "./components/Toolbar/Toolbar.js";
20
- import { default as se } from "./components/GridGallery/GridGallery.js";
21
- import { default as ce } from "./components/ParallaxImageGrid/ParallaxImageGrid.js";
22
- import { jsxs as a, jsx as r } from "react/jsx-runtime";
23
- import { createElement as i } from "react";
24
- import m from "./utils/parse.js";
25
- import './assets/index.css';const n = "_title_1v9uh_1", p = "_blocks_1v9uh_47", u = "_block_1v9uh_47", x = "_blockHeader_1v9uh_58", h = "_description_1v9uh_88", e = {
26
- title: n,
27
- blocks: p,
28
- block: u,
29
- blockHeader: x,
30
- description: h
31
- }, N = ({ header: t, blocks: l }) => /* @__PURE__ */ a("div", { className: e.container, children: [
32
- /* @__PURE__ */ r("h2", { className: e.title, children: t }),
33
- /* @__PURE__ */ r("div", { className: e.blocks, children: l.map((o, s) => (
34
- // <div className={styles.block} key={`block-${idx}`}>
35
- /* @__PURE__ */ a("div", { className: e.block, children: [
36
- /* @__PURE__ */ r("h3", { className: e.blockHeader, children: o.header }),
37
- /* @__PURE__ */ a("div", { className: e.content, children: [
38
- /* @__PURE__ */ r("div", { className: e.description, children: m(o.description) }),
39
- /* @__PURE__ */ r("div", { className: e.details, children: o.details && o.details.map((d, c) => /* @__PURE__ */ i(f, { ...d, key: c })) })
40
- ] })
41
- ] }, `block-${s}`)
42
- )) })
1
+ import { default as v } from "./components/PromoGroup/PromoGroup.js";
2
+ import { default as B } from "./components/Background/Background.js";
3
+ import { default as y } from "./components/Banner/Banner.js";
4
+ import { default as G } from "./components/BorderedBackground/BorderedBackground.js";
5
+ import { default as I } from "./components/Button/Button.js";
6
+ import { default as b } from "./components/Container/Container.js";
7
+ import { default as O } from "./components/Fifty/Fifty.js";
8
+ import { default as j } from "./components/Footer/Footer.js";
9
+ import { default as A } from "./components/ImageTextBlock/ImageTextBlock.js";
10
+ import { default as D } from "./components/List/List.js";
11
+ import { default as H } from "./components/OverlayHero/OverlayHero.js";
12
+ import { default as M } from "./components/Note/Note.js";
13
+ import { default as V } from "./components/MenuButton/MenuButton.js";
14
+ import { default as J } from "./components/Navbar/Navbar.js";
15
+ import { default as Q } from "./components/PinnedImage/PinnedImage.js";
16
+ import { default as W } from "./components/IconDetail/IconDetail.js";
17
+ import { default as Y } from "./components/Overlay/Overlay.js";
18
+ import { default as $ } from "./components/GenericOverlay/GenericOverlay.js";
19
+ import { default as ae } from "./components/Toolbar/Toolbar.js";
20
+ import { default as te } from "./components/GridGallery/GridGallery.js";
21
+ import { default as le } from "./components/ParallaxImageGrid/ParallaxImageGrid.js";
22
+ import { default as se } from "./components/TextBlock/TextBlock.js";
23
+ import { default as fe } from "./components/RSVPEmbed/RSVPEmbed.js";
24
+ import { default as ne } from "./components/Accordion/Accordion.js";
25
+ import { jsxs as r, jsx as a } from "react/jsx-runtime";
26
+ import { Fragment as s } from "react";
27
+ import './assets/index.css';const m = "_schedule_3q4gz_2", f = "_timeline_3q4gz_75", i = "_time_3q4gz_75", n = "_dot_3q4gz_88", c = "_diagram_3q4gz_96", u = "_line_3q4gz_102", e = {
28
+ schedule: m,
29
+ timeline: f,
30
+ time: i,
31
+ dot: n,
32
+ diagram: c,
33
+ line: u
34
+ }, _ = ({ slots: o, header: l }) => /* @__PURE__ */ r("div", { className: e.schedule, children: [
35
+ /* @__PURE__ */ a("h3", { children: l }),
36
+ /* @__PURE__ */ a("div", { className: e.timeline, children: o.map((t, d) => /* @__PURE__ */ r(s, { children: [
37
+ /* @__PURE__ */ a("div", { className: e.time, children: t.time }),
38
+ /* @__PURE__ */ r("div", { className: e.diagram, children: [
39
+ /* @__PURE__ */ a("span", { className: e.line }),
40
+ /* @__PURE__ */ a("div", { className: e.dot })
41
+ ] }),
42
+ /* @__PURE__ */ a("div", { className: e.description, children: t.description })
43
+ ] }, d)) })
43
44
  ] });
44
45
  export {
45
- H as Background,
46
- O as Banner,
47
- T as BorderedBackground,
48
- F as Button,
49
- D as Container,
50
- L as Fifty,
51
- $ as Footer,
52
- oe as GenericOverlay,
53
- se as GridGallery,
54
- f as IconDetail,
55
- w as ImageTextBlock,
56
- A as List,
57
- U as MenuButton,
58
- W as Navbar,
59
- R as Note,
60
- ee as Overlay,
61
- K as OverlayHero,
62
- ce as ParallaxImageGrid,
63
- Y as PinnedImage,
64
- g as PromoGroup,
65
- N as TextBlock,
66
- te as Toolbar
46
+ ne as Accordion,
47
+ B as Background,
48
+ y as Banner,
49
+ G as BorderedBackground,
50
+ I as Button,
51
+ b as Container,
52
+ O as Fifty,
53
+ j as Footer,
54
+ $ as GenericOverlay,
55
+ te as GridGallery,
56
+ W as IconDetail,
57
+ A as ImageTextBlock,
58
+ D as List,
59
+ V as MenuButton,
60
+ J as Navbar,
61
+ M as Note,
62
+ Y as Overlay,
63
+ H as OverlayHero,
64
+ le as ParallaxImageGrid,
65
+ Q as PinnedImage,
66
+ v as PromoGroup,
67
+ fe as RSVPEmbed,
68
+ _ as Schedule,
69
+ se as TextBlock,
70
+ ae as Toolbar
67
71
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@courtneyring/components-library",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -19,7 +19,8 @@
19
19
  "lint": "eslint .",
20
20
  "preview": "vite preview",
21
21
  "storybook": "storybook dev -p 6006",
22
- "build-storybook": "storybook build"
22
+ "build-storybook": "storybook build",
23
+ "publish-package": "npm publish --access public"
23
24
  },
24
25
  "dependencies": {
25
26
  "@gsap/react": "^2.1.2",
@@ -46,6 +47,7 @@
46
47
  "eslint-plugin-storybook": "^9.1.10",
47
48
  "glob": "^11.1.0",
48
49
  "globals": "^16.4.0",
50
+ "prettier": "^3.8.1",
49
51
  "sass-embedded": "^1.93.2",
50
52
  "storybook": "^9.1.10",
51
53
  "vite": "^7.1.7",