@spectrum-web-components/shared 0.42.2 → 0.42.3
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/shared",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -100,8 +100,8 @@
|
|
|
100
100
|
"lit-html"
|
|
101
101
|
],
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@lit-labs/observers": "^2.0.
|
|
104
|
-
"@spectrum-web-components/base": "^0.42.
|
|
103
|
+
"@lit-labs/observers": "^2.0.2",
|
|
104
|
+
"@spectrum-web-components/base": "^0.42.3",
|
|
105
105
|
"focus-visible": "^5.1.0"
|
|
106
106
|
},
|
|
107
107
|
"types": "./src/index.d.ts",
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
"sideEffects": [
|
|
110
110
|
"./**/*.dev.js"
|
|
111
111
|
],
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "a03edce4f21f232f1705d8eb222e6e5436cad4c3"
|
|
113
113
|
}
|
package/src/focus-visible.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ declare global {
|
|
|
3
3
|
applyFocusVisiblePolyfill?: (scope: Document | ShadowRoot) => void;
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
type Constructor<T = Record<string, unknown>> = {
|
|
7
7
|
new (...args: any[]): T;
|
|
8
8
|
prototype: T;
|
|
9
9
|
};
|
|
@@ -12,7 +12,7 @@ interface OptionalLifecycleCallbacks {
|
|
|
12
12
|
disconnectedCallback?(): void;
|
|
13
13
|
manageAutoFocus?(): void;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
type MixableBaseClass = HTMLElement & OptionalLifecycleCallbacks;
|
|
16
16
|
/**
|
|
17
17
|
* This mixin function is designed to be applied to a class that inherits
|
|
18
18
|
* from HTMLElement. It makes it easy for a custom element to coordinate with
|
package/src/focusable.d.ts
CHANGED
package/src/like-anchor.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ReactiveElement, TemplateResult } from '@spectrum-web-components/base';
|
|
2
|
-
|
|
2
|
+
type Constructor<T = Record<string, unknown>> = {
|
|
3
3
|
new (...args: any[]): T;
|
|
4
4
|
prototype: T;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type RenderAnchorOptions = {
|
|
7
7
|
id: string;
|
|
8
8
|
className?: string;
|
|
9
9
|
ariaHidden?: boolean;
|
package/src/like-anchor.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
id=${
|
|
3
|
-
class=${e(
|
|
1
|
+
"use strict";var u=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var n=(s,r,p,i)=>{for(var t=i>1?void 0:i?f(r,p):r,a=s.length-1,l;a>=0;a--)(l=s[a])&&(t=(i?l(r,p,t):l(t))||t);return i&&t&&u(r,p,t),t};import{html as c}from"@spectrum-web-components/base";import{property as o}from"@spectrum-web-components/base/src/decorators.js";import{ifDefined as e}from"@spectrum-web-components/base/src/directives.js";export function LikeAnchor(s){class r extends s{renderAnchor({id:i,className:t,ariaHidden:a,labelledby:l,tabindex:d,anchorContent:g=c`<slot></slot>`}){return c`<a
|
|
2
|
+
id=${i}
|
|
3
|
+
class=${e(t)}
|
|
4
4
|
href=${e(this.href)}
|
|
5
5
|
download=${e(this.download)}
|
|
6
6
|
target=${e(this.target)}
|
|
7
7
|
aria-label=${e(this.label)}
|
|
8
|
-
aria-labelledby=${e(
|
|
9
|
-
aria-hidden=${e(
|
|
10
|
-
tabindex=${e(
|
|
8
|
+
aria-labelledby=${e(l)}
|
|
9
|
+
aria-hidden=${e(a?"true":void 0)}
|
|
10
|
+
tabindex=${e(d)}
|
|
11
11
|
referrerpolicy=${e(this.referrerpolicy)}
|
|
12
12
|
rel=${e(this.rel)}
|
|
13
|
-
>${
|
|
13
|
+
>${g}</a>`}}return n([o()],r.prototype,"download",2),n([o()],r.prototype,"label",2),n([o()],r.prototype,"href",2),n([o()],r.prototype,"target",2),n([o()],r.prototype,"referrerpolicy",2),n([o()],r.prototype,"rel",2),r}
|
|
14
14
|
//# sourceMappingURL=like-anchor.js.map
|