@aurodesignsystem-dev/auro-formkit 0.0.0-pr622.1 → 0.0.0-pr624.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 (109) hide show
  1. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  2. package/components/bibtemplate/dist/index.js +2 -2
  3. package/components/bibtemplate/dist/registered.js +2 -2
  4. package/components/checkbox/README.md +1 -1
  5. package/components/checkbox/demo/api.min.js +14 -3
  6. package/components/checkbox/demo/index.min.js +14 -3
  7. package/components/checkbox/demo/readme.md +1 -1
  8. package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
  9. package/components/checkbox/dist/auro-checkbox.d.ts +5 -1
  10. package/components/checkbox/dist/index.js +14 -3
  11. package/components/checkbox/dist/registered.js +14 -3
  12. package/components/combobox/README.md +1 -1
  13. package/components/combobox/demo/api.md +3 -0
  14. package/components/combobox/demo/api.min.js +1479 -395
  15. package/components/combobox/demo/index.html +2 -0
  16. package/components/combobox/demo/index.md +75 -0
  17. package/components/combobox/demo/index.min.js +1479 -395
  18. package/components/combobox/demo/readme.md +1 -1
  19. package/components/combobox/dist/auro-combobox.d.ts +19 -9
  20. package/components/combobox/dist/index.js +1471 -387
  21. package/components/combobox/dist/registered.js +1471 -387
  22. package/components/counter/README.md +1 -1
  23. package/components/counter/demo/api.min.js +433 -104
  24. package/components/counter/demo/index.min.js +433 -104
  25. package/components/counter/demo/readme.md +1 -1
  26. package/components/counter/dist/iconVersion.d.ts +1 -1
  27. package/components/counter/dist/index.js +433 -104
  28. package/components/counter/dist/registered.js +433 -104
  29. package/components/datepicker/README.md +1 -1
  30. package/components/datepicker/demo/api.min.js +1157 -376
  31. package/components/datepicker/demo/index.min.js +1157 -376
  32. package/components/datepicker/demo/readme.md +1 -1
  33. package/components/datepicker/dist/index.js +1156 -375
  34. package/components/datepicker/dist/registered.js +1156 -375
  35. package/components/dropdown/README.md +1 -1
  36. package/components/dropdown/demo/api.md +59 -35
  37. package/components/dropdown/demo/api.min.js +361 -88
  38. package/components/dropdown/demo/index.md +52 -0
  39. package/components/dropdown/demo/index.min.js +361 -88
  40. package/components/dropdown/demo/readme.md +1 -1
  41. package/components/dropdown/dist/auro-dropdown.d.ts +70 -21
  42. package/components/dropdown/dist/index.js +331 -58
  43. package/components/dropdown/dist/registered.js +331 -58
  44. package/components/dropdown/dist/styles/default/style-css.d.ts +2 -0
  45. package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
  46. package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
  47. package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
  48. package/components/form/README.md +1 -1
  49. package/components/form/demo/readme.md +1 -1
  50. package/components/input/README.md +2 -2
  51. package/components/input/demo/api.md +76 -64
  52. package/components/input/demo/api.min.js +747 -295
  53. package/components/input/demo/index.html +1 -1
  54. package/components/input/demo/index.md +49 -4
  55. package/components/input/demo/index.min.js +747 -295
  56. package/components/input/demo/readme.md +2 -2
  57. package/components/input/dist/auro-input.d.ts +97 -3
  58. package/components/input/dist/base-input.d.ts +36 -18
  59. package/components/input/dist/index.js +681 -229
  60. package/components/input/dist/registered.js +681 -229
  61. package/components/input/dist/styles/classic/color-css.d.ts +2 -0
  62. package/components/input/dist/styles/classic/style-css.d.ts +2 -0
  63. package/components/input/dist/styles/default/borders-css.d.ts +2 -0
  64. package/components/input/dist/styles/default/color-css.d.ts +2 -0
  65. package/components/input/dist/styles/default/input-css.d.ts +2 -0
  66. package/components/input/dist/styles/default/label-css.d.ts +2 -0
  67. package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
  68. package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
  69. package/components/input/dist/styles/default/style-css.d.ts +2 -0
  70. package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
  71. package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
  72. package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
  73. package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
  74. package/components/layoutElement/dist/auroElement.d.ts +34 -0
  75. package/components/layoutElement/dist/index.d.ts +1 -0
  76. package/components/layoutElement/dist/index.js +1 -0
  77. package/components/layoutElement/dist/registered.js +1 -0
  78. package/components/menu/README.md +1 -1
  79. package/components/menu/demo/api.min.js +2 -2
  80. package/components/menu/demo/index.min.js +2 -2
  81. package/components/menu/demo/readme.md +1 -1
  82. package/components/menu/dist/iconVersion.d.ts +1 -1
  83. package/components/menu/dist/index.js +2 -2
  84. package/components/menu/dist/registered.js +2 -2
  85. package/components/radio/README.md +1 -1
  86. package/components/radio/demo/api.md +8 -0
  87. package/components/radio/demo/api.min.js +13 -5
  88. package/components/radio/demo/index.min.js +13 -5
  89. package/components/radio/demo/readme.md +1 -1
  90. package/components/radio/dist/auro-radio.d.ts +4 -0
  91. package/components/radio/dist/index.js +13 -5
  92. package/components/radio/dist/registered.js +13 -5
  93. package/components/select/README.md +1 -1
  94. package/components/select/demo/api.html +15 -0
  95. package/components/select/demo/api.md +178 -0
  96. package/components/select/demo/api.min.js +403 -62
  97. package/components/select/demo/index.html +15 -0
  98. package/components/select/demo/index.md +177 -0
  99. package/components/select/demo/index.min.js +403 -62
  100. package/components/select/demo/readme.md +1 -1
  101. package/components/select/dist/auro-select.d.ts +27 -0
  102. package/components/select/dist/index.js +400 -58
  103. package/components/select/dist/registered.js +400 -58
  104. package/package.json +2 -2
  105. /package/components/{dropdown/dist/styles/bibColors-css.d.ts → combobox/dist/styles/emphasized/style-css.d.ts} +0 -0
  106. /package/components/{dropdown/dist/styles/bibStyles-css.d.ts → combobox/dist/styles/snowflake/style-css.d.ts} +0 -0
  107. /package/components/{input/dist/styles/borders-css.d.ts → dropdown/dist/styles/default/bibColors-css.d.ts} +0 -0
  108. /package/components/{input/dist/styles/label-css.d.ts → dropdown/dist/styles/default/bibStyles-css.d.ts} +0 -0
  109. /package/components/{input/dist/styles/notificationIcons-css.d.ts → dropdown/dist/styles/default/color-css.d.ts} +0 -0
@@ -895,7 +895,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
895
895
 
896
896
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
897
897
 
898
- let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
898
+ let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
899
899
 
900
900
  /* eslint-disable jsdoc/require-param */
901
901
 
@@ -1478,16 +1478,21 @@ const flip$1 = function (options) {
1478
1478
  const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
1479
1479
  const nextPlacement = placements[nextIndex];
1480
1480
  if (nextPlacement) {
1481
- // Try next placement and re-run the lifecycle.
1482
- return {
1483
- data: {
1484
- index: nextIndex,
1485
- overflows: overflowsData
1486
- },
1487
- reset: {
1488
- placement: nextPlacement
1489
- }
1490
- };
1481
+ var _overflowsData$;
1482
+ const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
1483
+ const hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
1484
+ if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow) {
1485
+ // Try next placement and re-run the lifecycle.
1486
+ return {
1487
+ data: {
1488
+ index: nextIndex,
1489
+ overflows: overflowsData
1490
+ },
1491
+ reset: {
1492
+ placement: nextPlacement
1493
+ }
1494
+ };
1495
+ }
1491
1496
  }
1492
1497
 
1493
1498
  // First, find the candidates that fit on the mainAxis side of overflow,
@@ -2139,6 +2144,12 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
2139
2144
  scrollTop: 0
2140
2145
  };
2141
2146
  const offsets = createCoords(0);
2147
+
2148
+ // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
2149
+ // Firefox with layout.scrollbar.side = 3 in about:config to test this.
2150
+ function setLeftRTLScrollbarOffset() {
2151
+ offsets.x = getWindowScrollBarX(documentElement);
2152
+ }
2142
2153
  if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
2143
2154
  if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
2144
2155
  scroll = getNodeScroll(offsetParent);
@@ -2148,11 +2159,12 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
2148
2159
  offsets.x = offsetRect.x + offsetParent.clientLeft;
2149
2160
  offsets.y = offsetRect.y + offsetParent.clientTop;
2150
2161
  } else if (documentElement) {
2151
- // If the <body> scrollbar appears on the left (e.g. RTL systems). Use
2152
- // Firefox with layout.scrollbar.side = 3 in about:config to test this.
2153
- offsets.x = getWindowScrollBarX(documentElement);
2162
+ setLeftRTLScrollbarOffset();
2154
2163
  }
2155
2164
  }
2165
+ if (isFixed && !isOffsetParentAnElement && documentElement) {
2166
+ setLeftRTLScrollbarOffset();
2167
+ }
2156
2168
  const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
2157
2169
  const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
2158
2170
  const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
@@ -2329,7 +2341,7 @@ function observeMove(element, onMove) {
2329
2341
  // Handle <iframe>s
2330
2342
  root: root.ownerDocument
2331
2343
  });
2332
- } catch (e) {
2344
+ } catch (_e) {
2333
2345
  io = new IntersectionObserver(handleObserve, options);
2334
2346
  }
2335
2347
  io.observe(element);
@@ -3142,7 +3154,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
3142
3154
  * @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
3143
3155
  */
3144
3156
 
3145
- let AuroElement$2 = class AuroElement extends LitElement {
3157
+ let AuroElement$1$2 = class AuroElement extends LitElement {
3146
3158
 
3147
3159
  // function to define props used within the scope of this component
3148
3160
  static get properties() {
@@ -3210,7 +3222,7 @@ var styleCss$3$2 = css`:focus:not(:focus-visible){outline:3px solid transparent}
3210
3222
  */
3211
3223
 
3212
3224
  // build the component class
3213
- let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
3225
+ let BaseIcon$2 = class BaseIcon extends AuroElement$1$2 {
3214
3226
  constructor() {
3215
3227
  super();
3216
3228
  this.onDark = false;
@@ -3284,7 +3296,7 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
3284
3296
 
3285
3297
  var tokensCss$2$1 = 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)}`;
3286
3298
 
3287
- var colorCss$3$1 = 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)}`;
3299
+ var colorCss$3$1 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
3288
3300
 
3289
3301
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3290
3302
  // See LICENSE in the project root for license information.
@@ -3305,7 +3317,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3305
3317
  */
3306
3318
  privateDefaults() {
3307
3319
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
3308
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
3320
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
3309
3321
  }
3310
3322
 
3311
3323
  // function to define props used within the scope of this component
@@ -3387,7 +3399,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
3387
3399
  *
3388
3400
  */
3389
3401
  static register(name = "auro-icon") {
3390
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroIcon);
3402
+ AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroIcon);
3391
3403
  }
3392
3404
 
3393
3405
  connectedCallback() {
@@ -3457,9 +3469,9 @@ var iconVersion$2 = '6.1.2';
3457
3469
 
3458
3470
  var styleCss$2$2 = css`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}`;
3459
3471
 
3460
- var colorCss$2$1 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
3472
+ var colorCss$2$2 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
3461
3473
 
3462
- var tokensCss$1$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
3474
+ var tokensCss$1$2 = css`:host(:not([ondark])){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}`;
3463
3475
 
3464
3476
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3465
3477
  // See LICENSE in the project root for license information.
@@ -3490,14 +3502,14 @@ class AuroDropdownBib extends LitElement {
3490
3502
  */
3491
3503
  this._mobileBreakpointValue = undefined;
3492
3504
 
3493
- AuroLibraryRuntimeUtils$1$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
3505
+ AuroLibraryRuntimeUtils$1$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
3494
3506
  }
3495
3507
 
3496
3508
  static get styles() {
3497
3509
  return [
3498
3510
  styleCss$2$2,
3499
- colorCss$2$1,
3500
- tokensCss$1$1
3511
+ colorCss$2$2,
3512
+ tokensCss$1$2
3501
3513
  ];
3502
3514
  }
3503
3515
 
@@ -3582,11 +3594,17 @@ class AuroDropdownBib extends LitElement {
3582
3594
 
3583
3595
  var dropdownVersion$1 = '3.0.0';
3584
3596
 
3585
- var styleCss$1$2 = css`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{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);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{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)}.trigger{position:relative;display:flex;align-items:center}.trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([inset][bordered][labeled]) .trigger{padding:var(--ds-size-100, 0.5rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
3597
+ var shapeSizeCss$1 = css`.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0;min-height:60px;max-height:60px;background-color:unset}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-rounded-lg{min-height:52px;max-height:52px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px}.shape-pill-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px 0 0 34px}.shape-pill-left-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 34px 34px 0}.shape-pill-right-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px}.shape-pill-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px 0 0 34px}.shape-pill-left-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 34px 34px 0}.shape-pill-right-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}`;
3598
+
3599
+ var styleCss$1$3 = css`:host([layout*=classic]){position:relative;display:inline-block;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .trigger{position:relative;display:flex;align-items:center}:host([layout*=classic]) .trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@media(hover: hover){:host([layout*=classic]) .trigger:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([layout*=classic][fluid]){display:block}:host([layout*=classic][matchwidth]) #bibSizer{width:100%}:host([layout*=classic][disabled]){pointer-events:none}:host([layout*=classic][inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][inset][bordered][labeled]) .trigger{padding:var(--ds-size-100, 0.5rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
3586
3600
 
3587
- var colorCss$1$2 = css`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host([onDark]){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark]):focus-within,:host([onDark]):active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][common]),:host([onDark][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([onDark][common]) .trigger:focus-within,:host([onDark][common]) .trigger:active,:host([onDark][bordered]) .trigger:focus-within,:host([onDark][bordered]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([onDark][error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([onDark][error]) .trigger:focus-within,:host([onDark][error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled][common]),:host([onDark][disabled][bordered]){--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}`;
3601
+ var colorCss$1$2 = css`:host .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus,:host(:not([ondark])) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus,:host([ondark]) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([error]:not([ondark])){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([error][ondark]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helpText{color:var(--ds-auro-dropdown-helptext-text-color)}`;
3588
3602
 
3589
- var colorCss$6 = 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)}`;
3603
+ var styleEmphasizedCss$1 = css`:host{display:block}.wrapper{display:flex;flex-direction:column}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:24px;width:calc(100% - 48px)}`;
3604
+
3605
+ var styleSnowflakeCss$1 = css`:host{display:block}.wrapper{display:flex;flex-direction:column}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=snowflake]) .leftIndent{margin-left:24px;width:calc(100% - 48px)}:host([layout*=snowflake]) .rightIndent{margin-right:24px;width:calc(100% - 48px)}`;
3606
+
3607
+ var colorCss$5 = 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)}`;
3590
3608
 
3591
3609
  var styleCss$6 = 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}`;
3592
3610
 
@@ -3671,7 +3689,7 @@ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
3671
3689
  *
3672
3690
  * @attr { Boolean } large - If declared, make font-size to 1rem(16px).
3673
3691
  */
3674
- let AuroHelpText$1 = class AuroHelpText extends LitElement {
3692
+ let AuroHelpText$2 = class AuroHelpText extends LitElement {
3675
3693
 
3676
3694
  constructor() {
3677
3695
  super();
@@ -3685,7 +3703,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
3685
3703
 
3686
3704
  static get styles() {
3687
3705
  return [
3688
- colorCss$6,
3706
+ colorCss$5,
3689
3707
  styleCss$6,
3690
3708
  tokensCss$6
3691
3709
  ];
@@ -3794,6 +3812,98 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
3794
3812
 
3795
3813
  var helpTextVersion$1 = '1.0.0';
3796
3814
 
3815
+ let AuroElement$3 = class AuroElement extends LitElement {
3816
+ static get properties() {
3817
+ return {
3818
+
3819
+ /**
3820
+ * Defines the language of an element.
3821
+ * @default {'default'}
3822
+ */
3823
+ layout: {
3824
+ type: String,
3825
+ attribute: "layout",
3826
+ reflect: true
3827
+ },
3828
+
3829
+ shape: {
3830
+ type: String,
3831
+ attribute: "shape",
3832
+ reflect: true
3833
+ },
3834
+
3835
+ size: {
3836
+ type: String,
3837
+ attribute: "size",
3838
+ reflect: true
3839
+ },
3840
+
3841
+ onDark: {
3842
+ type: Boolean,
3843
+ attribute: "ondark",
3844
+ reflect: true
3845
+ }
3846
+ };
3847
+ }
3848
+
3849
+ resetShapeClasses() {
3850
+ if (this.shape && this.size) {
3851
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
3852
+
3853
+ if (wrapper) {
3854
+ wrapper.classList.forEach((className) => {
3855
+ if (className.startsWith('shape-')) {
3856
+ wrapper.classList.remove(className);
3857
+ }
3858
+ });
3859
+
3860
+ wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
3861
+ }
3862
+ }
3863
+ }
3864
+
3865
+ resetLayoutClasses() {
3866
+ if (this.layout) {
3867
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
3868
+
3869
+ if (wrapper) {
3870
+ wrapper.classList.forEach((className) => {
3871
+ if (className.startsWith('layout-')) {
3872
+ wrapper.classList.remove(className);
3873
+ }
3874
+ });
3875
+
3876
+ wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
3877
+ }
3878
+ }
3879
+ }
3880
+
3881
+ updateComponentArchitecture() {
3882
+ this.resetLayoutClasses();
3883
+ this.resetShapeClasses();
3884
+ }
3885
+
3886
+ updated(changedProperties) {
3887
+ if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
3888
+ this.updateComponentArchitecture();
3889
+ }
3890
+ }
3891
+
3892
+ // Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
3893
+ // This will catch if an invalid layout value is passed in and render the default layout if so.
3894
+ render() {
3895
+ try {
3896
+ return this.renderLayout();
3897
+ } catch (error) {
3898
+ // failed to get the defined layout
3899
+ console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
3900
+
3901
+ // fallback to the default layout
3902
+ return this.getLayout('default');
3903
+ }
3904
+ }
3905
+ };
3906
+
3797
3907
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3798
3908
  // See LICENSE in the project root for license information.
3799
3909
 
@@ -3811,7 +3921,7 @@ var helpTextVersion$1 = '1.0.0';
3811
3921
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
3812
3922
  * @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
3813
3923
  */
3814
- class AuroDropdown extends LitElement {
3924
+ class AuroDropdown extends AuroElement$3 {
3815
3925
  constructor() {
3816
3926
  super();
3817
3927
 
@@ -3820,26 +3930,29 @@ class AuroDropdown extends LitElement {
3820
3930
  this.matchWidth = false;
3821
3931
  this.noHideOnThisFocusLoss = false;
3822
3932
 
3933
+ this.errorMessage = ''; // TODO!
3934
+
3935
+ // Layout Config
3936
+ this.layout = 'default';
3937
+ this.shape = 'rounded';
3938
+ this.size = 'xl';
3939
+
3823
3940
  this.privateDefaults();
3941
+ }
3824
3942
 
3825
- /**
3826
- * @private
3827
- * @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
3828
- */
3829
- this.constructor.shadowRootOptions = {
3830
- ...LitElement.shadowRootOptions,
3831
- delegatesFocus: true,
3943
+ get commonLabelClasses() {
3944
+ return {
3945
+ // 'withValue': this.value && this.value.length > 0
3832
3946
  };
3947
+ }
3833
3948
 
3834
- /**
3835
- * @private
3836
- */
3837
- this.triggerContentFocusable = false;
3838
-
3839
- /**
3840
- * @private
3841
- */
3842
- this.showTriggerBorders = true;
3949
+ get commonWrapperClasses() {
3950
+ return {
3951
+ 'trigger': true,
3952
+ 'wrapper': true,
3953
+ 'hasFocus': this.hasFocus,
3954
+ 'simple': this.simple
3955
+ };
3843
3956
  }
3844
3957
 
3845
3958
  /**
@@ -3847,7 +3960,6 @@ class AuroDropdown extends LitElement {
3847
3960
  * @returns {void} Internal defaults.
3848
3961
  */
3849
3962
  privateDefaults() {
3850
- this.bordered = false;
3851
3963
  this.chevron = false;
3852
3964
  this.disabled = false;
3853
3965
  this.error = false;
@@ -3857,8 +3969,11 @@ class AuroDropdown extends LitElement {
3857
3969
  this.noToggle = false;
3858
3970
  this.a11yAutocomplete = 'none';
3859
3971
  this.labeled = true;
3860
- this.a11yRole = 'combobox';
3972
+ this.a11yRole = 'button';
3861
3973
  this.onDark = false;
3974
+ this.showTriggerBorders = true;
3975
+ this.triggerContentFocusable = false;
3976
+ this.simple = false;
3862
3977
 
3863
3978
  // floaterConfig
3864
3979
  this.placement = 'bottom-start';
@@ -3866,6 +3981,15 @@ class AuroDropdown extends LitElement {
3866
3981
  this.noFlip = false;
3867
3982
  this.autoPlacement = false;
3868
3983
 
3984
+ /**
3985
+ * @private
3986
+ * @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
3987
+ */
3988
+ this.constructor.shadowRootOptions = {
3989
+ ...LitElement.shadowRootOptions,
3990
+ delegatesFocus: true,
3991
+ };
3992
+
3869
3993
  /**
3870
3994
  * @private
3871
3995
  */
@@ -3879,7 +4003,7 @@ class AuroDropdown extends LitElement {
3879
4003
  /**
3880
4004
  * @private
3881
4005
  */
3882
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
4006
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
3883
4007
 
3884
4008
  /**
3885
4009
  * @private
@@ -3904,7 +4028,7 @@ class AuroDropdown extends LitElement {
3904
4028
  /**
3905
4029
  * @private
3906
4030
  */
3907
- this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion$1, AuroHelpText$1);
4031
+ this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion$1, AuroHelpText$2);
3908
4032
 
3909
4033
  /**
3910
4034
  * @private
@@ -3956,7 +4080,7 @@ class AuroDropdown extends LitElement {
3956
4080
  /**
3957
4081
  * If declared, applies a border around the trigger slot.
3958
4082
  */
3959
- bordered: {
4083
+ simple: {
3960
4084
  type: Boolean,
3961
4085
  reflect: true
3962
4086
  },
@@ -4004,13 +4128,20 @@ class AuroDropdown extends LitElement {
4004
4128
  },
4005
4129
 
4006
4130
  /**
4007
- * If declared in combination with `bordered` property or `helpText` slot content, will apply red color to both.
4131
+ * If declared in combination with not using the `simple` property or `helpText` slot content, will apply red color to both.
4008
4132
  */
4009
4133
  error: {
4010
4134
  type: Boolean,
4011
4135
  reflect: true
4012
4136
  },
4013
4137
 
4138
+ /**
4139
+ * Contains the help text message for the current validity error.
4140
+ */
4141
+ errorMessage: {
4142
+ type: String
4143
+ },
4144
+
4014
4145
  /**
4015
4146
  * If declared, the bib will display when focus is applied to the trigger.
4016
4147
  */
@@ -4145,11 +4276,6 @@ class AuroDropdown extends LitElement {
4145
4276
 
4146
4277
  /**
4147
4278
  * Position where the bib should appear relative to the trigger.
4148
- * Accepted values:
4149
- * "top" | "right" | "bottom" | "left" |
4150
- * "bottom-start" | "top-start" | "top-end" |
4151
- * "right-start" | "right-end" | "bottom-end" |
4152
- * "left-start" | "left-end"
4153
4279
  * @default bottom-start
4154
4280
  */
4155
4281
  placement: {
@@ -4194,8 +4320,11 @@ class AuroDropdown extends LitElement {
4194
4320
  static get styles() {
4195
4321
  return [
4196
4322
  colorCss$1$2,
4197
- styleCss$1$2,
4198
- tokensCss$1$1
4323
+ styleCss$1$3,
4324
+ tokensCss$1$2,
4325
+ styleEmphasizedCss$1,
4326
+ styleSnowflakeCss$1,
4327
+ shapeSizeCss$1
4199
4328
  ];
4200
4329
  }
4201
4330
 
@@ -4208,7 +4337,7 @@ class AuroDropdown extends LitElement {
4208
4337
  *
4209
4338
  */
4210
4339
  static register(name = "auro-dropdown") {
4211
- AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
4340
+ AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroDropdown);
4212
4341
  }
4213
4342
 
4214
4343
  /**
@@ -4231,6 +4360,7 @@ class AuroDropdown extends LitElement {
4231
4360
  }
4232
4361
 
4233
4362
  updated(changedProperties) {
4363
+ super.updated(changedProperties);
4234
4364
  this.floater.handleUpdate(changedProperties);
4235
4365
 
4236
4366
  // Note: `disabled` is not a breakpoint (it is not a screen size),
@@ -4240,7 +4370,7 @@ class AuroDropdown extends LitElement {
4240
4370
  }
4241
4371
 
4242
4372
  // when trigger's content is changed without any attribute or node change,
4243
- // `requestUpdate` needs to be called to update hasTriggerContnet
4373
+ // `requestUpdate` needs to be called to update hasTriggerContent
4244
4374
  if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
4245
4375
  this.handleTriggerContentSlotChange();
4246
4376
  }
@@ -4301,6 +4431,24 @@ class AuroDropdown extends LitElement {
4301
4431
  return inCustomSlot;
4302
4432
  }
4303
4433
 
4434
+ /**
4435
+ * Function to support @focusin event.
4436
+ * @private
4437
+ * @return {void}
4438
+ */
4439
+ handleFocusin() {
4440
+ this.hasFocus = true;
4441
+ }
4442
+
4443
+ /**
4444
+ * Function to support @focusout event.
4445
+ * @private
4446
+ * @return {void}
4447
+ */
4448
+ handleFocusout() {
4449
+ this.hasFocus = false;
4450
+ }
4451
+
4304
4452
  /**
4305
4453
  * Determines if the element or any children are focusable.
4306
4454
  * @private
@@ -4360,8 +4508,8 @@ class AuroDropdown extends LitElement {
4360
4508
  }
4361
4509
 
4362
4510
  /**
4363
- * @private
4364
4511
  * Creates and dispatches a duplicate focus event on the trigger element.
4512
+ * @private
4365
4513
  * @param {Event} event - The original focus event.
4366
4514
  */
4367
4515
  bindFocusEventToTrigger(event) {
@@ -4374,9 +4522,9 @@ class AuroDropdown extends LitElement {
4374
4522
  }
4375
4523
 
4376
4524
  /**
4377
- * @private
4378
4525
  * Sets up event listeners to deliver focus and blur events from nested Auro components within the trigger slot to trigger.
4379
4526
  * This ensures that focus/blur events originating from within these components are propagated to the trigger element itself.
4527
+ * @private
4380
4528
  */
4381
4529
  setupTriggerFocusEventBinding() {
4382
4530
  if (!this.triggerContentSlot || this.triggerContentSlot.length === 0) {
@@ -4470,7 +4618,7 @@ class AuroDropdown extends LitElement {
4470
4618
  // If there are children
4471
4619
  if (triggerContentNodes) {
4472
4620
 
4473
- // See if any of them are focusable elemeents
4621
+ // See if any of them are focusable elements
4474
4622
  this.triggerContentFocusable = triggerContentNodes.some((node) => this.containsFocusableElement(node));
4475
4623
 
4476
4624
  // If any of them are focusable elements
@@ -4556,8 +4704,75 @@ class AuroDropdown extends LitElement {
4556
4704
  this.labeled = nodesArr.length > 0;
4557
4705
  }
4558
4706
 
4559
- // function that renders the HTML and CSS into the scope of the component
4560
- render() {
4707
+ /**
4708
+ * Returns HTML for the common portion of the layouts.
4709
+ * @private
4710
+ * @param {Object} helpTextClasses - Classes to apply to the help text container.
4711
+ * @returns {html} - Returns HTML.
4712
+ */
4713
+ renderBasicHtml(helpTextClasses) {
4714
+ return html`
4715
+ <div>
4716
+ <div
4717
+ id="trigger"
4718
+ class="${classMap(this.commonWrapperClasses)}" part="wrapper"
4719
+ tabindex="${this.tabIndex}"
4720
+ ?showBorder="${this.showTriggerBorders}"
4721
+ role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
4722
+ aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
4723
+ aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
4724
+ aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
4725
+ @focusin="${this.handleFocusin}"
4726
+ @blur="${this.handleFocusOut}">
4727
+ <div class="triggerContentWrapper">
4728
+ <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
4729
+ <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
4730
+ </label>
4731
+ <div class="triggerContent">
4732
+ <slot
4733
+ name="trigger"
4734
+ @slotchange="${this.handleTriggerContentSlotChange}"></slot>
4735
+ </div>
4736
+ </div>
4737
+ ${this.chevron || this.common ? html`
4738
+ <div
4739
+ id="showStateIcon"
4740
+ part="chevron">
4741
+ <${this.iconTag}
4742
+ category="interface"
4743
+ name="chevron-down"
4744
+ ?onDark="${this.onDark}"
4745
+ variant="${this.disabled ? 'disabled' : 'muted'}">
4746
+ >
4747
+ </${this.iconTag}>
4748
+ </div>
4749
+ ` : undefined }
4750
+ </div>
4751
+ <div class="${classMap(helpTextClasses)}">
4752
+ <slot name="helpText"></slot>
4753
+ </div>
4754
+ <div class="slotContent">
4755
+ <slot @slotchange="${this.handleDefaultSlot}"></slot>
4756
+ </div>
4757
+ <div id="bibSizer" part="size"></div>
4758
+ <${this.dropdownBibTag}
4759
+ id="bib"
4760
+ ?data-show="${this.isPopoverVisible}"
4761
+ ?isfullscreen="${this.isBibFullscreen}"
4762
+ ?common="${this.common}"
4763
+ ?rounded="${this.common || this.rounded}"
4764
+ ?inset="${this.common || this.inset}">
4765
+ </${this.dropdownBibTag}>
4766
+ </div>
4767
+ `;
4768
+ }
4769
+
4770
+ /**
4771
+ * Returns HTML for the classic layout. Does not support type="*".
4772
+ * @private
4773
+ * @returns {html} - Returns HTML for the classic layout.
4774
+ */
4775
+ renderLayoutClassic() {
4561
4776
  return html`
4562
4777
  <div>
4563
4778
  <div
@@ -4595,9 +4810,6 @@ class AuroDropdown extends LitElement {
4595
4810
  </div>
4596
4811
  ` : undefined }
4597
4812
  </div>
4598
- <${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
4599
- <slot name="helpText"></slot>
4600
- </${this.helpTextTag}>
4601
4813
  <div class="slotContent">
4602
4814
  <slot @slotchange="${this.handleDefaultSlot}"></slot>
4603
4815
  </div>
@@ -4614,10 +4826,91 @@ class AuroDropdown extends LitElement {
4614
4826
  </div>
4615
4827
  `;
4616
4828
  }
4829
+
4830
+ /**
4831
+ * Returns HTML for the snowflake layout. Does not support type="*".
4832
+ * @private
4833
+ * @returns {html} - Returns HTML for the snowflake layout.
4834
+ */
4835
+ renderLayoutSnowflake() {
4836
+ const helpTextClasses = {
4837
+ 'helpText': true,
4838
+ 'leftIndent': true,
4839
+ 'rightIndent': true
4840
+ };
4841
+
4842
+ return html`
4843
+ ${this.renderBasicHtml(helpTextClasses)}
4844
+ `;
4845
+ }
4846
+
4847
+ /**
4848
+ * Returns HTML for the emphasized layout. Does not support type="*".
4849
+ * @private
4850
+ * @returns {html} - Returns HTML for the emphasized layout.
4851
+ */
4852
+ renderLayoutEmphasized() {
4853
+ const helpTextClasses = {
4854
+ 'helpText': true,
4855
+ 'leftIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('right'),
4856
+ 'rightIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('left')
4857
+ };
4858
+
4859
+ return html`
4860
+ ${this.renderBasicHtml(helpTextClasses)}
4861
+ `;
4862
+ }
4863
+
4864
+ /**
4865
+ * Logic to determine the layout of the component.
4866
+ * @private
4867
+ * @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
4868
+ * @returns {HTMLCollection} - Returns the HTML for the layout.
4869
+ */
4870
+ renderLayout(ForcedLayout) {
4871
+ const layout = ForcedLayout || this.layout;
4872
+
4873
+ switch (layout) {
4874
+ case 'emphasized':
4875
+ return this.renderLayoutEmphasized();
4876
+ case 'emphasized-left':
4877
+ return this.renderLayoutEmphasized();
4878
+ case 'emphasized-right':
4879
+ return this.renderLayoutEmphasized();
4880
+ case 'snowflake':
4881
+ return this.renderLayoutSnowflake();
4882
+ case 'snowflake-left':
4883
+ return this.renderLayoutSnowflake();
4884
+ case 'snowflake-right':
4885
+ return this.renderLayoutSnowflake();
4886
+ default:
4887
+ return this.renderLayoutClassic();
4888
+ }
4889
+ }
4617
4890
  }
4618
4891
 
4619
4892
  var dropdownVersion = '3.0.0';
4620
4893
 
4894
+ var shapeSizeCss = css`.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}`;
4895
+
4896
+ var styleCss$4 = 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}`;
4897
+
4898
+ var styleDefaultCss = css`.layoutDefault .typeIcon,:host(:not([layout])) .typeIcon{display:flex;flex-direction:row;align-items:center}.layoutDefault .typeIcon [auro-icon],:host(:not([layout])) .typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.layoutDefault .notificationIcons,:host(:not([layout])) .notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .typeIcon,:host(:not([layout])[bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .notificationIcons,:host(:not([layout])[bordered]) .notificationIcons{align-items:center}:host([class=layoutDefault][bordered]) .notification:not(:first-of-type),:host(:not([layout])[bordered]) .notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .alertNotification,:host(:not([layout])[bordered]) .alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}:host([class=layoutDefault][bordered]) .passwordBtn,:host(:not([layout])[bordered]) .passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}:host([class=layoutDefault][bordered]) .notificationBtn,:host(:not([layout])[bordered]) .notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon],:host(:not([layout])[bordered]) .notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon][hidden],:host(:not([layout])[bordered]) .notificationBtn [auro-icon][hidden]{display:none}:host([class=layoutDefault]:not([bordered])) .typeIcon,:host([class=layoutDefault]:not([bordered])) .notificationIcons,:host(:not([layout]):not([bordered])) .typeIcon,:host(:not([layout]):not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}:host([class=layoutDefault]:not([bordered])) .clearBtn,:host(:not([layout]):not([bordered])) .clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}.layoutDefault .wrapper:hover .clearBtn,.layoutDefault .wrapper:focus-within .clearBtn,:host(:not([layout])) .wrapper:hover .clearBtn,:host(:not([layout])) .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host([class=layoutDefault]:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification,:host(:not([layout]):focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.layoutDefault input,:host(:not([layout])) input{border:unset}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{position:relative;overflow:hidden;border-style:solid}:host([class=layoutDefault]:not([bordered],[borderless])) .wrapper,:host(:not([layout]):not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([class=layoutDefault][bordered]) .wrapper,:host(:not([layout])[bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host([class=layoutDefault]:not([borderless])) .wrapper:focus-within:before,:host(:not([layout]):not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([class=layoutDefault][validity]:not([validity=valid])) .wrapper:before,:host(:not([layout])[validity]:not([validity=valid])) .wrapper:before{border-bottom:0}.layoutDefault label,:host(:not([layout])) label{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap}.layoutDefault :host(:not([bordered])) label,:host(:not([layout])) :host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}.layoutDefault :host(:not([bordered])) label.withIcon,:host(:not([layout])) :host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([class=layoutDefault][bordered]) label,:host(:not([layout])[bordered]) label{top:50%;transform:translateY(-50%)}:host([class=layoutDefault][bordered]) label.withIcon,:host(:not([layout])[bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([class=layoutDefault][bordered]) label:not(label.withIcon),:host(:not([layout])[bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}.layoutDefault .wrapper:focus-within label,:host(:not([layout])) .wrapper:focus-within label{top:var(--ds-size-100, 0.5rem);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);transform:unset}.layoutDefault label.withValue,:host(:not([layout])) label.withValue{top:var(--ds-size-100, 0.5rem);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);transform:unset}:host([class=layoutDefault][activeLabel]) .wrapper label,:host(:not([layout])[activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);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);transform:unset}.layoutDefault input,:host(:not([layout])) input{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:relative;overflow:hidden;min-height:var(--ds-size-200, 1rem);max-height:var(--ds-size-200, 1rem);flex:1;padding:var(--ds-size-400, 2rem) 0 var(--ds-size-50, 0.25rem);margin:0;font-family:var(--ds-basic-text-body-default-font-family, AS Circular);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);outline:none;text-overflow:ellipsis;white-space:nowrap}.layoutDefault input::-ms-reveal,.layoutDefault input::-ms-clear,:host(:not([layout])) input::-ms-reveal,:host(:not([layout])) input::-ms-clear{display:none}.layoutDefault input::-webkit-outer-spin-button,.layoutDefault input::-webkit-inner-spin-button,:host(:not([layout])) input::-webkit-outer-spin-button,:host(:not([layout])) input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.layoutDefault input[type=number],:host(:not([layout])) input[type=number]{-moz-appearance:textfield;appearance:textfield}.layoutDefault input:disabled,:host(:not([layout])) input:disabled{background:none;pointer-events:none}:host([class=layoutDefault][bordered]) input,:host(:not([layout])[bordered]) input{padding:var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem)}: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}.layoutDefault :host,:host(:not([layout])) :host{position:relative;display:block}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{display:flex;flex-direction:row}.layoutDefault .main,:host(:not([layout])) .main{display:flex;flex-direction:row;position:relative;flex:1}`;
4899
+
4900
+ var colorBaseCss = css`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-background-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{color:var(--ds-auro-input-text-color);caret-color:var(--ds-auro-input-caret-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper .displayValue{background-color:var(--ds-auro-input-background-color)}:host(:not([ondark])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host(:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
4901
+
4902
+ var tokensCss$4 = css`:host(:not(ondark)){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
4903
+
4904
+ var classicStyleCss = css`.layout-classic{display:flex;flex-direction:row}.layout-classic .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;flex:1;cursor:text}.layout-classic .mainContent label{cursor:text;padding-top:4px;font-size:var(--ds-text-body-size-xs);line-height:20px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent input{font-size:var(--ds-basic-text-body-default-font-size, 16px);line-height:var(--ds-basic-text-body-default-line-height, 24px);padding-bottom:8px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);height:auto}.layout-classic .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start;padding-top:0;font-size:var(--ds-text-body-size-default, 1rem);line-height:var(--ds-text-body-size-default)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) input{height:0;line-height:0;padding-bottom:0}.layout-classic .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-classic .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-classic .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-classic.withValue{justify-content:flex-start}.layout-classic:focus-within{box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color);justify-content:flex-start}.layout-classic:focus-within .alertNotification{display:none}.layout-classic .accents.left{padding-left:8px}.layout-classic .accents.right{padding-right:8px}`;
4905
+
4906
+ var classicColorCss = css`.layout-default label{color:var(--ds-auro-input-label-text-color)}`;
4907
+
4908
+ var emphasizedStyleCss = css`:host{display:block}.wrapper{cursor:text}.helpTextClasses{cursor:default}input{background:unset;width:100%;padding:0;border:0;outline:none;overflow:hidden;text-overflow:ellipsis}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:24px;width:calc(100% - 48px)}.layout-emphasized,.layout-emphasized-left,.layout-emphasized-right{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-emphasized label,.layout-emphasized-left label,.layout-emphasized-right label{text-transform:uppercase;font-size:32px;line-height:38px}.layout-emphasized input,.layout-emphasized-left input,.layout-emphasized-right input{text-align:center;font-size:14px;line-height:20px}.layout-emphasized .mainContent,.layout-emphasized-left .mainContent,.layout-emphasized-right .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1}.layout-emphasized .displayValue,.layout-emphasized-left .displayValue,.layout-emphasized-right .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-emphasized .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-left .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-right .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-emphasized .displayValueWrapper,.layout-emphasized-left .displayValueWrapper,.layout-emphasized-right .displayValueWrapper{transform:translateY(-50%)}.layout-emphasized .accents,.layout-emphasized-left .accents,.layout-emphasized-right .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-emphasized.withValue,.layout-emphasized-left.withValue,.layout-emphasized-right.withValue{justify-content:flex-start}.layout-emphasized.withValue label,.layout-emphasized-left.withValue label,.layout-emphasized-right.withValue label{display:block;text-transform:unset;font-size:10px;line-height:14px;width:100%;text-align:left}.layout-emphasized.withValue input,.layout-emphasized-left.withValue input,.layout-emphasized-right.withValue input{text-transform:uppercase;font-size:32px;line-height:38px;text-align:left;width:100%}.layout-emphasized:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-left:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-right:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{justify-content:flex-start}.layout-emphasized:focus-within label,.layout-emphasized-left:focus-within label,.layout-emphasized-right:focus-within label{display:block;text-transform:unset;font-size:10px;line-height:14px;width:100%;text-align:left}.layout-emphasized:focus-within input,.layout-emphasized-left:focus-within input,.layout-emphasized-right:focus-within input{text-transform:uppercase;font-size:32px;line-height:38px;text-align:left;width:100%}.layout-emphasized:focus-within .alertNotification,.layout-emphasized-left:focus-within .alertNotification,.layout-emphasized-right:focus-within .alertNotification{display:none}.layout-emphasized .accents.left,.layout-emphasized-left .accents.left,.layout-emphasized-right .accents.left{padding-left:24px}.layout-emphasized .accents.right,.layout-emphasized-left .accents.right,.layout-emphasized-right .accents.right{padding-right:24px}.layout-emphasized-left .alertNotification{margin-right:8px}.layout-emphasized-left .clear{margin-left:8px}.layout-emphasized-right .alertNotification{margin-left:8px}.layout-emphasized-right .clear{margin-right:8px}`;
4909
+
4910
+ var emphasizedColorCss = css`.layout-emphasized:focus-within,.layout-emphasized.withValue,.layout-emphasized-left:focus-within,.layout-emphasized-left.withValue,.layout-emphasized-right:focus-within,.layout-emphasized-right.withValue{--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{--auro-input-border-color: var(--ds-auro-input-border-color)}`;
4911
+
4912
+ var snowflakeStyleCss = css`:host([layout*=snowflake]) .leftIndent{margin-left:24px;width:calc(100% - 48px)}:host([layout*=snowflake]) .rightIndent{margin-right:24px;width:calc(100% - 48px)}.layout-snowflake{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-snowflake label{font-size:var(--ds-text-body-size-xs);line-height:20px}.layout-snowflake input{text-align:center;font-size:18px;line-height:26px}.layout-snowflake .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1}.layout-snowflake .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-snowflake .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-snowflake .displayValueWrapper{transform:translateY(-50%)}.layout-snowflake .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-snowflake.withValue{justify-content:flex-start}.layout-snowflake:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-snowflake:focus-within{justify-content:flex-start}.layout-snowflake:focus-within .alertNotification{display:none}.layout-snowflake .accents{width:24px}.layout-snowflake .accents.left{padding-left:24px}.layout-snowflake .accents.right{padding-right:24px}.helpTextWrapper{text-align:center}`;
4913
+
4621
4914
  const watchedItems = new Set();
4622
4915
 
4623
4916
 
@@ -4739,12 +5032,6 @@ function stopNotifyingOnLangChange(element) {
4739
5032
  watchedItems.delete(element);
4740
5033
  }
4741
5034
 
4742
- var styleCss$4 = 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}.typeIcon{display:flex;flex-direction:row;align-items:center}.typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([bordered]) .notificationIcons{align-items:center}.notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}.alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}.passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}.notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}.notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}.notificationBtn [auro-icon][hidden]{display:none}:host(:not([bordered])) .typeIcon,:host(:not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}.clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}:host .wrapper:hover .clearBtn,:host .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host(:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}input{border:unset}.wrapper{position:relative;overflow:hidden;border-style:solid}:host(:not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host(:not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([validity]:not([validity=valid])) .wrapper:before{border-bottom:0}label{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap}:host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}:host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([bordered]) label{top:50%;transform:translateY(-50%)}:host([bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}:host .wrapper:focus-within label{top:var(--ds-size-100, 0.5rem);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);transform:unset}:host label.withValue{top:var(--ds-size-100, 0.5rem);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);transform:unset}:host([activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);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);transform:unset}:host{position:relative;display:block}.wrapper{display:flex;flex-direction:row}.main{display:flex;flex-direction:row;position:relative;flex:1}input{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:relative;overflow:hidden;min-height:var(--ds-size-200, 1rem);max-height:var(--ds-size-200, 1rem);flex:1;padding:var(--ds-size-400, 2rem) 0 var(--ds-size-50, 0.25rem);margin:0;font-family:var(--ds-basic-text-body-default-font-family, "AS Circular");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);outline:none;text-overflow:ellipsis;white-space:nowrap}input::-ms-reveal,input::-ms-clear{display:none}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield;appearance:textfield}input:disabled{background:none;pointer-events:none}:host([bordered]) input{padding:var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem)}`;
4743
-
4744
- var colorCss$4 = css`.wrapper{border-color:transparent}input{background-color:transparent;caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}input::placeholder{color:transparent}input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}input:disabled{--ds-auro-input-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}label{color:var(--ds-auro-input-label-text-color)}.alertNotification{color:var(--ds-auro-input-error-icon-color)}:host(:not([bordered],[borderless])) .wrapper{border-bottom-color:var(--ds-auro-input-border-color)}:host([bordered]) .wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-container-color)}:host([bordered]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-advanced-color-state-focused, #01426a);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-subtle, #dddddd);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([onDark][bordered]){--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([onDark][bordered]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([onDark][validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([onDark][disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}`;
4745
-
4746
- var tokensCss$4 = css`:host{--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26)}`;
4747
-
4748
5035
  /** Checks if value is string */
4749
5036
  function isString(str) {
4750
5037
  return typeof str === 'string' || str instanceof String;
@@ -9002,7 +9289,7 @@ const {
9002
9289
 
9003
9290
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
9004
9291
 
9005
- let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
9292
+ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
9006
9293
 
9007
9294
  /* eslint-disable jsdoc/require-param */
9008
9295
 
@@ -9072,7 +9359,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
9072
9359
  class AuroFormValidation {
9073
9360
 
9074
9361
  constructor() {
9075
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
9362
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
9076
9363
  }
9077
9364
 
9078
9365
  /**
@@ -9431,17 +9718,106 @@ class AuroFormValidation {
9431
9718
  }
9432
9719
  }
9433
9720
 
9434
- // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
9435
- // See LICENSE in the project root for license information.
9721
+ let AuroElement$1$1 = class AuroElement extends LitElement {
9722
+ static get properties() {
9723
+ return {
9436
9724
 
9725
+ /**
9726
+ * Defines the language of an element.
9727
+ * @default {'default'}
9728
+ */
9729
+ layout: {
9730
+ type: String,
9731
+ attribute: "layout",
9732
+ reflect: true
9733
+ },
9437
9734
 
9438
- /**
9439
- * Auro-input provides users a way to enter data into a text field.
9440
- *
9441
- * @attr {Boolean} bordered - Applies bordered UI variant.
9442
- * @attr {Boolean} borderless - Applies borderless UI variant.
9443
- *
9444
- * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
9735
+ shape: {
9736
+ type: String,
9737
+ attribute: "shape",
9738
+ reflect: true
9739
+ },
9740
+
9741
+ size: {
9742
+ type: String,
9743
+ attribute: "size",
9744
+ reflect: true
9745
+ },
9746
+
9747
+ onDark: {
9748
+ type: Boolean,
9749
+ attribute: "ondark",
9750
+ reflect: true
9751
+ }
9752
+ };
9753
+ }
9754
+
9755
+ resetShapeClasses() {
9756
+ if (this.shape && this.size) {
9757
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
9758
+
9759
+ if (wrapper) {
9760
+ wrapper.classList.forEach((className) => {
9761
+ if (className.startsWith('shape-')) {
9762
+ wrapper.classList.remove(className);
9763
+ }
9764
+ });
9765
+
9766
+ wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
9767
+ }
9768
+ }
9769
+ }
9770
+
9771
+ resetLayoutClasses() {
9772
+ if (this.layout) {
9773
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
9774
+
9775
+ if (wrapper) {
9776
+ wrapper.classList.forEach((className) => {
9777
+ if (className.startsWith('layout-')) {
9778
+ wrapper.classList.remove(className);
9779
+ }
9780
+ });
9781
+
9782
+ wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
9783
+ }
9784
+ }
9785
+ }
9786
+
9787
+ updateComponentArchitecture() {
9788
+ this.resetLayoutClasses();
9789
+ this.resetShapeClasses();
9790
+ }
9791
+
9792
+ updated(changedProperties) {
9793
+ if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
9794
+ this.updateComponentArchitecture();
9795
+ }
9796
+ }
9797
+
9798
+ // Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
9799
+ // This will catch if an invalid layout value is passed in and render the default layout if so.
9800
+ render() {
9801
+ try {
9802
+ return this.renderLayout();
9803
+ } catch (error) {
9804
+ // failed to get the defined layout
9805
+ console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
9806
+
9807
+ // fallback to the default layout
9808
+ return this.getLayout('default');
9809
+ }
9810
+ }
9811
+ };
9812
+
9813
+ // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
9814
+ // See LICENSE in the project root for license information.
9815
+
9816
+
9817
+ /**
9818
+ * Auro-input provides users a way to enter data into a text field.
9819
+ *
9820
+ * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
9445
9821
  * @attr id
9446
9822
  *
9447
9823
  * @slot helptext - Sets the help text displayed below the input.
@@ -9456,22 +9832,26 @@ class AuroFormValidation {
9456
9832
  * @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
9457
9833
  */
9458
9834
 
9459
- class BaseInput extends LitElement {
9835
+ class BaseInput extends AuroElement$1$1 {
9460
9836
 
9461
9837
  constructor() {
9462
9838
  super();
9463
9839
 
9840
+ this.activeLabel = false;
9464
9841
  this.icon = false;
9465
9842
  this.disabled = false;
9466
- this.required = false;
9467
- this.noValidate = false;
9468
9843
  this.max = undefined;
9469
- this.min = undefined;
9470
9844
  this.maxLength = undefined;
9845
+ this.min = undefined;
9471
9846
  this.minLength = undefined;
9847
+ this.noValidate = false;
9472
9848
  this.onDark = false;
9473
- this.activeLabel = false;
9849
+ this.required = false;
9474
9850
  this.setCustomValidityForType = undefined;
9851
+
9852
+ this.layout = 'classic';
9853
+ this.shape = 'rounded';
9854
+ this.size = 'lg';
9475
9855
  }
9476
9856
 
9477
9857
  /**
@@ -9488,6 +9868,7 @@ class BaseInput extends LitElement {
9488
9868
  this.validationCCLength = undefined;
9489
9869
  this.hasValue = false;
9490
9870
  this.label = 'Input label is undefined';
9871
+ this.placeholderStr = '';
9491
9872
 
9492
9873
  this.allowedInputTypes = [
9493
9874
  "text",
@@ -9534,9 +9915,10 @@ class BaseInput extends LitElement {
9534
9915
  .substring(idSubstrStart, idSubstrEnd);
9535
9916
  }
9536
9917
 
9537
- // function to define props used within the scope of this componentstatic
9918
+ // function to define props used within the scope of this component
9538
9919
  static get properties() {
9539
9920
  return {
9921
+ ...super.properties,
9540
9922
 
9541
9923
  /**
9542
9924
  * The value for the role attribute.
@@ -9868,15 +10250,6 @@ class BaseInput extends LitElement {
9868
10250
  };
9869
10251
  }
9870
10252
 
9871
-
9872
- static get styles() {
9873
- return [
9874
- css`${colorCss$4}`,
9875
- css`${styleCss$4}`,
9876
- css`${tokensCss$4}`
9877
- ];
9878
- }
9879
-
9880
10253
  connectedCallback() {
9881
10254
  super.connectedCallback();
9882
10255
 
@@ -9891,15 +10264,21 @@ class BaseInput extends LitElement {
9891
10264
  }
9892
10265
 
9893
10266
  firstUpdated() {
10267
+ // clicking anywhere in the main wrapper will focus the input. Clicking the helptext or label will not focus the input.
10268
+ this.wrapperElement = this.shadowRoot.querySelector('.wrapper');
10269
+ this.inputElement = this.renderRoot.querySelector('input');
10270
+ this.labelElement = this.shadowRoot.querySelector('label');
10271
+
10272
+ if (this.wrapperElement) {
10273
+ this.wrapperElement.addEventListener('click', this.handleClick);
10274
+ }
10275
+
9894
10276
  // add attribute for query selectors when auro-input is registered under a custom name
9895
10277
  if (this.tagName.toLowerCase() !== 'auro-input') {
9896
10278
  this.setAttribute('auro-input', true);
9897
10279
  }
9898
10280
  this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
9899
10281
 
9900
- this.inputElement = this.renderRoot.querySelector('input');
9901
- this.labelElement = this.shadowRoot.querySelector('label');
9902
-
9903
10282
  if (this.format) {
9904
10283
  this.format = this.format.toLowerCase();
9905
10284
  }
@@ -9909,6 +10288,7 @@ class BaseInput extends LitElement {
9909
10288
  this.ValidityMessageOverride = this.setCustomValidity;
9910
10289
  }
9911
10290
 
10291
+ this.getPlaceholder();
9912
10292
  this.setCustomHelpTextMessage();
9913
10293
  this.configureAutoFormatting();
9914
10294
  }
@@ -9945,6 +10325,8 @@ class BaseInput extends LitElement {
9945
10325
  * @returns {void}
9946
10326
  */
9947
10327
  updated(changedProperties) {
10328
+ super.updated(changedProperties);
10329
+
9948
10330
  if (changedProperties.has('format')) {
9949
10331
  this.configureAutoFormatting();
9950
10332
  }
@@ -10065,15 +10447,6 @@ class BaseInput extends LitElement {
10065
10447
  return this.pattern;
10066
10448
  }
10067
10449
 
10068
- /**
10069
- * Function to set element focus.
10070
- * @private
10071
- * @return {void}
10072
- */
10073
- focus() {
10074
- this.inputElement.focus();
10075
- }
10076
-
10077
10450
  /**
10078
10451
  * Required to convert SVG icons from data to HTML string.
10079
10452
  * @private
@@ -10103,6 +10476,25 @@ class BaseInput extends LitElement {
10103
10476
  this.dispatchEvent(inputEvent);
10104
10477
  }
10105
10478
 
10479
+
10480
+ /**
10481
+ * Handles clicking on the auro-input anywhere outside of the HTML5 input and still moving focus in.
10482
+ * @private
10483
+ * @return {void}
10484
+ */
10485
+ handleClick() {
10486
+ this.focus();
10487
+ }
10488
+
10489
+ /**
10490
+ * Function to set element focus.
10491
+ * @private
10492
+ * @return {void}
10493
+ */
10494
+ focus() {
10495
+ this.inputElement.focus();
10496
+ }
10497
+
10106
10498
  /**
10107
10499
  * Handles event of clearing input content by clicking the X icon.
10108
10500
  * @private
@@ -10150,10 +10542,23 @@ class BaseInput extends LitElement {
10150
10542
  * @return {void}
10151
10543
  */
10152
10544
  handleFocusin() {
10545
+ this.hasFocus = true;
10546
+
10547
+ this.getPlaceholder();
10153
10548
 
10154
10549
  this.touched = true;
10155
10550
  }
10156
10551
 
10552
+ /**
10553
+ * Function to support @focusout event.
10554
+ * @private
10555
+ * @return {void}
10556
+ */
10557
+ handleFocusout() {
10558
+ this.hasFocus = false;
10559
+ this.getPlaceholder();
10560
+ }
10561
+
10157
10562
  /**
10158
10563
  * Function to support @blur event.
10159
10564
  * @private
@@ -10278,16 +10683,31 @@ class BaseInput extends LitElement {
10278
10683
  /**
10279
10684
  * Support placeholder text.
10280
10685
  * @private
10281
- * @returns {string}
10686
+ * @returns {void}
10282
10687
  */
10283
10688
  getPlaceholder() {
10284
- if (this.placeholder) {
10285
- return this.placeholder;
10286
- } else if (this.type === 'date') {
10287
- return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
10689
+ const isFocused = this.inputElement === this.getActiveElement();
10690
+
10691
+ // console.warn('isFocused', isFocused);
10692
+ // console.warn(this.inputElement);
10693
+ // console.warn(this.getActiveElement());
10694
+
10695
+ if (!isFocused) {
10696
+ if (this.placeholder) {
10697
+ this.placeholderStr = this.placeholder;
10698
+ // return this.placeholder;
10699
+ } else if (this.type === 'date') {
10700
+ this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
10701
+ // return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
10702
+ }
10703
+ } else {
10704
+ this.placeholderStr = '';
10288
10705
  }
10289
10706
 
10290
- return '';
10707
+ this.requestUpdate();
10708
+
10709
+ // console.warn('this.placeholderStr', this.placeholderStr);
10710
+ // return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
10291
10711
  }
10292
10712
 
10293
10713
  /**
@@ -10500,7 +10920,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
10500
10920
  * @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
10501
10921
  */
10502
10922
 
10503
- let AuroElement$1 = class AuroElement extends LitElement {
10923
+ let AuroElement$2 = class AuroElement extends LitElement {
10504
10924
 
10505
10925
  // function to define props used within the scope of this component
10506
10926
  static get properties() {
@@ -10568,7 +10988,7 @@ var styleCss$3$1 = css`:focus:not(:focus-visible){outline:3px solid transparent}
10568
10988
  */
10569
10989
 
10570
10990
  // build the component class
10571
- let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
10991
+ let BaseIcon$1 = class BaseIcon extends AuroElement$2 {
10572
10992
  constructor() {
10573
10993
  super();
10574
10994
  this.onDark = false;
@@ -10642,7 +11062,7 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
10642
11062
 
10643
11063
  var tokensCss$3 = 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)}`;
10644
11064
 
10645
- var colorCss$3 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}`;
11065
+ var colorCss$3 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
10646
11066
 
10647
11067
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
10648
11068
  // See LICENSE in the project root for license information.
@@ -10663,7 +11083,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
10663
11083
  */
10664
11084
  privateDefaults() {
10665
11085
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
10666
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
11086
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
10667
11087
  }
10668
11088
 
10669
11089
  // function to define props used within the scope of this component
@@ -10745,7 +11165,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
10745
11165
  *
10746
11166
  */
10747
11167
  static register(name = "auro-icon") {
10748
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
11168
+ AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroIcon);
10749
11169
  }
10750
11170
 
10751
11171
  connectedCallback() {
@@ -10813,17 +11233,17 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
10813
11233
 
10814
11234
  var iconVersion$1 = '8.0.1';
10815
11235
 
10816
- var styleCss$2$1 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-basic-text-body-default-font-family, AS Circular);font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, Book);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible{outline:none}.auro-button:focus-visible:not([variant=flat]){outline-style:solid;outline-width:var(--ds-size-50, 0.25rem);outline-offset:calc(var(--ds-size-50, 0.25rem)*-1)}.auro-button:focus-visible:not([variant=flat]):not([variant=secondary]):not([variant=tertiary]){outline-width:calc(var(--ds-size-50, 0.25rem) - 1px)}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-size:var(--ds-basic-text-body-sm-font-size, 14px);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--iconOnly:not(.auro-button--rounded):focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]){outline-width:1px;outline-offset:-2px}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out,outline 0ms,outline-offset 0ms}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--rounded:focus-visible:not([variant=flat]):after{border-radius:100px}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
11236
+ var styleCss$2$1 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-basic-text-body-default-font-family, "AS Circular");font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);line-height:var(--ds-basic-text-body-default-line-height, 24px);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible{outline:none}.auro-button:focus-visible:not([variant=flat]){outline-style:solid;outline-width:var(--ds-size-50, 0.25rem);outline-offset:calc(var(--ds-size-50, 0.25rem)*-1)}.auro-button:focus-visible:not([variant=flat]):not([variant=secondary]):not([variant=tertiary]){outline-width:calc(var(--ds-size-50, 0.25rem) - 1px)}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-family:var(--ds-basic-text-body-sm-font-family, "AS Circular");font-size:var(--ds-basic-text-body-sm-font-size, 14px);font-weight:var(--ds-basic-text-body-sm-font-weight, 450);line-height:var(--ds-basic-text-body-sm-line-height, 20px);letter-spacing:var(--ds-basic-text-body-sm-letter-spacing, 0);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--iconOnly:not(.auro-button--rounded):focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]){outline-width:1px;outline-offset:-2px}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out,outline 0ms,outline-offset 0ms}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--rounded:focus-visible:not([variant=flat]):after{border-radius:100px}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
10817
11237
 
10818
- var colorCss$2 = css`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible{outline-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-hover, #00274a)}.auro-button:not([ondark]):disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-disabled, #acc9e2)}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text, #01426a)}.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-hover, #00274a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-hover, #00274a)}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-disabled, #cfe0ef);--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text, #01426a)}.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-advanced-color-button-flat-text, #676767);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-hover, #525252);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-disabled, #d0d0d0);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a)}.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-hover, #ebf3f9);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9)}.auro-button[ondark]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]:disabled{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:active:not(:disabled),.auro-button[ondark][variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse-disabled, #dddddd)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=flat]{color:var(--ds-advanced-color-button-flat-text-inverse, #ffffff);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-inverse-hover, #adadad);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-inverse-disabled, #7e8894);background-color:transparent;background-image:none;border-color:transparent}`;
11238
+ var colorCss$2$1 = css`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible{outline-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-hover, #00274a)}.auro-button:not([ondark]):disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-disabled, #acc9e2)}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text, #01426a)}.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-hover, #00274a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-hover, #00274a)}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-disabled, #cfe0ef);--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text, #01426a)}.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-advanced-color-button-flat-text, #676767);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-hover, #525252);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-disabled, #d0d0d0);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a)}.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-hover, #ebf3f9);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9)}.auro-button[ondark]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]:disabled{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:active:not(:disabled),.auro-button[ondark][variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse-disabled, #dddddd)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=flat]{color:var(--ds-advanced-color-button-flat-text-inverse, #ffffff);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-inverse-hover, #adadad);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-inverse-disabled, #7e8894);background-color:transparent;background-image:none;border-color:transparent}`;
10819
11239
 
10820
11240
  var tokensCss$2 = css`:host{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-tap-color:transparent}`;
10821
11241
 
10822
- var styleCss$1$1 = css`:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin:0.375rem;--margin-xs:0.2rem;--margin-sm:0.5rem;--margin-md:0.75rem;--margin-lg:1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
11242
+ var styleCss$1$2 = css`:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin:0.375rem;--margin-xs:0.2rem;--margin-sm:0.5rem;--margin-md:0.75rem;--margin-lg:1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
10823
11243
 
10824
11244
  var colorCss$1$1 = css`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color:var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]){--ds-auro-loader-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color:transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color:currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color:currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}`;
10825
11245
 
10826
- var tokensCss$1 = css`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
11246
+ var tokensCss$1$1 = css`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
10827
11247
 
10828
11248
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
10829
11249
  // See LICENSE in the project root for license information.
@@ -10851,7 +11271,7 @@ class AuroLoader extends LitElement {
10851
11271
  /**
10852
11272
  * @private
10853
11273
  */
10854
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
11274
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
10855
11275
 
10856
11276
  this.orbit = false;
10857
11277
  this.ringworm = false;
@@ -10899,9 +11319,9 @@ class AuroLoader extends LitElement {
10899
11319
 
10900
11320
  static get styles() {
10901
11321
  return [
10902
- css`${styleCss$1$1}`,
11322
+ css`${styleCss$1$2}`,
10903
11323
  css`${colorCss$1$1}`,
10904
- css`${tokensCss$1}`
11324
+ css`${tokensCss$1$1}`
10905
11325
  ];
10906
11326
  }
10907
11327
 
@@ -10914,7 +11334,7 @@ class AuroLoader extends LitElement {
10914
11334
  *
10915
11335
  */
10916
11336
  static register(name = "auro-loader") {
10917
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroLoader);
11337
+ AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroLoader);
10918
11338
  }
10919
11339
 
10920
11340
  firstUpdated() {
@@ -10972,27 +11392,6 @@ var loaderVersion = '5.0.0';
10972
11392
 
10973
11393
 
10974
11394
  /**
10975
- * @attr {Boolean} autofocus - This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user
10976
- * @attr {Boolean} disabled - If set to true, button will become disabled and not allow for interactions
10977
- * @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
10978
- * @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
10979
- * @attr {String} loadingText - Sets custom loading text for the `aria-label` on a button in loading state. If not set, the default value of "Loading..." will be used.
10980
- * @attr {Boolean} onDark - Set value for on-dark version of auro-button
10981
- * @attr {Boolean} rounded - If set to true, the button will have a rounded shape
10982
- * @attr {Boolean} slim - Set value for slim version of auro-button
10983
- * @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
10984
- * @attr {String} arialabel - Populates the `aria-label` attribute that is used to define a string that labels the current element. Use it in cases where a text label is not visible on the screen. If there is visible text labeling the element, use `aria-labelledby` instead.
10985
- * @attr {String} arialabelledby - Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s), and its value should be one or more element IDs, which refer to elements that have the text needed for labeling. List multiple element IDs in a space delimited fashion.
10986
- * @attr {Boolean} ariaexpanded - Populates the `aria-expanded` attribute that indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. This is an optional attribute for buttons.
10987
- * @attr {String} id - Set the unique ID of an element.
10988
- * @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
10989
- * @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
10990
- * @attr {String} value - Defines the value associated with the button which is submitted with the form data.
10991
- * @attr {String} variant - Sets button variant option. Possible values are: `secondary`, `tertiary`
10992
- * @attr {Boolean} secondary - DEPRECATED
10993
- * @attr {Boolean} tertiary - DEPRECATED
10994
- * @prop {Boolean} ready - When false the component API should not be called.
10995
- * @event auroButton-ready - Notifies that the component has finished initializing.
10996
11395
  * @slot - Default slot for the text of the button.
10997
11396
  * @slot icon - Slot to provide auro-icon for the button.
10998
11397
  * @csspart button - Apply CSS to HTML5 button.
@@ -11016,13 +11415,11 @@ class AuroButton extends LitElement {
11016
11415
 
11017
11416
  constructor() {
11018
11417
  super();
11019
-
11020
11418
  this.autofocus = false;
11021
11419
  this.disabled = false;
11022
11420
  this.iconOnly = false;
11023
11421
  this.loading = false;
11024
11422
  this.onDark = false;
11025
- this.ready = false;
11026
11423
  this.secondary = false;
11027
11424
  this.tertiary = false;
11028
11425
  this.rounded = false;
@@ -11055,79 +11452,175 @@ class AuroButton extends LitElement {
11055
11452
  return [
11056
11453
  tokensCss$2,
11057
11454
  styleCss$2$1,
11058
- colorCss$2
11455
+ colorCss$2$1
11059
11456
  ];
11060
11457
  }
11061
11458
 
11062
11459
  static get properties() {
11063
11460
  return {
11461
+
11462
+ /**
11463
+ * This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
11464
+ */
11064
11465
  autofocus: {
11065
11466
  type: Boolean,
11066
11467
  reflect: true
11067
11468
  },
11469
+
11470
+ /**
11471
+ * If set to true, button will become disabled and not allow for interactions.
11472
+ */
11068
11473
  disabled: {
11069
11474
  type: Boolean,
11070
11475
  reflect: true
11071
11476
  },
11477
+
11478
+ /**
11479
+ * DEPRECATED.
11480
+ * @deprecated
11481
+ */
11072
11482
  secondary: {
11073
11483
  type: Boolean,
11074
11484
  reflect: true
11075
11485
  },
11486
+
11487
+ /**
11488
+ * DEPRECATED.
11489
+ * @deprecated
11490
+ */
11076
11491
  tertiary: {
11077
11492
  type: Boolean,
11078
11493
  reflect: true
11079
11494
  },
11495
+
11496
+ /**
11497
+ * Alters the shape of the button to be full width of its parent container.
11498
+ */
11080
11499
  fluid: {
11081
11500
  type: Boolean,
11082
11501
  reflect: true
11083
11502
  },
11503
+
11504
+ /**
11505
+ * If set to true, the button will contain an icon with no additional content.
11506
+ */
11084
11507
  iconOnly: {
11085
11508
  type: Boolean,
11086
11509
  reflect: true
11087
11510
  },
11511
+
11512
+ /**
11513
+ * If set to true button text will be replaced with `auro-loader` and become disabled.
11514
+ */
11088
11515
  loading: {
11089
11516
  type: Boolean,
11090
11517
  reflect: true
11091
11518
  },
11519
+
11520
+ /**
11521
+ * Sets custom loading text for the `aria-label` on a button in loading state. If not set, the default value of "Loading..." will be used.
11522
+ */
11092
11523
  loadingText: {
11093
11524
  type: String
11094
11525
  },
11526
+
11527
+ /**
11528
+ * Set value for on-dark version of auro-button.
11529
+ */
11095
11530
  onDark: {
11096
11531
  type: Boolean,
11097
11532
  reflect: true
11098
11533
  },
11534
+
11535
+ /**
11536
+ * If set to true, the button will have a rounded shape.
11537
+ */
11099
11538
  rounded: {
11100
11539
  type: Boolean,
11101
11540
  reflect: true
11102
11541
  },
11542
+
11543
+ /**
11544
+ * Set value for slim version of auro-button.
11545
+ */
11103
11546
  slim: {
11104
11547
  type: Boolean,
11105
11548
  reflect: true
11106
11549
  },
11550
+
11551
+ /**
11552
+ * Populates `tabIndex` to define the focusable sequence in keyboard navigation.
11553
+ */
11554
+ tIndex: {
11555
+ type: String,
11556
+ reflect: true
11557
+ },
11558
+
11559
+ /**
11560
+ * Populates the `aria-hidden` attribute to hide the button from a11y API.
11561
+ */
11562
+ ariahidden: {
11563
+ type: String,
11564
+ reflect: true,
11565
+ },
11566
+
11567
+ /**
11568
+ * Populates the `aria-label` attribute that is used to define a string that labels the current element.
11569
+ * Use it in cases where a text label is not visible on the screen.
11570
+ * If there is visible text labeling the element, use `aria-labelledby` instead.
11571
+ */
11107
11572
  arialabel: {
11108
11573
  type: String,
11109
11574
  reflect: true
11110
11575
  },
11576
+
11577
+ /**
11578
+ * Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s),
11579
+ * and its value should be one or more element IDs, which refer to elements that have the text needed for labeling.
11580
+ * List multiple element IDs in a space delimited fashion.
11581
+ */
11111
11582
  arialabelledby: {
11112
11583
  type: String,
11113
11584
  reflect: true
11114
11585
  },
11586
+
11587
+ /**
11588
+ * Populates the `aria-expanded` attribute that indicates whether the element,
11589
+ * or another grouping element it controls, is currently expanded or collapsed.
11590
+ * This is an optional attribute for buttons.
11591
+ */
11115
11592
  ariaexpanded: {
11116
11593
  type: Boolean,
11117
11594
  reflect: true
11118
11595
  },
11596
+
11597
+ /**
11598
+ * Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
11599
+ */
11119
11600
  title: {
11120
11601
  type: String,
11121
11602
  reflect: true
11122
11603
  },
11604
+
11605
+ /**
11606
+ * The type of the button. Possible values are: `submit`, `reset`, `button`.
11607
+ */
11123
11608
  type: {
11124
11609
  type: String,
11125
11610
  reflect: true
11126
11611
  },
11612
+
11613
+ /**
11614
+ * Defines the value associated with the button which is submitted with the form data.
11615
+ */
11127
11616
  value: {
11128
11617
  type: String,
11129
11618
  reflect: true
11130
11619
  },
11620
+
11621
+ /**
11622
+ * Sets button variant option. Possible values are: `secondary`, `tertiary`.
11623
+ */
11131
11624
  variant: {
11132
11625
  type: String,
11133
11626
  reflect: true
@@ -11145,7 +11638,7 @@ class AuroButton extends LitElement {
11145
11638
  *
11146
11639
  */
11147
11640
  static register(name = "auro-button") {
11148
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroButton);
11641
+ AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroButton);
11149
11642
  }
11150
11643
 
11151
11644
  /**
@@ -11157,21 +11650,6 @@ class AuroButton extends LitElement {
11157
11650
  this.renderRoot.querySelector('button').focus();
11158
11651
  }
11159
11652
 
11160
- /**
11161
- * Marks the component as ready and sends event.
11162
- * @private
11163
- * @returns {void}
11164
- */
11165
- notifyReady() {
11166
- this.ready = true;
11167
-
11168
- this.dispatchEvent(new CustomEvent('auroButton-ready', {
11169
- bubbles: true,
11170
- cancelable: false,
11171
- composed: true,
11172
- }));
11173
- }
11174
-
11175
11653
  updated() {
11176
11654
  // support the old `secondary` and `tertiary` attributes` that are deprecated
11177
11655
  if (this.secondary) {
@@ -11183,10 +11661,6 @@ class AuroButton extends LitElement {
11183
11661
  }
11184
11662
  }
11185
11663
 
11186
- firstUpdated() {
11187
- this.notifyReady();
11188
- }
11189
-
11190
11664
  /**
11191
11665
  * Submits the form that this button is associated with.
11192
11666
  * @private
@@ -11201,7 +11675,7 @@ class AuroButton extends LitElement {
11201
11675
  /**
11202
11676
  * Returns the form element that this button is associated with.
11203
11677
  * @private
11204
- * @returns {HTMLFormElement|null}
11678
+ * @returns {HTMLFormElement | null}
11205
11679
  */
11206
11680
  get form() {
11207
11681
  return this.internals ? this.internals.form : null;
@@ -11222,9 +11696,11 @@ class AuroButton extends LitElement {
11222
11696
  return html`
11223
11697
  <button
11224
11698
  part="button"
11699
+ aria-hidden="${ifDefined(this.ariahidden || undefined)}"
11225
11700
  aria-label="${ifDefined(this.loading ? this.loadingText : this.arialabel || undefined)}"
11226
11701
  aria-labelledby="${ifDefined(this.arialabelledby ? this.arialabelledby : undefined)}"
11227
11702
  aria-expanded="${ifDefined(this.ariaexpanded)}"
11703
+ tabIndex="${ifDefined(this.tIndex)}"
11228
11704
  ?autofocus="${this.autofocus}"
11229
11705
  class="${classMap(classes)}"
11230
11706
  ?disabled="${this.disabled || this.loading}"
@@ -11254,7 +11730,7 @@ class AuroButton extends LitElement {
11254
11730
 
11255
11731
  var buttonVersion = '9.3.0';
11256
11732
 
11257
- var colorCss$5 = 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)}`;
11733
+ 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)}`;
11258
11734
 
11259
11735
  var styleCss$5 = 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}`;
11260
11736
 
@@ -11339,7 +11815,7 @@ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
11339
11815
  *
11340
11816
  * @attr { Boolean } large - If declared, make font-size to 1rem(16px).
11341
11817
  */
11342
- class AuroHelpText extends LitElement {
11818
+ let AuroHelpText$1 = class AuroHelpText extends LitElement {
11343
11819
 
11344
11820
  constructor() {
11345
11821
  super();
@@ -11353,7 +11829,7 @@ class AuroHelpText extends LitElement {
11353
11829
 
11354
11830
  static get styles() {
11355
11831
  return [
11356
- colorCss$5,
11832
+ colorCss$4,
11357
11833
  styleCss$5,
11358
11834
  tokensCss$5
11359
11835
  ];
@@ -11458,7 +11934,7 @@ class AuroHelpText extends LitElement {
11458
11934
  </div>
11459
11935
  `;
11460
11936
  }
11461
- }
11937
+ };
11462
11938
 
11463
11939
  var helpTextVersion = '1.0.0';
11464
11940
 
@@ -11480,19 +11956,78 @@ class AuroInput extends BaseInput {
11480
11956
  /**
11481
11957
  * @private
11482
11958
  */
11483
- this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion$1, AuroIcon$1);
11959
+ this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
11484
11960
 
11485
11961
  /**
11486
11962
  * @private
11487
11963
  */
11488
- this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
11964
+ this.hasDisplayValueContent = false;
11965
+
11966
+ /**
11967
+ * @private
11968
+ */
11969
+ this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion, AuroHelpText$1);
11489
11970
 
11490
11971
  /**
11491
11972
  * @private
11492
11973
  */
11493
- this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion, AuroHelpText);
11974
+ this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion$1, AuroIcon$1);
11975
+ }
11976
+
11977
+ static get styles() {
11978
+ return [
11979
+ css`${shapeSizeCss}`,
11980
+ css`${colorBaseCss}`,
11981
+ css`${styleCss$4}`,
11982
+ css`${styleDefaultCss}`,
11983
+ css`${tokensCss$4}`,
11984
+ css`${classicStyleCss}`,
11985
+ css`${classicColorCss}`,
11986
+ css`${emphasizedStyleCss}`,
11987
+ css`${emphasizedColorCss}`,
11988
+ css`${snowflakeStyleCss}`
11989
+ ];
11990
+ }
11991
+
11992
+ /**
11993
+ * Returns classmap configuration for html5 input labels in all layouts.
11994
+ * @private
11995
+ * @returns {void}
11996
+ */
11997
+ get commonLabelClasses() {
11998
+ return {
11999
+ 'withValue': this.value && this.value.length > 0,
12000
+ 'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
12001
+ };
11494
12002
  }
11495
12003
 
12004
+ /**
12005
+ * Returns classmap configuration for html5 inputs in all layouts.
12006
+ * @private
12007
+ * @returns {void}
12008
+ */
12009
+ get commonInputClasses() {
12010
+ return {
12011
+ 'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
12012
+ };
12013
+ }
12014
+
12015
+ get commonWrapperClasses() {
12016
+ return {
12017
+ 'wrapper': true,
12018
+ 'withValue': this.value && this.value.length > 0,
12019
+ 'hasFocus': this.hasFocus
12020
+ };
12021
+ }
12022
+
12023
+ get helpTextClasses() {
12024
+ return {
12025
+ 'helpTextWrapper': true,
12026
+ 'leftIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('right'),
12027
+ 'rightIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('left')
12028
+ };
12029
+ };
12030
+
11496
12031
  /**
11497
12032
  * This will register this element with the browser.
11498
12033
  * @param {string} [name="auro-input"] - The name of element that you want to register to.
@@ -11502,7 +12037,7 @@ class AuroInput extends BaseInput {
11502
12037
  *
11503
12038
  */
11504
12039
  static register(name = "auro-input") {
11505
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroInput);
12040
+ AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroInput);
11506
12041
  }
11507
12042
 
11508
12043
  /**
@@ -11518,160 +12053,350 @@ class AuroInput extends BaseInput {
11518
12053
  return false;
11519
12054
  }
11520
12055
 
11521
- // function that renders the HTML and CSS into the scope of the component
11522
- render() {
11523
- // is-disabled class - THIS IS ONLY HERE TO MAKE A TEST PASS AS FAR AS I CAN TELL
11524
- const labelClasses = {
11525
- 'is-disabled': this.disabled,
11526
- 'withIcon': this.hasTypeIcon(),
11527
- 'withValue': this.value && this.value.length > 0
12056
+ /**
12057
+ * Function to determine if there is any displayValue content to render.
12058
+ * @private
12059
+ * @returns {void}
12060
+ */
12061
+ checkDisplayValueSlotChange() {
12062
+ const nodes = this.shadowRoot.querySelector('slot[name="displayValue"]').assignedNodes();
12063
+
12064
+ let hasContent = false;
12065
+
12066
+ if (nodes.length > 0) {
12067
+ hasContent = true;
12068
+ }
12069
+
12070
+ this.hasDisplayValueContent = hasContent;
12071
+ }
12072
+
12073
+ /**
12074
+ * Returns HTML for the validation error icon.
12075
+ * @private
12076
+ * @returns {html} - Returns HTML for the validation error icon.
12077
+ */
12078
+ renderValidationErrorIconHtml() {
12079
+ return html`
12080
+ ${this.validity && this.validity !== 'valid' ? html`
12081
+ <div class="notification alertNotification">
12082
+ <${this.iconTag}
12083
+ category="alert"
12084
+ name="error-stroke"
12085
+ variant="statusError"
12086
+ ?ondark="${this.onDark}">
12087
+ </${this.iconTag}>
12088
+ </div>
12089
+ ` : undefined}
12090
+ `;
12091
+ }
12092
+
12093
+ /**
12094
+ * Returns HTML for the HTML5 input element.
12095
+ * @private
12096
+ * @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
12097
+ * @returns {html} - Returns HTML for the HTML5 input element.
12098
+ */
12099
+ renderHtmlInput(hideInputWhenBlurred = false) {
12100
+ const displayValueClasses = {
12101
+ 'displayValue': true,
12102
+ 'hasContent': this.hasDisplayValueContent,
12103
+ 'hasFocus': this.hasFocus,
12104
+ 'withValue': this.value && this.value.length > 0,
12105
+ };
12106
+
12107
+ const inputClasses = {
12108
+ 'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
11528
12109
  };
11529
12110
 
11530
12111
  return html`
11531
- <div class="wrapper" part="wrapper">
11532
- <div class="main">
11533
- <div class="typeIcon">
11534
- ${this.type === 'credit-card' ? this.processCreditCard() : undefined}
11535
-
11536
- <!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
11537
- This should be cleaned up when auro-icon issue #31 is resolved. -->
11538
- ${this.inputIconName
11539
- ? repeat([this.inputIconName], (val) => val, (name) => html`
11540
- <${this.iconTag}
11541
- class="accentIcon"
11542
- category="payment"
11543
- name="${name}"
11544
- part="accentIcon"
11545
- ?onDark="${this.onDark}"
11546
- variant="${this.disabled ? 'disabled' : 'muted'}">
11547
- </${this.iconTag}>
11548
- `) : undefined
11549
- }
12112
+ <label for=${this.id} class="${classMap(this.commonLabelClasses)}" part="label">
12113
+ <slot name="label">
12114
+ ${this.label}
12115
+ </slot>
12116
+ </label>
12117
+ <input
12118
+ @blur="${this.handleBlur}"
12119
+ @focusin="${this.handleFocusin}"
12120
+ @focusout="${this.handleFocusout}"
12121
+ @input="${this.handleInput}"
12122
+ ?activeLabel="${this.activeLabel}"
12123
+ ?disabled="${this.disabled}"
12124
+ ?required="${this.required}"
12125
+ .placeholder=${this.placeholderStr}
12126
+ aria-describedby="${this.uniqueId}"
12127
+ aria-invalid="${this.validity !== 'valid'}"
12128
+ autocapitalize="${ifDefined(this.autocapitalize ? this.autocapitalize : undefined)}"
12129
+ autocomplete="${ifDefined(this.autocomplete ? this.autocomplete : undefined)}"
12130
+ autocorrect="${ifDefined(this.autocorrect ? this.autocorrect : undefined)}"
12131
+ class="${classMap(inputClasses)}"
12132
+ id="${this.inputId}"
12133
+ inputMode="${ifDefined(this.inputMode ? this.inputMode : undefined)}"
12134
+ lang="${ifDefined(this.lang)}"
12135
+ maxlength="${ifDefined(this.maxLength ? this.maxLength : undefined)}"
12136
+ minlength="${ifDefined(this.minLength ? this.minLength : undefined)}"
12137
+ name="${ifDefined(this.name)}"
12138
+ part="input"
12139
+ pattern="${ifDefined(this.definePattern())}"
12140
+ spellcheck="${ifDefined(this.spellcheck ? this.spellcheck : undefined)}"
12141
+ type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}" />
12142
+ <div class="${classMap(displayValueClasses)}" aria-hidden="true" part="displayValue">
12143
+ <div class="displayValueWrapper">
12144
+ <slot name="displayValue" @slotchange=${this.checkDisplayValueSlotChange}></slot>
12145
+ </div>
12146
+ </div>
12147
+ `;
12148
+ }
11550
12149
 
11551
- ${this.type === 'date'
11552
- ? html`
11553
- <${this.iconTag}
11554
- class="accentIcon"
11555
- category="interface"
11556
- name="calendar"
11557
- part="accentIcon"
11558
- ?onDark="${this.onDark}"
11559
- variant="${this.disabled ? 'disabled' : 'muted'}">
11560
- </${this.iconTag}>`
11561
- : undefined
11562
- }
11563
- </div>
11564
- <label for=${this.inputId} class="${classMap(labelClasses)}" part="label">
11565
- <slot name="label">
11566
- ${this.label}
11567
- </slot>
11568
- ${this.required ? '' : ` (${i18n(this.lang, 'optional')})`}
11569
- </label>
11570
- <input
11571
- @input="${this.handleInput}"
11572
- @focusin="${this.handleFocusin}"
11573
- @blur="${this.handleBlur}"
11574
- id="${this.inputId}"
11575
- name="${ifDefined(this.name)}"
11576
- type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}"
11577
- pattern="${ifDefined(this.definePattern())}"
11578
- maxlength="${ifDefined(this.maxLength ? this.maxLength : undefined)}"
11579
- minlength="${ifDefined(this.minLength ? this.minLength : undefined)}"
11580
- inputMode="${ifDefined(this.inputmode ? this.inputmode : undefined)}"
11581
- ?required="${this.required}"
11582
- ?disabled="${this.disabled}"
11583
- aria-describedby="${this.uniqueId}"
11584
- ?aria-invalid="${this.validity !== 'valid'}"
11585
- placeholder=${this.getPlaceholder()}
11586
- lang="${ifDefined(this.lang)}"
11587
- ?activeLabel="${this.activeLabel}"
11588
- spellcheck="${ifDefined(this.spellcheck ? this.spellcheck : undefined)}"
11589
- autocorrect="${ifDefined(this.autocorrect ? this.autocorrect : undefined)}"
11590
- autocapitalize="${ifDefined(this.autocapitalize ? this.autocapitalize : undefined)}"
11591
- autocomplete="${ifDefined(this.autocomplete ? this.autocomplete : undefined)}"
11592
- part="input"
11593
- role="${ifDefined(this.a11yRole)}"
11594
- aria-expanded="${ifDefined(this.a11yExpanded)}"
11595
- aria-controls="${ifDefined(this.a11yControls)}"
11596
- />
12150
+ /**
12151
+ * Returns HTML for the clear action button.
12152
+ * @private
12153
+ * @returns {html} - Returns HTML for the clear action button.
12154
+ */
12155
+ renderHtmlActionClear() {
12156
+ return html`
12157
+ <div class="notification clear">
12158
+ <${this.buttonTag}
12159
+ @click="${this.handleClickClear}"
12160
+ ?onDark="${this.onDark}"
12161
+ aria-label="${i18n(this.lang, 'clearInput')}"
12162
+ class="notificationBtn clearBtn"
12163
+ tabindex="-1"
12164
+ variant="flat">
12165
+ <${this.iconTag}
12166
+ category="interface"
12167
+ customColor
12168
+ name="x-lg"
12169
+ >
12170
+ </${this.iconTag}>
12171
+ </${this.buttonTag}>
12172
+ </div>
12173
+ `;
12174
+ }
12175
+
12176
+ /**
12177
+ * Returns HTML for the show password button.
12178
+ * @private
12179
+ * @returns {html} - Returns HTML for the show password button.
12180
+ */
12181
+ renderHtmlNotificationPassword() {
12182
+ return html`
12183
+ <div class="notification">
12184
+ <${this.buttonTag}
12185
+ @click="${this.handleClickShowPassword}
12186
+ ?onDark="${this.onDark}"
12187
+ aria-hidden="true"
12188
+ class="notificationBtn passwordBtn"
12189
+ tabindex="-1"
12190
+ variant="flat">
12191
+ <${this.iconTag}
12192
+ ?hidden=${!this.showPassword}
12193
+ category="interface"
12194
+ customColor
12195
+ name="hide-password-stroke">
12196
+ </${this.iconTag}>
12197
+ <${this.iconTag}
12198
+ ?hidden=${this.showPassword}
12199
+ category="interface"
12200
+ customColor
12201
+ name="view-password-stroke">
12202
+ </${this.iconTag}>
12203
+ </${this.buttonTag}>
12204
+ </div>
12205
+ `;
12206
+ }
12207
+
12208
+ /**
12209
+ * Returns HTML for the input type icon.
12210
+ * @private
12211
+ * @returns {html} - Returns HTML for the input type icon.
12212
+ */
12213
+ renderHtmlTypeIcon() {
12214
+ return html`
12215
+ <div class="typeIcon">
12216
+ ${this.type === 'credit-card' ? this.processCreditCard() : undefined}
12217
+
12218
+ <!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
12219
+ This should be cleaned up when auro-icon issue #31 is resolved. -->
12220
+ ${this.inputIconName
12221
+ ? repeat([this.inputIconName], (val) => val, (name) => html`
12222
+ <${this.iconTag}
12223
+ ?onDark="${this.onDark}"
12224
+ category="payment"
12225
+ class="accentIcon"
12226
+ name="${name}"
12227
+ part="accentIcon"
12228
+ variant="${this.disabled ? 'disabled' : 'muted'}">
12229
+ </${this.iconTag}>
12230
+ `) : undefined
12231
+ }
12232
+ ${this.type === 'date'
12233
+ ? html`
12234
+ <${this.iconTag}
12235
+ ?onDark="${this.onDark}"
12236
+ category="interface"
12237
+ class="accentIcon"
12238
+ name="calendar"
12239
+ part="accentIcon"
12240
+ variant="${this.disabled ? 'disabled' : 'muted'}">
12241
+ </${this.iconTag}>`
12242
+ : undefined
12243
+ }
12244
+ </div>
12245
+ `;
12246
+ }
12247
+
12248
+ /**
12249
+ * Returns HTML for the help text and error message.
12250
+ * @private
12251
+ * @returns {html} - Returns HTML for the help text and error message.
12252
+ */
12253
+ renderHtmlHelpText() {
12254
+ return html`
12255
+ ${!this.validity || this.validity === undefined || this.validity === 'valid'
12256
+ ? html`
12257
+ <${this.helpTextTag} ?onDark="${this.onDark}">
12258
+ <p id="${this.uniqueId}" part="helpText">
12259
+ <slot name="helptext">${this.getHelpText()}</slot>
12260
+ </p>
12261
+ </${this.helpTextTag}>
12262
+ `
12263
+ : html`
12264
+ <${this.helpTextTag} error ?onDark="${this.onDark}">
12265
+ <p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
12266
+ ${this.errorMessage}
12267
+ </p>
12268
+ </${this.helpTextTag}>
12269
+ `
12270
+ }
12271
+ `;
12272
+ }
12273
+
12274
+ /**
12275
+ * Returns HTML for the default layout.
12276
+ * @private
12277
+ * @returns {import("lit").TemplateResult} - Returns HTML for the default layout.
12278
+ */
12279
+ renderLayoutClassic() {
12280
+ return html`
12281
+ <div
12282
+ @click="${this.handleClick}"
12283
+ class="${classMap(this.commonWrapperClasses)} thin"
12284
+ part="wrapper">
12285
+ <div class="accents left">
12286
+ ${this.renderHtmlTypeIcon()}
11597
12287
  </div>
11598
- <div
11599
- class="notificationIcons"
11600
- part="notificationIcons"
11601
- ?hasValue="${this.hasValue}">
11602
- ${this.validity && this.validity !== 'valid' ? html`
11603
- <div class="notification alertNotification">
11604
- <${this.iconTag}
11605
- category="alert"
11606
- name="error-stroke"
11607
- customColor
11608
- </${this.iconTag}>
11609
- </div>
12288
+ <div class="mainContent">
12289
+ ${this.renderHtmlInput(true)}
12290
+ </div>
12291
+ <div class="accents right">
12292
+ ${this.renderValidationErrorIconHtml()}
12293
+ ${this.hasValue ? html`
12294
+ ${!this.disabled && !this.readonly ? html`
12295
+ ${this.renderHtmlActionClear()}
12296
+ ` : undefined}
12297
+ ` : undefined}
12298
+ </div>
12299
+ </div>
12300
+ <div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
12301
+ ${this.renderHtmlHelpText()}
12302
+ </div>
12303
+ `;
12304
+ }
12305
+
12306
+ /**
12307
+ * Returns HTML for the emphasized layout. Does not support type="*".
12308
+ * @private
12309
+ * @returns {html} - Returns HTML for the emphasized layout.
12310
+ */
12311
+ renderLayoutEmphasized() {
12312
+ return html`
12313
+ <div
12314
+ @click="${this.handleClick}"
12315
+ class="${classMap(this.commonWrapperClasses)}"
12316
+ part="wrapper">
12317
+ <div class="accents left">
12318
+ ${this.layout.includes('left') ? html`
12319
+ ${this.renderValidationErrorIconHtml()}
12320
+ ` : undefined}
12321
+ </div>
12322
+ <div class="mainContent">
12323
+ ${this.renderHtmlInput()}
12324
+ </div>
12325
+ <div class="accents right">
12326
+ ${this.layout.includes('right') || this.layout === "emphasized" ? html`
12327
+ ${this.renderValidationErrorIconHtml()}
11610
12328
  ` : undefined}
11611
12329
  ${this.hasValue ? html`
11612
- ${this.type === 'password' ? html`
11613
- <div class="notification">
11614
- <${this.buttonTag}
11615
- variant="flat"
11616
- ?onDark="${this.onDark}"
11617
- aria-hidden="true"
11618
- tabindex="-1"
11619
- @click="${this.handleClickShowPassword}"
11620
- class="notificationBtn passwordBtn">
11621
- <${this.iconTag}
11622
- category="interface"
11623
- name="hide-password-stroke"
11624
- customColor
11625
- ?hidden=${!this.showPassword}>
11626
- </${this.iconTag}>
11627
- <${this.iconTag}
11628
- category="interface"
11629
- name="view-password-stroke"
11630
- customColor
11631
- ?hidden=${this.showPassword}>
11632
- </${this.iconTag}>
11633
- </${this.buttonTag}>
11634
- </div>
12330
+ ${!this.disabled && !this.readonly ? html`
12331
+ ${this.renderHtmlActionClear()}
11635
12332
  ` : undefined}
12333
+ ` : undefined}
12334
+ </div>
12335
+ </div>
12336
+ <div class="${classMap(this.helpTextClasses)}" part="inputHelpText">
12337
+ ${this.renderHtmlHelpText()}
12338
+ </div>
12339
+ `;
12340
+ }
12341
+
12342
+ /**
12343
+ * Returns HTML for the emphasized layout. Does not support type="*".
12344
+ * @private
12345
+ * @returns {html} - Returns HTML for the emphasized layout.
12346
+ */
12347
+ renderLayoutSnowflake() {
12348
+ return html`
12349
+ <div
12350
+ @click="${this.handleClick}"
12351
+ class="${classMap(this.commonWrapperClasses)}"
12352
+ part="wrapper">
12353
+ <div class="accents left">
12354
+ ${this.renderHtmlTypeIcon()}
12355
+ </div>
12356
+ <div class="mainContent">
12357
+ ${this.renderHtmlInput()}
12358
+ </div>
12359
+ <div class="accents right">
12360
+ ${this.renderValidationErrorIconHtml()}
12361
+ ${this.hasValue ? html`
11636
12362
  ${!this.disabled && !this.readonly ? html`
11637
- <div class="notification">
11638
- <${this.buttonTag}
11639
- variant="flat"
11640
- ?onDark="${this.onDark}"
11641
- class="notificationBtn clearBtn"
11642
- arialabel="${i18n(this.lang, 'clearInput')}"
11643
- @click="${this.handleClickClear}">
11644
- <${this.iconTag}
11645
- customColor
11646
- category="interface"
11647
- name="x-lg"
11648
- >
11649
- </${this.iconTag}>
11650
- </${this.buttonTag}>
11651
- </div>
12363
+ ${this.renderHtmlActionClear()}
11652
12364
  ` : undefined}
11653
12365
  ` : undefined}
11654
12366
  </div>
11655
12367
  </div>
11656
- <!-- Help text and error message template -->
11657
- ${!this.validity || this.validity === undefined || this.validity === 'valid'
11658
- ? html`
11659
- <${this.helpTextTag} ?onDark="${this.onDark}">
11660
- <p id="${this.uniqueId}" part="helpText">
11661
- <slot name="helptext">${this.getHelpText()}</slot>
11662
- </p>
11663
- </${this.helpTextTag}>
11664
- `
11665
- : html`
11666
- <${this.helpTextTag} error ?onDark="${this.onDark}">
11667
- <p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
11668
- ${this.errorMessage}
11669
- </p>
11670
- </${this.helpTextTag}>
11671
- `
11672
- }
12368
+ <div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
12369
+ ${this.renderHtmlHelpText()}
12370
+ </div>
11673
12371
  `;
11674
12372
  }
12373
+
12374
+ /**
12375
+ * Logic to determine the layout of the component.
12376
+ * @private
12377
+ * @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
12378
+ * @returns {void}
12379
+ */
12380
+ renderLayout(ForcedLayout) {
12381
+ const layout = ForcedLayout || this.layout;
12382
+
12383
+ switch (layout) {
12384
+ case 'emphasized':
12385
+ return this.renderLayoutEmphasized();
12386
+ case 'emphasized-left':
12387
+ return this.renderLayoutEmphasized();
12388
+ case 'emphasized-right':
12389
+ return this.renderLayoutEmphasized();
12390
+ case 'snowflake':
12391
+ return this.renderLayoutSnowflake();
12392
+ case 'snowflake-left':
12393
+ return this.renderLayoutSnowflake();
12394
+ case 'snowflake-right':
12395
+ return this.renderLayoutSnowflake();
12396
+ default:
12397
+ return this.renderLayoutClassic();
12398
+ }
12399
+ }
11675
12400
  }
11676
12401
 
11677
12402
  var inputVersion = '4.2.0';
@@ -11689,7 +12414,7 @@ var tokenCss = css`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
11689
12414
 
11690
12415
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
11691
12416
 
11692
- class AuroLibraryRuntimeUtils {
12417
+ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
11693
12418
 
11694
12419
  /* eslint-disable jsdoc/require-param */
11695
12420
 
@@ -11750,7 +12475,7 @@ class AuroLibraryRuntimeUtils {
11750
12475
 
11751
12476
  return elemTag === tag || elem.hasAttribute(tag);
11752
12477
  }
11753
- }
12478
+ };
11754
12479
 
11755
12480
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
11756
12481
  // See LICENSE in the project root for license information.
@@ -11802,7 +12527,7 @@ class AuroDependencyVersioning {
11802
12527
  * @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
11803
12528
  */
11804
12529
 
11805
- class AuroElement extends LitElement {
12530
+ let AuroElement$1 = class AuroElement extends LitElement {
11806
12531
 
11807
12532
  // function to define props used within the scope of this component
11808
12533
  static get properties() {
@@ -11826,7 +12551,7 @@ class AuroElement extends LitElement {
11826
12551
 
11827
12552
  return 'false'
11828
12553
  }
11829
- }
12554
+ };
11830
12555
 
11831
12556
  var error = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
11832
12557
 
@@ -11858,7 +12583,7 @@ const cacheFetch = (uri, options = {}) => {
11858
12583
  return _fetchMap.get(uri);
11859
12584
  };
11860
12585
 
11861
- var styleCss$1 = 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}`;
12586
+ var styleCss$1$1 = 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}`;
11862
12587
 
11863
12588
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
11864
12589
  // See LICENSE in the project root for license information.
@@ -11870,7 +12595,7 @@ var styleCss$1 = css`:focus:not(:focus-visible){outline:3px solid transparent}.u
11870
12595
  */
11871
12596
 
11872
12597
  // build the component class
11873
- class BaseIcon extends AuroElement {
12598
+ class BaseIcon extends AuroElement$1 {
11874
12599
  constructor() {
11875
12600
  super();
11876
12601
  this.onDark = false;
@@ -11901,7 +12626,7 @@ class BaseIcon extends AuroElement {
11901
12626
 
11902
12627
  static get styles() {
11903
12628
  return css`
11904
- ${styleCss$1}
12629
+ ${styleCss$1$1}
11905
12630
  `;
11906
12631
  }
11907
12632
 
@@ -11942,9 +12667,9 @@ class BaseIcon extends AuroElement {
11942
12667
  }
11943
12668
  }
11944
12669
 
11945
- var tokensCss = 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)}`;
12670
+ var tokensCss$1 = 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)}`;
11946
12671
 
11947
- var colorCss = 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)}`;
12672
+ var colorCss$2 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
11948
12673
 
11949
12674
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
11950
12675
  // See LICENSE in the project root for license information.
@@ -11965,7 +12690,7 @@ class AuroIcon extends BaseIcon {
11965
12690
  */
11966
12691
  privateDefaults() {
11967
12692
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
11968
- this.runtimeUtils = new AuroLibraryRuntimeUtils();
12693
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
11969
12694
  }
11970
12695
 
11971
12696
  // function to define props used within the scope of this component
@@ -12032,9 +12757,9 @@ class AuroIcon extends BaseIcon {
12032
12757
  static get styles() {
12033
12758
  return [
12034
12759
  super.styles,
12035
- css`${tokensCss}`,
12036
- css`${styleCss$1}`,
12037
- css`${colorCss}`
12760
+ css`${tokensCss$1}`,
12761
+ css`${styleCss$1$1}`,
12762
+ css`${colorCss$2}`
12038
12763
  ];
12039
12764
  }
12040
12765
 
@@ -12047,7 +12772,7 @@ class AuroIcon extends BaseIcon {
12047
12772
  *
12048
12773
  */
12049
12774
  static register(name = "auro-icon") {
12050
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
12775
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
12051
12776
  }
12052
12777
 
12053
12778
  connectedCallback() {
@@ -12113,7 +12838,7 @@ class AuroIcon extends BaseIcon {
12113
12838
  }
12114
12839
  }
12115
12840
 
12116
- var iconVersion = '8.0.2';
12841
+ var iconVersion = '8.0.3';
12117
12842
 
12118
12843
  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)}`;
12119
12844
 
@@ -12144,7 +12869,7 @@ class AuroHeader extends LitElement {
12144
12869
  /**
12145
12870
  * @private
12146
12871
  */
12147
- this.runtimeUtils = new AuroLibraryRuntimeUtils();
12872
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
12148
12873
  }
12149
12874
 
12150
12875
  // function to define props used within the scope of this component
@@ -12174,7 +12899,7 @@ class AuroHeader extends LitElement {
12174
12899
  *
12175
12900
  */
12176
12901
  static register(name = "auro-header") {
12177
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHeader);
12902
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroHeader);
12178
12903
  }
12179
12904
 
12180
12905
  firstUpdated() {
@@ -12270,7 +12995,7 @@ class AuroBibtemplate extends LitElement {
12270
12995
 
12271
12996
  this.large = false;
12272
12997
 
12273
- AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
12998
+ AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
12274
12999
 
12275
13000
  const versioning = new AuroDependencyVersioning();
12276
13001
  this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion, AuroIcon);
@@ -12309,7 +13034,7 @@ class AuroBibtemplate extends LitElement {
12309
13034
  *
12310
13035
  */
12311
13036
  static register(name = "auro-bibtemplate") {
12312
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroBibtemplate);
13037
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroBibtemplate);
12313
13038
  }
12314
13039
 
12315
13040
  /**
@@ -12495,9 +13220,311 @@ css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline
12495
13220
 
12496
13221
  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
13222
 
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)}`;
13223
+ css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
13224
+
13225
+ var styleCss$1 = 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}:host{display:block}:host([layout*=classic]) [auro-input]{min-height:var(--ds-size-700, 3.5rem);max-height:var(--ds-size-700, 3.5rem)}:host([layout*=classic]) [auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}:host([layout*=classic]) [auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) [auro-input]::part(wrapper){--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}:host([layout*=classic]) [auro-input]::part(wrapper):focus-within{border-bottom-width:0 !important;box-shadow:unset !important;outline:unset !important}:host([layout*=classic]) #slotHolder{display:none}`;
13226
+
13227
+ var styleEmphasizedCss = css`:host([layout*=emphasized][shape*=pill]) [auro-input]{width:100%}:host([layout*=emphasized][shape*=pill]) [auro-input]::part(inputHelpText){display:none}`;
13228
+
13229
+ var styleSnowflakeCss = css`:host([layout*=snowflake][shape*=snowflake]) [auro-input]{width:100%}:host([layout*=snowflake][shape*=snowflake]) [auro-input]::part(inputHelpText){display:none}`;
13230
+
13231
+ class AuroElement extends LitElement {
13232
+ static get properties() {
13233
+ return {
13234
+
13235
+ /**
13236
+ * Defines the language of an element.
13237
+ * @default {'default'}
13238
+ */
13239
+ layout: {
13240
+ type: String,
13241
+ attribute: "layout",
13242
+ reflect: true
13243
+ },
13244
+
13245
+ shape: {
13246
+ type: String,
13247
+ attribute: "shape",
13248
+ reflect: true
13249
+ },
13250
+
13251
+ size: {
13252
+ type: String,
13253
+ attribute: "size",
13254
+ reflect: true
13255
+ },
13256
+
13257
+ onDark: {
13258
+ type: Boolean,
13259
+ attribute: "ondark",
13260
+ reflect: true
13261
+ }
13262
+ };
13263
+ }
13264
+
13265
+ resetShapeClasses() {
13266
+ if (this.shape && this.size) {
13267
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
13268
+
13269
+ if (wrapper) {
13270
+ wrapper.classList.forEach((className) => {
13271
+ if (className.startsWith('shape-')) {
13272
+ wrapper.classList.remove(className);
13273
+ }
13274
+ });
13275
+
13276
+ wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
13277
+ }
13278
+ }
13279
+ }
13280
+
13281
+ resetLayoutClasses() {
13282
+ if (this.layout) {
13283
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
13284
+
13285
+ if (wrapper) {
13286
+ wrapper.classList.forEach((className) => {
13287
+ if (className.startsWith('layout-')) {
13288
+ wrapper.classList.remove(className);
13289
+ }
13290
+ });
13291
+
13292
+ wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
13293
+ }
13294
+ }
13295
+ }
13296
+
13297
+ updateComponentArchitecture() {
13298
+ this.resetLayoutClasses();
13299
+ this.resetShapeClasses();
13300
+ }
13301
+
13302
+ updated(changedProperties) {
13303
+ if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
13304
+ this.updateComponentArchitecture();
13305
+ }
13306
+ }
13307
+
13308
+ // Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
13309
+ // This will catch if an invalid layout value is passed in and render the default layout if so.
13310
+ render() {
13311
+ try {
13312
+ return this.renderLayout();
13313
+ } catch (error) {
13314
+ // failed to get the defined layout
13315
+ console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
13316
+
13317
+ // fallback to the default layout
13318
+ return this.getLayout('default');
13319
+ }
13320
+ }
13321
+ }
13322
+
13323
+ 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)}`;
13324
+
13325
+ var styleCss = 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}`;
13326
+
13327
+ var tokensCss = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
13328
+
13329
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
13330
+ // See LICENSE in the project root for license information.
13331
+
13332
+ // ---------------------------------------------------------------------
13333
+
13334
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
13335
+
13336
+ class AuroLibraryRuntimeUtils {
13337
+
13338
+ /* eslint-disable jsdoc/require-param */
13339
+
13340
+ /**
13341
+ * This will register a new custom element with the browser.
13342
+ * @param {String} name - The name of the custom element.
13343
+ * @param {Object} componentClass - The class to register as a custom element.
13344
+ * @returns {void}
13345
+ */
13346
+ registerComponent(name, componentClass) {
13347
+ if (!customElements.get(name)) {
13348
+ customElements.define(name, class extends componentClass {});
13349
+ }
13350
+ }
13351
+
13352
+ /**
13353
+ * Finds and returns the closest HTML Element based on a selector.
13354
+ * @returns {void}
13355
+ */
13356
+ closestElement(
13357
+ selector, // selector like in .closest()
13358
+ base = this, // extra functionality to skip a parent
13359
+ __Closest = (el, found = el && el.closest(selector)) =>
13360
+ !el || el === document || el === window
13361
+ ? null // standard .closest() returns null for non-found selectors also
13362
+ : found
13363
+ ? found // found a selector INside this element
13364
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
13365
+ ) {
13366
+ return __Closest(base);
13367
+ }
13368
+ /* eslint-enable jsdoc/require-param */
13369
+
13370
+ /**
13371
+ * 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.
13372
+ * @param {Object} elem - The element to check.
13373
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
13374
+ * @returns {void}
13375
+ */
13376
+ handleComponentTagRename(elem, tagName) {
13377
+ const tag = tagName.toLowerCase();
13378
+ const elemTag = elem.tagName.toLowerCase();
13379
+
13380
+ if (elemTag !== tag) {
13381
+ elem.setAttribute(tag, true);
13382
+ }
13383
+ }
13384
+
13385
+ /**
13386
+ * Validates if an element is a specific Auro component.
13387
+ * @param {Object} elem - The element to validate.
13388
+ * @param {String} tagName - The name of the Auro component to check against.
13389
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
13390
+ */
13391
+ elementMatch(elem, tagName) {
13392
+ const tag = tagName.toLowerCase();
13393
+ const elemTag = elem.tagName.toLowerCase();
13394
+
13395
+ return elemTag === tag || elem.hasAttribute(tag);
13396
+ }
13397
+ }
13398
+
13399
+ // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
13400
+ // See LICENSE in the project root for license information.
13401
+
12499
13402
 
12500
- 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}`;
13403
+ /**
13404
+ * Displays help text or error messages within form elements - Internal Use Only.
13405
+ *
13406
+ * @attr { Boolean } large - If declared, make font-size to 1rem(16px).
13407
+ */
13408
+ class AuroHelpText extends LitElement {
13409
+
13410
+ constructor() {
13411
+ super();
13412
+
13413
+ this.error = false;
13414
+ this.onDark = false;
13415
+ this.hasTextContent = false;
13416
+
13417
+ AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-helptext');
13418
+ }
13419
+
13420
+ static get styles() {
13421
+ return [
13422
+ colorCss,
13423
+ styleCss,
13424
+ tokensCss
13425
+ ];
13426
+ }
13427
+
13428
+ // function to define props used within the scope of this component
13429
+ static get properties() {
13430
+ return {
13431
+
13432
+ /**
13433
+ * @private
13434
+ */
13435
+ slotNodes: {
13436
+ type: Boolean,
13437
+ },
13438
+
13439
+ /**
13440
+ * @private
13441
+ */
13442
+ hasTextContent: {
13443
+ type: Boolean,
13444
+ },
13445
+
13446
+ /**
13447
+ * If declared, make font color red.
13448
+ */
13449
+ error: {
13450
+ type: Boolean,
13451
+ reflect: true,
13452
+ },
13453
+
13454
+ /**
13455
+ * If declared, will apply onDark styles.
13456
+ */
13457
+ onDark: {
13458
+ type: Boolean,
13459
+ reflect: true
13460
+ }
13461
+ };
13462
+ }
13463
+
13464
+ /**
13465
+ * This will register this element with the browser.
13466
+ * @param {string} [name="auro-helptext"] - The name of element that you want to register to.
13467
+ *
13468
+ * @example
13469
+ * AuroCheckbox.register("custom-helptext") // this will register this element to <custom-helptext/>
13470
+ *
13471
+ */
13472
+ static register(name = "auro-helptext") {
13473
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHelpText);
13474
+ }
13475
+
13476
+ updated() {
13477
+ this.handleSlotChange();
13478
+ }
13479
+
13480
+ handleSlotChange(event) {
13481
+ if (event) {
13482
+ this.slotNodes = event.target.assignedNodes();
13483
+ }
13484
+
13485
+ this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
13486
+ }
13487
+
13488
+ /**
13489
+ * Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
13490
+ *
13491
+ * @param {NodeList|Array} nodes - The list of nodes to check for content.
13492
+ * @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
13493
+ * @private
13494
+ */
13495
+ checkSlotsForContent(nodes) {
13496
+ if (!nodes) {
13497
+ return false;
13498
+ }
13499
+
13500
+ return nodes.some((node) => {
13501
+ if (node.textContent.trim()) {
13502
+ return true;
13503
+ }
13504
+
13505
+ if (!node.querySelector) {
13506
+ return false;
13507
+ }
13508
+
13509
+ const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
13510
+ if (!nestedSlot) {
13511
+ return false;
13512
+ }
13513
+
13514
+ const nestedSlotNodes = nestedSlot.assignedNodes();
13515
+ return this.checkSlotsForContent(nestedSlotNodes);
13516
+ });
13517
+ }
13518
+
13519
+ // function that renders the HTML and CSS into the scope of the component
13520
+ render() {
13521
+ return html$1`
13522
+ <div class="helptext-wrapper" ?visible="${this.hasTextContent}">
13523
+ <slot @slotchange=${this.handleSlotChange}></slot>
13524
+ </div>
13525
+ `;
13526
+ }
13527
+ }
12501
13528
 
12502
13529
  // Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
12503
13530
  // See LICENSE in the project root for license information.
@@ -12514,7 +13541,7 @@ var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{d
12514
13541
  */
12515
13542
 
12516
13543
  // build the component class
12517
- class AuroCombobox extends LitElement {
13544
+ class AuroCombobox extends AuroElement {
12518
13545
 
12519
13546
  constructor() {
12520
13547
  super();
@@ -12555,6 +13582,14 @@ class AuroCombobox extends LitElement {
12555
13582
 
12556
13583
  this.isHiddenWhileLoading = false;
12557
13584
 
13585
+ // Error message
13586
+ this.errorMessage = null;
13587
+
13588
+ // Layout Config
13589
+ this.layout = 'classic';
13590
+ this.shape = 'rounded';
13591
+ this.size = 'xl';
13592
+
12558
13593
  // floaterConfig
12559
13594
  this.placement = 'bottom-start';
12560
13595
  this.offset = 0;
@@ -12566,6 +13601,7 @@ class AuroCombobox extends LitElement {
12566
13601
  this.dropdownTag = versioning.generateTag('auro-formkit-combobox-dropdown', dropdownVersion, AuroDropdown);
12567
13602
  this.bibtemplateTag = versioning.generateTag('auro-formkit-combobox-bibtemplate', bibTemplateVersion, AuroBibtemplate);
12568
13603
  this.inputTag = versioning.generateTag('auro-formkit-combobox-input', inputVersion, AuroInput);
13604
+ this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', '1.0.0', AuroHelpText);
12569
13605
  }
12570
13606
 
12571
13607
  // This function is to define props used within the scope of this component
@@ -12609,7 +13645,7 @@ class AuroCombobox extends LitElement {
12609
13645
  },
12610
13646
 
12611
13647
  /**
12612
- * ID for the dropdown
13648
+ * ID for the dropdown.
12613
13649
  * @private
12614
13650
  */
12615
13651
  dropdownId: {
@@ -12619,7 +13655,7 @@ class AuroCombobox extends LitElement {
12619
13655
  },
12620
13656
 
12621
13657
  /**
12622
- * Whether or not the dropdown is open
13658
+ * Whether or not the dropdown is open.
12623
13659
  * @private
12624
13660
  */
12625
13661
  dropdownOpen: {
@@ -12695,6 +13731,7 @@ class AuroCombobox extends LitElement {
12695
13731
  hasChanged: arrayOrUndefinedHasChanged
12696
13732
  },
12697
13733
 
13734
+ /* eslint-disable jsdoc/require-description-complete-sentence */
12698
13735
  /**
12699
13736
  * Position where the bib should appear relative to the trigger.
12700
13737
  * Accepted values:
@@ -12708,6 +13745,15 @@ class AuroCombobox extends LitElement {
12708
13745
  type: String,
12709
13746
  reflect: true
12710
13747
  },
13748
+ /* eslint-enable jsdoc/require-description-complete-sentence */
13749
+
13750
+ /**
13751
+ * Define custom placeholder text, only supported by date input formats.
13752
+ */
13753
+ placeholder: {
13754
+ type: String,
13755
+ reflect: true
13756
+ },
12711
13757
 
12712
13758
  /**
12713
13759
  * Populates the `required` attribute on the input. Used for client-side validation.
@@ -12771,6 +13817,7 @@ class AuroCombobox extends LitElement {
12771
13817
  hasChanged: arrayOrUndefinedHasChanged
12772
13818
  },
12773
13819
 
13820
+ /* eslint-disable jsdoc/require-description-complete-sentence */
12774
13821
  /**
12775
13822
  * If declared, make bib.fullscreen.headline in HeadingDisplay.
12776
13823
  * Otherwise, Heading 600
@@ -12779,6 +13826,7 @@ class AuroCombobox extends LitElement {
12779
13826
  type: Boolean,
12780
13827
  reflect: true
12781
13828
  },
13829
+ /* eslint-enable jsdoc/require-description-complete-sentence */
12782
13830
 
12783
13831
  /**
12784
13832
  * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
@@ -12794,8 +13842,8 @@ class AuroCombobox extends LitElement {
12794
13842
  },
12795
13843
 
12796
13844
  /**
13845
+ * Specifies the currently active option.
12797
13846
  * @private
12798
- * specifies the currently active option
12799
13847
  */
12800
13848
  optionActive: {
12801
13849
  type: Object,
@@ -12806,7 +13854,21 @@ class AuroCombobox extends LitElement {
12806
13854
  }
12807
13855
 
12808
13856
  static get styles() {
12809
- return [styleCss];
13857
+ return [
13858
+ css`${styleCss$1}`,
13859
+ css`${styleEmphasizedCss}`,
13860
+ css`${styleSnowflakeCss}`
13861
+ ];
13862
+ }
13863
+
13864
+ isValid() {
13865
+ let valid = true;
13866
+
13867
+ if (this.validity !== undefined && this.validity !== 'valid') {
13868
+ valid = false;
13869
+ }
13870
+
13871
+ return valid;
12810
13872
  }
12811
13873
 
12812
13874
  /**
@@ -13089,10 +14151,10 @@ class AuroCombobox extends LitElement {
13089
14151
  }
13090
14152
 
13091
14153
  /**
13092
- * @private
13093
14154
  * Dispatches input's keyboard events from host
13094
14155
  * This allows key events from the input to be handled by the parent.
13095
- * @param {Event} event - The keyboard event.
14156
+ * @private
14157
+ * @param {KeyboardEvent} event - The keyboard event.
13096
14158
  */
13097
14159
  bubbleUpInputEvent(event) {
13098
14160
  // Do not need to bubble events if the input is not in bib.
@@ -13176,7 +14238,6 @@ class AuroCombobox extends LitElement {
13176
14238
  }
13177
14239
 
13178
14240
  /**
13179
- * @private
13180
14241
  * When the dropdown is visible in fullscreen mode, the input is moved to the subheader slot of bibtemplate.
13181
14242
  * Otherwise, it's moved back to the trigger slot.
13182
14243
  * @private
@@ -13187,7 +14248,7 @@ class AuroCombobox extends LitElement {
13187
14248
  return;
13188
14249
  }
13189
14250
 
13190
- const inputHelpText = this.input.shadowRoot.querySelector('auro-helptext, [auro-helptext');
14251
+ const inputHelpText = this.input.shadowRoot.querySelector('auro-helptext, [auro-helptext]');
13191
14252
  const inputAlertIcon = this.input.shadowRoot.querySelector(".alertNotification");
13192
14253
 
13193
14254
  if (this.dropdown.isPopoverVisible && this.dropdown.isBibFullscreen) {
@@ -13201,7 +14262,7 @@ class AuroCombobox extends LitElement {
13201
14262
  this.input.setAttribute('borderless', true);
13202
14263
  this.input.setAttribute('slot', 'subheader');
13203
14264
 
13204
- // set disply of helpText and alert icon programatically
14265
+ // set display of helpText and alert icon programmatically
13205
14266
  // because ::slotted and ::part do not work together
13206
14267
  inputHelpText.style.display = 'none';
13207
14268
  if (inputAlertIcon) {
@@ -13466,8 +14527,8 @@ class AuroCombobox extends LitElement {
13466
14527
  this.handleMenuOptions();
13467
14528
  break;
13468
14529
  case 'label':
13469
- // Programatically inject as the slot cannot be carried over to bibtemplate.
13470
- // It's because the bib is/will be seperated from dropdown to body.
14530
+ // Programmatically inject as the slot cannot be carried over to bibtemplate.
14531
+ // It's because the bib is/will be separated from dropdown to body.
13471
14532
  this.transportAssignedNodes(event.target, this.input, 'label');
13472
14533
  break;
13473
14534
  case 'bib.fullscreen.headline':
@@ -13478,6 +14539,16 @@ class AuroCombobox extends LitElement {
13478
14539
 
13479
14540
  // function that renders the HTML and CSS into the scope of the component
13480
14541
  render() {
14542
+ const helpTextContentClasses = {
14543
+ 'util_displayHidden': this.validity !== undefined && this.validity !== 'valid',
14544
+ 'helpTextMessage': true,
14545
+ };
14546
+
14547
+ const errorTextContentClasses = {
14548
+ 'util_displayHidden': this.validity === undefined || this.validity === 'valid',
14549
+ 'errorMessage': true,
14550
+ };
14551
+
13481
14552
  return html`
13482
14553
  <div>
13483
14554
  <div aria-live="polite" class="util_displayHiddenVisually">
@@ -13488,45 +14559,51 @@ class AuroCombobox extends LitElement {
13488
14559
  : undefined
13489
14560
  }
13490
14561
  </div>
13491
- <div id="slotHolder" aria-hidden="true">
14562
+ <div class="util_displayHiddenVisually" aria-hidden="true">
13492
14563
  <slot name="label" @slotchange="${this.handleSlotChange}"></slot>
13493
14564
  <slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
13494
14565
  </div>
13495
14566
  <${this.dropdownTag}
13496
- for="dropdownMenu"
14567
+ ?autoPlacement="${this.autoPlacement}"
14568
+ ?disabled="${this.disabled}"
14569
+ ?error="${this.validity !== undefined && this.validity !== 'valid'}"
14570
+ ?noFlip="${this.noFlip}"
13497
14571
  ?onDark="${this.onDark}"
14572
+ .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
14573
+ .offset="${this.offset}"
14574
+ .placement="${this.placement}"
14575
+ simple
14576
+ disableEventShow
13498
14577
  fluid
13499
- bordered
13500
- rounded
14578
+ for="dropdownMenu"
14579
+ layout="${this.layout}"
13501
14580
  matchWidth
13502
14581
  nocheckmark
13503
- .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
13504
- ?disabled="${this.disabled}"
13505
- ?error="${this.validity !== undefined && this.validity !== 'valid'}"
13506
- .placement="${this.placement}"
13507
- .offset="${this.offset}"
13508
- ?autoPlacement="${this.autoPlacement}"
13509
- ?noFlip="${this.noFlip}"
13510
- disableEventShow>
14582
+ rounded
14583
+ shape="${this.shape}"
14584
+ size="${this.size}">
13511
14585
  <${this.inputTag}
13512
- .a11yRole="${"combobox"}"
14586
+ @input="${this.handleInputValueChange}"
13513
14587
  .a11yExpanded="${this.dropdownOpen}"
13514
14588
  .a11yControls="${this.dropdownId}"
13515
- id="${this.id || 'auro-combobox-input'}"
13516
- slot="trigger"
13517
- bordered
14589
+ .autocomplete="${this.autocomplete}"
14590
+ .inputmode="${this.inputmode}"
14591
+ .placeholder="${this.placeholder}"
14592
+ .type="${this.type}"
13518
14593
  ?onDark="${this.onDark}"
13519
14594
  ?required="${this.required}"
13520
14595
  ?noValidate="${this.noValidate}"
13521
14596
  ?disabled="${this.disabled}"
13522
14597
  ?icon="${this.triggerIcon}"
14598
+ a11yRole="combobox"
14599
+ id="${this.id}"
14600
+ layout="${this.layout}"
13523
14601
  setCustomValidity="${this.setCustomValidity}"
13524
14602
  setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
13525
14603
  setCustomValidityCustomError="${this.setCustomValidityCustomError}"
13526
- .autocomplete="${this.autocomplete}"
13527
- .type="${this.type}"
13528
- inputmode="${ifDefined(this.inputmode)}"
13529
- @input="${this.handleInputValueChange}">
14604
+ shape="${this.shape}"
14605
+ size="${this.size}"
14606
+ slot="trigger">
13530
14607
  </${this.inputTag}>
13531
14608
 
13532
14609
  <div class="menuWrapper"></div>
@@ -13534,17 +14611,24 @@ class AuroCombobox extends LitElement {
13534
14611
  <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
13535
14612
  </${this.bibtemplateTag}>
13536
14613
 
13537
- <p slot="helpText">
13538
- <!-- Help text and error message template -->
13539
- ${!this.validity || this.validity === undefined || this.validity === 'valid'
14614
+ <span slot="helpText">
14615
+ ${!this.validity || this.validity === 'valid'
13540
14616
  ? html`
13541
- <slot name="helpText"></slot>
13542
- ` : html`
13543
- <span role="alert" aria-live="assertive" part="helpText">
13544
- ${this.errorMessage}
13545
- </span>`
14617
+ <${this.helpTextTag} class="${classMap(helpTextContentClasses)}" ?onDark="${this.onDark}">
14618
+ <p id="${this.uniqueId}" part="helpText">
14619
+ <slot name="helpText"></slot>
14620
+ </p>
14621
+ </${this.helpTextTag}>
14622
+ `
14623
+ : html`
14624
+ <${this.helpTextTag} class="${classMap(errorTextContentClasses)}" error ?onDark="${this.onDark}">
14625
+ <p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
14626
+ ${this.errorMessage}
14627
+ </p>
14628
+ </${this.helpTextTag}>
14629
+ `
13546
14630
  }
13547
- </p>
14631
+ </span>
13548
14632
  </${this.dropdownTag}>
13549
14633
  </div>
13550
14634
  `;