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