@holmdigital/components 2.1.0 → 2.1.1
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.
|
@@ -105,7 +105,8 @@ var AccessibilityStatement = ({
|
|
|
105
105
|
badgeUrl,
|
|
106
106
|
publishDate
|
|
107
107
|
}) => {
|
|
108
|
-
const
|
|
108
|
+
const supportedLocales = { sv: "sv", no: "no", nb: "no" };
|
|
109
|
+
const lang = supportedLocales[locale] ?? "en";
|
|
109
110
|
const template = TEMPLATES[lang] || TEMPLATES.en;
|
|
110
111
|
const d = (date) => formatDiggDate(date, locale);
|
|
111
112
|
const enforcementBody = import_standards.ENFORCEMENT_BODIES[country] || import_standards.ENFORCEMENT_BODIES.EU;
|
|
@@ -196,15 +197,16 @@ var AccessibilityStatement = ({
|
|
|
196
197
|
} else if (section.id === "testing" || trimmed.includes("Hur vi testat") || trimmed.includes("How we tested") || trimmed.includes("Hvordan vi har testet") || trimmed.includes("Kuinka olemme testanneet") || trimmed.includes("Hoe wij de website hebben getest") || trimmed.includes("Erstellung dieser Erkl\xE4rung") || trimmed.includes("\xC9tablissement de cette d\xE9claration") || trimmed.includes("Preparaci\xF3n de la presente declaraci\xF3n")) {
|
|
197
198
|
IconNode = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CheckCircleIcon, {}) });
|
|
198
199
|
}
|
|
200
|
+
const SectionHeader = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("h2", { style: styles.sectionTitle, children: [
|
|
201
|
+
IconNode,
|
|
202
|
+
section.title
|
|
203
|
+
] }, `h2-${i}`);
|
|
199
204
|
const blocks = trimmed.split("\n\n").map((block, bi) => {
|
|
200
205
|
const blockTrimmed = block.trim();
|
|
201
206
|
if (!blockTrimmed) return null;
|
|
202
207
|
if (blockTrimmed.startsWith("## ")) {
|
|
203
208
|
const title = blockTrimmed.replace("## ", "");
|
|
204
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.
|
|
205
|
-
IconNode,
|
|
206
|
-
title
|
|
207
|
-
] }, `${i}-${bi}`);
|
|
209
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { style: styles.sectionTitle, children: title }, `${i}-${bi}`);
|
|
208
210
|
}
|
|
209
211
|
if (blockTrimmed.startsWith("### ")) {
|
|
210
212
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { style: { ...styles.sectionTitle, fontSize: "1.4rem" }, children: blockTrimmed.replace("### ", "") }, `${i}-${bi}`);
|
|
@@ -226,7 +228,10 @@ var AccessibilityStatement = ({
|
|
|
226
228
|
}
|
|
227
229
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { style: styles.paragraph, children: blockTrimmed }, `${i}-${bi}`);
|
|
228
230
|
});
|
|
229
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.
|
|
231
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { style: styles.section, children: [
|
|
232
|
+
SectionHeader,
|
|
233
|
+
blocks
|
|
234
|
+
] }, i);
|
|
230
235
|
});
|
|
231
236
|
};
|
|
232
237
|
const statementTools = (0, import_standards.getStatementToolsByCountry)(country);
|
|
@@ -243,152 +248,168 @@ var AccessibilityStatement = ({
|
|
|
243
248
|
display: "flex",
|
|
244
249
|
justifyContent: "space-between",
|
|
245
250
|
alignItems: "center",
|
|
246
|
-
marginBottom: "
|
|
247
|
-
paddingBottom: "
|
|
248
|
-
borderBottom: "1px solid #
|
|
251
|
+
marginBottom: "5rem",
|
|
252
|
+
paddingBottom: "2.5rem",
|
|
253
|
+
borderBottom: "1px solid #f8fafc"
|
|
249
254
|
},
|
|
250
255
|
logoContainer: {
|
|
251
256
|
display: "flex",
|
|
252
257
|
alignItems: "center",
|
|
253
258
|
textDecoration: "none",
|
|
254
|
-
marginRight: "
|
|
259
|
+
marginRight: "2rem"
|
|
255
260
|
},
|
|
256
261
|
divider: {
|
|
257
|
-
height: "
|
|
262
|
+
height: "2rem",
|
|
258
263
|
width: "1px",
|
|
259
264
|
backgroundColor: "#e2e8f0",
|
|
260
|
-
marginRight: "
|
|
265
|
+
marginRight: "2rem",
|
|
261
266
|
display: "block"
|
|
262
267
|
},
|
|
263
268
|
websiteContainer: {
|
|
264
269
|
display: "flex",
|
|
265
270
|
alignItems: "center",
|
|
266
|
-
gap: "0.
|
|
271
|
+
gap: "0.625rem",
|
|
267
272
|
textDecoration: "none",
|
|
268
|
-
color: "#
|
|
269
|
-
// Slate
|
|
270
|
-
fontWeight:
|
|
271
|
-
fontSize: "
|
|
273
|
+
color: "#64748b",
|
|
274
|
+
// Slate 500
|
|
275
|
+
fontWeight: 500,
|
|
276
|
+
fontSize: "0.925rem",
|
|
272
277
|
padding: "0.5rem 1rem",
|
|
273
278
|
backgroundColor: "#f8fafc",
|
|
274
|
-
borderRadius: "
|
|
279
|
+
borderRadius: "100px",
|
|
275
280
|
border: "1px solid #f1f5f9"
|
|
276
281
|
},
|
|
277
282
|
container: {
|
|
278
|
-
maxWidth: "
|
|
279
|
-
margin: "
|
|
280
|
-
padding: "
|
|
283
|
+
maxWidth: "1000px",
|
|
284
|
+
margin: "4rem auto",
|
|
285
|
+
padding: "6rem",
|
|
281
286
|
backgroundColor: "#ffffff",
|
|
282
|
-
borderRadius: "
|
|
283
|
-
boxShadow: "0
|
|
287
|
+
borderRadius: "32px",
|
|
288
|
+
boxShadow: "0 40px 100px -20px rgba(15, 23, 42, 0.08)",
|
|
284
289
|
border: "1px solid #f1f5f9",
|
|
285
290
|
fontFamily: '"Inter", system-ui, -apple-system, sans-serif',
|
|
286
291
|
color: "#1e293b",
|
|
287
292
|
// Slate 800
|
|
288
|
-
lineHeight: 1.
|
|
289
|
-
fontSize: "1.125rem"
|
|
293
|
+
lineHeight: 1.8,
|
|
294
|
+
fontSize: "1.125rem",
|
|
295
|
+
position: "relative",
|
|
296
|
+
overflow: "hidden"
|
|
290
297
|
},
|
|
291
298
|
mainHeading: {
|
|
292
|
-
fontSize: "
|
|
293
|
-
fontWeight:
|
|
294
|
-
color: "#
|
|
295
|
-
//
|
|
299
|
+
fontSize: "3.5rem",
|
|
300
|
+
fontWeight: 800,
|
|
301
|
+
color: "#0f172a",
|
|
302
|
+
// Slate 900
|
|
296
303
|
marginTop: "0",
|
|
297
|
-
marginBottom: "
|
|
298
|
-
letterSpacing: "-0.
|
|
299
|
-
lineHeight: 1.
|
|
304
|
+
marginBottom: "1.5rem",
|
|
305
|
+
letterSpacing: "-0.05em",
|
|
306
|
+
lineHeight: 1.05
|
|
300
307
|
},
|
|
301
308
|
metaData: {
|
|
302
309
|
color: "#64748b",
|
|
303
310
|
// Slate 500
|
|
304
311
|
fontSize: "0.925rem",
|
|
305
|
-
marginBottom: "
|
|
312
|
+
marginBottom: "5rem",
|
|
306
313
|
fontWeight: 500,
|
|
307
314
|
display: "flex",
|
|
308
|
-
gap: "
|
|
315
|
+
gap: "2rem",
|
|
316
|
+
padding: "1.25rem 2rem",
|
|
317
|
+
backgroundColor: "#f8fafc",
|
|
318
|
+
borderRadius: "1rem",
|
|
319
|
+
border: "1px solid #f1f5f9",
|
|
320
|
+
width: "fit-content"
|
|
309
321
|
},
|
|
310
322
|
section: {
|
|
311
|
-
marginBottom: "
|
|
323
|
+
marginBottom: "6rem"
|
|
312
324
|
},
|
|
313
325
|
sectionTitle: {
|
|
314
|
-
fontSize: "1.
|
|
315
|
-
fontWeight:
|
|
316
|
-
color: "#
|
|
317
|
-
|
|
318
|
-
marginBottom: "1.5rem",
|
|
326
|
+
fontSize: "1.875rem",
|
|
327
|
+
fontWeight: 700,
|
|
328
|
+
color: "#0f172a",
|
|
329
|
+
marginBottom: "2rem",
|
|
319
330
|
marginTop: 0,
|
|
320
|
-
letterSpacing: "-0.
|
|
331
|
+
letterSpacing: "-0.03em",
|
|
321
332
|
display: "flex",
|
|
322
333
|
alignItems: "center",
|
|
323
|
-
gap: "
|
|
334
|
+
gap: "1rem"
|
|
324
335
|
},
|
|
325
336
|
card: {
|
|
326
337
|
padding: "2.5rem",
|
|
327
|
-
backgroundColor: "#
|
|
328
|
-
// Primary 50
|
|
338
|
+
backgroundColor: "#ffffff",
|
|
329
339
|
borderRadius: "1.5rem",
|
|
330
|
-
border: "1px solid #
|
|
331
|
-
|
|
340
|
+
border: "1px solid #f1f5f9",
|
|
341
|
+
boxShadow: "0 4px 6px -1px rgba(0, 0, 0, 0.02)",
|
|
342
|
+
marginBottom: "2.5rem",
|
|
343
|
+
display: "flex",
|
|
344
|
+
flexDirection: "column",
|
|
345
|
+
gap: "1rem"
|
|
332
346
|
},
|
|
333
347
|
paragraph: {
|
|
334
|
-
marginBottom: "1.
|
|
335
|
-
maxWidth: "
|
|
336
|
-
whiteSpace: "pre-line"
|
|
348
|
+
marginBottom: "1.75rem",
|
|
349
|
+
maxWidth: "70ch",
|
|
350
|
+
whiteSpace: "pre-line",
|
|
351
|
+
color: "#475569"
|
|
352
|
+
// Slate 600
|
|
337
353
|
},
|
|
338
354
|
link: {
|
|
339
|
-
color: "#
|
|
340
|
-
// Primary
|
|
355
|
+
color: "#0ea5e9",
|
|
356
|
+
// Primary 500
|
|
341
357
|
textDecoration: "none",
|
|
342
358
|
fontWeight: 600,
|
|
343
|
-
borderBottom: "
|
|
344
|
-
transition: "
|
|
359
|
+
borderBottom: "1.5px solid rgba(14, 165, 233, 0.2)",
|
|
360
|
+
transition: "all 0.2s",
|
|
345
361
|
cursor: "pointer"
|
|
346
362
|
},
|
|
347
363
|
list: {
|
|
348
364
|
listStyleType: "none",
|
|
349
365
|
paddingLeft: 0,
|
|
350
|
-
marginBottom: "
|
|
366
|
+
marginBottom: "2rem",
|
|
367
|
+
display: "flex",
|
|
368
|
+
flexDirection: "column",
|
|
369
|
+
gap: "1rem"
|
|
351
370
|
},
|
|
352
371
|
listItem: {
|
|
353
|
-
|
|
354
|
-
paddingLeft: "1.75rem",
|
|
372
|
+
padding: "1.25rem 1.75rem 1.25rem 3.5rem",
|
|
355
373
|
position: "relative",
|
|
356
|
-
|
|
374
|
+
backgroundColor: "#f8fafc",
|
|
375
|
+
borderRadius: "1rem",
|
|
376
|
+
border: "1px solid #f1f5f9",
|
|
377
|
+
fontSize: "1rem",
|
|
378
|
+
color: "#334155"
|
|
357
379
|
},
|
|
358
380
|
listBullet: {
|
|
359
381
|
position: "absolute",
|
|
360
|
-
left:
|
|
361
|
-
top: "
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
382
|
+
left: "1.5rem",
|
|
383
|
+
top: "50%",
|
|
384
|
+
transform: "translateY(-50%)",
|
|
385
|
+
width: "0.75rem",
|
|
386
|
+
height: "0.75rem",
|
|
387
|
+
borderRadius: "4px",
|
|
388
|
+
backgroundColor: "#0ea5e9",
|
|
389
|
+
opacity: 0.8
|
|
367
390
|
},
|
|
368
391
|
statusBadge: {
|
|
369
392
|
display: "inline-flex",
|
|
370
393
|
alignItems: "center",
|
|
371
|
-
padding: "0.
|
|
372
|
-
borderRadius: "
|
|
394
|
+
padding: "0.5rem 1.25rem",
|
|
395
|
+
borderRadius: "100px",
|
|
373
396
|
fontSize: "0.875rem",
|
|
374
|
-
fontWeight:
|
|
375
|
-
backgroundColor: complianceLevel === "full" ? "#
|
|
376
|
-
color: complianceLevel === "full" ? "#166534" : complianceLevel === "partial" ? "#
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
marginLeft: "0.5rem"
|
|
397
|
+
fontWeight: 600,
|
|
398
|
+
backgroundColor: complianceLevel === "full" ? "#f0fdf4" : complianceLevel === "partial" ? "#fffbeb" : "#fef2f2",
|
|
399
|
+
color: complianceLevel === "full" ? "#166534" : complianceLevel === "partial" ? "#92400e" : "#991b1b",
|
|
400
|
+
border: `1px solid ${complianceLevel === "full" ? "#dcfce7" : complianceLevel === "partial" ? "#fef3c7" : "#fee2e2"}`,
|
|
401
|
+
letterSpacing: "0.01em"
|
|
380
402
|
},
|
|
381
403
|
iconWrapper: {
|
|
382
404
|
display: "flex",
|
|
383
405
|
alignItems: "center",
|
|
384
406
|
justifyContent: "center",
|
|
385
|
-
width: "2.
|
|
386
|
-
height: "2.
|
|
387
|
-
borderRadius: "
|
|
388
|
-
backgroundColor: "#
|
|
389
|
-
boxShadow: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
407
|
+
width: "2.75rem",
|
|
408
|
+
height: "2.75rem",
|
|
409
|
+
borderRadius: "12px",
|
|
410
|
+
backgroundColor: "#f8fafc",
|
|
390
411
|
border: "1px solid #f1f5f9",
|
|
391
|
-
color: "#
|
|
412
|
+
color: "#0ea5e9"
|
|
392
413
|
}
|
|
393
414
|
};
|
|
394
415
|
const Logo = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
|
|
@@ -463,8 +484,23 @@ var AccessibilityStatement = ({
|
|
|
463
484
|
badgeUrl && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: badgeUrl, alt: "Accessibility Badge", style: { height: "1.5rem", width: "auto" } }) })
|
|
464
485
|
] }),
|
|
465
486
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "statement-content", children: [
|
|
466
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
467
|
-
|
|
487
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", { style: { marginBottom: "4rem" }, children: [
|
|
488
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", { id: "a11y-statement-title", style: styles.mainHeading, children: renderTemplate(template.title) }),
|
|
489
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { style: styles.metaData, children: [
|
|
490
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
|
491
|
+
lang === "sv" ? "Status:" : "Status:",
|
|
492
|
+
" ",
|
|
493
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { style: styles.statusBadge, children: complianceLevel === "full" ? lang === "sv" ? "Fullt f\xF6renlig" : "Fully compliant" : complianceLevel === "partial" ? lang === "sv" ? "Delvis f\xF6renlig" : "Partially compliant" : lang === "sv" ? "Ej f\xF6renlig" : "Non-compliant" })
|
|
494
|
+
] }),
|
|
495
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { style: { color: "#e2e8f0" }, children: "|" }),
|
|
496
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
|
|
497
|
+
lang === "sv" ? "Uppdaterad:" : "Updated:",
|
|
498
|
+
" ",
|
|
499
|
+
d(lastReviewDate)
|
|
500
|
+
] })
|
|
501
|
+
] })
|
|
502
|
+
] }),
|
|
503
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { style: { ...styles.paragraph, fontSize: "1.25rem", color: "#1e293b", fontWeight: 500, marginBottom: "4rem" }, children: renderTemplate(template.intro) }),
|
|
468
504
|
renderSections(template.sections)
|
|
469
505
|
] }),
|
|
470
506
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("footer", { style: { marginTop: "3rem", borderTop: "1px solid #e2e8f0", paddingTop: "1.5rem", fontSize: "0.875rem", color: "#64748b" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [
|
|
@@ -84,7 +84,8 @@ var AccessibilityStatement = ({
|
|
|
84
84
|
badgeUrl,
|
|
85
85
|
publishDate
|
|
86
86
|
}) => {
|
|
87
|
-
const
|
|
87
|
+
const supportedLocales = { sv: "sv", no: "no", nb: "no" };
|
|
88
|
+
const lang = supportedLocales[locale] ?? "en";
|
|
88
89
|
const template = TEMPLATES[lang] || TEMPLATES.en;
|
|
89
90
|
const d = (date) => formatDiggDate(date, locale);
|
|
90
91
|
const enforcementBody = ENFORCEMENT_BODIES[country] || ENFORCEMENT_BODIES.EU;
|
|
@@ -175,15 +176,16 @@ var AccessibilityStatement = ({
|
|
|
175
176
|
} else if (section.id === "testing" || trimmed.includes("Hur vi testat") || trimmed.includes("How we tested") || trimmed.includes("Hvordan vi har testet") || trimmed.includes("Kuinka olemme testanneet") || trimmed.includes("Hoe wij de website hebben getest") || trimmed.includes("Erstellung dieser Erkl\xE4rung") || trimmed.includes("\xC9tablissement de cette d\xE9claration") || trimmed.includes("Preparaci\xF3n de la presente declaraci\xF3n")) {
|
|
176
177
|
IconNode = /* @__PURE__ */ jsx(IconWrapper, { children: /* @__PURE__ */ jsx(CheckCircleIcon, {}) });
|
|
177
178
|
}
|
|
179
|
+
const SectionHeader = /* @__PURE__ */ jsxs("h2", { style: styles.sectionTitle, children: [
|
|
180
|
+
IconNode,
|
|
181
|
+
section.title
|
|
182
|
+
] }, `h2-${i}`);
|
|
178
183
|
const blocks = trimmed.split("\n\n").map((block, bi) => {
|
|
179
184
|
const blockTrimmed = block.trim();
|
|
180
185
|
if (!blockTrimmed) return null;
|
|
181
186
|
if (blockTrimmed.startsWith("## ")) {
|
|
182
187
|
const title = blockTrimmed.replace("## ", "");
|
|
183
|
-
return /* @__PURE__ */
|
|
184
|
-
IconNode,
|
|
185
|
-
title
|
|
186
|
-
] }, `${i}-${bi}`);
|
|
188
|
+
return /* @__PURE__ */ jsx("h2", { style: styles.sectionTitle, children: title }, `${i}-${bi}`);
|
|
187
189
|
}
|
|
188
190
|
if (blockTrimmed.startsWith("### ")) {
|
|
189
191
|
return /* @__PURE__ */ jsx("h3", { style: { ...styles.sectionTitle, fontSize: "1.4rem" }, children: blockTrimmed.replace("### ", "") }, `${i}-${bi}`);
|
|
@@ -205,7 +207,10 @@ var AccessibilityStatement = ({
|
|
|
205
207
|
}
|
|
206
208
|
return /* @__PURE__ */ jsx("p", { style: styles.paragraph, children: blockTrimmed }, `${i}-${bi}`);
|
|
207
209
|
});
|
|
208
|
-
return /* @__PURE__ */
|
|
210
|
+
return /* @__PURE__ */ jsxs("section", { style: styles.section, children: [
|
|
211
|
+
SectionHeader,
|
|
212
|
+
blocks
|
|
213
|
+
] }, i);
|
|
209
214
|
});
|
|
210
215
|
};
|
|
211
216
|
const statementTools = getStatementToolsByCountry(country);
|
|
@@ -222,152 +227,168 @@ var AccessibilityStatement = ({
|
|
|
222
227
|
display: "flex",
|
|
223
228
|
justifyContent: "space-between",
|
|
224
229
|
alignItems: "center",
|
|
225
|
-
marginBottom: "
|
|
226
|
-
paddingBottom: "
|
|
227
|
-
borderBottom: "1px solid #
|
|
230
|
+
marginBottom: "5rem",
|
|
231
|
+
paddingBottom: "2.5rem",
|
|
232
|
+
borderBottom: "1px solid #f8fafc"
|
|
228
233
|
},
|
|
229
234
|
logoContainer: {
|
|
230
235
|
display: "flex",
|
|
231
236
|
alignItems: "center",
|
|
232
237
|
textDecoration: "none",
|
|
233
|
-
marginRight: "
|
|
238
|
+
marginRight: "2rem"
|
|
234
239
|
},
|
|
235
240
|
divider: {
|
|
236
|
-
height: "
|
|
241
|
+
height: "2rem",
|
|
237
242
|
width: "1px",
|
|
238
243
|
backgroundColor: "#e2e8f0",
|
|
239
|
-
marginRight: "
|
|
244
|
+
marginRight: "2rem",
|
|
240
245
|
display: "block"
|
|
241
246
|
},
|
|
242
247
|
websiteContainer: {
|
|
243
248
|
display: "flex",
|
|
244
249
|
alignItems: "center",
|
|
245
|
-
gap: "0.
|
|
250
|
+
gap: "0.625rem",
|
|
246
251
|
textDecoration: "none",
|
|
247
|
-
color: "#
|
|
248
|
-
// Slate
|
|
249
|
-
fontWeight:
|
|
250
|
-
fontSize: "
|
|
252
|
+
color: "#64748b",
|
|
253
|
+
// Slate 500
|
|
254
|
+
fontWeight: 500,
|
|
255
|
+
fontSize: "0.925rem",
|
|
251
256
|
padding: "0.5rem 1rem",
|
|
252
257
|
backgroundColor: "#f8fafc",
|
|
253
|
-
borderRadius: "
|
|
258
|
+
borderRadius: "100px",
|
|
254
259
|
border: "1px solid #f1f5f9"
|
|
255
260
|
},
|
|
256
261
|
container: {
|
|
257
|
-
maxWidth: "
|
|
258
|
-
margin: "
|
|
259
|
-
padding: "
|
|
262
|
+
maxWidth: "1000px",
|
|
263
|
+
margin: "4rem auto",
|
|
264
|
+
padding: "6rem",
|
|
260
265
|
backgroundColor: "#ffffff",
|
|
261
|
-
borderRadius: "
|
|
262
|
-
boxShadow: "0
|
|
266
|
+
borderRadius: "32px",
|
|
267
|
+
boxShadow: "0 40px 100px -20px rgba(15, 23, 42, 0.08)",
|
|
263
268
|
border: "1px solid #f1f5f9",
|
|
264
269
|
fontFamily: '"Inter", system-ui, -apple-system, sans-serif',
|
|
265
270
|
color: "#1e293b",
|
|
266
271
|
// Slate 800
|
|
267
|
-
lineHeight: 1.
|
|
268
|
-
fontSize: "1.125rem"
|
|
272
|
+
lineHeight: 1.8,
|
|
273
|
+
fontSize: "1.125rem",
|
|
274
|
+
position: "relative",
|
|
275
|
+
overflow: "hidden"
|
|
269
276
|
},
|
|
270
277
|
mainHeading: {
|
|
271
|
-
fontSize: "
|
|
272
|
-
fontWeight:
|
|
273
|
-
color: "#
|
|
274
|
-
//
|
|
278
|
+
fontSize: "3.5rem",
|
|
279
|
+
fontWeight: 800,
|
|
280
|
+
color: "#0f172a",
|
|
281
|
+
// Slate 900
|
|
275
282
|
marginTop: "0",
|
|
276
|
-
marginBottom: "
|
|
277
|
-
letterSpacing: "-0.
|
|
278
|
-
lineHeight: 1.
|
|
283
|
+
marginBottom: "1.5rem",
|
|
284
|
+
letterSpacing: "-0.05em",
|
|
285
|
+
lineHeight: 1.05
|
|
279
286
|
},
|
|
280
287
|
metaData: {
|
|
281
288
|
color: "#64748b",
|
|
282
289
|
// Slate 500
|
|
283
290
|
fontSize: "0.925rem",
|
|
284
|
-
marginBottom: "
|
|
291
|
+
marginBottom: "5rem",
|
|
285
292
|
fontWeight: 500,
|
|
286
293
|
display: "flex",
|
|
287
|
-
gap: "
|
|
294
|
+
gap: "2rem",
|
|
295
|
+
padding: "1.25rem 2rem",
|
|
296
|
+
backgroundColor: "#f8fafc",
|
|
297
|
+
borderRadius: "1rem",
|
|
298
|
+
border: "1px solid #f1f5f9",
|
|
299
|
+
width: "fit-content"
|
|
288
300
|
},
|
|
289
301
|
section: {
|
|
290
|
-
marginBottom: "
|
|
302
|
+
marginBottom: "6rem"
|
|
291
303
|
},
|
|
292
304
|
sectionTitle: {
|
|
293
|
-
fontSize: "1.
|
|
294
|
-
fontWeight:
|
|
295
|
-
color: "#
|
|
296
|
-
|
|
297
|
-
marginBottom: "1.5rem",
|
|
305
|
+
fontSize: "1.875rem",
|
|
306
|
+
fontWeight: 700,
|
|
307
|
+
color: "#0f172a",
|
|
308
|
+
marginBottom: "2rem",
|
|
298
309
|
marginTop: 0,
|
|
299
|
-
letterSpacing: "-0.
|
|
310
|
+
letterSpacing: "-0.03em",
|
|
300
311
|
display: "flex",
|
|
301
312
|
alignItems: "center",
|
|
302
|
-
gap: "
|
|
313
|
+
gap: "1rem"
|
|
303
314
|
},
|
|
304
315
|
card: {
|
|
305
316
|
padding: "2.5rem",
|
|
306
|
-
backgroundColor: "#
|
|
307
|
-
// Primary 50
|
|
317
|
+
backgroundColor: "#ffffff",
|
|
308
318
|
borderRadius: "1.5rem",
|
|
309
|
-
border: "1px solid #
|
|
310
|
-
|
|
319
|
+
border: "1px solid #f1f5f9",
|
|
320
|
+
boxShadow: "0 4px 6px -1px rgba(0, 0, 0, 0.02)",
|
|
321
|
+
marginBottom: "2.5rem",
|
|
322
|
+
display: "flex",
|
|
323
|
+
flexDirection: "column",
|
|
324
|
+
gap: "1rem"
|
|
311
325
|
},
|
|
312
326
|
paragraph: {
|
|
313
|
-
marginBottom: "1.
|
|
314
|
-
maxWidth: "
|
|
315
|
-
whiteSpace: "pre-line"
|
|
327
|
+
marginBottom: "1.75rem",
|
|
328
|
+
maxWidth: "70ch",
|
|
329
|
+
whiteSpace: "pre-line",
|
|
330
|
+
color: "#475569"
|
|
331
|
+
// Slate 600
|
|
316
332
|
},
|
|
317
333
|
link: {
|
|
318
|
-
color: "#
|
|
319
|
-
// Primary
|
|
334
|
+
color: "#0ea5e9",
|
|
335
|
+
// Primary 500
|
|
320
336
|
textDecoration: "none",
|
|
321
337
|
fontWeight: 600,
|
|
322
|
-
borderBottom: "
|
|
323
|
-
transition: "
|
|
338
|
+
borderBottom: "1.5px solid rgba(14, 165, 233, 0.2)",
|
|
339
|
+
transition: "all 0.2s",
|
|
324
340
|
cursor: "pointer"
|
|
325
341
|
},
|
|
326
342
|
list: {
|
|
327
343
|
listStyleType: "none",
|
|
328
344
|
paddingLeft: 0,
|
|
329
|
-
marginBottom: "
|
|
345
|
+
marginBottom: "2rem",
|
|
346
|
+
display: "flex",
|
|
347
|
+
flexDirection: "column",
|
|
348
|
+
gap: "1rem"
|
|
330
349
|
},
|
|
331
350
|
listItem: {
|
|
332
|
-
|
|
333
|
-
paddingLeft: "1.75rem",
|
|
351
|
+
padding: "1.25rem 1.75rem 1.25rem 3.5rem",
|
|
334
352
|
position: "relative",
|
|
335
|
-
|
|
353
|
+
backgroundColor: "#f8fafc",
|
|
354
|
+
borderRadius: "1rem",
|
|
355
|
+
border: "1px solid #f1f5f9",
|
|
356
|
+
fontSize: "1rem",
|
|
357
|
+
color: "#334155"
|
|
336
358
|
},
|
|
337
359
|
listBullet: {
|
|
338
360
|
position: "absolute",
|
|
339
|
-
left:
|
|
340
|
-
top: "
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
361
|
+
left: "1.5rem",
|
|
362
|
+
top: "50%",
|
|
363
|
+
transform: "translateY(-50%)",
|
|
364
|
+
width: "0.75rem",
|
|
365
|
+
height: "0.75rem",
|
|
366
|
+
borderRadius: "4px",
|
|
367
|
+
backgroundColor: "#0ea5e9",
|
|
368
|
+
opacity: 0.8
|
|
346
369
|
},
|
|
347
370
|
statusBadge: {
|
|
348
371
|
display: "inline-flex",
|
|
349
372
|
alignItems: "center",
|
|
350
|
-
padding: "0.
|
|
351
|
-
borderRadius: "
|
|
373
|
+
padding: "0.5rem 1.25rem",
|
|
374
|
+
borderRadius: "100px",
|
|
352
375
|
fontSize: "0.875rem",
|
|
353
|
-
fontWeight:
|
|
354
|
-
backgroundColor: complianceLevel === "full" ? "#
|
|
355
|
-
color: complianceLevel === "full" ? "#166534" : complianceLevel === "partial" ? "#
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
marginLeft: "0.5rem"
|
|
376
|
+
fontWeight: 600,
|
|
377
|
+
backgroundColor: complianceLevel === "full" ? "#f0fdf4" : complianceLevel === "partial" ? "#fffbeb" : "#fef2f2",
|
|
378
|
+
color: complianceLevel === "full" ? "#166534" : complianceLevel === "partial" ? "#92400e" : "#991b1b",
|
|
379
|
+
border: `1px solid ${complianceLevel === "full" ? "#dcfce7" : complianceLevel === "partial" ? "#fef3c7" : "#fee2e2"}`,
|
|
380
|
+
letterSpacing: "0.01em"
|
|
359
381
|
},
|
|
360
382
|
iconWrapper: {
|
|
361
383
|
display: "flex",
|
|
362
384
|
alignItems: "center",
|
|
363
385
|
justifyContent: "center",
|
|
364
|
-
width: "2.
|
|
365
|
-
height: "2.
|
|
366
|
-
borderRadius: "
|
|
367
|
-
backgroundColor: "#
|
|
368
|
-
boxShadow: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
386
|
+
width: "2.75rem",
|
|
387
|
+
height: "2.75rem",
|
|
388
|
+
borderRadius: "12px",
|
|
389
|
+
backgroundColor: "#f8fafc",
|
|
369
390
|
border: "1px solid #f1f5f9",
|
|
370
|
-
color: "#
|
|
391
|
+
color: "#0ea5e9"
|
|
371
392
|
}
|
|
372
393
|
};
|
|
373
394
|
const Logo = () => /* @__PURE__ */ jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
|
|
@@ -442,8 +463,23 @@ var AccessibilityStatement = ({
|
|
|
442
463
|
badgeUrl && /* @__PURE__ */ jsx("div", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx("img", { src: badgeUrl, alt: "Accessibility Badge", style: { height: "1.5rem", width: "auto" } }) })
|
|
443
464
|
] }),
|
|
444
465
|
/* @__PURE__ */ jsxs("div", { className: "statement-content", children: [
|
|
445
|
-
/* @__PURE__ */
|
|
446
|
-
|
|
466
|
+
/* @__PURE__ */ jsxs("header", { style: { marginBottom: "4rem" }, children: [
|
|
467
|
+
/* @__PURE__ */ jsx("h1", { id: "a11y-statement-title", style: styles.mainHeading, children: renderTemplate(template.title) }),
|
|
468
|
+
/* @__PURE__ */ jsxs("div", { style: styles.metaData, children: [
|
|
469
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
470
|
+
lang === "sv" ? "Status:" : "Status:",
|
|
471
|
+
" ",
|
|
472
|
+
/* @__PURE__ */ jsx("span", { style: styles.statusBadge, children: complianceLevel === "full" ? lang === "sv" ? "Fullt f\xF6renlig" : "Fully compliant" : complianceLevel === "partial" ? lang === "sv" ? "Delvis f\xF6renlig" : "Partially compliant" : lang === "sv" ? "Ej f\xF6renlig" : "Non-compliant" })
|
|
473
|
+
] }),
|
|
474
|
+
/* @__PURE__ */ jsx("span", { style: { color: "#e2e8f0" }, children: "|" }),
|
|
475
|
+
/* @__PURE__ */ jsxs("span", { children: [
|
|
476
|
+
lang === "sv" ? "Uppdaterad:" : "Updated:",
|
|
477
|
+
" ",
|
|
478
|
+
d(lastReviewDate)
|
|
479
|
+
] })
|
|
480
|
+
] })
|
|
481
|
+
] }),
|
|
482
|
+
/* @__PURE__ */ jsx("p", { style: { ...styles.paragraph, fontSize: "1.25rem", color: "#1e293b", fontWeight: 500, marginBottom: "4rem" }, children: renderTemplate(template.intro) }),
|
|
447
483
|
renderSections(template.sections)
|
|
448
484
|
] }),
|
|
449
485
|
/* @__PURE__ */ jsx("footer", { style: { marginTop: "3rem", borderTop: "1px solid #e2e8f0", paddingTop: "1.5rem", fontSize: "0.875rem", color: "#64748b" }, children: /* @__PURE__ */ jsxs("p", { children: [
|
package/dist/index.js
CHANGED
|
@@ -1330,7 +1330,8 @@ var AccessibilityStatement = ({
|
|
|
1330
1330
|
badgeUrl,
|
|
1331
1331
|
publishDate
|
|
1332
1332
|
}) => {
|
|
1333
|
-
const
|
|
1333
|
+
const supportedLocales = { sv: "sv", no: "no", nb: "no" };
|
|
1334
|
+
const lang = supportedLocales[locale] ?? "en";
|
|
1334
1335
|
const template = TEMPLATES[lang] || TEMPLATES.en;
|
|
1335
1336
|
const d = (date) => formatDiggDate(date, locale);
|
|
1336
1337
|
const enforcementBody = import_standards.ENFORCEMENT_BODIES[country] || import_standards.ENFORCEMENT_BODIES.EU;
|
|
@@ -1421,15 +1422,16 @@ var AccessibilityStatement = ({
|
|
|
1421
1422
|
} else if (section.id === "testing" || trimmed.includes("Hur vi testat") || trimmed.includes("How we tested") || trimmed.includes("Hvordan vi har testet") || trimmed.includes("Kuinka olemme testanneet") || trimmed.includes("Hoe wij de website hebben getest") || trimmed.includes("Erstellung dieser Erkl\xE4rung") || trimmed.includes("\xC9tablissement de cette d\xE9claration") || trimmed.includes("Preparaci\xF3n de la presente declaraci\xF3n")) {
|
|
1422
1423
|
IconNode = /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(IconWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(CheckCircleIcon, {}) });
|
|
1423
1424
|
}
|
|
1425
|
+
const SectionHeader = /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("h2", { style: styles.sectionTitle, children: [
|
|
1426
|
+
IconNode,
|
|
1427
|
+
section.title
|
|
1428
|
+
] }, `h2-${i}`);
|
|
1424
1429
|
const blocks = trimmed.split("\n\n").map((block, bi) => {
|
|
1425
1430
|
const blockTrimmed = block.trim();
|
|
1426
1431
|
if (!blockTrimmed) return null;
|
|
1427
1432
|
if (blockTrimmed.startsWith("## ")) {
|
|
1428
1433
|
const title = blockTrimmed.replace("## ", "");
|
|
1429
|
-
return /* @__PURE__ */ (0, import_jsx_runtime16.
|
|
1430
|
-
IconNode,
|
|
1431
|
-
title
|
|
1432
|
-
] }, `${i}-${bi}`);
|
|
1434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("h2", { style: styles.sectionTitle, children: title }, `${i}-${bi}`);
|
|
1433
1435
|
}
|
|
1434
1436
|
if (blockTrimmed.startsWith("### ")) {
|
|
1435
1437
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("h3", { style: { ...styles.sectionTitle, fontSize: "1.4rem" }, children: blockTrimmed.replace("### ", "") }, `${i}-${bi}`);
|
|
@@ -1451,7 +1453,10 @@ var AccessibilityStatement = ({
|
|
|
1451
1453
|
}
|
|
1452
1454
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { style: styles.paragraph, children: blockTrimmed }, `${i}-${bi}`);
|
|
1453
1455
|
});
|
|
1454
|
-
return /* @__PURE__ */ (0, import_jsx_runtime16.
|
|
1456
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("section", { style: styles.section, children: [
|
|
1457
|
+
SectionHeader,
|
|
1458
|
+
blocks
|
|
1459
|
+
] }, i);
|
|
1455
1460
|
});
|
|
1456
1461
|
};
|
|
1457
1462
|
const statementTools = (0, import_standards.getStatementToolsByCountry)(country);
|
|
@@ -1468,152 +1473,168 @@ var AccessibilityStatement = ({
|
|
|
1468
1473
|
display: "flex",
|
|
1469
1474
|
justifyContent: "space-between",
|
|
1470
1475
|
alignItems: "center",
|
|
1471
|
-
marginBottom: "
|
|
1472
|
-
paddingBottom: "
|
|
1473
|
-
borderBottom: "1px solid #
|
|
1476
|
+
marginBottom: "5rem",
|
|
1477
|
+
paddingBottom: "2.5rem",
|
|
1478
|
+
borderBottom: "1px solid #f8fafc"
|
|
1474
1479
|
},
|
|
1475
1480
|
logoContainer: {
|
|
1476
1481
|
display: "flex",
|
|
1477
1482
|
alignItems: "center",
|
|
1478
1483
|
textDecoration: "none",
|
|
1479
|
-
marginRight: "
|
|
1484
|
+
marginRight: "2rem"
|
|
1480
1485
|
},
|
|
1481
1486
|
divider: {
|
|
1482
|
-
height: "
|
|
1487
|
+
height: "2rem",
|
|
1483
1488
|
width: "1px",
|
|
1484
1489
|
backgroundColor: "#e2e8f0",
|
|
1485
|
-
marginRight: "
|
|
1490
|
+
marginRight: "2rem",
|
|
1486
1491
|
display: "block"
|
|
1487
1492
|
},
|
|
1488
1493
|
websiteContainer: {
|
|
1489
1494
|
display: "flex",
|
|
1490
1495
|
alignItems: "center",
|
|
1491
|
-
gap: "0.
|
|
1496
|
+
gap: "0.625rem",
|
|
1492
1497
|
textDecoration: "none",
|
|
1493
|
-
color: "#
|
|
1494
|
-
// Slate
|
|
1495
|
-
fontWeight:
|
|
1496
|
-
fontSize: "
|
|
1498
|
+
color: "#64748b",
|
|
1499
|
+
// Slate 500
|
|
1500
|
+
fontWeight: 500,
|
|
1501
|
+
fontSize: "0.925rem",
|
|
1497
1502
|
padding: "0.5rem 1rem",
|
|
1498
1503
|
backgroundColor: "#f8fafc",
|
|
1499
|
-
borderRadius: "
|
|
1504
|
+
borderRadius: "100px",
|
|
1500
1505
|
border: "1px solid #f1f5f9"
|
|
1501
1506
|
},
|
|
1502
1507
|
container: {
|
|
1503
|
-
maxWidth: "
|
|
1504
|
-
margin: "
|
|
1505
|
-
padding: "
|
|
1508
|
+
maxWidth: "1000px",
|
|
1509
|
+
margin: "4rem auto",
|
|
1510
|
+
padding: "6rem",
|
|
1506
1511
|
backgroundColor: "#ffffff",
|
|
1507
|
-
borderRadius: "
|
|
1508
|
-
boxShadow: "0
|
|
1512
|
+
borderRadius: "32px",
|
|
1513
|
+
boxShadow: "0 40px 100px -20px rgba(15, 23, 42, 0.08)",
|
|
1509
1514
|
border: "1px solid #f1f5f9",
|
|
1510
1515
|
fontFamily: '"Inter", system-ui, -apple-system, sans-serif',
|
|
1511
1516
|
color: "#1e293b",
|
|
1512
1517
|
// Slate 800
|
|
1513
|
-
lineHeight: 1.
|
|
1514
|
-
fontSize: "1.125rem"
|
|
1518
|
+
lineHeight: 1.8,
|
|
1519
|
+
fontSize: "1.125rem",
|
|
1520
|
+
position: "relative",
|
|
1521
|
+
overflow: "hidden"
|
|
1515
1522
|
},
|
|
1516
1523
|
mainHeading: {
|
|
1517
|
-
fontSize: "
|
|
1518
|
-
fontWeight:
|
|
1519
|
-
color: "#
|
|
1520
|
-
//
|
|
1524
|
+
fontSize: "3.5rem",
|
|
1525
|
+
fontWeight: 800,
|
|
1526
|
+
color: "#0f172a",
|
|
1527
|
+
// Slate 900
|
|
1521
1528
|
marginTop: "0",
|
|
1522
|
-
marginBottom: "
|
|
1523
|
-
letterSpacing: "-0.
|
|
1524
|
-
lineHeight: 1.
|
|
1529
|
+
marginBottom: "1.5rem",
|
|
1530
|
+
letterSpacing: "-0.05em",
|
|
1531
|
+
lineHeight: 1.05
|
|
1525
1532
|
},
|
|
1526
1533
|
metaData: {
|
|
1527
1534
|
color: "#64748b",
|
|
1528
1535
|
// Slate 500
|
|
1529
1536
|
fontSize: "0.925rem",
|
|
1530
|
-
marginBottom: "
|
|
1537
|
+
marginBottom: "5rem",
|
|
1531
1538
|
fontWeight: 500,
|
|
1532
1539
|
display: "flex",
|
|
1533
|
-
gap: "
|
|
1540
|
+
gap: "2rem",
|
|
1541
|
+
padding: "1.25rem 2rem",
|
|
1542
|
+
backgroundColor: "#f8fafc",
|
|
1543
|
+
borderRadius: "1rem",
|
|
1544
|
+
border: "1px solid #f1f5f9",
|
|
1545
|
+
width: "fit-content"
|
|
1534
1546
|
},
|
|
1535
1547
|
section: {
|
|
1536
|
-
marginBottom: "
|
|
1548
|
+
marginBottom: "6rem"
|
|
1537
1549
|
},
|
|
1538
1550
|
sectionTitle: {
|
|
1539
|
-
fontSize: "1.
|
|
1540
|
-
fontWeight:
|
|
1541
|
-
color: "#
|
|
1542
|
-
|
|
1543
|
-
marginBottom: "1.5rem",
|
|
1551
|
+
fontSize: "1.875rem",
|
|
1552
|
+
fontWeight: 700,
|
|
1553
|
+
color: "#0f172a",
|
|
1554
|
+
marginBottom: "2rem",
|
|
1544
1555
|
marginTop: 0,
|
|
1545
|
-
letterSpacing: "-0.
|
|
1556
|
+
letterSpacing: "-0.03em",
|
|
1546
1557
|
display: "flex",
|
|
1547
1558
|
alignItems: "center",
|
|
1548
|
-
gap: "
|
|
1559
|
+
gap: "1rem"
|
|
1549
1560
|
},
|
|
1550
1561
|
card: {
|
|
1551
1562
|
padding: "2.5rem",
|
|
1552
|
-
backgroundColor: "#
|
|
1553
|
-
// Primary 50
|
|
1563
|
+
backgroundColor: "#ffffff",
|
|
1554
1564
|
borderRadius: "1.5rem",
|
|
1555
|
-
border: "1px solid #
|
|
1556
|
-
|
|
1565
|
+
border: "1px solid #f1f5f9",
|
|
1566
|
+
boxShadow: "0 4px 6px -1px rgba(0, 0, 0, 0.02)",
|
|
1567
|
+
marginBottom: "2.5rem",
|
|
1568
|
+
display: "flex",
|
|
1569
|
+
flexDirection: "column",
|
|
1570
|
+
gap: "1rem"
|
|
1557
1571
|
},
|
|
1558
1572
|
paragraph: {
|
|
1559
|
-
marginBottom: "1.
|
|
1560
|
-
maxWidth: "
|
|
1561
|
-
whiteSpace: "pre-line"
|
|
1573
|
+
marginBottom: "1.75rem",
|
|
1574
|
+
maxWidth: "70ch",
|
|
1575
|
+
whiteSpace: "pre-line",
|
|
1576
|
+
color: "#475569"
|
|
1577
|
+
// Slate 600
|
|
1562
1578
|
},
|
|
1563
1579
|
link: {
|
|
1564
|
-
color: "#
|
|
1565
|
-
// Primary
|
|
1580
|
+
color: "#0ea5e9",
|
|
1581
|
+
// Primary 500
|
|
1566
1582
|
textDecoration: "none",
|
|
1567
1583
|
fontWeight: 600,
|
|
1568
|
-
borderBottom: "
|
|
1569
|
-
transition: "
|
|
1584
|
+
borderBottom: "1.5px solid rgba(14, 165, 233, 0.2)",
|
|
1585
|
+
transition: "all 0.2s",
|
|
1570
1586
|
cursor: "pointer"
|
|
1571
1587
|
},
|
|
1572
1588
|
list: {
|
|
1573
1589
|
listStyleType: "none",
|
|
1574
1590
|
paddingLeft: 0,
|
|
1575
|
-
marginBottom: "
|
|
1591
|
+
marginBottom: "2rem",
|
|
1592
|
+
display: "flex",
|
|
1593
|
+
flexDirection: "column",
|
|
1594
|
+
gap: "1rem"
|
|
1576
1595
|
},
|
|
1577
1596
|
listItem: {
|
|
1578
|
-
|
|
1579
|
-
paddingLeft: "1.75rem",
|
|
1597
|
+
padding: "1.25rem 1.75rem 1.25rem 3.5rem",
|
|
1580
1598
|
position: "relative",
|
|
1581
|
-
|
|
1599
|
+
backgroundColor: "#f8fafc",
|
|
1600
|
+
borderRadius: "1rem",
|
|
1601
|
+
border: "1px solid #f1f5f9",
|
|
1602
|
+
fontSize: "1rem",
|
|
1603
|
+
color: "#334155"
|
|
1582
1604
|
},
|
|
1583
1605
|
listBullet: {
|
|
1584
1606
|
position: "absolute",
|
|
1585
|
-
left:
|
|
1586
|
-
top: "
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1607
|
+
left: "1.5rem",
|
|
1608
|
+
top: "50%",
|
|
1609
|
+
transform: "translateY(-50%)",
|
|
1610
|
+
width: "0.75rem",
|
|
1611
|
+
height: "0.75rem",
|
|
1612
|
+
borderRadius: "4px",
|
|
1613
|
+
backgroundColor: "#0ea5e9",
|
|
1614
|
+
opacity: 0.8
|
|
1592
1615
|
},
|
|
1593
1616
|
statusBadge: {
|
|
1594
1617
|
display: "inline-flex",
|
|
1595
1618
|
alignItems: "center",
|
|
1596
|
-
padding: "0.
|
|
1597
|
-
borderRadius: "
|
|
1619
|
+
padding: "0.5rem 1.25rem",
|
|
1620
|
+
borderRadius: "100px",
|
|
1598
1621
|
fontSize: "0.875rem",
|
|
1599
|
-
fontWeight:
|
|
1600
|
-
backgroundColor: complianceLevel === "full" ? "#
|
|
1601
|
-
color: complianceLevel === "full" ? "#166534" : complianceLevel === "partial" ? "#
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
marginLeft: "0.5rem"
|
|
1622
|
+
fontWeight: 600,
|
|
1623
|
+
backgroundColor: complianceLevel === "full" ? "#f0fdf4" : complianceLevel === "partial" ? "#fffbeb" : "#fef2f2",
|
|
1624
|
+
color: complianceLevel === "full" ? "#166534" : complianceLevel === "partial" ? "#92400e" : "#991b1b",
|
|
1625
|
+
border: `1px solid ${complianceLevel === "full" ? "#dcfce7" : complianceLevel === "partial" ? "#fef3c7" : "#fee2e2"}`,
|
|
1626
|
+
letterSpacing: "0.01em"
|
|
1605
1627
|
},
|
|
1606
1628
|
iconWrapper: {
|
|
1607
1629
|
display: "flex",
|
|
1608
1630
|
alignItems: "center",
|
|
1609
1631
|
justifyContent: "center",
|
|
1610
|
-
width: "2.
|
|
1611
|
-
height: "2.
|
|
1612
|
-
borderRadius: "
|
|
1613
|
-
backgroundColor: "#
|
|
1614
|
-
boxShadow: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
1632
|
+
width: "2.75rem",
|
|
1633
|
+
height: "2.75rem",
|
|
1634
|
+
borderRadius: "12px",
|
|
1635
|
+
backgroundColor: "#f8fafc",
|
|
1615
1636
|
border: "1px solid #f1f5f9",
|
|
1616
|
-
color: "#
|
|
1637
|
+
color: "#0ea5e9"
|
|
1617
1638
|
}
|
|
1618
1639
|
};
|
|
1619
1640
|
const Logo = () => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
|
|
@@ -1688,8 +1709,23 @@ var AccessibilityStatement = ({
|
|
|
1688
1709
|
badgeUrl && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("img", { src: badgeUrl, alt: "Accessibility Badge", style: { height: "1.5rem", width: "auto" } }) })
|
|
1689
1710
|
] }),
|
|
1690
1711
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "statement-content", children: [
|
|
1691
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.
|
|
1692
|
-
|
|
1712
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("header", { style: { marginBottom: "4rem" }, children: [
|
|
1713
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("h1", { id: "a11y-statement-title", style: styles.mainHeading, children: renderTemplate(template.title) }),
|
|
1714
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { style: styles.metaData, children: [
|
|
1715
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { children: [
|
|
1716
|
+
lang === "sv" ? "Status:" : "Status:",
|
|
1717
|
+
" ",
|
|
1718
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { style: styles.statusBadge, children: complianceLevel === "full" ? lang === "sv" ? "Fullt f\xF6renlig" : "Fully compliant" : complianceLevel === "partial" ? lang === "sv" ? "Delvis f\xF6renlig" : "Partially compliant" : lang === "sv" ? "Ej f\xF6renlig" : "Non-compliant" })
|
|
1719
|
+
] }),
|
|
1720
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { style: { color: "#e2e8f0" }, children: "|" }),
|
|
1721
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { children: [
|
|
1722
|
+
lang === "sv" ? "Uppdaterad:" : "Updated:",
|
|
1723
|
+
" ",
|
|
1724
|
+
d(lastReviewDate)
|
|
1725
|
+
] })
|
|
1726
|
+
] })
|
|
1727
|
+
] }),
|
|
1728
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { style: { ...styles.paragraph, fontSize: "1.25rem", color: "#1e293b", fontWeight: 500, marginBottom: "4rem" }, children: renderTemplate(template.intro) }),
|
|
1693
1729
|
renderSections(template.sections)
|
|
1694
1730
|
] }),
|
|
1695
1731
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("footer", { style: { marginTop: "3rem", borderTop: "1px solid #e2e8f0", paddingTop: "1.5rem", fontSize: "0.875rem", color: "#64748b" }, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { children: [
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holmdigital/components",
|
|
3
3
|
"author": "Holm Digital AB",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
"jsdom": "^28.0.0",
|
|
150
150
|
"react": "^18.2.0",
|
|
151
151
|
"react-dom": "^18.2.0",
|
|
152
|
-
"storybook": "^10.2.
|
|
152
|
+
"storybook": "^10.2.13",
|
|
153
153
|
"tsup": "^8.3.5",
|
|
154
154
|
"typescript": "^5.7.2"
|
|
155
155
|
},
|