@aurodesignsystem/auro-formkit 5.2.2 → 5.2.3

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 (34) hide show
  1. package/CHANGELOG.md +10 -3
  2. package/components/combobox/demo/api.md +2 -2
  3. package/components/combobox/demo/api.min.js +151 -75
  4. package/components/combobox/demo/index.min.js +149 -73
  5. package/components/combobox/dist/auro-combobox.d.ts +9 -0
  6. package/components/combobox/dist/index.js +83 -24
  7. package/components/combobox/dist/registered.js +83 -24
  8. package/components/counter/demo/api.min.js +99 -67
  9. package/components/counter/demo/index.min.js +99 -67
  10. package/components/counter/dist/index.js +18 -3
  11. package/components/counter/dist/registered.js +18 -3
  12. package/components/datepicker/demo/api.min.js +197 -171
  13. package/components/datepicker/demo/index.min.js +197 -171
  14. package/components/datepicker/dist/index.js +18 -3
  15. package/components/datepicker/dist/registered.js +18 -3
  16. package/components/dropdown/demo/api.min.js +48 -16
  17. package/components/dropdown/demo/index.min.js +48 -16
  18. package/components/dropdown/dist/auro-dropdown.d.ts +2 -0
  19. package/components/dropdown/dist/index.js +18 -3
  20. package/components/dropdown/dist/registered.js +18 -3
  21. package/components/menu/demo/api.min.js +8 -2
  22. package/components/menu/demo/index.min.js +8 -2
  23. package/components/menu/dist/index.js +8 -2
  24. package/components/menu/dist/registered.js +8 -2
  25. package/components/radio/demo/api.min.js +4 -4
  26. package/components/radio/demo/index.min.js +4 -4
  27. package/components/radio/dist/index.js +4 -4
  28. package/components/radio/dist/registered.js +4 -4
  29. package/components/select/demo/api.min.js +109 -50
  30. package/components/select/demo/index.min.js +109 -50
  31. package/components/select/dist/auro-select.d.ts +2 -0
  32. package/components/select/dist/index.js +46 -10
  33. package/components/select/dist/registered.js +46 -10
  34. package/package.json +1 -1
@@ -1,6 +1,7 @@
1
1
  import { LitElement, css, html as html$1 } from 'lit';
2
2
  import { classMap } from 'lit/directives/class-map.js';
3
3
  import { unsafeStatic, literal, html } from 'lit/static-html.js';
4
+ import { createRef, ref } from 'lit/directives/ref.js';
4
5
  import { ifDefined } from 'lit/directives/if-defined.js';
5
6
  import { ifDefined as ifDefined$1 } from 'lit-html/directives/if-defined.js';
6
7
 
@@ -3960,7 +3961,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
3960
3961
 
3961
3962
  var iconVersion$1 = '8.1.2';
3962
3963
 
3963
- var styleCss$2$1 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}`;
3964
+ var styleCss$2$1 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}:host(:not([isfullscreen])) .container[class*=shape-rounded]{border-radius:16px}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}`;
3964
3965
 
3965
3966
  var colorCss$2$1 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
3966
3967
 
@@ -4163,7 +4164,7 @@ var shapeSizeCss = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic
4163
4164
 
4164
4165
  var colorCss$1$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])) .wrapper:hover{--ds-auro-dropdown-trigger-background-color: var(--ds-auro-dropdown-trigger-hover-background-color)}: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,:host([onDark]) .helpText{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]) .wrapper:hover{--ds-auro-dropdown-trigger-background-color: var(--ds-auro-dropdown-trigger-hover-background-color)}: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-advanced-color-state-error-inverse, #f9a4a8)}`;
4165
4166
 
4166
- var styleCss$1$2 = css`:host{position:relative;display:block;text-align:left;transform:translateZ(0)}:host([open]){z-index:var(--depth-tooltip, 400)}:host([open][isbibfullscreen]){position:fixed;top:0;left:0}.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([matchwidth]) #bibSizer{width:100%}`;
4167
+ var styleCss$1$2 = css`:host{position:relative;display:block;text-align:left}[popover=manual]{overflow:visible;padding:0;border:inherit;margin:0;background:inherit;outline:inherit}:host([open]){z-index:var(--depth-tooltip, 400)}.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([matchwidth]) #bibSizer{width:100%}`;
4167
4168
 
4168
4169
  var classicColorCss = css``;
4169
4170
 
@@ -4521,6 +4522,9 @@ class AuroDropdown extends AuroElement$2 {
4521
4522
  /** @private */
4522
4523
  this.handleDropdownToggle = this.handleDropdownToggle.bind(this);
4523
4524
 
4525
+ /** @private */
4526
+ this.bibElement = createRef();
4527
+
4524
4528
  this.privateDefaults();
4525
4529
  }
4526
4530
 
@@ -4957,6 +4961,14 @@ class AuroDropdown extends AuroElement$2 {
4957
4961
  if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
4958
4962
  this.handleTriggerContentSlotChange();
4959
4963
  }
4964
+
4965
+ if (changedProperties.has('isPopoverVisible') && this.bibElement.value) {
4966
+ if (this.isPopoverVisible) {
4967
+ this.bibElement.value.showPopover();
4968
+ } else {
4969
+ this.bibElement.value.hidePopover();
4970
+ }
4971
+ }
4960
4972
  }
4961
4973
 
4962
4974
  /**
@@ -5297,7 +5309,10 @@ class AuroDropdown extends AuroElement$2 {
5297
5309
  id="bib"
5298
5310
  shape="${this.shape}"
5299
5311
  ?data-show="${this.isPopoverVisible}"
5300
- ?isfullscreen="${this.isBibFullscreen}">
5312
+ ?isfullscreen="${this.isBibFullscreen}"
5313
+ ${ref(this.bibElement)}
5314
+ popover="manual"
5315
+ >
5301
5316
  <div class="slotContent">
5302
5317
  <slot @slotchange="${this.handleDefaultSlot}"></slot>
5303
5318
  </div>
@@ -8134,12 +8149,21 @@ class AuroSelect extends AuroElement$3 {
8134
8149
  this.menu.setAttribute('shape', 'box');
8135
8150
  } else {
8136
8151
  // set menu's default size if there it's not specified.
8137
- if (!this.menu.getAttribute('size')) {
8138
- this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8139
- }
8152
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.defaultMenuSize || this.size);
8140
8153
 
8141
- if (!this.getAttribute('shape')) {
8142
- this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8154
+ switch (this.layout) {
8155
+ case 'classic':
8156
+ this.menu.setAttribute('shape', 'box');
8157
+ break;
8158
+ case 'emphasized':
8159
+ if (this.dropdown && this.dropdown.bib) {
8160
+ this.dropdown.bib.shape = 'rounded';
8161
+ }
8162
+ this.menu.setAttribute('shape', 'rounded');
8163
+ break;
8164
+ default:
8165
+ this.menu.setAttribute('shape', this.defaultMenuShape || this.shape);
8166
+ break;
8143
8167
  }
8144
8168
  }
8145
8169
  }
@@ -8151,6 +8175,8 @@ class AuroSelect extends AuroElement$3 {
8151
8175
  */
8152
8176
  configureMenu() {
8153
8177
  this.menu = this.querySelector('auro-menu, [auro-menu]');
8178
+ this.defaultMenuSize = this.menu.getAttribute('size');
8179
+ this.defaultMenuShape = this.menu.getAttribute('shape');
8154
8180
 
8155
8181
  // racing condition on custom-select with custom-menu
8156
8182
  if (!this.menu) {
@@ -8528,11 +8554,21 @@ class AuroSelect extends AuroElement$3 {
8528
8554
  }
8529
8555
 
8530
8556
  if (changedProperties.has('shape') && this.menu) {
8531
- this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8557
+ switch (this.layout) {
8558
+ case 'classic':
8559
+ this.menu.setAttribute('shape', 'box');
8560
+ break;
8561
+ case 'emphasized':
8562
+ this.menu.setAttribute('shape', 'rounded');
8563
+ break;
8564
+ default:
8565
+ this.menu.setAttribute('shape', this.defaultMenuShape || this.shape);
8566
+ break;
8567
+ }
8532
8568
  }
8533
8569
 
8534
8570
  if (changedProperties.has('size') && this.menu) {
8535
- this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8571
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.defaultMenuSize || this.size);
8536
8572
  }
8537
8573
  }
8538
8574
 
@@ -1,6 +1,7 @@
1
1
  import { LitElement, css, html as html$1 } from 'lit';
2
2
  import { classMap } from 'lit/directives/class-map.js';
3
3
  import { unsafeStatic, literal, html } from 'lit/static-html.js';
4
+ import { createRef, ref } from 'lit/directives/ref.js';
4
5
  import { ifDefined } from 'lit/directives/if-defined.js';
5
6
  import { ifDefined as ifDefined$1 } from 'lit-html/directives/if-defined.js';
6
7
 
@@ -3960,7 +3961,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
3960
3961
 
3961
3962
  var iconVersion$1 = '8.1.2';
3962
3963
 
3963
- var styleCss$2$1 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}`;
3964
+ var styleCss$2$1 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}:host(:not([isfullscreen])) .container[class*=shape-rounded]{border-radius:16px}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}`;
3964
3965
 
3965
3966
  var colorCss$2$1 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
3966
3967
 
@@ -4163,7 +4164,7 @@ var shapeSizeCss = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic
4163
4164
 
4164
4165
  var colorCss$1$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])) .wrapper:hover{--ds-auro-dropdown-trigger-background-color: var(--ds-auro-dropdown-trigger-hover-background-color)}: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,:host([onDark]) .helpText{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]) .wrapper:hover{--ds-auro-dropdown-trigger-background-color: var(--ds-auro-dropdown-trigger-hover-background-color)}: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-advanced-color-state-error-inverse, #f9a4a8)}`;
4165
4166
 
4166
- var styleCss$1$2 = css`:host{position:relative;display:block;text-align:left;transform:translateZ(0)}:host([open]){z-index:var(--depth-tooltip, 400)}:host([open][isbibfullscreen]){position:fixed;top:0;left:0}.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([matchwidth]) #bibSizer{width:100%}`;
4167
+ var styleCss$1$2 = css`:host{position:relative;display:block;text-align:left}[popover=manual]{overflow:visible;padding:0;border:inherit;margin:0;background:inherit;outline:inherit}:host([open]){z-index:var(--depth-tooltip, 400)}.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([matchwidth]) #bibSizer{width:100%}`;
4167
4168
 
4168
4169
  var classicColorCss = css``;
4169
4170
 
@@ -4521,6 +4522,9 @@ class AuroDropdown extends AuroElement$2 {
4521
4522
  /** @private */
4522
4523
  this.handleDropdownToggle = this.handleDropdownToggle.bind(this);
4523
4524
 
4525
+ /** @private */
4526
+ this.bibElement = createRef();
4527
+
4524
4528
  this.privateDefaults();
4525
4529
  }
4526
4530
 
@@ -4957,6 +4961,14 @@ class AuroDropdown extends AuroElement$2 {
4957
4961
  if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
4958
4962
  this.handleTriggerContentSlotChange();
4959
4963
  }
4964
+
4965
+ if (changedProperties.has('isPopoverVisible') && this.bibElement.value) {
4966
+ if (this.isPopoverVisible) {
4967
+ this.bibElement.value.showPopover();
4968
+ } else {
4969
+ this.bibElement.value.hidePopover();
4970
+ }
4971
+ }
4960
4972
  }
4961
4973
 
4962
4974
  /**
@@ -5297,7 +5309,10 @@ class AuroDropdown extends AuroElement$2 {
5297
5309
  id="bib"
5298
5310
  shape="${this.shape}"
5299
5311
  ?data-show="${this.isPopoverVisible}"
5300
- ?isfullscreen="${this.isBibFullscreen}">
5312
+ ?isfullscreen="${this.isBibFullscreen}"
5313
+ ${ref(this.bibElement)}
5314
+ popover="manual"
5315
+ >
5301
5316
  <div class="slotContent">
5302
5317
  <slot @slotchange="${this.handleDefaultSlot}"></slot>
5303
5318
  </div>
@@ -8134,12 +8149,21 @@ class AuroSelect extends AuroElement$3 {
8134
8149
  this.menu.setAttribute('shape', 'box');
8135
8150
  } else {
8136
8151
  // set menu's default size if there it's not specified.
8137
- if (!this.menu.getAttribute('size')) {
8138
- this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8139
- }
8152
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.defaultMenuSize || this.size);
8140
8153
 
8141
- if (!this.getAttribute('shape')) {
8142
- this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8154
+ switch (this.layout) {
8155
+ case 'classic':
8156
+ this.menu.setAttribute('shape', 'box');
8157
+ break;
8158
+ case 'emphasized':
8159
+ if (this.dropdown && this.dropdown.bib) {
8160
+ this.dropdown.bib.shape = 'rounded';
8161
+ }
8162
+ this.menu.setAttribute('shape', 'rounded');
8163
+ break;
8164
+ default:
8165
+ this.menu.setAttribute('shape', this.defaultMenuShape || this.shape);
8166
+ break;
8143
8167
  }
8144
8168
  }
8145
8169
  }
@@ -8151,6 +8175,8 @@ class AuroSelect extends AuroElement$3 {
8151
8175
  */
8152
8176
  configureMenu() {
8153
8177
  this.menu = this.querySelector('auro-menu, [auro-menu]');
8178
+ this.defaultMenuSize = this.menu.getAttribute('size');
8179
+ this.defaultMenuShape = this.menu.getAttribute('shape');
8154
8180
 
8155
8181
  // racing condition on custom-select with custom-menu
8156
8182
  if (!this.menu) {
@@ -8528,11 +8554,21 @@ class AuroSelect extends AuroElement$3 {
8528
8554
  }
8529
8555
 
8530
8556
  if (changedProperties.has('shape') && this.menu) {
8531
- this.menu.setAttribute('shape', this.layout === 'classic' ? 'box' : this.shape);
8557
+ switch (this.layout) {
8558
+ case 'classic':
8559
+ this.menu.setAttribute('shape', 'box');
8560
+ break;
8561
+ case 'emphasized':
8562
+ this.menu.setAttribute('shape', 'rounded');
8563
+ break;
8564
+ default:
8565
+ this.menu.setAttribute('shape', this.defaultMenuShape || this.shape);
8566
+ break;
8567
+ }
8532
8568
  }
8533
8569
 
8534
8570
  if (changedProperties.has('size') && this.menu) {
8535
- this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.size);
8571
+ this.menu.setAttribute('size', this.layout !== 'emphasized' ? 'md' : this.defaultMenuSize || this.size);
8536
8572
  }
8537
8573
  }
8538
8574
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem/auro-formkit",
3
- "version": "5.2.2",
3
+ "version": "5.2.3",
4
4
  "description": "A collection of web components used to build forms.",
5
5
  "homepage": "https://github.com/AlaskaAirlines/auro-formkit#readme",
6
6
  "bugs": {