@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
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -20,7 +20,7 @@
20
20
  | [chevron](#chevron) | `chevron` | | ` Boolean ` | | If declared, the dropdown displays a chevron on the right. |
21
21
  | [common](#common) | `common` | | ` Boolean ` | | If declared, the dropdown will be styled with the common theme. |
22
22
  | [commonLabelClasses](#commonLabelClasses) | | readonly | `object` | | |
23
- | [commonWrapperClasses](#commonWrapperClasses) | | readonly | `{ trigger: boolean; wrapper: boolean; hasFocus: boolean \| undefined; simple: boolean \| undefined; }` | | |
23
+ | [commonWrapperClasses](#commonWrapperClasses) | | readonly | `{ trigger: boolean; wrapper: boolean; hasFocus: boolean \| undefined; simple: boolean \| undefined; parentBorder: boolean; }` | | |
24
24
  | [disabled](#disabled) | `disabled` | | ` Boolean ` | | If declared, the dropdown is not interactive. |
25
25
  | [error](#error) | `error` | | ` Boolean ` | | If declared in combination with not using the `simple` property or `helpText` slot content, will apply red color to both. |
26
26
  | [errorMessage](#errorMessage) | `errorMessage` | | `string` | "" | Contains the help text message for the current validity error. |
@@ -76,7 +76,7 @@ const t=globalThis,e$1=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShad
76
76
 
77
77
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
78
78
 
79
- let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
79
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
80
80
 
81
81
  /* eslint-disable jsdoc/require-param */
82
82
 
@@ -659,10 +659,11 @@ const flip$1 = function (options) {
659
659
  const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
660
660
  const nextPlacement = placements[nextIndex];
661
661
  if (nextPlacement) {
662
- var _overflowsData$;
663
662
  const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
664
- const hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
665
- if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow) {
663
+ if (!ignoreCrossAxisOverflow ||
664
+ // We leave the current main axis only if every placement on that axis
665
+ // overflows the main axis.
666
+ overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
666
667
  // Try next placement and re-run the lifecycle.
667
668
  return {
668
669
  data: {
@@ -1683,8 +1684,28 @@ class AuroFloatingUI {
1683
1684
  if (!AuroFloatingUI.isMousePressHandlerInitialized && window && window.addEventListener) {
1684
1685
  AuroFloatingUI.isMousePressHandlerInitialized = true;
1685
1686
 
1687
+ // Track timeout for isMousePressed reset to avoid race conditions
1688
+ if (!AuroFloatingUI._mousePressedTimeout) {
1689
+ AuroFloatingUI._mousePressedTimeout = null;
1690
+ }
1686
1691
  const mouseEventGlobalHandler = (event) => {
1687
- AuroFloatingUI.isMousePressed = event.type === 'mousedown';
1692
+ const isPressed = event.type === 'mousedown';
1693
+ if (isPressed) {
1694
+ // Clear any pending timeout to prevent race condition
1695
+ if (AuroFloatingUI._mousePressedTimeout !== null) {
1696
+ clearTimeout(AuroFloatingUI._mousePressedTimeout);
1697
+ AuroFloatingUI._mousePressedTimeout = null;
1698
+ }
1699
+ if (!AuroFloatingUI.isMousePressed) {
1700
+ AuroFloatingUI.isMousePressed = true;
1701
+ }
1702
+ } else if (AuroFloatingUI.isMousePressed && !isPressed) {
1703
+ // Schedule reset and track timeout ID
1704
+ AuroFloatingUI._mousePressedTimeout = setTimeout(() => {
1705
+ AuroFloatingUI.isMousePressed = false;
1706
+ AuroFloatingUI._mousePressedTimeout = null;
1707
+ }, 0);
1708
+ }
1688
1709
  };
1689
1710
 
1690
1711
  window.addEventListener('mousedown', mouseEventGlobalHandler);
@@ -1811,6 +1832,7 @@ class AuroFloatingUI {
1811
1832
 
1812
1833
  // Compute the position of the bib
1813
1834
  computePosition(this.element.trigger, this.element.bib, {
1835
+ strategy: this.element.floaterConfig?.strategy || 'fixed',
1814
1836
  placement: this.element.floaterConfig?.placement,
1815
1837
  middleware: middleware || []
1816
1838
  }).then(({ x, y }) => { // eslint-disable-line id-length
@@ -1945,8 +1967,9 @@ class AuroFloatingUI {
1945
1967
  if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
1946
1968
  return;
1947
1969
  }
1948
- // if fullscreen bib is still open and the focus is missing, do not close
1949
- if (this.element.bib.hasAttribute('isfullscreen') && activeElement === document.body) {
1970
+
1971
+ // if fullscreen bib is in fullscreen mode, do not close
1972
+ if (this.element.bib.hasAttribute('isfullscreen')) {
1950
1973
  return;
1951
1974
  }
1952
1975
 
@@ -2247,8 +2270,6 @@ class AuroFloatingUI {
2247
2270
  this.element.hoverToggle = this.element.floaterConfig.hoverToggle;
2248
2271
  }
2249
2272
 
2250
- document.body.append(this.element.bib);
2251
-
2252
2273
  this.regenerateBibId();
2253
2274
  this.handleTriggerTabIndex();
2254
2275
 
@@ -2485,6 +2506,76 @@ var tokensCss$2 = i$2`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-d
2485
2506
 
2486
2507
  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)}`;
2487
2508
 
2509
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
2510
+ // See LICENSE in the project root for license information.
2511
+
2512
+ // ---------------------------------------------------------------------
2513
+
2514
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
2515
+
2516
+ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
2517
+
2518
+ /* eslint-disable jsdoc/require-param */
2519
+
2520
+ /**
2521
+ * This will register a new custom element with the browser.
2522
+ * @param {String} name - The name of the custom element.
2523
+ * @param {Object} componentClass - The class to register as a custom element.
2524
+ * @returns {void}
2525
+ */
2526
+ registerComponent(name, componentClass) {
2527
+ if (!customElements.get(name)) {
2528
+ customElements.define(name, class extends componentClass {});
2529
+ }
2530
+ }
2531
+
2532
+ /**
2533
+ * Finds and returns the closest HTML Element based on a selector.
2534
+ * @returns {void}
2535
+ */
2536
+ closestElement(
2537
+ selector, // selector like in .closest()
2538
+ base = this, // extra functionality to skip a parent
2539
+ __Closest = (el, found = el && el.closest(selector)) =>
2540
+ !el || el === document || el === window
2541
+ ? null // standard .closest() returns null for non-found selectors also
2542
+ : found
2543
+ ? found // found a selector INside this element
2544
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
2545
+ ) {
2546
+ return __Closest(base);
2547
+ }
2548
+ /* eslint-enable jsdoc/require-param */
2549
+
2550
+ /**
2551
+ * 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.
2552
+ * @param {Object} elem - The element to check.
2553
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
2554
+ * @returns {void}
2555
+ */
2556
+ handleComponentTagRename(elem, tagName) {
2557
+ const tag = tagName.toLowerCase();
2558
+ const elemTag = elem.tagName.toLowerCase();
2559
+
2560
+ if (elemTag !== tag) {
2561
+ elem.setAttribute(tag, true);
2562
+ }
2563
+ }
2564
+
2565
+ /**
2566
+ * Validates if an element is a specific Auro component.
2567
+ * @param {Object} elem - The element to validate.
2568
+ * @param {String} tagName - The name of the Auro component to check against.
2569
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
2570
+ */
2571
+ elementMatch(elem, tagName) {
2572
+ const tag = tagName.toLowerCase();
2573
+ const elemTag = elem.tagName.toLowerCase();
2574
+
2575
+ return elemTag === tag || elem.hasAttribute(tag);
2576
+ }
2577
+ };
2578
+
2488
2579
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
2489
2580
  // See LICENSE in the project root for license information.
2490
2581
 
@@ -2654,7 +2745,7 @@ class AuroIcon extends BaseIcon {
2654
2745
 
2655
2746
  var iconVersion = '6.1.2';
2656
2747
 
2657
- 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}`;
2748
+ var styleCss$1 = i$2`: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}`;
2658
2749
 
2659
2750
  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)}`;
2660
2751
 
@@ -2664,7 +2755,6 @@ var tokensCss$1 = i$2`:host(:not([ondark])){--ds-auro-dropdown-label-text-color:
2664
2755
  // See LICENSE in the project root for license information.
2665
2756
 
2666
2757
 
2667
-
2668
2758
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
2669
2759
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
2670
2760
  'xl',
@@ -2689,7 +2779,7 @@ class AuroDropdownBib extends i {
2689
2779
  */
2690
2780
  this._mobileBreakpointValue = undefined;
2691
2781
 
2692
- AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
2782
+ AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
2693
2783
  }
2694
2784
 
2695
2785
  static get styles() {
@@ -2734,6 +2824,13 @@ class AuroDropdownBib extends i {
2734
2824
  type: Boolean,
2735
2825
  reflect: true
2736
2826
  },
2827
+
2828
+ /**
2829
+ * A reference to the associated bib template element.
2830
+ */
2831
+ bibTemplate: {
2832
+ type: Object
2833
+ }
2737
2834
  };
2738
2835
  }
2739
2836
 
@@ -2766,9 +2863,50 @@ class AuroDropdownBib extends i {
2766
2863
  }
2767
2864
  }
2768
2865
  });
2866
+
2867
+ if (this.bibTemplate) {
2868
+ // If the bib template is found, set the fullscreen attribute
2869
+ if (this.isFullscreen) {
2870
+ this.bibTemplate.setAttribute('isFullscreen', 'true');
2871
+ } else {
2872
+ this.bibTemplate.removeAttribute('isFullscreen');
2873
+ }
2874
+ }
2769
2875
  }
2770
2876
  }
2771
2877
 
2878
+ connectedCallback() {
2879
+ super.connectedCallback();
2880
+
2881
+ // Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
2882
+ this.addEventListener('auro-bibtemplate-connected', (event) => {
2883
+ const bibTemplate = event.detail.element;
2884
+ this.bibTemplate = bibTemplate;
2885
+
2886
+ if (bibTemplate) {
2887
+ // If the bib template is found, set the fullscreen attribute
2888
+ if (this.isFullscreen) {
2889
+ bibTemplate.setAttribute('isFullscreen', 'true');
2890
+ } else {
2891
+ bibTemplate.removeAttribute('isFullscreen');
2892
+ }
2893
+ }
2894
+ });
2895
+ }
2896
+
2897
+ firstUpdated(changedProperties) {
2898
+ super.firstUpdated(changedProperties);
2899
+
2900
+ // Dispatch a custom event when the component is connected
2901
+ this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
2902
+ bubbles: true,
2903
+ composed: true,
2904
+ detail: {
2905
+ element: this
2906
+ }
2907
+ }));
2908
+ }
2909
+
2772
2910
  // function that renders the HTML and CSS into the scope of the component
2773
2911
  render() {
2774
2912
  return u$1`
@@ -2781,7 +2919,7 @@ class AuroDropdownBib extends i {
2781
2919
 
2782
2920
  var dropdownVersion = '3.0.0';
2783
2921
 
2784
- 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: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}`;
2922
+ 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}.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}`;
2785
2923
 
2786
2924
  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)}`;
2787
2925
 
@@ -2789,9 +2927,9 @@ var classicColorCss = i$2`:host([layout*=classic]) .label{color:var(--ds-auro-dr
2789
2927
 
2790
2928
  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)}`;
2791
2929
 
2792
- 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)}`;
2930
+ 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{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))}`;
2793
2931
 
2794
- 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)}`;
2932
+ var styleSnowflakeCss = i$2`: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)}`;
2795
2933
 
2796
2934
  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)}`;
2797
2935
 
@@ -3125,6 +3263,7 @@ class AuroDropdown extends AuroElement {
3125
3263
  this.layout = 'classic';
3126
3264
  this.shape = 'rounded';
3127
3265
  this.size = 'xl';
3266
+ this.parentBorder = false;
3128
3267
 
3129
3268
  this.privateDefaults();
3130
3269
  }
@@ -3140,7 +3279,8 @@ class AuroDropdown extends AuroElement {
3140
3279
  'trigger': true,
3141
3280
  'wrapper': true,
3142
3281
  'hasFocus': this.hasFocus,
3143
- 'simple': this.simple
3282
+ 'simple': this.simple,
3283
+ 'parentBorder': this.parentBorder
3144
3284
  };
3145
3285
  }
3146
3286
 
@@ -3192,7 +3332,7 @@ class AuroDropdown extends AuroElement {
3192
3332
  /**
3193
3333
  * @private
3194
3334
  */
3195
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
3335
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
3196
3336
 
3197
3337
  /**
3198
3338
  * @private
@@ -3407,6 +3547,15 @@ class AuroDropdown extends AuroElement {
3407
3547
  reflect: true
3408
3548
  },
3409
3549
 
3550
+ /**
3551
+ * Defines if the trigger should size based on the parent element providing the border UI.
3552
+ * @private
3553
+ */
3554
+ parentBorder: {
3555
+ type: Boolean,
3556
+ reflect: true
3557
+ },
3558
+
3410
3559
  /**
3411
3560
  * If declared, the popover and trigger will be set to the same width.
3412
3561
  */
@@ -3534,7 +3683,7 @@ class AuroDropdown extends AuroElement {
3534
3683
  *
3535
3684
  */
3536
3685
  static register(name = "auro-dropdown") {
3537
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
3686
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroDropdown);
3538
3687
  }
3539
3688
 
3540
3689
  /**
@@ -3870,8 +4019,7 @@ class AuroDropdown extends AuroElement {
3870
4019
  * @param {Event} event - The event object representing the slot change.
3871
4020
  * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
3872
4021
  */
3873
- handleDefaultSlot(event) {
3874
- [...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
4022
+ handleDefaultSlot() {
3875
4023
 
3876
4024
  if (this.onSlotChange) {
3877
4025
  this.onSlotChange();
@@ -3933,6 +4081,7 @@ class AuroDropdown extends AuroElement {
3933
4081
  ${this.chevron || this.common ? u$1`
3934
4082
  <div
3935
4083
  id="showStateIcon"
4084
+ class="chevron"
3936
4085
  part="chevron">
3937
4086
  <${this.iconTag}
3938
4087
  category="interface"
@@ -3947,9 +4096,6 @@ class AuroDropdown extends AuroElement {
3947
4096
  <div class="${e$2(helpTextClasses)}">
3948
4097
  <slot name="helpText"></slot>
3949
4098
  </div>
3950
- <div class="slotContent">
3951
- <slot @slotchange="${this.handleDefaultSlot}"></slot>
3952
- </div>
3953
4099
  <div id="bibSizer" part="size"></div>
3954
4100
  <${this.dropdownBibTag}
3955
4101
  id="bib"
@@ -3958,6 +4104,9 @@ class AuroDropdown extends AuroElement {
3958
4104
  ?common="${this.common}"
3959
4105
  ?rounded="${this.common || this.rounded}"
3960
4106
  ?inset="${this.common || this.inset}">
4107
+ <div class="slotContent">
4108
+ <slot @slotchange="${this.handleDefaultSlot}"></slot>
4109
+ </div>
3961
4110
  </${this.dropdownBibTag}>
3962
4111
  </div>
3963
4112
  `;
@@ -3969,67 +4118,63 @@ class AuroDropdown extends AuroElement {
3969
4118
  * @returns {html} - Returns HTML for the classic layout.
3970
4119
  */
3971
4120
  renderLayoutClassic() {
3972
- const helpTextClasses = {
3973
- 'helpText': true,
3974
- 'leftIndent': false,
3975
- 'rightIndent': false
3976
- };
3977
4121
 
3978
4122
  return u$1`
3979
- ${this.renderBasicHtml(helpTextClasses)}
4123
+ <div>
4124
+ <div
4125
+ id="trigger"
4126
+ class="trigger"
4127
+ part="trigger"
4128
+ tabindex="${this.tabIndex}"
4129
+ ?showBorder="${this.showTriggerBorders}"
4130
+ role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
4131
+ aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
4132
+ aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
4133
+ aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
4134
+ >
4135
+ <div class="triggerContentWrapper">
4136
+ <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
4137
+ <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
4138
+ </label>
4139
+ <div class="triggerContent">
4140
+ <slot
4141
+ name="trigger"
4142
+ @slotchange="${this.handleTriggerContentSlotChange}"></slot>
4143
+ </div>
4144
+ </div>
4145
+ ${this.chevron || this.common ? u$1`
4146
+ <div
4147
+ id="showStateIcon"
4148
+ part="chevron">
4149
+ <${this.iconTag}
4150
+ category="interface"
4151
+ name="chevron-down"
4152
+ ?onDark="${this.onDark}"
4153
+ variant="${this.disabled ? 'disabled' : 'muted'}">
4154
+ >
4155
+ </${this.iconTag}>
4156
+ </div>
4157
+ ` : undefined }
4158
+ </div>
4159
+ <${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
4160
+ <slot name="helpText"></slot>
4161
+ </${this.helpTextTag}>
4162
+
4163
+ <div id="bibSizer" part="size"></div>
4164
+ <${this.dropdownBibTag}
4165
+ id="bib"
4166
+ ?data-show="${this.isPopoverVisible}"
4167
+ ?isfullscreen="${this.isBibFullscreen}"
4168
+ ?common="${this.common}"
4169
+ ?rounded="${this.common || this.rounded}"
4170
+ ?inset="${this.common || this.inset}"
4171
+ >
4172
+ <div class="slotContent">
4173
+ <slot @slotchange="${this.handleDefaultSlot}"></slot>
4174
+ </div>
4175
+ </${this.dropdownBibTag}>
4176
+ </div>
3980
4177
  `;
3981
- // return html`
3982
- // <div>
3983
- // <div
3984
- // id="trigger"
3985
- // class="trigger"
3986
- // part="trigger"
3987
- // tabindex="${this.tabIndex}"
3988
- // ?showBorder="${this.showTriggerBorders}"
3989
- // role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
3990
- // aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
3991
- // aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
3992
- // aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
3993
- // >
3994
- // <div class="triggerContentWrapper">
3995
- // <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
3996
- // <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
3997
- // </label>
3998
- // <div class="triggerContent">
3999
- // <slot
4000
- // name="trigger"
4001
- // @slotchange="${this.handleTriggerContentSlotChange}"></slot>
4002
- // </div>
4003
- // </div>
4004
- // ${this.chevron || this.common ? html`
4005
- // <div
4006
- // id="showStateIcon"
4007
- // part="chevron">
4008
- // <${this.iconTag}
4009
- // category="interface"
4010
- // name="chevron-down"
4011
- // ?onDark="${this.onDark}"
4012
- // variant="${this.disabled ? 'disabled' : 'muted'}">
4013
- // >
4014
- // </${this.iconTag}>
4015
- // </div>
4016
- // ` : undefined }
4017
- // </div>
4018
- // <div class="slotContent">
4019
- // <slot @slotchange="${this.handleDefaultSlot}"></slot>
4020
- // </div>
4021
- // <div id="bibSizer" part="size"></div>
4022
- // <${this.dropdownBibTag}
4023
- // id="bib"
4024
- // ?data-show="${this.isPopoverVisible}"
4025
- // ?isfullscreen="${this.isBibFullscreen}"
4026
- // ?common="${this.common}"
4027
- // ?rounded="${this.common || this.rounded}"
4028
- // ?inset="${this.common || this.inset}"
4029
- // >
4030
- // </${this.dropdownBibTag}>
4031
- // </div>
4032
- // `;
4033
4178
  }
4034
4179
 
4035
4180
  /**