@aurodesignsystem-dev/auro-formkit 0.0.0-pr757.0 → 0.0.0-pr757.1

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.
@@ -7648,7 +7648,7 @@ i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);-
7648
7648
 
7649
7649
  i$5`: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)}`;
7650
7650
 
7651
- var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:8px}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 8px 0 24px}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 8px}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]) *{user-select:none}`;
7651
+ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:8px}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 8px 0 24px}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 8px}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
7652
7652
 
7653
7653
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
7654
7654
  // See LICENSE in the project root for license information.
@@ -7663,7 +7663,6 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
7663
7663
  * @slot label - Defines the content of the label.
7664
7664
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
7665
7665
  * @slot helpText - Defines the content of the helpText.
7666
- * @slot placeholder - Defines the content of the placeholder to be shown when there is no value
7667
7666
  * @slot valueText - Dropdown value text display.
7668
7667
  * @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
7669
7668
  * @event auroSelect-valueSet - Notifies that the component has a new value set.
@@ -7933,6 +7932,14 @@ class AuroSelect extends AuroElement$4 {
7933
7932
  reflect: true
7934
7933
  },
7935
7934
 
7935
+ /**
7936
+ * Define custom placeholder text.
7937
+ */
7938
+ placeholder: {
7939
+ type: String,
7940
+ reflect: true
7941
+ },
7942
+
7936
7943
  /**
7937
7944
  * Populates the `required` attribute on the element. Used for client-side validation.
7938
7945
  */
@@ -8043,7 +8050,7 @@ class AuroSelect extends AuroElement$4 {
8043
8050
  get commonLabelClasses() {
8044
8051
  return {
8045
8052
  'is-disabled': this.disabled,
8046
- 'withValue': this.value && this.value.length > 0,
8053
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8047
8054
  'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
8048
8055
  };
8049
8056
  }
@@ -8680,7 +8687,7 @@ class AuroSelect extends AuroElement$4 {
8680
8687
  : u`
8681
8688
  <${this.helpTextTag} error ?onDark="${this.onDark}">
8682
8689
  <p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
8683
- ERROR MESSAGE ${this.errorMessage}
8690
+ ${this.errorMessage}
8684
8691
  </p>
8685
8692
  </${this.helpTextTag}>
8686
8693
  `
@@ -8695,14 +8702,14 @@ class AuroSelect extends AuroElement$4 {
8695
8702
  */
8696
8703
  renderLayoutEmphasized() {
8697
8704
  const placeholderClass = {
8698
- hidden: this.value,
8705
+ 'util_displayHidden': this.value
8699
8706
  };
8700
8707
 
8701
8708
  const displayValueClasses = {
8702
8709
  'displayValue': true,
8703
8710
  'hasContent': this.hasDisplayValueContent,
8704
8711
  'hasFocus': this.isPopoverVisible,
8705
- 'withValue': this.value && this.value.length > 0,
8712
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8706
8713
  'force': this.forceDisplayValue,
8707
8714
  };
8708
8715
 
@@ -8746,11 +8753,9 @@ class AuroSelect extends AuroElement$4 {
8746
8753
  ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
8747
8754
  </label>
8748
8755
  <div class="value" id="value"></div>
8749
- ${this.value ? undefined : u`
8750
- <div id="placeholder" class="${e(placeholderClass)}">
8751
- <slot name="placeholder"></slot>
8752
- </div>
8753
- `}
8756
+ <div id="placeholder" class="${e(placeholderClass)}">
8757
+ ${this.placeholder}
8758
+ </div>
8754
8759
  </div>
8755
8760
  <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
8756
8761
  <slot name="displayValue"></slot>
@@ -8777,14 +8782,14 @@ class AuroSelect extends AuroElement$4 {
8777
8782
  */
8778
8783
  renderLayoutSnowflake() {
8779
8784
  const placeholderClass = {
8780
- hidden: this.value,
8785
+ 'util_displayHidden': this.value
8781
8786
  };
8782
8787
 
8783
8788
  const displayValueClasses = {
8784
8789
  'displayValue': true,
8785
8790
  'hasContent': this.hasDisplayValueContent,
8786
8791
  'hasFocus': this.isPopoverVisible,
8787
- 'withValue': this.value && this.value.length > 0,
8792
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8788
8793
  'force': this.forceDisplayValue,
8789
8794
  };
8790
8795
 
@@ -8827,11 +8832,9 @@ class AuroSelect extends AuroElement$4 {
8827
8832
  ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
8828
8833
  </label>
8829
8834
  <div class="value" id="value"></div>
8830
- ${this.value ? undefined : u`
8831
- <div id="placeholder" class="${e(placeholderClass)}">
8832
- <slot name="placeholder"></slot>
8833
- </div>
8834
- `}
8835
+ <div id="placeholder" class="${e(placeholderClass)}">
8836
+ ${this.placeholder}
8837
+ </div>
8835
8838
  </div>
8836
8839
  <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
8837
8840
  <slot name="displayValue"></slot>
@@ -8859,14 +8862,14 @@ class AuroSelect extends AuroElement$4 {
8859
8862
  */
8860
8863
  renderLayoutClassic() {
8861
8864
  const placeholderClass = {
8862
- hidden: this.value,
8865
+ 'util_displayHidden': this.value
8863
8866
  };
8864
8867
 
8865
8868
  const displayValueClasses = {
8866
8869
  'displayValue': true,
8867
8870
  'hasContent': this.hasDisplayValueContent,
8868
8871
  'hasFocus': this.isPopoverVisible,
8869
- 'withValue': this.value && this.value.length > 0,
8872
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8870
8873
  'force': this.forceDisplayValue,
8871
8874
  };
8872
8875
 
@@ -8909,11 +8912,9 @@ class AuroSelect extends AuroElement$4 {
8909
8912
  ${this.required ? undefined : u`<slot name="optionalLabel"> (optional)</slot>`}
8910
8913
  </label>
8911
8914
  <div class="value" id="value"></div>
8912
- ${this.value ? undefined : u`
8913
- <div id="placeholder" class="${e(placeholderClass)}">
8914
- <slot name="placeholder"></slot>
8915
- </div>
8916
- `}
8915
+ <div id="placeholder" class="${e(placeholderClass)}">
8916
+ ${this.placeholder}
8917
+ </div>
8917
8918
  </div>
8918
8919
  <div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
8919
8920
  <slot name="displayValue"></slot>
@@ -6,7 +6,6 @@
6
6
  * @slot label - Defines the content of the label.
7
7
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
8
8
  * @slot helpText - Defines the content of the helpText.
9
- * @slot placeholder - Defines the content of the placeholder to be shown when there is no value
10
9
  * @slot valueText - Dropdown value text display.
11
10
  * @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
12
11
  * @event auroSelect-valueSet - Notifies that the component has a new value set.
@@ -154,6 +153,13 @@ export class AuroSelect extends AuroElement {
154
153
  type: StringConstructor;
155
154
  reflect: boolean;
156
155
  };
156
+ /**
157
+ * Define custom placeholder text.
158
+ */
159
+ placeholder: {
160
+ type: StringConstructor;
161
+ reflect: boolean;
162
+ };
157
163
  /**
158
164
  * Populates the `required` attribute on the element. Used for client-side validation.
159
165
  */
@@ -7602,7 +7602,7 @@ css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);-
7602
7602
 
7603
7603
  css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
7604
7604
 
7605
- var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:8px}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 8px 0 24px}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 8px}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]) *{user-select:none}`;
7605
+ var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:8px}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 8px 0 24px}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 8px}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
7606
7606
 
7607
7607
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
7608
7608
  // See LICENSE in the project root for license information.
@@ -7617,7 +7617,6 @@ var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{d
7617
7617
  * @slot label - Defines the content of the label.
7618
7618
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
7619
7619
  * @slot helpText - Defines the content of the helpText.
7620
- * @slot placeholder - Defines the content of the placeholder to be shown when there is no value
7621
7620
  * @slot valueText - Dropdown value text display.
7622
7621
  * @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
7623
7622
  * @event auroSelect-valueSet - Notifies that the component has a new value set.
@@ -7887,6 +7886,14 @@ class AuroSelect extends AuroElement$3 {
7887
7886
  reflect: true
7888
7887
  },
7889
7888
 
7889
+ /**
7890
+ * Define custom placeholder text.
7891
+ */
7892
+ placeholder: {
7893
+ type: String,
7894
+ reflect: true
7895
+ },
7896
+
7890
7897
  /**
7891
7898
  * Populates the `required` attribute on the element. Used for client-side validation.
7892
7899
  */
@@ -7997,7 +8004,7 @@ class AuroSelect extends AuroElement$3 {
7997
8004
  get commonLabelClasses() {
7998
8005
  return {
7999
8006
  'is-disabled': this.disabled,
8000
- 'withValue': this.value && this.value.length > 0,
8007
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8001
8008
  'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
8002
8009
  };
8003
8010
  }
@@ -8634,7 +8641,7 @@ class AuroSelect extends AuroElement$3 {
8634
8641
  : html`
8635
8642
  <${this.helpTextTag} error ?onDark="${this.onDark}">
8636
8643
  <p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
8637
- ERROR MESSAGE ${this.errorMessage}
8644
+ ${this.errorMessage}
8638
8645
  </p>
8639
8646
  </${this.helpTextTag}>
8640
8647
  `
@@ -8649,14 +8656,14 @@ class AuroSelect extends AuroElement$3 {
8649
8656
  */
8650
8657
  renderLayoutEmphasized() {
8651
8658
  const placeholderClass = {
8652
- hidden: this.value,
8659
+ 'util_displayHidden': this.value
8653
8660
  };
8654
8661
 
8655
8662
  const displayValueClasses = {
8656
8663
  'displayValue': true,
8657
8664
  'hasContent': this.hasDisplayValueContent,
8658
8665
  'hasFocus': this.isPopoverVisible,
8659
- 'withValue': this.value && this.value.length > 0,
8666
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8660
8667
  'force': this.forceDisplayValue,
8661
8668
  };
8662
8669
 
@@ -8700,11 +8707,9 @@ class AuroSelect extends AuroElement$3 {
8700
8707
  ${this.required ? undefined : html`<slot name="optionalLabel"> (optional)</slot>`}
8701
8708
  </label>
8702
8709
  <div class="value" id="value"></div>
8703
- ${this.value ? undefined : html`
8704
- <div id="placeholder" class="${classMap(placeholderClass)}">
8705
- <slot name="placeholder"></slot>
8706
- </div>
8707
- `}
8710
+ <div id="placeholder" class="${classMap(placeholderClass)}">
8711
+ ${this.placeholder}
8712
+ </div>
8708
8713
  </div>
8709
8714
  <div class="${classMap(displayValueClasses)}" aria-hidden="true" part="displayValue">
8710
8715
  <slot name="displayValue"></slot>
@@ -8731,14 +8736,14 @@ class AuroSelect extends AuroElement$3 {
8731
8736
  */
8732
8737
  renderLayoutSnowflake() {
8733
8738
  const placeholderClass = {
8734
- hidden: this.value,
8739
+ 'util_displayHidden': this.value
8735
8740
  };
8736
8741
 
8737
8742
  const displayValueClasses = {
8738
8743
  'displayValue': true,
8739
8744
  'hasContent': this.hasDisplayValueContent,
8740
8745
  'hasFocus': this.isPopoverVisible,
8741
- 'withValue': this.value && this.value.length > 0,
8746
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8742
8747
  'force': this.forceDisplayValue,
8743
8748
  };
8744
8749
 
@@ -8781,11 +8786,9 @@ class AuroSelect extends AuroElement$3 {
8781
8786
  ${this.required ? undefined : html`<slot name="optionalLabel"> (optional)</slot>`}
8782
8787
  </label>
8783
8788
  <div class="value" id="value"></div>
8784
- ${this.value ? undefined : html`
8785
- <div id="placeholder" class="${classMap(placeholderClass)}">
8786
- <slot name="placeholder"></slot>
8787
- </div>
8788
- `}
8789
+ <div id="placeholder" class="${classMap(placeholderClass)}">
8790
+ ${this.placeholder}
8791
+ </div>
8789
8792
  </div>
8790
8793
  <div class="${classMap(displayValueClasses)}" aria-hidden="true" part="displayValue">
8791
8794
  <slot name="displayValue"></slot>
@@ -8813,14 +8816,14 @@ class AuroSelect extends AuroElement$3 {
8813
8816
  */
8814
8817
  renderLayoutClassic() {
8815
8818
  const placeholderClass = {
8816
- hidden: this.value,
8819
+ 'util_displayHidden': this.value
8817
8820
  };
8818
8821
 
8819
8822
  const displayValueClasses = {
8820
8823
  'displayValue': true,
8821
8824
  'hasContent': this.hasDisplayValueContent,
8822
8825
  'hasFocus': this.isPopoverVisible,
8823
- 'withValue': this.value && this.value.length > 0,
8826
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8824
8827
  'force': this.forceDisplayValue,
8825
8828
  };
8826
8829
 
@@ -8863,11 +8866,9 @@ class AuroSelect extends AuroElement$3 {
8863
8866
  ${this.required ? undefined : html`<slot name="optionalLabel"> (optional)</slot>`}
8864
8867
  </label>
8865
8868
  <div class="value" id="value"></div>
8866
- ${this.value ? undefined : html`
8867
- <div id="placeholder" class="${classMap(placeholderClass)}">
8868
- <slot name="placeholder"></slot>
8869
- </div>
8870
- `}
8869
+ <div id="placeholder" class="${classMap(placeholderClass)}">
8870
+ ${this.placeholder}
8871
+ </div>
8871
8872
  </div>
8872
8873
  <div class="${classMap(displayValueClasses)}" aria-hidden="true" part="displayValue">
8873
8874
  <slot name="displayValue"></slot>
@@ -7602,7 +7602,7 @@ css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);-
7602
7602
 
7603
7603
  css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
7604
7604
 
7605
- var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:8px}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 8px 0 24px}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 8px}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]) *{user-select:none}`;
7605
+ var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color)}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}.mainContent{position:relative;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:8px}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent,:host([layout*=snowflake]) .triggerContent{padding:0 8px 0 24px}:host([layout*=snowflake]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=emphasized]) [auro-dropdown] label.withValue{font-size:var(--ds-text-body-size-xs);line-height:20px}:host([layout*=classic]) .triggerContent{padding:0 8px}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{cursor:text;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host([layout*=classic]) label.withValue{font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([layout*=classic]) .value{height:auto;font-size:16px;font-weight:450;letter-spacing:0;line-height:24px}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
7606
7606
 
7607
7607
  // Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
7608
7608
  // See LICENSE in the project root for license information.
@@ -7617,7 +7617,6 @@ var styleCss = css`.util_displayInline{display:inline}.util_displayInlineBlock{d
7617
7617
  * @slot label - Defines the content of the label.
7618
7618
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
7619
7619
  * @slot helpText - Defines the content of the helpText.
7620
- * @slot placeholder - Defines the content of the placeholder to be shown when there is no value
7621
7620
  * @slot valueText - Dropdown value text display.
7622
7621
  * @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
7623
7622
  * @event auroSelect-valueSet - Notifies that the component has a new value set.
@@ -7887,6 +7886,14 @@ class AuroSelect extends AuroElement$3 {
7887
7886
  reflect: true
7888
7887
  },
7889
7888
 
7889
+ /**
7890
+ * Define custom placeholder text.
7891
+ */
7892
+ placeholder: {
7893
+ type: String,
7894
+ reflect: true
7895
+ },
7896
+
7890
7897
  /**
7891
7898
  * Populates the `required` attribute on the element. Used for client-side validation.
7892
7899
  */
@@ -7997,7 +8004,7 @@ class AuroSelect extends AuroElement$3 {
7997
8004
  get commonLabelClasses() {
7998
8005
  return {
7999
8006
  'is-disabled': this.disabled,
8000
- 'withValue': this.value && this.value.length > 0,
8007
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8001
8008
  'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
8002
8009
  };
8003
8010
  }
@@ -8634,7 +8641,7 @@ class AuroSelect extends AuroElement$3 {
8634
8641
  : html`
8635
8642
  <${this.helpTextTag} error ?onDark="${this.onDark}">
8636
8643
  <p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
8637
- ERROR MESSAGE ${this.errorMessage}
8644
+ ${this.errorMessage}
8638
8645
  </p>
8639
8646
  </${this.helpTextTag}>
8640
8647
  `
@@ -8649,14 +8656,14 @@ class AuroSelect extends AuroElement$3 {
8649
8656
  */
8650
8657
  renderLayoutEmphasized() {
8651
8658
  const placeholderClass = {
8652
- hidden: this.value,
8659
+ 'util_displayHidden': this.value
8653
8660
  };
8654
8661
 
8655
8662
  const displayValueClasses = {
8656
8663
  'displayValue': true,
8657
8664
  'hasContent': this.hasDisplayValueContent,
8658
8665
  'hasFocus': this.isPopoverVisible,
8659
- 'withValue': this.value && this.value.length > 0,
8666
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8660
8667
  'force': this.forceDisplayValue,
8661
8668
  };
8662
8669
 
@@ -8700,11 +8707,9 @@ class AuroSelect extends AuroElement$3 {
8700
8707
  ${this.required ? undefined : html`<slot name="optionalLabel"> (optional)</slot>`}
8701
8708
  </label>
8702
8709
  <div class="value" id="value"></div>
8703
- ${this.value ? undefined : html`
8704
- <div id="placeholder" class="${classMap(placeholderClass)}">
8705
- <slot name="placeholder"></slot>
8706
- </div>
8707
- `}
8710
+ <div id="placeholder" class="${classMap(placeholderClass)}">
8711
+ ${this.placeholder}
8712
+ </div>
8708
8713
  </div>
8709
8714
  <div class="${classMap(displayValueClasses)}" aria-hidden="true" part="displayValue">
8710
8715
  <slot name="displayValue"></slot>
@@ -8731,14 +8736,14 @@ class AuroSelect extends AuroElement$3 {
8731
8736
  */
8732
8737
  renderLayoutSnowflake() {
8733
8738
  const placeholderClass = {
8734
- hidden: this.value,
8739
+ 'util_displayHidden': this.value
8735
8740
  };
8736
8741
 
8737
8742
  const displayValueClasses = {
8738
8743
  'displayValue': true,
8739
8744
  'hasContent': this.hasDisplayValueContent,
8740
8745
  'hasFocus': this.isPopoverVisible,
8741
- 'withValue': this.value && this.value.length > 0,
8746
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8742
8747
  'force': this.forceDisplayValue,
8743
8748
  };
8744
8749
 
@@ -8781,11 +8786,9 @@ class AuroSelect extends AuroElement$3 {
8781
8786
  ${this.required ? undefined : html`<slot name="optionalLabel"> (optional)</slot>`}
8782
8787
  </label>
8783
8788
  <div class="value" id="value"></div>
8784
- ${this.value ? undefined : html`
8785
- <div id="placeholder" class="${classMap(placeholderClass)}">
8786
- <slot name="placeholder"></slot>
8787
- </div>
8788
- `}
8789
+ <div id="placeholder" class="${classMap(placeholderClass)}">
8790
+ ${this.placeholder}
8791
+ </div>
8789
8792
  </div>
8790
8793
  <div class="${classMap(displayValueClasses)}" aria-hidden="true" part="displayValue">
8791
8794
  <slot name="displayValue"></slot>
@@ -8813,14 +8816,14 @@ class AuroSelect extends AuroElement$3 {
8813
8816
  */
8814
8817
  renderLayoutClassic() {
8815
8818
  const placeholderClass = {
8816
- hidden: this.value,
8819
+ 'util_displayHidden': this.value
8817
8820
  };
8818
8821
 
8819
8822
  const displayValueClasses = {
8820
8823
  'displayValue': true,
8821
8824
  'hasContent': this.hasDisplayValueContent,
8822
8825
  'hasFocus': this.isPopoverVisible,
8823
- 'withValue': this.value && this.value.length > 0,
8826
+ 'withValue': this.placeholder || (this.value && this.value.length > 0), // eslint-disable-line no-extra-parens
8824
8827
  'force': this.forceDisplayValue,
8825
8828
  };
8826
8829
 
@@ -8863,11 +8866,9 @@ class AuroSelect extends AuroElement$3 {
8863
8866
  ${this.required ? undefined : html`<slot name="optionalLabel"> (optional)</slot>`}
8864
8867
  </label>
8865
8868
  <div class="value" id="value"></div>
8866
- ${this.value ? undefined : html`
8867
- <div id="placeholder" class="${classMap(placeholderClass)}">
8868
- <slot name="placeholder"></slot>
8869
- </div>
8870
- `}
8869
+ <div id="placeholder" class="${classMap(placeholderClass)}">
8870
+ ${this.placeholder}
8871
+ </div>
8871
8872
  </div>
8872
8873
  <div class="${classMap(displayValueClasses)}" aria-hidden="true" part="displayValue">
8873
8874
  <slot name="displayValue"></slot>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem-dev/auro-formkit",
3
- "version": "0.0.0-pr757.0",
3
+ "version": "0.0.0-pr757.1",
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": {
@@ -62,7 +62,7 @@
62
62
  "devDependencies": {
63
63
  "@aurodesignsystem/design-tokens": "^8.2.1",
64
64
  "@aurodesignsystem/eslint-config": "^1.3.4",
65
- "@aurodesignsystem/webcorestylesheets": "^9.0.3",
65
+ "@aurodesignsystem/webcorestylesheets": "^10.0.0",
66
66
  "@commitlint/cli": "^19.8.1",
67
67
  "@commitlint/config-conventional": "^19.8.1",
68
68
  "@open-wc/testing": "^4.0.0",