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

@rmwc/card

Package Overview
Dependencies
Maintainers
1
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmwc/card - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

8

docgen.json

@@ -8,6 +8,6 @@ [

"outlined": {
"required": false,
"flowType": {
"name": "boolean"
},
"required": false,
"description": "Removes the shadow and displays a hairline outline instead"

@@ -23,13 +23,13 @@ }

"square": {
"required": false,
"flowType": {
"name": "boolean"
},
"required": false,
"description": "Automatically scales the media area’s height to equal its width"
},
"sixteenByNine": {
"required": false,
"flowType": {
"name": "boolean"
},
"required": false,
"description": "Automatically scales the media area’s height according to its width, maintaining a 16:9 aspect ratio"

@@ -55,6 +55,6 @@ }

"fullBleed": {
"required": false,
"flowType": {
"name": "boolean"
},
"required": false,
"description": "Removes the action area’s padding and causes its only child (an mdc-card__action element) to consume 100% of the action area’s width"

@@ -61,0 +61,0 @@ }

@@ -22,46 +22,7 @@ import { SimpleTagPropsT } from '@rmwc/base';

sixteenByNine?: boolean;
};
} & SimpleTagPropsT;
/** Media area that displays a custom background-image with background-size: cover */
export declare const CardMedia: React.ComponentType<CardMediaPropsT>;
/** An absolutely-positioned box the same size as the media area, for displaying a title or icon on top of the background-image */
export declare const CardMediaContent: {
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 CardMediaContent: React.ComponentType<SimpleTagPropsT>;
/** The main clickable area for the primary content of the card */

@@ -79,83 +40,5 @@ export declare const CardPrimaryAction: React.ComponentType<SimpleTagPropsT & WithRipplePropsT>;

/** A group of action buttons, displayed on the left side of the card (in LTR), adjacent to CardActionIcons */
export declare const CardActionButtons: {
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 CardActionButtons: React.ComponentType<SimpleTagPropsT>;
/** A group of supplemental action icons, displayed on the right side of the card (in LTR), adjacent to CardActionButtons */
export declare const CardActionIcons: {
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 CardActionIcons: React.ComponentType<SimpleTagPropsT>;
export declare type CardActionPropsT = IconButtonPropsT;

@@ -162,0 +45,0 @@ /** A Card action Button. Depending on the props that are passed, this will either render an instance of the Button component, or the IconButton component. */

{
"name": "@rmwc/card",
"version": "2.0.1",
"version": "2.0.2",
"description": "RMWC Card component",

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

"@material/card": "~0.39.0",
"@rmwc/base": "^2.0.1",
"@rmwc/button": "^2.0.1",
"@rmwc/icon-button": "^2.0.1",
"@rmwc/ripple": "^2.0.1"
"@rmwc/base": "^2.0.2",
"@rmwc/button": "^2.0.2",
"@rmwc/icon-button": "^2.0.2",
"@rmwc/ripple": "^2.0.2"
}
}

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