@ilo-org/react 0.20.0 → 0.21.0

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 (76) hide show
  1. package/lib/cjs/_store/{Breadcrumb-chunk-BGt10GMr.js → Breadcrumb-chunk-DkUvpxym.js} +1 -1
  2. package/lib/cjs/_store/{Breadcrumb-entry-BcWOPogy.js → Breadcrumb-entry-PID5wRYn.js} +1 -1
  3. package/lib/cjs/_store/CardGroup-chunk-C_EtI9iK.js +1 -0
  4. package/lib/cjs/_store/{Cards-entry-Ckiqvv1d.js → Cards-entry-C_9kqjEx.js} +1 -1
  5. package/lib/cjs/_store/ContextMenu-chunk-Dl3-wUCt.js +1 -0
  6. package/lib/cjs/_store/{ContextMenu-entry-UwZc4yU3.js → ContextMenu-entry-Bzzoi_xM.js} +1 -1
  7. package/lib/cjs/_store/{Hero-chunk-CBIMDQWO.js → Hero-chunk-B3vu8ihD.js} +1 -1
  8. package/lib/cjs/_store/{Hero-entry-CeEUu88o.js → Hero-entry-CAssbp0C.js} +1 -1
  9. package/lib/cjs/_store/LanguageToggle-chunk-CrtaBUlW.js +1 -0
  10. package/lib/cjs/_store/{LanguageToggle-entry-ALUfRa_V.js → LanguageToggle-entry-CHgP8iuU.js} +1 -1
  11. package/lib/cjs/_store/Nav-entry-BxYm9ulI.js +1 -0
  12. package/lib/cjs/_store/SubsiteNav-chunk-BphCnfvs.js +1 -0
  13. package/lib/cjs/_store/components-entry-BU_6L6id.js +1 -0
  14. package/lib/cjs/_store/index.js +1 -1
  15. package/lib/cjs/_store/useBreakpoint-chunk-CBEGGRKj.js +1 -0
  16. package/lib/cjs/index.js +1 -1
  17. package/lib/esm/_store/{Breadcrumb-chunk-DcsXzPvT.js → Breadcrumb-chunk-DcupgWDR.js} +1 -1
  18. package/lib/esm/_store/Breadcrumb-entry-1SOUCUgD.js +4 -0
  19. package/lib/esm/_store/CardGroup-chunk-BykGdrCT.js +425 -0
  20. package/lib/esm/_store/{Cards-entry-DOWpgXsU.js → Cards-entry-DjtBPvwt.js} +1 -1
  21. package/lib/esm/_store/ContextMenu-chunk-D-riZIFp.js +32 -0
  22. package/lib/esm/_store/ContextMenu-entry-BN-vEJes.js +4 -0
  23. package/lib/esm/_store/{Hero-chunk-CZ6kSiY-.js → Hero-chunk-C1gFHcIP.js} +1 -1
  24. package/lib/esm/_store/Hero-entry-DWpRL6uz.js +4 -0
  25. package/lib/esm/_store/LanguageToggle-chunk-CsayoJqR.js +70 -0
  26. package/lib/esm/_store/LanguageToggle-entry-D3t_X2Qk.js +4 -0
  27. package/lib/esm/_store/Nav-entry-CsQzrNK7.js +4 -0
  28. package/lib/esm/_store/SubsiteNav-chunk-C97AqH9F.js +549 -0
  29. package/lib/esm/_store/{components-entry-C4N0L4xP.js → components-entry-COAKlxYx.js} +28 -28
  30. package/lib/esm/_store/index.js +4 -2
  31. package/lib/esm/_store/useBreakpoint-chunk-DBZTYUx9.js +54 -0
  32. package/lib/esm/index.js +42 -40
  33. package/lib/styles/components/languagetoggle.css +1 -1
  34. package/lib/styles/components/video.css +1 -1
  35. package/lib/styles/global.css +1 -1
  36. package/lib/styles/global.css.map +1 -1
  37. package/lib/styles/index.css +2 -2
  38. package/lib/styles/index.css.map +1 -1
  39. package/lib/styles/monorepo.css +2 -2
  40. package/lib/styles/monorepo.css.map +1 -1
  41. package/lib/types/components/ContextMenu/ContextMenu.d.ts +4 -0
  42. package/lib/types/components/LanguageToggle/LanguageToggle.d.ts +2 -20
  43. package/lib/types/components/Nav/Navigation.props.d.ts +112 -0
  44. package/lib/types/components/Nav/NavigationDropdown.d.ts +19 -0
  45. package/lib/types/components/Nav/NavigationLink.d.ts +4 -0
  46. package/lib/types/components/Nav/NavigationMenu.d.ts +13 -0
  47. package/lib/types/components/Nav/NavigationMenuGrid.d.ts +7 -0
  48. package/lib/types/components/Nav/Subsite/CompactNav.d.ts +4 -0
  49. package/lib/types/components/Nav/Subsite/ComplexNav.d.ts +4 -0
  50. package/lib/types/components/Nav/Subsite/SubsiteNav.d.ts +4 -0
  51. package/lib/types/components/Nav/index.d.ts +2 -0
  52. package/lib/types/components/Nav/mobile/MobileDrawer.d.ts +27 -0
  53. package/lib/types/components/Nav/mobile/MobileLanguageList.d.ts +9 -0
  54. package/lib/types/components/Nav/mobile/MobileMenuList.d.ts +8 -0
  55. package/lib/types/components/Nav/mobile/MobileNavigation.d.ts +15 -0
  56. package/lib/types/components/Nav/useNavSetup.d.ts +22 -0
  57. package/lib/types/components/index.d.ts +1 -1
  58. package/lib/types/hooks/index.d.ts +1 -0
  59. package/lib/types/hooks/useBreakpoint.d.ts +7 -0
  60. package/package.json +7 -6
  61. package/lib/cjs/_store/CardGroup-chunk-D3sPRsTS.js +0 -1
  62. package/lib/cjs/_store/ContextMenu-chunk-Ch5u_T0d.js +0 -1
  63. package/lib/cjs/_store/LanguageToggle-chunk-DsJntngZ.js +0 -1
  64. package/lib/cjs/_store/LocalNav-entry-SfLDP8BS.js +0 -1
  65. package/lib/cjs/_store/components-entry-Buq0cts7.js +0 -1
  66. package/lib/esm/_store/Breadcrumb-entry-B7kN28qm.js +0 -4
  67. package/lib/esm/_store/CardGroup-chunk-DCTJOxvx.js +0 -425
  68. package/lib/esm/_store/ContextMenu-chunk-Zy9igFLz.js +0 -30
  69. package/lib/esm/_store/ContextMenu-entry-C_rAD9kF.js +0 -4
  70. package/lib/esm/_store/Hero-entry-DILGWuC0.js +0 -4
  71. package/lib/esm/_store/LanguageToggle-chunk-BxzhPBjU.js +0 -62
  72. package/lib/esm/_store/LanguageToggle-entry-COfb1a3N.js +0 -4
  73. package/lib/esm/_store/LocalNav-entry-DydB3k67.js +0 -4
  74. package/lib/types/components/LocalNav/LocalNav.d.ts +0 -5
  75. package/lib/types/components/LocalNav/LocalNav.props.d.ts +0 -38
  76. package/lib/types/components/LocalNav/index.d.ts +0 -1
@@ -1,425 +0,0 @@
1
- import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
- import { forwardRef as v, Fragment as x } from "react";
3
- import { c as u } from "./index-chunk-0LeqwHm8.js";
4
- import { u as f } from "./useGlobalSettings-chunk-gkijV3S1.js";
5
- import { B as C } from "./Button-chunk-BlSnS8yQ.js";
6
- import { L as y } from "./Link-chunk-CKAMN_c4.js";
7
- import { L as g } from "./LinkList-chunk-BM5BTk9m.js";
8
- import { P as k } from "./Profile-chunk-Tpvzafuk.js";
9
- import { List as w } from "./List-entry-XHat7PmC.js";
10
- const L = v(
11
- ({
12
- className: h,
13
- title: r,
14
- theme: n = "light",
15
- size: s = "standard",
16
- color: p,
17
- intro: i,
18
- source: $,
19
- titleLevel: m = "p"
20
- }, a) => {
21
- const { prefix: N } = f(), _ = `${N}--card`, d = u(`${_}--wrapper`, h), l = u(_, `${_}__type__stat`, {
22
- [`${_}__size__${String(s)}`]: s,
23
- [`${_}__theme__${n}`]: n,
24
- [`${_}__color__${p}`]: p
25
- });
26
- return /* @__PURE__ */ e("div", { className: d, ref: a, children: /* @__PURE__ */ e("div", { className: l, children: /* @__PURE__ */ e("div", { className: `${_}--wrap`, children: /* @__PURE__ */ o("div", { className: `${_}--content`, children: [
27
- /* @__PURE__ */ e(m, { className: `${_}--title`, children: r }),
28
- i && /* @__PURE__ */ e("p", { className: `${_}--intro`, children: i }),
29
- $ && /* @__PURE__ */ e(
30
- y,
31
- {
32
- className: `${_}--source`,
33
- url: $.url,
34
- label: $.label
35
- }
36
- )
37
- ] }) }) }) });
38
- }
39
- ), S = v(
40
- ({
41
- className: h,
42
- title: r,
43
- size: n = "standard",
44
- alignment: s,
45
- intro: p,
46
- link: i,
47
- linklist: $,
48
- image: m,
49
- titleLevel: a = "p",
50
- eyebrow: N,
51
- isVideo: _,
52
- theme: d = "light"
53
- }, l) => {
54
- const { prefix: t } = f(), c = `${t}--card`, b = u(
55
- c,
56
- h,
57
- `${c}__type__multilink`,
58
- {
59
- [`${c}__align__${s}`]: s,
60
- [`${c}__action`]: i,
61
- [`${c}__size__${n}`]: n,
62
- [`${c}__isvideo`]: _,
63
- [`${c}--no-image`]: !m,
64
- [`${c}__theme__${d}`]: d
65
- }
66
- );
67
- return /* @__PURE__ */ o("div", { className: b, ref: l, children: [
68
- i && /* @__PURE__ */ e("a", { className: `${c}--link`, href: i, title: r, children: /* @__PURE__ */ e("span", { className: `${c}--link--text`, children: r }) }),
69
- /* @__PURE__ */ o("div", { className: `${c}--wrap`, children: [
70
- m && /* @__PURE__ */ e("div", { className: `${c}--image--wrapper`, children: /* @__PURE__ */ e("picture", { children: /* @__PURE__ */ e(
71
- "img",
72
- {
73
- src: m,
74
- alt: r,
75
- className: `${c}--picture`
76
- }
77
- ) }) }),
78
- /* @__PURE__ */ o("div", { className: `${c}--content`, children: [
79
- N && /* @__PURE__ */ e("p", { className: `${c}--eyebrow`, children: N }),
80
- /* @__PURE__ */ e(a, { className: `${c}--title`, children: r }),
81
- m && /* @__PURE__ */ e("div", { className: `${c}--image--wrapper`, children: /* @__PURE__ */ e("picture", { children: /* @__PURE__ */ e(
82
- "img",
83
- {
84
- src: m,
85
- alt: r,
86
- className: `${c}--picture`
87
- }
88
- ) }) }),
89
- p && /* @__PURE__ */ e("p", { className: `${c}--intro`, children: p }),
90
- $ && /* @__PURE__ */ e(g, { ...$ })
91
- ] })
92
- ] })
93
- ] });
94
- }
95
- ), T = v(
96
- ({
97
- className: h,
98
- title: r,
99
- theme: n = "light",
100
- size: s = "narrow",
101
- date: p,
102
- profile: i,
103
- link: $,
104
- titleLevel: m = "p",
105
- eyebrow: a
106
- }, N) => {
107
- const { prefix: _ } = f(), d = `${_}--card`, l = u(`${d}--wrapper`, h), t = u(d, `${d}__type__text`, {
108
- [`${d}__action`]: $,
109
- [`${d}__size__${String(s)}`]: s,
110
- [`${d}__theme__${n}`]: n
111
- });
112
- return /* @__PURE__ */ e("div", { className: l, ref: N, children: /* @__PURE__ */ o("div", { className: t, children: [
113
- /* @__PURE__ */ e("a", { className: `${d}--link`, href: $, title: r, children: /* @__PURE__ */ e("span", { className: `${d}--link--text`, children: r }) }),
114
- /* @__PURE__ */ e("div", { className: `${d}--wrap`, children: /* @__PURE__ */ o("div", { className: `${d}--content`, children: [
115
- a && /* @__PURE__ */ e("p", { className: `${d}--eyebrow`, children: a }),
116
- /* @__PURE__ */ e(m, { className: `${d}--title`, children: r }),
117
- p && /* @__PURE__ */ e("time", { className: `${d}--date`, dateTime: p.unix, children: p.human }),
118
- i && /* @__PURE__ */ e(
119
- k,
120
- {
121
- avatar: i.avatar,
122
- description: i.description,
123
- link: i.link,
124
- name: i.name,
125
- role: i.role,
126
- theme: n
127
- }
128
- )
129
- ] }) })
130
- ] }) });
131
- }
132
- ), z = v(
133
- ({
134
- className: h,
135
- title: r,
136
- theme: n = "light",
137
- size: s = "narrow",
138
- cornercut: p,
139
- intro: i,
140
- link: $,
141
- cta: m,
142
- titleLevel: a = "p",
143
- eyebrow: N
144
- }, _) => {
145
- const { prefix: d } = f(), l = `${d}--card`, t = u(
146
- `${l}--wrapper`,
147
- h,
148
- `${l}--wrapper__type__promo`,
149
- `${l}--wrapper__type__promo__size__${s}`
150
- ), c = u(l, `${l}__type__promo`, {
151
- [`${l}__action`]: $,
152
- [`${l}__size__${String(s)}`]: s,
153
- [`${l}__theme__${n}`]: n,
154
- [`${l}__cornercut`]: p
155
- });
156
- return /* @__PURE__ */ e("div", { className: t, ref: _, children: /* @__PURE__ */ o("div", { className: c, children: [
157
- /* @__PURE__ */ e("a", { className: `${l}--link`, href: $, title: r, children: /* @__PURE__ */ e("span", { className: `${l}--link--text`, children: r }) }),
158
- /* @__PURE__ */ e("div", { className: `${l}--wrap`, children: /* @__PURE__ */ o("div", { className: `${l}--content`, children: [
159
- N && /* @__PURE__ */ e("p", { className: `${l}--eyebrow`, children: N }),
160
- /* @__PURE__ */ e(a, { className: `${l}--title`, children: r }),
161
- i && /* @__PURE__ */ e("p", { className: `${l}--intro`, children: i }),
162
- (m == null ? void 0 : m.label) && /* @__PURE__ */ e("div", { className: `${l}--cta`, children: /* @__PURE__ */ e(
163
- C,
164
- {
165
- link: { url: m.url, label: m.label },
166
- size: "medium",
167
- type: "primary"
168
- }
169
- ) })
170
- ] }) })
171
- ] }) });
172
- }
173
- ), F = v(
174
- ({
175
- className: h,
176
- title: r,
177
- theme: n = "light",
178
- size: s = "narrow",
179
- date: p,
180
- link: i,
181
- linklist: $,
182
- image: m,
183
- titleLevel: a = "p",
184
- eyebrow: N,
185
- isVideo: _
186
- }, d) => {
187
- const { prefix: l } = f(), t = `${l}--card`, c = u(
188
- t,
189
- h,
190
- `${t}__type__feature`,
191
- {
192
- [`${t}__action`]: i,
193
- [`${t}__size__${String(s)}`]: s,
194
- [`${t}__theme__${n}`]: n,
195
- [`${t}__isvideo`]: _,
196
- [`${t}__linklist`]: $
197
- }
198
- );
199
- return /* @__PURE__ */ o("div", { className: c, ref: d, children: [
200
- i && /* @__PURE__ */ e("a", { className: `${t}--link`, href: i, title: r, children: /* @__PURE__ */ e("span", { className: `${t}--link--text`, children: r }) }),
201
- /* @__PURE__ */ o("div", { className: `${t}--wrap`, children: [
202
- m && /* @__PURE__ */ e("div", { className: `${t}--image--wrapper`, children: /* @__PURE__ */ e("picture", { children: /* @__PURE__ */ e(
203
- "img",
204
- {
205
- src: m,
206
- alt: r,
207
- className: `${t}--picture`
208
- }
209
- ) }) }),
210
- /* @__PURE__ */ o("div", { className: `${t}--content`, children: [
211
- N && /* @__PURE__ */ e("p", { className: `${t}--eyebrow`, children: N }),
212
- /* @__PURE__ */ e(a, { className: `${t}--title`, children: r }),
213
- p && /* @__PURE__ */ e("time", { className: `${t}--date`, dateTime: p.unix, children: p.human }),
214
- $ && /* @__PURE__ */ e(
215
- g,
216
- {
217
- headline: $.headline,
218
- linkgroup: $.linkgroup,
219
- theme: n
220
- }
221
- )
222
- ] })
223
- ] })
224
- ] });
225
- }
226
- ), P = v(
227
- ({
228
- className: h,
229
- title: r,
230
- theme: n = "light",
231
- size: s = "narrow",
232
- date: p,
233
- details: i,
234
- link: $,
235
- titleLevel: m = "p",
236
- eyebrow: a,
237
- intro: N,
238
- image: _,
239
- isVideo: d = !1
240
- }, l) => {
241
- const { prefix: t } = f(), c = `${t}--card`, b = u(
242
- c,
243
- `${c}__type__detail`,
244
- h,
245
- {
246
- [`${c}__action`]: $,
247
- [`${c}__size__${String(s)}`]: s,
248
- [`${c}__theme__${n}`]: n,
249
- [`${c}__isvideo`]: d
250
- }
251
- );
252
- return /* @__PURE__ */ o("div", { className: b, ref: l, children: [
253
- $ && /* @__PURE__ */ e("a", { className: `${c}--link`, href: $, title: r, children: /* @__PURE__ */ e("span", { className: `${c}--link--text`, children: r }) }),
254
- /* @__PURE__ */ o("div", { className: `${c}--wrap`, children: [
255
- _ && /* @__PURE__ */ e("div", { className: `${c}--image--wrapper`, children: /* @__PURE__ */ e("picture", { children: /* @__PURE__ */ e(
256
- "img",
257
- {
258
- className: `${c}--picture`,
259
- src: _,
260
- alt: r
261
- }
262
- ) }) }),
263
- /* @__PURE__ */ o("div", { className: `${c}--content`, children: [
264
- a && /* @__PURE__ */ e("p", { className: `${c}--eyebrow`, children: a }),
265
- r && /* @__PURE__ */ e(m, { className: `${c}--title`, children: r }),
266
- N && /* @__PURE__ */ e("p", { className: `${c}--intro`, children: N }),
267
- p && /* @__PURE__ */ e("time", { className: `${c}--date`, dateTime: p.unix, children: p.human }),
268
- i && /* @__PURE__ */ e("p", { className: `${c}--date-extra`, children: i })
269
- ] })
270
- ] })
271
- ] });
272
- }
273
- ), D = v(
274
- ({
275
- title: h,
276
- theme: r = "light",
277
- size: n = "narrow",
278
- list: s,
279
- titleLevel: p = "p",
280
- className: i
281
- }, $) => {
282
- const { prefix: m } = f(), a = `${m}--card`, N = u(
283
- a,
284
- `${a}__type__factlist`,
285
- i,
286
- {
287
- [`${a}__size__${n}`]: n,
288
- [`${a}__theme__${r}`]: r
289
- }
290
- );
291
- return /* @__PURE__ */ e("div", { className: N, ref: $, children: /* @__PURE__ */ e("div", { className: `${a}--wrap`, children: /* @__PURE__ */ o("div", { className: `${a}--content`, children: [
292
- h && /* @__PURE__ */ e(p, { className: `${m}--card--title`, children: h }),
293
- /* @__PURE__ */ e(w, { alignment: "default", ordered: "unordered", theme: r, children: s.map((_) => /* @__PURE__ */ e(w.Item, { children: /* @__PURE__ */ e("p", { children: _ }) }, _)) })
294
- ] }) }) });
295
- }
296
- ), G = v(
297
- ({ eyebrow: h, size: r = "narrow", image: n, dataset: s, columns: p = "one", className: i }, $) => {
298
- var d;
299
- const { prefix: m } = f(), a = `${m}--card`, N = u(
300
- a,
301
- `${a}__type__data`,
302
- i,
303
- {
304
- [`${a}__size__${String(r)}`]: r,
305
- [`${a}__type__data__columns__${p}`]: p
306
- }
307
- ), _ = u(`${a}--content`, {
308
- [`${a}--content__with-image`]: n,
309
- [`${a}--content__no-image-with-links`]: !n && (s == null ? void 0 : s.links),
310
- [`${a}--content__default`]: !n && !(s != null && s.links)
311
- });
312
- return /* @__PURE__ */ e("div", { className: N, ref: $, children: /* @__PURE__ */ o("div", { className: `${a}--wrap`, children: [
313
- !n && h && /* @__PURE__ */ e("div", { className: `${a}--eyebrow`, children: h }),
314
- /* @__PURE__ */ o("div", { className: _, children: [
315
- n && /* @__PURE__ */ o("div", { className: `${a}--area--image`, children: [
316
- h && /* @__PURE__ */ e("div", { className: `${a}--eyebrow`, children: h }),
317
- /* @__PURE__ */ e("div", { className: `${a}--image`, children: /* @__PURE__ */ e("picture", { children: /* @__PURE__ */ e(
318
- "img",
319
- {
320
- className: `${a}--picture`,
321
- src: n,
322
- alt: h
323
- }
324
- ) }) })
325
- ] }),
326
- (d = s == null ? void 0 : s.content) == null ? void 0 : d.items.map((l, t) => /* @__PURE__ */ o("div", { className: `${a}--area--content`, children: [
327
- /* @__PURE__ */ e("p", { className: `${a}__type__data--content-label`, children: l.label }),
328
- /* @__PURE__ */ e("p", { className: `${a}__type__data--content-copy`, children: l.copy })
329
- ] }, t)),
330
- (s == null ? void 0 : s.files) && /* @__PURE__ */ e("div", { className: `${a}--area--files`, children: /* @__PURE__ */ o("div", { className: `${a}__type__data--content-files`, children: [
331
- /* @__PURE__ */ e("p", { className: `${a}__type__data--content-label`, children: s.files.headline }),
332
- s.files.items.map((l, t) => /* @__PURE__ */ e(
333
- C,
334
- {
335
- link: {
336
- url: l.url,
337
- label: l.label,
338
- target: l.target || "_self"
339
- },
340
- size: "small"
341
- },
342
- t
343
- ))
344
- ] }) }),
345
- (s == null ? void 0 : s.cta) && /* @__PURE__ */ e("div", { className: `${a}--area--cta`, children: /* @__PURE__ */ o("div", { className: `${a}__type__data--content-cta`, children: [
346
- /* @__PURE__ */ e("p", { className: `${a}__type__data--content-label`, children: s.cta.headline }),
347
- s.cta.items.map((l) => /* @__PURE__ */ e(
348
- C,
349
- {
350
- type: "secondary",
351
- size: "small",
352
- link: {
353
- url: l.url,
354
- label: l.label,
355
- target: l.target
356
- }
357
- },
358
- l.label
359
- ))
360
- ] }) }),
361
- (s == null ? void 0 : s.links) && /* @__PURE__ */ e("div", { className: `${a}--area--links`, children: /* @__PURE__ */ o("div", { className: `${a}__type__data--content-links`, children: [
362
- /* @__PURE__ */ e("p", { className: `${a}__type__data--content-label`, children: s.links.headline }),
363
- /* @__PURE__ */ e(
364
- "div",
365
- {
366
- className: `${a}__type__data--content-links-list`,
367
- children: s.links.items.map((l) => /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(
368
- y,
369
- {
370
- url: l.url,
371
- label: l.label,
372
- className: `${a}__type__data--content-link`
373
- }
374
- ) }, l.label + l.url))
375
- }
376
- )
377
- ] }) })
378
- ] })
379
- ] }) });
380
- }
381
- ), M = {
382
- stat: L,
383
- multilink: S,
384
- text: T,
385
- promo: z,
386
- feature: F,
387
- detail: P,
388
- factlist: D,
389
- data: G
390
- }, K = v(
391
- ({ type: h, group: r, cardCount: n = "one", cta: s, collapsed: p = !1 }, i) => {
392
- const $ = M[h], { prefix: m } = f(), a = `${m}--cardgroup`, N = u(
393
- a,
394
- `${a}__count__${n}`,
395
- {
396
- [`${a}__collapsed`]: p
397
- }
398
- );
399
- return /* @__PURE__ */ o("div", { className: N, ref: i, children: [
400
- /* @__PURE__ */ e("div", { className: `${a}--inner`, children: r.map((_, d) => /* @__PURE__ */ e($, { ..._ }, d)) }),
401
- s && /* @__PURE__ */ e("div", { className: `${a}--button-wrap`, children: /* @__PURE__ */ e(
402
- C,
403
- {
404
- link: {
405
- url: s.url,
406
- label: s.label
407
- },
408
- type: "secondary",
409
- size: "medium"
410
- }
411
- ) })
412
- ] });
413
- }
414
- );
415
- export {
416
- K as C,
417
- P as D,
418
- F,
419
- S as M,
420
- z as P,
421
- L as S,
422
- T,
423
- D as a,
424
- G as b
425
- };
@@ -1,30 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { forwardRef as c } from "react";
3
- import { c as t } from "./index-chunk-0LeqwHm8.js";
4
- import { u as n } from "./useGlobalSettings-chunk-gkijV3S1.js";
5
- const p = c(
6
- ({ className: m, links: o }, r) => {
7
- const { prefix: s } = n();
8
- return /* @__PURE__ */ a(
9
- "ol",
10
- {
11
- className: t(`${s}--context-menu`, m),
12
- ref: r,
13
- children: o.map((e) => /* @__PURE__ */ a(
14
- "li",
15
- {
16
- className: t(`${s}--context-menu--item`, {
17
- endsection: e.endsection,
18
- className: e.className
19
- }),
20
- children: /* @__PURE__ */ a("a", { href: e.url, className: `${s}--context-menu--link`, children: /* @__PURE__ */ a("span", { className: `${s}--context-menu--label`, children: e.label }) })
21
- },
22
- `${e.label}-${e.url}`
23
- ))
24
- }
25
- );
26
- }
27
- );
28
- export {
29
- p as C
30
- };
@@ -1,4 +0,0 @@
1
- import { C as t } from "./ContextMenu-chunk-Zy9igFLz.js";
2
- export {
3
- t as ContextMenu
4
- };
@@ -1,4 +0,0 @@
1
- import { H as e } from "./Hero-chunk-CZ6kSiY-.js";
2
- export {
3
- e as Hero
4
- };
@@ -1,62 +0,0 @@
1
- import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as R, useState as w, useRef as l, useLayoutEffect as m } from "react";
3
- import { u as N } from "./useGlobalSettings-chunk-gkijV3S1.js";
4
- import { c as f } from "./index-chunk-0LeqwHm8.js";
5
- import { C as L } from "./ContextMenu-chunk-Zy9igFLz.js";
6
- const E = R(
7
- ({ className: d, language: g, theme: p = "light", hideIcon: x, options: a, ...$ }, C) => {
8
- const { prefix: h } = N(), [r, u] = w(!0), s = l(null), t = l(null), e = `${h}--language-toggle`;
9
- return m(() => {
10
- function n(c) {
11
- !t.current || !s.current || !t.current.contains(c.target) && !s.current.contains(c.target) && u(!1);
12
- }
13
- return document.addEventListener("mousedown", n), () => {
14
- document.removeEventListener("mousedown", n);
15
- };
16
- }), m(() => {
17
- if (!(!s.current || !t.current) && r) {
18
- const n = s.current.getBoundingClientRect(), c = t.current.getBoundingClientRect();
19
- t.current.style.left = `${n.left + (n.width - c.width) / 2}px`, t.current.style.top = `${n.bottom}px`;
20
- }
21
- }, [r]), /* @__PURE__ */ i(
22
- "div",
23
- {
24
- ref: C,
25
- className: f(e, d, `${e}--${p}`, {
26
- [`${e}--open`]: r
27
- }),
28
- ...$,
29
- children: [
30
- /* @__PURE__ */ i(
31
- "button",
32
- {
33
- className: `${e}--container`,
34
- ref: s,
35
- onClick: () => {
36
- u(!r);
37
- },
38
- children: [
39
- !x && /* @__PURE__ */ o("span", { className: `${e}--icon` }),
40
- /* @__PURE__ */ o("span", { className: `${e}--action`, children: g }),
41
- /* @__PURE__ */ o("span", { className: `${e}--arrow` })
42
- ]
43
- }
44
- ),
45
- a && /* @__PURE__ */ o(
46
- "div",
47
- {
48
- className: f(`${e}--context-menu`, {
49
- [`${e}--context-menu__open`]: r
50
- }),
51
- ref: t,
52
- children: /* @__PURE__ */ o(L, { links: a })
53
- }
54
- )
55
- ]
56
- }
57
- );
58
- }
59
- );
60
- export {
61
- E as L
62
- };
@@ -1,4 +0,0 @@
1
- import { L as e } from "./LanguageToggle-chunk-BxzhPBjU.js";
2
- export {
3
- e as LanguageToggle
4
- };
@@ -1,4 +0,0 @@
1
- const a = () => null, o = a;
2
- export {
3
- o as LocalNav
4
- };
@@ -1,5 +0,0 @@
1
- import { FC } from 'react';
2
- import { LocalNavProps } from './LocalNav.props';
3
-
4
- declare const LocalNav: FC<LocalNavProps>;
5
- export default LocalNav;
@@ -1,38 +0,0 @@
1
- import { LogoProps } from '../Logo/Logo.props';
2
-
3
- export interface LocalNavProps {
4
- /**
5
- * Props for the background colour of the LocalNav
6
- */
7
- background?: string;
8
- /**
9
- * Props for the Logo component of the LocalNav
10
- */
11
- logo: LogoProps;
12
- /**
13
- * Specify the primary items for the LocalNav
14
- */
15
- primarynav?: PrimaryNavProps;
16
- /**
17
- * Specify the main link for the LocalNav
18
- */
19
- /**
20
- * Specify the menu close label for the LocalNav
21
- */
22
- menucloselabel?: string;
23
- /**
24
- * Specify the language label for the LocalNav
25
- */
26
- languagelabel?: string;
27
- }
28
- interface PrimaryNavProps {
29
- /**
30
- * Specify the label for local nav
31
- */
32
- navlabel?: Required<string>;
33
- /**
34
- * Specify the close label for mobile local nav
35
- */
36
- mobilecloselabel?: Required<string>;
37
- }
38
- export {};
@@ -1 +0,0 @@
1
- export { default as LocalNav } from './LocalNav';