@spectrum-web-components/link 0.12.4 → 0.12.7
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/custom-elements.json +0 -57
- package/package.json +5 -5
- package/src/Link.js.map +1 -1
package/custom-elements.json
CHANGED
|
@@ -97,63 +97,6 @@
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
]
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"kind": "javascript-module",
|
|
103
|
-
"path": "src/index.ts",
|
|
104
|
-
"declarations": [],
|
|
105
|
-
"exports": [
|
|
106
|
-
{
|
|
107
|
-
"kind": "js",
|
|
108
|
-
"name": "*",
|
|
109
|
-
"declaration": {
|
|
110
|
-
"name": "*",
|
|
111
|
-
"package": "./Link.js"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
]
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"kind": "javascript-module",
|
|
118
|
-
"path": "src/link.css.ts",
|
|
119
|
-
"declarations": [
|
|
120
|
-
{
|
|
121
|
-
"kind": "variable",
|
|
122
|
-
"name": "styles",
|
|
123
|
-
"default": "css`\n:host([size=s]){--spectrum-link-primary-text-size:var(\n--spectrum-link-s-primary-text-size,var(--spectrum-global-dimension-font-size-75)\n)}:host([size=m]){--spectrum-link-primary-text-size:var(\n--spectrum-link-m-primary-text-size,var(--spectrum-global-dimension-font-size-100)\n)}:host([size=l]){--spectrum-link-primary-text-size:var(\n--spectrum-link-l-primary-text-size,var(--spectrum-global-dimension-font-size-200)\n)}:host([size=xl]){--spectrum-link-primary-text-size:var(\n--spectrum-link-xl-primary-text-size,var(--spectrum-global-dimension-font-size-300)\n)}a{-webkit-text-decoration-skip:objects;background-color:transparent;cursor:pointer;font-size:var(--spectrum-link-primary-text-size);outline:none;transition:color var(--spectrum-global-animation-duration-100,.13s) ease-in-out}a,a.focus-visible,a.focus-visible{text-decoration:underline}a.focus-visible{-webkit-text-decoration-style:double;text-decoration-style:double}a:focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}a{color:var(\n--spectrum-link-m-primary-text-color,var(--spectrum-alias-link-primary-text-color-default)\n)}a:hover{color:var(\n--spectrum-link-m-primary-text-color-hover,var(--spectrum-alias-link-primary-text-color-hover)\n)}a:active{color:var(\n--spectrum-link-m-primary-text-color-down,var(--spectrum-alias-link-primary-text-color-down)\n)}a.focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)\n)}a:focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)\n)}:host([variant=secondary]) a{color:inherit}:host([variant=secondary]) a:hover{color:inherit}:host([variant=secondary]) a:active{color:inherit}:host([variant=secondary]) a:focus{color:inherit}:host([over-background]) a{color:var(\n--spectrum-link-m-primary-overbackground-text-color,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:hover{color:var(\n--spectrum-link-m-primary-overbackground-text-color-hover,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:active{color:var(\n--spectrum-link-m-primary-overbackground-text-color-down,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:focus{color:var(\n--spectrum-link-m-primary-overbackground-text-color-key-focus,var(--spectrum-alias-text-color-overbackground)\n)}@media (forced-colors:active){:host([variant=secondary]) a{color:linktext}:host([variant=secondary]) a:hover{color:linktext}:host([variant=secondary]) a:active{color:linktext}:host([variant=secondary]) a:focus{color:linktext}}:host{display:inline}:host(:focus){outline:none}:host([href]) a.focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}:host([href]) a:focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}\n`"
|
|
124
|
-
}
|
|
125
|
-
],
|
|
126
|
-
"exports": [
|
|
127
|
-
{
|
|
128
|
-
"kind": "js",
|
|
129
|
-
"name": "default",
|
|
130
|
-
"declaration": {
|
|
131
|
-
"name": "styles",
|
|
132
|
-
"module": "src/link.css.ts"
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
]
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"kind": "javascript-module",
|
|
139
|
-
"path": "src/spectrum-link.css.ts",
|
|
140
|
-
"declarations": [
|
|
141
|
-
{
|
|
142
|
-
"kind": "variable",
|
|
143
|
-
"name": "styles",
|
|
144
|
-
"default": "css`\n:host([size=s]){--spectrum-link-primary-text-size:var(\n--spectrum-link-s-primary-text-size,var(--spectrum-global-dimension-font-size-75)\n)}:host([size=m]){--spectrum-link-primary-text-size:var(\n--spectrum-link-m-primary-text-size,var(--spectrum-global-dimension-font-size-100)\n)}:host([size=l]){--spectrum-link-primary-text-size:var(\n--spectrum-link-l-primary-text-size,var(--spectrum-global-dimension-font-size-200)\n)}:host([size=xl]){--spectrum-link-primary-text-size:var(\n--spectrum-link-xl-primary-text-size,var(--spectrum-global-dimension-font-size-300)\n)}a{-webkit-text-decoration-skip:objects;background-color:transparent;cursor:pointer;font-size:var(--spectrum-link-primary-text-size);outline:none;transition:color var(--spectrum-global-animation-duration-100,.13s) ease-in-out}a,a.focus-visible,a.focus-visible{text-decoration:underline}a.focus-visible{-webkit-text-decoration-style:double;text-decoration-style:double}a:focus-visible{text-decoration:underline;-webkit-text-decoration-style:double;text-decoration-style:double}:host([quiet]) a{text-decoration:none}:host([quiet]) a:hover{text-decoration:underline}a{color:var(\n--spectrum-link-m-primary-text-color,var(--spectrum-alias-link-primary-text-color-default)\n)}a:hover{color:var(\n--spectrum-link-m-primary-text-color-hover,var(--spectrum-alias-link-primary-text-color-hover)\n)}a:active{color:var(\n--spectrum-link-m-primary-text-color-down,var(--spectrum-alias-link-primary-text-color-down)\n)}a.focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)\n)}a:focus-visible{color:var(\n--spectrum-link-m-primary-text-color-key-focus,var(--spectrum-alias-link-primary-text-color-key-focus)\n)}:host([variant=secondary]) a{color:inherit}:host([variant=secondary]) a:hover{color:inherit}:host([variant=secondary]) a:active{color:inherit}:host([variant=secondary]) a:focus{color:inherit}:host([over-background]) a{color:var(\n--spectrum-link-m-primary-overbackground-text-color,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:hover{color:var(\n--spectrum-link-m-primary-overbackground-text-color-hover,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:active{color:var(\n--spectrum-link-m-primary-overbackground-text-color-down,var(--spectrum-alias-text-color-overbackground)\n)}:host([over-background]) a:focus{color:var(\n--spectrum-link-m-primary-overbackground-text-color-key-focus,var(--spectrum-alias-text-color-overbackground)\n)}@media (forced-colors:active){:host([variant=secondary]) a{color:linktext}:host([variant=secondary]) a:hover{color:linktext}:host([variant=secondary]) a:active{color:linktext}:host([variant=secondary]) a:focus{color:linktext}}\n`"
|
|
145
|
-
}
|
|
146
|
-
],
|
|
147
|
-
"exports": [
|
|
148
|
-
{
|
|
149
|
-
"kind": "js",
|
|
150
|
-
"name": "default",
|
|
151
|
-
"declaration": {
|
|
152
|
-
"name": "styles",
|
|
153
|
-
"module": "src/spectrum-link.css.ts"
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
]
|
|
157
100
|
}
|
|
158
101
|
]
|
|
159
102
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/link",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.7",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -44,17 +44,17 @@
|
|
|
44
44
|
"lit-html"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@spectrum-web-components/base": "^0.5.
|
|
48
|
-
"@spectrum-web-components/shared": "^0.14.
|
|
47
|
+
"@spectrum-web-components/base": "^0.5.8",
|
|
48
|
+
"@spectrum-web-components/shared": "^0.14.4",
|
|
49
49
|
"tslib": "^2.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@spectrum-css/link": "^3.1.
|
|
52
|
+
"@spectrum-css/link": "^3.1.23"
|
|
53
53
|
},
|
|
54
54
|
"types": "./src/index.d.ts",
|
|
55
55
|
"customElements": "custom-elements.json",
|
|
56
56
|
"sideEffects": [
|
|
57
57
|
"./sp-*.js"
|
|
58
58
|
],
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "3be62133721efba844cd7032566a2c49ed6d9875"
|
|
60
60
|
}
|
package/src/Link.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.js","sourceRoot":"","sources":["Link.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;;AAEF,OAAO,EAEH,UAAU,GAEb,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACH,QAAQ,EACR,KAAK,GACR,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAC;AAE7E,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC;;;;;GAKG;AACH,MAAM,OAAO,IAAK,SAAQ,UAAU,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;IACxD,aAAa,EAAE,IAAI;CACtB,CAAC;IACS,MAAM,
|
|
1
|
+
{"version":3,"file":"Link.js","sourceRoot":"","sources":["Link.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;;AAEF,OAAO,EAEH,UAAU,GAEb,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACH,QAAQ,EACR,KAAK,GACR,MAAM,iDAAiD,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,oDAAoD,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,kDAAkD,CAAC;AAE7E,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC;;;;;GAKG;AACH,MAAM,OAAO,IAAK,SAAQ,UAAU,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;IACxD,aAAa,EAAE,IAAI;CACtB,CAAC;IACS,MAAM,KAAc,MAAM;QAC7B,OAAO,CAAC,UAAU,CAAC,CAAC;IACxB,CAAC;IAQD,IAAoB,YAAY;QAC5B,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IAEkB,MAAM;QACrB,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC/C,CAAC;CACJ;AAZG;IADC,KAAK,CAAC,SAAS,CAAC;2CACiB;AAGlC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qCACF","sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport {\n CSSResultArray,\n SizedMixin,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n property,\n query,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport { LikeAnchor } from '@spectrum-web-components/shared/src/like-anchor.js';\nimport { Focusable } from '@spectrum-web-components/shared/src/focusable.js';\n\nimport linkStyles from './link.css.js';\n\n/**\n * @element sp-link\n *\n * @attr quiet - uses quiet styles or not\n * @attr over-background - uses over background styles or not\n */\nexport class Link extends SizedMixin(LikeAnchor(Focusable), {\n noDefaultSize: true,\n}) {\n public static override get styles(): CSSResultArray {\n return [linkStyles];\n }\n\n @query('#anchor')\n anchorElement!: HTMLAnchorElement;\n\n @property({ type: String, reflect: true })\n public variant: 'secondary' | undefined;\n\n public override get focusElement(): HTMLElement {\n return this.anchorElement;\n }\n\n protected override render(): TemplateResult {\n return this.renderAnchor({ id: 'anchor' });\n }\n}\n"]}
|