@spectrum-web-components/avatar 0.10.6-react.50 → 0.10.6-react.75
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 +18 -15
- package/package.json +5 -4
- package/src/Avatar.d.ts +10 -3
- package/src/Avatar.dev.js +22 -8
- package/src/Avatar.dev.js.map +2 -2
- package/src/Avatar.js +3 -3
- package/src/Avatar.js.map +3 -3
- package/src/avatar.css.dev.js +117 -79
- package/src/avatar.css.dev.js.map +2 -2
- package/src/avatar.css.js +117 -79
- package/src/avatar.css.js.map +2 -2
- package/src/spectrum-avatar.css.dev.js +117 -79
- package/src/spectrum-avatar.css.dev.js.map +2 -2
- package/src/spectrum-avatar.css.js +117 -79
- package/src/spectrum-avatar.css.js.map +2 -2
- package/src/spectrum-config.js +4 -0
- package/stories/avatar.stories.js +21 -0
- package/stories/avatar.stories.js.map +3 -3
package/custom-elements.json
CHANGED
|
@@ -28,13 +28,18 @@
|
|
|
28
28
|
"members": [
|
|
29
29
|
{
|
|
30
30
|
"kind": "field",
|
|
31
|
-
"name": "
|
|
31
|
+
"name": "anchorElement",
|
|
32
32
|
"type": {
|
|
33
|
-
"text": "
|
|
33
|
+
"text": "HTMLAnchorElement"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"kind": "field",
|
|
38
|
+
"name": "focusElement",
|
|
39
|
+
"type": {
|
|
40
|
+
"text": "HTMLElement"
|
|
34
41
|
},
|
|
35
|
-
"privacy": "public"
|
|
36
|
-
"default": "''",
|
|
37
|
-
"attribute": "label"
|
|
42
|
+
"privacy": "public"
|
|
38
43
|
},
|
|
39
44
|
{
|
|
40
45
|
"kind": "field",
|
|
@@ -64,14 +69,6 @@
|
|
|
64
69
|
}
|
|
65
70
|
],
|
|
66
71
|
"attributes": [
|
|
67
|
-
{
|
|
68
|
-
"name": "label",
|
|
69
|
-
"type": {
|
|
70
|
-
"text": "string"
|
|
71
|
-
},
|
|
72
|
-
"default": "''",
|
|
73
|
-
"fieldName": "label"
|
|
74
|
-
},
|
|
75
72
|
{
|
|
76
73
|
"name": "src",
|
|
77
74
|
"type": {
|
|
@@ -88,9 +85,15 @@
|
|
|
88
85
|
"fieldName": "size"
|
|
89
86
|
}
|
|
90
87
|
],
|
|
88
|
+
"mixins": [
|
|
89
|
+
{
|
|
90
|
+
"name": "LikeAnchor",
|
|
91
|
+
"package": "@spectrum-web-components/shared/src/like-anchor.js"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
91
94
|
"superclass": {
|
|
92
|
-
"name": "
|
|
93
|
-
"package": "@spectrum-web-components/
|
|
95
|
+
"name": "Focusable",
|
|
96
|
+
"package": "@spectrum-web-components/shared/src/focusable.js"
|
|
94
97
|
},
|
|
95
98
|
"tagName": "sp-avatar",
|
|
96
99
|
"customElement": true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectrum-web-components/avatar",
|
|
3
|
-
"version": "0.10.6-react.
|
|
3
|
+
"version": "0.10.6-react.75+9897d0a1c",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -57,10 +57,11 @@
|
|
|
57
57
|
"lit-html"
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@spectrum-web-components/base": "^0.7.5-react.
|
|
60
|
+
"@spectrum-web-components/base": "^0.7.5-react.75+9897d0a1c",
|
|
61
|
+
"@spectrum-web-components/shared": "^0.15.6-react.75+9897d0a1c"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
|
63
|
-
"@spectrum-css/avatar": "^
|
|
64
|
+
"@spectrum-css/avatar": "^6.0.0"
|
|
64
65
|
},
|
|
65
66
|
"types": "./src/index.d.ts",
|
|
66
67
|
"customElements": "custom-elements.json",
|
|
@@ -68,5 +69,5 @@
|
|
|
68
69
|
"./sp-*.js",
|
|
69
70
|
"./**/*.dev.js"
|
|
70
71
|
],
|
|
71
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "9897d0a1c48b8cee4e5a19c58acfdec2c1dc0623"
|
|
72
73
|
}
|
package/src/Avatar.d.ts
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import { CSSResultArray, PropertyValues,
|
|
1
|
+
import { CSSResultArray, PropertyValues, TemplateResult } from '@spectrum-web-components/base';
|
|
2
|
+
import { Focusable } from '@spectrum-web-components/shared/src/focusable.js';
|
|
2
3
|
export declare type AvatarSize = 50 | 75 | 100 | 200 | 300 | 400 | 500 | 600 | 700;
|
|
4
|
+
declare const Avatar_base: typeof Focusable & {
|
|
5
|
+
new (...args: any[]): import("@spectrum-web-components/shared/src/like-anchor.js").LikeAnchorInterface;
|
|
6
|
+
prototype: import("@spectrum-web-components/shared/src/like-anchor.js").LikeAnchorInterface;
|
|
7
|
+
};
|
|
3
8
|
/**
|
|
4
9
|
* @element sp-avatar
|
|
5
10
|
*/
|
|
6
|
-
export declare class Avatar extends
|
|
11
|
+
export declare class Avatar extends Avatar_base {
|
|
7
12
|
static get styles(): CSSResultArray;
|
|
8
|
-
|
|
13
|
+
anchorElement: HTMLAnchorElement;
|
|
14
|
+
get focusElement(): HTMLElement;
|
|
9
15
|
src: string;
|
|
10
16
|
get size(): AvatarSize;
|
|
11
17
|
set size(value: AvatarSize);
|
|
@@ -13,3 +19,4 @@ export declare class Avatar extends SpectrumElement {
|
|
|
13
19
|
protected render(): TemplateResult;
|
|
14
20
|
protected firstUpdated(changes: PropertyValues): void;
|
|
15
21
|
}
|
|
22
|
+
export {};
|
package/src/Avatar.dev.js
CHANGED
|
@@ -11,24 +11,30 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
11
11
|
return result;
|
|
12
12
|
};
|
|
13
13
|
import {
|
|
14
|
-
html
|
|
15
|
-
SpectrumElement
|
|
14
|
+
html
|
|
16
15
|
} from "@spectrum-web-components/base";
|
|
17
|
-
import {
|
|
16
|
+
import {
|
|
17
|
+
property,
|
|
18
|
+
query
|
|
19
|
+
} from "@spectrum-web-components/base/src/decorators.js";
|
|
18
20
|
import { ifDefined } from "@spectrum-web-components/base/src/directives.js";
|
|
21
|
+
import { LikeAnchor } from "@spectrum-web-components/shared/src/like-anchor.js";
|
|
22
|
+
import { Focusable } from "@spectrum-web-components/shared/src/focusable.js";
|
|
19
23
|
import avatarStyles from "./avatar.css.js";
|
|
20
24
|
const validSizes = [50, 75, 100, 200, 300, 400, 500, 600, 700];
|
|
21
25
|
const defaultSize = validSizes[2];
|
|
22
|
-
export class Avatar extends
|
|
26
|
+
export class Avatar extends LikeAnchor(Focusable) {
|
|
23
27
|
constructor() {
|
|
24
28
|
super(...arguments);
|
|
25
|
-
this.label = "";
|
|
26
29
|
this.src = "";
|
|
27
30
|
this._size = defaultSize;
|
|
28
31
|
}
|
|
29
32
|
static get styles() {
|
|
30
33
|
return [avatarStyles];
|
|
31
34
|
}
|
|
35
|
+
get focusElement() {
|
|
36
|
+
return this.anchorElement;
|
|
37
|
+
}
|
|
32
38
|
get size() {
|
|
33
39
|
return this._size;
|
|
34
40
|
}
|
|
@@ -46,13 +52,21 @@ export class Avatar extends SpectrumElement {
|
|
|
46
52
|
this.requestUpdate("size", oldSize);
|
|
47
53
|
}
|
|
48
54
|
render() {
|
|
49
|
-
|
|
55
|
+
const avatar = html`
|
|
50
56
|
<img
|
|
51
57
|
class="image"
|
|
52
58
|
alt=${ifDefined(this.label || void 0)}
|
|
53
59
|
src=${this.src}
|
|
54
60
|
/>
|
|
55
61
|
`;
|
|
62
|
+
if (this.href) {
|
|
63
|
+
return this.renderAnchor({
|
|
64
|
+
id: "link",
|
|
65
|
+
className: "link",
|
|
66
|
+
anchorContent: avatar
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return avatar;
|
|
56
70
|
}
|
|
57
71
|
firstUpdated(changes) {
|
|
58
72
|
super.firstUpdated(changes);
|
|
@@ -62,8 +76,8 @@ export class Avatar extends SpectrumElement {
|
|
|
62
76
|
}
|
|
63
77
|
}
|
|
64
78
|
__decorateClass([
|
|
65
|
-
|
|
66
|
-
], Avatar.prototype, "
|
|
79
|
+
query("#link")
|
|
80
|
+
], Avatar.prototype, "anchorElement", 2);
|
|
67
81
|
__decorateClass([
|
|
68
82
|
property()
|
|
69
83
|
], Avatar.prototype, "src", 2);
|
package/src/Avatar.dev.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["Avatar.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 {\n CSSResultArray,\n html,\n PropertyValues,\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;AAYA;AAAA,EAEI;AAAA,
|
|
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 {\n CSSResultArray,\n html,\n PropertyValues,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n property,\n query,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\nimport { LikeAnchor } from '@spectrum-web-components/shared/src/like-anchor.js';\nimport { Focusable } from '@spectrum-web-components/shared/src/focusable.js';\n\nimport avatarStyles from './avatar.css.js';\n\nexport type AvatarSize = 50 | 75 | 100 | 200 | 300 | 400 | 500 | 600 | 700;\nconst validSizes: AvatarSize[] = [50, 75, 100, 200, 300, 400, 500, 600, 700];\nconst defaultSize = validSizes[2];\n\n/**\n * @element sp-avatar\n */\nexport class Avatar extends LikeAnchor(Focusable) {\n public static override get styles(): CSSResultArray {\n return [avatarStyles];\n }\n\n @query('#link')\n anchorElement!: HTMLAnchorElement;\n\n public override get focusElement(): HTMLElement {\n return this.anchorElement;\n }\n\n @property()\n public src = '';\n\n @property({ type: Number, reflect: true })\n public get size(): AvatarSize {\n return this._size;\n }\n\n public set size(value: AvatarSize) {\n const size = value;\n const validSize = (\n validSizes.includes(size) ? size : defaultSize\n ) as AvatarSize;\n if (validSize) {\n this.setAttribute('size', `${validSize}`);\n }\n if (this._size === validSize) {\n return;\n }\n const oldSize = this._size;\n this._size = validSize;\n this.requestUpdate('size', oldSize);\n }\n\n private _size = defaultSize;\n\n protected override render(): TemplateResult {\n const avatar = html`\n <img\n class=\"image\"\n alt=${ifDefined(this.label || undefined)}\n src=${this.src}\n />\n `;\n if (this.href) {\n return this.renderAnchor({\n id: 'link',\n className: 'link',\n anchorContent: avatar,\n });\n }\n return avatar;\n }\n\n protected override firstUpdated(changes: PropertyValues): void {\n super.firstUpdated(changes);\n if (!this.hasAttribute('size')) {\n this.setAttribute('size', `${this.size}`);\n }\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;AAYA;AAAA,EAEI;AAAA,OAGG;AACP;AAAA,EACI;AAAA,EACA;AAAA,OACG;AACP,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,iBAAiB;AAE1B,OAAO,kBAAkB;AAGzB,MAAM,aAA2B,CAAC,IAAI,IAAI,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,GAAG;AAC3E,MAAM,cAAc,WAAW,CAAC;AAKzB,aAAM,eAAe,WAAW,SAAS,EAAE;AAAA,EAA3C;AAAA;AAaH,SAAO,MAAM;AAuBb,SAAQ,QAAQ;AAAA;AAAA,EAnChB,WAA2B,SAAyB;AAChD,WAAO,CAAC,YAAY;AAAA,EACxB;AAAA,EAKA,IAAoB,eAA4B;AAC5C,WAAO,KAAK;AAAA,EAChB;AAAA,EAMA,IAAW,OAAmB;AAC1B,WAAO,KAAK;AAAA,EAChB;AAAA,EAEA,IAAW,KAAK,OAAmB;AAC/B,UAAM,OAAO;AACb,UAAM,YACF,WAAW,SAAS,IAAI,IAAI,OAAO;AAEvC,QAAI,WAAW;AACX,WAAK,aAAa,QAAQ,GAAG,WAAW;AAAA,IAC5C;AACA,QAAI,KAAK,UAAU,WAAW;AAC1B;AAAA,IACJ;AACA,UAAM,UAAU,KAAK;AACrB,SAAK,QAAQ;AACb,SAAK,cAAc,QAAQ,OAAO;AAAA,EACtC;AAAA,EAImB,SAAyB;AACxC,UAAM,SAAS;AAAA;AAAA;AAAA,sBAGD,UAAU,KAAK,SAAS,MAAS;AAAA,sBACjC,KAAK;AAAA;AAAA;AAGnB,QAAI,KAAK,MAAM;AACX,aAAO,KAAK,aAAa;AAAA,QACrB,IAAI;AAAA,QACJ,WAAW;AAAA,QACX,eAAe;AAAA,MACnB,CAAC;AAAA,IACL;AACA,WAAO;AAAA,EACX;AAAA,EAEmB,aAAa,SAA+B;AAC3D,UAAM,aAAa,OAAO;AAC1B,QAAI,CAAC,KAAK,aAAa,MAAM,GAAG;AAC5B,WAAK,aAAa,QAAQ,GAAG,KAAK,MAAM;AAAA,IAC5C;AAAA,EACJ;AACJ;AAxDI;AAAA,EADC,MAAM,OAAO;AAAA,GALL,OAMT;AAOO;AAAA,EADN,SAAS;AAAA,GAZD,OAaF;AAGI;AAAA,EADV,SAAS,EAAE,MAAM,QAAQ,SAAS,KAAK,CAAC;AAAA,GAfhC,OAgBE;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/src/Avatar.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var p=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var o=(a,i,t,r)=>{for(var e=r>1?void 0:r?d(i,t):i,s=a.length-1,l;s>=0;s--)(l=a[s])&&(e=(r?l(i,t,e):l(e))||e);return r&&e&&p(i,t,e),e};import{html as m}from"@spectrum-web-components/base";import{property as n,query as h}from"@spectrum-web-components/base/src/decorators.js";import{ifDefined as z}from"@spectrum-web-components/base/src/directives.js";import{LikeAnchor as f}from"@spectrum-web-components/shared/src/like-anchor.js";import{Focusable as S}from"@spectrum-web-components/shared/src/focusable.js";import v from"./avatar.css.js";const c=[50,75,100,200,300,400,500,600,700],u=c[2];export class Avatar extends f(S){constructor(){super(...arguments);this.src="";this._size=u}static get styles(){return[v]}get focusElement(){return this.anchorElement}get size(){return this._size}set size(t){const r=t,e=c.includes(r)?r:u;if(e&&this.setAttribute("size",`${e}`),this._size===e)return;const s=this._size;this._size=e,this.requestUpdate("size",s)}render(){const t=m`
|
|
2
2
|
<img
|
|
3
3
|
class="image"
|
|
4
|
-
alt=${
|
|
4
|
+
alt=${z(this.label||void 0)}
|
|
5
5
|
src=${this.src}
|
|
6
6
|
/>
|
|
7
|
-
|
|
7
|
+
`;return this.href?this.renderAnchor({id:"link",className:"link",anchorContent:t}):t}firstUpdated(t){super.firstUpdated(t),this.hasAttribute("size")||this.setAttribute("size",`${this.size}`)}}o([h("#link")],Avatar.prototype,"anchorElement",2),o([n()],Avatar.prototype,"src",2),o([n({type:Number,reflect:!0})],Avatar.prototype,"size",1);
|
|
8
8
|
//# sourceMappingURL=Avatar.js.map
|
package/src/Avatar.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["Avatar.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 {\n CSSResultArray,\n html,\n PropertyValues,\n
|
|
5
|
-
"mappings": "qNAYA,OAEI,QAAAA,
|
|
6
|
-
"names": ["html", "
|
|
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 {\n CSSResultArray,\n html,\n PropertyValues,\n TemplateResult,\n} from '@spectrum-web-components/base';\nimport {\n property,\n query,\n} from '@spectrum-web-components/base/src/decorators.js';\nimport { ifDefined } from '@spectrum-web-components/base/src/directives.js';\nimport { LikeAnchor } from '@spectrum-web-components/shared/src/like-anchor.js';\nimport { Focusable } from '@spectrum-web-components/shared/src/focusable.js';\n\nimport avatarStyles from './avatar.css.js';\n\nexport type AvatarSize = 50 | 75 | 100 | 200 | 300 | 400 | 500 | 600 | 700;\nconst validSizes: AvatarSize[] = [50, 75, 100, 200, 300, 400, 500, 600, 700];\nconst defaultSize = validSizes[2];\n\n/**\n * @element sp-avatar\n */\nexport class Avatar extends LikeAnchor(Focusable) {\n public static override get styles(): CSSResultArray {\n return [avatarStyles];\n }\n\n @query('#link')\n anchorElement!: HTMLAnchorElement;\n\n public override get focusElement(): HTMLElement {\n return this.anchorElement;\n }\n\n @property()\n public src = '';\n\n @property({ type: Number, reflect: true })\n public get size(): AvatarSize {\n return this._size;\n }\n\n public set size(value: AvatarSize) {\n const size = value;\n const validSize = (\n validSizes.includes(size) ? size : defaultSize\n ) as AvatarSize;\n if (validSize) {\n this.setAttribute('size', `${validSize}`);\n }\n if (this._size === validSize) {\n return;\n }\n const oldSize = this._size;\n this._size = validSize;\n this.requestUpdate('size', oldSize);\n }\n\n private _size = defaultSize;\n\n protected override render(): TemplateResult {\n const avatar = html`\n <img\n class=\"image\"\n alt=${ifDefined(this.label || undefined)}\n src=${this.src}\n />\n `;\n if (this.href) {\n return this.renderAnchor({\n id: 'link',\n className: 'link',\n anchorContent: avatar,\n });\n }\n return avatar;\n }\n\n protected override firstUpdated(changes: PropertyValues): void {\n super.firstUpdated(changes);\n if (!this.hasAttribute('size')) {\n this.setAttribute('size', `${this.size}`);\n }\n }\n}\n"],
|
|
5
|
+
"mappings": "qNAYA,OAEI,QAAAA,MAGG,gCACP,OACI,YAAAC,EACA,SAAAC,MACG,kDACP,OAAS,aAAAC,MAAiB,kDAC1B,OAAS,cAAAC,MAAkB,qDAC3B,OAAS,aAAAC,MAAiB,mDAE1B,OAAOC,MAAkB,kBAGzB,MAAMC,EAA2B,CAAC,GAAI,GAAI,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,GAAG,EACrEC,EAAcD,EAAW,CAAC,EAKzB,aAAM,eAAeH,EAAWC,CAAS,CAAE,CAA3C,kCAaH,KAAO,IAAM,GAuBb,KAAQ,MAAQG,EAnChB,WAA2B,QAAyB,CAChD,MAAO,CAACF,CAAY,CACxB,CAKA,IAAoB,cAA4B,CAC5C,OAAO,KAAK,aAChB,CAMA,IAAW,MAAmB,CAC1B,OAAO,KAAK,KAChB,CAEA,IAAW,KAAKG,EAAmB,CAC/B,MAAMC,EAAOD,EACPE,EACFJ,EAAW,SAASG,CAAI,EAAIA,EAAOF,EAKvC,GAHIG,GACA,KAAK,aAAa,OAAQ,GAAGA,GAAW,EAExC,KAAK,QAAUA,EACf,OAEJ,MAAMC,EAAU,KAAK,MACrB,KAAK,MAAQD,EACb,KAAK,cAAc,OAAQC,CAAO,CACtC,CAImB,QAAyB,CACxC,MAAMC,EAASb;AAAA;AAAA;AAAA,sBAGDG,EAAU,KAAK,OAAS,MAAS;AAAA,sBACjC,KAAK;AAAA;AAAA,UAGnB,OAAI,KAAK,KACE,KAAK,aAAa,CACrB,GAAI,OACJ,UAAW,OACX,cAAeU,CACnB,CAAC,EAEEA,CACX,CAEmB,aAAaC,EAA+B,CAC3D,MAAM,aAAaA,CAAO,EACrB,KAAK,aAAa,MAAM,GACzB,KAAK,aAAa,OAAQ,GAAG,KAAK,MAAM,CAEhD,CACJ,CAxDIC,EAAA,CADCb,EAAM,OAAO,GALL,OAMT,6BAOOa,EAAA,CADNd,EAAS,GAZD,OAaF,mBAGIc,EAAA,CADVd,EAAS,CAAE,KAAM,OAAQ,QAAS,EAAK,CAAC,GAfhC,OAgBE",
|
|
6
|
+
"names": ["html", "property", "query", "ifDefined", "LikeAnchor", "Focusable", "avatarStyles", "validSizes", "defaultSize", "value", "size", "validSize", "oldSize", "avatar", "changes", "__decorateClass"]
|
|
7
7
|
}
|
package/src/avatar.css.dev.js
CHANGED
|
@@ -1,85 +1,123 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
import { css } from "@spectrum-web-components/base";
|
|
3
3
|
const styles = css`
|
|
4
|
-
:host(
|
|
5
|
-
--spectrum-
|
|
6
|
-
);--spectrum-avatar-
|
|
7
|
-
--spectrum-
|
|
8
|
-
);--spectrum-avatar-
|
|
9
|
-
--spectrum-avatar-
|
|
10
|
-
)
|
|
11
|
-
--spectrum-avatar-size-50
|
|
12
|
-
)}:host([size="75"]){--spectrum-avatar-
|
|
13
|
-
--spectrum-avatar-size-75
|
|
14
|
-
);--spectrum-avatar-
|
|
15
|
-
--spectrum-avatar-size-
|
|
16
|
-
);--spectrum-avatar-
|
|
17
|
-
--spectrum-avatar-size-
|
|
18
|
-
);--spectrum-avatar-
|
|
19
|
-
--spectrum-avatar-size-
|
|
20
|
-
)}:host([size="
|
|
21
|
-
--spectrum-avatar-size-
|
|
22
|
-
);--spectrum-avatar-
|
|
23
|
-
--spectrum-avatar-size-
|
|
24
|
-
);--spectrum-avatar-
|
|
25
|
-
--spectrum-avatar-size-
|
|
26
|
-
);--spectrum-avatar-
|
|
27
|
-
--spectrum-avatar-size-
|
|
28
|
-
)
|
|
29
|
-
--
|
|
30
|
-
)
|
|
31
|
-
--
|
|
32
|
-
)
|
|
33
|
-
--
|
|
34
|
-
)
|
|
35
|
-
--
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
)
|
|
39
|
-
--
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
--
|
|
44
|
-
)
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
--
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
)
|
|
53
|
-
--
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
)
|
|
59
|
-
--
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
)
|
|
65
|
-
--
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
--
|
|
70
|
-
)
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
--
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
)
|
|
79
|
-
--
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
4
|
+
:host{--spectrum-avatar-color-opacity:1;--spectrum-avatar-inline-size:var(--spectrum-avatar-size-100);--spectrum-avatar-block-size:var(--spectrum-avatar-size-100);--spectrum-avatar-border-radius:var(--spectrum-avatar-block-size);--spectrum-avatar-focus-indicator-thickness:var(
|
|
5
|
+
--spectrum-focus-indicator-thickness
|
|
6
|
+
);--spectrum-avatar-focus-indicator-gap:var(--spectrum-focus-indicator-gap);--spectrum-avatar-focus-indicator-color:var(
|
|
7
|
+
--spectrum-focus-indicator-color
|
|
8
|
+
);--spectrum-avatar-color-opacity-disabled:var(
|
|
9
|
+
--spectrum-avatar-opacity-disabled
|
|
10
|
+
)}:host([size="50"]){--spectrum-avatar-inline-size:var(
|
|
11
|
+
--spectrum-avatar-size-50
|
|
12
|
+
);--spectrum-avatar-block-size:var(--spectrum-avatar-size-50)}:host([size="75"]){--spectrum-avatar-inline-size:var(
|
|
13
|
+
--spectrum-avatar-size-75
|
|
14
|
+
);--spectrum-avatar-block-size:var(--spectrum-avatar-size-75)}:host([size="100"]){--spectrum-avatar-inline-size:var(
|
|
15
|
+
--spectrum-avatar-size-100
|
|
16
|
+
);--spectrum-avatar-block-size:var(--spectrum-avatar-size-100)}:host([size="200"]){--spectrum-avatar-inline-size:var(
|
|
17
|
+
--spectrum-avatar-size-200
|
|
18
|
+
);--spectrum-avatar-block-size:var(--spectrum-avatar-size-200)}:host([size="300"]){--spectrum-avatar-inline-size:var(
|
|
19
|
+
--spectrum-avatar-size-300
|
|
20
|
+
);--spectrum-avatar-block-size:var(--spectrum-avatar-size-300)}:host([size="400"]){--spectrum-avatar-inline-size:var(
|
|
21
|
+
--spectrum-avatar-size-400
|
|
22
|
+
);--spectrum-avatar-block-size:var(--spectrum-avatar-size-400)}:host([size="500"]){--spectrum-avatar-inline-size:var(
|
|
23
|
+
--spectrum-avatar-size-500
|
|
24
|
+
);--spectrum-avatar-block-size:var(--spectrum-avatar-size-500)}:host([size="600"]){--spectrum-avatar-inline-size:var(
|
|
25
|
+
--spectrum-avatar-size-600
|
|
26
|
+
);--spectrum-avatar-block-size:var(--spectrum-avatar-size-600)}:host([size="700"]){--spectrum-avatar-inline-size:var(
|
|
27
|
+
--spectrum-avatar-size-700
|
|
28
|
+
);--spectrum-avatar-block-size:var(--spectrum-avatar-size-700)}@media (forced-colors:active){:host{--highcontrast-avatar-color-opacity-disabled:1;--highcontrast-avatar-focus-indicator-color:CanvasText}}:host{-webkit-user-drag:none;block-size:var(--mod-avatar-block-size,var(--spectrum-avatar-block-size));border-radius:var(
|
|
29
|
+
--mod-avatar-border-radius,var(--spectrum-avatar-border-radius)
|
|
30
|
+
);border-width:0;display:inline-block;inline-size:var(
|
|
31
|
+
--mod-avatar-inline-size,var(--spectrum-avatar-inline-size)
|
|
32
|
+
);opacity:var(
|
|
33
|
+
--mod-avatar-color-opacity,var(--spectrum-avatar-color-opacity)
|
|
34
|
+
);outline:none;overflow:visible;position:relative;-webkit-user-select:none;user-select:none}:host([disabled]){opacity:var(
|
|
35
|
+
--highcontrast-avatar-color-opacity-disabled,var(
|
|
36
|
+
--mod-avatar-color-opacity-disabled,var(--spectrum-avatar-color-opacity-disabled)
|
|
37
|
+
)
|
|
38
|
+
)}:host(:not([disabled])) .link.focus-visible:after{block-size:calc(var(--mod-avatar-inline-size, var(--spectrum-avatar-inline-size)) + var(
|
|
39
|
+
--mod-avatar-focus-indicator-gap,
|
|
40
|
+
var(--spectrum-avatar-focus-indicator-gap)
|
|
41
|
+
)*2);border-color:var(
|
|
42
|
+
--highcontrast-avatar-focus-indicator-color,var(
|
|
43
|
+
--mod-avatar-focus-indicator-color,var(--spectrum-avatar-focus-indicator-color)
|
|
44
|
+
)
|
|
45
|
+
);border-radius:var(
|
|
46
|
+
--mod-avatar-border-radius,var(--spectrum-avatar-border-radius)
|
|
47
|
+
);border-style:solid;border-width:var(
|
|
48
|
+
--mod-avatar-focus-indicator-thickness,var(--spectrum-avatar-focus-indicator-thickness)
|
|
49
|
+
);content:"";inline-size:calc(var(--mod-avatar-inline-size, var(--spectrum-avatar-inline-size)) + var(
|
|
50
|
+
--mod-avatar-focus-indicator-gap,
|
|
51
|
+
var(--spectrum-avatar-focus-indicator-gap)
|
|
52
|
+
)*2);inset-block-start:calc((var(
|
|
53
|
+
--mod-avatar-focus-indicator-gap,
|
|
54
|
+
var(--spectrum-avatar-focus-indicator-gap)
|
|
55
|
+
) + var(
|
|
56
|
+
--mod-avatar-focus-indicator-thickness,
|
|
57
|
+
var(--spectrum-avatar-focus-indicator-thickness)
|
|
58
|
+
))*-1);inset-inline-start:calc((var(
|
|
59
|
+
--mod-avatar-focus-indicator-gap,
|
|
60
|
+
var(--spectrum-avatar-focus-indicator-gap)
|
|
61
|
+
) + var(
|
|
62
|
+
--mod-avatar-focus-indicator-thickness,
|
|
63
|
+
var(--spectrum-avatar-focus-indicator-thickness)
|
|
64
|
+
))*-1);pointer-events:none;position:absolute}:host(:not([disabled])) .link.focus-visible:after{block-size:calc(var(--mod-avatar-inline-size, var(--spectrum-avatar-inline-size)) + var(
|
|
65
|
+
--mod-avatar-focus-indicator-gap,
|
|
66
|
+
var(--spectrum-avatar-focus-indicator-gap)
|
|
67
|
+
)*2);border-color:var(
|
|
68
|
+
--highcontrast-avatar-focus-indicator-color,var(
|
|
69
|
+
--mod-avatar-focus-indicator-color,var(--spectrum-avatar-focus-indicator-color)
|
|
70
|
+
)
|
|
71
|
+
);border-radius:var(
|
|
72
|
+
--mod-avatar-border-radius,var(--spectrum-avatar-border-radius)
|
|
73
|
+
);border-style:solid;border-width:var(
|
|
74
|
+
--mod-avatar-focus-indicator-thickness,var(--spectrum-avatar-focus-indicator-thickness)
|
|
75
|
+
);content:"";inline-size:calc(var(--mod-avatar-inline-size, var(--spectrum-avatar-inline-size)) + var(
|
|
76
|
+
--mod-avatar-focus-indicator-gap,
|
|
77
|
+
var(--spectrum-avatar-focus-indicator-gap)
|
|
78
|
+
)*2);inset-block-start:calc((var(
|
|
79
|
+
--mod-avatar-focus-indicator-gap,
|
|
80
|
+
var(--spectrum-avatar-focus-indicator-gap)
|
|
81
|
+
) + var(
|
|
82
|
+
--mod-avatar-focus-indicator-thickness,
|
|
83
|
+
var(--spectrum-avatar-focus-indicator-thickness)
|
|
84
|
+
))*-1);inset-inline-start:calc((var(
|
|
85
|
+
--mod-avatar-focus-indicator-gap,
|
|
86
|
+
var(--spectrum-avatar-focus-indicator-gap)
|
|
87
|
+
) + var(
|
|
88
|
+
--mod-avatar-focus-indicator-thickness,
|
|
89
|
+
var(--spectrum-avatar-focus-indicator-thickness)
|
|
90
|
+
))*-1);pointer-events:none;position:absolute}:host(:not([disabled])) .link:focus-visible:after{block-size:calc(var(--mod-avatar-inline-size, var(--spectrum-avatar-inline-size)) + var(
|
|
91
|
+
--mod-avatar-focus-indicator-gap,
|
|
92
|
+
var(--spectrum-avatar-focus-indicator-gap)
|
|
93
|
+
)*2);border-color:var(
|
|
94
|
+
--highcontrast-avatar-focus-indicator-color,var(
|
|
95
|
+
--mod-avatar-focus-indicator-color,var(--spectrum-avatar-focus-indicator-color)
|
|
96
|
+
)
|
|
97
|
+
);border-radius:var(
|
|
98
|
+
--mod-avatar-border-radius,var(--spectrum-avatar-border-radius)
|
|
99
|
+
);border-style:solid;border-width:var(
|
|
100
|
+
--mod-avatar-focus-indicator-thickness,var(--spectrum-avatar-focus-indicator-thickness)
|
|
101
|
+
);content:"";inline-size:calc(var(--mod-avatar-inline-size, var(--spectrum-avatar-inline-size)) + var(
|
|
102
|
+
--mod-avatar-focus-indicator-gap,
|
|
103
|
+
var(--spectrum-avatar-focus-indicator-gap)
|
|
104
|
+
)*2);inset-block-start:calc((var(
|
|
105
|
+
--mod-avatar-focus-indicator-gap,
|
|
106
|
+
var(--spectrum-avatar-focus-indicator-gap)
|
|
107
|
+
) + var(
|
|
108
|
+
--mod-avatar-focus-indicator-thickness,
|
|
109
|
+
var(--spectrum-avatar-focus-indicator-thickness)
|
|
110
|
+
))*-1);inset-inline-start:calc((var(
|
|
111
|
+
--mod-avatar-focus-indicator-gap,
|
|
112
|
+
var(--spectrum-avatar-focus-indicator-gap)
|
|
113
|
+
) + var(
|
|
114
|
+
--mod-avatar-focus-indicator-thickness,
|
|
115
|
+
var(--spectrum-avatar-focus-indicator-thickness)
|
|
116
|
+
))*-1);pointer-events:none;position:absolute}.link{outline-color:transparent;outline-style:solid;outline:none}.image{block-size:var(--mod-avatar-block-size,var(--spectrum-avatar-block-size));border-radius:var(
|
|
117
|
+
--mod-avatar-border-radius,var(--spectrum-avatar-border-radius)
|
|
118
|
+
);inline-size:var(
|
|
119
|
+
--mod-avatar-inline-size,var(--spectrum-avatar-inline-size)
|
|
120
|
+
)}img{vertical-align:top}
|
|
83
121
|
`;
|
|
84
122
|
export default styles;
|
|
85
123
|
//# sourceMappingURL=avatar.css.dev.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["avatar.css.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\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\nimport { css } from '@spectrum-web-components/base';\nconst styles = css`\n:host
|
|
5
|
-
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
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\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-avatar-color-opacity:1;--spectrum-avatar-inline-size:var(--spectrum-avatar-size-100);--spectrum-avatar-block-size:var(--spectrum-avatar-size-100);--spectrum-avatar-border-radius:var(--spectrum-avatar-block-size);--spectrum-avatar-focus-indicator-thickness:var(\n--spectrum-focus-indicator-thickness\n);--spectrum-avatar-focus-indicator-gap:var(--spectrum-focus-indicator-gap);--spectrum-avatar-focus-indicator-color:var(\n--spectrum-focus-indicator-color\n);--spectrum-avatar-color-opacity-disabled:var(\n--spectrum-avatar-opacity-disabled\n)}:host([size=\"50\"]){--spectrum-avatar-inline-size:var(\n--spectrum-avatar-size-50\n);--spectrum-avatar-block-size:var(--spectrum-avatar-size-50)}:host([size=\"75\"]){--spectrum-avatar-inline-size:var(\n--spectrum-avatar-size-75\n);--spectrum-avatar-block-size:var(--spectrum-avatar-size-75)}:host([size=\"100\"]){--spectrum-avatar-inline-size:var(\n--spectrum-avatar-size-100\n);--spectrum-avatar-block-size:var(--spectrum-avatar-size-100)}:host([size=\"200\"]){--spectrum-avatar-inline-size:var(\n--spectrum-avatar-size-200\n);--spectrum-avatar-block-size:var(--spectrum-avatar-size-200)}:host([size=\"300\"]){--spectrum-avatar-inline-size:var(\n--spectrum-avatar-size-300\n);--spectrum-avatar-block-size:var(--spectrum-avatar-size-300)}:host([size=\"400\"]){--spectrum-avatar-inline-size:var(\n--spectrum-avatar-size-400\n);--spectrum-avatar-block-size:var(--spectrum-avatar-size-400)}:host([size=\"500\"]){--spectrum-avatar-inline-size:var(\n--spectrum-avatar-size-500\n);--spectrum-avatar-block-size:var(--spectrum-avatar-size-500)}:host([size=\"600\"]){--spectrum-avatar-inline-size:var(\n--spectrum-avatar-size-600\n);--spectrum-avatar-block-size:var(--spectrum-avatar-size-600)}:host([size=\"700\"]){--spectrum-avatar-inline-size:var(\n--spectrum-avatar-size-700\n);--spectrum-avatar-block-size:var(--spectrum-avatar-size-700)}@media (forced-colors:active){:host{--highcontrast-avatar-color-opacity-disabled:1;--highcontrast-avatar-focus-indicator-color:CanvasText}}:host{-webkit-user-drag:none;block-size:var(--mod-avatar-block-size,var(--spectrum-avatar-block-size));border-radius:var(\n--mod-avatar-border-radius,var(--spectrum-avatar-border-radius)\n);border-width:0;display:inline-block;inline-size:var(\n--mod-avatar-inline-size,var(--spectrum-avatar-inline-size)\n);opacity:var(\n--mod-avatar-color-opacity,var(--spectrum-avatar-color-opacity)\n);outline:none;overflow:visible;position:relative;-webkit-user-select:none;user-select:none}:host([disabled]){opacity:var(\n--highcontrast-avatar-color-opacity-disabled,var(\n--mod-avatar-color-opacity-disabled,var(--spectrum-avatar-color-opacity-disabled)\n)\n)}:host(:not([disabled])) .link.focus-visible:after{block-size:calc(var(--mod-avatar-inline-size, var(--spectrum-avatar-inline-size)) + var(\n--mod-avatar-focus-indicator-gap,\nvar(--spectrum-avatar-focus-indicator-gap)\n)*2);border-color:var(\n--highcontrast-avatar-focus-indicator-color,var(\n--mod-avatar-focus-indicator-color,var(--spectrum-avatar-focus-indicator-color)\n)\n);border-radius:var(\n--mod-avatar-border-radius,var(--spectrum-avatar-border-radius)\n);border-style:solid;border-width:var(\n--mod-avatar-focus-indicator-thickness,var(--spectrum-avatar-focus-indicator-thickness)\n);content:\"\";inline-size:calc(var(--mod-avatar-inline-size, var(--spectrum-avatar-inline-size)) + var(\n--mod-avatar-focus-indicator-gap,\nvar(--spectrum-avatar-focus-indicator-gap)\n)*2);inset-block-start:calc((var(\n--mod-avatar-focus-indicator-gap,\nvar(--spectrum-avatar-focus-indicator-gap)\n) + var(\n--mod-avatar-focus-indicator-thickness,\nvar(--spectrum-avatar-focus-indicator-thickness)\n))*-1);inset-inline-start:calc((var(\n--mod-avatar-focus-indicator-gap,\nvar(--spectrum-avatar-focus-indicator-gap)\n) + var(\n--mod-avatar-focus-indicator-thickness,\nvar(--spectrum-avatar-focus-indicator-thickness)\n))*-1);pointer-events:none;position:absolute}:host(:not([disabled])) .link.focus-visible:after{block-size:calc(var(--mod-avatar-inline-size, var(--spectrum-avatar-inline-size)) + var(\n--mod-avatar-focus-indicator-gap,\nvar(--spectrum-avatar-focus-indicator-gap)\n)*2);border-color:var(\n--highcontrast-avatar-focus-indicator-color,var(\n--mod-avatar-focus-indicator-color,var(--spectrum-avatar-focus-indicator-color)\n)\n);border-radius:var(\n--mod-avatar-border-radius,var(--spectrum-avatar-border-radius)\n);border-style:solid;border-width:var(\n--mod-avatar-focus-indicator-thickness,var(--spectrum-avatar-focus-indicator-thickness)\n);content:\"\";inline-size:calc(var(--mod-avatar-inline-size, var(--spectrum-avatar-inline-size)) + var(\n--mod-avatar-focus-indicator-gap,\nvar(--spectrum-avatar-focus-indicator-gap)\n)*2);inset-block-start:calc((var(\n--mod-avatar-focus-indicator-gap,\nvar(--spectrum-avatar-focus-indicator-gap)\n) + var(\n--mod-avatar-focus-indicator-thickness,\nvar(--spectrum-avatar-focus-indicator-thickness)\n))*-1);inset-inline-start:calc((var(\n--mod-avatar-focus-indicator-gap,\nvar(--spectrum-avatar-focus-indicator-gap)\n) + var(\n--mod-avatar-focus-indicator-thickness,\nvar(--spectrum-avatar-focus-indicator-thickness)\n))*-1);pointer-events:none;position:absolute}:host(:not([disabled])) .link:focus-visible:after{block-size:calc(var(--mod-avatar-inline-size, var(--spectrum-avatar-inline-size)) + var(\n--mod-avatar-focus-indicator-gap,\nvar(--spectrum-avatar-focus-indicator-gap)\n)*2);border-color:var(\n--highcontrast-avatar-focus-indicator-color,var(\n--mod-avatar-focus-indicator-color,var(--spectrum-avatar-focus-indicator-color)\n)\n);border-radius:var(\n--mod-avatar-border-radius,var(--spectrum-avatar-border-radius)\n);border-style:solid;border-width:var(\n--mod-avatar-focus-indicator-thickness,var(--spectrum-avatar-focus-indicator-thickness)\n);content:\"\";inline-size:calc(var(--mod-avatar-inline-size, var(--spectrum-avatar-inline-size)) + var(\n--mod-avatar-focus-indicator-gap,\nvar(--spectrum-avatar-focus-indicator-gap)\n)*2);inset-block-start:calc((var(\n--mod-avatar-focus-indicator-gap,\nvar(--spectrum-avatar-focus-indicator-gap)\n) + var(\n--mod-avatar-focus-indicator-thickness,\nvar(--spectrum-avatar-focus-indicator-thickness)\n))*-1);inset-inline-start:calc((var(\n--mod-avatar-focus-indicator-gap,\nvar(--spectrum-avatar-focus-indicator-gap)\n) + var(\n--mod-avatar-focus-indicator-thickness,\nvar(--spectrum-avatar-focus-indicator-thickness)\n))*-1);pointer-events:none;position:absolute}.link{outline-color:transparent;outline-style:solid;outline:none}.image{block-size:var(--mod-avatar-block-size,var(--spectrum-avatar-block-size));border-radius:var(\n--mod-avatar-border-radius,var(--spectrum-avatar-border-radius)\n);inline-size:var(\n--mod-avatar-inline-size,var(--spectrum-avatar-inline-size)\n)}img{vertical-align:top}\n`;\nexport default styles;"],
|
|
5
|
+
"mappings": ";AAWA,SAAS,WAAW;AACpB,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuHf,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|