@aurodesignsystem-dev/auro-formkit 0.0.0-pr1581.1 → 0.0.0-pr1582.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.
- package/components/checkbox/demo/customize.min.js +1 -1
- package/components/checkbox/demo/getting-started.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/customize.min.js +28 -6
- package/components/combobox/demo/getting-started.min.js +28 -6
- package/components/combobox/demo/index.min.js +28 -6
- package/components/combobox/dist/index.js +28 -6
- package/components/combobox/dist/registered.js +28 -6
- package/components/counter/demo/customize.min.js +2 -2
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/demo/customize.min.js +28 -6
- package/components/datepicker/demo/index.min.js +28 -6
- package/components/datepicker/dist/index.js +28 -6
- package/components/datepicker/dist/registered.js +28 -6
- package/components/dropdown/demo/customize.min.js +1 -1
- package/components/dropdown/demo/getting-started.min.js +27 -5
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/customize.min.js +88 -22
- package/components/form/demo/getting-started.min.js +88 -22
- package/components/form/demo/index.min.js +88 -22
- package/components/form/demo/registerDemoDeps.min.js +88 -22
- package/components/input/demo/api.md +1 -1
- package/components/input/demo/customize.md +1 -1
- package/components/input/demo/customize.min.js +26 -4
- package/components/input/demo/getting-started.min.js +26 -4
- package/components/input/demo/index.min.js +26 -4
- package/components/input/dist/auro-input.d.ts +8 -0
- package/components/input/dist/base-input.d.ts +2 -0
- package/components/input/dist/index.js +26 -4
- package/components/input/dist/registered.js +26 -4
- package/components/radio/demo/customize.min.js +1 -1
- package/components/radio/demo/getting-started.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/customize.min.js +2 -2
- package/components/select/demo/getting-started.min.js +2 -2
- package/components/select/demo/index.min.js +2 -2
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +16 -4
- package/package.json +3 -6
- package/ai/README.md +0 -142
- package/ai/_a11y-baseline.md +0 -27
- package/ai/_authored/_defaults.overlay.yaml +0 -81
- package/ai/_authored/auro-checkbox.overlay.yaml +0 -22
- package/ai/_authored/auro-combobox.overlay.yaml +0 -37
- package/ai/_authored/auro-counter.overlay.yaml +0 -23
- package/ai/_authored/auro-datepicker.overlay.yaml +0 -44
- package/ai/_authored/auro-dropdown.overlay.yaml +0 -35
- package/ai/_authored/auro-form.overlay.yaml +0 -12
- package/ai/_authored/auro-input.overlay.yaml +0 -33
- package/ai/_authored/auro-menu.overlay.yaml +0 -21
- package/ai/_authored/auro-radio.overlay.yaml +0 -19
- package/ai/_authored/auro-select.overlay.yaml +0 -37
- package/ai/_prompt-template.md +0 -33
- package/ai/llms.txt +0 -26
- package/ai/specs/auro-checkbox.spec.yaml +0 -181
- package/ai/specs/auro-combobox.spec.yaml +0 -349
- package/ai/specs/auro-counter.spec.yaml +0 -215
- package/ai/specs/auro-datepicker.spec.yaml +0 -395
- package/ai/specs/auro-dropdown.spec.yaml +0 -295
- package/ai/specs/auro-form.spec.yaml +0 -148
- package/ai/specs/auro-input.spec.yaml +0 -392
- package/ai/specs/auro-menu.spec.yaml +0 -213
- package/ai/specs/auro-radio.spec.yaml +0 -184
- package/ai/specs/auro-select.spec.yaml +0 -324
|
@@ -10813,6 +10813,8 @@ let BaseInput$2 = class BaseInput extends AuroElement$6 {
|
|
|
10813
10813
|
|
|
10814
10814
|
/**
|
|
10815
10815
|
* If set, the label will remain fixed in the active position.
|
|
10816
|
+
* Only applies to the classic/default layout; the emphasized and snowflake
|
|
10817
|
+
* layouts always render the label inside the field, so this has no effect there.
|
|
10816
10818
|
*/
|
|
10817
10819
|
activeLabel: {
|
|
10818
10820
|
type: Boolean,
|
|
@@ -12339,7 +12341,7 @@ let AuroHelpText$8 = class AuroHelpText extends i$2 {
|
|
|
12339
12341
|
}
|
|
12340
12342
|
};
|
|
12341
12343
|
|
|
12342
|
-
var formkitVersion$8 = '
|
|
12344
|
+
var formkitVersion$8 = '202608111811';
|
|
12343
12345
|
|
|
12344
12346
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12345
12347
|
// See LICENSE in the project root for license information.
|
|
@@ -12440,15 +12442,35 @@ let AuroInput$2 = class AuroInput extends BaseInput$2 {
|
|
|
12440
12442
|
* @private
|
|
12441
12443
|
*/
|
|
12442
12444
|
get inputHidden() {
|
|
12445
|
+
// In the classic/default layout, activeLabel keeps the input row visible so
|
|
12446
|
+
// the label stays raised rather than collapsing to the centered placeholder
|
|
12447
|
+
// position. Emphasized/snowflake always render the label inside the field,
|
|
12448
|
+
// so activeLabel does not apply there. This only overrides the empty/
|
|
12449
|
+
// unfocused clause — the display-value clause (combobox/datepicker) is
|
|
12450
|
+
// preserved regardless.
|
|
12451
|
+
const activeLabelRaisesInput = this.activeLabel && this.isClassicLayout;
|
|
12452
|
+
|
|
12443
12453
|
return (
|
|
12444
12454
|
this.hasDisplayValueContent && !this.hasFocus && this.hasValue) ||
|
|
12445
12455
|
(
|
|
12456
|
+
!activeLabelRaisesInput &&
|
|
12446
12457
|
(!this.value || this.value.length === 0) &&
|
|
12447
12458
|
!this.hasFocus &&
|
|
12448
12459
|
(!this.placeholderStr || this.placeholderStr === '')
|
|
12449
12460
|
);
|
|
12450
12461
|
}
|
|
12451
12462
|
|
|
12463
|
+
/**
|
|
12464
|
+
* Whether the component is rendering the classic/default layout, meaning not
|
|
12465
|
+
* emphasized and not snowflake. Kept as a single source of truth so
|
|
12466
|
+
* layout-scoped behavior such as activeLabel stays consistent across getters.
|
|
12467
|
+
* @returns {boolean} - True for the classic/default layout.
|
|
12468
|
+
* @private
|
|
12469
|
+
*/
|
|
12470
|
+
get isClassicLayout() {
|
|
12471
|
+
return !this.layout.startsWith('emphasized') && this.layout !== 'snowflake';
|
|
12472
|
+
}
|
|
12473
|
+
|
|
12452
12474
|
/**
|
|
12453
12475
|
* Determines if the input should display in a state with no focus or value indication.
|
|
12454
12476
|
* Returns true when the input has display content without focus and has a value,
|
|
@@ -12494,7 +12516,7 @@ let AuroInput$2 = class AuroInput extends BaseInput$2 {
|
|
|
12494
12516
|
}
|
|
12495
12517
|
|
|
12496
12518
|
// classic layout (default)
|
|
12497
|
-
return ((!this.value || this.value.length === 0) && !this.placeholderStr && !this.hasFocus) ? 'body-default' : 'body-xs';
|
|
12519
|
+
return ((!this.value || this.value.length === 0) && !this.placeholderStr && !this.hasFocus && !this.activeLabel) ? 'body-default' : 'body-xs';
|
|
12498
12520
|
}
|
|
12499
12521
|
|
|
12500
12522
|
/**
|
|
@@ -12590,7 +12612,8 @@ let AuroInput$2 = class AuroInput extends BaseInput$2 {
|
|
|
12590
12612
|
'wrapper': true,
|
|
12591
12613
|
'simple': this.simple,
|
|
12592
12614
|
'withValue': this.hasValue,
|
|
12593
|
-
'hasFocus': this.hasFocus
|
|
12615
|
+
'hasFocus': this.hasFocus,
|
|
12616
|
+
'activeLabel': this.activeLabel
|
|
12594
12617
|
};
|
|
12595
12618
|
}
|
|
12596
12619
|
|
|
@@ -12801,7 +12824,6 @@ let AuroInput$2 = class AuroInput extends BaseInput$2 {
|
|
|
12801
12824
|
@input="${this.handleInput}"
|
|
12802
12825
|
.placeholder=${this.placeholderStr}
|
|
12803
12826
|
.role=${this.a11yRole}
|
|
12804
|
-
?activeLabel="${this.activeLabel}"
|
|
12805
12827
|
?disabled="${this.disabled}"
|
|
12806
12828
|
?required="${this.required}"
|
|
12807
12829
|
aria-activedescendant=${o$4(this.a11yActivedescendant)}
|
|
@@ -26771,7 +26793,7 @@ let AuroBibtemplate$3 = class AuroBibtemplate extends i$2 {
|
|
|
26771
26793
|
}
|
|
26772
26794
|
};
|
|
26773
26795
|
|
|
26774
|
-
var formkitVersion$2$1 = '
|
|
26796
|
+
var formkitVersion$2$1 = '202608111811';
|
|
26775
26797
|
|
|
26776
26798
|
let l$1$2 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[.]/g,"_"),o}generateTag(o,s,a){const r=this.generateElementName(o,s),i=i$5`${s$5(r)}`;return customElements.get(r)||customElements.define(r,class extends a{}),i}};let d$1$2 = class d{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}getSlotText(t,e){const o=t.shadowRoot?.querySelector(`slot[name="${e}"]`),s=(o?.assignedNodes({flatten:true})||[]).map(t=>t.textContent?.trim()).join(" ").trim();return s||null}};let h$1$2 = class h{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}};var c$1$3=i$4`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]),:host([appearance=brand]){--ds-auro-loader-color: var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]),:host([appearance=inverse]){--ds-auro-loader-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
|
|
26777
26799
|
`,u$4$2=i$4`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, .75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0;box-sizing:border-box}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin) * 6);height:calc(1rem + var(--margin) * 2)}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(1.95rem + var(--margin-xs) * 6);height:calc(.65rem + var(--margin-xs) * 2)}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm) * 6);height:calc(2rem + var(--margin-sm) * 2)}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md) * 6);height:calc(3rem + var(--margin-md) * 2)}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg) * 6);height:calc(5rem + var(--margin-lg) * 2)}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-.4s}:host([pulse])>span:nth-child(2){animation-delay:-.2s}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}:host>.no-animation{display:none}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}
|
|
@@ -32502,7 +32524,7 @@ let AuroHelpText$2$1 = class AuroHelpText extends i$2 {
|
|
|
32502
32524
|
}
|
|
32503
32525
|
};
|
|
32504
32526
|
|
|
32505
|
-
var formkitVersion$1$3 = '
|
|
32527
|
+
var formkitVersion$1$3 = '202608111811';
|
|
32506
32528
|
|
|
32507
32529
|
let AuroElement$2$2 = class AuroElement extends i$2 {
|
|
32508
32530
|
static get properties() {
|
|
@@ -44667,6 +44689,8 @@ let BaseInput$1 = class BaseInput extends AuroElement$1$3 {
|
|
|
44667
44689
|
|
|
44668
44690
|
/**
|
|
44669
44691
|
* If set, the label will remain fixed in the active position.
|
|
44692
|
+
* Only applies to the classic/default layout; the emphasized and snowflake
|
|
44693
|
+
* layouts always render the label inside the field, so this has no effect there.
|
|
44670
44694
|
*/
|
|
44671
44695
|
activeLabel: {
|
|
44672
44696
|
type: Boolean,
|
|
@@ -46193,7 +46217,7 @@ let AuroHelpText$1$3 = class AuroHelpText extends i$2 {
|
|
|
46193
46217
|
}
|
|
46194
46218
|
};
|
|
46195
46219
|
|
|
46196
|
-
var formkitVersion$7 = '
|
|
46220
|
+
var formkitVersion$7 = '202608111811';
|
|
46197
46221
|
|
|
46198
46222
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
46199
46223
|
// See LICENSE in the project root for license information.
|
|
@@ -46294,15 +46318,35 @@ let AuroInput$1 = class AuroInput extends BaseInput$1 {
|
|
|
46294
46318
|
* @private
|
|
46295
46319
|
*/
|
|
46296
46320
|
get inputHidden() {
|
|
46321
|
+
// In the classic/default layout, activeLabel keeps the input row visible so
|
|
46322
|
+
// the label stays raised rather than collapsing to the centered placeholder
|
|
46323
|
+
// position. Emphasized/snowflake always render the label inside the field,
|
|
46324
|
+
// so activeLabel does not apply there. This only overrides the empty/
|
|
46325
|
+
// unfocused clause — the display-value clause (combobox/datepicker) is
|
|
46326
|
+
// preserved regardless.
|
|
46327
|
+
const activeLabelRaisesInput = this.activeLabel && this.isClassicLayout;
|
|
46328
|
+
|
|
46297
46329
|
return (
|
|
46298
46330
|
this.hasDisplayValueContent && !this.hasFocus && this.hasValue) ||
|
|
46299
46331
|
(
|
|
46332
|
+
!activeLabelRaisesInput &&
|
|
46300
46333
|
(!this.value || this.value.length === 0) &&
|
|
46301
46334
|
!this.hasFocus &&
|
|
46302
46335
|
(!this.placeholderStr || this.placeholderStr === '')
|
|
46303
46336
|
);
|
|
46304
46337
|
}
|
|
46305
46338
|
|
|
46339
|
+
/**
|
|
46340
|
+
* Whether the component is rendering the classic/default layout, meaning not
|
|
46341
|
+
* emphasized and not snowflake. Kept as a single source of truth so
|
|
46342
|
+
* layout-scoped behavior such as activeLabel stays consistent across getters.
|
|
46343
|
+
* @returns {boolean} - True for the classic/default layout.
|
|
46344
|
+
* @private
|
|
46345
|
+
*/
|
|
46346
|
+
get isClassicLayout() {
|
|
46347
|
+
return !this.layout.startsWith('emphasized') && this.layout !== 'snowflake';
|
|
46348
|
+
}
|
|
46349
|
+
|
|
46306
46350
|
/**
|
|
46307
46351
|
* Determines if the input should display in a state with no focus or value indication.
|
|
46308
46352
|
* Returns true when the input has display content without focus and has a value,
|
|
@@ -46348,7 +46392,7 @@ let AuroInput$1 = class AuroInput extends BaseInput$1 {
|
|
|
46348
46392
|
}
|
|
46349
46393
|
|
|
46350
46394
|
// classic layout (default)
|
|
46351
|
-
return ((!this.value || this.value.length === 0) && !this.placeholderStr && !this.hasFocus) ? 'body-default' : 'body-xs';
|
|
46395
|
+
return ((!this.value || this.value.length === 0) && !this.placeholderStr && !this.hasFocus && !this.activeLabel) ? 'body-default' : 'body-xs';
|
|
46352
46396
|
}
|
|
46353
46397
|
|
|
46354
46398
|
/**
|
|
@@ -46444,7 +46488,8 @@ let AuroInput$1 = class AuroInput extends BaseInput$1 {
|
|
|
46444
46488
|
'wrapper': true,
|
|
46445
46489
|
'simple': this.simple,
|
|
46446
46490
|
'withValue': this.hasValue,
|
|
46447
|
-
'hasFocus': this.hasFocus
|
|
46491
|
+
'hasFocus': this.hasFocus,
|
|
46492
|
+
'activeLabel': this.activeLabel
|
|
46448
46493
|
};
|
|
46449
46494
|
}
|
|
46450
46495
|
|
|
@@ -46655,7 +46700,6 @@ let AuroInput$1 = class AuroInput extends BaseInput$1 {
|
|
|
46655
46700
|
@input="${this.handleInput}"
|
|
46656
46701
|
.placeholder=${this.placeholderStr}
|
|
46657
46702
|
.role=${this.a11yRole}
|
|
46658
|
-
?activeLabel="${this.activeLabel}"
|
|
46659
46703
|
?disabled="${this.disabled}"
|
|
46660
46704
|
?required="${this.required}"
|
|
46661
46705
|
aria-activedescendant=${o$4(this.a11yActivedescendant)}
|
|
@@ -51175,7 +51219,7 @@ let AuroHelpText$1$2 = class AuroHelpText extends i$2 {
|
|
|
51175
51219
|
}
|
|
51176
51220
|
};
|
|
51177
51221
|
|
|
51178
|
-
var formkitVersion$1$2 = '
|
|
51222
|
+
var formkitVersion$1$2 = '202608111811';
|
|
51179
51223
|
|
|
51180
51224
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
51181
51225
|
// See LICENSE in the project root for license information.
|
|
@@ -55328,7 +55372,7 @@ let AuroHelpText$6 = class AuroHelpText extends i$2 {
|
|
|
55328
55372
|
}
|
|
55329
55373
|
};
|
|
55330
55374
|
|
|
55331
|
-
var formkitVersion$6 = '
|
|
55375
|
+
var formkitVersion$6 = '202608111811';
|
|
55332
55376
|
|
|
55333
55377
|
let AuroElement$1$2 = class AuroElement extends i$2 {
|
|
55334
55378
|
static get properties() {
|
|
@@ -59391,7 +59435,7 @@ let AuroHelpText$5 = class AuroHelpText extends i$2 {
|
|
|
59391
59435
|
}
|
|
59392
59436
|
};
|
|
59393
59437
|
|
|
59394
|
-
var formkitVersion$5 = '
|
|
59438
|
+
var formkitVersion$5 = '202608111811';
|
|
59395
59439
|
|
|
59396
59440
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
59397
59441
|
// See LICENSE in the project root for license information.
|
|
@@ -61156,7 +61200,7 @@ let AuroHelpText$4 = class AuroHelpText extends i$2 {
|
|
|
61156
61200
|
}
|
|
61157
61201
|
};
|
|
61158
61202
|
|
|
61159
|
-
var formkitVersion$4 = '
|
|
61203
|
+
var formkitVersion$4 = '202608111811';
|
|
61160
61204
|
|
|
61161
61205
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
61162
61206
|
// See LICENSE in the project root for license information.
|
|
@@ -66475,7 +66519,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$2 {
|
|
|
66475
66519
|
}
|
|
66476
66520
|
};
|
|
66477
66521
|
|
|
66478
|
-
var formkitVersion$2 = '
|
|
66522
|
+
var formkitVersion$2 = '202608111811';
|
|
66479
66523
|
|
|
66480
66524
|
let AuroElement$2$1 = class AuroElement extends i$2 {
|
|
66481
66525
|
static get properties() {
|
|
@@ -78640,6 +78684,8 @@ class BaseInput extends AuroElement$1$1 {
|
|
|
78640
78684
|
|
|
78641
78685
|
/**
|
|
78642
78686
|
* If set, the label will remain fixed in the active position.
|
|
78687
|
+
* Only applies to the classic/default layout; the emphasized and snowflake
|
|
78688
|
+
* layouts always render the label inside the field, so this has no effect there.
|
|
78643
78689
|
*/
|
|
78644
78690
|
activeLabel: {
|
|
78645
78691
|
type: Boolean,
|
|
@@ -80166,7 +80212,7 @@ let AuroHelpText$1$1 = class AuroHelpText extends i$2 {
|
|
|
80166
80212
|
}
|
|
80167
80213
|
};
|
|
80168
80214
|
|
|
80169
|
-
var formkitVersion$1$1 = '
|
|
80215
|
+
var formkitVersion$1$1 = '202608111811';
|
|
80170
80216
|
|
|
80171
80217
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
80172
80218
|
// See LICENSE in the project root for license information.
|
|
@@ -80267,15 +80313,35 @@ class AuroInput extends BaseInput {
|
|
|
80267
80313
|
* @private
|
|
80268
80314
|
*/
|
|
80269
80315
|
get inputHidden() {
|
|
80316
|
+
// In the classic/default layout, activeLabel keeps the input row visible so
|
|
80317
|
+
// the label stays raised rather than collapsing to the centered placeholder
|
|
80318
|
+
// position. Emphasized/snowflake always render the label inside the field,
|
|
80319
|
+
// so activeLabel does not apply there. This only overrides the empty/
|
|
80320
|
+
// unfocused clause — the display-value clause (combobox/datepicker) is
|
|
80321
|
+
// preserved regardless.
|
|
80322
|
+
const activeLabelRaisesInput = this.activeLabel && this.isClassicLayout;
|
|
80323
|
+
|
|
80270
80324
|
return (
|
|
80271
80325
|
this.hasDisplayValueContent && !this.hasFocus && this.hasValue) ||
|
|
80272
80326
|
(
|
|
80327
|
+
!activeLabelRaisesInput &&
|
|
80273
80328
|
(!this.value || this.value.length === 0) &&
|
|
80274
80329
|
!this.hasFocus &&
|
|
80275
80330
|
(!this.placeholderStr || this.placeholderStr === '')
|
|
80276
80331
|
);
|
|
80277
80332
|
}
|
|
80278
80333
|
|
|
80334
|
+
/**
|
|
80335
|
+
* Whether the component is rendering the classic/default layout, meaning not
|
|
80336
|
+
* emphasized and not snowflake. Kept as a single source of truth so
|
|
80337
|
+
* layout-scoped behavior such as activeLabel stays consistent across getters.
|
|
80338
|
+
* @returns {boolean} - True for the classic/default layout.
|
|
80339
|
+
* @private
|
|
80340
|
+
*/
|
|
80341
|
+
get isClassicLayout() {
|
|
80342
|
+
return !this.layout.startsWith('emphasized') && this.layout !== 'snowflake';
|
|
80343
|
+
}
|
|
80344
|
+
|
|
80279
80345
|
/**
|
|
80280
80346
|
* Determines if the input should display in a state with no focus or value indication.
|
|
80281
80347
|
* Returns true when the input has display content without focus and has a value,
|
|
@@ -80321,7 +80387,7 @@ class AuroInput extends BaseInput {
|
|
|
80321
80387
|
}
|
|
80322
80388
|
|
|
80323
80389
|
// classic layout (default)
|
|
80324
|
-
return ((!this.value || this.value.length === 0) && !this.placeholderStr && !this.hasFocus) ? 'body-default' : 'body-xs';
|
|
80390
|
+
return ((!this.value || this.value.length === 0) && !this.placeholderStr && !this.hasFocus && !this.activeLabel) ? 'body-default' : 'body-xs';
|
|
80325
80391
|
}
|
|
80326
80392
|
|
|
80327
80393
|
/**
|
|
@@ -80417,7 +80483,8 @@ class AuroInput extends BaseInput {
|
|
|
80417
80483
|
'wrapper': true,
|
|
80418
80484
|
'simple': this.simple,
|
|
80419
80485
|
'withValue': this.hasValue,
|
|
80420
|
-
'hasFocus': this.hasFocus
|
|
80486
|
+
'hasFocus': this.hasFocus,
|
|
80487
|
+
'activeLabel': this.activeLabel
|
|
80421
80488
|
};
|
|
80422
80489
|
}
|
|
80423
80490
|
|
|
@@ -80628,7 +80695,6 @@ class AuroInput extends BaseInput {
|
|
|
80628
80695
|
@input="${this.handleInput}"
|
|
80629
80696
|
.placeholder=${this.placeholderStr}
|
|
80630
80697
|
.role=${this.a11yRole}
|
|
80631
|
-
?activeLabel="${this.activeLabel}"
|
|
80632
80698
|
?disabled="${this.disabled}"
|
|
80633
80699
|
?required="${this.required}"
|
|
80634
80700
|
aria-activedescendant=${o$4(this.a11yActivedescendant)}
|
|
@@ -81322,7 +81388,7 @@ let AuroBibtemplate$1 = class AuroBibtemplate extends i$2 {
|
|
|
81322
81388
|
}
|
|
81323
81389
|
};
|
|
81324
81390
|
|
|
81325
|
-
var formkitVersion$3 = '
|
|
81391
|
+
var formkitVersion$3 = '202608111811';
|
|
81326
81392
|
|
|
81327
81393
|
var styleCss$1$3 = i$4`.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}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
81328
81394
|
|
|
@@ -90522,7 +90588,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
90522
90588
|
}
|
|
90523
90589
|
};
|
|
90524
90590
|
|
|
90525
|
-
var formkitVersion$1 = '
|
|
90591
|
+
var formkitVersion$1 = '202608111811';
|
|
90526
90592
|
|
|
90527
90593
|
class AuroElement extends i$2 {
|
|
90528
90594
|
static get properties() {
|
|
@@ -92633,7 +92699,7 @@ class AuroHelpText extends i$2 {
|
|
|
92633
92699
|
}
|
|
92634
92700
|
}
|
|
92635
92701
|
|
|
92636
|
-
var formkitVersion = '
|
|
92702
|
+
var formkitVersion = '202608111811';
|
|
92637
92703
|
|
|
92638
92704
|
var styleCss = i$4`.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}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);font-weight:var(--wcss-body-default-weight, );line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-default-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-default-emphasized{font-size:var(--wcss-body-default-emphasized-font-size, 1rem);font-weight:var(--wcss-body-default-emphasized-weight, );line-height:var(--wcss-body-default-emphasized-line-height, 1.5rem)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);font-weight:var(--wcss-body-lg-weight, );line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-lg,.body-lg-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg-emphasized{font-size:var(--wcss-body-lg-emphasized-font-size, 1.125rem);font-weight:var(--wcss-body-lg-emphasized-weight, );line-height:var(--wcss-body-lg-emphasized-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);font-weight:var(--wcss-body-sm-weight, );line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-sm-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-sm-emphasized{font-size:var(--wcss-body-sm-emphasized-font-size, 0.875rem);font-weight:var(--wcss-body-sm-emphasized-weight, );line-height:var(--wcss-body-sm-emphasized-line-height, 1.25rem)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);font-weight:var(--wcss-body-xs-weight, );line-height:var(--wcss-body-xs-line-height, 1rem)}.body-xs,.body-xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs-emphasized{font-size:var(--wcss-body-xs-emphasized-font-size, 0.75rem);font-weight:var(--wcss-body-xs-emphasized-weight, );line-height:var(--wcss-body-xs-emphasized-line-height, 1rem)}.body-2xs{font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-2xs-weight, );line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.body-2xs,.body-2xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-2xs-emphasized{font-size:var(--wcss-body-2xs-emphasized-font-size, 0.625rem);font-weight:var(--wcss-body-2xs-emphasized-weight, );line-height:var(--wcss-body-2xs-emphasized-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 300);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 300);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}[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);--ds-auro-dropdown-trigger-outline-color: var(--ds-auro-select-outline-color)}:host{display:inline-block;text-align:left;vertical-align:top}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer{max-width:100%}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;box-sizing:border-box;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host([layout*=snowflake]) label{padding-block:var(--ds-size-25, 0.125rem)}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) .value{overflow:hidden;height:auto;text-overflow:ellipsis;white-space:nowrap}label{color:var(--ds-auro-select-label-text-color)}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-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],:host([appearance=inverse]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([fluid]){width:100%}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown],:host([disabled]:not([appearance=inverse])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown],:host(:not([layout*=classic])[disabled][appearance=inverse]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
92639
92705
|
|
|
@@ -13,7 +13,7 @@ The `auro-input` element provides users a way to enter data into a text field.
|
|
|
13
13
|
| `a11yControls` | `a11yControls` | | `string` | | The value for the aria-controls attribute. |
|
|
14
14
|
| `a11yExpanded` | `a11yExpanded` | | `boolean` | | The value for the aria-expanded attribute. |
|
|
15
15
|
| `a11yRole` | `a11yRole` | | `string` | | The value for the role attribute. |
|
|
16
|
-
| `activeLabel` | `activeLabel` | | `boolean` | false | If set, the label will remain fixed in the active position. |
|
|
16
|
+
| `activeLabel` | `activeLabel` | | `boolean` | false | If set, the label will remain fixed in the active position.<br />Only applies to the classic/default layout; the emphasized and snowflake<br />layouts always render the label inside the field, so this has no effect there. |
|
|
17
17
|
| `appearance` | `appearance` | | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
|
|
18
18
|
| `autocapitalize` | `autocapitalize` | | `string` | | An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters]. |
|
|
19
19
|
| `autocomplete` | `autocomplete` | | `string` | | An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported. |
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
<section>
|
|
45
45
|
<auro-header level="2" id="appearance">Appearance</auro-header>
|
|
46
46
|
<auro-header level="3" id="activeLabel">Active Label</auro-header>
|
|
47
|
-
<p>Use the <code>activeLabel</code> attribute to make the label stay fixed in the active position.</p>
|
|
47
|
+
<p>Use the <code>activeLabel</code> attribute to make the label stay fixed in the active position. This applies to the classic/default layout only; the emphasized and snowflake layouts always render the label inside the field and are unaffected.</p>
|
|
48
48
|
<div class="exampleWrapper">
|
|
49
49
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/active-label.html) -->
|
|
50
50
|
<!-- The below content is automatically added from ../apiExamples/active-label.html -->
|
|
@@ -10742,6 +10742,8 @@ class BaseInput extends AuroElement {
|
|
|
10742
10742
|
|
|
10743
10743
|
/**
|
|
10744
10744
|
* If set, the label will remain fixed in the active position.
|
|
10745
|
+
* Only applies to the classic/default layout; the emphasized and snowflake
|
|
10746
|
+
* layouts always render the label inside the field, so this has no effect there.
|
|
10745
10747
|
*/
|
|
10746
10748
|
activeLabel: {
|
|
10747
10749
|
type: Boolean,
|
|
@@ -12268,7 +12270,7 @@ class AuroHelpText extends i$3 {
|
|
|
12268
12270
|
}
|
|
12269
12271
|
}
|
|
12270
12272
|
|
|
12271
|
-
var formkitVersion = '
|
|
12273
|
+
var formkitVersion = '202608111811';
|
|
12272
12274
|
|
|
12273
12275
|
/**
|
|
12274
12276
|
* @license
|
|
@@ -12381,15 +12383,35 @@ class AuroInput extends BaseInput {
|
|
|
12381
12383
|
* @private
|
|
12382
12384
|
*/
|
|
12383
12385
|
get inputHidden() {
|
|
12386
|
+
// In the classic/default layout, activeLabel keeps the input row visible so
|
|
12387
|
+
// the label stays raised rather than collapsing to the centered placeholder
|
|
12388
|
+
// position. Emphasized/snowflake always render the label inside the field,
|
|
12389
|
+
// so activeLabel does not apply there. This only overrides the empty/
|
|
12390
|
+
// unfocused clause — the display-value clause (combobox/datepicker) is
|
|
12391
|
+
// preserved regardless.
|
|
12392
|
+
const activeLabelRaisesInput = this.activeLabel && this.isClassicLayout;
|
|
12393
|
+
|
|
12384
12394
|
return (
|
|
12385
12395
|
this.hasDisplayValueContent && !this.hasFocus && this.hasValue) ||
|
|
12386
12396
|
(
|
|
12397
|
+
!activeLabelRaisesInput &&
|
|
12387
12398
|
(!this.value || this.value.length === 0) &&
|
|
12388
12399
|
!this.hasFocus &&
|
|
12389
12400
|
(!this.placeholderStr || this.placeholderStr === '')
|
|
12390
12401
|
);
|
|
12391
12402
|
}
|
|
12392
12403
|
|
|
12404
|
+
/**
|
|
12405
|
+
* Whether the component is rendering the classic/default layout, meaning not
|
|
12406
|
+
* emphasized and not snowflake. Kept as a single source of truth so
|
|
12407
|
+
* layout-scoped behavior such as activeLabel stays consistent across getters.
|
|
12408
|
+
* @returns {boolean} - True for the classic/default layout.
|
|
12409
|
+
* @private
|
|
12410
|
+
*/
|
|
12411
|
+
get isClassicLayout() {
|
|
12412
|
+
return !this.layout.startsWith('emphasized') && this.layout !== 'snowflake';
|
|
12413
|
+
}
|
|
12414
|
+
|
|
12393
12415
|
/**
|
|
12394
12416
|
* Determines if the input should display in a state with no focus or value indication.
|
|
12395
12417
|
* Returns true when the input has display content without focus and has a value,
|
|
@@ -12435,7 +12457,7 @@ class AuroInput extends BaseInput {
|
|
|
12435
12457
|
}
|
|
12436
12458
|
|
|
12437
12459
|
// classic layout (default)
|
|
12438
|
-
return ((!this.value || this.value.length === 0) && !this.placeholderStr && !this.hasFocus) ? 'body-default' : 'body-xs';
|
|
12460
|
+
return ((!this.value || this.value.length === 0) && !this.placeholderStr && !this.hasFocus && !this.activeLabel) ? 'body-default' : 'body-xs';
|
|
12439
12461
|
}
|
|
12440
12462
|
|
|
12441
12463
|
/**
|
|
@@ -12531,7 +12553,8 @@ class AuroInput extends BaseInput {
|
|
|
12531
12553
|
'wrapper': true,
|
|
12532
12554
|
'simple': this.simple,
|
|
12533
12555
|
'withValue': this.hasValue,
|
|
12534
|
-
'hasFocus': this.hasFocus
|
|
12556
|
+
'hasFocus': this.hasFocus,
|
|
12557
|
+
'activeLabel': this.activeLabel
|
|
12535
12558
|
};
|
|
12536
12559
|
}
|
|
12537
12560
|
|
|
@@ -12742,7 +12765,6 @@ class AuroInput extends BaseInput {
|
|
|
12742
12765
|
@input="${this.handleInput}"
|
|
12743
12766
|
.placeholder=${this.placeholderStr}
|
|
12744
12767
|
.role=${this.a11yRole}
|
|
12745
|
-
?activeLabel="${this.activeLabel}"
|
|
12746
12768
|
?disabled="${this.disabled}"
|
|
12747
12769
|
?required="${this.required}"
|
|
12748
12770
|
aria-activedescendant=${o$2(this.a11yActivedescendant)}
|
|
@@ -10742,6 +10742,8 @@ class BaseInput extends AuroElement {
|
|
|
10742
10742
|
|
|
10743
10743
|
/**
|
|
10744
10744
|
* If set, the label will remain fixed in the active position.
|
|
10745
|
+
* Only applies to the classic/default layout; the emphasized and snowflake
|
|
10746
|
+
* layouts always render the label inside the field, so this has no effect there.
|
|
10745
10747
|
*/
|
|
10746
10748
|
activeLabel: {
|
|
10747
10749
|
type: Boolean,
|
|
@@ -12268,7 +12270,7 @@ class AuroHelpText extends i$3 {
|
|
|
12268
12270
|
}
|
|
12269
12271
|
}
|
|
12270
12272
|
|
|
12271
|
-
var formkitVersion = '
|
|
12273
|
+
var formkitVersion = '202608111811';
|
|
12272
12274
|
|
|
12273
12275
|
/**
|
|
12274
12276
|
* @license
|
|
@@ -12381,15 +12383,35 @@ class AuroInput extends BaseInput {
|
|
|
12381
12383
|
* @private
|
|
12382
12384
|
*/
|
|
12383
12385
|
get inputHidden() {
|
|
12386
|
+
// In the classic/default layout, activeLabel keeps the input row visible so
|
|
12387
|
+
// the label stays raised rather than collapsing to the centered placeholder
|
|
12388
|
+
// position. Emphasized/snowflake always render the label inside the field,
|
|
12389
|
+
// so activeLabel does not apply there. This only overrides the empty/
|
|
12390
|
+
// unfocused clause — the display-value clause (combobox/datepicker) is
|
|
12391
|
+
// preserved regardless.
|
|
12392
|
+
const activeLabelRaisesInput = this.activeLabel && this.isClassicLayout;
|
|
12393
|
+
|
|
12384
12394
|
return (
|
|
12385
12395
|
this.hasDisplayValueContent && !this.hasFocus && this.hasValue) ||
|
|
12386
12396
|
(
|
|
12397
|
+
!activeLabelRaisesInput &&
|
|
12387
12398
|
(!this.value || this.value.length === 0) &&
|
|
12388
12399
|
!this.hasFocus &&
|
|
12389
12400
|
(!this.placeholderStr || this.placeholderStr === '')
|
|
12390
12401
|
);
|
|
12391
12402
|
}
|
|
12392
12403
|
|
|
12404
|
+
/**
|
|
12405
|
+
* Whether the component is rendering the classic/default layout, meaning not
|
|
12406
|
+
* emphasized and not snowflake. Kept as a single source of truth so
|
|
12407
|
+
* layout-scoped behavior such as activeLabel stays consistent across getters.
|
|
12408
|
+
* @returns {boolean} - True for the classic/default layout.
|
|
12409
|
+
* @private
|
|
12410
|
+
*/
|
|
12411
|
+
get isClassicLayout() {
|
|
12412
|
+
return !this.layout.startsWith('emphasized') && this.layout !== 'snowflake';
|
|
12413
|
+
}
|
|
12414
|
+
|
|
12393
12415
|
/**
|
|
12394
12416
|
* Determines if the input should display in a state with no focus or value indication.
|
|
12395
12417
|
* Returns true when the input has display content without focus and has a value,
|
|
@@ -12435,7 +12457,7 @@ class AuroInput extends BaseInput {
|
|
|
12435
12457
|
}
|
|
12436
12458
|
|
|
12437
12459
|
// classic layout (default)
|
|
12438
|
-
return ((!this.value || this.value.length === 0) && !this.placeholderStr && !this.hasFocus) ? 'body-default' : 'body-xs';
|
|
12460
|
+
return ((!this.value || this.value.length === 0) && !this.placeholderStr && !this.hasFocus && !this.activeLabel) ? 'body-default' : 'body-xs';
|
|
12439
12461
|
}
|
|
12440
12462
|
|
|
12441
12463
|
/**
|
|
@@ -12531,7 +12553,8 @@ class AuroInput extends BaseInput {
|
|
|
12531
12553
|
'wrapper': true,
|
|
12532
12554
|
'simple': this.simple,
|
|
12533
12555
|
'withValue': this.hasValue,
|
|
12534
|
-
'hasFocus': this.hasFocus
|
|
12556
|
+
'hasFocus': this.hasFocus,
|
|
12557
|
+
'activeLabel': this.activeLabel
|
|
12535
12558
|
};
|
|
12536
12559
|
}
|
|
12537
12560
|
|
|
@@ -12742,7 +12765,6 @@ class AuroInput extends BaseInput {
|
|
|
12742
12765
|
@input="${this.handleInput}"
|
|
12743
12766
|
.placeholder=${this.placeholderStr}
|
|
12744
12767
|
.role=${this.a11yRole}
|
|
12745
|
-
?activeLabel="${this.activeLabel}"
|
|
12746
12768
|
?disabled="${this.disabled}"
|
|
12747
12769
|
?required="${this.required}"
|
|
12748
12770
|
aria-activedescendant=${o$2(this.a11yActivedescendant)}
|
|
@@ -10742,6 +10742,8 @@ class BaseInput extends AuroElement {
|
|
|
10742
10742
|
|
|
10743
10743
|
/**
|
|
10744
10744
|
* If set, the label will remain fixed in the active position.
|
|
10745
|
+
* Only applies to the classic/default layout; the emphasized and snowflake
|
|
10746
|
+
* layouts always render the label inside the field, so this has no effect there.
|
|
10745
10747
|
*/
|
|
10746
10748
|
activeLabel: {
|
|
10747
10749
|
type: Boolean,
|
|
@@ -12268,7 +12270,7 @@ class AuroHelpText extends i$3 {
|
|
|
12268
12270
|
}
|
|
12269
12271
|
}
|
|
12270
12272
|
|
|
12271
|
-
var formkitVersion = '
|
|
12273
|
+
var formkitVersion = '202608111811';
|
|
12272
12274
|
|
|
12273
12275
|
/**
|
|
12274
12276
|
* @license
|
|
@@ -12381,15 +12383,35 @@ class AuroInput extends BaseInput {
|
|
|
12381
12383
|
* @private
|
|
12382
12384
|
*/
|
|
12383
12385
|
get inputHidden() {
|
|
12386
|
+
// In the classic/default layout, activeLabel keeps the input row visible so
|
|
12387
|
+
// the label stays raised rather than collapsing to the centered placeholder
|
|
12388
|
+
// position. Emphasized/snowflake always render the label inside the field,
|
|
12389
|
+
// so activeLabel does not apply there. This only overrides the empty/
|
|
12390
|
+
// unfocused clause — the display-value clause (combobox/datepicker) is
|
|
12391
|
+
// preserved regardless.
|
|
12392
|
+
const activeLabelRaisesInput = this.activeLabel && this.isClassicLayout;
|
|
12393
|
+
|
|
12384
12394
|
return (
|
|
12385
12395
|
this.hasDisplayValueContent && !this.hasFocus && this.hasValue) ||
|
|
12386
12396
|
(
|
|
12397
|
+
!activeLabelRaisesInput &&
|
|
12387
12398
|
(!this.value || this.value.length === 0) &&
|
|
12388
12399
|
!this.hasFocus &&
|
|
12389
12400
|
(!this.placeholderStr || this.placeholderStr === '')
|
|
12390
12401
|
);
|
|
12391
12402
|
}
|
|
12392
12403
|
|
|
12404
|
+
/**
|
|
12405
|
+
* Whether the component is rendering the classic/default layout, meaning not
|
|
12406
|
+
* emphasized and not snowflake. Kept as a single source of truth so
|
|
12407
|
+
* layout-scoped behavior such as activeLabel stays consistent across getters.
|
|
12408
|
+
* @returns {boolean} - True for the classic/default layout.
|
|
12409
|
+
* @private
|
|
12410
|
+
*/
|
|
12411
|
+
get isClassicLayout() {
|
|
12412
|
+
return !this.layout.startsWith('emphasized') && this.layout !== 'snowflake';
|
|
12413
|
+
}
|
|
12414
|
+
|
|
12393
12415
|
/**
|
|
12394
12416
|
* Determines if the input should display in a state with no focus or value indication.
|
|
12395
12417
|
* Returns true when the input has display content without focus and has a value,
|
|
@@ -12435,7 +12457,7 @@ class AuroInput extends BaseInput {
|
|
|
12435
12457
|
}
|
|
12436
12458
|
|
|
12437
12459
|
// classic layout (default)
|
|
12438
|
-
return ((!this.value || this.value.length === 0) && !this.placeholderStr && !this.hasFocus) ? 'body-default' : 'body-xs';
|
|
12460
|
+
return ((!this.value || this.value.length === 0) && !this.placeholderStr && !this.hasFocus && !this.activeLabel) ? 'body-default' : 'body-xs';
|
|
12439
12461
|
}
|
|
12440
12462
|
|
|
12441
12463
|
/**
|
|
@@ -12531,7 +12553,8 @@ class AuroInput extends BaseInput {
|
|
|
12531
12553
|
'wrapper': true,
|
|
12532
12554
|
'simple': this.simple,
|
|
12533
12555
|
'withValue': this.hasValue,
|
|
12534
|
-
'hasFocus': this.hasFocus
|
|
12556
|
+
'hasFocus': this.hasFocus,
|
|
12557
|
+
'activeLabel': this.activeLabel
|
|
12535
12558
|
};
|
|
12536
12559
|
}
|
|
12537
12560
|
|
|
@@ -12742,7 +12765,6 @@ class AuroInput extends BaseInput {
|
|
|
12742
12765
|
@input="${this.handleInput}"
|
|
12743
12766
|
.placeholder=${this.placeholderStr}
|
|
12744
12767
|
.role=${this.a11yRole}
|
|
12745
|
-
?activeLabel="${this.activeLabel}"
|
|
12746
12768
|
?disabled="${this.disabled}"
|
|
12747
12769
|
?required="${this.required}"
|
|
12748
12770
|
aria-activedescendant=${o$2(this.a11yActivedescendant)}
|