@spectrum-web-components/link 0.13.2 → 0.14.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/README.md CHANGED
@@ -24,47 +24,13 @@ When looking to leverage the `Link` base class as a type and/or for extension pu
24
24
  import { Link } from '@spectrum-web-components/link';
25
25
  ```
26
26
 
27
- ## Sizes
27
+ ## Example
28
28
 
29
- <sp-tabs selected="m" auto label="Size Attribute Options">
30
- <sp-tab value="s">Small</sp-tab>
31
- <sp-tab-panel value="s">
32
-
33
- <!-- prettier-ignore -->
34
- ```html
35
- This is an <sp-link size="s" href="#">example link</sp-link>.
36
- ```
37
-
38
- </sp-tab-panel>
39
- <sp-tab value="m">Medium</sp-tab>
40
- <sp-tab-panel value="m">
41
-
42
- <!-- prettier-ignore -->
43
- ```html
44
- This is an <sp-link size="m" href="#">example link</sp-link>.
45
- ```
46
-
47
- </sp-tab-panel>
48
- <sp-tab value="l">Large</sp-tab>
49
- <sp-tab-panel value="l">
50
-
51
- <!-- prettier-ignore -->
52
- ```html
53
- This is an <sp-link size="l" href="#">example link</sp-link>.
54
- ```
55
-
56
- </sp-tab-panel>
57
- <sp-tab value="xl">Extra Large</sp-tab>
58
- <sp-tab-panel value="xl">
59
-
60
29
  <!-- prettier-ignore -->
61
30
  ```html
62
- This is an <sp-link size="xl" href="#">example link</sp-link>.
31
+ This is an <sp-link href="#">example link</sp-link>.
63
32
  ```
64
33
 
65
- </sp-tab-panel>
66
- </sp-tabs>
67
-
68
34
  ## Variants
69
35
 
70
36
  ### Standard links
@@ -85,9 +51,13 @@ The secondary variant is the same color as the paragraph text inline of which it
85
51
  This is a <sp-link href="#" variant="secondary">secondary link</sp-link>.
86
52
  ```
87
53
 
88
- ### Links over backgrounds
54
+ ### Static colored links
89
55
 
90
- When a link needs to be placed on top of a colored background or a visual, use the over background link. This link uses a white opaque color instead of a blue color and stands out from the rest of the text with the addition of an underline.
56
+ When a link needs to be placed on top of a colored background or a visual it may be appropriate to ship it with a static color, regardless of the theme settings with which it is delivered. Leverage the `static` attribute with its `white` or `black` values to ensure the delivery is the same in all contexts.
57
+
58
+ <sp-tabs selected="white" auto label="Static Attribute Options">
59
+ <sp-tab value="white">White</sp-tab>
60
+ <sp-tab-panel value="white">
91
61
 
92
62
  ```html
93
63
  <div
@@ -95,12 +65,31 @@ When a link needs to be placed on top of a colored background or a visual, use t
95
65
  >
96
66
  <p style="color: rgb(240, 240, 240);">
97
67
  This
98
- <sp-link over-background href="#">link</sp-link>
68
+ <sp-link static="white" href="#">link</sp-link>
69
+ is over a background.
70
+ </p>
71
+ </div>
72
+ ```
73
+
74
+ </sp-tab-panel>
75
+ <sp-tab value="black">Black</sp-tab>
76
+ <sp-tab-panel value="black">
77
+
78
+ ```html
79
+ <div
80
+ style="background-color: rgb(181, 209, 211); padding: 15px 20px; display: inline-block;"
81
+ >
82
+ <p style="color: rgb(15, 15, 15);">
83
+ This
84
+ <sp-link static="black" href="#">link</sp-link>
99
85
  is over a background.
100
86
  </p>
101
87
  </div>
102
88
  ```
103
89
 
90
+ </sp-tab-panel>
91
+ </sp-tabs>
92
+
104
93
  ### Quiet links
105
94
 
106
95
  All links can have a quiet style, which means they don’t have an underline. This style should only be used when the placement and context of the link is explicit enough that a visible underline isn’t necessary. Quiet links are less accessible, so they should not be used for links that are essential to the experience. These are commonly used in website footers, where there are several lists of links that are shortcuts to other pages.
@@ -114,7 +103,7 @@ All links can have a quiet style, which means they don’t have an underline. Th
114
103
  >
115
104
  <p style="color: rgb(240, 240, 240);">
116
105
  This is a
117
- <sp-link over-background quiet href="#">quiet link</sp-link>
106
+ <sp-link static="white" quiet href="#">quiet link</sp-link>
118
107
  over a background.
119
108
  </p>
120
109
  </div>
@@ -43,6 +43,16 @@
43
43
  "attribute": "variant",
44
44
  "reflects": true
45
45
  },
46
+ {
47
+ "kind": "field",
48
+ "name": "static",
49
+ "type": {
50
+ "text": "'black' | 'white' | undefined"
51
+ },
52
+ "privacy": "public",
53
+ "attribute": "static",
54
+ "reflects": true
55
+ },
46
56
  {
47
57
  "kind": "field",
48
58
  "name": "focusElement",
@@ -67,13 +77,16 @@
67
77
  "text": "'secondary' | undefined"
68
78
  },
69
79
  "fieldName": "variant"
80
+ },
81
+ {
82
+ "name": "static",
83
+ "type": {
84
+ "text": "'black' | 'white' | undefined"
85
+ },
86
+ "fieldName": "static"
70
87
  }
71
88
  ],
72
89
  "mixins": [
73
- {
74
- "name": "SizedMixin",
75
- "package": "@spectrum-web-components/base"
76
- },
77
90
  {
78
91
  "name": "LikeAnchor",
79
92
  "package": "@spectrum-web-components/shared/src/like-anchor.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/link",
3
- "version": "0.13.2",
3
+ "version": "0.14.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -57,11 +57,11 @@
57
57
  "lit-html"
58
58
  ],
59
59
  "dependencies": {
60
- "@spectrum-web-components/base": "^0.7.1",
61
- "@spectrum-web-components/shared": "^0.15.2"
60
+ "@spectrum-web-components/base": "^0.7.2",
61
+ "@spectrum-web-components/shared": "^0.15.3"
62
62
  },
63
63
  "devDependencies": {
64
- "@spectrum-css/link": "^3.1.23"
64
+ "@spectrum-css/link": "^4.0.1"
65
65
  },
66
66
  "types": "./src/index.d.ts",
67
67
  "customElements": "custom-elements.json",
@@ -69,5 +69,5 @@
69
69
  "./sp-*.js",
70
70
  "./**/*.dev.js"
71
71
  ],
72
- "gitHead": "8bd87724e91e23df83dbf63a434bbbe10b8daaa6"
72
+ "gitHead": "34bbc8bf1636f2d78ca9d5dbabc0b89da625572f"
73
73
  }
package/src/Link.d.ts CHANGED
@@ -3,9 +3,6 @@ import { Focusable } from '@spectrum-web-components/shared/src/focusable.js';
3
3
  declare const Link_base: typeof Focusable & {
4
4
  new (...args: any[]): import("@spectrum-web-components/shared/src/like-anchor.js").LikeAnchorInterface;
5
5
  prototype: import("@spectrum-web-components/shared/src/like-anchor.js").LikeAnchorInterface;
6
- } & {
7
- new (...args: any[]): import("@spectrum-web-components/base").SizedElementInterface;
8
- prototype: import("@spectrum-web-components/base").SizedElementInterface;
9
6
  };
10
7
  /**
11
8
  * @element sp-link
@@ -17,6 +14,7 @@ export declare class Link extends Link_base {
17
14
  static get styles(): CSSResultArray;
18
15
  anchorElement: HTMLAnchorElement;
19
16
  variant: 'secondary' | undefined;
17
+ static: 'black' | 'white' | undefined;
20
18
  get focusElement(): HTMLElement;
21
19
  protected render(): TemplateResult;
22
20
  }
package/src/Link.dev.js CHANGED
@@ -10,9 +10,6 @@ var __decorateClass = (decorators, target, key, kind) => {
10
10
  __defProp(target, key, result);
11
11
  return result;
12
12
  };
13
- import {
14
- SizedMixin
15
- } from "@spectrum-web-components/base";
16
13
  import {
17
14
  property,
18
15
  query
@@ -20,9 +17,7 @@ import {
20
17
  import { LikeAnchor } from "@spectrum-web-components/shared/src/like-anchor.js";
21
18
  import { Focusable } from "@spectrum-web-components/shared/src/focusable.js";
22
19
  import linkStyles from "./link.css.js";
23
- export class Link extends SizedMixin(LikeAnchor(Focusable), {
24
- noDefaultSize: true
25
- }) {
20
+ export class Link extends LikeAnchor(Focusable) {
26
21
  static get styles() {
27
22
  return [linkStyles];
28
23
  }
@@ -39,4 +34,7 @@ __decorateClass([
39
34
  __decorateClass([
40
35
  property({ type: String, reflect: true })
41
36
  ], Link.prototype, "variant", 2);
37
+ __decorateClass([
38
+ property({ type: String, reflect: true })
39
+ ], Link.prototype, "static", 2);
42
40
  //# sourceMappingURL=Link.dev.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["Link.ts"],
4
- "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 override 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 override get focusElement(): HTMLElement {\n return this.anchorElement;\n }\n\n protected override render(): TemplateResult {\n return this.renderAnchor({ id: 'anchor' });\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;AAYA;AAAA,EAEI;AAAA,OAEG;AACP;AAAA,EACI;AAAA,EACA;AAAA,OACG;AACP,SAAS,kBAAkB;AAC3B,SAAS,iBAAiB;AAE1B,OAAO,gBAAgB;AAQhB,aAAM,aAAa,WAAW,WAAW,SAAS,GAAG;AAAA,EACxD,eAAe;AACnB,CAAC,EAAE;AAAA,EACC,WAA2B,SAAyB;AAChD,WAAO,CAAC,UAAU;AAAA,EACtB;AAAA,EAQA,IAAoB,eAA4B;AAC5C,WAAO,KAAK;AAAA,EAChB;AAAA,EAEmB,SAAyB;AACxC,WAAO,KAAK,aAAa,EAAE,IAAI,SAAS,CAAC;AAAA,EAC7C;AACJ;AAZI;AAAA,EADC,MAAM,SAAS;AAAA,GAPP,KAQT;AAGO;AAAA,EADN,SAAS,EAAE,MAAM,QAAQ,SAAS,KAAK,CAAC;AAAA,GAVhC,KAWF;",
4
+ "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 { CSSResultArray, TemplateResult } 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 LikeAnchor(Focusable) {\n public static override 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 @property({ type: String, reflect: true })\n public static: 'black' | 'white' | undefined;\n\n public override get focusElement(): HTMLElement {\n return this.anchorElement;\n }\n\n protected override render(): TemplateResult {\n return this.renderAnchor({ id: 'anchor' });\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;AAaA;AAAA,EACI;AAAA,EACA;AAAA,OACG;AACP,SAAS,kBAAkB;AAC3B,SAAS,iBAAiB;AAE1B,OAAO,gBAAgB;AAQhB,aAAM,aAAa,WAAW,SAAS,EAAE;AAAA,EAC5C,WAA2B,SAAyB;AAChD,WAAO,CAAC,UAAU;AAAA,EACtB;AAAA,EAWA,IAAoB,eAA4B;AAC5C,WAAO,KAAK;AAAA,EAChB;AAAA,EAEmB,SAAyB;AACxC,WAAO,KAAK,aAAa,EAAE,IAAI,SAAS,CAAC;AAAA,EAC7C;AACJ;AAfI;AAAA,EADC,MAAM,SAAS;AAAA,GALP,KAMT;AAGO;AAAA,EADN,SAAS,EAAE,MAAM,QAAQ,SAAS,KAAK,CAAC;AAAA,GARhC,KASF;AAGA;AAAA,EADN,SAAS,EAAE,MAAM,QAAQ,SAAS,KAAK,CAAC;AAAA,GAXhC,KAYF;",
6
6
  "names": []
7
7
  }
package/src/Link.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var m=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var c=(o,r,n,t)=>{for(var e=t>1?void 0:t?u(r,n):r,i=o.length-1,l;i>=0;i--)(l=o[i])&&(e=(t?l(r,n,e):l(e))||e);return t&&e&&m(r,n,e),e};import{SizedMixin as s}from"@spectrum-web-components/base";import{property as a,query as p}from"@spectrum-web-components/base/src/decorators.js";import{LikeAnchor as d}from"@spectrum-web-components/shared/src/like-anchor.js";import{Focusable as f}from"@spectrum-web-components/shared/src/focusable.js";import h from"./link.css.js";export class Link extends s(d(f),{noDefaultSize:!0}){static get styles(){return[h]}get focusElement(){return this.anchorElement}render(){return this.renderAnchor({id:"anchor"})}}c([p("#anchor")],Link.prototype,"anchorElement",2),c([a({type:String,reflect:!0})],Link.prototype,"variant",2);
1
+ "use strict";var m=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var o=(n,r,i,t)=>{for(var e=t>1?void 0:t?p(r,i):r,l=n.length-1,c;l>=0;l--)(c=n[l])&&(e=(t?c(r,i,e):c(e))||e);return t&&e&&m(r,i,e),e};import{property as u,query as s}from"@spectrum-web-components/base/src/decorators.js";import{LikeAnchor as a}from"@spectrum-web-components/shared/src/like-anchor.js";import{Focusable as d}from"@spectrum-web-components/shared/src/focusable.js";import f from"./link.css.js";export class Link extends a(d){static get styles(){return[f]}get focusElement(){return this.anchorElement}render(){return this.renderAnchor({id:"anchor"})}}o([s("#anchor")],Link.prototype,"anchorElement",2),o([u({type:String,reflect:!0})],Link.prototype,"variant",2),o([u({type:String,reflect:!0})],Link.prototype,"static",2);
2
2
  //# sourceMappingURL=Link.js.map
package/src/Link.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["Link.ts"],
4
- "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 override 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 override get focusElement(): HTMLElement {\n return this.anchorElement;\n }\n\n protected override render(): TemplateResult {\n return this.renderAnchor({ id: 'anchor' });\n }\n}\n"],
5
- "mappings": "qNAYA,OAEI,cAAAA,MAEG,gCACP,OACI,YAAAC,EACA,SAAAC,MACG,kDACP,OAAS,cAAAC,MAAkB,qDAC3B,OAAS,aAAAC,MAAiB,mDAE1B,OAAOC,MAAgB,gBAQhB,aAAM,aAAaL,EAAWG,EAAWC,CAAS,EAAG,CACxD,cAAe,EACnB,CAAC,CAAE,CACC,WAA2B,QAAyB,CAChD,MAAO,CAACC,CAAU,CACtB,CAQA,IAAoB,cAA4B,CAC5C,OAAO,KAAK,aAChB,CAEmB,QAAyB,CACxC,OAAO,KAAK,aAAa,CAAE,GAAI,QAAS,CAAC,CAC7C,CACJ,CAZIC,EAAA,CADCJ,EAAM,SAAS,GAPP,KAQT,6BAGOI,EAAA,CADNL,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,GAVhC,KAWF",
6
- "names": ["SizedMixin", "property", "query", "LikeAnchor", "Focusable", "linkStyles", "__decorateClass"]
4
+ "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 { CSSResultArray, TemplateResult } 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 LikeAnchor(Focusable) {\n public static override 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 @property({ type: String, reflect: true })\n public static: 'black' | 'white' | undefined;\n\n public override get focusElement(): HTMLElement {\n return this.anchorElement;\n }\n\n protected override render(): TemplateResult {\n return this.renderAnchor({ id: 'anchor' });\n }\n}\n"],
5
+ "mappings": "qNAaA,OACI,YAAAA,EACA,SAAAC,MACG,kDACP,OAAS,cAAAC,MAAkB,qDAC3B,OAAS,aAAAC,MAAiB,mDAE1B,OAAOC,MAAgB,gBAQhB,aAAM,aAAaF,EAAWC,CAAS,CAAE,CAC5C,WAA2B,QAAyB,CAChD,MAAO,CAACC,CAAU,CACtB,CAWA,IAAoB,cAA4B,CAC5C,OAAO,KAAK,aAChB,CAEmB,QAAyB,CACxC,OAAO,KAAK,aAAa,CAAE,GAAI,QAAS,CAAC,CAC7C,CACJ,CAfIC,EAAA,CADCJ,EAAM,SAAS,GALP,KAMT,6BAGOI,EAAA,CADNL,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,GARhC,KASF,uBAGAK,EAAA,CADNL,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,GAXhC,KAYF",
6
+ "names": ["property", "query", "LikeAnchor", "Focusable", "linkStyles", "__decorateClass"]
7
7
  }
@@ -1,33 +1,53 @@
1
1
  "use strict";
2
2
  import { css } from "@spectrum-web-components/base";
3
3
  const styles = css`
4
- :host([size=s]){--spectrum-link-primary-text-size:var(
5
- --spectrum-link-s-primary-text-size,var(--spectrum-global-dimension-font-size-75)
6
- )}:host([size=m]){--spectrum-link-primary-text-size:var(
7
- --spectrum-link-m-primary-text-size,var(--spectrum-global-dimension-font-size-100)
8
- )}:host([size=l]){--spectrum-link-primary-text-size:var(
9
- --spectrum-link-l-primary-text-size,var(--spectrum-global-dimension-font-size-200)
10
- )}:host([size=xl]){--spectrum-link-primary-text-size:var(
11
- --spectrum-link-xl-primary-text-size,var(--spectrum-global-dimension-font-size-300)
12
- )}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(
13
- --spectrum-link-m-primary-text-color,var(--spectrum-alias-link-primary-text-color-default)
14
- )}a:hover{color:var(
15
- --spectrum-link-m-primary-text-color-hover,var(--spectrum-alias-link-primary-text-color-hover)
4
+ :host{--spectrum-link-animation-duration:var(
5
+ --spectrum-animation-duration-100
6
+ );--spectrum-link-text-color-primary-default:var(
7
+ --spectrum-accent-content-color-default
8
+ );--spectrum-link-text-color-primary-hover:var(
9
+ --spectrum-accent-content-color-hover
10
+ );--spectrum-link-text-color-primary-active:var(
11
+ --spectrum-accent-content-color-down
12
+ );--spectrum-link-text-color-primary-focus:var(
13
+ --spectrum-accent-content-color-key-focus
14
+ );--spectrum-link-text-color-secondary-default:var(
15
+ --spectrum-neutral-content-color-default
16
+ );--spectrum-link-text-color-secondary-hover:var(
17
+ --spectrum-neutral-content-color-hover
18
+ );--spectrum-link-text-color-secondary-active:var(
19
+ --spectrum-neutral-content-color-down
20
+ );--spectrum-link-text-color-secondary-focus:var(
21
+ --spectrum-neutral-content-color-key-focus
22
+ );--spectrum-link-text-color-white:var(--spectrum-white);--spectrum-link-text-color-black:var(--spectrum-black)}@media (forced-colors:active){a{--highcontrast-link-focus-color:CanvasText}: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}&--staticBlack{--highcontrast-link-text-color-black:ButtonText}&--staticWhite{--highcontrast-link-text-color-white:ButtonText}}a{-webkit-text-decoration-skip:objects;background-color:transparent;color:var(
23
+ --mod-link-text-color-primary-default,var(--spectrum-link-text-color-primary-default)
24
+ );cursor:pointer;outline:none;text-decoration:underline;transition:color var(
25
+ --mod-link-animation-duration,var(--spectrum-link-animation-duration)
26
+ ) ease-in-out}a:hover{color:var(
27
+ --mod-link-text-color-primary-hover,var(--spectrum-link-text-color-primary-hover)
16
28
  )}a:active{color:var(
17
- --spectrum-link-m-primary-text-color-down,var(--spectrum-alias-link-primary-text-color-down)
29
+ --mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)
18
30
  )}a.focus-visible{color:var(
19
- --spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)
20
- )}a:focus-visible{color:var(
21
- --spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)
22
- )}: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(
23
- --spectrum-link-m-primary-overbackground-text-color,var(--spectrum-alias-text-color-overbackground)
24
- )}:host([over-background]) a:hover{color:var(
25
- --spectrum-link-m-primary-overbackground-text-color-hover,var(--spectrum-alias-text-color-overbackground)
26
- )}:host([over-background]) a:active{color:var(
27
- --spectrum-link-m-primary-overbackground-text-color-down,var(--spectrum-alias-text-color-overbackground)
28
- )}:host([over-background]) a:focus{color:var(
29
- --spectrum-link-m-primary-overbackground-text-color-key-focus,var(--spectrum-alias-text-color-overbackground)
30
- )}@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}
31
+ --mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)
32
+ );text-decoration:underline;text-decoration-color:var(--highcontrast-link-focus-color,inherit);text-decoration-style:double}a:focus-visible{color:var(
33
+ --mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)
34
+ );text-decoration:underline;text-decoration-color:var(--highcontrast-link-focus-color,inherit);text-decoration-style:double}:host([variant=secondary]) a{color:var(
35
+ --mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)
36
+ )}:host([variant=secondary]) a:hover{color:var(
37
+ --mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)
38
+ )}:host([variant=secondary]) a:active{color:var(
39
+ --mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)
40
+ )}:host([variant=secondary]) a:focus{color:var(
41
+ --mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)
42
+ )}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}:host([static=white]) a{color:var(
43
+ --highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))
44
+ )}:host([static=white]) a:active,:host([static=white]) a:focus,:host([static=white]) a:hover{color:var(
45
+ --highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))
46
+ )}:host([static=black]) a{color:var(
47
+ --highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))
48
+ )}:host([static=black]) a:active,:host([static=black]) a:focus,:host([static=black]) a:hover{color:var(
49
+ --highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))
50
+ )}:host{display:inline}:host(:focus){outline:none}:host([href]) a.focus-visible{text-decoration:underline;text-decoration-style:double}:host([href]) a:focus-visible{text-decoration:underline;text-decoration-style:double}
31
51
  `;
32
52
  export default styles;
33
53
  //# sourceMappingURL=link.css.dev.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["link.css.ts"],
4
- "sourcesContent": ["/*\nCopyright 2022 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;"],
5
- "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6Bf,eAAe;",
4
+ "sourcesContent": ["/*\nCopyright 2022 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{--spectrum-link-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-link-text-color-primary-default:var(\n--spectrum-accent-content-color-default\n);--spectrum-link-text-color-primary-hover:var(\n--spectrum-accent-content-color-hover\n);--spectrum-link-text-color-primary-active:var(\n--spectrum-accent-content-color-down\n);--spectrum-link-text-color-primary-focus:var(\n--spectrum-accent-content-color-key-focus\n);--spectrum-link-text-color-secondary-default:var(\n--spectrum-neutral-content-color-default\n);--spectrum-link-text-color-secondary-hover:var(\n--spectrum-neutral-content-color-hover\n);--spectrum-link-text-color-secondary-active:var(\n--spectrum-neutral-content-color-down\n);--spectrum-link-text-color-secondary-focus:var(\n--spectrum-neutral-content-color-key-focus\n);--spectrum-link-text-color-white:var(--spectrum-white);--spectrum-link-text-color-black:var(--spectrum-black)}@media (forced-colors:active){a{--highcontrast-link-focus-color:CanvasText}: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}&--staticBlack{--highcontrast-link-text-color-black:ButtonText}&--staticWhite{--highcontrast-link-text-color-white:ButtonText}}a{-webkit-text-decoration-skip:objects;background-color:transparent;color:var(\n--mod-link-text-color-primary-default,var(--spectrum-link-text-color-primary-default)\n);cursor:pointer;outline:none;text-decoration:underline;transition:color var(\n--mod-link-animation-duration,var(--spectrum-link-animation-duration)\n) ease-in-out}a:hover{color:var(\n--mod-link-text-color-primary-hover,var(--spectrum-link-text-color-primary-hover)\n)}a:active{color:var(\n--mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)\n)}a.focus-visible{color:var(\n--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)\n);text-decoration:underline;text-decoration-color:var(--highcontrast-link-focus-color,inherit);text-decoration-style:double}a:focus-visible{color:var(\n--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)\n);text-decoration:underline;text-decoration-color:var(--highcontrast-link-focus-color,inherit);text-decoration-style:double}:host([variant=secondary]) a{color:var(\n--mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)\n)}:host([variant=secondary]) a:hover{color:var(\n--mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)\n)}:host([variant=secondary]) a:active{color:var(\n--mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)\n)}:host([variant=secondary]) a:focus{color:var(\n--mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)\n)}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}:host([static=white]) a{color:var(\n--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))\n)}:host([static=white]) a:active,:host([static=white]) a:focus,:host([static=white]) a:hover{color:var(\n--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))\n)}:host([static=black]) a{color:var(\n--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))\n)}:host([static=black]) a:active,:host([static=black]) a:focus,:host([static=black]) a:hover{color:var(\n--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))\n)}:host{display:inline}:host(:focus){outline:none}:host([href]) a.focus-visible{text-decoration:underline;text-decoration-style:double}:host([href]) a:focus-visible{text-decoration:underline;text-decoration-style:double}\n`;\nexport default styles;"],
5
+ "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiDf,eAAe;",
6
6
  "names": []
7
7
  }
package/src/link.css.js CHANGED
@@ -1,30 +1,50 @@
1
- "use strict";import{css as r}from"@spectrum-web-components/base";const o=r`
2
- :host([size=s]){--spectrum-link-primary-text-size:var(
3
- --spectrum-link-s-primary-text-size,var(--spectrum-global-dimension-font-size-75)
4
- )}:host([size=m]){--spectrum-link-primary-text-size:var(
5
- --spectrum-link-m-primary-text-size,var(--spectrum-global-dimension-font-size-100)
6
- )}:host([size=l]){--spectrum-link-primary-text-size:var(
7
- --spectrum-link-l-primary-text-size,var(--spectrum-global-dimension-font-size-200)
8
- )}:host([size=xl]){--spectrum-link-primary-text-size:var(
9
- --spectrum-link-xl-primary-text-size,var(--spectrum-global-dimension-font-size-300)
10
- )}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(
11
- --spectrum-link-m-primary-text-color,var(--spectrum-alias-link-primary-text-color-default)
12
- )}a:hover{color:var(
13
- --spectrum-link-m-primary-text-color-hover,var(--spectrum-alias-link-primary-text-color-hover)
1
+ "use strict";import{css as t}from"@spectrum-web-components/base";const o=t`
2
+ :host{--spectrum-link-animation-duration:var(
3
+ --spectrum-animation-duration-100
4
+ );--spectrum-link-text-color-primary-default:var(
5
+ --spectrum-accent-content-color-default
6
+ );--spectrum-link-text-color-primary-hover:var(
7
+ --spectrum-accent-content-color-hover
8
+ );--spectrum-link-text-color-primary-active:var(
9
+ --spectrum-accent-content-color-down
10
+ );--spectrum-link-text-color-primary-focus:var(
11
+ --spectrum-accent-content-color-key-focus
12
+ );--spectrum-link-text-color-secondary-default:var(
13
+ --spectrum-neutral-content-color-default
14
+ );--spectrum-link-text-color-secondary-hover:var(
15
+ --spectrum-neutral-content-color-hover
16
+ );--spectrum-link-text-color-secondary-active:var(
17
+ --spectrum-neutral-content-color-down
18
+ );--spectrum-link-text-color-secondary-focus:var(
19
+ --spectrum-neutral-content-color-key-focus
20
+ );--spectrum-link-text-color-white:var(--spectrum-white);--spectrum-link-text-color-black:var(--spectrum-black)}@media (forced-colors:active){a{--highcontrast-link-focus-color:CanvasText}: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}&--staticBlack{--highcontrast-link-text-color-black:ButtonText}&--staticWhite{--highcontrast-link-text-color-white:ButtonText}}a{-webkit-text-decoration-skip:objects;background-color:transparent;color:var(
21
+ --mod-link-text-color-primary-default,var(--spectrum-link-text-color-primary-default)
22
+ );cursor:pointer;outline:none;text-decoration:underline;transition:color var(
23
+ --mod-link-animation-duration,var(--spectrum-link-animation-duration)
24
+ ) ease-in-out}a:hover{color:var(
25
+ --mod-link-text-color-primary-hover,var(--spectrum-link-text-color-primary-hover)
14
26
  )}a:active{color:var(
15
- --spectrum-link-m-primary-text-color-down,var(--spectrum-alias-link-primary-text-color-down)
27
+ --mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)
16
28
  )}a.focus-visible{color:var(
17
- --spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)
18
- )}a:focus-visible{color:var(
19
- --spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)
20
- )}: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(
21
- --spectrum-link-m-primary-overbackground-text-color,var(--spectrum-alias-text-color-overbackground)
22
- )}:host([over-background]) a:hover{color:var(
23
- --spectrum-link-m-primary-overbackground-text-color-hover,var(--spectrum-alias-text-color-overbackground)
24
- )}:host([over-background]) a:active{color:var(
25
- --spectrum-link-m-primary-overbackground-text-color-down,var(--spectrum-alias-text-color-overbackground)
26
- )}:host([over-background]) a:focus{color:var(
27
- --spectrum-link-m-primary-overbackground-text-color-key-focus,var(--spectrum-alias-text-color-overbackground)
28
- )}@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}
29
+ --mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)
30
+ );text-decoration:underline;text-decoration-color:var(--highcontrast-link-focus-color,inherit);text-decoration-style:double}a:focus-visible{color:var(
31
+ --mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)
32
+ );text-decoration:underline;text-decoration-color:var(--highcontrast-link-focus-color,inherit);text-decoration-style:double}:host([variant=secondary]) a{color:var(
33
+ --mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)
34
+ )}:host([variant=secondary]) a:hover{color:var(
35
+ --mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)
36
+ )}:host([variant=secondary]) a:active{color:var(
37
+ --mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)
38
+ )}:host([variant=secondary]) a:focus{color:var(
39
+ --mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)
40
+ )}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}:host([static=white]) a{color:var(
41
+ --highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))
42
+ )}:host([static=white]) a:active,:host([static=white]) a:focus,:host([static=white]) a:hover{color:var(
43
+ --highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))
44
+ )}:host([static=black]) a{color:var(
45
+ --highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))
46
+ )}:host([static=black]) a:active,:host([static=black]) a:focus,:host([static=black]) a:hover{color:var(
47
+ --highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))
48
+ )}:host{display:inline}:host(:focus){outline:none}:host([href]) a.focus-visible{text-decoration:underline;text-decoration-style:double}:host([href]) a:focus-visible{text-decoration:underline;text-decoration-style:double}
29
49
  `;export default o;
30
50
  //# sourceMappingURL=link.css.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["link.css.ts"],
4
- "sourcesContent": ["/*\nCopyright 2022 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;"],
5
- "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA6Bf,eAAeC",
4
+ "sourcesContent": ["/*\nCopyright 2022 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{--spectrum-link-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-link-text-color-primary-default:var(\n--spectrum-accent-content-color-default\n);--spectrum-link-text-color-primary-hover:var(\n--spectrum-accent-content-color-hover\n);--spectrum-link-text-color-primary-active:var(\n--spectrum-accent-content-color-down\n);--spectrum-link-text-color-primary-focus:var(\n--spectrum-accent-content-color-key-focus\n);--spectrum-link-text-color-secondary-default:var(\n--spectrum-neutral-content-color-default\n);--spectrum-link-text-color-secondary-hover:var(\n--spectrum-neutral-content-color-hover\n);--spectrum-link-text-color-secondary-active:var(\n--spectrum-neutral-content-color-down\n);--spectrum-link-text-color-secondary-focus:var(\n--spectrum-neutral-content-color-key-focus\n);--spectrum-link-text-color-white:var(--spectrum-white);--spectrum-link-text-color-black:var(--spectrum-black)}@media (forced-colors:active){a{--highcontrast-link-focus-color:CanvasText}: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}&--staticBlack{--highcontrast-link-text-color-black:ButtonText}&--staticWhite{--highcontrast-link-text-color-white:ButtonText}}a{-webkit-text-decoration-skip:objects;background-color:transparent;color:var(\n--mod-link-text-color-primary-default,var(--spectrum-link-text-color-primary-default)\n);cursor:pointer;outline:none;text-decoration:underline;transition:color var(\n--mod-link-animation-duration,var(--spectrum-link-animation-duration)\n) ease-in-out}a:hover{color:var(\n--mod-link-text-color-primary-hover,var(--spectrum-link-text-color-primary-hover)\n)}a:active{color:var(\n--mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)\n)}a.focus-visible{color:var(\n--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)\n);text-decoration:underline;text-decoration-color:var(--highcontrast-link-focus-color,inherit);text-decoration-style:double}a:focus-visible{color:var(\n--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)\n);text-decoration:underline;text-decoration-color:var(--highcontrast-link-focus-color,inherit);text-decoration-style:double}:host([variant=secondary]) a{color:var(\n--mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)\n)}:host([variant=secondary]) a:hover{color:var(\n--mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)\n)}:host([variant=secondary]) a:active{color:var(\n--mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)\n)}:host([variant=secondary]) a:focus{color:var(\n--mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)\n)}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}:host([static=white]) a{color:var(\n--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))\n)}:host([static=white]) a:active,:host([static=white]) a:focus,:host([static=white]) a:hover{color:var(\n--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))\n)}:host([static=black]) a{color:var(\n--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))\n)}:host([static=black]) a:active,:host([static=black]) a:focus,:host([static=black]) a:hover{color:var(\n--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))\n)}:host{display:inline}:host(:focus){outline:none}:host([href]) a.focus-visible{text-decoration:underline;text-decoration-style:double}:host([href]) a:focus-visible{text-decoration:underline;text-decoration-style:double}\n`;\nexport default styles;"],
5
+ "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiDf,eAAeC",
6
6
  "names": ["css", "styles"]
7
7
  }
@@ -32,30 +32,19 @@ const config = {
32
32
  {
33
33
  type: 'enum',
34
34
  name: 'variant',
35
- values: [
36
- '.spectrum-Link--secondary',
37
- ],
35
+ values: ['.spectrum-Link--secondary'],
38
36
  },
39
37
  {
40
38
  type: 'enum',
41
- name: 'size',
42
- forceOntoHost: true,
39
+ name: 'static',
43
40
  values: [
44
41
  {
45
- name: 's',
46
- selector: '.spectrum-Link--sizeS',
47
- },
48
- {
49
- name: 'm',
50
- selector: '.spectrum-Link--sizeM',
51
- },
52
- {
53
- name: 'l',
54
- selector: '.spectrum-Link--sizeL',
42
+ name: 'black',
43
+ selector: '.spectrum-Link--staticBlack',
55
44
  },
56
45
  {
57
- name: 'xl',
58
- selector: '.spectrum-Link--sizeXL',
46
+ name: 'white',
47
+ selector: '.spectrum-Link--staticWhite',
59
48
  },
60
49
  ],
61
50
  },
@@ -1,33 +1,53 @@
1
1
  "use strict";
2
2
  import { css } from "@spectrum-web-components/base";
3
3
  const styles = css`
4
- :host([size=s]){--spectrum-link-primary-text-size:var(
5
- --spectrum-link-s-primary-text-size,var(--spectrum-global-dimension-font-size-75)
6
- )}:host([size=m]){--spectrum-link-primary-text-size:var(
7
- --spectrum-link-m-primary-text-size,var(--spectrum-global-dimension-font-size-100)
8
- )}:host([size=l]){--spectrum-link-primary-text-size:var(
9
- --spectrum-link-l-primary-text-size,var(--spectrum-global-dimension-font-size-200)
10
- )}:host([size=xl]){--spectrum-link-primary-text-size:var(
11
- --spectrum-link-xl-primary-text-size,var(--spectrum-global-dimension-font-size-300)
12
- )}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(
13
- --spectrum-link-m-primary-text-color,var(--spectrum-alias-link-primary-text-color-default)
14
- )}a:hover{color:var(
15
- --spectrum-link-m-primary-text-color-hover,var(--spectrum-alias-link-primary-text-color-hover)
4
+ :host{--spectrum-link-animation-duration:var(
5
+ --spectrum-animation-duration-100
6
+ );--spectrum-link-text-color-primary-default:var(
7
+ --spectrum-accent-content-color-default
8
+ );--spectrum-link-text-color-primary-hover:var(
9
+ --spectrum-accent-content-color-hover
10
+ );--spectrum-link-text-color-primary-active:var(
11
+ --spectrum-accent-content-color-down
12
+ );--spectrum-link-text-color-primary-focus:var(
13
+ --spectrum-accent-content-color-key-focus
14
+ );--spectrum-link-text-color-secondary-default:var(
15
+ --spectrum-neutral-content-color-default
16
+ );--spectrum-link-text-color-secondary-hover:var(
17
+ --spectrum-neutral-content-color-hover
18
+ );--spectrum-link-text-color-secondary-active:var(
19
+ --spectrum-neutral-content-color-down
20
+ );--spectrum-link-text-color-secondary-focus:var(
21
+ --spectrum-neutral-content-color-key-focus
22
+ );--spectrum-link-text-color-white:var(--spectrum-white);--spectrum-link-text-color-black:var(--spectrum-black)}@media (forced-colors:active){a{--highcontrast-link-focus-color:CanvasText}: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}&--staticBlack{--highcontrast-link-text-color-black:ButtonText}&--staticWhite{--highcontrast-link-text-color-white:ButtonText}}a{-webkit-text-decoration-skip:objects;background-color:transparent;color:var(
23
+ --mod-link-text-color-primary-default,var(--spectrum-link-text-color-primary-default)
24
+ );cursor:pointer;outline:none;text-decoration:underline;transition:color var(
25
+ --mod-link-animation-duration,var(--spectrum-link-animation-duration)
26
+ ) ease-in-out}a:hover{color:var(
27
+ --mod-link-text-color-primary-hover,var(--spectrum-link-text-color-primary-hover)
16
28
  )}a:active{color:var(
17
- --spectrum-link-m-primary-text-color-down,var(--spectrum-alias-link-primary-text-color-down)
29
+ --mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)
18
30
  )}a.focus-visible{color:var(
19
- --spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)
20
- )}a:focus-visible{color:var(
21
- --spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)
22
- )}: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(
23
- --spectrum-link-m-primary-overbackground-text-color,var(--spectrum-alias-text-color-overbackground)
24
- )}:host([over-background]) a:hover{color:var(
25
- --spectrum-link-m-primary-overbackground-text-color-hover,var(--spectrum-alias-text-color-overbackground)
26
- )}:host([over-background]) a:active{color:var(
27
- --spectrum-link-m-primary-overbackground-text-color-down,var(--spectrum-alias-text-color-overbackground)
28
- )}:host([over-background]) a:focus{color:var(
29
- --spectrum-link-m-primary-overbackground-text-color-key-focus,var(--spectrum-alias-text-color-overbackground)
30
- )}@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}}
31
+ --mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)
32
+ );text-decoration:underline;text-decoration-color:var(--highcontrast-link-focus-color,inherit);text-decoration-style:double}a:focus-visible{color:var(
33
+ --mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)
34
+ );text-decoration:underline;text-decoration-color:var(--highcontrast-link-focus-color,inherit);text-decoration-style:double}:host([variant=secondary]) a{color:var(
35
+ --mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)
36
+ )}:host([variant=secondary]) a:hover{color:var(
37
+ --mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)
38
+ )}:host([variant=secondary]) a:active{color:var(
39
+ --mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)
40
+ )}:host([variant=secondary]) a:focus{color:var(
41
+ --mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)
42
+ )}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}:host([static=white]) a{color:var(
43
+ --highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))
44
+ )}:host([static=white]) a:active,:host([static=white]) a:focus,:host([static=white]) a:hover{color:var(
45
+ --highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))
46
+ )}:host([static=black]) a{color:var(
47
+ --highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))
48
+ )}:host([static=black]) a:active,:host([static=black]) a:focus,:host([static=black]) a:hover{color:var(
49
+ --highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))
50
+ )}
31
51
  `;
32
52
  export default styles;
33
53
  //# sourceMappingURL=spectrum-link.css.dev.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["spectrum-link.css.ts"],
4
- "sourcesContent": ["/*\nCopyright 2022 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;"],
5
- "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6Bf,eAAe;",
4
+ "sourcesContent": ["/*\nCopyright 2022 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{--spectrum-link-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-link-text-color-primary-default:var(\n--spectrum-accent-content-color-default\n);--spectrum-link-text-color-primary-hover:var(\n--spectrum-accent-content-color-hover\n);--spectrum-link-text-color-primary-active:var(\n--spectrum-accent-content-color-down\n);--spectrum-link-text-color-primary-focus:var(\n--spectrum-accent-content-color-key-focus\n);--spectrum-link-text-color-secondary-default:var(\n--spectrum-neutral-content-color-default\n);--spectrum-link-text-color-secondary-hover:var(\n--spectrum-neutral-content-color-hover\n);--spectrum-link-text-color-secondary-active:var(\n--spectrum-neutral-content-color-down\n);--spectrum-link-text-color-secondary-focus:var(\n--spectrum-neutral-content-color-key-focus\n);--spectrum-link-text-color-white:var(--spectrum-white);--spectrum-link-text-color-black:var(--spectrum-black)}@media (forced-colors:active){a{--highcontrast-link-focus-color:CanvasText}: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}&--staticBlack{--highcontrast-link-text-color-black:ButtonText}&--staticWhite{--highcontrast-link-text-color-white:ButtonText}}a{-webkit-text-decoration-skip:objects;background-color:transparent;color:var(\n--mod-link-text-color-primary-default,var(--spectrum-link-text-color-primary-default)\n);cursor:pointer;outline:none;text-decoration:underline;transition:color var(\n--mod-link-animation-duration,var(--spectrum-link-animation-duration)\n) ease-in-out}a:hover{color:var(\n--mod-link-text-color-primary-hover,var(--spectrum-link-text-color-primary-hover)\n)}a:active{color:var(\n--mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)\n)}a.focus-visible{color:var(\n--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)\n);text-decoration:underline;text-decoration-color:var(--highcontrast-link-focus-color,inherit);text-decoration-style:double}a:focus-visible{color:var(\n--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)\n);text-decoration:underline;text-decoration-color:var(--highcontrast-link-focus-color,inherit);text-decoration-style:double}:host([variant=secondary]) a{color:var(\n--mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)\n)}:host([variant=secondary]) a:hover{color:var(\n--mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)\n)}:host([variant=secondary]) a:active{color:var(\n--mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)\n)}:host([variant=secondary]) a:focus{color:var(\n--mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)\n)}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}:host([static=white]) a{color:var(\n--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))\n)}:host([static=white]) a:active,:host([static=white]) a:focus,:host([static=white]) a:hover{color:var(\n--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))\n)}:host([static=black]) a{color:var(\n--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))\n)}:host([static=black]) a:active,:host([static=black]) a:focus,:host([static=black]) a:hover{color:var(\n--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))\n)}\n`;\nexport default styles;"],
5
+ "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiDf,eAAe;",
6
6
  "names": []
7
7
  }
@@ -1,30 +1,50 @@
1
- "use strict";import{css as r}from"@spectrum-web-components/base";const o=r`
2
- :host([size=s]){--spectrum-link-primary-text-size:var(
3
- --spectrum-link-s-primary-text-size,var(--spectrum-global-dimension-font-size-75)
4
- )}:host([size=m]){--spectrum-link-primary-text-size:var(
5
- --spectrum-link-m-primary-text-size,var(--spectrum-global-dimension-font-size-100)
6
- )}:host([size=l]){--spectrum-link-primary-text-size:var(
7
- --spectrum-link-l-primary-text-size,var(--spectrum-global-dimension-font-size-200)
8
- )}:host([size=xl]){--spectrum-link-primary-text-size:var(
9
- --spectrum-link-xl-primary-text-size,var(--spectrum-global-dimension-font-size-300)
10
- )}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(
11
- --spectrum-link-m-primary-text-color,var(--spectrum-alias-link-primary-text-color-default)
12
- )}a:hover{color:var(
13
- --spectrum-link-m-primary-text-color-hover,var(--spectrum-alias-link-primary-text-color-hover)
1
+ "use strict";import{css as t}from"@spectrum-web-components/base";const o=t`
2
+ :host{--spectrum-link-animation-duration:var(
3
+ --spectrum-animation-duration-100
4
+ );--spectrum-link-text-color-primary-default:var(
5
+ --spectrum-accent-content-color-default
6
+ );--spectrum-link-text-color-primary-hover:var(
7
+ --spectrum-accent-content-color-hover
8
+ );--spectrum-link-text-color-primary-active:var(
9
+ --spectrum-accent-content-color-down
10
+ );--spectrum-link-text-color-primary-focus:var(
11
+ --spectrum-accent-content-color-key-focus
12
+ );--spectrum-link-text-color-secondary-default:var(
13
+ --spectrum-neutral-content-color-default
14
+ );--spectrum-link-text-color-secondary-hover:var(
15
+ --spectrum-neutral-content-color-hover
16
+ );--spectrum-link-text-color-secondary-active:var(
17
+ --spectrum-neutral-content-color-down
18
+ );--spectrum-link-text-color-secondary-focus:var(
19
+ --spectrum-neutral-content-color-key-focus
20
+ );--spectrum-link-text-color-white:var(--spectrum-white);--spectrum-link-text-color-black:var(--spectrum-black)}@media (forced-colors:active){a{--highcontrast-link-focus-color:CanvasText}: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}&--staticBlack{--highcontrast-link-text-color-black:ButtonText}&--staticWhite{--highcontrast-link-text-color-white:ButtonText}}a{-webkit-text-decoration-skip:objects;background-color:transparent;color:var(
21
+ --mod-link-text-color-primary-default,var(--spectrum-link-text-color-primary-default)
22
+ );cursor:pointer;outline:none;text-decoration:underline;transition:color var(
23
+ --mod-link-animation-duration,var(--spectrum-link-animation-duration)
24
+ ) ease-in-out}a:hover{color:var(
25
+ --mod-link-text-color-primary-hover,var(--spectrum-link-text-color-primary-hover)
14
26
  )}a:active{color:var(
15
- --spectrum-link-m-primary-text-color-down,var(--spectrum-alias-link-primary-text-color-down)
27
+ --mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)
16
28
  )}a.focus-visible{color:var(
17
- --spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)
18
- )}a:focus-visible{color:var(
19
- --spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)
20
- )}: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(
21
- --spectrum-link-m-primary-overbackground-text-color,var(--spectrum-alias-text-color-overbackground)
22
- )}:host([over-background]) a:hover{color:var(
23
- --spectrum-link-m-primary-overbackground-text-color-hover,var(--spectrum-alias-text-color-overbackground)
24
- )}:host([over-background]) a:active{color:var(
25
- --spectrum-link-m-primary-overbackground-text-color-down,var(--spectrum-alias-text-color-overbackground)
26
- )}:host([over-background]) a:focus{color:var(
27
- --spectrum-link-m-primary-overbackground-text-color-key-focus,var(--spectrum-alias-text-color-overbackground)
28
- )}@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}}
29
+ --mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)
30
+ );text-decoration:underline;text-decoration-color:var(--highcontrast-link-focus-color,inherit);text-decoration-style:double}a:focus-visible{color:var(
31
+ --mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)
32
+ );text-decoration:underline;text-decoration-color:var(--highcontrast-link-focus-color,inherit);text-decoration-style:double}:host([variant=secondary]) a{color:var(
33
+ --mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)
34
+ )}:host([variant=secondary]) a:hover{color:var(
35
+ --mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)
36
+ )}:host([variant=secondary]) a:active{color:var(
37
+ --mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)
38
+ )}:host([variant=secondary]) a:focus{color:var(
39
+ --mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)
40
+ )}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}:host([static=white]) a{color:var(
41
+ --highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))
42
+ )}:host([static=white]) a:active,:host([static=white]) a:focus,:host([static=white]) a:hover{color:var(
43
+ --highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))
44
+ )}:host([static=black]) a{color:var(
45
+ --highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))
46
+ )}:host([static=black]) a:active,:host([static=black]) a:focus,:host([static=black]) a:hover{color:var(
47
+ --highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))
48
+ )}
29
49
  `;export default o;
30
50
  //# sourceMappingURL=spectrum-link.css.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["spectrum-link.css.ts"],
4
- "sourcesContent": ["/*\nCopyright 2022 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;"],
5
- "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA6Bf,eAAeC",
4
+ "sourcesContent": ["/*\nCopyright 2022 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{--spectrum-link-animation-duration:var(\n--spectrum-animation-duration-100\n);--spectrum-link-text-color-primary-default:var(\n--spectrum-accent-content-color-default\n);--spectrum-link-text-color-primary-hover:var(\n--spectrum-accent-content-color-hover\n);--spectrum-link-text-color-primary-active:var(\n--spectrum-accent-content-color-down\n);--spectrum-link-text-color-primary-focus:var(\n--spectrum-accent-content-color-key-focus\n);--spectrum-link-text-color-secondary-default:var(\n--spectrum-neutral-content-color-default\n);--spectrum-link-text-color-secondary-hover:var(\n--spectrum-neutral-content-color-hover\n);--spectrum-link-text-color-secondary-active:var(\n--spectrum-neutral-content-color-down\n);--spectrum-link-text-color-secondary-focus:var(\n--spectrum-neutral-content-color-key-focus\n);--spectrum-link-text-color-white:var(--spectrum-white);--spectrum-link-text-color-black:var(--spectrum-black)}@media (forced-colors:active){a{--highcontrast-link-focus-color:CanvasText}: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}&--staticBlack{--highcontrast-link-text-color-black:ButtonText}&--staticWhite{--highcontrast-link-text-color-white:ButtonText}}a{-webkit-text-decoration-skip:objects;background-color:transparent;color:var(\n--mod-link-text-color-primary-default,var(--spectrum-link-text-color-primary-default)\n);cursor:pointer;outline:none;text-decoration:underline;transition:color var(\n--mod-link-animation-duration,var(--spectrum-link-animation-duration)\n) ease-in-out}a:hover{color:var(\n--mod-link-text-color-primary-hover,var(--spectrum-link-text-color-primary-hover)\n)}a:active{color:var(\n--mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)\n)}a.focus-visible{color:var(\n--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)\n);text-decoration:underline;text-decoration-color:var(--highcontrast-link-focus-color,inherit);text-decoration-style:double}a:focus-visible{color:var(\n--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)\n);text-decoration:underline;text-decoration-color:var(--highcontrast-link-focus-color,inherit);text-decoration-style:double}:host([variant=secondary]) a{color:var(\n--mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)\n)}:host([variant=secondary]) a:hover{color:var(\n--mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)\n)}:host([variant=secondary]) a:active{color:var(\n--mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)\n)}:host([variant=secondary]) a:focus{color:var(\n--mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)\n)}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}:host([static=white]) a{color:var(\n--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))\n)}:host([static=white]) a:active,:host([static=white]) a:focus,:host([static=white]) a:hover{color:var(\n--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))\n)}:host([static=black]) a{color:var(\n--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))\n)}:host([static=black]) a:active,:host([static=black]) a:focus,:host([static=black]) a:hover{color:var(\n--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))\n)}\n`;\nexport default styles;"],
5
+ "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAiDf,eAAeC",
6
6
  "names": ["css", "styles"]
7
7
  }
@@ -25,27 +25,53 @@ export const secondaryQuiet = () => {
25
25
  This is a <sp-link variant="secondary" quiet href="#">quiet link</sp-link> in a sentence.
26
26
  `;
27
27
  };
28
- export const overBackground = () => {
28
+ export const staticWhite = () => {
29
29
  return html`
30
30
  <div
31
31
  style="background-color: rgb(15, 121, 125); padding: 15px 20px; display: inline-block;"
32
32
  >
33
33
  <p style="color: rgb(240, 240, 240);">
34
34
  This
35
- <sp-link over-background href="#">link</sp-link>
35
+ <sp-link static="white" href="#">link</sp-link>
36
36
  has a background.
37
37
  </p>
38
38
  </div>
39
39
  `;
40
40
  };
41
- export const overBackgroundQuiet = () => {
41
+ export const staticBlack = () => {
42
+ return html`
43
+ <div
44
+ style="background-color: rgb(181, 209, 211); padding: 15px 20px; display: inline-block;"
45
+ >
46
+ <p style="color: rgb(15, 15, 15);">
47
+ This
48
+ <sp-link static="black" href="#">link</sp-link>
49
+ has a background.
50
+ </p>
51
+ </div>
52
+ `;
53
+ };
54
+ export const staticWhiteQuiet = () => {
42
55
  return html`
43
56
  <div
44
57
  style="background-color: rgb(15, 121, 125); padding: 15px 20px; display: inline-block;"
45
58
  >
46
59
  <p style="color: rgb(240, 240, 240);">
47
60
  This
48
- <sp-link over-background quiet href="#">link</sp-link>
61
+ <sp-link static="white" quiet href="#">link</sp-link>
62
+ has a background.
63
+ </p>
64
+ </div>
65
+ `;
66
+ };
67
+ export const staticBlackQuiet = () => {
68
+ return html`
69
+ <div
70
+ style="background-color: rgb(181, 209, 211); padding: 15px 20px; display: inline-block;"
71
+ >
72
+ <p style="color: rgb(15, 15, 15);">
73
+ This
74
+ <sp-link static="black" quiet href="#">link</sp-link>
49
75
  has a background.
50
76
  </p>
51
77
  </div>
@@ -63,5 +89,4 @@ export const Download = () => {
63
89
  for you to click on.
64
90
  `;
65
91
  };
66
- overBackground.storyName = "Over Background";
67
92
  //# sourceMappingURL=link.stories.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["link.stories.ts"],
4
- "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 { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/link/sp-link.js';\n\nexport default {\n component: 'sp-link',\n title: 'Link',\n};\n\nexport const Default = (): TemplateResult => {\n // prettier-ignore\n return html`\n This is a <sp-link href=\"#\">link</sp-link> in a sentence.\n `;\n};\n\nexport const Quiet = (): TemplateResult => {\n // prettier-ignore\n return html`\n This is a <sp-link quiet href=\"#\">quiet link</sp-link> in a sentence.\n `;\n};\n\nexport const secondary = (): TemplateResult => {\n // prettier-ignore\n return html`\n This is a <sp-link variant=\"secondary\" href=\"#\">link</sp-link> in a sentence.\n `;\n};\n\nexport const secondaryQuiet = (): TemplateResult => {\n // prettier-ignore\n return html`\n This is a <sp-link variant=\"secondary\" quiet href=\"#\">quiet link</sp-link> in a sentence.\n `;\n};\n\nexport const overBackground = (): TemplateResult => {\n return html`\n <div\n style=\"background-color: rgb(15, 121, 125); padding: 15px 20px; display: inline-block;\"\n >\n <p style=\"color: rgb(240, 240, 240);\">\n This\n <sp-link over-background href=\"#\">link</sp-link>\n has a background.\n </p>\n </div>\n `;\n};\n\nexport const overBackgroundQuiet = (): TemplateResult => {\n return html`\n <div\n style=\"background-color: rgb(15, 121, 125); padding: 15px 20px; display: inline-block;\"\n >\n <p style=\"color: rgb(240, 240, 240);\">\n This\n <sp-link over-background quiet href=\"#\">link</sp-link>\n has a background.\n </p>\n </div>\n `;\n};\n\nexport const Download = (): TemplateResult => {\n const blob = new Blob(['some text for the file'], {\n type: 'text/plain;charset=utf-8',\n });\n return html`\n This is a\n <sp-link download=\"somefile.txt\" href=\"${URL.createObjectURL(blob)}\">\n downloadable file\n </sp-link>\n for you to click on.\n `;\n};\n\noverBackground.storyName = 'Over Background';\n"],
5
- "mappings": ";AAWA,SAAS,YAA4B;AAErC,OAAO;AAEP,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEO,aAAM,UAAU,MAAsB;AAEzC,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,QAAQ,MAAsB;AAEvC,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,YAAY,MAAsB;AAE3C,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,iBAAiB,MAAsB;AAEhD,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,iBAAiB,MAAsB;AAChD,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWX;AAEO,aAAM,sBAAsB,MAAsB;AACrD,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWX;AAEO,aAAM,WAAW,MAAsB;AAC1C,QAAM,OAAO,IAAI,KAAK,CAAC,wBAAwB,GAAG;AAAA,IAC9C,MAAM;AAAA,EACV,CAAC;AACD,SAAO;AAAA;AAAA,iDAEsC,IAAI,gBAAgB,IAAI;AAAA;AAAA;AAAA;AAAA;AAKzE;AAEA,eAAe,YAAY;",
4
+ "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 { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/link/sp-link.js';\n\nexport default {\n component: 'sp-link',\n title: 'Link',\n};\n\nexport const Default = (): TemplateResult => {\n // prettier-ignore\n return html`\n This is a <sp-link href=\"#\">link</sp-link> in a sentence.\n `;\n};\n\nexport const Quiet = (): TemplateResult => {\n // prettier-ignore\n return html`\n This is a <sp-link quiet href=\"#\">quiet link</sp-link> in a sentence.\n `;\n};\n\nexport const secondary = (): TemplateResult => {\n // prettier-ignore\n return html`\n This is a <sp-link variant=\"secondary\" href=\"#\">link</sp-link> in a sentence.\n `;\n};\n\nexport const secondaryQuiet = (): TemplateResult => {\n // prettier-ignore\n return html`\n This is a <sp-link variant=\"secondary\" quiet href=\"#\">quiet link</sp-link> in a sentence.\n `;\n};\n\nexport const staticWhite = (): TemplateResult => {\n return html`\n <div\n style=\"background-color: rgb(15, 121, 125); padding: 15px 20px; display: inline-block;\"\n >\n <p style=\"color: rgb(240, 240, 240);\">\n This\n <sp-link static=\"white\" href=\"#\">link</sp-link>\n has a background.\n </p>\n </div>\n `;\n};\n\nexport const staticBlack = (): TemplateResult => {\n return html`\n <div\n style=\"background-color: rgb(181, 209, 211); padding: 15px 20px; display: inline-block;\"\n >\n <p style=\"color: rgb(15, 15, 15);\">\n This\n <sp-link static=\"black\" href=\"#\">link</sp-link>\n has a background.\n </p>\n </div>\n `;\n};\n\nexport const staticWhiteQuiet = (): TemplateResult => {\n return html`\n <div\n style=\"background-color: rgb(15, 121, 125); padding: 15px 20px; display: inline-block;\"\n >\n <p style=\"color: rgb(240, 240, 240);\">\n This\n <sp-link static=\"white\" quiet href=\"#\">link</sp-link>\n has a background.\n </p>\n </div>\n `;\n};\n\nexport const staticBlackQuiet = (): TemplateResult => {\n return html`\n <div\n style=\"background-color: rgb(181, 209, 211); padding: 15px 20px; display: inline-block;\"\n >\n <p style=\"color: rgb(15, 15, 15);\">\n This\n <sp-link static=\"black\" quiet href=\"#\">link</sp-link>\n has a background.\n </p>\n </div>\n `;\n};\n\nexport const Download = (): TemplateResult => {\n const blob = new Blob(['some text for the file'], {\n type: 'text/plain;charset=utf-8',\n });\n return html`\n This is a\n <sp-link download=\"somefile.txt\" href=\"${URL.createObjectURL(blob)}\">\n downloadable file\n </sp-link>\n for you to click on.\n `;\n};\n"],
5
+ "mappings": ";AAWA,SAAS,YAA4B;AAErC,OAAO;AAEP,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEO,aAAM,UAAU,MAAsB;AAEzC,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,QAAQ,MAAsB;AAEvC,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,YAAY,MAAsB;AAE3C,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,iBAAiB,MAAsB;AAEhD,SAAO;AAAA;AAAA;AAGX;AAEO,aAAM,cAAc,MAAsB;AAC7C,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWX;AAEO,aAAM,cAAc,MAAsB;AAC7C,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWX;AAEO,aAAM,mBAAmB,MAAsB;AAClD,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWX;AAEO,aAAM,mBAAmB,MAAsB;AAClD,SAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWX;AAEO,aAAM,WAAW,MAAsB;AAC1C,QAAM,OAAO,IAAI,KAAK,CAAC,wBAAwB,GAAG;AAAA,IAC9C,MAAM;AAAA,EACV,CAAC;AACD,SAAO;AAAA;AAAA,iDAEsC,IAAI,gBAAgB,IAAI;AAAA;AAAA;AAAA;AAAA;AAKzE;",
6
6
  "names": []
7
7
  }
package/test/link.test.js CHANGED
@@ -45,27 +45,5 @@ describe("Link", () => {
45
45
  expect(el.focusElement.getAttribute("rel")).to.eq("external");
46
46
  await expect(el).to.be.accessible();
47
47
  });
48
- it("manages the `size` atrbute", async () => {
49
- const el = await fixture(
50
- html`
51
- <sp-link href="test_url">Default Link</sp-link>
52
- `
53
- );
54
- await elementUpdated(el);
55
- expect(el.size, "property 0: m").to.equal("m");
56
- expect(el.getAttribute("size"), "attribute 0: null").to.be.null;
57
- el.setAttribute("size", "xl");
58
- await elementUpdated(el);
59
- expect(el.size, "property 1: xl").to.equal("xl");
60
- expect(el.getAttribute("size"), "attribute 1: xl").to.equal("xl");
61
- el.removeAttribute("size");
62
- await elementUpdated(el);
63
- expect(el.size, "property 2: m").to.equal("m");
64
- expect(el.getAttribute("size"), "attribute 2: null").to.be.null;
65
- el.setAttribute("size", "m");
66
- await elementUpdated(el);
67
- expect(el.size, "property 3: m").to.equal("m");
68
- expect(el.getAttribute("size"), "attribute 3: m").to.equal("m");
69
- });
70
48
  });
71
49
  //# sourceMappingURL=link.test.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["link.test.ts"],
4
- "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 '@spectrum-web-components/link/sp-link.js';\nimport { Link } from '@spectrum-web-components/link';\nimport { elementUpdated, expect, fixture, html } from '@open-wc/testing';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\n\ndescribe('Link', () => {\n testForLitDevWarnings(\n async () =>\n await fixture<Link>(\n html`\n <sp-link href=\"test_url\">Default Link</sp-link>\n `\n )\n );\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"],
5
- "mappings": ";AAYA,OAAO;AAEP,SAAS,gBAAgB,QAAQ,SAAS,YAAY;AACtD,SAAS,6BAA6B;AAEtC,SAAS,QAAQ,MAAM;AACnB;AAAA,IACI,YACI,MAAM;AAAA,MACF;AAAA;AAAA;AAAA,IAGJ;AAAA,EACR;AACA,KAAG,SAAS,YAAY;AACpB,UAAM,KAAK,MAAM;AAAA,MACb;AAAA;AAAA;AAAA,IAGJ;AAEA,UAAM,eAAe,EAAE;AACvB,WAAO,EAAE,EAAE,GAAG,IAAI,GAAG;AACrB,WAAO,GAAG,WAAW,EAAE,GAAG,QAAQ,cAAc;AAEhD,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AAED,KAAG,mBAAmB,YAAY;AAC9B,UAAM,KAAK,MAAM;AAAA,MACb;AAAA;AAAA;AAAA;AAAA;AAAA,IAKJ;AAEA,UAAM,eAAe,EAAE;AACvB,WAAO,EAAE,EAAE,GAAG,IAAI,GAAG;AACrB,WAAO,GAAG,WAAW,EAAE,GAAG,QAAQ,cAAc;AAEhD,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AAED,KAAG,cAAc,YAAY;AACzB,UAAM,KAAK,MAAM;AAAA,MACb;AAAA;AAAA;AAAA,IAGJ;AAEA,UAAM,eAAe,EAAE;AACvB,WAAO,EAAE,EAAE,GAAG,IAAI,GAAG;AACrB,WAAO,GAAG,aAAa,aAAa,KAAK,CAAC,EAAE,GAAG,GAAG,UAAU;AAE5D,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AAED,KAAG,8BAA8B,YAAY;AACzC,UAAM,KAAK,MAAM;AAAA,MACb;AAAA;AAAA;AAAA,IAGJ;AAEA,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,MAAM,eAAe,EAAE,GAAG,MAAM,GAAG;AAC7C,WAAO,GAAG,aAAa,MAAM,GAAG,mBAAmB,EAAE,GAAG,GAAG;AAE3D,OAAG,aAAa,QAAQ,IAAI;AAC5B,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,MAAM,gBAAgB,EAAE,GAAG,MAAM,IAAI;AAC/C,WAAO,GAAG,aAAa,MAAM,GAAG,iBAAiB,EAAE,GAAG,MAAM,IAAI;AAEhE,OAAG,gBAAgB,MAAM;AACzB,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,MAAM,eAAe,EAAE,GAAG,MAAM,GAAG;AAC7C,WAAO,GAAG,aAAa,MAAM,GAAG,mBAAmB,EAAE,GAAG,GAAG;AAE3D,OAAG,aAAa,QAAQ,GAAG;AAC3B,UAAM,eAAe,EAAE;AACvB,WAAO,GAAG,MAAM,eAAe,EAAE,GAAG,MAAM,GAAG;AAC7C,WAAO,GAAG,aAAa,MAAM,GAAG,gBAAgB,EAAE,GAAG,MAAM,GAAG;AAAA,EAClE,CAAC;AACL,CAAC;",
4
+ "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 '@spectrum-web-components/link/sp-link.js';\nimport { Link } from '@spectrum-web-components/link';\nimport { elementUpdated, expect, fixture, html } from '@open-wc/testing';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\n\ndescribe('Link', () => {\n testForLitDevWarnings(\n async () =>\n await fixture<Link>(\n html`\n <sp-link href=\"test_url\">Default Link</sp-link>\n `\n )\n );\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"],
5
+ "mappings": ";AAYA,OAAO;AAEP,SAAS,gBAAgB,QAAQ,SAAS,YAAY;AACtD,SAAS,6BAA6B;AAEtC,SAAS,QAAQ,MAAM;AACnB;AAAA,IACI,YACI,MAAM;AAAA,MACF;AAAA;AAAA;AAAA,IAGJ;AAAA,EACR;AACA,KAAG,SAAS,YAAY;AACpB,UAAM,KAAK,MAAM;AAAA,MACb;AAAA;AAAA;AAAA,IAGJ;AAEA,UAAM,eAAe,EAAE;AACvB,WAAO,EAAE,EAAE,GAAG,IAAI,GAAG;AACrB,WAAO,GAAG,WAAW,EAAE,GAAG,QAAQ,cAAc;AAEhD,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AAED,KAAG,mBAAmB,YAAY;AAC9B,UAAM,KAAK,MAAM;AAAA,MACb;AAAA;AAAA;AAAA;AAAA;AAAA,IAKJ;AAEA,UAAM,eAAe,EAAE;AACvB,WAAO,EAAE,EAAE,GAAG,IAAI,GAAG;AACrB,WAAO,GAAG,WAAW,EAAE,GAAG,QAAQ,cAAc;AAEhD,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AAED,KAAG,cAAc,YAAY;AACzB,UAAM,KAAK,MAAM;AAAA,MACb;AAAA;AAAA;AAAA,IAGJ;AAEA,UAAM,eAAe,EAAE;AACvB,WAAO,EAAE,EAAE,GAAG,IAAI,GAAG;AACrB,WAAO,GAAG,aAAa,aAAa,KAAK,CAAC,EAAE,GAAG,GAAG,UAAU;AAE5D,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACL,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,20 +0,0 @@
1
- "use strict";
2
- import { html } from "@spectrum-web-components/base";
3
- import "@spectrum-web-components/link/sp-link.js";
4
- export default {
5
- component: "sp-link",
6
- title: "Link/Sizes"
7
- };
8
- export const s = () => html`
9
- <sp-link size="s" href="#">small link</sp-link>
10
- `;
11
- export const m = () => html`
12
- <sp-link size="m" href="#">medium link</sp-link>
13
- `;
14
- export const L = () => html`
15
- <sp-link size="l" href="#">large link</sp-link>
16
- `;
17
- export const XL = () => html`
18
- <sp-link size="xl" href="#">extra large link</sp-link>
19
- `;
20
- //# sourceMappingURL=link-sizes.stories.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["link-sizes.stories.ts"],
4
- "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 { html, TemplateResult } from '@spectrum-web-components/base';\n\nimport '@spectrum-web-components/link/sp-link.js';\n\nexport default {\n component: 'sp-link',\n title: 'Link/Sizes',\n};\n\nexport const s = (): TemplateResult => html`\n <sp-link size=\"s\" href=\"#\">small link</sp-link>\n`;\n\nexport const m = (): TemplateResult => html`\n <sp-link size=\"m\" href=\"#\">medium link</sp-link>\n`;\n\nexport const L = (): TemplateResult => html`\n <sp-link size=\"l\" href=\"#\">large link</sp-link>\n`;\n\nexport const XL = (): TemplateResult => html`\n <sp-link size=\"xl\" href=\"#\">extra large link</sp-link>\n`;\n"],
5
- "mappings": ";AAWA,SAAS,YAA4B;AAErC,OAAO;AAEP,eAAe;AAAA,EACX,WAAW;AAAA,EACX,OAAO;AACX;AAEO,aAAM,IAAI,MAAsB;AAAA;AAAA;AAIhC,aAAM,IAAI,MAAsB;AAAA;AAAA;AAIhC,aAAM,IAAI,MAAsB;AAAA;AAAA;AAIhC,aAAM,KAAK,MAAsB;AAAA;AAAA;",
6
- "names": []
7
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- import * as stories from "../stories/link-sizes.stories.js";
3
- import { regressVisuals } from "../../../test/visual/test.js";
4
- regressVisuals("LinkSizesStories", stories);
5
- //# sourceMappingURL=link-sizes.test-vrt.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["link-sizes.test-vrt.ts"],
4
- "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';\nimport type { TestsType } from '../../../test/visual/test.js';\n\nregressVisuals('LinkSizesStories', stories as unknown as TestsType);\n"],
5
- "mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAG/B,eAAe,oBAAoB,OAA+B;",
6
- "names": []
7
- }