@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.12 → 0.0.0-pr624.14

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 (47) hide show
  1. package/components/bibtemplate/dist/index.js +79 -9
  2. package/components/bibtemplate/dist/registered.js +79 -9
  3. package/components/checkbox/demo/api.md +6 -7
  4. package/components/checkbox/demo/api.min.js +1 -1
  5. package/components/checkbox/demo/index.min.js +1 -1
  6. package/components/checkbox/dist/index.js +1 -1
  7. package/components/checkbox/dist/registered.js +1 -1
  8. package/components/combobox/demo/api.min.js +291 -41
  9. package/components/combobox/demo/index.min.js +291 -41
  10. package/components/combobox/dist/index.js +286 -36
  11. package/components/combobox/dist/registered.js +286 -36
  12. package/components/counter/demo/api.min.js +271 -21
  13. package/components/counter/demo/index.min.js +271 -21
  14. package/components/counter/dist/index.js +271 -21
  15. package/components/counter/dist/registered.js +271 -21
  16. package/components/datepicker/demo/api.md +13 -14
  17. package/components/datepicker/demo/api.min.js +560 -60
  18. package/components/datepicker/demo/index.min.js +560 -60
  19. package/components/datepicker/dist/index.js +560 -60
  20. package/components/datepicker/dist/registered.js +560 -60
  21. package/components/dropdown/demo/api.md +2 -2
  22. package/components/dropdown/demo/api.min.js +1 -1
  23. package/components/dropdown/demo/index.min.js +1 -1
  24. package/components/dropdown/dist/index.js +1 -1
  25. package/components/dropdown/dist/registered.js +1 -1
  26. package/components/form/demo/api.min.js +1 -1
  27. package/components/form/demo/index.min.js +1 -1
  28. package/components/form/dist/index.js +1 -1
  29. package/components/form/dist/registered.js +1 -1
  30. package/components/helptext/dist/index.js +1 -1
  31. package/components/helptext/dist/registered.js +1 -1
  32. package/components/input/demo/api.md +1 -1
  33. package/components/input/demo/api.min.js +194 -14
  34. package/components/input/demo/index.min.js +194 -14
  35. package/components/input/dist/index.js +194 -14
  36. package/components/input/dist/registered.js +194 -14
  37. package/components/menu/demo/api.md +5 -5
  38. package/components/radio/demo/api.md +2 -2
  39. package/components/radio/demo/api.min.js +1 -1
  40. package/components/radio/demo/index.min.js +1 -1
  41. package/components/radio/dist/index.js +1 -1
  42. package/components/radio/dist/registered.js +1 -1
  43. package/components/select/demo/api.min.js +91 -21
  44. package/components/select/demo/index.min.js +91 -21
  45. package/components/select/dist/index.js +87 -17
  46. package/components/select/dist/registered.js +87 -17
  47. package/package.json +3 -1
@@ -516,7 +516,7 @@ const {
516
516
 
517
517
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
518
518
 
519
- let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
519
+ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
520
520
 
521
521
  /* eslint-disable jsdoc/require-param */
522
522
 
@@ -586,7 +586,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
586
586
  class AuroFormValidation {
587
587
 
588
588
  constructor() {
589
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
589
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
590
590
  }
591
591
 
592
592
  /**
@@ -3843,7 +3843,7 @@ var styleSnowflakeCss = css`:host{display:block}.wrapper{display:flex;flex-direc
3843
3843
 
3844
3844
  var colorCss$4 = 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)}`;
3845
3845
 
3846
- var styleCss$4 = css`.helptext-wrapper{display:none;font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}:host([large]) .helptext-wrapper{font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
3846
+ var styleCss$4 = css`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
3847
3847
 
3848
3848
  var tokensCss$3 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
3849
3849
 
@@ -3854,7 +3854,7 @@ var tokensCss$3 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
3854
3854
 
3855
3855
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
3856
3856
 
3857
- let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
3857
+ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
3858
3858
 
3859
3859
  /* eslint-disable jsdoc/require-param */
3860
3860
 
@@ -3935,7 +3935,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
3935
3935
  this.onDark = false;
3936
3936
  this.hasTextContent = false;
3937
3937
 
3938
- AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
3938
+ AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-helptext');
3939
3939
  }
3940
3940
 
3941
3941
  static get styles() {
@@ -3991,7 +3991,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
3991
3991
  *
3992
3992
  */
3993
3993
  static register(name = "auro-helptext") {
3994
- AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
3994
+ AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHelpText);
3995
3995
  }
3996
3996
 
3997
3997
  updated() {
@@ -5163,7 +5163,7 @@ var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
5163
5163
 
5164
5164
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5165
5165
 
5166
- let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
5166
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
5167
5167
 
5168
5168
  /* eslint-disable jsdoc/require-param */
5169
5169
 
@@ -5427,7 +5427,7 @@ var colorCss$2 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
5427
5427
 
5428
5428
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5429
5429
 
5430
- let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
5430
+ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
5431
5431
 
5432
5432
  /* eslint-disable jsdoc/require-param */
5433
5433
 
@@ -5509,7 +5509,7 @@ class AuroIcon extends BaseIcon {
5509
5509
  */
5510
5510
  privateDefaults() {
5511
5511
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
5512
- this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
5512
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
5513
5513
  }
5514
5514
 
5515
5515
  // function to define props used within the scope of this component
@@ -5591,7 +5591,7 @@ class AuroIcon extends BaseIcon {
5591
5591
  *
5592
5592
  */
5593
5593
  static register(name = "auro-icon") {
5594
- AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
5594
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
5595
5595
  }
5596
5596
 
5597
5597
  connectedCallback() {
@@ -5659,6 +5659,76 @@ class AuroIcon extends BaseIcon {
5659
5659
 
5660
5660
  var iconVersion = '8.0.3';
5661
5661
 
5662
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5663
+ // See LICENSE in the project root for license information.
5664
+
5665
+ // ---------------------------------------------------------------------
5666
+
5667
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5668
+
5669
+ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
5670
+
5671
+ /* eslint-disable jsdoc/require-param */
5672
+
5673
+ /**
5674
+ * This will register a new custom element with the browser.
5675
+ * @param {String} name - The name of the custom element.
5676
+ * @param {Object} componentClass - The class to register as a custom element.
5677
+ * @returns {void}
5678
+ */
5679
+ registerComponent(name, componentClass) {
5680
+ if (!customElements.get(name)) {
5681
+ customElements.define(name, class extends componentClass {});
5682
+ }
5683
+ }
5684
+
5685
+ /**
5686
+ * Finds and returns the closest HTML Element based on a selector.
5687
+ * @returns {void}
5688
+ */
5689
+ closestElement(
5690
+ selector, // selector like in .closest()
5691
+ base = this, // extra functionality to skip a parent
5692
+ __Closest = (el, found = el && el.closest(selector)) =>
5693
+ !el || el === document || el === window
5694
+ ? null // standard .closest() returns null for non-found selectors also
5695
+ : found
5696
+ ? found // found a selector INside this element
5697
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
5698
+ ) {
5699
+ return __Closest(base);
5700
+ }
5701
+ /* eslint-enable jsdoc/require-param */
5702
+
5703
+ /**
5704
+ * 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.
5705
+ * @param {Object} elem - The element to check.
5706
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
5707
+ * @returns {void}
5708
+ */
5709
+ handleComponentTagRename(elem, tagName) {
5710
+ const tag = tagName.toLowerCase();
5711
+ const elemTag = elem.tagName.toLowerCase();
5712
+
5713
+ if (elemTag !== tag) {
5714
+ elem.setAttribute(tag, true);
5715
+ }
5716
+ }
5717
+
5718
+ /**
5719
+ * Validates if an element is a specific Auro component.
5720
+ * @param {Object} elem - The element to validate.
5721
+ * @param {String} tagName - The name of the Auro component to check against.
5722
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
5723
+ */
5724
+ elementMatch(elem, tagName) {
5725
+ const tag = tagName.toLowerCase();
5726
+ const elemTag = elem.tagName.toLowerCase();
5727
+
5728
+ return elemTag === tag || elem.hasAttribute(tag);
5729
+ }
5730
+ };
5731
+
5662
5732
  var styleCss$3 = 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)}`;
5663
5733
 
5664
5734
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
@@ -5688,7 +5758,7 @@ class AuroHeader extends LitElement {
5688
5758
  /**
5689
5759
  * @private
5690
5760
  */
5691
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
5761
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
5692
5762
  }
5693
5763
 
5694
5764
  // function to define props used within the scope of this component
@@ -5718,7 +5788,7 @@ class AuroHeader extends LitElement {
5718
5788
  *
5719
5789
  */
5720
5790
  static register(name = "auro-header") {
5721
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroHeader);
5791
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHeader);
5722
5792
  }
5723
5793
 
5724
5794
  firstUpdated() {
@@ -5814,7 +5884,7 @@ class AuroBibtemplate extends LitElement {
5814
5884
 
5815
5885
  this.large = false;
5816
5886
 
5817
- AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
5887
+ AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
5818
5888
 
5819
5889
  const versioning = new AuroDependencyVersioning();
5820
5890
  this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion, AuroIcon);
@@ -5853,7 +5923,7 @@ class AuroBibtemplate extends LitElement {
5853
5923
  *
5854
5924
  */
5855
5925
  static register(name = "auro-bibtemplate") {
5856
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroBibtemplate);
5926
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroBibtemplate);
5857
5927
  }
5858
5928
 
5859
5929
  /**
@@ -5939,7 +6009,7 @@ var bibTemplateVersion = '1.0.0';
5939
6009
 
5940
6010
  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)}`;
5941
6011
 
5942
- var styleCss$1 = css`.helptext-wrapper{display:none;font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}:host([large]) .helptext-wrapper{font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
6012
+ var styleCss$1 = css`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
5943
6013
 
5944
6014
  var tokensCss = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
5945
6015
 
@@ -6269,7 +6339,7 @@ class AuroSelect extends AuroElement$3 {
6269
6339
  /**
6270
6340
  * @private
6271
6341
  */
6272
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
6342
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
6273
6343
 
6274
6344
  /**
6275
6345
  * Generate unique names for dependency components.
@@ -6638,7 +6708,7 @@ class AuroSelect extends AuroElement$3 {
6638
6708
  *
6639
6709
  */
6640
6710
  static register(name = "auro-select") {
6641
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroSelect);
6711
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroSelect);
6642
6712
  }
6643
6713
 
6644
6714
  /**
@@ -516,7 +516,7 @@ const {
516
516
 
517
517
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
518
518
 
519
- let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
519
+ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
520
520
 
521
521
  /* eslint-disable jsdoc/require-param */
522
522
 
@@ -586,7 +586,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
586
586
  class AuroFormValidation {
587
587
 
588
588
  constructor() {
589
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
589
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
590
590
  }
591
591
 
592
592
  /**
@@ -3843,7 +3843,7 @@ var styleSnowflakeCss = css`:host{display:block}.wrapper{display:flex;flex-direc
3843
3843
 
3844
3844
  var colorCss$4 = 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)}`;
3845
3845
 
3846
- var styleCss$4 = css`.helptext-wrapper{display:none;font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}:host([large]) .helptext-wrapper{font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
3846
+ var styleCss$4 = css`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
3847
3847
 
3848
3848
  var tokensCss$3 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
3849
3849
 
@@ -3854,7 +3854,7 @@ var tokensCss$3 = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texti
3854
3854
 
3855
3855
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
3856
3856
 
3857
- let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
3857
+ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
3858
3858
 
3859
3859
  /* eslint-disable jsdoc/require-param */
3860
3860
 
@@ -3935,7 +3935,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
3935
3935
  this.onDark = false;
3936
3936
  this.hasTextContent = false;
3937
3937
 
3938
- AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-helptext');
3938
+ AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-helptext');
3939
3939
  }
3940
3940
 
3941
3941
  static get styles() {
@@ -3991,7 +3991,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
3991
3991
  *
3992
3992
  */
3993
3993
  static register(name = "auro-helptext") {
3994
- AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHelpText);
3994
+ AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHelpText);
3995
3995
  }
3996
3996
 
3997
3997
  updated() {
@@ -5163,7 +5163,7 @@ var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
5163
5163
 
5164
5164
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5165
5165
 
5166
- let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
5166
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
5167
5167
 
5168
5168
  /* eslint-disable jsdoc/require-param */
5169
5169
 
@@ -5427,7 +5427,7 @@ var colorCss$2 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
5427
5427
 
5428
5428
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5429
5429
 
5430
- let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
5430
+ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
5431
5431
 
5432
5432
  /* eslint-disable jsdoc/require-param */
5433
5433
 
@@ -5509,7 +5509,7 @@ class AuroIcon extends BaseIcon {
5509
5509
  */
5510
5510
  privateDefaults() {
5511
5511
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
5512
- this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
5512
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
5513
5513
  }
5514
5514
 
5515
5515
  // function to define props used within the scope of this component
@@ -5591,7 +5591,7 @@ class AuroIcon extends BaseIcon {
5591
5591
  *
5592
5592
  */
5593
5593
  static register(name = "auro-icon") {
5594
- AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
5594
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
5595
5595
  }
5596
5596
 
5597
5597
  connectedCallback() {
@@ -5659,6 +5659,76 @@ class AuroIcon extends BaseIcon {
5659
5659
 
5660
5660
  var iconVersion = '8.0.3';
5661
5661
 
5662
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
5663
+ // See LICENSE in the project root for license information.
5664
+
5665
+ // ---------------------------------------------------------------------
5666
+
5667
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
5668
+
5669
+ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
5670
+
5671
+ /* eslint-disable jsdoc/require-param */
5672
+
5673
+ /**
5674
+ * This will register a new custom element with the browser.
5675
+ * @param {String} name - The name of the custom element.
5676
+ * @param {Object} componentClass - The class to register as a custom element.
5677
+ * @returns {void}
5678
+ */
5679
+ registerComponent(name, componentClass) {
5680
+ if (!customElements.get(name)) {
5681
+ customElements.define(name, class extends componentClass {});
5682
+ }
5683
+ }
5684
+
5685
+ /**
5686
+ * Finds and returns the closest HTML Element based on a selector.
5687
+ * @returns {void}
5688
+ */
5689
+ closestElement(
5690
+ selector, // selector like in .closest()
5691
+ base = this, // extra functionality to skip a parent
5692
+ __Closest = (el, found = el && el.closest(selector)) =>
5693
+ !el || el === document || el === window
5694
+ ? null // standard .closest() returns null for non-found selectors also
5695
+ : found
5696
+ ? found // found a selector INside this element
5697
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
5698
+ ) {
5699
+ return __Closest(base);
5700
+ }
5701
+ /* eslint-enable jsdoc/require-param */
5702
+
5703
+ /**
5704
+ * 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.
5705
+ * @param {Object} elem - The element to check.
5706
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
5707
+ * @returns {void}
5708
+ */
5709
+ handleComponentTagRename(elem, tagName) {
5710
+ const tag = tagName.toLowerCase();
5711
+ const elemTag = elem.tagName.toLowerCase();
5712
+
5713
+ if (elemTag !== tag) {
5714
+ elem.setAttribute(tag, true);
5715
+ }
5716
+ }
5717
+
5718
+ /**
5719
+ * Validates if an element is a specific Auro component.
5720
+ * @param {Object} elem - The element to validate.
5721
+ * @param {String} tagName - The name of the Auro component to check against.
5722
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
5723
+ */
5724
+ elementMatch(elem, tagName) {
5725
+ const tag = tagName.toLowerCase();
5726
+ const elemTag = elem.tagName.toLowerCase();
5727
+
5728
+ return elemTag === tag || elem.hasAttribute(tag);
5729
+ }
5730
+ };
5731
+
5662
5732
  var styleCss$3 = 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)}`;
5663
5733
 
5664
5734
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
@@ -5688,7 +5758,7 @@ class AuroHeader extends LitElement {
5688
5758
  /**
5689
5759
  * @private
5690
5760
  */
5691
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
5761
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
5692
5762
  }
5693
5763
 
5694
5764
  // function to define props used within the scope of this component
@@ -5718,7 +5788,7 @@ class AuroHeader extends LitElement {
5718
5788
  *
5719
5789
  */
5720
5790
  static register(name = "auro-header") {
5721
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroHeader);
5791
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHeader);
5722
5792
  }
5723
5793
 
5724
5794
  firstUpdated() {
@@ -5814,7 +5884,7 @@ class AuroBibtemplate extends LitElement {
5814
5884
 
5815
5885
  this.large = false;
5816
5886
 
5817
- AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
5887
+ AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
5818
5888
 
5819
5889
  const versioning = new AuroDependencyVersioning();
5820
5890
  this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion, AuroIcon);
@@ -5853,7 +5923,7 @@ class AuroBibtemplate extends LitElement {
5853
5923
  *
5854
5924
  */
5855
5925
  static register(name = "auro-bibtemplate") {
5856
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroBibtemplate);
5926
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroBibtemplate);
5857
5927
  }
5858
5928
 
5859
5929
  /**
@@ -5939,7 +6009,7 @@ var bibTemplateVersion = '1.0.0';
5939
6009
 
5940
6010
  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)}`;
5941
6011
 
5942
- var styleCss$1 = css`.helptext-wrapper{display:none;font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}:host([large]) .helptext-wrapper{font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
6012
+ var styleCss$1 = css`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
5943
6013
 
5944
6014
  var tokensCss = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
5945
6015
 
@@ -6269,7 +6339,7 @@ class AuroSelect extends AuroElement$3 {
6269
6339
  /**
6270
6340
  * @private
6271
6341
  */
6272
- this.runtimeUtils = new AuroLibraryRuntimeUtils$4();
6342
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
6273
6343
 
6274
6344
  /**
6275
6345
  * Generate unique names for dependency components.
@@ -6638,7 +6708,7 @@ class AuroSelect extends AuroElement$3 {
6638
6708
  *
6639
6709
  */
6640
6710
  static register(name = "auro-select") {
6641
- AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroSelect);
6711
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroSelect);
6642
6712
  }
6643
6713
 
6644
6714
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem-dev/auro-formkit",
3
- "version": "0.0.0-pr624.12",
3
+ "version": "0.0.0-pr624.14",
4
4
  "description": "A collection of web components used to build forms.",
5
5
  "homepage": "https://github.com/AlaskaAirlines/auro-formkit#readme",
6
6
  "bugs": {
@@ -61,6 +61,8 @@
61
61
  },
62
62
  "devDependencies": {
63
63
  "@aurodesignsystem/eslint-config": "^1.3.4",
64
+ "@aurodesignsystem/webcorestylesheets": "^8.1.1",
65
+ "@aurodesignsystem/design-tokens": "^8.2.0",
64
66
  "@commitlint/cli": "^19.8.0",
65
67
  "@commitlint/config-conventional": "^19.8.0",
66
68
  "@open-wc/testing": "^4.0.0",