@spectrum-web-components/link 0.0.0-20241209155954

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 ADDED
@@ -0,0 +1,131 @@
1
+ ## Description
2
+
3
+ An `<sp-link>` allow users to navigate to a different location. They can be presented in-line inside a paragraph or as a standalone text.
4
+
5
+ ### Usage
6
+
7
+ [![See it on NPM!](https://img.shields.io/npm/v/@spectrum-web-components/link?style=for-the-badge)](https://www.npmjs.com/package/@spectrum-web-components/link)
8
+ [![How big is this package in your project?](https://img.shields.io/bundlephobia/minzip/@spectrum-web-components/link?style=for-the-badge)](https://bundlephobia.com/result?p=@spectrum-web-components/link)
9
+ [![Try it on webcomponents.dev](https://img.shields.io/badge/Try%20it%20on-webcomponents.dev-green?style=for-the-badge)](https://webcomponents.dev/edit/collection/fO75441E1Q5ZlI0e9pgq/SKjuIJdhxi5YaT3BNgxT/src/index.ts)
10
+
11
+ ```
12
+ yarn add @spectrum-web-components/link
13
+ ```
14
+
15
+ Import the side effectful registration of `<sp-link>` via:
16
+
17
+ ```
18
+ import '@spectrum-web-components/link/sp-link.js';
19
+ ```
20
+
21
+ When looking to leverage the `Link` base class as a type and/or for extension purposes, do so via:
22
+
23
+ ```
24
+ import { Link } from '@spectrum-web-components/link';
25
+ ```
26
+
27
+ ## Example
28
+
29
+ <!-- prettier-ignore -->
30
+ ```html
31
+ This is an <sp-link href="#">example link</sp-link>.
32
+ ```
33
+
34
+ ## Variants
35
+
36
+ ### Standard links
37
+
38
+ Standard links are blue and should be used to call attention to the link or for when the blue color won’t feel too overwhelming in the experience.
39
+
40
+ <!-- prettier-ignore -->
41
+ ```html
42
+ This is a <sp-link href="#">standard link</sp-link>.
43
+ ```
44
+
45
+ ### Disabled links
46
+
47
+ Disabled links are blue and should not propagate any events and they are not focussable.
48
+
49
+ <!-- prettier-ignore -->
50
+ ```html
51
+ This is a <sp-link disabled href="#">disabled link</sp-link>.
52
+ ```
53
+
54
+ ### Secondary links
55
+
56
+ The secondary variant is the same color as the paragraph text inline of which it appears. Its subdued appearance is optimal for when the primary variant is too overwhelming, such as in blocks of text with several references linked throughout.
57
+
58
+ <!-- prettier-ignore -->
59
+ ```html
60
+ This is a <sp-link href="#" variant="secondary">secondary link</sp-link>.
61
+ ```
62
+
63
+ ### Static colored links
64
+
65
+ 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-color` attribute with its `white` or `black` values to ensure the delivery is the same in all contexts.
66
+
67
+ <sp-tabs selected="white" auto label="Static Attribute Options">
68
+ <sp-tab value="white">White</sp-tab>
69
+ <sp-tab-panel value="white">
70
+
71
+ ```html
72
+ <div
73
+ style="background-color: #0f797d; padding: 15px 20px; display: inline-block;"
74
+ >
75
+ <p style="color: rgb(240, 240, 240);">
76
+ This
77
+ <sp-link static-color="white" href="#">link</sp-link>
78
+ is over a background.
79
+ </p>
80
+ </div>
81
+ ```
82
+
83
+ </sp-tab-panel>
84
+ <sp-tab value="black">Black</sp-tab>
85
+ <sp-tab-panel value="black">
86
+
87
+ ```html
88
+ <div
89
+ style="background-color: rgb(181, 209, 211); padding: 15px 20px; display: inline-block;"
90
+ >
91
+ <p style="color: rgb(15, 15, 15);">
92
+ This
93
+ <sp-link static-color="black" href="#">link</sp-link>
94
+ is over a background.
95
+ </p>
96
+ </div>
97
+ ```
98
+
99
+ </sp-tab-panel>
100
+ </sp-tabs>
101
+
102
+ ### Quiet links
103
+
104
+ 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.
105
+
106
+ <!-- prettier-ignore -->
107
+ ```html
108
+ <p>This is a <sp-link quiet href="#">quiet standard link</sp-link>.</p>
109
+ <p>This is a <sp-link quiet variant="secondary" href="#">quiet secondary link</sp-link>.</p>
110
+ <div
111
+ style="background-color: #0f797d; padding: 15px 20px; display: inline-block;"
112
+ >
113
+ <p style="color: rgb(240, 240, 240);">
114
+ This is a
115
+ <sp-link static-color="white" quiet href="#">quiet link</sp-link>
116
+ over a background.
117
+ </p>
118
+ </div>
119
+ ```
120
+
121
+ ### Download attribute
122
+
123
+ The download attribute on an `<a>` tag prompts a user to download a link as opposed to navigating to it. This attribute has been carried forward to `<sp-link>` to function the same.
124
+
125
+ While it functions this way without assigning a value, actually assigning the value allows custom naming of the download link in accordance
126
+ with standard `<a>` [rules](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a) defined by the browser.
127
+
128
+ <!-- prettier-ignore -->
129
+ ```html
130
+ This is a <sp-link download="myfile.txt" href="#">download link</sp-link>.
131
+ ```
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "@spectrum-web-components/link",
3
+ "version": "0.0.0-20241209155954",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "description": "",
8
+ "license": "Apache-2.0",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/adobe/spectrum-web-components.git",
12
+ "directory": "packages/link"
13
+ },
14
+ "author": "",
15
+ "homepage": "https://opensource.adobe.com/spectrum-web-components/components/link",
16
+ "bugs": {
17
+ "url": "https://github.com/adobe/spectrum-web-components/issues"
18
+ },
19
+ "main": "./src/index.js",
20
+ "module": "./src/index.js",
21
+ "type": "module",
22
+ "exports": {
23
+ ".": {
24
+ "development": "./src/index.dev.js",
25
+ "default": "./src/index.js"
26
+ },
27
+ "./package.json": "./package.json",
28
+ "./src/Link.js": {
29
+ "development": "./src/Link.dev.js",
30
+ "default": "./src/Link.js"
31
+ },
32
+ "./src/index.js": {
33
+ "development": "./src/index.dev.js",
34
+ "default": "./src/index.js"
35
+ },
36
+ "./src/link-overrides.css.js": "./src/link-overrides.css.js",
37
+ "./src/link.css.js": "./src/link.css.js",
38
+ "./sp-link.js": {
39
+ "development": "./sp-link.dev.js",
40
+ "default": "./sp-link.js"
41
+ }
42
+ },
43
+ "scripts": {
44
+ "test": "echo \"Error: run tests from mono-repo root.\" && exit 1"
45
+ },
46
+ "files": [
47
+ "**/*.d.ts",
48
+ "**/*.js",
49
+ "**/*.js.map",
50
+ "custom-elements.json",
51
+ "!stories/",
52
+ "!test/"
53
+ ],
54
+ "keywords": [
55
+ "spectrum css",
56
+ "web components",
57
+ "lit-element",
58
+ "lit-html"
59
+ ],
60
+ "dependencies": {
61
+ "@spectrum-web-components/base": "0.0.0-20241209155954",
62
+ "@spectrum-web-components/shared": "0.0.0-20241209155954"
63
+ },
64
+ "devDependencies": {
65
+ "@spectrum-css/link": "^6.0.0-s2-foundations.15"
66
+ },
67
+ "types": "./src/index.d.ts",
68
+ "customElements": "custom-elements.json",
69
+ "sideEffects": [
70
+ "./sp-*.js",
71
+ "./**/*.dev.js"
72
+ ]
73
+ }
package/sp-link.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { Link } from './src/Link.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'sp-link': Link;
5
+ }
6
+ }
package/sp-link.dev.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ import { Link } from "./src/Link.dev.js";
3
+ import { defineElement } from "@spectrum-web-components/base/src/define-element.js";
4
+ defineElement("sp-link", Link);
5
+ //# sourceMappingURL=sp-link.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-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*/\nimport { Link } from './src/Link.dev.js'\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-link', Link);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-link': Link;\n }\n}\n"],
5
+ "mappings": ";AAWA,SAAS,YAAY;AACrB,SAAS,qBAAqB;AAE9B,cAAc,WAAW,IAAI;",
6
+ "names": []
7
+ }
package/sp-link.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";import{Link as e}from"./src/Link.js";import{defineElement as i}from"@spectrum-web-components/base/src/define-element.js";i("sp-link",e);
2
+ //# sourceMappingURL=sp-link.js.map
package/sp-link.js.map ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["sp-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*/\nimport { Link } from './src/Link.js';\nimport { defineElement } from '@spectrum-web-components/base/src/define-element.js';\n\ndefineElement('sp-link', Link);\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'sp-link': Link;\n }\n}\n"],
5
+ "mappings": "aAWA,OAAS,QAAAA,MAAY,gBACrB,OAAS,iBAAAC,MAAqB,sDAE9BA,EAAc,UAAWD,CAAI",
6
+ "names": ["Link", "defineElement"]
7
+ }
package/src/Link.d.ts ADDED
@@ -0,0 +1,22 @@
1
+ import { CSSResultArray, TemplateResult } from '@spectrum-web-components/base';
2
+ import { Focusable } from '@spectrum-web-components/shared/src/focusable.js';
3
+ declare const Link_base: typeof Focusable & {
4
+ new (...args: any[]): import("@spectrum-web-components/shared/src/like-anchor.js").LikeAnchorInterface;
5
+ prototype: import("@spectrum-web-components/shared/src/like-anchor.js").LikeAnchorInterface;
6
+ };
7
+ /**
8
+ * @element sp-link
9
+ */
10
+ export declare class Link extends Link_base {
11
+ static get styles(): CSSResultArray;
12
+ anchorElement: HTMLAnchorElement;
13
+ variant: 'secondary' | undefined;
14
+ staticColor?: 'black' | 'white';
15
+ /**
16
+ * Uses quiet styles or not
17
+ */
18
+ quiet: boolean;
19
+ get focusElement(): HTMLElement;
20
+ protected render(): TemplateResult;
21
+ }
22
+ export {};
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __decorateClass = (decorators, target, key, kind) => {
5
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
6
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
7
+ if (decorator = decorators[i])
8
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
9
+ if (kind && result) __defProp(target, key, result);
10
+ return result;
11
+ };
12
+ import {
13
+ property,
14
+ query
15
+ } from "@spectrum-web-components/base/src/decorators.js";
16
+ import { LikeAnchor } from "@spectrum-web-components/shared/src/like-anchor.js";
17
+ import { Focusable } from "@spectrum-web-components/shared/src/focusable.js";
18
+ import linkStyles from "./link.css.js";
19
+ export class Link extends LikeAnchor(Focusable) {
20
+ constructor() {
21
+ super(...arguments);
22
+ this.quiet = false;
23
+ }
24
+ static get styles() {
25
+ return [linkStyles];
26
+ }
27
+ get focusElement() {
28
+ return this.anchorElement;
29
+ }
30
+ render() {
31
+ return this.renderAnchor({ id: "anchor" });
32
+ }
33
+ }
34
+ __decorateClass([
35
+ query("#anchor")
36
+ ], Link.prototype, "anchorElement", 2);
37
+ __decorateClass([
38
+ property({ type: String, reflect: true })
39
+ ], Link.prototype, "variant", 2);
40
+ __decorateClass([
41
+ property({ reflect: true, attribute: "static-color" })
42
+ ], Link.prototype, "staticColor", 2);
43
+ __decorateClass([
44
+ property({ type: Boolean, reflect: true, attribute: "quiet" })
45
+ ], Link.prototype, "quiet", 2);
46
+ //# sourceMappingURL=Link.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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 { 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 */\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({ reflect: true, attribute: 'static-color' })\n public staticColor?: 'black' | 'white';\n\n /**\n * Uses quiet styles or not\n */\n @property({ type: Boolean, reflect: true, attribute: 'quiet' })\n public quiet = false;\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;AAKhB,aAAM,aAAa,WAAW,SAAS,EAAE;AAAA,EAAzC;AAAA;AAkBH,SAAO,QAAQ;AAAA;AAAA,EAjBf,WAA2B,SAAyB;AAChD,WAAO,CAAC,UAAU;AAAA,EACtB;AAAA,EAiBA,IAAoB,eAA4B;AAC5C,WAAO,KAAK;AAAA,EAChB;AAAA,EAEmB,SAAyB;AACxC,WAAO,KAAK,aAAa,EAAE,IAAI,SAAS,CAAC;AAAA,EAC7C;AACJ;AArBI;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,SAAS,MAAM,WAAW,eAAe,CAAC;AAAA,GAX7C,KAYF;AAMA;AAAA,EADN,SAAS,EAAE,MAAM,SAAS,SAAS,MAAM,WAAW,QAAQ,CAAC;AAAA,GAjBrD,KAkBF;",
6
+ "names": []
7
+ }
package/src/Link.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";var a=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var t=(l,r,i,o)=>{for(var e=o>1?void 0:o?s(r,i):r,c=l.length-1,u;c>=0;c--)(u=l[c])&&(e=(o?u(r,i,e):u(e))||e);return o&&e&&a(r,i,e),e};import{property as n,query as p}from"@spectrum-web-components/base/src/decorators.js";import{LikeAnchor as m}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 m(d){constructor(){super(...arguments);this.quiet=!1}static get styles(){return[f]}get focusElement(){return this.anchorElement}render(){return this.renderAnchor({id:"anchor"})}}t([p("#anchor")],Link.prototype,"anchorElement",2),t([n({type:String,reflect:!0})],Link.prototype,"variant",2),t([n({reflect:!0,attribute:"static-color"})],Link.prototype,"staticColor",2),t([n({type:Boolean,reflect:!0,attribute:"quiet"})],Link.prototype,"quiet",2);
2
+ //# sourceMappingURL=Link.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 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 { 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 */\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({ reflect: true, attribute: 'static-color' })\n public staticColor?: 'black' | 'white';\n\n /**\n * Uses quiet styles or not\n */\n @property({ type: Boolean, reflect: true, attribute: 'quiet' })\n public quiet = false;\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,gBAKhB,aAAM,aAAaF,EAAWC,CAAS,CAAE,CAAzC,kCAkBH,KAAO,MAAQ,GAjBf,WAA2B,QAAyB,CAChD,MAAO,CAACC,CAAU,CACtB,CAiBA,IAAoB,cAA4B,CAC5C,OAAO,KAAK,aAChB,CAEmB,QAAyB,CACxC,OAAO,KAAK,aAAa,CAAE,GAAI,QAAS,CAAC,CAC7C,CACJ,CArBIC,EAAA,CADCJ,EAAM,SAAS,GALP,KAMT,6BAGOI,EAAA,CADNL,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,GARhC,KASF,uBAGAK,EAAA,CADNL,EAAS,CAAE,QAAS,GAAM,UAAW,cAAe,CAAC,GAX7C,KAYF,2BAMAK,EAAA,CADNL,EAAS,CAAE,KAAM,QAAS,QAAS,GAAM,UAAW,OAAQ,CAAC,GAjBrD,KAkBF",
6
+ "names": ["property", "query", "LikeAnchor", "Focusable", "linkStyles", "__decorateClass"]
7
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './Link.js';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ export * from "./Link.dev.js";
3
+ //# sourceMappingURL=index.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["index.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*/\nexport * from './Link.dev.js'\n"],
5
+ "mappings": ";AAWA,cAAc;",
6
+ "names": []
7
+ }
package/src/index.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";export*from"./Link.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["index.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*/\nexport * from './Link.js';\n"],
5
+ "mappings": "aAWA,WAAc",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ declare const styles: import("@spectrum-web-components/base").CSSResult;
2
+ export default styles;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ import { css } from "@spectrum-web-components/base";
3
+ const styles = css`
4
+ :host{--spectrum-link-animation-duration:var(--system-link-animation-duration);--spectrum-link-text-color-primary-default:var(--system-link-text-color-primary-default);--spectrum-link-text-color-primary-hover:var(--system-link-text-color-primary-hover);--spectrum-link-text-color-primary-active:var(--system-link-text-color-primary-active);--spectrum-link-text-color-primary-focus:var(--system-link-text-color-primary-focus);--spectrum-link-text-color-secondary-default:var(--system-link-text-color-secondary-default);--spectrum-link-text-color-secondary-hover:var(--system-link-text-color-secondary-hover);--spectrum-link-text-color-secondary-active:var(--system-link-text-color-secondary-active);--spectrum-link-text-color-secondary-focus:var(--system-link-text-color-secondary-focus);--spectrum-link-text-color-white:var(--system-link-text-color-white);--spectrum-link-text-color-black:var(--system-link-text-color-black)}
5
+ `;
6
+ export default styles;
7
+ //# sourceMappingURL=link-overrides.css.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["link-overrides.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2024 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(--system-link-animation-duration);--spectrum-link-text-color-primary-default:var(--system-link-text-color-primary-default);--spectrum-link-text-color-primary-hover:var(--system-link-text-color-primary-hover);--spectrum-link-text-color-primary-active:var(--system-link-text-color-primary-active);--spectrum-link-text-color-primary-focus:var(--system-link-text-color-primary-focus);--spectrum-link-text-color-secondary-default:var(--system-link-text-color-secondary-default);--spectrum-link-text-color-secondary-hover:var(--system-link-text-color-secondary-hover);--spectrum-link-text-color-secondary-active:var(--system-link-text-color-secondary-active);--spectrum-link-text-color-secondary-focus:var(--system-link-text-color-secondary-focus);--spectrum-link-text-color-white:var(--system-link-text-color-white);--spectrum-link-text-color-black:var(--system-link-text-color-black)}\n`;\nexport default styles;"],
5
+ "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";import{css as t}from"@spectrum-web-components/base";const r=t`
2
+ :host{--spectrum-link-animation-duration:var(--system-link-animation-duration);--spectrum-link-text-color-primary-default:var(--system-link-text-color-primary-default);--spectrum-link-text-color-primary-hover:var(--system-link-text-color-primary-hover);--spectrum-link-text-color-primary-active:var(--system-link-text-color-primary-active);--spectrum-link-text-color-primary-focus:var(--system-link-text-color-primary-focus);--spectrum-link-text-color-secondary-default:var(--system-link-text-color-secondary-default);--spectrum-link-text-color-secondary-hover:var(--system-link-text-color-secondary-hover);--spectrum-link-text-color-secondary-active:var(--system-link-text-color-secondary-active);--spectrum-link-text-color-secondary-focus:var(--system-link-text-color-secondary-focus);--spectrum-link-text-color-white:var(--system-link-text-color-white);--spectrum-link-text-color-black:var(--system-link-text-color-black)}
3
+ `;export default r;
4
+ //# sourceMappingURL=link-overrides.css.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["link-overrides.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2024 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(--system-link-animation-duration);--spectrum-link-text-color-primary-default:var(--system-link-text-color-primary-default);--spectrum-link-text-color-primary-hover:var(--system-link-text-color-primary-hover);--spectrum-link-text-color-primary-active:var(--system-link-text-color-primary-active);--spectrum-link-text-color-primary-focus:var(--system-link-text-color-primary-focus);--spectrum-link-text-color-secondary-default:var(--system-link-text-color-secondary-default);--spectrum-link-text-color-secondary-hover:var(--system-link-text-color-secondary-hover);--spectrum-link-text-color-secondary-active:var(--system-link-text-color-secondary-active);--spectrum-link-text-color-secondary-focus:var(--system-link-text-color-secondary-focus);--spectrum-link-text-color-white:var(--system-link-text-color-white);--spectrum-link-text-color-black:var(--system-link-text-color-black)}\n`;\nexport default styles;"],
5
+ "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
6
+ "names": ["css", "styles"]
7
+ }
@@ -0,0 +1,2 @@
1
+ declare const styles: import("@spectrum-web-components/base").CSSResult;
2
+ export default styles;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ import { css } from "@spectrum-web-components/base";
3
+ const styles = css`
4
+ @media (forced-colors:active){:host{--highcontrast-link-text-color-primary-default:LinkText;--highcontrast-link-text-color-primary-hover:LinkText;--highcontrast-link-text-color-primary-active:LinkText;--highcontrast-link-text-color-primary-focus:LinkText;--highcontrast-link-text-color-secondary-default:LinkText;--highcontrast-link-text-color-secondary-hover:LinkText;--highcontrast-link-text-color-secondary-active:LinkText;--highcontrast-link-text-color-secondary-focus:LinkText;--highcontrast-link-text-color-white:LinkText;--highcontrast-link-text-color-black:LinkText}}a{background-color:initial;-webkit-text-decoration-skip:objects;text-decoration-skip:objects;transition:color var(--mod-link-animation-duration,var(--spectrum-link-animation-duration))ease-in-out;cursor:pointer;color:var(--highcontrast-link-text-color-primary-default,var(--mod-link-text-color-primary-default,var(--spectrum-link-text-color-primary-default)));outline:none;-webkit-text-decoration:underline;text-decoration:underline}a:active{color:var(--highcontrast-link-text-color-primary-active,var(--mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)))}a:focus-visible{color:var(--highcontrast-link-text-color-primary-focus,var(--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)));-webkit-text-decoration:underline double;text-decoration:underline double;text-decoration-color:inherit;text-decoration-color:var(--highcontrast-link-focus-color,inherit)}:host([variant=secondary]) a{color:var(--highcontrast-link-text-color-secondary-default,var(--mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)))}:host([variant=secondary]) a:active{color:var(--highcontrast-link-text-color-secondary-active,var(--mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)))}:host([variant=secondary]) a:focus{color:var(--highcontrast-link-text-color-secondary-focus,var(--mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)))}:host([quiet]) a{-webkit-text-decoration:none;text-decoration:none}:host([static-color=white]) a,:host([static-color=white]) a:active,:host([static-color=white]) a:focus{color:var(--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white)))}:host([static-color=black]) a,:host([static-color=black]) a:active,:host([static-color=black]) a:focus{color:var(--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black)))}@media (hover:hover){a:hover{color:var(--highcontrast-link-text-color-primary-hover,var(--mod-link-text-color-primary-hover,var(--spectrum-link-text-color-primary-hover)))}:host([variant=secondary]) a:hover{color:var(--highcontrast-link-text-color-secondary-hover,var(--mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)))}:host([quiet]) a:hover{-webkit-text-decoration:underline;text-decoration:underline}:host([static-color=white]) a:hover{color:var(--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white)))}:host([static-color=black]) a:hover{color:var(--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black)))}}:host{--spectrum-link-animation-duration:var(--system-link-animation-duration);--spectrum-link-text-color-primary-default:var(--system-link-text-color-primary-default);--spectrum-link-text-color-primary-hover:var(--system-link-text-color-primary-hover);--spectrum-link-text-color-primary-active:var(--system-link-text-color-primary-active);--spectrum-link-text-color-primary-focus:var(--system-link-text-color-primary-focus);--spectrum-link-text-color-secondary-default:var(--system-link-text-color-secondary-default);--spectrum-link-text-color-secondary-hover:var(--system-link-text-color-secondary-hover);--spectrum-link-text-color-secondary-active:var(--system-link-text-color-secondary-active);--spectrum-link-text-color-secondary-focus:var(--system-link-text-color-secondary-focus);--spectrum-link-text-color-white:var(--system-link-text-color-white);--spectrum-link-text-color-black:var(--system-link-text-color-black)}:host{display:inline}:host(:focus){outline:none}:host([href]) a:focus-visible{text-decoration:underline double}:host([disabled]){pointer-events:none}
5
+ `;
6
+ export default styles;
7
+ //# sourceMappingURL=link.css.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["link.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2024 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 @media (forced-colors:active){:host{--highcontrast-link-text-color-primary-default:LinkText;--highcontrast-link-text-color-primary-hover:LinkText;--highcontrast-link-text-color-primary-active:LinkText;--highcontrast-link-text-color-primary-focus:LinkText;--highcontrast-link-text-color-secondary-default:LinkText;--highcontrast-link-text-color-secondary-hover:LinkText;--highcontrast-link-text-color-secondary-active:LinkText;--highcontrast-link-text-color-secondary-focus:LinkText;--highcontrast-link-text-color-white:LinkText;--highcontrast-link-text-color-black:LinkText}}a{background-color:initial;-webkit-text-decoration-skip:objects;text-decoration-skip:objects;transition:color var(--mod-link-animation-duration,var(--spectrum-link-animation-duration))ease-in-out;cursor:pointer;color:var(--highcontrast-link-text-color-primary-default,var(--mod-link-text-color-primary-default,var(--spectrum-link-text-color-primary-default)));outline:none;-webkit-text-decoration:underline;text-decoration:underline}a:active{color:var(--highcontrast-link-text-color-primary-active,var(--mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)))}a:focus-visible{color:var(--highcontrast-link-text-color-primary-focus,var(--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)));-webkit-text-decoration:underline double;text-decoration:underline double;text-decoration-color:inherit;text-decoration-color:var(--highcontrast-link-focus-color,inherit)}:host([variant=secondary]) a{color:var(--highcontrast-link-text-color-secondary-default,var(--mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)))}:host([variant=secondary]) a:active{color:var(--highcontrast-link-text-color-secondary-active,var(--mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)))}:host([variant=secondary]) a:focus{color:var(--highcontrast-link-text-color-secondary-focus,var(--mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)))}:host([quiet]) a{-webkit-text-decoration:none;text-decoration:none}:host([static-color=white]) a,:host([static-color=white]) a:active,:host([static-color=white]) a:focus{color:var(--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white)))}:host([static-color=black]) a,:host([static-color=black]) a:active,:host([static-color=black]) a:focus{color:var(--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black)))}@media (hover:hover){a:hover{color:var(--highcontrast-link-text-color-primary-hover,var(--mod-link-text-color-primary-hover,var(--spectrum-link-text-color-primary-hover)))}:host([variant=secondary]) a:hover{color:var(--highcontrast-link-text-color-secondary-hover,var(--mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)))}:host([quiet]) a:hover{-webkit-text-decoration:underline;text-decoration:underline}:host([static-color=white]) a:hover{color:var(--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white)))}:host([static-color=black]) a:hover{color:var(--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black)))}}:host{--spectrum-link-animation-duration:var(--system-link-animation-duration);--spectrum-link-text-color-primary-default:var(--system-link-text-color-primary-default);--spectrum-link-text-color-primary-hover:var(--system-link-text-color-primary-hover);--spectrum-link-text-color-primary-active:var(--system-link-text-color-primary-active);--spectrum-link-text-color-primary-focus:var(--system-link-text-color-primary-focus);--spectrum-link-text-color-secondary-default:var(--system-link-text-color-secondary-default);--spectrum-link-text-color-secondary-hover:var(--system-link-text-color-secondary-hover);--spectrum-link-text-color-secondary-active:var(--system-link-text-color-secondary-active);--spectrum-link-text-color-secondary-focus:var(--system-link-text-color-secondary-focus);--spectrum-link-text-color-white:var(--system-link-text-color-white);--spectrum-link-text-color-black:var(--system-link-text-color-black)}:host{display:inline}:host(:focus){outline:none}:host([href]) a:focus-visible{text-decoration:underline double}:host([disabled]){pointer-events:none}\n`;\nexport default styles;"],
5
+ "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";import{css as t}from"@spectrum-web-components/base";const o=t`
2
+ @media (forced-colors:active){:host{--highcontrast-link-text-color-primary-default:LinkText;--highcontrast-link-text-color-primary-hover:LinkText;--highcontrast-link-text-color-primary-active:LinkText;--highcontrast-link-text-color-primary-focus:LinkText;--highcontrast-link-text-color-secondary-default:LinkText;--highcontrast-link-text-color-secondary-hover:LinkText;--highcontrast-link-text-color-secondary-active:LinkText;--highcontrast-link-text-color-secondary-focus:LinkText;--highcontrast-link-text-color-white:LinkText;--highcontrast-link-text-color-black:LinkText}}a{background-color:initial;-webkit-text-decoration-skip:objects;text-decoration-skip:objects;transition:color var(--mod-link-animation-duration,var(--spectrum-link-animation-duration))ease-in-out;cursor:pointer;color:var(--highcontrast-link-text-color-primary-default,var(--mod-link-text-color-primary-default,var(--spectrum-link-text-color-primary-default)));outline:none;-webkit-text-decoration:underline;text-decoration:underline}a:active{color:var(--highcontrast-link-text-color-primary-active,var(--mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)))}a:focus-visible{color:var(--highcontrast-link-text-color-primary-focus,var(--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)));-webkit-text-decoration:underline double;text-decoration:underline double;text-decoration-color:inherit;text-decoration-color:var(--highcontrast-link-focus-color,inherit)}:host([variant=secondary]) a{color:var(--highcontrast-link-text-color-secondary-default,var(--mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)))}:host([variant=secondary]) a:active{color:var(--highcontrast-link-text-color-secondary-active,var(--mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)))}:host([variant=secondary]) a:focus{color:var(--highcontrast-link-text-color-secondary-focus,var(--mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)))}:host([quiet]) a{-webkit-text-decoration:none;text-decoration:none}:host([static-color=white]) a,:host([static-color=white]) a:active,:host([static-color=white]) a:focus{color:var(--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white)))}:host([static-color=black]) a,:host([static-color=black]) a:active,:host([static-color=black]) a:focus{color:var(--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black)))}@media (hover:hover){a:hover{color:var(--highcontrast-link-text-color-primary-hover,var(--mod-link-text-color-primary-hover,var(--spectrum-link-text-color-primary-hover)))}:host([variant=secondary]) a:hover{color:var(--highcontrast-link-text-color-secondary-hover,var(--mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)))}:host([quiet]) a:hover{-webkit-text-decoration:underline;text-decoration:underline}:host([static-color=white]) a:hover{color:var(--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white)))}:host([static-color=black]) a:hover{color:var(--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black)))}}:host{--spectrum-link-animation-duration:var(--system-link-animation-duration);--spectrum-link-text-color-primary-default:var(--system-link-text-color-primary-default);--spectrum-link-text-color-primary-hover:var(--system-link-text-color-primary-hover);--spectrum-link-text-color-primary-active:var(--system-link-text-color-primary-active);--spectrum-link-text-color-primary-focus:var(--system-link-text-color-primary-focus);--spectrum-link-text-color-secondary-default:var(--system-link-text-color-secondary-default);--spectrum-link-text-color-secondary-hover:var(--system-link-text-color-secondary-hover);--spectrum-link-text-color-secondary-active:var(--system-link-text-color-secondary-active);--spectrum-link-text-color-secondary-focus:var(--system-link-text-color-secondary-focus);--spectrum-link-text-color-white:var(--system-link-text-color-white);--spectrum-link-text-color-black:var(--system-link-text-color-black)}:host{display:inline}:host(:focus){outline:none}:host([href]) a:focus-visible{text-decoration:underline double}:host([disabled]){pointer-events:none}
3
+ `;export default o;
4
+ //# sourceMappingURL=link.css.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["link.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2024 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 @media (forced-colors:active){:host{--highcontrast-link-text-color-primary-default:LinkText;--highcontrast-link-text-color-primary-hover:LinkText;--highcontrast-link-text-color-primary-active:LinkText;--highcontrast-link-text-color-primary-focus:LinkText;--highcontrast-link-text-color-secondary-default:LinkText;--highcontrast-link-text-color-secondary-hover:LinkText;--highcontrast-link-text-color-secondary-active:LinkText;--highcontrast-link-text-color-secondary-focus:LinkText;--highcontrast-link-text-color-white:LinkText;--highcontrast-link-text-color-black:LinkText}}a{background-color:initial;-webkit-text-decoration-skip:objects;text-decoration-skip:objects;transition:color var(--mod-link-animation-duration,var(--spectrum-link-animation-duration))ease-in-out;cursor:pointer;color:var(--highcontrast-link-text-color-primary-default,var(--mod-link-text-color-primary-default,var(--spectrum-link-text-color-primary-default)));outline:none;-webkit-text-decoration:underline;text-decoration:underline}a:active{color:var(--highcontrast-link-text-color-primary-active,var(--mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)))}a:focus-visible{color:var(--highcontrast-link-text-color-primary-focus,var(--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)));-webkit-text-decoration:underline double;text-decoration:underline double;text-decoration-color:inherit;text-decoration-color:var(--highcontrast-link-focus-color,inherit)}:host([variant=secondary]) a{color:var(--highcontrast-link-text-color-secondary-default,var(--mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)))}:host([variant=secondary]) a:active{color:var(--highcontrast-link-text-color-secondary-active,var(--mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)))}:host([variant=secondary]) a:focus{color:var(--highcontrast-link-text-color-secondary-focus,var(--mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)))}:host([quiet]) a{-webkit-text-decoration:none;text-decoration:none}:host([static-color=white]) a,:host([static-color=white]) a:active,:host([static-color=white]) a:focus{color:var(--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white)))}:host([static-color=black]) a,:host([static-color=black]) a:active,:host([static-color=black]) a:focus{color:var(--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black)))}@media (hover:hover){a:hover{color:var(--highcontrast-link-text-color-primary-hover,var(--mod-link-text-color-primary-hover,var(--spectrum-link-text-color-primary-hover)))}:host([variant=secondary]) a:hover{color:var(--highcontrast-link-text-color-secondary-hover,var(--mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)))}:host([quiet]) a:hover{-webkit-text-decoration:underline;text-decoration:underline}:host([static-color=white]) a:hover{color:var(--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white)))}:host([static-color=black]) a:hover{color:var(--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black)))}}:host{--spectrum-link-animation-duration:var(--system-link-animation-duration);--spectrum-link-text-color-primary-default:var(--system-link-text-color-primary-default);--spectrum-link-text-color-primary-hover:var(--system-link-text-color-primary-hover);--spectrum-link-text-color-primary-active:var(--system-link-text-color-primary-active);--spectrum-link-text-color-primary-focus:var(--system-link-text-color-primary-focus);--spectrum-link-text-color-secondary-default:var(--system-link-text-color-secondary-default);--spectrum-link-text-color-secondary-hover:var(--system-link-text-color-secondary-hover);--spectrum-link-text-color-secondary-active:var(--system-link-text-color-secondary-active);--spectrum-link-text-color-secondary-focus:var(--system-link-text-color-secondary-focus);--spectrum-link-text-color-white:var(--system-link-text-color-white);--spectrum-link-text-color-black:var(--system-link-text-color-black)}:host{display:inline}:host(:focus){outline:none}:host([href]) a:focus-visible{text-decoration:underline double}:host([disabled]){pointer-events:none}\n`;\nexport default styles;"],
5
+ "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
6
+ "names": ["css", "styles"]
7
+ }
@@ -0,0 +1,189 @@
1
+ // @ts-check
2
+ /*
3
+ Copyright 2023 Adobe. All rights reserved.
4
+ This file is licensed to you under the Apache License, Version 2.0 (the 'License');
5
+ you may not use this file except in compliance with the License. You may obtain a copy
6
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
7
+
8
+ Unless required by applicable law or agreed to in writing, software distributed under
9
+ the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
10
+ OF ANY KIND, either express or implied. See the License for the specific language
11
+ governing permissions and limitations under the License.
12
+ */
13
+
14
+ import {
15
+ builder,
16
+ converterFor,
17
+ } from '../../../tasks/process-spectrum-utils.js';
18
+
19
+ const converter = converterFor('spectrum-Link');
20
+
21
+ /**
22
+ * @returns {import('../../../tasks/spectrum-css-converter').ComplexSelectorConversion}
23
+ */
24
+ const includeAnchor = (className, attribute, value) => ({
25
+ find: [
26
+ /** @type {import('lightningcss').SelectorComponent} */ (
27
+ builder.class(className)
28
+ ),
29
+ ],
30
+ replace: [
31
+ {
32
+ replace: /** @type {import('lightningcss').SelectorComponent} */ ({
33
+ type: 'pseudo-class',
34
+ kind: 'host',
35
+ selectors: [builder.attribute(attribute, value)],
36
+ }),
37
+ },
38
+ {
39
+ replace: builder.combinator('descendant'),
40
+ },
41
+ {
42
+ replace: builder.element('a'),
43
+ },
44
+ ],
45
+ });
46
+
47
+ /**
48
+ *
49
+ * @param {string} pseudo
50
+ * @param {string} className
51
+ * @param {string} attribute
52
+ * @param {string} value
53
+ * @returns {import('../../../tasks/spectrum-css-converter').ComplexSelectorConversion}
54
+ */
55
+ const includeAnchorWithPseudoClass = (pseudo, className, attribute, value) => {
56
+ const component = includeAnchor(className, attribute, value);
57
+ const pseudoComponent =
58
+ /** @type {import('lightningcss').SelectorComponent} */ (
59
+ builder.pseudoClass(pseudo)
60
+ );
61
+ component.find.push(pseudoComponent);
62
+ component.replace.push({
63
+ replace: pseudoComponent,
64
+ });
65
+ return component;
66
+ };
67
+
68
+ /**
69
+ * @type { import('../../../tasks/spectrum-css-converter').SpectrumCSSConverter }
70
+ */
71
+ const config = {
72
+ conversions: [
73
+ {
74
+ inPackage: '@spectrum-css/link',
75
+ outPackage: 'link',
76
+ fileName: 'link',
77
+ hoistCustomPropertiesFrom: 'spectrum-Link',
78
+ components: [
79
+ {
80
+ find: [
81
+ builder.class('spectrum-Link'),
82
+ builder.pseudoClass('active'),
83
+ ],
84
+ replace: [],
85
+ },
86
+ {
87
+ find: [
88
+ builder.class('spectrum-Link'),
89
+ builder.pseudoClass('hover'),
90
+ ],
91
+ replace: [
92
+ {
93
+ replace: builder.element('a'),
94
+ },
95
+ {
96
+ replace: builder.pseudoClass('hover'),
97
+ },
98
+ ],
99
+ },
100
+ includeAnchor('spectrum-Link--quiet', 'quiet'),
101
+ includeAnchorWithPseudoClass(
102
+ 'hover',
103
+ 'spectrum-Link--quiet',
104
+ 'quiet'
105
+ ),
106
+ includeAnchor(
107
+ 'spectrum-Link--secondary',
108
+ 'variant',
109
+ 'secondary'
110
+ ),
111
+ includeAnchorWithPseudoClass(
112
+ 'hover',
113
+ 'spectrum-Link--secondary',
114
+ 'variant',
115
+ 'secondary'
116
+ ),
117
+ includeAnchorWithPseudoClass(
118
+ 'active',
119
+ 'spectrum-Link--secondary',
120
+ 'variant',
121
+ 'secondary'
122
+ ),
123
+ includeAnchorWithPseudoClass(
124
+ 'focus',
125
+ 'spectrum-Link--secondary',
126
+ 'variant',
127
+ 'secondary'
128
+ ),
129
+ includeAnchor(
130
+ 'spectrum-Link--staticWhite',
131
+ 'static-color',
132
+ 'white'
133
+ ),
134
+ includeAnchorWithPseudoClass(
135
+ 'hover',
136
+ 'spectrum-Link--staticWhite',
137
+ 'static-color',
138
+ 'white'
139
+ ),
140
+ includeAnchorWithPseudoClass(
141
+ 'active',
142
+ 'spectrum-Link--staticWhite',
143
+ 'static-color',
144
+ 'white'
145
+ ),
146
+ includeAnchorWithPseudoClass(
147
+ 'focus',
148
+ 'spectrum-Link--staticWhite',
149
+ 'static-color',
150
+ 'white'
151
+ ),
152
+ includeAnchor(
153
+ 'spectrum-Link--staticBlack',
154
+ 'static-color',
155
+ 'black'
156
+ ),
157
+ includeAnchorWithPseudoClass(
158
+ 'hover',
159
+ 'spectrum-Link--staticBlack',
160
+ 'static-color',
161
+ 'black'
162
+ ),
163
+ includeAnchorWithPseudoClass(
164
+ 'active',
165
+ 'spectrum-Link--staticBlack',
166
+ 'static-color',
167
+ 'black'
168
+ ),
169
+ includeAnchorWithPseudoClass(
170
+ 'focus',
171
+ 'spectrum-Link--staticBlack',
172
+ 'static-color',
173
+ 'black'
174
+ ),
175
+ {
176
+ find: builder.class('spectrum-Link'),
177
+ replace: builder.element('a'),
178
+ },
179
+ converter.classToAttribute('spectrum-Link--quiet'),
180
+ converter.classToAttribute(
181
+ 'spectrum-Link--overBackground',
182
+ 'over-background'
183
+ ),
184
+ ],
185
+ },
186
+ ],
187
+ };
188
+
189
+ export default config;
@@ -0,0 +1,2 @@
1
+ declare const styles: import("@spectrum-web-components/base").CSSResult;
2
+ export default styles;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ import { css } from "@spectrum-web-components/base";
3
+ const styles = css`
4
+ @media (forced-colors:active){:host{--highcontrast-link-text-color-primary-default:LinkText;--highcontrast-link-text-color-primary-hover:LinkText;--highcontrast-link-text-color-primary-active:LinkText;--highcontrast-link-text-color-primary-focus:LinkText;--highcontrast-link-text-color-secondary-default:LinkText;--highcontrast-link-text-color-secondary-hover:LinkText;--highcontrast-link-text-color-secondary-active:LinkText;--highcontrast-link-text-color-secondary-focus:LinkText;--highcontrast-link-text-color-white:LinkText;--highcontrast-link-text-color-black:LinkText}}a{background-color:initial;-webkit-text-decoration-skip:objects;text-decoration-skip:objects;transition:color var(--mod-link-animation-duration,var(--spectrum-link-animation-duration))ease-in-out;cursor:pointer;color:var(--highcontrast-link-text-color-primary-default,var(--mod-link-text-color-primary-default,var(--spectrum-link-text-color-primary-default)));outline:none;-webkit-text-decoration:underline;text-decoration:underline}a:active{color:var(--highcontrast-link-text-color-primary-active,var(--mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)))}a:focus-visible{color:var(--highcontrast-link-text-color-primary-focus,var(--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)));-webkit-text-decoration:underline double;text-decoration:underline double;text-decoration-color:inherit;text-decoration-color:var(--highcontrast-link-focus-color,inherit)}:host([variant=secondary]) a{color:var(--highcontrast-link-text-color-secondary-default,var(--mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)))}:host([variant=secondary]) a:active{color:var(--highcontrast-link-text-color-secondary-active,var(--mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)))}:host([variant=secondary]) a:focus{color:var(--highcontrast-link-text-color-secondary-focus,var(--mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)))}:host([quiet]) a{-webkit-text-decoration:none;text-decoration:none}:host([static-color=white]) a,:host([static-color=white]) a:active,:host([static-color=white]) a:focus{color:var(--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white)))}:host([static-color=black]) a,:host([static-color=black]) a:active,:host([static-color=black]) a:focus{color:var(--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black)))}@media (hover:hover){a:hover{color:var(--highcontrast-link-text-color-primary-hover,var(--mod-link-text-color-primary-hover,var(--spectrum-link-text-color-primary-hover)))}:host([variant=secondary]) a:hover{color:var(--highcontrast-link-text-color-secondary-hover,var(--mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)))}:host([quiet]) a:hover{-webkit-text-decoration:underline;text-decoration:underline}:host([static-color=white]) a:hover{color:var(--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white)))}:host([static-color=black]) a:hover{color:var(--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black)))}}
5
+ `;
6
+ export default styles;
7
+ //# sourceMappingURL=spectrum-link.css.dev.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["spectrum-link.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2024 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 @media (forced-colors:active){:host{--highcontrast-link-text-color-primary-default:LinkText;--highcontrast-link-text-color-primary-hover:LinkText;--highcontrast-link-text-color-primary-active:LinkText;--highcontrast-link-text-color-primary-focus:LinkText;--highcontrast-link-text-color-secondary-default:LinkText;--highcontrast-link-text-color-secondary-hover:LinkText;--highcontrast-link-text-color-secondary-active:LinkText;--highcontrast-link-text-color-secondary-focus:LinkText;--highcontrast-link-text-color-white:LinkText;--highcontrast-link-text-color-black:LinkText}}a{background-color:initial;-webkit-text-decoration-skip:objects;text-decoration-skip:objects;transition:color var(--mod-link-animation-duration,var(--spectrum-link-animation-duration))ease-in-out;cursor:pointer;color:var(--highcontrast-link-text-color-primary-default,var(--mod-link-text-color-primary-default,var(--spectrum-link-text-color-primary-default)));outline:none;-webkit-text-decoration:underline;text-decoration:underline}a:active{color:var(--highcontrast-link-text-color-primary-active,var(--mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)))}a:focus-visible{color:var(--highcontrast-link-text-color-primary-focus,var(--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)));-webkit-text-decoration:underline double;text-decoration:underline double;text-decoration-color:inherit;text-decoration-color:var(--highcontrast-link-focus-color,inherit)}:host([variant=secondary]) a{color:var(--highcontrast-link-text-color-secondary-default,var(--mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)))}:host([variant=secondary]) a:active{color:var(--highcontrast-link-text-color-secondary-active,var(--mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)))}:host([variant=secondary]) a:focus{color:var(--highcontrast-link-text-color-secondary-focus,var(--mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)))}:host([quiet]) a{-webkit-text-decoration:none;text-decoration:none}:host([static-color=white]) a,:host([static-color=white]) a:active,:host([static-color=white]) a:focus{color:var(--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white)))}:host([static-color=black]) a,:host([static-color=black]) a:active,:host([static-color=black]) a:focus{color:var(--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black)))}@media (hover:hover){a:hover{color:var(--highcontrast-link-text-color-primary-hover,var(--mod-link-text-color-primary-hover,var(--spectrum-link-text-color-primary-hover)))}:host([variant=secondary]) a:hover{color:var(--highcontrast-link-text-color-secondary-hover,var(--mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)))}:host([quiet]) a:hover{-webkit-text-decoration:underline;text-decoration:underline}:host([static-color=white]) a:hover{color:var(--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white)))}:host([static-color=black]) a:hover{color:var(--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black)))}}\n`;\nexport default styles;"],
5
+ "mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAGf,eAAe;",
6
+ "names": []
7
+ }
@@ -0,0 +1,4 @@
1
+ "use strict";import{css as t}from"@spectrum-web-components/base";const o=t`
2
+ @media (forced-colors:active){:host{--highcontrast-link-text-color-primary-default:LinkText;--highcontrast-link-text-color-primary-hover:LinkText;--highcontrast-link-text-color-primary-active:LinkText;--highcontrast-link-text-color-primary-focus:LinkText;--highcontrast-link-text-color-secondary-default:LinkText;--highcontrast-link-text-color-secondary-hover:LinkText;--highcontrast-link-text-color-secondary-active:LinkText;--highcontrast-link-text-color-secondary-focus:LinkText;--highcontrast-link-text-color-white:LinkText;--highcontrast-link-text-color-black:LinkText}}a{background-color:initial;-webkit-text-decoration-skip:objects;text-decoration-skip:objects;transition:color var(--mod-link-animation-duration,var(--spectrum-link-animation-duration))ease-in-out;cursor:pointer;color:var(--highcontrast-link-text-color-primary-default,var(--mod-link-text-color-primary-default,var(--spectrum-link-text-color-primary-default)));outline:none;-webkit-text-decoration:underline;text-decoration:underline}a:active{color:var(--highcontrast-link-text-color-primary-active,var(--mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)))}a:focus-visible{color:var(--highcontrast-link-text-color-primary-focus,var(--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)));-webkit-text-decoration:underline double;text-decoration:underline double;text-decoration-color:inherit;text-decoration-color:var(--highcontrast-link-focus-color,inherit)}:host([variant=secondary]) a{color:var(--highcontrast-link-text-color-secondary-default,var(--mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)))}:host([variant=secondary]) a:active{color:var(--highcontrast-link-text-color-secondary-active,var(--mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)))}:host([variant=secondary]) a:focus{color:var(--highcontrast-link-text-color-secondary-focus,var(--mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)))}:host([quiet]) a{-webkit-text-decoration:none;text-decoration:none}:host([static-color=white]) a,:host([static-color=white]) a:active,:host([static-color=white]) a:focus{color:var(--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white)))}:host([static-color=black]) a,:host([static-color=black]) a:active,:host([static-color=black]) a:focus{color:var(--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black)))}@media (hover:hover){a:hover{color:var(--highcontrast-link-text-color-primary-hover,var(--mod-link-text-color-primary-hover,var(--spectrum-link-text-color-primary-hover)))}:host([variant=secondary]) a:hover{color:var(--highcontrast-link-text-color-secondary-hover,var(--mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)))}:host([quiet]) a:hover{-webkit-text-decoration:underline;text-decoration:underline}:host([static-color=white]) a:hover{color:var(--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white)))}:host([static-color=black]) a:hover{color:var(--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black)))}}
3
+ `;export default o;
4
+ //# sourceMappingURL=spectrum-link.css.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["spectrum-link.css.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2024 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 @media (forced-colors:active){:host{--highcontrast-link-text-color-primary-default:LinkText;--highcontrast-link-text-color-primary-hover:LinkText;--highcontrast-link-text-color-primary-active:LinkText;--highcontrast-link-text-color-primary-focus:LinkText;--highcontrast-link-text-color-secondary-default:LinkText;--highcontrast-link-text-color-secondary-hover:LinkText;--highcontrast-link-text-color-secondary-active:LinkText;--highcontrast-link-text-color-secondary-focus:LinkText;--highcontrast-link-text-color-white:LinkText;--highcontrast-link-text-color-black:LinkText}}a{background-color:initial;-webkit-text-decoration-skip:objects;text-decoration-skip:objects;transition:color var(--mod-link-animation-duration,var(--spectrum-link-animation-duration))ease-in-out;cursor:pointer;color:var(--highcontrast-link-text-color-primary-default,var(--mod-link-text-color-primary-default,var(--spectrum-link-text-color-primary-default)));outline:none;-webkit-text-decoration:underline;text-decoration:underline}a:active{color:var(--highcontrast-link-text-color-primary-active,var(--mod-link-text-color-primary-active,var(--spectrum-link-text-color-primary-active)))}a:focus-visible{color:var(--highcontrast-link-text-color-primary-focus,var(--mod-link-text-color-primary-focus,var(--spectrum-link-text-color-primary-focus)));-webkit-text-decoration:underline double;text-decoration:underline double;text-decoration-color:inherit;text-decoration-color:var(--highcontrast-link-focus-color,inherit)}:host([variant=secondary]) a{color:var(--highcontrast-link-text-color-secondary-default,var(--mod-link-text-color-secondary-default,var(--spectrum-link-text-color-secondary-default)))}:host([variant=secondary]) a:active{color:var(--highcontrast-link-text-color-secondary-active,var(--mod-link-text-color-secondary-active,var(--spectrum-link-text-color-secondary-active)))}:host([variant=secondary]) a:focus{color:var(--highcontrast-link-text-color-secondary-focus,var(--mod-link-text-color-secondary-focus,var(--spectrum-link-text-color-secondary-focus)))}:host([quiet]) a{-webkit-text-decoration:none;text-decoration:none}:host([static-color=white]) a,:host([static-color=white]) a:active,:host([static-color=white]) a:focus{color:var(--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white)))}:host([static-color=black]) a,:host([static-color=black]) a:active,:host([static-color=black]) a:focus{color:var(--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black)))}@media (hover:hover){a:hover{color:var(--highcontrast-link-text-color-primary-hover,var(--mod-link-text-color-primary-hover,var(--spectrum-link-text-color-primary-hover)))}:host([variant=secondary]) a:hover{color:var(--highcontrast-link-text-color-secondary-hover,var(--mod-link-text-color-secondary-hover,var(--spectrum-link-text-color-secondary-hover)))}:host([quiet]) a:hover{-webkit-text-decoration:underline;text-decoration:underline}:host([static-color=white]) a:hover{color:var(--highcontrast-link-text-color-white,var(--mod-link-text-color-white,var(--spectrum-link-text-color-white)))}:host([static-color=black]) a:hover{color:var(--highcontrast-link-text-color-black,var(--mod-link-text-color-black,var(--spectrum-link-text-color-black)))}}\n`;\nexport default styles;"],
5
+ "mappings": "aAWA,OAAS,OAAAA,MAAW,gCACpB,MAAMC,EAASD;AAAA;AAAA,EAGf,eAAeC",
6
+ "names": ["css", "styles"]
7
+ }