@spectrum-web-components/link 0.13.1 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -36
- package/custom-elements.json +17 -4
- package/package.json +5 -6
- package/src/Link.d.ts +1 -3
- package/src/Link.dev.js +4 -6
- package/src/Link.dev.js.map +2 -2
- package/src/Link.js +1 -1
- package/src/Link.js.map +3 -3
- package/src/link.css.dev.js +49 -25
- package/src/link.css.dev.js.map +2 -2
- package/src/link.css.js +50 -26
- package/src/link.css.js.map +2 -2
- package/src/spectrum-config.js +6 -17
- package/src/spectrum-link.css.dev.js +49 -25
- package/src/spectrum-link.css.dev.js.map +2 -2
- package/src/spectrum-link.css.js +50 -26
- package/src/spectrum-link.css.js.map +2 -2
- package/stories/link.stories.js +30 -5
- package/stories/link.stories.js.map +2 -2
- package/test/link.test.js +0 -22
- package/test/link.test.js.map +2 -2
- package/stories/link-sizes.stories.js +0 -20
- package/stories/link-sizes.stories.js.map +0 -7
- package/test/link-sizes.test-vrt.js +0 -5
- package/test/link-sizes.test-vrt.js.map +0 -7
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
|
-
##
|
|
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
|
|
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
|
package/custom-elements.json
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -57,12 +57,11 @@
|
|
|
57
57
|
"lit-html"
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@spectrum-web-components/base": "^0.7.
|
|
61
|
-
"@spectrum-web-components/shared": "^0.15.
|
|
62
|
-
"tslib": "^2.0.0"
|
|
60
|
+
"@spectrum-web-components/base": "^0.7.2",
|
|
61
|
+
"@spectrum-web-components/shared": "^0.15.3"
|
|
63
62
|
},
|
|
64
63
|
"devDependencies": {
|
|
65
|
-
"@spectrum-css/link": "^
|
|
64
|
+
"@spectrum-css/link": "^4.0.0"
|
|
66
65
|
},
|
|
67
66
|
"types": "./src/index.d.ts",
|
|
68
67
|
"customElements": "custom-elements.json",
|
|
@@ -70,5 +69,5 @@
|
|
|
70
69
|
"./sp-*.js",
|
|
71
70
|
"./**/*.dev.js"
|
|
72
71
|
],
|
|
73
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "370295c7ce89dd64d3d9a4373fd84e861904ec5a"
|
|
74
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
|
|
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
|
package/src/Link.dev.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 {
|
|
5
|
-
"mappings": ";;;;;;;;;;;;
|
|
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
|
|
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 {
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
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
|
}
|
package/src/link.css.dev.js
CHANGED
|
@@ -1,33 +1,57 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { css } from "@spectrum-web-components/base";
|
|
3
3
|
const styles = css`
|
|
4
|
-
:host
|
|
5
|
-
--spectrum-
|
|
6
|
-
)
|
|
7
|
-
--spectrum-
|
|
8
|
-
)
|
|
9
|
-
--spectrum-
|
|
10
|
-
)
|
|
11
|
-
--spectrum-
|
|
12
|
-
)
|
|
13
|
-
--spectrum-
|
|
14
|
-
)
|
|
15
|
-
--spectrum-
|
|
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
|
-
--
|
|
29
|
+
--mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)
|
|
18
30
|
)}a.focus-visible{color:var(
|
|
19
|
-
--
|
|
20
|
-
)
|
|
21
|
-
--
|
|
22
|
-
)
|
|
23
|
-
--
|
|
24
|
-
)
|
|
25
|
-
--
|
|
26
|
-
)}:host([
|
|
27
|
-
--
|
|
28
|
-
)}:host([
|
|
29
|
-
--
|
|
30
|
-
)}
|
|
31
|
+
--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)
|
|
32
|
+
);text-decoration:underline;-webkit-text-decoration-color:var(
|
|
33
|
+
--highcontrast-link-focus-color,inherit
|
|
34
|
+
);text-decoration-color:var(--highcontrast-link-focus-color,inherit);-webkit-text-decoration-style:double;text-decoration-style:double}a:focus-visible{color:var(
|
|
35
|
+
--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)
|
|
36
|
+
);text-decoration:underline;-webkit-text-decoration-color:var(
|
|
37
|
+
--highcontrast-link-focus-color,inherit
|
|
38
|
+
);text-decoration-color:var(--highcontrast-link-focus-color,inherit);-webkit-text-decoration-style:double;text-decoration-style:double}:host([variant=secondary]) a{color:var(
|
|
39
|
+
--mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)
|
|
40
|
+
)}:host([variant=secondary]) a:hover{color:var(
|
|
41
|
+
--mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)
|
|
42
|
+
)}:host([variant=secondary]) a:active{color:var(
|
|
43
|
+
--mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)
|
|
44
|
+
)}:host([variant=secondary]) a:focus{color:var(
|
|
45
|
+
--mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)
|
|
46
|
+
)}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}:host([static=white]) a{color:var(
|
|
47
|
+
--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))
|
|
48
|
+
)}:host([static=white]) a:active,:host([static=white]) a:focus,:host([static=white]) a:hover{color:var(
|
|
49
|
+
--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))
|
|
50
|
+
)}:host([static=black]) a{color:var(
|
|
51
|
+
--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))
|
|
52
|
+
)}:host([static=black]) a:active,:host([static=black]) a:focus,:host([static=black]) a:hover{color:var(
|
|
53
|
+
--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))
|
|
54
|
+
)}: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
55
|
`;
|
|
32
56
|
export default styles;
|
|
33
57
|
//# sourceMappingURL=link.css.dev.js.map
|
package/src/link.css.dev.js.map
CHANGED
|
@@ -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
|
|
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;
|
|
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;-webkit-text-decoration-color:var(\n--highcontrast-link-focus-color,inherit\n);text-decoration-color:var(--highcontrast-link-focus-color,inherit);-webkit-text-decoration-style:double;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;-webkit-text-decoration-color:var(\n--highcontrast-link-focus-color,inherit\n);text-decoration-color:var(--highcontrast-link-focus-color,inherit);-webkit-text-decoration-style:double;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;-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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAqDf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/link.css.js
CHANGED
|
@@ -1,30 +1,54 @@
|
|
|
1
|
-
"use strict";import{css as
|
|
2
|
-
:host
|
|
3
|
-
--spectrum-
|
|
4
|
-
)
|
|
5
|
-
--spectrum-
|
|
6
|
-
)
|
|
7
|
-
--spectrum-
|
|
8
|
-
)
|
|
9
|
-
--spectrum-
|
|
10
|
-
)
|
|
11
|
-
--spectrum-
|
|
12
|
-
)
|
|
13
|
-
--spectrum-
|
|
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
|
-
--
|
|
27
|
+
--mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)
|
|
16
28
|
)}a.focus-visible{color:var(
|
|
17
|
-
--
|
|
18
|
-
)
|
|
19
|
-
--
|
|
20
|
-
)
|
|
21
|
-
--
|
|
22
|
-
)
|
|
23
|
-
--
|
|
24
|
-
)}:host([
|
|
25
|
-
--
|
|
26
|
-
)}:host([
|
|
27
|
-
--
|
|
28
|
-
)}
|
|
29
|
+
--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)
|
|
30
|
+
);text-decoration:underline;-webkit-text-decoration-color:var(
|
|
31
|
+
--highcontrast-link-focus-color,inherit
|
|
32
|
+
);text-decoration-color:var(--highcontrast-link-focus-color,inherit);-webkit-text-decoration-style:double;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;-webkit-text-decoration-color:var(
|
|
35
|
+
--highcontrast-link-focus-color,inherit
|
|
36
|
+
);text-decoration-color:var(--highcontrast-link-focus-color,inherit);-webkit-text-decoration-style:double;text-decoration-style:double}:host([variant=secondary]) a{color:var(
|
|
37
|
+
--mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)
|
|
38
|
+
)}:host([variant=secondary]) a:hover{color:var(
|
|
39
|
+
--mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)
|
|
40
|
+
)}:host([variant=secondary]) a:active{color:var(
|
|
41
|
+
--mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)
|
|
42
|
+
)}:host([variant=secondary]) a:focus{color:var(
|
|
43
|
+
--mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)
|
|
44
|
+
)}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}:host([static=white]) a{color:var(
|
|
45
|
+
--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))
|
|
46
|
+
)}:host([static=white]) a:active,:host([static=white]) a:focus,:host([static=white]) a:hover{color:var(
|
|
47
|
+
--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))
|
|
48
|
+
)}:host([static=black]) a{color:var(
|
|
49
|
+
--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))
|
|
50
|
+
)}:host([static=black]) a:active,:host([static=black]) a:focus,:host([static=black]) a:hover{color:var(
|
|
51
|
+
--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))
|
|
52
|
+
)}: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
53
|
`;export default o;
|
|
30
54
|
//# sourceMappingURL=link.css.js.map
|
package/src/link.css.js.map
CHANGED
|
@@ -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
|
|
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,
|
|
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;-webkit-text-decoration-color:var(\n--highcontrast-link-focus-color,inherit\n);text-decoration-color:var(--highcontrast-link-focus-color,inherit);-webkit-text-decoration-style:double;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;-webkit-text-decoration-color:var(\n--highcontrast-link-focus-color,inherit\n);text-decoration-color:var(--highcontrast-link-focus-color,inherit);-webkit-text-decoration-style:double;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;-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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAqDf,eAAeC",
|
|
6
6
|
"names": ["css", "styles"]
|
|
7
7
|
}
|
package/src/spectrum-config.js
CHANGED
|
@@ -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: '
|
|
42
|
-
forceOntoHost: true,
|
|
39
|
+
name: 'static',
|
|
43
40
|
values: [
|
|
44
41
|
{
|
|
45
|
-
name: '
|
|
46
|
-
selector: '.spectrum-Link--
|
|
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: '
|
|
58
|
-
selector: '.spectrum-Link--
|
|
46
|
+
name: 'white',
|
|
47
|
+
selector: '.spectrum-Link--staticWhite',
|
|
59
48
|
},
|
|
60
49
|
],
|
|
61
50
|
},
|
|
@@ -1,33 +1,57 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { css } from "@spectrum-web-components/base";
|
|
3
3
|
const styles = css`
|
|
4
|
-
:host
|
|
5
|
-
--spectrum-
|
|
6
|
-
)
|
|
7
|
-
--spectrum-
|
|
8
|
-
)
|
|
9
|
-
--spectrum-
|
|
10
|
-
)
|
|
11
|
-
--spectrum-
|
|
12
|
-
)
|
|
13
|
-
--spectrum-
|
|
14
|
-
)
|
|
15
|
-
--spectrum-
|
|
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
|
-
--
|
|
29
|
+
--mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)
|
|
18
30
|
)}a.focus-visible{color:var(
|
|
19
|
-
--
|
|
20
|
-
)
|
|
21
|
-
--
|
|
22
|
-
)
|
|
23
|
-
--
|
|
24
|
-
)
|
|
25
|
-
--
|
|
26
|
-
)}:host([
|
|
27
|
-
--
|
|
28
|
-
)}:host([
|
|
29
|
-
--
|
|
30
|
-
)}
|
|
31
|
+
--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)
|
|
32
|
+
);text-decoration:underline;-webkit-text-decoration-color:var(
|
|
33
|
+
--highcontrast-link-focus-color,inherit
|
|
34
|
+
);text-decoration-color:var(--highcontrast-link-focus-color,inherit);-webkit-text-decoration-style:double;text-decoration-style:double}a:focus-visible{color:var(
|
|
35
|
+
--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)
|
|
36
|
+
);text-decoration:underline;-webkit-text-decoration-color:var(
|
|
37
|
+
--highcontrast-link-focus-color,inherit
|
|
38
|
+
);text-decoration-color:var(--highcontrast-link-focus-color,inherit);-webkit-text-decoration-style:double;text-decoration-style:double}:host([variant=secondary]) a{color:var(
|
|
39
|
+
--mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)
|
|
40
|
+
)}:host([variant=secondary]) a:hover{color:var(
|
|
41
|
+
--mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)
|
|
42
|
+
)}:host([variant=secondary]) a:active{color:var(
|
|
43
|
+
--mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)
|
|
44
|
+
)}:host([variant=secondary]) a:focus{color:var(
|
|
45
|
+
--mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)
|
|
46
|
+
)}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}:host([static=white]) a{color:var(
|
|
47
|
+
--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))
|
|
48
|
+
)}:host([static=white]) a:active,:host([static=white]) a:focus,:host([static=white]) a:hover{color:var(
|
|
49
|
+
--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))
|
|
50
|
+
)}:host([static=black]) a{color:var(
|
|
51
|
+
--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))
|
|
52
|
+
)}:host([static=black]) a:active,:host([static=black]) a:focus,:host([static=black]) a:hover{color:var(
|
|
53
|
+
--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))
|
|
54
|
+
)}
|
|
31
55
|
`;
|
|
32
56
|
export default styles;
|
|
33
57
|
//# 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
|
|
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;
|
|
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;-webkit-text-decoration-color:var(\n--highcontrast-link-focus-color,inherit\n);text-decoration-color:var(--highcontrast-link-focus-color,inherit);-webkit-text-decoration-style:double;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;-webkit-text-decoration-color:var(\n--highcontrast-link-focus-color,inherit\n);text-decoration-color:var(--highcontrast-link-focus-color,inherit);-webkit-text-decoration-style:double;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;AAAA;AAAA;AAAA;AAAA;AAqDf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/spectrum-link.css.js
CHANGED
|
@@ -1,30 +1,54 @@
|
|
|
1
|
-
"use strict";import{css as
|
|
2
|
-
:host
|
|
3
|
-
--spectrum-
|
|
4
|
-
)
|
|
5
|
-
--spectrum-
|
|
6
|
-
)
|
|
7
|
-
--spectrum-
|
|
8
|
-
)
|
|
9
|
-
--spectrum-
|
|
10
|
-
)
|
|
11
|
-
--spectrum-
|
|
12
|
-
)
|
|
13
|
-
--spectrum-
|
|
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
|
-
--
|
|
27
|
+
--mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)
|
|
16
28
|
)}a.focus-visible{color:var(
|
|
17
|
-
--
|
|
18
|
-
)
|
|
19
|
-
--
|
|
20
|
-
)
|
|
21
|
-
--
|
|
22
|
-
)
|
|
23
|
-
--
|
|
24
|
-
)}:host([
|
|
25
|
-
--
|
|
26
|
-
)}:host([
|
|
27
|
-
--
|
|
28
|
-
)}
|
|
29
|
+
--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)
|
|
30
|
+
);text-decoration:underline;-webkit-text-decoration-color:var(
|
|
31
|
+
--highcontrast-link-focus-color,inherit
|
|
32
|
+
);text-decoration-color:var(--highcontrast-link-focus-color,inherit);-webkit-text-decoration-style:double;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;-webkit-text-decoration-color:var(
|
|
35
|
+
--highcontrast-link-focus-color,inherit
|
|
36
|
+
);text-decoration-color:var(--highcontrast-link-focus-color,inherit);-webkit-text-decoration-style:double;text-decoration-style:double}:host([variant=secondary]) a{color:var(
|
|
37
|
+
--mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)
|
|
38
|
+
)}:host([variant=secondary]) a:hover{color:var(
|
|
39
|
+
--mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)
|
|
40
|
+
)}:host([variant=secondary]) a:active{color:var(
|
|
41
|
+
--mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)
|
|
42
|
+
)}:host([variant=secondary]) a:focus{color:var(
|
|
43
|
+
--mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)
|
|
44
|
+
)}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}:host([static=white]) a{color:var(
|
|
45
|
+
--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))
|
|
46
|
+
)}:host([static=white]) a:active,:host([static=white]) a:focus,:host([static=white]) a:hover{color:var(
|
|
47
|
+
--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white))
|
|
48
|
+
)}:host([static=black]) a{color:var(
|
|
49
|
+
--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))
|
|
50
|
+
)}:host([static=black]) a:active,:host([static=black]) a:focus,:host([static=black]) a:hover{color:var(
|
|
51
|
+
--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black))
|
|
52
|
+
)}
|
|
29
53
|
`;export default o;
|
|
30
54
|
//# 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
|
|
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,
|
|
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;-webkit-text-decoration-color:var(\n--highcontrast-link-focus-color,inherit\n);text-decoration-color:var(--highcontrast-link-focus-color,inherit);-webkit-text-decoration-style:double;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;-webkit-text-decoration-color:var(\n--highcontrast-link-focus-color,inherit\n);text-decoration-color:var(--highcontrast-link-focus-color,inherit);-webkit-text-decoration-style:double;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;AAAA;AAAA;AAAA;AAAA,EAqDf,eAAeC",
|
|
6
6
|
"names": ["css", "styles"]
|
|
7
7
|
}
|
package/stories/link.stories.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
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
|
package/test/link.test.js.map
CHANGED
|
@@ -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
|
|
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;
|
|
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,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
|
-
}
|