@courtneyring/components-library 1.0.1 → 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.
- 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/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/assets/index.css +1 -0
- package/dist/components/Banner/Banner.js +12 -10
- package/dist/components/Button/Button.js +27 -23
- package/dist/components/Container/Container.js +3 -3
- package/dist/components/Fifty/Fifty.js +15 -15
- package/dist/components/Footer/Footer.js +7 -7
- package/dist/components/IconDetail/IconDetail.js +14 -0
- package/dist/components/ImageTextBlock/ImageTextBlock.js +12 -12
- package/dist/components/List/List.js +7 -7
- package/dist/components/MenuButton/MenuButton.js +13 -13
- package/dist/components/Navbar/Navbar.js +135 -96
- package/dist/components/Note/Note.js +10 -10
- package/dist/components/Overlay/Overlay.js +17 -17
- package/dist/components/OverlayHero/OverlayHero.js +7 -7
- package/dist/components/PageContainer/PageContainer.js +13 -13
- package/dist/components/PinnedImage/PinnedImage.js +44 -0
- package/dist/components/Promo/Promo.js +30 -21
- package/dist/components/PromoGroup/PromoGroup.js +10 -6
- package/dist/index.js +52 -0
- package/package.json +5 -2
- package/dist/main.js +0 -30
|
@@ -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 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
|
+
);
|
|
22
31
|
export {
|
|
23
|
-
|
|
32
|
+
w 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 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
|
+
] });
|
|
7
11
|
export {
|
|
8
|
-
|
|
12
|
+
l as default
|
|
9
13
|
};
|
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.
|
|
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/
|
|
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
|
-
};
|