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

@rmwc/list

Package Overview
Dependencies
Maintainers
1
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmwc/list - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

34

docgen.json

@@ -8,20 +8,20 @@ [

"selected": {
"required": false,
"flowType": {
"name": "boolean"
},
"required": false,
"description": "A modifier for a selected state."
},
"activated": {
"required": false,
"flowType": {
"name": "boolean"
},
"required": false,
"description": "A modifier for an active state."
},
"ripple": {
"required": false,
"flowType": {
"name": "boolean"
},
"required": false,
"description": "Enable / disable the ripple.",

@@ -76,9 +76,10 @@ "defaultValue": {

"className": {
"required": false,
"flowType": {
"name": "string"
},
"required": false,
"description": ""
},
"icon": {
"required": false,
"flowType": {

@@ -88,3 +89,2 @@ "name": "ReactNode",

},
"required": false,
"description": ""

@@ -115,27 +115,27 @@ }

"dense": {
"required": false,
"flowType": {
"name": "boolean"
},
"required": false,
"description": "Reduces the padding on List items."
},
"twoLine": {
"required": false,
"flowType": {
"name": "boolean"
},
"required": false,
"description": "Gives more space for dual lined list items."
},
"avatarList": {
"required": false,
"flowType": {
"name": "boolean"
},
"required": false,
"description": "Makes the list start detail circular for avatars."
},
"nonInteractive": {
"required": false,
"flowType": {
"name": "boolean"
},
"required": false,
"description": "Makes the list non interactive. In addition, you'll have to set `ripple={false}` on the individual ListItems."

@@ -151,2 +151,3 @@ }

"text": {
"required": false,
"flowType": {

@@ -156,6 +157,6 @@ "name": "ReactNode",

},
"required": false,
"description": "Text for the ListItem."
},
"secondaryText": {
"required": false,
"flowType": {

@@ -165,6 +166,6 @@ "name": "ReactNode",

},
"required": false,
"description": "Secondary Text for the ListItem."
},
"graphic": {
"required": false,
"flowType": {

@@ -174,6 +175,6 @@ "name": "ReactNode",

},
"required": false,
"description": "A graphic icon for the ListItem."
},
"meta": {
"required": false,
"flowType": {

@@ -183,6 +184,6 @@ "name": "ReactNode",

},
"required": false,
"description": "A meta icon for the ListItem"
},
"children": {
"required": false,
"flowType": {

@@ -192,24 +193,23 @@ "name": "ReactNode",

},
"required": false,
"description": "Children to render"
},
"selected": {
"required": false,
"flowType": {
"name": "boolean"
},
"required": false,
"description": "A modifier for a selected state."
},
"activated": {
"required": false,
"flowType": {
"name": "boolean"
},
"required": false,
"description": "A modifier for an active state."
},
"ripple": {
"required": false,
"flowType": {
"name": "boolean"
},
"required": false,
"description": "Enable / disable the ripple."

@@ -216,0 +216,0 @@ }

import { SimpleTagPropsT } from '@rmwc/base';
import { WithRipplePropsT } from '@rmwc/ripple';
import { RMWCProviderOptionsT } from '@rmwc/provider';
import { IconPropsT } from '@rmwc/icon';
import * as React from 'react';

@@ -64,165 +65,9 @@ import * as PropTypes from 'prop-types';

/** Text Wrapper for the ListItem */
export declare const ListItemText: {
new <P>(props: Readonly<any>): {
render(): React.ReactElement<any> | null;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<any>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: React.ReactNode;
}> & Readonly<any>;
state: Readonly<{}>;
context: any;
refs: {
[key: string]: React.ReactInstance;
};
};
new <P>(props: any, context?: any): {
render(): React.ReactElement<any> | null;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<any>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: React.ReactNode;
}> & Readonly<any>;
state: Readonly<{}>;
context: any;
refs: {
[key: string]: React.ReactInstance;
};
};
displayName: string;
defaultProps: {
tag: string | React.ComponentClass<any, any> | React.StatelessComponent<any>;
constructor: Function;
toString(): string;
toLocaleString(): string;
valueOf(): Object;
hasOwnProperty(v: string | number | symbol): boolean;
isPrototypeOf(v: Object): boolean;
propertyIsEnumerable(v: string | number | symbol): boolean;
};
isSimpleTag: boolean;
};
export declare const ListItemText: React.ComponentType<SimpleTagPropsT>;
/** Primary Text for the ListItem */
export declare const ListItemPrimaryText: {
new <P>(props: Readonly<any>): {
render(): React.ReactElement<any> | null;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<any>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: React.ReactNode;
}> & Readonly<any>;
state: Readonly<{}>;
context: any;
refs: {
[key: string]: React.ReactInstance;
};
};
new <P>(props: any, context?: any): {
render(): React.ReactElement<any> | null;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<any>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: React.ReactNode;
}> & Readonly<any>;
state: Readonly<{}>;
context: any;
refs: {
[key: string]: React.ReactInstance;
};
};
displayName: string;
defaultProps: {
tag: string | React.ComponentClass<any, any> | React.StatelessComponent<any>;
constructor: Function;
toString(): string;
toLocaleString(): string;
valueOf(): Object;
hasOwnProperty(v: string | number | symbol): boolean;
isPrototypeOf(v: Object): boolean;
propertyIsEnumerable(v: string | number | symbol): boolean;
};
isSimpleTag: boolean;
};
export declare const ListItemPrimaryText: React.ComponentType<SimpleTagPropsT>;
/** Secondary text for the ListItem */
export declare const ListItemSecondaryText: {
new <P>(props: Readonly<any>): {
render(): React.ReactElement<any> | null;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<any>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: React.ReactNode;
}> & Readonly<any>;
state: Readonly<{}>;
context: any;
refs: {
[key: string]: React.ReactInstance;
};
};
new <P>(props: any, context?: any): {
render(): React.ReactElement<any> | null;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<any>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: React.ReactNode;
}> & Readonly<any>;
state: Readonly<{}>;
context: any;
refs: {
[key: string]: React.ReactInstance;
};
};
displayName: string;
defaultProps: {
tag: string | React.ComponentClass<any, any> | React.StatelessComponent<any>;
constructor: Function;
toString(): string;
toLocaleString(): string;
valueOf(): Object;
hasOwnProperty(v: string | number | symbol): boolean;
isPrototypeOf(v: Object): boolean;
propertyIsEnumerable(v: string | number | symbol): boolean;
};
isSimpleTag: boolean;
};
export declare const ListItemSecondaryText: React.ComponentType<SimpleTagPropsT>;
/** A graphic / icon for the ListItem */
export declare const ListItemGraphic: {
new <P>(props: Readonly<any>): {
render(): React.ReactElement<any> | null;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<any>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: React.ReactNode;
}> & Readonly<any>;
state: Readonly<{}>;
context: any;
refs: {
[key: string]: React.ReactInstance;
};
};
new <P>(props: any, context?: any): {
render(): React.ReactElement<any> | null;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<any>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: React.ReactNode;
}> & Readonly<any>;
state: Readonly<{}>;
context: any;
refs: {
[key: string]: React.ReactInstance;
};
};
displayName: string;
defaultProps: {
tag: string | React.ComponentClass<any, any> | React.StatelessComponent<any>;
constructor: Function;
toString(): string;
toLocaleString(): string;
valueOf(): Object;
hasOwnProperty(v: string | number | symbol): boolean;
isPrototypeOf(v: Object): boolean;
propertyIsEnumerable(v: string | number | symbol): boolean;
};
isSimpleTag: boolean;
};
export declare const ListItemGraphic: React.ComponentType<IconPropsT>;
/** A meta icon for the ListItem. By default this is an icon component. If you need to render text, specify a tag="span" and basename="" to ensure proper rendering. See the examples above.*/

@@ -234,124 +79,7 @@ export declare const ListItemMeta: ({ className, icon, ...rest }: {

/** A container to group ListItems */
export declare const ListGroup: {
new <P>(props: Readonly<any>): {
render(): React.ReactElement<any> | null;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<any>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: React.ReactNode;
}> & Readonly<any>;
state: Readonly<{}>;
context: any;
refs: {
[key: string]: React.ReactInstance;
};
};
new <P>(props: any, context?: any): {
render(): React.ReactElement<any> | null;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<any>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: React.ReactNode;
}> & Readonly<any>;
state: Readonly<{}>;
context: any;
refs: {
[key: string]: React.ReactInstance;
};
};
displayName: string;
defaultProps: {
tag: string | React.ComponentClass<any, any> | React.StatelessComponent<any>;
constructor: Function;
toString(): string;
toLocaleString(): string;
valueOf(): Object;
hasOwnProperty(v: string | number | symbol): boolean;
isPrototypeOf(v: Object): boolean;
propertyIsEnumerable(v: string | number | symbol): boolean;
};
isSimpleTag: boolean;
};
export declare const ListGroup: React.ComponentType<SimpleTagPropsT>;
/** A subheader for the ListGroup */
export declare const ListGroupSubheader: {
new <P>(props: Readonly<any>): {
render(): React.ReactElement<any> | null;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<any>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: React.ReactNode;
}> & Readonly<any>;
state: Readonly<{}>;
context: any;
refs: {
[key: string]: React.ReactInstance;
};
};
new <P>(props: any, context?: any): {
render(): React.ReactElement<any> | null;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<any>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: React.ReactNode;
}> & Readonly<any>;
state: Readonly<{}>;
context: any;
refs: {
[key: string]: React.ReactInstance;
};
};
displayName: string;
defaultProps: {
tag: string | React.ComponentClass<any, any> | React.StatelessComponent<any>;
constructor: Function;
toString(): string;
toLocaleString(): string;
valueOf(): Object;
hasOwnProperty(v: string | number | symbol): boolean;
isPrototypeOf(v: Object): boolean;
propertyIsEnumerable(v: string | number | symbol): boolean;
};
isSimpleTag: boolean;
};
export declare const ListGroupSubheader: React.ComponentType<SimpleTagPropsT>;
/** A divider for the List */
export declare const ListDivider: {
new <P>(props: Readonly<any>): {
render(): React.ReactElement<any> | null;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<any>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: React.ReactNode;
}> & Readonly<any>;
state: Readonly<{}>;
context: any;
refs: {
[key: string]: React.ReactInstance;
};
};
new <P>(props: any, context?: any): {
render(): React.ReactElement<any> | null;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<any>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
readonly props: Readonly<{
children?: React.ReactNode;
}> & Readonly<any>;
state: Readonly<{}>;
context: any;
refs: {
[key: string]: React.ReactInstance;
};
};
displayName: string;
defaultProps: {
tag: string | React.ComponentClass<any, any> | React.StatelessComponent<any>;
constructor: Function;
toString(): string;
toLocaleString(): string;
valueOf(): Object;
hasOwnProperty(v: string | number | symbol): boolean;
isPrototypeOf(v: Object): boolean;
propertyIsEnumerable(v: string | number | symbol): boolean;
};
isSimpleTag: boolean;
};
export declare const ListDivider: React.ComponentType<SimpleTagPropsT>;
export declare type ListPropsT = {

@@ -358,0 +86,0 @@ /** Reduces the padding on List items. */

{
"name": "@rmwc/list",
"version": "2.0.1",
"version": "2.0.2",
"description": "RMWC List component",

@@ -30,6 +30,6 @@ "main": "index.js",

"@material/list": "~0.39.0",
"@rmwc/base": "^2.0.1",
"@rmwc/icon": "^2.0.1",
"@rmwc/provider": "^2.0.1",
"@rmwc/ripple": "^2.0.1",
"@rmwc/base": "^2.0.2",
"@rmwc/icon": "^2.0.2",
"@rmwc/provider": "^2.0.2",
"@rmwc/ripple": "^2.0.2",
"classnames": "^2.2.5",

@@ -36,0 +36,0 @@ "prop-types": "^15.6.1"

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