@courtneyring/components-library 1.0.32 → 1.0.34
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/AccordionItem-BnGlD8YU.js +40 -0
- package/dist/assets/AccordionItem.css +1 -1
- package/dist/assets/Background.css +1 -1
- 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 -1
- package/dist/assets/IconDetail.css +1 -1
- package/dist/assets/ImageTextBlock.css +1 -1
- package/dist/assets/List.css +1 -1
- package/dist/assets/Navbar.css +1 -1
- package/dist/assets/Note.css +1 -1
- package/dist/assets/OverlayHero.css +1 -1
- package/dist/assets/PageContainer.css +1 -1
- package/dist/assets/PinnedImage.css +1 -1
- package/dist/assets/PromoGroup.css +1 -1
- package/dist/assets/Schedule.css +1 -1
- package/dist/assets/TextBlock.css +1 -1
- package/dist/assets/Toolbar.css +1 -1
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/AccordionItem.js +1 -1
- package/dist/components/Background/Background.js +8 -8
- package/dist/components/Banner/Banner.js +13 -13
- package/dist/components/Button/Button.js +20 -20
- package/dist/components/Container/Container.js +24 -24
- package/dist/components/Fifty/Fifty.js +16 -16
- package/dist/components/Footer/Footer.js +6 -6
- package/dist/components/GenericOverlay/GenericOverlay.js +14 -14
- package/dist/components/IconDetail/IconDetail.js +8 -8
- package/dist/components/ImageTextBlock/ImageTextBlock.js +22 -22
- package/dist/components/List/List.js +12 -12
- package/dist/components/Navbar/Navbar.js +31 -31
- package/dist/components/Note/Note.js +11 -11
- package/dist/components/OverlayHero/OverlayHero.js +21 -21
- package/dist/components/PageContainer/PageContainer.js +6 -6
- package/dist/components/PinnedImage/PinnedImage.js +23 -23
- package/dist/components/PromoGroup/PromoGroup.js +37 -37
- package/dist/components/Schedule/Schedule.js +8 -8
- package/dist/components/Spacer/Spacer.js +3 -3
- package/dist/components/TextBlock/TextBlock.js +17 -17
- package/dist/components/Toolbar/Toolbar.js +29 -23
- package/package.json +1 -1
- package/src/styles/_fonts.scss +48 -94
- package/src/styles/_sizes.scss +1 -1
- package/dist/AccordionItem-CDN4L4a7.js +0 -40
- package/dist/hooks/useActiveSection 4.js +0 -27
- package/dist/hooks/useFadeIn 4.js +0 -52
- package/dist/hooks/useImageReveal 4.js +0 -55
- package/dist/hooks/useNavColor 4.js +0 -15
- package/dist/hooks/useRepeatable 4.js +0 -32
- package/dist/hooks/useResize 4.js +0 -23
- package/dist/hooks/useResponsive 4.js +0 -15
- package/dist/hooks/useReveal 4.js +0 -38
- package/dist/hooks/useStagger 4.js +0 -43
- package/dist/index 2.js +0 -50
- package/dist/index-BmTo-IS6 4.js +0 -2018
- package/dist/index-K0WrPJ_C 4.js +0 -29
- package/dist/index.modern-DPbS1w7M 4.js +0 -1443
- /package/dist/{index-B2JRaoNz 4.js → index-B2JRaoNz 2.js} +0 -0
- /package/dist/{index-DyQs5aC7 4.js → index-DyQs5aC7 3.js} +0 -0
- /package/dist/presets/{animations 4.js → animations 3.js} +0 -0
- /package/dist/utils/{breakpoints 4.js → breakpoints 3.js} +0 -0
- /package/dist/utils/{gsapSetup 4.js → gsapSetup 3.js} +0 -0
- /package/dist/utils/{parse 4.js → parse 3.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as u, jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { useRef as i, useEffect as x, createElement as y } from "react";
|
|
4
|
-
import
|
|
4
|
+
import q from "../IconDetail/IconDetail.js";
|
|
5
5
|
import { g as a } from "../../index-BmTo-IS6.js";
|
|
6
|
-
import { S as
|
|
6
|
+
import { S as v } from "../../ScrollTrigger-6HnikosL.js";
|
|
7
7
|
import N from "../../utils/parse.js";
|
|
8
|
-
import '../../assets/PinnedImage.css';const b = "
|
|
8
|
+
import '../../assets/PinnedImage.css';const b = "_container_q2g9x_2", k = "_content_q2g9x_122", P = "_copy_q2g9x_130", R = "_text_q2g9x_165", S = "_title_q2g9x_220", T = "_background_q2g9x_271", E = "_section_q2g9x_283", H = "_details_q2g9x_315", e = {
|
|
9
9
|
container: b,
|
|
10
10
|
content: k,
|
|
11
11
|
copy: P,
|
|
@@ -15,16 +15,16 @@ import '../../assets/PinnedImage.css';const b = "_container_1uhcw_2", k = "_cont
|
|
|
15
15
|
section: E,
|
|
16
16
|
details: H
|
|
17
17
|
};
|
|
18
|
-
a.registerPlugin(
|
|
19
|
-
const W = ({ image:
|
|
18
|
+
a.registerPlugin(v);
|
|
19
|
+
const W = ({ image: g, title: _, sections: f }) => {
|
|
20
20
|
const o = i(null);
|
|
21
21
|
i(null);
|
|
22
22
|
const l = i([]), m = i();
|
|
23
23
|
return x(() => {
|
|
24
|
-
const
|
|
25
|
-
const
|
|
24
|
+
const n = a.context(() => {
|
|
25
|
+
const c = l.current, r = Math.max(...c.map((s) => s.offsetHeight));
|
|
26
26
|
a.set(m.current, { minHeight: r });
|
|
27
|
-
const d = o.current.offsetTop,
|
|
27
|
+
const d = o.current.offsetTop, h = a.timeline({
|
|
28
28
|
scrollTrigger: {
|
|
29
29
|
trigger: o.current,
|
|
30
30
|
start: `top-=${d} top`,
|
|
@@ -35,40 +35,40 @@ const W = ({ image: u, title: _, sections: g }) => {
|
|
|
35
35
|
anticipatePin: 1
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
c.forEach((s, p) => {
|
|
39
|
+
h.fromTo(
|
|
40
40
|
s,
|
|
41
|
-
{ opacity:
|
|
41
|
+
{ opacity: p === 0 ? 1 : 0 },
|
|
42
42
|
{ opacity: 1, duration: 0.5 }
|
|
43
43
|
).to(
|
|
44
44
|
s,
|
|
45
|
-
{ opacity:
|
|
45
|
+
{ opacity: p === c.length - 1 ? 1 : 0, duration: 0.5 },
|
|
46
46
|
"+=0.75"
|
|
47
47
|
);
|
|
48
48
|
});
|
|
49
49
|
}, o);
|
|
50
|
-
return () =>
|
|
51
|
-
}, []), /* @__PURE__ */
|
|
50
|
+
return () => n.revert();
|
|
51
|
+
}, []), /* @__PURE__ */ u(
|
|
52
52
|
"div",
|
|
53
53
|
{
|
|
54
54
|
className: e.container,
|
|
55
55
|
ref: o,
|
|
56
|
-
style: { backgroundImage: `url(${
|
|
56
|
+
style: { backgroundImage: `url(${g})` },
|
|
57
57
|
children: [
|
|
58
58
|
/* @__PURE__ */ t("h2", { className: e.title, children: _ }),
|
|
59
|
-
/* @__PURE__ */ t("div", { className: e.background, children: /* @__PURE__ */ t("img", { src:
|
|
60
|
-
/* @__PURE__ */ t("div", { className: e.content, ref: m, children: /* @__PURE__ */ t("div", { className: e.copy, children:
|
|
59
|
+
/* @__PURE__ */ t("div", { className: e.background, children: /* @__PURE__ */ t("img", { src: g }) }),
|
|
60
|
+
/* @__PURE__ */ t("div", { className: e.content, ref: m, children: /* @__PURE__ */ t("div", { className: e.copy, children: f.map((n, c) => /* @__PURE__ */ u(
|
|
61
61
|
"div",
|
|
62
62
|
{
|
|
63
63
|
className: e.section,
|
|
64
|
-
ref: (r) => l.current[
|
|
64
|
+
ref: (r) => l.current[c] = r,
|
|
65
65
|
children: [
|
|
66
|
-
/* @__PURE__ */ t("h3", { children:
|
|
67
|
-
/* @__PURE__ */ t("div", { className: e.text, children: N(
|
|
68
|
-
/* @__PURE__ */ t("div", { className: e.details, children:
|
|
66
|
+
/* @__PURE__ */ t("h3", { children: n.header }),
|
|
67
|
+
/* @__PURE__ */ t("div", { className: e.text, children: N(n.description) }),
|
|
68
|
+
/* @__PURE__ */ t("div", { className: e.details, children: n.details && n.details.map((r, d) => /* @__PURE__ */ y(q, { ...r, key: d })) })
|
|
69
69
|
]
|
|
70
70
|
},
|
|
71
|
-
|
|
71
|
+
c
|
|
72
72
|
)) }) })
|
|
73
73
|
]
|
|
74
74
|
}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useMemo as
|
|
2
|
+
import { jsxs as n, Fragment as N, jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { useMemo as f } from "react";
|
|
4
4
|
import "../../index-K0WrPJ_C.js";
|
|
5
5
|
import "../../hooks/useFadeIn.js";
|
|
6
|
-
import
|
|
7
|
-
import { appleStagger as
|
|
6
|
+
import y from "../Button/Button.js";
|
|
7
|
+
import { appleStagger as r } from "../../presets/animations.js";
|
|
8
8
|
import { c as m } from "../../index-B2JRaoNz.js";
|
|
9
9
|
import "../OverlayHero/OverlayHero.js";
|
|
10
10
|
import "../../index-DyQs5aC7.js";
|
|
11
|
-
import { useStagger as
|
|
11
|
+
import { useStagger as C } from "../../hooks/useStagger.js";
|
|
12
12
|
import "../FloatingWordsHero/FloatingWordsHero.js";
|
|
13
13
|
import "../../index.modern-DPbS1w7M.js";
|
|
14
|
-
import '../../assets/PromoGroup.css';const
|
|
15
|
-
group:
|
|
16
|
-
slider:
|
|
17
|
-
header:
|
|
18
|
-
promo:
|
|
19
|
-
icon:
|
|
20
|
-
cta:
|
|
21
|
-
imageContainer:
|
|
22
|
-
image:
|
|
23
|
-
promo__header:
|
|
24
|
-
promo__body:
|
|
14
|
+
import '../../assets/PromoGroup.css';const b = "_group_tliee_2", x = "_slider_tliee_27", v = "_header_tliee_33", T = "_promo_tliee_81", $ = "_icon_tliee_131", j = "_cta_tliee_141", F = "_imageContainer_tliee_149", k = "_image_tliee_149", S = "_promo__header_tliee_161", z = "_promo__body_tliee_253", A = "_stats_tliee_300", B = "_stat_tliee_300", G = "_statText_tliee_314", e = {
|
|
15
|
+
group: b,
|
|
16
|
+
slider: x,
|
|
17
|
+
header: v,
|
|
18
|
+
promo: T,
|
|
19
|
+
icon: $,
|
|
20
|
+
cta: j,
|
|
21
|
+
imageContainer: F,
|
|
22
|
+
image: k,
|
|
23
|
+
promo__header: S,
|
|
24
|
+
promo__body: z,
|
|
25
25
|
stats: A,
|
|
26
26
|
stat: B,
|
|
27
27
|
statText: G,
|
|
28
|
-
"count-4": "_count-
|
|
29
|
-
}, Q = ({ header: d, promos: s, direction:
|
|
30
|
-
const h = ["icon", "header", "body", "cta", "stats", "image"], p =
|
|
31
|
-
...
|
|
32
|
-
stagger:
|
|
33
|
-
scrollTrigger: { start:
|
|
34
|
-
}), l =
|
|
28
|
+
"count-4": "_count-4_tliee_391"
|
|
29
|
+
}, Q = ({ header: d, promos: s, direction: c = "vertical", slider: g }) => {
|
|
30
|
+
const h = ["icon", "header", "body", "cta", "stats", "image"], p = C(`.${e.promo}`, r.from, {
|
|
31
|
+
...r.to,
|
|
32
|
+
stagger: r.stagger,
|
|
33
|
+
scrollTrigger: { start: r.start }
|
|
34
|
+
}), l = f(() => {
|
|
35
35
|
let t = 0;
|
|
36
|
-
for (let
|
|
37
|
-
s.some((
|
|
36
|
+
for (let i of h)
|
|
37
|
+
s.some((o) => !!o[i]) && (t += 1);
|
|
38
38
|
return t;
|
|
39
39
|
}, [s]);
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ n(N, { children: [
|
|
41
41
|
/* @__PURE__ */ a("h2", { className: e.header, children: d }),
|
|
42
42
|
/* @__PURE__ */ a(
|
|
43
43
|
"div",
|
|
@@ -50,21 +50,21 @@ import '../../assets/PromoGroup.css';const y = "_group_sebz3_2", C = "_slider_se
|
|
|
50
50
|
),
|
|
51
51
|
style: {
|
|
52
52
|
"--promos": s.length,
|
|
53
|
-
"--propCount":
|
|
53
|
+
"--propCount": c == "horizontal" ? l - 1 : l
|
|
54
54
|
},
|
|
55
|
-
children: s.map((t,
|
|
56
|
-
const
|
|
57
|
-
return /* @__PURE__ */
|
|
58
|
-
|
|
55
|
+
children: s.map((t, i) => {
|
|
56
|
+
const o = t.containerCta ? "a" : "div";
|
|
57
|
+
return /* @__PURE__ */ n(
|
|
58
|
+
o,
|
|
59
59
|
{
|
|
60
60
|
onClick: t.containerCta?.onClick || null,
|
|
61
61
|
href: t.containerCta?.href || null,
|
|
62
62
|
target: t.containerCta?.target || null,
|
|
63
|
-
delay: 0.1 *
|
|
63
|
+
delay: 0.1 * i,
|
|
64
64
|
className: e.promo,
|
|
65
65
|
"data-color": t.color,
|
|
66
66
|
"data-text-align": t.textAlign,
|
|
67
|
-
"data-direction":
|
|
67
|
+
"data-direction": c,
|
|
68
68
|
children: [
|
|
69
69
|
t.icon && /* @__PURE__ */ a(
|
|
70
70
|
"span",
|
|
@@ -87,14 +87,14 @@ import '../../assets/PromoGroup.css';const y = "_group_sebz3_2", C = "_slider_se
|
|
|
87
87
|
) }),
|
|
88
88
|
t.header && /* @__PURE__ */ a("h3", { className: e.promo__header, children: t.header }),
|
|
89
89
|
/* @__PURE__ */ a("p", { className: e.promo__body, children: t.body }),
|
|
90
|
-
t.cta && /* @__PURE__ */ a("div", { className: e.cta, children: /* @__PURE__ */ a(
|
|
91
|
-
t.stats && /* @__PURE__ */ a("div", { className: e.stats, children: t.stats.map((_,
|
|
90
|
+
t.cta && /* @__PURE__ */ a("div", { className: e.cta, children: /* @__PURE__ */ a(y, { ...t.cta }) }),
|
|
91
|
+
t.stats && /* @__PURE__ */ a("div", { className: e.stats, children: t.stats.map((_, u) => /* @__PURE__ */ n("div", { className: e.stat, children: [
|
|
92
92
|
/* @__PURE__ */ a("span", { className: "material-symbols-outlined", children: _.icon }),
|
|
93
93
|
/* @__PURE__ */ a("span", { className: e.statText, children: _.text })
|
|
94
|
-
] }, `stat-${
|
|
94
|
+
] }, `stat-${u}`)) })
|
|
95
95
|
]
|
|
96
96
|
},
|
|
97
|
-
`promo-${
|
|
97
|
+
`promo-${i}`
|
|
98
98
|
);
|
|
99
99
|
})
|
|
100
100
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as s, jsx as i } from "react/jsx-runtime";
|
|
3
3
|
import { Fragment as n } from "react";
|
|
4
|
-
import '../../assets/Schedule.css';const a = "
|
|
4
|
+
import '../../assets/Schedule.css';const a = "_schedule_ro9fq_2", r = "_timeline_ro9fq_79", m = "_time_ro9fq_79", o = "_dot_ro9fq_92", _ = "_diagram_ro9fq_100", h = "_line_ro9fq_106", e = {
|
|
5
5
|
schedule: a,
|
|
6
|
-
timeline:
|
|
7
|
-
time:
|
|
8
|
-
dot:
|
|
9
|
-
diagram:
|
|
10
|
-
line:
|
|
11
|
-
},
|
|
6
|
+
timeline: r,
|
|
7
|
+
time: m,
|
|
8
|
+
dot: o,
|
|
9
|
+
diagram: _,
|
|
10
|
+
line: h
|
|
11
|
+
}, u = ({ slots: d, header: t }) => /* @__PURE__ */ s("div", { className: e.schedule, children: [
|
|
12
12
|
/* @__PURE__ */ i("h3", { children: t }),
|
|
13
13
|
/* @__PURE__ */ i("div", { className: e.timeline, children: d.map((c, l) => /* @__PURE__ */ s(n, { children: [
|
|
14
14
|
/* @__PURE__ */ i("div", { className: e.time, children: c.time }),
|
|
@@ -20,5 +20,5 @@ import '../../assets/Schedule.css';const a = "_schedule_1hj0g_2", m = "_timeline
|
|
|
20
20
|
] }, l)) })
|
|
21
21
|
] });
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
u as default
|
|
24
24
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
const
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
const s = ({ height: r, className: t }) => /* @__PURE__ */ e("div", { style: { height: r }, className: t });
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
s as default
|
|
6
6
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as s, jsx as c } from "react/jsx-runtime";
|
|
3
3
|
import { createElement as d } from "react";
|
|
4
4
|
import n from "../../utils/parse.js";
|
|
5
5
|
import m from "../IconDetail/IconDetail.js";
|
|
6
|
-
import '../../assets/TextBlock.css';const
|
|
7
|
-
title:
|
|
8
|
-
blocks:
|
|
9
|
-
block:
|
|
10
|
-
blockHeader:
|
|
11
|
-
description:
|
|
12
|
-
},
|
|
13
|
-
/* @__PURE__ */ c("h2", { className: e.title, children:
|
|
14
|
-
/* @__PURE__ */ c("div", { className: e.blocks, children:
|
|
6
|
+
import '../../assets/TextBlock.css';const _ = "_title_1riej_1", p = "_blocks_1riej_52", k = "_block_1riej_52", h = "_blockHeader_1riej_63", b = "_description_1riej_92", e = {
|
|
7
|
+
title: _,
|
|
8
|
+
blocks: p,
|
|
9
|
+
block: k,
|
|
10
|
+
blockHeader: h,
|
|
11
|
+
description: b
|
|
12
|
+
}, x = ({ header: l, blocks: t }) => /* @__PURE__ */ s("div", { className: e.container, children: [
|
|
13
|
+
/* @__PURE__ */ c("h2", { className: e.title, children: l }),
|
|
14
|
+
/* @__PURE__ */ c("div", { className: e.blocks, children: t.map((i, r) => (
|
|
15
15
|
// <div className={styles.block} key={`block-${idx}`}>
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */ c("h3", { className: e.blockHeader, children:
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */ c("div", { className: e.description, children: n(
|
|
20
|
-
/* @__PURE__ */ c("div", { className: e.details, children:
|
|
16
|
+
/* @__PURE__ */ s("div", { className: e.block, children: [
|
|
17
|
+
/* @__PURE__ */ c("h3", { className: e.blockHeader, children: i.header }),
|
|
18
|
+
/* @__PURE__ */ s("div", { className: e.content, children: [
|
|
19
|
+
/* @__PURE__ */ c("div", { className: e.description, children: n(i.description) }),
|
|
20
|
+
/* @__PURE__ */ c("div", { className: e.details, children: i.details && i.details.map((o, a) => /* @__PURE__ */ d(m, { ...o, key: a })) })
|
|
21
21
|
] })
|
|
22
|
-
] }, `block-${
|
|
22
|
+
] }, `block-${r}`)
|
|
23
23
|
)) })
|
|
24
24
|
] });
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
x as default
|
|
27
27
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as s, jsx as v } from "react/jsx-runtime";
|
|
3
3
|
import x from "../../hooks/useResize.js";
|
|
4
|
-
import { useState as
|
|
5
|
-
import '../../assets/Toolbar.css';const
|
|
6
|
-
toolbar:
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import { useState as r, useEffect as l } from "react";
|
|
5
|
+
import '../../assets/Toolbar.css';const k = "_toolbar_1bewn_1", g = "_button_1bewn_12", d = {
|
|
6
|
+
toolbar: k,
|
|
7
|
+
button: g
|
|
8
|
+
}, L = () => {
|
|
9
|
+
const [o, i] = r(!1), [p, u] = r(0), [b, f] = r(0), a = x(), m = {
|
|
9
10
|
xxl: 1600,
|
|
10
11
|
// 1600
|
|
11
12
|
xl: 1200,
|
|
@@ -20,33 +21,38 @@ import '../../assets/Toolbar.css';const b = "_toolbar_17thg_1", k = {
|
|
|
20
21
|
// 390
|
|
21
22
|
xxs: 0
|
|
22
23
|
// 0
|
|
23
|
-
},
|
|
24
|
-
t.code === "KeyI" && (t.preventDefault(), t.stopPropagation(),
|
|
24
|
+
}, c = (t) => {
|
|
25
|
+
t.code === "KeyI" && (t.preventDefault(), t.stopPropagation(), i(!o));
|
|
26
|
+
}, h = (t) => {
|
|
27
|
+
const e = (/* @__PURE__ */ new Date()).getTime(), n = e - b;
|
|
28
|
+
n < 300 && n > 0 && (i(!o), t.preventDefault()), f(e);
|
|
25
29
|
};
|
|
26
|
-
return
|
|
30
|
+
return l(() => (window.addEventListener("keyup", c), () => {
|
|
31
|
+
window.removeEventListener("keyup", c);
|
|
32
|
+
}), []), l(() => {
|
|
27
33
|
const t = window.innerWidth;
|
|
28
|
-
let
|
|
29
|
-
for (const [
|
|
30
|
-
if (t >=
|
|
31
|
-
|
|
34
|
+
let e = "xxs";
|
|
35
|
+
for (const [n, w] of Object.entries(m))
|
|
36
|
+
if (t >= w) {
|
|
37
|
+
e = n;
|
|
32
38
|
break;
|
|
33
39
|
}
|
|
34
|
-
|
|
35
|
-
}, []),
|
|
36
|
-
/* @__PURE__ */
|
|
40
|
+
u(e);
|
|
41
|
+
}, []), o ? /* @__PURE__ */ s("div", { className: d.toolbar, onClick: () => i(!o), children: [
|
|
42
|
+
/* @__PURE__ */ s("div", { children: [
|
|
37
43
|
"Width: ",
|
|
38
|
-
|
|
44
|
+
a.innerWidth
|
|
39
45
|
] }),
|
|
40
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ s("div", { children: [
|
|
41
47
|
"Height: ",
|
|
42
|
-
|
|
48
|
+
a.innerHeight
|
|
43
49
|
] }),
|
|
44
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ s("div", { children: [
|
|
45
51
|
"Breakpoint: ",
|
|
46
|
-
|
|
52
|
+
p
|
|
47
53
|
] })
|
|
48
|
-
] }) : /* @__PURE__ */
|
|
54
|
+
] }) : /* @__PURE__ */ v("div", { className: d.button, onClick: h });
|
|
49
55
|
};
|
|
50
56
|
export {
|
|
51
|
-
|
|
57
|
+
L as default
|
|
52
58
|
};
|
package/package.json
CHANGED
package/src/styles/_fonts.scss
CHANGED
|
@@ -8,161 +8,114 @@ $font-primary: var(--font-primary);
|
|
|
8
8
|
$font-secondary: var(--font-secondary);
|
|
9
9
|
|
|
10
10
|
$type-scale: (
|
|
11
|
-
body: (
|
|
12
|
-
xxs: (
|
|
13
|
-
font-size: 20px,
|
|
11
|
+
body: (xxs: (font-size: 20px,
|
|
14
12
|
line-height: 1.2,
|
|
15
13
|
),
|
|
16
|
-
xs: (
|
|
17
|
-
font-size: 22px,
|
|
14
|
+
xs: (font-size: 22px,
|
|
18
15
|
),
|
|
19
|
-
md-portrait: (
|
|
20
|
-
font-size: 28px,
|
|
16
|
+
md-portrait: (font-size: 28px,
|
|
21
17
|
),
|
|
22
|
-
md-landscape: (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
),
|
|
26
|
-
lg-portrait: (
|
|
27
|
-
font-size: 24px,
|
|
18
|
+
md-landscape: (font-size: 18px,
|
|
19
|
+
line-height: 1.3),
|
|
20
|
+
lg-portrait: (font-size: 24px,
|
|
28
21
|
line-height: 1.2,
|
|
29
22
|
),
|
|
30
|
-
lg-landscape: (
|
|
31
|
-
font-size: 24px,
|
|
23
|
+
lg-landscape: (font-size: 24px,
|
|
32
24
|
line-height: 1.3,
|
|
33
25
|
),
|
|
34
|
-
xl: (
|
|
35
|
-
font-size: 24px,
|
|
26
|
+
xl: (font-size: 24px,
|
|
36
27
|
// line-height: 1.5,
|
|
37
28
|
),
|
|
38
|
-
xxl: (
|
|
39
|
-
line-height: 1.
|
|
29
|
+
xxl: (font-size: 26px,
|
|
30
|
+
// line-height: 1.5,
|
|
40
31
|
),
|
|
41
32
|
),
|
|
42
|
-
header: (
|
|
43
|
-
xxs: (
|
|
44
|
-
font-size: 28px,
|
|
33
|
+
header: (xxs: (font-size: 28px,
|
|
45
34
|
line-height: 1.2,
|
|
46
35
|
),
|
|
47
36
|
),
|
|
48
|
-
strong: (
|
|
49
|
-
xxs: (
|
|
50
|
-
font-weight: 500,
|
|
37
|
+
strong: (xxs: (font-weight: 500,
|
|
51
38
|
font-size: 24px,
|
|
52
39
|
),
|
|
53
|
-
md-portrait: (
|
|
54
|
-
font-size: 30px,
|
|
40
|
+
md-portrait: (font-size: 30px,
|
|
55
41
|
),
|
|
56
|
-
md-landscape: (
|
|
57
|
-
font-size: 20px,
|
|
42
|
+
md-landscape: (font-size: 20px,
|
|
58
43
|
),
|
|
59
|
-
lg: (
|
|
60
|
-
font-size: 28px,
|
|
44
|
+
lg: (font-size: 28px,
|
|
61
45
|
),
|
|
62
46
|
),
|
|
63
|
-
small: (
|
|
64
|
-
xxs: (
|
|
65
|
-
font-size: 18px,
|
|
47
|
+
small: (xxs: (font-size: 18px,
|
|
66
48
|
),
|
|
67
|
-
md-landscape: (
|
|
68
|
-
font-size: 18px,
|
|
49
|
+
md-landscape: (font-size: 18px,
|
|
69
50
|
),
|
|
70
|
-
md-portrait: (
|
|
71
|
-
font-size: 22px,
|
|
51
|
+
md-portrait: (font-size: 22px,
|
|
72
52
|
),
|
|
73
|
-
lg-landscape: (
|
|
74
|
-
font-size: 20px,
|
|
53
|
+
lg-landscape: (font-size: 20px,
|
|
75
54
|
line-height: 1,
|
|
76
55
|
),
|
|
77
|
-
lg-portrait: (
|
|
78
|
-
font-size: 22px,
|
|
56
|
+
lg-portrait: (font-size: 22px,
|
|
79
57
|
line-height: 1,
|
|
80
58
|
),
|
|
81
59
|
),
|
|
82
|
-
h2: (
|
|
83
|
-
xxs: (
|
|
84
|
-
font-family: $font-secondary,
|
|
60
|
+
h2: (xxs: (font-family: $font-secondary,
|
|
85
61
|
font-size: 38px,
|
|
86
62
|
line-height: 1,
|
|
87
63
|
),
|
|
88
|
-
xs: (
|
|
89
|
-
font-size: 40px,
|
|
64
|
+
xs: (font-size: 40px,
|
|
90
65
|
line-height: 1.2,
|
|
91
66
|
),
|
|
92
|
-
sm: (
|
|
93
|
-
|
|
67
|
+
sm: (font-size: 46px,
|
|
68
|
+
),
|
|
69
|
+
md-landscape: (font-size: 36px,
|
|
94
70
|
),
|
|
95
|
-
md-
|
|
96
|
-
font-size: 36px,
|
|
71
|
+
md-portrait: (font-size: 50px,
|
|
97
72
|
),
|
|
98
|
-
|
|
99
|
-
font-size: 50px,
|
|
73
|
+
lg-landscape: (font-size: 40px,
|
|
100
74
|
),
|
|
101
|
-
|
|
102
|
-
font-size: 40px,
|
|
75
|
+
xl: (font-size: 55px,
|
|
103
76
|
),
|
|
104
|
-
|
|
105
|
-
font-size: 55px,
|
|
77
|
+
xxl: (font-size: 62px,
|
|
106
78
|
),
|
|
107
79
|
),
|
|
108
|
-
h3: (
|
|
109
|
-
xxs: (
|
|
110
|
-
font-size: 22px,
|
|
80
|
+
h3: (xxs: (font-size: 22px,
|
|
111
81
|
line-height: 1,
|
|
112
82
|
text-transform: uppercase,
|
|
113
83
|
letter-spacing: 2px,
|
|
114
84
|
// margin-bottom: 15px,
|
|
115
85
|
),
|
|
116
|
-
sm: (
|
|
117
|
-
font-size: 26px,
|
|
86
|
+
sm: (font-size: 26px,
|
|
118
87
|
),
|
|
119
|
-
md-landscape: (
|
|
120
|
-
font-size: 20px,
|
|
88
|
+
md-landscape: (font-size: 20px,
|
|
121
89
|
),
|
|
122
|
-
md-portrait: (
|
|
123
|
-
font-size: 30px,
|
|
90
|
+
md-portrait: (font-size: 30px,
|
|
124
91
|
),
|
|
125
|
-
lg: (
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
),
|
|
129
|
-
h4: (
|
|
130
|
-
xxs: (
|
|
131
|
-
font-weight: 560,
|
|
92
|
+
lg: (font-size: 24px,
|
|
93
|
+
)),
|
|
94
|
+
h4: (xxs: (font-weight: 560,
|
|
132
95
|
font-size: 26px,
|
|
133
96
|
line-height: 1,
|
|
134
97
|
margin-bottom: 10px,
|
|
135
98
|
),
|
|
136
|
-
sm: (
|
|
137
|
-
font-size: 26px,
|
|
99
|
+
sm: (font-size: 26px,
|
|
138
100
|
),
|
|
139
|
-
md-landscape: (
|
|
140
|
-
font-size: 20px,
|
|
101
|
+
md-landscape: (font-size: 20px,
|
|
141
102
|
),
|
|
142
|
-
md-portrait: (
|
|
143
|
-
font-size: 30px,
|
|
103
|
+
md-portrait: (font-size: 30px,
|
|
144
104
|
),
|
|
145
|
-
lg-landscape: (
|
|
146
|
-
font-size: 28px,
|
|
105
|
+
lg-landscape: (font-size: 28px,
|
|
147
106
|
),
|
|
148
107
|
),
|
|
149
|
-
h5: (
|
|
150
|
-
xxs: (
|
|
151
|
-
font-size: 24px,
|
|
108
|
+
h5: (xxs: (font-size: 24px,
|
|
152
109
|
line-height: 1,
|
|
153
110
|
// margin-bottom: 10px,
|
|
154
111
|
),
|
|
155
|
-
sm: (
|
|
156
|
-
font-size: 26px,
|
|
112
|
+
sm: (font-size: 26px,
|
|
157
113
|
),
|
|
158
|
-
md-landscape: (
|
|
159
|
-
font-size: 20px,
|
|
114
|
+
md-landscape: (font-size: 20px,
|
|
160
115
|
),
|
|
161
|
-
md-portrait: (
|
|
162
|
-
font-size: 30px,
|
|
116
|
+
md-portrait: (font-size: 30px,
|
|
163
117
|
),
|
|
164
|
-
lg-landscape: (
|
|
165
|
-
font-size: 28px,
|
|
118
|
+
lg-landscape: (font-size: 28px,
|
|
166
119
|
),
|
|
167
120
|
),
|
|
168
121
|
);
|
|
@@ -231,8 +184,9 @@ $theme-sizes: (
|
|
|
231
184
|
);
|
|
232
185
|
|
|
233
186
|
@mixin parsedText($selector) {
|
|
187
|
+
|
|
234
188
|
#{$selector},
|
|
235
|
-
#{$selector}
|
|
189
|
+
#{$selector}>* {
|
|
236
190
|
@content;
|
|
237
191
|
}
|
|
238
|
-
}
|
|
192
|
+
}
|
package/src/styles/_sizes.scss
CHANGED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { jsxs as _, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import r from "./utils/parse.js";
|
|
3
|
-
import { c as e } from "./index-B2JRaoNz.js";
|
|
4
|
-
import './assets/AccordionItem.css';const s = "_accordion_13m6e_1", d = "_title_13m6e_8", m = "_accordion__item_13m6e_11", l = "_header_13m6e_14", p = "_accordion__icon_13m6e_101", b = "_open_13m6e_175", h = "_accordion__button_13m6e_179", N = "_accordion__content_13m6e_249", u = "_body_13m6e_257", o = {
|
|
5
|
-
accordion: s,
|
|
6
|
-
title: d,
|
|
7
|
-
accordion__item: m,
|
|
8
|
-
header: l,
|
|
9
|
-
accordion__icon: p,
|
|
10
|
-
open: b,
|
|
11
|
-
accordion__button: h,
|
|
12
|
-
accordion__content: N,
|
|
13
|
-
body: u
|
|
14
|
-
}, x = ({ title: t, body: a, toggleFn: i, isOpen: n }) => /* @__PURE__ */ _("div", { className: e(o.accordion__item, n && o.open), children: [
|
|
15
|
-
/* @__PURE__ */ _(
|
|
16
|
-
"button",
|
|
17
|
-
{
|
|
18
|
-
className: e(o.accordion__button),
|
|
19
|
-
onClick: () => i(!n),
|
|
20
|
-
children: [
|
|
21
|
-
/* @__PURE__ */ _("div", { className: o.accordion__icon, children: [
|
|
22
|
-
/* @__PURE__ */ c("span", {}),
|
|
23
|
-
/* @__PURE__ */ c("span", { className: `${n ? o.open : ""}` })
|
|
24
|
-
] }),
|
|
25
|
-
/* @__PURE__ */ c("span", { className: o.title, children: t })
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
),
|
|
29
|
-
/* @__PURE__ */ c(
|
|
30
|
-
"div",
|
|
31
|
-
{
|
|
32
|
-
className: e(o.accordion__content, n && o.open),
|
|
33
|
-
children: /* @__PURE__ */ c("div", { className: o.body, children: r(a) })
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
] });
|
|
37
|
-
export {
|
|
38
|
-
x as A,
|
|
39
|
-
o as s
|
|
40
|
-
};
|