@spectrum-web-components/link 0.11.4 → 0.11.5-express.9

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.11.4",
3
+ "version": "0.11.5-express.9+abfee7409",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -49,12 +49,12 @@
49
49
  "tslib": "^2.0.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@spectrum-css/link": "^3.1.10"
52
+ "@spectrum-css/link": "^3.1.14"
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": "bb5308b9be01cc7c5bbab289312042256bdcc740"
59
+ "gitHead": "abfee740957976448a3e4cf90df17d6165f857d6"
60
60
  }
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;"]}
@@ -0,0 +1,15 @@
1
+ /*
2
+ Copyright 2020 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+ import * as stories from '../stories/link-sizes.stories.js';
13
+ import { regressVisuals } from '../../../test/visual/test.js';
14
+ regressVisuals('LinkSizesStories', stories);
15
+ //# sourceMappingURL=link-sizes.test-vrt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-sizes.test-vrt.js","sourceRoot":"","sources":["link-sizes.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,kBAAkB,EAAE,OAAO,CAAC,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*/\n\nimport * as stories from '../stories/link-sizes.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('LinkSizesStories', stories);\n"]}
@@ -0,0 +1,15 @@
1
+ /*
2
+ Copyright 2020 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+ import * as stories from '../stories/link.stories.js';
13
+ import { regressVisuals } from '../../../test/visual/test.js';
14
+ regressVisuals('LinkStories', stories);
15
+ //# sourceMappingURL=link.test-vrt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.test-vrt.js","sourceRoot":"","sources":["link.test-vrt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,KAAK,OAAO,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,cAAc,CAAC,aAAa,EAAE,OAAO,CAAC,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*/\n\nimport * as stories from '../stories/link.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\n\nregressVisuals('LinkStories', stories);\n"]}
@@ -0,0 +1,65 @@
1
+ /*
2
+ Copyright 2020 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+ import '../sp-link.js';
13
+ import { elementUpdated, expect, fixture, html } from '@open-wc/testing';
14
+ describe('Link', () => {
15
+ it('loads', async () => {
16
+ const el = await fixture(html `
17
+ <sp-link href="test_url">Default Link</sp-link>
18
+ `);
19
+ await elementUpdated(el);
20
+ expect(el).to.not.be.undefined;
21
+ expect(el.textContent).to.include('Default Link');
22
+ await expect(el).to.be.accessible();
23
+ });
24
+ it('loads[download]', async () => {
25
+ const el = await fixture(html `
26
+ <sp-link href="test_url" download="somefile.txt">
27
+ Default Link
28
+ </sp-link>
29
+ `);
30
+ await elementUpdated(el);
31
+ expect(el).to.not.be.undefined;
32
+ expect(el.textContent).to.include('Default Link');
33
+ await expect(el).to.be.accessible();
34
+ });
35
+ it('loads[rel]', async () => {
36
+ const el = await fixture(html `
37
+ <sp-link href="test_url" rel="external">Default Link</sp-link>
38
+ `);
39
+ await elementUpdated(el);
40
+ expect(el).to.not.be.undefined;
41
+ expect(el.focusElement.getAttribute('rel')).to.eq('external');
42
+ await expect(el).to.be.accessible();
43
+ });
44
+ it('manages the `size` atrbute', async () => {
45
+ const el = await fixture(html `
46
+ <sp-link href="test_url">Default Link</sp-link>
47
+ `);
48
+ await elementUpdated(el);
49
+ expect(el.size, 'property 0: m').to.equal('m');
50
+ expect(el.getAttribute('size'), 'attribute 0: null').to.be.null;
51
+ el.setAttribute('size', 'xl');
52
+ await elementUpdated(el);
53
+ expect(el.size, 'property 1: xl').to.equal('xl');
54
+ expect(el.getAttribute('size'), 'attribute 1: xl').to.equal('xl');
55
+ el.removeAttribute('size');
56
+ await elementUpdated(el);
57
+ expect(el.size, 'property 2: m').to.equal('m');
58
+ expect(el.getAttribute('size'), 'attribute 2: null').to.be.null;
59
+ el.setAttribute('size', 'm');
60
+ await elementUpdated(el);
61
+ expect(el.size, 'property 3: m').to.equal('m');
62
+ expect(el.getAttribute('size'), 'attribute 3: m').to.equal('m');
63
+ });
64
+ });
65
+ //# sourceMappingURL=link.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.test.js","sourceRoot":"","sources":["link.test.ts"],"names":[],"mappings":"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","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 '../sp-link.js';\nimport { Link } from '../';\nimport { elementUpdated, expect, fixture, html } from '@open-wc/testing';\n\ndescribe('Link', () => {\n it('loads', async () => {\n const el = await fixture<Link>(\n html`\n <sp-link href=\"test_url\">Default Link</sp-link>\n `\n );\n\n await elementUpdated(el);\n expect(el).to.not.be.undefined;\n expect(el.textContent).to.include('Default Link');\n\n await expect(el).to.be.accessible();\n });\n\n it('loads[download]', async () => {\n const el = await fixture<Link>(\n html`\n <sp-link href=\"test_url\" download=\"somefile.txt\">\n Default Link\n </sp-link>\n `\n );\n\n await elementUpdated(el);\n expect(el).to.not.be.undefined;\n expect(el.textContent).to.include('Default Link');\n\n await expect(el).to.be.accessible();\n });\n\n it('loads[rel]', async () => {\n const el = await fixture<Link>(\n html`\n <sp-link href=\"test_url\" rel=\"external\">Default Link</sp-link>\n `\n );\n\n await elementUpdated(el);\n expect(el).to.not.be.undefined;\n expect(el.focusElement.getAttribute('rel')).to.eq('external');\n\n await expect(el).to.be.accessible();\n });\n\n it('manages the `size` atrbute', async () => {\n const el = await fixture<Link>(\n html`\n <sp-link href=\"test_url\">Default Link</sp-link>\n `\n );\n\n await elementUpdated(el);\n expect(el.size, 'property 0: m').to.equal('m');\n expect(el.getAttribute('size'), 'attribute 0: null').to.be.null;\n\n el.setAttribute('size', 'xl');\n await elementUpdated(el);\n expect(el.size, 'property 1: xl').to.equal('xl');\n expect(el.getAttribute('size'), 'attribute 1: xl').to.equal('xl');\n\n el.removeAttribute('size');\n await elementUpdated(el);\n expect(el.size, 'property 2: m').to.equal('m');\n expect(el.getAttribute('size'), 'attribute 2: null').to.be.null;\n\n el.setAttribute('size', 'm');\n await elementUpdated(el);\n expect(el.size, 'property 3: m').to.equal('m');\n expect(el.getAttribute('size'), 'attribute 3: m').to.equal('m');\n });\n});\n"]}