@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.9 → 0.0.0-pr624.90
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/headerVersion.d.ts +1 -1
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +1241 -94
- package/components/bibtemplate/dist/registered.js +1241 -94
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.html +16 -10
- package/components/checkbox/demo/api.md +49 -15
- package/components/checkbox/demo/api.min.js +74 -46
- package/components/checkbox/demo/index.html +16 -10
- package/components/checkbox/demo/index.md +2 -2
- package/components/checkbox/demo/index.min.js +74 -46
- package/components/checkbox/demo/readme.html +16 -9
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
- package/components/checkbox/dist/index.js +73 -45
- package/components/checkbox/dist/registered.js +73 -45
- package/components/combobox/demo/api.html +16 -10
- package/components/combobox/demo/api.md +115 -8
- package/components/combobox/demo/api.min.js +3305 -1002
- package/components/combobox/demo/index.html +16 -10
- package/components/combobox/demo/index.md +8 -34
- package/components/combobox/demo/index.min.js +3305 -1002
- package/components/combobox/demo/readme.html +16 -9
- package/components/combobox/dist/auro-combobox.d.ts +57 -14
- package/components/combobox/dist/index.js +2992 -836
- package/components/combobox/dist/registered.js +2992 -836
- package/components/counter/demo/api.html +17 -10
- package/components/counter/demo/api.md +158 -21
- package/components/counter/demo/api.min.js +3417 -765
- package/components/counter/demo/index.html +17 -10
- package/components/counter/demo/index.md +185 -34
- package/components/counter/demo/index.min.js +3417 -765
- package/components/counter/demo/readme.html +16 -9
- package/components/counter/dist/auro-counter-button.d.ts +2 -0
- package/components/counter/dist/auro-counter-group.d.ts +161 -11
- package/components/counter/dist/auro-counter.d.ts +16 -0
- package/components/counter/dist/helptextVersion.d.ts +2 -0
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +3420 -768
- package/components/counter/dist/registered.js +3420 -768
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.html +16 -10
- package/components/datepicker/demo/api.md +59 -28
- package/components/datepicker/demo/api.min.js +11956 -8070
- package/components/datepicker/demo/index.html +16 -10
- package/components/datepicker/demo/index.md +75 -8
- package/components/datepicker/demo/index.min.js +11956 -8070
- package/components/datepicker/demo/readme.html +16 -9
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +151 -12
- package/components/datepicker/dist/buttonVersion.d.ts +1 -1
- package/components/datepicker/dist/iconVersion.d.ts +2 -0
- package/components/datepicker/dist/index.js +13802 -9916
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +13802 -9916
- package/components/dropdown/demo/api.html +16 -10
- package/components/dropdown/demo/api.md +82 -275
- package/components/dropdown/demo/api.min.js +450 -261
- package/components/dropdown/demo/index.html +16 -10
- package/components/dropdown/demo/index.md +92 -362
- package/components/dropdown/demo/index.min.js +450 -261
- package/components/dropdown/demo/readme.html +16 -9
- package/components/dropdown/dist/auro-dropdown.d.ts +43 -83
- package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
- package/components/dropdown/dist/index.js +449 -260
- package/components/dropdown/dist/registered.js +449 -260
- package/components/form/demo/api.html +16 -9
- package/components/form/demo/api.md +1 -1
- package/components/form/demo/api.min.js +3 -3
- package/components/form/demo/autocomplete.html +19 -3
- package/components/form/demo/index.html +16 -9
- package/components/form/demo/index.min.js +3 -3
- package/components/form/demo/readme.html +16 -9
- package/components/form/demo/working.html +19 -13
- package/components/form/dist/auro-form.d.ts +1 -1
- package/components/form/dist/index.js +2 -2
- package/components/form/dist/registered.js +2 -2
- package/components/helptext/dist/auro-helptext.d.ts +0 -2
- package/components/helptext/dist/index.js +3 -5
- package/components/helptext/dist/registered.js +3 -5
- package/components/input/README.md +5 -2
- package/components/input/demo/api.html +16 -10
- package/components/input/demo/api.md +226 -132
- package/components/input/demo/api.min.js +1034 -297
- package/components/input/demo/index.html +16 -10
- package/components/input/demo/index.md +48 -32
- package/components/input/demo/index.min.js +1048 -311
- package/components/input/demo/readme.html +16 -9
- package/components/input/demo/readme.md +5 -2
- package/components/input/dist/auro-input.d.ts +24 -0
- package/components/input/dist/base-input.d.ts +45 -11
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +1047 -310
- package/components/input/dist/registered.js +1047 -310
- package/components/layoutElement/dist/index.js +11 -8
- package/components/layoutElement/dist/registered.js +97 -0
- package/components/menu/demo/api.html +17 -10
- package/components/menu/demo/api.md +65 -8
- package/components/menu/demo/api.min.js +305 -63
- package/components/menu/demo/index.html +16 -10
- package/components/menu/demo/index.min.js +305 -63
- package/components/menu/demo/readme.html +16 -9
- package/components/menu/dist/auro-menu.d.ts +53 -7
- package/components/menu/dist/auro-menuoption.d.ts +21 -3
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +290 -48
- package/components/menu/dist/registered.js +290 -48
- package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
- package/components/menu/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/radio/demo/api.html +16 -10
- package/components/radio/demo/api.md +39 -9
- package/components/radio/demo/api.min.js +92 -96
- package/components/radio/demo/index.html +16 -10
- package/components/radio/demo/index.min.js +92 -96
- package/components/radio/demo/readme.html +16 -9
- package/components/radio/dist/auro-radio-group.d.ts +1 -1
- package/components/radio/dist/auro-radio.d.ts +9 -12
- package/components/radio/dist/index.js +91 -95
- package/components/radio/dist/registered.js +91 -95
- package/components/select/demo/api.html +16 -10
- package/components/select/demo/api.js +0 -2
- package/components/select/demo/api.md +149 -122
- package/components/select/demo/api.min.js +2283 -736
- package/components/select/demo/index.html +17 -11
- package/components/select/demo/index.md +1066 -259
- package/components/select/demo/index.min.js +2284 -725
- package/components/select/demo/readme.html +16 -9
- package/components/select/dist/auro-select.d.ts +74 -25
- package/components/select/dist/index.js +2165 -753
- package/components/select/dist/registered.js +2165 -753
- package/package.json +31 -28
- /package/components/{datepicker/dist/styles/default/color-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/classic}/color-css.d.ts +0 -0
- /package/components/datepicker/dist/styles/{emphasized → classic}/style-css.d.ts +0 -0
- /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
- /package/components/dropdown/dist/styles/{default/bibStyles-css.d.ts → classic/bibColors-css.d.ts} +0 -0
- /package/components/{input/dist/styles/default/input-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
- /package/components/{input/dist/styles/default/label-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
- /package/components/{input/dist/styles/input-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/style-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
|
@@ -4,25 +4,25 @@ import { repeat } from 'lit/directives/repeat.js';
|
|
|
4
4
|
import { classMap } from 'lit/directives/class-map.js';
|
|
5
5
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
6
6
|
|
|
7
|
-
var shapeSizeCss = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:
|
|
7
|
+
var shapeSizeCss = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:56px;max-height:56px;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:58px;max-height:58px;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:56px;max-height:56px;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:54px;max-height:54px}.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-box-lg{min-height:52px;max-height:52px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-box-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-box-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-box-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-box-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-box-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-box-sm{min-height:32px;max-height:32px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-box-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-box-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-box-xs{min-height:20px;max-height:20px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-box-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-box-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.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}`;
|
|
8
8
|
|
|
9
|
-
var styleCss$4 = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}`;
|
|
9
|
+
var styleCss$4 = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.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.63)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.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, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.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, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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}:host{display:block}.wrapper{cursor:text}.helpTextClasses{cursor:default}input{overflow:clip !important;width:100%;padding:0;border:0;background:unset;outline:none;overflow-clip-margin:0 !important;text-overflow:ellipsis}input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.displayValue{display:none}.displayValue.hasContent:is(.withValue):not(.hasFocus){display:flex;align-items:center}.accents:not(.util_displayHidden){display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px}.notification{display:flex;align-items:center;justify-content:center}`;
|
|
10
10
|
|
|
11
|
-
var styleDefaultCss = css`.layoutDefault .typeIcon,:host(:not([layout])) .typeIcon{display:flex;flex-direction:row;align-items:center}.layoutDefault .typeIcon [auro-icon],:host(:not([layout])) .typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.layoutDefault .notificationIcons,:host(:not([layout])) .notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .typeIcon,:host(:not([layout])[bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .notificationIcons,:host(:not([layout])[bordered]) .notificationIcons{align-items:center}:host([class=layoutDefault][bordered]) .notification:not(:first-of-type),:host(:not([layout])[bordered]) .notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .alertNotification,:host(:not([layout])[bordered]) .alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}:host([class=layoutDefault][bordered]) .passwordBtn,:host(:not([layout])[bordered]) .passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}:host([class=layoutDefault][bordered]) .notificationBtn,:host(:not([layout])[bordered]) .notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon],:host(:not([layout])[bordered]) .notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon][hidden],:host(:not([layout])[bordered]) .notificationBtn [auro-icon][hidden]{display:none}:host([class=layoutDefault]:not([bordered])) .typeIcon,:host([class=layoutDefault]:not([bordered])) .notificationIcons,:host(:not([layout]):not([bordered])) .typeIcon,:host(:not([layout]):not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}:host([class=layoutDefault]:not([bordered])) .clearBtn,:host(:not([layout]):not([bordered])) .clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}.layoutDefault .wrapper:hover .clearBtn,.layoutDefault .wrapper:focus-within .clearBtn,:host(:not([layout])) .wrapper:hover .clearBtn,:host(:not([layout])) .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host([class=layoutDefault]:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification,:host(:not([layout]):focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.layoutDefault input,:host(:not([layout])) input{border:unset}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{position:relative;overflow:hidden;border-style:solid}:host([class=layoutDefault]:not([bordered],[borderless])) .wrapper,:host(:not([layout]):not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([class=layoutDefault][bordered]) .wrapper,:host(:not([layout])[bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host([class=layoutDefault]:not([borderless])) .wrapper:focus-within:before,:host(:not([layout]):not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([class=layoutDefault][validity]:not([validity=valid])) .wrapper:before,:host(:not([layout])[validity]:not([validity=valid])) .wrapper:before{border-bottom:0}
|
|
11
|
+
var styleDefaultCss = css`.layoutDefault .typeIcon,:host(:not([layout])) .typeIcon{display:flex;flex-direction:row;align-items:center}.layoutDefault .typeIcon [auro-icon],:host(:not([layout])) .typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.layoutDefault .notificationIcons,:host(:not([layout])) .notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .typeIcon,:host(:not([layout])[bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .notificationIcons,:host(:not([layout])[bordered]) .notificationIcons{align-items:center}:host([class=layoutDefault][bordered]) .notification:not(:first-of-type),:host(:not([layout])[bordered]) .notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .alertNotification,:host(:not([layout])[bordered]) .alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}:host([class=layoutDefault][bordered]) .passwordBtn,:host(:not([layout])[bordered]) .passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}:host([class=layoutDefault][bordered]) .notificationBtn,:host(:not([layout])[bordered]) .notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon],:host(:not([layout])[bordered]) .notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon][hidden],:host(:not([layout])[bordered]) .notificationBtn [auro-icon][hidden]{display:none}:host([class=layoutDefault]:not([bordered])) .typeIcon,:host([class=layoutDefault]:not([bordered])) .notificationIcons,:host(:not([layout]):not([bordered])) .typeIcon,:host(:not([layout]):not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}:host([class=layoutDefault]:not([bordered])) .clearBtn,:host(:not([layout]):not([bordered])) .clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}.layoutDefault .wrapper:hover .clearBtn,.layoutDefault .wrapper:focus-within .clearBtn,:host(:not([layout])) .wrapper:hover .clearBtn,:host(:not([layout])) .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host([class=layoutDefault]:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification,:host(:not([layout]):focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.layoutDefault input,:host(:not([layout])) input{border:unset}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{position:relative;overflow:hidden;border-style:solid}:host([class=layoutDefault]:not([bordered],[borderless])) .wrapper,:host(:not([layout]):not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([class=layoutDefault][bordered]) .wrapper,:host(:not([layout])[bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host([class=layoutDefault]:not([borderless])) .wrapper:focus-within:before,:host(:not([layout]):not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([class=layoutDefault][validity]:not([validity=valid])) .wrapper:before,:host(:not([layout])[validity]:not([validity=valid])) .wrapper:before{border-bottom:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.layoutDefault :host,:host(:not([layout])) :host{position:relative;display:block}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{display:flex;flex-direction:row}.layoutDefault .main,:host(:not([layout])) .main{display:flex;flex-direction:row;position:relative;flex:1}`;
|
|
12
12
|
|
|
13
|
-
var colorBaseCss = css`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-background-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}
|
|
13
|
+
var colorBaseCss = css`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-background-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}:host(:not([ondark])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host(:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([ondark])[disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-subtle, #dddddd);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([ondark][disabled]){--ds-auro-input-border-color: var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
14
14
|
|
|
15
|
-
var tokensCss$4 = css`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: transparent}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-
|
|
15
|
+
var tokensCss$4 = css`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: transparent}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-input-outline-color: transparent}`;
|
|
16
16
|
|
|
17
|
-
var classicStyleCss = css
|
|
17
|
+
var classicStyleCss = css`:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}:host([layout*=classic]) .mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;justify-content:center;cursor:text}:host([layout*=classic]) .mainContent label{overflow:hidden;cursor:text;padding-block:var(--ds-size-50, 0.25rem);text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}:host([layout*=classic]) .mainContent input{height:auto;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start}:host([layout*=classic]) .mainContent:has(input.util_displayHiddenVisually) input{height:0;padding-bottom:0}:host([layout*=classic]) .accents .typeIcon>*{margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.left{padding-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .accents.right{padding-left:var(--ds-size-100, 0.5rem);margin-right:var(--ds-size-100, 0.5rem)}:host([layout*=classic]).withValue{justify-content:flex-start}:host([layout*=classic]):focus-within{justify-content:flex-start}`;
|
|
18
18
|
|
|
19
|
-
var classicColorCss = css`.layout-classic label{color:var(--ds-auro-input-label-text-color)}.layout-classic:focus-within{--ds-auro-input-
|
|
19
|
+
var classicColorCss = css`.layout-classic label{color:var(--ds-auro-input-label-text-color)}.layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a);--ds-auro-input-outline-color: var(--ds-basic-color-border-brand, #00274a)}:host(:not([ondark])) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a);--ds-auro-input-outline-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-outline-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([layout*=classic]:not([ondark]):is([validity]:not([validity=valid]))){--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic]:not([ondark]):is([validity]:not([validity=valid]))) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a);--ds-auro-input-outline-color: var(--ds-basic-color-border-brand, #00274a)}:host([layout*=classic][ondark]:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-input-outline-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host([layout*=classic][ondark]:is([validity]:not([validity=valid]))) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-outline-color: var(--ds-basic-color-border-inverse, #ffffff)}`;
|
|
20
20
|
|
|
21
|
-
var emphasizedStyleCss = css`:host
|
|
21
|
+
var emphasizedStyleCss = css`:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}.layout-emphasized,.layout-emphasized-left,.layout-emphasized-right{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-emphasized label,.layout-emphasized-left label,.layout-emphasized-right label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.layout-emphasized input,.layout-emphasized-left input,.layout-emphasized-right input{text-align:center}.layout-emphasized .mainContent,.layout-emphasized-left .mainContent,.layout-emphasized-right .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1;overflow:hidden}.layout-emphasized .displayValue,.layout-emphasized-left .displayValue,.layout-emphasized-right .displayValue{display:none;width:100%}.layout-emphasized .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-left .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-right .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-emphasized.withValue,.layout-emphasized-left.withValue,.layout-emphasized-right.withValue{justify-content:flex-start}.layout-emphasized.withValue label,.layout-emphasized-left.withValue label,.layout-emphasized-right.withValue label{display:block;width:100%;text-align:left}.layout-emphasized.withValue input,.layout-emphasized-left.withValue input,.layout-emphasized-right.withValue input{text-align:left;width:100%}.layout-emphasized:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-left:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-right:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{justify-content:flex-start}.layout-emphasized:focus-within label,.layout-emphasized-left:focus-within label,.layout-emphasized-right:focus-within label{display:block;width:100%;text-align:left}.layout-emphasized:focus-within input,.layout-emphasized-left:focus-within input,.layout-emphasized-right:focus-within input{text-align:left;width:100%}.layout-emphasized:focus-within .alertNotification,.layout-emphasized-left:focus-within .alertNotification,.layout-emphasized-right:focus-within .alertNotification{display:none}.layout-emphasized .accents.left,.layout-emphasized-left .accents.left,.layout-emphasized-right .accents.left{padding-left:var(--ds-size-300, 1.5rem)}.layout-emphasized .accents.right,.layout-emphasized-left .accents.right,.layout-emphasized-right .accents.right{padding-right:var(--ds-size-300, 1.5rem)}`;
|
|
22
22
|
|
|
23
23
|
var emphasizedColorCss = css`.layout-emphasized:focus-within,.layout-emphasized.withValue,.layout-emphasized-left:focus-within,.layout-emphasized-left.withValue,.layout-emphasized-right:focus-within,.layout-emphasized-right.withValue{--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{--auro-input-border-color: var(--ds-auro-input-border-color)}`;
|
|
24
24
|
|
|
25
|
-
var snowflakeStyleCss = css`:host([layout*=snowflake]) .leftIndent{margin-left:24px;width:calc(100% - 48px)}:host([layout*=snowflake]) .rightIndent{margin-right:24px;width:calc(100% - 48px)}.layout-snowflake{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-snowflake label{font-size:var(--ds-text-body-size-xs);line-height:20px}.layout-snowflake input{text-align:center;font-size:18px;line-height:26px}.layout-snowflake .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1}.layout-snowflake .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-snowflake .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-snowflake .displayValueWrapper{transform:translateY(-50%)}.layout-snowflake .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-snowflake.withValue{justify-content:flex-start}.layout-snowflake:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-snowflake:focus-within{justify-content:flex-start}.layout-snowflake:focus-within .alertNotification{display:none}.layout-snowflake .accents{width:24px}.layout-snowflake .accents.left{padding-left:24px}.layout-snowflake .accents.right{padding-right:24px}.helpTextWrapper{text-align:center}`;
|
|
25
|
+
var snowflakeStyleCss = css`:root{--ds-advanced-color-button-flat-text: #676767;--ds-advanced-color-button-flat-text-disabled: #d0d0d0;--ds-advanced-color-button-flat-text-hover: #525252;--ds-advanced-color-button-flat-text-inverse: #ffffff;--ds-advanced-color-button-flat-text-inverse-disabled: #7e8894;--ds-advanced-color-button-flat-text-inverse-hover: #adadad;--ds-advanced-color-button-ghost-background-hover: rgba(0, 0, 0, 0.05);--ds-advanced-color-button-ghost-background-inverse-hover: rgba(255, 255, 255, 0.05);--ds-advanced-color-button-ghost-text: #01426a;--ds-advanced-color-button-ghost-text-disabled: #d0d0d0;--ds-advanced-color-button-ghost-text-inverse: #ffffff;--ds-advanced-color-button-ghost-text-inverse-disabled: #7e8894;--ds-advanced-color-button-primary-background: #01426a;--ds-advanced-color-button-primary-background-disabled: #acc9e2;--ds-advanced-color-button-primary-background-hover: #00274a;--ds-advanced-color-button-primary-background-inactive: #cfe0ef;--ds-advanced-color-button-primary-background-inactive-hover: #89b2d4;--ds-advanced-color-button-primary-background-inverse: #ffffff;--ds-advanced-color-button-primary-background-inverse-disabled: rgba(255, 255, 255, 0.75);--ds-advanced-color-button-primary-background-inverse-hover: #ebf3f9;--ds-advanced-color-button-primary-border: #01426a;--ds-advanced-color-button-primary-border-disabled: #acc9e2;--ds-advanced-color-button-primary-border-hover: #00274a;--ds-advanced-color-button-primary-border-inverse: #ffffff;--ds-advanced-color-button-primary-border-inverse-disabled: rgba(255, 255, 255, 0.75);--ds-advanced-color-button-primary-border-inverse-hover: #ebf3f9;--ds-advanced-color-button-primary-text: #ffffff;--ds-advanced-color-button-primary-text-disabled: #ffffff;--ds-advanced-color-button-primary-text-inverse: #01426a;--ds-advanced-color-button-secondary-background: #ffffff;--ds-advanced-color-button-secondary-background-disabled: #f7f7f7;--ds-advanced-color-button-secondary-background-hover: #f2f2f2;--ds-advanced-color-button-secondary-background-inverse-hover: rgba(255, 255, 255, 0.1);--ds-advanced-color-button-secondary-border: #01426a;--ds-advanced-color-button-secondary-border-hover: #00274a;--ds-advanced-color-button-secondary-border-disabled: #cfe0ef;--ds-advanced-color-button-secondary-border-inverse: #ffffff;--ds-advanced-color-button-secondary-border-inverse-disabled: #dddddd;--ds-advanced-color-button-secondary-text: #01426a;--ds-advanced-color-button-secondary-text-hover: #00274a;--ds-advanced-color-button-secondary-text-inverse: #ffffff;--ds-advanced-color-button-tertiary-background: rgba(0, 0, 0, 0.05);--ds-advanced-color-button-tertiary-background-hover: rgba(0, 0, 0, 0.1);--ds-advanced-color-button-tertiary-background-inverse: rgba(255, 255, 255, 0.05);--ds-advanced-color-button-tertiary-background-inverse-hover: rgba(255, 255, 255, 0.1);--ds-advanced-color-button-tertiary-text: #01426a;--ds-advanced-color-button-tertiary-text-hover: #00274a;--ds-advanced-color-button-tertiary-text-inverse: #ffffff;--ds-advanced-color-accents-accent1: #b2d583;--ds-advanced-color-accents-accent1-bold: #92c450;--ds-advanced-color-accents-accent1-muted: #deedca;--ds-advanced-color-accents-accent2: #fad362;--ds-advanced-color-accents-accent2-bold: #f2ba14;--ds-advanced-color-accents-accent2-muted: #fde398;--ds-advanced-color-accents-accent3: #63beff;--ds-advanced-color-accents-accent3-bold: #0074ca;--ds-advanced-color-accents-accent3-muted: #aedeff;--ds-advanced-color-accents-accent4: #feb17a;--ds-advanced-color-accents-accent4-bold: #fb7f24;--ds-advanced-color-accents-accent4-muted: #ffe2cf;--ds-advanced-color-accents-transparency: rgba(0, 0, 0, 0.1);--ds-advanced-color-accents-transparency-inverse: rgba(255, 255, 255, 0.2);--ds-advanced-color-avatar-gradient-bottom: #cfe0ef;--ds-advanced-color-avatar-gradient-top: #6899c6;--ds-advanced-color-boolean-disabled-inverse: #7e8894;--ds-advanced-color-boolean-error: #e31f26;--ds-advanced-color-boolean-error-hover: #b1161c;--ds-advanced-color-boolean-error-inverse: #f9a4a8;--ds-advanced-color-boolean-error-inverse-hover: #f15f65;--ds-advanced-color-boolean-indicator: #ffffff;--ds-advanced-color-boolean-indicator-inverse: #00274a;--ds-advanced-color-boolean-isfalse: #ffffff;--ds-advanced-color-boolean-isfalse-border: #585e67;--ds-advanced-color-boolean-isfalse-border-inverse: #ffffff;--ds-advanced-color-boolean-isfalse-hover: #f2f2f2;--ds-advanced-color-boolean-isfalse-inverse: rgba(255, 255, 255, 0.15);--ds-advanced-color-boolean-isfalse-inverse-hover: rgba(255, 255, 255, 0.2);--ds-advanced-color-boolean-istrue: #01426a;--ds-advanced-color-boolean-istrue-hover: #00274a;--ds-advanced-color-boolean-istrue-inverse: #ffffff;--ds-advanced-color-boolean-istrue-inverse-hover: rgba(255, 255, 255, 0.7);--ds-advanced-color-flightline-indicator: #00274a;--ds-advanced-color-flightline-line: #00274a;--ds-advanced-color-hyperlink-text: #2875b5;--ds-advanced-color-hyperlink-text-hover: #01426a;--ds-advanced-color-hyperlink-text-inverse: #ffffff;--ds-advanced-color-hyperlink-text-inverse-hover: #ebf3f9;--ds-advanced-color-shared-background: #ffffff;--ds-advanced-color-shared-background-inverse: rgba(255, 255, 255, 0.15);--ds-advanced-color-shared-background-inverse-disabled: rgba(255, 255, 255, 0.1);--ds-advanced-color-shared-background-inverse-hover: rgba(255, 255, 255, 0.2);--ds-advanced-color-shared-background-muted: #f7f7f7;--ds-advanced-color-shared-background-strong: #7e7e7e;--ds-advanced-color-shared-scrim: rgba(0, 0, 0, 0.5);--ds-advanced-color-shared-text-accent: #2875b5;--ds-advanced-color-skeleton-background: #f7f8fa;--ds-advanced-color-skeleton-wave: #e4e8ec;--ds-advanced-color-state-background-disabled: #dddddd;--ds-advanced-color-state-background-hover: #f2f2f2;--ds-advanced-color-state-background-inverse-disabled: #7e8894;--ds-advanced-color-state-error-inverse: #f9a4a8;--ds-advanced-color-state-focused: #01426a;--ds-advanced-color-state-focused-inverse: #ffffff;--ds-advanced-color-state-selected: #01426a;--ds-advanced-color-state-selected-hover: #00274a;--ds-basic-color-border-bold: #585e67;--ds-basic-color-border-brand: #00274a;--ds-basic-color-border-default: #959595;--ds-basic-color-border-divider: rgba(0, 0, 0, 0.15);--ds-basic-color-border-divider-inverse: rgba(255, 255, 255, 0.4);--ds-basic-color-border-inverse: #ffffff;--ds-basic-color-border-subtle: #dddddd;--ds-basic-color-brand-primary: #01426a;--ds-basic-color-brand-primary-bold: #00274a;--ds-basic-color-brand-primary-muted: #ebf3f9;--ds-basic-color-brand-primary-subtle: #2875b5;--ds-basic-color-brand-secondary: #5de3f7;--ds-basic-color-brand-secondary-bold: #18c3dd;--ds-basic-color-brand-secondary-muted: #ebfafd;--ds-basic-color-brand-secondary-subtle: #b4eff9;--ds-basic-color-brand-tertiary: #a3cd6a;--ds-basic-color-brand-tertiary-bold: #7daf3b;--ds-basic-color-brand-tertiary-muted: #eaf3dd;--ds-basic-color-brand-tertiary-subtle: #c9e1a7;--ds-basic-color-fare-basiceconomy: #97eaf8;--ds-basic-color-fare-business: #01426a;--ds-basic-color-fare-economy: #0074ca;--ds-basic-color-fare-first: #00274a;--ds-basic-color-fare-premiumeconomy: #005154;--ds-basic-color-page-background-default: #ebfafd;--ds-basic-color-page-background-utility: #ffffff;--ds-basic-color-status-default: #afb9c6;--ds-basic-color-status-error: #e31f26;--ds-basic-color-status-error-subtle: #fbc6c6;--ds-basic-color-status-info: #01426a;--ds-basic-color-status-info-subtle: #ebf3f9;--ds-basic-color-status-success: #447a1f;--ds-basic-color-status-success-subtle: #d6eac7;--ds-basic-color-status-warning: #fac200;--ds-basic-color-status-warning-subtle: #fff0b2;--ds-basic-color-surface-accent1: #5de3f7;--ds-basic-color-surface-accent1-muted: #ebfafd;--ds-basic-color-surface-accent1-subtle: #b4eff9;--ds-basic-color-surface-accent2: #a3cd6a;--ds-basic-color-surface-accent2-muted: #eaf3dd;--ds-basic-color-surface-default: #ffffff;--ds-basic-color-surface-inverse: #00274a;--ds-basic-color-surface-inverse-subtle: #2875b5;--ds-basic-color-surface-neutral-medium: #c5c5c5;--ds-basic-color-surface-neutral-subtle: #f7f7f7;--ds-basic-color-texticon-accent1: #265688;--ds-basic-color-texticon-default: #2a2a2a;--ds-basic-color-texticon-disabled: #d0d0d0;--ds-basic-color-texticon-inverse: #ffffff;--ds-basic-color-texticon-inverse-disabled: #7e8894;--ds-basic-color-texticon-inverse-muted: #ccd2db;--ds-basic-color-texticon-muted: #676767;--ds-basic-color-tier-program-loungetier-lounge: #01426a;--ds-basic-color-tier-program-loungetier-loungeplus: #53b390;--ds-basic-color-tier-program-loyaltytier-bronze: #d99f6d;--ds-basic-color-tier-program-loyaltytier-bronze-muted: #eed4be;--ds-basic-color-tier-program-loyaltytier-cobalt: #030772;--ds-basic-color-tier-program-loyaltytier-cobalt-muted: #a9b6d6;--ds-basic-color-tier-program-loyaltytier-copper: #cb7457;--ds-basic-color-tier-program-loyaltytier-copper-muted: #e7bfb1;--ds-basic-color-tier-program-loyaltytier-gold: #fbdc7a;--ds-basic-color-tier-program-loyaltytier-gold-muted: #fdefc4;--ds-basic-color-tier-program-loyaltytier-nickel: #abaab1;--ds-basic-color-tier-program-loyaltytier-nickel-muted: #e5e4e7;--ds-basic-color-tier-program-loyaltytier-platinum: #bcb8a4;--ds-basic-color-tier-program-loyaltytier-platinum-muted: #dad8cd;--ds-basic-color-tier-program-loyaltytier-silver: #e4e9ec;--ds-basic-color-tier-program-loyaltytier-silver-muted: #f9fafb;--ds-basic-color-tier-program-loyaltytier-titanium: #282828;--ds-basic-color-tier-program-loyaltytier-titanium-muted: #545454;--ds-basic-color-tier-program-oneworld-emerald: #139142;--ds-basic-color-tier-program-oneworld-ruby: #a41d4a;--ds-basic-color-tier-program-oneworld-sapphire: #015daa;--ds-basic-type-brand-family-primary: "AS Circular";--ds-basic-type-brand-family-secondary: "Good OT";--ds-basic-type-brand-line-height-primary: 1.3;--ds-basic-type-brand-line-height-secondary: 1;--ds-basic-type-brand-letter-spacing-primary: 0;--ds-basic-type-brand-letter-spacing-secondary: 0.05em;--ds-basic-type-brand-letter-spacing-tertiary: 0.10em;--ds-basic-type-family-accent: "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-body: "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-display: "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-heading: "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-letter-spacing-accent: 0.05em;--ds-basic-type-letter-spacing-accent2: 0.10em;--ds-basic-type-letter-spacing-body: 0;--ds-basic-type-letter-spacing-display: 0;--ds-basic-type-letter-spacing-heading: 0;--ds-basic-type-line-height-accent: 1.3;--ds-basic-type-line-height-accent2: 1;--ds-basic-type-line-height-body: 1.63;--ds-basic-type-line-height-body2: 1.5;--ds-basic-type-line-height-body3: 1.25;--ds-basic-type-line-height-body4: 1;--ds-basic-type-line-height-body5: 0.88;--ds-basic-type-line-height-display: 1.3;--ds-basic-type-line-height-heading: 1.3;--ds-basic-type-weight-accent: 450;--ds-basic-type-weight-accent2: 500;--ds-basic-type-weight-body: 450;--ds-basic-type-weight-display: 300;--ds-basic-type-weight-heading: 300;--ds-basic-type-weight-heading2: 450}:host([layout*=snowflake]) .leftIndent{margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .rightIndent{margin-right:var(--ds-size-300, 1.5rem)}.layout-snowflake{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-snowflake label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding-block-start:var(--ds-size-50, 0.25rem)}.layout-snowflake input{text-align:center}.layout-snowflake .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1;overflow:hidden}.layout-snowflake .displayValue{display:none;width:100%}.layout-snowflake .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-snowflake .displayValueWrapper{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%}.layout-snowflake.withValue{justify-content:flex-start}.layout-snowflake:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-snowflake:focus-within{justify-content:flex-start}.layout-snowflake:focus-within .alertNotification{display:none}.layout-snowflake .accents{width:var(--ds-size-300, 1.5rem)}.layout-snowflake .accents.left{padding-left:var(--ds-size-300, 1.5rem)}.layout-snowflake .accents.right{padding-right:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .helpTextWrapper{text-align:center}`;
|
|
26
26
|
|
|
27
27
|
const watchedItems = new Set();
|
|
28
28
|
|
|
@@ -85,6 +85,8 @@ const stringsES = {
|
|
|
85
85
|
'dateMM': 'Ingrese una fecha completa en el formato MM',
|
|
86
86
|
'dateDD': 'Ingrese una fecha completa en el formato DD',
|
|
87
87
|
'clearInput': 'Borrar campo de entrada',
|
|
88
|
+
'showPassword': 'Mostrar contraseña',
|
|
89
|
+
'hidePassword': 'Ocultar contraseña'
|
|
88
90
|
};
|
|
89
91
|
|
|
90
92
|
const stringsEN = {
|
|
@@ -109,6 +111,8 @@ const stringsEN = {
|
|
|
109
111
|
'dateMM': 'Please enter a complete date in the format MM',
|
|
110
112
|
'dateDD': 'Please enter a complete date in the format DD',
|
|
111
113
|
'clearInput': 'Clear input field',
|
|
114
|
+
'showPassword': 'Show password',
|
|
115
|
+
'hidePassword': 'Hide password'
|
|
112
116
|
};
|
|
113
117
|
|
|
114
118
|
/**
|
|
@@ -4403,7 +4407,7 @@ const {
|
|
|
4403
4407
|
|
|
4404
4408
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4405
4409
|
|
|
4406
|
-
let AuroLibraryRuntimeUtils$
|
|
4410
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
4407
4411
|
|
|
4408
4412
|
/* eslint-disable jsdoc/require-param */
|
|
4409
4413
|
|
|
@@ -4473,7 +4477,7 @@ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
|
4473
4477
|
class AuroFormValidation {
|
|
4474
4478
|
|
|
4475
4479
|
constructor() {
|
|
4476
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
4480
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
4477
4481
|
}
|
|
4478
4482
|
|
|
4479
4483
|
/**
|
|
@@ -4533,19 +4537,19 @@ class AuroFormValidation {
|
|
|
4533
4537
|
{
|
|
4534
4538
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
4535
4539
|
validity: 'tooShort',
|
|
4536
|
-
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
4540
|
+
message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
|
|
4537
4541
|
},
|
|
4538
4542
|
{
|
|
4539
4543
|
check: (e) => e.value?.length > e.maxLength,
|
|
4540
4544
|
validity: 'tooLong',
|
|
4541
|
-
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
4545
|
+
message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
|
|
4542
4546
|
}
|
|
4543
4547
|
],
|
|
4544
4548
|
pattern: [
|
|
4545
4549
|
{
|
|
4546
4550
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
4547
4551
|
validity: 'patternMismatch',
|
|
4548
|
-
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
4552
|
+
message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
|
|
4549
4553
|
}
|
|
4550
4554
|
]
|
|
4551
4555
|
},
|
|
@@ -4692,13 +4696,24 @@ class AuroFormValidation {
|
|
|
4692
4696
|
this.getInputElements(elem);
|
|
4693
4697
|
this.getAuroInputs(elem);
|
|
4694
4698
|
|
|
4695
|
-
//
|
|
4699
|
+
// Check if validation should run
|
|
4696
4700
|
let validationShouldRun =
|
|
4701
|
+
|
|
4702
|
+
// If the validation was forced
|
|
4697
4703
|
force ||
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4704
|
+
|
|
4705
|
+
// If the validation should run on input
|
|
4706
|
+
elem.validateOnInput ||
|
|
4707
|
+
|
|
4708
|
+
// State-based checks
|
|
4709
|
+
(
|
|
4710
|
+
// Element is not currently focused
|
|
4711
|
+
!elem.contains(document.activeElement) && // native input is not focused directly
|
|
4712
|
+
!document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
|
|
4713
|
+
|
|
4714
|
+
// And element has been touched or is untouched but has a value
|
|
4715
|
+
( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
|
|
4716
|
+
);
|
|
4702
4717
|
|
|
4703
4718
|
if (elem.hasAttribute('error')) {
|
|
4704
4719
|
elem.validity = 'customError';
|
|
@@ -4740,10 +4755,10 @@ class AuroFormValidation {
|
|
|
4740
4755
|
if (!hasValue && elem.required && elem.touched) {
|
|
4741
4756
|
elem.validity = 'valueMissing';
|
|
4742
4757
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
4743
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
4758
|
+
} else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
4744
4759
|
this.validateType(elem);
|
|
4745
4760
|
this.validateElementAttributes(elem);
|
|
4746
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group')) {
|
|
4761
|
+
} else if (hasValue && (this.runtimeUtils.elementMatch(elem, 'auro-counter') || this.runtimeUtils.elementMatch(elem, 'auro-counter-group'))) {
|
|
4747
4762
|
this.validateElementAttributes(elem);
|
|
4748
4763
|
}
|
|
4749
4764
|
}
|
|
@@ -4752,7 +4767,9 @@ class AuroFormValidation {
|
|
|
4752
4767
|
elem.validity = this.auroInputElements[0].validity;
|
|
4753
4768
|
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
4754
4769
|
|
|
4755
|
-
|
|
4770
|
+
// combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
|
|
4771
|
+
// combobox's 2nd input will have noValidate set true.
|
|
4772
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
|
|
4756
4773
|
elem.validity = this.auroInputElements[1].validity;
|
|
4757
4774
|
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
4758
4775
|
}
|
|
@@ -4832,7 +4849,7 @@ class AuroFormValidation {
|
|
|
4832
4849
|
}
|
|
4833
4850
|
}
|
|
4834
4851
|
|
|
4835
|
-
let AuroElement$
|
|
4852
|
+
let AuroElement$2 = class AuroElement extends LitElement {
|
|
4836
4853
|
static get properties() {
|
|
4837
4854
|
return {
|
|
4838
4855
|
|
|
@@ -4867,19 +4884,22 @@ let AuroElement$1 = class AuroElement extends LitElement {
|
|
|
4867
4884
|
}
|
|
4868
4885
|
|
|
4869
4886
|
resetShapeClasses() {
|
|
4870
|
-
|
|
4871
|
-
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4887
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4872
4888
|
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4889
|
+
if (wrapper) {
|
|
4890
|
+
wrapper.classList.forEach((className) => {
|
|
4891
|
+
if (className.startsWith('shape-')) {
|
|
4892
|
+
wrapper.classList.remove(className);
|
|
4893
|
+
}
|
|
4894
|
+
});
|
|
4879
4895
|
|
|
4896
|
+
if (this.shape && this.size) {
|
|
4880
4897
|
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
4898
|
+
} else {
|
|
4899
|
+
wrapper.classList.add('shape-none');
|
|
4881
4900
|
}
|
|
4882
4901
|
}
|
|
4902
|
+
|
|
4883
4903
|
}
|
|
4884
4904
|
|
|
4885
4905
|
resetLayoutClasses() {
|
|
@@ -4934,19 +4954,24 @@ let AuroElement$1 = class AuroElement extends LitElement {
|
|
|
4934
4954
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
4935
4955
|
* @attr id
|
|
4936
4956
|
*
|
|
4937
|
-
* @slot
|
|
4957
|
+
* @slot helpText - Sets the help text displayed below the input.
|
|
4938
4958
|
* @slot label - Sets the label text for the input.
|
|
4959
|
+
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
4960
|
+
* @slot displayValue - Allows custom HTML content to display in place of the value when the input is not focused.
|
|
4939
4961
|
*
|
|
4940
4962
|
* @csspart wrapper - Use for customizing the style of the root element
|
|
4941
4963
|
* @csspart label - Use for customizing the style of the label element
|
|
4942
4964
|
* @csspart helpText - Use for customizing the style of the helpText element
|
|
4965
|
+
* @csspart input - Use for customizing the style of the input element
|
|
4943
4966
|
* @csspart accentIcon - Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon)
|
|
4944
4967
|
* @csspart iconContainer - Use for customizing the style of the iconContainer (e.g. X icon for clearing input value)
|
|
4968
|
+
* @csspart accent-left - Use for customizing the style of the left accent element (e.g. padding, margin)
|
|
4969
|
+
* @csspart accent-right - Use for customizing the style of the right accent element (e.g. padding, margin)
|
|
4945
4970
|
* @event input - Event fires when the value of an `auro-input` has been changed.
|
|
4946
4971
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
4947
4972
|
*/
|
|
4948
4973
|
|
|
4949
|
-
class BaseInput extends AuroElement$
|
|
4974
|
+
class BaseInput extends AuroElement$2 {
|
|
4950
4975
|
|
|
4951
4976
|
constructor() {
|
|
4952
4977
|
super();
|
|
@@ -4963,9 +4988,22 @@ class BaseInput extends AuroElement$1 {
|
|
|
4963
4988
|
this.required = false;
|
|
4964
4989
|
this.setCustomValidityForType = undefined;
|
|
4965
4990
|
|
|
4991
|
+
/**
|
|
4992
|
+
* @private
|
|
4993
|
+
*/
|
|
4966
4994
|
this.layout = 'classic';
|
|
4995
|
+
|
|
4996
|
+
/**
|
|
4997
|
+
* @private
|
|
4998
|
+
*/
|
|
4967
4999
|
this.shape = 'classic';
|
|
5000
|
+
|
|
5001
|
+
/**
|
|
5002
|
+
* @private
|
|
5003
|
+
*/
|
|
4968
5004
|
this.size = 'lg';
|
|
5005
|
+
|
|
5006
|
+
this.privateDefaults();
|
|
4969
5007
|
}
|
|
4970
5008
|
|
|
4971
5009
|
/**
|
|
@@ -5039,7 +5077,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5039
5077
|
*/
|
|
5040
5078
|
a11yRole: {
|
|
5041
5079
|
type: String,
|
|
5042
|
-
attribute: true,
|
|
5043
5080
|
reflect: true
|
|
5044
5081
|
},
|
|
5045
5082
|
|
|
@@ -5048,7 +5085,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5048
5085
|
*/
|
|
5049
5086
|
a11yExpanded: {
|
|
5050
5087
|
type: Boolean,
|
|
5051
|
-
attribute: true,
|
|
5052
5088
|
reflect: true
|
|
5053
5089
|
},
|
|
5054
5090
|
|
|
@@ -5057,7 +5093,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5057
5093
|
*/
|
|
5058
5094
|
a11yControls: {
|
|
5059
5095
|
type: String,
|
|
5060
|
-
attribute: true,
|
|
5061
5096
|
reflect: true
|
|
5062
5097
|
},
|
|
5063
5098
|
|
|
@@ -5073,7 +5108,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5073
5108
|
* 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].
|
|
5074
5109
|
*/
|
|
5075
5110
|
autocapitalize: {
|
|
5076
|
-
type: String
|
|
5111
|
+
type: String,
|
|
5112
|
+
reflect: true
|
|
5077
5113
|
},
|
|
5078
5114
|
|
|
5079
5115
|
/**
|
|
@@ -5088,7 +5124,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5088
5124
|
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
5089
5125
|
*/
|
|
5090
5126
|
autocorrect: {
|
|
5091
|
-
type: String
|
|
5127
|
+
type: String,
|
|
5128
|
+
reflect: true
|
|
5092
5129
|
},
|
|
5093
5130
|
|
|
5094
5131
|
/**
|
|
@@ -5133,7 +5170,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5133
5170
|
/** Exposes inputmode attribute for input. */
|
|
5134
5171
|
inputmode: {
|
|
5135
5172
|
type: String,
|
|
5136
|
-
attribute: true,
|
|
5137
5173
|
reflect: true
|
|
5138
5174
|
},
|
|
5139
5175
|
|
|
@@ -5141,7 +5177,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5141
5177
|
* Defines the language of an element.
|
|
5142
5178
|
*/
|
|
5143
5179
|
lang: {
|
|
5144
|
-
type: String
|
|
5180
|
+
type: String,
|
|
5181
|
+
reflect: true
|
|
5145
5182
|
},
|
|
5146
5183
|
|
|
5147
5184
|
/**
|
|
@@ -5155,7 +5192,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5155
5192
|
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
5156
5193
|
*/
|
|
5157
5194
|
maxLength: {
|
|
5158
|
-
type: Number
|
|
5195
|
+
type: Number,
|
|
5196
|
+
reflect: true
|
|
5159
5197
|
},
|
|
5160
5198
|
|
|
5161
5199
|
/**
|
|
@@ -5169,14 +5207,25 @@ class BaseInput extends AuroElement$1 {
|
|
|
5169
5207
|
* 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`.
|
|
5170
5208
|
*/
|
|
5171
5209
|
minLength: {
|
|
5172
|
-
type: Number
|
|
5210
|
+
type: Number,
|
|
5211
|
+
reflect: true
|
|
5173
5212
|
},
|
|
5174
5213
|
|
|
5175
5214
|
/**
|
|
5176
5215
|
* Populates the `name` attribute on the input.
|
|
5177
5216
|
*/
|
|
5178
5217
|
name: {
|
|
5179
|
-
type: String
|
|
5218
|
+
type: String,
|
|
5219
|
+
reflect: true
|
|
5220
|
+
},
|
|
5221
|
+
|
|
5222
|
+
/**
|
|
5223
|
+
* Sets styles for nested operation - removes borders, hides help + error text, and
|
|
5224
|
+
* hides accents.
|
|
5225
|
+
*/
|
|
5226
|
+
nested: {
|
|
5227
|
+
type: Boolean,
|
|
5228
|
+
reflect: true
|
|
5180
5229
|
},
|
|
5181
5230
|
|
|
5182
5231
|
/**
|
|
@@ -5204,10 +5253,11 @@ class BaseInput extends AuroElement$1 {
|
|
|
5204
5253
|
},
|
|
5205
5254
|
|
|
5206
5255
|
/**
|
|
5207
|
-
* Define custom placeholder text
|
|
5256
|
+
* Define custom placeholder text.
|
|
5208
5257
|
*/
|
|
5209
5258
|
placeholder: {
|
|
5210
|
-
type: String
|
|
5259
|
+
type: String,
|
|
5260
|
+
reflect: true
|
|
5211
5261
|
},
|
|
5212
5262
|
|
|
5213
5263
|
/**
|
|
@@ -5296,6 +5346,14 @@ class BaseInput extends AuroElement$1 {
|
|
|
5296
5346
|
type: String
|
|
5297
5347
|
},
|
|
5298
5348
|
|
|
5349
|
+
/**
|
|
5350
|
+
* Simple makes the input render without a border.
|
|
5351
|
+
*/
|
|
5352
|
+
simple: {
|
|
5353
|
+
type: Boolean,
|
|
5354
|
+
reflect: true
|
|
5355
|
+
},
|
|
5356
|
+
|
|
5299
5357
|
/**
|
|
5300
5358
|
* Custom help text message for email type validity.
|
|
5301
5359
|
*/
|
|
@@ -5307,7 +5365,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5307
5365
|
* 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`.
|
|
5308
5366
|
*/
|
|
5309
5367
|
spellcheck: {
|
|
5310
|
-
type: String
|
|
5368
|
+
type: String,
|
|
5369
|
+
reflect: true
|
|
5311
5370
|
},
|
|
5312
5371
|
|
|
5313
5372
|
/**
|
|
@@ -5322,7 +5381,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5322
5381
|
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
5323
5382
|
*/
|
|
5324
5383
|
value: {
|
|
5325
|
-
type: String
|
|
5384
|
+
type: String,
|
|
5385
|
+
reflect: true
|
|
5326
5386
|
},
|
|
5327
5387
|
|
|
5328
5388
|
/**
|
|
@@ -5367,8 +5427,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5367
5427
|
connectedCallback() {
|
|
5368
5428
|
super.connectedCallback();
|
|
5369
5429
|
|
|
5370
|
-
this.privateDefaults();
|
|
5371
|
-
|
|
5372
5430
|
notifyOnLangChange(this);
|
|
5373
5431
|
}
|
|
5374
5432
|
|
|
@@ -5378,7 +5436,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
5378
5436
|
}
|
|
5379
5437
|
|
|
5380
5438
|
firstUpdated() {
|
|
5381
|
-
// clicking anywhere in the main wrapper will focus the input. Clicking the
|
|
5439
|
+
// clicking anywhere in the main wrapper will focus the input. Clicking the helpText or label will not focus the input.
|
|
5382
5440
|
this.wrapperElement = this.shadowRoot.querySelector('.wrapper');
|
|
5383
5441
|
this.inputElement = this.renderRoot.querySelector('input');
|
|
5384
5442
|
this.labelElement = this.shadowRoot.querySelector('label');
|
|
@@ -5490,9 +5548,9 @@ class BaseInput extends AuroElement$1 {
|
|
|
5490
5548
|
if (!this.shadowRoot.contains(this.getActiveElement())) {
|
|
5491
5549
|
this.validation.validate(this);
|
|
5492
5550
|
}
|
|
5493
|
-
|
|
5494
|
-
this.notifyValueChanged();
|
|
5495
5551
|
}
|
|
5552
|
+
|
|
5553
|
+
this.notifyValueChanged();
|
|
5496
5554
|
}
|
|
5497
5555
|
|
|
5498
5556
|
if (changedProperties.has('error')) {
|
|
@@ -5602,7 +5660,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5602
5660
|
|
|
5603
5661
|
/**
|
|
5604
5662
|
* Function to set element focus.
|
|
5605
|
-
* @private
|
|
5606
5663
|
* @return {void}
|
|
5607
5664
|
*/
|
|
5608
5665
|
focus() {
|
|
@@ -5618,9 +5675,9 @@ class BaseInput extends AuroElement$1 {
|
|
|
5618
5675
|
this.inputElement.value = "";
|
|
5619
5676
|
this.value = "";
|
|
5620
5677
|
this.labelElement.classList.remove('inputElement-label--sticky');
|
|
5678
|
+
this.notifyValueChanged();
|
|
5621
5679
|
this.focus();
|
|
5622
5680
|
this.validation.validate(this);
|
|
5623
|
-
this.notifyValueChanged();
|
|
5624
5681
|
}
|
|
5625
5682
|
|
|
5626
5683
|
/**
|
|
@@ -5715,13 +5772,20 @@ class BaseInput extends AuroElement$1 {
|
|
|
5715
5772
|
}
|
|
5716
5773
|
|
|
5717
5774
|
/**
|
|
5718
|
-
* Resets component to initial state.
|
|
5775
|
+
* Resets component to initial state, including resetting the touched state and validity.
|
|
5719
5776
|
* @returns {void}
|
|
5720
5777
|
*/
|
|
5721
5778
|
reset() {
|
|
5722
5779
|
this.validation.reset(this);
|
|
5723
5780
|
}
|
|
5724
5781
|
|
|
5782
|
+
/**
|
|
5783
|
+
* Clears the input value.
|
|
5784
|
+
*/
|
|
5785
|
+
clear() {
|
|
5786
|
+
this.value = undefined;
|
|
5787
|
+
}
|
|
5788
|
+
|
|
5725
5789
|
/**
|
|
5726
5790
|
* Sets configuration data used elsewhere based on the `type` attribute.
|
|
5727
5791
|
* @private
|
|
@@ -5800,28 +5864,15 @@ class BaseInput extends AuroElement$1 {
|
|
|
5800
5864
|
* @returns {void}
|
|
5801
5865
|
*/
|
|
5802
5866
|
getPlaceholder() {
|
|
5803
|
-
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
// console.warn(this.getActiveElement());
|
|
5808
|
-
|
|
5809
|
-
if (!isFocused) {
|
|
5810
|
-
if (this.placeholder) {
|
|
5811
|
-
this.placeholderStr = this.placeholder;
|
|
5812
|
-
// return this.placeholder;
|
|
5813
|
-
} else if (this.type === 'date') {
|
|
5814
|
-
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
5815
|
-
// return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
5816
|
-
}
|
|
5817
|
-
} else {
|
|
5818
|
-
this.placeholderStr = '';
|
|
5867
|
+
if (this.placeholder) {
|
|
5868
|
+
this.placeholderStr = this.placeholder;
|
|
5869
|
+
} else if (this.type === 'date') {
|
|
5870
|
+
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
5819
5871
|
}
|
|
5820
5872
|
|
|
5821
5873
|
this.requestUpdate();
|
|
5822
5874
|
|
|
5823
|
-
|
|
5824
|
-
// return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
5875
|
+
return this.placeholderStr;
|
|
5825
5876
|
}
|
|
5826
5877
|
|
|
5827
5878
|
/**
|
|
@@ -6034,7 +6085,7 @@ class AuroDependencyVersioning {
|
|
|
6034
6085
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
6035
6086
|
*/
|
|
6036
6087
|
|
|
6037
|
-
class AuroElement extends LitElement {
|
|
6088
|
+
let AuroElement$1 = class AuroElement extends LitElement {
|
|
6038
6089
|
|
|
6039
6090
|
// function to define props used within the scope of this component
|
|
6040
6091
|
static get properties() {
|
|
@@ -6058,7 +6109,7 @@ class AuroElement extends LitElement {
|
|
|
6058
6109
|
|
|
6059
6110
|
return 'false'
|
|
6060
6111
|
}
|
|
6061
|
-
}
|
|
6112
|
+
};
|
|
6062
6113
|
|
|
6063
6114
|
var error = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"error__desc\" class=\"ico_squareLarge\" data-deprecated=\"true\" role=\"img\" style=\"min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor\" viewBox=\"0 0 24 24\" part=\"svg\"><title/><desc id=\"error__desc\">Error alert indicator.</desc><path d=\"m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583\"/></svg>"};
|
|
6064
6115
|
|
|
@@ -6102,7 +6153,7 @@ var styleCss$3 = css`:focus:not(:focus-visible){outline:3px solid transparent}.u
|
|
|
6102
6153
|
*/
|
|
6103
6154
|
|
|
6104
6155
|
// build the component class
|
|
6105
|
-
class BaseIcon extends AuroElement {
|
|
6156
|
+
class BaseIcon extends AuroElement$1 {
|
|
6106
6157
|
constructor() {
|
|
6107
6158
|
super();
|
|
6108
6159
|
this.onDark = false;
|
|
@@ -6185,7 +6236,7 @@ var colorCss$3 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
|
|
|
6185
6236
|
|
|
6186
6237
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6187
6238
|
|
|
6188
|
-
let AuroLibraryRuntimeUtils$
|
|
6239
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
6189
6240
|
|
|
6190
6241
|
/* eslint-disable jsdoc/require-param */
|
|
6191
6242
|
|
|
@@ -6267,7 +6318,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6267
6318
|
*/
|
|
6268
6319
|
privateDefaults() {
|
|
6269
6320
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
6270
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
6321
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
6271
6322
|
}
|
|
6272
6323
|
|
|
6273
6324
|
// function to define props used within the scope of this component
|
|
@@ -6349,7 +6400,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6349
6400
|
*
|
|
6350
6401
|
*/
|
|
6351
6402
|
static register(name = "auro-icon") {
|
|
6352
|
-
AuroLibraryRuntimeUtils$
|
|
6403
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
|
|
6353
6404
|
}
|
|
6354
6405
|
|
|
6355
6406
|
connectedCallback() {
|
|
@@ -6370,8 +6421,12 @@ class AuroIcon extends BaseIcon {
|
|
|
6370
6421
|
async firstUpdated() {
|
|
6371
6422
|
await super.firstUpdated();
|
|
6372
6423
|
|
|
6373
|
-
|
|
6374
|
-
|
|
6424
|
+
/**
|
|
6425
|
+
* icons provide a description for screen readers. Icon only instances Auro-button
|
|
6426
|
+
* depend on this description to provide context for the user using a screen reader.
|
|
6427
|
+
* Removes the SVG description for screen reader if ariaHidden is set to true.
|
|
6428
|
+
*/
|
|
6429
|
+
if (this.hasAttribute('ariaHidden') && this.svg) {
|
|
6375
6430
|
const svgDesc = this.svg.querySelector('desc');
|
|
6376
6431
|
|
|
6377
6432
|
if (svgDesc) {
|
|
@@ -6415,118 +6470,655 @@ class AuroIcon extends BaseIcon {
|
|
|
6415
6470
|
}
|
|
6416
6471
|
}
|
|
6417
6472
|
|
|
6418
|
-
var iconVersion = '8.0.
|
|
6473
|
+
var iconVersion = '8.0.4';
|
|
6419
6474
|
|
|
6420
|
-
|
|
6475
|
+
/**
|
|
6476
|
+
* Private module-level WeakMap to hold MutationObservers for each host element.
|
|
6477
|
+
*/
|
|
6478
|
+
const _observers = new WeakMap();
|
|
6421
6479
|
|
|
6422
|
-
|
|
6480
|
+
/**
|
|
6481
|
+
* Private module-level WeakMap to hold attribute matchers and targets for each host element.
|
|
6482
|
+
* Structure: {
|
|
6483
|
+
* host: {
|
|
6484
|
+
* matchers: Set<Function>,
|
|
6485
|
+
* targets: Map<HTMLElement, Map<Function, {removeOriginal: boolean, currentAttributes: Map<string, string>}>>
|
|
6486
|
+
* }
|
|
6487
|
+
* }
|
|
6488
|
+
*/
|
|
6489
|
+
const _transportConfig = new WeakMap();
|
|
6423
6490
|
|
|
6424
|
-
|
|
6491
|
+
/**
|
|
6492
|
+
* Transfers all matching attributes from a host element to a target element and observes for future changes.
|
|
6493
|
+
*
|
|
6494
|
+
* @param {Object} params - The parameters for the function.
|
|
6495
|
+
* @param {HTMLElement} params.host - The host element from which attributes will be transported.
|
|
6496
|
+
* @param {HTMLElement} params.target - The target element to which attributes will be transported.
|
|
6497
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove the attributes from the host element.
|
|
6498
|
+
* @param {boolean} [params.observe=true] - Whether to attach a MutationObserver to the host element.
|
|
6499
|
+
* @returns {Function} A function to detach the observer when no longer needed.
|
|
6500
|
+
* @throws {TypeError} If the host or target parameters are not instances of HTMLElement.
|
|
6501
|
+
*/
|
|
6502
|
+
const transportAttributes = ({ host, target, match, removeOriginal = true }) => {
|
|
6503
|
+
// Guard Clause: Ensure host is valid HTMLElement instance
|
|
6504
|
+
if (typeof host !== 'object' || !(host instanceof HTMLElement)) {
|
|
6505
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');
|
|
6506
|
+
}
|
|
6425
6507
|
|
|
6426
|
-
|
|
6508
|
+
// Guard Clause: Ensure target is valid HTMLElement instance
|
|
6509
|
+
if (typeof target !== 'object' || !(target instanceof HTMLElement)) {
|
|
6510
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');
|
|
6511
|
+
}
|
|
6427
6512
|
|
|
6428
|
-
|
|
6513
|
+
// Guard Clause: Ensure match is a function
|
|
6514
|
+
if (typeof match !== 'function') {
|
|
6515
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');
|
|
6516
|
+
}
|
|
6429
6517
|
|
|
6430
|
-
|
|
6518
|
+
// Guard Clause: Ensure removeOriginal is a boolean
|
|
6519
|
+
if (typeof removeOriginal !== 'boolean') {
|
|
6520
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');
|
|
6521
|
+
}
|
|
6522
|
+
|
|
6523
|
+
// Register this transport and get cleanup function
|
|
6524
|
+
return _registerTransport({
|
|
6525
|
+
host,
|
|
6526
|
+
target,
|
|
6527
|
+
matcher: match,
|
|
6528
|
+
removeOriginal
|
|
6529
|
+
});
|
|
6530
|
+
};
|
|
6431
6531
|
|
|
6432
|
-
|
|
6433
|
-
|
|
6532
|
+
/**
|
|
6533
|
+
* Registers a matcher and target for a host element and attaches an observer if needed.
|
|
6534
|
+
*
|
|
6535
|
+
* @param {Object} params - The parameters object.
|
|
6536
|
+
* @param {HTMLElement} params.host - The host element to observe.
|
|
6537
|
+
* @param {HTMLElement} params.target - The target element to receive attributes.
|
|
6538
|
+
* @param {Function} params.matcher - Function that determines which attributes to transport.
|
|
6539
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes.
|
|
6540
|
+
* @param {boolean} [params.observe=true] - Whether to observe for attribute changes.
|
|
6541
|
+
* @returns {Function} Function to detach the specific matcher and target pairing.
|
|
6542
|
+
* @private
|
|
6543
|
+
*/
|
|
6544
|
+
const _registerTransport = ({ host, target, matcher, removeOriginal = true }) => {
|
|
6545
|
+
// Initialize config for this host if it doesn't exist
|
|
6546
|
+
if (!_transportConfig.has(host)) {
|
|
6547
|
+
_transportConfig.set(host, {
|
|
6548
|
+
matchers: new Set(),
|
|
6549
|
+
targets: new Map()
|
|
6550
|
+
});
|
|
6551
|
+
}
|
|
6434
6552
|
|
|
6553
|
+
const config = _transportConfig.get(host);
|
|
6554
|
+
|
|
6555
|
+
// Add the matcher to the set of matchers for this host
|
|
6556
|
+
config.matchers.add(matcher);
|
|
6557
|
+
|
|
6558
|
+
// Initialize target entry if it doesn't exist
|
|
6559
|
+
if (!config.targets.has(target)) {
|
|
6560
|
+
config.targets.set(target, new Map());
|
|
6561
|
+
}
|
|
6562
|
+
|
|
6563
|
+
// Store the matcher with its removeOriginal setting for this target
|
|
6564
|
+
config.targets.get(target).set(matcher, {
|
|
6565
|
+
removeOriginal,
|
|
6566
|
+
currentAttributes: new Map()
|
|
6567
|
+
});
|
|
6568
|
+
|
|
6569
|
+
// Perform initial attribute transport
|
|
6570
|
+
_transportAttributes({ host, target, matcher, removeOriginal });
|
|
6571
|
+
|
|
6572
|
+
// Attach observer
|
|
6573
|
+
_attachObserver(host);
|
|
6574
|
+
|
|
6575
|
+
// Return cleanup function and utility functions
|
|
6576
|
+
return {
|
|
6577
|
+
cleanup: () => _cleanupTransport(host, target, matcher),
|
|
6578
|
+
getObservedAttributes: () => _getObservedAttributes(host, target, matcher),
|
|
6579
|
+
getObservedAttribute: (attr) => _getObservedAttribute(host, target, matcher, attr),
|
|
6580
|
+
}
|
|
6581
|
+
};
|
|
6435
6582
|
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6583
|
+
/**
|
|
6584
|
+
* Cleans up resources associated with a specific matcher and target for a host element.
|
|
6585
|
+
*
|
|
6586
|
+
* @param {HTMLElement} host - The host element
|
|
6587
|
+
* @param {HTMLElement} target - The target element
|
|
6588
|
+
* @param {Function} matcher - The matcher function
|
|
6589
|
+
* @private
|
|
6590
|
+
*/
|
|
6591
|
+
const _cleanupTransport = (host, target, matcher) => {
|
|
6592
|
+
const config = _transportConfig.get(host);
|
|
6593
|
+
if (!config) return;
|
|
6594
|
+
|
|
6595
|
+
// Remove this matcher from this target
|
|
6596
|
+
const targetMatchers = config.targets.get(target);
|
|
6597
|
+
if (targetMatchers) {
|
|
6598
|
+
targetMatchers.delete(matcher);
|
|
6599
|
+
|
|
6600
|
+
// If this target has no more matchers, remove it
|
|
6601
|
+
if (targetMatchers.size === 0) {
|
|
6602
|
+
config.targets.delete(target);
|
|
6603
|
+
}
|
|
6604
|
+
}
|
|
6605
|
+
|
|
6606
|
+
// Check if this matcher is still used by any target
|
|
6607
|
+
let matcherStillUsed = false;
|
|
6608
|
+
for (const matcherMap of config.targets.values()) {
|
|
6609
|
+
if (matcherMap.has(matcher)) {
|
|
6610
|
+
matcherStillUsed = true;
|
|
6611
|
+
break;
|
|
6612
|
+
}
|
|
6613
|
+
}
|
|
6614
|
+
|
|
6615
|
+
// If not used anymore, remove from matchers set
|
|
6616
|
+
if (!matcherStillUsed) {
|
|
6617
|
+
config.matchers.delete(matcher);
|
|
6618
|
+
}
|
|
6619
|
+
|
|
6620
|
+
// If no more targets or matchers, detach observer
|
|
6621
|
+
if (config.targets.size === 0 || config.matchers.size === 0) {
|
|
6622
|
+
_detachObserver(host);
|
|
6623
|
+
}
|
|
6624
|
+
};
|
|
6439
6625
|
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6626
|
+
/**
|
|
6627
|
+
* Generic function to transport attributes from a host element to a target element.
|
|
6628
|
+
*
|
|
6629
|
+
* @param {Object} params - The parameters object.
|
|
6630
|
+
* @param {HTMLElement} params.host - The host element from which to transport attributes.
|
|
6631
|
+
* @param {HTMLElement} params.target - The target element to which attributes will be transported.
|
|
6632
|
+
* @param {Function} params.matcher - Function that takes an attribute name and returns true if it should be transported.
|
|
6633
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes from host.
|
|
6634
|
+
* @returns {void}
|
|
6635
|
+
* @private
|
|
6636
|
+
*/
|
|
6637
|
+
const _transportAttributes = ({ host, target, matcher, removeOriginal = true }) => {
|
|
6638
|
+
// Get a list of all matching attributes on the host element and their values
|
|
6639
|
+
const matchingAttributes = host.getAttributeNames()
|
|
6640
|
+
.filter(attr => matcher(attr))
|
|
6641
|
+
.reduce((acc, attr) => {
|
|
6642
|
+
acc[attr] = host.getAttribute(attr);
|
|
6643
|
+
return acc;
|
|
6644
|
+
}, {});
|
|
6645
|
+
|
|
6646
|
+
// Move matching attributes to the target element, removing them from the host if removeOriginal is true
|
|
6647
|
+
Object.entries(matchingAttributes).forEach(([key, value]) => {
|
|
6648
|
+
_setObservedAttribute(host, target, matcher, key, value);
|
|
6649
|
+
target.setAttribute(key, value);
|
|
6650
|
+
if (removeOriginal) {
|
|
6651
|
+
host.removeAttribute(key);
|
|
6652
|
+
}
|
|
6653
|
+
});
|
|
6654
|
+
};
|
|
6444
6655
|
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6656
|
+
/**
|
|
6657
|
+
* Attaches a MutationObserver to the host element to monitor attribute changes.
|
|
6658
|
+
*
|
|
6659
|
+
* @param {HTMLElement} host - The element to observe for attribute changes.
|
|
6660
|
+
* @returns {MutationObserver} The observer instance.
|
|
6661
|
+
* @private
|
|
6662
|
+
*/
|
|
6663
|
+
const _attachObserver = (host) => {
|
|
6664
|
+
// If an observer for this host already exists, return it
|
|
6665
|
+
if (_observers.has(host)) {
|
|
6666
|
+
return _observers.get(host);
|
|
6667
|
+
}
|
|
6668
|
+
|
|
6669
|
+
// Create a new MutationObserver
|
|
6670
|
+
const observer = new MutationObserver((mutations) => {
|
|
6671
|
+
const config = _transportConfig.get(host);
|
|
6672
|
+
if (!config) return;
|
|
6673
|
+
|
|
6674
|
+
// For each mutation affecting attributes
|
|
6675
|
+
mutations
|
|
6676
|
+
.filter(mutation => mutation.type === 'attributes')
|
|
6677
|
+
.forEach(mutation => {
|
|
6678
|
+
const attributeName = mutation.attributeName;
|
|
6679
|
+
|
|
6680
|
+
// Find matchers that care about this attribute
|
|
6681
|
+
for (const matcher of config.matchers) {
|
|
6682
|
+
if (matcher(attributeName)) {
|
|
6683
|
+
// For each target that uses this matcher
|
|
6684
|
+
for (const [target, matcherConfigs] of config.targets.entries()) {
|
|
6685
|
+
if (matcherConfigs.has(matcher)) {
|
|
6686
|
+
const { removeOriginal } = matcherConfigs.get(matcher);
|
|
6687
|
+
_transportAttributes({
|
|
6688
|
+
host,
|
|
6689
|
+
target,
|
|
6690
|
+
matcher,
|
|
6691
|
+
removeOriginal
|
|
6692
|
+
});
|
|
6693
|
+
}
|
|
6694
|
+
}
|
|
6695
|
+
}
|
|
6696
|
+
}
|
|
6697
|
+
});
|
|
6698
|
+
});
|
|
6449
6699
|
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6700
|
+
// Start observing attribute changes
|
|
6701
|
+
observer.observe(host, { attributes: true });
|
|
6702
|
+
|
|
6703
|
+
// Store the observer
|
|
6704
|
+
_observers.set(host, observer);
|
|
6705
|
+
|
|
6706
|
+
return observer;
|
|
6707
|
+
};
|
|
6454
6708
|
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6709
|
+
/**
|
|
6710
|
+
* Detaches and cleans up the MutationObserver for a given host element.
|
|
6711
|
+
*
|
|
6712
|
+
* @param {HTMLElement} host - The element whose observer should be detached.
|
|
6713
|
+
* @private
|
|
6714
|
+
*/
|
|
6715
|
+
const _detachObserver = (host) => {
|
|
6716
|
+
if (_observers.has(host)) {
|
|
6717
|
+
const observer = _observers.get(host);
|
|
6718
|
+
observer.disconnect();
|
|
6719
|
+
_observers.delete(host);
|
|
6720
|
+
}
|
|
6721
|
+
|
|
6722
|
+
// Clean up the transport config as well
|
|
6723
|
+
if (_transportConfig.has(host)) {
|
|
6724
|
+
_transportConfig.delete(host);
|
|
6725
|
+
}
|
|
6726
|
+
};
|
|
6459
6727
|
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6728
|
+
/**
|
|
6729
|
+
* Gets the matcher configuration for a specific host, target, and matcher
|
|
6730
|
+
* @param {HTMLElement} host - The host element
|
|
6731
|
+
* @param {HTMLElement} target - The target element
|
|
6732
|
+
* @param {Function} matcher - The matcher function
|
|
6733
|
+
* @returns {Object|undefined} The matcher configuration if found
|
|
6734
|
+
* @private
|
|
6735
|
+
*/
|
|
6736
|
+
const _getMatcherConfig = (host, target, matcher) => {
|
|
6737
|
+
const config = _transportConfig.get(host);
|
|
6738
|
+
if (!config) return undefined;
|
|
6739
|
+
|
|
6740
|
+
const targetMatchers = config.targets.get(target);
|
|
6741
|
+
if (!targetMatchers) return undefined;
|
|
6742
|
+
|
|
6743
|
+
return targetMatchers.get(matcher);
|
|
6744
|
+
};
|
|
6745
|
+
|
|
6746
|
+
/**
|
|
6747
|
+
* Sets an observed attribute value
|
|
6748
|
+
* @param {HTMLElement} host - The host element
|
|
6749
|
+
* @param {HTMLElement} target - The target element
|
|
6750
|
+
* @param {Function} matcher - The matcher function
|
|
6751
|
+
* @param {string} key - The attribute name
|
|
6752
|
+
* @param {string} value - The attribute value
|
|
6753
|
+
* @private
|
|
6754
|
+
*/
|
|
6755
|
+
const _setObservedAttribute = (host, target, matcher, key, value) => {
|
|
6756
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6757
|
+
if (matcherConfig) {
|
|
6758
|
+
matcherConfig.currentAttributes.set(key, value);
|
|
6464
6759
|
}
|
|
6760
|
+
};
|
|
6761
|
+
|
|
6762
|
+
const _getObservedAttribute = (host, target, matcher, attr) => {
|
|
6763
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6764
|
+
if (matcherConfig) return matcherConfig.currentAttributes.get(attr);
|
|
6765
|
+
return undefined;
|
|
6766
|
+
};
|
|
6767
|
+
|
|
6768
|
+
const _getObservedAttributes = (host, target, matcher) => {
|
|
6769
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6770
|
+
if (matcherConfig) return Array.from(matcherConfig.currentAttributes.entries());
|
|
6771
|
+
return [];
|
|
6772
|
+
};
|
|
6773
|
+
|
|
6774
|
+
const _matchers = {
|
|
6775
|
+
'aria-': attr => attr.startsWith('aria-'),
|
|
6776
|
+
'role': attr => attr.match(/^role$/)
|
|
6777
|
+
};
|
|
6778
|
+
|
|
6779
|
+
const transportAllA11yAttributes = ({ host, target, removeOriginal = true }) => {
|
|
6780
|
+
return transportAttributes({
|
|
6781
|
+
host,
|
|
6782
|
+
target,
|
|
6783
|
+
match: attr => {
|
|
6784
|
+
for (const key in _matchers) {
|
|
6785
|
+
if (_matchers[key](attr)) return true;
|
|
6786
|
+
}
|
|
6787
|
+
return false;
|
|
6788
|
+
},
|
|
6789
|
+
removeOriginal
|
|
6790
|
+
});
|
|
6791
|
+
};
|
|
6792
|
+
|
|
6793
|
+
class AuroElement extends LitElement {
|
|
6794
|
+
|
|
6795
|
+
/**
|
|
6796
|
+
* @type {Object} return object from transportAttributes via a11yUtilities
|
|
6797
|
+
* @property {Function} cleanup - Function to clean up the attribute watcher.
|
|
6798
|
+
* @property {Function} getCurrentAttributes - Function to get the current attributes being watched and their values.
|
|
6799
|
+
* @property {Function} getObservedAttribute - Function to get the value of a specific observed attribute by name.
|
|
6800
|
+
* @private
|
|
6801
|
+
*/
|
|
6802
|
+
attributeWatcher;
|
|
6465
6803
|
|
|
6466
|
-
// function to define props used within the scope of this component
|
|
6467
6804
|
static get properties() {
|
|
6468
6805
|
return {
|
|
6469
6806
|
|
|
6470
6807
|
/**
|
|
6471
|
-
*
|
|
6808
|
+
* Defines the layout of an element.
|
|
6809
|
+
* @default {'default'}
|
|
6472
6810
|
*/
|
|
6473
|
-
|
|
6474
|
-
type:
|
|
6811
|
+
layout: {
|
|
6812
|
+
type: String,
|
|
6813
|
+
attribute: "layout",
|
|
6475
6814
|
reflect: true
|
|
6476
6815
|
},
|
|
6477
|
-
|
|
6816
|
+
|
|
6478
6817
|
/**
|
|
6479
|
-
*
|
|
6818
|
+
* Defines the shape of an element.
|
|
6819
|
+
* @property {'default', 'rounded', 'pill', 'circle'}
|
|
6820
|
+
* @default {'default'}
|
|
6480
6821
|
*/
|
|
6481
|
-
|
|
6482
|
-
type:
|
|
6822
|
+
shape: {
|
|
6823
|
+
type: String,
|
|
6824
|
+
attribute: "shape",
|
|
6483
6825
|
reflect: true
|
|
6484
6826
|
},
|
|
6485
6827
|
|
|
6486
6828
|
/**
|
|
6487
|
-
*
|
|
6829
|
+
* Defines the size of an element.
|
|
6830
|
+
* @property {'xs', 'sm', 'md', 'lg', 'xl'}
|
|
6831
|
+
* @default {'md'}
|
|
6488
6832
|
*/
|
|
6489
|
-
|
|
6490
|
-
type:
|
|
6833
|
+
size: {
|
|
6834
|
+
type: String,
|
|
6835
|
+
attribute: "size",
|
|
6491
6836
|
reflect: true
|
|
6492
6837
|
},
|
|
6493
6838
|
|
|
6494
|
-
/**
|
|
6495
|
-
*
|
|
6839
|
+
/**
|
|
6840
|
+
* This Boolean attribute lets you specify that the element should be rendered in dark mode.
|
|
6841
|
+
* @default {false}
|
|
6496
6842
|
*/
|
|
6497
|
-
|
|
6843
|
+
onDark: {
|
|
6498
6844
|
type: Boolean,
|
|
6845
|
+
attribute: "ondark",
|
|
6499
6846
|
reflect: true
|
|
6847
|
+
},
|
|
6848
|
+
|
|
6849
|
+
/**
|
|
6850
|
+
* A reference to the wrapper element in the shadow DOM.
|
|
6851
|
+
* This is used to apply layout and shape classes dynamically.
|
|
6852
|
+
* @type {HTMLElement|null}
|
|
6853
|
+
* @default {null}
|
|
6854
|
+
* @private
|
|
6855
|
+
*/
|
|
6856
|
+
wrapper: {
|
|
6857
|
+
attribute: false,
|
|
6858
|
+
reflect: false
|
|
6500
6859
|
}
|
|
6501
6860
|
};
|
|
6502
6861
|
}
|
|
6503
6862
|
|
|
6504
|
-
|
|
6505
|
-
return [
|
|
6506
|
-
css`${styleCss$1}`,
|
|
6507
|
-
css`${colorCss$1}`,
|
|
6508
|
-
css`${tokensCss$1}`
|
|
6509
|
-
];
|
|
6510
|
-
}
|
|
6863
|
+
|
|
6511
6864
|
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
* @param {string} [name="auro-loader"] - The name of element that you want to register to.
|
|
6515
|
-
*
|
|
6516
|
-
* @example
|
|
6517
|
-
* AuroLoader.register("custom-loader") // this will register this element to <custom-loader/>
|
|
6518
|
-
*
|
|
6519
|
-
*/
|
|
6520
|
-
static register(name = "auro-loader") {
|
|
6521
|
-
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroLoader);
|
|
6522
|
-
}
|
|
6865
|
+
resetShapeClasses() {
|
|
6866
|
+
if (this.shape && this.size) {
|
|
6523
6867
|
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6868
|
+
if (this.wrapper) {
|
|
6869
|
+
this.wrapper.classList.forEach((className) => {
|
|
6870
|
+
if (className.startsWith('shape-')) {
|
|
6871
|
+
this.wrapper.classList.remove(className);
|
|
6872
|
+
}
|
|
6873
|
+
});
|
|
6874
|
+
|
|
6875
|
+
this.wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
6876
|
+
}
|
|
6877
|
+
}
|
|
6527
6878
|
}
|
|
6528
6879
|
|
|
6529
|
-
|
|
6880
|
+
resetLayoutClasses() {
|
|
6881
|
+
if (this.layout) {
|
|
6882
|
+
if (this.wrapper) {
|
|
6883
|
+
this.wrapper.classList.forEach((className) => {
|
|
6884
|
+
if (className.startsWith('layout-')) {
|
|
6885
|
+
this.wrapper.classList.remove(className);
|
|
6886
|
+
}
|
|
6887
|
+
});
|
|
6888
|
+
|
|
6889
|
+
this.wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
6890
|
+
}
|
|
6891
|
+
}
|
|
6892
|
+
}
|
|
6893
|
+
|
|
6894
|
+
updateComponentArchitecture() {
|
|
6895
|
+
this.resetLayoutClasses();
|
|
6896
|
+
this.resetShapeClasses();
|
|
6897
|
+
}
|
|
6898
|
+
|
|
6899
|
+
updated(changedProperties) {
|
|
6900
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
6901
|
+
this.updateComponentArchitecture();
|
|
6902
|
+
}
|
|
6903
|
+
}
|
|
6904
|
+
|
|
6905
|
+
firstUpdated() {
|
|
6906
|
+
super.firstUpdated();
|
|
6907
|
+
|
|
6908
|
+
// Set a reference to the wrapper element in the shadow DOM
|
|
6909
|
+
this.wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
6910
|
+
|
|
6911
|
+
// Initialize the transportation of ARIA attributes to the target element and get the disconnect function for cleanup
|
|
6912
|
+
this.attributeWatcher = transportAllA11yAttributes({ host: this, target: this.shadowRoot.querySelector('.wrapper') });
|
|
6913
|
+
}
|
|
6914
|
+
|
|
6915
|
+
disconnectedCallback() {
|
|
6916
|
+
super.disconnectedCallback();
|
|
6917
|
+
|
|
6918
|
+
// Cleanup the ARIA observer if it exists
|
|
6919
|
+
if (this.attributeWatcher) {
|
|
6920
|
+
this.attributeWatcher.cleanup();
|
|
6921
|
+
this.attributeWatcher = null;
|
|
6922
|
+
}
|
|
6923
|
+
}
|
|
6924
|
+
|
|
6925
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
6926
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
6927
|
+
render() {
|
|
6928
|
+
try {
|
|
6929
|
+
return this.renderLayout();
|
|
6930
|
+
} catch (error) {
|
|
6931
|
+
// failed to get the defined layout
|
|
6932
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
6933
|
+
|
|
6934
|
+
// fallback to the default layout
|
|
6935
|
+
return this.getLayout('default');
|
|
6936
|
+
}
|
|
6937
|
+
}
|
|
6938
|
+
}
|
|
6939
|
+
|
|
6940
|
+
var styleCss$2 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.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.63)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.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, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.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, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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-xl{font-family:var(--wcss-accent-xl-family, "Good OT", 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", 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-md{font-family:var(--wcss-accent-md-family, "Good OT", 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", 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-xs{font-family:var(--wcss-accent-xs-family, "Good OT", 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", 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)}.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([size=xs][shape=rounded]) ::slotted(auro-icon),:host([size=xs][shape=rounded]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-200, 1rem)}:host([size=xs][shape=rounded][variant=primary]) .auro-button:focus,:host([size=xs][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=rounded][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xs][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=xs][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=xs][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill]) ::slotted(auro-icon),:host([size=xs][shape=pill]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-200, 1rem)}:host([size=xs][shape=pill][variant=primary]) .auro-button:focus,:host([size=xs][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=pill][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xs][shape=pill][variant=secondary]) .auro-button:focus,:host([size=xs][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill][variant=ghost]) .auro-button:focus,:host([size=xs][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-left]) ::slotted(auro-icon),:host([size=xs][shape=pill-left]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-200, 1rem)}:host([size=xs][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=xs][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xs][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=xs][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=xs][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-right]) ::slotted(auro-icon),:host([size=xs][shape=pill-right]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-200, 1rem)}:host([size=xs][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=xs][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xs][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=xs][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=xs][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle]) ::slotted(auro-icon),:host([size=xs][shape=circle]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xs][shape=circle][variant=primary]) .auro-button:focus,:host([size=xs][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=circle][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xs][shape=circle][variant=secondary]) .auro-button:focus,:host([size=xs][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle][variant=flat]) .auro-button:focus,:host([size=xs][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=circle][variant=ghost]) .auro-button:focus,:host([size=xs][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square]) ::slotted(auro-icon),:host([size=xs][shape=square]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xs][shape=square][variant=primary]) .auro-button:focus,:host([size=xs][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square][variant=primary]) .auro-button:focus:after,:host([size=xs][shape=square][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xs][shape=square][variant=secondary]) .auro-button:focus,:host([size=xs][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square][variant=tertiary]) .auro-button:focus,:host([size=xs][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 2px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square][variant=flat]) .auro-button:focus,:host([size=xs][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs][shape=square][variant=ghost]) .auro-button:focus,:host([size=xs][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=rounded]) ::slotted(auro-icon),:host([size=sm][shape=rounded]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=rounded][variant=primary]) .auro-button:focus,:host([size=sm][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=rounded][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=sm][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=sm][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=sm][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill]) ::slotted(auro-icon),:host([size=sm][shape=pill]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=pill][variant=primary]) .auro-button:focus,:host([size=sm][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=pill][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=sm][shape=pill][variant=secondary]) .auro-button:focus,:host([size=sm][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill][variant=ghost]) .auro-button:focus,:host([size=sm][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-left]) ::slotted(auro-icon),:host([size=sm][shape=pill-left]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=sm][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=sm][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=sm][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=sm][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-right]) ::slotted(auro-icon),:host([size=sm][shape=pill-right]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=sm][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=sm][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=sm][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=sm][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle]) ::slotted(auro-icon),:host([size=sm][shape=circle]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=circle][variant=primary]) .auro-button:focus,:host([size=sm][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=circle][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=sm][shape=circle][variant=secondary]) .auro-button:focus,:host([size=sm][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle][variant=flat]) .auro-button:focus,:host([size=sm][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=circle][variant=ghost]) .auro-button:focus,:host([size=sm][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square]) ::slotted(auro-icon),:host([size=sm][shape=square]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=sm][shape=square][variant=primary]) .auro-button:focus,:host([size=sm][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square][variant=primary]) .auro-button:focus:after,:host([size=sm][shape=square][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=sm][shape=square][variant=secondary]) .auro-button:focus,:host([size=sm][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square][variant=tertiary]) .auro-button:focus,:host([size=sm][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square][variant=flat]) .auro-button:focus,:host([size=sm][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=sm][shape=square][variant=ghost]) .auro-button:focus,:host([size=sm][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=rounded]) ::slotted(auro-icon),:host([size=md][shape=rounded]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=rounded][variant=primary]) .auro-button:focus,:host([size=md][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=md][shape=rounded][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=md][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=md][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=md][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=md][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill]) ::slotted(auro-icon),:host([size=md][shape=pill]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=pill][variant=primary]) .auro-button:focus,:host([size=md][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=md][shape=pill][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=md][shape=pill][variant=secondary]) .auro-button:focus,:host([size=md][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=md][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill][variant=ghost]) .auro-button:focus,:host([size=md][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-left]) ::slotted(auro-icon),:host([size=md][shape=pill-left]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=md][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=md][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=md][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=md][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=md][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=md][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-right]) ::slotted(auro-icon),:host([size=md][shape=pill-right]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=md][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=md][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=md][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=md][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=md][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=md][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle]) ::slotted(auro-icon),:host([size=md][shape=circle]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=circle][variant=primary]) .auro-button:focus,:host([size=md][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=md][shape=circle][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=md][shape=circle][variant=secondary]) .auro-button:focus,:host([size=md][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=md][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle][variant=flat]) .auro-button:focus,:host([size=md][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=circle][variant=ghost]) .auro-button:focus,:host([size=md][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square]) ::slotted(auro-icon),:host([size=md][shape=square]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=md][shape=square][variant=primary]) .auro-button:focus,:host([size=md][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square][variant=primary]) .auro-button:focus:after,:host([size=md][shape=square][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=md][shape=square][variant=secondary]) .auro-button:focus,:host([size=md][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square][variant=tertiary]) .auro-button:focus,:host([size=md][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square][variant=flat]) .auro-button:focus,:host([size=md][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=md][shape=square][variant=ghost]) .auro-button:focus,:host([size=md][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=rounded]) ::slotted(auro-icon),:host([size=lg][shape=rounded]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=lg][shape=rounded][variant=primary]) .auro-button:focus,:host([size=lg][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=rounded][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=lg][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=lg][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=lg][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill]) ::slotted(auro-icon),:host([size=lg][shape=pill]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=lg][shape=pill][variant=primary]) .auro-button:focus,:host([size=lg][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=pill][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=lg][shape=pill][variant=secondary]) .auro-button:focus,:host([size=lg][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill][variant=ghost]) .auro-button:focus,:host([size=lg][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-left]) ::slotted(auro-icon),:host([size=lg][shape=pill-left]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=lg][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=lg][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=lg][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=lg][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=lg][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-right]) ::slotted(auro-icon),:host([size=lg][shape=pill-right]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=lg][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=lg][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=lg][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=lg][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=lg][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle]) ::slotted(auro-icon),:host([size=lg][shape=circle]) ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}:host([size=lg][shape=circle][variant=primary]) .auro-button:focus,:host([size=lg][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4.33px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=circle][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=lg][shape=circle][variant=secondary]) .auro-button:focus,:host([size=lg][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle][variant=flat]) .auro-button:focus,:host([size=lg][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=circle][variant=ghost]) .auro-button:focus,:host([size=lg][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square]) ::slotted(auro-icon),:host([size=lg][shape=square]) ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}:host([size=lg][shape=square][variant=primary]) .auro-button:focus,:host([size=lg][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4.33px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square][variant=primary]) .auro-button:focus:after,:host([size=lg][shape=square][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=lg][shape=square][variant=secondary]) .auro-button:focus,:host([size=lg][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square][variant=tertiary]) .auro-button:focus,:host([size=lg][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square][variant=flat]) .auro-button:focus,:host([size=lg][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=lg][shape=square][variant=ghost]) .auro-button:focus,:host([size=lg][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=rounded]) ::slotted(auro-icon),:host([size=xl][shape=rounded]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xl][shape=rounded][variant=primary]) .auro-button:focus,:host([size=xl][shape=rounded][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=rounded][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=rounded][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xl][shape=rounded][variant=secondary]) .auro-button:focus,:host([size=xl][shape=rounded][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=rounded][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=rounded][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=rounded][variant=ghost]) .auro-button:focus,:host([size=xl][shape=rounded][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill]) ::slotted(auro-icon),:host([size=xl][shape=pill]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xl][shape=pill][variant=primary]) .auro-button:focus,:host([size=xl][shape=pill][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=pill][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xl][shape=pill][variant=secondary]) .auro-button:focus,:host([size=xl][shape=pill][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=pill][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill][variant=ghost]) .auro-button:focus,:host([size=xl][shape=pill][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-left]) ::slotted(auro-icon),:host([size=xl][shape=pill-left]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xl][shape=pill-left][variant=primary]) .auro-button:focus,:host([size=xl][shape=pill-left][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-left][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=pill-left][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xl][shape=pill-left][variant=secondary]) .auro-button:focus,:host([size=xl][shape=pill-left][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-left][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=pill-left][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-left][variant=ghost]) .auro-button:focus,:host([size=xl][shape=pill-left][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-right]) ::slotted(auro-icon),:host([size=xl][shape=pill-right]) ::slotted([auro-icon]){--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([size=xl][shape=pill-right][variant=primary]) .auro-button:focus,:host([size=xl][shape=pill-right][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-right][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=pill-right][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xl][shape=pill-right][variant=secondary]) .auro-button:focus,:host([size=xl][shape=pill-right][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-right][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=pill-right][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=pill-right][variant=ghost]) .auro-button:focus,:host([size=xl][shape=pill-right][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle]) ::slotted(auro-icon),:host([size=xl][shape=circle]) ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem))}:host([size=xl][shape=circle][variant=primary]) .auro-button:focus,:host([size=xl][shape=circle][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=circle][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xl][shape=circle][variant=secondary]) .auro-button:focus,:host([size=xl][shape=circle][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=circle][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle][variant=flat]) .auro-button:focus,:host([size=xl][shape=circle][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=circle][variant=ghost]) .auro-button:focus,:host([size=xl][shape=circle][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square]) ::slotted(auro-icon),:host([size=xl][shape=square]) ::slotted([auro-icon]){--ds-auro-icon-size: calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem))}:host([size=xl][shape=square][variant=primary]) .auro-button:focus,:host([size=xl][shape=square][variant=primary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 5px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square][variant=primary]) .auro-button:focus:after,:host([size=xl][shape=square][variant=primary]) .auro-button:focus-visible:after{content:"";position:absolute;border-radius:inherit;box-sizing:content-box;top:0;left:0;width:calc(100% - 2px);height:calc(100% - 2px);border:1px solid var(--ds-auro-button-border-color)}:host([size=xl][shape=square][variant=secondary]) .auro-button:focus,:host([size=xl][shape=square][variant=secondary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 3px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square][variant=tertiary]) .auro-button:focus,:host([size=xl][shape=square][variant=tertiary]) .auro-button:focus-visible{box-shadow:inset 0 0 0 4px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square][variant=flat]) .auro-button:focus,:host([size=xl][shape=square][variant=flat]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xl][shape=square][variant=ghost]) .auro-button:focus,:host([size=xl][shape=square][variant=ghost]) .auro-button:focus-visible{box-shadow:inset 0 0 0 1px var(--ds-auro-button-border-inset-color)}:host([size=xs]) .inset{padding-inline:var(--ds-size-150, 0.75rem)}:host([fluid]){display:block}:host([fluid]) .auro-button{width:calc(100% - var(--ds-size-150, 0.75rem)*2)}:host([size=sm]) .inset{padding-inline:var(--ds-size-200, 1rem)}:host([fluid]){display:block}:host([fluid]) .auro-button{width:calc(100% - var(--ds-size-200, 1rem)*2)}:host([size=md]) .inset{padding-inline:var(--ds-size-300, 1.5rem)}:host([fluid]){display:block}:host([fluid]) .auro-button{width:calc(100% - var(--ds-size-300, 1.5rem)*2)}:host([size=lg]) .inset{padding-inline:var(--ds-size-400, 2rem)}:host([fluid]){display:block}:host([fluid]) .auro-button{width:calc(100% - var(--ds-size-400, 2rem)*2)}:host([size=xl]) .inset{padding-inline:var(--ds-size-500, 2.5rem)}:host([fluid]){display:block}:host([fluid]) .auro-button{width:calc(100% - var(--ds-size-500, 2.5rem)*2)}:host([shape=circle]) ::slotted(:not(auro-icon):not([auro-icon])){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host([shape=square]) ::slotted(:not(auro-icon):not([auro-icon])){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host([variant=flat]){display:inline-block}::slotted(svg){vertical-align:middle}slot{pointer-events:none}:host{display:inline-block;overflow:hidden}.auro-button{position:relative;cursor:pointer;padding:0 var(--ds-size-300, 1.5rem);padding-inline:unset;padding-block:unset;box-sizing:content-box;overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;outline:none;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none;transition:padding 300ms ease-out}.auro-button:focus,.auro-button:focus-visible{outline:none}.auro-button:active{transform:scale(0.95)}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}`;
|
|
6941
|
+
|
|
6942
|
+
var colorCss$2 = css`[auro-loader]{color:var(--ds-auro-button-loader-color, #ffffff)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible{outline-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border-hover, #00274a)}.auro-button:not([ondark]):disabled{--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border-disabled, #acc9e2)}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color: var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-container-image: var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-border-color: var(--ds-advanced-color-button-secondary-border, #01426a);--ds-auro-button-text-color: var(--ds-advanced-color-button-secondary-text, #01426a);--ds-auro-button-loader-color: var(--ds-advanced-color-button-secondary-text, #01426a)}.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-container-image: var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-border-color: var(--ds-advanced-color-button-secondary-border-hover, #00274a);--ds-auro-button-text-color: var(--ds-advanced-color-button-secondary-text-hover, #00274a)}.auro-button:not([ondark])[variant=secondary]:focus,.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color: var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-container-image: var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-border-color: var(--ds-advanced-color-button-secondary-border-disabled, #cfe0ef);--ds-auro-button-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color: var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image: var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-button-loader-color: var(--ds-advanced-color-button-tertiary-text, #01426a)}.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-container-image: var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-border-color: transparent}.auro-button:not([ondark])[variant=tertiary]:focus,.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=ghost]{--ds-auro-button-container-color: transparent;--ds-auro-button-container-image: transparent;--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-advanced-color-button-ghost-text, #01426a);--ds-auro-button-loader-color: var(--ds-advanced-color-button-ghost-text, #01426a)}.auro-button:not([ondark])[variant=ghost]:active:not(:disabled),.auro-button:not([ondark])[variant=ghost]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-advanced-color-button-ghost-background-hover, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image: var(--ds-advanced-color-button-ghost-background-hover, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color: transparent}.auro-button:not([ondark])[variant=ghost]:focus,.auro-button:not([ondark])[variant=ghost]:focus-visible{border-color:transparent;--ds-auro-button-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=ghost]:disabled{--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-advanced-color-button-flat-text, #676767);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-hover, #525252);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-disabled, #d0d0d0);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:focus,.auro-button:not([ondark])[variant=flat]:focus-visible{--ds-auro-button-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]{--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-text-color: var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-loader-color: var(--ds-advanced-color-button-primary-text-inverse, #01426a)}.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border-inverse-hover, #ebf3f9);--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9);--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9)}.auro-button[ondark]:focus,.auro-button[ondark]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]:disabled{--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color: transparent;--ds-auro-button-container-image: transparent;--ds-auro-button-border-color: var(--ds-advanced-color-button-secondary-border-inverse, #ffffff);--ds-auro-button-text-color: var(--ds-advanced-color-button-secondary-text-inverse, #ffffff);--ds-auro-button-loader-color: var(--ds-advanced-color-button-secondary-text-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:active:not(:disabled),.auro-button[ondark][variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image: var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=secondary]:focus,.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-button-border-color: var(--ds-advanced-color-button-secondary-border-inverse-disabled, #dddddd)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color: var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image: var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-button-loader-color: var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image: var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=tertiary]:focus,.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=ghost]{--ds-auro-button-container-color: transparent;--ds-auro-button-container-image: transparent;--ds-auro-button-border-color: transparent;--ds-auro-button-text-color: var(--ds-advanced-color-button-ghost-text-inverse, #ffffff);--ds-auro-button-loader-color: var(--ds-advanced-color-button-ghost-text-inverse, #ffffff)}.auro-button[ondark][variant=ghost]:active:not(:disabled),.auro-button[ondark][variant=ghost]:hover:not(:disabled){--ds-auro-button-container-color: var(--ds-advanced-color-button-ghost-background-inverse-hover, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image: var(--ds-advanced-color-button-ghost-background-inverse-hover, rgba(255, 255, 255, 0.05));--ds-auro-button-border-color: transparent}.auro-button[ondark][variant=ghost]:focus,.auro-button[ondark][variant=ghost]:focus-visible{border-color:transparent;--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=ghost]:disabled{--ds-auro-button-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=flat]{color:var(--ds-advanced-color-button-flat-text-inverse, #ffffff);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-inverse-hover, #adadad);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-inverse-disabled, #7e8894);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:focus,.auro-button[ondark][variant=flat]:focus-visible{--ds-auro-button-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}`;
|
|
6943
|
+
|
|
6944
|
+
var tokensCss$2 = css`:host(:not([onDark])){--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border, #01426a);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-loader-color: var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-text-color: var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-tap-color: transparent}:host([onDark]){--ds-auro-button-border-color: var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-border-inset-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color: var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image: var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-loader-color: var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-text-color: var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-tap-color: transparent}`;
|
|
6945
|
+
|
|
6946
|
+
var shapeSize = css`.shape-rounded-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;border-radius:6px}.shape-rounded-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-rounded-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-rounded-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;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;overflow:hidden;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;overflow:hidden;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-circle-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;border-radius:50%;min-width:72px;max-width:72px;padding:0}.shape-circle-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-circle-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-circle-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-square-xl{min-height:68px;max-height:68px;border-style:solid;overflow:hidden;border-radius:6px;min-width:72px;max-width:72px;padding:0}.shape-square-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-square-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-square-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;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-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:28px}.shape-pill-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-pill-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-left-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:28px 0 0 28px}.shape-pill-left-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-pill-left-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-left-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-right-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:0 28px 28px 0}.shape-pill-right-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-pill-right-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-right-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-circle-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:50%;min-width:56px;max-width:56px;padding:0}.shape-circle-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-circle-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-circle-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-square-lg{min-height:52px;max-height:52px;border-style:solid;overflow:hidden;border-radius:6px;min-width:56px;max-width:56px;padding:0}.shape-square-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-square-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-square-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-rounded-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:6px}.shape-rounded-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-rounded-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-rounded-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:24px}.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;overflow:hidden;border-radius:24px 0 0 24px}.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;overflow:hidden;border-radius:0 24px 24px 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}.shape-circle-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:50%;min-width:48px;max-width:48px;padding:0}.shape-circle-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-circle-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-circle-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-square-md{min-height:44px;max-height:44px;border-style:solid;overflow:hidden;border-radius:6px;min-width:48px;max-width:48px;padding:0}.shape-square-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-square-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-square-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-rounded-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:6px}.shape-rounded-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-rounded-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-rounded-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-pill-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:18px}.shape-pill-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-pill-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-pill-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-pill-left-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:18px 0 0 18px}.shape-pill-left-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-pill-left-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-pill-left-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-pill-right-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:0 18px 18px 0}.shape-pill-right-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-pill-right-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-pill-right-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-circle-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:50%;min-width:36px;max-width:36px;padding:0}.shape-circle-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-circle-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-circle-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-square-sm{min-height:32px;max-height:32px;border-style:solid;overflow:hidden;border-radius:6px;min-width:36px;max-width:36px;padding:0}.shape-square-sm.simple{border-width:0px;min-height:36px;max-height:36px;background-color:unset;box-shadow:none}.shape-square-sm.thin{border-width:1px;min-height:34px;max-height:34px;background-color:unset}.shape-square-sm.parentBorder{border:0;box-shadow:unset;min-height:32px;max-height:32px}.shape-rounded-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:4px}.shape-rounded-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-rounded-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-rounded-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-pill-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:12px}.shape-pill-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-pill-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-pill-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-pill-left-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:12px 0 0 12px}.shape-pill-left-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-pill-left-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-pill-left-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-pill-right-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:0 12px 12px 0}.shape-pill-right-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-pill-right-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-pill-right-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-circle-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:50%;min-width:24px;max-width:24px;padding:0}.shape-circle-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-circle-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-circle-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}.shape-square-xs{min-height:20px;max-height:20px;border-style:solid;overflow:hidden;border-radius:6px;min-width:24px;max-width:24px;padding:0}.shape-square-xs.simple{border-width:0px;min-height:24px;max-height:24px;background-color:unset;box-shadow:none}.shape-square-xs.thin{border-width:1px;min-height:22px;max-height:22px;background-color:unset}.shape-square-xs.parentBorder{border:0;box-shadow:unset;min-height:20px;max-height:20px}`;
|
|
6947
|
+
|
|
6948
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6949
|
+
// See LICENSE in the project root for license information.
|
|
6950
|
+
|
|
6951
|
+
// ---------------------------------------------------------------------
|
|
6952
|
+
|
|
6953
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6954
|
+
|
|
6955
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
6956
|
+
|
|
6957
|
+
/* eslint-disable jsdoc/require-param */
|
|
6958
|
+
|
|
6959
|
+
/**
|
|
6960
|
+
* This will register a new custom element with the browser.
|
|
6961
|
+
* @param {String} name - The name of the custom element.
|
|
6962
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
6963
|
+
* @returns {void}
|
|
6964
|
+
*/
|
|
6965
|
+
registerComponent(name, componentClass) {
|
|
6966
|
+
if (!customElements.get(name)) {
|
|
6967
|
+
customElements.define(name, class extends componentClass {});
|
|
6968
|
+
}
|
|
6969
|
+
}
|
|
6970
|
+
|
|
6971
|
+
/**
|
|
6972
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
6973
|
+
* @returns {void}
|
|
6974
|
+
*/
|
|
6975
|
+
closestElement(
|
|
6976
|
+
selector, // selector like in .closest()
|
|
6977
|
+
base = this, // extra functionality to skip a parent
|
|
6978
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
6979
|
+
!el || el === document || el === window
|
|
6980
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
6981
|
+
: found
|
|
6982
|
+
? found // found a selector INside this element
|
|
6983
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
6984
|
+
) {
|
|
6985
|
+
return __Closest(base);
|
|
6986
|
+
}
|
|
6987
|
+
/* eslint-enable jsdoc/require-param */
|
|
6988
|
+
|
|
6989
|
+
/**
|
|
6990
|
+
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
6991
|
+
* @param {Object} elem - The element to check.
|
|
6992
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
6993
|
+
* @returns {void}
|
|
6994
|
+
*/
|
|
6995
|
+
handleComponentTagRename(elem, tagName) {
|
|
6996
|
+
const tag = tagName.toLowerCase();
|
|
6997
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
6998
|
+
|
|
6999
|
+
if (elemTag !== tag) {
|
|
7000
|
+
elem.setAttribute(tag, true);
|
|
7001
|
+
}
|
|
7002
|
+
}
|
|
7003
|
+
|
|
7004
|
+
/**
|
|
7005
|
+
* Validates if an element is a specific Auro component.
|
|
7006
|
+
* @param {Object} elem - The element to validate.
|
|
7007
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
7008
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
7009
|
+
*/
|
|
7010
|
+
elementMatch(elem, tagName) {
|
|
7011
|
+
const tag = tagName.toLowerCase();
|
|
7012
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
7013
|
+
|
|
7014
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
7015
|
+
}
|
|
7016
|
+
};
|
|
7017
|
+
|
|
7018
|
+
var styleCss$1 = css`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.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.63)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.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, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.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, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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-xl{font-family:var(--wcss-accent-xl-family, "Good OT", 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", 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-md{font-family:var(--wcss-accent-md-family, "Good OT", 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", 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-xs{font-family:var(--wcss-accent-xs-family, "Good OT", 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", 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)}: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}: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:0.375rem;--margin-xs:0.2rem;--margin-sm:0.5rem;--margin-md:0.75rem;--margin-lg:1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.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(0deg)}100%{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{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{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%}100%{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}}`;
|
|
7019
|
+
|
|
7020
|
+
var colorCss$1 = css`: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]){--ds-auro-loader-color:var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]){--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}`;
|
|
7021
|
+
|
|
7022
|
+
var tokensCss$1 = css`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
7023
|
+
|
|
7024
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7025
|
+
// See LICENSE in the project root for license information.
|
|
7026
|
+
|
|
7027
|
+
|
|
7028
|
+
class AuroLoader extends LitElement {
|
|
7029
|
+
constructor() {
|
|
7030
|
+
super();
|
|
7031
|
+
|
|
7032
|
+
/**
|
|
7033
|
+
* @private
|
|
7034
|
+
*/
|
|
7035
|
+
this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
7036
|
+
|
|
7037
|
+
/**
|
|
7038
|
+
* @private
|
|
7039
|
+
*/
|
|
7040
|
+
this.mdCount = 3;
|
|
7041
|
+
|
|
7042
|
+
/**
|
|
7043
|
+
* @private
|
|
7044
|
+
*/
|
|
7045
|
+
this.smCount = 2;
|
|
7046
|
+
|
|
7047
|
+
/**
|
|
7048
|
+
* @private
|
|
7049
|
+
*/
|
|
7050
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
7051
|
+
|
|
7052
|
+
this.orbit = false;
|
|
7053
|
+
this.ringworm = false;
|
|
7054
|
+
this.laser = false;
|
|
7055
|
+
this.pulse = false;
|
|
7056
|
+
}
|
|
7057
|
+
|
|
7058
|
+
// function to define props used within the scope of this component
|
|
7059
|
+
static get properties() {
|
|
7060
|
+
return {
|
|
7061
|
+
|
|
7062
|
+
/**
|
|
7063
|
+
* Sets loader to laser type.
|
|
7064
|
+
*/
|
|
7065
|
+
laser: {
|
|
7066
|
+
type: Boolean,
|
|
7067
|
+
reflect: true
|
|
7068
|
+
},
|
|
7069
|
+
|
|
7070
|
+
/**
|
|
7071
|
+
* Sets loader to orbit type.
|
|
7072
|
+
*/
|
|
7073
|
+
orbit: {
|
|
7074
|
+
type: Boolean,
|
|
7075
|
+
reflect: true
|
|
7076
|
+
},
|
|
7077
|
+
|
|
7078
|
+
/**
|
|
7079
|
+
* Sets loader to pulse type.
|
|
7080
|
+
*/
|
|
7081
|
+
pulse: {
|
|
7082
|
+
type: Boolean,
|
|
7083
|
+
reflect: true
|
|
7084
|
+
},
|
|
7085
|
+
|
|
7086
|
+
/**
|
|
7087
|
+
* Sets loader to ringworm type.
|
|
7088
|
+
*/
|
|
7089
|
+
ringworm: {
|
|
7090
|
+
type: Boolean,
|
|
7091
|
+
reflect: true
|
|
7092
|
+
}
|
|
7093
|
+
};
|
|
7094
|
+
}
|
|
7095
|
+
|
|
7096
|
+
static get styles() {
|
|
7097
|
+
return [
|
|
7098
|
+
css`${styleCss$1}`,
|
|
7099
|
+
css`${colorCss$1}`,
|
|
7100
|
+
css`${tokensCss$1}`
|
|
7101
|
+
];
|
|
7102
|
+
}
|
|
7103
|
+
|
|
7104
|
+
/**
|
|
7105
|
+
* This will register this element with the browser.
|
|
7106
|
+
* @param {string} [name="auro-loader"] - The name of element that you want to register to.
|
|
7107
|
+
*
|
|
7108
|
+
* @example
|
|
7109
|
+
* AuroLoader.register("custom-loader") // this will register this element to <custom-loader/>
|
|
7110
|
+
*
|
|
7111
|
+
*/
|
|
7112
|
+
static register(name = "auro-loader") {
|
|
7113
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroLoader);
|
|
7114
|
+
}
|
|
7115
|
+
|
|
7116
|
+
firstUpdated() {
|
|
7117
|
+
// Add the tag name as an attribute if it is different than the component name
|
|
7118
|
+
this.runtimeUtils.handleComponentTagRename(this, 'auro-loader');
|
|
7119
|
+
}
|
|
7120
|
+
|
|
7121
|
+
connectedCallback() {
|
|
6530
7122
|
super.connectedCallback();
|
|
6531
7123
|
}
|
|
6532
7124
|
|
|
@@ -6556,7 +7148,7 @@ class AuroLoader extends LitElement {
|
|
|
6556
7148
|
<span part="element" class="loader node-${idx}"></span>
|
|
6557
7149
|
`)}
|
|
6558
7150
|
|
|
6559
|
-
<div class="no-animation">Loading...</div>
|
|
7151
|
+
<div class="no-animation body-default">Loading...</div>
|
|
6560
7152
|
|
|
6561
7153
|
${this.ringworm ? html`
|
|
6562
7154
|
<svg part="element" class="circular" viewBox="25 25 50 50">
|
|
@@ -6568,25 +7160,32 @@ class AuroLoader extends LitElement {
|
|
|
6568
7160
|
}
|
|
6569
7161
|
}
|
|
6570
7162
|
|
|
6571
|
-
var loaderVersion = '5.
|
|
7163
|
+
var loaderVersion = '5.1.0';
|
|
6572
7164
|
|
|
6573
|
-
/* eslint-disable max-lines */
|
|
6574
7165
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6575
7166
|
// See LICENSE in the project root for license information.
|
|
6576
7167
|
|
|
6577
7168
|
|
|
6578
7169
|
/**
|
|
6579
7170
|
* @slot - Default slot for the text of the button.
|
|
6580
|
-
* @slot icon - Slot to provide auro-icon for the button.
|
|
6581
7171
|
* @csspart button - Apply CSS to HTML5 button.
|
|
6582
7172
|
* @csspart loader - Apply CSS to auro-loader.
|
|
6583
7173
|
* @csspart text - Apply CSS to text slot.
|
|
6584
7174
|
* @csspart icon - Apply CSS to icon slot.
|
|
6585
7175
|
*/
|
|
6586
7176
|
|
|
6587
|
-
|
|
7177
|
+
const ICON_ONLY_SHAPES = ['circle', 'square'];
|
|
6588
7178
|
|
|
6589
|
-
|
|
7179
|
+
/**
|
|
7180
|
+
* AuroButton is a custom element that provides a styled, accessible button with support for various states and form association.
|
|
7181
|
+
* It is designed to be flexible, supporting loading states, icon slots, and integration with HTML5 forms.
|
|
7182
|
+
* @property {'default', 'rounded', 'pill', 'circle', 'square'} shape - Defines the shape of the button.
|
|
7183
|
+
* @property {'xs', 'sm', 'md', 'lg', 'xl'} size - Defines the size of the button.
|
|
7184
|
+
* @property {'primary', 'secondary', 'tertiary', 'ghost', 'flat'} variant - Sets the button variant.
|
|
7185
|
+
* @property {'submit', 'reset', 'button'} type - The type of button. Matches HTML5 Button Spec.
|
|
7186
|
+
* @property {boolean} onDark - Indicates if the button is rendered in dark mode.
|
|
7187
|
+
*/
|
|
7188
|
+
class AuroButton extends AuroElement {
|
|
6590
7189
|
|
|
6591
7190
|
/**
|
|
6592
7191
|
* Enables form association for this element.
|
|
@@ -6601,15 +7200,13 @@ class AuroButton extends LitElement {
|
|
|
6601
7200
|
super();
|
|
6602
7201
|
this.autofocus = false;
|
|
6603
7202
|
this.disabled = false;
|
|
6604
|
-
this.iconOnly = false;
|
|
6605
7203
|
this.loading = false;
|
|
7204
|
+
this.size = "md";
|
|
7205
|
+
this.shape = "rounded";
|
|
6606
7206
|
this.onDark = false;
|
|
6607
|
-
this.secondary = false;
|
|
6608
|
-
this.tertiary = false;
|
|
6609
|
-
this.rounded = false;
|
|
6610
|
-
this.slim = false;
|
|
6611
7207
|
this.fluid = false;
|
|
6612
7208
|
this.loadingText = this.loadingText || 'Loading...';
|
|
7209
|
+
this.variant = 'primary';
|
|
6613
7210
|
|
|
6614
7211
|
// Support for HTML5 forms
|
|
6615
7212
|
if (typeof this.attachInternals === 'function') {
|
|
@@ -6630,49 +7227,59 @@ class AuroButton extends LitElement {
|
|
|
6630
7227
|
* @private
|
|
6631
7228
|
*/
|
|
6632
7229
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
|
|
7230
|
+
|
|
7231
|
+
/**
|
|
7232
|
+
* @private
|
|
7233
|
+
*/
|
|
7234
|
+
this.buttonHref = undefined;
|
|
7235
|
+
|
|
7236
|
+
/**
|
|
7237
|
+
* @private
|
|
7238
|
+
*/
|
|
7239
|
+
this.buttonTarget = undefined;
|
|
7240
|
+
|
|
7241
|
+
/**
|
|
7242
|
+
* @private
|
|
7243
|
+
*/
|
|
7244
|
+
this.buttonRel = undefined;
|
|
6633
7245
|
}
|
|
6634
7246
|
|
|
6635
7247
|
static get styles() {
|
|
6636
7248
|
return [
|
|
6637
7249
|
tokensCss$2,
|
|
6638
7250
|
styleCss$2,
|
|
6639
|
-
colorCss$2
|
|
7251
|
+
colorCss$2,
|
|
7252
|
+
shapeSize
|
|
6640
7253
|
];
|
|
6641
7254
|
}
|
|
6642
7255
|
|
|
6643
7256
|
static get properties() {
|
|
6644
7257
|
return {
|
|
6645
7258
|
|
|
6646
|
-
|
|
6647
|
-
* This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
|
|
6648
|
-
*/
|
|
6649
|
-
autofocus: {
|
|
6650
|
-
type: Boolean,
|
|
6651
|
-
reflect: true
|
|
6652
|
-
},
|
|
7259
|
+
...super.properties,
|
|
6653
7260
|
|
|
6654
7261
|
/**
|
|
6655
|
-
*
|
|
7262
|
+
* Override layout since it isn't used in this component.
|
|
7263
|
+
* @private
|
|
6656
7264
|
*/
|
|
6657
|
-
|
|
7265
|
+
layout: {
|
|
6658
7266
|
type: Boolean,
|
|
6659
|
-
|
|
7267
|
+
attribute: false,
|
|
7268
|
+
reflect: false
|
|
6660
7269
|
},
|
|
6661
7270
|
|
|
6662
7271
|
/**
|
|
6663
|
-
*
|
|
6664
|
-
* @deprecated
|
|
7272
|
+
* This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
|
|
6665
7273
|
*/
|
|
6666
|
-
|
|
7274
|
+
autofocus: {
|
|
6667
7275
|
type: Boolean,
|
|
6668
7276
|
reflect: true
|
|
6669
7277
|
},
|
|
6670
7278
|
|
|
6671
7279
|
/**
|
|
6672
|
-
*
|
|
6673
|
-
* @deprecated
|
|
7280
|
+
* If set to true, button will become disabled and not allow for interactions.
|
|
6674
7281
|
*/
|
|
6675
|
-
|
|
7282
|
+
disabled: {
|
|
6676
7283
|
type: Boolean,
|
|
6677
7284
|
reflect: true
|
|
6678
7285
|
},
|
|
@@ -6680,15 +7287,7 @@ class AuroButton extends LitElement {
|
|
|
6680
7287
|
/**
|
|
6681
7288
|
* Alters the shape of the button to be full width of its parent container.
|
|
6682
7289
|
*/
|
|
6683
|
-
fluid:
|
|
6684
|
-
type: Boolean,
|
|
6685
|
-
reflect: true
|
|
6686
|
-
},
|
|
6687
|
-
|
|
6688
|
-
/**
|
|
6689
|
-
* If set to true, the button will contain an icon with no additional content.
|
|
6690
|
-
*/
|
|
6691
|
-
iconOnly: {
|
|
7290
|
+
fluid: {
|
|
6692
7291
|
type: Boolean,
|
|
6693
7292
|
reflect: true
|
|
6694
7293
|
},
|
|
@@ -6696,7 +7295,7 @@ class AuroButton extends LitElement {
|
|
|
6696
7295
|
/**
|
|
6697
7296
|
* If set to true button text will be replaced with `auro-loader` and become disabled.
|
|
6698
7297
|
*/
|
|
6699
|
-
loading:
|
|
7298
|
+
loading: {
|
|
6700
7299
|
type: Boolean,
|
|
6701
7300
|
reflect: true
|
|
6702
7301
|
},
|
|
@@ -6704,36 +7303,12 @@ class AuroButton extends LitElement {
|
|
|
6704
7303
|
/**
|
|
6705
7304
|
* Sets custom loading text for the `aria-label` on a button in loading state. If not set, the default value of "Loading..." will be used.
|
|
6706
7305
|
*/
|
|
6707
|
-
loadingText:
|
|
7306
|
+
loadingText: {
|
|
6708
7307
|
type: String
|
|
6709
7308
|
},
|
|
6710
7309
|
|
|
6711
7310
|
/**
|
|
6712
|
-
*
|
|
6713
|
-
*/
|
|
6714
|
-
onDark: {
|
|
6715
|
-
type: Boolean,
|
|
6716
|
-
reflect: true
|
|
6717
|
-
},
|
|
6718
|
-
|
|
6719
|
-
/**
|
|
6720
|
-
* If set to true, the button will have a rounded shape.
|
|
6721
|
-
*/
|
|
6722
|
-
rounded: {
|
|
6723
|
-
type: Boolean,
|
|
6724
|
-
reflect: true
|
|
6725
|
-
},
|
|
6726
|
-
|
|
6727
|
-
/**
|
|
6728
|
-
* Set value for slim version of auro-button.
|
|
6729
|
-
*/
|
|
6730
|
-
slim: {
|
|
6731
|
-
type: Boolean,
|
|
6732
|
-
reflect: true
|
|
6733
|
-
},
|
|
6734
|
-
|
|
6735
|
-
/**
|
|
6736
|
-
* Populates `tabIndex` to define the focusable sequence in keyboard navigation.
|
|
7311
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
6737
7312
|
*/
|
|
6738
7313
|
tIndex: {
|
|
6739
7314
|
type: String,
|
|
@@ -6741,75 +7316,68 @@ class AuroButton extends LitElement {
|
|
|
6741
7316
|
},
|
|
6742
7317
|
|
|
6743
7318
|
/**
|
|
6744
|
-
* Populates
|
|
7319
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
7320
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
7321
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`.
|
|
6745
7322
|
*/
|
|
6746
|
-
|
|
7323
|
+
tabindex: {
|
|
6747
7324
|
type: String,
|
|
6748
|
-
reflect:
|
|
7325
|
+
reflect: false
|
|
6749
7326
|
},
|
|
6750
7327
|
|
|
6751
7328
|
/**
|
|
6752
|
-
*
|
|
6753
|
-
* Use it in cases where a text label is not visible on the screen.
|
|
6754
|
-
* If there is visible text labeling the element, use `aria-labelledby` instead.
|
|
7329
|
+
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
6755
7330
|
*/
|
|
6756
|
-
|
|
7331
|
+
title: {
|
|
6757
7332
|
type: String,
|
|
6758
7333
|
reflect: true
|
|
6759
7334
|
},
|
|
6760
7335
|
|
|
6761
7336
|
/**
|
|
6762
|
-
*
|
|
6763
|
-
* and its value should be one or more element IDs, which refer to elements that have the text needed for labeling.
|
|
6764
|
-
* List multiple element IDs in a space delimited fashion.
|
|
7337
|
+
* The type of the button. Possible values are: `submit`, `reset`, `button`.
|
|
6765
7338
|
*/
|
|
6766
|
-
|
|
7339
|
+
type: {
|
|
6767
7340
|
type: String,
|
|
6768
7341
|
reflect: true
|
|
6769
7342
|
},
|
|
6770
7343
|
|
|
6771
7344
|
/**
|
|
6772
|
-
*
|
|
6773
|
-
* or another grouping element it controls, is currently expanded or collapsed.
|
|
6774
|
-
* This is an optional attribute for buttons.
|
|
7345
|
+
* Defines the value associated with the button which is submitted with the form data.
|
|
6775
7346
|
*/
|
|
6776
|
-
|
|
6777
|
-
type:
|
|
7347
|
+
value: {
|
|
7348
|
+
type: String,
|
|
6778
7349
|
reflect: true
|
|
6779
7350
|
},
|
|
6780
7351
|
|
|
6781
7352
|
/**
|
|
6782
|
-
* Sets
|
|
7353
|
+
* Sets button variant option.
|
|
7354
|
+
* @default primary
|
|
6783
7355
|
*/
|
|
6784
|
-
|
|
7356
|
+
variant: {
|
|
6785
7357
|
type: String,
|
|
6786
7358
|
reflect: true
|
|
6787
7359
|
},
|
|
6788
7360
|
|
|
6789
7361
|
/**
|
|
6790
|
-
*
|
|
7362
|
+
* @private
|
|
6791
7363
|
*/
|
|
6792
|
-
|
|
7364
|
+
buttonHref: {
|
|
6793
7365
|
type: String,
|
|
6794
|
-
reflect: true
|
|
6795
7366
|
},
|
|
6796
7367
|
|
|
6797
7368
|
/**
|
|
6798
|
-
*
|
|
7369
|
+
* @private
|
|
6799
7370
|
*/
|
|
6800
|
-
|
|
7371
|
+
buttonTarget: {
|
|
6801
7372
|
type: String,
|
|
6802
|
-
reflect: true
|
|
6803
7373
|
},
|
|
6804
7374
|
|
|
6805
7375
|
/**
|
|
6806
|
-
*
|
|
7376
|
+
* @private
|
|
6807
7377
|
*/
|
|
6808
|
-
|
|
7378
|
+
buttonRel: {
|
|
6809
7379
|
type: String,
|
|
6810
|
-
reflect: true
|
|
6811
7380
|
},
|
|
6812
|
-
ready: { type: Boolean },
|
|
6813
7381
|
};
|
|
6814
7382
|
}
|
|
6815
7383
|
|
|
@@ -6822,7 +7390,7 @@ class AuroButton extends LitElement {
|
|
|
6822
7390
|
*
|
|
6823
7391
|
*/
|
|
6824
7392
|
static register(name = "auro-button") {
|
|
6825
|
-
AuroLibraryRuntimeUtils$
|
|
7393
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroButton);
|
|
6826
7394
|
}
|
|
6827
7395
|
|
|
6828
7396
|
/**
|
|
@@ -6834,17 +7402,6 @@ class AuroButton extends LitElement {
|
|
|
6834
7402
|
this.renderRoot.querySelector('button').focus();
|
|
6835
7403
|
}
|
|
6836
7404
|
|
|
6837
|
-
updated() {
|
|
6838
|
-
// support the old `secondary` and `tertiary` attributes` that are deprecated
|
|
6839
|
-
if (this.secondary) {
|
|
6840
|
-
this.setAttribute('variant', 'secondary');
|
|
6841
|
-
}
|
|
6842
|
-
|
|
6843
|
-
if (this.tertiary) {
|
|
6844
|
-
this.setAttribute('variant', 'tertiary');
|
|
6845
|
-
}
|
|
6846
|
-
}
|
|
6847
|
-
|
|
6848
7405
|
/**
|
|
6849
7406
|
* Submits the form that this button is associated with.
|
|
6850
7407
|
* @private
|
|
@@ -6865,28 +7422,115 @@ class AuroButton extends LitElement {
|
|
|
6865
7422
|
return this.internals ? this.internals.form : null;
|
|
6866
7423
|
}
|
|
6867
7424
|
|
|
6868
|
-
|
|
7425
|
+
/**
|
|
7426
|
+
* @private
|
|
7427
|
+
* @returns {Boolean}
|
|
7428
|
+
*/
|
|
7429
|
+
get showText() {
|
|
7430
|
+
return !ICON_ONLY_SHAPES.includes(this.shape);
|
|
7431
|
+
}
|
|
7432
|
+
|
|
7433
|
+
/**
|
|
7434
|
+
* Returns the current value of the projected `aria-label` attribute or undefined if not set.
|
|
7435
|
+
* @returns {string | undefined}
|
|
7436
|
+
* @private
|
|
7437
|
+
*/
|
|
7438
|
+
get currentAriaLabel() {
|
|
7439
|
+
if (!this.attributeWatcher) return undefined;
|
|
7440
|
+
|
|
7441
|
+
const ariaLabel = this.attributeWatcher.getObservedAttribute("aria-label");
|
|
7442
|
+
return ariaLabel || undefined;
|
|
7443
|
+
}
|
|
7444
|
+
|
|
7445
|
+
/**
|
|
7446
|
+
* Returns the current value of the projected `aria-labelledby` attribute or undefined if not set.
|
|
7447
|
+
* @returns {string | undefined}
|
|
7448
|
+
* @private
|
|
7449
|
+
*/
|
|
7450
|
+
get currentAriaLabelledBy() {
|
|
7451
|
+
if (!this.attributeWatcher) return undefined;
|
|
7452
|
+
|
|
7453
|
+
const ariaLabelledBy = this.attributeWatcher.getObservedAttribute("aria-labelledby");
|
|
7454
|
+
return ariaLabelledBy || undefined;
|
|
7455
|
+
}
|
|
7456
|
+
|
|
7457
|
+
/**
|
|
7458
|
+
* Whether or not the button is set to an icon-only shape.
|
|
7459
|
+
* @returns {boolean} - True if the button is icon-only, false otherwise.
|
|
7460
|
+
* @private
|
|
7461
|
+
*/
|
|
7462
|
+
get iconOnly() {
|
|
7463
|
+
return ICON_ONLY_SHAPES.includes(this.shape);
|
|
7464
|
+
}
|
|
7465
|
+
|
|
7466
|
+
/**
|
|
7467
|
+
* Gets a class name for the font size based on the button's size and shape.
|
|
7468
|
+
* @returns {string} - The font size class name.
|
|
7469
|
+
* @private
|
|
7470
|
+
*/
|
|
7471
|
+
getFontSize() {
|
|
7472
|
+
|
|
7473
|
+
// Size map for standard buttons
|
|
7474
|
+
const standardButtonSizeMap = {
|
|
7475
|
+
xs: 'body-xs',
|
|
7476
|
+
sm: 'body-sm',
|
|
7477
|
+
md: 'body-default',
|
|
7478
|
+
lg: 'body-lg',
|
|
7479
|
+
xl: 'body-lg'
|
|
7480
|
+
};
|
|
7481
|
+
|
|
7482
|
+
// Size map for icon-only buttons
|
|
7483
|
+
const iconOnlyButtonSizeMap = {
|
|
7484
|
+
xs: 'heading-xs',
|
|
7485
|
+
sm: 'heading-sm',
|
|
7486
|
+
md: 'heading-sm',
|
|
7487
|
+
lg: 'heading-md',
|
|
7488
|
+
xl: 'heading-lg'
|
|
7489
|
+
};
|
|
7490
|
+
|
|
7491
|
+
// Determine which map to use based on the shape
|
|
7492
|
+
const sizeMap = this.iconOnly ? iconOnlyButtonSizeMap : standardButtonSizeMap;
|
|
7493
|
+
|
|
7494
|
+
// Return the font size based on the button size and shape
|
|
7495
|
+
return sizeMap[this.size] || 'body-default';
|
|
7496
|
+
}
|
|
7497
|
+
|
|
7498
|
+
/**
|
|
7499
|
+
* Renders the default layout for the button.
|
|
7500
|
+
* @returns {TemplateResult}
|
|
7501
|
+
* @private
|
|
7502
|
+
*/
|
|
7503
|
+
renderLayoutDefault() {
|
|
7504
|
+
|
|
7505
|
+
const fontSize = this.getFontSize();
|
|
7506
|
+
const tag = this.buttonHref ? literal`a` : literal`button`;
|
|
7507
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
7508
|
+
|
|
6869
7509
|
const classes = {
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
'
|
|
7510
|
+
"auro-button": true,
|
|
7511
|
+
"inset": this.showText,
|
|
7512
|
+
wrapper: true,
|
|
7513
|
+
loading: this.loading,
|
|
7514
|
+
[`${fontSize}`]: true,
|
|
7515
|
+
|
|
7516
|
+
// These remove the default borders so we can handle focus borders ourselves
|
|
7517
|
+
'simple': !['secondary'].includes(this.variant),
|
|
7518
|
+
'thin': ['secondary'].includes(this.variant),
|
|
7519
|
+
};
|
|
7520
|
+
|
|
7521
|
+
const contentClasses = {
|
|
7522
|
+
"contentWrapper": true,
|
|
7523
|
+
"util_displayHiddenVisually": this.loading
|
|
6878
7524
|
};
|
|
6879
7525
|
|
|
6880
7526
|
return html$1`
|
|
6881
|
-
|
|
6882
|
-
part="
|
|
6883
|
-
aria-
|
|
6884
|
-
aria-
|
|
6885
|
-
|
|
6886
|
-
aria-expanded="${ifDefined(this.ariaexpanded)}"
|
|
6887
|
-
tabIndex="${ifDefined(this.tIndex)}"
|
|
7527
|
+
<${tag}
|
|
7528
|
+
part="${part}"
|
|
7529
|
+
aria-label="${ifDefined(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
7530
|
+
aria-labelledby="${ifDefined(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
7531
|
+
tabindex="${ifDefined(this.tIndex || this.tabindex)}"
|
|
6888
7532
|
?autofocus="${this.autofocus}"
|
|
6889
|
-
class
|
|
7533
|
+
class=${classMap(classes)}
|
|
6890
7534
|
?disabled="${this.disabled || this.loading}"
|
|
6891
7535
|
?onDark="${this.onDark}"
|
|
6892
7536
|
title="${ifDefined(this.title ? this.title : undefined)}"
|
|
@@ -6895,28 +7539,36 @@ class AuroButton extends LitElement {
|
|
|
6895
7539
|
variant="${ifDefined(this.variant ? this.variant : undefined)}"
|
|
6896
7540
|
.value="${ifDefined(this.value ? this.value : undefined)}"
|
|
6897
7541
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
7542
|
+
href="${ifDefined(this.buttonHref || undefined)}"
|
|
7543
|
+
target="${ifDefined(this.buttonTarget || undefined)}"
|
|
7544
|
+
rel="${ifDefined(this.buttonRel || undefined)}"
|
|
6898
7545
|
>
|
|
6899
7546
|
${ifDefined(this.loading ? html$1`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
6900
7547
|
|
|
6901
|
-
<span class="
|
|
7548
|
+
<span class="${classMap(contentClasses)}">
|
|
6902
7549
|
<span class="textSlot" part="text">
|
|
6903
|
-
|
|
6904
|
-
</span>
|
|
6905
|
-
|
|
6906
|
-
<span part="icon">
|
|
6907
|
-
<slot name="icon"></slot>
|
|
7550
|
+
<slot></slot>
|
|
6908
7551
|
</span>
|
|
6909
7552
|
</span>
|
|
6910
|
-
|
|
7553
|
+
</${tag}>
|
|
6911
7554
|
`;
|
|
6912
7555
|
}
|
|
7556
|
+
|
|
7557
|
+
/**
|
|
7558
|
+
* Renders the layout of the button.
|
|
7559
|
+
* @returns {TemplateResult}
|
|
7560
|
+
* @private
|
|
7561
|
+
*/
|
|
7562
|
+
renderLayout() {
|
|
7563
|
+
return this.renderLayoutDefault();
|
|
7564
|
+
}
|
|
6913
7565
|
}
|
|
6914
7566
|
|
|
6915
|
-
var buttonVersion = '
|
|
7567
|
+
var buttonVersion = '11.0.0';
|
|
6916
7568
|
|
|
6917
|
-
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-
|
|
7569
|
+
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-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
6918
7570
|
|
|
6919
|
-
var styleCss = css`.
|
|
7571
|
+
var styleCss = css`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5)}.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.63)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25)}.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, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1)}.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, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.88)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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", 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}:host{position:relative;display:block}.helptext-wrapper{display:none}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
6920
7572
|
|
|
6921
7573
|
var tokensCss = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
6922
7574
|
|
|
@@ -6996,8 +7648,6 @@ class AuroLibraryRuntimeUtils {
|
|
|
6996
7648
|
|
|
6997
7649
|
/**
|
|
6998
7650
|
* Displays help text or error messages within form elements - Internal Use Only.
|
|
6999
|
-
*
|
|
7000
|
-
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
7001
7651
|
*/
|
|
7002
7652
|
class AuroHelpText extends LitElement {
|
|
7003
7653
|
|
|
@@ -7113,7 +7763,7 @@ class AuroHelpText extends LitElement {
|
|
|
7113
7763
|
// function that renders the HTML and CSS into the scope of the component
|
|
7114
7764
|
render() {
|
|
7115
7765
|
return html`
|
|
7116
|
-
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
7766
|
+
<div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
|
|
7117
7767
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
7118
7768
|
</div>
|
|
7119
7769
|
`;
|
|
@@ -7173,6 +7823,70 @@ class AuroInput extends BaseInput {
|
|
|
7173
7823
|
];
|
|
7174
7824
|
}
|
|
7175
7825
|
|
|
7826
|
+
/**
|
|
7827
|
+
* Whether the input is being hidden currently based on state.
|
|
7828
|
+
* @returns {boolean} - Returns true if the input is hidden.
|
|
7829
|
+
* @private
|
|
7830
|
+
*/
|
|
7831
|
+
get inputHidden() {
|
|
7832
|
+
return (this.hasDisplayValueContent && !this.hasFocus && this.hasValue) || ((!this.value || this.value.length === 0) && !this.hasFocus && (!this.placeholder || this.placeholder === ''));
|
|
7833
|
+
}
|
|
7834
|
+
|
|
7835
|
+
/**
|
|
7836
|
+
* Whether the label is being hidden currently based on state.
|
|
7837
|
+
* @returns {boolean} - Returns true if the label is hidden.
|
|
7838
|
+
* @private
|
|
7839
|
+
*/
|
|
7840
|
+
get labelHidden() {
|
|
7841
|
+
return this.hasDisplayValueContent && !this.hasFocus && this.hasValue;
|
|
7842
|
+
}
|
|
7843
|
+
|
|
7844
|
+
/**
|
|
7845
|
+
* Returns the label font class based on layout and visibility state.
|
|
7846
|
+
* @private
|
|
7847
|
+
* @returns {string} - The font class for the label.
|
|
7848
|
+
*/
|
|
7849
|
+
get labelFontClass() {
|
|
7850
|
+
const isHidden = this.inputHidden;
|
|
7851
|
+
|
|
7852
|
+
if (this.layout.startsWith('emphasized')) {
|
|
7853
|
+
return isHidden ? 'accent-xl' : 'body-sm';
|
|
7854
|
+
}
|
|
7855
|
+
|
|
7856
|
+
if (this.layout === 'snowflake') {
|
|
7857
|
+
return isHidden ? 'body-lg' : 'body-xs';
|
|
7858
|
+
}
|
|
7859
|
+
|
|
7860
|
+
// classic layout (default)
|
|
7861
|
+
return isHidden ? 'body-default' : 'body-xs';
|
|
7862
|
+
}
|
|
7863
|
+
|
|
7864
|
+
/**
|
|
7865
|
+
* Returns the input font class based on layout and visibility state.
|
|
7866
|
+
* @private
|
|
7867
|
+
* @returns {string} - The font class for the input.
|
|
7868
|
+
*/
|
|
7869
|
+
get inputFontClass() {
|
|
7870
|
+
const isHidden = this.inputHidden;
|
|
7871
|
+
|
|
7872
|
+
if (this.layout.startsWith('emphasized')) {
|
|
7873
|
+
return isHidden ? 'body-sm' : 'accent-xl';
|
|
7874
|
+
}
|
|
7875
|
+
|
|
7876
|
+
if (this.layout === 'snowflake') {
|
|
7877
|
+
// same for both hidden and visible
|
|
7878
|
+
return 'body-lg';
|
|
7879
|
+
}
|
|
7880
|
+
|
|
7881
|
+
// edge case for enabling visual overrides in datepicker
|
|
7882
|
+
if (this.layout === 'classic' && this.shape === 'snowflake') {
|
|
7883
|
+
return 'body-lg';
|
|
7884
|
+
}
|
|
7885
|
+
|
|
7886
|
+
// classic layout (default) - same for both hidden and visible
|
|
7887
|
+
return 'body-default';
|
|
7888
|
+
}
|
|
7889
|
+
|
|
7176
7890
|
/**
|
|
7177
7891
|
* Returns classmap configuration for html5 input labels in all layouts.
|
|
7178
7892
|
* @private
|
|
@@ -7180,8 +7894,10 @@ class AuroInput extends BaseInput {
|
|
|
7180
7894
|
*/
|
|
7181
7895
|
get commonLabelClasses() {
|
|
7182
7896
|
return {
|
|
7183
|
-
'
|
|
7184
|
-
'
|
|
7897
|
+
'is-disabled': this.disabled,
|
|
7898
|
+
'withValue': this.hasValue,
|
|
7899
|
+
'util_displayHiddenVisually': this.labelHidden,
|
|
7900
|
+
[this.labelFontClass]: true,
|
|
7185
7901
|
};
|
|
7186
7902
|
}
|
|
7187
7903
|
|
|
@@ -7192,7 +7908,8 @@ class AuroInput extends BaseInput {
|
|
|
7192
7908
|
*/
|
|
7193
7909
|
get commonInputClasses() {
|
|
7194
7910
|
return {
|
|
7195
|
-
'util_displayHiddenVisually': this.
|
|
7911
|
+
'util_displayHiddenVisually': this.inputHidden,
|
|
7912
|
+
[this.inputFontClass]: true,
|
|
7196
7913
|
};
|
|
7197
7914
|
}
|
|
7198
7915
|
|
|
@@ -7203,8 +7920,7 @@ class AuroInput extends BaseInput {
|
|
|
7203
7920
|
*/
|
|
7204
7921
|
get legacyInputClasses() {
|
|
7205
7922
|
return {
|
|
7206
|
-
...this.commonInputClasses
|
|
7207
|
-
'util_displayHiddenVisually': !this.hasFocus && !this.value
|
|
7923
|
+
...this.commonInputClasses
|
|
7208
7924
|
};
|
|
7209
7925
|
}
|
|
7210
7926
|
|
|
@@ -7216,7 +7932,8 @@ class AuroInput extends BaseInput {
|
|
|
7216
7932
|
get commonWrapperClasses() {
|
|
7217
7933
|
return {
|
|
7218
7934
|
'wrapper': true,
|
|
7219
|
-
'
|
|
7935
|
+
'simple': this.simple,
|
|
7936
|
+
'withValue': this.hasValue,
|
|
7220
7937
|
'hasFocus': this.hasFocus
|
|
7221
7938
|
};
|
|
7222
7939
|
}
|
|
@@ -7243,7 +7960,7 @@ class AuroInput extends BaseInput {
|
|
|
7243
7960
|
*
|
|
7244
7961
|
*/
|
|
7245
7962
|
static register(name = "auro-input") {
|
|
7246
|
-
AuroLibraryRuntimeUtils$
|
|
7963
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroInput);
|
|
7247
7964
|
}
|
|
7248
7965
|
|
|
7249
7966
|
/**
|
|
@@ -7265,7 +7982,12 @@ class AuroInput extends BaseInput {
|
|
|
7265
7982
|
* @returns {void}
|
|
7266
7983
|
*/
|
|
7267
7984
|
checkDisplayValueSlotChange() {
|
|
7268
|
-
|
|
7985
|
+
let nodes = this.shadowRoot.querySelector('slot[name="displayValue"]').assignedNodes();
|
|
7986
|
+
|
|
7987
|
+
// Handle when DisplayValue is multi-level slot content (e.g. combobox passing displayValue to input)
|
|
7988
|
+
if (nodes[0].tagName === 'SLOT') {
|
|
7989
|
+
nodes = nodes[0].assignedNodes();
|
|
7990
|
+
}
|
|
7269
7991
|
|
|
7270
7992
|
let hasContent = false;
|
|
7271
7993
|
|
|
@@ -7307,7 +8029,7 @@ class AuroInput extends BaseInput {
|
|
|
7307
8029
|
'displayValue': true,
|
|
7308
8030
|
'hasContent': this.hasDisplayValueContent,
|
|
7309
8031
|
'hasFocus': this.hasFocus,
|
|
7310
|
-
'withValue': this.
|
|
8032
|
+
'withValue': this.hasValue,
|
|
7311
8033
|
};
|
|
7312
8034
|
|
|
7313
8035
|
// Remove this when the classic layout is sunset.
|
|
@@ -7316,28 +8038,34 @@ class AuroInput extends BaseInput {
|
|
|
7316
8038
|
: this.commonInputClasses;
|
|
7317
8039
|
|
|
7318
8040
|
return html$1`
|
|
7319
|
-
<label for=${this.
|
|
8041
|
+
<label for=${this.inputId} class="${classMap(this.commonLabelClasses)}" part="label">
|
|
7320
8042
|
<slot name="label">
|
|
7321
8043
|
${this.label}
|
|
7322
8044
|
</slot>
|
|
8045
|
+
${this.required ? undefined : html$1`<slot name="optionalLabel"> (optional)</slot>`}
|
|
7323
8046
|
</label>
|
|
8047
|
+
|
|
8048
|
+
<!-- Attributes are grouped into: basic attributes, event handlers, ARIA attributes, and input-specific attributes -->
|
|
7324
8049
|
<input
|
|
7325
8050
|
@blur="${this.handleBlur}"
|
|
7326
8051
|
@focusin="${this.handleFocusin}"
|
|
7327
8052
|
@focusout="${this.handleFocusout}"
|
|
7328
8053
|
@input="${this.handleInput}"
|
|
8054
|
+
.placeholder=${this.placeholderStr}
|
|
8055
|
+
.role=${this.a11yRole}
|
|
7329
8056
|
?activeLabel="${this.activeLabel}"
|
|
7330
8057
|
?disabled="${this.disabled}"
|
|
7331
8058
|
?required="${this.required}"
|
|
7332
|
-
|
|
8059
|
+
aria-controls=${ifDefined(this.a11yControls)}
|
|
7333
8060
|
aria-describedby="${this.uniqueId}"
|
|
8061
|
+
aria-expanded=${ifDefined(this.a11yExpanded)}
|
|
7334
8062
|
aria-invalid="${this.validity !== 'valid'}"
|
|
7335
|
-
autocapitalize="${ifDefined(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
7336
8063
|
autocomplete="${ifDefined(this.autocomplete ? this.autocomplete : undefined)}"
|
|
8064
|
+
autocapitalize="${ifDefined(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
7337
8065
|
autocorrect="${ifDefined(this.autocorrect ? this.autocorrect : undefined)}"
|
|
7338
8066
|
class="${classMap(inputOverrideClasses)}"
|
|
7339
8067
|
id="${this.inputId}"
|
|
7340
|
-
|
|
8068
|
+
inputmode="${ifDefined(this.inputmode ? this.inputmode : undefined)}"
|
|
7341
8069
|
lang="${ifDefined(this.lang)}"
|
|
7342
8070
|
maxlength="${ifDefined(this.maxLength ? this.maxLength : undefined)}"
|
|
7343
8071
|
minlength="${ifDefined(this.minLength ? this.minLength : undefined)}"
|
|
@@ -7345,7 +8073,8 @@ class AuroInput extends BaseInput {
|
|
|
7345
8073
|
part="input"
|
|
7346
8074
|
pattern="${ifDefined(this.definePattern())}"
|
|
7347
8075
|
spellcheck="${ifDefined(this.spellcheck ? this.spellcheck : undefined)}"
|
|
7348
|
-
type="${this.type ===
|
|
8076
|
+
type="${this.type === "password" && this.showPassword ? "text" : this.getInputType(this.type)}"
|
|
8077
|
+
/>
|
|
7349
8078
|
<div class="${classMap(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
7350
8079
|
<div class="displayValueWrapper">
|
|
7351
8080
|
<slot name="displayValue" @slotchange=${this.checkDisplayValueSlotChange}></slot>
|
|
@@ -7367,11 +8096,12 @@ class AuroInput extends BaseInput {
|
|
|
7367
8096
|
?onDark="${this.onDark}"
|
|
7368
8097
|
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
7369
8098
|
class="notificationBtn clearBtn"
|
|
7370
|
-
|
|
7371
|
-
|
|
8099
|
+
shape="circle"
|
|
8100
|
+
size="sm"
|
|
8101
|
+
variant="ghost">
|
|
7372
8102
|
<${this.iconTag}
|
|
8103
|
+
?customColor="${this.onDark}"
|
|
7373
8104
|
category="interface"
|
|
7374
|
-
customColor
|
|
7375
8105
|
name="x-lg"
|
|
7376
8106
|
>
|
|
7377
8107
|
</${this.iconTag}>
|
|
@@ -7389,22 +8119,23 @@ class AuroInput extends BaseInput {
|
|
|
7389
8119
|
return html$1`
|
|
7390
8120
|
<div class="notification">
|
|
7391
8121
|
<${this.buttonTag}
|
|
7392
|
-
@click="${this.handleClickShowPassword}
|
|
8122
|
+
@click="${this.handleClickShowPassword}"
|
|
7393
8123
|
?onDark="${this.onDark}"
|
|
7394
|
-
aria-hidden="true"
|
|
7395
8124
|
class="notificationBtn passwordBtn"
|
|
7396
|
-
|
|
7397
|
-
|
|
8125
|
+
aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
|
|
8126
|
+
shape="circle"
|
|
8127
|
+
size="sm"
|
|
8128
|
+
variant="ghost">
|
|
7398
8129
|
<${this.iconTag}
|
|
8130
|
+
?customColor="${this.onDark}"
|
|
7399
8131
|
?hidden=${!this.showPassword}
|
|
7400
8132
|
category="interface"
|
|
7401
|
-
customColor
|
|
7402
8133
|
name="hide-password-stroke">
|
|
7403
8134
|
</${this.iconTag}>
|
|
7404
8135
|
<${this.iconTag}
|
|
8136
|
+
?customColor="${this.onDark}"
|
|
7405
8137
|
?hidden=${this.showPassword}
|
|
7406
8138
|
category="interface"
|
|
7407
|
-
customColor
|
|
7408
8139
|
name="view-password-stroke">
|
|
7409
8140
|
</${this.iconTag}>
|
|
7410
8141
|
</${this.buttonTag}>
|
|
@@ -7463,7 +8194,7 @@ class AuroInput extends BaseInput {
|
|
|
7463
8194
|
? html$1`
|
|
7464
8195
|
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
7465
8196
|
<p id="${this.uniqueId}" part="helpText">
|
|
7466
|
-
<slot name="
|
|
8197
|
+
<slot name="helpText">${this.getHelpText()}</slot>
|
|
7467
8198
|
</p>
|
|
7468
8199
|
</${this.helpTextTag}>
|
|
7469
8200
|
`
|
|
@@ -7484,19 +8215,25 @@ class AuroInput extends BaseInput {
|
|
|
7484
8215
|
* @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
|
|
7485
8216
|
*/
|
|
7486
8217
|
renderLayoutClassic() {
|
|
8218
|
+
const classicClassMap = {
|
|
8219
|
+
...this.commonWrapperClasses,
|
|
8220
|
+
'thin': !this.simple
|
|
8221
|
+
};
|
|
8222
|
+
|
|
7487
8223
|
return html$1`
|
|
7488
8224
|
<div
|
|
7489
8225
|
@click="${this.handleClick}"
|
|
7490
|
-
class="${classMap(
|
|
8226
|
+
class="${classMap(classicClassMap)}"
|
|
7491
8227
|
part="wrapper">
|
|
7492
|
-
<div class="accents left">
|
|
8228
|
+
<div part="accent-left" class="accents left">
|
|
7493
8229
|
${this.renderHtmlTypeIcon()}
|
|
7494
8230
|
</div>
|
|
7495
8231
|
<div class="mainContent">
|
|
7496
8232
|
${this.renderHtmlInput(true)}
|
|
7497
8233
|
</div>
|
|
7498
|
-
<div class="accents right">
|
|
8234
|
+
<div part="accent-right" class="accents right">
|
|
7499
8235
|
${this.renderValidationErrorIconHtml()}
|
|
8236
|
+
${this.hasValue && this.type === 'password' ? this.renderHtmlNotificationPassword() : undefined}
|
|
7500
8237
|
${this.hasValue ? html$1`
|
|
7501
8238
|
${!this.disabled && !this.readonly ? html$1`
|
|
7502
8239
|
${this.renderHtmlActionClear()}
|