@digital-b2c/coreui-kit 0.1.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 (62) hide show
  1. package/LICENSE.txt +21 -0
  2. package/README.md +46 -0
  3. package/dist/icon-ads-HMLDPPRE.svg +3 -0
  4. package/dist/icon-blank-checkbox-QL6YHT6N.svg +3 -0
  5. package/dist/icon-blank-checkbox-white-RBACKJK2.svg +4 -0
  6. package/dist/icon-book-F432UUB3.svg +3 -0
  7. package/dist/icon-briefcase-MEYCJVOB.svg +3 -0
  8. package/dist/icon-calendar-6XVSU5R2.svg +3 -0
  9. package/dist/icon-checked-box-HXJX4QOM.svg +5 -0
  10. package/dist/icon-chevron-default-XRHTPYFD.svg +3 -0
  11. package/dist/icon-chevron-hovered-FXNQAEV3.svg +3 -0
  12. package/dist/icon-chevron-selected-O4VV5EZQ.svg +3 -0
  13. package/dist/icon-circle-chevron-down-YDKTSSAA.svg +3 -0
  14. package/dist/icon-circle-chevron-up-3LVQXDDY.svg +3 -0
  15. package/dist/icon-clipboard-RGBPZIT2.svg +3 -0
  16. package/dist/icon-convo-QXF3HB7U.svg +3 -0
  17. package/dist/icon-down-black-EUGNCX3W.svg +8 -0
  18. package/dist/icon-down-chevron-black-G37U72OZ.svg +3 -0
  19. package/dist/icon-down-chevron-white-PEUV6GJ7.svg +3 -0
  20. package/dist/icon-down-white-W7LIQ7BN.svg +8 -0
  21. package/dist/icon-download-black-F6AGZCYF.svg +15 -0
  22. package/dist/icon-download-white-VVTBJMMN.svg +15 -0
  23. package/dist/icon-eye-WAXJAF7C.svg +3 -0
  24. package/dist/icon-filled-chevron-left-2GY5O2G4.svg +3 -0
  25. package/dist/icon-filled-chevron-right-B6WC4UDP.svg +3 -0
  26. package/dist/icon-filled-chevron-up-DSHNXAIR.svg +3 -0
  27. package/dist/icon-globe-JOM23IWB.svg +3 -0
  28. package/dist/icon-hospital-HVKSQ2IF.svg +3 -0
  29. package/dist/icon-left-white-LTF2XPVJ.svg +8 -0
  30. package/dist/icon-library-56UDTCFP.svg +3 -0
  31. package/dist/icon-location-KVE4HFKV.svg +3 -0
  32. package/dist/icon-mail-black-H4JSL6GN.svg +10 -0
  33. package/dist/icon-marketing-YDUDTK7R.svg +3 -0
  34. package/dist/icon-menu-black-AI7IZGAV.svg +10 -0
  35. package/dist/icon-menu-white-EJXB5OPZ.svg +3 -0
  36. package/dist/icon-money-EJKRACJI.svg +3 -0
  37. package/dist/icon-people-XD7I6EDH.svg +3 -0
  38. package/dist/icon-right-OAELY3OL.svg +4 -0
  39. package/dist/icon-right-black-63XA3J2N.svg +8 -0
  40. package/dist/icon-right-white-HNWW4VHV.svg +8 -0
  41. package/dist/icon-smile-N5IQOWVQ.svg +3 -0
  42. package/dist/icon-tech-PWRO4Z5G.svg +3 -0
  43. package/dist/icon-tilted-right-EJ3C6PR6.svg +4 -0
  44. package/dist/icon-tilted-right-black-PBETFSTS.svg +8 -0
  45. package/dist/icon-tilted-right-white-W3HNOHCP.svg +3 -0
  46. package/dist/icon-up-chevron-up-white-ZAY6S6FY.svg +3 -0
  47. package/dist/icon-up-chevron-white-RQR5IGQP.svg +3 -0
  48. package/dist/icon-watch-black-SWPMR2N4.svg +3 -0
  49. package/dist/icon-watch-white-6F4DX3RD.svg +3 -0
  50. package/dist/icon-work-57TUXGDH.svg +3 -0
  51. package/dist/icon-workhome-QJL54EJE.svg +3 -0
  52. package/dist/icon-x-black-WBBDGBKZ.svg +4 -0
  53. package/dist/icon-x-white-WVEELCIS.svg +11 -0
  54. package/dist/index.cjs +599 -0
  55. package/dist/index.cjs.map +1 -0
  56. package/dist/index.css +521 -0
  57. package/dist/index.css.map +1 -0
  58. package/dist/index.d.cts +306 -0
  59. package/dist/index.d.ts +306 -0
  60. package/dist/index.mjs +578 -0
  61. package/dist/index.mjs.map +1 -0
  62. package/package.json +91 -0
package/dist/index.mjs ADDED
@@ -0,0 +1,578 @@
1
+ import clsx3 from 'clsx';
2
+ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
+ import React, { useState } from 'react';
4
+
5
+ var __defProp = Object.defineProperty;
6
+ var __defProps = Object.defineProperties;
7
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
+ var __spreadValues = (a, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ if (__getOwnPropSymbols)
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
+ }
21
+ return a;
22
+ };
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
+ var __objRest = (source, exclude) => {
25
+ var target = {};
26
+ for (var prop in source)
27
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
28
+ target[prop] = source[prop];
29
+ if (source != null && __getOwnPropSymbols)
30
+ for (var prop of __getOwnPropSymbols(source)) {
31
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
32
+ target[prop] = source[prop];
33
+ }
34
+ return target;
35
+ };
36
+ var Anchor = (_a) => {
37
+ var _b = _a, { children, isExternal } = _b, props = __objRest(_b, ["children", "isExternal"]);
38
+ return /* @__PURE__ */ jsx(
39
+ "a",
40
+ __spreadProps(__spreadValues({}, props), {
41
+ target: isExternal ? "_blank" : void 0,
42
+ rel: isExternal ? "noopener noreferrer" : void 0,
43
+ children
44
+ })
45
+ );
46
+ };
47
+ var ConditionalWrapper = (_a) => {
48
+ var _b = _a, {
49
+ condition,
50
+ children,
51
+ wrapper: Wrapper,
52
+ fallback: Fallback
53
+ } = _b, rest = __objRest(_b, [
54
+ "condition",
55
+ "children",
56
+ "wrapper",
57
+ "fallback"
58
+ ]);
59
+ return condition && Wrapper ? /* @__PURE__ */ jsx(Wrapper, __spreadProps(__spreadValues({}, rest), { children })) : Fallback ? /* @__PURE__ */ jsx(Fallback, __spreadProps(__spreadValues({}, rest), { children })) : /* @__PURE__ */ jsx(Fragment, { children });
60
+ };
61
+
62
+ // src/assets/icons/card/icon-ads.svg?react
63
+ var icon_ads_default = "./icon-ads-HMLDPPRE.svg?react";
64
+
65
+ // src/assets/icons/card/icon-book.svg?react
66
+ var icon_book_default = "./icon-book-F432UUB3.svg?react";
67
+
68
+ // src/assets/icons/card/icon-briefcase.svg?react
69
+ var icon_briefcase_default = "./icon-briefcase-MEYCJVOB.svg?react";
70
+
71
+ // src/assets/icons/card/icon-calendar.svg?react
72
+ var icon_calendar_default = "./icon-calendar-6XVSU5R2.svg?react";
73
+
74
+ // src/assets/icons/card/icon-clipboard.svg?react
75
+ var icon_clipboard_default = "./icon-clipboard-RGBPZIT2.svg?react";
76
+
77
+ // src/assets/icons/card/icon-convo.svg?react
78
+ var icon_convo_default = "./icon-convo-QXF3HB7U.svg?react";
79
+
80
+ // src/assets/icons/card/icon-eye.svg?react
81
+ var icon_eye_default = "./icon-eye-WAXJAF7C.svg?react";
82
+
83
+ // src/assets/icons/card/icon-globe.svg?react
84
+ var icon_globe_default = "./icon-globe-JOM23IWB.svg?react";
85
+
86
+ // src/assets/icons/card/icon-hospital.svg?react
87
+ var icon_hospital_default = "./icon-hospital-HVKSQ2IF.svg?react";
88
+
89
+ // src/assets/icons/card/icon-library.svg?react
90
+ var icon_library_default = "./icon-library-56UDTCFP.svg?react";
91
+
92
+ // src/assets/icons/card/icon-location.svg?react
93
+ var icon_location_default = "./icon-location-KVE4HFKV.svg?react";
94
+
95
+ // src/assets/icons/card/icon-marketing.svg?react
96
+ var icon_marketing_default = "./icon-marketing-YDUDTK7R.svg?react";
97
+
98
+ // src/assets/icons/card/icon-money.svg?react
99
+ var icon_money_default = "./icon-money-EJKRACJI.svg?react";
100
+
101
+ // src/assets/icons/card/icon-people.svg?react
102
+ var icon_people_default = "./icon-people-XD7I6EDH.svg?react";
103
+
104
+ // src/assets/icons/card/icon-smile.svg?react
105
+ var icon_smile_default = "./icon-smile-N5IQOWVQ.svg?react";
106
+
107
+ // src/assets/icons/card/icon-tech.svg?react
108
+ var icon_tech_default = "./icon-tech-PWRO4Z5G.svg?react";
109
+
110
+ // src/assets/icons/card/icon-work.svg?react
111
+ var icon_work_default = "./icon-work-57TUXGDH.svg?react";
112
+
113
+ // src/assets/icons/card/icon-workhome.svg?react
114
+ var icon_workhome_default = "./icon-workhome-QJL54EJE.svg?react";
115
+
116
+ // src/assets/icons/button/icon-blank-checkbox.svg?react
117
+ var icon_blank_checkbox_default = "./icon-blank-checkbox-QL6YHT6N.svg?react";
118
+
119
+ // src/assets/icons/button/icon-blank-checkbox-white.svg?react
120
+ var icon_blank_checkbox_white_default = "./icon-blank-checkbox-white-RBACKJK2.svg?react";
121
+
122
+ // src/assets/icons/button/icon-checked-box.svg?react
123
+ var icon_checked_box_default = "./icon-checked-box-HXJX4QOM.svg?react";
124
+
125
+ // src/assets/icons/button/icon-circle-chevron-down.svg?react
126
+ var icon_circle_chevron_down_default = "./icon-circle-chevron-down-YDKTSSAA.svg?react";
127
+
128
+ // src/assets/icons/button/icon-circle-chevron-up.svg?react
129
+ var icon_circle_chevron_up_default = "./icon-circle-chevron-up-3LVQXDDY.svg?react";
130
+
131
+ // src/assets/icons/button/icon-down-black.svg?react
132
+ var icon_down_black_default = "./icon-down-black-EUGNCX3W.svg?react";
133
+
134
+ // src/assets/icons/button/icon-down-white.svg?react
135
+ var icon_down_white_default = "./icon-down-white-W7LIQ7BN.svg?react";
136
+
137
+ // src/assets/icons/button/icon-down-chevron-black.svg?react
138
+ var icon_down_chevron_black_default = "./icon-down-chevron-black-G37U72OZ.svg?react";
139
+
140
+ // src/assets/icons/button/icon-down-chevron-white.svg?react
141
+ var icon_down_chevron_white_default = "./icon-down-chevron-white-PEUV6GJ7.svg?react";
142
+
143
+ // src/assets/icons/button/icon-download-black.svg?react
144
+ var icon_download_black_default = "./icon-download-black-F6AGZCYF.svg?react";
145
+
146
+ // src/assets/icons/button/icon-download-white.svg?react
147
+ var icon_download_white_default = "./icon-download-white-VVTBJMMN.svg?react";
148
+
149
+ // src/assets/icons/button/icon-filled-chevron-left.svg?react
150
+ var icon_filled_chevron_left_default = "./icon-filled-chevron-left-2GY5O2G4.svg?react";
151
+
152
+ // src/assets/icons/button/icon-filled-chevron-right.svg?react
153
+ var icon_filled_chevron_right_default = "./icon-filled-chevron-right-B6WC4UDP.svg?react";
154
+
155
+ // src/assets/icons/button/icon-filled-chevron-up.svg?react
156
+ var icon_filled_chevron_up_default = "./icon-filled-chevron-up-DSHNXAIR.svg?react";
157
+
158
+ // src/assets/icons/button/icon-left-white.svg?react
159
+ var icon_left_white_default = "./icon-left-white-LTF2XPVJ.svg?react";
160
+
161
+ // src/assets/icons/button/icon-mail-black.svg?react
162
+ var icon_mail_black_default = "./icon-mail-black-H4JSL6GN.svg?react";
163
+
164
+ // src/assets/icons/button/icon-right-black.svg?react
165
+ var icon_right_black_default = "./icon-right-black-63XA3J2N.svg?react";
166
+
167
+ // src/assets/icons/button/icon-right-white.svg?react
168
+ var icon_right_white_default = "./icon-right-white-HNWW4VHV.svg?react";
169
+
170
+ // src/assets/icons/button/icon-tilted-right-black.svg?react
171
+ var icon_tilted_right_black_default = "./icon-tilted-right-black-PBETFSTS.svg?react";
172
+
173
+ // src/assets/icons/button/icon-tilted-right-white.svg?react
174
+ var icon_tilted_right_white_default = "./icon-tilted-right-white-W3HNOHCP.svg?react";
175
+
176
+ // src/assets/icons/button/icon-up-chevron-up-white.svg?react
177
+ var icon_up_chevron_up_white_default = "./icon-up-chevron-up-white-ZAY6S6FY.svg?react";
178
+
179
+ // src/assets/icons/button/icon-up-chevron-white.svg?react
180
+ var icon_up_chevron_white_default = "./icon-up-chevron-white-RQR5IGQP.svg?react";
181
+
182
+ // src/assets/icons/button/icon-watch-black.svg?react
183
+ var icon_watch_black_default = "./icon-watch-black-SWPMR2N4.svg?react";
184
+
185
+ // src/assets/icons/button/icon-watch-white.svg?react
186
+ var icon_watch_white_default = "./icon-watch-white-6F4DX3RD.svg?react";
187
+
188
+ // src/assets/icons/dropdown/icon-chevron-default.svg?react
189
+ var icon_chevron_default_default = "./icon-chevron-default-XRHTPYFD.svg?react";
190
+
191
+ // src/assets/icons/dropdown/icon-chevron-hovered.svg?react
192
+ var icon_chevron_hovered_default = "./icon-chevron-hovered-FXNQAEV3.svg?react";
193
+
194
+ // src/assets/icons/dropdown/icon-chevron-selected.svg?react
195
+ var icon_chevron_selected_default = "./icon-chevron-selected-O4VV5EZQ.svg?react";
196
+
197
+ // src/assets/icons/misc/icon-menu-black.svg?react
198
+ var icon_menu_black_default = "./icon-menu-black-AI7IZGAV.svg?react";
199
+
200
+ // src/assets/icons/misc/icon-menu-white.svg?react
201
+ var icon_menu_white_default = "./icon-menu-white-EJXB5OPZ.svg?react";
202
+
203
+ // src/assets/icons/misc/icon-right.svg?react
204
+ var icon_right_default = "./icon-right-OAELY3OL.svg?react";
205
+
206
+ // src/assets/icons/misc/icon-tilted-right.svg?react
207
+ var icon_tilted_right_default = "./icon-tilted-right-EJ3C6PR6.svg?react";
208
+
209
+ // src/assets/icons/misc/icon-x-black.svg?react
210
+ var icon_x_black_default = "./icon-x-black-WBBDGBKZ.svg?react";
211
+
212
+ // src/assets/icons/misc/icon-x-white.svg?react
213
+ var icon_x_white_default = "./icon-x-white-WVEELCIS.svg?react";
214
+ var svgs = {
215
+ /* Card */
216
+ ads: icon_ads_default,
217
+ book: icon_book_default,
218
+ briefcase: icon_briefcase_default,
219
+ calendar: icon_calendar_default,
220
+ clipboard: icon_clipboard_default,
221
+ convo: icon_convo_default,
222
+ eye: icon_eye_default,
223
+ globe: icon_globe_default,
224
+ hospital: icon_hospital_default,
225
+ library: icon_library_default,
226
+ location: icon_location_default,
227
+ marketing: icon_marketing_default,
228
+ money: icon_money_default,
229
+ people: icon_people_default,
230
+ smile: icon_smile_default,
231
+ tech: icon_tech_default,
232
+ work: icon_work_default,
233
+ workhome: icon_workhome_default,
234
+ /* Button */
235
+ blankCheckbox: icon_blank_checkbox_default,
236
+ blankCheckboxWhite: icon_blank_checkbox_white_default,
237
+ checkedBox: icon_checked_box_default,
238
+ circleChevronDown: icon_circle_chevron_down_default,
239
+ circleChevronUp: icon_circle_chevron_up_default,
240
+ downBlack: icon_down_black_default,
241
+ downWhite: icon_down_white_default,
242
+ downChevronBlack: icon_down_chevron_black_default,
243
+ downChevronWhite: icon_down_chevron_white_default,
244
+ downloadBlack: icon_download_black_default,
245
+ downloadWhite: icon_download_white_default,
246
+ filledChevronLeft: icon_filled_chevron_left_default,
247
+ filledChevronRight: icon_filled_chevron_right_default,
248
+ filledChevronUp: icon_filled_chevron_up_default,
249
+ leftWhite: icon_left_white_default,
250
+ mailBlack: icon_mail_black_default,
251
+ rightBlack: icon_right_black_default,
252
+ rightWhite: icon_right_white_default,
253
+ tiltedRightBlack: icon_tilted_right_black_default,
254
+ tiltedRightWhite: icon_tilted_right_white_default,
255
+ upChevronUpWhite: icon_up_chevron_up_white_default,
256
+ upChevronWhite: icon_up_chevron_white_default,
257
+ watchBlack: icon_watch_black_default,
258
+ watchWhite: icon_watch_white_default,
259
+ /* Dropdown */
260
+ chevronDefault: icon_chevron_default_default,
261
+ chevronHovered: icon_chevron_hovered_default,
262
+ chevronSelected: icon_chevron_selected_default,
263
+ /* Misc */
264
+ menuBlack: icon_menu_black_default,
265
+ menuWhite: icon_menu_white_default,
266
+ right: icon_right_default,
267
+ tiltedRight: icon_tilted_right_default,
268
+ xBlack: icon_x_black_default,
269
+ xWhite: icon_x_white_default
270
+ };
271
+ var Icon = React.memo(
272
+ (_a) => {
273
+ var _b = _a, { type } = _b, props = __objRest(_b, ["type"]);
274
+ if (type) {
275
+ const Icon2 = svgs[type];
276
+ if (Icon2) return /* @__PURE__ */ jsx(Icon2, __spreadValues({}, props));
277
+ }
278
+ return /* @__PURE__ */ jsx(Fragment, {});
279
+ }
280
+ );
281
+ Icon.displayName = "Icon";
282
+
283
+ // src/components/Button/Button.module.scss
284
+ var Button_module_default = {};
285
+ var Button = (_a) => {
286
+ var _b = _a, {
287
+ className,
288
+ children,
289
+ variant = "primary",
290
+ fullWidth,
291
+ href,
292
+ isExternal,
293
+ icon
294
+ } = _b, rest = __objRest(_b, [
295
+ "className",
296
+ "children",
297
+ "variant",
298
+ "fullWidth",
299
+ "href",
300
+ "isExternal",
301
+ "icon"
302
+ ]);
303
+ const isLink = !!href;
304
+ const props = __spreadValues(__spreadValues({
305
+ className: clsx3(
306
+ Button_module_default.button,
307
+ variant ? Button_module_default[variant] : null,
308
+ { [Button_module_default.fullWidth]: !!fullWidth },
309
+ className
310
+ )
311
+ }, isLink ? { href, isExternal } : {}), rest);
312
+ return /* @__PURE__ */ jsxs(ConditionalWrapper, __spreadProps(__spreadValues({ wrapper: Anchor, fallback: "button", condition: isLink }, props), { children: [
313
+ children,
314
+ icon && /* @__PURE__ */ jsx(Icon, { type: icon })
315
+ ] }));
316
+ };
317
+
318
+ // src/components/Card/Card.module.scss
319
+ var Card_module_default = {};
320
+ var Card = ({ className, title, subtitle, cta, icon }) => {
321
+ return /* @__PURE__ */ jsxs("div", { className: clsx3(Card_module_default.card, className), children: [
322
+ icon && /* @__PURE__ */ jsx(Icon, { type: icon }),
323
+ /* @__PURE__ */ jsxs("div", { className: Card_module_default.content, children: [
324
+ /* @__PURE__ */ jsx("h3", { className: "h4", children: title }),
325
+ subtitle && /* @__PURE__ */ jsx("p", { children: subtitle })
326
+ ] }),
327
+ cta && /* @__PURE__ */ jsx(
328
+ Button,
329
+ {
330
+ href: cta.url,
331
+ isExternal: cta.isExternal,
332
+ variant: "secondary",
333
+ icon: cta.url ? "rightBlack" : void 0,
334
+ children: cta.label
335
+ }
336
+ )
337
+ ] });
338
+ };
339
+
340
+ // src/components/Picture/Picture.module.scss
341
+ var Picture_module_default = {};
342
+ var Picture = (_a) => {
343
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
344
+ var _b2, _c;
345
+ if ("src" in props) {
346
+ return /* @__PURE__ */ jsx("img", __spreadValues({ className }, props));
347
+ }
348
+ const _a2 = props, { desktop, mobile } = _a2, rest = __objRest(_a2, ["desktop", "mobile"]);
349
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
350
+ /* @__PURE__ */ jsx(
351
+ "img",
352
+ __spreadValues({
353
+ src: desktop.src,
354
+ alt: desktop.alt,
355
+ className: clsx3(className, Picture_module_default["image-desktop"])
356
+ }, rest)
357
+ ),
358
+ /* @__PURE__ */ jsx(
359
+ "img",
360
+ __spreadValues({
361
+ src: (_b2 = mobile == null ? void 0 : mobile.src) != null ? _b2 : desktop.src,
362
+ alt: (_c = mobile == null ? void 0 : mobile.alt) != null ? _c : desktop.alt,
363
+ className: clsx3(className, Picture_module_default["image-mobile"])
364
+ }, rest)
365
+ )
366
+ ] });
367
+ };
368
+
369
+ // src/components/CountingCard/CountingCard.module.scss
370
+ var CountingCard_module_default = {};
371
+ var CountingCard = ({ className, title, count, image }) => {
372
+ return /* @__PURE__ */ jsxs("div", { className: clsx3(CountingCard_module_default["counting-card"], className), children: [
373
+ /* @__PURE__ */ jsxs("div", { className: CountingCard_module_default.content, children: [
374
+ title && /* @__PURE__ */ jsx("div", { className: "body", children: title }),
375
+ count && /* @__PURE__ */ jsx("div", { className: clsx3(CountingCard_module_default.count, "h1"), children: count })
376
+ ] }),
377
+ image && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: CountingCard_module_default.logo }, image))
378
+ ] });
379
+ };
380
+
381
+ // src/components/InfoCard/InfoCard.module.scss
382
+ var InfoCard_module_default = {};
383
+ var InfoCard = ({ className, title, subtitle, icon, badge }) => {
384
+ return /* @__PURE__ */ jsxs("div", { className: clsx3(InfoCard_module_default["info-card"], { [InfoCard_module_default.hasIcon]: !!icon }, className), children: [
385
+ /* @__PURE__ */ jsxs("div", { className: InfoCard_module_default.header, children: [
386
+ icon ? /* @__PURE__ */ jsx(Icon, { type: icon }) : badge ? /* @__PURE__ */ jsx("div", { className: clsx3(InfoCard_module_default.badge, "h4"), children: badge }) : null,
387
+ title && /* @__PURE__ */ jsx("div", { className: "h4", children: title })
388
+ ] }),
389
+ subtitle && /* @__PURE__ */ jsx("div", { className: "body", children: subtitle })
390
+ ] });
391
+ };
392
+
393
+ // src/components/Pagination/Pagination.module.scss
394
+ var Pagination_module_default = {};
395
+ var Pagination = ({
396
+ className,
397
+ totalPages,
398
+ currentPage = 1,
399
+ loop = true,
400
+ hasNumber = false,
401
+ disableArrows = false,
402
+ onPageChange
403
+ }) => {
404
+ const [activePage, setActivePage] = useState(currentPage);
405
+ const goToPage = (page) => {
406
+ if (page < 1 || page > totalPages) return;
407
+ setActivePage(page);
408
+ onPageChange == null ? void 0 : onPageChange(page);
409
+ };
410
+ const handlePrev = () => {
411
+ if (activePage === 1) {
412
+ if (loop) {
413
+ setActivePage(totalPages);
414
+ onPageChange == null ? void 0 : onPageChange(totalPages);
415
+ }
416
+ return;
417
+ }
418
+ const page = activePage - 1;
419
+ setActivePage(page);
420
+ onPageChange == null ? void 0 : onPageChange(page);
421
+ };
422
+ const handleNext = () => {
423
+ if (activePage === totalPages) {
424
+ if (loop) {
425
+ setActivePage(1);
426
+ onPageChange == null ? void 0 : onPageChange(1);
427
+ }
428
+ return;
429
+ }
430
+ const page = activePage + 1;
431
+ setActivePage(page);
432
+ onPageChange == null ? void 0 : onPageChange(page);
433
+ };
434
+ return /* @__PURE__ */ jsxs("div", { className: clsx3(Pagination_module_default.pagination, className), children: [
435
+ !disableArrows && /* @__PURE__ */ jsx(
436
+ "button",
437
+ {
438
+ className: Pagination_module_default.prev,
439
+ onClick: handlePrev,
440
+ disabled: !loop && activePage === 1,
441
+ "aria-label": "Go to previous page",
442
+ children: /* @__PURE__ */ jsx(Icon, { type: "filledChevronLeft" })
443
+ }
444
+ ),
445
+ /* @__PURE__ */ jsx("div", { className: Pagination_module_default.pages, children: Array.from({ length: totalPages }, (_, i) => {
446
+ const page = i + 1;
447
+ return /* @__PURE__ */ jsx(
448
+ "button",
449
+ {
450
+ onClick: () => goToPage(page),
451
+ className: clsx3(Pagination_module_default.page, {
452
+ [Pagination_module_default.active]: activePage === page,
453
+ [Pagination_module_default.number]: hasNumber
454
+ }),
455
+ "aria-label": `Go to page ${page}`,
456
+ children: hasNumber ? page : null
457
+ },
458
+ page
459
+ );
460
+ }) }),
461
+ !disableArrows && /* @__PURE__ */ jsx(
462
+ "button",
463
+ {
464
+ className: Pagination_module_default.next,
465
+ onClick: handleNext,
466
+ disabled: !loop && activePage === totalPages,
467
+ "aria-label": "Go to next page",
468
+ children: /* @__PURE__ */ jsx(Icon, { type: "filledChevronRight" })
469
+ }
470
+ )
471
+ ] });
472
+ };
473
+
474
+ // src/components/primitives/Container/Container.module.scss
475
+ var Container_module_default = {};
476
+ var Container = (_a) => {
477
+ var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
478
+ return /* @__PURE__ */ jsx("div", __spreadProps(__spreadValues({ className: clsx3(Container_module_default.container, className) }, props), { children }));
479
+ };
480
+
481
+ // src/widgets/CardCollection/CardCollection.module.scss
482
+ var CardCollection_module_default = {};
483
+ var CardCollection = ({
484
+ className,
485
+ variant = "default",
486
+ title,
487
+ subtitle,
488
+ cards
489
+ }) => {
490
+ return /* @__PURE__ */ jsxs(Container, { className: clsx3(CardCollection_module_default["card-collection"], CardCollection_module_default[variant], className), children: [
491
+ /* @__PURE__ */ jsxs("div", { className: CardCollection_module_default.content, children: [
492
+ title && /* @__PURE__ */ jsx("h2", { children: title }),
493
+ subtitle && /* @__PURE__ */ jsx("div", { className: "subheading", children: subtitle })
494
+ ] }),
495
+ /* @__PURE__ */ jsx("div", { className: CardCollection_module_default.wrapper, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsx(Card, __spreadValues({ className: CardCollection_module_default.card }, card), key)) })
496
+ ] });
497
+ };
498
+
499
+ // src/widgets/MiniSectionCta/MiniSectionCta.module.scss
500
+ var MiniSectionCta_module_default = {};
501
+ var MiniSectionCta = ({
502
+ className,
503
+ variant = "headerCTA",
504
+ title,
505
+ subtitle,
506
+ cta
507
+ }) => {
508
+ return /* @__PURE__ */ jsx("div", { className: clsx3(MiniSectionCta_module_default.miniSectionCta, MiniSectionCta_module_default[variant], className), children: /* @__PURE__ */ jsxs(Container, { className: MiniSectionCta_module_default.container, children: [
509
+ /* @__PURE__ */ jsxs("div", { className: MiniSectionCta_module_default.col, children: [
510
+ title && /* @__PURE__ */ jsx("h2", { className: variant === "BgColorBlack" || variant === "BgColorGrey" ? "h3" : "h2", children: title }),
511
+ subtitle && /* @__PURE__ */ jsx("div", { className: clsx3(MiniSectionCta_module_default.subtitle, variant === "infoCallout" ? "h4" : "subheading"), children: subtitle })
512
+ ] }),
513
+ cta && /* @__PURE__ */ jsx("div", { className: MiniSectionCta_module_default.col, children: /* @__PURE__ */ jsx(
514
+ Button,
515
+ {
516
+ className: MiniSectionCta_module_default.cta,
517
+ href: cta.url,
518
+ isExternal: cta.isExternal,
519
+ variant: "primary",
520
+ icon: variant === "miniTextCenterCta" ? "tiltedRightWhite" : void 0,
521
+ children: cta.label
522
+ }
523
+ ) })
524
+ ] }) });
525
+ };
526
+
527
+ // src/widgets/Teaser5050With3Text/Teaser5050With3Text.module.scss
528
+ var Teaser5050With3Text_module_default = {};
529
+ var Teaser5050With3Text = ({
530
+ className,
531
+ variant = "left",
532
+ title,
533
+ cards,
534
+ image
535
+ }) => {
536
+ return /* @__PURE__ */ jsx("div", { className: clsx3(Teaser5050With3Text_module_default["teaser5050-3text"], Teaser5050With3Text_module_default[variant], className), children: /* @__PURE__ */ jsxs(Container, { className: Teaser5050With3Text_module_default.container, children: [
537
+ title && /* @__PURE__ */ jsx("div", { className: clsx3(Teaser5050With3Text_module_default.title, "h3"), children: title }),
538
+ /* @__PURE__ */ jsxs("div", { className: Teaser5050With3Text_module_default.content, children: [
539
+ /* @__PURE__ */ jsx("div", { className: Teaser5050With3Text_module_default.cards, children: cards == null ? void 0 : cards.map((card, key) => /* @__PURE__ */ jsx(InfoCard, __spreadValues({}, card), key)) }),
540
+ image && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: Teaser5050With3Text_module_default.image }, image))
541
+ ] })
542
+ ] }) });
543
+ };
544
+
545
+ // src/widgets/Teaser5050WithCta/Teaser5050WithCta.module.scss
546
+ var Teaser5050WithCta_module_default = {};
547
+ var Teaser5050WithCta = ({
548
+ className,
549
+ variant = "left",
550
+ title,
551
+ subtitle,
552
+ cta,
553
+ image
554
+ }) => {
555
+ return /* @__PURE__ */ jsx("div", { className: clsx3(Teaser5050WithCta_module_default.teaser5050, Teaser5050WithCta_module_default[variant], className), children: /* @__PURE__ */ jsxs(Container, { className: Teaser5050WithCta_module_default.container, children: [
556
+ /* @__PURE__ */ jsxs("div", { className: Teaser5050WithCta_module_default.wrapper, children: [
557
+ /* @__PURE__ */ jsxs("div", { className: Teaser5050WithCta_module_default.content, children: [
558
+ title && /* @__PURE__ */ jsx("div", { className: clsx3(Teaser5050WithCta_module_default.title, "h3"), children: title }),
559
+ subtitle && /* @__PURE__ */ jsx("div", { className: "subheading", children: subtitle })
560
+ ] }),
561
+ cta && /* @__PURE__ */ jsx(
562
+ Button,
563
+ {
564
+ className: Teaser5050WithCta_module_default.cta,
565
+ variant: "secondary",
566
+ href: cta == null ? void 0 : cta.url,
567
+ isExternal: cta == null ? void 0 : cta.isExternal,
568
+ children: cta == null ? void 0 : cta.label
569
+ }
570
+ )
571
+ ] }),
572
+ image && /* @__PURE__ */ jsx(Picture, __spreadValues({ className: Teaser5050WithCta_module_default.image }, image))
573
+ ] }) });
574
+ };
575
+
576
+ export { Anchor, Button, Card, CardCollection, ConditionalWrapper, Container, CountingCard, Icon, InfoCard, MiniSectionCta, Pagination, Picture, Teaser5050With3Text, Teaser5050WithCta, svgs };
577
+ //# sourceMappingURL=index.mjs.map
578
+ //# sourceMappingURL=index.mjs.map