@courtneyring/components-library 1.0.1 → 1.0.3
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/dist/assets/Banner.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Container.css +1 -1
- package/dist/assets/Fifty.css +1 -1
- package/dist/assets/Footer.css +1 -1
- package/dist/assets/GenericOverlay.css +1 -0
- package/dist/assets/IconDetail.css +1 -0
- package/dist/assets/ImageTextBlock.css +1 -1
- package/dist/assets/List.css +1 -1
- package/dist/assets/MenuButton.css +1 -1
- package/dist/assets/Navbar.css +1 -1
- package/dist/assets/Note.css +1 -1
- package/dist/assets/Overlay.css +1 -1
- package/dist/assets/OverlayHero.css +1 -1
- package/dist/assets/PageContainer.css +1 -1
- package/dist/assets/PinnedImage.css +1 -0
- package/dist/assets/Promo.css +1 -1
- package/dist/assets/PromoGroup.css +1 -1
- package/dist/components/Banner/Banner.js +12 -10
- package/dist/components/Button/Button.js +25 -21
- package/dist/components/Container/Container.js +2 -2
- package/dist/components/Fifty/Fifty.js +10 -10
- package/dist/components/Footer/Footer.js +7 -7
- package/dist/components/GenericOverlay/GenericOverlay.js +20 -0
- package/dist/components/IconDetail/IconDetail.js +14 -0
- package/dist/components/ImageTextBlock/ImageTextBlock.js +22 -22
- package/dist/components/List/List.js +10 -10
- package/dist/components/MenuButton/MenuButton.js +13 -13
- package/dist/components/Navbar/Navbar.js +146 -107
- package/dist/components/Note/Note.js +15 -15
- package/dist/components/Overlay/Overlay.js +34 -20
- package/dist/components/OverlayHero/OverlayHero.js +13 -13
- package/dist/components/PageContainer/PageContainer.js +11 -11
- package/dist/components/PinnedImage/PinnedImage.js +38 -0
- package/dist/components/Promo/Promo.js +30 -21
- package/dist/components/PromoGroup/PromoGroup.js +10 -6
- package/dist/index.js +40 -0
- package/package.json +5 -2
- package/dist/main.js +0 -30
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as o, useEffect as p, createElement as h } from "react";
|
|
4
|
+
import N from "../IconDetail/IconDetail.js";
|
|
5
|
+
import '../../assets/PinnedImage.css';const b = "_container_1odbn_1", g = "_content_1odbn_5", u = "_title_1odbn_9", v = "_image_1odbn_35", x = "_section_1odbn_46", y = "_copy_1odbn_57", R = "_text_1odbn_70", e = {
|
|
6
|
+
container: b,
|
|
7
|
+
content: g,
|
|
8
|
+
title: u,
|
|
9
|
+
image: v,
|
|
10
|
+
section: x,
|
|
11
|
+
copy: y,
|
|
12
|
+
text: R
|
|
13
|
+
}, k = ({ image: a, title: l, sections: r }) => {
|
|
14
|
+
const d = o(null), m = o(null), _ = o([]);
|
|
15
|
+
return p(() => {
|
|
16
|
+
}, []), /* @__PURE__ */ s("div", { className: e.container, ref: d, children: [
|
|
17
|
+
/* @__PURE__ */ t("div", { className: e.title, children: l }),
|
|
18
|
+
/* @__PURE__ */ s("div", { className: e.content, children: [
|
|
19
|
+
/* @__PURE__ */ t("div", { className: e.image, ref: m, children: /* @__PURE__ */ t("img", { src: a }) }),
|
|
20
|
+
/* @__PURE__ */ t("div", { className: e.copy, children: r.map((n, i) => /* @__PURE__ */ s(
|
|
21
|
+
"div",
|
|
22
|
+
{
|
|
23
|
+
className: e.section,
|
|
24
|
+
ref: (c) => _.current[i] = c,
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ t("h3", { children: n.header }),
|
|
27
|
+
/* @__PURE__ */ t("p", { className: e.text, children: n.description }),
|
|
28
|
+
/* @__PURE__ */ t("div", { className: e.details, children: n.details && n.details.map((c, f) => /* @__PURE__ */ h(N, { ...c, key: f })) })
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
i
|
|
32
|
+
)) })
|
|
33
|
+
] })
|
|
34
|
+
] });
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
k as default
|
|
38
|
+
};
|
|
@@ -1,24 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import i from "../Button/Button.js";
|
|
4
|
+
import '../../assets/Promo.css';const p = "_promo_1fkmj_1", h = "_image_1fkmj_48", f = "_promo__header_1fkmj_53", x = "_promo__body_1fkmj_76", j = "_stat_1fkmj_88", N = "_statText_1fkmj_98", s = {
|
|
5
|
+
promo: p,
|
|
6
|
+
image: h,
|
|
7
|
+
promo__header: f,
|
|
8
|
+
promo__body: x,
|
|
9
|
+
stat: j,
|
|
10
|
+
statText: N
|
|
11
|
+
}, k = ({ icon: e, header: m, body: c, cta: a, color: n, stats: t, image: r, textAlign: d }) => /* @__PURE__ */ l(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
className: ` ${s.promo}`,
|
|
15
|
+
href: a?.value,
|
|
16
|
+
"data-color": n,
|
|
17
|
+
"data-text-align": d,
|
|
18
|
+
children: [
|
|
19
|
+
e && /* @__PURE__ */ o("span", { className: "material-symbols-outlined", children: e }),
|
|
20
|
+
r && /* @__PURE__ */ o("img", { className: s.image, src: r }),
|
|
21
|
+
m && /* @__PURE__ */ o("h3", { className: s.promo__header, children: m }),
|
|
22
|
+
/* @__PURE__ */ o("p", { className: s.promo__body, children: c }),
|
|
23
|
+
a && /* @__PURE__ */ o(i, { ...a }),
|
|
24
|
+
t && t.map((_) => /* @__PURE__ */ l("div", { className: s.stat, children: [
|
|
25
|
+
/* @__PURE__ */ o("span", { className: "material-symbols-outlined", children: _.icon }),
|
|
26
|
+
/* @__PURE__ */ o("span", { className: s.statText, children: _.text })
|
|
27
|
+
] }))
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
);
|
|
22
31
|
export {
|
|
23
|
-
|
|
32
|
+
k as default
|
|
24
33
|
};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { Children as
|
|
4
|
-
import '../../assets/PromoGroup.css';const
|
|
5
|
-
group:
|
|
6
|
-
|
|
2
|
+
import { jsxs as m, Fragment as t, jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import { Children as d, Fragment as c } from "react";
|
|
4
|
+
import '../../assets/PromoGroup.css';const h = "_group_fnbmk_1", l = "_header_fnbmk_8", e = {
|
|
5
|
+
group: h,
|
|
6
|
+
header: l
|
|
7
|
+
}, g = ({ header: o, children: a }) => /* @__PURE__ */ m(t, { children: [
|
|
8
|
+
/* @__PURE__ */ r("h2", { className: e.header, children: o }),
|
|
9
|
+
/* @__PURE__ */ r("div", { className: e.group, children: d.map(a, (n, s) => /* @__PURE__ */ r(c, { children: n }, s)) })
|
|
10
|
+
] });
|
|
7
11
|
export {
|
|
8
|
-
|
|
12
|
+
g as default
|
|
9
13
|
};
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { default as r } from "./components/Background/Background.js";
|
|
2
|
+
import { default as t } from "./components/Banner/Banner.js";
|
|
3
|
+
import { default as u } from "./components/BorderedBackground/BorderedBackground.js";
|
|
4
|
+
import { default as l } from "./components/Button/Button.js";
|
|
5
|
+
import { default as p } from "./components/Container/Container.js";
|
|
6
|
+
import { default as x } from "./components/Fifty/Fifty.js";
|
|
7
|
+
import { default as B } from "./components/Footer/Footer.js";
|
|
8
|
+
import { default as c } from "./components/ImageTextBlock/ImageTextBlock.js";
|
|
9
|
+
import { default as v } from "./components/List/List.js";
|
|
10
|
+
import { default as k } from "./components/OverlayHero/OverlayHero.js";
|
|
11
|
+
import { default as O } from "./components/Note/Note.js";
|
|
12
|
+
import { default as F } from "./components/Promo/Promo.js";
|
|
13
|
+
import { default as N } from "./components/PromoGroup/PromoGroup.js";
|
|
14
|
+
import { default as C } from "./components/MenuButton/MenuButton.js";
|
|
15
|
+
import { default as H } from "./components/Navbar/Navbar.js";
|
|
16
|
+
import { default as M } from "./components/PinnedImage/PinnedImage.js";
|
|
17
|
+
import { default as h } from "./components/IconDetail/IconDetail.js";
|
|
18
|
+
import { default as q } from "./components/Overlay/Overlay.js";
|
|
19
|
+
import { default as z } from "./components/GenericOverlay/GenericOverlay.js";
|
|
20
|
+
export {
|
|
21
|
+
r as Background,
|
|
22
|
+
t as Banner,
|
|
23
|
+
u as BorderedBackground,
|
|
24
|
+
l as Button,
|
|
25
|
+
p as Container,
|
|
26
|
+
x as Fifty,
|
|
27
|
+
B as Footer,
|
|
28
|
+
z as GenericOverlay,
|
|
29
|
+
h as IconDetail,
|
|
30
|
+
c as ImageTextBlock,
|
|
31
|
+
v as List,
|
|
32
|
+
C as MenuButton,
|
|
33
|
+
H as Navbar,
|
|
34
|
+
O as Note,
|
|
35
|
+
q as Overlay,
|
|
36
|
+
k as OverlayHero,
|
|
37
|
+
M as PinnedImage,
|
|
38
|
+
F as Promo,
|
|
39
|
+
N as PromoGroup
|
|
40
|
+
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@courtneyring/components-library",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
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/
|
|
10
|
+
"default": "./dist/index.js"
|
|
8
11
|
}
|
|
9
12
|
},
|
|
10
13
|
"files": [
|
package/dist/main.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { default as e } from "./components/Background/Background.js";
|
|
2
|
-
import { default as a } from "./components/Banner/Banner.js";
|
|
3
|
-
import { default as u } from "./components/BorderedBackground/BorderedBackground.js";
|
|
4
|
-
import { default as m } from "./components/Button/Button.js";
|
|
5
|
-
import { default as p } from "./components/Container/Container.js";
|
|
6
|
-
import { default as x } 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 v } from "./components/Note/Note.js";
|
|
12
|
-
import { default as G } from "./components/Promo/Promo.js";
|
|
13
|
-
import { default as I } from "./components/PromoGroup/PromoGroup.js";
|
|
14
|
-
import { default as M } from "./components/MenuButton/MenuButton.js";
|
|
15
|
-
export {
|
|
16
|
-
e as Background,
|
|
17
|
-
a as Banner,
|
|
18
|
-
u as BorderedBackground,
|
|
19
|
-
m as Button,
|
|
20
|
-
p as Container,
|
|
21
|
-
x as Fifty,
|
|
22
|
-
B as Footer,
|
|
23
|
-
g as ImageTextBlock,
|
|
24
|
-
k as List,
|
|
25
|
-
M as MenuButton,
|
|
26
|
-
v as Note,
|
|
27
|
-
F as OverlayHero,
|
|
28
|
-
G as Promo,
|
|
29
|
-
I as PromoGroup
|
|
30
|
-
};
|