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

@material/mwc-snackbar

Package Overview
Dependencies
Maintainers
15
Versions
709
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/mwc-snackbar - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

5

accessible-snackbar-label-directive.d.ts

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

import { NodePart } from 'lit-html';
import {NodePart} from 'lit-html';
/**

@@ -21,2 +21,3 @@ * A lit directive implementation of @material/mdc-snackbar/util.ts#announce,

*/
export declare const accessibleSnackbarLabel: (labelText: string, isOpen: boolean) => (part: NodePart) => void;
export declare const accessibleSnackbarLabel: (
labelText: string, isOpen: boolean) => (part: NodePart) => void;

40

mwc-snackbar-base.d.ts

@@ -17,24 +17,24 @@ /**

*/
import { BaseElement } from '@material/mwc-base/base-element.js';
import { MDCSnackbarAdapter } from '@material/snackbar/adapter.js';
import {BaseElement} from '@material/mwc-base/base-element.js';
import {MDCSnackbarAdapter} from '@material/snackbar/adapter.js';
import MDCSnackbarFoundation from '@material/snackbar/foundation.js';
export declare class SnackbarBase extends BaseElement {
protected mdcFoundation: MDCSnackbarFoundation;
protected readonly mdcFoundationClass: typeof MDCSnackbarFoundation;
protected mdcRoot: HTMLElement;
protected labelElement: HTMLElement;
isOpen: boolean;
timeoutMs: number;
closeOnEscape: boolean;
labelText: string;
stacked: boolean;
leading: boolean;
protected render(): import("lit-html/lib/template-result").TemplateResult;
protected createAdapter(): MDCSnackbarAdapter;
open(): void;
close(reason?: string): void;
protected firstUpdated(): void;
private _handleKeydown;
private _handleActionClick;
private _handleDismissClick;
protected mdcFoundation: MDCSnackbarFoundation;
protected readonly mdcFoundationClass: typeof MDCSnackbarFoundation;
protected mdcRoot: HTMLElement;
protected labelElement: HTMLElement;
isOpen: boolean;
timeoutMs: number;
closeOnEscape: boolean;
labelText: string;
stacked: boolean;
leading: boolean;
protected render(): import('lit-html/lib/template-result').TemplateResult;
protected createAdapter(): MDCSnackbarAdapter;
open(): void;
close(reason?: string): void;
protected firstUpdated(): void;
private _handleKeydown;
private _handleActionClick;
private _handleDismissClick;
}

@@ -1,9 +0,9 @@

import { SnackbarBase } from './mwc-snackbar-base.js';
import {SnackbarBase} from './mwc-snackbar-base.js';
declare global {
interface HTMLElementTagNameMap {
'mwc-snackbar': Snackbar;
}
interface HTMLElementTagNameMap {
'mwc-snackbar': Snackbar;
}
}
export declare class Snackbar extends SnackbarBase {
static styles: import("lit-element/lib/css-tag").CSSResult;
static styles: import('lit-element/lib/css-tag').CSSResult;
}
{
"name": "@material/mwc-snackbar",
"version": "0.7.0",
"version": "0.7.1",
"description": "",
"main": "mwc-snackbar.js",
"module": "mwc-snackbar.js",
"repository": {

@@ -23,3 +24,3 @@ "type": "git",

},
"gitHead": "c8c5d01ad2103af63e3d7656b5d1acc5ccaa05db"
"gitHead": "f8389e38b66e6261a8578f4a748efcb7367da176"
}

@@ -9,3 +9,3 @@ # `<mwc-snackbar>` [![Published on npm](https://img.shields.io/npm/v/@material/mwc-snackbar.svg)](https://www.npmjs.com/package/@material/mwc-snackbar)

![](https://raw.githubusercontent.com/material-components/material-components-web-components/c8c5d01ad2103af63e3d7656b5d1acc5ccaa05db/packages/snackbar/images/action_button.png)
![](https://raw.githubusercontent.com/material-components/material-components-web-components/f8389e38b66e6261a8578f4a748efcb7367da176/packages/snackbar/images/action_button.png)

@@ -32,3 +32,3 @@ [Material Design Guidelines: Snackbars](https://material.io/design/components/snackbars.html)

![](https://raw.githubusercontent.com/material-components/material-components-web-components/c8c5d01ad2103af63e3d7656b5d1acc5ccaa05db/packages/snackbar/images/standard.png)
![](https://raw.githubusercontent.com/material-components/material-components-web-components/f8389e38b66e6261a8578f4a748efcb7367da176/packages/snackbar/images/standard.png)

@@ -49,3 +49,3 @@ ```html

![](https://raw.githubusercontent.com/material-components/material-components-web-components/c8c5d01ad2103af63e3d7656b5d1acc5ccaa05db/packages/snackbar/images/action_and_dismiss.png)
![](https://raw.githubusercontent.com/material-components/material-components-web-components/f8389e38b66e6261a8578f4a748efcb7367da176/packages/snackbar/images/action_and_dismiss.png)

@@ -61,3 +61,3 @@ ```html

![](https://raw.githubusercontent.com/material-components/material-components-web-components/c8c5d01ad2103af63e3d7656b5d1acc5ccaa05db/packages/snackbar/images/custom_action_color.png)
![](https://raw.githubusercontent.com/material-components/material-components-web-components/f8389e38b66e6261a8578f4a748efcb7367da176/packages/snackbar/images/custom_action_color.png)

@@ -77,3 +77,3 @@ ```css

![](https://raw.githubusercontent.com/material-components/material-components-web-components/c8c5d01ad2103af63e3d7656b5d1acc5ccaa05db/packages/snackbar/images/stacked.png)
![](https://raw.githubusercontent.com/material-components/material-components-web-components/f8389e38b66e6261a8578f4a748efcb7367da176/packages/snackbar/images/stacked.png)

@@ -127,3 +127,3 @@ ### Leading

| ----------------------------- | ------- |------------
| `--mdc-snackbar-action-color` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/c8c5d01ad2103af63e3d7656b5d1acc5ccaa05db/packages/snackbar/images/color_bb86fc.png) `#bb86fc` | Color of the action button text.
| `--mdc-snackbar-action-color` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/f8389e38b66e6261a8578f4a748efcb7367da176/packages/snackbar/images/color_bb86fc.png) `#bb86fc` | Color of the action button text.

@@ -130,0 +130,0 @@ ## Additional references

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