react-css-styler
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
1
49573
29
1063