@spectrum-web-components/link 0.10.1 → 0.11.3-express.0

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.
@@ -120,7 +120,7 @@
120
120
  {
121
121
  "kind": "variable",
122
122
  "name": "styles",
123
- "default": "css`\n:host([size=s]){--spectrum-link-primary-text-size:var(\n--spectrum-link-s-primary-text-size,var(--spectrum-global-dimension-font-size-75)\n)}:host([size=m]){--spectrum-link-primary-text-size:var(\n--spectrum-link-m-primary-text-size,var(--spectrum-global-dimension-font-size-100)\n)}:host([size=l]){--spectrum-link-primary-text-size:var(\n--spectrum-link-l-primary-text-size,var(--spectrum-global-dimension-font-size-200)\n)}:host([size=xl]){--spectrum-link-primary-text-size:var(\n--spectrum-link-xl-primary-text-size,var(--spectrum-global-dimension-font-size-300)\n)}a{-webkit-text-decoration-skip:objects;background-color:transparent;cursor:pointer;font-size:var(--spectrum-link-primary-text-size);outline:none;transition:color var(--spectrum-global-animation-duration-100,.13s) ease-in-out}a,a.focus-visible,a.focus-visible{text-decoration:underline}a.focus-visible{-webkit-text-decoration-style:double;text-decoration-style:double}a:focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}a{color:var(\n--spectrum-link-m-primary-text-color,var(--spectrum-global-color-blue-600)\n)}a:hover{color:var(\n--spectrum-link-m-primary-text-color-hover,var(--spectrum-global-color-blue-600)\n)}a:active{color:var(\n--spectrum-link-m-primary-text-color-down,var(--spectrum-global-color-blue-700)\n)}a.focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-text-color-key-focus)\n)}a:focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-text-color-key-focus)\n)}:host([variant=secondary]) a{color:inherit}:host([variant=secondary]) a:hover{color:inherit}:host([variant=secondary]) a:active{color:inherit}:host([variant=secondary]) a:focus{color:inherit}:host([over-background]) a{color:var(\n--spectrum-link-m-primary-overbackground-text-color,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:hover{color:var(\n--spectrum-link-m-primary-overbackground-text-color-hover,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:active{color:var(\n--spectrum-link-m-primary-overbackground-text-color-down,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:focus{color:var(\n--spectrum-link-m-primary-overbackground-text-color-key-focus,var(--spectrum-alias-text-color-overbackground)\n)}@media (forced-colors:active){:host([variant=secondary]) a{color:linktext}:host([variant=secondary]) a:hover{color:linktext}:host([variant=secondary]) a:active{color:linktext}:host([variant=secondary]) a:focus{color:linktext}}:host{display:inline}:host(:focus){outline:none}:host([href]) a.focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}:host([href]) a:focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}\n`"
123
+ "default": "css`\n:host([size=s]){--spectrum-link-primary-text-size:var(\n--spectrum-link-s-primary-text-size,var(--spectrum-global-dimension-font-size-75)\n)}:host([size=m]){--spectrum-link-primary-text-size:var(\n--spectrum-link-m-primary-text-size,var(--spectrum-global-dimension-font-size-100)\n)}:host([size=l]){--spectrum-link-primary-text-size:var(\n--spectrum-link-l-primary-text-size,var(--spectrum-global-dimension-font-size-200)\n)}:host([size=xl]){--spectrum-link-primary-text-size:var(\n--spectrum-link-xl-primary-text-size,var(--spectrum-global-dimension-font-size-300)\n)}a{-webkit-text-decoration-skip:objects;background-color:transparent;cursor:pointer;font-size:var(--spectrum-link-primary-text-size);outline:none;transition:color var(--spectrum-global-animation-duration-100,.13s) ease-in-out}a,a.focus-visible,a.focus-visible{text-decoration:underline}a.focus-visible{-webkit-text-decoration-style:double;text-decoration-style:double}a:focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}a{color:var(\n--spectrum-link-m-primary-text-color,var(--spectrum-alias-link-primary-text-color-default)\n)}a:hover{color:var(\n--spectrum-link-m-primary-text-color-hover,var(--spectrum-alias-link-primary-text-color-hover)\n)}a:active{color:var(\n--spectrum-link-m-primary-text-color-down,var(--spectrum-alias-link-primary-text-color-down)\n)}a.focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)\n)}a:focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)\n)}:host([variant=secondary]) a{color:inherit}:host([variant=secondary]) a:hover{color:inherit}:host([variant=secondary]) a:active{color:inherit}:host([variant=secondary]) a:focus{color:inherit}:host([over-background]) a{color:var(\n--spectrum-link-m-primary-overbackground-text-color,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:hover{color:var(\n--spectrum-link-m-primary-overbackground-text-color-hover,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:active{color:var(\n--spectrum-link-m-primary-overbackground-text-color-down,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:focus{color:var(\n--spectrum-link-m-primary-overbackground-text-color-key-focus,var(--spectrum-alias-text-color-overbackground)\n)}@media (forced-colors:active){:host([variant=secondary]) a{color:linktext}:host([variant=secondary]) a:hover{color:linktext}:host([variant=secondary]) a:active{color:linktext}:host([variant=secondary]) a:focus{color:linktext}}:host{display:inline}:host(:focus){outline:none}:host([href]) a.focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}:host([href]) a:focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}\n`"
124
124
  }
125
125
  ],
126
126
  "exports": [
@@ -141,7 +141,7 @@
141
141
  {
142
142
  "kind": "variable",
143
143
  "name": "styles",
144
- "default": "css`\n:host([size=s]){--spectrum-link-primary-text-size:var(\n--spectrum-link-s-primary-text-size,var(--spectrum-global-dimension-font-size-75)\n)}:host([size=m]){--spectrum-link-primary-text-size:var(\n--spectrum-link-m-primary-text-size,var(--spectrum-global-dimension-font-size-100)\n)}:host([size=l]){--spectrum-link-primary-text-size:var(\n--spectrum-link-l-primary-text-size,var(--spectrum-global-dimension-font-size-200)\n)}:host([size=xl]){--spectrum-link-primary-text-size:var(\n--spectrum-link-xl-primary-text-size,var(--spectrum-global-dimension-font-size-300)\n)}a{-webkit-text-decoration-skip:objects;background-color:transparent;cursor:pointer;font-size:var(--spectrum-link-primary-text-size);outline:none;transition:color var(--spectrum-global-animation-duration-100,.13s) ease-in-out}a,a.focus-visible,a.focus-visible{text-decoration:underline}a.focus-visible{-webkit-text-decoration-style:double;text-decoration-style:double}a:focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}a{color:var(\n--spectrum-link-m-primary-text-color,var(--spectrum-global-color-blue-600)\n)}a:hover{color:var(\n--spectrum-link-m-primary-text-color-hover,var(--spectrum-global-color-blue-600)\n)}a:active{color:var(\n--spectrum-link-m-primary-text-color-down,var(--spectrum-global-color-blue-700)\n)}a.focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-text-color-key-focus)\n)}a:focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-text-color-key-focus)\n)}:host([variant=secondary]) a{color:inherit}:host([variant=secondary]) a:hover{color:inherit}:host([variant=secondary]) a:active{color:inherit}:host([variant=secondary]) a:focus{color:inherit}:host([over-background]) a{color:var(\n--spectrum-link-m-primary-overbackground-text-color,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:hover{color:var(\n--spectrum-link-m-primary-overbackground-text-color-hover,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:active{color:var(\n--spectrum-link-m-primary-overbackground-text-color-down,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:focus{color:var(\n--spectrum-link-m-primary-overbackground-text-color-key-focus,var(--spectrum-alias-text-color-overbackground)\n)}@media (forced-colors:active){:host([variant=secondary]) a{color:linktext}:host([variant=secondary]) a:hover{color:linktext}:host([variant=secondary]) a:active{color:linktext}:host([variant=secondary]) a:focus{color:linktext}}\n`"
144
+ "default": "css`\n:host([size=s]){--spectrum-link-primary-text-size:var(\n--spectrum-link-s-primary-text-size,var(--spectrum-global-dimension-font-size-75)\n)}:host([size=m]){--spectrum-link-primary-text-size:var(\n--spectrum-link-m-primary-text-size,var(--spectrum-global-dimension-font-size-100)\n)}:host([size=l]){--spectrum-link-primary-text-size:var(\n--spectrum-link-l-primary-text-size,var(--spectrum-global-dimension-font-size-200)\n)}:host([size=xl]){--spectrum-link-primary-text-size:var(\n--spectrum-link-xl-primary-text-size,var(--spectrum-global-dimension-font-size-300)\n)}a{-webkit-text-decoration-skip:objects;background-color:transparent;cursor:pointer;font-size:var(--spectrum-link-primary-text-size);outline:none;transition:color var(--spectrum-global-animation-duration-100,.13s) ease-in-out}a,a.focus-visible,a.focus-visible{text-decoration:underline}a.focus-visible{-webkit-text-decoration-style:double;text-decoration-style:double}a:focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}a{color:var(\n--spectrum-link-m-primary-text-color,var(--spectrum-alias-link-primary-text-color-default)\n)}a:hover{color:var(\n--spectrum-link-m-primary-text-color-hover,var(--spectrum-alias-link-primary-text-color-hover)\n)}a:active{color:var(\n--spectrum-link-m-primary-text-color-down,var(--spectrum-alias-link-primary-text-color-down)\n)}a.focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)\n)}a:focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)\n)}:host([variant=secondary]) a{color:inherit}:host([variant=secondary]) a:hover{color:inherit}:host([variant=secondary]) a:active{color:inherit}:host([variant=secondary]) a:focus{color:inherit}:host([over-background]) a{color:var(\n--spectrum-link-m-primary-overbackground-text-color,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:hover{color:var(\n--spectrum-link-m-primary-overbackground-text-color-hover,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:active{color:var(\n--spectrum-link-m-primary-overbackground-text-color-down,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:focus{color:var(\n--spectrum-link-m-primary-overbackground-text-color-key-focus,var(--spectrum-alias-text-color-overbackground)\n)}@media (forced-colors:active){:host([variant=secondary]) a{color:linktext}:host([variant=secondary]) a:hover{color:linktext}:host([variant=secondary]) a:active{color:linktext}:host([variant=secondary]) a:focus{color:linktext}}\n`"
145
145
  }
146
146
  ],
147
147
  "exports": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/link",
3
- "version": "0.10.1",
3
+ "version": "0.11.3-express.0+5d9e2a2ca",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -44,17 +44,17 @@
44
44
  "lit-html"
45
45
  ],
46
46
  "dependencies": {
47
- "@spectrum-web-components/base": "^0.4.6",
48
- "@spectrum-web-components/shared": "^0.12.11",
47
+ "@spectrum-web-components/base": "^0.5.2-express.41+5d9e2a2ca",
48
+ "@spectrum-web-components/shared": "^0.13.3-express.0+5d9e2a2ca",
49
49
  "tslib": "^2.0.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@spectrum-css/link": "^3.1.5"
52
+ "@spectrum-css/link": "latest"
53
53
  },
54
54
  "types": "./src/index.d.ts",
55
55
  "customElements": "custom-elements.json",
56
56
  "sideEffects": [
57
57
  "./sp-*.js"
58
58
  ],
59
- "gitHead": "9c7ac25264762a9b7bad2ef3f111d5eb613f9d05"
59
+ "gitHead": "5d9e2a2ca93deff51e4b2c7b8354f1127009a4e3"
60
60
  }
package/src/Link.js CHANGED
@@ -10,7 +10,8 @@ OF ANY KIND, either express or implied. See the License for the specific languag
10
10
  governing permissions and limitations under the License.
11
11
  */
12
12
  import { __decorate } from "tslib";
13
- import { query, property, SizedMixin, } from '@spectrum-web-components/base';
13
+ import { SizedMixin, } from '@spectrum-web-components/base';
14
+ import { property, query, } from '@spectrum-web-components/base/src/decorators.js';
14
15
  import { LikeAnchor } from '@spectrum-web-components/shared/src/like-anchor.js';
15
16
  import { Focusable } from '@spectrum-web-components/shared/src/focusable.js';
16
17
  import linkStyles from './link.css.js';
package/src/Link.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Link.js","sourceRoot":"","sources":["Link.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;;AAEF,OAAO,EAGH,KAAK,EACL,QAAQ,EACR,UAAU,GACb,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAC;AAE7E,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC;;;;;GAKG;AACH,MAAM,OAAO,IAAK,SAAQ,UAAU,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;IACxD,aAAa,EAAE,IAAI;CACtB,CAAC;IACS,MAAM,KAAK,MAAM;QACpB,OAAO,CAAC,UAAU,CAAC,CAAC;IACxB,CAAC;IAQD,IAAW,YAAY;QACnB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAES,MAAM;QACZ,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC/C,CAAC;CACJ;AAZG;IADC,KAAK,CAAC,SAAS,CAAC;2CACiB;AAGlC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qCACF","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n TemplateResult,\n query,\n property,\n SizedMixin,\n} from '@spectrum-web-components/base';\nimport { LikeAnchor } from '@spectrum-web-components/shared/src/like-anchor.js';\nimport { Focusable } from '@spectrum-web-components/shared/src/focusable.js';\n\nimport linkStyles from './link.css.js';\n\n/**\n * @element sp-link\n *\n * @attr quiet - uses quiet styles or not\n * @attr over-background - uses over background styles or not\n */\nexport class Link extends SizedMixin(LikeAnchor(Focusable), {\n noDefaultSize: true,\n}) {\n public static get styles(): CSSResultArray {\n return [linkStyles];\n }\n\n @query('#anchor')\n anchorElement!: HTMLAnchorElement;\n\n @property({ type: String, reflect: true })\n public variant: 'secondary' | undefined;\n\n public get focusElement(): HTMLElement {\n return this.anchorElement;\n }\n\n protected render(): TemplateResult {\n return this.renderAnchor({ id: 'anchor' });\n }\n}\n"]}
1
+ {"version":3,"file":"Link.js","sourceRoot":"","sources":["Link.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;;AAEF,OAAO,EAEH,UAAU,GAEb,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACH,QAAQ,EACR,KAAK,GACR,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAC;AAE7E,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC;;;;;GAKG;AACH,MAAM,OAAO,IAAK,SAAQ,UAAU,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;IACxD,aAAa,EAAE,IAAI;CACtB,CAAC;IACS,MAAM,KAAK,MAAM;QACpB,OAAO,CAAC,UAAU,CAAC,CAAC;IACxB,CAAC;IAQD,IAAW,YAAY;QACnB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAES,MAAM;QACZ,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC/C,CAAC;CACJ;AAZG;IADC,KAAK,CAAC,SAAS,CAAC;2CACiB;AAGlC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qCACF","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n SizedMixin,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n property,\n query,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport { LikeAnchor } from '@spectrum-web-components/shared/src/like-anchor.js';\nimport { Focusable } from '@spectrum-web-components/shared/src/focusable.js';\n\nimport linkStyles from './link.css.js';\n\n/**\n * @element sp-link\n *\n * @attr quiet - uses quiet styles or not\n * @attr over-background - uses over background styles or not\n */\nexport class Link extends SizedMixin(LikeAnchor(Focusable), {\n noDefaultSize: true,\n}) {\n public static get styles(): CSSResultArray {\n return [linkStyles];\n }\n\n @query('#anchor')\n anchorElement!: HTMLAnchorElement;\n\n @property({ type: String, reflect: true })\n public variant: 'secondary' | undefined;\n\n public get focusElement(): HTMLElement {\n return this.anchorElement;\n }\n\n protected render(): TemplateResult {\n return this.renderAnchor({ id: 'anchor' });\n }\n}\n"]}
package/src/link.css.js CHANGED
@@ -20,15 +20,15 @@ const styles = css `
20
20
  )}:host([size=xl]){--spectrum-link-primary-text-size:var(
21
21
  --spectrum-link-xl-primary-text-size,var(--spectrum-global-dimension-font-size-300)
22
22
  )}a{-webkit-text-decoration-skip:objects;background-color:transparent;cursor:pointer;font-size:var(--spectrum-link-primary-text-size);outline:none;transition:color var(--spectrum-global-animation-duration-100,.13s) ease-in-out}a,a.focus-visible,a.focus-visible{text-decoration:underline}a.focus-visible{-webkit-text-decoration-style:double;text-decoration-style:double}a:focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}a{color:var(
23
- --spectrum-link-m-primary-text-color,var(--spectrum-global-color-blue-600)
23
+ --spectrum-link-m-primary-text-color,var(--spectrum-alias-link-primary-text-color-default)
24
24
  )}a:hover{color:var(
25
- --spectrum-link-m-primary-text-color-hover,var(--spectrum-global-color-blue-600)
25
+ --spectrum-link-m-primary-text-color-hover,var(--spectrum-alias-link-primary-text-color-hover)
26
26
  )}a:active{color:var(
27
- --spectrum-link-m-primary-text-color-down,var(--spectrum-global-color-blue-700)
27
+ --spectrum-link-m-primary-text-color-down,var(--spectrum-alias-link-primary-text-color-down)
28
28
  )}a.focus-visible{color:var(
29
- --spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-text-color-key-focus)
29
+ --spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)
30
30
  )}a:focus-visible{color:var(
31
- --spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-text-color-key-focus)
31
+ --spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)
32
32
  )}:host([variant=secondary]) a{color:inherit}:host([variant=secondary]) a:hover{color:inherit}:host([variant=secondary]) a:active{color:inherit}:host([variant=secondary]) a:focus{color:inherit}:host([over-background]) a{color:var(
33
33
  --spectrum-link-m-primary-overbackground-text-color,var(--spectrum-alias-text-color-overbackground)
34
34
  )}:host([over-background]) a:hover{color:var(
@@ -1 +1 @@
1
- {"version":3,"file":"link.css.js","sourceRoot":"","sources":["link.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACpD,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BjB,CAAC;AACF,eAAe,MAAM,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host([size=s]){--spectrum-link-primary-text-size:var(\n--spectrum-link-s-primary-text-size,var(--spectrum-global-dimension-font-size-75)\n)}:host([size=m]){--spectrum-link-primary-text-size:var(\n--spectrum-link-m-primary-text-size,var(--spectrum-global-dimension-font-size-100)\n)}:host([size=l]){--spectrum-link-primary-text-size:var(\n--spectrum-link-l-primary-text-size,var(--spectrum-global-dimension-font-size-200)\n)}:host([size=xl]){--spectrum-link-primary-text-size:var(\n--spectrum-link-xl-primary-text-size,var(--spectrum-global-dimension-font-size-300)\n)}a{-webkit-text-decoration-skip:objects;background-color:transparent;cursor:pointer;font-size:var(--spectrum-link-primary-text-size);outline:none;transition:color var(--spectrum-global-animation-duration-100,.13s) ease-in-out}a,a.focus-visible,a.focus-visible{text-decoration:underline}a.focus-visible{-webkit-text-decoration-style:double;text-decoration-style:double}a:focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}a{color:var(\n--spectrum-link-m-primary-text-color,var(--spectrum-global-color-blue-600)\n)}a:hover{color:var(\n--spectrum-link-m-primary-text-color-hover,var(--spectrum-global-color-blue-600)\n)}a:active{color:var(\n--spectrum-link-m-primary-text-color-down,var(--spectrum-global-color-blue-700)\n)}a.focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-text-color-key-focus)\n)}a:focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-text-color-key-focus)\n)}:host([variant=secondary]) a{color:inherit}:host([variant=secondary]) a:hover{color:inherit}:host([variant=secondary]) a:active{color:inherit}:host([variant=secondary]) a:focus{color:inherit}:host([over-background]) a{color:var(\n--spectrum-link-m-primary-overbackground-text-color,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:hover{color:var(\n--spectrum-link-m-primary-overbackground-text-color-hover,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:active{color:var(\n--spectrum-link-m-primary-overbackground-text-color-down,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:focus{color:var(\n--spectrum-link-m-primary-overbackground-text-color-key-focus,var(--spectrum-alias-text-color-overbackground)\n)}@media (forced-colors:active){:host([variant=secondary]) a{color:linktext}:host([variant=secondary]) a:hover{color:linktext}:host([variant=secondary]) a:active{color:linktext}:host([variant=secondary]) a:focus{color:linktext}}:host{display:inline}:host(:focus){outline:none}:host([href]) a.focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}:host([href]) a:focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}\n`;\nexport default styles;"]}
1
+ {"version":3,"file":"link.css.js","sourceRoot":"","sources":["link.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACpD,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BjB,CAAC;AACF,eAAe,MAAM,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host([size=s]){--spectrum-link-primary-text-size:var(\n--spectrum-link-s-primary-text-size,var(--spectrum-global-dimension-font-size-75)\n)}:host([size=m]){--spectrum-link-primary-text-size:var(\n--spectrum-link-m-primary-text-size,var(--spectrum-global-dimension-font-size-100)\n)}:host([size=l]){--spectrum-link-primary-text-size:var(\n--spectrum-link-l-primary-text-size,var(--spectrum-global-dimension-font-size-200)\n)}:host([size=xl]){--spectrum-link-primary-text-size:var(\n--spectrum-link-xl-primary-text-size,var(--spectrum-global-dimension-font-size-300)\n)}a{-webkit-text-decoration-skip:objects;background-color:transparent;cursor:pointer;font-size:var(--spectrum-link-primary-text-size);outline:none;transition:color var(--spectrum-global-animation-duration-100,.13s) ease-in-out}a,a.focus-visible,a.focus-visible{text-decoration:underline}a.focus-visible{-webkit-text-decoration-style:double;text-decoration-style:double}a:focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}a{color:var(\n--spectrum-link-m-primary-text-color,var(--spectrum-alias-link-primary-text-color-default)\n)}a:hover{color:var(\n--spectrum-link-m-primary-text-color-hover,var(--spectrum-alias-link-primary-text-color-hover)\n)}a:active{color:var(\n--spectrum-link-m-primary-text-color-down,var(--spectrum-alias-link-primary-text-color-down)\n)}a.focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)\n)}a:focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)\n)}:host([variant=secondary]) a{color:inherit}:host([variant=secondary]) a:hover{color:inherit}:host([variant=secondary]) a:active{color:inherit}:host([variant=secondary]) a:focus{color:inherit}:host([over-background]) a{color:var(\n--spectrum-link-m-primary-overbackground-text-color,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:hover{color:var(\n--spectrum-link-m-primary-overbackground-text-color-hover,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:active{color:var(\n--spectrum-link-m-primary-overbackground-text-color-down,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:focus{color:var(\n--spectrum-link-m-primary-overbackground-text-color-key-focus,var(--spectrum-alias-text-color-overbackground)\n)}@media (forced-colors:active){:host([variant=secondary]) a{color:linktext}:host([variant=secondary]) a:hover{color:linktext}:host([variant=secondary]) a:active{color:linktext}:host([variant=secondary]) a:focus{color:linktext}}:host{display:inline}:host(:focus){outline:none}:host([href]) a.focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}:host([href]) a:focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}\n`;\nexport default styles;"]}
@@ -20,15 +20,15 @@ const styles = css `
20
20
  )}:host([size=xl]){--spectrum-link-primary-text-size:var(
21
21
  --spectrum-link-xl-primary-text-size,var(--spectrum-global-dimension-font-size-300)
22
22
  )}a{-webkit-text-decoration-skip:objects;background-color:transparent;cursor:pointer;font-size:var(--spectrum-link-primary-text-size);outline:none;transition:color var(--spectrum-global-animation-duration-100,.13s) ease-in-out}a,a.focus-visible,a.focus-visible{text-decoration:underline}a.focus-visible{-webkit-text-decoration-style:double;text-decoration-style:double}a:focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}a{color:var(
23
- --spectrum-link-m-primary-text-color,var(--spectrum-global-color-blue-600)
23
+ --spectrum-link-m-primary-text-color,var(--spectrum-alias-link-primary-text-color-default)
24
24
  )}a:hover{color:var(
25
- --spectrum-link-m-primary-text-color-hover,var(--spectrum-global-color-blue-600)
25
+ --spectrum-link-m-primary-text-color-hover,var(--spectrum-alias-link-primary-text-color-hover)
26
26
  )}a:active{color:var(
27
- --spectrum-link-m-primary-text-color-down,var(--spectrum-global-color-blue-700)
27
+ --spectrum-link-m-primary-text-color-down,var(--spectrum-alias-link-primary-text-color-down)
28
28
  )}a.focus-visible{color:var(
29
- --spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-text-color-key-focus)
29
+ --spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)
30
30
  )}a:focus-visible{color:var(
31
- --spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-text-color-key-focus)
31
+ --spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)
32
32
  )}:host([variant=secondary]) a{color:inherit}:host([variant=secondary]) a:hover{color:inherit}:host([variant=secondary]) a:active{color:inherit}:host([variant=secondary]) a:focus{color:inherit}:host([over-background]) a{color:var(
33
33
  --spectrum-link-m-primary-overbackground-text-color,var(--spectrum-alias-text-color-overbackground)
34
34
  )}:host([over-background]) a:hover{color:var(
@@ -1 +1 @@
1
- {"version":3,"file":"spectrum-link.css.js","sourceRoot":"","sources":["spectrum-link.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACpD,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BjB,CAAC;AACF,eAAe,MAAM,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host([size=s]){--spectrum-link-primary-text-size:var(\n--spectrum-link-s-primary-text-size,var(--spectrum-global-dimension-font-size-75)\n)}:host([size=m]){--spectrum-link-primary-text-size:var(\n--spectrum-link-m-primary-text-size,var(--spectrum-global-dimension-font-size-100)\n)}:host([size=l]){--spectrum-link-primary-text-size:var(\n--spectrum-link-l-primary-text-size,var(--spectrum-global-dimension-font-size-200)\n)}:host([size=xl]){--spectrum-link-primary-text-size:var(\n--spectrum-link-xl-primary-text-size,var(--spectrum-global-dimension-font-size-300)\n)}a{-webkit-text-decoration-skip:objects;background-color:transparent;cursor:pointer;font-size:var(--spectrum-link-primary-text-size);outline:none;transition:color var(--spectrum-global-animation-duration-100,.13s) ease-in-out}a,a.focus-visible,a.focus-visible{text-decoration:underline}a.focus-visible{-webkit-text-decoration-style:double;text-decoration-style:double}a:focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}a{color:var(\n--spectrum-link-m-primary-text-color,var(--spectrum-global-color-blue-600)\n)}a:hover{color:var(\n--spectrum-link-m-primary-text-color-hover,var(--spectrum-global-color-blue-600)\n)}a:active{color:var(\n--spectrum-link-m-primary-text-color-down,var(--spectrum-global-color-blue-700)\n)}a.focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-text-color-key-focus)\n)}a:focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-text-color-key-focus)\n)}:host([variant=secondary]) a{color:inherit}:host([variant=secondary]) a:hover{color:inherit}:host([variant=secondary]) a:active{color:inherit}:host([variant=secondary]) a:focus{color:inherit}:host([over-background]) a{color:var(\n--spectrum-link-m-primary-overbackground-text-color,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:hover{color:var(\n--spectrum-link-m-primary-overbackground-text-color-hover,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:active{color:var(\n--spectrum-link-m-primary-overbackground-text-color-down,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:focus{color:var(\n--spectrum-link-m-primary-overbackground-text-color-key-focus,var(--spectrum-alias-text-color-overbackground)\n)}@media (forced-colors:active){:host([variant=secondary]) a{color:linktext}:host([variant=secondary]) a:hover{color:linktext}:host([variant=secondary]) a:active{color:linktext}:host([variant=secondary]) a:focus{color:linktext}}\n`;\nexport default styles;"]}
1
+ {"version":3,"file":"spectrum-link.css.js","sourceRoot":"","sources":["spectrum-link.css.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AACF,OAAO,EAAE,GAAG,EAAE,MAAM,+BAA+B,CAAC;AACpD,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BjB,CAAC;AACF,eAAe,MAAM,CAAC","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host([size=s]){--spectrum-link-primary-text-size:var(\n--spectrum-link-s-primary-text-size,var(--spectrum-global-dimension-font-size-75)\n)}:host([size=m]){--spectrum-link-primary-text-size:var(\n--spectrum-link-m-primary-text-size,var(--spectrum-global-dimension-font-size-100)\n)}:host([size=l]){--spectrum-link-primary-text-size:var(\n--spectrum-link-l-primary-text-size,var(--spectrum-global-dimension-font-size-200)\n)}:host([size=xl]){--spectrum-link-primary-text-size:var(\n--spectrum-link-xl-primary-text-size,var(--spectrum-global-dimension-font-size-300)\n)}a{-webkit-text-decoration-skip:objects;background-color:transparent;cursor:pointer;font-size:var(--spectrum-link-primary-text-size);outline:none;transition:color var(--spectrum-global-animation-duration-100,.13s) ease-in-out}a,a.focus-visible,a.focus-visible{text-decoration:underline}a.focus-visible{-webkit-text-decoration-style:double;text-decoration-style:double}a:focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}a{color:var(\n--spectrum-link-m-primary-text-color,var(--spectrum-alias-link-primary-text-color-default)\n)}a:hover{color:var(\n--spectrum-link-m-primary-text-color-hover,var(--spectrum-alias-link-primary-text-color-hover)\n)}a:active{color:var(\n--spectrum-link-m-primary-text-color-down,var(--spectrum-alias-link-primary-text-color-down)\n)}a.focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)\n)}a:focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)\n)}:host([variant=secondary]) a{color:inherit}:host([variant=secondary]) a:hover{color:inherit}:host([variant=secondary]) a:active{color:inherit}:host([variant=secondary]) a:focus{color:inherit}:host([over-background]) a{color:var(\n--spectrum-link-m-primary-overbackground-text-color,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:hover{color:var(\n--spectrum-link-m-primary-overbackground-text-color-hover,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:active{color:var(\n--spectrum-link-m-primary-overbackground-text-color-down,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:focus{color:var(\n--spectrum-link-m-primary-overbackground-text-color-key-focus,var(--spectrum-alias-text-color-overbackground)\n)}@media (forced-colors:active){:host([variant=secondary]) a{color:linktext}:host([variant=secondary]) a:hover{color:linktext}:host([variant=secondary]) a:active{color:linktext}:host([variant=secondary]) a:focus{color:linktext}}\n`;\nexport default styles;"]}