@aurodesignsystem/auro-formkit 5.9.2 → 5.9.4
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 +2 -16
- package/components/checkbox/demo/api.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/api.min.js +11 -4
- package/components/combobox/demo/index.html +5 -1
- package/components/combobox/demo/index.js +15 -0
- package/components/combobox/demo/index.min.js +16 -4
- package/components/combobox/dist/index.js +11 -4
- package/components/combobox/dist/registered.js +11 -4
- package/components/counter/demo/api.min.js +2 -2
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/demo/api.min.js +11 -4
- package/components/datepicker/demo/index.min.js +11 -4
- package/components/datepicker/dist/index.js +11 -4
- package/components/datepicker/dist/registered.js +11 -4
- package/components/dropdown/README.md +2 -2
- package/components/dropdown/demo/api.html +3 -1
- package/components/dropdown/demo/api.js +20 -17
- package/components/dropdown/demo/api.md +49 -52
- package/components/dropdown/demo/api.min.js +79 -20
- package/components/dropdown/demo/index.html +3 -1
- package/components/dropdown/demo/index.js +10 -13
- package/components/dropdown/demo/index.md +6 -6
- package/components/dropdown/demo/index.min.js +34 -3
- package/components/dropdown/demo/readme.html +9 -1
- package/components/dropdown/demo/readme.md +2 -2
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/input/demo/api.md +2 -2
- package/components/input/demo/api.min.js +9 -2
- package/components/input/demo/index.min.js +9 -2
- package/components/input/dist/index.js +9 -2
- package/components/input/dist/registered.js +9 -2
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/api.min.js +2 -2
- package/components/select/demo/index.min.js +2 -2
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/package.json +7 -7
|
@@ -9218,7 +9218,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
9218
9218
|
}
|
|
9219
9219
|
}
|
|
9220
9220
|
|
|
9221
|
-
var formkitVersion$2 = '
|
|
9221
|
+
var formkitVersion$2 = '202602060041';
|
|
9222
9222
|
|
|
9223
9223
|
let l$1 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[.]/g,"_"),o}generateTag(o,s,a){const r=this.generateElementName(o,s),i=literal`${unsafeStatic(r)}`;return customElements.get(r)||customElements.define(r,class extends a{}),i}};let d$1 = class d{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}getSlotText(t,e){const o=t.shadowRoot?.querySelector(`slot[name="${e}"]`);return (o?.assignedNodes({flatten:true})||[]).map(t=>t.textContent?.trim()).join(" ").trim()||null}};let h$1 = class h{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}};var c$1=css`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color: var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]){--ds-auro-loader-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
|
|
9224
9224
|
`,u$4=css`.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, .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, .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, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .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, .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, .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, .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, .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, .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, .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(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin) * 6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs) * 6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm) * 6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md) * 6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg) * 6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-.4s}:host([pulse])>span:nth-child(2){animation-delay:-.2s}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}:host>.no-animation{display:none}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}
|
|
@@ -12771,7 +12771,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
12771
12771
|
}
|
|
12772
12772
|
};
|
|
12773
12773
|
|
|
12774
|
-
var formkitVersion$1 = '
|
|
12774
|
+
var formkitVersion$1 = '202602060041';
|
|
12775
12775
|
|
|
12776
12776
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
12777
12777
|
static get properties() {
|
|
@@ -19700,6 +19700,11 @@ class BaseInput extends AuroElement$1 {
|
|
|
19700
19700
|
* @returns {void}
|
|
19701
19701
|
*/
|
|
19702
19702
|
handleInput(event) {
|
|
19703
|
+
// Process credit card type detection and formatting during input
|
|
19704
|
+
if (this.type === 'credit-card') {
|
|
19705
|
+
this.processCreditCard();
|
|
19706
|
+
}
|
|
19707
|
+
|
|
19703
19708
|
// Sets value property to value of element value (el.value).
|
|
19704
19709
|
this.value = this.inputElement.value;
|
|
19705
19710
|
|
|
@@ -19927,6 +19932,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
19927
19932
|
*/
|
|
19928
19933
|
processCreditCard() {
|
|
19929
19934
|
const creditCard = this.matchInputValueToCreditCard();
|
|
19935
|
+
const previousFormat = this.format;
|
|
19930
19936
|
|
|
19931
19937
|
this.format = creditCard.maskFormat;
|
|
19932
19938
|
|
|
@@ -19939,7 +19945,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
19939
19945
|
this.inputIconName = creditCard.cardIcon;
|
|
19940
19946
|
}
|
|
19941
19947
|
|
|
19942
|
-
if
|
|
19948
|
+
// Only reconfigure the mask if the format has changed
|
|
19949
|
+
if (this.inputElement && previousFormat !== this.format) {
|
|
19943
19950
|
this.configureAutoFormatting();
|
|
19944
19951
|
}
|
|
19945
19952
|
}
|
|
@@ -20400,7 +20407,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
20400
20407
|
}
|
|
20401
20408
|
};
|
|
20402
20409
|
|
|
20403
|
-
var formkitVersion = '
|
|
20410
|
+
var formkitVersion = '202602060041';
|
|
20404
20411
|
|
|
20405
20412
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
20406
20413
|
// See LICENSE in the project root for license information.
|
|
@@ -9218,7 +9218,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
9218
9218
|
}
|
|
9219
9219
|
}
|
|
9220
9220
|
|
|
9221
|
-
var formkitVersion$2 = '
|
|
9221
|
+
var formkitVersion$2 = '202602060041';
|
|
9222
9222
|
|
|
9223
9223
|
let l$1 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[.]/g,"_"),o}generateTag(o,s,a){const r=this.generateElementName(o,s),i=literal`${unsafeStatic(r)}`;return customElements.get(r)||customElements.define(r,class extends a{}),i}};let d$1 = class d{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}getSlotText(t,e){const o=t.shadowRoot?.querySelector(`slot[name="${e}"]`);return (o?.assignedNodes({flatten:true})||[]).map(t=>t.textContent?.trim()).join(" ").trim()||null}};let h$1 = class h{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}};var c$1=css`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color: var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]){--ds-auro-loader-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
|
|
9224
9224
|
`,u$4=css`.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, .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, .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, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .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, .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, .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, .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, .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, .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, .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(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin) * 6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs) * 6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm) * 6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md) * 6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg) * 6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-.4s}:host([pulse])>span:nth-child(2){animation-delay:-.2s}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}:host>.no-animation{display:none}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}
|
|
@@ -12771,7 +12771,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
12771
12771
|
}
|
|
12772
12772
|
};
|
|
12773
12773
|
|
|
12774
|
-
var formkitVersion$1 = '
|
|
12774
|
+
var formkitVersion$1 = '202602060041';
|
|
12775
12775
|
|
|
12776
12776
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
12777
12777
|
static get properties() {
|
|
@@ -19700,6 +19700,11 @@ class BaseInput extends AuroElement$1 {
|
|
|
19700
19700
|
* @returns {void}
|
|
19701
19701
|
*/
|
|
19702
19702
|
handleInput(event) {
|
|
19703
|
+
// Process credit card type detection and formatting during input
|
|
19704
|
+
if (this.type === 'credit-card') {
|
|
19705
|
+
this.processCreditCard();
|
|
19706
|
+
}
|
|
19707
|
+
|
|
19703
19708
|
// Sets value property to value of element value (el.value).
|
|
19704
19709
|
this.value = this.inputElement.value;
|
|
19705
19710
|
|
|
@@ -19927,6 +19932,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
19927
19932
|
*/
|
|
19928
19933
|
processCreditCard() {
|
|
19929
19934
|
const creditCard = this.matchInputValueToCreditCard();
|
|
19935
|
+
const previousFormat = this.format;
|
|
19930
19936
|
|
|
19931
19937
|
this.format = creditCard.maskFormat;
|
|
19932
19938
|
|
|
@@ -19939,7 +19945,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
19939
19945
|
this.inputIconName = creditCard.cardIcon;
|
|
19940
19946
|
}
|
|
19941
19947
|
|
|
19942
|
-
if
|
|
19948
|
+
// Only reconfigure the mask if the format has changed
|
|
19949
|
+
if (this.inputElement && previousFormat !== this.format) {
|
|
19943
19950
|
this.configureAutoFormatting();
|
|
19944
19951
|
}
|
|
19945
19952
|
}
|
|
@@ -20400,7 +20407,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
20400
20407
|
}
|
|
20401
20408
|
};
|
|
20402
20409
|
|
|
20403
|
-
var formkitVersion = '
|
|
20410
|
+
var formkitVersion = '202602060041';
|
|
20404
20411
|
|
|
20405
20412
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
20406
20413
|
// See LICENSE in the project root for license information.
|
|
@@ -124,7 +124,7 @@ This will create a new custom element `<custom-dropdown>` that behaves exactly l
|
|
|
124
124
|
<div style="padding: var(--ds-size-150);">
|
|
125
125
|
Lorem ipsum solar
|
|
126
126
|
<br />
|
|
127
|
-
<auro-button
|
|
127
|
+
<auro-button id="customCommonButton">
|
|
128
128
|
Dismiss Dropdown
|
|
129
129
|
</auro-button>
|
|
130
130
|
</div>
|
|
@@ -144,7 +144,7 @@ This will create a new custom element `<custom-dropdown>` that behaves exactly l
|
|
|
144
144
|
<div style="padding: var(--ds-size-150);">
|
|
145
145
|
Lorem ipsum solar
|
|
146
146
|
<br />
|
|
147
|
-
<auro-button
|
|
147
|
+
<auro-button id="customCommonButton">
|
|
148
148
|
Dismiss Dropdown
|
|
149
149
|
</auro-button>
|
|
150
150
|
</div>
|
|
@@ -51,7 +51,9 @@
|
|
|
51
51
|
<script type="module">
|
|
52
52
|
import { initExamples } from "./api.min.js";
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
window.addEventListener('load', () => {
|
|
55
|
+
initExamples();
|
|
56
|
+
});
|
|
55
57
|
</script>
|
|
56
58
|
<!-- If additional elements are needed for the demo, add them here. -->
|
|
57
59
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm" type="module"></script>
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers */
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { errorExample } from '../apiExamples/error';
|
|
3
|
+
import { inverseErrorExample } from '../apiExamples/appearance-inverse-error';
|
|
4
|
+
import { fullscreenBreakpointExample } from '../apiExamples/fullscreen-breakpoint';
|
|
5
|
+
import { classicExample } from '../apiExamples/classic/basic.js';
|
|
6
|
+
import { classicInverseExample } from '../apiExamples/classic/appearance-inverse.js';
|
|
7
|
+
import { matchWidthExample } from '../apiExamples/match-width.js';
|
|
8
|
+
import { hideExample } from './../apiExamples/programmatically-hide';
|
|
9
|
+
import { showExample } from './../apiExamples/programmatically-show';
|
|
10
|
+
import { inDialogExample } from './../apiExamples/in-dialog';
|
|
5
11
|
import '../src/registered.js';
|
|
6
12
|
|
|
7
|
-
export function initExamples(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}, 100);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
13
|
+
export function initExamples() {
|
|
14
|
+
// javascript example function calls to be added here upon creation to test examples
|
|
15
|
+
errorExample();
|
|
16
|
+
inverseErrorExample();
|
|
17
|
+
fullscreenBreakpointExample();
|
|
18
|
+
classicExample();
|
|
19
|
+
classicInverseExample();
|
|
20
|
+
matchWidthExample();
|
|
21
|
+
hideExample();
|
|
22
|
+
showExample();
|
|
23
|
+
inDialogExample();
|
|
21
24
|
}
|
|
@@ -186,16 +186,16 @@ The following examples demonstrate basic usage of the `auro-dropdown` component
|
|
|
186
186
|
|
|
187
187
|
Use the `appearance="inverse"` attribute to ensure proper styling when the dropdown is used on dark backgrounds.
|
|
188
188
|
|
|
189
|
-
<div class="exampleWrapper">
|
|
190
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
|
|
191
|
-
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
192
|
-
<auro-dropdown appearance="inverse" aria-label="custom label">
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
</auro-dropdown>
|
|
198
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
189
|
+
<div class="exampleWrapper--ondark">
|
|
190
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
|
|
191
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
192
|
+
<auro-dropdown appearance="inverse" aria-label="custom label">
|
|
193
|
+
Lorem ipsum solar
|
|
194
|
+
<div slot="trigger">
|
|
195
|
+
Trigger
|
|
196
|
+
</div>
|
|
197
|
+
</auro-dropdown>
|
|
198
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
199
199
|
</div>
|
|
200
200
|
<auro-accordion alignRight>
|
|
201
201
|
<span slot="trigger">See code</span>
|
|
@@ -212,17 +212,6 @@ Use the `appearance="inverse"` attribute to ensure proper styling when the dropd
|
|
|
212
212
|
```
|
|
213
213
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
214
214
|
</auro-accordion>
|
|
215
|
-
<div class="exampleWrapper--ondark" aria-hidden>
|
|
216
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
|
|
217
|
-
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
218
|
-
<auro-dropdown appearance="inverse" aria-label="custom label">
|
|
219
|
-
Lorem ipsum solar
|
|
220
|
-
<div slot="trigger">
|
|
221
|
-
Trigger
|
|
222
|
-
</div>
|
|
223
|
-
</auro-dropdown>
|
|
224
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
225
|
-
</div>
|
|
226
215
|
|
|
227
216
|
### Chevron
|
|
228
217
|
|
|
@@ -358,11 +347,11 @@ Use the `error` attribute to set persistent error state styling on the dropdown.
|
|
|
358
347
|
<div class="exampleWrapper">
|
|
359
348
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
|
|
360
349
|
<!-- The below content is automatically added from ./../apiExamples/error.html -->
|
|
361
|
-
<auro-dropdown layout="classic" shape="classic" size="lg" error id="errorDropdownExample">
|
|
350
|
+
<auro-dropdown id="error" layout="classic" shape="classic" size="lg" error id="errorDropdownExample">
|
|
362
351
|
<div style="padding: var(--ds-size-150);">
|
|
363
352
|
Lorem ipsum solar
|
|
364
353
|
<br />
|
|
365
|
-
<auro-button
|
|
354
|
+
<auro-button id="errorButton">
|
|
366
355
|
Dismiss Dropdown
|
|
367
356
|
</auro-button>
|
|
368
357
|
</div>
|
|
@@ -381,11 +370,11 @@ Use the `error` attribute to set persistent error state styling on the dropdown.
|
|
|
381
370
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
382
371
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-error.html) -->
|
|
383
372
|
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-error.html -->
|
|
384
|
-
<auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg" error
|
|
373
|
+
<auro-dropdown id="inverseError" appearance="inverse" layout="classic" shape="classic" size="lg" error>
|
|
385
374
|
<div style="padding: var(--ds-size-150);">
|
|
386
375
|
Lorem ipsum solar
|
|
387
376
|
<br />
|
|
388
|
-
<auro-button
|
|
377
|
+
<auro-button id="inverseErrorButton">
|
|
389
378
|
Dismiss Dropdown
|
|
390
379
|
</auro-button>
|
|
391
380
|
</div>
|
|
@@ -407,11 +396,11 @@ Use the `error` attribute to set persistent error state styling on the dropdown.
|
|
|
407
396
|
<!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
|
|
408
397
|
|
|
409
398
|
```html
|
|
410
|
-
<auro-dropdown layout="classic" shape="classic" size="lg" error id="errorDropdownExample">
|
|
399
|
+
<auro-dropdown id="error" layout="classic" shape="classic" size="lg" error id="errorDropdownExample">
|
|
411
400
|
<div style="padding: var(--ds-size-150);">
|
|
412
401
|
Lorem ipsum solar
|
|
413
402
|
<br />
|
|
414
|
-
<auro-button
|
|
403
|
+
<auro-button id="errorButton">
|
|
415
404
|
Dismiss Dropdown
|
|
416
405
|
</auro-button>
|
|
417
406
|
</div>
|
|
@@ -431,11 +420,11 @@ Use the `error` attribute to set persistent error state styling on the dropdown.
|
|
|
431
420
|
<!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-error.html -->
|
|
432
421
|
|
|
433
422
|
```html
|
|
434
|
-
<auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg" error
|
|
423
|
+
<auro-dropdown id="inverseError" appearance="inverse" layout="classic" shape="classic" size="lg" error>
|
|
435
424
|
<div style="padding: var(--ds-size-150);">
|
|
436
425
|
Lorem ipsum solar
|
|
437
426
|
<br />
|
|
438
|
-
<auro-button
|
|
427
|
+
<auro-button id="inverseErrorButton">
|
|
439
428
|
Dismiss Dropdown
|
|
440
429
|
</auro-button>
|
|
441
430
|
</div>
|
|
@@ -464,7 +453,7 @@ Breakpoint token can be found [here](https://auro.alaskaair.com/getting-started/
|
|
|
464
453
|
<div class="exampleWrapper">
|
|
465
454
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/fullscreen-breakpoint.html) -->
|
|
466
455
|
<!-- The below content is automatically added from ./../apiExamples/fullscreen-breakpoint.html -->
|
|
467
|
-
<auro-dropdown fullscreenBreakpoint="sm" layout="classic" shape="classic" size="lg" chevron
|
|
456
|
+
<auro-dropdown id="fullscreen" fullscreenBreakpoint="sm" layout="classic" shape="classic" size="lg" chevron>
|
|
468
457
|
<div>
|
|
469
458
|
<p>
|
|
470
459
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
@@ -476,7 +465,7 @@ Breakpoint token can be found [here](https://auro.alaskaair.com/getting-started/
|
|
|
476
465
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
477
466
|
</p>
|
|
478
467
|
</div>
|
|
479
|
-
<auro-button
|
|
468
|
+
<auro-button id="fullscreenButton">
|
|
480
469
|
Dismiss Dropdown
|
|
481
470
|
</auro-button>
|
|
482
471
|
<div slot="trigger">
|
|
@@ -491,7 +480,7 @@ Breakpoint token can be found [here](https://auro.alaskaair.com/getting-started/
|
|
|
491
480
|
<!-- The below code snippet is automatically added from ./../apiExamples/fullscreen-breakpoint.html -->
|
|
492
481
|
|
|
493
482
|
```html
|
|
494
|
-
<auro-dropdown fullscreenBreakpoint="sm" layout="classic" shape="classic" size="lg" chevron
|
|
483
|
+
<auro-dropdown id="fullscreen" fullscreenBreakpoint="sm" layout="classic" shape="classic" size="lg" chevron>
|
|
495
484
|
<div>
|
|
496
485
|
<p>
|
|
497
486
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
@@ -503,7 +492,7 @@ Breakpoint token can be found [here](https://auro.alaskaair.com/getting-started/
|
|
|
503
492
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
504
493
|
</p>
|
|
505
494
|
</div>
|
|
506
|
-
<auro-button
|
|
495
|
+
<auro-button id="fullscreenButton">
|
|
507
496
|
Dismiss Dropdown
|
|
508
497
|
</auro-button>
|
|
509
498
|
<div slot="trigger">
|
|
@@ -529,7 +518,7 @@ The `auro-dropdown` element supports multiple layouts to fit different design ne
|
|
|
529
518
|
<div style="padding: var(--ds-size-150);">
|
|
530
519
|
Lorem ipsum solar
|
|
531
520
|
<br />
|
|
532
|
-
<auro-button
|
|
521
|
+
<auro-button id="classicButton">
|
|
533
522
|
Dismiss Dropdown
|
|
534
523
|
</auro-button>
|
|
535
524
|
</div>
|
|
@@ -552,7 +541,7 @@ The `auro-dropdown` element supports multiple layouts to fit different design ne
|
|
|
552
541
|
<div style="padding: var(--ds-size-150);">
|
|
553
542
|
Lorem ipsum solar
|
|
554
543
|
<br />
|
|
555
|
-
<auro-button
|
|
544
|
+
<auro-button id="classicButton">
|
|
556
545
|
Dismiss Dropdown
|
|
557
546
|
</auro-button>
|
|
558
547
|
</div>
|
|
@@ -569,11 +558,11 @@ The `auro-dropdown` element supports multiple layouts to fit different design ne
|
|
|
569
558
|
<div class="exampleWrapper--ondark">
|
|
570
559
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/classic/appearance-inverse.html) -->
|
|
571
560
|
<!-- The below content is automatically added from ./../apiExamples/classic/appearance-inverse.html -->
|
|
572
|
-
<auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg"
|
|
561
|
+
<auro-dropdown id="classicInverse" appearance="inverse" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader">
|
|
573
562
|
<div style="padding: var(--ds-size-150);">
|
|
574
563
|
Lorem ipsum solar
|
|
575
564
|
<br />
|
|
576
|
-
<auro-button
|
|
565
|
+
<auro-button id="classicInverseButton">
|
|
577
566
|
Dismiss Dropdown
|
|
578
567
|
</auro-button>
|
|
579
568
|
</div>
|
|
@@ -592,11 +581,11 @@ The `auro-dropdown` element supports multiple layouts to fit different design ne
|
|
|
592
581
|
<!-- The below code snippet is automatically added from ./../apiExamples/classic/appearance-inverse.html -->
|
|
593
582
|
|
|
594
583
|
```html
|
|
595
|
-
<auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg"
|
|
584
|
+
<auro-dropdown id="classicInverse" appearance="inverse" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader">
|
|
596
585
|
<div style="padding: var(--ds-size-150);">
|
|
597
586
|
Lorem ipsum solar
|
|
598
587
|
<br />
|
|
599
|
-
<auro-button
|
|
588
|
+
<auro-button id="classicInverseButton">
|
|
600
589
|
Dismiss Dropdown
|
|
601
590
|
</auro-button>
|
|
602
591
|
</div>
|
|
@@ -925,11 +914,11 @@ When the `matchWidth` attribute is applied, the width of the dropdown bib will m
|
|
|
925
914
|
<div class="exampleWrapper">
|
|
926
915
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/match-width.html) -->
|
|
927
916
|
<!-- The below content is automatically added from ./../apiExamples/match-width.html -->
|
|
928
|
-
<auro-dropdown id="
|
|
917
|
+
<auro-dropdown id="matchWidth" layout="classic" shape="classic" size="lg" matchWidth aria-label="Label content for screen reader">
|
|
929
918
|
<div style="padding: var(--ds-size-150);">
|
|
930
919
|
Lorem ipsum solar
|
|
931
920
|
<br />
|
|
932
|
-
<auro-button
|
|
921
|
+
<auro-button id="matchWidthButton">
|
|
933
922
|
Dismiss Dropdown
|
|
934
923
|
</auro-button>
|
|
935
924
|
</div>
|
|
@@ -948,11 +937,11 @@ When the `matchWidth` attribute is applied, the width of the dropdown bib will m
|
|
|
948
937
|
<!-- The below code snippet is automatically added from ./../apiExamples/match-width.html -->
|
|
949
938
|
|
|
950
939
|
```html
|
|
951
|
-
<auro-dropdown id="
|
|
940
|
+
<auro-dropdown id="matchWidth" layout="classic" shape="classic" size="lg" matchWidth aria-label="Label content for screen reader">
|
|
952
941
|
<div style="padding: var(--ds-size-150);">
|
|
953
942
|
Lorem ipsum solar
|
|
954
943
|
<br />
|
|
955
|
-
<auro-button
|
|
944
|
+
<auro-button id="matchWidthButton">
|
|
956
945
|
Dismiss Dropdown
|
|
957
946
|
</auro-button>
|
|
958
947
|
</div>
|
|
@@ -1016,7 +1005,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1016
1005
|
Lorem ipsum solar
|
|
1017
1006
|
</p>
|
|
1018
1007
|
<div style="padding: var(--ds-size-150);">
|
|
1019
|
-
<auro-button id="hideExampleBtn"
|
|
1008
|
+
<auro-button id="hideExampleBtn">
|
|
1020
1009
|
Hide Dropdown
|
|
1021
1010
|
</auro-button>
|
|
1022
1011
|
</div>
|
|
@@ -1037,7 +1026,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1037
1026
|
Lorem ipsum solar
|
|
1038
1027
|
</p>
|
|
1039
1028
|
<div style="padding: var(--ds-size-150);">
|
|
1040
|
-
<auro-button id="hideExampleBtn"
|
|
1029
|
+
<auro-button id="hideExampleBtn">
|
|
1041
1030
|
Hide Dropdown
|
|
1042
1031
|
</auro-button>
|
|
1043
1032
|
</div>
|
|
@@ -1055,8 +1044,8 @@ export function hideExample() {
|
|
|
1055
1044
|
const btn = document.querySelector('#hideExampleBtn');
|
|
1056
1045
|
const dropdown = document.querySelector('#hideExample');
|
|
1057
1046
|
|
|
1058
|
-
btn
|
|
1059
|
-
dropdown
|
|
1047
|
+
btn?.addEventListener('click', () => {
|
|
1048
|
+
dropdown?.hide();
|
|
1060
1049
|
});
|
|
1061
1050
|
}
|
|
1062
1051
|
```
|
|
@@ -1108,8 +1097,8 @@ export function showExample() {
|
|
|
1108
1097
|
const triggerInput = document.querySelector('#showExampleTriggerInput');
|
|
1109
1098
|
const dropdownElem = document.querySelector('#showMethodExample');
|
|
1110
1099
|
|
|
1111
|
-
triggerInput
|
|
1112
|
-
dropdownElem
|
|
1100
|
+
triggerInput?.addEventListener('keydown', () => {
|
|
1101
|
+
dropdownElem?.show();
|
|
1113
1102
|
});
|
|
1114
1103
|
}
|
|
1115
1104
|
```
|
|
@@ -1252,7 +1241,7 @@ The element used within an `auro-dialog`.
|
|
|
1252
1241
|
<div style="padding: var(--ds-size-150);">
|
|
1253
1242
|
Lorem ipsum solar
|
|
1254
1243
|
<br />
|
|
1255
|
-
<auro-button
|
|
1244
|
+
<auro-button id="in-dialog-dismiss-btn">
|
|
1256
1245
|
Dismiss Dropdown
|
|
1257
1246
|
</auro-button>
|
|
1258
1247
|
</div>
|
|
@@ -1286,7 +1275,7 @@ The element used within an `auro-dialog`.
|
|
|
1286
1275
|
<div style="padding: var(--ds-size-150);">
|
|
1287
1276
|
Lorem ipsum solar
|
|
1288
1277
|
<br />
|
|
1289
|
-
<auro-button
|
|
1278
|
+
<auro-button id="in-dialog-dismiss-btn">
|
|
1290
1279
|
Dismiss Dropdown
|
|
1291
1280
|
</auro-button>
|
|
1292
1281
|
</div>
|
|
@@ -1310,10 +1299,18 @@ The element used within an `auro-dialog`.
|
|
|
1310
1299
|
|
|
1311
1300
|
```js
|
|
1312
1301
|
export function inDialogExample() {
|
|
1313
|
-
document.querySelector("#dropdown-dialog-opener")
|
|
1302
|
+
const openBtn = document.querySelector("#dropdown-dialog-opener");
|
|
1303
|
+
const closeBtn = document.querySelector("#in-dialog-dismiss-btn");
|
|
1304
|
+
const dropdown = document.querySelector("#in-dialog-dropdown");
|
|
1305
|
+
|
|
1306
|
+
openBtn?.addEventListener("click", () => {
|
|
1314
1307
|
const dialog = document.querySelector("#dropdown-dialog");
|
|
1315
1308
|
dialog.open = true;
|
|
1316
1309
|
});
|
|
1310
|
+
|
|
1311
|
+
closeBtn?.addEventListener("click", () => {
|
|
1312
|
+
dropdown?.hide();
|
|
1313
|
+
});
|
|
1317
1314
|
};
|
|
1318
1315
|
```
|
|
1319
1316
|
<!-- AURO-GENERATED-CONTENT:END -->
|