@uh-design-system/component-library 0.4.1 → 0.4.2
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/cjs/component-library.cjs.js +3 -3
- package/dist/cjs/ds-accordion_3.cjs.entry.js +1 -1
- package/dist/cjs/ds-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/ds-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/ds-input-validity.cjs.entry.js +3 -3
- package/dist/cjs/ds-link-with-arrow.cjs.entry.js +4 -4
- package/dist/cjs/ds-link.cjs.entry.js +4 -4
- package/dist/cjs/ds-text-input.cjs.entry.js +1 -1
- package/dist/cjs/ds-visually-hidden.cjs.entry.js +1 -1
- package/dist/cjs/{index-b1d61146.js → index-b2bddcf4.js} +221 -134
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/01-base-components/ds-checkbox/ds-checkbox.css +0 -171
- package/dist/collection/components/01-base-components/ds-checkbox-group/ds-checkbox-group.css +1 -1
- package/dist/collection/components/01-base-components/ds-input-validity/ds-input-validity.js +3 -3
- package/dist/collection/components/01-base-components/ds-link/ds-link.css +0 -138
- package/dist/collection/components/01-base-components/ds-link/ds-link.js +3 -3
- package/dist/collection/components/01-base-components/ds-link/stories/ds-link.stories.js +4 -1
- package/dist/collection/components/01-base-components/ds-link-with-arrow/ds-link-with-arrow.css +0 -138
- package/dist/collection/components/01-base-components/ds-link-with-arrow/ds-link-with-arrow.js +3 -3
- package/dist/collection/components/01-base-components/ds-link-with-arrow/stories/ds-link-with-arrow.stories.js +4 -1
- package/dist/component-library/component-library.esm.js +1 -1
- package/dist/component-library/ds-accordion_3.entry.js +1 -1
- package/dist/component-library/ds-checkbox-group.entry.js +1 -1
- package/dist/component-library/ds-checkbox.entry.js +1 -1
- package/dist/component-library/ds-input-validity.entry.js +1 -1
- package/dist/component-library/ds-link-with-arrow.entry.js +1 -1
- package/dist/component-library/ds-link.entry.js +1 -1
- package/dist/component-library/ds-text-input.entry.js +1 -1
- package/dist/component-library/ds-visually-hidden.entry.js +1 -1
- package/dist/component-library/index-50783b0c.js +2 -0
- package/dist/components/ds-checkbox-group.js +1 -1
- package/dist/components/ds-checkbox2.js +1 -1
- package/dist/components/ds-input-validity2.js +3 -3
- package/dist/components/ds-link-with-arrow.js +4 -4
- package/dist/components/ds-link.js +4 -4
- package/dist/components/index2.js +203 -135
- package/dist/esm/component-library.js +4 -4
- package/dist/esm/ds-accordion_3.entry.js +1 -1
- package/dist/esm/ds-checkbox-group.entry.js +2 -2
- package/dist/esm/ds-checkbox.entry.js +2 -2
- package/dist/esm/ds-input-validity.entry.js +3 -3
- package/dist/esm/ds-link-with-arrow.entry.js +4 -4
- package/dist/esm/ds-link.entry.js +4 -4
- package/dist/esm/ds-text-input.entry.js +1 -1
- package/dist/esm/ds-visually-hidden.entry.js +1 -1
- package/dist/esm/{index-aaccd233.js → index-50783b0c.js} +221 -134
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/01-base-components/ds-input-validity/ds-input-validity.d.ts +1 -1
- package/dist/types/components/01-base-components/ds-link/ds-link.d.ts +1 -1
- package/dist/types/components/01-base-components/ds-link-with-arrow/ds-link-with-arrow.d.ts +1 -1
- package/dist/types/components.d.ts +6 -6
- package/package.json +18 -18
- package/dist/component-library/index-aaccd233.js +0 -2
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-b2bddcf4.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["ds-accordion_3.cjs",[[1,"ds-accordion",{"variant":[1],"borderAligned":[4,"border-aligned"],"openByDefault":[4,"open-by-default"],"accordionId":[1,"accordion-id"],"headingLevel":[2,"heading-level"],"useCloseButton":[4,"use-close-button"],"closeButtonLabel":[1,"close-button-label"],"hideTopBorder":[4,"hide-top-border"],"isExpanded":[32]},null,{"isExpanded":["watchHandler"]}],[6,"ds-button",{"value":[1],"variant":[1],"colour":[1],"size":[1],"fontWeight":[1,"font-weight"],"icon":[1],"iconPosition":[1,"icon-position"],"type":[1],"disabled":[4],"fullWidth":[4,"full-width"],"ariaDisabled":[1,"aria-disabled"]}],[1,"ds-icon",{"name":[1],"colour":[1],"size":[1],"dsTitle":[1,"title"],"role":[1],"hidden":[4],"message":[32]}]]],["ds-checkbox-group.cjs",[[1,"ds-checkbox-group",{"legend":[1],"assistiveText":[1,"assistive-text"],"direction":[1],"errorText":[1,"error-text"],"text":[1],"checked":[1028],"checkedChildElementCount":[1026,"checked-child-element-count"],"disabled":[4],"parentCheckedCount":[2,"parent-checked-count"],"childElementsCount":[32],"isIndeterminate":[32],"indeterminateChildCheckboxCount":[32],"setChecked":[64]},[[0,"dsCheckboxGroupIndeterminateChildChange","handleIndeterminateChildChange"],[0,"dsCheckboxChange","handleCheckboxChange"],[0,"dsCheckboxGroupChange","handleCheckboxGroupChange"]],{"disabled":["handleCheckboxDisabledChange"],"checked":["handleCheckedChange"],"isIndeterminate":["handleIndeterminateChange"],"checkedChildElementCount":["handleCheckedChildElementCountChange"]}]]],["ds-visually-hidden.cjs",[[1,"ds-visually-hidden"]]],["ds-text-input.cjs",[[6,"ds-text-input",{"label":[1],"placeholder":[1],"dsId":[1,"id"],"name":[1],"disabled":[4],"optional":[4],"required":[4],"readonly":[4],"value":[1],"min":[2],"max":[2],"maxlength":[2],"pattern":[1],"autocomplete":[1],"optionalText":[1,"optional-text"],"errorText":[1,"error-text"],"successText":[1,"success-text"],"assistiveText":[1,"assistive-text"],"actionButtonAriaLabel":[1,"action-button-aria-label"],"hiddenAssistiveText":[1,"hidden-assistive-text"],"prefixText":[1,"prefix-text"],"suffixText":[1,"suffix-text"],"icon":[1],"type":[1],"ariaLabel":[1,"aria-label"],"ariaLabelledBy":[1,"aria-labelledby"],"ariaDescribedby":[1,"aria-describedby"],"hasFocus":[32],"clearButtonVisible":[32],"passwordInputVisible":[32],"inputActive":[32],"togglePasswordVisibility":[64],"clearInput":[64]}]]],["ds-link.cjs",[[1,"ds-link",{"text":[1],"size":[1],"variant":[1],"weight":[1],"icon":[1025],"iconPosition":[1025,"icon-position"],"iconTitle":[1,"icon-title"],"iconHidden":[4,"icon-hidden"],"href":[1],"target":[1],"download":[4],"language":[1,"lang"],"
|
|
11
|
+
return index.bootstrapLazy([["ds-accordion_3.cjs",[[1,"ds-accordion",{"variant":[1],"borderAligned":[4,"border-aligned"],"openByDefault":[4,"open-by-default"],"accordionId":[1,"accordion-id"],"headingLevel":[2,"heading-level"],"useCloseButton":[4,"use-close-button"],"closeButtonLabel":[1,"close-button-label"],"hideTopBorder":[4,"hide-top-border"],"isExpanded":[32]},null,{"isExpanded":["watchHandler"]}],[6,"ds-button",{"value":[1],"variant":[1],"colour":[1],"size":[1],"fontWeight":[1,"font-weight"],"icon":[1],"iconPosition":[1,"icon-position"],"type":[1],"disabled":[4],"fullWidth":[4,"full-width"],"ariaDisabled":[1,"aria-disabled"]}],[1,"ds-icon",{"name":[1],"colour":[1],"size":[1],"dsTitle":[1,"title"],"role":[1],"hidden":[4],"message":[32]}]]],["ds-checkbox-group.cjs",[[1,"ds-checkbox-group",{"legend":[1],"assistiveText":[1,"assistive-text"],"direction":[1],"errorText":[1,"error-text"],"text":[1],"checked":[1028],"checkedChildElementCount":[1026,"checked-child-element-count"],"disabled":[4],"parentCheckedCount":[2,"parent-checked-count"],"childElementsCount":[32],"isIndeterminate":[32],"indeterminateChildCheckboxCount":[32],"setChecked":[64]},[[0,"dsCheckboxGroupIndeterminateChildChange","handleIndeterminateChildChange"],[0,"dsCheckboxChange","handleCheckboxChange"],[0,"dsCheckboxGroupChange","handleCheckboxGroupChange"]],{"disabled":["handleCheckboxDisabledChange"],"checked":["handleCheckedChange"],"isIndeterminate":["handleIndeterminateChange"],"checkedChildElementCount":["handleCheckedChildElementCountChange"]}]]],["ds-visually-hidden.cjs",[[1,"ds-visually-hidden"]]],["ds-text-input.cjs",[[6,"ds-text-input",{"label":[1],"placeholder":[1],"dsId":[1,"id"],"name":[1],"disabled":[4],"optional":[4],"required":[4],"readonly":[4],"value":[1],"min":[2],"max":[2],"maxlength":[2],"pattern":[1],"autocomplete":[1],"optionalText":[1,"optional-text"],"errorText":[1,"error-text"],"successText":[1,"success-text"],"assistiveText":[1,"assistive-text"],"actionButtonAriaLabel":[1,"action-button-aria-label"],"hiddenAssistiveText":[1,"hidden-assistive-text"],"prefixText":[1,"prefix-text"],"suffixText":[1,"suffix-text"],"icon":[1],"type":[1],"ariaLabel":[1,"aria-label"],"ariaLabelledBy":[1,"aria-labelledby"],"ariaDescribedby":[1,"aria-describedby"],"hasFocus":[32],"clearButtonVisible":[32],"passwordInputVisible":[32],"inputActive":[32],"togglePasswordVisibility":[64],"clearInput":[64]}]]],["ds-link.cjs",[[1,"ds-link",{"text":[1],"size":[1],"variant":[1],"weight":[1],"icon":[1025],"iconPosition":[1025,"icon-position"],"iconTitle":[1,"icon-title"],"iconHidden":[4,"icon-hidden"],"href":[1],"target":[1],"download":[4],"language":[1,"lang"],"linkAriaLabel":[1,"aria-label"]}]]],["ds-link-with-arrow.cjs",[[1,"ds-link-with-arrow",{"text":[1],"iconPosition":[1,"icon-position"],"href":[1],"target":[1],"language":[1,"lang"],"linkAriaLabel":[1,"aria-label"]}]]],["ds-input-validity.cjs",[[0,"ds-input-validity",{"text":[1],"type":[1],"validityRole":[1,"role"],"identifier":[32]}]]],["ds-checkbox.cjs",[[65,"ds-checkbox",{"checkboxId":[1025,"id"],"checked":[1028],"legend":[1],"assistiveText":[1,"assistive-text"],"text":[1],"indeterminate":[4],"disabled":[4],"errorText":[1,"error-text"],"errorsDisabled":[4,"data-errors-disabled"],"required":[4],"optional":[4],"optionalText":[1,"optional-text"],"ariaLabel":[32],"value":[32],"validationMessage":[32]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -1,174 +1,3 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--ds-borderWidth-none: 0px;
|
|
3
|
-
--ds-borderWidth-hairline: 1px;
|
|
4
|
-
--ds-borderWidth-thin: 2px;
|
|
5
|
-
--ds-borderWidth-thick: 4px;
|
|
6
|
-
--ds-borderWidth-xThick: 8px;
|
|
7
|
-
--ds-borderRadius-none: 0px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
:root {
|
|
11
|
-
--ds-overlay-black-00: rgb(0 0 0 / 0);
|
|
12
|
-
--ds-overlay-black-05: rgb(0 0 0 / 0.05);
|
|
13
|
-
--ds-overlay-black-10: rgb(0 0 0 / 0.1);
|
|
14
|
-
--ds-overlay-black-15: rgb(0 0 0 / 0.15);
|
|
15
|
-
--ds-overlay-black-30: rgb(0 0 0 / 0.3);
|
|
16
|
-
--ds-overlay-black-40: rgb(0 0 0 / 0.4);
|
|
17
|
-
--ds-overlay-black-50: rgb(0 0 0 / 0.5);
|
|
18
|
-
--ds-overlay-black-70: rgb(0 0 0 / 0.7);
|
|
19
|
-
--ds-overlay-black-80: rgb(0 0 0 / 0.8);
|
|
20
|
-
--ds-overlay-white-00: rgb(255 255 255 / 0);
|
|
21
|
-
--ds-overlay-white-05: rgb(255 255 255 / 0.05);
|
|
22
|
-
--ds-overlay-white-10: rgb(255 255 255 / 0.1);
|
|
23
|
-
--ds-overlay-white-15: rgb(255 255 255 / 0.15);
|
|
24
|
-
--ds-overlay-white-30: rgb(255 255 255 / 0.3);
|
|
25
|
-
--ds-overlay-white-40: rgb(255 255 255 / 0.4);
|
|
26
|
-
--ds-overlay-white-50: rgb(255 255 255 / 0.5);
|
|
27
|
-
--ds-overlay-white-70: rgb(255 255 255 / 0.7);
|
|
28
|
-
--ds-overlay-white-80: rgb(255 255 255 / 0.8);
|
|
29
|
-
--ds-palette-black: #000000;
|
|
30
|
-
--ds-palette-white: #ffffff;
|
|
31
|
-
--ds-palette-black-03: #f7f7f7;
|
|
32
|
-
--ds-palette-black-05: #f2f2f2;
|
|
33
|
-
--ds-palette-black-10: #e6e6e6;
|
|
34
|
-
--ds-palette-black-20: #cccccc;
|
|
35
|
-
--ds-palette-black-30: #b3b3b3;
|
|
36
|
-
--ds-palette-black-40: #999999;
|
|
37
|
-
--ds-palette-black-50: #808080;
|
|
38
|
-
--ds-palette-black-60: #666666;
|
|
39
|
-
--ds-palette-black-70: #4d4d4d;
|
|
40
|
-
--ds-palette-black-80: #333333;
|
|
41
|
-
--ds-palette-black-90: #1a1a1a;
|
|
42
|
-
--ds-palette-black-95: #0c0c0c;
|
|
43
|
-
--ds-palette-blue-05: #e5f8ff;
|
|
44
|
-
--ds-palette-blue-10: #c2eeff;
|
|
45
|
-
--ds-palette-blue-20: #8adeff;
|
|
46
|
-
--ds-palette-blue-30: #5cd1ff;
|
|
47
|
-
--ds-palette-blue-40: #1abeff;
|
|
48
|
-
--ds-palette-blue-50: #009ad6;
|
|
49
|
-
--ds-palette-blue-60: #0084b8;
|
|
50
|
-
--ds-palette-blue-70: #005b80;
|
|
51
|
-
--ds-palette-blue-80: #053c52;
|
|
52
|
-
--ds-palette-blue-90: #032330;
|
|
53
|
-
--ds-palette-green-05: #dffbe1;
|
|
54
|
-
--ds-palette-green-10: #bef4c1;
|
|
55
|
-
--ds-palette-green-20: #85e08a;
|
|
56
|
-
--ds-palette-green-30: #66cc6b;
|
|
57
|
-
--ds-palette-green-40: #43b149;
|
|
58
|
-
--ds-palette-green-50: #279b2d;
|
|
59
|
-
--ds-palette-green-60: #257e29;
|
|
60
|
-
--ds-palette-green-70: #216325;
|
|
61
|
-
--ds-palette-green-80: #183f19;
|
|
62
|
-
--ds-palette-green-90: #0f2410;
|
|
63
|
-
--ds-palette-mainBlue-05: #e5f5ff;
|
|
64
|
-
--ds-palette-mainBlue-10: #cdebff;
|
|
65
|
-
--ds-palette-mainBlue-20: #99d7ff;
|
|
66
|
-
--ds-palette-mainBlue-30: #70c7ff;
|
|
67
|
-
--ds-palette-mainBlue-40: #3db3ff;
|
|
68
|
-
--ds-palette-mainBlue-50: #009bff;
|
|
69
|
-
--ds-palette-mainBlue-60: #007fd1;
|
|
70
|
-
--ds-palette-mainBlue-70: #005a94;
|
|
71
|
-
--ds-palette-mainBlue-80: #003152;
|
|
72
|
-
--ds-palette-mainBlue-90: #001929;
|
|
73
|
-
--ds-palette-red-05: #ffeceb;
|
|
74
|
-
--ds-palette-red-10: #ffd8d6;
|
|
75
|
-
--ds-palette-red-20: #fdb7b4;
|
|
76
|
-
--ds-palette-red-30: #f87c77;
|
|
77
|
-
--ds-palette-red-40: #f0514c;
|
|
78
|
-
--ds-palette-red-50: #d71f19;
|
|
79
|
-
--ds-palette-red-60: #bd2828;
|
|
80
|
-
--ds-palette-red-70: #8b2623;
|
|
81
|
-
--ds-palette-red-80: #602220;
|
|
82
|
-
--ds-palette-red-90: #321c1b;
|
|
83
|
-
--ds-palette-yellow-05: #fff1db;
|
|
84
|
-
--ds-palette-yellow-10: #ffe7c2;
|
|
85
|
-
--ds-palette-yellow-20: #ffd799;
|
|
86
|
-
--ds-palette-yellow-30: #fbc05f;
|
|
87
|
-
--ds-palette-yellow-40: #eea22b;
|
|
88
|
-
--ds-palette-yellow-50: #ce8103;
|
|
89
|
-
--ds-palette-yellow-60: #b26d00;
|
|
90
|
-
--ds-palette-yellow-70: #7a4b00;
|
|
91
|
-
--ds-palette-yellow-80: #4e3104;
|
|
92
|
-
--ds-palette-yellow-90: #282115;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
:root {
|
|
96
|
-
--ds-textColor-default: var(--ds-palette-black-95);
|
|
97
|
-
--ds-textColor-primary: var(--ds-palette-mainBlue-70);
|
|
98
|
-
--ds-textColor-secondary: var(--ds-palette-black-70);
|
|
99
|
-
--ds-textColor-white: var(--ds-palette-white);
|
|
100
|
-
--ds-textColor-danger: var(--ds-palette-red-80);
|
|
101
|
-
--ds-textColor-success: var(--ds-palette-green-80);
|
|
102
|
-
--ds-textColor-disabled-onLight: var(--ds-palette-black-40);
|
|
103
|
-
--ds-textColor-disabled-onDark: var(--ds-overlay-white-40);
|
|
104
|
-
--ds-textColor-link: var(--ds-palette-mainBlue-70);
|
|
105
|
-
--ds-textColor-link-hover: var(--ds-palette-mainBlue-80);
|
|
106
|
-
--ds-textColor-link-active: var(--ds-palette-mainBlue-90);
|
|
107
|
-
--ds-textColor-link-visited: #551a8b;
|
|
108
|
-
--ds-textColor-link--standalone: var(--ds-palette-black-70);
|
|
109
|
-
--ds-textColor-link--standalone-hover: var(--ds-palette-black-80);
|
|
110
|
-
--ds-textColor-link--standalone-active: var(--ds-palette-black-95);
|
|
111
|
-
--ds-textColor-link--standalone-focus: var(--ds-palette-black-70);
|
|
112
|
-
--ds-bgColor-primary: var(--ds-palette-mainBlue-70);
|
|
113
|
-
--ds-bgColor-primary-hover: var(--ds-palette-mainBlue-80);
|
|
114
|
-
--ds-bgColor-primary-active: var(--ds-palette-mainBlue-90);
|
|
115
|
-
--ds-bgColor-secondary: var(--ds-palette-white);
|
|
116
|
-
--ds-bgColor-secondary-hover: var(--ds-palette-mainBlue-05);
|
|
117
|
-
--ds-bgColor-secondary-active: var(--ds-palette-mainBlue-10);
|
|
118
|
-
--ds-bgColor-white: var(--ds-palette-white);
|
|
119
|
-
--ds-bgColor-white-hover: var(--ds-palette-black-10);
|
|
120
|
-
--ds-bgColor-white-active: var(--ds-palette-black-20);
|
|
121
|
-
--ds-bgColor-black: var(--ds-palette-black-95);
|
|
122
|
-
--ds-bgColor-black-hover: var(--ds-palette-black-80);
|
|
123
|
-
--ds-bgColor-black-active: var(--ds-palette-white-70);
|
|
124
|
-
--ds-bgColor-danger: var(--ds-palette-red-05);
|
|
125
|
-
--ds-bgColor-danger-hover: var(--ds-palette-red-10);
|
|
126
|
-
--ds-bgColor-danger-active: var(--ds-palette-red-20);
|
|
127
|
-
--ds-bgColor-success: var(--ds-palette-green-05);
|
|
128
|
-
--ds-bgColor-success-hover: var(--ds-palette-green-10);
|
|
129
|
-
--ds-bgColor-success-active: var(--ds-palette-green-20);
|
|
130
|
-
--ds-bgColor-transparent-onLight: var(--ds-overlay-black-00);
|
|
131
|
-
--ds-bgColor-transparent-onLight-hover: var(--ds-overlay-black-10);
|
|
132
|
-
--ds-bgColor-transparent-onLight-active: var(--ds-overlay-black-15);
|
|
133
|
-
--ds-bgColor-transparent-onDark: var(--ds-overlay-white-00);
|
|
134
|
-
--ds-bgColor-transparent-onDark-hover: var(--ds-overlay-white-30);
|
|
135
|
-
--ds-bgColor-transparent-onDark-active: var(--ds-overlay-white-40);
|
|
136
|
-
--ds-bgColor-disabled-onLight: var(--ds-overlay-black-10);
|
|
137
|
-
--ds-bgColor-disabled-onDark: var(--ds-overlay-white-10);
|
|
138
|
-
--ds-borderColor-default: var(--ds-palette-black-50);
|
|
139
|
-
--ds-borderColor-primary: var(--ds-palette-mainBlue-70);
|
|
140
|
-
--ds-borderColor-black: var(--ds-palette-black-95);
|
|
141
|
-
--ds-borderColor-white: var(--ds-palette-white);
|
|
142
|
-
--ds-borderColor-danger: var(--ds-palette-red-50);
|
|
143
|
-
--ds-borderColor-success: var(--ds-palette-green-50);
|
|
144
|
-
--ds-borderColor-transparent: var(--ds-overlay-black-00);
|
|
145
|
-
--ds-borderColor-disabled-onLight: var(--ds-overlay-black-15);
|
|
146
|
-
--ds-borderColor-disabled-onDark: var(--ds-overlay-white-15);
|
|
147
|
-
--ds-borderColor-light: var(--ds-palette-black-20);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
:root {
|
|
151
|
-
--ds-spacing-4xSmall: 0.125rem;
|
|
152
|
-
--ds-spacing-3xSmall: 0.25rem;
|
|
153
|
-
--ds-spacing-2xSmall: 0.5rem;
|
|
154
|
-
--ds-spacing-xSmall: 0.75rem;
|
|
155
|
-
--ds-spacing-small: 1rem;
|
|
156
|
-
--ds-spacing-medium: 1.5rem;
|
|
157
|
-
--ds-spacing-large: 2rem;
|
|
158
|
-
--ds-spacing-xLarge: 2.5rem;
|
|
159
|
-
--ds-spacing-2xLarge: 3rem;
|
|
160
|
-
--ds-spacing-3xLarge: 3.5rem;
|
|
161
|
-
--ds-spacing-4xLarge: 4rem;
|
|
162
|
-
--ds-spacing-5xLarge: 4.5rem;
|
|
163
|
-
--ds-spacing-layout-2xSmall: 1rem;
|
|
164
|
-
--ds-spacing-layout-xSmall: 1.5rem;
|
|
165
|
-
--ds-spacing-layout-small: 2rem;
|
|
166
|
-
--ds-spacing-layout-medium: 3rem;
|
|
167
|
-
--ds-spacing-layout-large: 4rem;
|
|
168
|
-
--ds-spacing-layout-xLarge: 6rem;
|
|
169
|
-
--ds-spacing-layout-2xLarge: 8rem;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
1
|
.ds-checkbox-fieldset {
|
|
173
2
|
display: inline-flex;
|
|
174
3
|
flex-direction: column;
|
package/dist/collection/components/01-base-components/ds-input-validity/ds-input-validity.js
CHANGED
|
@@ -4,7 +4,7 @@ export class DsInputValidity {
|
|
|
4
4
|
el;
|
|
5
5
|
text;
|
|
6
6
|
type = 'error';
|
|
7
|
-
|
|
7
|
+
validityRole = 'status';
|
|
8
8
|
identifier;
|
|
9
9
|
componentDidLoad() {
|
|
10
10
|
this.identifier = this.el.getAttribute('id');
|
|
@@ -19,7 +19,7 @@ export class DsInputValidity {
|
|
|
19
19
|
if (!this.text) {
|
|
20
20
|
return null;
|
|
21
21
|
}
|
|
22
|
-
return (h(Fragment, null, this.text && (h("div", { class: classes, role: this.
|
|
22
|
+
return (h(Fragment, null, this.text && (h("div", { class: classes, role: this.validityRole }, h("ds-icon", { name: icon }), h("small", { id: this.identifier }, this.text)))));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "ds-input-validity"; }
|
|
25
25
|
static get originalStyleUrls() {
|
|
@@ -78,7 +78,7 @@ export class DsInputValidity {
|
|
|
78
78
|
"reflect": false,
|
|
79
79
|
"defaultValue": "'error'"
|
|
80
80
|
},
|
|
81
|
-
"
|
|
81
|
+
"validityRole": {
|
|
82
82
|
"type": "string",
|
|
83
83
|
"mutable": false,
|
|
84
84
|
"complexType": {
|
|
@@ -6,144 +6,6 @@
|
|
|
6
6
|
--ds-breakpoint-xLarge: 90rem;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
:root {
|
|
10
|
-
--ds-borderWidth-none: 0px;
|
|
11
|
-
--ds-borderWidth-hairline: 1px;
|
|
12
|
-
--ds-borderWidth-thin: 2px;
|
|
13
|
-
--ds-borderWidth-thick: 4px;
|
|
14
|
-
--ds-borderWidth-xThick: 8px;
|
|
15
|
-
--ds-borderRadius-none: 0px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:root {
|
|
19
|
-
--ds-breakpoint-xSmall: 20rem;
|
|
20
|
-
--ds-breakpoint-small: 30rem;
|
|
21
|
-
--ds-breakpoint-medium: 60rem;
|
|
22
|
-
--ds-breakpoint-large: 75rem;
|
|
23
|
-
--ds-breakpoint-xLarge: 90rem;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
:root {
|
|
27
|
-
--ds-fontFamily-heading: "Open Sans", sans-serif;
|
|
28
|
-
--ds-fontFamily-body: "Open Sans", sans-serif;
|
|
29
|
-
--ds-fontSize-12: 12px; /* 0.75rem */
|
|
30
|
-
--ds-fontSize-14: 14px; /* 0.875rem */
|
|
31
|
-
--ds-fontSize-16: 16px; /* 1rem */
|
|
32
|
-
--ds-fontSize-18: 18px; /* 1.125rem */
|
|
33
|
-
--ds-fontSize-20: 20px; /* 1.25rem */
|
|
34
|
-
--ds-fontSize-22: 22px; /* 1.375rem */
|
|
35
|
-
--ds-fontSize-24: 24px; /* 1.5rem */
|
|
36
|
-
--ds-fontSize-26: 26px; /* 1.625rem */
|
|
37
|
-
--ds-fontSize-30: 30px; /* 1.875rem */
|
|
38
|
-
--ds-fontSize-32: 32px; /* 2rem */
|
|
39
|
-
--ds-fontSize-36: 36px; /* 2.25rem */
|
|
40
|
-
--ds-fontSize-40: 40px; /* 2.5rem */
|
|
41
|
-
--ds-fontSize-48: 48px; /* 3rem */
|
|
42
|
-
--ds-fontSize-56: 56px; /* 3.5rem */
|
|
43
|
-
--ds-fontSize-64: 64px; /* 4rem */
|
|
44
|
-
--ds-fontWeight-regular: 400;
|
|
45
|
-
--ds-fontWeight-semibold: 600;
|
|
46
|
-
--ds-fontWeight-semiboldPlus: 650;
|
|
47
|
-
--ds-fontWeight-bold: 700;
|
|
48
|
-
--ds-letterSpacing-xTight: -2;
|
|
49
|
-
--ds-letterSpacing-tight: -1.4;
|
|
50
|
-
--ds-letterSpacing-normal: -0.4;
|
|
51
|
-
--ds-letterSpacing-wide: 0;
|
|
52
|
-
--ds-letterSpacing-xWide: 0.4;
|
|
53
|
-
--ds-lineHeight-small: 1;
|
|
54
|
-
--ds-lineHeight-medium: 1.2;
|
|
55
|
-
--ds-lineHeight-large: 1.5;
|
|
56
|
-
--ds-lineHeight-xLarge: 1.75;
|
|
57
|
-
--ds-fontWidth-normal: 100;
|
|
58
|
-
--ds-fontWidth-condense: 90;
|
|
59
|
-
--ds-number-style: proportional-figures; /* Varying spacing */
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@supports (font-variation-settings: normal) {
|
|
63
|
-
:root {
|
|
64
|
-
--ds-fontFamily-heading: "Open Sans Variable", sans-serif;
|
|
65
|
-
--ds-fontFamily-body: "Open Sans Variable", sans-serif;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
:root {
|
|
69
|
-
--ds-breakpoint-xSmall: 20rem;
|
|
70
|
-
--ds-breakpoint-small: 30rem;
|
|
71
|
-
--ds-breakpoint-medium: 60rem;
|
|
72
|
-
--ds-breakpoint-large: 75rem;
|
|
73
|
-
--ds-breakpoint-xLarge: 90rem;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/* Body text styles */
|
|
77
|
-
.ds-bodyText--2xLarge {
|
|
78
|
-
color: var(--ds-textColor-default);
|
|
79
|
-
font-family: var(--ds-fontFamily-body);
|
|
80
|
-
font-size: var(--ds-fontSize-20);
|
|
81
|
-
font-weight: var(--ds-fontWeight-regular);
|
|
82
|
-
letter-spacing: var(--ds-letterSpacing-wide);
|
|
83
|
-
line-height: var(--ds-lineHeight-large);
|
|
84
|
-
}
|
|
85
|
-
@media (min-width: 30rem) {
|
|
86
|
-
.ds-bodyText--2xLarge {
|
|
87
|
-
font-size: var(--ds-fontSize-22);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.ds-bodyText--xLarge {
|
|
92
|
-
color: var(--ds-textColor-default);
|
|
93
|
-
font-family: var(--ds-fontFamily-body);
|
|
94
|
-
font-size: var(--ds-fontSize-18);
|
|
95
|
-
font-weight: var(--ds-fontWeight-regular);
|
|
96
|
-
letter-spacing: var(--ds-letterSpacing-wide);
|
|
97
|
-
line-height: var(--ds-lineHeight-large);
|
|
98
|
-
}
|
|
99
|
-
@media (min-width: 30rem) {
|
|
100
|
-
.ds-bodyText--xLarge {
|
|
101
|
-
font-size: var(--ds-fontSize-20);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.ds-bodyText--large {
|
|
106
|
-
color: var(--ds-textColor-default);
|
|
107
|
-
font-family: var(--ds-fontFamily-body);
|
|
108
|
-
font-size: var(--ds-fontSize-16);
|
|
109
|
-
font-weight: var(--ds-fontWeight-regular);
|
|
110
|
-
letter-spacing: var(--ds-letterSpacing-wide);
|
|
111
|
-
line-height: var(--ds-lineHeight-large);
|
|
112
|
-
}
|
|
113
|
-
@media (min-width: 30rem) {
|
|
114
|
-
.ds-bodyText--large {
|
|
115
|
-
font-size: var(--ds-fontSize-18);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.ds-bodyText--medium {
|
|
120
|
-
color: var(--ds-textColor-default);
|
|
121
|
-
font-family: var(--ds-fontFamily-body);
|
|
122
|
-
font-size: var(--ds-fontSize-14);
|
|
123
|
-
font-weight: var(--ds-fontWeight-regular);
|
|
124
|
-
letter-spacing: var(--ds-letterSpacing-wide);
|
|
125
|
-
line-height: var(--ds-lineHeight-large);
|
|
126
|
-
}
|
|
127
|
-
@media (min-width: 30rem) {
|
|
128
|
-
.ds-bodyText--medium {
|
|
129
|
-
font-size: var(--ds-fontSize-16);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.ds-bodyText--small {
|
|
134
|
-
color: var(--ds-textColor-default);
|
|
135
|
-
font-family: var(--ds-fontFamily-body);
|
|
136
|
-
font-size: var(--ds-fontSize-12);
|
|
137
|
-
font-weight: var(--ds-fontWeight-regular);
|
|
138
|
-
letter-spacing: var(--ds-letterSpacing-wide);
|
|
139
|
-
line-height: var(--ds-lineHeight-large);
|
|
140
|
-
}
|
|
141
|
-
@media (min-width: 30rem) {
|
|
142
|
-
.ds-bodyText--small {
|
|
143
|
-
font-size: var(--ds-fontSize-14);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
9
|
:host {
|
|
148
10
|
display: inline-block;
|
|
149
11
|
}
|
|
@@ -21,7 +21,7 @@ export class DsLink {
|
|
|
21
21
|
target;
|
|
22
22
|
download;
|
|
23
23
|
language;
|
|
24
|
-
|
|
24
|
+
linkAriaLabel;
|
|
25
25
|
componentWillLoad() {
|
|
26
26
|
this.inheritedAttributes = inheritAriaAttributes(this.el, ['aria-label']);
|
|
27
27
|
if (opensInNewTab(this.target)) {
|
|
@@ -38,7 +38,7 @@ export class DsLink {
|
|
|
38
38
|
[`ds-link__icon--start-${this.variant}`]: this.iconPosition === 'start',
|
|
39
39
|
[`ds-link__icon--end-${this.variant}`]: this.iconPosition === 'end',
|
|
40
40
|
});
|
|
41
|
-
return (h("a", { key: '
|
|
41
|
+
return (h("a", { key: '92b52d7b61888dd8d39841afe9823286356ec231', href: this.href, class: classes, rel: this.rel, target: this.target, download: this.download, "aria-label": getAriaLabel(this.text, this.linkAriaLabel), ...this.inheritedAttributes }, h("slot", { key: '9125a3b98ed37f1e71a922a071c07f2ad270a661', name: "iconStart" }, this.icon && this.iconPosition === 'start' && h("ds-icon", { key: '5d08c8501703a7d8cf4bb3386d6368047e75f8fe', name: this.icon, class: iconClasses, size: "1em", title: this.iconTitle, hidden: this.iconHidden })), this.text, h("slot", { key: '6bd3f8fda1ad927ceba8612503dddabb188be692', name: "iconEnd" }, this.icon && this.iconPosition === 'end' && h("ds-icon", { key: 'e6b7de1ca80eb3485083f5ff1902ebf66821c707', name: this.icon, class: iconClasses, size: "1em", title: this.iconTitle, hidden: this.iconHidden })), opensInNewTab(this.target) && (h("ds-visually-hidden", { key: 'b7ffb5a0cfa2e02ef793150bd9ea6886e02c7cac', id: this.visuallyHiddenAssistiveTextId }, visuallyHiddenAssistiveText(this.language ?? document.documentElement.lang)))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "ds-link"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -316,7 +316,7 @@ export class DsLink {
|
|
|
316
316
|
"attribute": "lang",
|
|
317
317
|
"reflect": false
|
|
318
318
|
},
|
|
319
|
-
"
|
|
319
|
+
"linkAriaLabel": {
|
|
320
320
|
"type": "string",
|
|
321
321
|
"mutable": false,
|
|
322
322
|
"complexType": {
|
|
@@ -3,7 +3,6 @@ import { getAriaAttributeArgTypes } from "../../../../utils/attributes/attribute
|
|
|
3
3
|
const anchorAriaAttributes = [
|
|
4
4
|
'aria-current',
|
|
5
5
|
'aria-haspopup',
|
|
6
|
-
'aria-label',
|
|
7
6
|
];
|
|
8
7
|
const anchorAriaAttributeArgTypes = getAriaAttributeArgTypes(anchorAriaAttributes);
|
|
9
8
|
const meta = {
|
|
@@ -75,6 +74,10 @@ export const Playground = {
|
|
|
75
74
|
control: 'text',
|
|
76
75
|
description: 'ISO 639 language code. Known languages are: "en", "fi", "sv". When undefined will use browser\'s language.',
|
|
77
76
|
},
|
|
77
|
+
linkAriaLabel: {
|
|
78
|
+
name: 'aria-label',
|
|
79
|
+
control: 'text',
|
|
80
|
+
},
|
|
78
81
|
...anchorAriaAttributeArgTypes,
|
|
79
82
|
},
|
|
80
83
|
};
|
package/dist/collection/components/01-base-components/ds-link-with-arrow/ds-link-with-arrow.css
CHANGED
|
@@ -6,144 +6,6 @@
|
|
|
6
6
|
--ds-breakpoint-xLarge: 90rem;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
:root {
|
|
10
|
-
--ds-borderWidth-none: 0px;
|
|
11
|
-
--ds-borderWidth-hairline: 1px;
|
|
12
|
-
--ds-borderWidth-thin: 2px;
|
|
13
|
-
--ds-borderWidth-thick: 4px;
|
|
14
|
-
--ds-borderWidth-xThick: 8px;
|
|
15
|
-
--ds-borderRadius-none: 0px;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:root {
|
|
19
|
-
--ds-breakpoint-xSmall: 20rem;
|
|
20
|
-
--ds-breakpoint-small: 30rem;
|
|
21
|
-
--ds-breakpoint-medium: 60rem;
|
|
22
|
-
--ds-breakpoint-large: 75rem;
|
|
23
|
-
--ds-breakpoint-xLarge: 90rem;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
:root {
|
|
27
|
-
--ds-fontFamily-heading: "Open Sans", sans-serif;
|
|
28
|
-
--ds-fontFamily-body: "Open Sans", sans-serif;
|
|
29
|
-
--ds-fontSize-12: 12px; /* 0.75rem */
|
|
30
|
-
--ds-fontSize-14: 14px; /* 0.875rem */
|
|
31
|
-
--ds-fontSize-16: 16px; /* 1rem */
|
|
32
|
-
--ds-fontSize-18: 18px; /* 1.125rem */
|
|
33
|
-
--ds-fontSize-20: 20px; /* 1.25rem */
|
|
34
|
-
--ds-fontSize-22: 22px; /* 1.375rem */
|
|
35
|
-
--ds-fontSize-24: 24px; /* 1.5rem */
|
|
36
|
-
--ds-fontSize-26: 26px; /* 1.625rem */
|
|
37
|
-
--ds-fontSize-30: 30px; /* 1.875rem */
|
|
38
|
-
--ds-fontSize-32: 32px; /* 2rem */
|
|
39
|
-
--ds-fontSize-36: 36px; /* 2.25rem */
|
|
40
|
-
--ds-fontSize-40: 40px; /* 2.5rem */
|
|
41
|
-
--ds-fontSize-48: 48px; /* 3rem */
|
|
42
|
-
--ds-fontSize-56: 56px; /* 3.5rem */
|
|
43
|
-
--ds-fontSize-64: 64px; /* 4rem */
|
|
44
|
-
--ds-fontWeight-regular: 400;
|
|
45
|
-
--ds-fontWeight-semibold: 600;
|
|
46
|
-
--ds-fontWeight-semiboldPlus: 650;
|
|
47
|
-
--ds-fontWeight-bold: 700;
|
|
48
|
-
--ds-letterSpacing-xTight: -2;
|
|
49
|
-
--ds-letterSpacing-tight: -1.4;
|
|
50
|
-
--ds-letterSpacing-normal: -0.4;
|
|
51
|
-
--ds-letterSpacing-wide: 0;
|
|
52
|
-
--ds-letterSpacing-xWide: 0.4;
|
|
53
|
-
--ds-lineHeight-small: 1;
|
|
54
|
-
--ds-lineHeight-medium: 1.2;
|
|
55
|
-
--ds-lineHeight-large: 1.5;
|
|
56
|
-
--ds-lineHeight-xLarge: 1.75;
|
|
57
|
-
--ds-fontWidth-normal: 100;
|
|
58
|
-
--ds-fontWidth-condense: 90;
|
|
59
|
-
--ds-number-style: proportional-figures; /* Varying spacing */
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@supports (font-variation-settings: normal) {
|
|
63
|
-
:root {
|
|
64
|
-
--ds-fontFamily-heading: "Open Sans Variable", sans-serif;
|
|
65
|
-
--ds-fontFamily-body: "Open Sans Variable", sans-serif;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
:root {
|
|
69
|
-
--ds-breakpoint-xSmall: 20rem;
|
|
70
|
-
--ds-breakpoint-small: 30rem;
|
|
71
|
-
--ds-breakpoint-medium: 60rem;
|
|
72
|
-
--ds-breakpoint-large: 75rem;
|
|
73
|
-
--ds-breakpoint-xLarge: 90rem;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/* Body text styles */
|
|
77
|
-
.ds-bodyText--2xLarge {
|
|
78
|
-
color: var(--ds-textColor-default);
|
|
79
|
-
font-family: var(--ds-fontFamily-body);
|
|
80
|
-
font-size: var(--ds-fontSize-20);
|
|
81
|
-
font-weight: var(--ds-fontWeight-regular);
|
|
82
|
-
letter-spacing: var(--ds-letterSpacing-wide);
|
|
83
|
-
line-height: var(--ds-lineHeight-large);
|
|
84
|
-
}
|
|
85
|
-
@media (min-width: 30rem) {
|
|
86
|
-
.ds-bodyText--2xLarge {
|
|
87
|
-
font-size: var(--ds-fontSize-22);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.ds-bodyText--xLarge {
|
|
92
|
-
color: var(--ds-textColor-default);
|
|
93
|
-
font-family: var(--ds-fontFamily-body);
|
|
94
|
-
font-size: var(--ds-fontSize-18);
|
|
95
|
-
font-weight: var(--ds-fontWeight-regular);
|
|
96
|
-
letter-spacing: var(--ds-letterSpacing-wide);
|
|
97
|
-
line-height: var(--ds-lineHeight-large);
|
|
98
|
-
}
|
|
99
|
-
@media (min-width: 30rem) {
|
|
100
|
-
.ds-bodyText--xLarge {
|
|
101
|
-
font-size: var(--ds-fontSize-20);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.ds-bodyText--large {
|
|
106
|
-
color: var(--ds-textColor-default);
|
|
107
|
-
font-family: var(--ds-fontFamily-body);
|
|
108
|
-
font-size: var(--ds-fontSize-16);
|
|
109
|
-
font-weight: var(--ds-fontWeight-regular);
|
|
110
|
-
letter-spacing: var(--ds-letterSpacing-wide);
|
|
111
|
-
line-height: var(--ds-lineHeight-large);
|
|
112
|
-
}
|
|
113
|
-
@media (min-width: 30rem) {
|
|
114
|
-
.ds-bodyText--large {
|
|
115
|
-
font-size: var(--ds-fontSize-18);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.ds-bodyText--medium {
|
|
120
|
-
color: var(--ds-textColor-default);
|
|
121
|
-
font-family: var(--ds-fontFamily-body);
|
|
122
|
-
font-size: var(--ds-fontSize-14);
|
|
123
|
-
font-weight: var(--ds-fontWeight-regular);
|
|
124
|
-
letter-spacing: var(--ds-letterSpacing-wide);
|
|
125
|
-
line-height: var(--ds-lineHeight-large);
|
|
126
|
-
}
|
|
127
|
-
@media (min-width: 30rem) {
|
|
128
|
-
.ds-bodyText--medium {
|
|
129
|
-
font-size: var(--ds-fontSize-16);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.ds-bodyText--small {
|
|
134
|
-
color: var(--ds-textColor-default);
|
|
135
|
-
font-family: var(--ds-fontFamily-body);
|
|
136
|
-
font-size: var(--ds-fontSize-12);
|
|
137
|
-
font-weight: var(--ds-fontWeight-regular);
|
|
138
|
-
letter-spacing: var(--ds-letterSpacing-wide);
|
|
139
|
-
line-height: var(--ds-lineHeight-large);
|
|
140
|
-
}
|
|
141
|
-
@media (min-width: 30rem) {
|
|
142
|
-
.ds-bodyText--small {
|
|
143
|
-
font-size: var(--ds-fontSize-14);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
9
|
:host {
|
|
148
10
|
display: inline-block;
|
|
149
11
|
}
|
package/dist/collection/components/01-base-components/ds-link-with-arrow/ds-link-with-arrow.js
CHANGED
|
@@ -15,7 +15,7 @@ export class DsLinkWithArrow {
|
|
|
15
15
|
href;
|
|
16
16
|
target;
|
|
17
17
|
language;
|
|
18
|
-
|
|
18
|
+
linkAriaLabel;
|
|
19
19
|
componentWillLoad() {
|
|
20
20
|
this.inheritedAttributes = inheritAriaAttributes(this.el, ['aria-label']);
|
|
21
21
|
if (opensInNewTab(this.target)) {
|
|
@@ -29,7 +29,7 @@ export class DsLinkWithArrow {
|
|
|
29
29
|
'ds-link-with-arrow__icon--start': this.iconPosition === 'start',
|
|
30
30
|
'ds-link-with-arrow__icon--end': this.iconPosition === 'end',
|
|
31
31
|
});
|
|
32
|
-
return (h("a", { key: '
|
|
32
|
+
return (h("a", { key: '5f43cc989011db22bd8f547957c76289e7bbbf45', href: this.href, class: classes, rel: this.rel, target: this.target, "aria-label": getAriaLabel(this.text, this.linkAriaLabel), ...this.inheritedAttributes }, h("slot", { key: '26615467438d0ae98a8138165cf5152796f2ab00', name: "iconStart" }, this.iconPosition === 'start' && h("ds-icon", { key: 'f34a2d05ed9c991e98aaa89f547bde0c1b677115', name: this.icon, class: iconClasses, size: "1.4em" })), this.text, h("slot", { key: 'be1ccadeaca632961ed3d44d1d94a26bf35d2963', name: "iconStart" }, this.iconPosition === 'end' && h("ds-icon", { key: '7bccce249754d661d9faeddbad2f9c4d8c207cfb', name: this.icon, class: iconClasses, size: "1.4em" })), opensInNewTab(this.target) && (h("ds-visually-hidden", { key: '4e864244ee939591f435715889e2f9a240f86d36', id: this.visuallyHiddenAssistiveTextId }, visuallyHiddenAssistiveText(this.language ?? document.documentElement.lang)))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "ds-link-with-arrow"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -156,7 +156,7 @@ export class DsLinkWithArrow {
|
|
|
156
156
|
"attribute": "lang",
|
|
157
157
|
"reflect": false
|
|
158
158
|
},
|
|
159
|
-
"
|
|
159
|
+
"linkAriaLabel": {
|
|
160
160
|
"type": "string",
|
|
161
161
|
"mutable": false,
|
|
162
162
|
"complexType": {
|
|
@@ -2,7 +2,6 @@ import { getAriaAttributeArgTypes } from "../../../../utils/attributes/attribute
|
|
|
2
2
|
const anchorAriaAttributes = [
|
|
3
3
|
'aria-current',
|
|
4
4
|
'aria-haspopup',
|
|
5
|
-
'aria-label',
|
|
6
5
|
];
|
|
7
6
|
const anchorAriaAttributeArgTypes = getAriaAttributeArgTypes(anchorAriaAttributes);
|
|
8
7
|
const meta = {
|
|
@@ -33,6 +32,10 @@ export const Playground = {
|
|
|
33
32
|
control: 'text',
|
|
34
33
|
description: 'ISO 639 language code. Known languages are: "en", "fi", "sv". When undefined will use browser\'s language.',
|
|
35
34
|
},
|
|
35
|
+
linkAriaLabel: {
|
|
36
|
+
name: 'aria-label',
|
|
37
|
+
control: 'text',
|
|
38
|
+
},
|
|
36
39
|
...anchorAriaAttributeArgTypes,
|
|
37
40
|
},
|
|
38
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as i}from"./index-
|
|
1
|
+
import{p as e,b as i}from"./index-50783b0c.js";export{s as setNonce}from"./index-50783b0c.js";import{g as t}from"./app-globals-0f993ce5.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((async e=>(await t(),i([["ds-accordion_3",[[1,"ds-accordion",{variant:[1],borderAligned:[4,"border-aligned"],openByDefault:[4,"open-by-default"],accordionId:[1,"accordion-id"],headingLevel:[2,"heading-level"],useCloseButton:[4,"use-close-button"],closeButtonLabel:[1,"close-button-label"],hideTopBorder:[4,"hide-top-border"],isExpanded:[32]},null,{isExpanded:["watchHandler"]}],[6,"ds-button",{value:[1],variant:[1],colour:[1],size:[1],fontWeight:[1,"font-weight"],icon:[1],iconPosition:[1,"icon-position"],type:[1],disabled:[4],fullWidth:[4,"full-width"],ariaDisabled:[1,"aria-disabled"]}],[1,"ds-icon",{name:[1],colour:[1],size:[1],dsTitle:[1,"title"],role:[1],hidden:[4],message:[32]}]]],["ds-checkbox-group",[[1,"ds-checkbox-group",{legend:[1],assistiveText:[1,"assistive-text"],direction:[1],errorText:[1,"error-text"],text:[1],checked:[1028],checkedChildElementCount:[1026,"checked-child-element-count"],disabled:[4],parentCheckedCount:[2,"parent-checked-count"],childElementsCount:[32],isIndeterminate:[32],indeterminateChildCheckboxCount:[32],setChecked:[64]},[[0,"dsCheckboxGroupIndeterminateChildChange","handleIndeterminateChildChange"],[0,"dsCheckboxChange","handleCheckboxChange"],[0,"dsCheckboxGroupChange","handleCheckboxGroupChange"]],{disabled:["handleCheckboxDisabledChange"],checked:["handleCheckedChange"],isIndeterminate:["handleIndeterminateChange"],checkedChildElementCount:["handleCheckedChildElementCountChange"]}]]],["ds-visually-hidden",[[1,"ds-visually-hidden"]]],["ds-text-input",[[6,"ds-text-input",{label:[1],placeholder:[1],dsId:[1,"id"],name:[1],disabled:[4],optional:[4],required:[4],readonly:[4],value:[1],min:[2],max:[2],maxlength:[2],pattern:[1],autocomplete:[1],optionalText:[1,"optional-text"],errorText:[1,"error-text"],successText:[1,"success-text"],assistiveText:[1,"assistive-text"],actionButtonAriaLabel:[1,"action-button-aria-label"],hiddenAssistiveText:[1,"hidden-assistive-text"],prefixText:[1,"prefix-text"],suffixText:[1,"suffix-text"],icon:[1],type:[1],ariaLabel:[1,"aria-label"],ariaLabelledBy:[1,"aria-labelledby"],ariaDescribedby:[1,"aria-describedby"],hasFocus:[32],clearButtonVisible:[32],passwordInputVisible:[32],inputActive:[32],togglePasswordVisibility:[64],clearInput:[64]}]]],["ds-link",[[1,"ds-link",{text:[1],size:[1],variant:[1],weight:[1],icon:[1025],iconPosition:[1025,"icon-position"],iconTitle:[1,"icon-title"],iconHidden:[4,"icon-hidden"],href:[1],target:[1],download:[4],language:[1,"lang"],linkAriaLabel:[1,"aria-label"]}]]],["ds-link-with-arrow",[[1,"ds-link-with-arrow",{text:[1],iconPosition:[1,"icon-position"],href:[1],target:[1],language:[1,"lang"],linkAriaLabel:[1,"aria-label"]}]]],["ds-input-validity",[[0,"ds-input-validity",{text:[1],type:[1],validityRole:[1,"role"],identifier:[32]}]]],["ds-checkbox",[[65,"ds-checkbox",{checkboxId:[1025,"id"],checked:[1028],legend:[1],assistiveText:[1,"assistive-text"],text:[1],indeterminate:[4],disabled:[4],errorText:[1,"error-text"],errorsDisabled:[4,"data-errors-disabled"],required:[4],optional:[4],optionalText:[1,"optional-text"],ariaLabel:[32],value:[32],validationMessage:[32]}]]]],e))));
|