@holmdigital/components 2.2.1 → 2.3.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/README.md +1 -1
- package/dist/AccessibilityStatement/AccessibilityStatement.js +31 -12
- package/dist/AccessibilityStatement/AccessibilityStatement.mjs +1 -1
- package/dist/{chunk-PBLVE6S5.mjs → chunk-TLYSV742.mjs} +31 -12
- package/dist/index.js +31 -12
- package/dist/index.mjs +4 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -129,7 +129,7 @@ function App() {
|
|
|
129
129
|
- **High Contrast**: Default styles meet WCAG AA requirements.
|
|
130
130
|
- **Keyboard Navigation**: Full focus management and visible focus indicators.
|
|
131
131
|
- **Screen Reader Support**: Correct ARIA attributes and labels built-in.
|
|
132
|
-
- **
|
|
132
|
+
- **13-Locale Accessibility Statements**: The `AccessibilityStatement` component supports `en`, `sv`, `no`, `fi`, `da`, `nl`, `de`, `fr`, `es`, `it`, `pt`, `pl`, and `en-au` with complete legal phrasing per locale. Sector-aware (`public`/`private`) for correct enforcement body and law. Australian locale references DDA 1992 and AHRC with voluntary compliance framing.
|
|
133
133
|
|
|
134
134
|
## License
|
|
135
135
|
|
|
@@ -41,7 +41,8 @@ var BADGE_LABELS = {
|
|
|
41
41
|
pl: { full: "W pe\u0142ni zgodna", partial: "Cz\u0119\u015Bciowo zgodna", "non-compliant": "Niezgodna" },
|
|
42
42
|
"en-gb": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
|
|
43
43
|
"en-us": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
|
|
44
|
-
"en-ca": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" }
|
|
44
|
+
"en-ca": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
|
|
45
|
+
"en-au": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" }
|
|
45
46
|
};
|
|
46
47
|
var UPDATED_LABEL = {
|
|
47
48
|
sv: "Uppdaterad:",
|
|
@@ -58,7 +59,8 @@ var UPDATED_LABEL = {
|
|
|
58
59
|
pl: "Zaktualizowano:",
|
|
59
60
|
"en-gb": "Updated:",
|
|
60
61
|
"en-us": "Updated:",
|
|
61
|
-
"en-ca": "Updated:"
|
|
62
|
+
"en-ca": "Updated:",
|
|
63
|
+
"en-au": "Updated:"
|
|
62
64
|
};
|
|
63
65
|
var FOOTER_TEXT = {
|
|
64
66
|
sv: "Genererad med hj\xE4lp av",
|
|
@@ -75,7 +77,8 @@ var FOOTER_TEXT = {
|
|
|
75
77
|
pl: "Wygenerowano za pomoc\u0105",
|
|
76
78
|
"en-gb": "Generated using",
|
|
77
79
|
"en-us": "Generated using",
|
|
78
|
-
"en-ca": "Generated using"
|
|
80
|
+
"en-ca": "Generated using",
|
|
81
|
+
"en-au": "Generated using"
|
|
79
82
|
};
|
|
80
83
|
|
|
81
84
|
// src/AccessibilityStatement/AccessibilityStatement.tsx
|
|
@@ -96,14 +99,14 @@ var TEMPLATES = {
|
|
|
96
99
|
},
|
|
97
100
|
en: {
|
|
98
101
|
title: "Accessibility of {<website>}",
|
|
99
|
-
intro: "This website is run by {<organisation>}. We want as many people as possible to be able to use it, and this document describes how {<website>} complies with
|
|
102
|
+
intro: "This website is run by {<organisation>}. We want as many people as possible to be able to use it, and this document describes how {<website>} complies with {<national_law>}, any known accessibility issues, and how you can report problems so that we can fix them.",
|
|
100
103
|
sections: [
|
|
101
104
|
{ id: "how-accessible", title: "How accessible is the website?", content: "{There are no known accessibility issues with this website./We know some parts of this website aren\u2019t fully accessible. See the section on non-accessible content below for more information./We know some parts of this website aren\u2019t fully accessible. See the section on non-accessible content below for more information.}" },
|
|
102
|
-
{ id: "what-to-do", title: "What to do if you can\u2019t access parts of this website?", content: "If you need content from this website that is not accessible for you, but is not within the scope of
|
|
103
|
-
{ id: "reporting", title: "Reporting accessibility problems with this website", content: "We\u2019re always looking to improve the accessibility of this website. If you find any problems that aren\u2019t listed on this page or if we\u2019re not meeting the requirements of
|
|
104
|
-
{ id: "enforcement", title: "Enforcement procedure", content: "The {<enforcement_body>} is responsible for enforcing
|
|
105
|
-
{ id: "technical", title: "Technical information about this website\u2019s accessibility", content: "{This website is fully compliant with
|
|
106
|
-
{ id: "non-accessible", title: "Non-accessible content", content: "The content described below is, in one way or another, not fully accessible.\n\n[\n### Non-compliance with
|
|
105
|
+
{ id: "what-to-do", title: "What to do if you can\u2019t access parts of this website?", content: "If you need content from this website that is not accessible for you, but is not within the scope of {<national_law>} as described below, please contact us.\n\n[Our normal response time is {<response time>}.]\n\n[You can also contact us in the following ways:\n\n* email {<email address>}\n* call {<telephone number>}]" },
|
|
106
|
+
{ id: "reporting", title: "Reporting accessibility problems with this website", content: "We\u2019re always looking to improve the accessibility of this website. If you find any problems that aren\u2019t listed on this page or if we\u2019re not meeting the requirements of {<national_law>}, contact us and let us know about the problem." },
|
|
107
|
+
{ id: "enforcement", title: "Enforcement procedure", content: "The {<enforcement_body>} is responsible for enforcing {<national_law>}. If you experience accessibility issues on our website, you can submit a complaint to {<enforcement_body>}.\n\nYou can also submit a complaint to {<enforcement_body>} if you think that our assessment of what constitutes a disproportionate burden should be reviewed, if you think that our accessibility statement is inadequate, or if you think that your request for excluded content in an accessible format has not been handled correctly." },
|
|
108
|
+
{ id: "technical", title: "Technical information about this website\u2019s accessibility", content: "{This website is fully compliant with {<national_law>}./This website is partially compliant with {<national_law>}, due to the non-compliances listed below./This website is not compliant with {<national_law>}. The non-accessible sections are listed below.}" },
|
|
109
|
+
{ id: "non-accessible", title: "Non-accessible content", content: "The content described below is, in one way or another, not fully accessible.\n\n[\n### Non-compliance with {<national_law>}\n\n{<issues>}\n]" },
|
|
107
110
|
{ id: "testing", title: "How we tested this website", content: "{We have performed a self-assessment (internal testing) of {<website>}./{<third party>} has tested {<website>}./We have estimated the accessibility without testing.}\n\nThe last assessment was made on {<assessment date>}.\n\n[Assessment method: {<method>}]\n\nThe website was published on {<publish date>}.\n\nThe statement was last updated on {<update date>}." }
|
|
108
111
|
]
|
|
109
112
|
},
|
|
@@ -234,6 +237,19 @@ var TEMPLATES = {
|
|
|
234
237
|
{ id: "testing", title: "How we tested this website", content: "{We have performed a self-assessment (internal testing) of {<website>}./{<third party>} has tested {<website>}./We have estimated the accessibility without testing.}\n\nThe last assessment was made on {<assessment date>}.\n\n[Assessment method: {<method>}]\n\nThe website was published on {<publish date>}.\n\nThe statement was last updated on {<update date>}." }
|
|
235
238
|
]
|
|
236
239
|
},
|
|
240
|
+
"en-au": {
|
|
241
|
+
title: "Accessibility of {<website>}",
|
|
242
|
+
intro: "This statement describes how {<organisation>} addresses accessibility under the {<national_law>}. {<organisation>} is committed to ensuring its website is accessible to people with disability in accordance with WCAG 2.2 Level AA, as recommended by the {<enforcement_body>}.",
|
|
243
|
+
sections: [
|
|
244
|
+
{ id: "how-accessible", title: "How accessible is this website?", content: "{There are no known accessibility issues with this website./We know some parts of this website are not fully accessible. See the section on known accessibility barriers below for more information./This website has significant accessibility barriers. See the section on known accessibility barriers below for more information.}" },
|
|
245
|
+
{ id: "what-to-do", title: "What to do if you experience accessibility issues", content: "If you experience difficulty accessing any part of this website, please contact us.\n\n[Our normal response time is {<response time>}.]\n\n[You can also contact us:\n\n* by email: {<email address>}\n* by phone: {<telephone number>}]" },
|
|
246
|
+
{ id: "reporting", title: "Reporting accessibility problems", content: "We are always working to improve the accessibility of this website. If you find a problem that is not listed on this page, or if you believe we are not meeting the requirements described here, please contact us.\n\nIf you are not satisfied with our response, you may lodge a complaint with the {<enforcement_body>} under the {<national_law>}. The AHRC complaint form is available at {<ahrc_url>}." },
|
|
247
|
+
{ id: "non-accessible", title: "Known accessibility barriers", content: "[\n{<issues>}\n]" },
|
|
248
|
+
{ id: "wcag-conformance", title: "Technical information about accessibility", content: "{This website is fully compliant with WCAG 2.2 Level AA./This website is partially compliant with WCAG 2.2 Level AA, due to the barriers listed above./This website is not compliant with WCAG 2.2 Level AA. The known barriers are listed above.}\n\nWCAG 2.2 Level AA is the standard recommended by the {<enforcement_body>} under the {<national_law>}." },
|
|
249
|
+
{ id: "dta-policy", title: "Australian Government digital policy", content: "Federal government agencies are subject to the Digital Transformation Agency (DTA) Digital Experience Policy, which has included the Digital Inclusion Standard since 1 January 2025 for new services and 1 July 2025 for existing services. The Digital Inclusion Standard requires Commonwealth agencies to meet WCAG 2.2 Level AA.\n\nThis statement was prepared in accordance with best practice guidance from the DTA and the Australian Human Rights Commission (AHRC)." },
|
|
250
|
+
{ id: "testing", title: "How we tested this website", content: "{We have performed a self-assessment (internal testing) of {<website>}./{<third party>} has tested {<website>}./We have estimated the accessibility without testing.}\n\nThe last assessment was made on {<assessment date>}.\n\n[Assessment method: {<method>}]\n\nThe statement was last updated on {<update date>}." }
|
|
251
|
+
]
|
|
252
|
+
},
|
|
237
253
|
it: {
|
|
238
254
|
title: "Dichiarazione di accessibilit\xE0 per {<webbplats>}",
|
|
239
255
|
intro: "{<organisation>} si impegna a rendere accessibile il proprio sito web ai sensi della {<national_law>}. La presente dichiarazione di accessibilit\xE0 si applica a {<webbplats>}.",
|
|
@@ -287,7 +303,8 @@ var formatDiggDate = (date, locale) => {
|
|
|
287
303
|
pl: "pl-PL",
|
|
288
304
|
"en-gb": "en-GB",
|
|
289
305
|
"en-us": "en-US",
|
|
290
|
-
"en-ca": "en-CA"
|
|
306
|
+
"en-ca": "en-CA",
|
|
307
|
+
"en-au": "en-AU"
|
|
291
308
|
};
|
|
292
309
|
return date.toLocaleDateString(localeMap[locale] || "en-US", {
|
|
293
310
|
year: "numeric",
|
|
@@ -332,7 +349,8 @@ var AccessibilityStatement = ({
|
|
|
332
349
|
pl: "pl",
|
|
333
350
|
"en-gb": "en-gb",
|
|
334
351
|
"en-us": "en-us",
|
|
335
|
-
"en-ca": "en-ca"
|
|
352
|
+
"en-ca": "en-ca",
|
|
353
|
+
"en-au": "en-au"
|
|
336
354
|
};
|
|
337
355
|
const lang = supportedLocales[locale];
|
|
338
356
|
if (!lang) {
|
|
@@ -366,7 +384,7 @@ var AccessibilityStatement = ({
|
|
|
366
384
|
"{<third party>}": generatorTool?.name || "HolmDigital Engine",
|
|
367
385
|
"{<enforcement_body>}": enforcementBody,
|
|
368
386
|
"{<national_law>}": (() => {
|
|
369
|
-
const law = (0, import_standards.getNationalLawByFramework)(sector === "private" ? "EAA" : "WAD", country);
|
|
387
|
+
const law = (0, import_standards.getNationalLawByFramework)(sector === "private" ? "EAA" : "WAD", country) ?? (0, import_standards.getNationalLawByFramework)("DDA", country);
|
|
370
388
|
return law ? `${law.fullName} (${law.law})` : "";
|
|
371
389
|
})()
|
|
372
390
|
};
|
|
@@ -457,6 +475,7 @@ var AccessibilityStatement = ({
|
|
|
457
475
|
replacements["{<metoda_pl>}"] = evaluationMethod || "Automated Scan";
|
|
458
476
|
replacements["{<podmiot zewn\u0119trzny>}"] = generatorTool?.name || "HolmDigital Engine";
|
|
459
477
|
replacements["{<braki>}"] = issuesContent;
|
|
478
|
+
replacements["{<ahrc_url>}"] = "https://humanrights.gov.au/complaints";
|
|
460
479
|
const renderTemplate = (tmpl) => {
|
|
461
480
|
let text = tmpl;
|
|
462
481
|
text = text.replace(/\[([\s\S]*?)\]/g, (_match, content) => {
|
|
@@ -21,7 +21,8 @@ var BADGE_LABELS = {
|
|
|
21
21
|
pl: { full: "W pe\u0142ni zgodna", partial: "Cz\u0119\u015Bciowo zgodna", "non-compliant": "Niezgodna" },
|
|
22
22
|
"en-gb": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
|
|
23
23
|
"en-us": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
|
|
24
|
-
"en-ca": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" }
|
|
24
|
+
"en-ca": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
|
|
25
|
+
"en-au": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" }
|
|
25
26
|
};
|
|
26
27
|
var UPDATED_LABEL = {
|
|
27
28
|
sv: "Uppdaterad:",
|
|
@@ -38,7 +39,8 @@ var UPDATED_LABEL = {
|
|
|
38
39
|
pl: "Zaktualizowano:",
|
|
39
40
|
"en-gb": "Updated:",
|
|
40
41
|
"en-us": "Updated:",
|
|
41
|
-
"en-ca": "Updated:"
|
|
42
|
+
"en-ca": "Updated:",
|
|
43
|
+
"en-au": "Updated:"
|
|
42
44
|
};
|
|
43
45
|
var FOOTER_TEXT = {
|
|
44
46
|
sv: "Genererad med hj\xE4lp av",
|
|
@@ -55,7 +57,8 @@ var FOOTER_TEXT = {
|
|
|
55
57
|
pl: "Wygenerowano za pomoc\u0105",
|
|
56
58
|
"en-gb": "Generated using",
|
|
57
59
|
"en-us": "Generated using",
|
|
58
|
-
"en-ca": "Generated using"
|
|
60
|
+
"en-ca": "Generated using",
|
|
61
|
+
"en-au": "Generated using"
|
|
59
62
|
};
|
|
60
63
|
|
|
61
64
|
// src/AccessibilityStatement/AccessibilityStatement.tsx
|
|
@@ -76,14 +79,14 @@ var TEMPLATES = {
|
|
|
76
79
|
},
|
|
77
80
|
en: {
|
|
78
81
|
title: "Accessibility of {<website>}",
|
|
79
|
-
intro: "This website is run by {<organisation>}. We want as many people as possible to be able to use it, and this document describes how {<website>} complies with
|
|
82
|
+
intro: "This website is run by {<organisation>}. We want as many people as possible to be able to use it, and this document describes how {<website>} complies with {<national_law>}, any known accessibility issues, and how you can report problems so that we can fix them.",
|
|
80
83
|
sections: [
|
|
81
84
|
{ id: "how-accessible", title: "How accessible is the website?", content: "{There are no known accessibility issues with this website./We know some parts of this website aren\u2019t fully accessible. See the section on non-accessible content below for more information./We know some parts of this website aren\u2019t fully accessible. See the section on non-accessible content below for more information.}" },
|
|
82
|
-
{ id: "what-to-do", title: "What to do if you can\u2019t access parts of this website?", content: "If you need content from this website that is not accessible for you, but is not within the scope of
|
|
83
|
-
{ id: "reporting", title: "Reporting accessibility problems with this website", content: "We\u2019re always looking to improve the accessibility of this website. If you find any problems that aren\u2019t listed on this page or if we\u2019re not meeting the requirements of
|
|
84
|
-
{ id: "enforcement", title: "Enforcement procedure", content: "The {<enforcement_body>} is responsible for enforcing
|
|
85
|
-
{ id: "technical", title: "Technical information about this website\u2019s accessibility", content: "{This website is fully compliant with
|
|
86
|
-
{ id: "non-accessible", title: "Non-accessible content", content: "The content described below is, in one way or another, not fully accessible.\n\n[\n### Non-compliance with
|
|
85
|
+
{ id: "what-to-do", title: "What to do if you can\u2019t access parts of this website?", content: "If you need content from this website that is not accessible for you, but is not within the scope of {<national_law>} as described below, please contact us.\n\n[Our normal response time is {<response time>}.]\n\n[You can also contact us in the following ways:\n\n* email {<email address>}\n* call {<telephone number>}]" },
|
|
86
|
+
{ id: "reporting", title: "Reporting accessibility problems with this website", content: "We\u2019re always looking to improve the accessibility of this website. If you find any problems that aren\u2019t listed on this page or if we\u2019re not meeting the requirements of {<national_law>}, contact us and let us know about the problem." },
|
|
87
|
+
{ id: "enforcement", title: "Enforcement procedure", content: "The {<enforcement_body>} is responsible for enforcing {<national_law>}. If you experience accessibility issues on our website, you can submit a complaint to {<enforcement_body>}.\n\nYou can also submit a complaint to {<enforcement_body>} if you think that our assessment of what constitutes a disproportionate burden should be reviewed, if you think that our accessibility statement is inadequate, or if you think that your request for excluded content in an accessible format has not been handled correctly." },
|
|
88
|
+
{ id: "technical", title: "Technical information about this website\u2019s accessibility", content: "{This website is fully compliant with {<national_law>}./This website is partially compliant with {<national_law>}, due to the non-compliances listed below./This website is not compliant with {<national_law>}. The non-accessible sections are listed below.}" },
|
|
89
|
+
{ id: "non-accessible", title: "Non-accessible content", content: "The content described below is, in one way or another, not fully accessible.\n\n[\n### Non-compliance with {<national_law>}\n\n{<issues>}\n]" },
|
|
87
90
|
{ id: "testing", title: "How we tested this website", content: "{We have performed a self-assessment (internal testing) of {<website>}./{<third party>} has tested {<website>}./We have estimated the accessibility without testing.}\n\nThe last assessment was made on {<assessment date>}.\n\n[Assessment method: {<method>}]\n\nThe website was published on {<publish date>}.\n\nThe statement was last updated on {<update date>}." }
|
|
88
91
|
]
|
|
89
92
|
},
|
|
@@ -214,6 +217,19 @@ var TEMPLATES = {
|
|
|
214
217
|
{ id: "testing", title: "How we tested this website", content: "{We have performed a self-assessment (internal testing) of {<website>}./{<third party>} has tested {<website>}./We have estimated the accessibility without testing.}\n\nThe last assessment was made on {<assessment date>}.\n\n[Assessment method: {<method>}]\n\nThe website was published on {<publish date>}.\n\nThe statement was last updated on {<update date>}." }
|
|
215
218
|
]
|
|
216
219
|
},
|
|
220
|
+
"en-au": {
|
|
221
|
+
title: "Accessibility of {<website>}",
|
|
222
|
+
intro: "This statement describes how {<organisation>} addresses accessibility under the {<national_law>}. {<organisation>} is committed to ensuring its website is accessible to people with disability in accordance with WCAG 2.2 Level AA, as recommended by the {<enforcement_body>}.",
|
|
223
|
+
sections: [
|
|
224
|
+
{ id: "how-accessible", title: "How accessible is this website?", content: "{There are no known accessibility issues with this website./We know some parts of this website are not fully accessible. See the section on known accessibility barriers below for more information./This website has significant accessibility barriers. See the section on known accessibility barriers below for more information.}" },
|
|
225
|
+
{ id: "what-to-do", title: "What to do if you experience accessibility issues", content: "If you experience difficulty accessing any part of this website, please contact us.\n\n[Our normal response time is {<response time>}.]\n\n[You can also contact us:\n\n* by email: {<email address>}\n* by phone: {<telephone number>}]" },
|
|
226
|
+
{ id: "reporting", title: "Reporting accessibility problems", content: "We are always working to improve the accessibility of this website. If you find a problem that is not listed on this page, or if you believe we are not meeting the requirements described here, please contact us.\n\nIf you are not satisfied with our response, you may lodge a complaint with the {<enforcement_body>} under the {<national_law>}. The AHRC complaint form is available at {<ahrc_url>}." },
|
|
227
|
+
{ id: "non-accessible", title: "Known accessibility barriers", content: "[\n{<issues>}\n]" },
|
|
228
|
+
{ id: "wcag-conformance", title: "Technical information about accessibility", content: "{This website is fully compliant with WCAG 2.2 Level AA./This website is partially compliant with WCAG 2.2 Level AA, due to the barriers listed above./This website is not compliant with WCAG 2.2 Level AA. The known barriers are listed above.}\n\nWCAG 2.2 Level AA is the standard recommended by the {<enforcement_body>} under the {<national_law>}." },
|
|
229
|
+
{ id: "dta-policy", title: "Australian Government digital policy", content: "Federal government agencies are subject to the Digital Transformation Agency (DTA) Digital Experience Policy, which has included the Digital Inclusion Standard since 1 January 2025 for new services and 1 July 2025 for existing services. The Digital Inclusion Standard requires Commonwealth agencies to meet WCAG 2.2 Level AA.\n\nThis statement was prepared in accordance with best practice guidance from the DTA and the Australian Human Rights Commission (AHRC)." },
|
|
230
|
+
{ id: "testing", title: "How we tested this website", content: "{We have performed a self-assessment (internal testing) of {<website>}./{<third party>} has tested {<website>}./We have estimated the accessibility without testing.}\n\nThe last assessment was made on {<assessment date>}.\n\n[Assessment method: {<method>}]\n\nThe statement was last updated on {<update date>}." }
|
|
231
|
+
]
|
|
232
|
+
},
|
|
217
233
|
it: {
|
|
218
234
|
title: "Dichiarazione di accessibilit\xE0 per {<webbplats>}",
|
|
219
235
|
intro: "{<organisation>} si impegna a rendere accessibile il proprio sito web ai sensi della {<national_law>}. La presente dichiarazione di accessibilit\xE0 si applica a {<webbplats>}.",
|
|
@@ -267,7 +283,8 @@ var formatDiggDate = (date, locale) => {
|
|
|
267
283
|
pl: "pl-PL",
|
|
268
284
|
"en-gb": "en-GB",
|
|
269
285
|
"en-us": "en-US",
|
|
270
|
-
"en-ca": "en-CA"
|
|
286
|
+
"en-ca": "en-CA",
|
|
287
|
+
"en-au": "en-AU"
|
|
271
288
|
};
|
|
272
289
|
return date.toLocaleDateString(localeMap[locale] || "en-US", {
|
|
273
290
|
year: "numeric",
|
|
@@ -312,7 +329,8 @@ var AccessibilityStatement = ({
|
|
|
312
329
|
pl: "pl",
|
|
313
330
|
"en-gb": "en-gb",
|
|
314
331
|
"en-us": "en-us",
|
|
315
|
-
"en-ca": "en-ca"
|
|
332
|
+
"en-ca": "en-ca",
|
|
333
|
+
"en-au": "en-au"
|
|
316
334
|
};
|
|
317
335
|
const lang = supportedLocales[locale];
|
|
318
336
|
if (!lang) {
|
|
@@ -346,7 +364,7 @@ var AccessibilityStatement = ({
|
|
|
346
364
|
"{<third party>}": generatorTool?.name || "HolmDigital Engine",
|
|
347
365
|
"{<enforcement_body>}": enforcementBody,
|
|
348
366
|
"{<national_law>}": (() => {
|
|
349
|
-
const law = getNationalLawByFramework(sector === "private" ? "EAA" : "WAD", country);
|
|
367
|
+
const law = getNationalLawByFramework(sector === "private" ? "EAA" : "WAD", country) ?? getNationalLawByFramework("DDA", country);
|
|
350
368
|
return law ? `${law.fullName} (${law.law})` : "";
|
|
351
369
|
})()
|
|
352
370
|
};
|
|
@@ -437,6 +455,7 @@ var AccessibilityStatement = ({
|
|
|
437
455
|
replacements["{<metoda_pl>}"] = evaluationMethod || "Automated Scan";
|
|
438
456
|
replacements["{<podmiot zewn\u0119trzny>}"] = generatorTool?.name || "HolmDigital Engine";
|
|
439
457
|
replacements["{<braki>}"] = issuesContent;
|
|
458
|
+
replacements["{<ahrc_url>}"] = "https://humanrights.gov.au/complaints";
|
|
440
459
|
const renderTemplate = (tmpl) => {
|
|
441
460
|
let text = tmpl;
|
|
442
461
|
text = text.replace(/\[([\s\S]*?)\]/g, (_match, content) => {
|
package/dist/index.js
CHANGED
|
@@ -1269,7 +1269,8 @@ var BADGE_LABELS = {
|
|
|
1269
1269
|
pl: { full: "W pe\u0142ni zgodna", partial: "Cz\u0119\u015Bciowo zgodna", "non-compliant": "Niezgodna" },
|
|
1270
1270
|
"en-gb": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
|
|
1271
1271
|
"en-us": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
|
|
1272
|
-
"en-ca": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" }
|
|
1272
|
+
"en-ca": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
|
|
1273
|
+
"en-au": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" }
|
|
1273
1274
|
};
|
|
1274
1275
|
var UPDATED_LABEL = {
|
|
1275
1276
|
sv: "Uppdaterad:",
|
|
@@ -1286,7 +1287,8 @@ var UPDATED_LABEL = {
|
|
|
1286
1287
|
pl: "Zaktualizowano:",
|
|
1287
1288
|
"en-gb": "Updated:",
|
|
1288
1289
|
"en-us": "Updated:",
|
|
1289
|
-
"en-ca": "Updated:"
|
|
1290
|
+
"en-ca": "Updated:",
|
|
1291
|
+
"en-au": "Updated:"
|
|
1290
1292
|
};
|
|
1291
1293
|
var FOOTER_TEXT = {
|
|
1292
1294
|
sv: "Genererad med hj\xE4lp av",
|
|
@@ -1303,7 +1305,8 @@ var FOOTER_TEXT = {
|
|
|
1303
1305
|
pl: "Wygenerowano za pomoc\u0105",
|
|
1304
1306
|
"en-gb": "Generated using",
|
|
1305
1307
|
"en-us": "Generated using",
|
|
1306
|
-
"en-ca": "Generated using"
|
|
1308
|
+
"en-ca": "Generated using",
|
|
1309
|
+
"en-au": "Generated using"
|
|
1307
1310
|
};
|
|
1308
1311
|
|
|
1309
1312
|
// src/AccessibilityStatement/AccessibilityStatement.tsx
|
|
@@ -1324,14 +1327,14 @@ var TEMPLATES = {
|
|
|
1324
1327
|
},
|
|
1325
1328
|
en: {
|
|
1326
1329
|
title: "Accessibility of {<website>}",
|
|
1327
|
-
intro: "This website is run by {<organisation>}. We want as many people as possible to be able to use it, and this document describes how {<website>} complies with
|
|
1330
|
+
intro: "This website is run by {<organisation>}. We want as many people as possible to be able to use it, and this document describes how {<website>} complies with {<national_law>}, any known accessibility issues, and how you can report problems so that we can fix them.",
|
|
1328
1331
|
sections: [
|
|
1329
1332
|
{ id: "how-accessible", title: "How accessible is the website?", content: "{There are no known accessibility issues with this website./We know some parts of this website aren\u2019t fully accessible. See the section on non-accessible content below for more information./We know some parts of this website aren\u2019t fully accessible. See the section on non-accessible content below for more information.}" },
|
|
1330
|
-
{ id: "what-to-do", title: "What to do if you can\u2019t access parts of this website?", content: "If you need content from this website that is not accessible for you, but is not within the scope of
|
|
1331
|
-
{ id: "reporting", title: "Reporting accessibility problems with this website", content: "We\u2019re always looking to improve the accessibility of this website. If you find any problems that aren\u2019t listed on this page or if we\u2019re not meeting the requirements of
|
|
1332
|
-
{ id: "enforcement", title: "Enforcement procedure", content: "The {<enforcement_body>} is responsible for enforcing
|
|
1333
|
-
{ id: "technical", title: "Technical information about this website\u2019s accessibility", content: "{This website is fully compliant with
|
|
1334
|
-
{ id: "non-accessible", title: "Non-accessible content", content: "The content described below is, in one way or another, not fully accessible.\n\n[\n### Non-compliance with
|
|
1333
|
+
{ id: "what-to-do", title: "What to do if you can\u2019t access parts of this website?", content: "If you need content from this website that is not accessible for you, but is not within the scope of {<national_law>} as described below, please contact us.\n\n[Our normal response time is {<response time>}.]\n\n[You can also contact us in the following ways:\n\n* email {<email address>}\n* call {<telephone number>}]" },
|
|
1334
|
+
{ id: "reporting", title: "Reporting accessibility problems with this website", content: "We\u2019re always looking to improve the accessibility of this website. If you find any problems that aren\u2019t listed on this page or if we\u2019re not meeting the requirements of {<national_law>}, contact us and let us know about the problem." },
|
|
1335
|
+
{ id: "enforcement", title: "Enforcement procedure", content: "The {<enforcement_body>} is responsible for enforcing {<national_law>}. If you experience accessibility issues on our website, you can submit a complaint to {<enforcement_body>}.\n\nYou can also submit a complaint to {<enforcement_body>} if you think that our assessment of what constitutes a disproportionate burden should be reviewed, if you think that our accessibility statement is inadequate, or if you think that your request for excluded content in an accessible format has not been handled correctly." },
|
|
1336
|
+
{ id: "technical", title: "Technical information about this website\u2019s accessibility", content: "{This website is fully compliant with {<national_law>}./This website is partially compliant with {<national_law>}, due to the non-compliances listed below./This website is not compliant with {<national_law>}. The non-accessible sections are listed below.}" },
|
|
1337
|
+
{ id: "non-accessible", title: "Non-accessible content", content: "The content described below is, in one way or another, not fully accessible.\n\n[\n### Non-compliance with {<national_law>}\n\n{<issues>}\n]" },
|
|
1335
1338
|
{ id: "testing", title: "How we tested this website", content: "{We have performed a self-assessment (internal testing) of {<website>}./{<third party>} has tested {<website>}./We have estimated the accessibility without testing.}\n\nThe last assessment was made on {<assessment date>}.\n\n[Assessment method: {<method>}]\n\nThe website was published on {<publish date>}.\n\nThe statement was last updated on {<update date>}." }
|
|
1336
1339
|
]
|
|
1337
1340
|
},
|
|
@@ -1462,6 +1465,19 @@ var TEMPLATES = {
|
|
|
1462
1465
|
{ id: "testing", title: "How we tested this website", content: "{We have performed a self-assessment (internal testing) of {<website>}./{<third party>} has tested {<website>}./We have estimated the accessibility without testing.}\n\nThe last assessment was made on {<assessment date>}.\n\n[Assessment method: {<method>}]\n\nThe website was published on {<publish date>}.\n\nThe statement was last updated on {<update date>}." }
|
|
1463
1466
|
]
|
|
1464
1467
|
},
|
|
1468
|
+
"en-au": {
|
|
1469
|
+
title: "Accessibility of {<website>}",
|
|
1470
|
+
intro: "This statement describes how {<organisation>} addresses accessibility under the {<national_law>}. {<organisation>} is committed to ensuring its website is accessible to people with disability in accordance with WCAG 2.2 Level AA, as recommended by the {<enforcement_body>}.",
|
|
1471
|
+
sections: [
|
|
1472
|
+
{ id: "how-accessible", title: "How accessible is this website?", content: "{There are no known accessibility issues with this website./We know some parts of this website are not fully accessible. See the section on known accessibility barriers below for more information./This website has significant accessibility barriers. See the section on known accessibility barriers below for more information.}" },
|
|
1473
|
+
{ id: "what-to-do", title: "What to do if you experience accessibility issues", content: "If you experience difficulty accessing any part of this website, please contact us.\n\n[Our normal response time is {<response time>}.]\n\n[You can also contact us:\n\n* by email: {<email address>}\n* by phone: {<telephone number>}]" },
|
|
1474
|
+
{ id: "reporting", title: "Reporting accessibility problems", content: "We are always working to improve the accessibility of this website. If you find a problem that is not listed on this page, or if you believe we are not meeting the requirements described here, please contact us.\n\nIf you are not satisfied with our response, you may lodge a complaint with the {<enforcement_body>} under the {<national_law>}. The AHRC complaint form is available at {<ahrc_url>}." },
|
|
1475
|
+
{ id: "non-accessible", title: "Known accessibility barriers", content: "[\n{<issues>}\n]" },
|
|
1476
|
+
{ id: "wcag-conformance", title: "Technical information about accessibility", content: "{This website is fully compliant with WCAG 2.2 Level AA./This website is partially compliant with WCAG 2.2 Level AA, due to the barriers listed above./This website is not compliant with WCAG 2.2 Level AA. The known barriers are listed above.}\n\nWCAG 2.2 Level AA is the standard recommended by the {<enforcement_body>} under the {<national_law>}." },
|
|
1477
|
+
{ id: "dta-policy", title: "Australian Government digital policy", content: "Federal government agencies are subject to the Digital Transformation Agency (DTA) Digital Experience Policy, which has included the Digital Inclusion Standard since 1 January 2025 for new services and 1 July 2025 for existing services. The Digital Inclusion Standard requires Commonwealth agencies to meet WCAG 2.2 Level AA.\n\nThis statement was prepared in accordance with best practice guidance from the DTA and the Australian Human Rights Commission (AHRC)." },
|
|
1478
|
+
{ id: "testing", title: "How we tested this website", content: "{We have performed a self-assessment (internal testing) of {<website>}./{<third party>} has tested {<website>}./We have estimated the accessibility without testing.}\n\nThe last assessment was made on {<assessment date>}.\n\n[Assessment method: {<method>}]\n\nThe statement was last updated on {<update date>}." }
|
|
1479
|
+
]
|
|
1480
|
+
},
|
|
1465
1481
|
it: {
|
|
1466
1482
|
title: "Dichiarazione di accessibilit\xE0 per {<webbplats>}",
|
|
1467
1483
|
intro: "{<organisation>} si impegna a rendere accessibile il proprio sito web ai sensi della {<national_law>}. La presente dichiarazione di accessibilit\xE0 si applica a {<webbplats>}.",
|
|
@@ -1515,7 +1531,8 @@ var formatDiggDate = (date, locale) => {
|
|
|
1515
1531
|
pl: "pl-PL",
|
|
1516
1532
|
"en-gb": "en-GB",
|
|
1517
1533
|
"en-us": "en-US",
|
|
1518
|
-
"en-ca": "en-CA"
|
|
1534
|
+
"en-ca": "en-CA",
|
|
1535
|
+
"en-au": "en-AU"
|
|
1519
1536
|
};
|
|
1520
1537
|
return date.toLocaleDateString(localeMap[locale] || "en-US", {
|
|
1521
1538
|
year: "numeric",
|
|
@@ -1560,7 +1577,8 @@ var AccessibilityStatement = ({
|
|
|
1560
1577
|
pl: "pl",
|
|
1561
1578
|
"en-gb": "en-gb",
|
|
1562
1579
|
"en-us": "en-us",
|
|
1563
|
-
"en-ca": "en-ca"
|
|
1580
|
+
"en-ca": "en-ca",
|
|
1581
|
+
"en-au": "en-au"
|
|
1564
1582
|
};
|
|
1565
1583
|
const lang = supportedLocales[locale];
|
|
1566
1584
|
if (!lang) {
|
|
@@ -1594,7 +1612,7 @@ var AccessibilityStatement = ({
|
|
|
1594
1612
|
"{<third party>}": generatorTool?.name || "HolmDigital Engine",
|
|
1595
1613
|
"{<enforcement_body>}": enforcementBody,
|
|
1596
1614
|
"{<national_law>}": (() => {
|
|
1597
|
-
const law = (0, import_standards.getNationalLawByFramework)(sector === "private" ? "EAA" : "WAD", country);
|
|
1615
|
+
const law = (0, import_standards.getNationalLawByFramework)(sector === "private" ? "EAA" : "WAD", country) ?? (0, import_standards.getNationalLawByFramework)("DDA", country);
|
|
1598
1616
|
return law ? `${law.fullName} (${law.law})` : "";
|
|
1599
1617
|
})()
|
|
1600
1618
|
};
|
|
@@ -1685,6 +1703,7 @@ var AccessibilityStatement = ({
|
|
|
1685
1703
|
replacements["{<metoda_pl>}"] = evaluationMethod || "Automated Scan";
|
|
1686
1704
|
replacements["{<podmiot zewn\u0119trzny>}"] = generatorTool?.name || "HolmDigital Engine";
|
|
1687
1705
|
replacements["{<braki>}"] = issuesContent;
|
|
1706
|
+
replacements["{<ahrc_url>}"] = "https://humanrights.gov.au/complaints";
|
|
1688
1707
|
const renderTemplate = (tmpl) => {
|
|
1689
1708
|
let text = tmpl;
|
|
1690
1709
|
text = text.replace(/\[([\s\S]*?)\]/g, (_match, content) => {
|
package/dist/index.mjs
CHANGED
|
@@ -55,16 +55,16 @@ import {
|
|
|
55
55
|
} from "./chunk-GK4BYT56.mjs";
|
|
56
56
|
import {
|
|
57
57
|
AccessibilityStatement
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-TLYSV742.mjs";
|
|
59
59
|
import {
|
|
60
60
|
Button
|
|
61
61
|
} from "./chunk-NL6XCRXQ.mjs";
|
|
62
|
-
import {
|
|
63
|
-
Card
|
|
64
|
-
} from "./chunk-NECEXNCF.mjs";
|
|
65
62
|
import {
|
|
66
63
|
Checkbox
|
|
67
64
|
} from "./chunk-NOE5QKC2.mjs";
|
|
65
|
+
import {
|
|
66
|
+
Card
|
|
67
|
+
} from "./chunk-NECEXNCF.mjs";
|
|
68
68
|
import {
|
|
69
69
|
Combobox
|
|
70
70
|
} from "./chunk-OMSIXECN.mjs";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holmdigital/components",
|
|
3
3
|
"author": "Holm Digital AB",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.3.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"typescript": "^5.7.2"
|
|
155
155
|
},
|
|
156
156
|
"dependencies": {
|
|
157
|
-
"@holmdigital/standards": "^2.
|
|
157
|
+
"@holmdigital/standards": "^2.3.0",
|
|
158
158
|
"lucide-react": "^0.556.0"
|
|
159
159
|
}
|
|
160
160
|
}
|