@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.
- package/README.md +11 -11
- package/dist/AccordionItem-DuHzStoZ.js +40 -0
- package/dist/{Particles-O0-WQKRj.js → Particles-CKNJUrOc.js} +3 -0
- package/dist/animations/FadeIn.js +8 -1
- package/dist/assets/AccordionItem.css +1 -0
- package/dist/assets/Banner.css +1 -1
- package/dist/assets/Container.css +1 -1
- package/dist/assets/Fifty.css +1 -1
- package/dist/assets/GenericOverlay.css +1 -1
- package/dist/assets/IconDetail.css +1 -1
- package/dist/assets/MenuButton.css +1 -1
- package/dist/assets/Navbar.css +1 -1
- package/dist/assets/Overlay.css +1 -1
- package/dist/assets/OverlayHero.css +1 -1
- package/dist/assets/PinnedImage.css +1 -1
- package/dist/assets/PromoGroup.css +1 -1
- package/dist/assets/RSVPEmbed.css +1 -0
- package/dist/assets/TextBlock.css +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/components/Accordion/Accordion.js +26 -0
- package/dist/components/Accordion/AccordionItem.js +8 -0
- package/dist/components/Banner/Banner.js +14 -14
- package/dist/components/Container/Container.js +28 -16
- package/dist/components/Fifty/Fifty.js +26 -17
- package/dist/components/GenericOverlay/GenericOverlay.js +16 -16
- package/dist/components/IconDetail/IconDetail.js +7 -7
- package/dist/components/ImageTextBlock/ImageTextBlock.js +26 -32
- package/dist/components/MenuButton/MenuButton.js +18 -18
- package/dist/components/Navbar/Navbar.js +43 -43
- package/dist/components/Overlay/Overlay.js +25 -19
- package/dist/components/OverlayHero/OverlayHero.js +7 -7
- package/dist/components/PageContainer/PageContainer.js +19 -5
- package/dist/components/ParticleBackground/ParticleBackground.js +31 -0
- package/dist/components/PinnedImage/PinnedImage.js +30 -30
- package/dist/components/PromoGroup/PromoGroup.js +27 -20
- package/dist/components/RSVPEmbed/RSVPEmbed.js +18 -0
- package/dist/components/TextBlock/TextBlock.js +27 -0
- package/dist/components/Toolbar/Toolbar.js +5 -5
- package/dist/index.js +68 -64
- 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-
|
|
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(
|
|
25
|
+
/* @__PURE__ */ t(
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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 [
|
|
9
|
-
|
|
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",
|
|
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
|
-
|
|
14
|
+
s.innerWidth
|
|
15
15
|
] }),
|
|
16
16
|
/* @__PURE__ */ o("div", { children: [
|
|
17
17
|
"Height: ",
|
|
18
|
-
|
|
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
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
] },
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
A as
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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.
|
|
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",
|