@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
@@ -51,7 +51,7 @@ const t=globalThis,e$1=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShad
51
51
 
52
52
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
53
53
 
54
- let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
54
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
55
55
 
56
56
  /* eslint-disable jsdoc/require-param */
57
57
 
@@ -634,10 +634,11 @@ const flip$1 = function (options) {
634
634
  const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
635
635
  const nextPlacement = placements[nextIndex];
636
636
  if (nextPlacement) {
637
- var _overflowsData$;
638
637
  const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
639
- const hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
640
- if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow) {
638
+ if (!ignoreCrossAxisOverflow ||
639
+ // We leave the current main axis only if every placement on that axis
640
+ // overflows the main axis.
641
+ overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
641
642
  // Try next placement and re-run the lifecycle.
642
643
  return {
643
644
  data: {
@@ -1658,8 +1659,28 @@ class AuroFloatingUI {
1658
1659
  if (!AuroFloatingUI.isMousePressHandlerInitialized && window && window.addEventListener) {
1659
1660
  AuroFloatingUI.isMousePressHandlerInitialized = true;
1660
1661
 
1662
+ // Track timeout for isMousePressed reset to avoid race conditions
1663
+ if (!AuroFloatingUI._mousePressedTimeout) {
1664
+ AuroFloatingUI._mousePressedTimeout = null;
1665
+ }
1661
1666
  const mouseEventGlobalHandler = (event) => {
1662
- AuroFloatingUI.isMousePressed = event.type === 'mousedown';
1667
+ const isPressed = event.type === 'mousedown';
1668
+ if (isPressed) {
1669
+ // Clear any pending timeout to prevent race condition
1670
+ if (AuroFloatingUI._mousePressedTimeout !== null) {
1671
+ clearTimeout(AuroFloatingUI._mousePressedTimeout);
1672
+ AuroFloatingUI._mousePressedTimeout = null;
1673
+ }
1674
+ if (!AuroFloatingUI.isMousePressed) {
1675
+ AuroFloatingUI.isMousePressed = true;
1676
+ }
1677
+ } else if (AuroFloatingUI.isMousePressed && !isPressed) {
1678
+ // Schedule reset and track timeout ID
1679
+ AuroFloatingUI._mousePressedTimeout = setTimeout(() => {
1680
+ AuroFloatingUI.isMousePressed = false;
1681
+ AuroFloatingUI._mousePressedTimeout = null;
1682
+ }, 0);
1683
+ }
1663
1684
  };
1664
1685
 
1665
1686
  window.addEventListener('mousedown', mouseEventGlobalHandler);
@@ -1786,6 +1807,7 @@ class AuroFloatingUI {
1786
1807
 
1787
1808
  // Compute the position of the bib
1788
1809
  computePosition(this.element.trigger, this.element.bib, {
1810
+ strategy: this.element.floaterConfig?.strategy || 'fixed',
1789
1811
  placement: this.element.floaterConfig?.placement,
1790
1812
  middleware: middleware || []
1791
1813
  }).then(({ x, y }) => { // eslint-disable-line id-length
@@ -1920,8 +1942,9 @@ class AuroFloatingUI {
1920
1942
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
1921
1943
  return;
1922
1944
  }
1923
- // if fullscreen bib is still open and the focus is missing, do not close
1924
- if (this.element.bib.hasAttribute('isfullscreen') && activeElement === document.body) {
1945
+
1946
+ // if fullscreen bib is in fullscreen mode, do not close
1947
+ if (this.element.bib.hasAttribute('isfullscreen')) {
1925
1948
  return;
1926
1949
  }
1927
1950
 
@@ -2222,8 +2245,6 @@ class AuroFloatingUI {
2222
2245
  this.element.hoverToggle = this.element.floaterConfig.hoverToggle;
2223
2246
  }
2224
2247
 
2225
- document.body.append(this.element.bib);
2226
-
2227
2248
  this.regenerateBibId();
2228
2249
  this.handleTriggerTabIndex();
2229
2250
 
@@ -2460,6 +2481,76 @@ var tokensCss$2 = i$2`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-d
2460
2481
 
2461
2482
  var colorCss$3 = i$2`: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)}`;
2462
2483
 
2484
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
2485
+ // See LICENSE in the project root for license information.
2486
+
2487
+ // ---------------------------------------------------------------------
2488
+
2489
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
2490
+
2491
+ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
2492
+
2493
+ /* eslint-disable jsdoc/require-param */
2494
+
2495
+ /**
2496
+ * This will register a new custom element with the browser.
2497
+ * @param {String} name - The name of the custom element.
2498
+ * @param {Object} componentClass - The class to register as a custom element.
2499
+ * @returns {void}
2500
+ */
2501
+ registerComponent(name, componentClass) {
2502
+ if (!customElements.get(name)) {
2503
+ customElements.define(name, class extends componentClass {});
2504
+ }
2505
+ }
2506
+
2507
+ /**
2508
+ * Finds and returns the closest HTML Element based on a selector.
2509
+ * @returns {void}
2510
+ */
2511
+ closestElement(
2512
+ selector, // selector like in .closest()
2513
+ base = this, // extra functionality to skip a parent
2514
+ __Closest = (el, found = el && el.closest(selector)) =>
2515
+ !el || el === document || el === window
2516
+ ? null // standard .closest() returns null for non-found selectors also
2517
+ : found
2518
+ ? found // found a selector INside this element
2519
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
2520
+ ) {
2521
+ return __Closest(base);
2522
+ }
2523
+ /* eslint-enable jsdoc/require-param */
2524
+
2525
+ /**
2526
+ * 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.
2527
+ * @param {Object} elem - The element to check.
2528
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
2529
+ * @returns {void}
2530
+ */
2531
+ handleComponentTagRename(elem, tagName) {
2532
+ const tag = tagName.toLowerCase();
2533
+ const elemTag = elem.tagName.toLowerCase();
2534
+
2535
+ if (elemTag !== tag) {
2536
+ elem.setAttribute(tag, true);
2537
+ }
2538
+ }
2539
+
2540
+ /**
2541
+ * Validates if an element is a specific Auro component.
2542
+ * @param {Object} elem - The element to validate.
2543
+ * @param {String} tagName - The name of the Auro component to check against.
2544
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
2545
+ */
2546
+ elementMatch(elem, tagName) {
2547
+ const tag = tagName.toLowerCase();
2548
+ const elemTag = elem.tagName.toLowerCase();
2549
+
2550
+ return elemTag === tag || elem.hasAttribute(tag);
2551
+ }
2552
+ };
2553
+
2463
2554
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
2464
2555
  // See LICENSE in the project root for license information.
2465
2556
 
@@ -2582,8 +2673,12 @@ class AuroIcon extends BaseIcon {
2582
2673
  async firstUpdated() {
2583
2674
  await super.firstUpdated();
2584
2675
 
2585
- // Removes the SVG description for screenreader if ariaHidden is set to true
2586
- if (!this.hasAttribute('ariaHidden') && this.svg) {
2676
+ /**
2677
+ * icons provide a description for screen readers. Icon only instances Auro-button
2678
+ * depend on this description to provide context for the user using a screen reader.
2679
+ * Removes the SVG description for screen reader if ariaHidden is set to true.
2680
+ */
2681
+ if (this.hasAttribute('ariaHidden') && this.svg) {
2587
2682
  const svgDesc = this.svg.querySelector('desc');
2588
2683
 
2589
2684
  if (svgDesc) {
@@ -2629,17 +2724,16 @@ class AuroIcon extends BaseIcon {
2629
2724
 
2630
2725
  var iconVersion = '6.1.2';
2631
2726
 
2632
- var styleCss$1 = i$2`: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}`;
2727
+ var styleCss$1 = i$2`: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}`;
2633
2728
 
2634
2729
  var colorCss$2 = i$2`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
2635
2730
 
2636
- var tokensCss$1 = i$2`: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)}`;
2731
+ var tokensCss$1 = i$2`: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)}`;
2637
2732
 
2638
2733
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
2639
2734
  // See LICENSE in the project root for license information.
2640
2735
 
2641
2736
 
2642
-
2643
2737
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
2644
2738
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
2645
2739
  'xl',
@@ -2655,7 +2749,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
2655
2749
  */
2656
2750
 
2657
2751
  class AuroDropdownBib extends i {
2658
-
2752
+ // not extending AuroElement because Bib needs only `shape` prop
2659
2753
  constructor() {
2660
2754
  super();
2661
2755
 
@@ -2664,7 +2758,10 @@ class AuroDropdownBib extends i {
2664
2758
  */
2665
2759
  this._mobileBreakpointValue = undefined;
2666
2760
 
2667
- AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
2761
+ AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
2762
+
2763
+ this.shape = "rounded";
2764
+ this.matchWidth = false;
2668
2765
  }
2669
2766
 
2670
2767
  static get styles() {
@@ -2702,6 +2799,15 @@ class AuroDropdownBib extends i {
2702
2799
  reflect: true
2703
2800
  },
2704
2801
 
2802
+ /**
2803
+ * If declared, the bib width will match the trigger width.
2804
+ * @private
2805
+ */
2806
+ matchWidth: {
2807
+ type: Boolean,
2808
+ reflect: true
2809
+ },
2810
+
2705
2811
  /**
2706
2812
  * If declared, will apply border-radius to the bib.
2707
2813
  */
@@ -2709,6 +2815,18 @@ class AuroDropdownBib extends i {
2709
2815
  type: Boolean,
2710
2816
  reflect: true
2711
2817
  },
2818
+
2819
+ /**
2820
+ * A reference to the associated bib template element.
2821
+ */
2822
+ bibTemplate: {
2823
+ type: Object
2824
+ },
2825
+
2826
+ shape: {
2827
+ type: String,
2828
+ reflect: true
2829
+ }
2712
2830
  };
2713
2831
  }
2714
2832
 
@@ -2741,13 +2859,62 @@ class AuroDropdownBib extends i {
2741
2859
  }
2742
2860
  }
2743
2861
  });
2862
+
2863
+ if (this.bibTemplate) {
2864
+ // If the bib template is found, set the fullscreen attribute
2865
+ if (this.isFullscreen) {
2866
+ this.bibTemplate.setAttribute('isFullscreen', 'true');
2867
+ } else {
2868
+ this.bibTemplate.removeAttribute('isFullscreen');
2869
+ }
2870
+ }
2744
2871
  }
2745
2872
  }
2746
2873
 
2874
+ connectedCallback() {
2875
+ super.connectedCallback();
2876
+
2877
+ // Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
2878
+ this.addEventListener('auro-bibtemplate-connected', (event) => {
2879
+ const bibTemplate = event.detail.element;
2880
+ this.bibTemplate = bibTemplate;
2881
+
2882
+ if (bibTemplate) {
2883
+ // If the bib template is found, set the fullscreen attribute
2884
+ if (this.isFullscreen) {
2885
+ bibTemplate.setAttribute('isFullscreen', 'true');
2886
+ } else {
2887
+ bibTemplate.removeAttribute('isFullscreen');
2888
+ }
2889
+ }
2890
+ });
2891
+ }
2892
+
2893
+ firstUpdated(changedProperties) {
2894
+ super.firstUpdated(changedProperties);
2895
+
2896
+ // Dispatch a custom event when the component is connected
2897
+ this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
2898
+ bubbles: true,
2899
+ composed: true,
2900
+ detail: {
2901
+ element: this
2902
+ }
2903
+ }));
2904
+ }
2905
+
2747
2906
  // function that renders the HTML and CSS into the scope of the component
2748
2907
  render() {
2908
+ const classes = {
2909
+ container: true
2910
+ };
2911
+
2912
+ // Since this class does not inherit from AuroElement, we apply the shape-related class within the `render` function,
2913
+ // mimicking the class naming convention used in AuroElement.resetShapeClasses.
2914
+ classes[`shape-${this.shape}`] = true;
2915
+
2749
2916
  return u$1`
2750
- <div class="container" part="bibContainer">
2917
+ <div class="${e$2(classes)}" part="bibContainer">
2751
2918
  <slot></slot>
2752
2919
  </div>
2753
2920
  `;
@@ -2756,21 +2923,21 @@ class AuroDropdownBib extends i {
2756
2923
 
2757
2924
  var dropdownVersion = '3.0.0';
2758
2925
 
2759
- var shapeSizeCss = i$2`.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}`;
2926
+ var shapeSizeCss = i$2`.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}`;
2760
2927
 
2761
- var colorCss$1 = i$2`: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)}`;
2928
+ var colorCss$1 = i$2`: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)}`;
2762
2929
 
2763
- var classicColorCss = i$2`: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))}`;
2930
+ var classicColorCss = i$2`: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)}`;
2764
2931
 
2765
- var classicLayoutCss = i$2`: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)}`;
2932
+ var classicLayoutCss = i$2`: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}`;
2766
2933
 
2767
- var styleEmphasizedCss = i$2`: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)}`;
2934
+ var styleEmphasizedCss = i$2`: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)}`;
2768
2935
 
2769
- var styleSnowflakeCss = i$2`: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)}`;
2936
+ var styleSnowflakeCss = i$2`: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)}`;
2770
2937
 
2771
- var colorCss = i$2`: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)}`;
2938
+ var colorCss = i$2`: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)}`;
2772
2939
 
2773
- var styleCss = i$2`.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}`;
2940
+ var styleCss = i$2`.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}`;
2774
2941
 
2775
2942
  var tokensCss = i$2`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
2776
2943
 
@@ -3011,18 +3178,21 @@ class AuroElement extends i {
3011
3178
  }
3012
3179
 
3013
3180
  resetShapeClasses() {
3014
- if (this.shape && this.size) {
3015
- const wrapper = this.shadowRoot.querySelector('.wrapper');
3181
+ const wrapper = this.shadowRoot.querySelector('.wrapper');
3016
3182
 
3017
- if (wrapper) {
3018
- wrapper.classList.forEach((className) => {
3019
- if (className.startsWith('shape-')) {
3020
- wrapper.classList.remove(className);
3021
- }
3022
- });
3183
+ if (wrapper) {
3184
+ wrapper.classList.forEach((className) => {
3185
+ if (className.startsWith('shape-')) {
3186
+ wrapper.classList.remove(className);
3187
+ }
3188
+ });
3023
3189
 
3024
- wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
3025
- }
3190
+ }
3191
+
3192
+ if (this.shape && this.size) {
3193
+ wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
3194
+ } else {
3195
+ wrapper.classList.add('shape-none');
3026
3196
  }
3027
3197
  }
3028
3198
 
@@ -3094,20 +3264,16 @@ class AuroDropdown extends AuroElement {
3094
3264
  this.matchWidth = false;
3095
3265
  this.noHideOnThisFocusLoss = false;
3096
3266
 
3097
- this.errorMessage = ''; // TODO!
3267
+ this.errorMessage = ''; // TODO - check with Doug if there is still more to do here
3098
3268
 
3099
3269
  // Layout Config
3100
3270
  this.layout = 'classic';
3101
- this.shape = 'rounded';
3271
+ this.shape = 'classic';
3102
3272
  this.size = 'xl';
3103
3273
 
3104
- this.privateDefaults();
3105
- }
3274
+ this.parentBorder = false;
3106
3275
 
3107
- get commonLabelClasses() {
3108
- return {
3109
- // 'withValue': this.value && this.value.length > 0
3110
- };
3276
+ this.privateDefaults();
3111
3277
  }
3112
3278
 
3113
3279
  get commonWrapperClasses() {
@@ -3115,7 +3281,8 @@ class AuroDropdown extends AuroElement {
3115
3281
  'trigger': true,
3116
3282
  'wrapper': true,
3117
3283
  'hasFocus': this.hasFocus,
3118
- 'simple': this.simple
3284
+ 'simple': this.simple,
3285
+ 'parentBorder': this.parentBorder
3119
3286
  };
3120
3287
  }
3121
3288
 
@@ -3167,7 +3334,7 @@ class AuroDropdown extends AuroElement {
3167
3334
  /**
3168
3335
  * @private
3169
3336
  */
3170
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
3337
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
3171
3338
 
3172
3339
  /**
3173
3340
  * @private
@@ -3382,6 +3549,15 @@ class AuroDropdown extends AuroElement {
3382
3549
  reflect: true
3383
3550
  },
3384
3551
 
3552
+ /**
3553
+ * Defines if the trigger should size based on the parent element providing the border UI.
3554
+ * @private
3555
+ */
3556
+ parentBorder: {
3557
+ type: Boolean,
3558
+ reflect: true
3559
+ },
3560
+
3385
3561
  /**
3386
3562
  * If declared, the popover and trigger will be set to the same width.
3387
3563
  */
@@ -3509,7 +3685,7 @@ class AuroDropdown extends AuroElement {
3509
3685
  *
3510
3686
  */
3511
3687
  static register(name = "auro-dropdown") {
3512
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
3688
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroDropdown);
3513
3689
  }
3514
3690
 
3515
3691
  /**
@@ -3772,14 +3948,13 @@ class AuroDropdown extends AuroElement {
3772
3948
  * @returns {void}
3773
3949
  */
3774
3950
  handleTriggerContentSlotChange(event) {
3775
-
3776
3951
  this.floater.handleTriggerTabIndex();
3777
3952
 
3778
3953
  // Get the trigger
3779
3954
  const trigger = this.shadowRoot.querySelector('#trigger');
3780
3955
 
3781
3956
  // Get the trigger slot
3782
- const triggerSlot = this.shadowRoot.querySelector('.triggerContent slot');
3957
+ const triggerSlot = this.shadowRoot.querySelector('.triggerContentWrapper slot');
3783
3958
 
3784
3959
  // If there's a trigger slot
3785
3960
  if (triggerSlot) {
@@ -3842,40 +4017,15 @@ class AuroDropdown extends AuroElement {
3842
4017
  *
3843
4018
  * @private
3844
4019
  * @method handleDefaultSlot
3845
- * @param {Event} event - The event object representing the slot change.
3846
4020
  * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
3847
4021
  */
3848
- handleDefaultSlot(event) {
3849
- [...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
4022
+ handleDefaultSlot() {
3850
4023
 
3851
4024
  if (this.onSlotChange) {
3852
4025
  this.onSlotChange();
3853
4026
  }
3854
4027
  }
3855
4028
 
3856
- /**
3857
- * @private
3858
- * @method handleLabelSlotChange
3859
- * @param {event} event - The event object representing the slot change.
3860
- * @description Handles the slot change event for the label slot.
3861
- */
3862
- handleLabelSlotChange (event) {
3863
-
3864
- // Get the nodes from the event
3865
- const nodes = event.target.assignedNodes();
3866
-
3867
- // Guard clause for no nodes
3868
- if (!nodes) {
3869
- return;
3870
- }
3871
-
3872
- // Convert the nodes to a measurable array so we can get the length
3873
- const nodesArr = Array.from(nodes);
3874
-
3875
- // If the nodes array has a length, the dropdown is labeled
3876
- this.labeled = nodesArr.length > 0;
3877
- }
3878
-
3879
4029
  /**
3880
4030
  * Returns HTML for the common portion of the layouts.
3881
4031
  * @private
@@ -3890,24 +4040,20 @@ class AuroDropdown extends AuroElement {
3890
4040
  class="${e$2(this.commonWrapperClasses)}" part="wrapper"
3891
4041
  tabindex="${this.tabIndex}"
3892
4042
  role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
3893
- aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
3894
- aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
4043
+ aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
4044
+ aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
3895
4045
  aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
3896
4046
  @focusin="${this.handleFocusin}"
3897
4047
  @blur="${this.handleFocusOut}">
3898
- <div class="triggerContentWrapper">
3899
- <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
3900
- <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
3901
- </label>
3902
- <div class="triggerContent">
3903
- <slot
3904
- name="trigger"
3905
- @slotchange="${this.handleTriggerContentSlotChange}"></slot>
3906
- </div>
4048
+ <div class="triggerContentWrapper" id="triggerLabel">
4049
+ <slot
4050
+ name="trigger"
4051
+ @slotchange="${this.handleTriggerContentSlotChange}"></slot>
3907
4052
  </div>
3908
- ${this.chevron || this.common ? u$1`
4053
+ ${this.chevron ? u$1`
3909
4054
  <div
3910
4055
  id="showStateIcon"
4056
+ class="chevron"
3911
4057
  part="chevron">
3912
4058
  <${this.iconTag}
3913
4059
  category="interface"
@@ -3922,17 +4068,18 @@ class AuroDropdown extends AuroElement {
3922
4068
  <div class="${e$2(helpTextClasses)}">
3923
4069
  <slot name="helpText"></slot>
3924
4070
  </div>
3925
- <div class="slotContent">
3926
- <slot @slotchange="${this.handleDefaultSlot}"></slot>
3927
- </div>
3928
4071
  <div id="bibSizer" part="size"></div>
3929
4072
  <${this.dropdownBibTag}
3930
4073
  id="bib"
4074
+ shape="${this.shape}"
3931
4075
  ?data-show="${this.isPopoverVisible}"
3932
4076
  ?isfullscreen="${this.isBibFullscreen}"
3933
4077
  ?common="${this.common}"
3934
4078
  ?rounded="${this.common || this.rounded}"
3935
4079
  ?inset="${this.common || this.inset}">
4080
+ <div class="slotContent">
4081
+ <slot @slotchange="${this.handleDefaultSlot}"></slot>
4082
+ </div>
3936
4083
  </${this.dropdownBibTag}>
3937
4084
  </div>
3938
4085
  `;
@@ -3944,67 +4091,14 @@ class AuroDropdown extends AuroElement {
3944
4091
  * @returns {html} - Returns HTML for the classic layout.
3945
4092
  */
3946
4093
  renderLayoutClassic() {
4094
+ // TODO: check with Doug why this was never used?
3947
4095
  const helpTextClasses = {
3948
- 'helpText': true,
3949
- 'leftIndent': false,
3950
- 'rightIndent': false
4096
+ 'helpText': true
3951
4097
  };
3952
4098
 
3953
4099
  return u$1`
3954
4100
  ${this.renderBasicHtml(helpTextClasses)}
3955
4101
  `;
3956
- // return html`
3957
- // <div>
3958
- // <div
3959
- // id="trigger"
3960
- // class="trigger"
3961
- // part="trigger"
3962
- // tabindex="${this.tabIndex}"
3963
- // ?showBorder="${this.showTriggerBorders}"
3964
- // role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
3965
- // aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
3966
- // aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
3967
- // aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
3968
- // >
3969
- // <div class="triggerContentWrapper">
3970
- // <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
3971
- // <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
3972
- // </label>
3973
- // <div class="triggerContent">
3974
- // <slot
3975
- // name="trigger"
3976
- // @slotchange="${this.handleTriggerContentSlotChange}"></slot>
3977
- // </div>
3978
- // </div>
3979
- // ${this.chevron || this.common ? html`
3980
- // <div
3981
- // id="showStateIcon"
3982
- // part="chevron">
3983
- // <${this.iconTag}
3984
- // category="interface"
3985
- // name="chevron-down"
3986
- // ?onDark="${this.onDark}"
3987
- // variant="${this.disabled ? 'disabled' : 'muted'}">
3988
- // >
3989
- // </${this.iconTag}>
3990
- // </div>
3991
- // ` : undefined }
3992
- // </div>
3993
- // <div class="slotContent">
3994
- // <slot @slotchange="${this.handleDefaultSlot}"></slot>
3995
- // </div>
3996
- // <div id="bibSizer" part="size"></div>
3997
- // <${this.dropdownBibTag}
3998
- // id="bib"
3999
- // ?data-show="${this.isPopoverVisible}"
4000
- // ?isfullscreen="${this.isBibFullscreen}"
4001
- // ?common="${this.common}"
4002
- // ?rounded="${this.common || this.rounded}"
4003
- // ?inset="${this.common || this.inset}"
4004
- // >
4005
- // </${this.dropdownBibTag}>
4006
- // </div>
4007
- // `;
4008
4102
  }
4009
4103
 
4010
4104
  /**