@aurodesignsystem/auro-formkit 2.0.3-beta.1 → 2.1.0-beta.2

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.
Files changed (66) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/components/bibtemplate/dist/index.js +148 -8
  3. package/components/bibtemplate/dist/registered.js +148 -8
  4. package/components/checkbox/README.md +1 -1
  5. package/components/checkbox/demo/api.min.js +1 -1
  6. package/components/checkbox/demo/index.min.js +1 -1
  7. package/components/checkbox/demo/readme.md +1 -1
  8. package/components/checkbox/dist/index.js +1 -1
  9. package/components/checkbox/dist/registered.js +1 -1
  10. package/components/combobox/README.md +1 -1
  11. package/components/combobox/demo/api.min.js +644 -113
  12. package/components/combobox/demo/index.min.js +644 -113
  13. package/components/combobox/demo/readme.md +1 -1
  14. package/components/combobox/dist/index.js +511 -50
  15. package/components/combobox/dist/registered.js +511 -50
  16. package/components/counter/README.md +1 -1
  17. package/components/counter/demo/api.min.js +500 -39
  18. package/components/counter/demo/index.js +1 -0
  19. package/components/counter/demo/index.min.js +501 -39
  20. package/components/counter/demo/readme.md +1 -1
  21. package/components/counter/dist/index.js +500 -39
  22. package/components/counter/dist/registered.js +500 -39
  23. package/components/datepicker/README.md +1 -1
  24. package/components/datepicker/demo/api.md +30 -0
  25. package/components/datepicker/demo/api.min.js +1281 -207
  26. package/components/datepicker/demo/index.min.js +1281 -207
  27. package/components/datepicker/demo/readme.md +1 -1
  28. package/components/datepicker/dist/auro-calendar.d.ts +5 -1
  29. package/components/datepicker/dist/auro-datepicker.d.ts +7 -0
  30. package/components/datepicker/dist/buttonVersion.d.ts +2 -0
  31. package/components/datepicker/dist/index.js +1281 -207
  32. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  33. package/components/datepicker/dist/registered.js +1281 -207
  34. package/components/dropdown/README.md +1 -1
  35. package/components/dropdown/demo/api.min.js +81 -10
  36. package/components/dropdown/demo/index.min.js +81 -10
  37. package/components/dropdown/demo/readme.md +1 -1
  38. package/components/dropdown/dist/index.js +81 -10
  39. package/components/dropdown/dist/registered.js +81 -10
  40. package/components/form/README.md +1 -1
  41. package/components/form/demo/readme.md +1 -1
  42. package/components/input/README.md +1 -1
  43. package/components/input/demo/api.min.js +263 -13
  44. package/components/input/demo/index.min.js +263 -13
  45. package/components/input/demo/readme.md +1 -1
  46. package/components/input/dist/index.js +263 -13
  47. package/components/input/dist/registered.js +263 -13
  48. package/components/menu/README.md +1 -1
  49. package/components/menu/demo/api.min.js +77 -7
  50. package/components/menu/demo/index.min.js +77 -7
  51. package/components/menu/demo/readme.md +1 -1
  52. package/components/menu/dist/index.js +77 -7
  53. package/components/menu/dist/registered.js +77 -7
  54. package/components/radio/README.md +1 -1
  55. package/components/radio/demo/api.min.js +1 -1
  56. package/components/radio/demo/index.min.js +1 -1
  57. package/components/radio/demo/readme.md +1 -1
  58. package/components/radio/dist/index.js +1 -1
  59. package/components/radio/dist/registered.js +1 -1
  60. package/components/select/README.md +1 -1
  61. package/components/select/demo/api.min.js +319 -38
  62. package/components/select/demo/index.min.js +319 -38
  63. package/components/select/demo/readme.md +1 -1
  64. package/components/select/dist/index.js +240 -29
  65. package/components/select/dist/registered.js +240 -29
  66. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Semantic Release Automated Changelog
2
2
 
3
+ # [2.1.0-beta.2](https://github.com/AlaskaAirlines/auro-formkit/compare/v2.1.0-beta.1...v2.1.0-beta.2) (2025-03-20)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * correct variable for default date format [#441](https://github.com/AlaskaAirlines/auro-formkit/issues/441) ([70d895a](https://github.com/AlaskaAirlines/auro-formkit/commit/70d895abd16828db7dd1099320a13b695f263965))
9
+
10
+ # [2.1.0-beta.1](https://github.com/AlaskaAirlines/auro-formkit/compare/v2.0.3-beta.1...v2.1.0-beta.1) (2025-03-19)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * update component versions and refactor tags for formkit integration ([6d517b6](https://github.com/AlaskaAirlines/auro-formkit/commit/6d517b6f85318abafaebf9b2d6d8da79b2cf71e3))
16
+
17
+
18
+ ### Features
19
+
20
+ * add `stacked` attribute ([e47976c](https://github.com/AlaskaAirlines/auro-formkit/commit/e47976cc2754fe487d64dd2903bb6ced720a8a60))
21
+
3
22
  ## [2.0.3-beta.1](https://github.com/AlaskaAirlines/auro-formkit/compare/v2.0.2...v2.0.3-beta.1) (2025-03-18)
4
23
 
5
24
 
@@ -16,7 +16,7 @@ var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
16
16
 
17
17
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
18
18
 
19
- class AuroLibraryRuntimeUtils {
19
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
20
20
 
21
21
  /* eslint-disable jsdoc/require-param */
22
22
 
@@ -77,7 +77,7 @@ class AuroLibraryRuntimeUtils {
77
77
 
78
78
  return elemTag === tag || elem.hasAttribute(tag);
79
79
  }
80
- }
80
+ };
81
81
 
82
82
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
83
83
  // See LICENSE in the project root for license information.
@@ -270,6 +270,76 @@ var tokensCss = css`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-defau
270
270
 
271
271
  var colorCss = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color:var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color:var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color:var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color:var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color:var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color:var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color:var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-inverse, #f2c153)}`;
272
272
 
273
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
274
+ // See LICENSE in the project root for license information.
275
+
276
+ // ---------------------------------------------------------------------
277
+
278
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
279
+
280
+ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
281
+
282
+ /* eslint-disable jsdoc/require-param */
283
+
284
+ /**
285
+ * This will register a new custom element with the browser.
286
+ * @param {String} name - The name of the custom element.
287
+ * @param {Object} componentClass - The class to register as a custom element.
288
+ * @returns {void}
289
+ */
290
+ registerComponent(name, componentClass) {
291
+ if (!customElements.get(name)) {
292
+ customElements.define(name, class extends componentClass {});
293
+ }
294
+ }
295
+
296
+ /**
297
+ * Finds and returns the closest HTML Element based on a selector.
298
+ * @returns {void}
299
+ */
300
+ closestElement(
301
+ selector, // selector like in .closest()
302
+ base = this, // extra functionality to skip a parent
303
+ __Closest = (el, found = el && el.closest(selector)) =>
304
+ !el || el === document || el === window
305
+ ? null // standard .closest() returns null for non-found selectors also
306
+ : found
307
+ ? found // found a selector INside this element
308
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
309
+ ) {
310
+ return __Closest(base);
311
+ }
312
+ /* eslint-enable jsdoc/require-param */
313
+
314
+ /**
315
+ * 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.
316
+ * @param {Object} elem - The element to check.
317
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
318
+ * @returns {void}
319
+ */
320
+ handleComponentTagRename(elem, tagName) {
321
+ const tag = tagName.toLowerCase();
322
+ const elemTag = elem.tagName.toLowerCase();
323
+
324
+ if (elemTag !== tag) {
325
+ elem.setAttribute(tag, true);
326
+ }
327
+ }
328
+
329
+ /**
330
+ * Validates if an element is a specific Auro component.
331
+ * @param {Object} elem - The element to validate.
332
+ * @param {String} tagName - The name of the Auro component to check against.
333
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
334
+ */
335
+ elementMatch(elem, tagName) {
336
+ const tag = tagName.toLowerCase();
337
+ const elemTag = elem.tagName.toLowerCase();
338
+
339
+ return elemTag === tag || elem.hasAttribute(tag);
340
+ }
341
+ };
342
+
273
343
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
274
344
  // See LICENSE in the project root for license information.
275
345
 
@@ -302,7 +372,7 @@ class AuroIcon extends BaseIcon {
302
372
  this.tertiary = false;
303
373
  this.warning = false;
304
374
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
305
- this.runtimeUtils = new AuroLibraryRuntimeUtils();
375
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
306
376
  }
307
377
 
308
378
  // function to define props used within the scope of this component
@@ -464,7 +534,7 @@ class AuroIcon extends BaseIcon {
464
534
  *
465
535
  */
466
536
  static register(name = "auro-icon") {
467
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
537
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
468
538
  }
469
539
 
470
540
  connectedCallback() {
@@ -532,6 +602,76 @@ class AuroIcon extends BaseIcon {
532
602
 
533
603
  var iconVersion = '7.0.1';
534
604
 
605
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
606
+ // See LICENSE in the project root for license information.
607
+
608
+ // ---------------------------------------------------------------------
609
+
610
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
611
+
612
+ class AuroLibraryRuntimeUtils {
613
+
614
+ /* eslint-disable jsdoc/require-param */
615
+
616
+ /**
617
+ * This will register a new custom element with the browser.
618
+ * @param {String} name - The name of the custom element.
619
+ * @param {Object} componentClass - The class to register as a custom element.
620
+ * @returns {void}
621
+ */
622
+ registerComponent(name, componentClass) {
623
+ if (!customElements.get(name)) {
624
+ customElements.define(name, class extends componentClass {});
625
+ }
626
+ }
627
+
628
+ /**
629
+ * Finds and returns the closest HTML Element based on a selector.
630
+ * @returns {void}
631
+ */
632
+ closestElement(
633
+ selector, // selector like in .closest()
634
+ base = this, // extra functionality to skip a parent
635
+ __Closest = (el, found = el && el.closest(selector)) =>
636
+ !el || el === document || el === window
637
+ ? null // standard .closest() returns null for non-found selectors also
638
+ : found
639
+ ? found // found a selector INside this element
640
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
641
+ ) {
642
+ return __Closest(base);
643
+ }
644
+ /* eslint-enable jsdoc/require-param */
645
+
646
+ /**
647
+ * 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.
648
+ * @param {Object} elem - The element to check.
649
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
650
+ * @returns {void}
651
+ */
652
+ handleComponentTagRename(elem, tagName) {
653
+ const tag = tagName.toLowerCase();
654
+ const elemTag = elem.tagName.toLowerCase();
655
+
656
+ if (elemTag !== tag) {
657
+ elem.setAttribute(tag, true);
658
+ }
659
+ }
660
+
661
+ /**
662
+ * Validates if an element is a specific Auro component.
663
+ * @param {Object} elem - The element to validate.
664
+ * @param {String} tagName - The name of the Auro component to check against.
665
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
666
+ */
667
+ elementMatch(elem, tagName) {
668
+ const tag = tagName.toLowerCase();
669
+ const elemTag = elem.tagName.toLowerCase();
670
+
671
+ return elemTag === tag || elem.hasAttribute(tag);
672
+ }
673
+ }
674
+
535
675
  var styleCss = css`.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)}`;
536
676
 
537
677
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
@@ -685,11 +825,11 @@ class AuroBibtemplate extends LitElement {
685
825
  constructor() {
686
826
  super();
687
827
 
688
- AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
828
+ AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
689
829
 
690
830
  const versioning = new AuroDependencyVersioning();
691
- this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
692
- this.headerTag = versioning.generateTag('auro-header', headerVersion, AuroHeader);
831
+ this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion, AuroIcon);
832
+ this.headerTag = versioning.generateTag('auro-formkit-bibtemplate-header', headerVersion, AuroHeader);
693
833
  }
694
834
 
695
835
  static get styles() {
@@ -724,7 +864,7 @@ class AuroBibtemplate extends LitElement {
724
864
  *
725
865
  */
726
866
  static register(name = "auro-bibtemplate") {
727
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroBibtemplate);
867
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroBibtemplate);
728
868
  }
729
869
 
730
870
  /**
@@ -16,7 +16,7 @@ var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
16
16
 
17
17
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
18
18
 
19
- class AuroLibraryRuntimeUtils {
19
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
20
20
 
21
21
  /* eslint-disable jsdoc/require-param */
22
22
 
@@ -77,7 +77,7 @@ class AuroLibraryRuntimeUtils {
77
77
 
78
78
  return elemTag === tag || elem.hasAttribute(tag);
79
79
  }
80
- }
80
+ };
81
81
 
82
82
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
83
83
  // See LICENSE in the project root for license information.
@@ -270,6 +270,76 @@ var tokensCss = css`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-defau
270
270
 
271
271
  var colorCss = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color:var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color:var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color:var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color:var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color:var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color:var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color:var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-inverse, #f2c153)}`;
272
272
 
273
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
274
+ // See LICENSE in the project root for license information.
275
+
276
+ // ---------------------------------------------------------------------
277
+
278
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
279
+
280
+ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
281
+
282
+ /* eslint-disable jsdoc/require-param */
283
+
284
+ /**
285
+ * This will register a new custom element with the browser.
286
+ * @param {String} name - The name of the custom element.
287
+ * @param {Object} componentClass - The class to register as a custom element.
288
+ * @returns {void}
289
+ */
290
+ registerComponent(name, componentClass) {
291
+ if (!customElements.get(name)) {
292
+ customElements.define(name, class extends componentClass {});
293
+ }
294
+ }
295
+
296
+ /**
297
+ * Finds and returns the closest HTML Element based on a selector.
298
+ * @returns {void}
299
+ */
300
+ closestElement(
301
+ selector, // selector like in .closest()
302
+ base = this, // extra functionality to skip a parent
303
+ __Closest = (el, found = el && el.closest(selector)) =>
304
+ !el || el === document || el === window
305
+ ? null // standard .closest() returns null for non-found selectors also
306
+ : found
307
+ ? found // found a selector INside this element
308
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
309
+ ) {
310
+ return __Closest(base);
311
+ }
312
+ /* eslint-enable jsdoc/require-param */
313
+
314
+ /**
315
+ * 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.
316
+ * @param {Object} elem - The element to check.
317
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
318
+ * @returns {void}
319
+ */
320
+ handleComponentTagRename(elem, tagName) {
321
+ const tag = tagName.toLowerCase();
322
+ const elemTag = elem.tagName.toLowerCase();
323
+
324
+ if (elemTag !== tag) {
325
+ elem.setAttribute(tag, true);
326
+ }
327
+ }
328
+
329
+ /**
330
+ * Validates if an element is a specific Auro component.
331
+ * @param {Object} elem - The element to validate.
332
+ * @param {String} tagName - The name of the Auro component to check against.
333
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
334
+ */
335
+ elementMatch(elem, tagName) {
336
+ const tag = tagName.toLowerCase();
337
+ const elemTag = elem.tagName.toLowerCase();
338
+
339
+ return elemTag === tag || elem.hasAttribute(tag);
340
+ }
341
+ };
342
+
273
343
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
274
344
  // See LICENSE in the project root for license information.
275
345
 
@@ -302,7 +372,7 @@ class AuroIcon extends BaseIcon {
302
372
  this.tertiary = false;
303
373
  this.warning = false;
304
374
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
305
- this.runtimeUtils = new AuroLibraryRuntimeUtils();
375
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
306
376
  }
307
377
 
308
378
  // function to define props used within the scope of this component
@@ -464,7 +534,7 @@ class AuroIcon extends BaseIcon {
464
534
  *
465
535
  */
466
536
  static register(name = "auro-icon") {
467
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
537
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
468
538
  }
469
539
 
470
540
  connectedCallback() {
@@ -532,6 +602,76 @@ class AuroIcon extends BaseIcon {
532
602
 
533
603
  var iconVersion = '7.0.1';
534
604
 
605
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
606
+ // See LICENSE in the project root for license information.
607
+
608
+ // ---------------------------------------------------------------------
609
+
610
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
611
+
612
+ class AuroLibraryRuntimeUtils {
613
+
614
+ /* eslint-disable jsdoc/require-param */
615
+
616
+ /**
617
+ * This will register a new custom element with the browser.
618
+ * @param {String} name - The name of the custom element.
619
+ * @param {Object} componentClass - The class to register as a custom element.
620
+ * @returns {void}
621
+ */
622
+ registerComponent(name, componentClass) {
623
+ if (!customElements.get(name)) {
624
+ customElements.define(name, class extends componentClass {});
625
+ }
626
+ }
627
+
628
+ /**
629
+ * Finds and returns the closest HTML Element based on a selector.
630
+ * @returns {void}
631
+ */
632
+ closestElement(
633
+ selector, // selector like in .closest()
634
+ base = this, // extra functionality to skip a parent
635
+ __Closest = (el, found = el && el.closest(selector)) =>
636
+ !el || el === document || el === window
637
+ ? null // standard .closest() returns null for non-found selectors also
638
+ : found
639
+ ? found // found a selector INside this element
640
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
641
+ ) {
642
+ return __Closest(base);
643
+ }
644
+ /* eslint-enable jsdoc/require-param */
645
+
646
+ /**
647
+ * 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.
648
+ * @param {Object} elem - The element to check.
649
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
650
+ * @returns {void}
651
+ */
652
+ handleComponentTagRename(elem, tagName) {
653
+ const tag = tagName.toLowerCase();
654
+ const elemTag = elem.tagName.toLowerCase();
655
+
656
+ if (elemTag !== tag) {
657
+ elem.setAttribute(tag, true);
658
+ }
659
+ }
660
+
661
+ /**
662
+ * Validates if an element is a specific Auro component.
663
+ * @param {Object} elem - The element to validate.
664
+ * @param {String} tagName - The name of the Auro component to check against.
665
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
666
+ */
667
+ elementMatch(elem, tagName) {
668
+ const tag = tagName.toLowerCase();
669
+ const elemTag = elem.tagName.toLowerCase();
670
+
671
+ return elemTag === tag || elem.hasAttribute(tag);
672
+ }
673
+ }
674
+
535
675
  var styleCss = css`.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)}`;
536
676
 
537
677
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
@@ -685,11 +825,11 @@ class AuroBibtemplate extends LitElement {
685
825
  constructor() {
686
826
  super();
687
827
 
688
- AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
828
+ AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
689
829
 
690
830
  const versioning = new AuroDependencyVersioning();
691
- this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
692
- this.headerTag = versioning.generateTag('auro-header', headerVersion, AuroHeader);
831
+ this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion, AuroIcon);
832
+ this.headerTag = versioning.generateTag('auro-formkit-bibtemplate-header', headerVersion, AuroHeader);
693
833
  }
694
834
 
695
835
  static get styles() {
@@ -724,7 +864,7 @@ class AuroBibtemplate extends LitElement {
724
864
  *
725
865
  */
726
866
  static register(name = "auro-bibtemplate") {
727
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroBibtemplate);
867
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroBibtemplate);
728
868
  }
729
869
 
730
870
  /**
@@ -106,7 +106,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
106
106
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
107
107
 
108
108
  ```html
109
- <script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.0.2/auro-checkbox/+esm"></script>
109
+ <script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.1.0-beta.1/auro-checkbox/+esm"></script>
110
110
  ```
111
111
  <!-- AURO-GENERATED-CONTENT:END -->
112
112
 
@@ -947,7 +947,7 @@ class AuroCheckboxGroup extends r {
947
947
  /**
948
948
  * @private
949
949
  */
950
- this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion, AuroHelpText);
950
+ this.helpTextTag = versioning.generateTag('auro-formkit-checkbox-helptext', helpTextVersion, AuroHelpText);
951
951
  }
952
952
 
953
953
  static get styles() {
@@ -939,7 +939,7 @@ class AuroCheckboxGroup extends r {
939
939
  /**
940
940
  * @private
941
941
  */
942
- this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion, AuroHelpText);
942
+ this.helpTextTag = versioning.generateTag('auro-formkit-checkbox-helptext', helpTextVersion, AuroHelpText);
943
943
  }
944
944
 
945
945
  static get styles() {
@@ -106,7 +106,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
106
106
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
107
107
 
108
108
  ```html
109
- <script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.0.2/auro-checkbox/+esm"></script>
109
+ <script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.1.0-beta.1/auro-checkbox/+esm"></script>
110
110
  ```
111
111
  <!-- AURO-GENERATED-CONTENT:END -->
112
112
 
@@ -892,7 +892,7 @@ class AuroCheckboxGroup extends LitElement {
892
892
  /**
893
893
  * @private
894
894
  */
895
- this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion, AuroHelpText);
895
+ this.helpTextTag = versioning.generateTag('auro-formkit-checkbox-helptext', helpTextVersion, AuroHelpText);
896
896
  }
897
897
 
898
898
  static get styles() {
@@ -892,7 +892,7 @@ class AuroCheckboxGroup extends LitElement {
892
892
  /**
893
893
  * @private
894
894
  */
895
- this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion, AuroHelpText);
895
+ this.helpTextTag = versioning.generateTag('auro-formkit-checkbox-helptext', helpTextVersion, AuroHelpText);
896
896
  }
897
897
 
898
898
  static get styles() {
@@ -111,7 +111,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
111
111
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
112
112
 
113
113
  ```html
114
- <script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.0.2/auro-combobox/+esm"></script>
114
+ <script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.1.0-beta.1/auro-combobox/+esm"></script>
115
115
  ```
116
116
  <!-- AURO-GENERATED-CONTENT:END -->
117
117