Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@spectrum-web-components/thumbnail

Package Overview
Dependencies
Maintainers
7
Versions
231
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.4.1 to 0.4.2

23

custom-elements.json

@@ -44,2 +44,13 @@ {

"reflects": true
},
{
"kind": "field",
"name": "cover",
"type": {
"text": "boolean"
},
"privacy": "public",
"default": "false",
"attribute": "cover",
"reflects": true
}

@@ -54,2 +65,10 @@ ],

"fieldName": "background"
},
{
"name": "cover",
"type": {
"text": "boolean"
},
"default": "false",
"fieldName": "cover"
}

@@ -104,3 +123,3 @@ ],

"name": "styles",
"default": "css`\n:host{align-items:center;background-position:0 0,0 var(--spectrum-global-dimension-static-size-100,8px),var(--spectrum-global-dimension-static-size-100,8px) calc(-1*var(--spectrum-global-dimension-static-size-100, 8px)),calc(-1*var(--spectrum-global-dimension-static-size-100, 8px)) 0;background-size:var(--spectrum-global-dimension-static-size-200,16px) var(--spectrum-global-dimension-static-size-200,16px);border-radius:var(--spectrum-thumbnail-border-radius);display:flex;height:var(--spectrum-thumbnail-height);justify-content:center;margin:0;overflow:hidden;padding:0;position:relative;vertical-align:top;width:var(--spectrum-thumbnail-width)}:host:before{border-radius:var(--spectrum-thumbnail-border-radius);content:\"\";height:100%;position:absolute;width:100%;z-index:2}:host([size=xxs]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-xxs-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-xxs-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-xxs-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-xxs-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-xxs-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-xxs-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-xxs-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-xxs-width,var(--spectrum-global-dimension-size-225)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-xxs-height,var(--spectrum-global-dimension-size-225)\n)}:host([size=xs]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-xs-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-xs-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-xs-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-xs-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-xs-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-xs-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-xs-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-xs-width,var(--spectrum-global-dimension-size-300)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-xs-height,var(--spectrum-global-dimension-size-300)\n)}:host([size=s]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-s-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-s-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-s-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-s-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-s-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-s-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-s-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-s-width,var(--spectrum-global-dimension-size-400)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-s-height,var(--spectrum-global-dimension-size-400)\n)}:host([size=m]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-m-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-m-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-m-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-m-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-m-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-m-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-m-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-m-width,var(--spectrum-global-dimension-size-500)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-m-height,var(--spectrum-global-dimension-size-500)\n)}:host([size=l]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-l-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-l-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-l-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-l-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-l-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-l-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-l-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-l-width,var(--spectrum-global-dimension-size-700)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-l-height,var(--spectrum-global-dimension-size-700)\n)}::slotted(*){max-height:100%;max-width:100%;z-index:1}.background{background-position:50%;background-size:cover;bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%;z-index:0}:host{background-color:var(\n--spectrum-global-color-static-white,#fff\n);background-image:linear-gradient(-45deg,transparent 75.5%,var(--spectrum-thumbnail-darksquare-background-color) 75.5%),linear-gradient(45deg,transparent 75.5%,var(--spectrum-thumbnail-darksquare-background-color) 75.5%),linear-gradient(-45deg,var(--spectrum-thumbnail-darksquare-background-color) 25.5%,transparent 25.5%),linear-gradient(45deg,var(--spectrum-thumbnail-darksquare-background-color) 25.5%,transparent 25.5%)}:host:before{box-shadow:inset 0 0 0 var(--spectrum-thumbnail-border-size) var(--spectrum-thumbnail-border-color)}:host([selected]){box-shadow:0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host([selected]):before{box-shadow:inset 0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host(.focus-visible),:host([focused]){box-shadow:0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected);outline:none;overflow:visible}:host(:focus-visible),:host([focused]){box-shadow:0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected);outline:none;overflow:visible}:host(.focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host(:focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host(.focus-visible):after,:host([focused]):after{border-radius:calc(var(--spectrum-thumbnail-border-radius) + var(\n--spectrum-alias-focus-ring-gap,\nvar(--spectrum-global-dimension-static-size-25)\n));bottom:0;box-shadow:0 0 0 var(--spectrum-thumbnail-border-size-selected-key-focus) var(--spectrum-thumbnail-border-color-key-focus);content:\"\";display:block;left:0;margin:calc(var(\n--spectrum-alias-focus-ring-gap,\nvar(--spectrum-global-dimension-static-size-25)\n)*-1);position:absolute;right:0;top:0}:host(:focus-visible):after,:host([focused]):after{border-radius:calc(var(--spectrum-thumbnail-border-radius) + var(\n--spectrum-alias-focus-ring-gap,\nvar(--spectrum-global-dimension-static-size-25)\n));bottom:0;box-shadow:0 0 0 var(--spectrum-thumbnail-border-size-selected-key-focus) var(--spectrum-thumbnail-border-color-key-focus);content:\"\";display:block;left:0;margin:calc(var(\n--spectrum-alias-focus-ring-gap,\nvar(--spectrum-global-dimension-static-size-25)\n)*-1);position:absolute;right:0;top:0}\n`"
"default": "css`\n:host{align-items:center;background-position:0 0,0 var(--spectrum-global-dimension-static-size-100,8px),var(--spectrum-global-dimension-static-size-100,8px) calc(-1*var(--spectrum-global-dimension-static-size-100, 8px)),calc(-1*var(--spectrum-global-dimension-static-size-100, 8px)) 0;background-size:var(--spectrum-global-dimension-static-size-200,16px) var(--spectrum-global-dimension-static-size-200,16px);border-radius:var(--spectrum-thumbnail-border-radius);display:flex;height:var(--spectrum-thumbnail-height);justify-content:center;margin:0;overflow:hidden;padding:0;position:relative;vertical-align:top;width:var(--spectrum-thumbnail-width)}:host:before{border-radius:var(--spectrum-thumbnail-border-radius);content:\"\";height:100%;position:absolute;width:100%;z-index:2}:host([size=xxs]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-xxs-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-xxs-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-xxs-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-xxs-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-xxs-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-xxs-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-xxs-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-xxs-width,var(--spectrum-global-dimension-size-225)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-xxs-height,var(--spectrum-global-dimension-size-225)\n)}:host([size=xs]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-xs-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-xs-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-xs-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-xs-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-xs-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-xs-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-xs-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-xs-width,var(--spectrum-global-dimension-size-300)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-xs-height,var(--spectrum-global-dimension-size-300)\n)}:host([size=s]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-s-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-s-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-s-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-s-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-s-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-s-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-s-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-s-width,var(--spectrum-global-dimension-size-400)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-s-height,var(--spectrum-global-dimension-size-400)\n)}:host([size=m]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-m-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-m-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-m-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-m-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-m-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-m-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-m-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-m-width,var(--spectrum-global-dimension-size-500)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-m-height,var(--spectrum-global-dimension-size-500)\n)}:host([size=l]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-l-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-l-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-l-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-l-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-l-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-l-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-l-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-l-width,var(--spectrum-global-dimension-size-700)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-l-height,var(--spectrum-global-dimension-size-700)\n)}::slotted(*){max-height:100%;max-width:100%;z-index:1}:host([cover]) ::slotted(*){height:100%;object-fit:cover;object-position:center;width:100%}.background{background-position:50%;background-size:cover;bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%;z-index:0}:host{background-color:var(\n--spectrum-global-color-static-white,#fff\n);background-image:linear-gradient(-45deg,transparent 75.5%,var(--spectrum-thumbnail-darksquare-background-color) 75.5%),linear-gradient(45deg,transparent 75.5%,var(--spectrum-thumbnail-darksquare-background-color) 75.5%),linear-gradient(-45deg,var(--spectrum-thumbnail-darksquare-background-color) 25.5%,transparent 25.5%),linear-gradient(45deg,var(--spectrum-thumbnail-darksquare-background-color) 25.5%,transparent 25.5%)}:host:before{box-shadow:inset 0 0 0 var(--spectrum-thumbnail-border-size) var(--spectrum-thumbnail-border-color)}:host([selected]){box-shadow:0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host([selected]):before{box-shadow:inset 0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host(.focus-visible),:host([focused]){box-shadow:0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected);outline:none;overflow:visible}:host(:focus-visible),:host([focused]){box-shadow:0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected);outline:none;overflow:visible}:host(.focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host(:focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host(.focus-visible):after,:host([focused]):after{border-radius:calc(var(--spectrum-thumbnail-border-radius) + var(\n--spectrum-alias-focus-ring-gap,\nvar(--spectrum-global-dimension-static-size-25)\n));bottom:0;box-shadow:0 0 0 var(--spectrum-thumbnail-border-size-selected-key-focus) var(--spectrum-thumbnail-border-color-key-focus);content:\"\";display:block;left:0;margin:calc(var(\n--spectrum-alias-focus-ring-gap,\nvar(--spectrum-global-dimension-static-size-25)\n)*-1);position:absolute;right:0;top:0}:host(:focus-visible):after,:host([focused]):after{border-radius:calc(var(--spectrum-thumbnail-border-radius) + var(\n--spectrum-alias-focus-ring-gap,\nvar(--spectrum-global-dimension-static-size-25)\n));bottom:0;box-shadow:0 0 0 var(--spectrum-thumbnail-border-size-selected-key-focus) var(--spectrum-thumbnail-border-color-key-focus);content:\"\";display:block;left:0;margin:calc(var(\n--spectrum-alias-focus-ring-gap,\nvar(--spectrum-global-dimension-static-size-25)\n)*-1);position:absolute;right:0;top:0}\n`"
}

@@ -126,3 +145,3 @@ ],

"name": "styles",
"default": "css`\n:host{align-items:center;background-position:0 0,0 var(--spectrum-global-dimension-static-size-100,8px),var(--spectrum-global-dimension-static-size-100,8px) calc(-1*var(--spectrum-global-dimension-static-size-100, 8px)),calc(-1*var(--spectrum-global-dimension-static-size-100, 8px)) 0;background-size:var(--spectrum-global-dimension-static-size-200,16px) var(--spectrum-global-dimension-static-size-200,16px);border-radius:var(--spectrum-thumbnail-border-radius);display:flex;height:var(--spectrum-thumbnail-height);justify-content:center;margin:0;overflow:hidden;padding:0;position:relative;vertical-align:top;width:var(--spectrum-thumbnail-width)}:host:before{border-radius:var(--spectrum-thumbnail-border-radius);content:\"\";height:100%;position:absolute;width:100%;z-index:2}:host([size=xxs]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-xxs-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-xxs-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-xxs-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-xxs-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-xxs-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-xxs-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-xxs-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-xxs-width,var(--spectrum-global-dimension-size-225)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-xxs-height,var(--spectrum-global-dimension-size-225)\n)}:host([size=xs]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-xs-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-xs-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-xs-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-xs-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-xs-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-xs-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-xs-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-xs-width,var(--spectrum-global-dimension-size-300)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-xs-height,var(--spectrum-global-dimension-size-300)\n)}:host([size=s]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-s-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-s-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-s-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-s-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-s-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-s-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-s-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-s-width,var(--spectrum-global-dimension-size-400)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-s-height,var(--spectrum-global-dimension-size-400)\n)}:host([size=m]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-m-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-m-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-m-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-m-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-m-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-m-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-m-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-m-width,var(--spectrum-global-dimension-size-500)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-m-height,var(--spectrum-global-dimension-size-500)\n)}:host([size=l]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-l-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-l-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-l-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-l-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-l-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-l-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-l-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-l-width,var(--spectrum-global-dimension-size-700)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-l-height,var(--spectrum-global-dimension-size-700)\n)}::slotted(*){max-height:100%;max-width:100%;z-index:1}.background{background-position:50%;background-size:cover;bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%;z-index:0}:host{background-color:var(\n--spectrum-global-color-static-white,#fff\n);background-image:linear-gradient(-45deg,transparent 75.5%,var(--spectrum-thumbnail-darksquare-background-color) 75.5%),linear-gradient(45deg,transparent 75.5%,var(--spectrum-thumbnail-darksquare-background-color) 75.5%),linear-gradient(-45deg,var(--spectrum-thumbnail-darksquare-background-color) 25.5%,transparent 25.5%),linear-gradient(45deg,var(--spectrum-thumbnail-darksquare-background-color) 25.5%,transparent 25.5%)}:host:before{box-shadow:inset 0 0 0 var(--spectrum-thumbnail-border-size) var(--spectrum-thumbnail-border-color)}:host([selected]){box-shadow:0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host([selected]):before{box-shadow:inset 0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host(.focus-visible),:host([focused]){box-shadow:0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected);outline:none;overflow:visible}:host(:focus-visible),:host([focused]){box-shadow:0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected);outline:none;overflow:visible}:host(.focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host(:focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host(.focus-visible):after,:host([focused]):after{border-radius:calc(var(--spectrum-thumbnail-border-radius) + var(\n--spectrum-alias-focus-ring-gap,\nvar(--spectrum-global-dimension-static-size-25)\n));bottom:0;box-shadow:0 0 0 var(--spectrum-thumbnail-border-size-selected-key-focus) var(--spectrum-thumbnail-border-color-key-focus);content:\"\";display:block;left:0;margin:calc(var(\n--spectrum-alias-focus-ring-gap,\nvar(--spectrum-global-dimension-static-size-25)\n)*-1);position:absolute;right:0;top:0}:host(:focus-visible):after,:host([focused]):after{border-radius:calc(var(--spectrum-thumbnail-border-radius) + var(\n--spectrum-alias-focus-ring-gap,\nvar(--spectrum-global-dimension-static-size-25)\n));bottom:0;box-shadow:0 0 0 var(--spectrum-thumbnail-border-size-selected-key-focus) var(--spectrum-thumbnail-border-color-key-focus);content:\"\";display:block;left:0;margin:calc(var(\n--spectrum-alias-focus-ring-gap,\nvar(--spectrum-global-dimension-static-size-25)\n)*-1);position:absolute;right:0;top:0}::slotted(:not(img)){display:none}:host([cover]) ::slotted(img){height:100%;object-fit:cover;width:100%}\n`"
"default": "css`\n:host{align-items:center;background-position:0 0,0 var(--spectrum-global-dimension-static-size-100,8px),var(--spectrum-global-dimension-static-size-100,8px) calc(-1*var(--spectrum-global-dimension-static-size-100, 8px)),calc(-1*var(--spectrum-global-dimension-static-size-100, 8px)) 0;background-size:var(--spectrum-global-dimension-static-size-200,16px) var(--spectrum-global-dimension-static-size-200,16px);border-radius:var(--spectrum-thumbnail-border-radius);display:flex;height:var(--spectrum-thumbnail-height);justify-content:center;margin:0;overflow:hidden;padding:0;position:relative;vertical-align:top;width:var(--spectrum-thumbnail-width)}:host:before{border-radius:var(--spectrum-thumbnail-border-radius);content:\"\";height:100%;position:absolute;width:100%;z-index:2}:host([size=xxs]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-xxs-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-xxs-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-xxs-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-xxs-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-xxs-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-xxs-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-xxs-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-xxs-width,var(--spectrum-global-dimension-size-225)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-xxs-height,var(--spectrum-global-dimension-size-225)\n)}:host([size=xs]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-xs-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-xs-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-xs-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-xs-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-xs-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-xs-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-xs-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-xs-width,var(--spectrum-global-dimension-size-300)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-xs-height,var(--spectrum-global-dimension-size-300)\n)}:host([size=s]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-s-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-s-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-s-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-s-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-s-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-s-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-s-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-s-width,var(--spectrum-global-dimension-size-400)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-s-height,var(--spectrum-global-dimension-size-400)\n)}:host([size=m]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-m-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-m-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-m-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-m-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-m-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-m-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-m-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-m-width,var(--spectrum-global-dimension-size-500)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-m-height,var(--spectrum-global-dimension-size-500)\n)}:host([size=l]){--spectrum-thumbnail-border-color-selected:var(\n--spectrum-thumbnail-l-border-color-selected,var(--spectrum-alias-border-color-selected)\n);--spectrum-thumbnail-border-size-selected-key-focus:var(\n--spectrum-thumbnail-l-border-size-selected-key-focus,var(--spectrum-alias-border-size-thick)\n);--spectrum-thumbnail-border-size:var(\n--spectrum-thumbnail-l-border-size,var(--spectrum-alias-border-size-thin)\n);--spectrum-thumbnail-border-color:var(\n--spectrum-thumbnail-l-border-color,var(--spectrum-alias-border-color-translucent)\n);--spectrum-thumbnail-border-color-key-focus:var(\n--spectrum-thumbnail-l-border-color-key-focus,var(--spectrum-alias-border-color-key-focus)\n);--spectrum-thumbnail-darksquare-background-color:var(\n--spectrum-thumbnail-l-darksquare-background-color,var(--spectrum-alias-thumbnail-darksquare-background-color)\n);--spectrum-thumbnail-border-radius:var(\n--spectrum-thumbnail-l-border-radius,var(--spectrum-alias-thumbnail-border-radius-small)\n);--spectrum-thumbnail-width:var(\n--spectrum-thumbnail-l-width,var(--spectrum-global-dimension-size-700)\n);--spectrum-thumbnail-height:var(\n--spectrum-thumbnail-l-height,var(--spectrum-global-dimension-size-700)\n)}::slotted(*){max-height:100%;max-width:100%;z-index:1}:host([cover]) ::slotted(*){height:100%;object-fit:cover;object-position:center;width:100%}.background{background-position:50%;background-size:cover;bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%;z-index:0}:host{background-color:var(\n--spectrum-global-color-static-white,#fff\n);background-image:linear-gradient(-45deg,transparent 75.5%,var(--spectrum-thumbnail-darksquare-background-color) 75.5%),linear-gradient(45deg,transparent 75.5%,var(--spectrum-thumbnail-darksquare-background-color) 75.5%),linear-gradient(-45deg,var(--spectrum-thumbnail-darksquare-background-color) 25.5%,transparent 25.5%),linear-gradient(45deg,var(--spectrum-thumbnail-darksquare-background-color) 25.5%,transparent 25.5%)}:host:before{box-shadow:inset 0 0 0 var(--spectrum-thumbnail-border-size) var(--spectrum-thumbnail-border-color)}:host([selected]){box-shadow:0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host([selected]):before{box-shadow:inset 0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host(.focus-visible),:host([focused]){box-shadow:0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected);outline:none;overflow:visible}:host(:focus-visible),:host([focused]){box-shadow:0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected);outline:none;overflow:visible}:host(.focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host(:focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host(.focus-visible):after,:host([focused]):after{border-radius:calc(var(--spectrum-thumbnail-border-radius) + var(\n--spectrum-alias-focus-ring-gap,\nvar(--spectrum-global-dimension-static-size-25)\n));bottom:0;box-shadow:0 0 0 var(--spectrum-thumbnail-border-size-selected-key-focus) var(--spectrum-thumbnail-border-color-key-focus);content:\"\";display:block;left:0;margin:calc(var(\n--spectrum-alias-focus-ring-gap,\nvar(--spectrum-global-dimension-static-size-25)\n)*-1);position:absolute;right:0;top:0}:host(:focus-visible):after,:host([focused]):after{border-radius:calc(var(--spectrum-thumbnail-border-radius) + var(\n--spectrum-alias-focus-ring-gap,\nvar(--spectrum-global-dimension-static-size-25)\n));bottom:0;box-shadow:0 0 0 var(--spectrum-thumbnail-border-size-selected-key-focus) var(--spectrum-thumbnail-border-color-key-focus);content:\"\";display:block;left:0;margin:calc(var(\n--spectrum-alias-focus-ring-gap,\nvar(--spectrum-global-dimension-static-size-25)\n)*-1);position:absolute;right:0;top:0}::slotted(:not(img)){display:none}\n`"
}

@@ -129,0 +148,0 @@ ],

6

package.json
{
"name": "@spectrum-web-components/thumbnail",
"version": "0.4.1",
"version": "0.4.2",
"publishConfig": {

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

"devDependencies": {
"@spectrum-css/thumbnail": "^2.0.1"
"@spectrum-css/thumbnail": "^2.0.5"
},

@@ -59,3 +59,3 @@ "types": "./src/index.d.ts",

],
"gitHead": "df3f333ee26a45f9fc247716b6e8ef051dca630b"
"gitHead": "5ad16bd185710525afa48bd76099cb0ebde4c4cb"
}

@@ -33,2 +33,7 @@ /*

{
type: 'boolean',
name: 'cover',
selector: '.spectrum-Thumbnail--cover',
},
{
type: 'enum',

@@ -35,0 +40,0 @@ name: 'size',

@@ -104,3 +104,3 @@ /*

--spectrum-thumbnail-l-height,var(--spectrum-global-dimension-size-700)
)}::slotted(*){max-height:100%;max-width:100%;z-index:1}.background{background-position:50%;background-size:cover;bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%;z-index:0}:host{background-color:var(
)}::slotted(*){max-height:100%;max-width:100%;z-index:1}:host([cover]) ::slotted(*){height:100%;object-fit:cover;object-position:center;width:100%}.background{background-position:50%;background-size:cover;bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%;z-index:0}:host{background-color:var(
--spectrum-global-color-static-white,#fff

@@ -107,0 +107,0 @@ );background-image:linear-gradient(-45deg,transparent 75.5%,var(--spectrum-thumbnail-darksquare-background-color) 75.5%),linear-gradient(45deg,transparent 75.5%,var(--spectrum-thumbnail-darksquare-background-color) 75.5%),linear-gradient(-45deg,var(--spectrum-thumbnail-darksquare-background-color) 25.5%,transparent 25.5%),linear-gradient(45deg,var(--spectrum-thumbnail-darksquare-background-color) 25.5%,transparent 25.5%)}:host:before{box-shadow:inset 0 0 0 var(--spectrum-thumbnail-border-size) var(--spectrum-thumbnail-border-color)}:host([selected]){box-shadow:0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host([selected]):before{box-shadow:inset 0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host(.focus-visible),:host([focused]){box-shadow:0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected);outline:none;overflow:visible}:host(:focus-visible),:host([focused]){box-shadow:0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected);outline:none;overflow:visible}:host(.focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host(:focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host(.focus-visible):after,:host([focused]):after{border-radius:calc(var(--spectrum-thumbnail-border-radius) + var(

@@ -104,3 +104,3 @@ /*

--spectrum-thumbnail-l-height,var(--spectrum-global-dimension-size-700)
)}::slotted(*){max-height:100%;max-width:100%;z-index:1}.background{background-position:50%;background-size:cover;bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%;z-index:0}:host{background-color:var(
)}::slotted(*){max-height:100%;max-width:100%;z-index:1}:host([cover]) ::slotted(*){height:100%;object-fit:cover;object-position:center;width:100%}.background{background-position:50%;background-size:cover;bottom:0;height:100%;left:0;position:absolute;right:0;top:0;width:100%;z-index:0}:host{background-color:var(
--spectrum-global-color-static-white,#fff

@@ -119,5 +119,5 @@ );background-image:linear-gradient(-45deg,transparent 75.5%,var(--spectrum-thumbnail-darksquare-background-color) 75.5%),linear-gradient(45deg,transparent 75.5%,var(--spectrum-thumbnail-darksquare-background-color) 75.5%),linear-gradient(-45deg,var(--spectrum-thumbnail-darksquare-background-color) 25.5%,transparent 25.5%),linear-gradient(45deg,var(--spectrum-thumbnail-darksquare-background-color) 25.5%,transparent 25.5%)}:host:before{box-shadow:inset 0 0 0 var(--spectrum-thumbnail-border-size) var(--spectrum-thumbnail-border-color)}:host([selected]){box-shadow:0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host([selected]):before{box-shadow:inset 0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host(.focus-visible),:host([focused]){box-shadow:0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected);outline:none;overflow:visible}:host(:focus-visible),:host([focused]){box-shadow:0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected);outline:none;overflow:visible}:host(.focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host(:focus-visible):before,:host([focused]):before{box-shadow:inset 0 0 0 calc(var(--spectrum-thumbnail-border-size-selected-key-focus)/2) var(--spectrum-thumbnail-border-color-selected)}:host(.focus-visible):after,:host([focused]):after{border-radius:calc(var(--spectrum-thumbnail-border-radius) + var(

var(--spectrum-global-dimension-static-size-25)
)*-1);position:absolute;right:0;top:0}::slotted(:not(img)){display:none}:host([cover]) ::slotted(img){height:100%;object-fit:cover;width:100%}
)*-1);position:absolute;right:0;top:0}::slotted(:not(img)){display:none}
`;
export default styles;
//# sourceMappingURL=thumbnail.css.js.map

@@ -14,4 +14,5 @@ import { CSSResultArray, SpectrumElement, TemplateResult } from '@spectrum-web-components/base';

background?: string;
cover: boolean;
protected render(): TemplateResult;
}
export {};

@@ -25,2 +25,6 @@ /*

}) {
constructor() {
super(...arguments);
this.cover = false;
}
static get styles() {

@@ -46,2 +50,5 @@ return [styles];

], Thumbnail.prototype, "background", void 0);
__decorate([
property({ type: Boolean, reflect: true })
], Thumbnail.prototype, "cover", void 0);
//# sourceMappingURL=Thumbnail.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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