@aurodesignsystem/auro-formkit 4.0.0-rc-676.1 → 4.0.0-rc-1002.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +180 -1
- 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 +1184 -105
- package/components/bibtemplate/dist/registered.js +1184 -105
- package/components/checkbox/demo/api.html +16 -10
- package/components/checkbox/demo/api.md +52 -17
- package/components/checkbox/demo/api.min.js +66 -33
- package/components/checkbox/demo/index.html +16 -10
- package/components/checkbox/demo/index.min.js +66 -33
- package/components/checkbox/demo/readme.html +16 -9
- package/components/checkbox/dist/auro-checkbox-group.d.ts +2 -2
- package/components/checkbox/dist/auro-checkbox.d.ts +8 -1
- package/components/checkbox/dist/index.js +65 -32
- package/components/checkbox/dist/registered.js +65 -32
- package/components/combobox/README.md +2 -0
- package/components/combobox/demo/api.html +16 -10
- package/components/combobox/demo/api.md +124 -7
- package/components/combobox/demo/api.min.js +4542 -1330
- package/components/combobox/demo/index.html +16 -10
- package/components/combobox/demo/index.md +108 -4
- package/components/combobox/demo/index.min.js +4542 -1330
- package/components/combobox/demo/readme.html +16 -9
- package/components/combobox/demo/readme.md +2 -0
- package/components/combobox/dist/auro-combobox.d.ts +81 -18
- package/components/combobox/dist/index.js +4588 -1520
- package/components/combobox/dist/registered.js +4588 -1520
- package/components/counter/demo/api.html +17 -10
- package/components/counter/demo/api.md +167 -21
- package/components/counter/demo/api.min.js +3621 -866
- package/components/counter/demo/index.html +17 -10
- package/components/counter/demo/index.md +191 -34
- package/components/counter/demo/index.min.js +3621 -866
- 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 +162 -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 +3619 -864
- package/components/counter/dist/registered.js +3619 -864
- package/components/datepicker/README.md +2 -1
- package/components/datepicker/demo/api.html +16 -10
- package/components/datepicker/demo/api.md +80 -30
- package/components/datepicker/demo/api.min.js +14795 -10365
- package/components/datepicker/demo/index.html +16 -10
- package/components/datepicker/demo/index.md +96 -4
- package/components/datepicker/demo/index.min.js +14795 -10365
- package/components/datepicker/demo/readme.html +16 -9
- package/components/datepicker/demo/readme.md +2 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +163 -4
- package/components/datepicker/dist/buttonVersion.d.ts +1 -1
- package/components/datepicker/dist/iconVersion.d.ts +2 -0
- package/components/datepicker/dist/index.js +14916 -10486
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +14916 -10486
- package/components/dropdown/demo/api.html +16 -10
- package/components/dropdown/demo/api.md +94 -262
- package/components/dropdown/demo/api.min.js +738 -259
- package/components/dropdown/demo/index.html +16 -10
- package/components/dropdown/demo/index.md +93 -266
- package/components/dropdown/demo/index.min.js +738 -259
- package/components/dropdown/demo/readme.html +16 -9
- package/components/dropdown/dist/auro-dropdown.d.ts +92 -73
- package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
- package/components/dropdown/dist/index.js +710 -231
- package/components/dropdown/dist/registered.js +710 -231
- package/components/dropdown/dist/styles/classic/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
- 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 +2 -4
- package/components/helptext/dist/registered.js +2 -4
- package/components/input/README.md +6 -2
- package/components/input/demo/api.html +16 -10
- package/components/input/demo/api.md +258 -144
- package/components/input/demo/api.min.js +1550 -497
- package/components/input/demo/index.html +17 -11
- package/components/input/demo/index.md +95 -27
- package/components/input/demo/index.min.js +1549 -496
- package/components/input/demo/readme.html +16 -9
- package/components/input/demo/readme.md +6 -2
- package/components/input/dist/auro-input.d.ts +139 -3
- package/components/input/dist/base-input.d.ts +80 -26
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +1504 -451
- package/components/input/dist/registered.js +1504 -451
- package/components/input/dist/styles/classic/color-css.d.ts +2 -0
- package/components/input/dist/styles/classic/style-css.d.ts +2 -0
- package/components/input/dist/styles/default/borders-css.d.ts +2 -0
- package/components/input/dist/styles/default/color-css.d.ts +2 -0
- package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
- package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
- package/components/input/dist/styles/default/style-css.d.ts +2 -0
- package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
- package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/layoutElement/dist/auroElement.d.ts +34 -0
- package/components/layoutElement/dist/index.d.ts +2 -0
- package/components/layoutElement/dist/index.js +98 -0
- package/components/layoutElement/dist/registered.js +98 -0
- package/components/menu/demo/api.html +17 -10
- package/components/menu/demo/api.md +65 -8
- package/components/menu/demo/api.min.js +304 -65
- package/components/menu/demo/index.html +16 -10
- package/components/menu/demo/index.min.js +304 -65
- 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 +289 -50
- package/components/menu/dist/registered.js +289 -50
- package/components/menu/dist/styles/default/color-menu-css.d.ts +2 -0
- package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
- package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
- package/components/radio/demo/api.html +16 -10
- package/components/radio/demo/api.md +41 -9
- package/components/radio/demo/api.min.js +93 -95
- package/components/radio/demo/index.html +16 -10
- package/components/radio/demo/index.min.js +93 -95
- 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 +11 -12
- package/components/radio/dist/index.js +92 -94
- package/components/radio/dist/registered.js +92 -94
- package/components/select/README.md +1 -0
- package/components/select/demo/api.html +16 -10
- package/components/select/demo/api.js +0 -2
- package/components/select/demo/api.md +156 -114
- package/components/select/demo/api.min.js +3126 -657
- package/components/select/demo/index.html +17 -10
- package/components/select/demo/index.md +398 -62
- package/components/select/demo/index.min.js +3129 -648
- package/components/select/demo/readme.html +16 -9
- package/components/select/demo/readme.md +1 -0
- package/components/select/dist/auro-select.d.ts +173 -18
- package/components/select/dist/helptextVersion.d.ts +2 -0
- package/components/select/dist/index.js +3128 -791
- package/components/select/dist/registered.js +3128 -791
- package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/select/dist/styles/tokens-css.d.ts +2 -0
- package/package.json +33 -32
- package/packages/build-tools/src/postinstall.mjs +0 -12
- /package/components/{dropdown/dist/styles/bibColors-css.d.ts → combobox/dist/styles/emphasized/style-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles/bibStyles-css.d.ts → combobox/dist/styles/snowflake/style-css.d.ts} +0 -0
- /package/components/{input/dist/styles/borders-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/{input/dist/styles/input-css.d.ts → datepicker/dist/styles/classic/color-css.d.ts} +0 -0
- /package/components/{input/dist/styles/label-css.d.ts → datepicker/dist/styles/classic/style-css.d.ts} +0 -0
- /package/components/{input/dist/styles/notificationIcons-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/color-menu-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/color-menuoption-css.d.ts → datepicker/dist/styles/snowflake/style-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/bibColors-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/tokens-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
|
@@ -1,8 +1,28 @@
|
|
|
1
|
+
import { css, LitElement, html } from 'lit';
|
|
1
2
|
import { unsafeStatic, literal, html as html$1 } from 'lit/static-html.js';
|
|
2
3
|
import { repeat } from 'lit/directives/repeat.js';
|
|
3
4
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
5
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
5
|
-
|
|
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: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
|
+
|
|
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.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-body-2xs-font-size, 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.875rem)}.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}.wrapper:not(:focus-within):not(:hover) .notificationBtn.passwordBtn,.wrapper:not(:focus-within):not(:hover) .notification.clear{display:none}.notification{display:flex;align-items:center;justify-content:center}`;
|
|
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}: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
|
+
|
|
13
|
+
var colorBaseCss = css`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-container-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-advanced-color-state-error-inverse, #f9a4a8)}: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-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-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
|
+
|
|
15
|
+
var tokensCss$4 = css`:host(:not([ondark])){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--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-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-muted, #ccd2db);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-input-outline-color: transparent}`;
|
|
16
|
+
|
|
17
|
+
var classicStyleCss = css`:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;background-color:var(--ds-auro-input-container-color);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
|
+
|
|
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-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-input-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}: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
|
+
|
|
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{transition:all 1ms linear;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
|
+
|
|
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
|
+
|
|
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-emphasized-background: rgba(1, 66, 106, 0.1);--ds-advanced-color-shared-emphasized-background-hover: rgba(1, 66, 106, 0.2);--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.625rem;--ds-basic-type-line-height-body2: 1.5rem;--ds-basic-type-line-height-body3: 1.25rem;--ds-basic-type-line-height-body4: 1rem;--ds-basic-type-line-height-body5: 0.875rem;--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{transition:all 1ms linear;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}`;
|
|
6
26
|
|
|
7
27
|
const watchedItems = new Set();
|
|
8
28
|
|
|
@@ -65,6 +85,8 @@ const stringsES = {
|
|
|
65
85
|
'dateMM': 'Ingrese una fecha completa en el formato MM',
|
|
66
86
|
'dateDD': 'Ingrese una fecha completa en el formato DD',
|
|
67
87
|
'clearInput': 'Borrar campo de entrada',
|
|
88
|
+
'showPassword': 'Mostrar contraseña',
|
|
89
|
+
'hidePassword': 'Ocultar contraseña'
|
|
68
90
|
};
|
|
69
91
|
|
|
70
92
|
const stringsEN = {
|
|
@@ -89,6 +111,8 @@ const stringsEN = {
|
|
|
89
111
|
'dateMM': 'Please enter a complete date in the format MM',
|
|
90
112
|
'dateDD': 'Please enter a complete date in the format DD',
|
|
91
113
|
'clearInput': 'Clear input field',
|
|
114
|
+
'showPassword': 'Show password',
|
|
115
|
+
'hidePassword': 'Hide password'
|
|
92
116
|
};
|
|
93
117
|
|
|
94
118
|
/**
|
|
@@ -125,12 +149,6 @@ function stopNotifyingOnLangChange(element) {
|
|
|
125
149
|
watchedItems.delete(element);
|
|
126
150
|
}
|
|
127
151
|
|
|
128
|
-
var styleCss$4 = css`: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}.typeIcon{display:flex;flex-direction:row;align-items:center}.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)}.notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([bordered]) .notificationIcons{align-items:center}.notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}.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))}.passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}.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}.notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}.notificationBtn [auro-icon][hidden]{display:none}:host(:not([bordered])) .typeIcon,:host(:not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}.clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}:host .wrapper:hover .clearBtn,:host .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(:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}input{border:unset}.wrapper{position:relative;overflow:hidden;border-style:solid}:host(:not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host(: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([validity]:not([validity=valid])) .wrapper:before{border-bottom:0}label{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap}:host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}:host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([bordered]) label{top:50%;transform:translateY(-50%)}:host([bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}:host .wrapper:focus-within label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);transform:unset}:host label.withValue{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);transform:unset}:host([activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);transform:unset}:host{position:relative;display:block}.wrapper{display:flex;flex-direction:row}.main{display:flex;flex-direction:row;position:relative;flex:1}input{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:relative;overflow:hidden;min-height:var(--ds-size-200, 1rem);max-height:var(--ds-size-200, 1rem);flex:1;padding:var(--ds-size-400, 2rem) 0 var(--ds-size-50, 0.25rem);margin:0;font-family:var(--ds-basic-text-body-default-font-family, "AS Circular");font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px);outline:none;text-overflow:ellipsis;white-space:nowrap}input::-ms-reveal,input::-ms-clear{display:none}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield;appearance:textfield}input:disabled{background:none;pointer-events:none}:host([bordered]) input{padding:var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem)}`;
|
|
129
|
-
|
|
130
|
-
var colorCss$4 = css`.wrapper{border-color:transparent}input{background-color:transparent;caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}input::placeholder{color:transparent}input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}input:disabled{--ds-auro-input-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}label{color:var(--ds-auro-input-label-text-color)}.alertNotification{color:var(--ds-auro-input-error-icon-color)}:host(:not([bordered],[borderless])) .wrapper{border-bottom-color:var(--ds-auro-input-border-color)}:host([bordered]) .wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-container-color)}:host([bordered]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-advanced-color-state-focused, #01426a);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([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)}:host([onDark][bordered]){--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-muted, #ccd2db);--ds-auro-input-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-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([onDark][bordered]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([onDark][validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([onDark][disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}`;
|
|
131
|
-
|
|
132
|
-
var tokensCss$4 = css`:host{--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--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)}`;
|
|
133
|
-
|
|
134
152
|
/** Checks if value is string */
|
|
135
153
|
function isString(str) {
|
|
136
154
|
return typeof str === 'string' || str instanceof String;
|
|
@@ -4389,7 +4407,7 @@ const {
|
|
|
4389
4407
|
|
|
4390
4408
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4391
4409
|
|
|
4392
|
-
let AuroLibraryRuntimeUtils$
|
|
4410
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
4393
4411
|
|
|
4394
4412
|
/* eslint-disable jsdoc/require-param */
|
|
4395
4413
|
|
|
@@ -4459,7 +4477,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
4459
4477
|
class AuroFormValidation {
|
|
4460
4478
|
|
|
4461
4479
|
constructor() {
|
|
4462
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
4480
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
4463
4481
|
}
|
|
4464
4482
|
|
|
4465
4483
|
/**
|
|
@@ -4519,19 +4537,19 @@ class AuroFormValidation {
|
|
|
4519
4537
|
{
|
|
4520
4538
|
check: (e) => e.value?.length > 0 && e.value?.length < e.minLength,
|
|
4521
4539
|
validity: 'tooShort',
|
|
4522
|
-
message: e => e.setCustomValidityTooShort || e.setCustomValidity || ''
|
|
4540
|
+
message: e => e.getAttribute('setCustomValidityTooShort') || e.setCustomValidity || ''
|
|
4523
4541
|
},
|
|
4524
4542
|
{
|
|
4525
4543
|
check: (e) => e.value?.length > e.maxLength,
|
|
4526
4544
|
validity: 'tooLong',
|
|
4527
|
-
message: e => e.setCustomValidityTooLong || e.setCustomValidity || ''
|
|
4545
|
+
message: e => e.getAttribute('setCustomValidityTooLong') || e.setCustomValidity || ''
|
|
4528
4546
|
}
|
|
4529
4547
|
],
|
|
4530
4548
|
pattern: [
|
|
4531
4549
|
{
|
|
4532
4550
|
check: (e) => e.pattern && !new RegExp(`^${e.pattern}$`, 'u').test(e.value),
|
|
4533
4551
|
validity: 'patternMismatch',
|
|
4534
|
-
message: e => e.setCustomValidityPatternMismatch || e.setCustomValidity || ''
|
|
4552
|
+
message: e => e.getAttribute('setCustomValidityPatternMismatch') || e.setCustomValidity || ''
|
|
4535
4553
|
}
|
|
4536
4554
|
]
|
|
4537
4555
|
},
|
|
@@ -4678,13 +4696,24 @@ class AuroFormValidation {
|
|
|
4678
4696
|
this.getInputElements(elem);
|
|
4679
4697
|
this.getAuroInputs(elem);
|
|
4680
4698
|
|
|
4681
|
-
//
|
|
4699
|
+
// Check if validation should run
|
|
4682
4700
|
let validationShouldRun =
|
|
4701
|
+
|
|
4702
|
+
// If the validation was forced
|
|
4683
4703
|
force ||
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
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
|
+
);
|
|
4688
4717
|
|
|
4689
4718
|
if (elem.hasAttribute('error')) {
|
|
4690
4719
|
elem.validity = 'customError';
|
|
@@ -4726,10 +4755,10 @@ class AuroFormValidation {
|
|
|
4726
4755
|
if (!hasValue && elem.required && elem.touched) {
|
|
4727
4756
|
elem.validity = 'valueMissing';
|
|
4728
4757
|
elem.errorMessage = elem.setCustomValidityValueMissing || elem.setCustomValidity || '';
|
|
4729
|
-
} else if (this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
4758
|
+
} else if (hasValue && this.runtimeUtils.elementMatch(elem, 'auro-input')) {
|
|
4730
4759
|
this.validateType(elem);
|
|
4731
4760
|
this.validateElementAttributes(elem);
|
|
4732
|
-
} 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'))) {
|
|
4733
4762
|
this.validateElementAttributes(elem);
|
|
4734
4763
|
}
|
|
4735
4764
|
}
|
|
@@ -4738,7 +4767,9 @@ class AuroFormValidation {
|
|
|
4738
4767
|
elem.validity = this.auroInputElements[0].validity;
|
|
4739
4768
|
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
4740
4769
|
|
|
4741
|
-
|
|
4770
|
+
// multiple input in one components (datepicker)
|
|
4771
|
+
// combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
|
|
4772
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.runtimeUtils.elementMatch(elem, 'auro-combobox')) {
|
|
4742
4773
|
elem.validity = this.auroInputElements[1].validity;
|
|
4743
4774
|
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
4744
4775
|
}
|
|
@@ -4818,6 +4849,101 @@ class AuroFormValidation {
|
|
|
4818
4849
|
}
|
|
4819
4850
|
}
|
|
4820
4851
|
|
|
4852
|
+
let AuroElement$2 = class AuroElement extends LitElement {
|
|
4853
|
+
static get properties() {
|
|
4854
|
+
return {
|
|
4855
|
+
|
|
4856
|
+
/**
|
|
4857
|
+
* Defines the language of an element.
|
|
4858
|
+
* @default {'default'}
|
|
4859
|
+
*/
|
|
4860
|
+
layout: {
|
|
4861
|
+
type: String,
|
|
4862
|
+
attribute: "layout",
|
|
4863
|
+
reflect: true
|
|
4864
|
+
},
|
|
4865
|
+
|
|
4866
|
+
shape: {
|
|
4867
|
+
type: String,
|
|
4868
|
+
attribute: "shape",
|
|
4869
|
+
reflect: true
|
|
4870
|
+
},
|
|
4871
|
+
|
|
4872
|
+
size: {
|
|
4873
|
+
type: String,
|
|
4874
|
+
attribute: "size",
|
|
4875
|
+
reflect: true
|
|
4876
|
+
},
|
|
4877
|
+
|
|
4878
|
+
onDark: {
|
|
4879
|
+
type: Boolean,
|
|
4880
|
+
attribute: "ondark",
|
|
4881
|
+
reflect: true
|
|
4882
|
+
}
|
|
4883
|
+
};
|
|
4884
|
+
}
|
|
4885
|
+
|
|
4886
|
+
resetShapeClasses() {
|
|
4887
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4888
|
+
|
|
4889
|
+
if (wrapper) {
|
|
4890
|
+
wrapper.classList.forEach((className) => {
|
|
4891
|
+
if (className.startsWith('shape-')) {
|
|
4892
|
+
wrapper.classList.remove(className);
|
|
4893
|
+
}
|
|
4894
|
+
});
|
|
4895
|
+
|
|
4896
|
+
if (this.shape && this.size) {
|
|
4897
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
4898
|
+
} else {
|
|
4899
|
+
wrapper.classList.add('shape-none');
|
|
4900
|
+
}
|
|
4901
|
+
}
|
|
4902
|
+
|
|
4903
|
+
}
|
|
4904
|
+
|
|
4905
|
+
resetLayoutClasses() {
|
|
4906
|
+
if (this.layout) {
|
|
4907
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4908
|
+
|
|
4909
|
+
if (wrapper) {
|
|
4910
|
+
wrapper.classList.forEach((className) => {
|
|
4911
|
+
if (className.startsWith('layout-')) {
|
|
4912
|
+
wrapper.classList.remove(className);
|
|
4913
|
+
}
|
|
4914
|
+
});
|
|
4915
|
+
|
|
4916
|
+
wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
4917
|
+
}
|
|
4918
|
+
}
|
|
4919
|
+
}
|
|
4920
|
+
|
|
4921
|
+
updateComponentArchitecture() {
|
|
4922
|
+
this.resetLayoutClasses();
|
|
4923
|
+
this.resetShapeClasses();
|
|
4924
|
+
}
|
|
4925
|
+
|
|
4926
|
+
updated(changedProperties) {
|
|
4927
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
4928
|
+
this.updateComponentArchitecture();
|
|
4929
|
+
}
|
|
4930
|
+
}
|
|
4931
|
+
|
|
4932
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
4933
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
4934
|
+
render() {
|
|
4935
|
+
try {
|
|
4936
|
+
return this.renderLayout();
|
|
4937
|
+
} catch (error) {
|
|
4938
|
+
// failed to get the defined layout
|
|
4939
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
4940
|
+
|
|
4941
|
+
// fallback to the default layout
|
|
4942
|
+
return this.getLayout('default');
|
|
4943
|
+
}
|
|
4944
|
+
}
|
|
4945
|
+
};
|
|
4946
|
+
|
|
4821
4947
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4822
4948
|
// See LICENSE in the project root for license information.
|
|
4823
4949
|
|
|
@@ -4825,40 +4951,62 @@ class AuroFormValidation {
|
|
|
4825
4951
|
/**
|
|
4826
4952
|
* Auro-input provides users a way to enter data into a text field.
|
|
4827
4953
|
*
|
|
4828
|
-
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
4829
|
-
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
4830
|
-
*
|
|
4831
4954
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
4832
4955
|
* @attr id
|
|
4833
4956
|
*
|
|
4834
|
-
* @slot
|
|
4957
|
+
* @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
|
|
4958
|
+
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
4959
|
+
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
4960
|
+
* @slot helpText - Sets the help text displayed below the input.
|
|
4835
4961
|
* @slot label - Sets the label text for the input.
|
|
4962
|
+
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
4963
|
+
* @slot displayValue - Allows custom HTML content to display in place of the value when the input is not focused.
|
|
4836
4964
|
*
|
|
4837
4965
|
* @csspart wrapper - Use for customizing the style of the root element
|
|
4838
4966
|
* @csspart label - Use for customizing the style of the label element
|
|
4839
4967
|
* @csspart helpText - Use for customizing the style of the helpText element
|
|
4968
|
+
* @csspart input - Use for customizing the style of the input element
|
|
4840
4969
|
* @csspart accentIcon - Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon)
|
|
4841
4970
|
* @csspart iconContainer - Use for customizing the style of the iconContainer (e.g. X icon for clearing input value)
|
|
4971
|
+
* @csspart accent-left - Use for customizing the style of the left accent element (e.g. padding, margin)
|
|
4972
|
+
* @csspart accent-right - Use for customizing the style of the right accent element (e.g. padding, margin)
|
|
4842
4973
|
* @event input - Event fires when the value of an `auro-input` has been changed.
|
|
4843
4974
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
4844
4975
|
*/
|
|
4845
4976
|
|
|
4846
|
-
class BaseInput extends
|
|
4977
|
+
class BaseInput extends AuroElement$2 {
|
|
4847
4978
|
|
|
4848
4979
|
constructor() {
|
|
4849
4980
|
super();
|
|
4850
4981
|
|
|
4982
|
+
this.activeLabel = false;
|
|
4851
4983
|
this.icon = false;
|
|
4852
4984
|
this.disabled = false;
|
|
4853
|
-
this.required = false;
|
|
4854
|
-
this.noValidate = false;
|
|
4855
4985
|
this.max = undefined;
|
|
4856
|
-
this.min = undefined;
|
|
4857
4986
|
this.maxLength = undefined;
|
|
4987
|
+
this.min = undefined;
|
|
4858
4988
|
this.minLength = undefined;
|
|
4989
|
+
this.noValidate = false;
|
|
4859
4990
|
this.onDark = false;
|
|
4860
|
-
this.
|
|
4991
|
+
this.required = false;
|
|
4861
4992
|
this.setCustomValidityForType = undefined;
|
|
4993
|
+
|
|
4994
|
+
/**
|
|
4995
|
+
* @private
|
|
4996
|
+
*/
|
|
4997
|
+
this.layout = 'classic';
|
|
4998
|
+
|
|
4999
|
+
/**
|
|
5000
|
+
* @private
|
|
5001
|
+
*/
|
|
5002
|
+
this.shape = 'classic';
|
|
5003
|
+
|
|
5004
|
+
/**
|
|
5005
|
+
* @private
|
|
5006
|
+
*/
|
|
5007
|
+
this.size = 'lg';
|
|
5008
|
+
|
|
5009
|
+
this.privateDefaults();
|
|
4862
5010
|
}
|
|
4863
5011
|
|
|
4864
5012
|
/**
|
|
@@ -4875,6 +5023,7 @@ class BaseInput extends LitElement {
|
|
|
4875
5023
|
this.validationCCLength = undefined;
|
|
4876
5024
|
this.hasValue = false;
|
|
4877
5025
|
this.label = 'Input label is undefined';
|
|
5026
|
+
this.placeholderStr = '';
|
|
4878
5027
|
|
|
4879
5028
|
this.allowedInputTypes = [
|
|
4880
5029
|
"text",
|
|
@@ -4921,16 +5070,16 @@ class BaseInput extends LitElement {
|
|
|
4921
5070
|
.substring(idSubstrStart, idSubstrEnd);
|
|
4922
5071
|
}
|
|
4923
5072
|
|
|
4924
|
-
// function to define props used within the scope of this
|
|
5073
|
+
// function to define props used within the scope of this component
|
|
4925
5074
|
static get properties() {
|
|
4926
5075
|
return {
|
|
5076
|
+
...super.properties,
|
|
4927
5077
|
|
|
4928
5078
|
/**
|
|
4929
5079
|
* The value for the role attribute.
|
|
4930
5080
|
*/
|
|
4931
5081
|
a11yRole: {
|
|
4932
5082
|
type: String,
|
|
4933
|
-
attribute: true,
|
|
4934
5083
|
reflect: true
|
|
4935
5084
|
},
|
|
4936
5085
|
|
|
@@ -4939,7 +5088,6 @@ class BaseInput extends LitElement {
|
|
|
4939
5088
|
*/
|
|
4940
5089
|
a11yExpanded: {
|
|
4941
5090
|
type: Boolean,
|
|
4942
|
-
attribute: true,
|
|
4943
5091
|
reflect: true
|
|
4944
5092
|
},
|
|
4945
5093
|
|
|
@@ -4948,7 +5096,6 @@ class BaseInput extends LitElement {
|
|
|
4948
5096
|
*/
|
|
4949
5097
|
a11yControls: {
|
|
4950
5098
|
type: String,
|
|
4951
|
-
attribute: true,
|
|
4952
5099
|
reflect: true
|
|
4953
5100
|
},
|
|
4954
5101
|
|
|
@@ -4964,7 +5111,8 @@ class BaseInput extends LitElement {
|
|
|
4964
5111
|
* 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].
|
|
4965
5112
|
*/
|
|
4966
5113
|
autocapitalize: {
|
|
4967
|
-
type: String
|
|
5114
|
+
type: String,
|
|
5115
|
+
reflect: true
|
|
4968
5116
|
},
|
|
4969
5117
|
|
|
4970
5118
|
/**
|
|
@@ -4979,7 +5127,8 @@ class BaseInput extends LitElement {
|
|
|
4979
5127
|
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
4980
5128
|
*/
|
|
4981
5129
|
autocorrect: {
|
|
4982
|
-
type: String
|
|
5130
|
+
type: String,
|
|
5131
|
+
reflect: true
|
|
4983
5132
|
},
|
|
4984
5133
|
|
|
4985
5134
|
/**
|
|
@@ -5024,7 +5173,6 @@ class BaseInput extends LitElement {
|
|
|
5024
5173
|
/** Exposes inputmode attribute for input. */
|
|
5025
5174
|
inputmode: {
|
|
5026
5175
|
type: String,
|
|
5027
|
-
attribute: true,
|
|
5028
5176
|
reflect: true
|
|
5029
5177
|
},
|
|
5030
5178
|
|
|
@@ -5032,7 +5180,8 @@ class BaseInput extends LitElement {
|
|
|
5032
5180
|
* Defines the language of an element.
|
|
5033
5181
|
*/
|
|
5034
5182
|
lang: {
|
|
5035
|
-
type: String
|
|
5183
|
+
type: String,
|
|
5184
|
+
reflect: true
|
|
5036
5185
|
},
|
|
5037
5186
|
|
|
5038
5187
|
/**
|
|
@@ -5046,7 +5195,8 @@ class BaseInput extends LitElement {
|
|
|
5046
5195
|
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
5047
5196
|
*/
|
|
5048
5197
|
maxLength: {
|
|
5049
|
-
type: Number
|
|
5198
|
+
type: Number,
|
|
5199
|
+
reflect: true
|
|
5050
5200
|
},
|
|
5051
5201
|
|
|
5052
5202
|
/**
|
|
@@ -5060,14 +5210,25 @@ class BaseInput extends LitElement {
|
|
|
5060
5210
|
* 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`.
|
|
5061
5211
|
*/
|
|
5062
5212
|
minLength: {
|
|
5063
|
-
type: Number
|
|
5213
|
+
type: Number,
|
|
5214
|
+
reflect: true
|
|
5064
5215
|
},
|
|
5065
5216
|
|
|
5066
5217
|
/**
|
|
5067
5218
|
* Populates the `name` attribute on the input.
|
|
5068
5219
|
*/
|
|
5069
5220
|
name: {
|
|
5070
|
-
type: String
|
|
5221
|
+
type: String,
|
|
5222
|
+
reflect: true
|
|
5223
|
+
},
|
|
5224
|
+
|
|
5225
|
+
/**
|
|
5226
|
+
* Sets styles for nested operation - removes borders, hides help + error text, and
|
|
5227
|
+
* hides accents.
|
|
5228
|
+
*/
|
|
5229
|
+
nested: {
|
|
5230
|
+
type: Boolean,
|
|
5231
|
+
reflect: true
|
|
5071
5232
|
},
|
|
5072
5233
|
|
|
5073
5234
|
/**
|
|
@@ -5095,10 +5256,11 @@ class BaseInput extends LitElement {
|
|
|
5095
5256
|
},
|
|
5096
5257
|
|
|
5097
5258
|
/**
|
|
5098
|
-
* Define custom placeholder text
|
|
5259
|
+
* Define custom placeholder text.
|
|
5099
5260
|
*/
|
|
5100
5261
|
placeholder: {
|
|
5101
|
-
type: String
|
|
5262
|
+
type: String,
|
|
5263
|
+
reflect: true
|
|
5102
5264
|
},
|
|
5103
5265
|
|
|
5104
5266
|
/**
|
|
@@ -5187,6 +5349,14 @@ class BaseInput extends LitElement {
|
|
|
5187
5349
|
type: String
|
|
5188
5350
|
},
|
|
5189
5351
|
|
|
5352
|
+
/**
|
|
5353
|
+
* Simple makes the input render without a border.
|
|
5354
|
+
*/
|
|
5355
|
+
simple: {
|
|
5356
|
+
type: Boolean,
|
|
5357
|
+
reflect: true
|
|
5358
|
+
},
|
|
5359
|
+
|
|
5190
5360
|
/**
|
|
5191
5361
|
* Custom help text message for email type validity.
|
|
5192
5362
|
*/
|
|
@@ -5198,7 +5368,8 @@ class BaseInput extends LitElement {
|
|
|
5198
5368
|
* 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`.
|
|
5199
5369
|
*/
|
|
5200
5370
|
spellcheck: {
|
|
5201
|
-
type: String
|
|
5371
|
+
type: String,
|
|
5372
|
+
reflect: true
|
|
5202
5373
|
},
|
|
5203
5374
|
|
|
5204
5375
|
/**
|
|
@@ -5244,8 +5415,8 @@ class BaseInput extends LitElement {
|
|
|
5244
5415
|
},
|
|
5245
5416
|
|
|
5246
5417
|
/**
|
|
5418
|
+
* The id for input node.
|
|
5247
5419
|
* @private
|
|
5248
|
-
* id for input node
|
|
5249
5420
|
*/
|
|
5250
5421
|
inputId: {
|
|
5251
5422
|
type: String,
|
|
@@ -5255,20 +5426,9 @@ class BaseInput extends LitElement {
|
|
|
5255
5426
|
};
|
|
5256
5427
|
}
|
|
5257
5428
|
|
|
5258
|
-
|
|
5259
|
-
static get styles() {
|
|
5260
|
-
return [
|
|
5261
|
-
css`${colorCss$4}`,
|
|
5262
|
-
css`${styleCss$4}`,
|
|
5263
|
-
css`${tokensCss$4}`
|
|
5264
|
-
];
|
|
5265
|
-
}
|
|
5266
|
-
|
|
5267
5429
|
connectedCallback() {
|
|
5268
5430
|
super.connectedCallback();
|
|
5269
5431
|
|
|
5270
|
-
this.privateDefaults();
|
|
5271
|
-
|
|
5272
5432
|
notifyOnLangChange(this);
|
|
5273
5433
|
}
|
|
5274
5434
|
|
|
@@ -5278,15 +5438,21 @@ class BaseInput extends LitElement {
|
|
|
5278
5438
|
}
|
|
5279
5439
|
|
|
5280
5440
|
firstUpdated() {
|
|
5441
|
+
// clicking anywhere in the main wrapper will focus the input. Clicking the helpText or label will not focus the input.
|
|
5442
|
+
this.wrapperElement = this.shadowRoot.querySelector('.wrapper');
|
|
5443
|
+
this.inputElement = this.renderRoot.querySelector('input');
|
|
5444
|
+
this.labelElement = this.shadowRoot.querySelector('label');
|
|
5445
|
+
|
|
5446
|
+
if (this.wrapperElement) {
|
|
5447
|
+
this.wrapperElement.addEventListener('click', this.handleClick);
|
|
5448
|
+
}
|
|
5449
|
+
|
|
5281
5450
|
// add attribute for query selectors when auro-input is registered under a custom name
|
|
5282
5451
|
if (this.tagName.toLowerCase() !== 'auro-input') {
|
|
5283
5452
|
this.setAttribute('auro-input', true);
|
|
5284
5453
|
}
|
|
5285
5454
|
this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
|
|
5286
5455
|
|
|
5287
|
-
this.inputElement = this.renderRoot.querySelector('input');
|
|
5288
|
-
this.labelElement = this.shadowRoot.querySelector('label');
|
|
5289
|
-
|
|
5290
5456
|
if (this.format) {
|
|
5291
5457
|
this.format = this.format.toLowerCase();
|
|
5292
5458
|
}
|
|
@@ -5296,6 +5462,7 @@ class BaseInput extends LitElement {
|
|
|
5296
5462
|
this.ValidityMessageOverride = this.setCustomValidity;
|
|
5297
5463
|
}
|
|
5298
5464
|
|
|
5465
|
+
this.getPlaceholder();
|
|
5299
5466
|
this.setCustomHelpTextMessage();
|
|
5300
5467
|
this.configureAutoFormatting();
|
|
5301
5468
|
}
|
|
@@ -5332,6 +5499,8 @@ class BaseInput extends LitElement {
|
|
|
5332
5499
|
* @returns {void}
|
|
5333
5500
|
*/
|
|
5334
5501
|
updated(changedProperties) {
|
|
5502
|
+
super.updated(changedProperties);
|
|
5503
|
+
|
|
5335
5504
|
if (changedProperties.has('format')) {
|
|
5336
5505
|
this.configureAutoFormatting();
|
|
5337
5506
|
}
|
|
@@ -5381,9 +5550,9 @@ class BaseInput extends LitElement {
|
|
|
5381
5550
|
if (!this.shadowRoot.contains(this.getActiveElement())) {
|
|
5382
5551
|
this.validation.validate(this);
|
|
5383
5552
|
}
|
|
5384
|
-
|
|
5385
|
-
this.notifyValueChanged();
|
|
5386
5553
|
}
|
|
5554
|
+
|
|
5555
|
+
this.notifyValueChanged();
|
|
5387
5556
|
}
|
|
5388
5557
|
|
|
5389
5558
|
if (changedProperties.has('error')) {
|
|
@@ -5452,15 +5621,6 @@ class BaseInput extends LitElement {
|
|
|
5452
5621
|
return this.pattern;
|
|
5453
5622
|
}
|
|
5454
5623
|
|
|
5455
|
-
/**
|
|
5456
|
-
* Function to set element focus.
|
|
5457
|
-
* @private
|
|
5458
|
-
* @return {void}
|
|
5459
|
-
*/
|
|
5460
|
-
focus() {
|
|
5461
|
-
this.inputElement.focus();
|
|
5462
|
-
}
|
|
5463
|
-
|
|
5464
5624
|
/**
|
|
5465
5625
|
* Required to convert SVG icons from data to HTML string.
|
|
5466
5626
|
* @private
|
|
@@ -5490,6 +5650,24 @@ class BaseInput extends LitElement {
|
|
|
5490
5650
|
this.dispatchEvent(inputEvent);
|
|
5491
5651
|
}
|
|
5492
5652
|
|
|
5653
|
+
|
|
5654
|
+
/**
|
|
5655
|
+
* Handles clicking on the auro-input anywhere outside of the HTML5 input and still moving focus in.
|
|
5656
|
+
* @private
|
|
5657
|
+
* @return {void}
|
|
5658
|
+
*/
|
|
5659
|
+
handleClick() {
|
|
5660
|
+
this.focus();
|
|
5661
|
+
}
|
|
5662
|
+
|
|
5663
|
+
/**
|
|
5664
|
+
* Function to set element focus.
|
|
5665
|
+
* @return {void}
|
|
5666
|
+
*/
|
|
5667
|
+
focus() {
|
|
5668
|
+
this.inputElement.focus();
|
|
5669
|
+
}
|
|
5670
|
+
|
|
5493
5671
|
/**
|
|
5494
5672
|
* Handles event of clearing input content by clicking the X icon.
|
|
5495
5673
|
* @private
|
|
@@ -5499,9 +5677,9 @@ class BaseInput extends LitElement {
|
|
|
5499
5677
|
this.inputElement.value = "";
|
|
5500
5678
|
this.value = "";
|
|
5501
5679
|
this.labelElement.classList.remove('inputElement-label--sticky');
|
|
5680
|
+
this.notifyValueChanged();
|
|
5502
5681
|
this.focus();
|
|
5503
5682
|
this.validation.validate(this);
|
|
5504
|
-
this.notifyValueChanged();
|
|
5505
5683
|
}
|
|
5506
5684
|
|
|
5507
5685
|
/**
|
|
@@ -5537,10 +5715,23 @@ class BaseInput extends LitElement {
|
|
|
5537
5715
|
* @return {void}
|
|
5538
5716
|
*/
|
|
5539
5717
|
handleFocusin() {
|
|
5718
|
+
this.hasFocus = true;
|
|
5719
|
+
|
|
5720
|
+
this.getPlaceholder();
|
|
5540
5721
|
|
|
5541
5722
|
this.touched = true;
|
|
5542
5723
|
}
|
|
5543
5724
|
|
|
5725
|
+
/**
|
|
5726
|
+
* Function to support @focusout event.
|
|
5727
|
+
* @private
|
|
5728
|
+
* @return {void}
|
|
5729
|
+
*/
|
|
5730
|
+
handleFocusout() {
|
|
5731
|
+
this.hasFocus = false;
|
|
5732
|
+
this.getPlaceholder();
|
|
5733
|
+
}
|
|
5734
|
+
|
|
5544
5735
|
/**
|
|
5545
5736
|
* Function to support @blur event.
|
|
5546
5737
|
* @private
|
|
@@ -5583,13 +5774,21 @@ class BaseInput extends LitElement {
|
|
|
5583
5774
|
}
|
|
5584
5775
|
|
|
5585
5776
|
/**
|
|
5586
|
-
* Resets component to initial state.
|
|
5777
|
+
* Resets component to initial state, including resetting the touched state and validity.
|
|
5587
5778
|
* @returns {void}
|
|
5588
5779
|
*/
|
|
5589
5780
|
reset() {
|
|
5781
|
+
this.value = undefined;
|
|
5590
5782
|
this.validation.reset(this);
|
|
5591
5783
|
}
|
|
5592
5784
|
|
|
5785
|
+
/**
|
|
5786
|
+
* Clears the input value.
|
|
5787
|
+
*/
|
|
5788
|
+
clear() {
|
|
5789
|
+
this.value = undefined;
|
|
5790
|
+
}
|
|
5791
|
+
|
|
5593
5792
|
/**
|
|
5594
5793
|
* Sets configuration data used elsewhere based on the `type` attribute.
|
|
5595
5794
|
* @private
|
|
@@ -5665,16 +5864,18 @@ class BaseInput extends LitElement {
|
|
|
5665
5864
|
/**
|
|
5666
5865
|
* Support placeholder text.
|
|
5667
5866
|
* @private
|
|
5668
|
-
* @returns {
|
|
5867
|
+
* @returns {void}
|
|
5669
5868
|
*/
|
|
5670
5869
|
getPlaceholder() {
|
|
5671
5870
|
if (this.placeholder) {
|
|
5672
|
-
|
|
5871
|
+
this.placeholderStr = this.placeholder;
|
|
5673
5872
|
} else if (this.type === 'date') {
|
|
5674
|
-
|
|
5873
|
+
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
5675
5874
|
}
|
|
5676
5875
|
|
|
5677
|
-
|
|
5876
|
+
this.requestUpdate();
|
|
5877
|
+
|
|
5878
|
+
return this.placeholderStr;
|
|
5678
5879
|
}
|
|
5679
5880
|
|
|
5680
5881
|
/**
|
|
@@ -5841,7 +6042,7 @@ class BaseInput extends LitElement {
|
|
|
5841
6042
|
// See LICENSE in the project root for license information.
|
|
5842
6043
|
|
|
5843
6044
|
|
|
5844
|
-
|
|
6045
|
+
class AuroDependencyVersioning {
|
|
5845
6046
|
|
|
5846
6047
|
/**
|
|
5847
6048
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -5875,7 +6076,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
5875
6076
|
|
|
5876
6077
|
return tag;
|
|
5877
6078
|
}
|
|
5878
|
-
}
|
|
6079
|
+
}
|
|
5879
6080
|
|
|
5880
6081
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5881
6082
|
// See LICENSE in the project root for license information.
|
|
@@ -5887,7 +6088,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
5887
6088
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
5888
6089
|
*/
|
|
5889
6090
|
|
|
5890
|
-
class AuroElement extends LitElement {
|
|
6091
|
+
let AuroElement$1 = class AuroElement extends LitElement {
|
|
5891
6092
|
|
|
5892
6093
|
// function to define props used within the scope of this component
|
|
5893
6094
|
static get properties() {
|
|
@@ -5911,7 +6112,7 @@ class AuroElement extends LitElement {
|
|
|
5911
6112
|
|
|
5912
6113
|
return 'false'
|
|
5913
6114
|
}
|
|
5914
|
-
}
|
|
6115
|
+
};
|
|
5915
6116
|
|
|
5916
6117
|
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>"};
|
|
5917
6118
|
|
|
@@ -5955,7 +6156,7 @@ var styleCss$3 = css`:focus:not(:focus-visible){outline:3px solid transparent}.u
|
|
|
5955
6156
|
*/
|
|
5956
6157
|
|
|
5957
6158
|
// build the component class
|
|
5958
|
-
class BaseIcon extends AuroElement {
|
|
6159
|
+
class BaseIcon extends AuroElement$1 {
|
|
5959
6160
|
constructor() {
|
|
5960
6161
|
super();
|
|
5961
6162
|
this.onDark = false;
|
|
@@ -6029,7 +6230,7 @@ class BaseIcon extends AuroElement {
|
|
|
6029
6230
|
|
|
6030
6231
|
var tokensCss$3 = css`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color:#02426D;--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}`;
|
|
6031
6232
|
|
|
6032
|
-
var colorCss$3 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}`;
|
|
6233
|
+
var colorCss$3 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
6033
6234
|
|
|
6034
6235
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6035
6236
|
// See LICENSE in the project root for license information.
|
|
@@ -6038,7 +6239,7 @@ var colorCss$3 = css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
|
|
|
6038
6239
|
|
|
6039
6240
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6040
6241
|
|
|
6041
|
-
let AuroLibraryRuntimeUtils$
|
|
6242
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
6042
6243
|
|
|
6043
6244
|
/* eslint-disable jsdoc/require-param */
|
|
6044
6245
|
|
|
@@ -6120,7 +6321,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6120
6321
|
*/
|
|
6121
6322
|
privateDefaults() {
|
|
6122
6323
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
6123
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
6324
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
6124
6325
|
}
|
|
6125
6326
|
|
|
6126
6327
|
// function to define props used within the scope of this component
|
|
@@ -6148,7 +6349,8 @@ class AuroIcon extends BaseIcon {
|
|
|
6148
6349
|
* Allows custom color to be set.
|
|
6149
6350
|
*/
|
|
6150
6351
|
customColor: {
|
|
6151
|
-
type: Boolean
|
|
6352
|
+
type: Boolean,
|
|
6353
|
+
reflect: true
|
|
6152
6354
|
},
|
|
6153
6355
|
|
|
6154
6356
|
/**
|
|
@@ -6202,7 +6404,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6202
6404
|
*
|
|
6203
6405
|
*/
|
|
6204
6406
|
static register(name = "auro-icon") {
|
|
6205
|
-
AuroLibraryRuntimeUtils$
|
|
6407
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
|
|
6206
6408
|
}
|
|
6207
6409
|
|
|
6208
6410
|
connectedCallback() {
|
|
@@ -6223,8 +6425,12 @@ class AuroIcon extends BaseIcon {
|
|
|
6223
6425
|
async firstUpdated() {
|
|
6224
6426
|
await super.firstUpdated();
|
|
6225
6427
|
|
|
6226
|
-
|
|
6227
|
-
|
|
6428
|
+
/**
|
|
6429
|
+
* icons provide a description for screen readers. Icon only instances Auro-button
|
|
6430
|
+
* depend on this description to provide context for the user using a screen reader.
|
|
6431
|
+
* Removes the SVG description for screen reader if ariaHidden is set to true.
|
|
6432
|
+
*/
|
|
6433
|
+
if (this.hasAttribute('ariaHidden') && this.svg) {
|
|
6228
6434
|
const svgDesc = this.svg.querySelector('desc');
|
|
6229
6435
|
|
|
6230
6436
|
if (svgDesc) {
|
|
@@ -6268,123 +6474,480 @@ class AuroIcon extends BaseIcon {
|
|
|
6268
6474
|
}
|
|
6269
6475
|
}
|
|
6270
6476
|
|
|
6271
|
-
var iconVersion = '8.0.
|
|
6272
|
-
|
|
6273
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6274
|
-
// See LICENSE in the project root for license information.
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
class AuroDependencyVersioning {
|
|
6477
|
+
var iconVersion = '8.0.4';
|
|
6278
6478
|
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
6284
|
-
* @returns {string} - Unique string to be used for naming.
|
|
6285
|
-
*/
|
|
6286
|
-
generateElementName(baseName, version) {
|
|
6287
|
-
let result = baseName;
|
|
6479
|
+
/**
|
|
6480
|
+
* Private module-level WeakMap to hold MutationObservers for each host element.
|
|
6481
|
+
*/
|
|
6482
|
+
const _observers = new WeakMap();
|
|
6288
6483
|
|
|
6289
|
-
|
|
6290
|
-
|
|
6484
|
+
/**
|
|
6485
|
+
* Private module-level WeakMap to hold attribute matchers and targets for each host element.
|
|
6486
|
+
* Structure: {
|
|
6487
|
+
* host: {
|
|
6488
|
+
* matchers: Set<Function>,
|
|
6489
|
+
* targets: Map<HTMLElement, Map<Function, {removeOriginal: boolean, currentAttributes: Map<string, string>}>>
|
|
6490
|
+
* }
|
|
6491
|
+
* }
|
|
6492
|
+
*/
|
|
6493
|
+
const _transportConfig = new WeakMap();
|
|
6291
6494
|
|
|
6292
|
-
|
|
6495
|
+
/**
|
|
6496
|
+
* Transfers all matching attributes from a host element to a target element and observes for future changes.
|
|
6497
|
+
*
|
|
6498
|
+
* @param {Object} params - The parameters for the function.
|
|
6499
|
+
* @param {HTMLElement} params.host - The host element from which attributes will be transported.
|
|
6500
|
+
* @param {HTMLElement} params.target - The target element to which attributes will be transported.
|
|
6501
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove the attributes from the host element.
|
|
6502
|
+
* @param {boolean} [params.observe=true] - Whether to attach a MutationObserver to the host element.
|
|
6503
|
+
* @returns {Function} A function to detach the observer when no longer needed.
|
|
6504
|
+
* @throws {TypeError} If the host or target parameters are not instances of HTMLElement.
|
|
6505
|
+
*/
|
|
6506
|
+
const transportAttributes = ({ host, target, match, removeOriginal = true }) => {
|
|
6507
|
+
// Guard Clause: Ensure host is valid HTMLElement instance
|
|
6508
|
+
if (typeof host !== 'object' || !(host instanceof HTMLElement)) {
|
|
6509
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');
|
|
6293
6510
|
}
|
|
6294
6511
|
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
* @returns {string} - Unique string to be used for naming.
|
|
6300
|
-
*/
|
|
6301
|
-
generateTag(baseName, version, tagClass) {
|
|
6302
|
-
const elementName = this.generateElementName(baseName, version);
|
|
6303
|
-
const tag = literal`${unsafeStatic(elementName)}`;
|
|
6304
|
-
|
|
6305
|
-
if (!customElements.get(elementName)) {
|
|
6306
|
-
customElements.define(elementName, class extends tagClass {});
|
|
6307
|
-
}
|
|
6512
|
+
// Guard Clause: Ensure target is valid HTMLElement instance
|
|
6513
|
+
if (typeof target !== 'object' || !(target instanceof HTMLElement)) {
|
|
6514
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');
|
|
6515
|
+
}
|
|
6308
6516
|
|
|
6309
|
-
|
|
6517
|
+
// Guard Clause: Ensure match is a function
|
|
6518
|
+
if (typeof match !== 'function') {
|
|
6519
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');
|
|
6310
6520
|
}
|
|
6311
|
-
}
|
|
6312
6521
|
|
|
6313
|
-
//
|
|
6314
|
-
|
|
6522
|
+
// Guard Clause: Ensure removeOriginal is a boolean
|
|
6523
|
+
if (typeof removeOriginal !== 'boolean') {
|
|
6524
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');
|
|
6525
|
+
}
|
|
6526
|
+
|
|
6527
|
+
// Register this transport and get cleanup function
|
|
6528
|
+
return _registerTransport({
|
|
6529
|
+
host,
|
|
6530
|
+
target,
|
|
6531
|
+
matcher: match,
|
|
6532
|
+
removeOriginal
|
|
6533
|
+
});
|
|
6534
|
+
};
|
|
6315
6535
|
|
|
6316
|
-
|
|
6536
|
+
/**
|
|
6537
|
+
* Registers a matcher and target for a host element and attaches an observer if needed.
|
|
6538
|
+
*
|
|
6539
|
+
* @param {Object} params - The parameters object.
|
|
6540
|
+
* @param {HTMLElement} params.host - The host element to observe.
|
|
6541
|
+
* @param {HTMLElement} params.target - The target element to receive attributes.
|
|
6542
|
+
* @param {Function} params.matcher - Function that determines which attributes to transport.
|
|
6543
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes.
|
|
6544
|
+
* @param {boolean} [params.observe=true] - Whether to observe for attribute changes.
|
|
6545
|
+
* @returns {Function} Function to detach the specific matcher and target pairing.
|
|
6546
|
+
* @private
|
|
6547
|
+
*/
|
|
6548
|
+
const _registerTransport = ({ host, target, matcher, removeOriginal = true }) => {
|
|
6549
|
+
// Initialize config for this host if it doesn't exist
|
|
6550
|
+
if (!_transportConfig.has(host)) {
|
|
6551
|
+
_transportConfig.set(host, {
|
|
6552
|
+
matchers: new Set(),
|
|
6553
|
+
targets: new Map()
|
|
6554
|
+
});
|
|
6555
|
+
}
|
|
6317
6556
|
|
|
6318
|
-
|
|
6557
|
+
const config = _transportConfig.get(host);
|
|
6558
|
+
|
|
6559
|
+
// Add the matcher to the set of matchers for this host
|
|
6560
|
+
config.matchers.add(matcher);
|
|
6561
|
+
|
|
6562
|
+
// Initialize target entry if it doesn't exist
|
|
6563
|
+
if (!config.targets.has(target)) {
|
|
6564
|
+
config.targets.set(target, new Map());
|
|
6565
|
+
}
|
|
6566
|
+
|
|
6567
|
+
// Store the matcher with its removeOriginal setting for this target
|
|
6568
|
+
config.targets.get(target).set(matcher, {
|
|
6569
|
+
removeOriginal,
|
|
6570
|
+
currentAttributes: new Map()
|
|
6571
|
+
});
|
|
6572
|
+
|
|
6573
|
+
// Perform initial attribute transport
|
|
6574
|
+
_transportAttributes({ host, target, matcher, removeOriginal });
|
|
6575
|
+
|
|
6576
|
+
// Attach observer
|
|
6577
|
+
_attachObserver(host);
|
|
6578
|
+
|
|
6579
|
+
// Return cleanup function and utility functions
|
|
6580
|
+
return {
|
|
6581
|
+
cleanup: () => _cleanupTransport(host, target, matcher),
|
|
6582
|
+
getObservedAttributes: () => _getObservedAttributes(host, target, matcher),
|
|
6583
|
+
getObservedAttribute: (attr) => _getObservedAttribute(host, target, matcher, attr),
|
|
6584
|
+
}
|
|
6585
|
+
};
|
|
6319
6586
|
|
|
6320
|
-
|
|
6587
|
+
/**
|
|
6588
|
+
* Cleans up resources associated with a specific matcher and target for a host element.
|
|
6589
|
+
*
|
|
6590
|
+
* @param {HTMLElement} host - The host element
|
|
6591
|
+
* @param {HTMLElement} target - The target element
|
|
6592
|
+
* @param {Function} matcher - The matcher function
|
|
6593
|
+
* @private
|
|
6594
|
+
*/
|
|
6595
|
+
const _cleanupTransport = (host, target, matcher) => {
|
|
6596
|
+
const config = _transportConfig.get(host);
|
|
6597
|
+
if (!config) return;
|
|
6598
|
+
|
|
6599
|
+
// Remove this matcher from this target
|
|
6600
|
+
const targetMatchers = config.targets.get(target);
|
|
6601
|
+
if (targetMatchers) {
|
|
6602
|
+
targetMatchers.delete(matcher);
|
|
6603
|
+
|
|
6604
|
+
// If this target has no more matchers, remove it
|
|
6605
|
+
if (targetMatchers.size === 0) {
|
|
6606
|
+
config.targets.delete(target);
|
|
6607
|
+
}
|
|
6608
|
+
}
|
|
6609
|
+
|
|
6610
|
+
// Check if this matcher is still used by any target
|
|
6611
|
+
let matcherStillUsed = false;
|
|
6612
|
+
for (const matcherMap of config.targets.values()) {
|
|
6613
|
+
if (matcherMap.has(matcher)) {
|
|
6614
|
+
matcherStillUsed = true;
|
|
6615
|
+
break;
|
|
6616
|
+
}
|
|
6617
|
+
}
|
|
6618
|
+
|
|
6619
|
+
// If not used anymore, remove from matchers set
|
|
6620
|
+
if (!matcherStillUsed) {
|
|
6621
|
+
config.matchers.delete(matcher);
|
|
6622
|
+
}
|
|
6623
|
+
|
|
6624
|
+
// If no more targets or matchers, detach observer
|
|
6625
|
+
if (config.targets.size === 0 || config.matchers.size === 0) {
|
|
6626
|
+
_detachObserver(host);
|
|
6627
|
+
}
|
|
6628
|
+
};
|
|
6321
6629
|
|
|
6322
|
-
|
|
6630
|
+
/**
|
|
6631
|
+
* Generic function to transport attributes from a host element to a target element.
|
|
6632
|
+
*
|
|
6633
|
+
* @param {Object} params - The parameters object.
|
|
6634
|
+
* @param {HTMLElement} params.host - The host element from which to transport attributes.
|
|
6635
|
+
* @param {HTMLElement} params.target - The target element to which attributes will be transported.
|
|
6636
|
+
* @param {Function} params.matcher - Function that takes an attribute name and returns true if it should be transported.
|
|
6637
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes from host.
|
|
6638
|
+
* @returns {void}
|
|
6639
|
+
* @private
|
|
6640
|
+
*/
|
|
6641
|
+
const _transportAttributes = ({ host, target, matcher, removeOriginal = true }) => {
|
|
6642
|
+
// Get a list of all matching attributes on the host element and their values
|
|
6643
|
+
const matchingAttributes = host.getAttributeNames()
|
|
6644
|
+
.filter(attr => matcher(attr))
|
|
6645
|
+
.reduce((acc, attr) => {
|
|
6646
|
+
acc[attr] = host.getAttribute(attr);
|
|
6647
|
+
return acc;
|
|
6648
|
+
}, {});
|
|
6649
|
+
|
|
6650
|
+
// Move matching attributes to the target element, removing them from the host if removeOriginal is true
|
|
6651
|
+
Object.entries(matchingAttributes).forEach(([key, value]) => {
|
|
6652
|
+
_setObservedAttribute(host, target, matcher, key, value);
|
|
6653
|
+
target.setAttribute(key, value);
|
|
6654
|
+
if (removeOriginal) {
|
|
6655
|
+
host.removeAttribute(key);
|
|
6656
|
+
}
|
|
6657
|
+
});
|
|
6658
|
+
};
|
|
6659
|
+
|
|
6660
|
+
/**
|
|
6661
|
+
* Attaches a MutationObserver to the host element to monitor attribute changes.
|
|
6662
|
+
*
|
|
6663
|
+
* @param {HTMLElement} host - The element to observe for attribute changes.
|
|
6664
|
+
* @returns {MutationObserver} The observer instance.
|
|
6665
|
+
* @private
|
|
6666
|
+
*/
|
|
6667
|
+
const _attachObserver = (host) => {
|
|
6668
|
+
// If an observer for this host already exists, return it
|
|
6669
|
+
if (_observers.has(host)) {
|
|
6670
|
+
return _observers.get(host);
|
|
6671
|
+
}
|
|
6672
|
+
|
|
6673
|
+
// Create a new MutationObserver
|
|
6674
|
+
const observer = new MutationObserver((mutations) => {
|
|
6675
|
+
const config = _transportConfig.get(host);
|
|
6676
|
+
if (!config) return;
|
|
6677
|
+
|
|
6678
|
+
// For each mutation affecting attributes
|
|
6679
|
+
mutations
|
|
6680
|
+
.filter(mutation => mutation.type === 'attributes')
|
|
6681
|
+
.forEach(mutation => {
|
|
6682
|
+
const attributeName = mutation.attributeName;
|
|
6683
|
+
|
|
6684
|
+
// Find matchers that care about this attribute
|
|
6685
|
+
for (const matcher of config.matchers) {
|
|
6686
|
+
if (matcher(attributeName)) {
|
|
6687
|
+
// For each target that uses this matcher
|
|
6688
|
+
for (const [target, matcherConfigs] of config.targets.entries()) {
|
|
6689
|
+
if (matcherConfigs.has(matcher)) {
|
|
6690
|
+
const { removeOriginal } = matcherConfigs.get(matcher);
|
|
6691
|
+
_transportAttributes({
|
|
6692
|
+
host,
|
|
6693
|
+
target,
|
|
6694
|
+
matcher,
|
|
6695
|
+
removeOriginal
|
|
6696
|
+
});
|
|
6697
|
+
}
|
|
6698
|
+
}
|
|
6699
|
+
}
|
|
6700
|
+
}
|
|
6701
|
+
});
|
|
6702
|
+
});
|
|
6703
|
+
|
|
6704
|
+
// Start observing attribute changes
|
|
6705
|
+
observer.observe(host, { attributes: true });
|
|
6706
|
+
|
|
6707
|
+
// Store the observer
|
|
6708
|
+
_observers.set(host, observer);
|
|
6709
|
+
|
|
6710
|
+
return observer;
|
|
6711
|
+
};
|
|
6712
|
+
|
|
6713
|
+
/**
|
|
6714
|
+
* Detaches and cleans up the MutationObserver for a given host element.
|
|
6715
|
+
*
|
|
6716
|
+
* @param {HTMLElement} host - The element whose observer should be detached.
|
|
6717
|
+
* @private
|
|
6718
|
+
*/
|
|
6719
|
+
const _detachObserver = (host) => {
|
|
6720
|
+
if (_observers.has(host)) {
|
|
6721
|
+
const observer = _observers.get(host);
|
|
6722
|
+
observer.disconnect();
|
|
6723
|
+
_observers.delete(host);
|
|
6724
|
+
}
|
|
6725
|
+
|
|
6726
|
+
// Clean up the transport config as well
|
|
6727
|
+
if (_transportConfig.has(host)) {
|
|
6728
|
+
_transportConfig.delete(host);
|
|
6729
|
+
}
|
|
6730
|
+
};
|
|
6731
|
+
|
|
6732
|
+
/**
|
|
6733
|
+
* Gets the matcher configuration for a specific host, target, and matcher
|
|
6734
|
+
* @param {HTMLElement} host - The host element
|
|
6735
|
+
* @param {HTMLElement} target - The target element
|
|
6736
|
+
* @param {Function} matcher - The matcher function
|
|
6737
|
+
* @returns {Object|undefined} The matcher configuration if found
|
|
6738
|
+
* @private
|
|
6739
|
+
*/
|
|
6740
|
+
const _getMatcherConfig = (host, target, matcher) => {
|
|
6741
|
+
const config = _transportConfig.get(host);
|
|
6742
|
+
if (!config) return undefined;
|
|
6743
|
+
|
|
6744
|
+
const targetMatchers = config.targets.get(target);
|
|
6745
|
+
if (!targetMatchers) return undefined;
|
|
6746
|
+
|
|
6747
|
+
return targetMatchers.get(matcher);
|
|
6748
|
+
};
|
|
6749
|
+
|
|
6750
|
+
/**
|
|
6751
|
+
* Sets an observed attribute value
|
|
6752
|
+
* @param {HTMLElement} host - The host element
|
|
6753
|
+
* @param {HTMLElement} target - The target element
|
|
6754
|
+
* @param {Function} matcher - The matcher function
|
|
6755
|
+
* @param {string} key - The attribute name
|
|
6756
|
+
* @param {string} value - The attribute value
|
|
6757
|
+
* @private
|
|
6758
|
+
*/
|
|
6759
|
+
const _setObservedAttribute = (host, target, matcher, key, value) => {
|
|
6760
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6761
|
+
if (matcherConfig) {
|
|
6762
|
+
matcherConfig.currentAttributes.set(key, value);
|
|
6763
|
+
}
|
|
6764
|
+
};
|
|
6765
|
+
|
|
6766
|
+
const _getObservedAttribute = (host, target, matcher, attr) => {
|
|
6767
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6768
|
+
if (matcherConfig) return matcherConfig.currentAttributes.get(attr);
|
|
6769
|
+
return undefined;
|
|
6770
|
+
};
|
|
6771
|
+
|
|
6772
|
+
const _getObservedAttributes = (host, target, matcher) => {
|
|
6773
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6774
|
+
if (matcherConfig) return Array.from(matcherConfig.currentAttributes.entries());
|
|
6775
|
+
return [];
|
|
6776
|
+
};
|
|
6777
|
+
|
|
6778
|
+
const _matchers = {
|
|
6779
|
+
'aria-': attr => attr.startsWith('aria-'),
|
|
6780
|
+
'role': attr => attr.match(/^role$/)
|
|
6781
|
+
};
|
|
6782
|
+
|
|
6783
|
+
const transportAllA11yAttributes = ({ host, target, removeOriginal = true }) => {
|
|
6784
|
+
return transportAttributes({
|
|
6785
|
+
host,
|
|
6786
|
+
target,
|
|
6787
|
+
match: attr => {
|
|
6788
|
+
for (const key in _matchers) {
|
|
6789
|
+
if (_matchers[key](attr)) return true;
|
|
6790
|
+
}
|
|
6791
|
+
return false;
|
|
6792
|
+
},
|
|
6793
|
+
removeOriginal
|
|
6794
|
+
});
|
|
6795
|
+
};
|
|
6796
|
+
|
|
6797
|
+
class AuroElement extends LitElement {
|
|
6323
6798
|
|
|
6324
6799
|
/**
|
|
6325
|
-
*
|
|
6326
|
-
* @
|
|
6327
|
-
* @
|
|
6328
|
-
* @
|
|
6800
|
+
* @type {Object} return object from transportAttributes via a11yUtilities
|
|
6801
|
+
* @property {Function} cleanup - Function to clean up the attribute watcher.
|
|
6802
|
+
* @property {Function} getCurrentAttributes - Function to get the current attributes being watched and their values.
|
|
6803
|
+
* @property {Function} getObservedAttribute - Function to get the value of a specific observed attribute by name.
|
|
6804
|
+
* @private
|
|
6329
6805
|
*/
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6806
|
+
attributeWatcher;
|
|
6807
|
+
|
|
6808
|
+
static get properties() {
|
|
6809
|
+
return {
|
|
6810
|
+
|
|
6811
|
+
/**
|
|
6812
|
+
* Defines the layout of an element.
|
|
6813
|
+
* @default {'default'}
|
|
6814
|
+
*/
|
|
6815
|
+
layout: {
|
|
6816
|
+
type: String,
|
|
6817
|
+
attribute: "layout",
|
|
6818
|
+
reflect: true
|
|
6819
|
+
},
|
|
6820
|
+
|
|
6821
|
+
/**
|
|
6822
|
+
* Defines the shape of an element.
|
|
6823
|
+
* @property {'default', 'rounded', 'pill', 'circle'}
|
|
6824
|
+
* @default {'default'}
|
|
6825
|
+
*/
|
|
6826
|
+
shape: {
|
|
6827
|
+
type: String,
|
|
6828
|
+
attribute: "shape",
|
|
6829
|
+
reflect: true
|
|
6830
|
+
},
|
|
6831
|
+
|
|
6832
|
+
/**
|
|
6833
|
+
* Defines the size of an element.
|
|
6834
|
+
* @property {'xs', 'sm', 'md', 'lg', 'xl'}
|
|
6835
|
+
* @default {'md'}
|
|
6836
|
+
*/
|
|
6837
|
+
size: {
|
|
6838
|
+
type: String,
|
|
6839
|
+
attribute: "size",
|
|
6840
|
+
reflect: true
|
|
6841
|
+
},
|
|
6842
|
+
|
|
6843
|
+
/**
|
|
6844
|
+
* This Boolean attribute lets you specify that the element should be rendered in dark mode.
|
|
6845
|
+
* @default {false}
|
|
6846
|
+
*/
|
|
6847
|
+
onDark: {
|
|
6848
|
+
type: Boolean,
|
|
6849
|
+
attribute: "ondark",
|
|
6850
|
+
reflect: true
|
|
6851
|
+
},
|
|
6852
|
+
|
|
6853
|
+
/**
|
|
6854
|
+
* A reference to the wrapper element in the shadow DOM.
|
|
6855
|
+
* This is used to apply layout and shape classes dynamically.
|
|
6856
|
+
* @type {HTMLElement|null}
|
|
6857
|
+
* @default {null}
|
|
6858
|
+
* @private
|
|
6859
|
+
*/
|
|
6860
|
+
wrapper: {
|
|
6861
|
+
attribute: false,
|
|
6862
|
+
reflect: false
|
|
6863
|
+
}
|
|
6864
|
+
};
|
|
6865
|
+
}
|
|
6866
|
+
|
|
6867
|
+
|
|
6868
|
+
|
|
6869
|
+
resetShapeClasses() {
|
|
6870
|
+
if (this.shape && this.size) {
|
|
6871
|
+
|
|
6872
|
+
if (this.wrapper) {
|
|
6873
|
+
this.wrapper.classList.forEach((className) => {
|
|
6874
|
+
if (className.startsWith('shape-')) {
|
|
6875
|
+
this.wrapper.classList.remove(className);
|
|
6876
|
+
}
|
|
6877
|
+
});
|
|
6878
|
+
|
|
6879
|
+
this.wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
6880
|
+
}
|
|
6333
6881
|
}
|
|
6334
6882
|
}
|
|
6335
6883
|
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
6349
|
-
) {
|
|
6350
|
-
return __Closest(base);
|
|
6884
|
+
resetLayoutClasses() {
|
|
6885
|
+
if (this.layout) {
|
|
6886
|
+
if (this.wrapper) {
|
|
6887
|
+
this.wrapper.classList.forEach((className) => {
|
|
6888
|
+
if (className.startsWith('layout-')) {
|
|
6889
|
+
this.wrapper.classList.remove(className);
|
|
6890
|
+
}
|
|
6891
|
+
});
|
|
6892
|
+
|
|
6893
|
+
this.wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
6894
|
+
}
|
|
6895
|
+
}
|
|
6351
6896
|
}
|
|
6352
|
-
/* eslint-enable jsdoc/require-param */
|
|
6353
6897
|
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
* @returns {void}
|
|
6359
|
-
*/
|
|
6360
|
-
handleComponentTagRename(elem, tagName) {
|
|
6361
|
-
const tag = tagName.toLowerCase();
|
|
6362
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
6898
|
+
updateComponentArchitecture() {
|
|
6899
|
+
this.resetLayoutClasses();
|
|
6900
|
+
this.resetShapeClasses();
|
|
6901
|
+
}
|
|
6363
6902
|
|
|
6364
|
-
|
|
6365
|
-
|
|
6903
|
+
updated(changedProperties) {
|
|
6904
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
6905
|
+
this.updateComponentArchitecture();
|
|
6366
6906
|
}
|
|
6367
6907
|
}
|
|
6368
6908
|
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
* @param {Object} elem - The element to validate.
|
|
6372
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
6373
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
6374
|
-
*/
|
|
6375
|
-
elementMatch(elem, tagName) {
|
|
6376
|
-
const tag = tagName.toLowerCase();
|
|
6377
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
6909
|
+
firstUpdated() {
|
|
6910
|
+
super.firstUpdated();
|
|
6378
6911
|
|
|
6379
|
-
|
|
6912
|
+
// Set a reference to the wrapper element in the shadow DOM
|
|
6913
|
+
this.wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
6914
|
+
|
|
6915
|
+
// Initialize the transportation of ARIA attributes to the target element and get the disconnect function for cleanup
|
|
6916
|
+
this.attributeWatcher = transportAllA11yAttributes({ host: this, target: this.shadowRoot.querySelector('.wrapper') });
|
|
6380
6917
|
}
|
|
6381
|
-
};
|
|
6382
6918
|
|
|
6383
|
-
|
|
6919
|
+
disconnectedCallback() {
|
|
6920
|
+
super.disconnectedCallback();
|
|
6921
|
+
|
|
6922
|
+
// Cleanup the ARIA observer if it exists
|
|
6923
|
+
if (this.attributeWatcher) {
|
|
6924
|
+
this.attributeWatcher.cleanup();
|
|
6925
|
+
this.attributeWatcher = null;
|
|
6926
|
+
}
|
|
6927
|
+
}
|
|
6928
|
+
|
|
6929
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
6930
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
6931
|
+
render() {
|
|
6932
|
+
try {
|
|
6933
|
+
return this.renderLayout();
|
|
6934
|
+
} catch (error) {
|
|
6935
|
+
// failed to get the defined layout
|
|
6936
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
6937
|
+
|
|
6938
|
+
// fallback to the default layout
|
|
6939
|
+
return this.getLayout('default');
|
|
6940
|
+
}
|
|
6941
|
+
}
|
|
6942
|
+
}
|
|
6943
|
+
|
|
6944
|
+
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}`;
|
|
6945
|
+
|
|
6946
|
+
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)}`;
|
|
6384
6947
|
|
|
6385
|
-
var
|
|
6948
|
+
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}`;
|
|
6386
6949
|
|
|
6387
|
-
var tokensCss$2 = css`:host{--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}`;
|
|
6950
|
+
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}`;
|
|
6388
6951
|
|
|
6389
6952
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6390
6953
|
// See LICENSE in the project root for license information.
|
|
@@ -6456,7 +7019,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
6456
7019
|
}
|
|
6457
7020
|
};
|
|
6458
7021
|
|
|
6459
|
-
var styleCss$1 = css`: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;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
|
|
7022
|
+
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}}`;
|
|
6460
7023
|
|
|
6461
7024
|
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}`;
|
|
6462
7025
|
|
|
@@ -6589,7 +7152,7 @@ class AuroLoader extends LitElement {
|
|
|
6589
7152
|
<span part="element" class="loader node-${idx}"></span>
|
|
6590
7153
|
`)}
|
|
6591
7154
|
|
|
6592
|
-
<div class="no-animation">Loading...</div>
|
|
7155
|
+
<div class="no-animation body-default">Loading...</div>
|
|
6593
7156
|
|
|
6594
7157
|
${this.ringworm ? html`
|
|
6595
7158
|
<svg part="element" class="circular" viewBox="25 25 50 50">
|
|
@@ -6601,46 +7164,32 @@ class AuroLoader extends LitElement {
|
|
|
6601
7164
|
}
|
|
6602
7165
|
}
|
|
6603
7166
|
|
|
6604
|
-
var loaderVersion = '5.
|
|
7167
|
+
var loaderVersion = '5.1.0';
|
|
6605
7168
|
|
|
6606
|
-
/* eslint-disable max-lines */
|
|
6607
7169
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6608
7170
|
// See LICENSE in the project root for license information.
|
|
6609
7171
|
|
|
6610
7172
|
|
|
6611
7173
|
/**
|
|
6612
|
-
* @attr {Boolean} autofocus - This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user
|
|
6613
|
-
* @attr {Boolean} disabled - If set to true, button will become disabled and not allow for interactions
|
|
6614
|
-
* @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
|
|
6615
|
-
* @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
|
|
6616
|
-
* @attr {String} loadingText - 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.
|
|
6617
|
-
* @attr {Boolean} onDark - Set value for on-dark version of auro-button
|
|
6618
|
-
* @attr {Boolean} rounded - If set to true, the button will have a rounded shape
|
|
6619
|
-
* @attr {Boolean} slim - Set value for slim version of auro-button
|
|
6620
|
-
* @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
|
|
6621
|
-
* @attr {String} arialabel - Populates the `aria-label` attribute that is used to define a string that labels the current element. Use it in cases where a text label is not visible on the screen. If there is visible text labeling the element, use `aria-labelledby` instead.
|
|
6622
|
-
* @attr {String} arialabelledby - Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s), and its value should be one or more element IDs, which refer to elements that have the text needed for labeling. List multiple element IDs in a space delimited fashion.
|
|
6623
|
-
* @attr {Boolean} ariaexpanded - Populates the `aria-expanded` attribute that indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. This is an optional attribute for buttons.
|
|
6624
|
-
* @attr {String} id - Set the unique ID of an element.
|
|
6625
|
-
* @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
6626
|
-
* @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
|
|
6627
|
-
* @attr {String} value - Defines the value associated with the button which is submitted with the form data.
|
|
6628
|
-
* @attr {String} variant - Sets button variant option. Possible values are: `secondary`, `tertiary`
|
|
6629
|
-
* @attr {Boolean} secondary - DEPRECATED
|
|
6630
|
-
* @attr {Boolean} tertiary - DEPRECATED
|
|
6631
|
-
* @prop {Boolean} ready - When false the component API should not be called.
|
|
6632
|
-
* @event auroButton-ready - Notifies that the component has finished initializing.
|
|
6633
7174
|
* @slot - Default slot for the text of the button.
|
|
6634
|
-
* @slot icon - Slot to provide auro-icon for the button.
|
|
6635
7175
|
* @csspart button - Apply CSS to HTML5 button.
|
|
6636
7176
|
* @csspart loader - Apply CSS to auro-loader.
|
|
6637
7177
|
* @csspart text - Apply CSS to text slot.
|
|
6638
7178
|
* @csspart icon - Apply CSS to icon slot.
|
|
6639
7179
|
*/
|
|
6640
7180
|
|
|
6641
|
-
|
|
7181
|
+
const ICON_ONLY_SHAPES = ['circle', 'square'];
|
|
6642
7182
|
|
|
6643
|
-
|
|
7183
|
+
/**
|
|
7184
|
+
* AuroButton is a custom element that provides a styled, accessible button with support for various states and form association.
|
|
7185
|
+
* It is designed to be flexible, supporting loading states, icon slots, and integration with HTML5 forms.
|
|
7186
|
+
* @property {'default', 'rounded', 'pill', 'circle', 'square'} shape - Defines the shape of the button.
|
|
7187
|
+
* @property {'xs', 'sm', 'md', 'lg', 'xl'} size - Defines the size of the button.
|
|
7188
|
+
* @property {'primary', 'secondary', 'tertiary', 'ghost', 'flat'} variant - Sets the button variant.
|
|
7189
|
+
* @property {'submit', 'reset', 'button'} type - The type of button. Matches HTML5 Button Spec.
|
|
7190
|
+
* @property {boolean} onDark - Indicates if the button is rendered in dark mode.
|
|
7191
|
+
*/
|
|
7192
|
+
class AuroButton extends AuroElement {
|
|
6644
7193
|
|
|
6645
7194
|
/**
|
|
6646
7195
|
* Enables form association for this element.
|
|
@@ -6653,19 +7202,15 @@ class AuroButton extends LitElement {
|
|
|
6653
7202
|
|
|
6654
7203
|
constructor() {
|
|
6655
7204
|
super();
|
|
6656
|
-
|
|
6657
7205
|
this.autofocus = false;
|
|
6658
7206
|
this.disabled = false;
|
|
6659
|
-
this.iconOnly = false;
|
|
6660
7207
|
this.loading = false;
|
|
7208
|
+
this.size = "md";
|
|
7209
|
+
this.shape = "rounded";
|
|
6661
7210
|
this.onDark = false;
|
|
6662
|
-
this.ready = false;
|
|
6663
|
-
this.secondary = false;
|
|
6664
|
-
this.tertiary = false;
|
|
6665
|
-
this.rounded = false;
|
|
6666
|
-
this.slim = false;
|
|
6667
7211
|
this.fluid = false;
|
|
6668
7212
|
this.loadingText = this.loadingText || 'Loading...';
|
|
7213
|
+
this.variant = 'primary';
|
|
6669
7214
|
|
|
6670
7215
|
// Support for HTML5 forms
|
|
6671
7216
|
if (typeof this.attachInternals === 'function') {
|
|
@@ -6686,92 +7231,159 @@ class AuroButton extends LitElement {
|
|
|
6686
7231
|
* @private
|
|
6687
7232
|
*/
|
|
6688
7233
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
|
|
7234
|
+
|
|
7235
|
+
/**
|
|
7236
|
+
* @private
|
|
7237
|
+
*/
|
|
7238
|
+
this.buttonHref = undefined;
|
|
7239
|
+
|
|
7240
|
+
/**
|
|
7241
|
+
* @private
|
|
7242
|
+
*/
|
|
7243
|
+
this.buttonTarget = undefined;
|
|
7244
|
+
|
|
7245
|
+
/**
|
|
7246
|
+
* @private
|
|
7247
|
+
*/
|
|
7248
|
+
this.buttonRel = undefined;
|
|
6689
7249
|
}
|
|
6690
7250
|
|
|
6691
7251
|
static get styles() {
|
|
6692
7252
|
return [
|
|
6693
7253
|
tokensCss$2,
|
|
6694
7254
|
styleCss$2,
|
|
6695
|
-
colorCss$2
|
|
7255
|
+
colorCss$2,
|
|
7256
|
+
shapeSize
|
|
6696
7257
|
];
|
|
6697
7258
|
}
|
|
6698
7259
|
|
|
6699
7260
|
static get properties() {
|
|
6700
7261
|
return {
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
secondary: {
|
|
7262
|
+
|
|
7263
|
+
...super.properties,
|
|
7264
|
+
|
|
7265
|
+
/**
|
|
7266
|
+
* Override layout since it isn't used in this component.
|
|
7267
|
+
* @private
|
|
7268
|
+
*/
|
|
7269
|
+
layout: {
|
|
6710
7270
|
type: Boolean,
|
|
6711
|
-
|
|
7271
|
+
attribute: false,
|
|
7272
|
+
reflect: false
|
|
6712
7273
|
},
|
|
6713
|
-
|
|
7274
|
+
|
|
7275
|
+
/**
|
|
7276
|
+
* This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
|
|
7277
|
+
*/
|
|
7278
|
+
autofocus: {
|
|
6714
7279
|
type: Boolean,
|
|
6715
7280
|
reflect: true
|
|
6716
7281
|
},
|
|
6717
|
-
|
|
7282
|
+
|
|
7283
|
+
/**
|
|
7284
|
+
* If set to true, button will become disabled and not allow for interactions.
|
|
7285
|
+
*/
|
|
7286
|
+
disabled: {
|
|
6718
7287
|
type: Boolean,
|
|
6719
7288
|
reflect: true
|
|
6720
7289
|
},
|
|
6721
|
-
|
|
7290
|
+
|
|
7291
|
+
/**
|
|
7292
|
+
* Alters the shape of the button to be full width of its parent container.
|
|
7293
|
+
*/
|
|
7294
|
+
fluid: {
|
|
6722
7295
|
type: Boolean,
|
|
6723
7296
|
reflect: true
|
|
6724
7297
|
},
|
|
6725
|
-
|
|
7298
|
+
|
|
7299
|
+
/**
|
|
7300
|
+
* If set to true button text will be replaced with `auro-loader` and become disabled.
|
|
7301
|
+
*/
|
|
7302
|
+
loading: {
|
|
6726
7303
|
type: Boolean,
|
|
6727
7304
|
reflect: true
|
|
6728
7305
|
},
|
|
6729
|
-
|
|
7306
|
+
|
|
7307
|
+
/**
|
|
7308
|
+
* 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.
|
|
7309
|
+
*/
|
|
7310
|
+
loadingText: {
|
|
6730
7311
|
type: String
|
|
6731
7312
|
},
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
type: Boolean,
|
|
6738
|
-
reflect: true
|
|
6739
|
-
},
|
|
6740
|
-
slim: {
|
|
6741
|
-
type: Boolean,
|
|
6742
|
-
reflect: true
|
|
6743
|
-
},
|
|
6744
|
-
arialabel: {
|
|
7313
|
+
|
|
7314
|
+
/**
|
|
7315
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
7316
|
+
*/
|
|
7317
|
+
tIndex: {
|
|
6745
7318
|
type: String,
|
|
6746
7319
|
reflect: true
|
|
6747
7320
|
},
|
|
6748
|
-
|
|
7321
|
+
|
|
7322
|
+
/**
|
|
7323
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
7324
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
7325
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`.
|
|
7326
|
+
*/
|
|
7327
|
+
tabindex: {
|
|
6749
7328
|
type: String,
|
|
6750
|
-
reflect:
|
|
7329
|
+
reflect: false
|
|
6751
7330
|
},
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
title:
|
|
7331
|
+
|
|
7332
|
+
/**
|
|
7333
|
+
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
7334
|
+
*/
|
|
7335
|
+
title: {
|
|
6757
7336
|
type: String,
|
|
6758
7337
|
reflect: true
|
|
6759
7338
|
},
|
|
6760
|
-
|
|
7339
|
+
|
|
7340
|
+
/**
|
|
7341
|
+
* The type of the button. Possible values are: `submit`, `reset`, `button`.
|
|
7342
|
+
*/
|
|
7343
|
+
type: {
|
|
6761
7344
|
type: String,
|
|
6762
7345
|
reflect: true
|
|
6763
7346
|
},
|
|
6764
|
-
|
|
7347
|
+
|
|
7348
|
+
/**
|
|
7349
|
+
* Defines the value associated with the button which is submitted with the form data.
|
|
7350
|
+
*/
|
|
7351
|
+
value: {
|
|
6765
7352
|
type: String,
|
|
6766
7353
|
reflect: true
|
|
6767
7354
|
},
|
|
6768
|
-
|
|
7355
|
+
|
|
7356
|
+
/**
|
|
7357
|
+
* Sets button variant option.
|
|
7358
|
+
* @default primary
|
|
7359
|
+
*/
|
|
7360
|
+
variant: {
|
|
6769
7361
|
type: String,
|
|
6770
7362
|
reflect: true
|
|
6771
7363
|
},
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
7364
|
+
|
|
7365
|
+
/**
|
|
7366
|
+
* @private
|
|
7367
|
+
*/
|
|
7368
|
+
buttonHref: {
|
|
7369
|
+
type: String,
|
|
7370
|
+
},
|
|
7371
|
+
|
|
7372
|
+
/**
|
|
7373
|
+
* @private
|
|
7374
|
+
*/
|
|
7375
|
+
buttonTarget: {
|
|
7376
|
+
type: String,
|
|
7377
|
+
},
|
|
7378
|
+
|
|
7379
|
+
/**
|
|
7380
|
+
* @private
|
|
7381
|
+
*/
|
|
7382
|
+
buttonRel: {
|
|
7383
|
+
type: String,
|
|
7384
|
+
},
|
|
7385
|
+
};
|
|
7386
|
+
}
|
|
6775
7387
|
|
|
6776
7388
|
/**
|
|
6777
7389
|
* This will register this element with the browser.
|
|
@@ -6782,7 +7394,7 @@ class AuroButton extends LitElement {
|
|
|
6782
7394
|
*
|
|
6783
7395
|
*/
|
|
6784
7396
|
static register(name = "auro-button") {
|
|
6785
|
-
AuroLibraryRuntimeUtils$
|
|
7397
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroButton);
|
|
6786
7398
|
}
|
|
6787
7399
|
|
|
6788
7400
|
/**
|
|
@@ -6795,75 +7407,134 @@ class AuroButton extends LitElement {
|
|
|
6795
7407
|
}
|
|
6796
7408
|
|
|
6797
7409
|
/**
|
|
6798
|
-
*
|
|
7410
|
+
* Submits the form that this button is associated with.
|
|
6799
7411
|
* @private
|
|
6800
7412
|
* @returns {void}
|
|
6801
7413
|
*/
|
|
6802
|
-
|
|
6803
|
-
this.
|
|
7414
|
+
surfaceSubmitEvent() {
|
|
7415
|
+
if (this.form) {
|
|
7416
|
+
this.form.requestSubmit();
|
|
7417
|
+
}
|
|
7418
|
+
}
|
|
6804
7419
|
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
7420
|
+
/**
|
|
7421
|
+
* Returns the form element that this button is associated with.
|
|
7422
|
+
* @private
|
|
7423
|
+
* @returns {HTMLFormElement | null}
|
|
7424
|
+
*/
|
|
7425
|
+
get form() {
|
|
7426
|
+
return this.internals ? this.internals.form : null;
|
|
6810
7427
|
}
|
|
6811
7428
|
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
7429
|
+
/**
|
|
7430
|
+
* @private
|
|
7431
|
+
* @returns {Boolean}
|
|
7432
|
+
*/
|
|
7433
|
+
get showText() {
|
|
7434
|
+
return !ICON_ONLY_SHAPES.includes(this.shape);
|
|
7435
|
+
}
|
|
6817
7436
|
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
7437
|
+
/**
|
|
7438
|
+
* Returns the current value of the projected `aria-label` attribute or undefined if not set.
|
|
7439
|
+
* @returns {string | undefined}
|
|
7440
|
+
* @private
|
|
7441
|
+
*/
|
|
7442
|
+
get currentAriaLabel() {
|
|
7443
|
+
if (!this.attributeWatcher) return undefined;
|
|
7444
|
+
|
|
7445
|
+
const ariaLabel = this.attributeWatcher.getObservedAttribute("aria-label");
|
|
7446
|
+
return ariaLabel || undefined;
|
|
6821
7447
|
}
|
|
6822
7448
|
|
|
6823
|
-
|
|
6824
|
-
|
|
7449
|
+
/**
|
|
7450
|
+
* Returns the current value of the projected `aria-labelledby` attribute or undefined if not set.
|
|
7451
|
+
* @returns {string | undefined}
|
|
7452
|
+
* @private
|
|
7453
|
+
*/
|
|
7454
|
+
get currentAriaLabelledBy() {
|
|
7455
|
+
if (!this.attributeWatcher) return undefined;
|
|
7456
|
+
|
|
7457
|
+
const ariaLabelledBy = this.attributeWatcher.getObservedAttribute("aria-labelledby");
|
|
7458
|
+
return ariaLabelledBy || undefined;
|
|
6825
7459
|
}
|
|
6826
7460
|
|
|
6827
7461
|
/**
|
|
6828
|
-
*
|
|
7462
|
+
* Whether or not the button is set to an icon-only shape.
|
|
7463
|
+
* @returns {boolean} - True if the button is icon-only, false otherwise.
|
|
6829
7464
|
* @private
|
|
6830
|
-
* @returns {void}
|
|
6831
7465
|
*/
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
this.form.requestSubmit();
|
|
6835
|
-
}
|
|
7466
|
+
get iconOnly() {
|
|
7467
|
+
return ICON_ONLY_SHAPES.includes(this.shape);
|
|
6836
7468
|
}
|
|
6837
7469
|
|
|
6838
7470
|
/**
|
|
6839
|
-
*
|
|
7471
|
+
* Gets a class name for the font size based on the button's size and shape.
|
|
7472
|
+
* @returns {string} - The font size class name.
|
|
6840
7473
|
* @private
|
|
6841
|
-
* @returns {HTMLFormElement|null}
|
|
6842
7474
|
*/
|
|
6843
|
-
|
|
6844
|
-
|
|
7475
|
+
getFontSize() {
|
|
7476
|
+
|
|
7477
|
+
// Size map for standard buttons
|
|
7478
|
+
const standardButtonSizeMap = {
|
|
7479
|
+
xs: 'body-xs',
|
|
7480
|
+
sm: 'body-sm',
|
|
7481
|
+
md: 'body-default',
|
|
7482
|
+
lg: 'body-lg',
|
|
7483
|
+
xl: 'body-lg'
|
|
7484
|
+
};
|
|
7485
|
+
|
|
7486
|
+
// Size map for icon-only buttons
|
|
7487
|
+
const iconOnlyButtonSizeMap = {
|
|
7488
|
+
xs: 'heading-xs',
|
|
7489
|
+
sm: 'heading-sm',
|
|
7490
|
+
md: 'heading-sm',
|
|
7491
|
+
lg: 'heading-md',
|
|
7492
|
+
xl: 'heading-lg'
|
|
7493
|
+
};
|
|
7494
|
+
|
|
7495
|
+
// Determine which map to use based on the shape
|
|
7496
|
+
const sizeMap = this.iconOnly ? iconOnlyButtonSizeMap : standardButtonSizeMap;
|
|
7497
|
+
|
|
7498
|
+
// Return the font size based on the button size and shape
|
|
7499
|
+
return sizeMap[this.size] || 'body-default';
|
|
6845
7500
|
}
|
|
6846
7501
|
|
|
6847
|
-
|
|
7502
|
+
/**
|
|
7503
|
+
* Renders the default layout for the button.
|
|
7504
|
+
* @returns {TemplateResult}
|
|
7505
|
+
* @private
|
|
7506
|
+
*/
|
|
7507
|
+
renderLayoutDefault() {
|
|
7508
|
+
|
|
7509
|
+
const fontSize = this.getFontSize();
|
|
7510
|
+
const tag = this.buttonHref ? literal`a` : literal`button`;
|
|
7511
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
7512
|
+
|
|
6848
7513
|
const classes = {
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
'
|
|
7514
|
+
"auro-button": true,
|
|
7515
|
+
"inset": this.showText,
|
|
7516
|
+
wrapper: true,
|
|
7517
|
+
loading: this.loading,
|
|
7518
|
+
[`${fontSize}`]: true,
|
|
7519
|
+
|
|
7520
|
+
// These remove the default borders so we can handle focus borders ourselves
|
|
7521
|
+
'simple': !['secondary'].includes(this.variant),
|
|
7522
|
+
'thin': ['secondary'].includes(this.variant),
|
|
7523
|
+
};
|
|
7524
|
+
|
|
7525
|
+
const contentClasses = {
|
|
7526
|
+
"contentWrapper": true,
|
|
7527
|
+
"util_displayHiddenVisually": this.loading
|
|
6857
7528
|
};
|
|
6858
7529
|
|
|
6859
7530
|
return html$1`
|
|
6860
|
-
|
|
6861
|
-
part="
|
|
6862
|
-
aria-label="${ifDefined(this.loading ? this.loadingText : this.
|
|
6863
|
-
aria-labelledby="${ifDefined(this.
|
|
6864
|
-
|
|
7531
|
+
<${tag}
|
|
7532
|
+
part="${part}"
|
|
7533
|
+
aria-label="${ifDefined(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
7534
|
+
aria-labelledby="${ifDefined(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
7535
|
+
tabindex="${ifDefined(this.tIndex || this.tabindex)}"
|
|
6865
7536
|
?autofocus="${this.autofocus}"
|
|
6866
|
-
class
|
|
7537
|
+
class=${classMap(classes)}
|
|
6867
7538
|
?disabled="${this.disabled || this.loading}"
|
|
6868
7539
|
?onDark="${this.onDark}"
|
|
6869
7540
|
title="${ifDefined(this.title ? this.title : undefined)}"
|
|
@@ -6872,28 +7543,36 @@ class AuroButton extends LitElement {
|
|
|
6872
7543
|
variant="${ifDefined(this.variant ? this.variant : undefined)}"
|
|
6873
7544
|
.value="${ifDefined(this.value ? this.value : undefined)}"
|
|
6874
7545
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
7546
|
+
href="${ifDefined(this.buttonHref || undefined)}"
|
|
7547
|
+
target="${ifDefined(this.buttonTarget || undefined)}"
|
|
7548
|
+
rel="${ifDefined(this.buttonRel || undefined)}"
|
|
6875
7549
|
>
|
|
6876
7550
|
${ifDefined(this.loading ? html$1`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
6877
7551
|
|
|
6878
|
-
<span class="
|
|
7552
|
+
<span class="${classMap(contentClasses)}">
|
|
6879
7553
|
<span class="textSlot" part="text">
|
|
6880
|
-
|
|
6881
|
-
</span>
|
|
6882
|
-
|
|
6883
|
-
<span part="icon">
|
|
6884
|
-
<slot name="icon"></slot>
|
|
7554
|
+
<slot></slot>
|
|
6885
7555
|
</span>
|
|
6886
7556
|
</span>
|
|
6887
|
-
|
|
7557
|
+
</${tag}>
|
|
6888
7558
|
`;
|
|
6889
7559
|
}
|
|
7560
|
+
|
|
7561
|
+
/**
|
|
7562
|
+
* Renders the layout of the button.
|
|
7563
|
+
* @returns {TemplateResult}
|
|
7564
|
+
* @private
|
|
7565
|
+
*/
|
|
7566
|
+
renderLayout() {
|
|
7567
|
+
return this.renderLayoutDefault();
|
|
7568
|
+
}
|
|
6890
7569
|
}
|
|
6891
7570
|
|
|
6892
|
-
var buttonVersion = '
|
|
7571
|
+
var buttonVersion = '11.0.0';
|
|
6893
7572
|
|
|
6894
7573
|
var colorCss = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
6895
7574
|
|
|
6896
|
-
var styleCss = css`.
|
|
7575
|
+
var styleCss = css`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-body-2xs-font-size, 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.875rem)}.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}`;
|
|
6897
7576
|
|
|
6898
7577
|
var tokensCss = css`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
6899
7578
|
|
|
@@ -6973,8 +7652,6 @@ class AuroLibraryRuntimeUtils {
|
|
|
6973
7652
|
|
|
6974
7653
|
/**
|
|
6975
7654
|
* Displays help text or error messages within form elements - Internal Use Only.
|
|
6976
|
-
*
|
|
6977
|
-
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
6978
7655
|
*/
|
|
6979
7656
|
class AuroHelpText extends LitElement {
|
|
6980
7657
|
|
|
@@ -7090,7 +7767,7 @@ class AuroHelpText extends LitElement {
|
|
|
7090
7767
|
// function that renders the HTML and CSS into the scope of the component
|
|
7091
7768
|
render() {
|
|
7092
7769
|
return html`
|
|
7093
|
-
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
7770
|
+
<div class="helptext-wrapper body-xs" ?visible="${this.hasTextContent}">
|
|
7094
7771
|
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
7095
7772
|
</div>
|
|
7096
7773
|
`;
|
|
@@ -7112,24 +7789,183 @@ class AuroInput extends BaseInput {
|
|
|
7112
7789
|
/**
|
|
7113
7790
|
* Generate unique names for dependency components.
|
|
7114
7791
|
*/
|
|
7115
|
-
const versioning = new AuroDependencyVersioning
|
|
7792
|
+
const versioning = new AuroDependencyVersioning();
|
|
7116
7793
|
|
|
7117
7794
|
/**
|
|
7118
7795
|
* @private
|
|
7119
7796
|
*/
|
|
7120
|
-
this.
|
|
7797
|
+
this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
|
|
7121
7798
|
|
|
7122
7799
|
/**
|
|
7123
7800
|
* @private
|
|
7124
7801
|
*/
|
|
7125
|
-
this.
|
|
7802
|
+
this.hasDisplayValueContent = false;
|
|
7126
7803
|
|
|
7127
7804
|
/**
|
|
7128
7805
|
* @private
|
|
7129
7806
|
*/
|
|
7130
7807
|
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion, AuroHelpText);
|
|
7808
|
+
|
|
7809
|
+
/**
|
|
7810
|
+
* @private
|
|
7811
|
+
*/
|
|
7812
|
+
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion, AuroIcon);
|
|
7813
|
+
}
|
|
7814
|
+
|
|
7815
|
+
static get styles() {
|
|
7816
|
+
return [
|
|
7817
|
+
css`${classicStyleCss}`,
|
|
7818
|
+
css`${classicColorCss}`,
|
|
7819
|
+
css`${shapeSizeCss}`,
|
|
7820
|
+
css`${colorBaseCss}`,
|
|
7821
|
+
css`${styleCss$4}`,
|
|
7822
|
+
css`${styleDefaultCss}`,
|
|
7823
|
+
css`${tokensCss$4}`,
|
|
7824
|
+
css`${emphasizedStyleCss}`,
|
|
7825
|
+
css`${emphasizedColorCss}`,
|
|
7826
|
+
css`${snowflakeStyleCss}`
|
|
7827
|
+
];
|
|
7828
|
+
}
|
|
7829
|
+
|
|
7830
|
+
/**
|
|
7831
|
+
* Determines if the HTML input element should be visually hidden.
|
|
7832
|
+
* Returns true when display value content exists without focus and has a value,
|
|
7833
|
+
* or when the input has no value, is not focused, and has no placeholder text.
|
|
7834
|
+
* @returns {boolean} - True if the input should be visually hidden, false otherwise.
|
|
7835
|
+
* @private
|
|
7836
|
+
*/
|
|
7837
|
+
get inputHidden() {
|
|
7838
|
+
return (this.hasDisplayValueContent && !this.hasFocus && this.hasValue) || ((!this.value || this.value.length === 0) && !this.hasFocus && (!this.placeholder || this.placeholder === ''));
|
|
7839
|
+
}
|
|
7840
|
+
|
|
7841
|
+
/**
|
|
7842
|
+
* Determines if the input should display in a state with no focus or value indication.
|
|
7843
|
+
* Returns true when the input has display content without focus and has a value,
|
|
7844
|
+
* or when the input has no value and is not focused.
|
|
7845
|
+
* @returns {boolean} - True if the input should show no focus or value state, false otherwise.
|
|
7846
|
+
* @private
|
|
7847
|
+
*/
|
|
7848
|
+
get noFocusOrValue() {
|
|
7849
|
+
return (this.hasDisplayValueContent && !this.hasFocus && this.hasValue) || ((!this.value || this.value.length === 0) && !this.hasFocus);
|
|
7850
|
+
}
|
|
7851
|
+
|
|
7852
|
+
/**
|
|
7853
|
+
* Whether the label is being hidden currently based on state.
|
|
7854
|
+
* @returns {boolean} - Returns true if the label is hidden.
|
|
7855
|
+
* @private
|
|
7856
|
+
*/
|
|
7857
|
+
get labelHidden() {
|
|
7858
|
+
return this.hasDisplayValueContent && !this.hasFocus && this.hasValue;
|
|
7859
|
+
}
|
|
7860
|
+
|
|
7861
|
+
/**
|
|
7862
|
+
* Returns the label font class based on layout and visibility state.
|
|
7863
|
+
* @private
|
|
7864
|
+
* @returns {string} - The font class for the label.
|
|
7865
|
+
*/
|
|
7866
|
+
get labelFontClass() {
|
|
7867
|
+
const isHidden = this.inputHidden;
|
|
7868
|
+
|
|
7869
|
+
if (this.layout.startsWith('emphasized')) {
|
|
7870
|
+
return this.noFocusOrValue ? 'accent-xl' : 'body-sm';
|
|
7871
|
+
}
|
|
7872
|
+
|
|
7873
|
+
if (this.layout === 'snowflake') {
|
|
7874
|
+
return isHidden ? 'body-lg' : 'body-xs';
|
|
7875
|
+
}
|
|
7876
|
+
|
|
7877
|
+
// classic layout (default)
|
|
7878
|
+
return isHidden ? 'body-default' : 'body-xs';
|
|
7879
|
+
}
|
|
7880
|
+
|
|
7881
|
+
/**
|
|
7882
|
+
* Returns the input font class based on layout and visibility state.
|
|
7883
|
+
* @private
|
|
7884
|
+
* @returns {string} - The font class for the input.
|
|
7885
|
+
*/
|
|
7886
|
+
get inputFontClass() {
|
|
7887
|
+
if (this.layout.startsWith('emphasized')) {
|
|
7888
|
+
return this.noFocusOrValue ? 'body-sm' : 'accent-xl';
|
|
7889
|
+
}
|
|
7890
|
+
|
|
7891
|
+
if (this.layout === 'snowflake') {
|
|
7892
|
+
// same for both hidden and visible
|
|
7893
|
+
return 'body-lg';
|
|
7894
|
+
}
|
|
7895
|
+
|
|
7896
|
+
// edge case for enabling visual overrides in datepicker
|
|
7897
|
+
if (this.layout === 'classic' && this.shape === 'snowflake') {
|
|
7898
|
+
return 'body-lg';
|
|
7899
|
+
}
|
|
7900
|
+
|
|
7901
|
+
// classic layout (default) - same for both hidden and visible
|
|
7902
|
+
return 'body-default';
|
|
7903
|
+
}
|
|
7904
|
+
|
|
7905
|
+
/**
|
|
7906
|
+
* Returns classmap configuration for html5 input labels in all layouts.
|
|
7907
|
+
* @private
|
|
7908
|
+
* @returns {Record<string, boolean>}
|
|
7909
|
+
*/
|
|
7910
|
+
get commonLabelClasses() {
|
|
7911
|
+
return {
|
|
7912
|
+
'is-disabled': this.disabled,
|
|
7913
|
+
'withValue': this.hasValue,
|
|
7914
|
+
'util_displayHiddenVisually': this.labelHidden,
|
|
7915
|
+
[this.labelFontClass]: true,
|
|
7916
|
+
};
|
|
7917
|
+
}
|
|
7918
|
+
|
|
7919
|
+
/**
|
|
7920
|
+
* Returns classmap configuration for html5 inputs in all layouts.
|
|
7921
|
+
* @private
|
|
7922
|
+
* @returns {Record<string, boolean>} - Returns classmap.
|
|
7923
|
+
*/
|
|
7924
|
+
get commonInputClasses() {
|
|
7925
|
+
return {
|
|
7926
|
+
'util_displayHiddenVisually': this.inputHidden,
|
|
7927
|
+
[this.inputFontClass]: true,
|
|
7928
|
+
};
|
|
7131
7929
|
}
|
|
7132
7930
|
|
|
7931
|
+
/**
|
|
7932
|
+
* Returns classmap configuration for html5 inputs in each layout.
|
|
7933
|
+
* @private
|
|
7934
|
+
* @returns {object} - Returns classmap.
|
|
7935
|
+
*/
|
|
7936
|
+
get legacyInputClasses() {
|
|
7937
|
+
return {
|
|
7938
|
+
...this.commonInputClasses
|
|
7939
|
+
};
|
|
7940
|
+
}
|
|
7941
|
+
|
|
7942
|
+
/**
|
|
7943
|
+
* Returns classmap configuration for wrapper elements in each layout.
|
|
7944
|
+
* @private
|
|
7945
|
+
* @returns {object} - Returns classmap.
|
|
7946
|
+
*/
|
|
7947
|
+
get commonWrapperClasses() {
|
|
7948
|
+
return {
|
|
7949
|
+
'wrapper': true,
|
|
7950
|
+
'simple': this.simple,
|
|
7951
|
+
'withValue': this.hasValue,
|
|
7952
|
+
'hasFocus': this.hasFocus
|
|
7953
|
+
};
|
|
7954
|
+
}
|
|
7955
|
+
|
|
7956
|
+
/**
|
|
7957
|
+
* Returns classmap configuration for helpText elements in each layout.
|
|
7958
|
+
* @private
|
|
7959
|
+
* @returns {object} - Returns classmap.
|
|
7960
|
+
*/
|
|
7961
|
+
get helpTextClasses() {
|
|
7962
|
+
return {
|
|
7963
|
+
'helpTextWrapper': true,
|
|
7964
|
+
'leftIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('right'),
|
|
7965
|
+
'rightIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('left')
|
|
7966
|
+
};
|
|
7967
|
+
};
|
|
7968
|
+
|
|
7133
7969
|
/**
|
|
7134
7970
|
* This will register this element with the browser.
|
|
7135
7971
|
* @param {string} [name="auro-input"] - The name of element that you want to register to.
|
|
@@ -7139,7 +7975,7 @@ class AuroInput extends BaseInput {
|
|
|
7139
7975
|
*
|
|
7140
7976
|
*/
|
|
7141
7977
|
static register(name = "auro-input") {
|
|
7142
|
-
AuroLibraryRuntimeUtils$
|
|
7978
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroInput);
|
|
7143
7979
|
}
|
|
7144
7980
|
|
|
7145
7981
|
/**
|
|
@@ -7155,160 +7991,377 @@ class AuroInput extends BaseInput {
|
|
|
7155
7991
|
return false;
|
|
7156
7992
|
}
|
|
7157
7993
|
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
|
|
7994
|
+
/**
|
|
7995
|
+
* Function to determine if there is any displayValue content to render.
|
|
7996
|
+
* @private
|
|
7997
|
+
* @returns {void}
|
|
7998
|
+
*/
|
|
7999
|
+
checkDisplayValueSlotChange() {
|
|
8000
|
+
let nodes = this.shadowRoot.querySelector('slot[name="displayValue"]').assignedNodes();
|
|
8001
|
+
|
|
8002
|
+
// Handle when DisplayValue is multi-level slot content (e.g. combobox passing displayValue to input)
|
|
8003
|
+
if (nodes[0].tagName === 'SLOT') {
|
|
8004
|
+
nodes = nodes[0].assignedNodes();
|
|
8005
|
+
}
|
|
8006
|
+
|
|
8007
|
+
let hasContent = false;
|
|
8008
|
+
|
|
8009
|
+
if (nodes.length > 0) {
|
|
8010
|
+
hasContent = true;
|
|
8011
|
+
}
|
|
8012
|
+
|
|
8013
|
+
this.hasDisplayValueContent = hasContent;
|
|
8014
|
+
}
|
|
8015
|
+
|
|
8016
|
+
/**
|
|
8017
|
+
* Returns HTML for the validation error icon.
|
|
8018
|
+
* @private
|
|
8019
|
+
* @returns {html} - Returns HTML for the validation error icon.
|
|
8020
|
+
*/
|
|
8021
|
+
renderValidationErrorIconHtml() {
|
|
8022
|
+
return html$1`
|
|
8023
|
+
${this.validity && this.validity !== 'valid' ? html$1`
|
|
8024
|
+
<div class="notification alertNotification">
|
|
8025
|
+
<${this.iconTag}
|
|
8026
|
+
category="alert"
|
|
8027
|
+
name="error-stroke"
|
|
8028
|
+
variant="statusError"
|
|
8029
|
+
?ondark="${this.onDark}">
|
|
8030
|
+
</${this.iconTag}>
|
|
8031
|
+
</div>
|
|
8032
|
+
` : undefined}
|
|
8033
|
+
`;
|
|
8034
|
+
}
|
|
8035
|
+
|
|
8036
|
+
/**
|
|
8037
|
+
* Returns HTML for the HTML5 input element.
|
|
8038
|
+
* @private
|
|
8039
|
+
* @param {boolean} [useLegacyHiddenState=false] - If true, the input will be visually hidden when not focused and has no value.
|
|
8040
|
+
* @returns {html} - Returns HTML for the HTML5 input element.
|
|
8041
|
+
*/
|
|
8042
|
+
renderHtmlInput(useLegacyHiddenState = false) {
|
|
8043
|
+
const displayValueClasses = {
|
|
8044
|
+
'displayValue': true,
|
|
8045
|
+
'hasContent': this.hasDisplayValueContent,
|
|
8046
|
+
'hasFocus': this.hasFocus,
|
|
8047
|
+
'withValue': this.hasValue,
|
|
7165
8048
|
};
|
|
7166
8049
|
|
|
8050
|
+
// Remove this when the classic layout is sunset.
|
|
8051
|
+
const inputOverrideClasses = useLegacyHiddenState
|
|
8052
|
+
? this.legacyInputClasses
|
|
8053
|
+
: this.commonInputClasses;
|
|
8054
|
+
|
|
7167
8055
|
return html$1`
|
|
7168
|
-
<
|
|
7169
|
-
<
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
8056
|
+
<label for=${this.inputId} class="${classMap(this.commonLabelClasses)}" part="label">
|
|
8057
|
+
<slot name="label">
|
|
8058
|
+
${this.label}
|
|
8059
|
+
</slot>
|
|
8060
|
+
${this.required ? undefined : html$1`<slot name="optionalLabel"> (optional)</slot>`}
|
|
8061
|
+
</label>
|
|
8062
|
+
|
|
8063
|
+
<!-- Attributes are grouped into: basic attributes, event handlers, ARIA attributes, and input-specific attributes -->
|
|
8064
|
+
<input
|
|
8065
|
+
@blur="${this.handleBlur}"
|
|
8066
|
+
@focusin="${this.handleFocusin}"
|
|
8067
|
+
@focusout="${this.handleFocusout}"
|
|
8068
|
+
@input="${this.handleInput}"
|
|
8069
|
+
.placeholder=${this.placeholderStr}
|
|
8070
|
+
.role=${this.a11yRole}
|
|
8071
|
+
?activeLabel="${this.activeLabel}"
|
|
8072
|
+
?disabled="${this.disabled}"
|
|
8073
|
+
?required="${this.required}"
|
|
8074
|
+
aria-controls=${ifDefined(this.a11yControls)}
|
|
8075
|
+
aria-describedby="${this.uniqueId}"
|
|
8076
|
+
aria-expanded=${ifDefined(this.a11yExpanded)}
|
|
8077
|
+
aria-invalid="${this.validity !== 'valid'}"
|
|
8078
|
+
autocomplete="${ifDefined(this.autocomplete ? this.autocomplete : undefined)}"
|
|
8079
|
+
autocapitalize="${ifDefined(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
8080
|
+
autocorrect="${ifDefined(this.autocorrect ? this.autocorrect : undefined)}"
|
|
8081
|
+
class="${classMap(inputOverrideClasses)}"
|
|
8082
|
+
id="${this.inputId}"
|
|
8083
|
+
inputmode="${ifDefined(this.inputmode ? this.inputmode : undefined)}"
|
|
8084
|
+
lang="${ifDefined(this.lang)}"
|
|
8085
|
+
maxlength="${ifDefined(this.maxLength ? this.maxLength : undefined)}"
|
|
8086
|
+
minlength="${ifDefined(this.minLength ? this.minLength : undefined)}"
|
|
8087
|
+
name="${ifDefined(this.name)}"
|
|
8088
|
+
part="input"
|
|
8089
|
+
pattern="${ifDefined(this.definePattern())}"
|
|
8090
|
+
spellcheck="${ifDefined(this.spellcheck ? this.spellcheck : undefined)}"
|
|
8091
|
+
type="${this.type === "password" && this.showPassword ? "text" : this.getInputType(this.type)}"
|
|
8092
|
+
/>
|
|
8093
|
+
<div class="${classMap(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
8094
|
+
<div class="displayValueWrapper">
|
|
8095
|
+
<slot name="displayValue" @slotchange=${this.checkDisplayValueSlotChange}></slot>
|
|
8096
|
+
</div>
|
|
8097
|
+
</div>
|
|
8098
|
+
`;
|
|
8099
|
+
}
|
|
7187
8100
|
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
8101
|
+
/**
|
|
8102
|
+
* Returns HTML for the clear action button.
|
|
8103
|
+
* @private
|
|
8104
|
+
* @returns {html} - Returns HTML for the clear action button.
|
|
8105
|
+
*/
|
|
8106
|
+
renderHtmlActionClear() {
|
|
8107
|
+
return html$1`
|
|
8108
|
+
<div class="notification clear">
|
|
8109
|
+
<${this.buttonTag}
|
|
8110
|
+
@click="${this.handleClickClear}"
|
|
8111
|
+
?onDark="${this.onDark}"
|
|
8112
|
+
class="notificationBtn clearBtn"
|
|
8113
|
+
shape="circle"
|
|
8114
|
+
size="sm"
|
|
8115
|
+
variant="ghost">
|
|
8116
|
+
<span><slot name="ariaLabel.clear">Clear Input</slot></span>
|
|
8117
|
+
<${this.iconTag}
|
|
8118
|
+
aria-hidden="true"
|
|
8119
|
+
?customColor="${this.onDark}"
|
|
8120
|
+
category="interface"
|
|
8121
|
+
name="x-lg"
|
|
8122
|
+
>
|
|
8123
|
+
</${this.iconTag}>
|
|
8124
|
+
</${this.buttonTag}>
|
|
8125
|
+
</div>
|
|
8126
|
+
`;
|
|
8127
|
+
}
|
|
8128
|
+
|
|
8129
|
+
/**
|
|
8130
|
+
* Returns HTML for the show password button.
|
|
8131
|
+
* @private
|
|
8132
|
+
* @returns {html} - Returns HTML for the show password button.
|
|
8133
|
+
*/
|
|
8134
|
+
renderHtmlNotificationPassword() {
|
|
8135
|
+
return html$1`
|
|
8136
|
+
<div class="notification">
|
|
8137
|
+
<${this.buttonTag}
|
|
8138
|
+
@click="${this.handleClickShowPassword}"
|
|
8139
|
+
?onDark="${this.onDark}"
|
|
8140
|
+
class="notificationBtn passwordBtn"
|
|
8141
|
+
shape="circle"
|
|
8142
|
+
size="sm"
|
|
8143
|
+
variant="ghost">
|
|
8144
|
+
<span>
|
|
8145
|
+
${this.showPassword ? html$1`<slot name="ariaLabel.password.hide">Hide Password</slot>`
|
|
8146
|
+
: html$1`<slot name="ariaLabel.password.show">Show Password</slot>`}
|
|
8147
|
+
</span>
|
|
8148
|
+
<${this.iconTag}
|
|
8149
|
+
?customColor="${this.onDark}"
|
|
8150
|
+
aria-hidden="true"
|
|
8151
|
+
?hidden=${!this.showPassword}
|
|
8152
|
+
category="interface"
|
|
8153
|
+
name="hide-password-stroke">
|
|
8154
|
+
</${this.iconTag}>
|
|
8155
|
+
<${this.iconTag}
|
|
8156
|
+
?customColor="${this.onDark}"
|
|
8157
|
+
aria-hidden="true"
|
|
8158
|
+
?hidden=${this.showPassword}
|
|
8159
|
+
category="interface"
|
|
8160
|
+
name="view-password-stroke">
|
|
8161
|
+
</${this.iconTag}>
|
|
8162
|
+
</${this.buttonTag}>
|
|
8163
|
+
</div>
|
|
8164
|
+
`;
|
|
8165
|
+
}
|
|
8166
|
+
|
|
8167
|
+
/**
|
|
8168
|
+
* Returns HTML for the input type icon.
|
|
8169
|
+
* @private
|
|
8170
|
+
* @returns {html} - Returns HTML for the input type icon.
|
|
8171
|
+
*/
|
|
8172
|
+
renderHtmlTypeIcon() {
|
|
8173
|
+
return html$1`
|
|
8174
|
+
<div class="typeIcon">
|
|
8175
|
+
${this.type === 'credit-card' ? this.processCreditCard() : undefined}
|
|
8176
|
+
|
|
8177
|
+
<!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
|
|
8178
|
+
This should be cleaned up when auro-icon issue #31 is resolved. -->
|
|
8179
|
+
${this.inputIconName
|
|
8180
|
+
? repeat([this.inputIconName], (val) => val, (name) => html$1`
|
|
8181
|
+
<${this.iconTag}
|
|
8182
|
+
?onDark="${this.onDark}"
|
|
8183
|
+
category="payment"
|
|
8184
|
+
class="accentIcon"
|
|
8185
|
+
name="${name}"
|
|
8186
|
+
part="accentIcon"
|
|
8187
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
8188
|
+
</${this.iconTag}>
|
|
8189
|
+
`) : undefined
|
|
8190
|
+
}
|
|
8191
|
+
${this.type === 'date'
|
|
8192
|
+
? html$1`
|
|
8193
|
+
<${this.iconTag}
|
|
8194
|
+
?onDark="${this.onDark}"
|
|
8195
|
+
category="interface"
|
|
8196
|
+
class="accentIcon"
|
|
8197
|
+
name="calendar"
|
|
8198
|
+
part="accentIcon"
|
|
8199
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
8200
|
+
</${this.iconTag}>`
|
|
8201
|
+
: undefined
|
|
8202
|
+
}
|
|
8203
|
+
</div>
|
|
8204
|
+
`;
|
|
8205
|
+
}
|
|
8206
|
+
|
|
8207
|
+
/**
|
|
8208
|
+
* Returns HTML for the help text and error message.
|
|
8209
|
+
* @private
|
|
8210
|
+
* @returns {html} - Returns HTML for the help text and error message.
|
|
8211
|
+
*/
|
|
8212
|
+
renderHtmlHelpText() {
|
|
8213
|
+
return html$1`
|
|
8214
|
+
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
8215
|
+
? html$1`
|
|
8216
|
+
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
8217
|
+
<p id="${this.uniqueId}" part="helpText">
|
|
8218
|
+
<slot name="helpText">${this.getHelpText()}</slot>
|
|
8219
|
+
</p>
|
|
8220
|
+
</${this.helpTextTag}>
|
|
8221
|
+
`
|
|
8222
|
+
: html$1`
|
|
8223
|
+
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
8224
|
+
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
8225
|
+
${this.errorMessage}
|
|
8226
|
+
</p>
|
|
8227
|
+
</${this.helpTextTag}>
|
|
8228
|
+
`
|
|
8229
|
+
}
|
|
8230
|
+
`;
|
|
8231
|
+
}
|
|
8232
|
+
|
|
8233
|
+
/**
|
|
8234
|
+
* Returns HTML for the classic layout.
|
|
8235
|
+
* @private
|
|
8236
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
|
|
8237
|
+
*/
|
|
8238
|
+
renderLayoutClassic() {
|
|
8239
|
+
const classicClassMap = {
|
|
8240
|
+
...this.commonWrapperClasses,
|
|
8241
|
+
'thin': !this.simple
|
|
8242
|
+
};
|
|
8243
|
+
|
|
8244
|
+
return html$1`
|
|
8245
|
+
<div
|
|
8246
|
+
@click="${this.handleClick}"
|
|
8247
|
+
class="${classMap(classicClassMap)}"
|
|
8248
|
+
part="wrapper">
|
|
8249
|
+
<div part="accent-left" class="accents left">
|
|
8250
|
+
${this.renderHtmlTypeIcon()}
|
|
7234
8251
|
</div>
|
|
7235
|
-
<div
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
${this.
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
8252
|
+
<div class="mainContent">
|
|
8253
|
+
${this.renderHtmlInput(true)}
|
|
8254
|
+
</div>
|
|
8255
|
+
<div part="accent-right" class="accents right">
|
|
8256
|
+
${this.renderValidationErrorIconHtml()}
|
|
8257
|
+
${this.hasValue && this.type === 'password' ? this.renderHtmlNotificationPassword() : undefined}
|
|
8258
|
+
${this.hasValue ? html$1`
|
|
8259
|
+
${!this.disabled && !this.readonly ? html$1`
|
|
8260
|
+
${this.renderHtmlActionClear()}
|
|
8261
|
+
` : undefined}
|
|
8262
|
+
` : undefined}
|
|
8263
|
+
</div>
|
|
8264
|
+
</div>
|
|
8265
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
8266
|
+
${this.renderHtmlHelpText()}
|
|
8267
|
+
</div>
|
|
8268
|
+
`;
|
|
8269
|
+
}
|
|
8270
|
+
|
|
8271
|
+
/**
|
|
8272
|
+
* Returns HTML for the emphasized layout. Does not support type="*".
|
|
8273
|
+
* @private
|
|
8274
|
+
* @returns {html} - Returns HTML for the emphasized layout.
|
|
8275
|
+
*/
|
|
8276
|
+
renderLayoutEmphasized() {
|
|
8277
|
+
return html$1`
|
|
8278
|
+
<div
|
|
8279
|
+
@click="${this.handleClick}"
|
|
8280
|
+
class="${classMap(this.commonWrapperClasses)}"
|
|
8281
|
+
part="wrapper">
|
|
8282
|
+
<div class="accents left">
|
|
8283
|
+
${this.layout.includes('left') ? html$1`
|
|
8284
|
+
${this.renderValidationErrorIconHtml()}
|
|
8285
|
+
` : undefined}
|
|
8286
|
+
</div>
|
|
8287
|
+
<div class="mainContent">
|
|
8288
|
+
${this.renderHtmlInput()}
|
|
8289
|
+
</div>
|
|
8290
|
+
<div class="accents right">
|
|
8291
|
+
${this.layout.includes('right') || this.layout === "emphasized" ? html$1`
|
|
8292
|
+
${this.renderValidationErrorIconHtml()}
|
|
7247
8293
|
` : undefined}
|
|
7248
8294
|
${this.hasValue ? html$1`
|
|
7249
|
-
${this.
|
|
7250
|
-
|
|
7251
|
-
<${this.buttonTag}
|
|
7252
|
-
variant="flat"
|
|
7253
|
-
?onDark="${this.onDark}"
|
|
7254
|
-
aria-hidden="true"
|
|
7255
|
-
tabindex="-1"
|
|
7256
|
-
@click="${this.handleClickShowPassword}"
|
|
7257
|
-
class="notificationBtn passwordBtn">
|
|
7258
|
-
<${this.iconTag}
|
|
7259
|
-
category="interface"
|
|
7260
|
-
name="hide-password-stroke"
|
|
7261
|
-
customColor
|
|
7262
|
-
?hidden=${!this.showPassword}>
|
|
7263
|
-
</${this.iconTag}>
|
|
7264
|
-
<${this.iconTag}
|
|
7265
|
-
category="interface"
|
|
7266
|
-
name="view-password-stroke"
|
|
7267
|
-
customColor
|
|
7268
|
-
?hidden=${this.showPassword}>
|
|
7269
|
-
</${this.iconTag}>
|
|
7270
|
-
</${this.buttonTag}>
|
|
7271
|
-
</div>
|
|
8295
|
+
${!this.disabled && !this.readonly ? html$1`
|
|
8296
|
+
${this.renderHtmlActionClear()}
|
|
7272
8297
|
` : undefined}
|
|
8298
|
+
` : undefined}
|
|
8299
|
+
</div>
|
|
8300
|
+
</div>
|
|
8301
|
+
<div class="${classMap(this.helpTextClasses)}" part="inputHelpText">
|
|
8302
|
+
${this.renderHtmlHelpText()}
|
|
8303
|
+
</div>
|
|
8304
|
+
`;
|
|
8305
|
+
}
|
|
8306
|
+
|
|
8307
|
+
/**
|
|
8308
|
+
* Returns HTML for the emphasized layout. Does not support type="*".
|
|
8309
|
+
* @private
|
|
8310
|
+
* @returns {html} - Returns HTML for the emphasized layout.
|
|
8311
|
+
*/
|
|
8312
|
+
renderLayoutSnowflake() {
|
|
8313
|
+
return html$1`
|
|
8314
|
+
<div
|
|
8315
|
+
@click="${this.handleClick}"
|
|
8316
|
+
class="${classMap(this.commonWrapperClasses)}"
|
|
8317
|
+
part="wrapper">
|
|
8318
|
+
<div class="accents left">
|
|
8319
|
+
${this.renderHtmlTypeIcon()}
|
|
8320
|
+
</div>
|
|
8321
|
+
<div class="mainContent">
|
|
8322
|
+
${this.renderHtmlInput()}
|
|
8323
|
+
</div>
|
|
8324
|
+
<div class="accents right">
|
|
8325
|
+
${this.renderValidationErrorIconHtml()}
|
|
8326
|
+
${this.hasValue ? html$1`
|
|
7273
8327
|
${!this.disabled && !this.readonly ? html$1`
|
|
7274
|
-
|
|
7275
|
-
<${this.buttonTag}
|
|
7276
|
-
variant="flat"
|
|
7277
|
-
?onDark="${this.onDark}"
|
|
7278
|
-
class="notificationBtn clearBtn"
|
|
7279
|
-
arialabel="${i18n(this.lang, 'clearInput')}"
|
|
7280
|
-
@click="${this.handleClickClear}">
|
|
7281
|
-
<${this.iconTag}
|
|
7282
|
-
customColor
|
|
7283
|
-
category="interface"
|
|
7284
|
-
name="x-lg"
|
|
7285
|
-
>
|
|
7286
|
-
</${this.iconTag}>
|
|
7287
|
-
</${this.buttonTag}>
|
|
7288
|
-
</div>
|
|
8328
|
+
${this.renderHtmlActionClear()}
|
|
7289
8329
|
` : undefined}
|
|
7290
8330
|
` : undefined}
|
|
7291
8331
|
</div>
|
|
7292
8332
|
</div>
|
|
7293
|
-
|
|
7294
|
-
${
|
|
7295
|
-
|
|
7296
|
-
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
7297
|
-
<p id="${this.uniqueId}" part="helpText">
|
|
7298
|
-
<slot name="helptext">${this.getHelpText()}</slot>
|
|
7299
|
-
</p>
|
|
7300
|
-
</${this.helpTextTag}>
|
|
7301
|
-
`
|
|
7302
|
-
: html$1`
|
|
7303
|
-
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
7304
|
-
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
7305
|
-
${this.errorMessage}
|
|
7306
|
-
</p>
|
|
7307
|
-
</${this.helpTextTag}>
|
|
7308
|
-
`
|
|
7309
|
-
}
|
|
8333
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
8334
|
+
${this.renderHtmlHelpText()}
|
|
8335
|
+
</div>
|
|
7310
8336
|
`;
|
|
7311
8337
|
}
|
|
8338
|
+
|
|
8339
|
+
/**
|
|
8340
|
+
* Logic to determine the layout of the component.
|
|
8341
|
+
* @private
|
|
8342
|
+
* @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
|
|
8343
|
+
* @returns {void}
|
|
8344
|
+
*/
|
|
8345
|
+
renderLayout(ForcedLayout) {
|
|
8346
|
+
const layout = ForcedLayout || this.layout;
|
|
8347
|
+
|
|
8348
|
+
switch (layout) {
|
|
8349
|
+
case 'emphasized':
|
|
8350
|
+
return this.renderLayoutEmphasized();
|
|
8351
|
+
case 'emphasized-left':
|
|
8352
|
+
return this.renderLayoutEmphasized();
|
|
8353
|
+
case 'emphasized-right':
|
|
8354
|
+
return this.renderLayoutEmphasized();
|
|
8355
|
+
case 'snowflake':
|
|
8356
|
+
return this.renderLayoutSnowflake();
|
|
8357
|
+
case 'snowflake-left':
|
|
8358
|
+
return this.renderLayoutSnowflake();
|
|
8359
|
+
case 'snowflake-right':
|
|
8360
|
+
return this.renderLayoutSnowflake();
|
|
8361
|
+
default:
|
|
8362
|
+
return this.renderLayoutClassic();
|
|
8363
|
+
}
|
|
8364
|
+
}
|
|
7312
8365
|
}
|
|
7313
8366
|
|
|
7314
8367
|
AuroInput.register();
|