@aurodesignsystem/auro-formkit 5.6.0 → 5.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -6
- package/components/bibtemplate/dist/buttonVersion.d.ts +1 -1
- package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +120 -1659
- package/components/bibtemplate/dist/registered.js +120 -1659
- package/components/checkbox/demo/api.html +2 -2
- package/components/checkbox/demo/api.md +31 -28
- package/components/checkbox/demo/api.min.js +148 -10
- package/components/checkbox/demo/index.html +1 -1
- package/components/checkbox/demo/index.md +18 -18
- package/components/checkbox/demo/index.min.js +148 -10
- package/components/checkbox/dist/auro-checkbox-group.d.ts +11 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +11 -1
- package/components/checkbox/dist/index.js +148 -10
- package/components/checkbox/dist/registered.js +148 -10
- package/components/combobox/demo/api.html +4 -4
- package/components/combobox/demo/api.md +256 -63
- package/components/combobox/demo/api.min.js +4500 -7887
- package/components/combobox/demo/index.html +3 -3
- package/components/combobox/demo/index.md +114 -10
- package/components/combobox/demo/index.min.js +5671 -9058
- package/components/combobox/dist/auro-combobox.d.ts +29 -10
- package/components/combobox/dist/index.js +4500 -7510
- package/components/combobox/dist/registered.js +4500 -7510
- package/components/counter/demo/api.html +3 -3
- package/components/counter/demo/api.md +35 -26
- package/components/counter/demo/api.min.js +2968 -6073
- package/components/counter/demo/index.html +3 -3
- package/components/counter/demo/index.md +42 -42
- package/components/counter/demo/index.min.js +2968 -6073
- package/components/counter/dist/auro-counter-button.d.ts +2 -11
- package/components/counter/dist/auro-counter-group.d.ts +11 -1
- package/components/counter/dist/auro-counter.d.ts +9 -1
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +4915 -8020
- package/components/counter/dist/registered.js +4915 -8020
- package/components/datepicker/demo/api.html +3 -3
- package/components/datepicker/demo/api.md +111 -21
- package/components/datepicker/demo/api.min.js +10474 -14790
- package/components/datepicker/demo/index.html +2 -2
- package/components/datepicker/demo/index.md +30 -30
- package/components/datepicker/demo/index.min.js +10474 -14790
- package/components/datepicker/dist/auro-calendar-cell.d.ts +6 -0
- package/components/datepicker/dist/auro-calendar.d.ts +8 -0
- package/components/datepicker/dist/auro-datepicker.d.ts +21 -1
- package/components/datepicker/dist/index.js +10367 -14683
- package/components/datepicker/dist/registered.js +10367 -14683
- package/components/dropdown/demo/api.html +5 -5
- package/components/dropdown/demo/api.md +38 -29
- package/components/dropdown/demo/api.min.js +88 -417
- package/components/dropdown/demo/index.html +3 -3
- package/components/dropdown/demo/index.md +16 -16
- package/components/dropdown/demo/index.min.js +88 -417
- package/components/dropdown/dist/auro-dropdown.d.ts +11 -1
- package/components/dropdown/dist/index.js +75 -404
- package/components/dropdown/dist/registered.js +75 -404
- package/components/form/demo/api.html +1 -1
- package/components/form/demo/api.min.js +13 -0
- package/components/form/demo/index.html +1 -1
- package/components/form/demo/index.min.js +13 -0
- package/components/form/demo/working.html +2 -2
- package/components/form/dist/index.js +13 -0
- package/components/form/dist/registered.js +13 -0
- package/components/helptext/dist/auro-helptext.d.ts +11 -1
- package/components/helptext/dist/index.js +26 -2
- package/components/helptext/dist/registered.js +26 -2
- package/components/input/demo/api.html +3 -3
- package/components/input/demo/api.js +1 -1
- package/components/input/demo/api.md +37 -34
- package/components/input/demo/api.min.js +323 -1580
- package/components/input/demo/index.html +1 -2
- package/components/input/demo/index.md +17 -17
- package/components/input/demo/index.min.js +323 -1580
- package/components/input/dist/base-input.d.ts +11 -1
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +289 -1546
- package/components/input/dist/registered.js +289 -1546
- package/components/menu/demo/api.html +4 -4
- package/components/menu/demo/api.min.js +57 -421
- package/components/menu/demo/index.html +1 -1
- package/components/menu/demo/index.min.js +57 -421
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +49 -413
- package/components/menu/dist/registered.js +49 -413
- package/components/radio/demo/api.html +2 -2
- package/components/radio/demo/api.md +46 -44
- package/components/radio/demo/api.min.js +183 -14
- package/components/radio/demo/index.html +1 -1
- package/components/radio/demo/index.md +12 -12
- package/components/radio/demo/index.min.js +183 -14
- package/components/radio/dist/auro-radio-group.d.ts +25 -1
- package/components/radio/dist/auro-radio.d.ts +11 -1
- package/components/radio/dist/index.js +183 -14
- package/components/radio/dist/registered.js +183 -14
- package/components/select/demo/api.html +4 -4
- package/components/select/demo/api.md +20 -19
- package/components/select/demo/api.min.js +2859 -4984
- package/components/select/demo/index.html +3 -3
- package/components/select/demo/index.md +25 -25
- package/components/select/demo/index.min.js +2859 -4984
- package/components/select/dist/auro-select.d.ts +11 -1
- package/components/select/dist/index.js +990 -2738
- package/components/select/dist/registered.js +990 -2738
- package/package.json +15 -15
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { unsafeStatic, literal, html as html$1 } from 'lit/static-html.js';
|
|
2
2
|
import { classMap } from 'lit/directives/class-map.js';
|
|
3
|
-
import {
|
|
3
|
+
import { css, html, LitElement } from 'lit';
|
|
4
4
|
import { createRef, ref } from 'lit/directives/ref.js';
|
|
5
5
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@ import { ifDefined } from 'lit/directives/if-defined.js';
|
|
|
11
11
|
|
|
12
12
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
13
13
|
|
|
14
|
-
let AuroLibraryRuntimeUtils$
|
|
14
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
15
15
|
|
|
16
16
|
/* eslint-disable jsdoc/require-param */
|
|
17
17
|
|
|
@@ -72,6 +72,19 @@ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
|
72
72
|
|
|
73
73
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
74
74
|
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Gets the text content of a named slot.
|
|
78
|
+
* @returns {String}
|
|
79
|
+
* @private
|
|
80
|
+
*/
|
|
81
|
+
getSlotText(elem, name) {
|
|
82
|
+
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
83
|
+
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
84
|
+
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
85
|
+
|
|
86
|
+
return text || null;
|
|
87
|
+
}
|
|
75
88
|
};
|
|
76
89
|
|
|
77
90
|
/**
|
|
@@ -1901,7 +1914,7 @@ class AuroFloatingUI {
|
|
|
1901
1914
|
document.body.style.overflow = 'hidden'; // hide body's scrollbar
|
|
1902
1915
|
|
|
1903
1916
|
// Move `bib` by the amount the viewport is shifted to stay aligned in fullscreen.
|
|
1904
|
-
this.element.bib.style.transform = `translateY(${visualViewport
|
|
1917
|
+
this.element.bib.style.transform = `translateY(${window?.visualViewport?.offsetTop}px)`;
|
|
1905
1918
|
} else {
|
|
1906
1919
|
document.body.style.overflow = '';
|
|
1907
1920
|
}
|
|
@@ -1934,7 +1947,7 @@ class AuroFloatingUI {
|
|
|
1934
1947
|
bibContent.style.width = '';
|
|
1935
1948
|
bibContent.style.height = '';
|
|
1936
1949
|
bibContent.style.maxWidth = '';
|
|
1937
|
-
bibContent.style.maxHeight = `${window
|
|
1950
|
+
bibContent.style.maxHeight = `${window?.visualViewport?.height}px`;
|
|
1938
1951
|
this.configureTrial = 0;
|
|
1939
1952
|
} else if (this.configureTrial < MAX_CONFIGURATION_COUNT) {
|
|
1940
1953
|
this.configureTrial += 1;
|
|
@@ -2640,406 +2653,29 @@ class AuroDependencyVersioning {
|
|
|
2640
2653
|
}
|
|
2641
2654
|
}
|
|
2642
2655
|
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
* @attr {Boolean} hidden - If present, the component will be hidden both visually and from screen readers
|
|
2649
|
-
* @attr {Boolean} hiddenVisually - If present, the component will be hidden visually, but still read by screen readers
|
|
2650
|
-
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
2651
|
-
*/
|
|
2652
|
-
|
|
2653
|
-
let AuroElement$1 = class AuroElement extends LitElement {
|
|
2654
|
-
|
|
2655
|
-
// function to define props used within the scope of this component
|
|
2656
|
-
static get properties() {
|
|
2657
|
-
return {
|
|
2658
|
-
hidden: { type: Boolean,
|
|
2659
|
-
reflect: true },
|
|
2660
|
-
hiddenVisually: { type: Boolean,
|
|
2661
|
-
reflect: true },
|
|
2662
|
-
hiddenAudible: { type: Boolean,
|
|
2663
|
-
reflect: true },
|
|
2664
|
-
};
|
|
2665
|
-
}
|
|
2666
|
-
|
|
2667
|
-
/**
|
|
2668
|
-
* @private Function that determines state of aria-hidden
|
|
2669
|
-
*/
|
|
2670
|
-
hideAudible(value) {
|
|
2671
|
-
if (value) {
|
|
2672
|
-
return 'true'
|
|
2673
|
-
}
|
|
2674
|
-
|
|
2675
|
-
return 'false'
|
|
2676
|
-
}
|
|
2677
|
-
};
|
|
2678
|
-
|
|
2679
|
-
var error = {"role":"img","color":"currentColor","title":"","desc":"Error alert indicator.","width":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","height":"var(--auro-size-lg, var(--ds-size-300, 1.5rem))","xmlns":"http://www.w3.org/2000/svg","xmlns_xlink":"http://www.w3.org/1999/xlink","viewBox":"0 0 24 24","path":"/icons","style":"ico_squareLarge","type":"icon","name":"error","category":"alert","deprecated":true,"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
|
|
2680
|
-
|
|
2681
|
-
/* eslint-disable no-underscore-dangle, jsdoc/no-undefined-types, jsdoc/require-param-description */
|
|
2682
|
-
|
|
2683
|
-
const _fetchMap = new Map();
|
|
2684
|
-
|
|
2685
|
-
/**
|
|
2686
|
-
* A callback to parse Response body.
|
|
2687
|
-
*
|
|
2688
|
-
* @callback ResponseParser
|
|
2689
|
-
* @param {Fetch.Response} response
|
|
2690
|
-
* @returns {Promise}
|
|
2691
|
-
*/
|
|
2692
|
-
|
|
2693
|
-
/**
|
|
2694
|
-
* A minimal in-memory map to de-duplicate Fetch API media requests.
|
|
2695
|
-
*
|
|
2696
|
-
* @param {String} uri
|
|
2697
|
-
* @param {Object} [options={}]
|
|
2698
|
-
* @param {ResponseParser} [options.responseParser=(response) => response.text()]
|
|
2699
|
-
* @returns {Promise}
|
|
2700
|
-
*/
|
|
2701
|
-
const cacheFetch = (uri, options = {}) => {
|
|
2702
|
-
const responseParser = options.responseParser || ((response) => response.text());
|
|
2703
|
-
if (!_fetchMap.has(uri)) {
|
|
2704
|
-
_fetchMap.set(uri, fetch(uri).then(responseParser));
|
|
2705
|
-
}
|
|
2706
|
-
return _fetchMap.get(uri);
|
|
2707
|
-
};
|
|
2708
|
-
|
|
2709
|
-
var styleCss$3 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
2710
|
-
|
|
2711
|
-
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2712
|
-
// See LICENSE in the project root for license information.
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
2716
|
-
/**
|
|
2717
|
-
* @slot - Hidden from visibility, used for a11y if icon description is needed
|
|
2718
|
-
*/
|
|
2719
|
-
|
|
2720
|
-
// build the component class
|
|
2721
|
-
class BaseIcon extends AuroElement$1 {
|
|
2722
|
-
constructor() {
|
|
2723
|
-
super();
|
|
2724
|
-
this.onDark = false;
|
|
2725
|
-
}
|
|
2726
|
-
|
|
2727
|
-
// function to define props used within the scope of this component
|
|
2728
|
-
static get properties() {
|
|
2729
|
-
return {
|
|
2730
|
-
...super.properties,
|
|
2731
|
-
|
|
2732
|
-
/**
|
|
2733
|
-
* Set value for on-dark version of auro-icon.
|
|
2734
|
-
*/
|
|
2735
|
-
onDark: {
|
|
2736
|
-
type: Boolean,
|
|
2737
|
-
reflect: true
|
|
2738
|
-
},
|
|
2739
|
-
|
|
2740
|
-
/**
|
|
2741
|
-
* @private
|
|
2742
|
-
*/
|
|
2743
|
-
svg: {
|
|
2744
|
-
attribute: false,
|
|
2745
|
-
reflect: true
|
|
2746
|
-
}
|
|
2747
|
-
};
|
|
2748
|
-
}
|
|
2749
|
-
|
|
2750
|
-
static get styles() {
|
|
2751
|
-
return css`
|
|
2752
|
-
${styleCss$3}
|
|
2753
|
-
`;
|
|
2754
|
-
}
|
|
2755
|
-
|
|
2756
|
-
/**
|
|
2757
|
-
* Async function to fetch requested icon from npm CDN.
|
|
2758
|
-
* @private
|
|
2759
|
-
* @param {string} category - Icon category.
|
|
2760
|
-
* @param {string} name - Icon name.
|
|
2761
|
-
* @returns {SVGElement} DOM - Ready HTML to be appended.
|
|
2762
|
-
*/
|
|
2763
|
-
async fetchIcon(category, name) {
|
|
2764
|
-
let iconHTML = '';
|
|
2765
|
-
|
|
2766
|
-
if (category === 'logos') {
|
|
2767
|
-
iconHTML = await cacheFetch(`${this.uri}/${category}/${name}.svg`);
|
|
2768
|
-
} else {
|
|
2769
|
-
iconHTML = await cacheFetch(`${this.uri}/icons/${category}/${name}.svg`);
|
|
2770
|
-
}
|
|
2771
|
-
|
|
2772
|
-
const dom = new DOMParser().parseFromString(iconHTML, 'text/html');
|
|
2773
|
-
|
|
2774
|
-
return dom.body.querySelector('svg');
|
|
2775
|
-
}
|
|
2776
|
-
|
|
2777
|
-
// lifecycle function
|
|
2778
|
-
async firstUpdated() {
|
|
2779
|
-
try {
|
|
2780
|
-
if (!this.customSvg) {
|
|
2781
|
-
const svg = await this.fetchIcon(this.category, this.name);
|
|
2782
|
-
|
|
2783
|
-
if (svg) {
|
|
2784
|
-
this.svg = svg;
|
|
2785
|
-
} else if (!svg) {
|
|
2786
|
-
const penDOM = new DOMParser().parseFromString(error.svg, 'text/html');
|
|
2787
|
-
|
|
2788
|
-
this.svg = penDOM.body.firstChild;
|
|
2789
|
-
}
|
|
2790
|
-
}
|
|
2791
|
-
// eslint-disable-next-line no-unused-vars
|
|
2792
|
-
} catch (err) {
|
|
2793
|
-
this.svg = undefined;
|
|
2794
|
-
}
|
|
2795
|
-
}
|
|
2796
|
-
}
|
|
2797
|
-
|
|
2798
|
-
var tokensCss$2 = css`: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)}`;
|
|
2799
|
-
|
|
2800
|
-
var colorCss$3 = css`: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)}`;
|
|
2801
|
-
|
|
2802
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
2803
|
-
// See LICENSE in the project root for license information.
|
|
2804
|
-
|
|
2805
|
-
// ---------------------------------------------------------------------
|
|
2806
|
-
|
|
2807
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
2808
|
-
|
|
2809
|
-
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
2810
|
-
|
|
2811
|
-
/* eslint-disable jsdoc/require-param */
|
|
2812
|
-
|
|
2813
|
-
/**
|
|
2814
|
-
* This will register a new custom element with the browser.
|
|
2815
|
-
* @param {String} name - The name of the custom element.
|
|
2816
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
2817
|
-
* @returns {void}
|
|
2818
|
-
*/
|
|
2819
|
-
registerComponent(name, componentClass) {
|
|
2820
|
-
if (!customElements.get(name)) {
|
|
2821
|
-
customElements.define(name, class extends componentClass {});
|
|
2822
|
-
}
|
|
2823
|
-
}
|
|
2824
|
-
|
|
2825
|
-
/**
|
|
2826
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
2827
|
-
* @returns {void}
|
|
2828
|
-
*/
|
|
2829
|
-
closestElement(
|
|
2830
|
-
selector, // selector like in .closest()
|
|
2831
|
-
base = this, // extra functionality to skip a parent
|
|
2832
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
2833
|
-
!el || el === document || el === window
|
|
2834
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
2835
|
-
: found
|
|
2836
|
-
? found // found a selector INside this element
|
|
2837
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
2838
|
-
) {
|
|
2839
|
-
return __Closest(base);
|
|
2840
|
-
}
|
|
2841
|
-
/* eslint-enable jsdoc/require-param */
|
|
2842
|
-
|
|
2843
|
-
/**
|
|
2844
|
-
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
2845
|
-
* @param {Object} elem - The element to check.
|
|
2846
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
2847
|
-
* @returns {void}
|
|
2848
|
-
*/
|
|
2849
|
-
handleComponentTagRename(elem, tagName) {
|
|
2850
|
-
const tag = tagName.toLowerCase();
|
|
2851
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
2852
|
-
|
|
2853
|
-
if (elemTag !== tag) {
|
|
2854
|
-
elem.setAttribute(tag, true);
|
|
2855
|
-
}
|
|
2856
|
-
}
|
|
2857
|
-
|
|
2858
|
-
/**
|
|
2859
|
-
* Validates if an element is a specific Auro component.
|
|
2860
|
-
* @param {Object} elem - The element to validate.
|
|
2861
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
2862
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
2863
|
-
*/
|
|
2864
|
-
elementMatch(elem, tagName) {
|
|
2865
|
-
const tag = tagName.toLowerCase();
|
|
2866
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
2867
|
-
|
|
2868
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
2869
|
-
}
|
|
2870
|
-
};
|
|
2871
|
-
|
|
2872
|
-
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2873
|
-
// See LICENSE in the project root for license information.
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
class AuroIcon extends BaseIcon {
|
|
2877
|
-
constructor() {
|
|
2878
|
-
super();
|
|
2879
|
-
|
|
2880
|
-
this.variant = undefined;
|
|
2881
|
-
this.privateDefaults();
|
|
2882
|
-
}
|
|
2883
|
-
|
|
2884
|
-
/**
|
|
2885
|
-
* Internal Defaults.
|
|
2886
|
-
* @private
|
|
2887
|
-
* @returns {void}
|
|
2888
|
-
*/
|
|
2889
|
-
privateDefaults() {
|
|
2890
|
-
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
2891
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
2892
|
-
}
|
|
2893
|
-
|
|
2894
|
-
// function to define props used within the scope of this component
|
|
2895
|
-
static get properties() {
|
|
2896
|
-
return {
|
|
2897
|
-
...super.properties,
|
|
2898
|
-
|
|
2899
|
-
/**
|
|
2900
|
-
* Set aria-hidden value. Default is `true`. Option is `false`.
|
|
2901
|
-
*/
|
|
2902
|
-
ariaHidden: {
|
|
2903
|
-
type: String,
|
|
2904
|
-
reflect: true
|
|
2905
|
-
},
|
|
2906
|
-
|
|
2907
|
-
/**
|
|
2908
|
-
* The category of the icon you are looking for. See https://auro.alaskaair.com/icons/usage.
|
|
2909
|
-
*/
|
|
2910
|
-
category: {
|
|
2911
|
-
type: String,
|
|
2912
|
-
reflect: true
|
|
2913
|
-
},
|
|
2914
|
-
|
|
2915
|
-
/**
|
|
2916
|
-
* Allows custom color to be set.
|
|
2917
|
-
*/
|
|
2918
|
-
customColor: {
|
|
2919
|
-
type: Boolean,
|
|
2920
|
-
reflect: true
|
|
2921
|
-
},
|
|
2922
|
-
|
|
2923
|
-
/**
|
|
2924
|
-
* When true, auro-icon will render a custom SVG inside the default slot.
|
|
2925
|
-
*/
|
|
2926
|
-
customSvg: {
|
|
2927
|
-
type: Boolean
|
|
2928
|
-
},
|
|
2929
|
-
|
|
2930
|
-
/**
|
|
2931
|
-
* Exposes content in slot as icon label.
|
|
2932
|
-
*/
|
|
2933
|
-
label: {
|
|
2934
|
-
type: Boolean,
|
|
2935
|
-
reflect: true
|
|
2936
|
-
},
|
|
2937
|
-
|
|
2938
|
-
/**
|
|
2939
|
-
* The name of the icon you are looking for without the file extension. See https://auro.alaskaair.com/icons/usage.
|
|
2940
|
-
*/
|
|
2941
|
-
name: {
|
|
2942
|
-
type: String,
|
|
2943
|
-
reflect: true
|
|
2944
|
-
},
|
|
2945
|
-
|
|
2946
|
-
/**
|
|
2947
|
-
* The style of the icon. The accepted variants are `accent1`, `disabled`, `muted`, `statusDefault`, `statusInfo`, `statusSuccess`, `statusWarning`, `statusError`, `statusInfoSubtle`, `statusSuccessSubtle`, `statusWarningSubtle`, `statusErrorSubtle`, `fareBasicEconomy`, `fareBusiness`, `fareEconomy`, `fareFirst`, `farePremiumEconomy`, `tierOneWorldEmerald`, `tierOneWorldSapphire`, `tierOneWorldRuby`.
|
|
2948
|
-
*/
|
|
2949
|
-
variant: {
|
|
2950
|
-
type: String,
|
|
2951
|
-
reflect: true
|
|
2952
|
-
}
|
|
2953
|
-
};
|
|
2954
|
-
}
|
|
2955
|
-
|
|
2956
|
-
static get styles() {
|
|
2957
|
-
return [
|
|
2958
|
-
super.styles,
|
|
2959
|
-
css`${tokensCss$2}`,
|
|
2960
|
-
css`${styleCss$3}`,
|
|
2961
|
-
css`${colorCss$3}`
|
|
2962
|
-
];
|
|
2963
|
-
}
|
|
2964
|
-
|
|
2965
|
-
/**
|
|
2966
|
-
* This will register this element with the browser.
|
|
2967
|
-
* @param {string} [name="auro-icon"] - The name of element that you want to register to.
|
|
2968
|
-
*
|
|
2969
|
-
* @example
|
|
2970
|
-
* AuroIcon.register("custom-icon") // this will register this element to <custom-icon/>
|
|
2971
|
-
*
|
|
2972
|
-
*/
|
|
2973
|
-
static register(name = "auro-icon") {
|
|
2974
|
-
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
|
|
2975
|
-
}
|
|
2976
|
-
|
|
2977
|
-
connectedCallback() {
|
|
2978
|
-
super.connectedCallback();
|
|
2979
|
-
|
|
2980
|
-
// Add the tag name as an attribute if it is different than the component name
|
|
2981
|
-
this.runtimeUtils.handleComponentTagRename(this, 'auro-icon');
|
|
2982
|
-
}
|
|
2983
|
-
|
|
2984
|
-
/**
|
|
2985
|
-
* @private
|
|
2986
|
-
* @returns {void} Exposes CSS parts for styling from parent components.
|
|
2987
|
-
*/
|
|
2988
|
-
exposeCssParts() {
|
|
2989
|
-
this.setAttribute('exportparts', 'svg:iconSvg');
|
|
2990
|
-
}
|
|
2991
|
-
|
|
2992
|
-
async firstUpdated() {
|
|
2993
|
-
await super.firstUpdated();
|
|
2994
|
-
|
|
2995
|
-
/**
|
|
2996
|
-
* icons provide a description for screen readers. Icon only instances Auro-button
|
|
2997
|
-
* depend on this description to provide context for the user using a screen reader.
|
|
2998
|
-
* Removes the SVG description for screen reader if ariaHidden is set to true.
|
|
2999
|
-
*/
|
|
3000
|
-
if (this.hasAttribute('ariaHidden') && this.svg) {
|
|
3001
|
-
const svgDesc = this.svg.querySelector('desc');
|
|
3002
|
-
|
|
3003
|
-
if (svgDesc) {
|
|
3004
|
-
svgDesc.remove();
|
|
3005
|
-
this.svg.removeAttribute('aria-labelledby');
|
|
3006
|
-
}
|
|
3007
|
-
}
|
|
3008
|
-
}
|
|
3009
|
-
|
|
3010
|
-
// function that renders the HTML and CSS into the scope of the component
|
|
3011
|
-
render() {
|
|
3012
|
-
const labelClasses = {
|
|
3013
|
-
'labelWrapper': true,
|
|
3014
|
-
'util_displayHiddenVisually': !this.label
|
|
3015
|
-
};
|
|
3016
|
-
|
|
3017
|
-
const svgClasses = {
|
|
3018
|
-
'svgWrapper': true,
|
|
3019
|
-
};
|
|
3020
|
-
|
|
3021
|
-
return html`
|
|
2656
|
+
class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,class extends a{});}closestElement(t,a=this,e=(a,s=a&&a.closest(t))=>a&&a!==document&&a!==window?s||e(a.getRootNode().host):null){return e(a)}handleComponentTagRename(t,a){const e=a.toLowerCase();t.tagName.toLowerCase()!==e&&t.setAttribute(e,true);}elementMatch(t,a){const e=a.toLowerCase();return t.tagName.toLowerCase()===e||t.hasAttribute(e)}}var u='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>';class m extends LitElement{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(t){return t?"true":"false"}}const g=new Map,f=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g.has(t)||g.set(t,fetch(t).then(e)),g.get(t)};var w=css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem)!important;width:var(--ds-auro-icon-size, 1.5rem)!important;height:var(--ds-auro-icon-size, 1.5rem)!important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, .25rem);line-height:1.8}
|
|
2657
|
+
`;class z extends m{constructor(){super(),this.onDark=false,this.appearance="default";}static get properties(){return {...m.properties,onDark:{type:Boolean,reflect:true},appearance:{type:String,reflect:true},svg:{attribute:false,reflect:true}}}static get styles(){return w}async fetchIcon(t,a){let e="";e="logos"===t?await f(`${this.uri}/${t}/${a}.svg`):await f(`${this.uri}/icons/${t}/${a}.svg`);return (new DOMParser).parseFromString(e,"text/html").body.querySelector("svg")}async firstUpdated(){try{if(!this.customSvg){const t=await this.fetchIcon(this.category,this.name);if(t)this.svg=t;else if(!t){const t=(new DOMParser).parseFromString(u,"text/html");this.svg=t.body.firstChild;}}}catch(t){this.svg=void 0;}}}css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}:host{display:inline-block;--ds-auro-icon-size: 100%;width:100%;height:100%}:host .logo{color:var(--ds-auro-alaska-color)}:host([onDark]),:host([appearance=inverse]){--ds-auro-alaska-color: #FFF}
|
|
2658
|
+
`;var y=css`: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)}
|
|
2659
|
+
`;var k=css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]),:host(:not([appearance=inverse])[variant=accent1]){--ds-auro-icon-color: var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]),:host(:not([appearance=inverse])[variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]),:host(:not([appearance=inverse])[variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]),:host(:not([appearance=inverse])[variant=statusDefault]){--ds-auro-icon-color: var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]),:host(:not([appearance=inverse])[variant=statusInfo]){--ds-auro-icon-color: var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]),:host(:not([appearance=inverse])[variant=statusSuccess]){--ds-auro-icon-color: var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]),:host(:not([appearance=inverse])[variant=statusWarning]){--ds-auro-icon-color: var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]),:host(:not([appearance=inverse])[variant=statusError]){--ds-auro-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]),:host(:not([appearance=inverse])[variant=statusInfoSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]),:host(:not([appearance=inverse])[variant=statusSuccessSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]),:host(:not([appearance=inverse])[variant=statusWarningSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]),:host(:not([appearance=inverse])[variant=statusErrorSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]),:host(:not([appearance=inverse])[variant=fareBasicEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]),:host(:not([appearance=inverse])[variant=fareBusiness]){--ds-auro-icon-color: var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]),:host(:not([appearance=inverse])[variant=fareEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]),:host(:not([appearance=inverse])[variant=fareFirst]){--ds-auro-icon-color: var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]),:host(:not([appearance=inverse])[variant=farePremiumEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]),:host(:not([appearance=inverse])[variant=tierOneWorldEmerald]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]),:host(:not([appearance=inverse])[variant=tierOneWorldSapphire]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]),:host(:not([appearance=inverse])[variant=tierOneWorldRuby]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]),:host([appearance=inverse]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]),:host([appearance=inverse][variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]),:host([appearance=inverse][variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]),:host([appearance=inverse][variant=statusError]){--ds-auro-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}
|
|
2660
|
+
`;class x extends z{constructor(){super(),this.variant=void 0,this.privateDefaults();}privateDefaults(){this.uri="https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist",this.runtimeUtils=new p;}static get properties(){return {...z.properties,ariaHidden:{type:String,reflect:true},category:{type:String,reflect:true},customColor:{type:Boolean,reflect:true},customSvg:{type:Boolean},label:{type:Boolean,reflect:true},name:{type:String,reflect:true},variant:{type:String,reflect:true}}}static get styles(){return [z.styles,y,w,k]}static register(t="auro-icon"){p.prototype.registerComponent(t,x);}connectedCallback(){super.connectedCallback(),this.runtimeUtils.handleComponentTagRename(this,"auro-icon");}exposeCssParts(){this.setAttribute("exportparts","svg:iconSvg");}async firstUpdated(){if(await super.firstUpdated(),this.hasAttribute("ariaHidden")&&this.svg){const t=this.svg.querySelector("desc");t&&(t.remove(),this.svg.removeAttribute("aria-labelledby"));}}render(){const t={labelWrapper:true,util_displayHiddenVisually:!this.label};return html`
|
|
3022
2661
|
<div class="componentWrapper">
|
|
3023
2662
|
<div
|
|
3024
|
-
class="${classMap(
|
|
3025
|
-
title="${ifDefined(this.title
|
|
3026
|
-
<span aria-hidden="${ifDefined(this.ariaHidden
|
|
3027
|
-
${this.customSvg
|
|
2663
|
+
class="${classMap({svgWrapper:true})}"
|
|
2664
|
+
title="${ifDefined(this.title||void 0)}">
|
|
2665
|
+
<span aria-hidden="${ifDefined(this.ariaHidden||true)}" part="svg">
|
|
2666
|
+
${this.customSvg?html`
|
|
3028
2667
|
<slot name="svg"></slot>
|
|
3029
|
-
|
|
2668
|
+
`:html`
|
|
3030
2669
|
${this.svg}
|
|
3031
|
-
`
|
|
3032
|
-
}
|
|
2670
|
+
`}
|
|
3033
2671
|
</span>
|
|
3034
2672
|
</div>
|
|
3035
2673
|
|
|
3036
|
-
<div class="${classMap(
|
|
2674
|
+
<div class="${classMap(t)}" part="label">
|
|
3037
2675
|
<slot></slot>
|
|
3038
2676
|
</div>
|
|
3039
2677
|
</div>
|
|
3040
|
-
|
|
3041
|
-
}
|
|
3042
|
-
}
|
|
2678
|
+
`}}
|
|
3043
2679
|
|
|
3044
2680
|
var iconVersion = '8.1.2';
|
|
3045
2681
|
|
|
@@ -3047,7 +2683,7 @@ var styleCss$2 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);disp
|
|
|
3047
2683
|
|
|
3048
2684
|
var colorCss$2 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
3049
2685
|
|
|
3050
|
-
var tokensCss$1 = css`: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-hover-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: var(--ds-basic-color-border-bold, #585e67);--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-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-hover-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: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-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)}`;
|
|
2686
|
+
var tokensCss$1 = css`:host(:not([ondark])),:host(:not([appearance=inverse])){--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-hover-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: var(--ds-basic-color-border-bold, #585e67);--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-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]),:host([appearance=inverse]){--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-hover-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: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-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)}`;
|
|
3051
2687
|
|
|
3052
2688
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3053
2689
|
// See LICENSE in the project root for license information.
|
|
@@ -3077,7 +2713,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
3077
2713
|
*/
|
|
3078
2714
|
this._mobileBreakpointValue = undefined;
|
|
3079
2715
|
|
|
3080
|
-
AuroLibraryRuntimeUtils$
|
|
2716
|
+
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
3081
2717
|
|
|
3082
2718
|
this.shape = "rounded";
|
|
3083
2719
|
this.matchWidth = false;
|
|
@@ -3244,7 +2880,7 @@ var dropdownVersion = '3.0.0';
|
|
|
3244
2880
|
|
|
3245
2881
|
var shapeSizeCss = css`.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:56px;max-height:56px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:58px;max-height:58px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:56px;max-height:56px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:54px;max-height:54px}.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:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-box-lg{min-height:52px;max-height:52px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-box-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-box-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-box-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-box-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-box-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-box-sm{min-height:32px;max-height:32px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-box-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-box-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-box-xs{min-height:20px;max-height:20px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-box-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-box-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
|
|
3246
2882
|
|
|
3247
|
-
var colorCss$1 = css`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([ondark])) .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-within,:host(:not([ondark])) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host(:not([ondark])) .wrapper:hover{--ds-auro-dropdown-trigger-background-color: var(--ds-auro-dropdown-trigger-hover-background-color)}:host(:not([onDark])[disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label,:host([onDark]) .helpText{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .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([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark]) .wrapper:hover{--ds-auro-dropdown-trigger-background-color: var(--ds-auro-dropdown-trigger-hover-background-color)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
2883
|
+
var colorCss$1 = css`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([ondark])) .wrapper,:host(:not([appearance=inverse])) .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-within,:host(:not([ondark])) .wrapper:active,:host(:not([appearance=inverse])) .wrapper:focus-within,:host(:not([appearance=inverse])) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host(:not([ondark])) .wrapper:hover,:host(:not([appearance=inverse])) .wrapper:hover{--ds-auro-dropdown-trigger-background-color: var(--ds-auro-dropdown-trigger-hover-background-color)}:host(:not([onDark])[disabled]),:host(:not([appearance=inverse])[disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]),:host(:not([appearance=inverse])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label,:host([onDark]) .helpText,:host([appearance=inverse]) .label,:host([appearance=inverse]) .helpText{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .wrapper,:host([appearance=inverse]) .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([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active,:host([appearance=inverse]) .wrapper:focus-within,:host([appearance=inverse]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark]) .wrapper:hover,:host([appearance=inverse]) .wrapper:hover{--ds-auro-dropdown-trigger-background-color: var(--ds-auro-dropdown-trigger-hover-background-color)}:host([onDark][disabled]),:host([appearance=inverse][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]),:host([appearance=inverse][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
3248
2884
|
|
|
3249
2885
|
var styleCss$1 = css`:host{position:relative;display:block;text-align:left}[popover=manual]{overflow:visible;padding:0;border:inherit;margin:0;background:inherit;outline:inherit}:host([open]){z-index:var(--depth-tooltip, 400)}.wrapper{display:flex;flex:1;flex-direction:row;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([matchwidth]) #bibSizer{width:100%}`;
|
|
3250
2886
|
|
|
@@ -3256,7 +2892,7 @@ var styleEmphasizedCss = css`.layout-emphasized .chevron,.layout-emphasized-left
|
|
|
3256
2892
|
|
|
3257
2893
|
var styleSnowflakeCss = css`:host([layout*=snowflake]) .leftIndent{width:calc(100% - var(--ds-size-400, 2rem));margin-left:var(--ds-size-200, 1rem)}:host([layout*=snowflake]) .rightIndent{width:calc(100% - var(--ds-size-400, 2rem));margin-right:var(--ds-size-200, 1rem)}:host([layout*=snowflake]) .trigger,:host([layout*=snowflake]) .helpText{text-align:center}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-200, 1rem)}`;
|
|
3258
2894
|
|
|
3259
|
-
var colorCss = css`: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)}`;
|
|
2895
|
+
var colorCss = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]),:host([appearance=inverse]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]),:host([appearance=inverse][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
3260
2896
|
|
|
3261
2897
|
var styleCss = 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, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host{position:relative;display:block}.helptext-wrapper{display:none}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
3262
2898
|
|
|
@@ -3330,6 +2966,19 @@ class AuroLibraryRuntimeUtils {
|
|
|
3330
2966
|
|
|
3331
2967
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
3332
2968
|
}
|
|
2969
|
+
|
|
2970
|
+
/**
|
|
2971
|
+
* Gets the text content of a named slot.
|
|
2972
|
+
* @returns {String}
|
|
2973
|
+
* @private
|
|
2974
|
+
*/
|
|
2975
|
+
getSlotText(elem, name) {
|
|
2976
|
+
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
2977
|
+
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
2978
|
+
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
2979
|
+
|
|
2980
|
+
return text || null;
|
|
2981
|
+
}
|
|
3333
2982
|
}
|
|
3334
2983
|
|
|
3335
2984
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
@@ -3345,6 +2994,7 @@ class AuroHelpText extends LitElement {
|
|
|
3345
2994
|
super();
|
|
3346
2995
|
|
|
3347
2996
|
this.error = false;
|
|
2997
|
+
this.appearance = "default";
|
|
3348
2998
|
this.onDark = false;
|
|
3349
2999
|
this.hasTextContent = false;
|
|
3350
3000
|
|
|
@@ -3363,6 +3013,16 @@ class AuroHelpText extends LitElement {
|
|
|
3363
3013
|
static get properties() {
|
|
3364
3014
|
return {
|
|
3365
3015
|
|
|
3016
|
+
/**
|
|
3017
|
+
* Defines whether the component will be on lighter or darker backgrounds.
|
|
3018
|
+
* @property {'default', 'inverse'}
|
|
3019
|
+
* @default 'default'
|
|
3020
|
+
*/
|
|
3021
|
+
appearance: {
|
|
3022
|
+
type: String,
|
|
3023
|
+
reflect: true
|
|
3024
|
+
},
|
|
3025
|
+
|
|
3366
3026
|
/**
|
|
3367
3027
|
* @private
|
|
3368
3028
|
*/
|
|
@@ -3386,7 +3046,7 @@ class AuroHelpText extends LitElement {
|
|
|
3386
3046
|
},
|
|
3387
3047
|
|
|
3388
3048
|
/**
|
|
3389
|
-
*
|
|
3049
|
+
* DEPRECATED - use `appearance` instead.
|
|
3390
3050
|
*/
|
|
3391
3051
|
onDark: {
|
|
3392
3052
|
type: Boolean,
|
|
@@ -3629,6 +3289,7 @@ class AuroDropdown extends AuroElement {
|
|
|
3629
3289
|
* @returns {void} Internal defaults.
|
|
3630
3290
|
*/
|
|
3631
3291
|
privateDefaults() {
|
|
3292
|
+
this.appearance = 'default';
|
|
3632
3293
|
this.chevron = false;
|
|
3633
3294
|
this.disabled = false;
|
|
3634
3295
|
this.disableFocusTrap = false;
|
|
@@ -3670,7 +3331,7 @@ class AuroDropdown extends AuroElement {
|
|
|
3670
3331
|
/**
|
|
3671
3332
|
* @private
|
|
3672
3333
|
*/
|
|
3673
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
3334
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
3674
3335
|
|
|
3675
3336
|
/**
|
|
3676
3337
|
* @private
|
|
@@ -3685,7 +3346,7 @@ class AuroDropdown extends AuroElement {
|
|
|
3685
3346
|
/**
|
|
3686
3347
|
* @private
|
|
3687
3348
|
*/
|
|
3688
|
-
this.iconTag = versioning.generateTag('auro-formkit-dropdown-icon', iconVersion,
|
|
3349
|
+
this.iconTag = versioning.generateTag('auro-formkit-dropdown-icon', iconVersion, x);
|
|
3689
3350
|
|
|
3690
3351
|
/**
|
|
3691
3352
|
* @private
|
|
@@ -3748,6 +3409,16 @@ class AuroDropdown extends AuroElement {
|
|
|
3748
3409
|
static get properties() {
|
|
3749
3410
|
return {
|
|
3750
3411
|
|
|
3412
|
+
/**
|
|
3413
|
+
* Defines whether the component will be on lighter or darker backgrounds.
|
|
3414
|
+
* @property {'default', 'inverse'}
|
|
3415
|
+
* @default 'default'
|
|
3416
|
+
*/
|
|
3417
|
+
appearance: {
|
|
3418
|
+
type: String,
|
|
3419
|
+
reflect: true
|
|
3420
|
+
},
|
|
3421
|
+
|
|
3751
3422
|
/**
|
|
3752
3423
|
* If declared, bib's position will be automatically calculated where to appear.
|
|
3753
3424
|
* @default false
|
|
@@ -3946,7 +3617,7 @@ class AuroDropdown extends AuroElement {
|
|
|
3946
3617
|
},
|
|
3947
3618
|
|
|
3948
3619
|
/**
|
|
3949
|
-
*
|
|
3620
|
+
* DEPRECATED - use `appearance` instead.
|
|
3950
3621
|
*/
|
|
3951
3622
|
onDark: {
|
|
3952
3623
|
type: Boolean,
|
|
@@ -4017,7 +3688,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4017
3688
|
*
|
|
4018
3689
|
*/
|
|
4019
3690
|
static register(name = "auro-dropdown") {
|
|
4020
|
-
AuroLibraryRuntimeUtils$
|
|
3691
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
|
|
4021
3692
|
}
|
|
4022
3693
|
|
|
4023
3694
|
/**
|
|
@@ -4387,7 +4058,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4387
4058
|
<${this.iconTag}
|
|
4388
4059
|
category="interface"
|
|
4389
4060
|
name="${this.isPopoverVisible ? 'chevron-up' : `chevron-down`}"
|
|
4390
|
-
|
|
4061
|
+
appearance="${this.onDark ? 'inverse' : this.appearance}"
|
|
4391
4062
|
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
4392
4063
|
>
|
|
4393
4064
|
</${this.iconTag}>
|