@aurodesignsystem/auro-formkit 3.5.0 → 4.0.0-rc-658.1.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +41 -1
  2. package/components/checkbox/README.md +1 -1
  3. package/components/checkbox/demo/api.min.js +1 -1
  4. package/components/checkbox/demo/index.min.js +1 -1
  5. package/components/checkbox/demo/readme.md +1 -1
  6. package/components/checkbox/dist/index.js +1 -1
  7. package/components/checkbox/dist/registered.js +1 -1
  8. package/components/combobox/README.md +1 -1
  9. package/components/combobox/demo/api.md +27 -27
  10. package/components/combobox/demo/api.min.js +63 -275
  11. package/components/combobox/demo/index.html +1 -0
  12. package/components/combobox/demo/index.min.js +61 -273
  13. package/components/combobox/demo/readme.md +1 -1
  14. package/components/combobox/dist/auro-combobox.d.ts +5 -10
  15. package/components/combobox/dist/index.js +22 -149
  16. package/components/combobox/dist/registered.js +22 -149
  17. package/components/counter/README.md +1 -1
  18. package/components/counter/demo/readme.md +1 -1
  19. package/components/datepicker/README.md +1 -1
  20. package/components/datepicker/demo/readme.md +1 -1
  21. package/components/dropdown/README.md +1 -1
  22. package/components/dropdown/demo/readme.md +1 -1
  23. package/components/form/README.md +1 -1
  24. package/components/form/demo/readme.md +1 -1
  25. package/components/input/README.md +1 -1
  26. package/components/input/demo/readme.md +1 -1
  27. package/components/menu/README.md +1 -1
  28. package/components/menu/demo/api.md +11 -11
  29. package/components/menu/demo/api.min.js +39 -124
  30. package/components/menu/demo/index.min.js +39 -124
  31. package/components/menu/demo/readme.md +1 -1
  32. package/components/menu/dist/auro-menu-utils.d.ts +0 -8
  33. package/components/menu/dist/auro-menu.d.ts +3 -8
  34. package/components/menu/dist/index.d.ts +1 -1
  35. package/components/menu/dist/index.js +40 -84
  36. package/components/menu/dist/registered.js +39 -124
  37. package/components/radio/README.md +1 -1
  38. package/components/radio/demo/api.md +8 -0
  39. package/components/radio/demo/api.min.js +13 -5
  40. package/components/radio/demo/index.min.js +13 -5
  41. package/components/radio/demo/readme.md +1 -1
  42. package/components/radio/dist/auro-radio.d.ts +4 -0
  43. package/components/radio/dist/index.js +13 -5
  44. package/components/radio/dist/registered.js +13 -5
  45. package/components/select/README.md +1 -1
  46. package/components/select/demo/api.js +2 -0
  47. package/components/select/demo/api.md +96 -38
  48. package/components/select/demo/api.min.js +127 -210
  49. package/components/select/demo/index.min.js +113 -208
  50. package/components/select/demo/readme.md +1 -1
  51. package/components/select/dist/auro-select.d.ts +14 -14
  52. package/components/select/dist/index.js +73 -83
  53. package/components/select/dist/registered.js +73 -83
  54. package/package.json +1 -1
@@ -12381,122 +12381,6 @@ class AuroBibtemplate extends LitElement {
12381
12381
 
12382
12382
  var bibTemplateVersion = '1.0.0';
12383
12383
 
12384
- css`:focus:not(:focus-visible){outline:3px solid transparent}:host{display:inline-block;width:100%;margin:0;padding:0;vertical-align:middle}:host ::slotted(auro-menuoption),:host ::slotted([auro-menuoption]),:host auro-menuoption[loadingplaceholder]{padding-left:calc(var(--ds-size-150, 0.75rem) + 24px + var(--ds-size-100, 0.5rem))}:host ::slotted([selected]){padding-left:0}:host ::slotted(hr){box-sizing:content-box !important;height:0 !important;overflow:visible !important;margin:var(--ds-size-100, 0.5rem) 0 !important;border-width:0 !important;border-top-width:1px !important;border-top-style:solid !important}:host([nocheckmark]) ::slotted(auro-menuoption),:host([nocheckmark]) auro-menuoption[loadingplaceholder]{padding-left:var(--ds-size-200, 1rem)}:host([root]){overflow-y:auto}[loadingplaceholder].empty{opacity:0;position:absolute}[loadingplaceholder] slot[name=loadingIcon]{vertical-align:middle;line-height:1;display:inline-block}[loadingplaceholder] slot[name=loadingIcon]::slotted(*){margin-right:var(--ds-size-150, 0.75rem)}`;
12385
-
12386
- css`:host ::slotted(hr){border-top-color:var(--ds-auro-menu-divider-color)}[loadingplaceholder] slot[name=loadingIcon]{color:var(--ds-auro-menu-loader-color)}[loadingplaceholder] slot[name=loadingText]{color:var(--ds-auro-menu-loader-text-color)}`;
12387
-
12388
- css`:host{--ds-auro-menu-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-menu-loader-color: var(--ds-basic-color-brand-primary, #01426a);--ds-auro-menu-loader-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-menuoption-container-color: transparent;--ds-auro-menuoption-icon-color: transparent;--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
12389
-
12390
- // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
12391
- // See LICENSE in the project root for license information.
12392
-
12393
- // ---------------------------------------------------------------------
12394
-
12395
- /**
12396
- * Converts value to an array.
12397
- * If the value is a JSON string representing an array, it will be parsed.
12398
- * If the value is already an array, it is returned.
12399
- * If the value is undefined, it returns undefined.
12400
- * @private
12401
- * @param {any} value - The value to be converted. Can be a string, array, or undefined.
12402
- * @returns {Array|undefined} - The converted array or undefined.
12403
- * @throws {Error} - Throws an error if the value is not an array, undefined,
12404
- * or if the value cannot be parsed into an array from a JSON string.
12405
- */
12406
- function arrayConverter(value) {
12407
- // Allow undefined
12408
- if (value === undefined) {
12409
- return undefined;
12410
- }
12411
-
12412
- // Return the value if it is already an array
12413
- if (Array.isArray(value)) {
12414
- return value;
12415
- }
12416
-
12417
- try {
12418
- // If value is a JSON string, parse it
12419
- const parsed = typeof value === 'string' ? JSON.parse(value) : value;
12420
-
12421
- // Check if the parsed value is an array
12422
- if (Array.isArray(parsed)) {
12423
- return parsed;
12424
- }
12425
- } catch (error) {
12426
- // If JSON parsing fails, continue to throw an error below
12427
- /* eslint-disable no-console */
12428
- console.error('JSON parsing failed:', error);
12429
- }
12430
-
12431
- // Throw error if the input is not an array or undefined
12432
- throw new Error('Invalid value: Input must be an array or undefined');
12433
- }
12434
-
12435
- /**
12436
- * Compare two arrays for equality.
12437
- * @private
12438
- * @param {Array} arr1 - First array to compare.
12439
- * @param {Array} arr2 - Second array to compare.
12440
- * @returns {boolean} True if arrays are equal.
12441
- */
12442
- function arraysAreEqual(arr1, arr2) {
12443
- // If both arrays undefined, they are equal (true)
12444
- if (arr1 === undefined || arr2 === undefined) {
12445
- return arr1 === arr2;
12446
- }
12447
-
12448
- // If arrays have different lengths, they are not equal
12449
- if (arr1.length !== arr2.length) {
12450
- return false;
12451
- }
12452
-
12453
- // If every item at each index is the same, return true
12454
- for (let index = 0; index < arr1.length; index += 1) {
12455
- if (arr1[index] !== arr2[index]) {
12456
- return false;
12457
- }
12458
- }
12459
- return true;
12460
- }
12461
-
12462
- /**
12463
- * Compares array for changes.
12464
- * @private
12465
- * @param {Array|any} newVal - New value to compare.
12466
- * @param {Array|any} oldVal - Old value to compare.
12467
- * @returns {boolean} True if arrays have changed.
12468
- */
12469
- function arrayOrUndefinedHasChanged(newVal, oldVal) {
12470
- try {
12471
- // Check if values are undefined or arrays
12472
- const isArrayOrUndefined = (val) => val === undefined || Array.isArray(val);
12473
-
12474
- // If non-array or non-undefined, throw error
12475
- if (!isArrayOrUndefined(newVal) || !isArrayOrUndefined(oldVal)) {
12476
- const invalidValue = isArrayOrUndefined(newVal) ? oldVal : newVal;
12477
- throw new Error(`Value must be an array or undefined, received ${typeof invalidValue}`);
12478
- }
12479
-
12480
- // Return true if arrays have changed, false if they are the same
12481
- return !arraysAreEqual(newVal, oldVal);
12482
- } catch (error) {
12483
- /* eslint-disable no-console */
12484
- console.error(error);
12485
- // If validation fails, it has changed
12486
- return true;
12487
- }
12488
- }
12489
-
12490
- css`:host{display:flex;align-items:center;padding:var(--ds-size-50, 0.25rem) var(--ds-size-200, 1rem) var(--ds-size-50, 0.25rem) 0;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent}:host slot{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-150, 0.75rem);margin-left:var(--ds-size-100, 0.5rem)}:host ::slotted(.nestingSpacer){display:inline-block;width:var(--ds-size-300, 1.5rem)}:host ::slotted(strong){font-weight:700}:host([hidden]){display:none}:host([static]){pointer-events:none}:host([disabled]:hover){cursor:auto}:host([disabled]){user-select:none;pointer-events:none}`;
12491
-
12492
- css`:host{background-color:var(--ds-auro-menuoption-container-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color)}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-neutral-subtle, #f7f7f7)}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected, #01426a);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([selected]):host(:hover),:host([selected]):host(.active){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected-hover, #00274a)}`;
12493
-
12494
- css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
12495
-
12496
- css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
12497
-
12498
- css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}`;
12499
-
12500
12384
  var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]{min-height:var(--ds-size-700, 3.5rem);max-height:var(--ds-size-700, 3.5rem)}[auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}[auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}[auro-input]::part(helpText){display:none}[auro-input]::part(wrapper){--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}[auro-input]::part(wrapper):focus-within{border-bottom-width:0 !important;box-shadow:unset !important;outline:unset !important}#slotHolder{display:none}`;
12501
12385
 
12502
12386
  // Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
@@ -12688,11 +12572,10 @@ class AuroCombobox extends LitElement {
12688
12572
 
12689
12573
  /**
12690
12574
  * Specifies the current selected option.
12575
+ * @type {HTMLElement}
12691
12576
  */
12692
12577
  optionSelected: {
12693
- type: Object,
12694
- converter: arrayConverter,
12695
- hasChanged: arrayOrUndefinedHasChanged
12578
+ type: Object
12696
12579
  },
12697
12580
 
12698
12581
  /**
@@ -12764,11 +12647,10 @@ class AuroCombobox extends LitElement {
12764
12647
 
12765
12648
  /**
12766
12649
  * Value selected for the dropdown menu.
12767
- * @type {Array|String<Array>}
12650
+ * @type {string}
12768
12651
  */
12769
12652
  value: {
12770
- converter: arrayConverter,
12771
- hasChanged: arrayOrUndefinedHasChanged
12653
+ type: Object
12772
12654
  },
12773
12655
 
12774
12656
  /**
@@ -12840,17 +12722,15 @@ class AuroCombobox extends LitElement {
12840
12722
 
12841
12723
  if (this.menu.optionSelected) {
12842
12724
  // Get first option since combobox is single-select
12843
- const [selected] = this.menu.optionSelected;
12725
+ const selected = this.menu.optionSelected;
12844
12726
 
12845
- if (!this.optionSelected || this.optionSelected[0] !== selected) {
12846
- // Store as array
12847
- this.optionSelected = [selected];
12727
+ if (!this.optionSelected || this.optionSelected !== selected) {
12728
+ this.optionSelected = selected;
12848
12729
  }
12849
12730
 
12850
- if (!this.value || this.value[0] !== selected.value) {
12851
- // Store as array
12852
- this.value = [selected.value];
12853
- // Menu already expects array
12731
+ if (!this.value || this.value !== selected.value) {
12732
+ this.value = selected.value;
12733
+
12854
12734
  this.menu.value = this.value;
12855
12735
  }
12856
12736
 
@@ -13030,14 +12910,14 @@ class AuroCombobox extends LitElement {
13030
12910
  // handle the menu event for an option selection
13031
12911
  this.menu.addEventListener('auroMenu-selectedOption', () => {
13032
12912
  if (this.menu.optionSelected) {
13033
- const [selected] = this.menu.optionSelected;
12913
+ const selected = this.menu.optionSelected;
13034
12914
 
13035
- if (!this.optionSelected || this.optionSelected[0] !== selected) {
13036
- this.optionSelected = [selected];
12915
+ if (!this.optionSelected || this.optionSelected !== selected) {
12916
+ this.optionSelected = selected;
13037
12917
  }
13038
12918
 
13039
- if (!this.value || this.value[0] !== this.optionSelected[0].value) {
13040
- this.value = [this.optionSelected[0].value];
12919
+ if (!this.value || this.value !== this.optionSelected.value) {
12920
+ this.value = this.optionSelected.value;
13041
12921
  this.menu.value = this.value;
13042
12922
  }
13043
12923
 
@@ -13139,11 +13019,6 @@ class AuroCombobox extends LitElement {
13139
13019
  if (document.activeElement !== this) {
13140
13020
  this.validate();
13141
13021
  }
13142
-
13143
- // Set to undefined if empty
13144
- if (this.value && this.value.length === 0) {
13145
- this.value = undefined;
13146
- }
13147
13022
  });
13148
13023
 
13149
13024
  // Handle validation messages from auroFormElement-validated event
@@ -13238,10 +13113,8 @@ class AuroCombobox extends LitElement {
13238
13113
 
13239
13114
  let hasChange = false;
13240
13115
 
13241
- // Store value as array or undefined
13242
- if (!this.value || this.value[0] !== this.input.value) {
13243
- // Menu expects an array
13244
- this.menu.value = this.input.value ? [this.input.value] : undefined;
13116
+ if (!this.value || this.value !== this.input.value) {
13117
+ this.menu.value = this.input.value;
13245
13118
  this.value = this.menu.value;
13246
13119
  hasChange = true;
13247
13120
  this.dispatchEvent(new CustomEvent('auroCombobox-valueSet', {
@@ -13251,7 +13124,7 @@ class AuroCombobox extends LitElement {
13251
13124
  }));
13252
13125
  }
13253
13126
 
13254
- if (this.optionSelected && this.optionSelected[0] && this.input.value !== this.optionSelected[0].textContent) {
13127
+ if (this.optionSelected && this.input.value !== this.optionSelected.textContent) {
13255
13128
  this.optionSelected = undefined;
13256
13129
  hasChange = true;
13257
13130
  }
@@ -13394,15 +13267,15 @@ class AuroCombobox extends LitElement {
13394
13267
  // After the component is ready, send direct value changes to auro-menu.
13395
13268
  if (changedProperties.has('value')) {
13396
13269
  if (this.value) {
13397
- if (this.optionSelected && this.optionSelected[0] && this.optionSelected[0].value === this.value[0]) {
13270
+ if (this.optionSelected && this.optionSelected.value === this.value) {
13398
13271
  // If value updates and the previously selected option already matches the new value
13399
13272
  // just update the input value to use the textContent of the optionSelected
13400
- this.input.value = this.optionSelected[0].textContent;
13273
+ this.input.value = this.optionSelected.textContent;
13401
13274
  } else {
13402
13275
  // Otherwise just enter the value into the input
13403
13276
  this.optionSelected = undefined;
13404
- // Use first value since combobox is single-select
13405
- const [inputValue] = this.value;
13277
+
13278
+ const inputValue = this.value;
13406
13279
  this.input.value = inputValue;
13407
13280
 
13408
13281
  // Update the menu value and matchWord
@@ -12381,122 +12381,6 @@ class AuroBibtemplate extends LitElement {
12381
12381
 
12382
12382
  var bibTemplateVersion = '1.0.0';
12383
12383
 
12384
- css`:focus:not(:focus-visible){outline:3px solid transparent}:host{display:inline-block;width:100%;margin:0;padding:0;vertical-align:middle}:host ::slotted(auro-menuoption),:host ::slotted([auro-menuoption]),:host auro-menuoption[loadingplaceholder]{padding-left:calc(var(--ds-size-150, 0.75rem) + 24px + var(--ds-size-100, 0.5rem))}:host ::slotted([selected]){padding-left:0}:host ::slotted(hr){box-sizing:content-box !important;height:0 !important;overflow:visible !important;margin:var(--ds-size-100, 0.5rem) 0 !important;border-width:0 !important;border-top-width:1px !important;border-top-style:solid !important}:host([nocheckmark]) ::slotted(auro-menuoption),:host([nocheckmark]) auro-menuoption[loadingplaceholder]{padding-left:var(--ds-size-200, 1rem)}:host([root]){overflow-y:auto}[loadingplaceholder].empty{opacity:0;position:absolute}[loadingplaceholder] slot[name=loadingIcon]{vertical-align:middle;line-height:1;display:inline-block}[loadingplaceholder] slot[name=loadingIcon]::slotted(*){margin-right:var(--ds-size-150, 0.75rem)}`;
12385
-
12386
- css`:host ::slotted(hr){border-top-color:var(--ds-auro-menu-divider-color)}[loadingplaceholder] slot[name=loadingIcon]{color:var(--ds-auro-menu-loader-color)}[loadingplaceholder] slot[name=loadingText]{color:var(--ds-auro-menu-loader-text-color)}`;
12387
-
12388
- css`:host{--ds-auro-menu-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15));--ds-auro-menu-loader-color: var(--ds-basic-color-brand-primary, #01426a);--ds-auro-menu-loader-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-menuoption-container-color: transparent;--ds-auro-menuoption-icon-color: transparent;--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
12389
-
12390
- // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
12391
- // See LICENSE in the project root for license information.
12392
-
12393
- // ---------------------------------------------------------------------
12394
-
12395
- /**
12396
- * Converts value to an array.
12397
- * If the value is a JSON string representing an array, it will be parsed.
12398
- * If the value is already an array, it is returned.
12399
- * If the value is undefined, it returns undefined.
12400
- * @private
12401
- * @param {any} value - The value to be converted. Can be a string, array, or undefined.
12402
- * @returns {Array|undefined} - The converted array or undefined.
12403
- * @throws {Error} - Throws an error if the value is not an array, undefined,
12404
- * or if the value cannot be parsed into an array from a JSON string.
12405
- */
12406
- function arrayConverter(value) {
12407
- // Allow undefined
12408
- if (value === undefined) {
12409
- return undefined;
12410
- }
12411
-
12412
- // Return the value if it is already an array
12413
- if (Array.isArray(value)) {
12414
- return value;
12415
- }
12416
-
12417
- try {
12418
- // If value is a JSON string, parse it
12419
- const parsed = typeof value === 'string' ? JSON.parse(value) : value;
12420
-
12421
- // Check if the parsed value is an array
12422
- if (Array.isArray(parsed)) {
12423
- return parsed;
12424
- }
12425
- } catch (error) {
12426
- // If JSON parsing fails, continue to throw an error below
12427
- /* eslint-disable no-console */
12428
- console.error('JSON parsing failed:', error);
12429
- }
12430
-
12431
- // Throw error if the input is not an array or undefined
12432
- throw new Error('Invalid value: Input must be an array or undefined');
12433
- }
12434
-
12435
- /**
12436
- * Compare two arrays for equality.
12437
- * @private
12438
- * @param {Array} arr1 - First array to compare.
12439
- * @param {Array} arr2 - Second array to compare.
12440
- * @returns {boolean} True if arrays are equal.
12441
- */
12442
- function arraysAreEqual(arr1, arr2) {
12443
- // If both arrays undefined, they are equal (true)
12444
- if (arr1 === undefined || arr2 === undefined) {
12445
- return arr1 === arr2;
12446
- }
12447
-
12448
- // If arrays have different lengths, they are not equal
12449
- if (arr1.length !== arr2.length) {
12450
- return false;
12451
- }
12452
-
12453
- // If every item at each index is the same, return true
12454
- for (let index = 0; index < arr1.length; index += 1) {
12455
- if (arr1[index] !== arr2[index]) {
12456
- return false;
12457
- }
12458
- }
12459
- return true;
12460
- }
12461
-
12462
- /**
12463
- * Compares array for changes.
12464
- * @private
12465
- * @param {Array|any} newVal - New value to compare.
12466
- * @param {Array|any} oldVal - Old value to compare.
12467
- * @returns {boolean} True if arrays have changed.
12468
- */
12469
- function arrayOrUndefinedHasChanged(newVal, oldVal) {
12470
- try {
12471
- // Check if values are undefined or arrays
12472
- const isArrayOrUndefined = (val) => val === undefined || Array.isArray(val);
12473
-
12474
- // If non-array or non-undefined, throw error
12475
- if (!isArrayOrUndefined(newVal) || !isArrayOrUndefined(oldVal)) {
12476
- const invalidValue = isArrayOrUndefined(newVal) ? oldVal : newVal;
12477
- throw new Error(`Value must be an array or undefined, received ${typeof invalidValue}`);
12478
- }
12479
-
12480
- // Return true if arrays have changed, false if they are the same
12481
- return !arraysAreEqual(newVal, oldVal);
12482
- } catch (error) {
12483
- /* eslint-disable no-console */
12484
- console.error(error);
12485
- // If validation fails, it has changed
12486
- return true;
12487
- }
12488
- }
12489
-
12490
- css`:host{display:flex;align-items:center;padding:var(--ds-size-50, 0.25rem) var(--ds-size-200, 1rem) var(--ds-size-50, 0.25rem) 0;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent}:host slot{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}:host [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-150, 0.75rem);margin-left:var(--ds-size-100, 0.5rem)}:host ::slotted(.nestingSpacer){display:inline-block;width:var(--ds-size-300, 1.5rem)}:host ::slotted(strong){font-weight:700}:host([hidden]){display:none}:host([static]){pointer-events:none}:host([disabled]:hover){cursor:auto}:host([disabled]){user-select:none;pointer-events:none}`;
12491
-
12492
- css`:host{background-color:var(--ds-auro-menuoption-container-color);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color)}:host([disabled]){--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-neutral-subtle, #f7f7f7)}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected, #01426a);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([selected]):host(:hover),:host([selected]):host(.active){--ds-auro-menuoption-container-color: var(--ds-advanced-color-state-selected-hover, #00274a)}`;
12493
-
12494
- css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
12495
-
12496
- css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
12497
-
12498
- css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}`;
12499
-
12500
12384
  var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]{min-height:var(--ds-size-700, 3.5rem);max-height:var(--ds-size-700, 3.5rem)}[auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}[auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}[auro-input]::part(helpText){display:none}[auro-input]::part(wrapper){--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}[auro-input]::part(wrapper):focus-within{border-bottom-width:0 !important;box-shadow:unset !important;outline:unset !important}#slotHolder{display:none}`;
12501
12385
 
12502
12386
  // Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
@@ -12688,11 +12572,10 @@ class AuroCombobox extends LitElement {
12688
12572
 
12689
12573
  /**
12690
12574
  * Specifies the current selected option.
12575
+ * @type {HTMLElement}
12691
12576
  */
12692
12577
  optionSelected: {
12693
- type: Object,
12694
- converter: arrayConverter,
12695
- hasChanged: arrayOrUndefinedHasChanged
12578
+ type: Object
12696
12579
  },
12697
12580
 
12698
12581
  /**
@@ -12764,11 +12647,10 @@ class AuroCombobox extends LitElement {
12764
12647
 
12765
12648
  /**
12766
12649
  * Value selected for the dropdown menu.
12767
- * @type {Array|String<Array>}
12650
+ * @type {string}
12768
12651
  */
12769
12652
  value: {
12770
- converter: arrayConverter,
12771
- hasChanged: arrayOrUndefinedHasChanged
12653
+ type: Object
12772
12654
  },
12773
12655
 
12774
12656
  /**
@@ -12840,17 +12722,15 @@ class AuroCombobox extends LitElement {
12840
12722
 
12841
12723
  if (this.menu.optionSelected) {
12842
12724
  // Get first option since combobox is single-select
12843
- const [selected] = this.menu.optionSelected;
12725
+ const selected = this.menu.optionSelected;
12844
12726
 
12845
- if (!this.optionSelected || this.optionSelected[0] !== selected) {
12846
- // Store as array
12847
- this.optionSelected = [selected];
12727
+ if (!this.optionSelected || this.optionSelected !== selected) {
12728
+ this.optionSelected = selected;
12848
12729
  }
12849
12730
 
12850
- if (!this.value || this.value[0] !== selected.value) {
12851
- // Store as array
12852
- this.value = [selected.value];
12853
- // Menu already expects array
12731
+ if (!this.value || this.value !== selected.value) {
12732
+ this.value = selected.value;
12733
+
12854
12734
  this.menu.value = this.value;
12855
12735
  }
12856
12736
 
@@ -13030,14 +12910,14 @@ class AuroCombobox extends LitElement {
13030
12910
  // handle the menu event for an option selection
13031
12911
  this.menu.addEventListener('auroMenu-selectedOption', () => {
13032
12912
  if (this.menu.optionSelected) {
13033
- const [selected] = this.menu.optionSelected;
12913
+ const selected = this.menu.optionSelected;
13034
12914
 
13035
- if (!this.optionSelected || this.optionSelected[0] !== selected) {
13036
- this.optionSelected = [selected];
12915
+ if (!this.optionSelected || this.optionSelected !== selected) {
12916
+ this.optionSelected = selected;
13037
12917
  }
13038
12918
 
13039
- if (!this.value || this.value[0] !== this.optionSelected[0].value) {
13040
- this.value = [this.optionSelected[0].value];
12919
+ if (!this.value || this.value !== this.optionSelected.value) {
12920
+ this.value = this.optionSelected.value;
13041
12921
  this.menu.value = this.value;
13042
12922
  }
13043
12923
 
@@ -13139,11 +13019,6 @@ class AuroCombobox extends LitElement {
13139
13019
  if (document.activeElement !== this) {
13140
13020
  this.validate();
13141
13021
  }
13142
-
13143
- // Set to undefined if empty
13144
- if (this.value && this.value.length === 0) {
13145
- this.value = undefined;
13146
- }
13147
13022
  });
13148
13023
 
13149
13024
  // Handle validation messages from auroFormElement-validated event
@@ -13238,10 +13113,8 @@ class AuroCombobox extends LitElement {
13238
13113
 
13239
13114
  let hasChange = false;
13240
13115
 
13241
- // Store value as array or undefined
13242
- if (!this.value || this.value[0] !== this.input.value) {
13243
- // Menu expects an array
13244
- this.menu.value = this.input.value ? [this.input.value] : undefined;
13116
+ if (!this.value || this.value !== this.input.value) {
13117
+ this.menu.value = this.input.value;
13245
13118
  this.value = this.menu.value;
13246
13119
  hasChange = true;
13247
13120
  this.dispatchEvent(new CustomEvent('auroCombobox-valueSet', {
@@ -13251,7 +13124,7 @@ class AuroCombobox extends LitElement {
13251
13124
  }));
13252
13125
  }
13253
13126
 
13254
- if (this.optionSelected && this.optionSelected[0] && this.input.value !== this.optionSelected[0].textContent) {
13127
+ if (this.optionSelected && this.input.value !== this.optionSelected.textContent) {
13255
13128
  this.optionSelected = undefined;
13256
13129
  hasChange = true;
13257
13130
  }
@@ -13394,15 +13267,15 @@ class AuroCombobox extends LitElement {
13394
13267
  // After the component is ready, send direct value changes to auro-menu.
13395
13268
  if (changedProperties.has('value')) {
13396
13269
  if (this.value) {
13397
- if (this.optionSelected && this.optionSelected[0] && this.optionSelected[0].value === this.value[0]) {
13270
+ if (this.optionSelected && this.optionSelected.value === this.value) {
13398
13271
  // If value updates and the previously selected option already matches the new value
13399
13272
  // just update the input value to use the textContent of the optionSelected
13400
- this.input.value = this.optionSelected[0].textContent;
13273
+ this.input.value = this.optionSelected.textContent;
13401
13274
  } else {
13402
13275
  // Otherwise just enter the value into the input
13403
13276
  this.optionSelected = undefined;
13404
- // Use first value since combobox is single-select
13405
- const [inputValue] = this.value;
13277
+
13278
+ const inputValue = this.value;
13406
13279
  this.input.value = inputValue;
13407
13280
 
13408
13281
  // Update the menu value and matchWord
@@ -110,7 +110,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
110
110
  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.
111
111
 
112
112
  ```html
113
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-counter/+esm"></script>
113
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-counter/+esm"></script>
114
114
  ```
115
115
  <!-- AURO-GENERATED-CONTENT:END -->
116
116
 
@@ -110,7 +110,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
110
110
  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.
111
111
 
112
112
  ```html
113
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-counter/+esm"></script>
113
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-counter/+esm"></script>
114
114
  ```
115
115
  <!-- AURO-GENERATED-CONTENT:END -->
116
116
 
@@ -104,7 +104,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
104
104
  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.
105
105
 
106
106
  ```html
107
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-datepicker/+esm"></script>
107
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-datepicker/+esm"></script>
108
108
  ```
109
109
  <!-- AURO-GENERATED-CONTENT:END -->
110
110
 
@@ -104,7 +104,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
104
104
  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.
105
105
 
106
106
  ```html
107
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-datepicker/+esm"></script>
107
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-datepicker/+esm"></script>
108
108
  ```
109
109
  <!-- AURO-GENERATED-CONTENT:END -->
110
110
 
@@ -107,7 +107,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
107
107
  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.
108
108
 
109
109
  ```html
110
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-dropdown/+esm"></script>
110
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-dropdown/+esm"></script>
111
111
  ```
112
112
  <!-- AURO-GENERATED-CONTENT:END -->
113
113
 
@@ -107,7 +107,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
107
107
  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.
108
108
 
109
109
  ```html
110
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-dropdown/+esm"></script>
110
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-dropdown/+esm"></script>
111
111
  ```
112
112
  <!-- AURO-GENERATED-CONTENT:END -->
113
113
 
@@ -109,7 +109,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
109
109
  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.
110
110
 
111
111
  ```html
112
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-form/+esm"></script>
112
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-form/+esm"></script>
113
113
  ```
114
114
  <!-- AURO-GENERATED-CONTENT:END -->
115
115
 
@@ -109,7 +109,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
109
109
  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.
110
110
 
111
111
  ```html
112
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-form/+esm"></script>
112
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-form/+esm"></script>
113
113
  ```
114
114
  <!-- AURO-GENERATED-CONTENT:END -->
115
115
 
@@ -99,7 +99,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
99
99
  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.
100
100
 
101
101
  ```html
102
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-input/+esm"></script>
102
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-input/+esm"></script>
103
103
  ```
104
104
  <!-- AURO-GENERATED-CONTENT:END -->
105
105
 
@@ -99,7 +99,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
99
99
  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.
100
100
 
101
101
  ```html
102
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-input/+esm"></script>
102
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-input/+esm"></script>
103
103
  ```
104
104
  <!-- AURO-GENERATED-CONTENT:END -->
105
105
 
@@ -110,7 +110,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
110
110
  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.
111
111
 
112
112
  ```html
113
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-menu/+esm"></script>
113
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-menu/+esm"></script>
114
114
  ```
115
115
  <!-- AURO-GENERATED-CONTENT:END -->
116
116