@aurodesignsystem/auro-formkit 5.9.0 → 5.9.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/CHANGELOG.md +13 -4
- package/README.md +4 -4
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +2 -2
- package/components/bibtemplate/dist/registered.js +2 -2
- package/components/checkbox/README.md +62 -62
- package/components/checkbox/demo/api.js +1 -1
- package/components/checkbox/demo/api.md +127 -84
- package/components/checkbox/demo/api.min.js +125 -42
- package/components/checkbox/demo/index.md +9 -281
- package/components/checkbox/demo/index.min.js +125 -42
- package/components/checkbox/demo/readme.html +3 -4
- package/components/checkbox/demo/readme.md +62 -62
- package/components/checkbox/dist/auro-checkbox-group.d.ts +7 -8
- package/components/checkbox/dist/auro-checkbox.d.ts +74 -20
- package/components/checkbox/dist/index.js +125 -42
- package/components/checkbox/dist/registered.js +125 -42
- package/components/combobox/README.md +76 -74
- package/components/combobox/demo/api.html +1 -0
- package/components/combobox/demo/api.js +11 -12
- package/components/combobox/demo/api.md +1302 -875
- package/components/combobox/demo/api.min.js +416 -492
- package/components/combobox/demo/index.html +1 -7
- package/components/combobox/demo/index.js +0 -19
- package/components/combobox/demo/index.md +43 -723
- package/components/combobox/demo/index.min.js +369 -302
- package/components/combobox/demo/readme.html +3 -4
- package/components/combobox/demo/readme.md +76 -74
- package/components/combobox/dist/auro-combobox.d.ts +42 -42
- package/components/combobox/dist/index.js +204 -210
- package/components/combobox/dist/registered.js +204 -210
- package/components/counter/README.md +81 -66
- package/components/counter/demo/api.html +1 -2
- package/components/counter/demo/api.js +2 -2
- package/components/counter/demo/api.md +777 -259
- package/components/counter/demo/api.min.js +119 -171
- package/components/counter/demo/index.html +0 -2
- package/components/counter/demo/index.md +20 -329
- package/components/counter/demo/index.min.js +117 -152
- package/components/counter/demo/readme.html +3 -4
- package/components/counter/demo/readme.md +81 -66
- package/components/counter/dist/auro-counter-group.d.ts +21 -36
- package/components/counter/dist/auro-counter-wrapper.d.ts +1 -6
- package/components/counter/dist/auro-counter.d.ts +5 -8
- package/components/counter/dist/index.js +117 -152
- package/components/counter/dist/registered.js +117 -152
- package/components/datepicker/README.md +57 -61
- package/components/datepicker/demo/api.js +8 -8
- package/components/datepicker/demo/api.md +720 -561
- package/components/datepicker/demo/api.min.js +678 -2769
- package/components/datepicker/demo/index.md +65 -117
- package/components/datepicker/demo/index.min.js +678 -2769
- package/components/datepicker/demo/readme.html +3 -4
- package/components/datepicker/demo/readme.md +57 -61
- package/components/datepicker/dist/auro-calendar.d.ts +60 -34
- package/components/datepicker/dist/auro-datepicker.d.ts +32 -32
- package/components/datepicker/dist/iconVersion.d.ts +1 -1
- package/components/datepicker/dist/index.js +505 -2596
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +505 -2596
- package/components/dropdown/README.md +78 -62
- package/components/dropdown/demo/api.js +4 -4
- package/components/dropdown/demo/api.md +520 -478
- package/components/dropdown/demo/api.min.js +80 -95
- package/components/dropdown/demo/index.md +65 -119
- package/components/dropdown/demo/index.min.js +70 -85
- package/components/dropdown/demo/readme.html +3 -4
- package/components/dropdown/demo/readme.md +78 -62
- package/components/dropdown/dist/auro-dropdown.d.ts +42 -33
- package/components/dropdown/dist/iconVersion.d.ts +1 -1
- package/components/dropdown/dist/index.js +70 -85
- package/components/dropdown/dist/registered.js +70 -85
- package/components/form/README.md +16 -58
- package/components/form/demo/api.md +16 -21
- package/components/form/demo/api.min.js +13 -8
- package/components/form/demo/index.md +38 -39
- package/components/form/demo/index.min.js +13 -8
- package/components/form/demo/readme.md +16 -58
- package/components/form/demo/working.html +1 -1
- package/components/form/dist/auro-form.d.ts +15 -3
- package/components/form/dist/index.js +13 -8
- package/components/form/dist/registered.js +13 -8
- package/components/input/README.md +55 -60
- package/components/input/demo/api.js +3 -5
- package/components/input/demo/api.md +558 -537
- package/components/input/demo/api.min.js +102 -115
- package/components/input/demo/index.js +0 -1
- package/components/input/demo/index.md +90 -203
- package/components/input/demo/index.min.js +87 -99
- package/components/input/demo/readme.html +3 -4
- package/components/input/demo/readme.md +55 -60
- package/components/input/dist/auro-input.d.ts +6 -5
- package/components/input/dist/base-input.d.ts +68 -69
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +87 -82
- package/components/input/dist/registered.js +87 -82
- package/components/menu/README.md +61 -61
- package/components/menu/demo/api.js +6 -8
- package/components/menu/demo/api.md +520 -577
- package/components/menu/demo/api.min.js +199 -97
- package/components/menu/demo/index.js +0 -5
- package/components/menu/demo/index.md +36 -119
- package/components/menu/demo/index.min.js +164 -101
- package/components/menu/demo/readme.html +3 -4
- package/components/menu/demo/readme.md +61 -61
- package/components/menu/dist/auro-menu.context.d.ts +5 -0
- package/components/menu/dist/auro-menu.d.ts +75 -37
- package/components/menu/dist/auro-menuoption.d.ts +38 -13
- package/components/menu/dist/index.js +164 -50
- package/components/menu/dist/registered.js +164 -50
- package/components/radio/README.md +61 -57
- package/components/radio/demo/api.js +2 -2
- package/components/radio/demo/api.md +241 -170
- package/components/radio/demo/api.min.js +154 -77
- package/components/radio/demo/index.md +22 -99
- package/components/radio/demo/index.min.js +145 -68
- package/components/radio/demo/readme.html +3 -4
- package/components/radio/demo/readme.md +61 -57
- package/components/radio/dist/auro-radio-group.d.ts +67 -35
- package/components/radio/dist/auro-radio.d.ts +56 -33
- package/components/radio/dist/index.js +145 -68
- package/components/radio/dist/registered.js +145 -68
- package/components/select/README.md +68 -65
- package/components/select/demo/api.html +1 -0
- package/components/select/demo/api.js +7 -7
- package/components/select/demo/api.md +1305 -625
- package/components/select/demo/api.min.js +357 -262
- package/components/select/demo/index.html +0 -2
- package/components/select/demo/index.md +25 -833
- package/components/select/demo/index.min.js +356 -230
- package/components/select/demo/readme.html +3 -4
- package/components/select/demo/readme.md +68 -65
- package/components/select/dist/auro-select.d.ts +99 -90
- package/components/select/dist/index.js +192 -180
- package/components/select/dist/registered.js +192 -180
- package/package.json +9 -4
|
@@ -1,28 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
5
|
-
* @attr id
|
|
2
|
+
* The `auro-checkbox` element is for the purpose of allowing users to select one or more options of a limited number of choices.
|
|
3
|
+
* @customElement auro-checkbox
|
|
6
4
|
*
|
|
7
5
|
* @csspart checkbox - apply css to a specific checkbox.
|
|
8
6
|
* @csspart checkbox-input - apply css to a specific checkbox's input.
|
|
9
7
|
* @csspart checkbox-label - apply css to a specific checkbox's label.
|
|
10
8
|
*
|
|
11
|
-
* @
|
|
12
|
-
* @
|
|
9
|
+
* @fires {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
10
|
+
* @fires {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
13
11
|
*/
|
|
14
12
|
export class AuroCheckbox extends LitElement {
|
|
15
13
|
static get styles(): import("lit").CSSResult[];
|
|
16
14
|
static get properties(): {
|
|
17
15
|
/**
|
|
18
16
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
19
|
-
* @
|
|
17
|
+
* @type {'default' | 'inverse'}
|
|
20
18
|
* @default 'default'
|
|
21
19
|
*/
|
|
22
|
-
appearance:
|
|
23
|
-
type: StringConstructor;
|
|
24
|
-
reflect: boolean;
|
|
25
|
-
};
|
|
20
|
+
appearance: "default" | "inverse";
|
|
26
21
|
/**
|
|
27
22
|
* If set to true, the checkbox will be filled with a checkmark.
|
|
28
23
|
*/
|
|
@@ -44,6 +39,21 @@ export class AuroCheckbox extends LitElement {
|
|
|
44
39
|
type: BooleanConstructor;
|
|
45
40
|
reflect: boolean;
|
|
46
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
44
|
+
*/
|
|
45
|
+
id: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* The id for input node.
|
|
50
|
+
* @private
|
|
51
|
+
*/
|
|
52
|
+
inputId: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
reflect: boolean;
|
|
55
|
+
attribute: boolean;
|
|
56
|
+
};
|
|
47
57
|
/**
|
|
48
58
|
* Accepts any string and is used to identify related checkboxes when submitting form data.
|
|
49
59
|
*/
|
|
@@ -51,12 +61,21 @@ export class AuroCheckbox extends LitElement {
|
|
|
51
61
|
type: StringConstructor;
|
|
52
62
|
};
|
|
53
63
|
/**
|
|
54
|
-
* DEPRECATED - use `appearance` instead.
|
|
64
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
55
65
|
*/
|
|
56
66
|
onDark: {
|
|
57
67
|
type: BooleanConstructor;
|
|
58
68
|
reflect: boolean;
|
|
59
69
|
};
|
|
70
|
+
/**
|
|
71
|
+
* Indicates whether the checkbox has been interacted with.
|
|
72
|
+
* @private
|
|
73
|
+
*/
|
|
74
|
+
touched: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
reflect: boolean;
|
|
77
|
+
attribute: boolean;
|
|
78
|
+
};
|
|
60
79
|
/**
|
|
61
80
|
* Sets the element's input value. Must be unique within an auro-checkbox-group element.
|
|
62
81
|
*/
|
|
@@ -65,19 +84,40 @@ export class AuroCheckbox extends LitElement {
|
|
|
65
84
|
reflect: boolean;
|
|
66
85
|
};
|
|
67
86
|
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {boolean}
|
|
87
|
+
* The tabindex attribute for the checkbox.
|
|
70
88
|
* @private
|
|
71
89
|
*/
|
|
72
|
-
|
|
90
|
+
tabIndex: {
|
|
91
|
+
type: NumberConstructor;
|
|
92
|
+
reflect: boolean;
|
|
93
|
+
attribute: string;
|
|
94
|
+
};
|
|
73
95
|
/**
|
|
74
|
-
* The
|
|
96
|
+
* The aria-checked attribute for the checkbox.
|
|
75
97
|
* @private
|
|
76
98
|
*/
|
|
77
|
-
|
|
99
|
+
ariaChecked: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
reflect: boolean;
|
|
102
|
+
attribute: string;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* The aria-disabled attribute for the checkbox.
|
|
106
|
+
* @private
|
|
107
|
+
*/
|
|
108
|
+
ariaDisabled: {
|
|
109
|
+
type: StringConstructor;
|
|
110
|
+
reflect: boolean;
|
|
111
|
+
attribute: string;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* The ARIA role for the element. Must remain 'checkbox' for screen readers
|
|
115
|
+
* to correctly identify this as a checkbox control.
|
|
116
|
+
* @private
|
|
117
|
+
*/
|
|
118
|
+
role: {
|
|
78
119
|
type: StringConstructor;
|
|
79
120
|
reflect: boolean;
|
|
80
|
-
attribute: boolean;
|
|
81
121
|
};
|
|
82
122
|
};
|
|
83
123
|
/**
|
|
@@ -89,8 +129,9 @@ export class AuroCheckbox extends LitElement {
|
|
|
89
129
|
*
|
|
90
130
|
*/
|
|
91
131
|
static register(name?: string): void;
|
|
132
|
+
_initializeDefaults(): void;
|
|
92
133
|
apperance: string;
|
|
93
|
-
checked:
|
|
134
|
+
checked: any;
|
|
94
135
|
disabled: boolean;
|
|
95
136
|
error: boolean;
|
|
96
137
|
onDark: boolean;
|
|
@@ -125,7 +166,7 @@ export class AuroCheckbox extends LitElement {
|
|
|
125
166
|
/**
|
|
126
167
|
* Function to generate checkmark svg.
|
|
127
168
|
* @private
|
|
128
|
-
* @returns {
|
|
169
|
+
* @returns {HTMLElement}
|
|
129
170
|
*/
|
|
130
171
|
private generateIconHtml;
|
|
131
172
|
dom: Document;
|
|
@@ -135,6 +176,12 @@ export class AuroCheckbox extends LitElement {
|
|
|
135
176
|
* @returns {void}
|
|
136
177
|
*/
|
|
137
178
|
reset(): void;
|
|
179
|
+
/**
|
|
180
|
+
* Updates the aria-label based on slot content.
|
|
181
|
+
* @private
|
|
182
|
+
* @returns {void}
|
|
183
|
+
*/
|
|
184
|
+
private updateAriaLabel;
|
|
138
185
|
firstUpdated(): void;
|
|
139
186
|
inputId: string;
|
|
140
187
|
/**
|
|
@@ -144,6 +191,13 @@ export class AuroCheckbox extends LitElement {
|
|
|
144
191
|
* @returns {void}
|
|
145
192
|
*/
|
|
146
193
|
private handleKeyDown;
|
|
194
|
+
/**
|
|
195
|
+
* Updates ARIA attributes when properties change.
|
|
196
|
+
* @private
|
|
197
|
+
* @param {Map} changedProperties - Map of changed properties.
|
|
198
|
+
* @returns {void}
|
|
199
|
+
*/
|
|
200
|
+
private updated;
|
|
147
201
|
/**
|
|
148
202
|
* @private
|
|
149
203
|
* @returns {HTMLElement}
|
|
@@ -3,7 +3,7 @@ import { classMap } from 'lit/directives/class-map.js';
|
|
|
3
3
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
4
4
|
import { unsafeStatic, literal, html as html$1 } from 'lit/static-html.js';
|
|
5
5
|
|
|
6
|
-
var styleCss$2 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host{display:block;--cbxLocation: var(--ds-size-50, 0.25rem)}fieldset{all:unset}@media screen and (min-width: 576px){.displayFlex slot{display:flex}}.cbxContainer{position:relative;display:flex;flex-direction:row;gap:var(--ds-size-100, 0.5rem);padding-left:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-100, 0.5rem)}.cbxContainer:hover{cursor:pointer}.label{display:block;padding-top:var(--ds-size-50, 0.25rem)}.label:hover{cursor:pointer}:host([disabled]) .cbxContainer{pointer-events:none;cursor:default}.inputContainer{position:relative}.inputContainer:after{-webkit-tap-highlight-color:transparent;display:block;content:"";align-items:center;justify-content:center;margin-top:var(--cbxLocation);width:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem));border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);outline-style:solid;outline-width:1px;z-index:0}.svg--cbx{position:absolute;left:0;top:3px;bottom:3px;z-index:1;pointer-events:none}`;
|
|
6
|
+
var styleCss$2 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host{display:block;--cbxLocation: var(--ds-size-50, 0.25rem)}:host(:focus-visible){outline:none !important}fieldset{all:unset}@media screen and (min-width: 576px){.displayFlex slot{display:flex}}.cbxContainer{position:relative;display:flex;flex-direction:row;gap:var(--ds-size-100, 0.5rem);padding-left:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-100, 0.5rem)}.cbxContainer:hover{cursor:pointer}.label{display:block;padding-top:var(--ds-size-50, 0.25rem)}.label:hover{cursor:pointer}:host([disabled]) .cbxContainer{pointer-events:none;cursor:default}.inputContainer{position:relative}.inputContainer:after{-webkit-tap-highlight-color:transparent;display:block;content:"";align-items:center;justify-content:center;margin-top:var(--cbxLocation);width:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem));border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);outline-style:solid;outline-width:1px;z-index:0}.svg--cbx{position:absolute;left:0;top:3px;bottom:3px;z-index:1;pointer-events:none}`;
|
|
7
7
|
|
|
8
8
|
var colorCss$2 = css`:host(:not([checked])) .cbxContainer:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse-hover, #f2f2f2)}:host .label{color:var(--ds-auro-checkbox-label-color)}:host .inputContainer:after{background-color:var(--ds-auro-checkbox-container-color);border-color:var(--ds-auro-checkbox-border-color);outline-color:var(--ds-auro-checkbox-outline-color)}:host .inputContainer:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse-hover, #f2f2f2)}:host .svg--cbx{color:var(--ds-auro-checkbox-checkmark-color)}:host(:focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-checkbox-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([checked]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-istrue, #01426a);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-istrue, #01426a)}:host([checked]) .cbxContainer:hover,:host([checked]) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-istrue-hover, #00274a);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-istrue-hover, #00274a)}:host([checked]:focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([checked]:focus-within) .cbxContainer:hover,:host([checked]:focus-within) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-istrue-hover, #00274a)}:host([disabled]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-background-disabled, #dddddd);--ds-auro-checkbox-label-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([disabled]) .cbxContainer:hover,:host([disabled]) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-background-disabled, #dddddd);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse, #ffffff)}:host([disabled][checked]){--ds-auro-checkbox-container-color: var(--ds-advanced-color-state-background-disabled, #dddddd)}:host([disabled][checked]) .cbxContainer:hover,:host([disabled][checked]) .inputContainer:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-state-background-disabled, #dddddd)}:host([error]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error, #e31f26)}:host([error]:not([checked]):focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-checkbox-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([error][checked]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error, #e31f26);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-error, #e31f26)}:host([error][checked]) .cbxContainer:hover,:host([error][checked]) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error-hover, #b1161c);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-error-hover, #b1161c)}:host([error][checked]:focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([error][checked]:focus-within) .cbxContainer:hover,:host([error][checked]:focus-within) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-error-hover, #b1161c)}:host([onDark]),:host([appearance=inverse]){--ds-auro-checkbox-label-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-checkbox-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-checkbox-container-color: transparent}:host([onDark]) .cbxContainer:hover,:host([onDark]) .inputContainer:hover,:host([appearance=inverse]) .cbxContainer:hover,:host([appearance=inverse]) .inputContainer:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse-inverse-hover, rgba(255, 255, 255, 0.2))}:host([onDark]:not([checked])) .cbxContainer:hover,:host([onDark]:not([checked])) .inputContainer:hover,:host([appearance=inverse]:not([checked])) .cbxContainer:hover,:host([appearance=inverse]:not([checked])) .inputContainer:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse-inverse-hover, rgba(255, 255, 255, 0.2))}:host([onDark]:focus-within),:host([appearance=inverse]:focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-checkbox-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][checked]),:host([appearance=inverse][checked]){--ds-auro-checkbox-checkmark-color: var(--ds-advanced-color-boolean-indicator-inverse, #00274a);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-istrue-inverse, #ffffff)}:host([onDark][checked]) .cbxContainer:hover,:host([onDark][checked]) .inputContainer:hover,:host([appearance=inverse][checked]) .cbxContainer:hover,:host([appearance=inverse][checked]) .inputContainer:hover{--ds-auro-checkbox-border-color: transparent;--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-istrue-inverse-hover, rgba(255, 255, 255, 0.7))}:host([onDark][checked]:focus-within),:host([appearance=inverse][checked]:focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([onDark][checked]:focus-within) .cbxContainer:hover,:host([onDark][checked]:focus-within) .inputContainer:hover,:host([appearance=inverse][checked]:focus-within) .cbxContainer:hover,:host([appearance=inverse][checked]:focus-within) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-istrue-inverse-hover, rgba(255, 255, 255, 0.7))}:host([onDark][disabled]),:host([appearance=inverse][disabled]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894);--ds-auro-checkbox-label-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][disabled]) .cbxContainer:hover,:host([onDark][disabled]) .inputContainer:hover,:host([appearance=inverse][disabled]) .cbxContainer:hover,:host([appearance=inverse][disabled]) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894);--ds-auro-checkbox-container-color: transparent}:host([onDark][disabled][checked]),:host([appearance=inverse][disabled][checked]){--ds-auro-checkbox-container-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894)}:host([onDark][disabled][checked]) .cbxContainer:hover,:host([onDark][disabled][checked]) .inputContainer:hover,:host([appearance=inverse][disabled][checked]) .cbxContainer:hover,:host([appearance=inverse][disabled][checked]) .inputContainer:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894)}:host([onDark][error]),:host([appearance=inverse][error]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error-inverse, #f9a4a8)}:host([onDark][error]:not([checked]):focus-within),:host([appearance=inverse][error]:not([checked]):focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-checkbox-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][error][checked]),:host([appearance=inverse][error][checked]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error-inverse, #f9a4a8);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-error-inverse, #f9a4a8)}:host([onDark][error][checked]) .cbxContainer:hover,:host([onDark][error][checked]) .inputContainer:hover,:host([appearance=inverse][error][checked]) .cbxContainer:hover,:host([appearance=inverse][error][checked]) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error-inverse-hover, #f15f65);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-error-inverse-hover, #f15f65)}:host([onDark][error][checked]:focus-within),:host([appearance=inverse][error][checked]:focus-within){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([onDark][error][checked]:focus-within) .cbxContainer:hover,:host([onDark][error][checked]:focus-within) .inputContainer:hover,:host([appearance=inverse][error][checked]:focus-within) .cbxContainer:hover,:host([appearance=inverse][error][checked]:focus-within) .inputContainer:hover{--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-error-inverse-hover, #f15f65)}`;
|
|
9
9
|
|
|
@@ -94,23 +94,20 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
97
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
99
98
|
// See LICENSE in the project root for license information.
|
|
100
99
|
|
|
101
100
|
|
|
102
101
|
/**
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
106
|
-
* @attr id
|
|
102
|
+
* The `auro-checkbox` element is for the purpose of allowing users to select one or more options of a limited number of choices.
|
|
103
|
+
* @customElement auro-checkbox
|
|
107
104
|
*
|
|
108
105
|
* @csspart checkbox - apply css to a specific checkbox.
|
|
109
106
|
* @csspart checkbox-input - apply css to a specific checkbox's input.
|
|
110
107
|
* @csspart checkbox-label - apply css to a specific checkbox's label.
|
|
111
108
|
*
|
|
112
|
-
* @
|
|
113
|
-
* @
|
|
109
|
+
* @fires {CustomEvent<any>} change - (Deprecated) Notifies when checked value is changed.
|
|
110
|
+
* @fires {InputEvent} input - Notifies when when checked value is changed by user's interface.
|
|
114
111
|
*/
|
|
115
112
|
|
|
116
113
|
// build the component class
|
|
@@ -118,26 +115,24 @@ class AuroCheckbox extends LitElement {
|
|
|
118
115
|
constructor() {
|
|
119
116
|
super();
|
|
120
117
|
|
|
118
|
+
this._initializeDefaults();
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
_initializeDefaults() {
|
|
121
122
|
this.apperance = 'default';
|
|
122
123
|
this.checked = false;
|
|
123
124
|
this.disabled = false;
|
|
124
125
|
this.error = false;
|
|
125
126
|
this.onDark = false;
|
|
126
127
|
this.touched = false;
|
|
128
|
+
this.tabIndex = 0;
|
|
129
|
+
this.ariaChecked = 'false';
|
|
130
|
+
this.role = 'checkbox';
|
|
127
131
|
|
|
128
132
|
/**
|
|
129
133
|
* @private
|
|
130
134
|
*/
|
|
131
135
|
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @private
|
|
135
|
-
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
136
|
-
*/
|
|
137
|
-
this.constructor.shadowRootOptions = {
|
|
138
|
-
...LitElement.shadowRootOptions,
|
|
139
|
-
delegatesFocus: true,
|
|
140
|
-
};
|
|
141
136
|
}
|
|
142
137
|
|
|
143
138
|
static get styles() {
|
|
@@ -155,7 +150,7 @@ class AuroCheckbox extends LitElement {
|
|
|
155
150
|
|
|
156
151
|
/**
|
|
157
152
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
158
|
-
* @
|
|
153
|
+
* @type {'default' | 'inverse'}
|
|
159
154
|
* @default 'default'
|
|
160
155
|
*/
|
|
161
156
|
appearance: {
|
|
@@ -187,47 +182,94 @@ class AuroCheckbox extends LitElement {
|
|
|
187
182
|
reflect: true
|
|
188
183
|
},
|
|
189
184
|
|
|
185
|
+
/**
|
|
186
|
+
* The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
187
|
+
*/
|
|
188
|
+
id: {
|
|
189
|
+
type: String
|
|
190
|
+
},
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* The id for input node.
|
|
194
|
+
* @private
|
|
195
|
+
*/
|
|
196
|
+
inputId: {
|
|
197
|
+
type: String,
|
|
198
|
+
reflect: false,
|
|
199
|
+
attribute: false
|
|
200
|
+
},
|
|
201
|
+
|
|
190
202
|
/**
|
|
191
203
|
* Accepts any string and is used to identify related checkboxes when submitting form data.
|
|
192
204
|
*/
|
|
193
205
|
name: { type: String },
|
|
194
206
|
|
|
195
207
|
/**
|
|
196
|
-
* DEPRECATED - use `appearance` instead.
|
|
208
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
197
209
|
*/
|
|
198
210
|
onDark: {
|
|
199
211
|
type: Boolean,
|
|
200
212
|
reflect: true
|
|
201
213
|
},
|
|
202
214
|
|
|
215
|
+
/**
|
|
216
|
+
* Indicates whether the checkbox has been interacted with.
|
|
217
|
+
* @private
|
|
218
|
+
*/
|
|
219
|
+
touched: {
|
|
220
|
+
type: Boolean,
|
|
221
|
+
reflect: true,
|
|
222
|
+
attribute: false
|
|
223
|
+
},
|
|
224
|
+
|
|
203
225
|
/**
|
|
204
226
|
* Sets the element's input value. Must be unique within an auro-checkbox-group element.
|
|
205
227
|
*/
|
|
206
228
|
value: {
|
|
207
229
|
type: String,
|
|
208
|
-
reflect:
|
|
230
|
+
reflect: false
|
|
209
231
|
},
|
|
210
232
|
|
|
211
233
|
/**
|
|
212
|
-
*
|
|
213
|
-
* @type {boolean}
|
|
234
|
+
* The tabindex attribute for the checkbox.
|
|
214
235
|
* @private
|
|
215
236
|
*/
|
|
216
|
-
|
|
217
|
-
type:
|
|
237
|
+
tabIndex: {
|
|
238
|
+
type: Number,
|
|
218
239
|
reflect: true,
|
|
219
|
-
attribute:
|
|
240
|
+
attribute: 'tabindex'
|
|
220
241
|
},
|
|
221
242
|
|
|
222
243
|
/**
|
|
223
|
-
* The
|
|
244
|
+
* The aria-checked attribute for the checkbox.
|
|
224
245
|
* @private
|
|
225
246
|
*/
|
|
226
|
-
|
|
247
|
+
ariaChecked: {
|
|
227
248
|
type: String,
|
|
228
|
-
reflect:
|
|
229
|
-
attribute:
|
|
230
|
-
}
|
|
249
|
+
reflect: true,
|
|
250
|
+
attribute: 'aria-checked'
|
|
251
|
+
},
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* The aria-disabled attribute for the checkbox.
|
|
255
|
+
* @private
|
|
256
|
+
*/
|
|
257
|
+
ariaDisabled: {
|
|
258
|
+
type: String,
|
|
259
|
+
reflect: true,
|
|
260
|
+
attribute: 'aria-disabled'
|
|
261
|
+
},
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* The ARIA role for the element. Must remain 'checkbox' for screen readers
|
|
265
|
+
* to correctly identify this as a checkbox control.
|
|
266
|
+
* @private
|
|
267
|
+
*/
|
|
268
|
+
role: {
|
|
269
|
+
type: String,
|
|
270
|
+
reflect: true
|
|
271
|
+
},
|
|
272
|
+
|
|
231
273
|
};
|
|
232
274
|
}
|
|
233
275
|
|
|
@@ -293,7 +335,7 @@ class AuroCheckbox extends LitElement {
|
|
|
293
335
|
/**
|
|
294
336
|
* Function to generate checkmark svg.
|
|
295
337
|
* @private
|
|
296
|
-
* @returns {
|
|
338
|
+
* @returns {HTMLElement}
|
|
297
339
|
*/
|
|
298
340
|
generateIconHtml() {
|
|
299
341
|
this.dom = new DOMParser().parseFromString(checkLg.svg, 'text/html');
|
|
@@ -314,6 +356,22 @@ class AuroCheckbox extends LitElement {
|
|
|
314
356
|
this.touched = false;
|
|
315
357
|
}
|
|
316
358
|
|
|
359
|
+
/**
|
|
360
|
+
* Updates the aria-label based on slot content.
|
|
361
|
+
* @private
|
|
362
|
+
* @returns {void}
|
|
363
|
+
*/
|
|
364
|
+
updateAriaLabel() {
|
|
365
|
+
const slot = this.shadowRoot.querySelector('slot');
|
|
366
|
+
const text = slot.assignedNodes().
|
|
367
|
+
map((node) => node.textContent).
|
|
368
|
+
join('').
|
|
369
|
+
trim();
|
|
370
|
+
if (text) {
|
|
371
|
+
this.setAttribute('aria-label', text);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
317
375
|
firstUpdated() {
|
|
318
376
|
// Add the tag name as an attribute if it is different than the component name
|
|
319
377
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-checkbox');
|
|
@@ -358,6 +416,24 @@ class AuroCheckbox extends LitElement {
|
|
|
358
416
|
this.removeEventListener('keydown', this.handleKeyDown);
|
|
359
417
|
}
|
|
360
418
|
|
|
419
|
+
/**
|
|
420
|
+
* Updates ARIA attributes when properties change.
|
|
421
|
+
* @private
|
|
422
|
+
* @param {Map} changedProperties - Map of changed properties.
|
|
423
|
+
* @returns {void}
|
|
424
|
+
*/
|
|
425
|
+
updated(changedProperties) {
|
|
426
|
+
super.updated(changedProperties);
|
|
427
|
+
|
|
428
|
+
if (changedProperties.has('checked')) {
|
|
429
|
+
this.ariaChecked = this.checked ? 'true' : 'false';
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
if (changedProperties.has('disabled')) {
|
|
433
|
+
this.ariaDisabled = this.disabled ? 'true' : undefined;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
|
|
361
437
|
/**
|
|
362
438
|
* Handles keydown event to toggle the checkbox with Space key.
|
|
363
439
|
* @private
|
|
@@ -387,7 +463,7 @@ class AuroCheckbox extends LitElement {
|
|
|
387
463
|
<div class="cbxContainer body-default" part="checkbox">
|
|
388
464
|
<div class="inputContainer">
|
|
389
465
|
<input
|
|
390
|
-
class="
|
|
466
|
+
class="util_displayHidden cbx--input"
|
|
391
467
|
part="checkbox-input"
|
|
392
468
|
@change="${this.handleChange}"
|
|
393
469
|
@input="${this.handleInput}"
|
|
@@ -397,13 +473,15 @@ class AuroCheckbox extends LitElement {
|
|
|
397
473
|
name="${ifDefined(this.name)}"
|
|
398
474
|
type="checkbox"
|
|
399
475
|
.value="${this.value}"
|
|
476
|
+
aria-hidden="true"
|
|
477
|
+
tabindex="-1"
|
|
400
478
|
/>
|
|
401
479
|
${this.checked ? this.generateIconHtml() : undefined}
|
|
402
480
|
</div>
|
|
403
481
|
|
|
404
|
-
<
|
|
405
|
-
<slot></slot>
|
|
406
|
-
</
|
|
482
|
+
<span class="${classMap(labelClasses)}" part="checkbox-label">
|
|
483
|
+
<slot @slotchange="${this.updateAriaLabel}"></slot>
|
|
484
|
+
</span>
|
|
407
485
|
</div>
|
|
408
486
|
`;
|
|
409
487
|
}
|
|
@@ -1552,14 +1630,15 @@ class AuroHelpText extends LitElement {
|
|
|
1552
1630
|
}
|
|
1553
1631
|
}
|
|
1554
1632
|
|
|
1555
|
-
var formkitVersion = '
|
|
1633
|
+
var formkitVersion = '202601271813';
|
|
1556
1634
|
|
|
1557
|
-
// Copyright (c)
|
|
1635
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1558
1636
|
// See LICENSE in the project root for license information.
|
|
1559
1637
|
|
|
1560
1638
|
|
|
1561
1639
|
/**
|
|
1562
|
-
* The auro-checkbox-group element is a wrapper for auro-checkbox
|
|
1640
|
+
* The `auro-checkbox-group` element is a wrapper for `auro-checkbox` elements.
|
|
1641
|
+
* @customElement auro-checkbox-group
|
|
1563
1642
|
*
|
|
1564
1643
|
* @slot {HTMLSlotElement} legend - Allows for the legend to be overridden.
|
|
1565
1644
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
@@ -1571,6 +1650,10 @@ class AuroCheckboxGroup extends LitElement {
|
|
|
1571
1650
|
constructor() {
|
|
1572
1651
|
super();
|
|
1573
1652
|
|
|
1653
|
+
this._initializeDefaults();
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
_initializeDefaults() {
|
|
1574
1657
|
this.appearance = 'default';
|
|
1575
1658
|
this.validity = undefined;
|
|
1576
1659
|
this.disabled = undefined;
|
|
@@ -1636,7 +1719,7 @@ class AuroCheckboxGroup extends LitElement {
|
|
|
1636
1719
|
|
|
1637
1720
|
/**
|
|
1638
1721
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
1639
|
-
* @
|
|
1722
|
+
* @type {'default' | 'inverse'}
|
|
1640
1723
|
* @default 'default'
|
|
1641
1724
|
*/
|
|
1642
1725
|
appearance: {
|
|
@@ -1677,7 +1760,7 @@ class AuroCheckboxGroup extends LitElement {
|
|
|
1677
1760
|
},
|
|
1678
1761
|
|
|
1679
1762
|
/**
|
|
1680
|
-
* DEPRECATED - use `appearance` instead.
|
|
1763
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
1681
1764
|
*/
|
|
1682
1765
|
onDark: {
|
|
1683
1766
|
type: Boolean,
|
|
@@ -1725,7 +1808,7 @@ class AuroCheckboxGroup extends LitElement {
|
|
|
1725
1808
|
|
|
1726
1809
|
/**
|
|
1727
1810
|
* This will register this element with the browser.
|
|
1728
|
-
* @param {string} [name="auro-checkbox-group"] - The name of element that you want to register
|
|
1811
|
+
* @param {string} [name="auro-checkbox-group"] - The name of the element that you want to register.
|
|
1729
1812
|
*
|
|
1730
1813
|
* @example
|
|
1731
1814
|
* AuroCheckboxGroup.register("custom-checkbox-group") // this will register this element to <custom-checkbox-group/>
|