@aurodesignsystem-dev/auro-formkit 0.0.0-pr750.0 → 0.0.0-pr753.0

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 (87) hide show
  1. package/components/bibtemplate/dist/index.js +1 -1
  2. package/components/bibtemplate/dist/registered.js +1 -1
  3. package/components/checkbox/demo/api.min.js +9 -9
  4. package/components/checkbox/demo/index.min.js +9 -9
  5. package/components/checkbox/dist/index.js +9 -9
  6. package/components/checkbox/dist/registered.js +9 -9
  7. package/components/combobox/demo/api.html +10 -16
  8. package/components/combobox/demo/api.md +6 -12
  9. package/components/combobox/demo/api.min.js +101 -84
  10. package/components/combobox/demo/index.html +10 -16
  11. package/components/combobox/demo/index.min.js +101 -84
  12. package/components/combobox/demo/readme.html +9 -16
  13. package/components/combobox/dist/index.js +89 -47
  14. package/components/combobox/dist/registered.js +89 -47
  15. package/components/counter/demo/api.html +10 -16
  16. package/components/counter/demo/api.md +7 -140
  17. package/components/counter/demo/api.min.js +387 -557
  18. package/components/counter/demo/index.html +10 -16
  19. package/components/counter/demo/index.md +0 -82
  20. package/components/counter/demo/index.min.js +387 -557
  21. package/components/counter/demo/readme.html +9 -16
  22. package/components/counter/dist/auro-counter-group.d.ts +14 -71
  23. package/components/counter/dist/auro-counter.d.ts +0 -10
  24. package/components/counter/dist/index.js +387 -557
  25. package/components/counter/dist/registered.js +387 -557
  26. package/components/datepicker/demo/api.html +10 -16
  27. package/components/datepicker/demo/api.min.js +95 -68
  28. package/components/datepicker/demo/index.html +10 -16
  29. package/components/datepicker/demo/index.min.js +95 -68
  30. package/components/datepicker/demo/readme.html +9 -16
  31. package/components/datepicker/dist/auro-datepicker.d.ts +0 -6
  32. package/components/datepicker/dist/index.js +95 -68
  33. package/components/datepicker/dist/registered.js +95 -68
  34. package/components/dropdown/demo/api.html +10 -16
  35. package/components/dropdown/demo/api.md +268 -76
  36. package/components/dropdown/demo/api.min.js +68 -26
  37. package/components/dropdown/demo/index.html +10 -16
  38. package/components/dropdown/demo/index.md +363 -45
  39. package/components/dropdown/demo/index.min.js +68 -26
  40. package/components/dropdown/demo/readme.html +9 -16
  41. package/components/dropdown/dist/auro-dropdown.d.ts +71 -21
  42. package/components/dropdown/dist/index.js +68 -26
  43. package/components/dropdown/dist/registered.js +68 -26
  44. package/components/form/demo/api.html +9 -16
  45. package/components/form/demo/autocomplete.html +3 -19
  46. package/components/form/demo/index.html +9 -16
  47. package/components/form/demo/readme.html +9 -16
  48. package/components/form/demo/working.html +13 -19
  49. package/components/helptext/dist/index.js +1 -1
  50. package/components/helptext/dist/registered.js +1 -1
  51. package/components/input/demo/api.html +10 -16
  52. package/components/input/demo/api.md +1 -1
  53. package/components/input/demo/api.min.js +14 -14
  54. package/components/input/demo/index.html +10 -16
  55. package/components/input/demo/index.min.js +14 -14
  56. package/components/input/demo/readme.html +9 -16
  57. package/components/input/dist/base-input.d.ts +1 -1
  58. package/components/input/dist/index.js +14 -14
  59. package/components/input/dist/registered.js +14 -14
  60. package/components/menu/demo/api.html +32 -16
  61. package/components/menu/demo/api.md +1 -1
  62. package/components/menu/demo/api.min.js +12 -37
  63. package/components/menu/demo/index.html +10 -16
  64. package/components/menu/demo/index.min.js +12 -37
  65. package/components/menu/demo/readme.html +9 -16
  66. package/components/menu/dist/auro-menu.d.ts +2 -13
  67. package/components/menu/dist/index.js +12 -37
  68. package/components/menu/dist/registered.js +12 -37
  69. package/components/radio/demo/api.html +10 -16
  70. package/components/radio/demo/api.min.js +10 -10
  71. package/components/radio/demo/index.html +10 -16
  72. package/components/radio/demo/index.min.js +10 -10
  73. package/components/radio/demo/readme.html +9 -16
  74. package/components/radio/dist/auro-radio.d.ts +1 -1
  75. package/components/radio/dist/index.js +10 -10
  76. package/components/radio/dist/registered.js +10 -10
  77. package/components/select/demo/api.html +10 -16
  78. package/components/select/demo/api.md +16 -19
  79. package/components/select/demo/api.min.js +295 -136
  80. package/components/select/demo/index.html +11 -16
  81. package/components/select/demo/index.md +1 -1
  82. package/components/select/demo/index.min.js +295 -136
  83. package/components/select/demo/readme.html +9 -16
  84. package/components/select/dist/auro-select.d.ts +7 -32
  85. package/components/select/dist/index.js +283 -99
  86. package/components/select/dist/registered.js +283 -99
  87. package/package.json +25 -26
@@ -3187,11 +3187,11 @@ var dropdownVersion = '3.0.0';
3187
3187
 
3188
3188
  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}`;
3189
3189
 
3190
- var colorCss$1 = i$2`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([ondark])) .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-within,:host(:not([ondark])) .wrapper: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(:not([onDark])[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);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .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([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
3190
+ var colorCss$1 = i$2`:host(:not([ondark])) .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-within,:host(:not([ondark])) .wrapper: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(:not([onDark])[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);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .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([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
3191
3191
 
3192
3192
  var classicColorCss = i$2``;
3193
3193
 
3194
- 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]) .wrapper{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]) .wrapper: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([matchwidth]) #bibSizer{width:100%}`;
3194
+ 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]) .wrapper{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]) .wrapper: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}`;
3195
3195
 
3196
3196
  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:1;flex-direction:row;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)}`;
3197
3197
 
@@ -3199,7 +3199,7 @@ var styleSnowflakeCss = i$2`:host{display:block}.wrapper{display:flex;flex:1;fle
3199
3199
 
3200
3200
  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)}`;
3201
3201
 
3202
- var styleCss = i$2`:host{position:relative;display:block}.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}`;
3202
+ 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}`;
3203
3203
 
3204
3204
  var tokensCss = i$2`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
3205
3205
 
@@ -3504,8 +3504,10 @@ class AuroElement extends i {
3504
3504
  // See LICENSE in the project root for license information.
3505
3505
 
3506
3506
 
3507
- /*
3507
+ /**
3508
+ * @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
3508
3509
  * @slot - Default slot for the popover content.
3510
+ * @slot label - Defines the content of the label.
3509
3511
  * @slot helpText - Defines the content of the helpText.
3510
3512
  * @slot trigger - Defines the content of the trigger.
3511
3513
  * @csspart trigger - The trigger content container.
@@ -3524,22 +3526,18 @@ class AuroDropdown extends AuroElement {
3524
3526
  this.matchWidth = false;
3525
3527
  this.noHideOnThisFocusLoss = false;
3526
3528
 
3527
- this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
3529
+ this.errorMessage = ''; // TODO - check with Doug if there is still more to do here
3528
3530
 
3529
3531
  // Layout Config
3530
- this.layout = undefined;
3531
- this.shape = undefined;
3532
- this.size = undefined;
3532
+ this.layout = 'classic';
3533
+ this.shape = 'classic';
3534
+ this.size = 'xl';
3533
3535
 
3534
3536
  this.parentBorder = false;
3535
3537
 
3536
3538
  this.privateDefaults();
3537
3539
  }
3538
3540
 
3539
- /**
3540
- * @private
3541
- * @returns {object} Class definition for the wrapper element.
3542
- */
3543
3541
  get commonWrapperClasses() {
3544
3542
  return {
3545
3543
  'trigger': true,
@@ -3559,8 +3557,12 @@ class AuroDropdown extends AuroElement {
3559
3557
  this.disabled = false;
3560
3558
  this.disableFocusTrap = false;
3561
3559
  this.error = false;
3560
+ this.inset = false;
3561
+ this.rounded = false;
3562
3562
  this.tabIndex = 0;
3563
3563
  this.noToggle = false;
3564
+ this.a11yAutocomplete = 'none';
3565
+ this.labeled = true;
3564
3566
  this.a11yRole = 'button';
3565
3567
  this.onDark = false;
3566
3568
  this.showTriggerBorders = true;
@@ -3682,27 +3684,26 @@ class AuroDropdown extends AuroElement {
3682
3684
  },
3683
3685
 
3684
3686
  /**
3685
- * If declared, the dropdown will only show by calling the API .show() public method.
3686
- * @default false
3687
+ * If declared, applies a border around the trigger slot.
3687
3688
  */
3688
- disableEventShow: {
3689
+ simple: {
3689
3690
  type: Boolean,
3690
3691
  reflect: true
3691
3692
  },
3692
3693
 
3693
3694
  /**
3694
- * If declared, applies a border around the trigger slot.
3695
+ * If declared, the dropdown displays a chevron on the right.
3696
+ * @attr {Boolean} chevron
3695
3697
  */
3696
- simple: {
3698
+ chevron: {
3697
3699
  type: Boolean,
3698
3700
  reflect: true
3699
3701
  },
3700
3702
 
3701
3703
  /**
3702
- * If declared, the dropdown displays a chevron on the right.
3703
- * @attr {Boolean} chevron
3704
+ * If declared, the dropdown will be styled with the common theme.
3704
3705
  */
3705
- chevron: {
3706
+ common: {
3706
3707
  type: Boolean,
3707
3708
  reflect: true
3708
3709
  },
@@ -3716,7 +3717,7 @@ class AuroDropdown extends AuroElement {
3716
3717
  },
3717
3718
 
3718
3719
  /**
3719
- * If declared, the focus trap inside of bib will be turned off.
3720
+ * If declare, the focus trap inside of bib will be turned off.
3720
3721
  */
3721
3722
  disableFocusTrap: {
3722
3723
  type: Boolean,
@@ -3763,6 +3764,22 @@ class AuroDropdown extends AuroElement {
3763
3764
  reflect: true
3764
3765
  },
3765
3766
 
3767
+ /**
3768
+ * Makes the trigger to be full width of its parent container.
3769
+ */
3770
+ fluid: {
3771
+ type: Boolean,
3772
+ reflect: true
3773
+ },
3774
+
3775
+ /**
3776
+ * If declared, will apply padding around trigger slot content.
3777
+ */
3778
+ inset: {
3779
+ type: Boolean,
3780
+ reflect: true
3781
+ },
3782
+
3766
3783
  /**
3767
3784
  * If true, the dropdown bib is displayed.
3768
3785
  */
@@ -3806,6 +3823,15 @@ class AuroDropdown extends AuroElement {
3806
3823
  reflect: true
3807
3824
  },
3808
3825
 
3826
+ /**
3827
+ * Defines if there is a label preset.
3828
+ * @private
3829
+ */
3830
+ labeled: {
3831
+ type: Boolean,
3832
+ reflect: true
3833
+ },
3834
+
3809
3835
  /**
3810
3836
  * Defines if the trigger should size based on the parent element providing the border UI.
3811
3837
  * @private
@@ -3866,9 +3892,6 @@ class AuroDropdown extends AuroElement {
3866
3892
  reflect: true
3867
3893
  },
3868
3894
 
3869
- /**
3870
- * If declared, and a function is set, that function will execute when the slot content is updated.
3871
- */
3872
3895
  onSlotChange: {
3873
3896
  type: Function,
3874
3897
  reflect: false
@@ -3883,6 +3906,14 @@ class AuroDropdown extends AuroElement {
3883
3906
  reflect: true
3884
3907
  },
3885
3908
 
3909
+ /**
3910
+ * If declared, will apply border-radius to trigger and default slots.
3911
+ */
3912
+ rounded: {
3913
+ type: Boolean,
3914
+ reflect: true
3915
+ },
3916
+
3886
3917
  /**
3887
3918
  * @private
3888
3919
  */
@@ -3897,14 +3928,22 @@ class AuroDropdown extends AuroElement {
3897
3928
  type: String || undefined,
3898
3929
  attribute: false,
3899
3930
  reflect: false
3931
+ },
3932
+
3933
+ /**
3934
+ * The value for the aria-autocomplete attribute of the trigger element.
3935
+ */
3936
+ a11yAutocomplete: {
3937
+ type: String,
3938
+ attribute: false,
3900
3939
  }
3901
3940
  };
3902
3941
  }
3903
3942
 
3904
3943
  static get styles() {
3905
3944
  return [
3906
- tokensCss$1,
3907
3945
  colorCss$1,
3946
+ tokensCss$1,
3908
3947
 
3909
3948
  // default layout
3910
3949
  classicColorCss,
@@ -4344,7 +4383,10 @@ class AuroDropdown extends AuroElement {
4344
4383
  id="bib"
4345
4384
  shape="${this.shape}"
4346
4385
  ?data-show="${this.isPopoverVisible}"
4347
- ?isfullscreen="${this.isBibFullscreen}">
4386
+ ?isfullscreen="${this.isBibFullscreen}"
4387
+ ?common="${this.common}"
4388
+ ?rounded="${this.common || this.rounded}"
4389
+ ?inset="${this.common || this.inset}">
4348
4390
  <div class="slotContent">
4349
4391
  <slot @slotchange="${this.handleDefaultSlot}"></slot>
4350
4392
  </div>
@@ -16,24 +16,17 @@
16
16
  <head>
17
17
  <meta charset="UTF-8" />
18
18
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
19
- <title>Auro Web Component Demo | auro-dropdown</title>
20
-
21
- <!-- Prism.js Stylesheet -->
22
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
23
-
24
- <!-- Legacy reference is still needed to support auro-dropdown's use of legacy token values at this time -->
25
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
26
-
27
- <!-- Design Token Alaska Theme -->
28
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
29
-
30
- <!-- Webcore Stylesheet Alaska Theme -->
31
- <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
32
-
33
- <!-- Demo Specific Styles -->
19
+ <title>Auro Web Component Generator | auro-dropdown custom element</title>
20
+ <link
21
+ rel="stylesheet"
22
+ type="text/css"
23
+ href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"
24
+ />
25
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css">
26
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/alaska/CSSCustomProperties--alaska.css">
34
27
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
35
28
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
36
- </head>
29
+ </head>
37
30
  <body class="auro-markdown">
38
31
  <main></main>
39
32
 
@@ -1,3 +1,16 @@
1
+ /**
2
+ * @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
3
+ * @slot - Default slot for the popover content.
4
+ * @slot label - Defines the content of the label.
5
+ * @slot helpText - Defines the content of the helpText.
6
+ * @slot trigger - Defines the content of the trigger.
7
+ * @csspart trigger - The trigger content container.
8
+ * @csspart chevron - The collapsed/expanded state icon container.
9
+ * @csspart helpText - The helpText content container.
10
+ * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
11
+ * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
12
+ * @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
13
+ */
1
14
  export class AuroDropdown extends AuroElement {
2
15
  static get properties(): {
3
16
  /**
@@ -8,14 +21,6 @@ export class AuroDropdown extends AuroElement {
8
21
  type: BooleanConstructor;
9
22
  reflect: boolean;
10
23
  };
11
- /**
12
- * If declared, the dropdown will only show by calling the API .show() public method.
13
- * @default false
14
- */
15
- disableEventShow: {
16
- type: BooleanConstructor;
17
- reflect: boolean;
18
- };
19
24
  /**
20
25
  * If declared, applies a border around the trigger slot.
21
26
  */
@@ -31,6 +36,13 @@ export class AuroDropdown extends AuroElement {
31
36
  type: BooleanConstructor;
32
37
  reflect: boolean;
33
38
  };
39
+ /**
40
+ * If declared, the dropdown will be styled with the common theme.
41
+ */
42
+ common: {
43
+ type: BooleanConstructor;
44
+ reflect: boolean;
45
+ };
34
46
  /**
35
47
  * If declared, the dropdown is not interactive.
36
48
  */
@@ -39,7 +51,7 @@ export class AuroDropdown extends AuroElement {
39
51
  reflect: boolean;
40
52
  };
41
53
  /**
42
- * If declared, the focus trap inside of bib will be turned off.
54
+ * If declare, the focus trap inside of bib will be turned off.
43
55
  */
44
56
  disableFocusTrap: {
45
57
  type: BooleanConstructor;
@@ -80,6 +92,20 @@ export class AuroDropdown extends AuroElement {
80
92
  type: BooleanConstructor;
81
93
  reflect: boolean;
82
94
  };
95
+ /**
96
+ * Makes the trigger to be full width of its parent container.
97
+ */
98
+ fluid: {
99
+ type: BooleanConstructor;
100
+ reflect: boolean;
101
+ };
102
+ /**
103
+ * If declared, will apply padding around trigger slot content.
104
+ */
105
+ inset: {
106
+ type: BooleanConstructor;
107
+ reflect: boolean;
108
+ };
83
109
  /**
84
110
  * If true, the dropdown bib is displayed.
85
111
  */
@@ -118,6 +144,14 @@ export class AuroDropdown extends AuroElement {
118
144
  type: StringConstructor;
119
145
  reflect: boolean;
120
146
  };
147
+ /**
148
+ * Defines if there is a label preset.
149
+ * @private
150
+ */
151
+ labeled: {
152
+ type: BooleanConstructor;
153
+ reflect: boolean;
154
+ };
121
155
  /**
122
156
  * Defines if the trigger should size based on the parent element providing the border UI.
123
157
  * @private
@@ -171,9 +205,6 @@ export class AuroDropdown extends AuroElement {
171
205
  type: BooleanConstructor;
172
206
  reflect: boolean;
173
207
  };
174
- /**
175
- * If declared, and a function is set, that function will execute when the slot content is updated.
176
- */
177
208
  onSlotChange: {
178
209
  type: FunctionConstructor;
179
210
  reflect: boolean;
@@ -186,6 +217,13 @@ export class AuroDropdown extends AuroElement {
186
217
  type: StringConstructor;
187
218
  reflect: boolean;
188
219
  };
220
+ /**
221
+ * If declared, will apply border-radius to trigger and default slots.
222
+ */
223
+ rounded: {
224
+ type: BooleanConstructor;
225
+ reflect: boolean;
226
+ };
189
227
  /**
190
228
  * @private
191
229
  */
@@ -200,6 +238,13 @@ export class AuroDropdown extends AuroElement {
200
238
  attribute: boolean;
201
239
  reflect: boolean;
202
240
  };
241
+ /**
242
+ * The value for the aria-autocomplete attribute of the trigger element.
243
+ */
244
+ a11yAutocomplete: {
245
+ type: StringConstructor;
246
+ attribute: boolean;
247
+ };
203
248
  };
204
249
  static get styles(): import("lit").CSSResult[];
205
250
  /**
@@ -215,16 +260,17 @@ export class AuroDropdown extends AuroElement {
215
260
  isBibFullscreen: boolean;
216
261
  matchWidth: boolean;
217
262
  noHideOnThisFocusLoss: boolean;
218
- errorMessage: any;
219
- layout: any;
220
- shape: any;
221
- size: any;
263
+ errorMessage: string;
264
+ shape: string;
265
+ size: string;
222
266
  parentBorder: boolean;
223
- /**
224
- * @private
225
- * @returns {object} Class definition for the wrapper element.
226
- */
227
- private get commonWrapperClasses();
267
+ get commonWrapperClasses(): {
268
+ trigger: boolean;
269
+ wrapper: boolean;
270
+ hasFocus: boolean;
271
+ simple: boolean;
272
+ parentBorder: boolean;
273
+ };
228
274
  /**
229
275
  * @private
230
276
  * @returns {void} Internal defaults.
@@ -234,7 +280,11 @@ export class AuroDropdown extends AuroElement {
234
280
  disabled: boolean;
235
281
  disableFocusTrap: boolean;
236
282
  error: boolean;
283
+ inset: boolean;
284
+ rounded: boolean;
237
285
  noToggle: boolean;
286
+ a11yAutocomplete: string;
287
+ labeled: boolean;
238
288
  a11yRole: string;
239
289
  onDark: boolean;
240
290
  showTriggerBorders: boolean;
@@ -3140,11 +3140,11 @@ var dropdownVersion = '3.0.0';
3140
3140
 
3141
3141
  var shapeSizeCss = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
3142
3142
 
3143
- var colorCss$1 = css`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([ondark])) .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-within,:host(:not([ondark])) .wrapper: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(:not([onDark])[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);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .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([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
3143
+ var colorCss$1 = css`:host(:not([ondark])) .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-within,:host(:not([ondark])) .wrapper: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(:not([onDark])[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);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .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([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
3144
3144
 
3145
3145
  var classicColorCss = css``;
3146
3146
 
3147
- 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]) .wrapper{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]) .wrapper: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([matchwidth]) #bibSizer{width:100%}`;
3147
+ 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]) .wrapper{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]) .wrapper: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}`;
3148
3148
 
3149
3149
  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:1;flex-direction:row;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)}`;
3150
3150
 
@@ -3152,7 +3152,7 @@ var styleSnowflakeCss = css`:host{display:block}.wrapper{display:flex;flex:1;fle
3152
3152
 
3153
3153
  var colorCss = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
3154
3154
 
3155
- var styleCss = css`:host{position:relative;display:block}.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}`;
3155
+ var styleCss = css`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
3156
3156
 
3157
3157
  var tokensCss = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
3158
3158
 
@@ -3457,8 +3457,10 @@ class AuroElement extends LitElement {
3457
3457
  // See LICENSE in the project root for license information.
3458
3458
 
3459
3459
 
3460
- /*
3460
+ /**
3461
+ * @attr { Boolean } disableEventShow - If declared, the dropdown will only show by calling the API .show() public method.
3461
3462
  * @slot - Default slot for the popover content.
3463
+ * @slot label - Defines the content of the label.
3462
3464
  * @slot helpText - Defines the content of the helpText.
3463
3465
  * @slot trigger - Defines the content of the trigger.
3464
3466
  * @csspart trigger - The trigger content container.
@@ -3477,22 +3479,18 @@ class AuroDropdown extends AuroElement {
3477
3479
  this.matchWidth = false;
3478
3480
  this.noHideOnThisFocusLoss = false;
3479
3481
 
3480
- this.errorMessage = undefined; // TODO - check with Doug if there is still more to do here
3482
+ this.errorMessage = ''; // TODO - check with Doug if there is still more to do here
3481
3483
 
3482
3484
  // Layout Config
3483
- this.layout = undefined;
3484
- this.shape = undefined;
3485
- this.size = undefined;
3485
+ this.layout = 'classic';
3486
+ this.shape = 'classic';
3487
+ this.size = 'xl';
3486
3488
 
3487
3489
  this.parentBorder = false;
3488
3490
 
3489
3491
  this.privateDefaults();
3490
3492
  }
3491
3493
 
3492
- /**
3493
- * @private
3494
- * @returns {object} Class definition for the wrapper element.
3495
- */
3496
3494
  get commonWrapperClasses() {
3497
3495
  return {
3498
3496
  'trigger': true,
@@ -3512,8 +3510,12 @@ class AuroDropdown extends AuroElement {
3512
3510
  this.disabled = false;
3513
3511
  this.disableFocusTrap = false;
3514
3512
  this.error = false;
3513
+ this.inset = false;
3514
+ this.rounded = false;
3515
3515
  this.tabIndex = 0;
3516
3516
  this.noToggle = false;
3517
+ this.a11yAutocomplete = 'none';
3518
+ this.labeled = true;
3517
3519
  this.a11yRole = 'button';
3518
3520
  this.onDark = false;
3519
3521
  this.showTriggerBorders = true;
@@ -3635,27 +3637,26 @@ class AuroDropdown extends AuroElement {
3635
3637
  },
3636
3638
 
3637
3639
  /**
3638
- * If declared, the dropdown will only show by calling the API .show() public method.
3639
- * @default false
3640
+ * If declared, applies a border around the trigger slot.
3640
3641
  */
3641
- disableEventShow: {
3642
+ simple: {
3642
3643
  type: Boolean,
3643
3644
  reflect: true
3644
3645
  },
3645
3646
 
3646
3647
  /**
3647
- * If declared, applies a border around the trigger slot.
3648
+ * If declared, the dropdown displays a chevron on the right.
3649
+ * @attr {Boolean} chevron
3648
3650
  */
3649
- simple: {
3651
+ chevron: {
3650
3652
  type: Boolean,
3651
3653
  reflect: true
3652
3654
  },
3653
3655
 
3654
3656
  /**
3655
- * If declared, the dropdown displays a chevron on the right.
3656
- * @attr {Boolean} chevron
3657
+ * If declared, the dropdown will be styled with the common theme.
3657
3658
  */
3658
- chevron: {
3659
+ common: {
3659
3660
  type: Boolean,
3660
3661
  reflect: true
3661
3662
  },
@@ -3669,7 +3670,7 @@ class AuroDropdown extends AuroElement {
3669
3670
  },
3670
3671
 
3671
3672
  /**
3672
- * If declared, the focus trap inside of bib will be turned off.
3673
+ * If declare, the focus trap inside of bib will be turned off.
3673
3674
  */
3674
3675
  disableFocusTrap: {
3675
3676
  type: Boolean,
@@ -3716,6 +3717,22 @@ class AuroDropdown extends AuroElement {
3716
3717
  reflect: true
3717
3718
  },
3718
3719
 
3720
+ /**
3721
+ * Makes the trigger to be full width of its parent container.
3722
+ */
3723
+ fluid: {
3724
+ type: Boolean,
3725
+ reflect: true
3726
+ },
3727
+
3728
+ /**
3729
+ * If declared, will apply padding around trigger slot content.
3730
+ */
3731
+ inset: {
3732
+ type: Boolean,
3733
+ reflect: true
3734
+ },
3735
+
3719
3736
  /**
3720
3737
  * If true, the dropdown bib is displayed.
3721
3738
  */
@@ -3759,6 +3776,15 @@ class AuroDropdown extends AuroElement {
3759
3776
  reflect: true
3760
3777
  },
3761
3778
 
3779
+ /**
3780
+ * Defines if there is a label preset.
3781
+ * @private
3782
+ */
3783
+ labeled: {
3784
+ type: Boolean,
3785
+ reflect: true
3786
+ },
3787
+
3762
3788
  /**
3763
3789
  * Defines if the trigger should size based on the parent element providing the border UI.
3764
3790
  * @private
@@ -3819,9 +3845,6 @@ class AuroDropdown extends AuroElement {
3819
3845
  reflect: true
3820
3846
  },
3821
3847
 
3822
- /**
3823
- * If declared, and a function is set, that function will execute when the slot content is updated.
3824
- */
3825
3848
  onSlotChange: {
3826
3849
  type: Function,
3827
3850
  reflect: false
@@ -3836,6 +3859,14 @@ class AuroDropdown extends AuroElement {
3836
3859
  reflect: true
3837
3860
  },
3838
3861
 
3862
+ /**
3863
+ * If declared, will apply border-radius to trigger and default slots.
3864
+ */
3865
+ rounded: {
3866
+ type: Boolean,
3867
+ reflect: true
3868
+ },
3869
+
3839
3870
  /**
3840
3871
  * @private
3841
3872
  */
@@ -3850,14 +3881,22 @@ class AuroDropdown extends AuroElement {
3850
3881
  type: String || undefined,
3851
3882
  attribute: false,
3852
3883
  reflect: false
3884
+ },
3885
+
3886
+ /**
3887
+ * The value for the aria-autocomplete attribute of the trigger element.
3888
+ */
3889
+ a11yAutocomplete: {
3890
+ type: String,
3891
+ attribute: false,
3853
3892
  }
3854
3893
  };
3855
3894
  }
3856
3895
 
3857
3896
  static get styles() {
3858
3897
  return [
3859
- tokensCss$1,
3860
3898
  colorCss$1,
3899
+ tokensCss$1,
3861
3900
 
3862
3901
  // default layout
3863
3902
  classicColorCss,
@@ -4297,7 +4336,10 @@ class AuroDropdown extends AuroElement {
4297
4336
  id="bib"
4298
4337
  shape="${this.shape}"
4299
4338
  ?data-show="${this.isPopoverVisible}"
4300
- ?isfullscreen="${this.isBibFullscreen}">
4339
+ ?isfullscreen="${this.isBibFullscreen}"
4340
+ ?common="${this.common}"
4341
+ ?rounded="${this.common || this.rounded}"
4342
+ ?inset="${this.common || this.inset}">
4301
4343
  <div class="slotContent">
4302
4344
  <slot @slotchange="${this.handleDefaultSlot}"></slot>
4303
4345
  </div>