@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.0 → 0.0.0-pr624.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.
@@ -16641,7 +16641,7 @@ var dropdownVersion = '3.0.0';
16641
16641
  */
16642
16642
  const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=e$1(class extends i{constructor(e){if(super(e),e.type!==t$1.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return {values:o,keys:l}}render(e,s,t){return this.dt(e,s,t).values}update(s,[t,r$1,c]){const d=p(s),{values:p$1,keys:a}=this.dt(t,r$1,c);if(!Array.isArray(d))return this.ut=a,p$1;const h=this.ut??=[],v$1=[];let m$1,y,x=0,j=d.length-1,k=0,w=p$1.length-1;for(;x<=j&&k<=w;)if(null===d[x])x++;else if(null===d[j])j--;else if(h[x]===a[k])v$1[k]=v(d[x],p$1[k]),x++,k++;else if(h[j]===a[w])v$1[w]=v(d[j],p$1[w]),j--,w--;else if(h[x]===a[w])v$1[w]=v(d[x],p$1[w]),r(s,v$1[w+1],d[x]),x++,w--;else if(h[j]===a[k])v$1[k]=v(d[j],p$1[k]),r(s,d[x],d[j]),j--,k++;else if(void 0===m$1&&(m$1=u(a,k,w),y=u(h,x,j)),m$1.has(h[x]))if(m$1.has(h[j])){const e=y.get(a[k]),t=void 0!==e?d[e]:null;if(null===t){const e=r(s,d[x]);v(e,p$1[k]),v$1[k]=e;}else v$1[k]=v(t,p$1[k]),r(s,d[x],t),d[e]=null;k++;}else M(d[j]),j--;else M(d[x]),x++;for(;k<=w;){const e=r(s,v$1[w+1]);v(e,p$1[k]),v$1[k++]=e;}for(;x<=j;){const e=d[x++];null!==e&&M(e);}return this.ut=a,m(s,v$1),T}});
16643
16643
 
16644
- var shapeSizeCss = i$5`.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:0;min-height:60px;max-height:60px;background-color:unset}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-rounded-lg{min-height:52px;max-height:52px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px}.shape-pill-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px 0 0 34px}.shape-pill-left-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 34px 34px 0}.shape-pill-right-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px}.shape-pill-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px 0 0 34px}.shape-pill-left-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 34px 34px 0}.shape-pill-right-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}`;
16644
+ var shapeSizeCss = i$5`.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}`;
16645
16645
 
16646
16646
  var styleCss$4 = 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}`;
16647
16647
 
@@ -16651,6 +16651,10 @@ var colorBaseCss = i$5`.wrapper{border-color:var(--ds-auro-input-border-color);b
16651
16651
 
16652
16652
  var tokensCss$4 = i$5`:host(:not(ondark)){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
16653
16653
 
16654
+ var classicStyleCss = i$5`.layout-classic{display:flex;flex-direction:row}.layout-classic .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;flex:1;cursor:text}.layout-classic .mainContent label{cursor:text;padding-top:4px;font-size:var(--ds-text-body-size-xs);line-height:20px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent input{font-size:var(--ds-basic-text-body-default-font-size, 16px);line-height:var(--ds-basic-text-body-default-line-height, 24px);padding-bottom:8px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);height:auto}.layout-classic .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start;padding-top:0;font-size:var(--ds-text-body-size-default, 1rem);line-height:var(--ds-text-body-size-default)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) input{height:0;line-height:0;padding-bottom:0}.layout-classic .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-classic .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-classic .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-classic.withValue{justify-content:flex-start}.layout-classic:focus-within{box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color);justify-content:flex-start}.layout-classic:focus-within .alertNotification{display:none}.layout-classic .accents.left{padding-left:8px}.layout-classic .accents.right{padding-right:8px}`;
16655
+
16656
+ var classicColorCss = i$5`.layout-default label{color:var(--ds-auro-input-label-text-color)}`;
16657
+
16654
16658
  var emphasizedStyleCss = i$5`:host{display:block}.wrapper{cursor:text}.helpTextClasses{cursor:default}input{background:unset;width:100%;padding:0;border:0;outline:none;overflow:hidden;text-overflow:ellipsis}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:24px;width:calc(100% - 48px)}.layout-emphasized,.layout-emphasized-left,.layout-emphasized-right{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-emphasized label,.layout-emphasized-left label,.layout-emphasized-right label{text-transform:uppercase;font-size:32px;line-height:38px}.layout-emphasized input,.layout-emphasized-left input,.layout-emphasized-right input{text-align:center;font-size:14px;line-height:20px}.layout-emphasized .mainContent,.layout-emphasized-left .mainContent,.layout-emphasized-right .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1}.layout-emphasized .displayValue,.layout-emphasized-left .displayValue,.layout-emphasized-right .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-emphasized .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-left .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-right .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-emphasized .displayValueWrapper,.layout-emphasized-left .displayValueWrapper,.layout-emphasized-right .displayValueWrapper{transform:translateY(-50%)}.layout-emphasized .accents,.layout-emphasized-left .accents,.layout-emphasized-right .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-emphasized.withValue,.layout-emphasized-left.withValue,.layout-emphasized-right.withValue{justify-content:flex-start}.layout-emphasized.withValue label,.layout-emphasized-left.withValue label,.layout-emphasized-right.withValue label{display:block;text-transform:unset;font-size:10px;line-height:14px;width:100%;text-align:left}.layout-emphasized.withValue input,.layout-emphasized-left.withValue input,.layout-emphasized-right.withValue input{text-transform:uppercase;font-size:32px;line-height:38px;text-align:left;width:100%}.layout-emphasized:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-left:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-right:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{justify-content:flex-start}.layout-emphasized:focus-within label,.layout-emphasized-left:focus-within label,.layout-emphasized-right:focus-within label{display:block;text-transform:unset;font-size:10px;line-height:14px;width:100%;text-align:left}.layout-emphasized:focus-within input,.layout-emphasized-left:focus-within input,.layout-emphasized-right:focus-within input{text-transform:uppercase;font-size:32px;line-height:38px;text-align:left;width:100%}.layout-emphasized:focus-within .alertNotification,.layout-emphasized-left:focus-within .alertNotification,.layout-emphasized-right:focus-within .alertNotification{display:none}.layout-emphasized .accents.left,.layout-emphasized-left .accents.left,.layout-emphasized-right .accents.left{padding-left:24px}.layout-emphasized .accents.right,.layout-emphasized-left .accents.right,.layout-emphasized-right .accents.right{padding-right:24px}.layout-emphasized-left .alertNotification{margin-right:8px}.layout-emphasized-left .clear{margin-left:8px}.layout-emphasized-right .alertNotification{margin-left:8px}.layout-emphasized-right .clear{margin-right:8px}`;
16655
16659
 
16656
16660
  var emphasizedColorCss = i$5`.layout-emphasized:focus-within,.layout-emphasized.withValue,.layout-emphasized-left:focus-within,.layout-emphasized-left.withValue,.layout-emphasized-right:focus-within,.layout-emphasized-right.withValue{--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{--auro-input-border-color: var(--ds-auro-input-border-color)}`;
@@ -21595,9 +21599,9 @@ class BaseInput extends AuroElement$1 {
21595
21599
  this.required = false;
21596
21600
  this.setCustomValidityForType = undefined;
21597
21601
 
21598
- this.layout = 'default';
21602
+ this.layout = 'classic';
21599
21603
  this.shape = 'rounded';
21600
- this.size = 'xl';
21604
+ this.size = 'lg';
21601
21605
  }
21602
21606
 
21603
21607
  /**
@@ -23727,6 +23731,8 @@ class AuroInput extends BaseInput {
23727
23731
  i$5`${styleCss$4}`,
23728
23732
  i$5`${styleDefaultCss}`,
23729
23733
  i$5`${tokensCss$4}`,
23734
+ i$5`${classicStyleCss}`,
23735
+ i$5`${classicColorCss}`,
23730
23736
  i$5`${emphasizedStyleCss}`,
23731
23737
  i$5`${emphasizedColorCss}`,
23732
23738
  i$5`${snowflakeStyleCss}`
@@ -23837,14 +23843,19 @@ class AuroInput extends BaseInput {
23837
23843
  /**
23838
23844
  * Returns HTML for the HTML5 input element.
23839
23845
  * @private
23846
+ * @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
23840
23847
  * @returns {html} - Returns HTML for the HTML5 input element.
23841
23848
  */
23842
- renderHtmlInput() {
23849
+ renderHtmlInput(hideInputWhenBlurred = false) {
23843
23850
  const displayValueClasses = {
23844
23851
  'displayValue': true,
23845
23852
  'hasContent': this.hasDisplayValueContent,
23846
23853
  'hasFocus': this.hasFocus,
23847
- 'withValue': this.value && this.value.length > 0
23854
+ 'withValue': this.value && this.value.length > 0,
23855
+ };
23856
+
23857
+ const inputClasses = {
23858
+ 'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
23848
23859
  };
23849
23860
 
23850
23861
  return u$2`
@@ -23867,6 +23878,7 @@ class AuroInput extends BaseInput {
23867
23878
  autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
23868
23879
  autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
23869
23880
  autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
23881
+ class="${e(inputClasses)}"
23870
23882
  id="${this.inputId}"
23871
23883
  inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
23872
23884
  lang="${o(this.lang)}"
@@ -24012,137 +24024,32 @@ class AuroInput extends BaseInput {
24012
24024
  /**
24013
24025
  * Returns HTML for the default layout.
24014
24026
  * @private
24015
- * @returns {html} - Returns HTML for the default layout.
24027
+ * @returns {import("lit").TemplateResult} - Returns HTML for the default layout.
24016
24028
  */
24017
24029
  renderLayoutClassic() {
24018
- const wrapperClasses = {
24019
- 'layoutDefault': true
24020
- };
24021
-
24022
- // is-disabled class - THIS IS ONLY HERE TO MAKE A TEST PASS AS FAR AS I CAN TELL
24023
- const labelClasses = {
24024
- 'is-disabled': this.disabled,
24025
- 'withIcon': this.hasTypeIcon(),
24026
- 'withValue': this.value && this.value.length > 0
24027
- };
24028
-
24029
24030
  return u$2`
24030
- <div class="${e(wrapperClasses)}" part="wrapper">
24031
- <div class="main">
24032
- <div class="typeIcon">
24033
- ${this.type === 'credit-card' ? this.processCreditCard() : undefined}
24034
-
24035
- <!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
24036
- This should be cleaned up when auro-icon issue #31 is resolved. -->
24037
- ${this.inputIconName
24038
- ? c([this.inputIconName], (val) => val, (name) => u$2`
24039
- <${this.iconTag}
24040
- class="accentIcon"
24041
- category="payment"
24042
- name="${name}"
24043
- part="accentIcon"
24044
- ?onDark="${this.onDark}"
24045
- variant="${this.disabled ? 'disabled' : 'muted'}">
24046
- </${this.iconTag}>
24047
- `) : undefined
24048
- }
24049
-
24050
- ${this.type === 'date'
24051
- ? u$2`
24052
- <${this.iconTag}
24053
- class="accentIcon"
24054
- category="interface"
24055
- name="calendar"
24056
- part="accentIcon"
24057
- ?onDark="${this.onDark}"
24058
- variant="${this.disabled ? 'disabled' : 'muted'}">
24059
- </${this.iconTag}>`
24060
- : undefined
24061
- }
24062
- </div>
24063
- <label for=${this.id} class="${e(labelClasses)}" part="label">
24064
- <slot name="label">
24065
- ${this.label}
24066
- </slot>
24067
- ${this.required ? '' : ` (${i18n(this.lang, 'optional')})`}
24068
- </label>
24069
-
24070
- ${this.renderHtmlInput()}
24031
+ <div
24032
+ @click="${this.handleClick}"
24033
+ class="${e(this.commonWrapperClasses)} thin"
24034
+ part="wrapper">
24035
+ <div class="accents left">
24036
+ ${this.renderHtmlTypeIcon()}
24071
24037
  </div>
24072
- <div
24073
- class="notificationIcons"
24074
- part="notificationIcons"
24075
- ?hasValue="${this.hasValue}">
24076
- ${this.validity && this.validity !== 'valid' ? u$2`
24077
- <div class="notification alertNotification">
24078
- <${this.iconTag}
24079
- category="alert"
24080
- customColor
24081
- name="error-stroke"
24082
- </${this.iconTag}>
24083
- </div>
24084
- ` : undefined}
24038
+ <div class="mainContent">
24039
+ ${this.renderHtmlInput(true)}
24040
+ </div>
24041
+ <div class="accents right">
24042
+ ${this.renderValidationErrorIconHtml()}
24085
24043
  ${this.hasValue ? u$2`
24086
- ${this.type === 'password' ? u$2`
24087
- <div class="notification">
24088
- <${this.buttonTag}
24089
- @click="${this.handleClickShowPassword}"
24090
- ?onDark="${this.onDark}"
24091
- aria-hidden="true"
24092
- class="notificationBtn passwordBtn"
24093
- tabindex="-1"
24094
- variant="flat">
24095
- <${this.iconTag}
24096
- ?hidden=${!this.showPassword}
24097
- category="interface"
24098
- customColor
24099
- name="hide-password-stroke">
24100
- </${this.iconTag}>
24101
- <${this.iconTag}
24102
- ?hidden=${this.showPassword}
24103
- category="interface"
24104
- customColor
24105
- name="view-password-stroke">
24106
- </${this.iconTag}>
24107
- </${this.buttonTag}>
24108
- </div>
24109
- ` : undefined}
24110
24044
  ${!this.disabled && !this.readonly ? u$2`
24111
- <div class="notification">
24112
- <${this.buttonTag}
24113
- @click="${this.handleClickClear}"
24114
- ?onDark="${this.onDark}"
24115
- arialabel="${i18n(this.lang, 'clearInput')}"
24116
- class="notificationBtn clearBtn"
24117
- variant="flat">
24118
- <${this.iconTag}
24119
- category="interface"
24120
- customColor
24121
- name="x-lg">
24122
- </${this.iconTag}>
24123
- </${this.buttonTag}>
24124
- </div>
24045
+ ${this.renderHtmlActionClear()}
24125
24046
  ` : undefined}
24126
24047
  ` : undefined}
24127
24048
  </div>
24128
24049
  </div>
24129
- <!-- Help text and error message template -->
24130
- ${!this.validity || this.validity === undefined || this.validity === 'valid'
24131
- ? u$2`
24132
- <${this.helpTextTag} ?onDark="${this.onDark}">
24133
- <p id="${this.uniqueId}" part="helpText">
24134
- <slot name="helptext">${this.getHelpText()}</slot>
24135
- </p>
24136
- </${this.helpTextTag}>
24137
- `
24138
- : u$2`
24139
- <${this.helpTextTag} error ?onDark="${this.onDark}">
24140
- <p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
24141
- ${this.errorMessage}
24142
- </p>
24143
- </${this.helpTextTag}>
24144
- `
24145
- }
24050
+ <div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
24051
+ ${this.renderHtmlHelpText()}
24052
+ </div>
24146
24053
  `;
24147
24054
  }
24148
24055
 
@@ -16382,7 +16382,7 @@ var dropdownVersion = '3.0.0';
16382
16382
  */
16383
16383
  const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=e$1(class extends i{constructor(e){if(super(e),e.type!==t$1.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return {values:o,keys:l}}render(e,s,t){return this.dt(e,s,t).values}update(s,[t,r$1,c]){const d=p(s),{values:p$1,keys:a}=this.dt(t,r$1,c);if(!Array.isArray(d))return this.ut=a,p$1;const h=this.ut??=[],v$1=[];let m$1,y,x=0,j=d.length-1,k=0,w=p$1.length-1;for(;x<=j&&k<=w;)if(null===d[x])x++;else if(null===d[j])j--;else if(h[x]===a[k])v$1[k]=v(d[x],p$1[k]),x++,k++;else if(h[j]===a[w])v$1[w]=v(d[j],p$1[w]),j--,w--;else if(h[x]===a[w])v$1[w]=v(d[x],p$1[w]),r(s,v$1[w+1],d[x]),x++,w--;else if(h[j]===a[k])v$1[k]=v(d[j],p$1[k]),r(s,d[x],d[j]),j--,k++;else if(void 0===m$1&&(m$1=u(a,k,w),y=u(h,x,j)),m$1.has(h[x]))if(m$1.has(h[j])){const e=y.get(a[k]),t=void 0!==e?d[e]:null;if(null===t){const e=r(s,d[x]);v(e,p$1[k]),v$1[k]=e;}else v$1[k]=v(t,p$1[k]),r(s,d[x],t),d[e]=null;k++;}else M(d[j]),j--;else M(d[x]),x++;for(;k<=w;){const e=r(s,v$1[w+1]);v(e,p$1[k]),v$1[k++]=e;}for(;x<=j;){const e=d[x++];null!==e&&M(e);}return this.ut=a,m(s,v$1),T}});
16384
16384
 
16385
- var shapeSizeCss = i$5`.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:0;min-height:60px;max-height:60px;background-color:unset}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-rounded-lg{min-height:52px;max-height:52px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px}.shape-pill-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px 0 0 34px}.shape-pill-left-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 34px 34px 0}.shape-pill-right-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px}.shape-pill-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px 0 0 34px}.shape-pill-left-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 34px 34px 0}.shape-pill-right-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}`;
16385
+ var shapeSizeCss = i$5`.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}`;
16386
16386
 
16387
16387
  var styleCss$4 = 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}`;
16388
16388
 
@@ -16392,6 +16392,10 @@ var colorBaseCss = i$5`.wrapper{border-color:var(--ds-auro-input-border-color);b
16392
16392
 
16393
16393
  var tokensCss$4 = i$5`:host(:not(ondark)){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
16394
16394
 
16395
+ var classicStyleCss = i$5`.layout-classic{display:flex;flex-direction:row}.layout-classic .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;flex:1;cursor:text}.layout-classic .mainContent label{cursor:text;padding-top:4px;font-size:var(--ds-text-body-size-xs);line-height:20px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent input{font-size:var(--ds-basic-text-body-default-font-size, 16px);line-height:var(--ds-basic-text-body-default-line-height, 24px);padding-bottom:8px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);height:auto}.layout-classic .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start;padding-top:0;font-size:var(--ds-text-body-size-default, 1rem);line-height:var(--ds-text-body-size-default)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) input{height:0;line-height:0;padding-bottom:0}.layout-classic .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-classic .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-classic .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-classic.withValue{justify-content:flex-start}.layout-classic:focus-within{box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color);justify-content:flex-start}.layout-classic:focus-within .alertNotification{display:none}.layout-classic .accents.left{padding-left:8px}.layout-classic .accents.right{padding-right:8px}`;
16396
+
16397
+ var classicColorCss = i$5`.layout-default label{color:var(--ds-auro-input-label-text-color)}`;
16398
+
16395
16399
  var emphasizedStyleCss = i$5`:host{display:block}.wrapper{cursor:text}.helpTextClasses{cursor:default}input{background:unset;width:100%;padding:0;border:0;outline:none;overflow:hidden;text-overflow:ellipsis}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:24px;width:calc(100% - 48px)}.layout-emphasized,.layout-emphasized-left,.layout-emphasized-right{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-emphasized label,.layout-emphasized-left label,.layout-emphasized-right label{text-transform:uppercase;font-size:32px;line-height:38px}.layout-emphasized input,.layout-emphasized-left input,.layout-emphasized-right input{text-align:center;font-size:14px;line-height:20px}.layout-emphasized .mainContent,.layout-emphasized-left .mainContent,.layout-emphasized-right .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1}.layout-emphasized .displayValue,.layout-emphasized-left .displayValue,.layout-emphasized-right .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-emphasized .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-left .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-right .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-emphasized .displayValueWrapper,.layout-emphasized-left .displayValueWrapper,.layout-emphasized-right .displayValueWrapper{transform:translateY(-50%)}.layout-emphasized .accents,.layout-emphasized-left .accents,.layout-emphasized-right .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-emphasized.withValue,.layout-emphasized-left.withValue,.layout-emphasized-right.withValue{justify-content:flex-start}.layout-emphasized.withValue label,.layout-emphasized-left.withValue label,.layout-emphasized-right.withValue label{display:block;text-transform:unset;font-size:10px;line-height:14px;width:100%;text-align:left}.layout-emphasized.withValue input,.layout-emphasized-left.withValue input,.layout-emphasized-right.withValue input{text-transform:uppercase;font-size:32px;line-height:38px;text-align:left;width:100%}.layout-emphasized:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-left:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-right:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{justify-content:flex-start}.layout-emphasized:focus-within label,.layout-emphasized-left:focus-within label,.layout-emphasized-right:focus-within label{display:block;text-transform:unset;font-size:10px;line-height:14px;width:100%;text-align:left}.layout-emphasized:focus-within input,.layout-emphasized-left:focus-within input,.layout-emphasized-right:focus-within input{text-transform:uppercase;font-size:32px;line-height:38px;text-align:left;width:100%}.layout-emphasized:focus-within .alertNotification,.layout-emphasized-left:focus-within .alertNotification,.layout-emphasized-right:focus-within .alertNotification{display:none}.layout-emphasized .accents.left,.layout-emphasized-left .accents.left,.layout-emphasized-right .accents.left{padding-left:24px}.layout-emphasized .accents.right,.layout-emphasized-left .accents.right,.layout-emphasized-right .accents.right{padding-right:24px}.layout-emphasized-left .alertNotification{margin-right:8px}.layout-emphasized-left .clear{margin-left:8px}.layout-emphasized-right .alertNotification{margin-left:8px}.layout-emphasized-right .clear{margin-right:8px}`;
16396
16400
 
16397
16401
  var emphasizedColorCss = i$5`.layout-emphasized:focus-within,.layout-emphasized.withValue,.layout-emphasized-left:focus-within,.layout-emphasized-left.withValue,.layout-emphasized-right:focus-within,.layout-emphasized-right.withValue{--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{--auro-input-border-color: var(--ds-auro-input-border-color)}`;
@@ -21336,9 +21340,9 @@ class BaseInput extends AuroElement$1 {
21336
21340
  this.required = false;
21337
21341
  this.setCustomValidityForType = undefined;
21338
21342
 
21339
- this.layout = 'default';
21343
+ this.layout = 'classic';
21340
21344
  this.shape = 'rounded';
21341
- this.size = 'xl';
21345
+ this.size = 'lg';
21342
21346
  }
21343
21347
 
21344
21348
  /**
@@ -23468,6 +23472,8 @@ class AuroInput extends BaseInput {
23468
23472
  i$5`${styleCss$4}`,
23469
23473
  i$5`${styleDefaultCss}`,
23470
23474
  i$5`${tokensCss$4}`,
23475
+ i$5`${classicStyleCss}`,
23476
+ i$5`${classicColorCss}`,
23471
23477
  i$5`${emphasizedStyleCss}`,
23472
23478
  i$5`${emphasizedColorCss}`,
23473
23479
  i$5`${snowflakeStyleCss}`
@@ -23578,14 +23584,19 @@ class AuroInput extends BaseInput {
23578
23584
  /**
23579
23585
  * Returns HTML for the HTML5 input element.
23580
23586
  * @private
23587
+ * @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
23581
23588
  * @returns {html} - Returns HTML for the HTML5 input element.
23582
23589
  */
23583
- renderHtmlInput() {
23590
+ renderHtmlInput(hideInputWhenBlurred = false) {
23584
23591
  const displayValueClasses = {
23585
23592
  'displayValue': true,
23586
23593
  'hasContent': this.hasDisplayValueContent,
23587
23594
  'hasFocus': this.hasFocus,
23588
- 'withValue': this.value && this.value.length > 0
23595
+ 'withValue': this.value && this.value.length > 0,
23596
+ };
23597
+
23598
+ const inputClasses = {
23599
+ 'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
23589
23600
  };
23590
23601
 
23591
23602
  return u$2`
@@ -23608,6 +23619,7 @@ class AuroInput extends BaseInput {
23608
23619
  autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
23609
23620
  autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
23610
23621
  autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
23622
+ class="${e(inputClasses)}"
23611
23623
  id="${this.inputId}"
23612
23624
  inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
23613
23625
  lang="${o(this.lang)}"
@@ -23753,137 +23765,32 @@ class AuroInput extends BaseInput {
23753
23765
  /**
23754
23766
  * Returns HTML for the default layout.
23755
23767
  * @private
23756
- * @returns {html} - Returns HTML for the default layout.
23768
+ * @returns {import("lit").TemplateResult} - Returns HTML for the default layout.
23757
23769
  */
23758
23770
  renderLayoutClassic() {
23759
- const wrapperClasses = {
23760
- 'layoutDefault': true
23761
- };
23762
-
23763
- // is-disabled class - THIS IS ONLY HERE TO MAKE A TEST PASS AS FAR AS I CAN TELL
23764
- const labelClasses = {
23765
- 'is-disabled': this.disabled,
23766
- 'withIcon': this.hasTypeIcon(),
23767
- 'withValue': this.value && this.value.length > 0
23768
- };
23769
-
23770
23771
  return u$2`
23771
- <div class="${e(wrapperClasses)}" part="wrapper">
23772
- <div class="main">
23773
- <div class="typeIcon">
23774
- ${this.type === 'credit-card' ? this.processCreditCard() : undefined}
23775
-
23776
- <!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
23777
- This should be cleaned up when auro-icon issue #31 is resolved. -->
23778
- ${this.inputIconName
23779
- ? c([this.inputIconName], (val) => val, (name) => u$2`
23780
- <${this.iconTag}
23781
- class="accentIcon"
23782
- category="payment"
23783
- name="${name}"
23784
- part="accentIcon"
23785
- ?onDark="${this.onDark}"
23786
- variant="${this.disabled ? 'disabled' : 'muted'}">
23787
- </${this.iconTag}>
23788
- `) : undefined
23789
- }
23790
-
23791
- ${this.type === 'date'
23792
- ? u$2`
23793
- <${this.iconTag}
23794
- class="accentIcon"
23795
- category="interface"
23796
- name="calendar"
23797
- part="accentIcon"
23798
- ?onDark="${this.onDark}"
23799
- variant="${this.disabled ? 'disabled' : 'muted'}">
23800
- </${this.iconTag}>`
23801
- : undefined
23802
- }
23803
- </div>
23804
- <label for=${this.id} class="${e(labelClasses)}" part="label">
23805
- <slot name="label">
23806
- ${this.label}
23807
- </slot>
23808
- ${this.required ? '' : ` (${i18n(this.lang, 'optional')})`}
23809
- </label>
23810
-
23811
- ${this.renderHtmlInput()}
23772
+ <div
23773
+ @click="${this.handleClick}"
23774
+ class="${e(this.commonWrapperClasses)} thin"
23775
+ part="wrapper">
23776
+ <div class="accents left">
23777
+ ${this.renderHtmlTypeIcon()}
23812
23778
  </div>
23813
- <div
23814
- class="notificationIcons"
23815
- part="notificationIcons"
23816
- ?hasValue="${this.hasValue}">
23817
- ${this.validity && this.validity !== 'valid' ? u$2`
23818
- <div class="notification alertNotification">
23819
- <${this.iconTag}
23820
- category="alert"
23821
- customColor
23822
- name="error-stroke"
23823
- </${this.iconTag}>
23824
- </div>
23825
- ` : undefined}
23779
+ <div class="mainContent">
23780
+ ${this.renderHtmlInput(true)}
23781
+ </div>
23782
+ <div class="accents right">
23783
+ ${this.renderValidationErrorIconHtml()}
23826
23784
  ${this.hasValue ? u$2`
23827
- ${this.type === 'password' ? u$2`
23828
- <div class="notification">
23829
- <${this.buttonTag}
23830
- @click="${this.handleClickShowPassword}"
23831
- ?onDark="${this.onDark}"
23832
- aria-hidden="true"
23833
- class="notificationBtn passwordBtn"
23834
- tabindex="-1"
23835
- variant="flat">
23836
- <${this.iconTag}
23837
- ?hidden=${!this.showPassword}
23838
- category="interface"
23839
- customColor
23840
- name="hide-password-stroke">
23841
- </${this.iconTag}>
23842
- <${this.iconTag}
23843
- ?hidden=${this.showPassword}
23844
- category="interface"
23845
- customColor
23846
- name="view-password-stroke">
23847
- </${this.iconTag}>
23848
- </${this.buttonTag}>
23849
- </div>
23850
- ` : undefined}
23851
23785
  ${!this.disabled && !this.readonly ? u$2`
23852
- <div class="notification">
23853
- <${this.buttonTag}
23854
- @click="${this.handleClickClear}"
23855
- ?onDark="${this.onDark}"
23856
- arialabel="${i18n(this.lang, 'clearInput')}"
23857
- class="notificationBtn clearBtn"
23858
- variant="flat">
23859
- <${this.iconTag}
23860
- category="interface"
23861
- customColor
23862
- name="x-lg">
23863
- </${this.iconTag}>
23864
- </${this.buttonTag}>
23865
- </div>
23786
+ ${this.renderHtmlActionClear()}
23866
23787
  ` : undefined}
23867
23788
  ` : undefined}
23868
23789
  </div>
23869
23790
  </div>
23870
- <!-- Help text and error message template -->
23871
- ${!this.validity || this.validity === undefined || this.validity === 'valid'
23872
- ? u$2`
23873
- <${this.helpTextTag} ?onDark="${this.onDark}">
23874
- <p id="${this.uniqueId}" part="helpText">
23875
- <slot name="helptext">${this.getHelpText()}</slot>
23876
- </p>
23877
- </${this.helpTextTag}>
23878
- `
23879
- : u$2`
23880
- <${this.helpTextTag} error ?onDark="${this.onDark}">
23881
- <p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
23882
- ${this.errorMessage}
23883
- </p>
23884
- </${this.helpTextTag}>
23885
- `
23886
- }
23791
+ <div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
23792
+ ${this.renderHtmlHelpText()}
23793
+ </div>
23887
23794
  `;
23888
23795
  }
23889
23796