@axos-web-dev/shared-components 2.0.0-dev.31.insights.5 → 2.0.0-dev.31.insights.6
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.
|
@@ -159,7 +159,7 @@ const CategorySelector = (props) => {
|
|
|
159
159
|
children: `See More ${title2.replaceAll("-", " ")} Articles`
|
|
160
160
|
}
|
|
161
161
|
)
|
|
162
|
-
] }) : /* @__PURE__ */ jsx("p", { className: selector_title_link, children: subcategory !== void 0 ? subcategory : title2 }) }),
|
|
162
|
+
] }) : /* @__PURE__ */ jsx("p", { className: selector_title_link, children: subcategory !== void 0 ? subcategory.replaceAll("-", " ") : title2.replaceAll("-", " ") }) }),
|
|
163
163
|
/* @__PURE__ */ jsx("div", { className: selector_grid_items, children: typeof insights !== "undefined" ? insights.map((item) => /* @__PURE__ */ jsx(
|
|
164
164
|
InsightItem,
|
|
165
165
|
{
|
|
@@ -195,7 +195,7 @@ const InsightItem = (props) => {
|
|
|
195
195
|
supertag
|
|
196
196
|
} = props;
|
|
197
197
|
return /* @__PURE__ */ jsxs("a", { id, href: url, className: clsx(onhover, selector_small_item), children: [
|
|
198
|
-
/* @__PURE__ */ jsx("div", { className: clsx(selector_img, "relative"), children: /* @__PURE__ */ jsx(
|
|
198
|
+
/* @__PURE__ */ jsx("div", { className: clsx(selector_img, "relative"), "aria-hidden": "true", children: /* @__PURE__ */ jsx(
|
|
199
199
|
OptimizeImage,
|
|
200
200
|
{
|
|
201
201
|
src: `${image?.url}`,
|
|
@@ -227,6 +227,7 @@ const InsightItem = (props) => {
|
|
|
227
227
|
height: 20,
|
|
228
228
|
viewBox: "0 0 1 20",
|
|
229
229
|
fill: "none",
|
|
230
|
+
"aria-hidden": "true",
|
|
230
231
|
children: /* @__PURE__ */ jsx("path", { d: "M0.5 0V20", stroke: "#14263D" })
|
|
231
232
|
}
|
|
232
233
|
) }),
|
|
@@ -145,21 +145,28 @@ const FeaturedItem = (props) => {
|
|
|
145
145
|
const variant = getVariant(fullVariant);
|
|
146
146
|
const imageUrl = image?.url ? `https:${image.url}` : void 0;
|
|
147
147
|
return /* @__PURE__ */ jsx("a", { href: url ?? "/", className: clsx(featured_subgrid_item, onhover), children: /* @__PURE__ */ jsxs("div", { className: featured_subwrap, children: [
|
|
148
|
-
imageUrl ? /* @__PURE__ */ jsxs(
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
148
|
+
imageUrl ? /* @__PURE__ */ jsxs(
|
|
149
|
+
"picture",
|
|
150
|
+
{
|
|
151
|
+
className: clsx(ratio, featured_subimage),
|
|
152
|
+
"aria-hidden": "true",
|
|
153
|
+
children: [
|
|
154
|
+
/* @__PURE__ */ jsx("source", { srcSet: `${imageUrl}?fm=avif`, type: "image/avif" }),
|
|
155
|
+
/* @__PURE__ */ jsx("source", { srcSet: `${imageUrl}?fm=webp`, type: "image/webp" }),
|
|
156
|
+
/* @__PURE__ */ jsx(
|
|
157
|
+
Image,
|
|
158
|
+
{
|
|
159
|
+
src: imageUrl,
|
|
160
|
+
className: clsx(featured_maingrid_img, ratio),
|
|
161
|
+
height: 159,
|
|
162
|
+
width: 269,
|
|
163
|
+
priority: true,
|
|
164
|
+
alt: image?.alt ?? ""
|
|
165
|
+
}
|
|
166
|
+
)
|
|
167
|
+
]
|
|
168
|
+
}
|
|
169
|
+
) : null,
|
|
163
170
|
/* @__PURE__ */ jsxs("div", { className: featured_subcontent, children: [
|
|
164
171
|
/* @__PURE__ */ jsx("h3", { className: clsx(featured_subgrid_title, title({ variant })), children: featureItemTitle ?? "" }),
|
|
165
172
|
/* @__PURE__ */ jsxs("div", { className: "flex middle", style: { gap: "4px" }, children: [
|
|
@@ -174,6 +181,7 @@ const FeaturedItem = (props) => {
|
|
|
174
181
|
viewBox: "0 0 1 20",
|
|
175
182
|
fill: "none",
|
|
176
183
|
className: divider_tab,
|
|
184
|
+
"aria-hidden": "true",
|
|
177
185
|
children: /* @__PURE__ */ jsx("path", { d: "M0.5 0V20", stroke: "#14263D" })
|
|
178
186
|
}
|
|
179
187
|
) }),
|
|
@@ -198,7 +206,7 @@ const Featured = (props) => {
|
|
|
198
206
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
199
207
|
headline && /* @__PURE__ */ jsx("h2", { className: featured_title, children: headline }),
|
|
200
208
|
/* @__PURE__ */ jsxs("a", { href: main?.url, className: clsx(featured_maingrid, onhover), children: [
|
|
201
|
-
mainImageUrl ? /* @__PURE__ */ jsxs("picture", { className: clsx(ratio, "rounded"), children: [
|
|
209
|
+
mainImageUrl ? /* @__PURE__ */ jsxs("picture", { className: clsx(ratio, "rounded"), "aria-hidden": "true", children: [
|
|
202
210
|
/* @__PURE__ */ jsx(
|
|
203
211
|
"source",
|
|
204
212
|
{
|
|
@@ -228,22 +236,30 @@ const Featured = (props) => {
|
|
|
228
236
|
/* @__PURE__ */ jsxs("div", { className: featured_main_wrapper, children: [
|
|
229
237
|
/* @__PURE__ */ jsx("h3", { className: featured_maingrid_title, children: main?.title ?? "" }),
|
|
230
238
|
/* @__PURE__ */ jsx("p", { className: featured_maingrid_text, children: main?.text ?? "" }),
|
|
231
|
-
/* @__PURE__ */ jsxs(
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
"
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
239
|
+
/* @__PURE__ */ jsxs(
|
|
240
|
+
"div",
|
|
241
|
+
{
|
|
242
|
+
className: "flex middle",
|
|
243
|
+
style: { gap: "4px", flexWrap: "wrap" },
|
|
244
|
+
children: [
|
|
245
|
+
/* @__PURE__ */ jsx(ClockIcon, {}),
|
|
246
|
+
/* @__PURE__ */ jsx("span", { className: info_details, children: (main?.readingTime ?? "") + " minute read" }),
|
|
247
|
+
/* @__PURE__ */ jsx("div", { className: "flex middle", style: { paddingInline: "8px" }, children: /* @__PURE__ */ jsx(
|
|
248
|
+
"svg",
|
|
249
|
+
{
|
|
250
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
251
|
+
width: 1,
|
|
252
|
+
height: 20,
|
|
253
|
+
viewBox: "0 0 1 20",
|
|
254
|
+
fill: "none",
|
|
255
|
+
"aria-hidden": "true",
|
|
256
|
+
children: /* @__PURE__ */ jsx("path", { d: "M0.5 0V20", stroke: "#14263D" })
|
|
257
|
+
}
|
|
258
|
+
) }),
|
|
259
|
+
/* @__PURE__ */ jsx("span", { className: info_details, style: { fontWeight: "600" }, children: (typeof main?.supertag == "string" && main?.supertag.replaceAll("-", " ")) ?? "" })
|
|
260
|
+
]
|
|
261
|
+
}
|
|
262
|
+
)
|
|
247
263
|
] })
|
|
248
264
|
] })
|
|
249
265
|
] }),
|
package/package.json
CHANGED