@vkzstudio/muza-ui 1.6.0 → 1.8.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 (53) hide show
  1. package/dist/components/ArticleCard/ArticleCard.d.ts.map +1 -1
  2. package/dist/components/ArticleCard/ArticleCard.js +161 -170
  3. package/dist/components/CarouselSection/CarouselSection.examples.d.ts +1 -1
  4. package/dist/components/Dialog/Dialog.d.ts +19 -6
  5. package/dist/components/Dialog/Dialog.d.ts.map +1 -1
  6. package/dist/components/Dialog/Dialog.js +148 -112
  7. package/dist/components/Dialog/Dialog.stories.d.ts +3 -0
  8. package/dist/components/Dialog/Dialog.stories.d.ts.map +1 -1
  9. package/dist/components/OfferCard/OfferCard.d.ts +45 -17
  10. package/dist/components/OfferCard/OfferCard.d.ts.map +1 -1
  11. package/dist/components/OfferCard/OfferCard.js +180 -266
  12. package/dist/components/OfferCard/OfferCard.stories.d.ts +5 -2
  13. package/dist/components/OfferCard/OfferCard.stories.d.ts.map +1 -1
  14. package/dist/components/PartnerCard/PartnerCard.d.ts +90 -26
  15. package/dist/components/PartnerCard/PartnerCard.d.ts.map +1 -1
  16. package/dist/components/PartnerCard/PartnerCard.js +323 -264
  17. package/dist/components/PartnerCard/PartnerCard.stories.d.ts +6 -0
  18. package/dist/components/PartnerCard/PartnerCard.stories.d.ts.map +1 -1
  19. package/dist/components/PriceTag/PriceTag.d.ts +37 -0
  20. package/dist/components/PriceTag/PriceTag.d.ts.map +1 -0
  21. package/dist/components/PriceTag/PriceTag.js +43 -0
  22. package/dist/components/PriceTag/PriceTag.stories.d.ts +8 -0
  23. package/dist/components/PriceTag/PriceTag.stories.d.ts.map +1 -0
  24. package/dist/components/PriceTag/index.d.ts +2 -0
  25. package/dist/components/PriceTag/index.d.ts.map +1 -0
  26. package/dist/components/PriceTag/index.js +5 -0
  27. package/dist/components/Tooltip/Tooltip.d.ts +18 -7
  28. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  29. package/dist/components/Tooltip/Tooltip.js +116 -68
  30. package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -0
  31. package/dist/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
  32. package/dist/components/VoucherCard/VoucherCard.d.ts +24 -1
  33. package/dist/components/VoucherCard/VoucherCard.d.ts.map +1 -1
  34. package/dist/components/VoucherCard/VoucherCard.js +68 -76
  35. package/dist/components/VoucherCard/VoucherCard.stories.d.ts +1 -0
  36. package/dist/components/VoucherCard/VoucherCard.stories.d.ts.map +1 -1
  37. package/dist/components/index.d.ts +1 -0
  38. package/dist/components/index.d.ts.map +1 -1
  39. package/dist/components/internal/CardCompactShell.d.ts +80 -0
  40. package/dist/components/internal/CardCompactShell.d.ts.map +1 -0
  41. package/dist/components/internal/CardCompactShell.js +148 -0
  42. package/dist/components/internal/CardImageSlot.d.ts +56 -0
  43. package/dist/components/internal/CardImageSlot.d.ts.map +1 -0
  44. package/dist/components/internal/CardImageSlot.js +85 -0
  45. package/dist/index.js +178 -175
  46. package/dist/muza-ui.css +1 -1
  47. package/dist/styles/token-sizes.css +16 -4
  48. package/dist/utils/cn.d.ts.map +1 -1
  49. package/dist/utils/cn.js +6 -3
  50. package/dist/utils/disabledLinkProps.d.ts +8 -1
  51. package/dist/utils/disabledLinkProps.d.ts.map +1 -1
  52. package/dist/utils/disabledLinkProps.js +0 -1
  53. package/package.json +3 -2
@@ -1,19 +1,20 @@
1
- import { jsxs as t, Fragment as T, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as t, Fragment as D, jsx as e } from "react/jsx-runtime";
2
2
  import * as L from "react";
3
- import { Slot as q } from "@radix-ui/react-slot";
4
- import { cva as D } from "class-variance-authority";
5
- import { useMuzaTranslationContext as G } from "../../translations/TranslationContext.js";
3
+ import { Slot as G } from "@radix-ui/react-slot";
4
+ import { cva as V } from "class-variance-authority";
5
+ import { useMuzaTranslationContext as H } from "../../translations/TranslationContext.js";
6
6
  import { cn as o } from "../../utils/cn.js";
7
- import { disabledLinkProps as H } from "../../utils/disabledLinkProps.js";
8
- import { formatDate as J } from "../../utils/formatDate.js";
9
- import { Button as K } from "../Button/Button.js";
10
- import { DotDivider as Q } from "../DotDivider/DotDivider.js";
11
- import { Flex as d } from "../Flex/Flex.js";
12
- import { AltArrowRightOutline as U } from "@solar-icons/react-perf";
13
- import { Skeleton as l } from "../Skeleton/Skeleton.js";
7
+ import { disabledLinkProps as J } from "../../utils/disabledLinkProps.js";
8
+ import { formatDate as K } from "../../utils/formatDate.js";
9
+ import { Button as Q } from "../Button/Button.js";
10
+ import { DotDivider as U } from "../DotDivider/DotDivider.js";
11
+ import { Flex as l } from "../Flex/Flex.js";
12
+ import { AltArrowRightOutline as X } from "@solar-icons/react-perf";
13
+ import { Skeleton as c } from "../Skeleton/Skeleton.js";
14
14
  import { Tag as z } from "../Tag/Tag.js";
15
- import { Typography as f } from "../Typography/Typography.js";
16
- const X = D(
15
+ import { Typography as b } from "../Typography/Typography.js";
16
+ import { CardImageSlot as T } from "../internal/CardImageSlot.js";
17
+ const Z = V(
17
18
  "group relative inline-flex border border-solid transition-colors focus-visible:outline-none data-[disabled=true]:pointer-events-none",
18
19
  {
19
20
  variants: {
@@ -25,7 +26,7 @@ const X = D(
25
26
  },
26
27
  defaultVariants: { variant: "compact" }
27
28
  }
28
- ), Z = D("", {
29
+ ), _ = V("", {
29
30
  variants: {
30
31
  variant: {
31
32
  compact: "text-text-dark-primary-def group-hover:text-text-brand-hover group-focus-visible:text-text-brand-focused group-data-[disabled=true]:text-text-dark-disabled",
@@ -34,7 +35,7 @@ const X = D(
34
35
  }
35
36
  },
36
37
  defaultVariants: { variant: "compact" }
37
- }), _ = D("", {
38
+ }), ee = V("", {
38
39
  variants: {
39
40
  variant: {
40
41
  compact: "text-text-dark-secondary group-focus-visible:text-text-brand-focused group-data-[disabled=true]:text-text-dark-disabled",
@@ -43,26 +44,26 @@ const X = D(
43
44
  }
44
45
  },
45
46
  defaultVariants: { variant: "compact" }
46
- }), ee = (r) => r instanceof Date ? r : new Date(r), u = ({ categories: r, maxNumberOfVisibleTags: a, className: i }) => r.length <= a ? /* @__PURE__ */ e(
47
- d,
47
+ }), ae = (r) => r instanceof Date ? r : new Date(r), g = ({ categories: r, maxNumberOfVisibleTags: a, className: i }) => r.length <= a ? /* @__PURE__ */ e(
48
+ l,
48
49
  {
49
50
  gap: "xs",
50
51
  justify: "start",
51
52
  align: "start",
52
53
  flex: 1,
53
54
  className: o("min-w-0", i),
54
- children: r.map((c, n) => /* @__PURE__ */ e(
55
+ children: r.map((d, m) => /* @__PURE__ */ e(
55
56
  z,
56
57
  {
57
58
  variant: "invert",
58
59
  className: "min-w-[50px] shrink-1 overflow-hidden",
59
- children: c
60
+ children: d
60
61
  },
61
- n
62
+ m
62
63
  ))
63
64
  }
64
65
  ) : /* @__PURE__ */ t(
65
- d,
66
+ l,
66
67
  {
67
68
  gap: "xs",
68
69
  justify: "start",
@@ -71,14 +72,14 @@ const X = D(
71
72
  className: o("min-w-0", i),
72
73
  wrap: "wrap",
73
74
  children: [
74
- r.slice(0, a).map((c, n) => /* @__PURE__ */ e(
75
+ r.slice(0, a).map((d, m) => /* @__PURE__ */ e(
75
76
  z,
76
77
  {
77
78
  variant: "invert",
78
79
  className: "min-w-[50px] shrink-1 overflow-hidden",
79
- children: c
80
+ children: d
80
81
  },
81
- n
82
+ m
82
83
  )),
83
84
  /* @__PURE__ */ t(z, { variant: "invert", className: "shrink-0", children: [
84
85
  r.length - a,
@@ -87,17 +88,18 @@ const X = D(
87
88
  ]
88
89
  }
89
90
  );
90
- u.displayName = "ArticleCard.Tags";
91
- const b = ({
91
+ g.displayName = "ArticleCard.Tags";
92
+ const x = ({
92
93
  variant: r,
93
94
  dateText: a,
94
95
  readingTime: i,
95
- readingTimeFormatter: c
96
+ readingTimeFormatter: d,
97
+ inverted: m = !1
96
98
  }) => {
97
- const n = _({ variant: r }), m = r === "heroLarge" ? "invert" : "default";
98
- return /* @__PURE__ */ t(d, { align: "center", gap: "sm", wrap: "wrap", children: [
99
+ const n = ee({ variant: r }), u = m ? "invert" : "default";
100
+ return /* @__PURE__ */ t(l, { align: "center", gap: "sm", wrap: "wrap", children: [
99
101
  /* @__PURE__ */ e(
100
- f,
102
+ b,
101
103
  {
102
104
  component: "span",
103
105
  variant: "body",
@@ -108,10 +110,10 @@ const b = ({
108
110
  children: a
109
111
  }
110
112
  ),
111
- i != null && /* @__PURE__ */ t(T, { children: [
112
- /* @__PURE__ */ e(Q, { variant: m }),
113
+ i != null && /* @__PURE__ */ t(D, { children: [
114
+ /* @__PURE__ */ e(U, { variant: u }),
113
115
  /* @__PURE__ */ e(
114
- f,
116
+ b,
115
117
  {
116
118
  component: "span",
117
119
  variant: "body",
@@ -119,37 +121,37 @@ const b = ({
119
121
  weight: "regular",
120
122
  fixY: !0,
121
123
  className: n,
122
- children: c(i)
124
+ children: d(i)
123
125
  }
124
126
  )
125
127
  ] })
126
128
  ] });
127
129
  };
128
- b.displayName = "ArticleCard.Metadata";
129
- const v = ({ variant: r, label: a }) => {
130
- const i = r === "heroLarge";
130
+ x.displayName = "ArticleCard.Metadata";
131
+ const w = ({ label: r, inverted: a = !1 }) => {
132
+ const i = a;
131
133
  return /* @__PURE__ */ e(
132
- K,
134
+ Q,
133
135
  {
134
136
  asChild: !0,
135
137
  variant: i ? "linkInvert" : "link",
136
138
  size: "xs",
137
- icon: /* @__PURE__ */ e(U, {}),
139
+ icon: /* @__PURE__ */ e(X, {}),
138
140
  iconPosition: "end",
139
141
  className: o(
140
142
  "self-start",
141
143
  i ? "group-hover:text-comp-button-link-invert-text-hover group-data-[disabled=true]:text-comp-button-link-invert-text-disabled" : "group-hover:text-comp-button-link-text-hover group-focus-visible:text-comp-button-link-text-focused group-data-[disabled=true]:text-comp-button-link-text-disabled"
142
144
  ),
143
- children: /* @__PURE__ */ e("span", { children: a })
145
+ children: /* @__PURE__ */ e("span", { children: r })
144
146
  }
145
147
  );
146
148
  };
147
- v.displayName = "ArticleCard.Cta";
148
- const F = ({
149
+ w.displayName = "ArticleCard.Cta";
150
+ const R = ({
149
151
  variant: r = "compact",
150
152
  color: a = "default",
151
153
  className: i,
152
- ...c
154
+ ...d
153
155
  }) => r === "compact" ? /* @__PURE__ */ t(
154
156
  "div",
155
157
  {
@@ -157,26 +159,26 @@ const F = ({
157
159
  "inline-flex flex-col overflow-hidden rounded-comp-article-card-compact-radius border border-solid border-comp-article-card-stroke-default bg-comp-article-card-fill-default",
158
160
  i
159
161
  ),
160
- ...c,
162
+ ...d,
161
163
  children: [
162
164
  /* @__PURE__ */ t("div", { className: "relative aspect-[288/162] w-full shrink-0 overflow-hidden", children: [
163
165
  /* @__PURE__ */ e(
164
- l,
166
+ c,
165
167
  {
166
168
  color: a,
167
169
  className: "absolute inset-0 size-full rounded-none"
168
170
  }
169
171
  ),
170
- /* @__PURE__ */ e("div", { className: "absolute top-comp-article-card-compact-p-img right-comp-article-card-compact-p-img left-comp-article-card-compact-p-img", children: /* @__PURE__ */ t(d, { gap: "xs", justify: "start", align: "start", children: [
172
+ /* @__PURE__ */ e("div", { className: "absolute top-comp-article-card-compact-p-img right-comp-article-card-compact-p-img left-comp-article-card-compact-p-img", children: /* @__PURE__ */ t(l, { gap: "xs", justify: "start", align: "start", children: [
171
173
  /* @__PURE__ */ e(
172
- l,
174
+ c,
173
175
  {
174
176
  color: a,
175
177
  className: "h-comp-tag-h-def w-16 rounded-full"
176
178
  }
177
179
  ),
178
180
  /* @__PURE__ */ e(
179
- l,
181
+ c,
180
182
  {
181
183
  color: a,
182
184
  className: "h-comp-tag-h-def w-20 rounded-full"
@@ -185,19 +187,19 @@ const F = ({
185
187
  ] }) })
186
188
  ] }),
187
189
  /* @__PURE__ */ t(
188
- d,
190
+ l,
189
191
  {
190
192
  direction: "column",
191
193
  flex: 1,
192
194
  justify: "between",
193
195
  className: "gap-comp-article-card-compact-gap px-comp-article-card-compact-p-hor py-comp-article-card-compact-p-ver",
194
196
  children: [
195
- /* @__PURE__ */ t(d, { direction: "column", gap: "2xs", children: [
196
- /* @__PURE__ */ e(l, { color: a, className: "h-5 w-full" }),
197
- /* @__PURE__ */ e(l, { color: a, className: "h-5 w-3/4" }),
198
- /* @__PURE__ */ e(l, { color: a, className: "mt-2xs h-4 w-32" })
197
+ /* @__PURE__ */ t(l, { direction: "column", gap: "2xs", children: [
198
+ /* @__PURE__ */ e(c, { color: a, className: "h-5 w-full" }),
199
+ /* @__PURE__ */ e(c, { color: a, className: "h-5 w-3/4" }),
200
+ /* @__PURE__ */ e(c, { color: a, className: "mt-2xs h-4 w-32" })
199
201
  ] }),
200
- /* @__PURE__ */ e(l, { color: a, className: "h-4 w-24 self-start" })
202
+ /* @__PURE__ */ e(c, { color: a, className: "h-4 w-24 self-start" })
201
203
  ]
202
204
  }
203
205
  )
@@ -210,9 +212,9 @@ const F = ({
210
212
  "relative h-full w-full overflow-hidden rounded-comp-article-card-hero-large-radius",
211
213
  i
212
214
  ),
213
- ...c,
215
+ ...d,
214
216
  children: /* @__PURE__ */ e(
215
- l,
217
+ c,
216
218
  {
217
219
  color: a,
218
220
  className: "absolute inset-0 size-full rounded-none"
@@ -226,26 +228,26 @@ const F = ({
226
228
  "inline-flex flex-row gap-comp-article-card-search-gap",
227
229
  i
228
230
  ),
229
- ...c,
231
+ ...d,
230
232
  children: [
231
233
  /* @__PURE__ */ t("div", { className: "relative h-comp-article-card-search-h-img w-comp-article-card-search-w-img shrink-0 overflow-hidden rounded-comp-article-card-search-radius-img", children: [
232
234
  /* @__PURE__ */ e(
233
- l,
235
+ c,
234
236
  {
235
237
  color: a,
236
238
  className: "absolute inset-0 size-full rounded-none"
237
239
  }
238
240
  ),
239
- /* @__PURE__ */ e("div", { className: "absolute top-comp-article-card-search-p-img right-comp-article-card-search-p-img left-comp-article-card-search-p-img", children: /* @__PURE__ */ t(d, { gap: "xs", justify: "start", align: "start", children: [
241
+ /* @__PURE__ */ e("div", { className: "absolute top-comp-article-card-search-p-img right-comp-article-card-search-p-img left-comp-article-card-search-p-img", children: /* @__PURE__ */ t(l, { gap: "xs", justify: "start", align: "start", children: [
240
242
  /* @__PURE__ */ e(
241
- l,
243
+ c,
242
244
  {
243
245
  color: a,
244
246
  className: "h-comp-tag-h-def w-16 rounded-full"
245
247
  }
246
248
  ),
247
249
  /* @__PURE__ */ e(
248
- l,
250
+ c,
249
251
  {
250
252
  color: a,
251
253
  className: "h-comp-tag-h-def w-20 rounded-full"
@@ -254,77 +256,55 @@ const F = ({
254
256
  ] }) })
255
257
  ] }),
256
258
  /* @__PURE__ */ t(
257
- d,
259
+ l,
258
260
  {
259
261
  direction: "column",
260
262
  flex: 1,
261
263
  justify: "between",
262
264
  className: "min-w-0 gap-comp-article-card-search-gap-text pt-comp-article-card-search-p-top-text",
263
265
  children: [
264
- /* @__PURE__ */ t(d, { direction: "column", gap: "xs", children: [
265
- /* @__PURE__ */ e(l, { color: a, className: "h-5 w-full" }),
266
- /* @__PURE__ */ e(l, { color: a, className: "h-5 w-2/3" }),
267
- /* @__PURE__ */ e(l, { color: a, className: "mt-xs h-4 w-32" })
266
+ /* @__PURE__ */ t(l, { direction: "column", gap: "xs", children: [
267
+ /* @__PURE__ */ e(c, { color: a, className: "h-5 w-full" }),
268
+ /* @__PURE__ */ e(c, { color: a, className: "h-5 w-2/3" }),
269
+ /* @__PURE__ */ e(c, { color: a, className: "mt-xs h-4 w-32" })
268
270
  ] }),
269
- /* @__PURE__ */ e(l, { color: a, className: "h-4 w-24 self-start" })
271
+ /* @__PURE__ */ e(c, { color: a, className: "h-4 w-24 self-start" })
270
272
  ]
271
273
  }
272
274
  )
273
275
  ]
274
276
  }
275
277
  );
276
- F.displayName = "ArticleCard.Skeleton";
277
- const x = ({
278
- image: r,
279
- alt: a,
280
- wrapperClassName: i,
281
- children: c
282
- }) => /* @__PURE__ */ t("div", { className: i, children: [
283
- /* @__PURE__ */ e(
284
- "div",
285
- {
286
- className: o(
287
- "absolute inset-0 overflow-hidden",
288
- "[&>img]:size-full [&>img]:object-cover",
289
- "transition-transform duration-300 ease-out group-hover:scale-110",
290
- "group-data-[disabled=true]:opacity-50",
291
- "group-data-[disabled=true]:grayscale",
292
- "group-data-[disabled=true]:group-hover:scale-100"
293
- ),
294
- children: typeof r == "string" ? /* @__PURE__ */ e("img", { src: r, alt: a }) : r
295
- }
296
- ),
297
- c
298
- ] });
299
- x.displayName = "ArticleCard.ImageSlot";
300
- const R = L.forwardRef(
278
+ R.displayName = "ArticleCard.Skeleton";
279
+ const E = L.forwardRef(
301
280
  (r, a) => {
302
281
  const {
303
282
  name: i,
304
- image: c,
305
- imageAlt: n,
306
- categories: m = [],
307
- maxNumberOfVisibleTags: w = 2,
308
- publicationDate: E,
283
+ image: d,
284
+ imageAlt: m,
285
+ categories: n = [],
286
+ maxNumberOfVisibleTags: u = 2,
287
+ publicationDate: P,
309
288
  readingTime: N,
310
- formatDate: P,
311
- readArticleLabel: Y,
312
- readingTimeLabel: B,
289
+ formatDate: Y,
290
+ readArticleLabel: B,
291
+ readingTimeLabel: O,
313
292
  variant: s = "compact",
314
293
  disabled: p = !1,
315
- asChild: O = !1,
316
- href: W,
317
- className: $,
294
+ asChild: W = !1,
295
+ href: $,
296
+ className: q,
318
297
  children: S,
319
- ...V
320
- } = r, { translations: I } = G(), k = Y ?? I.articleCard.readArticle, y = B ?? I.articleCard.readingTime, C = (P ?? J)(ee(E)), g = m.length > 0, A = Z({ variant: s }), j = n ?? (s === "heroLarge" ? "" : i);
321
- let h = null;
322
- s === "compact" ? h = /* @__PURE__ */ t(T, { children: [
298
+ ...I
299
+ } = r, { translations: M } = H(), k = B ?? M.articleCard.readArticle, C = O ?? M.articleCard.readingTime, y = (Y ?? K)(ae(P)), v = n.length > 0, h = s === "heroLarge", A = _({ variant: s }), j = m ?? (s === "heroLarge" ? "" : i);
300
+ let f = null;
301
+ s === "compact" ? f = /* @__PURE__ */ t(D, { children: [
323
302
  /* @__PURE__ */ t(
324
- x,
303
+ T,
325
304
  {
326
- image: c,
305
+ image: d,
327
306
  alt: j,
307
+ componentName: "ArticleCard",
328
308
  wrapperClassName: "relative aspect-[288/162] w-full shrink-0 overflow-hidden",
329
309
  children: [
330
310
  /* @__PURE__ */ e(
@@ -334,27 +314,27 @@ const R = L.forwardRef(
334
314
  className: "absolute inset-0 bg-gradient-to-t from-black/0 from-50% to-black/70"
335
315
  }
336
316
  ),
337
- g && /* @__PURE__ */ e("div", { className: "absolute top-comp-article-card-compact-p-img right-comp-article-card-compact-p-img left-comp-article-card-compact-p-img", children: /* @__PURE__ */ e(
338
- u,
317
+ v && /* @__PURE__ */ e("div", { className: "absolute top-comp-article-card-compact-p-img right-comp-article-card-compact-p-img left-comp-article-card-compact-p-img", children: /* @__PURE__ */ e(
318
+ g,
339
319
  {
340
- categories: m,
341
- maxNumberOfVisibleTags: w
320
+ categories: n,
321
+ maxNumberOfVisibleTags: u
342
322
  }
343
323
  ) })
344
324
  ]
345
325
  }
346
326
  ),
347
327
  /* @__PURE__ */ t(
348
- d,
328
+ l,
349
329
  {
350
330
  direction: "column",
351
331
  flex: 1,
352
332
  justify: "between",
353
333
  className: "gap-comp-article-card-compact-gap px-comp-article-card-compact-p-hor py-comp-article-card-compact-p-ver",
354
334
  children: [
355
- /* @__PURE__ */ t(d, { direction: "column", gap: "2xs", children: [
335
+ /* @__PURE__ */ t(l, { direction: "column", gap: "2xs", children: [
356
336
  /* @__PURE__ */ e(
357
- f,
337
+ b,
358
338
  {
359
339
  component: "h3",
360
340
  variant: "title",
@@ -365,47 +345,55 @@ const R = L.forwardRef(
365
345
  }
366
346
  ),
367
347
  /* @__PURE__ */ e(
368
- b,
348
+ x,
369
349
  {
370
350
  variant: s,
371
- dateText: C,
351
+ inverted: h,
352
+ dateText: y,
372
353
  readingTime: N,
373
- readingTimeFormatter: y
354
+ readingTimeFormatter: C
374
355
  }
375
356
  )
376
357
  ] }),
377
- /* @__PURE__ */ e(v, { variant: s, label: k })
358
+ /* @__PURE__ */ e(w, { label: k, inverted: h })
378
359
  ]
379
360
  }
380
361
  )
381
- ] }) : s === "heroLarge" ? h = /* @__PURE__ */ t(
382
- x,
362
+ ] }) : s === "heroLarge" ? f = /* @__PURE__ */ t(
363
+ T,
383
364
  {
384
- image: c,
365
+ image: d,
385
366
  alt: j,
367
+ componentName: "ArticleCard",
386
368
  wrapperClassName: o(
387
369
  "absolute inset-0 flex flex-col gap-lg overflow-hidden rounded-comp-article-card-hero-large-radius px-comp-article-card-hero-large-p pt-comp-article-card-hero-large-p pb-comp-article-card-hero-large-p-bottom",
388
- g ? "justify-between" : "justify-end"
370
+ v ? "justify-between" : "justify-end"
389
371
  ),
390
372
  children: [
391
- /* @__PURE__ */ e("div", { className: "absolute inset-0 bg-gradient-to-tr from-black/50 from-22% to-black/0 to-90%" }),
392
- g && /* @__PURE__ */ e("div", { className: "relative", children: /* @__PURE__ */ e(
393
- u,
373
+ /* @__PURE__ */ e(
374
+ "div",
375
+ {
376
+ "aria-hidden": "true",
377
+ className: "absolute inset-0 bg-gradient-to-tr from-black/50 from-22% to-black/0 to-90%"
378
+ }
379
+ ),
380
+ v && /* @__PURE__ */ e("div", { className: "relative", children: /* @__PURE__ */ e(
381
+ g,
394
382
  {
395
- categories: m,
396
- maxNumberOfVisibleTags: w
383
+ categories: n,
384
+ maxNumberOfVisibleTags: u
397
385
  }
398
386
  ) }),
399
387
  /* @__PURE__ */ t(
400
- d,
388
+ l,
401
389
  {
402
390
  direction: "column",
403
391
  gap: "lg",
404
392
  className: "relative max-w-comp-article-card-hero-large-text-max-w",
405
393
  children: [
406
- /* @__PURE__ */ t(d, { direction: "column", gap: "sm", children: [
394
+ /* @__PURE__ */ t(l, { direction: "column", gap: "sm", children: [
407
395
  /* @__PURE__ */ e(
408
- f,
396
+ b,
409
397
  {
410
398
  component: "h3",
411
399
  variant: "title",
@@ -416,27 +404,29 @@ const R = L.forwardRef(
416
404
  }
417
405
  ),
418
406
  /* @__PURE__ */ e(
419
- b,
407
+ x,
420
408
  {
421
409
  variant: s,
422
- dateText: C,
410
+ inverted: h,
411
+ dateText: y,
423
412
  readingTime: N,
424
- readingTimeFormatter: y
413
+ readingTimeFormatter: C
425
414
  }
426
415
  )
427
416
  ] }),
428
- /* @__PURE__ */ e(v, { variant: s, label: k })
417
+ /* @__PURE__ */ e(w, { label: k, inverted: h })
429
418
  ]
430
419
  }
431
420
  )
432
421
  ]
433
422
  }
434
- ) : h = /* @__PURE__ */ t(T, { children: [
423
+ ) : f = /* @__PURE__ */ t(D, { children: [
435
424
  /* @__PURE__ */ t(
436
- x,
425
+ T,
437
426
  {
438
- image: c,
427
+ image: d,
439
428
  alt: j,
429
+ componentName: "ArticleCard",
440
430
  wrapperClassName: "relative shrink-0 overflow-hidden rounded-comp-article-card-search-radius-img h-comp-article-card-search-h-img w-comp-article-card-search-w-img",
441
431
  children: [
442
432
  /* @__PURE__ */ e(
@@ -446,20 +436,20 @@ const R = L.forwardRef(
446
436
  className: "absolute inset-0 bg-gradient-to-b from-black/50 to-black/0 to-50%"
447
437
  }
448
438
  ),
449
- g && /* @__PURE__ */ t("div", { className: "absolute top-comp-article-card-search-p-img right-comp-article-card-search-p-img left-comp-article-card-search-p-img", children: [
439
+ v && /* @__PURE__ */ t("div", { className: "absolute top-comp-article-card-search-p-img right-comp-article-card-search-p-img left-comp-article-card-search-p-img", children: [
450
440
  /* @__PURE__ */ e(
451
- u,
441
+ g,
452
442
  {
453
- categories: m,
443
+ categories: n,
454
444
  maxNumberOfVisibleTags: 1,
455
445
  className: "md:hidden"
456
446
  }
457
447
  ),
458
448
  /* @__PURE__ */ e(
459
- u,
449
+ g,
460
450
  {
461
- categories: m,
462
- maxNumberOfVisibleTags: w,
451
+ categories: n,
452
+ maxNumberOfVisibleTags: u,
463
453
  className: "hidden md:flex"
464
454
  }
465
455
  )
@@ -468,16 +458,16 @@ const R = L.forwardRef(
468
458
  }
469
459
  ),
470
460
  /* @__PURE__ */ t(
471
- d,
461
+ l,
472
462
  {
473
463
  direction: "column",
474
464
  flex: 1,
475
465
  justify: "between",
476
466
  className: "min-w-0 gap-comp-article-card-search-gap-text pt-comp-article-card-search-p-top-text",
477
467
  children: [
478
- /* @__PURE__ */ t(d, { direction: "column", gap: "xs", children: [
468
+ /* @__PURE__ */ t(l, { direction: "column", gap: "xs", children: [
479
469
  /* @__PURE__ */ e(
480
- f,
470
+ b,
481
471
  {
482
472
  component: "h3",
483
473
  variant: "title",
@@ -488,55 +478,56 @@ const R = L.forwardRef(
488
478
  }
489
479
  ),
490
480
  /* @__PURE__ */ e(
491
- b,
481
+ x,
492
482
  {
493
483
  variant: s,
494
- dateText: C,
484
+ inverted: h,
485
+ dateText: y,
495
486
  readingTime: N,
496
- readingTimeFormatter: y
487
+ readingTimeFormatter: C
497
488
  }
498
489
  )
499
490
  ] }),
500
- /* @__PURE__ */ e(v, { variant: s, label: k })
491
+ /* @__PURE__ */ e(w, { label: k, inverted: h })
501
492
  ]
502
493
  }
503
494
  )
504
495
  ] });
505
- const M = o(X({ variant: s }), $);
506
- return O && L.isValidElement(S) ? /* @__PURE__ */ e(
507
- q,
496
+ const F = o(Z({ variant: s }), q);
497
+ return W && L.isValidElement(S) ? /* @__PURE__ */ e(
498
+ G,
508
499
  {
509
500
  ref: a,
510
- className: M,
501
+ className: F,
511
502
  "data-disabled": p || void 0,
512
503
  "aria-disabled": p || void 0,
513
- ...V,
504
+ ...I,
514
505
  children: L.cloneElement(
515
506
  S,
516
- p ? H : void 0,
517
- h
507
+ p ? J : void 0,
508
+ f
518
509
  )
519
510
  }
520
511
  ) : /* @__PURE__ */ e(
521
512
  "a",
522
513
  {
523
514
  ref: a,
524
- href: p ? void 0 : W,
525
- className: M,
515
+ href: p ? void 0 : $,
516
+ className: F,
526
517
  "data-disabled": p || void 0,
527
518
  "aria-disabled": p || void 0,
528
- ...V,
529
- children: h
519
+ ...I,
520
+ children: f
530
521
  }
531
522
  );
532
523
  }
533
524
  );
534
- R.displayName = "ArticleCard";
535
- const ae = R;
536
- ae.Skeleton = F;
525
+ E.displayName = "ArticleCard";
526
+ const te = E;
527
+ te.Skeleton = R;
537
528
  export {
538
- ae as ArticleCard,
539
- _ as articleCardMetaVariants,
540
- Z as articleCardTitleVariants,
541
- X as articleCardVariants
529
+ te as ArticleCard,
530
+ ee as articleCardMetaVariants,
531
+ _ as articleCardTitleVariants,
532
+ Z as articleCardVariants
542
533
  };
@@ -25,7 +25,7 @@ export interface CarouselSectionProps {
25
25
  */
26
26
  export declare const CarouselSection: ({ title, items, ctaLabel, ctaHref, }: CarouselSectionProps) => import("react/jsx-runtime").JSX.Element;
27
27
  /**
28
- * Pre-rendered slides using the library `OfferCard` (compact promo variant).
28
+ * Pre-rendered slides using the library `OfferCard` (tinted compact variant).
29
29
  * Below desktop the fixed `w-[284px]` drives the peeking multi-card layout;
30
30
  * `lg:w-full` lets the card fill its slide so the desktop fractional bases
31
31
  * (3 → 4 → 5 per view) line up exactly. `h-full` matches the tallest card.