@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.
- package/dist/components/ArticleCard/ArticleCard.d.ts.map +1 -1
- package/dist/components/ArticleCard/ArticleCard.js +161 -170
- package/dist/components/CarouselSection/CarouselSection.examples.d.ts +1 -1
- package/dist/components/Dialog/Dialog.d.ts +19 -6
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.js +148 -112
- package/dist/components/Dialog/Dialog.stories.d.ts +3 -0
- package/dist/components/Dialog/Dialog.stories.d.ts.map +1 -1
- package/dist/components/OfferCard/OfferCard.d.ts +45 -17
- package/dist/components/OfferCard/OfferCard.d.ts.map +1 -1
- package/dist/components/OfferCard/OfferCard.js +180 -266
- package/dist/components/OfferCard/OfferCard.stories.d.ts +5 -2
- package/dist/components/OfferCard/OfferCard.stories.d.ts.map +1 -1
- package/dist/components/PartnerCard/PartnerCard.d.ts +90 -26
- package/dist/components/PartnerCard/PartnerCard.d.ts.map +1 -1
- package/dist/components/PartnerCard/PartnerCard.js +323 -264
- package/dist/components/PartnerCard/PartnerCard.stories.d.ts +6 -0
- package/dist/components/PartnerCard/PartnerCard.stories.d.ts.map +1 -1
- package/dist/components/PriceTag/PriceTag.d.ts +37 -0
- package/dist/components/PriceTag/PriceTag.d.ts.map +1 -0
- package/dist/components/PriceTag/PriceTag.js +43 -0
- package/dist/components/PriceTag/PriceTag.stories.d.ts +8 -0
- package/dist/components/PriceTag/PriceTag.stories.d.ts.map +1 -0
- package/dist/components/PriceTag/index.d.ts +2 -0
- package/dist/components/PriceTag/index.d.ts.map +1 -0
- package/dist/components/PriceTag/index.js +5 -0
- package/dist/components/Tooltip/Tooltip.d.ts +18 -7
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +116 -68
- package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/dist/components/VoucherCard/VoucherCard.d.ts +24 -1
- package/dist/components/VoucherCard/VoucherCard.d.ts.map +1 -1
- package/dist/components/VoucherCard/VoucherCard.js +68 -76
- package/dist/components/VoucherCard/VoucherCard.stories.d.ts +1 -0
- package/dist/components/VoucherCard/VoucherCard.stories.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/internal/CardCompactShell.d.ts +80 -0
- package/dist/components/internal/CardCompactShell.d.ts.map +1 -0
- package/dist/components/internal/CardCompactShell.js +148 -0
- package/dist/components/internal/CardImageSlot.d.ts +56 -0
- package/dist/components/internal/CardImageSlot.d.ts.map +1 -0
- package/dist/components/internal/CardImageSlot.js +85 -0
- package/dist/index.js +178 -175
- package/dist/muza-ui.css +1 -1
- package/dist/styles/token-sizes.css +16 -4
- package/dist/utils/cn.d.ts.map +1 -1
- package/dist/utils/cn.js +6 -3
- package/dist/utils/disabledLinkProps.d.ts +8 -1
- package/dist/utils/disabledLinkProps.d.ts.map +1 -1
- package/dist/utils/disabledLinkProps.js +0 -1
- package/package.json +3 -2
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { jsxs as t, Fragment as
|
|
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
|
|
4
|
-
import { cva as
|
|
5
|
-
import { useMuzaTranslationContext as
|
|
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
|
|
8
|
-
import { formatDate as
|
|
9
|
-
import { Button as
|
|
10
|
-
import { DotDivider as
|
|
11
|
-
import { Flex as
|
|
12
|
-
import { AltArrowRightOutline as
|
|
13
|
-
import { Skeleton as
|
|
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
|
|
16
|
-
|
|
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
|
-
),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
47
|
-
|
|
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((
|
|
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:
|
|
60
|
+
children: d
|
|
60
61
|
},
|
|
61
|
-
|
|
62
|
+
m
|
|
62
63
|
))
|
|
63
64
|
}
|
|
64
65
|
) : /* @__PURE__ */ t(
|
|
65
|
-
|
|
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((
|
|
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:
|
|
80
|
+
children: d
|
|
80
81
|
},
|
|
81
|
-
|
|
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
|
-
|
|
91
|
-
const
|
|
91
|
+
g.displayName = "ArticleCard.Tags";
|
|
92
|
+
const x = ({
|
|
92
93
|
variant: r,
|
|
93
94
|
dateText: a,
|
|
94
95
|
readingTime: i,
|
|
95
|
-
readingTimeFormatter:
|
|
96
|
+
readingTimeFormatter: d,
|
|
97
|
+
inverted: m = !1
|
|
96
98
|
}) => {
|
|
97
|
-
const n =
|
|
98
|
-
return /* @__PURE__ */ t(
|
|
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
|
-
|
|
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(
|
|
112
|
-
/* @__PURE__ */ e(
|
|
113
|
+
i != null && /* @__PURE__ */ t(D, { children: [
|
|
114
|
+
/* @__PURE__ */ e(U, { variant: u }),
|
|
113
115
|
/* @__PURE__ */ e(
|
|
114
|
-
|
|
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:
|
|
124
|
+
children: d(i)
|
|
123
125
|
}
|
|
124
126
|
)
|
|
125
127
|
] })
|
|
126
128
|
] });
|
|
127
129
|
};
|
|
128
|
-
|
|
129
|
-
const
|
|
130
|
-
const i =
|
|
130
|
+
x.displayName = "ArticleCard.Metadata";
|
|
131
|
+
const w = ({ label: r, inverted: a = !1 }) => {
|
|
132
|
+
const i = a;
|
|
131
133
|
return /* @__PURE__ */ e(
|
|
132
|
-
|
|
134
|
+
Q,
|
|
133
135
|
{
|
|
134
136
|
asChild: !0,
|
|
135
137
|
variant: i ? "linkInvert" : "link",
|
|
136
138
|
size: "xs",
|
|
137
|
-
icon: /* @__PURE__ */ e(
|
|
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:
|
|
145
|
+
children: /* @__PURE__ */ e("span", { children: r })
|
|
144
146
|
}
|
|
145
147
|
);
|
|
146
148
|
};
|
|
147
|
-
|
|
148
|
-
const
|
|
149
|
+
w.displayName = "ArticleCard.Cta";
|
|
150
|
+
const R = ({
|
|
149
151
|
variant: r = "compact",
|
|
150
152
|
color: a = "default",
|
|
151
153
|
className: i,
|
|
152
|
-
...
|
|
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
|
-
...
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
196
|
-
/* @__PURE__ */ e(
|
|
197
|
-
/* @__PURE__ */ e(
|
|
198
|
-
/* @__PURE__ */ e(
|
|
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(
|
|
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
|
-
...
|
|
215
|
+
...d,
|
|
214
216
|
children: /* @__PURE__ */ e(
|
|
215
|
-
|
|
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
|
-
...
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
265
|
-
/* @__PURE__ */ e(
|
|
266
|
-
/* @__PURE__ */ e(
|
|
267
|
-
/* @__PURE__ */ e(
|
|
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(
|
|
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
|
-
|
|
277
|
-
const
|
|
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:
|
|
305
|
-
imageAlt:
|
|
306
|
-
categories:
|
|
307
|
-
maxNumberOfVisibleTags:
|
|
308
|
-
publicationDate:
|
|
283
|
+
image: d,
|
|
284
|
+
imageAlt: m,
|
|
285
|
+
categories: n = [],
|
|
286
|
+
maxNumberOfVisibleTags: u = 2,
|
|
287
|
+
publicationDate: P,
|
|
309
288
|
readingTime: N,
|
|
310
|
-
formatDate:
|
|
311
|
-
readArticleLabel:
|
|
312
|
-
readingTimeLabel:
|
|
289
|
+
formatDate: Y,
|
|
290
|
+
readArticleLabel: B,
|
|
291
|
+
readingTimeLabel: O,
|
|
313
292
|
variant: s = "compact",
|
|
314
293
|
disabled: p = !1,
|
|
315
|
-
asChild:
|
|
316
|
-
href:
|
|
317
|
-
className:
|
|
294
|
+
asChild: W = !1,
|
|
295
|
+
href: $,
|
|
296
|
+
className: q,
|
|
318
297
|
children: S,
|
|
319
|
-
...
|
|
320
|
-
} = r, { translations:
|
|
321
|
-
let
|
|
322
|
-
s === "compact" ?
|
|
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
|
-
|
|
303
|
+
T,
|
|
325
304
|
{
|
|
326
|
-
image:
|
|
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
|
-
|
|
338
|
-
|
|
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:
|
|
341
|
-
maxNumberOfVisibleTags:
|
|
320
|
+
categories: n,
|
|
321
|
+
maxNumberOfVisibleTags: u
|
|
342
322
|
}
|
|
343
323
|
) })
|
|
344
324
|
]
|
|
345
325
|
}
|
|
346
326
|
),
|
|
347
327
|
/* @__PURE__ */ t(
|
|
348
|
-
|
|
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(
|
|
335
|
+
/* @__PURE__ */ t(l, { direction: "column", gap: "2xs", children: [
|
|
356
336
|
/* @__PURE__ */ e(
|
|
357
|
-
|
|
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
|
-
|
|
348
|
+
x,
|
|
369
349
|
{
|
|
370
350
|
variant: s,
|
|
371
|
-
|
|
351
|
+
inverted: h,
|
|
352
|
+
dateText: y,
|
|
372
353
|
readingTime: N,
|
|
373
|
-
readingTimeFormatter:
|
|
354
|
+
readingTimeFormatter: C
|
|
374
355
|
}
|
|
375
356
|
)
|
|
376
357
|
] }),
|
|
377
|
-
/* @__PURE__ */ e(
|
|
358
|
+
/* @__PURE__ */ e(w, { label: k, inverted: h })
|
|
378
359
|
]
|
|
379
360
|
}
|
|
380
361
|
)
|
|
381
|
-
] }) : s === "heroLarge" ?
|
|
382
|
-
|
|
362
|
+
] }) : s === "heroLarge" ? f = /* @__PURE__ */ t(
|
|
363
|
+
T,
|
|
383
364
|
{
|
|
384
|
-
image:
|
|
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
|
-
|
|
370
|
+
v ? "justify-between" : "justify-end"
|
|
389
371
|
),
|
|
390
372
|
children: [
|
|
391
|
-
/* @__PURE__ */ e(
|
|
392
|
-
|
|
393
|
-
|
|
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:
|
|
396
|
-
maxNumberOfVisibleTags:
|
|
383
|
+
categories: n,
|
|
384
|
+
maxNumberOfVisibleTags: u
|
|
397
385
|
}
|
|
398
386
|
) }),
|
|
399
387
|
/* @__PURE__ */ t(
|
|
400
|
-
|
|
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(
|
|
394
|
+
/* @__PURE__ */ t(l, { direction: "column", gap: "sm", children: [
|
|
407
395
|
/* @__PURE__ */ e(
|
|
408
|
-
|
|
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
|
-
|
|
407
|
+
x,
|
|
420
408
|
{
|
|
421
409
|
variant: s,
|
|
422
|
-
|
|
410
|
+
inverted: h,
|
|
411
|
+
dateText: y,
|
|
423
412
|
readingTime: N,
|
|
424
|
-
readingTimeFormatter:
|
|
413
|
+
readingTimeFormatter: C
|
|
425
414
|
}
|
|
426
415
|
)
|
|
427
416
|
] }),
|
|
428
|
-
/* @__PURE__ */ e(
|
|
417
|
+
/* @__PURE__ */ e(w, { label: k, inverted: h })
|
|
429
418
|
]
|
|
430
419
|
}
|
|
431
420
|
)
|
|
432
421
|
]
|
|
433
422
|
}
|
|
434
|
-
) :
|
|
423
|
+
) : f = /* @__PURE__ */ t(D, { children: [
|
|
435
424
|
/* @__PURE__ */ t(
|
|
436
|
-
|
|
425
|
+
T,
|
|
437
426
|
{
|
|
438
|
-
image:
|
|
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
|
-
|
|
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
|
-
|
|
441
|
+
g,
|
|
452
442
|
{
|
|
453
|
-
categories:
|
|
443
|
+
categories: n,
|
|
454
444
|
maxNumberOfVisibleTags: 1,
|
|
455
445
|
className: "md:hidden"
|
|
456
446
|
}
|
|
457
447
|
),
|
|
458
448
|
/* @__PURE__ */ e(
|
|
459
|
-
|
|
449
|
+
g,
|
|
460
450
|
{
|
|
461
|
-
categories:
|
|
462
|
-
maxNumberOfVisibleTags:
|
|
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
|
-
|
|
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(
|
|
468
|
+
/* @__PURE__ */ t(l, { direction: "column", gap: "xs", children: [
|
|
479
469
|
/* @__PURE__ */ e(
|
|
480
|
-
|
|
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
|
-
|
|
481
|
+
x,
|
|
492
482
|
{
|
|
493
483
|
variant: s,
|
|
494
|
-
|
|
484
|
+
inverted: h,
|
|
485
|
+
dateText: y,
|
|
495
486
|
readingTime: N,
|
|
496
|
-
readingTimeFormatter:
|
|
487
|
+
readingTimeFormatter: C
|
|
497
488
|
}
|
|
498
489
|
)
|
|
499
490
|
] }),
|
|
500
|
-
/* @__PURE__ */ e(
|
|
491
|
+
/* @__PURE__ */ e(w, { label: k, inverted: h })
|
|
501
492
|
]
|
|
502
493
|
}
|
|
503
494
|
)
|
|
504
495
|
] });
|
|
505
|
-
const
|
|
506
|
-
return
|
|
507
|
-
|
|
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:
|
|
501
|
+
className: F,
|
|
511
502
|
"data-disabled": p || void 0,
|
|
512
503
|
"aria-disabled": p || void 0,
|
|
513
|
-
...
|
|
504
|
+
...I,
|
|
514
505
|
children: L.cloneElement(
|
|
515
506
|
S,
|
|
516
|
-
p ?
|
|
517
|
-
|
|
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 :
|
|
525
|
-
className:
|
|
515
|
+
href: p ? void 0 : $,
|
|
516
|
+
className: F,
|
|
526
517
|
"data-disabled": p || void 0,
|
|
527
518
|
"aria-disabled": p || void 0,
|
|
528
|
-
...
|
|
529
|
-
children:
|
|
519
|
+
...I,
|
|
520
|
+
children: f
|
|
530
521
|
}
|
|
531
522
|
);
|
|
532
523
|
}
|
|
533
524
|
);
|
|
534
|
-
|
|
535
|
-
const
|
|
536
|
-
|
|
525
|
+
E.displayName = "ArticleCard";
|
|
526
|
+
const te = E;
|
|
527
|
+
te.Skeleton = R;
|
|
537
528
|
export {
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
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
|
|
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.
|