Socket
Socket
Sign inDemoInstall

@rmwc/base

Package Overview
Dependencies
Maintainers
1
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rmwc/base - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

package.json
{
"name": "@rmwc/base",
"version": "2.0.1",
"version": "2.0.2",
"description": "RMWC base module",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -17,43 +17,4 @@ import * as React from 'react';

apiRef?: <S>(api: S) => S;
} & React.HTMLAttributes<any>;
export declare const simpleTag: ({ displayName, defaultProps, consumeProps, tag, wrap: defaultWrap, classNames }: SimpleTagFactoryT) => {
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;
};
} & React.HTMLAttributes<any> & React.HTMLProps<any>;
export declare const simpleTag: ({ displayName, defaultProps, consumeProps, tag, wrap: defaultWrap, classNames }: SimpleTagFactoryT) => React.ComponentType<SimpleTagPropsT>;
export {};

@@ -60,11 +60,12 @@ 'use strict';

value: function render() {
var _props = this.props,
tag = _props.tag,
className = _props.className,
_props$wrap = _props.wrap,
wrap = _props$wrap === undefined ? false : _props$wrap,
elementRef = _props.elementRef,
theme = _props.theme,
rest = _objectWithoutProperties(_props, ['tag', 'className', 'wrap', 'elementRef', 'theme']);
var tsxProps = this.props;
var tag = tsxProps.tag,
className = tsxProps.className,
_tsxProps$wrap = tsxProps.wrap,
wrap = _tsxProps$wrap === undefined ? false : _tsxProps$wrap,
elementRef = tsxProps.elementRef,
theme = tsxProps.theme,
rest = _objectWithoutProperties(tsxProps, ['tag', 'className', 'wrap', 'elementRef', 'theme']);
// choose the tag we are going to render

@@ -71,0 +72,0 @@

@@ -6,3 +6,4 @@ "use strict";

});
/* tslint:disable:no-empty */
var noop = exports.noop = function noop() {};
exports.default = noop;
/**
* Generates a pseudo random string for DOM ids
* Will return 'test' in the NODE test-env so things like storyshots doesnt break.
* */
*/
export declare const randomId: (prefix: string) => string;

@@ -11,3 +11,3 @@ 'use strict';

* Will return 'test' in the NODE test-env so things like storyshots doesnt break.
* */
*/
var randomId = exports.randomId = function randomId(prefix) {

@@ -14,0 +14,0 @@ var id = process.env.NODE_ENV === 'test' ? 'test' : (Math.random() + Math.random() + 1).toString(36).substring(2);

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

/* tslint:disable:no-empty */
export const noop = () => {};
export default noop;
export default noop;

@@ -6,3 +6,3 @@ // @flow

* Will return 'test' in the NODE test-env so things like storyshots doesnt break.
* */
*/
export const randomId = (prefix: string): string => {

@@ -9,0 +9,0 @@ const id =

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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