@aurodesignsystem-dev/auro-formkit 0.0.0-pr622.1 → 0.0.0-pr624.1
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/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +2 -2
- package/components/bibtemplate/dist/registered.js +2 -2
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.min.js +14 -3
- package/components/checkbox/demo/index.min.js +14 -3
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +5 -1
- package/components/checkbox/dist/index.js +14 -3
- package/components/checkbox/dist/registered.js +14 -3
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.md +3 -0
- package/components/combobox/demo/api.min.js +1479 -395
- package/components/combobox/demo/index.html +2 -0
- package/components/combobox/demo/index.md +75 -0
- package/components/combobox/demo/index.min.js +1479 -395
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/auro-combobox.d.ts +19 -9
- package/components/combobox/dist/index.js +1471 -387
- package/components/combobox/dist/registered.js +1471 -387
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.min.js +433 -104
- package/components/counter/demo/index.min.js +433 -104
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +433 -104
- package/components/counter/dist/registered.js +433 -104
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.min.js +1157 -376
- package/components/datepicker/demo/index.min.js +1157 -376
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/index.js +1156 -375
- package/components/datepicker/dist/registered.js +1156 -375
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.md +59 -35
- package/components/dropdown/demo/api.min.js +361 -88
- package/components/dropdown/demo/index.md +52 -0
- package/components/dropdown/demo/index.min.js +361 -88
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +70 -21
- package/components/dropdown/dist/index.js +331 -58
- package/components/dropdown/dist/registered.js +331 -58
- package/components/dropdown/dist/styles/default/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/form/README.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/input/README.md +2 -2
- package/components/input/demo/api.md +76 -64
- package/components/input/demo/api.min.js +747 -295
- package/components/input/demo/index.html +1 -1
- package/components/input/demo/index.md +49 -4
- package/components/input/demo/index.min.js +747 -295
- package/components/input/demo/readme.md +2 -2
- package/components/input/dist/auro-input.d.ts +97 -3
- package/components/input/dist/base-input.d.ts +36 -18
- package/components/input/dist/index.js +681 -229
- package/components/input/dist/registered.js +681 -229
- package/components/input/dist/styles/classic/color-css.d.ts +2 -0
- package/components/input/dist/styles/classic/style-css.d.ts +2 -0
- package/components/input/dist/styles/default/borders-css.d.ts +2 -0
- package/components/input/dist/styles/default/color-css.d.ts +2 -0
- package/components/input/dist/styles/default/input-css.d.ts +2 -0
- package/components/input/dist/styles/default/label-css.d.ts +2 -0
- package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
- package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
- package/components/input/dist/styles/default/style-css.d.ts +2 -0
- package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
- package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/layoutElement/dist/auroElement.d.ts +34 -0
- package/components/layoutElement/dist/index.d.ts +1 -0
- package/components/layoutElement/dist/index.js +1 -0
- package/components/layoutElement/dist/registered.js +1 -0
- package/components/menu/README.md +1 -1
- package/components/menu/demo/api.min.js +2 -2
- package/components/menu/demo/index.min.js +2 -2
- package/components/menu/demo/readme.md +1 -1
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +2 -2
- package/components/menu/dist/registered.js +2 -2
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.md +8 -0
- package/components/radio/demo/api.min.js +13 -5
- package/components/radio/demo/index.min.js +13 -5
- package/components/radio/demo/readme.md +1 -1
- package/components/radio/dist/auro-radio.d.ts +4 -0
- package/components/radio/dist/index.js +13 -5
- package/components/radio/dist/registered.js +13 -5
- package/components/select/README.md +1 -1
- package/components/select/demo/api.html +15 -0
- package/components/select/demo/api.md +178 -0
- package/components/select/demo/api.min.js +403 -62
- package/components/select/demo/index.html +15 -0
- package/components/select/demo/index.md +177 -0
- package/components/select/demo/index.min.js +403 -62
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/auro-select.d.ts +27 -0
- package/components/select/dist/index.js +400 -58
- package/components/select/dist/registered.js +400 -58
- package/package.json +2 -2
- /package/components/{dropdown/dist/styles/bibColors-css.d.ts → combobox/dist/styles/emphasized/style-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles/bibStyles-css.d.ts → combobox/dist/styles/snowflake/style-css.d.ts} +0 -0
- /package/components/{input/dist/styles/borders-css.d.ts → dropdown/dist/styles/default/bibColors-css.d.ts} +0 -0
- /package/components/{input/dist/styles/label-css.d.ts → dropdown/dist/styles/default/bibStyles-css.d.ts} +0 -0
- /package/components/{input/dist/styles/notificationIcons-css.d.ts → dropdown/dist/styles/default/color-css.d.ts} +0 -0
|
@@ -166,7 +166,7 @@ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
-
var styleCss$9 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-basic-text-body-default-font-family, AS Circular);font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight,
|
|
169
|
+
var styleCss$9 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-basic-text-body-default-font-family, "AS Circular");font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);line-height:var(--ds-basic-text-body-default-line-height, 24px);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible{outline:none}.auro-button:focus-visible:not([variant=flat]){outline-style:solid;outline-width:var(--ds-size-50, 0.25rem);outline-offset:calc(var(--ds-size-50, 0.25rem)*-1)}.auro-button:focus-visible:not([variant=flat]):not([variant=secondary]):not([variant=tertiary]){outline-width:calc(var(--ds-size-50, 0.25rem) - 1px)}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-family:var(--ds-basic-text-body-sm-font-family, "AS Circular");font-size:var(--ds-basic-text-body-sm-font-size, 14px);font-weight:var(--ds-basic-text-body-sm-font-weight, 450);line-height:var(--ds-basic-text-body-sm-line-height, 20px);letter-spacing:var(--ds-basic-text-body-sm-letter-spacing, 0);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--iconOnly:not(.auro-button--rounded):focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]){outline-width:1px;outline-offset:-2px}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out,outline 0ms,outline-offset 0ms}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--rounded:focus-visible:not([variant=flat]):after{border-radius:100px}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
|
|
170
170
|
|
|
171
171
|
var colorCss$8 = i$5`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible{outline-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-hover, #00274a)}.auro-button:not([ondark]):disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-disabled, #acc9e2)}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text, #01426a)}.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-hover, #00274a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-hover, #00274a)}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-disabled, #cfe0ef);--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text, #01426a)}.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-advanced-color-button-flat-text, #676767);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-hover, #525252);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-disabled, #d0d0d0);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a)}.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-hover, #ebf3f9);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9)}.auro-button[ondark]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]:disabled{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:active:not(:disabled),.auro-button[ondark][variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse-disabled, #dddddd)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=flat]{color:var(--ds-advanced-color-button-flat-text-inverse, #ffffff);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-inverse-hover, #adadad);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-inverse-disabled, #7e8894);background-color:transparent;background-image:none;border-color:transparent}`;
|
|
172
172
|
|
|
@@ -325,27 +325,6 @@ var loaderVersion = '5.0.0';
|
|
|
325
325
|
|
|
326
326
|
|
|
327
327
|
/**
|
|
328
|
-
* @attr {Boolean} autofocus - This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user
|
|
329
|
-
* @attr {Boolean} disabled - If set to true, button will become disabled and not allow for interactions
|
|
330
|
-
* @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
|
|
331
|
-
* @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
|
|
332
|
-
* @attr {String} loadingText - Sets custom loading text for the `aria-label` on a button in loading state. If not set, the default value of "Loading..." will be used.
|
|
333
|
-
* @attr {Boolean} onDark - Set value for on-dark version of auro-button
|
|
334
|
-
* @attr {Boolean} rounded - If set to true, the button will have a rounded shape
|
|
335
|
-
* @attr {Boolean} slim - Set value for slim version of auro-button
|
|
336
|
-
* @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
|
|
337
|
-
* @attr {String} arialabel - Populates the `aria-label` attribute that is used to define a string that labels the current element. Use it in cases where a text label is not visible on the screen. If there is visible text labeling the element, use `aria-labelledby` instead.
|
|
338
|
-
* @attr {String} arialabelledby - Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s), and its value should be one or more element IDs, which refer to elements that have the text needed for labeling. List multiple element IDs in a space delimited fashion.
|
|
339
|
-
* @attr {Boolean} ariaexpanded - Populates the `aria-expanded` attribute that indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. This is an optional attribute for buttons.
|
|
340
|
-
* @attr {String} id - Set the unique ID of an element.
|
|
341
|
-
* @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
342
|
-
* @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
|
|
343
|
-
* @attr {String} value - Defines the value associated with the button which is submitted with the form data.
|
|
344
|
-
* @attr {String} variant - Sets button variant option. Possible values are: `secondary`, `tertiary`
|
|
345
|
-
* @attr {Boolean} secondary - DEPRECATED
|
|
346
|
-
* @attr {Boolean} tertiary - DEPRECATED
|
|
347
|
-
* @prop {Boolean} ready - When false the component API should not be called.
|
|
348
|
-
* @event auroButton-ready - Notifies that the component has finished initializing.
|
|
349
328
|
* @slot - Default slot for the text of the button.
|
|
350
329
|
* @slot icon - Slot to provide auro-icon for the button.
|
|
351
330
|
* @csspart button - Apply CSS to HTML5 button.
|
|
@@ -369,13 +348,11 @@ class AuroButton extends i$2 {
|
|
|
369
348
|
|
|
370
349
|
constructor() {
|
|
371
350
|
super();
|
|
372
|
-
|
|
373
351
|
this.autofocus = false;
|
|
374
352
|
this.disabled = false;
|
|
375
353
|
this.iconOnly = false;
|
|
376
354
|
this.loading = false;
|
|
377
355
|
this.onDark = false;
|
|
378
|
-
this.ready = false;
|
|
379
356
|
this.secondary = false;
|
|
380
357
|
this.tertiary = false;
|
|
381
358
|
this.rounded = false;
|
|
@@ -414,73 +391,169 @@ class AuroButton extends i$2 {
|
|
|
414
391
|
|
|
415
392
|
static get properties() {
|
|
416
393
|
return {
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
|
|
397
|
+
*/
|
|
417
398
|
autofocus: {
|
|
418
399
|
type: Boolean,
|
|
419
400
|
reflect: true
|
|
420
401
|
},
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* If set to true, button will become disabled and not allow for interactions.
|
|
405
|
+
*/
|
|
421
406
|
disabled: {
|
|
422
407
|
type: Boolean,
|
|
423
408
|
reflect: true
|
|
424
409
|
},
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* DEPRECATED.
|
|
413
|
+
* @deprecated
|
|
414
|
+
*/
|
|
425
415
|
secondary: {
|
|
426
416
|
type: Boolean,
|
|
427
417
|
reflect: true
|
|
428
418
|
},
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* DEPRECATED.
|
|
422
|
+
* @deprecated
|
|
423
|
+
*/
|
|
429
424
|
tertiary: {
|
|
430
425
|
type: Boolean,
|
|
431
426
|
reflect: true
|
|
432
427
|
},
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Alters the shape of the button to be full width of its parent container.
|
|
431
|
+
*/
|
|
433
432
|
fluid: {
|
|
434
433
|
type: Boolean,
|
|
435
434
|
reflect: true
|
|
436
435
|
},
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* If set to true, the button will contain an icon with no additional content.
|
|
439
|
+
*/
|
|
437
440
|
iconOnly: {
|
|
438
441
|
type: Boolean,
|
|
439
442
|
reflect: true
|
|
440
443
|
},
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* If set to true button text will be replaced with `auro-loader` and become disabled.
|
|
447
|
+
*/
|
|
441
448
|
loading: {
|
|
442
449
|
type: Boolean,
|
|
443
450
|
reflect: true
|
|
444
451
|
},
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Sets custom loading text for the `aria-label` on a button in loading state. If not set, the default value of "Loading..." will be used.
|
|
455
|
+
*/
|
|
445
456
|
loadingText: {
|
|
446
457
|
type: String
|
|
447
458
|
},
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Set value for on-dark version of auro-button.
|
|
462
|
+
*/
|
|
448
463
|
onDark: {
|
|
449
464
|
type: Boolean,
|
|
450
465
|
reflect: true
|
|
451
466
|
},
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* If set to true, the button will have a rounded shape.
|
|
470
|
+
*/
|
|
452
471
|
rounded: {
|
|
453
472
|
type: Boolean,
|
|
454
473
|
reflect: true
|
|
455
474
|
},
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Set value for slim version of auro-button.
|
|
478
|
+
*/
|
|
456
479
|
slim: {
|
|
457
480
|
type: Boolean,
|
|
458
481
|
reflect: true
|
|
459
482
|
},
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Populates `tabIndex` to define the focusable sequence in keyboard navigation.
|
|
486
|
+
*/
|
|
487
|
+
tIndex: {
|
|
488
|
+
type: String,
|
|
489
|
+
reflect: true
|
|
490
|
+
},
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Populates the `aria-hidden` attribute to hide the button from a11y API.
|
|
494
|
+
*/
|
|
495
|
+
ariahidden: {
|
|
496
|
+
type: String,
|
|
497
|
+
reflect: true,
|
|
498
|
+
},
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Populates the `aria-label` attribute that is used to define a string that labels the current element.
|
|
502
|
+
* Use it in cases where a text label is not visible on the screen.
|
|
503
|
+
* If there is visible text labeling the element, use `aria-labelledby` instead.
|
|
504
|
+
*/
|
|
460
505
|
arialabel: {
|
|
461
506
|
type: String,
|
|
462
507
|
reflect: true
|
|
463
508
|
},
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s),
|
|
512
|
+
* and its value should be one or more element IDs, which refer to elements that have the text needed for labeling.
|
|
513
|
+
* List multiple element IDs in a space delimited fashion.
|
|
514
|
+
*/
|
|
464
515
|
arialabelledby: {
|
|
465
516
|
type: String,
|
|
466
517
|
reflect: true
|
|
467
518
|
},
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Populates the `aria-expanded` attribute that indicates whether the element,
|
|
522
|
+
* or another grouping element it controls, is currently expanded or collapsed.
|
|
523
|
+
* This is an optional attribute for buttons.
|
|
524
|
+
*/
|
|
468
525
|
ariaexpanded: {
|
|
469
526
|
type: Boolean,
|
|
470
527
|
reflect: true
|
|
471
528
|
},
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
532
|
+
*/
|
|
472
533
|
title: {
|
|
473
534
|
type: String,
|
|
474
535
|
reflect: true
|
|
475
536
|
},
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* The type of the button. Possible values are: `submit`, `reset`, `button`.
|
|
540
|
+
*/
|
|
476
541
|
type: {
|
|
477
542
|
type: String,
|
|
478
543
|
reflect: true
|
|
479
544
|
},
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* Defines the value associated with the button which is submitted with the form data.
|
|
548
|
+
*/
|
|
480
549
|
value: {
|
|
481
550
|
type: String,
|
|
482
551
|
reflect: true
|
|
483
552
|
},
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Sets button variant option. Possible values are: `secondary`, `tertiary`.
|
|
556
|
+
*/
|
|
484
557
|
variant: {
|
|
485
558
|
type: String,
|
|
486
559
|
reflect: true
|
|
@@ -510,21 +583,6 @@ class AuroButton extends i$2 {
|
|
|
510
583
|
this.renderRoot.querySelector('button').focus();
|
|
511
584
|
}
|
|
512
585
|
|
|
513
|
-
/**
|
|
514
|
-
* Marks the component as ready and sends event.
|
|
515
|
-
* @private
|
|
516
|
-
* @returns {void}
|
|
517
|
-
*/
|
|
518
|
-
notifyReady() {
|
|
519
|
-
this.ready = true;
|
|
520
|
-
|
|
521
|
-
this.dispatchEvent(new CustomEvent('auroButton-ready', {
|
|
522
|
-
bubbles: true,
|
|
523
|
-
cancelable: false,
|
|
524
|
-
composed: true,
|
|
525
|
-
}));
|
|
526
|
-
}
|
|
527
|
-
|
|
528
586
|
updated() {
|
|
529
587
|
// support the old `secondary` and `tertiary` attributes` that are deprecated
|
|
530
588
|
if (this.secondary) {
|
|
@@ -536,10 +594,6 @@ class AuroButton extends i$2 {
|
|
|
536
594
|
}
|
|
537
595
|
}
|
|
538
596
|
|
|
539
|
-
firstUpdated() {
|
|
540
|
-
this.notifyReady();
|
|
541
|
-
}
|
|
542
|
-
|
|
543
597
|
/**
|
|
544
598
|
* Submits the form that this button is associated with.
|
|
545
599
|
* @private
|
|
@@ -554,7 +608,7 @@ class AuroButton extends i$2 {
|
|
|
554
608
|
/**
|
|
555
609
|
* Returns the form element that this button is associated with.
|
|
556
610
|
* @private
|
|
557
|
-
* @returns {HTMLFormElement|null}
|
|
611
|
+
* @returns {HTMLFormElement | null}
|
|
558
612
|
*/
|
|
559
613
|
get form() {
|
|
560
614
|
return this.internals ? this.internals.form : null;
|
|
@@ -575,9 +629,11 @@ class AuroButton extends i$2 {
|
|
|
575
629
|
return u`
|
|
576
630
|
<button
|
|
577
631
|
part="button"
|
|
632
|
+
aria-hidden="${o(this.ariahidden || undefined)}"
|
|
578
633
|
aria-label="${o(this.loading ? this.loadingText : this.arialabel || undefined)}"
|
|
579
634
|
aria-labelledby="${o(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
580
635
|
aria-expanded="${o(this.ariaexpanded)}"
|
|
636
|
+
tabIndex="${o(this.tIndex)}"
|
|
581
637
|
?autofocus="${this.autofocus}"
|
|
582
638
|
class="${e(classes)}"
|
|
583
639
|
?disabled="${this.disabled || this.loading}"
|
|
@@ -649,7 +705,7 @@ if (!customElements.get("auro-counter-button")) {
|
|
|
649
705
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
650
706
|
*/
|
|
651
707
|
|
|
652
|
-
let AuroElement$
|
|
708
|
+
let AuroElement$3 = class AuroElement extends i$2 {
|
|
653
709
|
|
|
654
710
|
// function to define props used within the scope of this component
|
|
655
711
|
static get properties() {
|
|
@@ -717,7 +773,7 @@ var styleCss$7 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.u
|
|
|
717
773
|
*/
|
|
718
774
|
|
|
719
775
|
// build the component class
|
|
720
|
-
let BaseIcon$2 = class BaseIcon extends AuroElement$
|
|
776
|
+
let BaseIcon$2 = class BaseIcon extends AuroElement$3 {
|
|
721
777
|
constructor() {
|
|
722
778
|
super();
|
|
723
779
|
this.onDark = false;
|
|
@@ -791,7 +847,7 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
|
|
|
791
847
|
|
|
792
848
|
var tokensCss$4 = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
793
849
|
|
|
794
|
-
var colorCss$6 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}`;
|
|
850
|
+
var colorCss$6 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
795
851
|
|
|
796
852
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
797
853
|
// See LICENSE in the project root for license information.
|
|
@@ -960,7 +1016,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
960
1016
|
}
|
|
961
1017
|
};
|
|
962
1018
|
|
|
963
|
-
var iconVersion$2 = '8.0.
|
|
1019
|
+
var iconVersion$2 = '8.0.3';
|
|
964
1020
|
|
|
965
1021
|
class DateFormatter {
|
|
966
1022
|
|
|
@@ -2692,16 +2748,21 @@ const flip$1 = function (options) {
|
|
|
2692
2748
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
2693
2749
|
const nextPlacement = placements[nextIndex];
|
|
2694
2750
|
if (nextPlacement) {
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2751
|
+
var _overflowsData$;
|
|
2752
|
+
const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
2753
|
+
const hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
|
|
2754
|
+
if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow) {
|
|
2755
|
+
// Try next placement and re-run the lifecycle.
|
|
2756
|
+
return {
|
|
2757
|
+
data: {
|
|
2758
|
+
index: nextIndex,
|
|
2759
|
+
overflows: overflowsData
|
|
2760
|
+
},
|
|
2761
|
+
reset: {
|
|
2762
|
+
placement: nextPlacement
|
|
2763
|
+
}
|
|
2764
|
+
};
|
|
2765
|
+
}
|
|
2705
2766
|
}
|
|
2706
2767
|
|
|
2707
2768
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
@@ -3353,6 +3414,12 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
3353
3414
|
scrollTop: 0
|
|
3354
3415
|
};
|
|
3355
3416
|
const offsets = createCoords(0);
|
|
3417
|
+
|
|
3418
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
3419
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
3420
|
+
function setLeftRTLScrollbarOffset() {
|
|
3421
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
3422
|
+
}
|
|
3356
3423
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
3357
3424
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
3358
3425
|
scroll = getNodeScroll(offsetParent);
|
|
@@ -3362,11 +3429,12 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
3362
3429
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
3363
3430
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
3364
3431
|
} else if (documentElement) {
|
|
3365
|
-
|
|
3366
|
-
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
3367
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
3432
|
+
setLeftRTLScrollbarOffset();
|
|
3368
3433
|
}
|
|
3369
3434
|
}
|
|
3435
|
+
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
3436
|
+
setLeftRTLScrollbarOffset();
|
|
3437
|
+
}
|
|
3370
3438
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
3371
3439
|
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
3372
3440
|
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
@@ -3543,7 +3611,7 @@ function observeMove(element, onMove) {
|
|
|
3543
3611
|
// Handle <iframe>s
|
|
3544
3612
|
root: root.ownerDocument
|
|
3545
3613
|
});
|
|
3546
|
-
} catch (
|
|
3614
|
+
} catch (_e) {
|
|
3547
3615
|
io = new IntersectionObserver(handleObserve, options);
|
|
3548
3616
|
}
|
|
3549
3617
|
io.observe(element);
|
|
@@ -4498,7 +4566,7 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
4498
4566
|
|
|
4499
4567
|
var tokensCss$2 = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
4500
4568
|
|
|
4501
|
-
var colorCss$3 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}`;
|
|
4569
|
+
var colorCss$3 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
4502
4570
|
|
|
4503
4571
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4504
4572
|
// See LICENSE in the project root for license information.
|
|
@@ -4673,7 +4741,7 @@ var styleCss$2$1 = i$5`:host{position:absolute;z-index:var(--depth-tooltip, 400)
|
|
|
4673
4741
|
|
|
4674
4742
|
var colorCss$2$1 = i$5`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
4675
4743
|
|
|
4676
|
-
var tokensCss$1 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
|
|
4744
|
+
var tokensCss$1 = i$5`:host(:not([ondark])){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}`;
|
|
4677
4745
|
|
|
4678
4746
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4679
4747
|
// See LICENSE in the project root for license information.
|
|
@@ -4796,9 +4864,15 @@ class AuroDropdownBib extends i$2 {
|
|
|
4796
4864
|
|
|
4797
4865
|
var dropdownVersion$1 = '3.0.0';
|
|
4798
4866
|
|
|
4799
|
-
var
|
|
4867
|
+
var shapeSizeCss = i$5`.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0;min-height:60px;max-height:60px;background-color:unset}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-rounded-lg{min-height:52px;max-height:52px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px}.shape-pill-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px 0 0 34px}.shape-pill-left-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 34px 34px 0}.shape-pill-right-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px}.shape-pill-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px 0 0 34px}.shape-pill-left-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 34px 34px 0}.shape-pill-right-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}`;
|
|
4868
|
+
|
|
4869
|
+
var styleCss$1$1 = i$5`:host([layout*=classic]){position:relative;display:inline-block;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .trigger{position:relative;display:flex;align-items:center}:host([layout*=classic]) .trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@media(hover: hover){:host([layout*=classic]) .trigger:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([layout*=classic][fluid]){display:block}:host([layout*=classic][matchwidth]) #bibSizer{width:100%}:host([layout*=classic][disabled]){pointer-events:none}:host([layout*=classic][inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][inset][bordered][labeled]) .trigger{padding:var(--ds-size-100, 0.5rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
4870
|
+
|
|
4871
|
+
var colorCss$1$1 = i$5`:host .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus,:host(:not([ondark])) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus,:host([ondark]) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([error]:not([ondark])){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([error][ondark]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helpText{color:var(--ds-auro-dropdown-helptext-text-color)}`;
|
|
4800
4872
|
|
|
4801
|
-
var
|
|
4873
|
+
var styleEmphasizedCss = i$5`:host{display:block}.wrapper{display:flex;flex-direction:column}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:24px;width:calc(100% - 48px)}`;
|
|
4874
|
+
|
|
4875
|
+
var styleSnowflakeCss = i$5`:host{display:block}.wrapper{display:flex;flex-direction:column}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=snowflake]) .leftIndent{margin-left:24px;width:calc(100% - 48px)}:host([layout*=snowflake]) .rightIndent{margin-right:24px;width:calc(100% - 48px)}`;
|
|
4802
4876
|
|
|
4803
4877
|
var colorCss$4 = 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)}`;
|
|
4804
4878
|
|
|
@@ -5008,6 +5082,98 @@ class AuroHelpText extends i$2 {
|
|
|
5008
5082
|
|
|
5009
5083
|
var helpTextVersion = '1.0.0';
|
|
5010
5084
|
|
|
5085
|
+
let AuroElement$2 = class AuroElement extends i$2 {
|
|
5086
|
+
static get properties() {
|
|
5087
|
+
return {
|
|
5088
|
+
|
|
5089
|
+
/**
|
|
5090
|
+
* Defines the language of an element.
|
|
5091
|
+
* @default {'default'}
|
|
5092
|
+
*/
|
|
5093
|
+
layout: {
|
|
5094
|
+
type: String,
|
|
5095
|
+
attribute: "layout",
|
|
5096
|
+
reflect: true
|
|
5097
|
+
},
|
|
5098
|
+
|
|
5099
|
+
shape: {
|
|
5100
|
+
type: String,
|
|
5101
|
+
attribute: "shape",
|
|
5102
|
+
reflect: true
|
|
5103
|
+
},
|
|
5104
|
+
|
|
5105
|
+
size: {
|
|
5106
|
+
type: String,
|
|
5107
|
+
attribute: "size",
|
|
5108
|
+
reflect: true
|
|
5109
|
+
},
|
|
5110
|
+
|
|
5111
|
+
onDark: {
|
|
5112
|
+
type: Boolean,
|
|
5113
|
+
attribute: "ondark",
|
|
5114
|
+
reflect: true
|
|
5115
|
+
}
|
|
5116
|
+
};
|
|
5117
|
+
}
|
|
5118
|
+
|
|
5119
|
+
resetShapeClasses() {
|
|
5120
|
+
if (this.shape && this.size) {
|
|
5121
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
5122
|
+
|
|
5123
|
+
if (wrapper) {
|
|
5124
|
+
wrapper.classList.forEach((className) => {
|
|
5125
|
+
if (className.startsWith('shape-')) {
|
|
5126
|
+
wrapper.classList.remove(className);
|
|
5127
|
+
}
|
|
5128
|
+
});
|
|
5129
|
+
|
|
5130
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
5131
|
+
}
|
|
5132
|
+
}
|
|
5133
|
+
}
|
|
5134
|
+
|
|
5135
|
+
resetLayoutClasses() {
|
|
5136
|
+
if (this.layout) {
|
|
5137
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
5138
|
+
|
|
5139
|
+
if (wrapper) {
|
|
5140
|
+
wrapper.classList.forEach((className) => {
|
|
5141
|
+
if (className.startsWith('layout-')) {
|
|
5142
|
+
wrapper.classList.remove(className);
|
|
5143
|
+
}
|
|
5144
|
+
});
|
|
5145
|
+
|
|
5146
|
+
wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
5147
|
+
}
|
|
5148
|
+
}
|
|
5149
|
+
}
|
|
5150
|
+
|
|
5151
|
+
updateComponentArchitecture() {
|
|
5152
|
+
this.resetLayoutClasses();
|
|
5153
|
+
this.resetShapeClasses();
|
|
5154
|
+
}
|
|
5155
|
+
|
|
5156
|
+
updated(changedProperties) {
|
|
5157
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
5158
|
+
this.updateComponentArchitecture();
|
|
5159
|
+
}
|
|
5160
|
+
}
|
|
5161
|
+
|
|
5162
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
5163
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
5164
|
+
render() {
|
|
5165
|
+
try {
|
|
5166
|
+
return this.renderLayout();
|
|
5167
|
+
} catch (error) {
|
|
5168
|
+
// failed to get the defined layout
|
|
5169
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
5170
|
+
|
|
5171
|
+
// fallback to the default layout
|
|
5172
|
+
return this.getLayout('default');
|
|
5173
|
+
}
|
|
5174
|
+
}
|
|
5175
|
+
};
|
|
5176
|
+
|
|
5011
5177
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5012
5178
|
// See LICENSE in the project root for license information.
|
|
5013
5179
|
|
|
@@ -5025,7 +5191,7 @@ var helpTextVersion = '1.0.0';
|
|
|
5025
5191
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
5026
5192
|
* @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
|
|
5027
5193
|
*/
|
|
5028
|
-
class AuroDropdown extends
|
|
5194
|
+
class AuroDropdown extends AuroElement$2 {
|
|
5029
5195
|
constructor() {
|
|
5030
5196
|
super();
|
|
5031
5197
|
|
|
@@ -5034,26 +5200,29 @@ class AuroDropdown extends i$2 {
|
|
|
5034
5200
|
this.matchWidth = false;
|
|
5035
5201
|
this.noHideOnThisFocusLoss = false;
|
|
5036
5202
|
|
|
5203
|
+
this.errorMessage = ''; // TODO!
|
|
5204
|
+
|
|
5205
|
+
// Layout Config
|
|
5206
|
+
this.layout = 'default';
|
|
5207
|
+
this.shape = 'rounded';
|
|
5208
|
+
this.size = 'xl';
|
|
5209
|
+
|
|
5037
5210
|
this.privateDefaults();
|
|
5211
|
+
}
|
|
5038
5212
|
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
*/
|
|
5043
|
-
this.constructor.shadowRootOptions = {
|
|
5044
|
-
...i$2.shadowRootOptions,
|
|
5045
|
-
delegatesFocus: true,
|
|
5213
|
+
get commonLabelClasses() {
|
|
5214
|
+
return {
|
|
5215
|
+
// 'withValue': this.value && this.value.length > 0
|
|
5046
5216
|
};
|
|
5217
|
+
}
|
|
5047
5218
|
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
*/
|
|
5056
|
-
this.showTriggerBorders = true;
|
|
5219
|
+
get commonWrapperClasses() {
|
|
5220
|
+
return {
|
|
5221
|
+
'trigger': true,
|
|
5222
|
+
'wrapper': true,
|
|
5223
|
+
'hasFocus': this.hasFocus,
|
|
5224
|
+
'simple': this.simple
|
|
5225
|
+
};
|
|
5057
5226
|
}
|
|
5058
5227
|
|
|
5059
5228
|
/**
|
|
@@ -5061,7 +5230,6 @@ class AuroDropdown extends i$2 {
|
|
|
5061
5230
|
* @returns {void} Internal defaults.
|
|
5062
5231
|
*/
|
|
5063
5232
|
privateDefaults() {
|
|
5064
|
-
this.bordered = false;
|
|
5065
5233
|
this.chevron = false;
|
|
5066
5234
|
this.disabled = false;
|
|
5067
5235
|
this.error = false;
|
|
@@ -5071,8 +5239,11 @@ class AuroDropdown extends i$2 {
|
|
|
5071
5239
|
this.noToggle = false;
|
|
5072
5240
|
this.a11yAutocomplete = 'none';
|
|
5073
5241
|
this.labeled = true;
|
|
5074
|
-
this.a11yRole = '
|
|
5242
|
+
this.a11yRole = 'button';
|
|
5075
5243
|
this.onDark = false;
|
|
5244
|
+
this.showTriggerBorders = true;
|
|
5245
|
+
this.triggerContentFocusable = false;
|
|
5246
|
+
this.simple = false;
|
|
5076
5247
|
|
|
5077
5248
|
// floaterConfig
|
|
5078
5249
|
this.placement = 'bottom-start';
|
|
@@ -5080,6 +5251,15 @@ class AuroDropdown extends i$2 {
|
|
|
5080
5251
|
this.noFlip = false;
|
|
5081
5252
|
this.autoPlacement = false;
|
|
5082
5253
|
|
|
5254
|
+
/**
|
|
5255
|
+
* @private
|
|
5256
|
+
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
5257
|
+
*/
|
|
5258
|
+
this.constructor.shadowRootOptions = {
|
|
5259
|
+
...i$2.shadowRootOptions,
|
|
5260
|
+
delegatesFocus: true,
|
|
5261
|
+
};
|
|
5262
|
+
|
|
5083
5263
|
/**
|
|
5084
5264
|
* @private
|
|
5085
5265
|
*/
|
|
@@ -5170,7 +5350,7 @@ class AuroDropdown extends i$2 {
|
|
|
5170
5350
|
/**
|
|
5171
5351
|
* If declared, applies a border around the trigger slot.
|
|
5172
5352
|
*/
|
|
5173
|
-
|
|
5353
|
+
simple: {
|
|
5174
5354
|
type: Boolean,
|
|
5175
5355
|
reflect: true
|
|
5176
5356
|
},
|
|
@@ -5218,13 +5398,20 @@ class AuroDropdown extends i$2 {
|
|
|
5218
5398
|
},
|
|
5219
5399
|
|
|
5220
5400
|
/**
|
|
5221
|
-
* If declared in combination with `
|
|
5401
|
+
* If declared in combination with not using the `simple` property or `helpText` slot content, will apply red color to both.
|
|
5222
5402
|
*/
|
|
5223
5403
|
error: {
|
|
5224
5404
|
type: Boolean,
|
|
5225
5405
|
reflect: true
|
|
5226
5406
|
},
|
|
5227
5407
|
|
|
5408
|
+
/**
|
|
5409
|
+
* Contains the help text message for the current validity error.
|
|
5410
|
+
*/
|
|
5411
|
+
errorMessage: {
|
|
5412
|
+
type: String
|
|
5413
|
+
},
|
|
5414
|
+
|
|
5228
5415
|
/**
|
|
5229
5416
|
* If declared, the bib will display when focus is applied to the trigger.
|
|
5230
5417
|
*/
|
|
@@ -5359,11 +5546,6 @@ class AuroDropdown extends i$2 {
|
|
|
5359
5546
|
|
|
5360
5547
|
/**
|
|
5361
5548
|
* Position where the bib should appear relative to the trigger.
|
|
5362
|
-
* Accepted values:
|
|
5363
|
-
* "top" | "right" | "bottom" | "left" |
|
|
5364
|
-
* "bottom-start" | "top-start" | "top-end" |
|
|
5365
|
-
* "right-start" | "right-end" | "bottom-end" |
|
|
5366
|
-
* "left-start" | "left-end"
|
|
5367
5549
|
* @default bottom-start
|
|
5368
5550
|
*/
|
|
5369
5551
|
placement: {
|
|
@@ -5409,7 +5591,10 @@ class AuroDropdown extends i$2 {
|
|
|
5409
5591
|
return [
|
|
5410
5592
|
colorCss$1$1,
|
|
5411
5593
|
styleCss$1$1,
|
|
5412
|
-
tokensCss$1
|
|
5594
|
+
tokensCss$1,
|
|
5595
|
+
styleEmphasizedCss,
|
|
5596
|
+
styleSnowflakeCss,
|
|
5597
|
+
shapeSizeCss
|
|
5413
5598
|
];
|
|
5414
5599
|
}
|
|
5415
5600
|
|
|
@@ -5445,6 +5630,7 @@ class AuroDropdown extends i$2 {
|
|
|
5445
5630
|
}
|
|
5446
5631
|
|
|
5447
5632
|
updated(changedProperties) {
|
|
5633
|
+
super.updated(changedProperties);
|
|
5448
5634
|
this.floater.handleUpdate(changedProperties);
|
|
5449
5635
|
|
|
5450
5636
|
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
@@ -5454,7 +5640,7 @@ class AuroDropdown extends i$2 {
|
|
|
5454
5640
|
}
|
|
5455
5641
|
|
|
5456
5642
|
// when trigger's content is changed without any attribute or node change,
|
|
5457
|
-
// `requestUpdate` needs to be called to update
|
|
5643
|
+
// `requestUpdate` needs to be called to update hasTriggerContent
|
|
5458
5644
|
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
5459
5645
|
this.handleTriggerContentSlotChange();
|
|
5460
5646
|
}
|
|
@@ -5515,6 +5701,24 @@ class AuroDropdown extends i$2 {
|
|
|
5515
5701
|
return inCustomSlot;
|
|
5516
5702
|
}
|
|
5517
5703
|
|
|
5704
|
+
/**
|
|
5705
|
+
* Function to support @focusin event.
|
|
5706
|
+
* @private
|
|
5707
|
+
* @return {void}
|
|
5708
|
+
*/
|
|
5709
|
+
handleFocusin() {
|
|
5710
|
+
this.hasFocus = true;
|
|
5711
|
+
}
|
|
5712
|
+
|
|
5713
|
+
/**
|
|
5714
|
+
* Function to support @focusout event.
|
|
5715
|
+
* @private
|
|
5716
|
+
* @return {void}
|
|
5717
|
+
*/
|
|
5718
|
+
handleFocusout() {
|
|
5719
|
+
this.hasFocus = false;
|
|
5720
|
+
}
|
|
5721
|
+
|
|
5518
5722
|
/**
|
|
5519
5723
|
* Determines if the element or any children are focusable.
|
|
5520
5724
|
* @private
|
|
@@ -5574,8 +5778,8 @@ class AuroDropdown extends i$2 {
|
|
|
5574
5778
|
}
|
|
5575
5779
|
|
|
5576
5780
|
/**
|
|
5577
|
-
* @private
|
|
5578
5781
|
* Creates and dispatches a duplicate focus event on the trigger element.
|
|
5782
|
+
* @private
|
|
5579
5783
|
* @param {Event} event - The original focus event.
|
|
5580
5784
|
*/
|
|
5581
5785
|
bindFocusEventToTrigger(event) {
|
|
@@ -5588,9 +5792,9 @@ class AuroDropdown extends i$2 {
|
|
|
5588
5792
|
}
|
|
5589
5793
|
|
|
5590
5794
|
/**
|
|
5591
|
-
* @private
|
|
5592
5795
|
* Sets up event listeners to deliver focus and blur events from nested Auro components within the trigger slot to trigger.
|
|
5593
5796
|
* This ensures that focus/blur events originating from within these components are propagated to the trigger element itself.
|
|
5797
|
+
* @private
|
|
5594
5798
|
*/
|
|
5595
5799
|
setupTriggerFocusEventBinding() {
|
|
5596
5800
|
if (!this.triggerContentSlot || this.triggerContentSlot.length === 0) {
|
|
@@ -5684,7 +5888,7 @@ class AuroDropdown extends i$2 {
|
|
|
5684
5888
|
// If there are children
|
|
5685
5889
|
if (triggerContentNodes) {
|
|
5686
5890
|
|
|
5687
|
-
// See if any of them are focusable
|
|
5891
|
+
// See if any of them are focusable elements
|
|
5688
5892
|
this.triggerContentFocusable = triggerContentNodes.some((node) => this.containsFocusableElement(node));
|
|
5689
5893
|
|
|
5690
5894
|
// If any of them are focusable elements
|
|
@@ -5770,8 +5974,75 @@ class AuroDropdown extends i$2 {
|
|
|
5770
5974
|
this.labeled = nodesArr.length > 0;
|
|
5771
5975
|
}
|
|
5772
5976
|
|
|
5773
|
-
|
|
5774
|
-
|
|
5977
|
+
/**
|
|
5978
|
+
* Returns HTML for the common portion of the layouts.
|
|
5979
|
+
* @private
|
|
5980
|
+
* @param {Object} helpTextClasses - Classes to apply to the help text container.
|
|
5981
|
+
* @returns {html} - Returns HTML.
|
|
5982
|
+
*/
|
|
5983
|
+
renderBasicHtml(helpTextClasses) {
|
|
5984
|
+
return u`
|
|
5985
|
+
<div>
|
|
5986
|
+
<div
|
|
5987
|
+
id="trigger"
|
|
5988
|
+
class="${e(this.commonWrapperClasses)}" part="wrapper"
|
|
5989
|
+
tabindex="${this.tabIndex}"
|
|
5990
|
+
?showBorder="${this.showTriggerBorders}"
|
|
5991
|
+
role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
5992
|
+
aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
5993
|
+
aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
5994
|
+
aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
5995
|
+
@focusin="${this.handleFocusin}"
|
|
5996
|
+
@blur="${this.handleFocusOut}">
|
|
5997
|
+
<div class="triggerContentWrapper">
|
|
5998
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
5999
|
+
<slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
6000
|
+
</label>
|
|
6001
|
+
<div class="triggerContent">
|
|
6002
|
+
<slot
|
|
6003
|
+
name="trigger"
|
|
6004
|
+
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
6005
|
+
</div>
|
|
6006
|
+
</div>
|
|
6007
|
+
${this.chevron || this.common ? u`
|
|
6008
|
+
<div
|
|
6009
|
+
id="showStateIcon"
|
|
6010
|
+
part="chevron">
|
|
6011
|
+
<${this.iconTag}
|
|
6012
|
+
category="interface"
|
|
6013
|
+
name="chevron-down"
|
|
6014
|
+
?onDark="${this.onDark}"
|
|
6015
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
6016
|
+
>
|
|
6017
|
+
</${this.iconTag}>
|
|
6018
|
+
</div>
|
|
6019
|
+
` : undefined }
|
|
6020
|
+
</div>
|
|
6021
|
+
<div class="${e(helpTextClasses)}">
|
|
6022
|
+
<slot name="helpText"></slot>
|
|
6023
|
+
</div>
|
|
6024
|
+
<div class="slotContent">
|
|
6025
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
6026
|
+
</div>
|
|
6027
|
+
<div id="bibSizer" part="size"></div>
|
|
6028
|
+
<${this.dropdownBibTag}
|
|
6029
|
+
id="bib"
|
|
6030
|
+
?data-show="${this.isPopoverVisible}"
|
|
6031
|
+
?isfullscreen="${this.isBibFullscreen}"
|
|
6032
|
+
?common="${this.common}"
|
|
6033
|
+
?rounded="${this.common || this.rounded}"
|
|
6034
|
+
?inset="${this.common || this.inset}">
|
|
6035
|
+
</${this.dropdownBibTag}>
|
|
6036
|
+
</div>
|
|
6037
|
+
`;
|
|
6038
|
+
}
|
|
6039
|
+
|
|
6040
|
+
/**
|
|
6041
|
+
* Returns HTML for the classic layout. Does not support type="*".
|
|
6042
|
+
* @private
|
|
6043
|
+
* @returns {html} - Returns HTML for the classic layout.
|
|
6044
|
+
*/
|
|
6045
|
+
renderLayoutClassic() {
|
|
5775
6046
|
return u`
|
|
5776
6047
|
<div>
|
|
5777
6048
|
<div
|
|
@@ -5809,9 +6080,6 @@ class AuroDropdown extends i$2 {
|
|
|
5809
6080
|
</div>
|
|
5810
6081
|
` : undefined }
|
|
5811
6082
|
</div>
|
|
5812
|
-
<${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
|
|
5813
|
-
<slot name="helpText"></slot>
|
|
5814
|
-
</${this.helpTextTag}>
|
|
5815
6083
|
<div class="slotContent">
|
|
5816
6084
|
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
5817
6085
|
</div>
|
|
@@ -5828,6 +6096,67 @@ class AuroDropdown extends i$2 {
|
|
|
5828
6096
|
</div>
|
|
5829
6097
|
`;
|
|
5830
6098
|
}
|
|
6099
|
+
|
|
6100
|
+
/**
|
|
6101
|
+
* Returns HTML for the snowflake layout. Does not support type="*".
|
|
6102
|
+
* @private
|
|
6103
|
+
* @returns {html} - Returns HTML for the snowflake layout.
|
|
6104
|
+
*/
|
|
6105
|
+
renderLayoutSnowflake() {
|
|
6106
|
+
const helpTextClasses = {
|
|
6107
|
+
'helpText': true,
|
|
6108
|
+
'leftIndent': true,
|
|
6109
|
+
'rightIndent': true
|
|
6110
|
+
};
|
|
6111
|
+
|
|
6112
|
+
return u`
|
|
6113
|
+
${this.renderBasicHtml(helpTextClasses)}
|
|
6114
|
+
`;
|
|
6115
|
+
}
|
|
6116
|
+
|
|
6117
|
+
/**
|
|
6118
|
+
* Returns HTML for the emphasized layout. Does not support type="*".
|
|
6119
|
+
* @private
|
|
6120
|
+
* @returns {html} - Returns HTML for the emphasized layout.
|
|
6121
|
+
*/
|
|
6122
|
+
renderLayoutEmphasized() {
|
|
6123
|
+
const helpTextClasses = {
|
|
6124
|
+
'helpText': true,
|
|
6125
|
+
'leftIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('right'),
|
|
6126
|
+
'rightIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('left')
|
|
6127
|
+
};
|
|
6128
|
+
|
|
6129
|
+
return u`
|
|
6130
|
+
${this.renderBasicHtml(helpTextClasses)}
|
|
6131
|
+
`;
|
|
6132
|
+
}
|
|
6133
|
+
|
|
6134
|
+
/**
|
|
6135
|
+
* Logic to determine the layout of the component.
|
|
6136
|
+
* @private
|
|
6137
|
+
* @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
|
|
6138
|
+
* @returns {HTMLCollection} - Returns the HTML for the layout.
|
|
6139
|
+
*/
|
|
6140
|
+
renderLayout(ForcedLayout) {
|
|
6141
|
+
const layout = ForcedLayout || this.layout;
|
|
6142
|
+
|
|
6143
|
+
switch (layout) {
|
|
6144
|
+
case 'emphasized':
|
|
6145
|
+
return this.renderLayoutEmphasized();
|
|
6146
|
+
case 'emphasized-left':
|
|
6147
|
+
return this.renderLayoutEmphasized();
|
|
6148
|
+
case 'emphasized-right':
|
|
6149
|
+
return this.renderLayoutEmphasized();
|
|
6150
|
+
case 'snowflake':
|
|
6151
|
+
return this.renderLayoutSnowflake();
|
|
6152
|
+
case 'snowflake-left':
|
|
6153
|
+
return this.renderLayoutSnowflake();
|
|
6154
|
+
case 'snowflake-right':
|
|
6155
|
+
return this.renderLayoutSnowflake();
|
|
6156
|
+
default:
|
|
6157
|
+
return this.renderLayoutClassic();
|
|
6158
|
+
}
|
|
6159
|
+
}
|
|
5831
6160
|
}
|
|
5832
6161
|
|
|
5833
6162
|
var dropdownVersion = '3.0.0';
|
|
@@ -6100,7 +6429,7 @@ class BaseIcon extends AuroElement {
|
|
|
6100
6429
|
|
|
6101
6430
|
var tokensCss = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
6102
6431
|
|
|
6103
|
-
var colorCss$2 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}`;
|
|
6432
|
+
var colorCss$2 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
6104
6433
|
|
|
6105
6434
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6106
6435
|
// See LICENSE in the project root for license information.
|
|
@@ -6269,7 +6598,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6269
6598
|
}
|
|
6270
6599
|
}
|
|
6271
6600
|
|
|
6272
|
-
var iconVersion = '8.0.
|
|
6601
|
+
var iconVersion = '8.0.3';
|
|
6273
6602
|
|
|
6274
6603
|
var styleCss$3 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
|
|
6275
6604
|
|