@spectrum-web-components/link 1.1.0-beta.9 → 1.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/link",
3
- "version": "1.1.0-beta.9",
3
+ "version": "1.1.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -58,11 +58,11 @@
58
58
  "lit-html"
59
59
  ],
60
60
  "dependencies": {
61
- "@spectrum-web-components/base": "^1.1.0-beta.9",
62
- "@spectrum-web-components/shared": "^1.1.0-beta.9"
61
+ "@spectrum-web-components/base": "^1.1.0",
62
+ "@spectrum-web-components/shared": "^1.1.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@spectrum-css/link": "^6.0.0-s2-foundations.15"
65
+ "@spectrum-css/link": "6.0.0-s2-foundations.15"
66
66
  },
67
67
  "types": "./src/index.d.ts",
68
68
  "customElements": "custom-elements.json",
@@ -70,5 +70,5 @@
70
70
  "./sp-*.js",
71
71
  "./**/*.dev.js"
72
72
  ],
73
- "gitHead": "56bdfbc0a26b76ff7c3ee454478d5ebd2a4d33dc"
73
+ "gitHead": "e3c6e52501451acc6fa85b10dd718267b80a01ab"
74
74
  }
package/sp-link.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import { Link } from './src/Link.js';
2
- declare global {
3
- interface HTMLElementTagNameMap {
4
- 'sp-link': Link;
5
- }
6
- }
package/sp-link.dev.js DELETED
@@ -1,5 +0,0 @@
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
@@ -1,7 +0,0 @@
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 DELETED
@@ -1,2 +0,0 @@
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 DELETED
@@ -1,7 +0,0 @@
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 DELETED
@@ -1,22 +0,0 @@
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 {};
package/src/Link.dev.js DELETED
@@ -1,46 +0,0 @@
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
@@ -1,7 +0,0 @@
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 DELETED
@@ -1,2 +0,0 @@
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
package/src/Link.js.map DELETED
@@ -1,7 +0,0 @@
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 DELETED
@@ -1 +0,0 @@
1
- export * from './Link.js';
package/src/index.dev.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";
2
- export * from "./Link.dev.js";
3
- //# sourceMappingURL=index.dev.js.map
@@ -1,7 +0,0 @@
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 DELETED
@@ -1,2 +0,0 @@
1
- "use strict";export*from"./Link.js";
2
- //# sourceMappingURL=index.js.map
package/src/index.js.map DELETED
@@ -1,7 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- declare const styles: import("@spectrum-web-components/base").CSSResult;
2
- export default styles;
@@ -1,7 +0,0 @@
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
@@ -1,7 +0,0 @@
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
- }
@@ -1,4 +0,0 @@
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
@@ -1,7 +0,0 @@
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
- }
package/src/link.css.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const styles: import("@spectrum-web-components/base").CSSResult;
2
- export default styles;
@@ -1,7 +0,0 @@
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
@@ -1,7 +0,0 @@
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
- }
package/src/link.css.js DELETED
@@ -1,4 +0,0 @@
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
@@ -1,7 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- declare const styles: import("@spectrum-web-components/base").CSSResult;
2
- export default styles;
@@ -1,7 +0,0 @@
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
@@ -1,7 +0,0 @@
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
- }
@@ -1,4 +0,0 @@
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
@@ -1,7 +0,0 @@
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
- }
@@ -1,97 +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"
7
- };
8
- export const Default = () => {
9
- return html`
10
- This is a <sp-link href="#">link</sp-link> in a sentence.
11
- `;
12
- };
13
- export const Quiet = () => {
14
- return html`
15
- This is a <sp-link quiet href="#">quiet link</sp-link> in a sentence.
16
- `;
17
- };
18
- export const Disabled = () => {
19
- return html`
20
- This is a <sp-link disabled onclick="('hi')" href="#">disabled non focusable link</sp-link> in a sentence.
21
- `;
22
- };
23
- export const secondary = () => {
24
- return html`
25
- This is a <sp-link variant="secondary" href="#">link</sp-link> in a sentence.
26
- `;
27
- };
28
- export const secondaryQuiet = () => {
29
- return html`
30
- This is a <sp-link variant="secondary" quiet href="#">quiet link</sp-link> in a sentence.
31
- `;
32
- };
33
- export const staticWhite = () => {
34
- return html`
35
- <div
36
- style="background-color: rgb(15, 121, 125); padding: 15px 20px; display: inline-block;"
37
- >
38
- <p style="color: rgb(240, 240, 240);">
39
- This
40
- <sp-link static-color="white" href="#">link</sp-link>
41
- has a background.
42
- </p>
43
- </div>
44
- `;
45
- };
46
- export const staticBlack = () => {
47
- return html`
48
- <div
49
- style="background-color: rgb(181, 209, 211); padding: 15px 20px; display: inline-block;"
50
- >
51
- <p style="color: rgb(15, 15, 15);">
52
- This
53
- <sp-link static-color="black" href="#">link</sp-link>
54
- has a background.
55
- </p>
56
- </div>
57
- `;
58
- };
59
- export const staticWhiteQuiet = () => {
60
- return html`
61
- <div
62
- style="background-color: rgb(15, 121, 125); padding: 15px 20px; display: inline-block;"
63
- >
64
- <p style="color: rgb(240, 240, 240);">
65
- This
66
- <sp-link static-color="white" quiet href="#">link</sp-link>
67
- has a background.
68
- </p>
69
- </div>
70
- `;
71
- };
72
- export const staticBlackQuiet = () => {
73
- return html`
74
- <div
75
- style="background-color: rgb(181, 209, 211); padding: 15px 20px; display: inline-block;"
76
- >
77
- <p style="color: rgb(15, 15, 15);">
78
- This
79
- <sp-link static-color="black" quiet href="#">link</sp-link>
80
- has a background.
81
- </p>
82
- </div>
83
- `;
84
- };
85
- export const Download = () => {
86
- const blob = new Blob(["some text for the file"], {
87
- type: "text/plain;charset=utf-8"
88
- });
89
- return html`
90
- This is a
91
- <sp-link download="somefile.txt" href="${URL.createObjectURL(blob)}">
92
- downloadable file
93
- </sp-link>
94
- for you to click on.
95
- `;
96
- };
97
- //# sourceMappingURL=link.stories.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 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 Disabled = (): TemplateResult => {\n // prettier-ignore\n return html`\n This is a <sp-link disabled onclick=\"('hi')\" href=\"#\">disabled non focusable 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-color=\"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-color=\"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-color=\"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-color=\"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,WAAW,MAAsB;AAE1C,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,CAAC;AAAA;AAAA;AAAA;AAAA;AAK1E;",
6
- "names": []
7
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- import "@spectrum-web-components/link/sp-link.js";
3
- import { html } from "lit";
4
- import { measureFixtureCreation } from "../../../../test/benchmark/helpers.js";
5
- measureFixtureCreation(html`
6
- <sp-link href="test_url" download="somefile.txt">Default Link</sp-link>
7
- `);
8
- //# sourceMappingURL=test-basic.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["test-basic.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 { html } from 'lit';\nimport { measureFixtureCreation } from '../../../../test/benchmark/helpers.js';\n\nmeasureFixtureCreation(html`\n <sp-link href=\"test_url\" download=\"somefile.txt\">Default Link</sp-link>\n`);\n"],
5
- "mappings": ";AAYA,OAAO;AACP,SAAS,YAAY;AACrB,SAAS,8BAA8B;AAEvC,uBAAuB;AAAA;AAAA,CAEtB;",
6
- "names": []
7
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- import { html } from "@open-wc/testing";
3
- import "@spectrum-web-components/link/sp-link.js";
4
- import { testForMemoryLeaks } from "../../../test/testing-helpers.js";
5
- testForMemoryLeaks(html`
6
- <sp-link></sp-link>
7
- `);
8
- //# sourceMappingURL=link-memory.test.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["link-memory.test.ts"],
4
- "sourcesContent": ["/*\nCopyright 2023 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\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 { html } from '@open-wc/testing';\nimport '@spectrum-web-components/link/sp-link.js';\nimport { testForMemoryLeaks } from '../../../test/testing-helpers.js';\n\ntestForMemoryLeaks(html`\n <sp-link></sp-link>\n`);\n"],
5
- "mappings": ";AAWA,SAAS,YAAY;AACrB,OAAO;AACP,SAAS,0BAA0B;AAEnC,mBAAmB;AAAA;AAAA,CAElB;",
6
- "names": []
7
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- import * as stories from "../stories/link.stories.js";
3
- import { regressVisuals } from "../../../test/visual/test.js";
4
- regressVisuals("LinkStories", stories);
5
- //# sourceMappingURL=link.test-vrt.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["link.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.stories.js';\nimport { regressVisuals } from '../../../test/visual/test.js';\nimport type { TestsType } from '../../../test/visual/test.js';\n\nregressVisuals('LinkStories', stories as unknown as TestsType);\n"],
5
- "mappings": ";AAYA,YAAY,aAAa;AACzB,SAAS,sBAAsB;AAG/B,eAAe,eAAe,OAA+B;",
6
- "names": []
7
- }
package/test/link.test.js DELETED
@@ -1,56 +0,0 @@
1
- "use strict";
2
- import "@spectrum-web-components/link/sp-link.js";
3
- import { elementUpdated, expect, fixture, html } from "@open-wc/testing";
4
- import { testForLitDevWarnings } from "../../../test/testing-helpers.js";
5
- import { spy } from "sinon";
6
- describe("Link", () => {
7
- testForLitDevWarnings(
8
- async () => await fixture(html`
9
- <sp-link href="test_url">Default Link</sp-link>
10
- `)
11
- );
12
- it("loads", async () => {
13
- const el = await fixture(html`
14
- <sp-link href="test_url">Default Link</sp-link>
15
- `);
16
- await elementUpdated(el);
17
- expect(el).to.not.be.undefined;
18
- expect(el.textContent).to.include("Default Link");
19
- await expect(el).to.be.accessible();
20
- });
21
- it("loads[download]", async () => {
22
- const el = await fixture(html`
23
- <sp-link href="test_url" download="somefile.txt">
24
- Default Link
25
- </sp-link>
26
- `);
27
- await elementUpdated(el);
28
- expect(el).to.not.be.undefined;
29
- expect(el.textContent).to.include("Default Link");
30
- await expect(el).to.be.accessible();
31
- });
32
- it("loads[rel]", async () => {
33
- const el = await fixture(html`
34
- <sp-link href="test_url" rel="external">Default Link</sp-link>
35
- `);
36
- await elementUpdated(el);
37
- expect(el).to.not.be.undefined;
38
- expect(el.focusElement.getAttribute("rel")).to.eq("external");
39
- await expect(el).to.be.accessible();
40
- });
41
- it("no click triggers for disabled link", async () => {
42
- const clickSpy = spy();
43
- const el = await fixture(html`
44
- <sp-link href="#" disabled @click=${() => clickSpy()}>
45
- Disabled Link
46
- </sp-link>
47
- `);
48
- await elementUpdated(el);
49
- expect(el).to.not.be.undefined;
50
- expect(el.disabled).to.eq(true);
51
- await expect(el).to.be.accessible();
52
- el.click();
53
- expect(clickSpy.callCount).to.equal(0);
54
- });
55
- });
56
- //# sourceMappingURL=link.test.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 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';\nimport { spy } from 'sinon';\n\ndescribe('Link', () => {\n testForLitDevWarnings(\n async () =>\n await fixture<Link>(html`\n <sp-link href=\"test_url\">Default Link</sp-link>\n `)\n );\n it('loads', async () => {\n const el = await fixture<Link>(html`\n <sp-link href=\"test_url\">Default Link</sp-link>\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>(html`\n <sp-link href=\"test_url\" download=\"somefile.txt\">\n Default Link\n </sp-link>\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>(html`\n <sp-link href=\"test_url\" rel=\"external\">Default Link</sp-link>\n `);\n\n await elementUpdated(el);\n expect(el).to.not.be.undefined;\n expect(el.focusElement.getAttribute('rel')).to.eq('external');\n\n await expect(el).to.be.accessible();\n });\n\n it('no click triggers for disabled link', async () => {\n const clickSpy = spy();\n const el = await fixture<Link>(html`\n <sp-link href=\"#\" disabled @click=${() => clickSpy()}>\n Disabled Link\n </sp-link>\n `);\n\n await elementUpdated(el);\n expect(el).to.not.be.undefined;\n expect(el.disabled).to.eq(true);\n await expect(el).to.be.accessible();\n el.click();\n expect(clickSpy.callCount).to.equal(0);\n });\n});\n"],
5
- "mappings": ";AAYA,OAAO;AAEP,SAAS,gBAAgB,QAAQ,SAAS,YAAY;AACtD,SAAS,6BAA6B;AACtC,SAAS,WAAW;AAEpB,SAAS,QAAQ,MAAM;AACnB;AAAA,IACI,YACI,MAAM,QAAc;AAAA;AAAA,aAEnB;AAAA,EACT;AACA,KAAG,SAAS,YAAY;AACpB,UAAM,KAAK,MAAM,QAAc;AAAA;AAAA,SAE9B;AAED,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,QAAc;AAAA;AAAA;AAAA;AAAA,SAI9B;AAED,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,QAAc;AAAA;AAAA,SAE9B;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,EAAE,EAAE,GAAG,IAAI,GAAG;AACrB,WAAO,GAAG,aAAa,aAAa,KAAK,CAAC,EAAE,GAAG,GAAG,UAAU;AAE5D,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AAED,KAAG,uCAAuC,YAAY;AAClD,UAAM,WAAW,IAAI;AACrB,UAAM,KAAK,MAAM,QAAc;AAAA,gDACS,MAAM,SAAS,CAAC;AAAA;AAAA;AAAA,SAGvD;AAED,UAAM,eAAe,EAAE;AACvB,WAAO,EAAE,EAAE,GAAG,IAAI,GAAG;AACrB,WAAO,GAAG,QAAQ,EAAE,GAAG,GAAG,IAAI;AAC9B,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAClC,OAAG,MAAM;AACT,WAAO,SAAS,SAAS,EAAE,GAAG,MAAM,CAAC;AAAA,EACzC,CAAC;AACL,CAAC;",
6
- "names": []
7
- }