foundry-component-library 0.2.41 → 0.2.43
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/index.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { default as a } from "./components/AgencyNumbers/index.js";
|
|
2
|
+
import { default as r } from "./components/Awards/index.js";
|
|
3
|
+
import { default as s } from "./components/Capabilities/index.js";
|
|
4
|
+
import { default as l } from "./components/case/Content/index.js";
|
|
5
|
+
import { default as d } from "./components/case/Top/index.js";
|
|
6
|
+
import { default as x } from "./components/case/Other/index.js";
|
|
7
|
+
import { default as i } from "./components/cases/Items/index.js";
|
|
8
|
+
import { default as T } from "./components/cases/Top/index.js";
|
|
9
|
+
import { default as S } from "./components/cases/Pagination/index.js";
|
|
10
|
+
import { default as b } from "./components/CaseStudyTeaser/index.js";
|
|
11
|
+
import { default as H } from "./components/contact/Accounts/index.js";
|
|
12
|
+
import { default as O } from "./components/contact/Contacts/index.js";
|
|
13
|
+
import { default as k } from "./components/contact/Offices/index.js";
|
|
14
|
+
import { default as y } from "./components/contact/OfficesSection/index.js";
|
|
15
|
+
import { default as N } from "./components/ContactButton/index.js";
|
|
16
|
+
import { default as B } from "./components/ContactTeaser/index.js";
|
|
17
|
+
import { default as M } from "./components/Container/index.js";
|
|
18
|
+
import { default as E } from "./components/DoubleTiles/index.js";
|
|
19
|
+
import { default as G } from "./components/Footer/index.js";
|
|
20
|
+
import { default as V } from "./components/Header/index.js";
|
|
21
|
+
import { default as q } from "./components/Hero/index.js";
|
|
22
|
+
import { default as J } from "./components/HubsAccordion/index.js";
|
|
23
|
+
import { default as R } from "./components/ImageTitle/index.js";
|
|
24
|
+
import { default as W } from "./components/LargeText/index.js";
|
|
25
|
+
import { default as Y } from "./components/LogoSection/index.js";
|
|
26
|
+
import { default as _ } from "./components/Management/index.js";
|
|
27
|
+
import { default as ee } from "./components/MarketingStats/index.js";
|
|
28
|
+
import { default as ae } from "./components/news/Posts/index.js";
|
|
29
|
+
import { default as re } from "./components/NewsTeaser/index.js";
|
|
30
|
+
import { default as se } from "./components/OfficesTeaser/index.js";
|
|
31
|
+
import { default as le } from "./components/PartnerNetwork/index.js";
|
|
32
|
+
import { default as de } from "./components/QuoteSection/index.js";
|
|
33
|
+
import { default as xe } from "./components/ServiceHubsTeaser/index.js";
|
|
34
|
+
import { default as ie } from "./components/ServiceHubsTeaserEffects/index.js";
|
|
35
|
+
import { default as Te } from "./components/single/Content/index.js";
|
|
36
|
+
import { default as Se } from "./components/single/Top/index.js";
|
|
37
|
+
import { default as be } from "./components/TeamBenefits/index.js";
|
|
38
|
+
import { default as He } from "./components/TeamPhotos/index.js";
|
|
39
|
+
import { default as Oe } from "./components/TextSection/index.js";
|
|
40
|
+
import { default as ke } from "./components/Tiles/index.js";
|
|
41
|
+
import { default as ye } from "./components/StickyTiles/index.js";
|
|
42
|
+
import { default as Ne } from "./components/VideoTeaser/index.js";
|
|
43
|
+
import { default as Be } from "./components/GetInTouch/index.js";
|
|
44
|
+
export {
|
|
45
|
+
H as Accounts,
|
|
46
|
+
a as AgencyNumbers,
|
|
47
|
+
r as Awards,
|
|
48
|
+
s as Capabilities,
|
|
49
|
+
l as CaseContent,
|
|
50
|
+
x as CaseOther,
|
|
51
|
+
b as CaseStudyTeaser,
|
|
52
|
+
d as CaseTop,
|
|
53
|
+
i as CasesItems,
|
|
54
|
+
S as CasesPagination,
|
|
55
|
+
T as CasesTop,
|
|
56
|
+
N as ContactButton,
|
|
57
|
+
B as ContactTeaser,
|
|
58
|
+
O as Contacts,
|
|
59
|
+
M as Container,
|
|
60
|
+
E as DoubleTiles,
|
|
61
|
+
G as Footer,
|
|
62
|
+
Be as GetInTouch,
|
|
63
|
+
V as Header,
|
|
64
|
+
q as Hero,
|
|
65
|
+
J as HubsAccordion,
|
|
66
|
+
R as ImageTitle,
|
|
67
|
+
W as LargeText,
|
|
68
|
+
Y as LogoSection,
|
|
69
|
+
_ as Management,
|
|
70
|
+
ee as MarketingStats,
|
|
71
|
+
re as NewsTeaser,
|
|
72
|
+
k as Offices,
|
|
73
|
+
y as OfficesSection,
|
|
74
|
+
se as OfficesTeaser,
|
|
75
|
+
le as PartnerNetwork,
|
|
76
|
+
Te as PostContent,
|
|
77
|
+
Se as PostTop,
|
|
78
|
+
ae as Posts,
|
|
79
|
+
de as QuoteSection,
|
|
80
|
+
xe as ServiceHubsTeaser,
|
|
81
|
+
ie as ServiceHubsTeaserEffects,
|
|
82
|
+
ye as StickyTiles,
|
|
83
|
+
be as TeamBenefits,
|
|
84
|
+
He as TeamPhotos,
|
|
85
|
+
Oe as TextSection,
|
|
86
|
+
ke as Tiles,
|
|
87
|
+
Ne as VideoTeaser
|
|
88
|
+
};
|
|
@@ -50,7 +50,8 @@ const ServiceHubsTeaserEffects = ({
|
|
|
50
50
|
<Link
|
|
51
51
|
href={tile.uri}
|
|
52
52
|
className={styles.tileWrapper}
|
|
53
|
-
key={tile.id}
|
|
53
|
+
key={tile.id}
|
|
54
|
+
aria-label={tile.title}>
|
|
54
55
|
<div className={`${styles.tile} ${styles[background]}`}>
|
|
55
56
|
{i === 0 && <TileGlass />}
|
|
56
57
|
{i === 1 && <TileFluid />}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import ReactPlayer from "react-player/lazy";
|
|
2
|
+
import { useState, useRef, useEffect } from "react";
|
|
4
3
|
import styles from "./styles.module.scss";
|
|
5
4
|
import Mute from "../../assets/svg/mute.svg";
|
|
6
5
|
import Muted from "../../assets/svg/muted.svg";
|
|
@@ -10,18 +9,21 @@ import Logo from "../../assets/svg/footer-logo.svg";
|
|
|
10
9
|
function VideoTeaser({ url }: { url: string }) {
|
|
11
10
|
const [playing, setPlaying] = useState(true);
|
|
12
11
|
const [isMuted, setIsMuted] = useState(true);
|
|
13
|
-
const
|
|
12
|
+
const videoRef = useRef<HTMLVideoElement>(null);
|
|
13
|
+
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
videoRef.current?.setAttribute("fetchpriority", "high");
|
|
16
|
+
}, []);
|
|
14
17
|
|
|
15
18
|
const handleClick = () => {
|
|
19
|
+
if (playing) {
|
|
20
|
+
videoRef.current?.pause();
|
|
21
|
+
} else {
|
|
22
|
+
videoRef.current?.play();
|
|
23
|
+
}
|
|
16
24
|
setPlaying(!playing);
|
|
17
25
|
};
|
|
18
26
|
|
|
19
|
-
useEffect(() => {
|
|
20
|
-
if (typeof window !== "undefined") {
|
|
21
|
-
setHasWindow(true);
|
|
22
|
-
}
|
|
23
|
-
}, []);
|
|
24
|
-
|
|
25
27
|
if (!url) return;
|
|
26
28
|
|
|
27
29
|
return (
|
|
@@ -33,7 +35,10 @@ function VideoTeaser({ url }: { url: string }) {
|
|
|
33
35
|
className={`${styles.wrapper} ${url ? styles.playCursor : ""} ${
|
|
34
36
|
playing ? styles.playing : ""
|
|
35
37
|
}`}>
|
|
36
|
-
<button
|
|
38
|
+
<button
|
|
39
|
+
className={styles.btnMute}
|
|
40
|
+
onClick={() => setIsMuted(!isMuted)}
|
|
41
|
+
aria-label={isMuted ? "Unmute video" : "Mute video"}>
|
|
37
42
|
{isMuted ? <Muted /> : <Mute />}
|
|
38
43
|
</button>
|
|
39
44
|
<div className={styles.video} onClick={handleClick}>
|
|
@@ -41,26 +46,15 @@ function VideoTeaser({ url }: { url: string }) {
|
|
|
41
46
|
className={`${styles.playButton} ${playing ? styles.playing : ""}`}>
|
|
42
47
|
<PlayButton />
|
|
43
48
|
</div>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
file: {
|
|
54
|
-
attributes: {
|
|
55
|
-
playsInline: true,
|
|
56
|
-
webkitPlaysInline: true,
|
|
57
|
-
muted: true,
|
|
58
|
-
poster: "/video-poster.jpg",
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
}}
|
|
62
|
-
/>
|
|
63
|
-
)}
|
|
49
|
+
<video
|
|
50
|
+
ref={videoRef}
|
|
51
|
+
src={url}
|
|
52
|
+
autoPlay
|
|
53
|
+
loop
|
|
54
|
+
muted={isMuted}
|
|
55
|
+
playsInline
|
|
56
|
+
preload="auto"
|
|
57
|
+
/>
|
|
64
58
|
</div>
|
|
65
59
|
</div>
|
|
66
60
|
</>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "foundry-component-library",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.43",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"preview": "vite preview"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
+
"lottie-web": "^5.13.0",
|
|
32
33
|
"motion": "^12.6.3",
|
|
33
34
|
"next": "15.2.8",
|
|
34
35
|
"react": "^19.0.0",
|
|
35
36
|
"react-dom": "^19.0.0",
|
|
36
|
-
"react-player": "^2.16.0"
|
|
37
|
-
"lottie-web": "^5.13.0"
|
|
37
|
+
"react-player": "^2.16.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@eslint/js": "^9.22.0",
|