@aurodesignsystem/auro-formkit 2.2.1-beta.3 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +68 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +18 -178
- package/components/bibtemplate/dist/registered.js +18 -178
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.html +2 -1
- package/components/checkbox/demo/api.md +129 -58
- package/components/checkbox/demo/api.min.js +41 -8
- package/components/checkbox/demo/index.html +2 -1
- package/components/checkbox/demo/index.md +116 -50
- package/components/checkbox/demo/index.min.js +41 -8
- package/components/checkbox/demo/readme.html +2 -1
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts +8 -0
- package/components/checkbox/dist/auro-checkbox.d.ts +8 -0
- package/components/checkbox/dist/index.js +41 -8
- package/components/checkbox/dist/registered.js +41 -8
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.html +2 -1
- package/components/combobox/demo/api.md +102 -1
- package/components/combobox/demo/api.min.js +238 -988
- package/components/combobox/demo/index.html +2 -4
- package/components/combobox/demo/index.md +32 -0
- package/components/combobox/demo/index.min.js +238 -988
- package/components/combobox/demo/readme.html +2 -1
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/auro-combobox.d.ts +8 -0
- package/components/combobox/dist/index.js +196 -786
- package/components/combobox/dist/registered.js +196 -786
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.html +2 -1
- package/components/counter/demo/api.md +29 -10
- package/components/counter/demo/api.min.js +187 -785
- package/components/counter/demo/index.html +2 -1
- package/components/counter/demo/index.md +104 -8
- package/components/counter/demo/index.min.js +187 -785
- package/components/counter/demo/readme.html +2 -1
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/auro-counter-group.d.ts +10 -2
- package/components/counter/dist/auro-counter.d.ts +1 -0
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +187 -785
- package/components/counter/dist/registered.js +187 -785
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.html +2 -4
- package/components/datepicker/demo/api.md +15 -14
- package/components/datepicker/demo/api.min.js +286 -1036
- package/components/datepicker/demo/index.html +2 -4
- package/components/datepicker/demo/index.md +38 -0
- package/components/datepicker/demo/index.min.js +286 -1036
- package/components/datepicker/demo/readme.html +2 -1
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +8 -0
- package/components/datepicker/dist/index.js +286 -1036
- package/components/datepicker/dist/registered.js +286 -1036
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.html +2 -1
- package/components/dropdown/demo/api.md +173 -82
- package/components/dropdown/demo/api.min.js +41 -183
- package/components/dropdown/demo/index.html +2 -1
- package/components/dropdown/demo/index.md +86 -4
- package/components/dropdown/demo/index.min.js +41 -183
- package/components/dropdown/demo/readme.html +2 -1
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +8 -0
- package/components/dropdown/dist/auro-dropdownBib.d.ts +2 -2
- package/components/dropdown/dist/index.js +41 -183
- package/components/dropdown/dist/registered.js +41 -183
- package/components/form/README.md +1 -1
- package/components/form/demo/api.html +2 -1
- package/components/form/demo/api.min.js +1 -1
- package/components/form/demo/index.html +2 -1
- package/components/form/demo/index.min.js +1 -1
- package/components/form/demo/readme.html +2 -1
- package/components/form/demo/readme.md +1 -1
- package/components/form/demo/working.html +2 -1
- package/components/form/dist/index.js +1 -1
- package/components/form/dist/registered.js +1 -1
- package/components/helptext/dist/auro-helptext.d.ts +8 -0
- package/components/helptext/dist/index.js +11 -2
- package/components/helptext/dist/registered.js +11 -2
- package/components/input/README.md +1 -1
- package/components/input/demo/api.html +2 -1
- package/components/input/demo/api.js +2 -0
- package/components/input/demo/api.md +108 -18
- package/components/input/demo/api.min.js +117 -402
- package/components/input/demo/index.html +2 -1
- package/components/input/demo/index.md +30 -0
- package/components/input/demo/index.min.js +103 -402
- package/components/input/demo/readme.html +2 -1
- package/components/input/demo/readme.md +1 -1
- package/components/input/dist/base-input.d.ts +8 -0
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +103 -402
- package/components/input/dist/registered.js +103 -402
- package/components/menu/README.md +1 -1
- package/components/menu/demo/api.html +2 -1
- package/components/menu/demo/api.md +6 -2
- package/components/menu/demo/api.min.js +23 -183
- package/components/menu/demo/index.html +2 -1
- package/components/menu/demo/index.min.js +23 -183
- package/components/menu/demo/readme.html +2 -1
- package/components/menu/demo/readme.md +1 -1
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +23 -183
- package/components/menu/dist/registered.js +23 -183
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.html +2 -1
- package/components/radio/demo/api.md +160 -56
- package/components/radio/demo/api.min.js +35 -8
- package/components/radio/demo/index.html +2 -1
- package/components/radio/demo/index.md +43 -12
- package/components/radio/demo/index.min.js +35 -8
- package/components/radio/demo/readme.html +2 -1
- package/components/radio/demo/readme.md +1 -1
- package/components/radio/dist/auro-radio-group.d.ts +6 -0
- package/components/radio/dist/auro-radio.d.ts +6 -0
- package/components/radio/dist/index.js +35 -8
- package/components/radio/dist/registered.js +35 -8
- package/components/select/README.md +1 -1
- package/components/select/demo/api.html +2 -1
- package/components/select/demo/api.js +0 -2
- package/components/select/demo/api.md +112 -35
- package/components/select/demo/api.min.js +116 -589
- package/components/select/demo/index.html +2 -1
- package/components/select/demo/index.md +100 -0
- package/components/select/demo/index.min.js +116 -576
- package/components/select/demo/readme.html +2 -1
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/auro-select.d.ts +8 -0
- package/components/select/dist/index.js +91 -391
- package/components/select/dist/registered.js +91 -391
- package/package.json +23 -23
- package/components/counter/dist/styles/counter-button-tokens-css.d.ts +0 -2
- package/components/select/dist/styles/color-css.d.ts +0 -2
- package/components/select/dist/styles/tokens-css.d.ts +0 -2
|
@@ -51,11 +51,11 @@ const t={ATTRIBUTE:1},e$1=t=>(...e)=>({_$litDirective$:t,values:e});let i$1 = cl
|
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
52
|
*/const o$1=o=>o??E;
|
|
53
53
|
|
|
54
|
-
var styleCss$2 = i$5
|
|
54
|
+
var styleCss$2 = i$5`: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}: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;padding-left:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-100, 0.5rem);line-height:var(--ds-size-400, 2rem)}.cbx--input:disabled+label:hover{cursor:auto}.label{margin-left:var(--ds-size-300, 1.5rem);display:block}.label:hover{cursor:pointer}.label--cbx:after{-webkit-tap-highlight-color:transparent;position:absolute;content:"";top:50%;left: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));transform:translateY(-50%);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;top:var(--ds-size-25, 0.125rem);left:var(--ds-size-25, 0.125rem);padding-top:3px;padding-bottom:3px;z-index:1}`;
|
|
55
55
|
|
|
56
|
-
var colorCss$2 = i$5`:host .label{color:var(--ds-auro-checkbox-label-color)}:host .label--cbx: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 .label--cbx:hover{--ds-auro-checkbox-container-color: var(--ds-color-
|
|
56
|
+
var colorCss$2 = i$5`:host .label{color:var(--ds-auro-checkbox-label-color)}:host .label--cbx: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 .label--cbx: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]) .label--cbx: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) .label--cbx: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]) .label--cbx: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]) .label--cbx: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]) .label--cbx: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) .label--cbx: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]){--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]) .label--cbx:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse-inverse-hover, rgba(255, 255, 255, 0.2))}:host([onDark]: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]){--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]) .label--cbx: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){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([onDark][checked]:focus-within) .label--cbx: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]){--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]) .label--cbx: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]){--ds-auro-checkbox-container-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894)}:host([onDark][disabled][checked]) .label--cbx:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894)}:host([onDark][error]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error-inverse, #f9a4a8)}:host([onDark][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]){--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]) .label--cbx: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){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([onDark][error][checked]:focus-within) .label--cbx: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)}`;
|
|
57
57
|
|
|
58
|
-
var tokensCss$1 = i$5`:host{--ds-auro-checkbox-border-color: var(--ds-color-border-
|
|
58
|
+
var tokensCss$1 = i$5`:host{--ds-auro-checkbox-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-checkbox-checkmark-color: var(--ds-advanced-color-boolean-indicator, #ffffff);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse, #ffffff);--ds-auro-checkbox-label-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-checkbox-outline-color: transparent;--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
|
|
59
59
|
|
|
60
60
|
var checkLg = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-hidden=\"true\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><path d=\"M5.321 12.514a.75.75 0 0 0-1.142.972l4.25 5a.75.75 0 0 0 1.141.001l10.25-12a.75.75 0 1 0-1.14-.975L9 16.844z\"/></svg>"};
|
|
61
61
|
|
|
@@ -148,6 +148,7 @@ class AuroCheckbox extends r {
|
|
|
148
148
|
this.checked = false;
|
|
149
149
|
this.disabled = false;
|
|
150
150
|
this.error = false;
|
|
151
|
+
this.onDark = false;
|
|
151
152
|
|
|
152
153
|
/**
|
|
153
154
|
* @private
|
|
@@ -201,6 +202,14 @@ class AuroCheckbox extends r {
|
|
|
201
202
|
*/
|
|
202
203
|
name: { type: String },
|
|
203
204
|
|
|
205
|
+
/**
|
|
206
|
+
* Sets onDark styles for component.
|
|
207
|
+
*/
|
|
208
|
+
onDark: {
|
|
209
|
+
type: Boolean,
|
|
210
|
+
reflect: true
|
|
211
|
+
},
|
|
212
|
+
|
|
204
213
|
/**
|
|
205
214
|
* Sets the element's input value. Must be unique within an auro-checkbox-group element.
|
|
206
215
|
*/
|
|
@@ -691,13 +700,13 @@ class AuroDependencyVersioning {
|
|
|
691
700
|
|
|
692
701
|
var styleCss$1 = i$5`:host{display:block;padding-bottom:var(--ds-size-150, 0.75rem)}.displayFlex legend+slot{display:flex;white-space:nowrap}fieldset{all:unset}legend{margin-bottom:var(--ds-size-150, 0.75rem)}`;
|
|
693
702
|
|
|
694
|
-
var colorCss$1 = i$5`:host{color:var(--ds-auro-checkbox-group-text-color)}:host([disabled]){--ds-auro-checkbox-group-text-color: var(--ds-color-text-
|
|
703
|
+
var colorCss$1 = i$5`:host{color:var(--ds-auro-checkbox-group-text-color)}:host([disabled]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([onDark]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
695
704
|
|
|
696
|
-
var colorCss = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-color-
|
|
705
|
+
var colorCss = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
697
706
|
|
|
698
707
|
var styleCss = i$5`.helptext-wrapper{display:none;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}:host([large]) .helptext-wrapper{font-size:var(--ds-text-body-size-default, 1rem)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
699
708
|
|
|
700
|
-
var tokensCss = i$5`:host{--ds-auro-helptext-color: var(--ds-color-
|
|
709
|
+
var tokensCss = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
701
710
|
|
|
702
711
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
703
712
|
// See LICENSE in the project root for license information.
|
|
@@ -784,6 +793,7 @@ class AuroHelpText extends r {
|
|
|
784
793
|
super();
|
|
785
794
|
|
|
786
795
|
this.error = false;
|
|
796
|
+
this.onDark = false;
|
|
787
797
|
this.hasTextContent = false;
|
|
788
798
|
|
|
789
799
|
AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
@@ -822,6 +832,14 @@ class AuroHelpText extends r {
|
|
|
822
832
|
type: Boolean,
|
|
823
833
|
reflect: true,
|
|
824
834
|
},
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* If declared, will apply onDark styles.
|
|
838
|
+
*/
|
|
839
|
+
onDark: {
|
|
840
|
+
type: Boolean,
|
|
841
|
+
reflect: true
|
|
842
|
+
}
|
|
825
843
|
};
|
|
826
844
|
}
|
|
827
845
|
|
|
@@ -913,6 +931,7 @@ class AuroCheckboxGroup extends r {
|
|
|
913
931
|
this.disabled = undefined;
|
|
914
932
|
this.required = false;
|
|
915
933
|
this.horizontal = false;
|
|
934
|
+
this.onDark = false;
|
|
916
935
|
|
|
917
936
|
/**
|
|
918
937
|
* @private
|
|
@@ -993,6 +1012,14 @@ class AuroCheckboxGroup extends r {
|
|
|
993
1012
|
reflect: true
|
|
994
1013
|
},
|
|
995
1014
|
|
|
1015
|
+
/**
|
|
1016
|
+
* Sets onDark styles for component.
|
|
1017
|
+
*/
|
|
1018
|
+
onDark: {
|
|
1019
|
+
type: Boolean,
|
|
1020
|
+
reflect: true
|
|
1021
|
+
},
|
|
1022
|
+
|
|
996
1023
|
/**
|
|
997
1024
|
* Populates the `required` attribute on the element. Used for client-side validation.
|
|
998
1025
|
*/
|
|
@@ -1210,6 +1237,12 @@ class AuroCheckboxGroup extends r {
|
|
|
1210
1237
|
}
|
|
1211
1238
|
}
|
|
1212
1239
|
|
|
1240
|
+
if (changedProperties.has('onDark')) {
|
|
1241
|
+
this.checkboxes.forEach((el) => {
|
|
1242
|
+
el.onDark = this.onDark;
|
|
1243
|
+
});
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1213
1246
|
if (changedProperties.has('error')) {
|
|
1214
1247
|
if (this.error) {
|
|
1215
1248
|
this.setAttribute('aria-invalid', true);
|
|
@@ -1245,11 +1278,11 @@ class AuroCheckboxGroup extends r {
|
|
|
1245
1278
|
|
|
1246
1279
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
1247
1280
|
? u`
|
|
1248
|
-
<${this.helpTextTag} large part="helpText">
|
|
1281
|
+
<${this.helpTextTag} large part="helpText" ?onDark="${this.onDark}">
|
|
1249
1282
|
<slot name="helpText"></slot>
|
|
1250
1283
|
</${this.helpTextTag}>`
|
|
1251
1284
|
: u`
|
|
1252
|
-
<${this.helpTextTag} error large role="alert" aria-live="assertive" part="helpText">
|
|
1285
|
+
<${this.helpTextTag} error large ?onDark="${this.onDark}" role="alert" aria-live="assertive" part="helpText">
|
|
1253
1286
|
${this.errorMessage}
|
|
1254
1287
|
</${this.helpTextTag}>`
|
|
1255
1288
|
}
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
type="text/css"
|
|
23
23
|
href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"
|
|
24
24
|
/>
|
|
25
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/
|
|
25
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css">
|
|
26
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/alaska/CSSCustomProperties--alaska.css">
|
|
26
27
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
|
|
27
28
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
|
|
28
29
|
</head>
|
|
@@ -39,6 +39,18 @@ The `<auro-checkbox>` element should be used in situations where users may:
|
|
|
39
39
|
</auro-checkbox-group>
|
|
40
40
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
41
41
|
</div>
|
|
42
|
+
<div class="exampleWrapper--ondark" aria-hidden>
|
|
43
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDark.html) -->
|
|
44
|
+
<!-- The below content is automatically added from ./../apiExamples/onDark.html -->
|
|
45
|
+
<auro-checkbox-group onDark>
|
|
46
|
+
<span slot="legend">Form label goes here</span>
|
|
47
|
+
<auro-checkbox value="value1" name="basic" id="checkbox-basic1">Checkbox option</auro-checkbox>
|
|
48
|
+
<auro-checkbox value="value2" name="basic" id="checkbox-basic2" checked>Checkbox option</auro-checkbox>
|
|
49
|
+
<auro-checkbox value="value3" name="basic" id="checkbox-basic3">Checkbox option</auro-checkbox>
|
|
50
|
+
<auro-checkbox value="value4" name="basic" id="checkbox-basic4">Checkbox option</auro-checkbox>
|
|
51
|
+
</auro-checkbox-group>
|
|
52
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
53
|
+
</div>
|
|
42
54
|
<auro-accordion alignRight>
|
|
43
55
|
<span slot="trigger">See code</span>
|
|
44
56
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
@@ -54,45 +66,22 @@ The `<auro-checkbox>` element should be used in situations where users may:
|
|
|
54
66
|
</auro-checkbox-group>
|
|
55
67
|
```
|
|
56
68
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
69
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDark.html) -->
|
|
70
|
+
<!-- The below content is automatically added from ./../apiExamples/onDark.html -->
|
|
71
|
+
<auro-checkbox-group onDark>
|
|
72
|
+
<span slot="legend">Form label goes here</span>
|
|
73
|
+
<auro-checkbox value="value1" name="basic" id="checkbox-basic1">Checkbox option</auro-checkbox>
|
|
74
|
+
<auro-checkbox value="value2" name="basic" id="checkbox-basic2" checked>Checkbox option</auro-checkbox>
|
|
75
|
+
<auro-checkbox value="value3" name="basic" id="checkbox-basic3">Checkbox option</auro-checkbox>
|
|
76
|
+
<auro-checkbox value="value4" name="basic" id="checkbox-basic4">Checkbox option</auro-checkbox>
|
|
77
|
+
</auro-checkbox-group>
|
|
78
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
57
79
|
</auro-accordion>
|
|
58
80
|
|
|
59
81
|
### Disabled
|
|
60
82
|
|
|
61
83
|
Use the `disabled` attribute to disable individual `<auro-checkbox>` elements or the entire `<auro-checkbox-group>`.
|
|
62
84
|
|
|
63
|
-
#### Disabled Group
|
|
64
|
-
|
|
65
|
-
The `disabled` attribute used to disable the entire `<auro-checkbox-group>`.
|
|
66
|
-
|
|
67
|
-
<div class="exampleWrapper">
|
|
68
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabledGroup.html) -->
|
|
69
|
-
<!-- The below content is automatically added from ./../apiExamples/disabledGroup.html -->
|
|
70
|
-
<auro-checkbox-group disabled>
|
|
71
|
-
<span slot="legend">Form label goes here</span>
|
|
72
|
-
<auro-checkbox value="disabled-value1" name="disabledGroup" id="checkbox-disabledGroup1">Disabled checkbox option</auro-checkbox>
|
|
73
|
-
<auro-checkbox value="disabled-value2" name="disabledGroup" id="checkbox-disabledGroup2" checked>Disabled checkbox option</auro-checkbox>
|
|
74
|
-
<auro-checkbox value="disabled-value3" name="disabledGroup" id="checkbox-disabledGroup3">Disabled checkbox option</auro-checkbox>
|
|
75
|
-
<auro-checkbox value="disabled-value4" name="disabledGroup" id="checkbox-disabledGroup4">Disabled checkbox option</auro-checkbox>
|
|
76
|
-
</auro-checkbox-group>
|
|
77
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
78
|
-
</div>
|
|
79
|
-
<auro-accordion alignRight>
|
|
80
|
-
<span slot="trigger">See code</span>
|
|
81
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabledGroup.html) -->
|
|
82
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/disabledGroup.html -->
|
|
83
|
-
|
|
84
|
-
```html
|
|
85
|
-
<auro-checkbox-group disabled>
|
|
86
|
-
<span slot="legend">Form label goes here</span>
|
|
87
|
-
<auro-checkbox value="disabled-value1" name="disabledGroup" id="checkbox-disabledGroup1">Disabled checkbox option</auro-checkbox>
|
|
88
|
-
<auro-checkbox value="disabled-value2" name="disabledGroup" id="checkbox-disabledGroup2" checked>Disabled checkbox option</auro-checkbox>
|
|
89
|
-
<auro-checkbox value="disabled-value3" name="disabledGroup" id="checkbox-disabledGroup3">Disabled checkbox option</auro-checkbox>
|
|
90
|
-
<auro-checkbox value="disabled-value4" name="disabledGroup" id="checkbox-disabledGroup4">Disabled checkbox option</auro-checkbox>
|
|
91
|
-
</auro-checkbox-group>
|
|
92
|
-
```
|
|
93
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
94
|
-
</auro-accordion>
|
|
95
|
-
|
|
96
85
|
#### Disabled Checkbox within Group
|
|
97
86
|
|
|
98
87
|
The `disabled` attribute used to disable a single `<auro-checkbox>` element.
|
|
@@ -126,37 +115,59 @@ The `disabled` attribute used to disable a single `<auro-checkbox>` element.
|
|
|
126
115
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
127
116
|
</auro-accordion>
|
|
128
117
|
|
|
129
|
-
####
|
|
118
|
+
#### Disabled Group
|
|
130
119
|
|
|
131
|
-
|
|
120
|
+
The `disabled` attribute used to disable the entire `<auro-checkbox-group>`.
|
|
132
121
|
|
|
133
122
|
<div class="exampleWrapper">
|
|
134
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
135
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
136
|
-
<auro-checkbox-group
|
|
123
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabledGroup.html) -->
|
|
124
|
+
<!-- The below content is automatically added from ./../apiExamples/disabledGroup.html -->
|
|
125
|
+
<auro-checkbox-group disabled>
|
|
137
126
|
<span slot="legend">Form label goes here</span>
|
|
138
|
-
<auro-checkbox value="value1" name="
|
|
139
|
-
<auro-checkbox value="value2" name="
|
|
140
|
-
<auro-checkbox value="value3" name="
|
|
141
|
-
<auro-checkbox value="value4" name="
|
|
127
|
+
<auro-checkbox value="disabled-value1" name="disabledGroup" id="checkbox-disabledGroup1">Disabled checkbox option</auro-checkbox>
|
|
128
|
+
<auro-checkbox value="disabled-value2" name="disabledGroup" id="checkbox-disabledGroup2" checked>Disabled checkbox option</auro-checkbox>
|
|
129
|
+
<auro-checkbox value="disabled-value3" name="disabledGroup" id="checkbox-disabledGroup3">Disabled checkbox option</auro-checkbox>
|
|
130
|
+
<auro-checkbox value="disabled-value4" name="disabledGroup" id="checkbox-disabledGroup4">Disabled checkbox option</auro-checkbox>
|
|
142
131
|
</auro-checkbox-group>
|
|
143
132
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
144
|
-
</div>
|
|
133
|
+
</div>
|
|
134
|
+
<div class="exampleWrapper--ondark" aria-hidden>
|
|
135
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
|
|
136
|
+
<!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
|
|
137
|
+
<auro-checkbox-group onDark disabled>
|
|
138
|
+
<span slot="legend">Form label goes here</span>
|
|
139
|
+
<auro-checkbox value="disabled-value1" name="disabledGroup" id="checkbox-disabledGroup1">Disabled checkbox option</auro-checkbox>
|
|
140
|
+
<auro-checkbox value="disabled-value2" name="disabledGroup" id="checkbox-disabledGroup2" checked>Disabled checkbox option</auro-checkbox>
|
|
141
|
+
<auro-checkbox value="disabled-value3" name="disabledGroup" id="checkbox-disabledGroup3">Disabled checkbox option</auro-checkbox>
|
|
142
|
+
<auro-checkbox value="disabled-value4" name="disabledGroup" id="checkbox-disabledGroup4">Disabled checkbox option</auro-checkbox>
|
|
143
|
+
</auro-checkbox-group>
|
|
144
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
145
|
+
</div>
|
|
145
146
|
<auro-accordion alignRight>
|
|
146
147
|
<span slot="trigger">See code</span>
|
|
147
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
148
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
148
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabledGroup.html) -->
|
|
149
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/disabledGroup.html -->
|
|
149
150
|
|
|
150
151
|
```html
|
|
151
|
-
<auro-checkbox-group
|
|
152
|
+
<auro-checkbox-group disabled>
|
|
152
153
|
<span slot="legend">Form label goes here</span>
|
|
153
|
-
<auro-checkbox value="value1" name="
|
|
154
|
-
<auro-checkbox value="value2" name="
|
|
155
|
-
<auro-checkbox value="value3" name="
|
|
156
|
-
<auro-checkbox value="value4" name="
|
|
154
|
+
<auro-checkbox value="disabled-value1" name="disabledGroup" id="checkbox-disabledGroup1">Disabled checkbox option</auro-checkbox>
|
|
155
|
+
<auro-checkbox value="disabled-value2" name="disabledGroup" id="checkbox-disabledGroup2" checked>Disabled checkbox option</auro-checkbox>
|
|
156
|
+
<auro-checkbox value="disabled-value3" name="disabledGroup" id="checkbox-disabledGroup3">Disabled checkbox option</auro-checkbox>
|
|
157
|
+
<auro-checkbox value="disabled-value4" name="disabledGroup" id="checkbox-disabledGroup4">Disabled checkbox option</auro-checkbox>
|
|
157
158
|
</auro-checkbox-group>
|
|
158
159
|
```
|
|
159
160
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
161
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
|
|
162
|
+
<!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
|
|
163
|
+
<auro-checkbox-group onDark disabled>
|
|
164
|
+
<span slot="legend">Form label goes here</span>
|
|
165
|
+
<auro-checkbox value="disabled-value1" name="disabledGroup" id="checkbox-disabledGroup1">Disabled checkbox option</auro-checkbox>
|
|
166
|
+
<auro-checkbox value="disabled-value2" name="disabledGroup" id="checkbox-disabledGroup2" checked>Disabled checkbox option</auro-checkbox>
|
|
167
|
+
<auro-checkbox value="disabled-value3" name="disabledGroup" id="checkbox-disabledGroup3">Disabled checkbox option</auro-checkbox>
|
|
168
|
+
<auro-checkbox value="disabled-value4" name="disabledGroup" id="checkbox-disabledGroup4">Disabled checkbox option</auro-checkbox>
|
|
169
|
+
</auro-checkbox-group>
|
|
170
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
160
171
|
</auro-accordion>
|
|
161
172
|
|
|
162
173
|
### Error
|
|
@@ -179,6 +190,18 @@ The `error` attribute used to set error state on the entire `<auro-checkbox-grou
|
|
|
179
190
|
</auro-checkbox-group>
|
|
180
191
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
181
192
|
</div>
|
|
193
|
+
<div class="exampleWrapper--ondark" aria-hidden>
|
|
194
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
|
|
195
|
+
<!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
|
|
196
|
+
<auro-checkbox-group onDark error="custom error">
|
|
197
|
+
<span slot="legend">Form label goes here</span>
|
|
198
|
+
<auro-checkbox value="error-value1" name="error" id="checkbox-errorGroup1">Error checkbox option</auro-checkbox>
|
|
199
|
+
<auro-checkbox value="error-value2" name="error" id="checkbox-errorGroup2">Error checkbox option</auro-checkbox>
|
|
200
|
+
<auro-checkbox value="error-value3" name="error" id="checkbox-errorGroup3">Error checkbox option</auro-checkbox>
|
|
201
|
+
<auro-checkbox value="error-value4" name="error" id="checkbox-errorGroup4" checked>Error checkbox option</auro-checkbox>
|
|
202
|
+
</auro-checkbox-group>
|
|
203
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
204
|
+
</div>
|
|
182
205
|
<auro-accordion alignRight>
|
|
183
206
|
<span slot="trigger">See code</span>
|
|
184
207
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/errorGroup.html) -->
|
|
@@ -194,6 +217,49 @@ The `error` attribute used to set error state on the entire `<auro-checkbox-grou
|
|
|
194
217
|
</auro-checkbox-group>
|
|
195
218
|
```
|
|
196
219
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
220
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
|
|
221
|
+
<!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
|
|
222
|
+
<auro-checkbox-group onDark error="custom error">
|
|
223
|
+
<span slot="legend">Form label goes here</span>
|
|
224
|
+
<auro-checkbox value="error-value1" name="error" id="checkbox-errorGroup1">Error checkbox option</auro-checkbox>
|
|
225
|
+
<auro-checkbox value="error-value2" name="error" id="checkbox-errorGroup2">Error checkbox option</auro-checkbox>
|
|
226
|
+
<auro-checkbox value="error-value3" name="error" id="checkbox-errorGroup3">Error checkbox option</auro-checkbox>
|
|
227
|
+
<auro-checkbox value="error-value4" name="error" id="checkbox-errorGroup4" checked>Error checkbox option</auro-checkbox>
|
|
228
|
+
</auro-checkbox-group>
|
|
229
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
230
|
+
</auro-accordion>
|
|
231
|
+
|
|
232
|
+
#### Required Group
|
|
233
|
+
|
|
234
|
+
When present, the `required` attribute specifies that at least one or more `<auro-checkbox>` elements within the `<auro-checkbox-group>` must be checked.
|
|
235
|
+
|
|
236
|
+
<div class="exampleWrapper">
|
|
237
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
|
|
238
|
+
<!-- The below content is automatically added from ./../apiExamples/required.html -->
|
|
239
|
+
<auro-checkbox-group required setCustomValidityValueMissing="Please select an option">
|
|
240
|
+
<span slot="legend">Form label goes here</span>
|
|
241
|
+
<auro-checkbox value="value1" name="required" id="checkbox-required1">Checkbox option</auro-checkbox>
|
|
242
|
+
<auro-checkbox value="value2" name="required" id="checkbox-required2">Checkbox option</auro-checkbox>
|
|
243
|
+
<auro-checkbox value="value3" name="required" id="checkbox-required3">Checkbox option</auro-checkbox>
|
|
244
|
+
<auro-checkbox value="value4" name="required" id="checkbox-required4">Checkbox option</auro-checkbox>
|
|
245
|
+
</auro-checkbox-group>
|
|
246
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
247
|
+
</div>
|
|
248
|
+
<auro-accordion alignRight>
|
|
249
|
+
<span slot="trigger">See code</span>
|
|
250
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/required.html) -->
|
|
251
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/required.html -->
|
|
252
|
+
|
|
253
|
+
```html
|
|
254
|
+
<auro-checkbox-group required setCustomValidityValueMissing="Please select an option">
|
|
255
|
+
<span slot="legend">Form label goes here</span>
|
|
256
|
+
<auro-checkbox value="value1" name="required" id="checkbox-required1">Checkbox option</auro-checkbox>
|
|
257
|
+
<auro-checkbox value="value2" name="required" id="checkbox-required2">Checkbox option</auro-checkbox>
|
|
258
|
+
<auro-checkbox value="value3" name="required" id="checkbox-required3">Checkbox option</auro-checkbox>
|
|
259
|
+
<auro-checkbox value="value4" name="required" id="checkbox-required4">Checkbox option</auro-checkbox>
|
|
260
|
+
</auro-checkbox-group>
|
|
261
|
+
```
|
|
262
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
197
263
|
</auro-accordion>
|
|
198
264
|
|
|
199
265
|
### Horizontal Group
|
|
@@ -43,11 +43,11 @@ const t={ATTRIBUTE:1},e$1=t=>(...e)=>({_$litDirective$:t,values:e});let i$1 = cl
|
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
44
|
*/const o$1=o=>o??E;
|
|
45
45
|
|
|
46
|
-
var styleCss$2 = i$5
|
|
46
|
+
var styleCss$2 = i$5`: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}: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;padding-left:var(--ds-size-100, 0.5rem);padding-right:var(--ds-size-100, 0.5rem);line-height:var(--ds-size-400, 2rem)}.cbx--input:disabled+label:hover{cursor:auto}.label{margin-left:var(--ds-size-300, 1.5rem);display:block}.label:hover{cursor:pointer}.label--cbx:after{-webkit-tap-highlight-color:transparent;position:absolute;content:"";top:50%;left: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));transform:translateY(-50%);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;top:var(--ds-size-25, 0.125rem);left:var(--ds-size-25, 0.125rem);padding-top:3px;padding-bottom:3px;z-index:1}`;
|
|
47
47
|
|
|
48
|
-
var colorCss$2 = i$5`:host .label{color:var(--ds-auro-checkbox-label-color)}:host .label--cbx: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 .label--cbx:hover{--ds-auro-checkbox-container-color: var(--ds-color-
|
|
48
|
+
var colorCss$2 = i$5`:host .label{color:var(--ds-auro-checkbox-label-color)}:host .label--cbx: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 .label--cbx: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]) .label--cbx: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) .label--cbx: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]) .label--cbx: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]) .label--cbx: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]) .label--cbx: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) .label--cbx: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]){--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]) .label--cbx:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse-inverse-hover, rgba(255, 255, 255, 0.2))}:host([onDark]: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]){--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]) .label--cbx: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){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([onDark][checked]:focus-within) .label--cbx: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]){--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]) .label--cbx: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]){--ds-auro-checkbox-container-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894)}:host([onDark][disabled][checked]) .label--cbx:hover{--ds-auro-checkbox-container-color: var(--ds-advanced-color-state-background-inverse-disabled, #7e8894)}:host([onDark][error]){--ds-auro-checkbox-border-color: var(--ds-advanced-color-boolean-error-inverse, #f9a4a8)}:host([onDark][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]){--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]) .label--cbx: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){--ds-auro-checkbox-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([onDark][error][checked]:focus-within) .label--cbx: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)}`;
|
|
49
49
|
|
|
50
|
-
var tokensCss$1 = i$5`:host{--ds-auro-checkbox-border-color: var(--ds-color-border-
|
|
50
|
+
var tokensCss$1 = i$5`:host{--ds-auro-checkbox-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-checkbox-checkmark-color: var(--ds-advanced-color-boolean-indicator, #ffffff);--ds-auro-checkbox-container-color: var(--ds-advanced-color-boolean-isfalse, #ffffff);--ds-auro-checkbox-label-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-checkbox-outline-color: transparent;--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
|
|
51
51
|
|
|
52
52
|
var checkLg = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-hidden=\"true\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><path d=\"M5.321 12.514a.75.75 0 0 0-1.142.972l4.25 5a.75.75 0 0 0 1.141.001l10.25-12a.75.75 0 1 0-1.14-.975L9 16.844z\"/></svg>"};
|
|
53
53
|
|
|
@@ -140,6 +140,7 @@ class AuroCheckbox extends r {
|
|
|
140
140
|
this.checked = false;
|
|
141
141
|
this.disabled = false;
|
|
142
142
|
this.error = false;
|
|
143
|
+
this.onDark = false;
|
|
143
144
|
|
|
144
145
|
/**
|
|
145
146
|
* @private
|
|
@@ -193,6 +194,14 @@ class AuroCheckbox extends r {
|
|
|
193
194
|
*/
|
|
194
195
|
name: { type: String },
|
|
195
196
|
|
|
197
|
+
/**
|
|
198
|
+
* Sets onDark styles for component.
|
|
199
|
+
*/
|
|
200
|
+
onDark: {
|
|
201
|
+
type: Boolean,
|
|
202
|
+
reflect: true
|
|
203
|
+
},
|
|
204
|
+
|
|
196
205
|
/**
|
|
197
206
|
* Sets the element's input value. Must be unique within an auro-checkbox-group element.
|
|
198
207
|
*/
|
|
@@ -683,13 +692,13 @@ class AuroDependencyVersioning {
|
|
|
683
692
|
|
|
684
693
|
var styleCss$1 = i$5`:host{display:block;padding-bottom:var(--ds-size-150, 0.75rem)}.displayFlex legend+slot{display:flex;white-space:nowrap}fieldset{all:unset}legend{margin-bottom:var(--ds-size-150, 0.75rem)}`;
|
|
685
694
|
|
|
686
|
-
var colorCss$1 = i$5`:host{color:var(--ds-auro-checkbox-group-text-color)}:host([disabled]){--ds-auro-checkbox-group-text-color: var(--ds-color-text-
|
|
695
|
+
var colorCss$1 = i$5`:host{color:var(--ds-auro-checkbox-group-text-color)}:host([disabled]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([onDark]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-checkbox-group-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
687
696
|
|
|
688
|
-
var colorCss = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-color-
|
|
697
|
+
var colorCss = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
689
698
|
|
|
690
699
|
var styleCss = i$5`.helptext-wrapper{display:none;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}:host([large]) .helptext-wrapper{font-size:var(--ds-text-body-size-default, 1rem)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
691
700
|
|
|
692
|
-
var tokensCss = i$5`:host{--ds-auro-helptext-color: var(--ds-color-
|
|
701
|
+
var tokensCss = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
693
702
|
|
|
694
703
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
695
704
|
// See LICENSE in the project root for license information.
|
|
@@ -776,6 +785,7 @@ class AuroHelpText extends r {
|
|
|
776
785
|
super();
|
|
777
786
|
|
|
778
787
|
this.error = false;
|
|
788
|
+
this.onDark = false;
|
|
779
789
|
this.hasTextContent = false;
|
|
780
790
|
|
|
781
791
|
AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
@@ -814,6 +824,14 @@ class AuroHelpText extends r {
|
|
|
814
824
|
type: Boolean,
|
|
815
825
|
reflect: true,
|
|
816
826
|
},
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* If declared, will apply onDark styles.
|
|
830
|
+
*/
|
|
831
|
+
onDark: {
|
|
832
|
+
type: Boolean,
|
|
833
|
+
reflect: true
|
|
834
|
+
}
|
|
817
835
|
};
|
|
818
836
|
}
|
|
819
837
|
|
|
@@ -905,6 +923,7 @@ class AuroCheckboxGroup extends r {
|
|
|
905
923
|
this.disabled = undefined;
|
|
906
924
|
this.required = false;
|
|
907
925
|
this.horizontal = false;
|
|
926
|
+
this.onDark = false;
|
|
908
927
|
|
|
909
928
|
/**
|
|
910
929
|
* @private
|
|
@@ -985,6 +1004,14 @@ class AuroCheckboxGroup extends r {
|
|
|
985
1004
|
reflect: true
|
|
986
1005
|
},
|
|
987
1006
|
|
|
1007
|
+
/**
|
|
1008
|
+
* Sets onDark styles for component.
|
|
1009
|
+
*/
|
|
1010
|
+
onDark: {
|
|
1011
|
+
type: Boolean,
|
|
1012
|
+
reflect: true
|
|
1013
|
+
},
|
|
1014
|
+
|
|
988
1015
|
/**
|
|
989
1016
|
* Populates the `required` attribute on the element. Used for client-side validation.
|
|
990
1017
|
*/
|
|
@@ -1202,6 +1229,12 @@ class AuroCheckboxGroup extends r {
|
|
|
1202
1229
|
}
|
|
1203
1230
|
}
|
|
1204
1231
|
|
|
1232
|
+
if (changedProperties.has('onDark')) {
|
|
1233
|
+
this.checkboxes.forEach((el) => {
|
|
1234
|
+
el.onDark = this.onDark;
|
|
1235
|
+
});
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1205
1238
|
if (changedProperties.has('error')) {
|
|
1206
1239
|
if (this.error) {
|
|
1207
1240
|
this.setAttribute('aria-invalid', true);
|
|
@@ -1237,11 +1270,11 @@ class AuroCheckboxGroup extends r {
|
|
|
1237
1270
|
|
|
1238
1271
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
1239
1272
|
? u`
|
|
1240
|
-
<${this.helpTextTag} large part="helpText">
|
|
1273
|
+
<${this.helpTextTag} large part="helpText" ?onDark="${this.onDark}">
|
|
1241
1274
|
<slot name="helpText"></slot>
|
|
1242
1275
|
</${this.helpTextTag}>`
|
|
1243
1276
|
: u`
|
|
1244
|
-
<${this.helpTextTag} error large role="alert" aria-live="assertive" part="helpText">
|
|
1277
|
+
<${this.helpTextTag} error large ?onDark="${this.onDark}" role="alert" aria-live="assertive" part="helpText">
|
|
1245
1278
|
${this.errorMessage}
|
|
1246
1279
|
</${this.helpTextTag}>`
|
|
1247
1280
|
}
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
type="text/css"
|
|
23
23
|
href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"
|
|
24
24
|
/>
|
|
25
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/
|
|
25
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css">
|
|
26
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/alaska/CSSCustomProperties--alaska.css">
|
|
26
27
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
|
|
27
28
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
|
|
28
29
|
</head>
|
|
@@ -106,7 +106,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
106
106
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
107
107
|
|
|
108
108
|
```html
|
|
109
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.2.1
|
|
109
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.2.1/auro-checkbox/+esm"></script>
|
|
110
110
|
```
|
|
111
111
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
112
112
|
|
|
@@ -37,6 +37,13 @@ export class AuroCheckboxGroup extends LitElement {
|
|
|
37
37
|
type: BooleanConstructor;
|
|
38
38
|
reflect: boolean;
|
|
39
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* Sets onDark styles for component.
|
|
42
|
+
*/
|
|
43
|
+
onDark: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
reflect: boolean;
|
|
46
|
+
};
|
|
40
47
|
/**
|
|
41
48
|
* Populates the `required` attribute on the element. Used for client-side validation.
|
|
42
49
|
*/
|
|
@@ -83,6 +90,7 @@ export class AuroCheckboxGroup extends LitElement {
|
|
|
83
90
|
disabled: any;
|
|
84
91
|
required: boolean;
|
|
85
92
|
horizontal: boolean;
|
|
93
|
+
onDark: boolean;
|
|
86
94
|
/**
|
|
87
95
|
* @private
|
|
88
96
|
*/
|
|
@@ -41,6 +41,13 @@ export class AuroCheckbox extends LitElement {
|
|
|
41
41
|
name: {
|
|
42
42
|
type: StringConstructor;
|
|
43
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* Sets onDark styles for component.
|
|
46
|
+
*/
|
|
47
|
+
onDark: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
reflect: boolean;
|
|
50
|
+
};
|
|
44
51
|
/**
|
|
45
52
|
* Sets the element's input value. Must be unique within an auro-checkbox-group element.
|
|
46
53
|
*/
|
|
@@ -61,6 +68,7 @@ export class AuroCheckbox extends LitElement {
|
|
|
61
68
|
checked: boolean;
|
|
62
69
|
disabled: boolean;
|
|
63
70
|
error: boolean;
|
|
71
|
+
onDark: boolean;
|
|
64
72
|
/**
|
|
65
73
|
* @private
|
|
66
74
|
*/
|