Socket
Socket
Sign inDemoInstall

@spectrum-web-components/avatar

Package Overview
Dependencies
Maintainers
6
Versions
192
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spectrum-web-components/avatar - npm Package Compare versions

Comparing version 0.7.7-alpha.59 to 0.7.7

test/avatar.test-vrt.js

146

custom-elements.json
{
"version": "experimental",
"tags": [
"schemaVersion": "1.0.0",
"readme": "",
"modules": [
{
"name": "sp-avatar",
"path": "./sp-avatar.d.ts",
"description": "Avatar component",
"attributes": [
"kind": "javascript-module",
"path": "src/Avatar.ts",
"declarations": [
{
"name": "label",
"type": "string",
"default": "\"\""
},
"kind": "class",
"description": "Avatar component",
"name": "Avatar",
"members": [
{
"kind": "field",
"name": "label",
"type": {
"text": "string"
},
"privacy": "public",
"default": "''",
"attribute": "label"
},
{
"kind": "field",
"name": "src",
"type": {
"text": "string"
},
"privacy": "public",
"default": "''",
"attribute": "src"
}
],
"attributes": [
{
"name": "label",
"type": {
"text": "string"
},
"default": "''",
"fieldName": "label"
},
{
"name": "src",
"type": {
"text": "string"
},
"default": "''",
"fieldName": "src"
}
],
"superclass": {
"name": "SpectrumElement",
"package": "@spectrum-web-components/base"
}
}
],
"exports": [
{
"name": "src",
"type": "string",
"default": "\"\""
"kind": "js",
"name": "Avatar",
"declaration": {
"name": "Avatar",
"module": "src/Avatar.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/avatar.css.ts",
"declarations": [
{
"kind": "variable",
"name": "styles",
"default": "css`\n:host{width:var(--spectrum-avatar-size-50-width,var(--spectrum-alias-avatar-size-50));height:var(--spectrum-avatar-size-50-height,var(--spectrum-alias-avatar-size-50));border-radius:var(--spectrum-avatar-size-50-border-radius,50%);border-style:none;-webkit-user-drag:none;-webkit-user-select:none;user-select:none;opacity:var(--spectrum-avatar-size-100-opacity,1)}:host([disabled]){opacity:var(--spectrum-avatar-size-100-opacity-disabled,.3)}:host{display:block;overflow:hidden}img{width:100%;height:auto;vertical-align:top}\n`"
}
],
"properties": [
"exports": [
{
"name": "label",
"attribute": "label",
"type": "string",
"default": "\"\""
},
"kind": "js",
"name": "default",
"declaration": {
"name": "styles",
"module": "src/avatar.css.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/index.ts",
"declarations": [],
"exports": [
{
"name": "src",
"attribute": "src",
"type": "string",
"default": "\"\""
"kind": "js",
"name": "*",
"declaration": {
"name": "*",
"package": "./Avatar.js"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/spectrum-avatar.css.ts",
"declarations": [
{
"kind": "variable",
"name": "styles",
"default": "css`\n:host{width:var(--spectrum-avatar-size-50-width,var(--spectrum-alias-avatar-size-50));height:var(--spectrum-avatar-size-50-height,var(--spectrum-alias-avatar-size-50));border-radius:var(--spectrum-avatar-size-50-border-radius,50%);border-style:none;-webkit-user-drag:none;-webkit-user-select:none;user-select:none;opacity:var(--spectrum-avatar-size-100-opacity,1)}:host([disabled]){opacity:var(--spectrum-avatar-size-100-opacity-disabled,.3)}\n`"
}
],
"exports": [
{
"kind": "js",
"name": "default",
"declaration": {
"name": "styles",
"module": "src/spectrum-avatar.css.ts"
}
}
]
},
{
"kind": "javascript-module",
"path": "test/avatar.test-vrt.ts",
"declarations": [],
"exports": []
}
]
}
}

8

package.json
{
"name": "@spectrum-web-components/avatar",
"version": "0.7.7-alpha.59+7b33b99a3",
"version": "0.7.7",
"publishConfig": {

@@ -47,3 +47,3 @@ "access": "public"

"dependencies": {
"@spectrum-web-components/base": "^0.4.5-alpha.59+7b33b99a3",
"@spectrum-web-components/base": "^0.4.5",
"tslib": "^2.0.0"

@@ -55,7 +55,7 @@ },

"types": "./src/index.d.ts",
"customElementsManifest": "custom-elements.json",
"customElements": "custom-elements.json",
"sideEffects": [
"./sp-*.js"
],
"gitHead": "7b33b99a3b1747fffb387f4e6696dcaa4a3618a4"
"gitHead": "fbd509e0f30f1da0dcb972fa9ac5492acc00d96e"
}

@@ -1,2 +0,2 @@

declare const styles: import("@spectrum-web-components/base").CSSResultGroup;
declare const styles: import("@spectrum-web-components/base").CSSResult;
export default styles;

@@ -1,2 +0,2 @@

declare const styles: import("@spectrum-web-components/base").CSSResultGroup;
declare const styles: import("@spectrum-web-components/base").CSSResult;
export default styles;

@@ -12,3 +12,3 @@ /*

*/
import { html } from '@spectrum-web-components/base';
import { html } from 'lit-html';
import '../sp-avatar.js';

@@ -15,0 +15,0 @@ import { avatar } from './images';

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc