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

react-css-styler

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-css-styler - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

12

declaration/styled.d.ts

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

import React from "react";
/// <reference types="react" />
import { StylerElement } from "./types";

@@ -6,4 +6,4 @@ export default function styled<T extends keyof JSX.IntrinsicElements = "div">(Tag: T, css: string): {

element: StylerElement<T>;
render(): React.DOMElement<{
children?: React.ReactNode;
render(): import("react").DOMElement<{
children?: import("react").ReactNode;
className: string;

@@ -22,10 +22,10 @@ }, Element>;

}> & Readonly<{
children?: React.ReactNode;
children?: import("react").ReactNode;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
[key: string]: import("react").ReactInstance;
};
};
contextType?: React.Context<any> | undefined;
contextType?: import("react").Context<any> | undefined;
};

@@ -6,9 +6,9 @@ /*

author: Daybrush
repository: git+https://github.com/daybrush/react-css-styler.git
version: 0.3.0
repository: https://github.com/daybrush/css-styler/tree/master/react-css-styler
version: 0.3.1
*/
'use strict';
var React = require('react');
var ReactDOM = require('react-dom');
var react = require('react');
var reactDom = require('react-dom');
var utils = require('@daybrush/utils');

@@ -126,3 +126,3 @@

return React.createElement(Tag, __assign({
return react.createElement(Tag, __assign({
className: className + " " + injectClassName

@@ -149,7 +149,7 @@ }, attributes));

Styler.prototype.getElement = function () {
return this.element || (this.element = ReactDOM.findDOMNode(this));
return this.element || (this.element = reactDom.findDOMNode(this));
};
return Styler;
}(React.Component)
}(react.Component)
);

@@ -156,0 +156,0 @@ }

@@ -6,7 +6,7 @@ /*

author: Daybrush
repository: git+https://github.com/daybrush/react-css-styler.git
version: 0.3.0
repository: https://github.com/daybrush/css-styler/tree/master/react-css-styler
version: 0.3.1
*/
import React from 'react';
import ReactDOM from 'react-dom';
import { createElement, Component } from 'react';
import { findDOMNode } from 'react-dom';
import { splitComma } from '@daybrush/utils';

@@ -124,3 +124,3 @@

return React.createElement(Tag, __assign({
return createElement(Tag, __assign({
className: className + " " + injectClassName

@@ -147,7 +147,7 @@ }, attributes));

Styler.prototype.getElement = function () {
return this.element || (this.element = ReactDOM.findDOMNode(this));
return this.element || (this.element = findDOMNode(this));
};
return Styler;
}(React.Component)
}(Component)
);

@@ -154,0 +154,0 @@ }

{
"name": "react-css-styler",
"version": "0.3.0",
"version": "0.3.1",
"description": "This component is a lightweight, simple line style component.",

@@ -42,3 +42,3 @@ "main": "./dist/styler.cjs.js",

"type": "git",
"url": "git+https://github.com/daybrush/react-css-styler.git"
"url": "https://github.com/daybrush/css-styler/tree/master/react-css-styler"
},

@@ -45,0 +45,0 @@ "bugs": {

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