@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.5 → 0.0.0-pr624.7

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 (59) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +1 -0
  2. package/components/bibtemplate/dist/index.js +88 -6
  3. package/components/bibtemplate/dist/registered.js +88 -6
  4. package/components/checkbox/demo/api.min.js +4 -3
  5. package/components/checkbox/demo/index.min.js +4 -3
  6. package/components/checkbox/dist/index.js +4 -3
  7. package/components/checkbox/dist/registered.js +4 -3
  8. package/components/combobox/demo/api.min.js +514 -172
  9. package/components/combobox/demo/index.min.js +514 -172
  10. package/components/combobox/dist/auro-combobox.d.ts +0 -8
  11. package/components/combobox/dist/index.js +425 -153
  12. package/components/combobox/dist/registered.js +425 -153
  13. package/components/counter/demo/api.min.js +404 -106
  14. package/components/counter/demo/index.min.js +404 -106
  15. package/components/counter/dist/index.js +404 -106
  16. package/components/counter/dist/registered.js +404 -106
  17. package/components/datepicker/demo/api.md +13 -5
  18. package/components/datepicker/demo/api.min.js +876 -383
  19. package/components/datepicker/demo/index.md +13 -0
  20. package/components/datepicker/demo/index.min.js +876 -383
  21. package/components/datepicker/dist/auro-datepicker.d.ts +21 -2
  22. package/components/datepicker/dist/index.js +679 -186
  23. package/components/datepicker/dist/registered.js +679 -186
  24. package/components/datepicker/dist/styles/emphasized/style-css.d.ts +2 -0
  25. package/components/datepicker/dist/styles/shapeSize-css.d.ts +2 -0
  26. package/components/dropdown/demo/api.md +1 -1
  27. package/components/dropdown/demo/api.min.js +226 -81
  28. package/components/dropdown/demo/index.min.js +226 -81
  29. package/components/dropdown/dist/auro-dropdown.d.ts +10 -0
  30. package/components/dropdown/dist/auro-dropdownBib.d.ts +8 -0
  31. package/components/dropdown/dist/index.js +226 -81
  32. package/components/dropdown/dist/registered.js +226 -81
  33. package/components/input/demo/api.md +46 -48
  34. package/components/input/demo/api.min.js +96 -15
  35. package/components/input/demo/index.min.js +96 -15
  36. package/components/input/dist/auro-input.d.ts +17 -15
  37. package/components/input/dist/index.js +96 -15
  38. package/components/input/dist/registered.js +96 -15
  39. package/components/menu/demo/api.min.js +76 -6
  40. package/components/menu/demo/index.min.js +76 -6
  41. package/components/menu/dist/index.js +76 -6
  42. package/components/menu/dist/registered.js +76 -6
  43. package/components/radio/demo/api.min.js +4 -3
  44. package/components/radio/demo/index.min.js +4 -3
  45. package/components/radio/dist/index.js +4 -3
  46. package/components/radio/dist/registered.js +4 -3
  47. package/components/select/demo/api.md +12 -4
  48. package/components/select/demo/api.min.js +1178 -200
  49. package/components/select/demo/index.html +1 -0
  50. package/components/select/demo/index.md +298 -777
  51. package/components/select/demo/index.min.js +1178 -200
  52. package/components/select/dist/auro-select.d.ts +96 -4
  53. package/components/select/dist/helptextVersion.d.ts +2 -0
  54. package/components/select/dist/index.js +1106 -198
  55. package/components/select/dist/registered.js +1106 -198
  56. package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
  57. package/components/select/dist/styles/tokens-css.d.ts +2 -0
  58. package/package.json +3 -3
  59. /package/components/{dropdown/dist/styles/style-css.d.ts → datepicker/dist/styles/default/color-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
 
@@ -2582,7 +2673,7 @@ class AuroIcon extends BaseIcon {
2582
2673
 
2583
2674
  var iconVersion = '6.1.2';
2584
2675
 
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}`;
2676
+ var styleCss$1 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}.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}`;
2586
2677
 
2587
2678
  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
2679
 
@@ -2592,7 +2683,6 @@ var tokensCss$1 = css`:host(:not([ondark])){--ds-auro-dropdown-label-text-color:
2592
2683
  // See LICENSE in the project root for license information.
2593
2684
 
2594
2685
 
2595
-
2596
2686
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
2597
2687
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
2598
2688
  'xl',
@@ -2617,7 +2707,7 @@ class AuroDropdownBib extends LitElement {
2617
2707
  */
2618
2708
  this._mobileBreakpointValue = undefined;
2619
2709
 
2620
- AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
2710
+ AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
2621
2711
  }
2622
2712
 
2623
2713
  static get styles() {
@@ -2662,6 +2752,13 @@ class AuroDropdownBib extends LitElement {
2662
2752
  type: Boolean,
2663
2753
  reflect: true
2664
2754
  },
2755
+
2756
+ /**
2757
+ * A reference to the associated bib template element.
2758
+ */
2759
+ bibTemplate: {
2760
+ type: Object
2761
+ }
2665
2762
  };
2666
2763
  }
2667
2764
 
@@ -2694,9 +2791,50 @@ class AuroDropdownBib extends LitElement {
2694
2791
  }
2695
2792
  }
2696
2793
  });
2794
+
2795
+ if (this.bibTemplate) {
2796
+ // If the bib template is found, set the fullscreen attribute
2797
+ if (this.isFullscreen) {
2798
+ this.bibTemplate.setAttribute('isFullscreen', 'true');
2799
+ } else {
2800
+ this.bibTemplate.removeAttribute('isFullscreen');
2801
+ }
2802
+ }
2697
2803
  }
2698
2804
  }
2699
2805
 
2806
+ connectedCallback() {
2807
+ super.connectedCallback();
2808
+
2809
+ // Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
2810
+ this.addEventListener('auro-bibtemplate-connected', (event) => {
2811
+ const bibTemplate = event.detail.element;
2812
+ this.bibTemplate = bibTemplate;
2813
+
2814
+ if (bibTemplate) {
2815
+ // If the bib template is found, set the fullscreen attribute
2816
+ if (this.isFullscreen) {
2817
+ bibTemplate.setAttribute('isFullscreen', 'true');
2818
+ } else {
2819
+ bibTemplate.removeAttribute('isFullscreen');
2820
+ }
2821
+ }
2822
+ });
2823
+ }
2824
+
2825
+ firstUpdated(changedProperties) {
2826
+ super.firstUpdated(changedProperties);
2827
+
2828
+ // Dispatch a custom event when the component is connected
2829
+ this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
2830
+ bubbles: true,
2831
+ composed: true,
2832
+ detail: {
2833
+ element: this
2834
+ }
2835
+ }));
2836
+ }
2837
+
2700
2838
  // function that renders the HTML and CSS into the scope of the component
2701
2839
  render() {
2702
2840
  return html$1`
@@ -2709,7 +2847,7 @@ class AuroDropdownBib extends LitElement {
2709
2847
 
2710
2848
  var dropdownVersion = '3.0.0';
2711
2849
 
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:0px;min-height:60px;max-height:60px;background-color:unset}.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-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}`;
2850
+ 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}.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;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}.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;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}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;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}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;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}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;min-height:44px;max-height:44px}`;
2713
2851
 
2714
2852
  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)}`;
2715
2853
 
@@ -2717,9 +2855,9 @@ var classicColorCss = css`:host([layout*=classic]) .label{color:var(--ds-auro-dr
2717
2855
 
2718
2856
  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)}`;
2719
2857
 
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)}`;
2858
+ 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{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:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}`;
2721
2859
 
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)}`;
2860
+ var styleSnowflakeCss = css`:host{display:block}.wrapper{display:flex;flex-direction:wrapper}.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:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}:host([layout*=snowflake]) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
2723
2861
 
2724
2862
  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)}`;
2725
2863
 
@@ -3053,6 +3191,7 @@ class AuroDropdown extends AuroElement {
3053
3191
  this.layout = 'classic';
3054
3192
  this.shape = 'rounded';
3055
3193
  this.size = 'xl';
3194
+ this.parentBorder = false;
3056
3195
 
3057
3196
  this.privateDefaults();
3058
3197
  }
@@ -3068,7 +3207,8 @@ class AuroDropdown extends AuroElement {
3068
3207
  'trigger': true,
3069
3208
  'wrapper': true,
3070
3209
  'hasFocus': this.hasFocus,
3071
- 'simple': this.simple
3210
+ 'simple': this.simple,
3211
+ 'parentBorder': this.parentBorder
3072
3212
  };
3073
3213
  }
3074
3214
 
@@ -3120,7 +3260,7 @@ class AuroDropdown extends AuroElement {
3120
3260
  /**
3121
3261
  * @private
3122
3262
  */
3123
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
3263
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
3124
3264
 
3125
3265
  /**
3126
3266
  * @private
@@ -3335,6 +3475,15 @@ class AuroDropdown extends AuroElement {
3335
3475
  reflect: true
3336
3476
  },
3337
3477
 
3478
+ /**
3479
+ * Defines if the trigger should size based on the parent element providing the border UI.
3480
+ * @private
3481
+ */
3482
+ parentBorder: {
3483
+ type: Boolean,
3484
+ reflect: true
3485
+ },
3486
+
3338
3487
  /**
3339
3488
  * If declared, the popover and trigger will be set to the same width.
3340
3489
  */
@@ -3462,7 +3611,7 @@ class AuroDropdown extends AuroElement {
3462
3611
  *
3463
3612
  */
3464
3613
  static register(name = "auro-dropdown") {
3465
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
3614
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroDropdown);
3466
3615
  }
3467
3616
 
3468
3617
  /**
@@ -3798,8 +3947,7 @@ class AuroDropdown extends AuroElement {
3798
3947
  * @param {Event} event - The event object representing the slot change.
3799
3948
  * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
3800
3949
  */
3801
- handleDefaultSlot(event) {
3802
- [...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
3950
+ handleDefaultSlot() {
3803
3951
 
3804
3952
  if (this.onSlotChange) {
3805
3953
  this.onSlotChange();
@@ -3861,6 +4009,7 @@ class AuroDropdown extends AuroElement {
3861
4009
  ${this.chevron || this.common ? html$1`
3862
4010
  <div
3863
4011
  id="showStateIcon"
4012
+ class="chevron"
3864
4013
  part="chevron">
3865
4014
  <${this.iconTag}
3866
4015
  category="interface"
@@ -3875,9 +4024,6 @@ class AuroDropdown extends AuroElement {
3875
4024
  <div class="${classMap(helpTextClasses)}">
3876
4025
  <slot name="helpText"></slot>
3877
4026
  </div>
3878
- <div class="slotContent">
3879
- <slot @slotchange="${this.handleDefaultSlot}"></slot>
3880
- </div>
3881
4027
  <div id="bibSizer" part="size"></div>
3882
4028
  <${this.dropdownBibTag}
3883
4029
  id="bib"
@@ -3886,6 +4032,9 @@ class AuroDropdown extends AuroElement {
3886
4032
  ?common="${this.common}"
3887
4033
  ?rounded="${this.common || this.rounded}"
3888
4034
  ?inset="${this.common || this.inset}">
4035
+ <div class="slotContent">
4036
+ <slot @slotchange="${this.handleDefaultSlot}"></slot>
4037
+ </div>
3889
4038
  </${this.dropdownBibTag}>
3890
4039
  </div>
3891
4040
  `;
@@ -3897,67 +4046,63 @@ class AuroDropdown extends AuroElement {
3897
4046
  * @returns {html} - Returns HTML for the classic layout.
3898
4047
  */
3899
4048
  renderLayoutClassic() {
3900
- const helpTextClasses = {
3901
- 'helpText': true,
3902
- 'leftIndent': false,
3903
- 'rightIndent': false
3904
- };
3905
4049
 
3906
4050
  return html$1`
3907
- ${this.renderBasicHtml(helpTextClasses)}
4051
+ <div>
4052
+ <div
4053
+ id="trigger"
4054
+ class="trigger"
4055
+ part="trigger"
4056
+ tabindex="${this.tabIndex}"
4057
+ ?showBorder="${this.showTriggerBorders}"
4058
+ role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
4059
+ aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
4060
+ aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
4061
+ aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
4062
+ >
4063
+ <div class="triggerContentWrapper">
4064
+ <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
4065
+ <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
4066
+ </label>
4067
+ <div class="triggerContent">
4068
+ <slot
4069
+ name="trigger"
4070
+ @slotchange="${this.handleTriggerContentSlotChange}"></slot>
4071
+ </div>
4072
+ </div>
4073
+ ${this.chevron || this.common ? html$1`
4074
+ <div
4075
+ id="showStateIcon"
4076
+ part="chevron">
4077
+ <${this.iconTag}
4078
+ category="interface"
4079
+ name="chevron-down"
4080
+ ?onDark="${this.onDark}"
4081
+ variant="${this.disabled ? 'disabled' : 'muted'}">
4082
+ >
4083
+ </${this.iconTag}>
4084
+ </div>
4085
+ ` : undefined }
4086
+ </div>
4087
+ <${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
4088
+ <slot name="helpText"></slot>
4089
+ </${this.helpTextTag}>
4090
+
4091
+ <div id="bibSizer" part="size"></div>
4092
+ <${this.dropdownBibTag}
4093
+ id="bib"
4094
+ ?data-show="${this.isPopoverVisible}"
4095
+ ?isfullscreen="${this.isBibFullscreen}"
4096
+ ?common="${this.common}"
4097
+ ?rounded="${this.common || this.rounded}"
4098
+ ?inset="${this.common || this.inset}"
4099
+ >
4100
+ <div class="slotContent">
4101
+ <slot @slotchange="${this.handleDefaultSlot}"></slot>
4102
+ </div>
4103
+ </${this.dropdownBibTag}>
4104
+ </div>
3908
4105
  `;
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
4106
  }
3962
4107
 
3963
4108
  /**