@aurodesignsystem-dev/auro-formkit 0.0.0-pr807.2 → 0.0.0-pr808.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/headerVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +96 -60
- package/components/bibtemplate/dist/registered.js +96 -60
- package/components/checkbox/demo/api.md +6 -7
- package/components/checkbox/demo/api.min.js +8 -5
- package/components/checkbox/demo/index.min.js +8 -5
- package/components/checkbox/dist/auro-checkbox.d.ts +0 -3
- package/components/checkbox/dist/index.js +8 -5
- package/components/checkbox/dist/registered.js +8 -5
- package/components/combobox/demo/api.min.js +111 -79
- package/components/combobox/demo/index.min.js +111 -79
- package/components/combobox/dist/index.js +107 -75
- package/components/combobox/dist/registered.js +107 -75
- package/components/counter/demo/api.min.js +116 -80
- package/components/counter/demo/index.min.js +116 -80
- package/components/counter/dist/index.js +116 -80
- package/components/counter/dist/registered.js +116 -80
- package/components/datepicker/demo/api.min.js +97 -65
- package/components/datepicker/demo/index.min.js +97 -65
- package/components/datepicker/dist/index.js +97 -65
- package/components/datepicker/dist/registered.js +97 -65
- package/components/dropdown/demo/api.min.js +1 -1
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/input/demo/api.min.js +1 -5
- package/components/input/demo/index.min.js +1 -5
- package/components/input/dist/index.js +1 -5
- package/components/input/dist/registered.js +1 -5
- package/components/radio/demo/api.md +0 -2
- package/components/radio/demo/api.min.js +1 -3
- package/components/radio/demo/index.min.js +1 -3
- package/components/radio/dist/auro-radio.d.ts +0 -2
- package/components/radio/dist/index.js +1 -3
- package/components/radio/dist/registered.js +1 -3
- package/components/select/demo/api.min.js +113 -92
- package/components/select/demo/index.min.js +113 -92
- package/components/select/dist/index.js +109 -88
- package/components/select/dist/registered.js +109 -88
- package/package.json +1 -1
|
@@ -568,7 +568,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
568
568
|
|
|
569
569
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
570
570
|
|
|
571
|
-
let AuroLibraryRuntimeUtils$
|
|
571
|
+
let AuroLibraryRuntimeUtils$8 = class AuroLibraryRuntimeUtils {
|
|
572
572
|
|
|
573
573
|
/* eslint-disable jsdoc/require-param */
|
|
574
574
|
|
|
@@ -646,7 +646,7 @@ var shapeSize$1 = i$5`.shape-rounded-xl{min-height:68px;max-height:68px;border-s
|
|
|
646
646
|
|
|
647
647
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
648
648
|
|
|
649
|
-
let AuroLibraryRuntimeUtils$
|
|
649
|
+
let AuroLibraryRuntimeUtils$7 = class AuroLibraryRuntimeUtils {
|
|
650
650
|
|
|
651
651
|
/* eslint-disable jsdoc/require-param */
|
|
652
652
|
|
|
@@ -741,7 +741,7 @@ let AuroLoader$1 = class AuroLoader extends i$2 {
|
|
|
741
741
|
/**
|
|
742
742
|
* @private
|
|
743
743
|
*/
|
|
744
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
744
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$7();
|
|
745
745
|
|
|
746
746
|
this.orbit = false;
|
|
747
747
|
this.ringworm = false;
|
|
@@ -804,7 +804,7 @@ let AuroLoader$1 = class AuroLoader extends i$2 {
|
|
|
804
804
|
*
|
|
805
805
|
*/
|
|
806
806
|
static register(name = "auro-loader") {
|
|
807
|
-
AuroLibraryRuntimeUtils$
|
|
807
|
+
AuroLibraryRuntimeUtils$7.prototype.registerComponent(name, AuroLoader);
|
|
808
808
|
}
|
|
809
809
|
|
|
810
810
|
firstUpdated() {
|
|
@@ -1084,7 +1084,7 @@ let AuroButton$1 = class AuroButton extends AuroElement$5 {
|
|
|
1084
1084
|
*
|
|
1085
1085
|
*/
|
|
1086
1086
|
static register(name = "auro-button") {
|
|
1087
|
-
AuroLibraryRuntimeUtils$
|
|
1087
|
+
AuroLibraryRuntimeUtils$8.prototype.registerComponent(name, AuroButton);
|
|
1088
1088
|
}
|
|
1089
1089
|
|
|
1090
1090
|
/**
|
|
@@ -1289,7 +1289,7 @@ class AuroCounterButton extends AuroButton$1 {
|
|
|
1289
1289
|
*
|
|
1290
1290
|
*/
|
|
1291
1291
|
static register(name = "auro-counter-button") {
|
|
1292
|
-
AuroLibraryRuntimeUtils$
|
|
1292
|
+
AuroLibraryRuntimeUtils$8.prototype.registerComponent(name, AuroCounterButton);
|
|
1293
1293
|
}
|
|
1294
1294
|
}
|
|
1295
1295
|
|
|
@@ -1460,7 +1460,7 @@ var colorCss$8 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
|
|
|
1460
1460
|
|
|
1461
1461
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
1462
1462
|
|
|
1463
|
-
let AuroLibraryRuntimeUtils$
|
|
1463
|
+
let AuroLibraryRuntimeUtils$6 = class AuroLibraryRuntimeUtils {
|
|
1464
1464
|
|
|
1465
1465
|
/* eslint-disable jsdoc/require-param */
|
|
1466
1466
|
|
|
@@ -1542,7 +1542,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
1542
1542
|
*/
|
|
1543
1543
|
privateDefaults() {
|
|
1544
1544
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
1545
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
1545
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$6();
|
|
1546
1546
|
}
|
|
1547
1547
|
|
|
1548
1548
|
// function to define props used within the scope of this component
|
|
@@ -1624,7 +1624,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
1624
1624
|
*
|
|
1625
1625
|
*/
|
|
1626
1626
|
static register(name = "auro-icon") {
|
|
1627
|
-
AuroLibraryRuntimeUtils$
|
|
1627
|
+
AuroLibraryRuntimeUtils$6.prototype.registerComponent(name, AuroIcon);
|
|
1628
1628
|
}
|
|
1629
1629
|
|
|
1630
1630
|
connectedCallback() {
|
|
@@ -2112,7 +2112,7 @@ const {
|
|
|
2112
2112
|
class AuroFormValidation {
|
|
2113
2113
|
|
|
2114
2114
|
constructor() {
|
|
2115
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
2115
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$8();
|
|
2116
2116
|
}
|
|
2117
2117
|
|
|
2118
2118
|
/**
|
|
@@ -2528,7 +2528,7 @@ var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
|
|
|
2528
2528
|
|
|
2529
2529
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
2530
2530
|
|
|
2531
|
-
let AuroLibraryRuntimeUtils$
|
|
2531
|
+
let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
|
|
2532
2532
|
|
|
2533
2533
|
/* eslint-disable jsdoc/require-param */
|
|
2534
2534
|
|
|
@@ -2607,7 +2607,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
2607
2607
|
this.onDark = false;
|
|
2608
2608
|
this.hasTextContent = false;
|
|
2609
2609
|
|
|
2610
|
-
AuroLibraryRuntimeUtils$
|
|
2610
|
+
AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
2611
2611
|
}
|
|
2612
2612
|
|
|
2613
2613
|
static get styles() {
|
|
@@ -2663,7 +2663,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
2663
2663
|
*
|
|
2664
2664
|
*/
|
|
2665
2665
|
static register(name = "auro-helptext") {
|
|
2666
|
-
AuroLibraryRuntimeUtils$
|
|
2666
|
+
AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroHelpText);
|
|
2667
2667
|
}
|
|
2668
2668
|
|
|
2669
2669
|
updated() {
|
|
@@ -2891,7 +2891,7 @@ class AuroCounter extends i$2 {
|
|
|
2891
2891
|
* AuroCounter.register("custom-counter") // registers <custom-counter/>
|
|
2892
2892
|
*/
|
|
2893
2893
|
static register(name = "auro-counter") {
|
|
2894
|
-
AuroLibraryRuntimeUtils$
|
|
2894
|
+
AuroLibraryRuntimeUtils$8.prototype.registerComponent(name, AuroCounter);
|
|
2895
2895
|
}
|
|
2896
2896
|
|
|
2897
2897
|
static get styles() {
|
|
@@ -6271,7 +6271,7 @@ var shapeSizeCss = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic
|
|
|
6271
6271
|
|
|
6272
6272
|
var colorCss$1$1 = i$5`: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])[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{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][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-basic-color-status-error-subtle, #fbc6c6)}`;
|
|
6273
6273
|
|
|
6274
|
-
var styleCss$1$1 = i$5`:host{position:relative;display:block}:host([open]){z-index:var(--depth-tooltip, 400)}.wrapper{display:flex;
|
|
6274
|
+
var styleCss$1$1 = i$5`:host{position:relative;display:block}: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%}`;
|
|
6275
6275
|
|
|
6276
6276
|
var classicColorCss = i$5``;
|
|
6277
6277
|
|
|
@@ -6294,7 +6294,7 @@ var tokensCss$3 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
|
|
|
6294
6294
|
|
|
6295
6295
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6296
6296
|
|
|
6297
|
-
let AuroLibraryRuntimeUtils$
|
|
6297
|
+
let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
6298
6298
|
|
|
6299
6299
|
/* eslint-disable jsdoc/require-param */
|
|
6300
6300
|
|
|
@@ -6373,7 +6373,7 @@ class AuroHelpText extends i$2 {
|
|
|
6373
6373
|
this.onDark = false;
|
|
6374
6374
|
this.hasTextContent = false;
|
|
6375
6375
|
|
|
6376
|
-
AuroLibraryRuntimeUtils$
|
|
6376
|
+
AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
6377
6377
|
}
|
|
6378
6378
|
|
|
6379
6379
|
static get styles() {
|
|
@@ -6429,7 +6429,7 @@ class AuroHelpText extends i$2 {
|
|
|
6429
6429
|
*
|
|
6430
6430
|
*/
|
|
6431
6431
|
static register(name = "auro-helptext") {
|
|
6432
|
-
AuroLibraryRuntimeUtils$
|
|
6432
|
+
AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHelpText);
|
|
6433
6433
|
}
|
|
6434
6434
|
|
|
6435
6435
|
updated() {
|
|
@@ -7492,7 +7492,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
7492
7492
|
|
|
7493
7493
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
7494
7494
|
|
|
7495
|
-
let AuroLibraryRuntimeUtils$
|
|
7495
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
7496
7496
|
|
|
7497
7497
|
/* eslint-disable jsdoc/require-param */
|
|
7498
7498
|
|
|
@@ -8075,7 +8075,7 @@ var shapeSize = i$5`.shape-rounded-xl{min-height:68px;max-height:68px;border-sty
|
|
|
8075
8075
|
|
|
8076
8076
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
8077
8077
|
|
|
8078
|
-
let AuroLibraryRuntimeUtils$
|
|
8078
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
8079
8079
|
|
|
8080
8080
|
/* eslint-disable jsdoc/require-param */
|
|
8081
8081
|
|
|
@@ -8170,7 +8170,7 @@ class AuroLoader extends i$2 {
|
|
|
8170
8170
|
/**
|
|
8171
8171
|
* @private
|
|
8172
8172
|
*/
|
|
8173
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
8173
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
8174
8174
|
|
|
8175
8175
|
this.orbit = false;
|
|
8176
8176
|
this.ringworm = false;
|
|
@@ -8233,7 +8233,7 @@ class AuroLoader extends i$2 {
|
|
|
8233
8233
|
*
|
|
8234
8234
|
*/
|
|
8235
8235
|
static register(name = "auro-loader") {
|
|
8236
|
-
AuroLibraryRuntimeUtils$
|
|
8236
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroLoader);
|
|
8237
8237
|
}
|
|
8238
8238
|
|
|
8239
8239
|
firstUpdated() {
|
|
@@ -8513,7 +8513,7 @@ class AuroButton extends AuroElement$1 {
|
|
|
8513
8513
|
*
|
|
8514
8514
|
*/
|
|
8515
8515
|
static register(name = "auro-button") {
|
|
8516
|
-
AuroLibraryRuntimeUtils$
|
|
8516
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroButton);
|
|
8517
8517
|
}
|
|
8518
8518
|
|
|
8519
8519
|
/**
|
|
@@ -8850,7 +8850,7 @@ var colorCss$4 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
|
|
|
8850
8850
|
|
|
8851
8851
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
8852
8852
|
|
|
8853
|
-
class AuroLibraryRuntimeUtils {
|
|
8853
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
8854
8854
|
|
|
8855
8855
|
/* eslint-disable jsdoc/require-param */
|
|
8856
8856
|
|
|
@@ -8911,7 +8911,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
8911
8911
|
|
|
8912
8912
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
8913
8913
|
}
|
|
8914
|
-
}
|
|
8914
|
+
};
|
|
8915
8915
|
|
|
8916
8916
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
8917
8917
|
// See LICENSE in the project root for license information.
|
|
@@ -8932,7 +8932,7 @@ class AuroIcon extends BaseIcon {
|
|
|
8932
8932
|
*/
|
|
8933
8933
|
privateDefaults() {
|
|
8934
8934
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
8935
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
8935
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
8936
8936
|
}
|
|
8937
8937
|
|
|
8938
8938
|
// function to define props used within the scope of this component
|
|
@@ -9014,7 +9014,7 @@ class AuroIcon extends BaseIcon {
|
|
|
9014
9014
|
*
|
|
9015
9015
|
*/
|
|
9016
9016
|
static register(name = "auro-icon") {
|
|
9017
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
|
|
9017
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
|
|
9018
9018
|
}
|
|
9019
9019
|
|
|
9020
9020
|
connectedCallback() {
|
|
@@ -9086,7 +9086,77 @@ class AuroIcon extends BaseIcon {
|
|
|
9086
9086
|
|
|
9087
9087
|
var iconVersion = '8.1.0';
|
|
9088
9088
|
|
|
9089
|
-
var styleCss$5 = i$5`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.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.63)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.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, 1)}.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.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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-xl{font-family:var(--wcss-accent-xl-family, "Good OT", 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", 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-md{font-family:var(--wcss-accent-md-family, "Good OT", 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", 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-xs{font-family:var(--wcss-accent-xs-family, "Good OT", 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", 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)}: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)}`;
|
|
9089
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
9090
|
+
// See LICENSE in the project root for license information.
|
|
9091
|
+
|
|
9092
|
+
// ---------------------------------------------------------------------
|
|
9093
|
+
|
|
9094
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
9095
|
+
|
|
9096
|
+
class AuroLibraryRuntimeUtils {
|
|
9097
|
+
|
|
9098
|
+
/* eslint-disable jsdoc/require-param */
|
|
9099
|
+
|
|
9100
|
+
/**
|
|
9101
|
+
* This will register a new custom element with the browser.
|
|
9102
|
+
* @param {String} name - The name of the custom element.
|
|
9103
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
9104
|
+
* @returns {void}
|
|
9105
|
+
*/
|
|
9106
|
+
registerComponent(name, componentClass) {
|
|
9107
|
+
if (!customElements.get(name)) {
|
|
9108
|
+
customElements.define(name, class extends componentClass {});
|
|
9109
|
+
}
|
|
9110
|
+
}
|
|
9111
|
+
|
|
9112
|
+
/**
|
|
9113
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
9114
|
+
* @returns {void}
|
|
9115
|
+
*/
|
|
9116
|
+
closestElement(
|
|
9117
|
+
selector, // selector like in .closest()
|
|
9118
|
+
base = this, // extra functionality to skip a parent
|
|
9119
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
9120
|
+
!el || el === document || el === window
|
|
9121
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
9122
|
+
: found
|
|
9123
|
+
? found // found a selector INside this element
|
|
9124
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
9125
|
+
) {
|
|
9126
|
+
return __Closest(base);
|
|
9127
|
+
}
|
|
9128
|
+
/* eslint-enable jsdoc/require-param */
|
|
9129
|
+
|
|
9130
|
+
/**
|
|
9131
|
+
* 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.
|
|
9132
|
+
* @param {Object} elem - The element to check.
|
|
9133
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
9134
|
+
* @returns {void}
|
|
9135
|
+
*/
|
|
9136
|
+
handleComponentTagRename(elem, tagName) {
|
|
9137
|
+
const tag = tagName.toLowerCase();
|
|
9138
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
9139
|
+
|
|
9140
|
+
if (elemTag !== tag) {
|
|
9141
|
+
elem.setAttribute(tag, true);
|
|
9142
|
+
}
|
|
9143
|
+
}
|
|
9144
|
+
|
|
9145
|
+
/**
|
|
9146
|
+
* Validates if an element is a specific Auro component.
|
|
9147
|
+
* @param {Object} elem - The element to validate.
|
|
9148
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
9149
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
9150
|
+
*/
|
|
9151
|
+
elementMatch(elem, tagName) {
|
|
9152
|
+
const tag = tagName.toLowerCase();
|
|
9153
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
9154
|
+
|
|
9155
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
9156
|
+
}
|
|
9157
|
+
}
|
|
9158
|
+
|
|
9159
|
+
var styleCss$5 = 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)}`;
|
|
9090
9160
|
|
|
9091
9161
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
9092
9162
|
// See LICENSE in the project root for license information.
|
|
@@ -9096,12 +9166,13 @@ var styleCss$5 = i$5`.body-default{font-size:var(--wcss-body-default-font-size,
|
|
|
9096
9166
|
* The auro-header component is a custom element to make using headers with the Auro Design System seamless and easy.
|
|
9097
9167
|
*
|
|
9098
9168
|
* @attr {Boolean} no-margin-block - if declared, margin-block will be set to `0`
|
|
9169
|
+
* @attr {String} level - Determines heading level for HTML element. Options are `1` - `6`
|
|
9170
|
+
* @attr {String} display - Determines presentation of header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
|
|
9099
9171
|
* @attr {String} color - Allows user to pass in CSS custom property or direct hex value to change the color of the header
|
|
9100
|
-
* @attr {String} display - Determines the visual appearance of the header. Options are `display`, `800`, `700`, `600`, `500`, `400`, `300`.
|
|
9101
|
-
* @attr {String} level - Determines the semantic heading level of the HTML element. Options are `1` - `6`
|
|
9102
9172
|
* @attr {String} margin - Specify the margin(s) to be altered. Options are `top`, `bottom`, or `both`.
|
|
9103
9173
|
* @attr {String} size - Specify size of margin adjustment, either `none`, `25`, `50`, `100`, `150`, `200`, `300`, `400`, `600` or `800`.
|
|
9104
9174
|
*/
|
|
9175
|
+
|
|
9105
9176
|
/* eslint complexity: ["error", 21] */
|
|
9106
9177
|
|
|
9107
9178
|
// build the component class
|
|
@@ -9114,7 +9185,7 @@ class AuroHeader extends i$2 {
|
|
|
9114
9185
|
/**
|
|
9115
9186
|
* @private
|
|
9116
9187
|
*/
|
|
9117
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils
|
|
9188
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
9118
9189
|
}
|
|
9119
9190
|
|
|
9120
9191
|
// function to define props used within the scope of this component
|
|
@@ -9135,22 +9206,6 @@ class AuroHeader extends i$2 {
|
|
|
9135
9206
|
return [styleCss$5];
|
|
9136
9207
|
}
|
|
9137
9208
|
|
|
9138
|
-
/**
|
|
9139
|
-
* Mapping of display values to their corresponding CSS classes
|
|
9140
|
-
* @private
|
|
9141
|
-
*/
|
|
9142
|
-
static get displayClassMap() {
|
|
9143
|
-
return {
|
|
9144
|
-
'display': 'heading-xl',
|
|
9145
|
-
'800': 'heading-xl',
|
|
9146
|
-
'700': 'heading-lg',
|
|
9147
|
-
'600': 'heading-md',
|
|
9148
|
-
'500': 'heading-sm',
|
|
9149
|
-
'400': 'heading-xs',
|
|
9150
|
-
'300': 'heading-2xs'
|
|
9151
|
-
};
|
|
9152
|
-
}
|
|
9153
|
-
|
|
9154
9209
|
/**
|
|
9155
9210
|
* This will register this element with the browser.
|
|
9156
9211
|
* @param {string} [name="auro-header"] - The name of element that you want to register to.
|
|
@@ -9160,7 +9215,7 @@ class AuroHeader extends i$2 {
|
|
|
9160
9215
|
*
|
|
9161
9216
|
*/
|
|
9162
9217
|
static register(name = "auro-header") {
|
|
9163
|
-
AuroLibraryRuntimeUtils
|
|
9218
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHeader);
|
|
9164
9219
|
}
|
|
9165
9220
|
|
|
9166
9221
|
firstUpdated() {
|
|
@@ -9227,42 +9282,23 @@ class AuroHeader extends i$2 {
|
|
|
9227
9282
|
this.display = 'display';
|
|
9228
9283
|
}
|
|
9229
9284
|
|
|
9230
|
-
|
|
9231
|
-
|
|
9232
|
-
|
|
9233
|
-
|
|
9234
|
-
|
|
9235
|
-
|
|
9236
|
-
|
|
9237
|
-
'heading': true,
|
|
9238
|
-
[`heading--${this.display}`]: true,
|
|
9239
|
-
[headingClass]: true
|
|
9240
|
-
};
|
|
9241
|
-
|
|
9242
|
-
// Add spacing classes to the class object if they exist
|
|
9243
|
-
if (spacingClasses) {
|
|
9244
|
-
const spacingClassArray = spacingClasses.split(' ');
|
|
9245
|
-
spacingClassArray.forEach(cls => {
|
|
9246
|
-
if (cls.trim()) {
|
|
9247
|
-
classObject[cls.trim()] = true;
|
|
9248
|
-
}
|
|
9249
|
-
});
|
|
9285
|
+
switch (level) {
|
|
9286
|
+
case '2': return x`<h2 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h2>`;
|
|
9287
|
+
case '3': return x`<h3 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h3>`;
|
|
9288
|
+
case '4': return x`<h4 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h4>`;
|
|
9289
|
+
case '5': return x`<h5 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h5>`;
|
|
9290
|
+
case '6': return x`<h6 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h6>`;
|
|
9291
|
+
default: return x`<h1 class="heading heading--${this.display} ${this.spacingDecision(this.size)}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></h1>`;
|
|
9250
9292
|
}
|
|
9251
|
-
|
|
9252
|
-
const headerClasses = e(classObject);
|
|
9253
|
-
|
|
9254
|
-
// unsafeStatic dynamically creates tag names at runtime
|
|
9255
|
-
const tag = s(`h${headingLevel}`);
|
|
9256
|
-
return u`<${tag} class="${headerClasses}" style="color: ${o(this.color ? this.color : undefined)}"><slot></slot></${tag}>`;
|
|
9257
9293
|
}
|
|
9258
|
-
|
|
9259
9294
|
// function that renders the HTML and CSS into the scope of the component
|
|
9295
|
+
|
|
9260
9296
|
render() {
|
|
9261
9297
|
return this.template(this.level);
|
|
9262
9298
|
}
|
|
9263
9299
|
}
|
|
9264
9300
|
|
|
9265
|
-
var headerVersion = '4.0.
|
|
9301
|
+
var headerVersion = '4.0.1';
|
|
9266
9302
|
|
|
9267
9303
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
9268
9304
|
// See LICENSE in the project root for license information.
|
|
@@ -9275,7 +9311,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
9275
9311
|
|
|
9276
9312
|
this.large = false;
|
|
9277
9313
|
|
|
9278
|
-
AuroLibraryRuntimeUtils$
|
|
9314
|
+
AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
9279
9315
|
|
|
9280
9316
|
const versioning = new AuroDependencyVersioning();
|
|
9281
9317
|
|
|
@@ -9327,7 +9363,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
9327
9363
|
*
|
|
9328
9364
|
*/
|
|
9329
9365
|
static register(name = "auro-bibtemplate") {
|
|
9330
|
-
AuroLibraryRuntimeUtils$
|
|
9366
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroBibtemplate);
|
|
9331
9367
|
}
|
|
9332
9368
|
|
|
9333
9369
|
/**
|
|
@@ -9446,7 +9482,7 @@ class AuroCounterWrapper extends i$2 {
|
|
|
9446
9482
|
* AuroCounterWrapper.register("custom-counter-wrapper") // registers <custom-counter-wrapper/>
|
|
9447
9483
|
*/
|
|
9448
9484
|
static register(name = "auro-counter-wrapper") {
|
|
9449
|
-
AuroLibraryRuntimeUtils$
|
|
9485
|
+
AuroLibraryRuntimeUtils$8.prototype.registerComponent(name, AuroCounterWrapper);
|
|
9450
9486
|
}
|
|
9451
9487
|
|
|
9452
9488
|
// function that renders the HTML and CSS into the scope of the component
|
|
@@ -10142,7 +10178,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
10142
10178
|
* AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
|
|
10143
10179
|
*/
|
|
10144
10180
|
static register(name = "auro-counter-group") {
|
|
10145
|
-
AuroLibraryRuntimeUtils$
|
|
10181
|
+
AuroLibraryRuntimeUtils$8.prototype.registerComponent(name, AuroCounterGroup);
|
|
10146
10182
|
}
|
|
10147
10183
|
|
|
10148
10184
|
/**
|