@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.14 → 0.0.0-pr624.16
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/bibtemplate/dist/auro-bibtemplate.d.ts +12 -2
- package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +1022 -12
- package/components/bibtemplate/dist/registered.js +1022 -12
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.md +2 -2
- package/components/checkbox/demo/api.min.js +24 -19
- package/components/checkbox/demo/index.md +2 -2
- package/components/checkbox/demo/index.min.js +24 -19
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
- package/components/checkbox/dist/index.js +24 -19
- package/components/checkbox/dist/registered.js +24 -19
- package/components/combobox/demo/api.md +52 -0
- package/components/combobox/demo/api.min.js +2059 -651
- package/components/combobox/demo/index.md +6 -0
- package/components/combobox/demo/index.min.js +2059 -651
- package/components/combobox/dist/auro-combobox.d.ts +4 -4
- package/components/combobox/dist/index.js +1978 -629
- package/components/combobox/dist/registered.js +1978 -629
- package/components/counter/demo/api.md +21 -19
- package/components/counter/demo/api.min.js +2326 -539
- package/components/counter/demo/index.md +99 -34
- package/components/counter/demo/index.min.js +2326 -539
- package/components/counter/dist/auro-counter-button.d.ts +2 -0
- package/components/counter/dist/auro-counter-group.d.ts +92 -1
- package/components/counter/dist/helptextVersion.d.ts +2 -0
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +2326 -539
- package/components/counter/dist/registered.js +2326 -539
- package/components/datepicker/demo/api.md +3 -1
- package/components/datepicker/demo/api.min.js +5402 -3158
- package/components/datepicker/demo/index.md +6 -1
- package/components/datepicker/demo/index.min.js +5402 -3158
- package/components/datepicker/dist/auro-datepicker.d.ts +17 -7
- package/components/datepicker/dist/iconVersion.d.ts +2 -0
- package/components/datepicker/dist/index.js +5402 -3158
- package/components/datepicker/dist/registered.js +5402 -3158
- package/components/dropdown/demo/api.md +3 -4
- package/components/dropdown/demo/api.min.js +69 -119
- package/components/dropdown/demo/index.md +57 -9
- package/components/dropdown/demo/index.min.js +69 -119
- package/components/dropdown/dist/auro-dropdown.d.ts +0 -8
- package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
- package/components/dropdown/dist/index.js +69 -119
- package/components/dropdown/dist/registered.js +69 -119
- package/components/input/demo/api.md +12 -5
- package/components/input/demo/api.min.js +665 -285
- package/components/input/demo/index.min.js +665 -285
- package/components/input/dist/auro-input.d.ts +6 -0
- package/components/input/dist/base-input.d.ts +29 -6
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +665 -285
- package/components/input/dist/registered.js +665 -285
- package/components/layoutElement/dist/index.js +13 -10
- package/components/menu/demo/api.html +38 -0
- package/components/menu/demo/api.md +63 -2
- package/components/menu/demo/api.min.js +190 -36
- package/components/menu/demo/index.min.js +190 -36
- package/components/menu/dist/auro-menu.d.ts +22 -5
- package/components/menu/dist/auro-menuoption.d.ts +15 -3
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +190 -36
- package/components/menu/dist/registered.js +190 -36
- package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
- package/components/radio/demo/api.min.js +4 -2
- package/components/radio/demo/index.min.js +4 -2
- package/components/radio/dist/auro-radio.d.ts +1 -1
- package/components/radio/dist/index.js +4 -2
- package/components/radio/dist/registered.js +4 -2
- package/components/select/demo/api.md +5 -5
- package/components/select/demo/api.min.js +1412 -293
- package/components/select/demo/index.md +42 -1
- package/components/select/demo/index.min.js +1412 -293
- package/components/select/dist/auro-select.d.ts +8 -8
- package/components/select/dist/index.js +1321 -261
- package/components/select/dist/registered.js +1321 -261
- package/package.json +2 -2
- /package/components/{menu/dist/styles/color-menu-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{color-menuoption-css.d.ts → default/color-menu-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{style-menu-css.d.ts → default/color-menuoption-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{style-menuoption-css.d.ts → default/style-menu-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{tokens-css.d.ts → default/style-menuoption-css.d.ts} +0 -0
|
@@ -2626,8 +2626,12 @@ class AuroIcon extends BaseIcon {
|
|
|
2626
2626
|
async firstUpdated() {
|
|
2627
2627
|
await super.firstUpdated();
|
|
2628
2628
|
|
|
2629
|
-
|
|
2630
|
-
|
|
2629
|
+
/**
|
|
2630
|
+
* icons provide a description for screen readers. Icon only instances Auro-button
|
|
2631
|
+
* depend on this description to provide context for the user using a screen reader.
|
|
2632
|
+
* Removes the SVG description for screen reader if ariaHidden is set to true.
|
|
2633
|
+
*/
|
|
2634
|
+
if (this.hasAttribute('ariaHidden') && this.svg) {
|
|
2631
2635
|
const svgDesc = this.svg.querySelector('desc');
|
|
2632
2636
|
|
|
2633
2637
|
if (svgDesc) {
|
|
@@ -2673,11 +2677,11 @@ class AuroIcon extends BaseIcon {
|
|
|
2673
2677
|
|
|
2674
2678
|
var iconVersion = '6.1.2';
|
|
2675
2679
|
|
|
2676
|
-
var styleCss$1 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}.container{
|
|
2680
|
+
var styleCss$1 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}`;
|
|
2677
2681
|
|
|
2678
2682
|
var colorCss$2 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
2679
2683
|
|
|
2680
|
-
var tokensCss$1 = css`:host(:not([ondark])){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color:
|
|
2684
|
+
var tokensCss$1 = css`:host(:not([ondark])){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}`;
|
|
2681
2685
|
|
|
2682
2686
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2683
2687
|
// See LICENSE in the project root for license information.
|
|
@@ -2698,7 +2702,7 @@ const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
|
2698
2702
|
*/
|
|
2699
2703
|
|
|
2700
2704
|
class AuroDropdownBib extends LitElement {
|
|
2701
|
-
|
|
2705
|
+
// not extending AuroElement because Bib needs only `shape` prop
|
|
2702
2706
|
constructor() {
|
|
2703
2707
|
super();
|
|
2704
2708
|
|
|
@@ -2708,6 +2712,9 @@ class AuroDropdownBib extends LitElement {
|
|
|
2708
2712
|
this._mobileBreakpointValue = undefined;
|
|
2709
2713
|
|
|
2710
2714
|
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
2715
|
+
|
|
2716
|
+
this.shape = "rounded";
|
|
2717
|
+
this.matchWidth = false;
|
|
2711
2718
|
}
|
|
2712
2719
|
|
|
2713
2720
|
static get styles() {
|
|
@@ -2745,6 +2752,15 @@ class AuroDropdownBib extends LitElement {
|
|
|
2745
2752
|
reflect: true
|
|
2746
2753
|
},
|
|
2747
2754
|
|
|
2755
|
+
/**
|
|
2756
|
+
* If declared, the bib width will match the trigger width.
|
|
2757
|
+
* @private
|
|
2758
|
+
*/
|
|
2759
|
+
matchWidth: {
|
|
2760
|
+
type: Boolean,
|
|
2761
|
+
reflect: true
|
|
2762
|
+
},
|
|
2763
|
+
|
|
2748
2764
|
/**
|
|
2749
2765
|
* If declared, will apply border-radius to the bib.
|
|
2750
2766
|
*/
|
|
@@ -2758,6 +2774,11 @@ class AuroDropdownBib extends LitElement {
|
|
|
2758
2774
|
*/
|
|
2759
2775
|
bibTemplate: {
|
|
2760
2776
|
type: Object
|
|
2777
|
+
},
|
|
2778
|
+
|
|
2779
|
+
shape: {
|
|
2780
|
+
type: String,
|
|
2781
|
+
reflect: true
|
|
2761
2782
|
}
|
|
2762
2783
|
};
|
|
2763
2784
|
}
|
|
@@ -2837,8 +2858,16 @@ class AuroDropdownBib extends LitElement {
|
|
|
2837
2858
|
|
|
2838
2859
|
// function that renders the HTML and CSS into the scope of the component
|
|
2839
2860
|
render() {
|
|
2861
|
+
const classes = {
|
|
2862
|
+
container: true
|
|
2863
|
+
};
|
|
2864
|
+
|
|
2865
|
+
// Since this class does not inherit from AuroElement, we apply the shape-related class within the `render` function,
|
|
2866
|
+
// mimicking the class naming convention used in AuroElement.resetShapeClasses.
|
|
2867
|
+
classes[`shape-${this.shape}`] = true;
|
|
2868
|
+
|
|
2840
2869
|
return html$1`
|
|
2841
|
-
<div class="
|
|
2870
|
+
<div class="${classMap(classes)}" part="bibContainer">
|
|
2842
2871
|
<slot></slot>
|
|
2843
2872
|
</div>
|
|
2844
2873
|
`;
|
|
@@ -2847,17 +2876,17 @@ class AuroDropdownBib extends LitElement {
|
|
|
2847
2876
|
|
|
2848
2877
|
var dropdownVersion = '3.0.0';
|
|
2849
2878
|
|
|
2850
|
-
var shapeSizeCss = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:
|
|
2879
|
+
var shapeSizeCss = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
|
|
2851
2880
|
|
|
2852
2881
|
var colorCss$1 = css`:host .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus,:host(:not([ondark])) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus,:host([ondark]) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([error]:not([ondark])){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([error][ondark]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helpText{color:var(--ds-auro-dropdown-helptext-text-color)}`;
|
|
2853
2882
|
|
|
2854
|
-
var classicColorCss = css`:host([layout*=classic]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic]) .trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)
|
|
2883
|
+
var classicColorCss = css`:host([layout*=classic]:not([onDark])) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic]:not([onDark])) .trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([layout*=classic]:not([onDark])) .trigger:focus-within,:host([layout*=classic]:not([onDark])) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic][disabled]:not([onDark])){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host([layout*=classic][error]:not([onDark])){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic][error]:not([onDark])) .trigger:focus-within,:host([layout*=classic][error]:not([onDark])) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host([layout*=classic][onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([layout*=classic][onDark]) .trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([layout*=classic][onDark]) .trigger:focus-within,:host([layout*=classic][onDark]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([layout*=classic][onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([layout*=classic][onDark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([layout*=classic][onDark][error]) .trigger:focus-within,:host([layout*=classic][onDark][error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}`;
|
|
2855
2884
|
|
|
2856
|
-
var classicLayoutCss = css`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .trigger{display:flex;flex-direction:row}@media(hover: hover){:host([layout*=classic]) .trigger:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;
|
|
2885
|
+
var classicLayoutCss = css`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .trigger{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .trigger:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([layout*=classic]:not([simple])) .triggerContentWrapper{padding-left:var(--ds-size-150, 0.75rem)}:host([layout*=classic][matchwidth]) #bibSizer{width:100%}:host([layout*=classic][disabled]){pointer-events:none}`;
|
|
2857
2886
|
|
|
2858
|
-
var styleEmphasizedCss = css`:host{display:block}.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;
|
|
2887
|
+
var styleEmphasizedCss = css`:host{display:block}.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
2859
2888
|
|
|
2860
|
-
var styleSnowflakeCss = css`:host{display:block}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;
|
|
2889
|
+
var styleSnowflakeCss = css`:host{display:block}.wrapper{display:flex;flex-direction:row}.trigger{display:flex;flex:1;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([layout*=snowflake]) .leftIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
2861
2890
|
|
|
2862
2891
|
var colorCss = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
2863
2892
|
|
|
@@ -3102,18 +3131,21 @@ class AuroElement extends LitElement {
|
|
|
3102
3131
|
}
|
|
3103
3132
|
|
|
3104
3133
|
resetShapeClasses() {
|
|
3105
|
-
|
|
3106
|
-
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
3134
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
3107
3135
|
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3136
|
+
if (wrapper) {
|
|
3137
|
+
wrapper.classList.forEach((className) => {
|
|
3138
|
+
if (className.startsWith('shape-')) {
|
|
3139
|
+
wrapper.classList.remove(className);
|
|
3140
|
+
}
|
|
3141
|
+
});
|
|
3114
3142
|
|
|
3115
|
-
|
|
3116
|
-
|
|
3143
|
+
}
|
|
3144
|
+
|
|
3145
|
+
if (this.shape && this.size) {
|
|
3146
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
3147
|
+
} else {
|
|
3148
|
+
wrapper.classList.add('shape-none');
|
|
3117
3149
|
}
|
|
3118
3150
|
}
|
|
3119
3151
|
|
|
@@ -3189,19 +3221,14 @@ class AuroDropdown extends AuroElement {
|
|
|
3189
3221
|
|
|
3190
3222
|
// Layout Config
|
|
3191
3223
|
this.layout = 'classic';
|
|
3192
|
-
this.shape = '
|
|
3224
|
+
this.shape = 'classic';
|
|
3193
3225
|
this.size = 'xl';
|
|
3226
|
+
|
|
3194
3227
|
this.parentBorder = false;
|
|
3195
3228
|
|
|
3196
3229
|
this.privateDefaults();
|
|
3197
3230
|
}
|
|
3198
3231
|
|
|
3199
|
-
get commonLabelClasses() {
|
|
3200
|
-
return {
|
|
3201
|
-
// 'withValue': this.value && this.value.length > 0
|
|
3202
|
-
};
|
|
3203
|
-
}
|
|
3204
|
-
|
|
3205
3232
|
get commonWrapperClasses() {
|
|
3206
3233
|
return {
|
|
3207
3234
|
'trigger': true,
|
|
@@ -3874,14 +3901,13 @@ class AuroDropdown extends AuroElement {
|
|
|
3874
3901
|
* @returns {void}
|
|
3875
3902
|
*/
|
|
3876
3903
|
handleTriggerContentSlotChange(event) {
|
|
3877
|
-
|
|
3878
3904
|
this.floater.handleTriggerTabIndex();
|
|
3879
3905
|
|
|
3880
3906
|
// Get the trigger
|
|
3881
3907
|
const trigger = this.shadowRoot.querySelector('#trigger');
|
|
3882
3908
|
|
|
3883
3909
|
// Get the trigger slot
|
|
3884
|
-
const triggerSlot = this.shadowRoot.querySelector('.
|
|
3910
|
+
const triggerSlot = this.shadowRoot.querySelector('.triggerContentWrapper slot');
|
|
3885
3911
|
|
|
3886
3912
|
// If there's a trigger slot
|
|
3887
3913
|
if (triggerSlot) {
|
|
@@ -3953,29 +3979,6 @@ class AuroDropdown extends AuroElement {
|
|
|
3953
3979
|
}
|
|
3954
3980
|
}
|
|
3955
3981
|
|
|
3956
|
-
/**
|
|
3957
|
-
* @private
|
|
3958
|
-
* @method handleLabelSlotChange
|
|
3959
|
-
* @param {event} event - The event object representing the slot change.
|
|
3960
|
-
* @description Handles the slot change event for the label slot.
|
|
3961
|
-
*/
|
|
3962
|
-
handleLabelSlotChange (event) {
|
|
3963
|
-
|
|
3964
|
-
// Get the nodes from the event
|
|
3965
|
-
const nodes = event.target.assignedNodes();
|
|
3966
|
-
|
|
3967
|
-
// Guard clause for no nodes
|
|
3968
|
-
if (!nodes) {
|
|
3969
|
-
return;
|
|
3970
|
-
}
|
|
3971
|
-
|
|
3972
|
-
// Convert the nodes to a measurable array so we can get the length
|
|
3973
|
-
const nodesArr = Array.from(nodes);
|
|
3974
|
-
|
|
3975
|
-
// If the nodes array has a length, the dropdown is labeled
|
|
3976
|
-
this.labeled = nodesArr.length > 0;
|
|
3977
|
-
}
|
|
3978
|
-
|
|
3979
3982
|
/**
|
|
3980
3983
|
* Returns HTML for the common portion of the layouts.
|
|
3981
3984
|
* @private
|
|
@@ -3990,22 +3993,17 @@ class AuroDropdown extends AuroElement {
|
|
|
3990
3993
|
class="${classMap(this.commonWrapperClasses)}" part="wrapper"
|
|
3991
3994
|
tabindex="${this.tabIndex}"
|
|
3992
3995
|
role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
3993
|
-
aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
3994
|
-
aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
3996
|
+
aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
3997
|
+
aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
3995
3998
|
aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
3996
3999
|
@focusin="${this.handleFocusin}"
|
|
3997
4000
|
@blur="${this.handleFocusOut}">
|
|
3998
|
-
<div class="triggerContentWrapper">
|
|
3999
|
-
<
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
<div class="triggerContent">
|
|
4003
|
-
<slot
|
|
4004
|
-
name="trigger"
|
|
4005
|
-
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
4006
|
-
</div>
|
|
4001
|
+
<div class="triggerContentWrapper" id="triggerLabel">
|
|
4002
|
+
<slot
|
|
4003
|
+
name="trigger"
|
|
4004
|
+
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
4007
4005
|
</div>
|
|
4008
|
-
${this.chevron
|
|
4006
|
+
${this.chevron ? html$1`
|
|
4009
4007
|
<div
|
|
4010
4008
|
id="showStateIcon"
|
|
4011
4009
|
class="chevron"
|
|
@@ -4026,6 +4024,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4026
4024
|
<div id="bibSizer" part="size"></div>
|
|
4027
4025
|
<${this.dropdownBibTag}
|
|
4028
4026
|
id="bib"
|
|
4027
|
+
shape="${this.shape}"
|
|
4029
4028
|
?data-show="${this.isPopoverVisible}"
|
|
4030
4029
|
?isfullscreen="${this.isBibFullscreen}"
|
|
4031
4030
|
?common="${this.common}"
|
|
@@ -4045,62 +4044,13 @@ class AuroDropdown extends AuroElement {
|
|
|
4045
4044
|
* @returns {html} - Returns HTML for the classic layout.
|
|
4046
4045
|
*/
|
|
4047
4046
|
renderLayoutClassic() {
|
|
4047
|
+
// TODO: check with Doug why this was never used?
|
|
4048
|
+
const helpTextClasses = {
|
|
4049
|
+
'helpText': true
|
|
4050
|
+
};
|
|
4048
4051
|
|
|
4049
4052
|
return html$1`
|
|
4050
|
-
|
|
4051
|
-
<div
|
|
4052
|
-
id="trigger"
|
|
4053
|
-
class="trigger"
|
|
4054
|
-
part="trigger"
|
|
4055
|
-
tabindex="${this.tabIndex}"
|
|
4056
|
-
?showBorder="${this.showTriggerBorders}"
|
|
4057
|
-
role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
4058
|
-
aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
4059
|
-
aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
4060
|
-
aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
4061
|
-
>
|
|
4062
|
-
<div class="triggerContentWrapper">
|
|
4063
|
-
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
4064
|
-
<slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
4065
|
-
</label>
|
|
4066
|
-
<div class="triggerContent">
|
|
4067
|
-
<slot
|
|
4068
|
-
name="trigger"
|
|
4069
|
-
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
4070
|
-
</div>
|
|
4071
|
-
</div>
|
|
4072
|
-
${this.chevron || this.common ? html$1`
|
|
4073
|
-
<div
|
|
4074
|
-
id="showStateIcon"
|
|
4075
|
-
part="chevron">
|
|
4076
|
-
<${this.iconTag}
|
|
4077
|
-
category="interface"
|
|
4078
|
-
name="chevron-down"
|
|
4079
|
-
?onDark="${this.onDark}"
|
|
4080
|
-
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
4081
|
-
>
|
|
4082
|
-
</${this.iconTag}>
|
|
4083
|
-
</div>
|
|
4084
|
-
` : undefined }
|
|
4085
|
-
</div>
|
|
4086
|
-
<${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
|
|
4087
|
-
<slot name="helpText"></slot>
|
|
4088
|
-
</${this.helpTextTag}>
|
|
4089
|
-
|
|
4090
|
-
<div id="bibSizer" part="size"></div>
|
|
4091
|
-
<${this.dropdownBibTag}
|
|
4092
|
-
id="bib"
|
|
4093
|
-
?data-show="${this.isPopoverVisible}"
|
|
4094
|
-
?isfullscreen="${this.isBibFullscreen}"
|
|
4095
|
-
?common="${this.common}"
|
|
4096
|
-
?rounded="${this.common || this.rounded}"
|
|
4097
|
-
?inset="${this.common || this.inset}"
|
|
4098
|
-
>
|
|
4099
|
-
<div class="slotContent">
|
|
4100
|
-
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
4101
|
-
</div>
|
|
4102
|
-
</${this.dropdownBibTag}>
|
|
4103
|
-
</div>
|
|
4053
|
+
${this.renderBasicHtml(helpTextClasses)}
|
|
4104
4054
|
`;
|
|
4105
4055
|
}
|
|
4106
4056
|
|
|
@@ -31,6 +31,7 @@ Generate unique names for dependency components.
|
|
|
31
31
|
| [min](#min) | `min` | `string` | "undefined" | The minimum value allowed. This only applies for inputs with a type of `number` and all date formats. |
|
|
32
32
|
| [minLength](#minLength) | `minLength` | `number` | "undefined" | The minimum number of characters the user can enter into the text input. This must be a non-negative integer value smaller than or equal to the value specified by `maxlength`. |
|
|
33
33
|
| [name](#name) | `name` | `string` | | Populates the `name` attribute on the input. |
|
|
34
|
+
| [nested](#nested) | `nested` | `boolean` | | Sets styles for nested operation - removes borders, hides help + error text, and<br />hides accents. |
|
|
34
35
|
| [noValidate](#noValidate) | `noValidate` | `boolean` | false | If set, disables auto-validation on blur. |
|
|
35
36
|
| [onDark](#onDark) | `onDark` | `boolean` | false | Sets onDark styles on input. |
|
|
36
37
|
| [pattern](#pattern) | `pattern` | `string` | | Specifies a regular expression the form control's value should match. |
|
|
@@ -47,6 +48,7 @@ Generate unique names for dependency components.
|
|
|
47
48
|
| [setCustomValidityTooShort](#setCustomValidityTooShort) | `setCustomValidityTooShort` | `string` | | Custom help text message to display when validity = `tooShort`. |
|
|
48
49
|
| [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
|
|
49
50
|
| [shape](#shape) | | `string` | "classic" | |
|
|
51
|
+
| [simple](#simple) | `simple` | `boolean` | | borderless |
|
|
50
52
|
| [size](#size) | | `string` | "lg" | |
|
|
51
53
|
| [spellcheck](#spellcheck) | `spellcheck` | `string` | | An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`. |
|
|
52
54
|
| [type](#type) | `type` | `string` | | Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `date`, `tel` or `text`. If given value is not allowed or set, defaults to `text`. |
|
|
@@ -58,6 +60,7 @@ Generate unique names for dependency components.
|
|
|
58
60
|
|
|
59
61
|
| Method | Type | Description |
|
|
60
62
|
|------------|----------------------------------------|--------------------------------------------------|
|
|
63
|
+
| [focus](#focus) | `(): void` | Function to set element focus. |
|
|
61
64
|
| [reset](#reset) | `(): void` | Resets component to initial state. |
|
|
62
65
|
| [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
|
|
63
66
|
|
|
@@ -71,18 +74,22 @@ Generate unique names for dependency components.
|
|
|
71
74
|
|
|
72
75
|
## Slots
|
|
73
76
|
|
|
74
|
-
| Name
|
|
75
|
-
|
|
76
|
-
| [
|
|
77
|
-
| [
|
|
77
|
+
| Name | Description |
|
|
78
|
+
|----------------|--------------------------------------------------|
|
|
79
|
+
| [displayValue](#displayValue) | Allows custom HTML content to display in place of the value when the input is not focused. |
|
|
80
|
+
| [helptext](#helptext) | Sets the help text displayed below the input. |
|
|
81
|
+
| [label](#label) | Sets the label text for the input. |
|
|
78
82
|
|
|
79
83
|
## CSS Shadow Parts
|
|
80
84
|
|
|
81
85
|
| Part | Description |
|
|
82
|
-
|-----------------|--------------------------------------------------|
|
|
86
|
+
|-----------------|--------------------------------------------------|
|
|
87
|
+
| `accent-left` | Use for customizing the style of the left accent element (e.g. padding, margin) |
|
|
88
|
+
| `accent-right` | Use for customizing the style of the right accent element (e.g. padding, margin) |
|
|
83
89
|
| [accentIcon](#accentIcon) | Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon) |
|
|
84
90
|
| [helpText](#helpText) | Use for customizing the style of the helpText element |
|
|
85
91
|
| [iconContainer](#iconContainer) | Use for customizing the style of the iconContainer (e.g. X icon for clearing input value) |
|
|
92
|
+
| [input](#input) | Use for customizing the style of the input element |
|
|
86
93
|
| [label](#label) | Use for customizing the style of the label element |
|
|
87
94
|
| [wrapper](#wrapper) | Use for customizing the style of the root element |
|
|
88
95
|
<!-- AURO-GENERATED-CONTENT:END -->
|