foundry-component-library 0.0.0 → 0.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.
Files changed (177) hide show
  1. package/lib/assets/image/fallbackVideo.png +0 -0
  2. package/lib/assets/image/pause.png +0 -0
  3. package/lib/assets/image/placeholder.png +0 -0
  4. package/lib/assets/image/play.png +0 -0
  5. package/lib/assets/svg/arrow.svg +3 -0
  6. package/lib/assets/svg/caret-down.svg +3 -0
  7. package/lib/assets/svg/caret-right.svg +4 -0
  8. package/lib/assets/svg/close.svg +5 -0
  9. package/lib/assets/svg/comment.svg +18 -0
  10. package/lib/assets/svg/facebook.svg +10 -0
  11. package/lib/assets/svg/footer-logo.svg +16 -0
  12. package/lib/assets/svg/hourglass.svg +1 -0
  13. package/lib/assets/svg/linkedin.svg +3 -0
  14. package/lib/assets/svg/logo.svg +3 -0
  15. package/lib/assets/svg/mute.svg +1 -0
  16. package/lib/assets/svg/muted.svg +1 -0
  17. package/lib/assets/svg/play-button.svg +4 -0
  18. package/lib/assets/svg/plus.svg +5 -0
  19. package/lib/assets/svg/unicorn.svg +3 -0
  20. package/lib/components/AgencyNumbers/index.tsx +50 -0
  21. package/lib/components/AgencyNumbers/styles.module.scss +71 -0
  22. package/lib/components/Awards/index.tsx +48 -0
  23. package/lib/components/Awards/styles.module.scss +52 -0
  24. package/lib/components/Capabilities/Item.tsx +139 -0
  25. package/lib/components/Capabilities/index.tsx +49 -0
  26. package/lib/components/Capabilities/styles.module.scss +154 -0
  27. package/lib/components/CaseStudyTeaser/index.tsx +77 -0
  28. package/lib/components/CaseStudyTeaser/styles.module.scss +88 -0
  29. package/lib/components/ContactButton/index.tsx +14 -0
  30. package/lib/components/ContactButton/styles.module.scss +25 -0
  31. package/lib/components/ContactTeaser/index.tsx +36 -0
  32. package/lib/components/ContactTeaser/styles.module.scss +46 -0
  33. package/lib/components/Container/index.tsx +19 -0
  34. package/lib/components/Container/styles.module.scss +22 -0
  35. package/lib/components/DoubleTiles/Tile.tsx +28 -0
  36. package/lib/components/DoubleTiles/index.tsx +43 -0
  37. package/lib/components/DoubleTiles/styles.module.scss +87 -0
  38. package/lib/components/Footer/index.tsx +109 -0
  39. package/lib/components/Footer/styles.module.scss +147 -0
  40. package/lib/components/Header/Menu.tsx +77 -0
  41. package/lib/components/Header/index.tsx +49 -0
  42. package/lib/components/Header/styles.module.scss +169 -0
  43. package/lib/components/Hero/Loading.tsx +36 -0
  44. package/lib/components/Hero/index.tsx +72 -0
  45. package/lib/components/Hero/styles.module.scss +63 -0
  46. package/lib/components/HubsAccordion/Hub.tsx +127 -0
  47. package/lib/components/HubsAccordion/index.tsx +41 -0
  48. package/lib/components/HubsAccordion/styles.module.scss +206 -0
  49. package/lib/components/ImageTitle/index.tsx +39 -0
  50. package/lib/components/ImageTitle/styles.module.scss +60 -0
  51. package/lib/components/LargeText/Loading.tsx +7 -0
  52. package/lib/components/LargeText/Word.tsx +26 -0
  53. package/lib/components/LargeText/index.tsx +56 -0
  54. package/lib/components/LargeText/styles.module.scss +51 -0
  55. package/lib/components/LogoSection/Dropdown.tsx +82 -0
  56. package/lib/components/LogoSection/Logos.tsx +112 -0
  57. package/lib/components/LogoSection/index.tsx +45 -0
  58. package/lib/components/LogoSection/styles.module.scss +142 -0
  59. package/lib/components/Management/index.tsx +97 -0
  60. package/lib/components/Management/styles.module.scss +80 -0
  61. package/lib/components/MarketingStats/index.tsx +64 -0
  62. package/lib/components/MarketingStats/styles.module.scss +77 -0
  63. package/lib/components/NewsTeaser/index.tsx +71 -0
  64. package/lib/components/NewsTeaser/styles.module.scss +121 -0
  65. package/lib/components/OfficesTeaser/index.tsx +32 -0
  66. package/lib/components/OfficesTeaser/styles.module.scss +40 -0
  67. package/lib/components/PartnerNetwork/index.tsx +47 -0
  68. package/lib/components/PartnerNetwork/styles.module.scss +32 -0
  69. package/lib/components/QuoteSection/index.tsx +59 -0
  70. package/lib/components/QuoteSection/styles.module.scss +84 -0
  71. package/lib/components/ServiceHubsTeaser/Tile.tsx +34 -0
  72. package/lib/components/ServiceHubsTeaser/index.tsx +72 -0
  73. package/lib/components/ServiceHubsTeaser/styles.module.scss +69 -0
  74. package/lib/components/TeamBenefits/Tile.tsx +18 -0
  75. package/lib/components/TeamBenefits/index.tsx +41 -0
  76. package/lib/components/TeamBenefits/styles.module.scss +57 -0
  77. package/lib/components/TeamPhotos/Item.tsx +31 -0
  78. package/lib/components/TeamPhotos/Loading.tsx +42 -0
  79. package/lib/components/TeamPhotos/index.tsx +26 -0
  80. package/lib/components/TeamPhotos/styles.module.scss +79 -0
  81. package/lib/components/TextSection/Loading.tsx +36 -0
  82. package/lib/components/TextSection/index.tsx +40 -0
  83. package/lib/components/TextSection/styles.module.scss +75 -0
  84. package/lib/components/Tiles/Tile.tsx +21 -0
  85. package/lib/components/Tiles/index.tsx +43 -0
  86. package/lib/components/Tiles/styles.module.scss +60 -0
  87. package/lib/components/VideoTeaser/Loading.tsx +7 -0
  88. package/lib/components/VideoTeaser/index.tsx +56 -0
  89. package/lib/components/VideoTeaser/styles.module.scss +93 -0
  90. package/lib/components/_variables.scss +146 -0
  91. package/lib/components/case/Content/CenterColumn.tsx +18 -0
  92. package/lib/components/case/Content/FullWidthImage.tsx +60 -0
  93. package/lib/components/case/Content/Numbers/index.tsx +46 -0
  94. package/lib/components/case/Content/Numbers/styles.module.scss +41 -0
  95. package/lib/components/case/Content/Results/index.tsx +44 -0
  96. package/lib/components/case/Content/Results/styles.module.scss +34 -0
  97. package/lib/components/case/Content/TwoColumns/Left.tsx +46 -0
  98. package/lib/components/case/Content/TwoColumns/Right.tsx +47 -0
  99. package/lib/components/case/Content/TwoColumns/index.tsx +32 -0
  100. package/lib/components/case/Content/Video.tsx +88 -0
  101. package/lib/components/case/Content/index.tsx +86 -0
  102. package/lib/components/case/Content/styles.module.scss +175 -0
  103. package/lib/components/case/Other/index.tsx +66 -0
  104. package/lib/components/case/Other/styles.module.scss +118 -0
  105. package/lib/components/case/ShareButton/index.tsx +27 -0
  106. package/lib/components/case/ShareButton/styles.module.scss +5 -0
  107. package/lib/components/case/Top/Loading.tsx +51 -0
  108. package/lib/components/case/Top/index.tsx +94 -0
  109. package/lib/components/case/Top/styles.module.scss +162 -0
  110. package/lib/components/cases/Items/More.tsx +103 -0
  111. package/lib/components/cases/Items/Video.tsx +47 -0
  112. package/lib/components/cases/Items/index.tsx +123 -0
  113. package/lib/components/cases/Items/styles.module.scss +165 -0
  114. package/lib/components/cases/Pagination/index.tsx +61 -0
  115. package/lib/components/cases/Pagination/styles.module.scss +27 -0
  116. package/lib/components/cases/Top/Dropdown.tsx +94 -0
  117. package/lib/components/cases/Top/index.tsx +67 -0
  118. package/lib/components/cases/Top/styles.module.scss +151 -0
  119. package/lib/components/contact/Accounts/index.tsx +50 -0
  120. package/lib/components/contact/Accounts/styles.module.scss +61 -0
  121. package/lib/components/contact/Contacts/index.tsx +50 -0
  122. package/lib/components/contact/Contacts/styles.module.scss +67 -0
  123. package/lib/components/contact/Offices/Loading.tsx +45 -0
  124. package/lib/components/contact/Offices/index.tsx +106 -0
  125. package/lib/components/contact/Offices/styles.module.scss +79 -0
  126. package/lib/components/contact/OfficesSection/Loading.tsx +15 -0
  127. package/lib/components/contact/OfficesSection/index.tsx +22 -0
  128. package/lib/components/contact/OfficesSection/styles.module.scss +9 -0
  129. package/lib/components/news/Posts/Loading.tsx +52 -0
  130. package/lib/components/news/Posts/More.tsx +94 -0
  131. package/lib/components/news/Posts/index.tsx +61 -0
  132. package/lib/components/news/Posts/styles.module.scss +171 -0
  133. package/lib/components/single/Content/CenterColumn.tsx +18 -0
  134. package/lib/components/single/Content/FullWidthImage.tsx +60 -0
  135. package/lib/components/single/Content/Loading.tsx +12 -0
  136. package/lib/components/single/Content/TwoColumns/Left.tsx +80 -0
  137. package/lib/components/single/Content/TwoColumns/Right.tsx +79 -0
  138. package/lib/components/single/Content/TwoColumns/index.tsx +32 -0
  139. package/lib/components/single/Content/Video.tsx +88 -0
  140. package/lib/components/single/Content/index.tsx +107 -0
  141. package/lib/components/single/Content/styles.module.scss +205 -0
  142. package/lib/components/single/Other/index.tsx +55 -0
  143. package/lib/components/single/Other/styles.module.scss +114 -0
  144. package/lib/components/single/ShareBar/index.tsx +53 -0
  145. package/lib/components/single/ShareBar/styles.module.scss +63 -0
  146. package/lib/components/single/Top/Breadcrumbs.tsx +34 -0
  147. package/lib/components/single/Top/Loading.tsx +14 -0
  148. package/lib/components/single/Top/index.tsx +20 -0
  149. package/lib/components/single/Top/styles.module.scss +163 -0
  150. package/lib/hooks/useClickOutside.ts +27 -0
  151. package/lib/hooks/useDrag.ts +59 -0
  152. package/lib/hooks/useOnScreen.ts +27 -0
  153. package/lib/index.ts +83 -0
  154. package/lib/queries/client.ts +6 -0
  155. package/lib/queries/getAboutPage.ts +164 -0
  156. package/lib/queries/getBrands.ts +26 -0
  157. package/lib/queries/getCaseBySlug.ts +187 -0
  158. package/lib/queries/getCases.ts +124 -0
  159. package/lib/queries/getCasesPage.ts +217 -0
  160. package/lib/queries/getCategories.ts +23 -0
  161. package/lib/queries/getContactPage.ts +100 -0
  162. package/lib/queries/getHomePage.ts +215 -0
  163. package/lib/queries/getHubBySlug.ts +143 -0
  164. package/lib/queries/getHubs.ts +131 -0
  165. package/lib/queries/getHubsPage.ts +246 -0
  166. package/lib/queries/getMetadataBySlug.ts +48 -0
  167. package/lib/queries/getNewsPage.ts +170 -0
  168. package/lib/queries/getPageBySlug.ts +19 -0
  169. package/lib/queries/getPeoplePage.ts +117 -0
  170. package/lib/queries/getPerformanceHubPage.ts +170 -0
  171. package/lib/queries/getPostBySlug.ts +132 -0
  172. package/lib/queries/getPosts.ts +123 -0
  173. package/lib/queries/index.ts +39 -0
  174. package/lib/types/index.ts +316 -0
  175. package/lib/utils.ts +3 -0
  176. package/lib/vite-env.d.ts +2 -0
  177. package/package.json +2 -2
@@ -0,0 +1,316 @@
1
+ import Image from "next/image";
2
+ import Link from "next/link";
3
+ import { NextRouter as Router } from "next/router";
4
+ import { ReadonlyURLSearchParams } from "next/navigation";
5
+
6
+ export type NextImage = typeof Image;
7
+ export type NextLink = typeof Link;
8
+ export type NextRouter = Router;
9
+ export type NextSearchParams = ReadonlyURLSearchParams;
10
+
11
+ export interface Variables {
12
+ perPage: number;
13
+ before?: string | null;
14
+ after?: string | null;
15
+ search?: string;
16
+ categorySlug?: string;
17
+ language?: string;
18
+ slug?: string;
19
+ exclude?: string;
20
+ }
21
+
22
+ export interface Metadata {
23
+ seo?: {
24
+ title: string;
25
+ metaDesc: string;
26
+ opengraphImage: {
27
+ sourceUrl: string;
28
+ };
29
+ };
30
+ }
31
+
32
+ type ColumnImage = {
33
+ fieldGroupName:
34
+ | "Post_Customfieldsposts_Content_Twocolumns_Left_Image"
35
+ | "Post_Customfieldsposts_Content_Twocolumns_Right_Image"
36
+ | "Case_Case_Content_Twocolumns_Left_Image"
37
+ | "Case_Case_Content_Twocolumns_Right_Image";
38
+ image: { sourceUrl: string };
39
+ caption?: string;
40
+ };
41
+
42
+ type ColumnText = {
43
+ fieldGroupName:
44
+ | "Post_Customfieldsposts_Content_Twocolumns_Left_Text"
45
+ | "Post_Customfieldsposts_Content_Twocolumns_Right_Text"
46
+ | "Case_Case_Content_Twocolumns_Left_Text"
47
+ | "Case_Case_Content_Twocolumns_Right_Text";
48
+ text: string;
49
+ };
50
+
51
+ export type ColumnOption = ColumnImage | ColumnText | Video;
52
+
53
+ export type FullWidthImage = {
54
+ fieldGroupName:
55
+ | "Post_Customfieldsposts_Content_FullWidthImage"
56
+ | "Case_Case_Content_FullWidthImage";
57
+ fullWidth?: boolean;
58
+ image: { sourceUrl: string };
59
+ caption: string;
60
+ };
61
+
62
+ export type CenterColumn = {
63
+ fieldGroupName:
64
+ | "Post_Customfieldsposts_Content_CenterColumn"
65
+ | "Case_Case_Content_CenterColumn";
66
+ text: string;
67
+ };
68
+
69
+ export type TwoColumns = {
70
+ fieldGroupName:
71
+ | "Post_Customfieldsposts_Content_Twocolumns"
72
+ | "Case_Case_Content_Twocolumns";
73
+ left?: ColumnOption[];
74
+ right?: ColumnOption[];
75
+ };
76
+
77
+ export type Video = {
78
+ fieldGroupName:
79
+ | "Post_Customfieldsposts_Content_Video"
80
+ | "Case_Case_Content_Video"
81
+ | "Post_Customfieldsposts_Content_Twocolumns_Left_Video"
82
+ | "Post_Customfieldsposts_Content_Twocolumns_Right_Video"
83
+ | "Case_Case_Content_Twocolumns_Left_Video"
84
+ | "Case_Case_Content_Twocolumns_Right_Video";
85
+ autoplay: boolean;
86
+ poster: { sourceUrl: string };
87
+ caption: string;
88
+ video: string;
89
+ ratio: string;
90
+ };
91
+
92
+ export type Quote = {
93
+ fieldGroupName: "Case_Case_Content_Quote";
94
+ name?: string;
95
+ position?: string;
96
+ text?: string;
97
+ };
98
+
99
+ export type Results = {
100
+ fieldGroupName: "Case_Case_Content_Results";
101
+ context: string;
102
+ approach: string;
103
+ outcome: string;
104
+ };
105
+
106
+ export type Numbers = {
107
+ fieldGroupName: "Case_Case_Content_Numbers";
108
+ number1: string;
109
+ text1: string;
110
+ number2: string;
111
+ text2: string;
112
+ number3: string;
113
+ text3: string;
114
+ };
115
+
116
+ export type Category = {
117
+ id: string;
118
+ name: string;
119
+ slug: string;
120
+ count: number;
121
+ };
122
+
123
+ export type Content = (
124
+ | FullWidthImage
125
+ | CenterColumn
126
+ | TwoColumns
127
+ | Video
128
+ | Results
129
+ | Numbers
130
+ | Quote
131
+ )[];
132
+
133
+ export type Page = {
134
+ id: number;
135
+ title: string;
136
+ slug: string;
137
+ date: string;
138
+ content: string;
139
+ author: {
140
+ node: {
141
+ name: string;
142
+ };
143
+ };
144
+ categories: {
145
+ nodes: {
146
+ name: Array<string>;
147
+ };
148
+ };
149
+ tags: {
150
+ nodes: {
151
+ name: string;
152
+ };
153
+ };
154
+ customFields: {
155
+ brands: {
156
+ title: string;
157
+ image: {
158
+ sourceUrl: string;
159
+ };
160
+ }[];
161
+ };
162
+ };
163
+
164
+ export type Post = {
165
+ id: number;
166
+ title: string;
167
+ slug: string;
168
+ uri: string;
169
+ date: string;
170
+ content: string;
171
+ author: {
172
+ node: {
173
+ name: string;
174
+ };
175
+ };
176
+ categories: {
177
+ nodes: {
178
+ name: Array<string>;
179
+ };
180
+ };
181
+ tags: {
182
+ nodes: {
183
+ name: string;
184
+ };
185
+ };
186
+ CustomFieldsPosts: {
187
+ thumbnailImage: {
188
+ sourceUrl: string;
189
+ };
190
+ excerpt: string;
191
+ content: Content;
192
+ };
193
+ };
194
+
195
+ export type PostPreview = {
196
+ id: string;
197
+ title: string;
198
+ uri: string;
199
+ CustomFieldsPosts: {
200
+ excerpt: string;
201
+ thumbnailImage: {
202
+ sourceUrl: string;
203
+ };
204
+ };
205
+ };
206
+
207
+ export type Case = {
208
+ id: string;
209
+ title: string;
210
+ slug?: string;
211
+ uri: string;
212
+ date?: string;
213
+ content?: string;
214
+ author?: {
215
+ node: {
216
+ name: string;
217
+ };
218
+ };
219
+ categories?: {
220
+ nodes: {
221
+ name: Array<string>;
222
+ };
223
+ };
224
+ case: {
225
+ excerpt?: string;
226
+ caption?: string;
227
+ featured?: boolean;
228
+ service?: string[];
229
+ industry?: string[];
230
+ thumbnailVideo?: {
231
+ mediaItemUrl: string;
232
+ };
233
+ mainImage?: {
234
+ sourceUrl: string;
235
+ };
236
+ details?: {
237
+ heading: string;
238
+ text: string;
239
+ }[];
240
+ awards?: {
241
+ heading: string;
242
+ text: string;
243
+ image: {
244
+ sourceUrl: string;
245
+ };
246
+ }[];
247
+ content?: Content;
248
+ };
249
+ };
250
+
251
+ export type OfficeDetails = {
252
+ berlinImage?: {
253
+ sourceUrl: string;
254
+ };
255
+ berlinText?: string;
256
+ berlinEmail?: string;
257
+ berlinPhone?: string;
258
+ berlinAddress?: string;
259
+ berlinAddressLink?: string;
260
+ zurichImage?: {
261
+ sourceUrl: string;
262
+ };
263
+ zurichText?: string;
264
+ zurichEmail?: string;
265
+ zurichPhone?: string;
266
+ zurichAddress?: string;
267
+ zurichAddressLink?: string;
268
+ newyorkImage?: {
269
+ sourceUrl: string;
270
+ };
271
+ newyorkText?: string;
272
+ newyorkEmail?: string;
273
+ newyorkPhone?: string;
274
+ newyorkAddress?: string;
275
+ newyorkAddressLink?: string;
276
+ };
277
+
278
+ export type Hub = {
279
+ id: string;
280
+ title: string;
281
+ slug: string;
282
+ uri: string;
283
+ customFieldsHub: {
284
+ mainimage: {
285
+ sourceUrl: string;
286
+ };
287
+ caption: string;
288
+ heading: string;
289
+ subheading: string;
290
+ tags: {
291
+ tag: string;
292
+ }[];
293
+ approach: string;
294
+ relatedWork: Case[];
295
+ capabilities: {
296
+ heading: string;
297
+ text: string;
298
+ cases: Case[];
299
+ }[];
300
+ quoteName?: string;
301
+ quotePosition?: string;
302
+ quoteText?: string;
303
+ };
304
+ };
305
+
306
+ export type Person = {
307
+ name: string;
308
+ position: string;
309
+ tags: string[];
310
+ image: {
311
+ sourceUrl: string;
312
+ };
313
+ video: {
314
+ sourceUrl: string;
315
+ };
316
+ };
package/lib/utils.ts ADDED
@@ -0,0 +1,3 @@
1
+ export const translate = (text: string) => {
2
+ return text;
3
+ };
@@ -0,0 +1,2 @@
1
+ /// <reference types="vite/client" />
2
+ /// <reference types="vite-plugin-svgr/client" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foundry-component-library",
3
- "version": "0.0.0",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  }
20
20
  },
21
21
  "files": [
22
- "dist"
22
+ "lib"
23
23
  ],
24
24
  "scripts": {
25
25
  "dev": "vite",