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

@material/mwc-list

Package Overview
Dependencies
Maintainers
19
Versions
695
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material/mwc-list - npm Package Compare versions

Comparing version 0.15.0-canary.603d6eb3.0 to 0.15.0-canary.aff73cab.0

1

mwc-list-base.d.ts

@@ -38,2 +38,3 @@ /**

innerRole: string | null;
innerAriaLabel: string | null;
rootTabbable: boolean;

@@ -40,0 +41,0 @@ protected previousTabindex: Element | null;

@@ -42,2 +42,3 @@ /**

this.innerRole = null;
this.innerAriaLabel = null;
this.rootTabbable = false;

@@ -112,2 +113,3 @@ this.previousTabindex = null;

const role = this.innerRole === null ? undefined : this.innerRole;
const ariaLabel = this.innerAriaLabel === null ? undefined : this.innerAriaLabel;
const tabindex = this.rootTabbable ? '0' : '-1';

@@ -119,2 +121,3 @@ return html `

role="${ifDefined(role)}"
aria-label="${ifDefined(ariaLabel)}"
class="mdc-list"

@@ -409,2 +412,5 @@ @keydown=${this.onKeydown}

__decorate([
property({ type: String })
], ListBase.prototype, "innerAriaLabel", void 0);
__decorate([
property({ type: Boolean })

@@ -411,0 +417,0 @@ ], ListBase.prototype, "rootTabbable", void 0);

14

package.json
{
"name": "@material/mwc-list",
"version": "0.15.0-canary.603d6eb3.0",
"version": "0.15.0-canary.aff73cab.0",
"description": "",

@@ -13,7 +13,7 @@ "main": "mwc-list.js",

"dependencies": {
"@material/base": "=6.0.0-canary.35a32aaea.0",
"@material/list": "=6.0.0-canary.35a32aaea.0",
"@material/mwc-base": "0.15.0-canary.603d6eb3.0",
"@material/mwc-checkbox": "0.15.0-canary.603d6eb3.0",
"@material/mwc-radio": "0.15.0-canary.603d6eb3.0",
"@material/base": "=6.0.0-canary.d6315efe2.0",
"@material/list": "=6.0.0-canary.d6315efe2.0",
"@material/mwc-base": "0.15.0-canary.aff73cab.0",
"@material/mwc-checkbox": "0.15.0-canary.aff73cab.0",
"@material/mwc-radio": "0.15.0-canary.aff73cab.0",
"lit-element": "^2.3.0",

@@ -26,3 +26,3 @@ "lit-html": "^1.1.2",

},
"gitHead": "c12dabbae50536d5adf2b5a785d4a5009e53208f"
"gitHead": "40f9b297ee5f13af191b6bf450012454426c44b0"
}

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

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/header.png" width="402px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/header.png" width="402px">

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

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/basic.png" width="402px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/basic.png" width="402px">

@@ -50,3 +50,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/activatable.png" width="402px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/activatable.png" width="402px">

@@ -64,3 +64,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/multi.png" width="402px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/multi.png" width="402px">

@@ -80,3 +80,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/leading_graphic.png" width="402px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/leading_graphic.png" width="402px">

@@ -120,3 +120,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/meta_icon.png" width="402px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/meta_icon.png" width="402px">

@@ -146,3 +146,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/two_line.png" width="402px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/two_line.png" width="402px">

@@ -177,3 +177,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/dividers.png" width="402px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/dividers.png" width="402px">

@@ -207,3 +207,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/check_list.png" width="402px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/check_list.png" width="402px">

@@ -233,3 +233,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/radio_list.png" width="402px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/radio_list.png" width="402px">

@@ -250,3 +250,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/multi_radio_list.png" width="402px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/multi_radio_list.png" width="402px">

@@ -272,3 +272,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/noninteractive.png" width="402px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/noninteractive.png" width="402px">

@@ -302,3 +302,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/styled.png" width="402px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/styled.png" width="402px">

@@ -328,3 +328,3 @@ ```html

<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/styled_no_ripple.png" width="402px">
<img src="https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/styled_no_ripple.png" width="402px">

@@ -569,3 +569,3 @@ ```html

| ----------------------------------- | --------------------- |------------
| `--mdc-theme-text-primary-on-background` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/color_0,0,0,87.png) `rgba(0, 0, 0, 0.87)` | Color of the primary text.
| `--mdc-theme-text-primary-on-background` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/color_0,0,0,87.png) `rgba(0, 0, 0, 0.87)` | Color of the primary text.
| `--mdc-list-vertical-padding` | `8px` | Padding before and after the first and last list items.

@@ -579,8 +579,8 @@ | `--mdc-list-side-padding` | `16px` | Adjusts the padding of the `[padded]` list dividers (also propagates to `mwc-list-item`).

| ------------------------------------------ | -------------------- |------------
| `--mdc-theme-primary` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/color_6200ee.png) `#6200ee` | Color of the activated ripple and primary text color when activated.
| `--mdc-theme-on-surface` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/color_000.png) `#000` | Disabled text color
| `--mdc-theme-text-icon-on-background` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/color_0,0,0,38.png) `rgba(0, 0, 0, .38)` | Color of the graphic icon (if graphic is text icon).
| `--mdc-theme-text-primary-on-background` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/color_0,0,0,87.png) `rgba(0, 0, 0, .87)` | Color of the primary text if not activated.
| `--mdc-theme-text-secondary-on-background` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/color_0,0,0,54.png) `rgba(0, 0, 0, .54)` | Color of the secondary text if not activated.
| `--mdc-theme-hint-on-background` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/c12dabbae50536d5adf2b5a785d4a5009e53208f/packages/list/images/color_0,0,0,38.png) `rgba(0, 0, 0, .38)` | Color of the meta (if is text or text icon).
| `--mdc-theme-primary` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/color_6200ee.png) `#6200ee` | Color of the activated ripple and primary text color when activated.
| `--mdc-theme-on-surface` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/color_000.png) `#000` | Disabled text color
| `--mdc-theme-text-icon-on-background` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/color_0,0,0,38.png) `rgba(0, 0, 0, .38)` | Color of the graphic icon (if graphic is text icon).
| `--mdc-theme-text-primary-on-background` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/color_0,0,0,87.png) `rgba(0, 0, 0, .87)` | Color of the primary text if not activated.
| `--mdc-theme-text-secondary-on-background` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/color_0,0,0,54.png) `rgba(0, 0, 0, .54)` | Color of the secondary text if not activated.
| `--mdc-theme-hint-on-background` | ![](https://raw.githubusercontent.com/material-components/material-components-web-components/40f9b297ee5f13af191b6bf450012454426c44b0/packages/list/images/color_0,0,0,38.png) `rgba(0, 0, 0, .38)` | Color of the meta (if is text or text icon).
| `--mdc-list-side-padding` | `16px` | Side padding of the list item.

@@ -587,0 +587,0 @@ | `--mdc-list-item-meta-size` | `24px` | Line height of the meta icon or text and width & height of the slotted parent wrapper.

@@ -89,2 +89,4 @@ /**

@property({type: String}) innerAriaLabel: string|null = null;
@property({type: Boolean}) rootTabbable = false;

@@ -196,2 +198,4 @@

const role = this.innerRole === null ? undefined : this.innerRole;
const ariaLabel =
this.innerAriaLabel === null ? undefined : this.innerAriaLabel;
const tabindex = this.rootTabbable ? '0' : '-1';

@@ -203,2 +207,3 @@ return html`

role="${ifDefined(role)}"
aria-label="${ifDefined(ariaLabel)}"
class="mdc-list"

@@ -205,0 +210,0 @@ @keydown=${this.onKeydown}

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