@anton-gustafsson/snapshot-core 0.0.4 → 0.0.5
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.
|
@@ -19,7 +19,7 @@ export declare class SnapshotNavList extends LitElement {
|
|
|
19
19
|
static styles: import("lit").CSSResult;
|
|
20
20
|
items: NavItem[];
|
|
21
21
|
variant: SnapshotNavListVariant;
|
|
22
|
-
/** icon-only tile overlay: tint behind the title so it stays legible over any image. */
|
|
22
|
+
/** icon-only tile overlay: tint behind the title so it stays legible over any image. Transparent by default — opt into a scrim explicitly. */
|
|
23
23
|
overlayTint: 'dark' | 'light' | 'none';
|
|
24
24
|
/** overlay tint strength, 0-1 */
|
|
25
25
|
overlayOpacity: number;
|
|
@@ -23,8 +23,8 @@ export class SnapshotNavList extends LitElement {
|
|
|
23
23
|
super(...arguments);
|
|
24
24
|
this.items = [];
|
|
25
25
|
this.variant = 'icon-only';
|
|
26
|
-
/** icon-only tile overlay: tint behind the title so it stays legible over any image. */
|
|
27
|
-
this.overlayTint = '
|
|
26
|
+
/** icon-only tile overlay: tint behind the title so it stays legible over any image. Transparent by default — opt into a scrim explicitly. */
|
|
27
|
+
this.overlayTint = 'none';
|
|
28
28
|
/** overlay tint strength, 0-1 */
|
|
29
29
|
this.overlayOpacity = 0.35;
|
|
30
30
|
/** backdrop blur behind the title, in px */
|
|
@@ -269,10 +269,15 @@ export class SnapshotNavList extends LitElement {
|
|
|
269
269
|
:host([variant='icon-only']) .meta {
|
|
270
270
|
position: absolute;
|
|
271
271
|
inset: auto 0 0 0;
|
|
272
|
+
margin: var(--snapshot-nav-list-overlay-margin, 0);
|
|
273
|
+
border-radius: var(--snapshot-nav-list-overlay-radius, 0);
|
|
272
274
|
align-items: flex-start;
|
|
273
275
|
gap: 0.15rem;
|
|
274
276
|
padding: 0.4rem 0.5rem;
|
|
275
277
|
color: var(--overlay-text, #fff);
|
|
278
|
+
background: var(--overlay-bg, transparent);
|
|
279
|
+
backdrop-filter: blur(var(--overlay-blur, 0px));
|
|
280
|
+
-webkit-backdrop-filter: blur(var(--overlay-blur, 0px));
|
|
276
281
|
}
|
|
277
282
|
:host([variant='icon-only']) .label {
|
|
278
283
|
white-space: normal;
|
|
@@ -428,7 +433,7 @@ export class SnapshotNavList extends LitElement {
|
|
|
428
433
|
</button>`
|
|
429
434
|
: ''}
|
|
430
435
|
</div>
|
|
431
|
-
<div class="meta" part="meta">
|
|
436
|
+
<div class="meta" part="meta" style=${styleMap(overlayStyle)}>
|
|
432
437
|
<span class="label" part="label">${item.label}</span>
|
|
433
438
|
${item.description ? html `<span class="description" part="description">${item.description}</span>` : ''}
|
|
434
439
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anton-gustafsson/snapshot-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "A pluggable snapshot service that turns any DOM element into a stored, shareable image, plus an optional <snapshot-nav-list> web component to display them.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|