viper_core
Advanced tools
Comparing version 1.0.3 to 1.0.4
import { Test } from "./test.component"; | ||
export { Test }; | ||
import { Test2 } from "./test2.component"; | ||
export { Test, Test2 }; |
@@ -184,7 +184,21 @@ import { createElement, Component } from 'react'; | ||
var component = function (props) { | ||
return (createElement("div", { className: props.styling.getStyle(styles, "test") }, "Hallo, dit is een test!")); | ||
return (createElement("div", null, | ||
createElement("div", { className: props.styling.getStyle(styles, "test") }, "Hallo, dit is een test!"), | ||
createElement("div", null, | ||
"De extra prop: ", | ||
props.extra))); | ||
}; | ||
var Test = withStyling(component); | ||
export { Test }; | ||
var css$1 = ".test2-component-module_test__mepuH {\n color: green;\n}\n"; | ||
var styles$1 = {"test":"test2-component-module_test__mepuH"}; | ||
styleInject(css$1); | ||
var Test2 = function (props) { | ||
return (createElement("div", { className: styles$1.test }, | ||
"Test 2 component, text: ", | ||
props.text)); | ||
}; | ||
export { Test, Test2 }; | ||
//# sourceMappingURL=index.es.js.map |
@@ -188,7 +188,22 @@ 'use strict'; | ||
var component = function (props) { | ||
return (React.createElement("div", { className: props.styling.getStyle(styles, "test") }, "Hallo, dit is een test!")); | ||
return (React.createElement("div", null, | ||
React.createElement("div", { className: props.styling.getStyle(styles, "test") }, "Hallo, dit is een test!"), | ||
React.createElement("div", null, | ||
"De extra prop: ", | ||
props.extra))); | ||
}; | ||
var Test = withStyling(component); | ||
var css$1 = ".test2-component-module_test__mepuH {\n color: green;\n}\n"; | ||
var styles$1 = {"test":"test2-component-module_test__mepuH"}; | ||
styleInject(css$1); | ||
var Test2 = function (props) { | ||
return (React.createElement("div", { className: styles$1.test }, | ||
"Test 2 component, text: ", | ||
props.text)); | ||
}; | ||
exports.Test = Test; | ||
exports.Test2 = Test2; | ||
//# sourceMappingURL=index.js.map |
@@ -1,5 +0,22 @@ | ||
/// <reference types="react" /> | ||
export interface ITestProps { | ||
import * as React from "react"; | ||
import { IInjectedStylingProps } from "@app/higher-order"; | ||
export interface ITestProps extends IInjectedStylingProps { | ||
extra: string; | ||
} | ||
declare const Test: () => JSX.Element; | ||
declare const Test: { | ||
new (props: any): { | ||
render(): JSX.Element; | ||
context: any; | ||
setState<K extends "styleUtil">(state: import("./higher-order").IWithStylingState | ((prevState: Readonly<import("./higher-order").IWithStylingState>, props: Readonly<Pick<ITestProps, "extra"> & import("./higher-order").IWithStylingProps>) => import("./higher-order").IWithStylingState | Pick<import("./higher-order").IWithStylingState, K> | null) | Pick<import("./higher-order").IWithStylingState, K> | null, callback?: (() => void) | undefined): void; | ||
forceUpdate(callback?: (() => void) | undefined): void; | ||
readonly props: Readonly<Pick<ITestProps, "extra"> & import("./higher-order").IWithStylingProps> & Readonly<{ | ||
children?: React.ReactNode; | ||
}>; | ||
state: Readonly<import("./higher-order").IWithStylingState>; | ||
refs: { | ||
[key: string]: React.ReactInstance; | ||
}; | ||
}; | ||
contextType?: React.Context<any> | undefined; | ||
}; | ||
export { Test }; |
{ | ||
"name": "viper_core", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "webbio", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
63189
14
446
0