@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.2 → 0.0.0-pr624.21

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 (108) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +13 -2
  2. package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
  3. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/index.js +1292 -79
  5. package/components/bibtemplate/dist/registered.js +1292 -79
  6. package/components/checkbox/README.md +1 -1
  7. package/components/checkbox/demo/api.md +8 -9
  8. package/components/checkbox/demo/api.min.js +30 -24
  9. package/components/checkbox/demo/index.md +2 -2
  10. package/components/checkbox/demo/index.min.js +30 -24
  11. package/components/checkbox/demo/readme.md +1 -1
  12. package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
  13. package/components/checkbox/dist/index.js +30 -24
  14. package/components/checkbox/dist/registered.js +30 -24
  15. package/components/combobox/demo/api.md +53 -0
  16. package/components/combobox/demo/api.min.js +2898 -753
  17. package/components/combobox/demo/index.md +6 -0
  18. package/components/combobox/demo/index.min.js +2898 -753
  19. package/components/combobox/dist/auro-combobox.d.ts +12 -12
  20. package/components/combobox/dist/index.js +2646 -642
  21. package/components/combobox/dist/registered.js +2646 -642
  22. package/components/counter/demo/api.md +21 -19
  23. package/components/counter/demo/api.min.js +3648 -929
  24. package/components/counter/demo/index.md +99 -34
  25. package/components/counter/demo/index.min.js +3648 -929
  26. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  27. package/components/counter/dist/auro-counter-group.d.ts +105 -6
  28. package/components/counter/dist/auro-counter.d.ts +6 -0
  29. package/components/counter/dist/helptextVersion.d.ts +2 -0
  30. package/components/counter/dist/iconVersion.d.ts +1 -1
  31. package/components/counter/dist/index.js +3648 -929
  32. package/components/counter/dist/registered.js +3648 -929
  33. package/components/datepicker/demo/api.md +36 -19
  34. package/components/datepicker/demo/api.min.js +11437 -7744
  35. package/components/datepicker/demo/index.md +80 -0
  36. package/components/datepicker/demo/index.min.js +11437 -7744
  37. package/components/datepicker/dist/auro-datepicker.d.ts +71 -3
  38. package/components/datepicker/dist/buttonVersion.d.ts +1 -1
  39. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  40. package/components/datepicker/dist/index.js +13847 -10154
  41. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  42. package/components/datepicker/dist/registered.js +13847 -10154
  43. package/components/dropdown/demo/api.md +6 -7
  44. package/components/dropdown/demo/api.min.js +238 -144
  45. package/components/dropdown/demo/index.md +57 -9
  46. package/components/dropdown/demo/index.min.js +238 -144
  47. package/components/dropdown/dist/auro-dropdown.d.ts +10 -9
  48. package/components/dropdown/dist/auro-dropdownBib.d.ts +22 -0
  49. package/components/dropdown/dist/index.js +238 -144
  50. package/components/dropdown/dist/registered.js +238 -144
  51. package/components/form/demo/api.min.js +1 -1
  52. package/components/form/demo/index.min.js +1 -1
  53. package/components/form/dist/index.js +1 -1
  54. package/components/form/dist/registered.js +1 -1
  55. package/components/helptext/dist/index.js +2 -2
  56. package/components/helptext/dist/registered.js +2 -2
  57. package/components/input/demo/api.md +63 -56
  58. package/components/input/demo/api.min.js +983 -269
  59. package/components/input/demo/index.min.js +982 -268
  60. package/components/input/dist/auro-input.d.ts +202 -14
  61. package/components/input/dist/base-input.d.ts +30 -7
  62. package/components/input/dist/buttonVersion.d.ts +1 -1
  63. package/components/input/dist/iconVersion.d.ts +1 -1
  64. package/components/input/dist/index.js +982 -268
  65. package/components/input/dist/registered.js +982 -268
  66. package/components/layoutElement/dist/index.js +13 -10
  67. package/components/menu/demo/api.html +38 -0
  68. package/components/menu/demo/api.md +68 -7
  69. package/components/menu/demo/api.min.js +278 -42
  70. package/components/menu/demo/index.min.js +278 -42
  71. package/components/menu/dist/auro-menu.d.ts +28 -5
  72. package/components/menu/dist/auro-menuoption.d.ts +15 -3
  73. package/components/menu/dist/iconVersion.d.ts +1 -1
  74. package/components/menu/dist/index.js +278 -42
  75. package/components/menu/dist/registered.js +278 -42
  76. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
  77. package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
  78. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
  79. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  80. package/components/radio/demo/api.md +2 -2
  81. package/components/radio/demo/api.min.js +10 -7
  82. package/components/radio/demo/index.min.js +10 -7
  83. package/components/radio/dist/auro-radio.d.ts +1 -1
  84. package/components/radio/dist/index.js +10 -7
  85. package/components/radio/dist/registered.js +10 -7
  86. package/components/select/demo/api.js +2 -0
  87. package/components/select/demo/api.md +78 -12
  88. package/components/select/demo/api.min.js +2797 -538
  89. package/components/select/demo/index.html +1 -0
  90. package/components/select/demo/index.md +325 -763
  91. package/components/select/demo/index.min.js +2790 -543
  92. package/components/select/dist/auro-select.d.ts +111 -11
  93. package/components/select/dist/helptextVersion.d.ts +2 -0
  94. package/components/select/dist/index.js +2533 -427
  95. package/components/select/dist/registered.js +2533 -427
  96. package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
  97. package/components/select/dist/styles/tokens-css.d.ts +2 -0
  98. package/package.json +6 -4
  99. /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
  100. /package/components/{dropdown → datepicker}/dist/styles/default/color-css.d.ts +0 -0
  101. /package/components/{dropdown/dist/styles/default/bibStyles-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
  102. /package/components/{dropdown/dist/styles/default/style-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
  103. /package/components/{dropdown/dist/styles → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
  104. /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/classic/bibColors-css.d.ts} +0 -0
  105. /package/components/{menu/dist/styles/color-menuoption-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
  106. /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
  107. /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
  108. /package/components/menu/dist/styles/{tokens-css.d.ts → default/color-menu-css.d.ts} +0 -0
@@ -10,7 +10,7 @@ import { ifDefined } from 'lit/directives/if-defined.js';
10
10
 
11
11
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
12
12
 
13
- let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
13
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
14
14
 
15
15
  /* eslint-disable jsdoc/require-param */
16
16
 
@@ -593,10 +593,11 @@ const flip$1 = function (options) {
593
593
  const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
594
594
  const nextPlacement = placements[nextIndex];
595
595
  if (nextPlacement) {
596
- var _overflowsData$;
597
596
  const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
598
- const hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
599
- if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow) {
597
+ if (!ignoreCrossAxisOverflow ||
598
+ // We leave the current main axis only if every placement on that axis
599
+ // overflows the main axis.
600
+ overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
600
601
  // Try next placement and re-run the lifecycle.
601
602
  return {
602
603
  data: {
@@ -1617,8 +1618,28 @@ class AuroFloatingUI {
1617
1618
  if (!AuroFloatingUI.isMousePressHandlerInitialized && window && window.addEventListener) {
1618
1619
  AuroFloatingUI.isMousePressHandlerInitialized = true;
1619
1620
 
1621
+ // Track timeout for isMousePressed reset to avoid race conditions
1622
+ if (!AuroFloatingUI._mousePressedTimeout) {
1623
+ AuroFloatingUI._mousePressedTimeout = null;
1624
+ }
1620
1625
  const mouseEventGlobalHandler = (event) => {
1621
- AuroFloatingUI.isMousePressed = event.type === 'mousedown';
1626
+ const isPressed = event.type === 'mousedown';
1627
+ if (isPressed) {
1628
+ // Clear any pending timeout to prevent race condition
1629
+ if (AuroFloatingUI._mousePressedTimeout !== null) {
1630
+ clearTimeout(AuroFloatingUI._mousePressedTimeout);
1631
+ AuroFloatingUI._mousePressedTimeout = null;
1632
+ }
1633
+ if (!AuroFloatingUI.isMousePressed) {
1634
+ AuroFloatingUI.isMousePressed = true;
1635
+ }
1636
+ } else if (AuroFloatingUI.isMousePressed && !isPressed) {
1637
+ // Schedule reset and track timeout ID
1638
+ AuroFloatingUI._mousePressedTimeout = setTimeout(() => {
1639
+ AuroFloatingUI.isMousePressed = false;
1640
+ AuroFloatingUI._mousePressedTimeout = null;
1641
+ }, 0);
1642
+ }
1622
1643
  };
1623
1644
 
1624
1645
  window.addEventListener('mousedown', mouseEventGlobalHandler);
@@ -1745,6 +1766,7 @@ class AuroFloatingUI {
1745
1766
 
1746
1767
  // Compute the position of the bib
1747
1768
  computePosition(this.element.trigger, this.element.bib, {
1769
+ strategy: this.element.floaterConfig?.strategy || 'fixed',
1748
1770
  placement: this.element.floaterConfig?.placement,
1749
1771
  middleware: middleware || []
1750
1772
  }).then(({ x, y }) => { // eslint-disable-line id-length
@@ -1879,8 +1901,9 @@ class AuroFloatingUI {
1879
1901
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
1880
1902
  return;
1881
1903
  }
1882
- // if fullscreen bib is still open and the focus is missing, do not close
1883
- if (this.element.bib.hasAttribute('isfullscreen') && activeElement === document.body) {
1904
+
1905
+ // if fullscreen bib is in fullscreen mode, do not close
1906
+ if (this.element.bib.hasAttribute('isfullscreen')) {
1884
1907
  return;
1885
1908
  }
1886
1909
 
@@ -2181,8 +2204,6 @@ class AuroFloatingUI {
2181
2204
  this.element.hoverToggle = this.element.floaterConfig.hoverToggle;
2182
2205
  }
2183
2206
 
2184
- document.body.append(this.element.bib);
2185
-
2186
2207
  this.regenerateBibId();
2187
2208
  this.handleTriggerTabIndex();
2188
2209
 
@@ -2413,6 +2434,76 @@ var tokensCss$2 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-d
2413
2434
 
2414
2435
  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)}`;
2415
2436
 
2437
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
2438
+ // See LICENSE in the project root for license information.
2439
+
2440
+ // ---------------------------------------------------------------------
2441
+
2442
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
2443
+
2444
+ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
2445
+
2446
+ /* eslint-disable jsdoc/require-param */
2447
+
2448
+ /**
2449
+ * This will register a new custom element with the browser.
2450
+ * @param {String} name - The name of the custom element.
2451
+ * @param {Object} componentClass - The class to register as a custom element.
2452
+ * @returns {void}
2453
+ */
2454
+ registerComponent(name, componentClass) {
2455
+ if (!customElements.get(name)) {
2456
+ customElements.define(name, class extends componentClass {});
2457
+ }
2458
+ }
2459
+
2460
+ /**
2461
+ * Finds and returns the closest HTML Element based on a selector.
2462
+ * @returns {void}
2463
+ */
2464
+ closestElement(
2465
+ selector, // selector like in .closest()
2466
+ base = this, // extra functionality to skip a parent
2467
+ __Closest = (el, found = el && el.closest(selector)) =>
2468
+ !el || el === document || el === window
2469
+ ? null // standard .closest() returns null for non-found selectors also
2470
+ : found
2471
+ ? found // found a selector INside this element
2472
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
2473
+ ) {
2474
+ return __Closest(base);
2475
+ }
2476
+ /* eslint-enable jsdoc/require-param */
2477
+
2478
+ /**
2479
+ * 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.
2480
+ * @param {Object} elem - The element to check.
2481
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
2482
+ * @returns {void}
2483
+ */
2484
+ handleComponentTagRename(elem, tagName) {
2485
+ const tag = tagName.toLowerCase();
2486
+ const elemTag = elem.tagName.toLowerCase();
2487
+
2488
+ if (elemTag !== tag) {
2489
+ elem.setAttribute(tag, true);
2490
+ }
2491
+ }
2492
+
2493
+ /**
2494
+ * Validates if an element is a specific Auro component.
2495
+ * @param {Object} elem - The element to validate.
2496
+ * @param {String} tagName - The name of the Auro component to check against.
2497
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
2498
+ */
2499
+ elementMatch(elem, tagName) {
2500
+ const tag = tagName.toLowerCase();
2501
+ const elemTag = elem.tagName.toLowerCase();
2502
+
2503
+ return elemTag === tag || elem.hasAttribute(tag);
2504
+ }
2505
+ };
2506
+
2416
2507
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
2417
2508
  // See LICENSE in the project root for license information.
2418
2509
 
@@ -2535,8 +2626,12 @@ class AuroIcon extends BaseIcon {
2535
2626
  async firstUpdated() {
2536
2627
  await super.firstUpdated();
2537
2628
 
2538
- // Removes the SVG description for screenreader if ariaHidden is set to true
2539
- if (!this.hasAttribute('ariaHidden') && this.svg) {
2629
+ /**
2630
+ * icons provide a description for screen readers. Icon only instances Auro-button
2631
+ * depend on this description to provide context for the user using a screen reader.
2632
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
2633
+ */
2634
+ if (this.hasAttribute('ariaHidden') && this.svg) {
2540
2635
  const svgDesc = this.svg.querySelector('desc');
2541
2636
 
2542
2637
  if (svgDesc) {
@@ -2582,17 +2677,16 @@ class AuroIcon extends BaseIcon {
2582
2677
 
2583
2678
  var iconVersion = '6.1.2';
2584
2679
 
2585
- var styleCss$1 = 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}`;
2680
+ var styleCss$1 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host(:not([matchWidth])) .container{min-width:fit-content}: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}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}`;
2586
2681
 
2587
2682
  var colorCss$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)}`;
2588
2683
 
2589
- var tokensCss$1 = 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)}`;
2684
+ var tokensCss$1 = 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: var(--ds-basic-color-border-bold, #585e67);--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: var(--ds-basic-color-border-inverse, #ffffff);--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)}`;
2590
2685
 
2591
2686
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
2592
2687
  // See LICENSE in the project root for license information.
2593
2688
 
2594
2689
 
2595
-
2596
2690
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
2597
2691
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
2598
2692
  'xl',
@@ -2608,7 +2702,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
2608
2702
  */
2609
2703
 
2610
2704
  class AuroDropdownBib extends LitElement {
2611
-
2705
+ // not extending AuroElement because Bib needs only `shape` prop
2612
2706
  constructor() {
2613
2707
  super();
2614
2708
 
@@ -2617,7 +2711,10 @@ class AuroDropdownBib extends LitElement {
2617
2711
  */
2618
2712
  this._mobileBreakpointValue = undefined;
2619
2713
 
2620
- AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
2714
+ AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
2715
+
2716
+ this.shape = "rounded";
2717
+ this.matchWidth = false;
2621
2718
  }
2622
2719
 
2623
2720
  static get styles() {
@@ -2655,6 +2752,15 @@ class AuroDropdownBib extends LitElement {
2655
2752
  reflect: true
2656
2753
  },
2657
2754
 
2755
+ /**
2756
+ * If declared, the bib width will match the trigger width.
2757
+ * @private
2758
+ */
2759
+ matchWidth: {
2760
+ type: Boolean,
2761
+ reflect: true
2762
+ },
2763
+
2658
2764
  /**
2659
2765
  * If declared, will apply border-radius to the bib.
2660
2766
  */
@@ -2662,6 +2768,18 @@ class AuroDropdownBib extends LitElement {
2662
2768
  type: Boolean,
2663
2769
  reflect: true
2664
2770
  },
2771
+
2772
+ /**
2773
+ * A reference to the associated bib template element.
2774
+ */
2775
+ bibTemplate: {
2776
+ type: Object
2777
+ },
2778
+
2779
+ shape: {
2780
+ type: String,
2781
+ reflect: true
2782
+ }
2665
2783
  };
2666
2784
  }
2667
2785
 
@@ -2694,13 +2812,62 @@ class AuroDropdownBib extends LitElement {
2694
2812
  }
2695
2813
  }
2696
2814
  });
2815
+
2816
+ if (this.bibTemplate) {
2817
+ // If the bib template is found, set the fullscreen attribute
2818
+ if (this.isFullscreen) {
2819
+ this.bibTemplate.setAttribute('isFullscreen', 'true');
2820
+ } else {
2821
+ this.bibTemplate.removeAttribute('isFullscreen');
2822
+ }
2823
+ }
2697
2824
  }
2698
2825
  }
2699
2826
 
2827
+ connectedCallback() {
2828
+ super.connectedCallback();
2829
+
2830
+ // Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
2831
+ this.addEventListener('auro-bibtemplate-connected', (event) => {
2832
+ const bibTemplate = event.detail.element;
2833
+ this.bibTemplate = bibTemplate;
2834
+
2835
+ if (bibTemplate) {
2836
+ // If the bib template is found, set the fullscreen attribute
2837
+ if (this.isFullscreen) {
2838
+ bibTemplate.setAttribute('isFullscreen', 'true');
2839
+ } else {
2840
+ bibTemplate.removeAttribute('isFullscreen');
2841
+ }
2842
+ }
2843
+ });
2844
+ }
2845
+
2846
+ firstUpdated(changedProperties) {
2847
+ super.firstUpdated(changedProperties);
2848
+
2849
+ // Dispatch a custom event when the component is connected
2850
+ this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
2851
+ bubbles: true,
2852
+ composed: true,
2853
+ detail: {
2854
+ element: this
2855
+ }
2856
+ }));
2857
+ }
2858
+
2700
2859
  // function that renders the HTML and CSS into the scope of the component
2701
2860
  render() {
2861
+ const classes = {
2862
+ container: true
2863
+ };
2864
+
2865
+ // Since this class does not inherit from AuroElement, we apply the shape-related class within the `render` function,
2866
+ // mimicking the class naming convention used in AuroElement.resetShapeClasses.
2867
+ classes[`shape-${this.shape}`] = true;
2868
+
2702
2869
  return html$1`
2703
- <div class="container" part="bibContainer">
2870
+ <div class="${classMap(classes)}" part="bibContainer">
2704
2871
  <slot></slot>
2705
2872
  </div>
2706
2873
  `;
@@ -2709,21 +2876,21 @@ class AuroDropdownBib extends LitElement {
2709
2876
 
2710
2877
  var dropdownVersion = '3.0.0';
2711
2878
 
2712
- var shapeSizeCss = css`.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0;min-height:60px;max-height:60px;background-color:unset}.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}`;
2879
+ var shapeSizeCss = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.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;box-shadow:none}.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-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.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;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.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;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;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;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;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;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;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;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;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;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;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;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;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;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
2713
2880
 
2714
- var colorCss$1 = 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)}`;
2881
+ var colorCss$1 = 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-basic-color-status-error-subtle, #fbc6c6)}.helpText{color:var(--ds-auro-dropdown-helptext-text-color)}`;
2715
2882
 
2716
- var classicColorCss = css`:host([layout*=classic]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic]) .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)}:host([layout*=classic]) .trigger:focus-within,:host([layout*=classic]) .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([layout*=classic])[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([layout*=classic])[common],:host([layout*=classic])[bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #585e67)}:host([layout*=classic])[common] .trigger:active,:host([layout*=classic])[common] .trigger:focus-within,:host([layout*=classic])[bordered] .trigger:active,:host([layout*=classic])[bordered] .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic])[error]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic])[error] .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([layout*=classic])[error] .trigger:focus-within,:host([layout*=classic])[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([layout*=classic])[disabled][common],:host([layout*=classic])[disabled][bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host([layout*=classic])[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([layout*=classic])[onDark]:focus-within,:host([layout*=classic])[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([layout*=classic])[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([layout*=classic])[onDark][common],:host([layout*=classic])[onDark][bordered]{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([layout*=classic])[onDark][common] .trigger:focus-within,:host([layout*=classic])[onDark][common] .trigger:active,:host([layout*=classic])[onDark][bordered] .trigger:focus-within,:host([layout*=classic])[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([layout*=classic])[onDark][error]{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([layout*=classic])[onDark][error] .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([layout*=classic])[onDark][error] .trigger:focus-within,:host([layout*=classic])[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([layout*=classic])[onDark][disabled][common],:host([layout*=classic])[onDark][disabled][bordered]{--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}`;
2883
+ var classicColorCss = css`:host([layout*=classic]:not([onDark])) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic]:not([onDark])) .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)}:host([layout*=classic]:not([onDark])) .trigger:focus-within,:host([layout*=classic]:not([onDark])) .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([layout*=classic][disabled]:not([onDark])){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host([layout*=classic][error]:not([onDark])){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic][error]:not([onDark])) .trigger:focus-within,:host([layout*=classic][error]:not([onDark])) .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([layout*=classic][onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic][onDark]) .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)}:host([layout*=classic][onDark]) .trigger:focus-within,:host([layout*=classic][onDark]) .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([layout*=classic][onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([layout*=classic][onDark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host([layout*=classic][onDark][error]) .trigger:focus-within,:host([layout*=classic][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)}`;
2717
2884
 
2718
- var classicLayoutCss = css`:host([layout*=classic]){position:relative;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{display:flex;flex-direction:row}@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)}`;
2885
+ var classicLayoutCss = css`:host([layout*=classic]){position:relative;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{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .trigger:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}: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]:not([simple])) .triggerContentWrapper{padding-left:var(--ds-size-150, 0.75rem)}:host([layout*=classic][matchwidth]) #bibSizer{width:100%}:host([layout*=classic][disabled]){pointer-events:none}`;
2719
2886
 
2720
- var styleEmphasizedCss = 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)}`;
2887
+ var styleEmphasizedCss = css`:host{display:block}.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}`;
2721
2888
 
2722
- var styleSnowflakeCss = 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)}`;
2889
+ var styleSnowflakeCss = css`:host{display:block}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([layout*=snowflake]) .leftIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
2723
2890
 
2724
- 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)}`;
2891
+ 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-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
2725
2892
 
2726
- 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}`;
2893
+ var styleCss = css`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
2727
2894
 
2728
2895
  var tokensCss = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
2729
2896
 
@@ -2964,18 +3131,21 @@ class AuroElement extends LitElement {
2964
3131
  }
2965
3132
 
2966
3133
  resetShapeClasses() {
2967
- if (this.shape && this.size) {
2968
- const wrapper = this.shadowRoot.querySelector('.wrapper');
3134
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
2969
3135
 
2970
- if (wrapper) {
2971
- wrapper.classList.forEach((className) => {
2972
- if (className.startsWith('shape-')) {
2973
- wrapper.classList.remove(className);
2974
- }
2975
- });
3136
+ if (wrapper) {
3137
+ wrapper.classList.forEach((className) => {
3138
+ if (className.startsWith('shape-')) {
3139
+ wrapper.classList.remove(className);
3140
+ }
3141
+ });
2976
3142
 
2977
- wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
2978
- }
3143
+ }
3144
+
3145
+ if (this.shape && this.size) {
3146
+ wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
3147
+ } else {
3148
+ wrapper.classList.add('shape-none');
2979
3149
  }
2980
3150
  }
2981
3151
 
@@ -3047,20 +3217,16 @@ class AuroDropdown extends AuroElement {
3047
3217
  this.matchWidth = false;
3048
3218
  this.noHideOnThisFocusLoss = false;
3049
3219
 
3050
- this.errorMessage = ''; // TODO!
3220
+ this.errorMessage = ''; // TODO - check with Doug if there is still more to do here
3051
3221
 
3052
3222
  // Layout Config
3053
3223
  this.layout = 'classic';
3054
- this.shape = 'rounded';
3224
+ this.shape = 'classic';
3055
3225
  this.size = 'xl';
3056
3226
 
3057
- this.privateDefaults();
3058
- }
3227
+ this.parentBorder = false;
3059
3228
 
3060
- get commonLabelClasses() {
3061
- return {
3062
- // 'withValue': this.value && this.value.length > 0
3063
- };
3229
+ this.privateDefaults();
3064
3230
  }
3065
3231
 
3066
3232
  get commonWrapperClasses() {
@@ -3068,7 +3234,8 @@ class AuroDropdown extends AuroElement {
3068
3234
  'trigger': true,
3069
3235
  'wrapper': true,
3070
3236
  'hasFocus': this.hasFocus,
3071
- 'simple': this.simple
3237
+ 'simple': this.simple,
3238
+ 'parentBorder': this.parentBorder
3072
3239
  };
3073
3240
  }
3074
3241
 
@@ -3120,7 +3287,7 @@ class AuroDropdown extends AuroElement {
3120
3287
  /**
3121
3288
  * @private
3122
3289
  */
3123
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
3290
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
3124
3291
 
3125
3292
  /**
3126
3293
  * @private
@@ -3335,6 +3502,15 @@ class AuroDropdown extends AuroElement {
3335
3502
  reflect: true
3336
3503
  },
3337
3504
 
3505
+ /**
3506
+ * Defines if the trigger should size based on the parent element providing the border UI.
3507
+ * @private
3508
+ */
3509
+ parentBorder: {
3510
+ type: Boolean,
3511
+ reflect: true
3512
+ },
3513
+
3338
3514
  /**
3339
3515
  * If declared, the popover and trigger will be set to the same width.
3340
3516
  */
@@ -3462,7 +3638,7 @@ class AuroDropdown extends AuroElement {
3462
3638
  *
3463
3639
  */
3464
3640
  static register(name = "auro-dropdown") {
3465
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
3641
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroDropdown);
3466
3642
  }
3467
3643
 
3468
3644
  /**
@@ -3725,14 +3901,13 @@ class AuroDropdown extends AuroElement {
3725
3901
  * @returns {void}
3726
3902
  */
3727
3903
  handleTriggerContentSlotChange(event) {
3728
-
3729
3904
  this.floater.handleTriggerTabIndex();
3730
3905
 
3731
3906
  // Get the trigger
3732
3907
  const trigger = this.shadowRoot.querySelector('#trigger');
3733
3908
 
3734
3909
  // Get the trigger slot
3735
- const triggerSlot = this.shadowRoot.querySelector('.triggerContent slot');
3910
+ const triggerSlot = this.shadowRoot.querySelector('.triggerContentWrapper slot');
3736
3911
 
3737
3912
  // If there's a trigger slot
3738
3913
  if (triggerSlot) {
@@ -3795,40 +3970,15 @@ class AuroDropdown extends AuroElement {
3795
3970
  *
3796
3971
  * @private
3797
3972
  * @method handleDefaultSlot
3798
- * @param {Event} event - The event object representing the slot change.
3799
3973
  * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
3800
3974
  */
3801
- handleDefaultSlot(event) {
3802
- [...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
3975
+ handleDefaultSlot() {
3803
3976
 
3804
3977
  if (this.onSlotChange) {
3805
3978
  this.onSlotChange();
3806
3979
  }
3807
3980
  }
3808
3981
 
3809
- /**
3810
- * @private
3811
- * @method handleLabelSlotChange
3812
- * @param {event} event - The event object representing the slot change.
3813
- * @description Handles the slot change event for the label slot.
3814
- */
3815
- handleLabelSlotChange (event) {
3816
-
3817
- // Get the nodes from the event
3818
- const nodes = event.target.assignedNodes();
3819
-
3820
- // Guard clause for no nodes
3821
- if (!nodes) {
3822
- return;
3823
- }
3824
-
3825
- // Convert the nodes to a measurable array so we can get the length
3826
- const nodesArr = Array.from(nodes);
3827
-
3828
- // If the nodes array has a length, the dropdown is labeled
3829
- this.labeled = nodesArr.length > 0;
3830
- }
3831
-
3832
3982
  /**
3833
3983
  * Returns HTML for the common portion of the layouts.
3834
3984
  * @private
@@ -3843,24 +3993,20 @@ class AuroDropdown extends AuroElement {
3843
3993
  class="${classMap(this.commonWrapperClasses)}" part="wrapper"
3844
3994
  tabindex="${this.tabIndex}"
3845
3995
  role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
3846
- aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
3847
- aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
3996
+ aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
3997
+ aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
3848
3998
  aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
3849
3999
  @focusin="${this.handleFocusin}"
3850
4000
  @blur="${this.handleFocusOut}">
3851
- <div class="triggerContentWrapper">
3852
- <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
3853
- <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
3854
- </label>
3855
- <div class="triggerContent">
3856
- <slot
3857
- name="trigger"
3858
- @slotchange="${this.handleTriggerContentSlotChange}"></slot>
3859
- </div>
4001
+ <div class="triggerContentWrapper" id="triggerLabel">
4002
+ <slot
4003
+ name="trigger"
4004
+ @slotchange="${this.handleTriggerContentSlotChange}"></slot>
3860
4005
  </div>
3861
- ${this.chevron || this.common ? html$1`
4006
+ ${this.chevron ? html$1`
3862
4007
  <div
3863
4008
  id="showStateIcon"
4009
+ class="chevron"
3864
4010
  part="chevron">
3865
4011
  <${this.iconTag}
3866
4012
  category="interface"
@@ -3875,17 +4021,18 @@ class AuroDropdown extends AuroElement {
3875
4021
  <div class="${classMap(helpTextClasses)}">
3876
4022
  <slot name="helpText"></slot>
3877
4023
  </div>
3878
- <div class="slotContent">
3879
- <slot @slotchange="${this.handleDefaultSlot}"></slot>
3880
- </div>
3881
4024
  <div id="bibSizer" part="size"></div>
3882
4025
  <${this.dropdownBibTag}
3883
4026
  id="bib"
4027
+ shape="${this.shape}"
3884
4028
  ?data-show="${this.isPopoverVisible}"
3885
4029
  ?isfullscreen="${this.isBibFullscreen}"
3886
4030
  ?common="${this.common}"
3887
4031
  ?rounded="${this.common || this.rounded}"
3888
4032
  ?inset="${this.common || this.inset}">
4033
+ <div class="slotContent">
4034
+ <slot @slotchange="${this.handleDefaultSlot}"></slot>
4035
+ </div>
3889
4036
  </${this.dropdownBibTag}>
3890
4037
  </div>
3891
4038
  `;
@@ -3897,67 +4044,14 @@ class AuroDropdown extends AuroElement {
3897
4044
  * @returns {html} - Returns HTML for the classic layout.
3898
4045
  */
3899
4046
  renderLayoutClassic() {
4047
+ // TODO: check with Doug why this was never used?
3900
4048
  const helpTextClasses = {
3901
- 'helpText': true,
3902
- 'leftIndent': false,
3903
- 'rightIndent': false
4049
+ 'helpText': true
3904
4050
  };
3905
4051
 
3906
4052
  return html$1`
3907
4053
  ${this.renderBasicHtml(helpTextClasses)}
3908
4054
  `;
3909
- // return html`
3910
- // <div>
3911
- // <div
3912
- // id="trigger"
3913
- // class="trigger"
3914
- // part="trigger"
3915
- // tabindex="${this.tabIndex}"
3916
- // ?showBorder="${this.showTriggerBorders}"
3917
- // role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
3918
- // aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
3919
- // aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
3920
- // aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
3921
- // >
3922
- // <div class="triggerContentWrapper">
3923
- // <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
3924
- // <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
3925
- // </label>
3926
- // <div class="triggerContent">
3927
- // <slot
3928
- // name="trigger"
3929
- // @slotchange="${this.handleTriggerContentSlotChange}"></slot>
3930
- // </div>
3931
- // </div>
3932
- // ${this.chevron || this.common ? html`
3933
- // <div
3934
- // id="showStateIcon"
3935
- // part="chevron">
3936
- // <${this.iconTag}
3937
- // category="interface"
3938
- // name="chevron-down"
3939
- // ?onDark="${this.onDark}"
3940
- // variant="${this.disabled ? 'disabled' : 'muted'}">
3941
- // >
3942
- // </${this.iconTag}>
3943
- // </div>
3944
- // ` : undefined }
3945
- // </div>
3946
- // <div class="slotContent">
3947
- // <slot @slotchange="${this.handleDefaultSlot}"></slot>
3948
- // </div>
3949
- // <div id="bibSizer" part="size"></div>
3950
- // <${this.dropdownBibTag}
3951
- // id="bib"
3952
- // ?data-show="${this.isPopoverVisible}"
3953
- // ?isfullscreen="${this.isBibFullscreen}"
3954
- // ?common="${this.common}"
3955
- // ?rounded="${this.common || this.rounded}"
3956
- // ?inset="${this.common || this.inset}"
3957
- // >
3958
- // </${this.dropdownBibTag}>
3959
- // </div>
3960
- // `;
3961
4055
  }
3962
4056
 
3963
4057
  /**