@amalto/switch
Advanced tools
Comparing version 1.10.9 to 1.10.10
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
@@ -3,0 +2,0 @@ declare module Switch { |
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
@@ -12,5 +15,15 @@ extendStatics(d, b); | ||
})(); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var React = require("react"); | ||
var classNames = require("classnames"); | ||
var React = __importStar(require("react")); | ||
var classnames_1 = __importDefault(require("classnames")); | ||
var Switch = (function (_super) { | ||
@@ -27,3 +40,3 @@ __extends(Switch, _super); | ||
return (React.createElement("div", { style: { paddingTop: 2, paddingBottom: 2, height: 32 }, className: this.props.cssClass }, | ||
React.createElement("div", { className: classNames('onoffswitch', { | ||
React.createElement("div", { className: classnames_1.default('onoffswitch', { | ||
'left-align': this.props.alignLeft | ||
@@ -33,3 +46,3 @@ }) }, | ||
React.createElement("label", { className: "onoffswitch-label", htmlFor: this.props.id }, | ||
React.createElement("span", { className: classNames('onoffswitch-inner', { | ||
React.createElement("span", { className: classnames_1.default('onoffswitch-inner', { | ||
'disabled': this.props.disabled | ||
@@ -36,0 +49,0 @@ }) }), |
@@ -5,3 +5,3 @@ { | ||
"description": "Switch button.", | ||
"version": "1.10.9", | ||
"version": "1.10.10", | ||
"license": "MIT", | ||
@@ -53,5 +53,5 @@ "repository": { | ||
"sinon": "4.2.2", | ||
"ts-loader": "5.3.3", | ||
"typescript": "2.6.2", | ||
"webpack": "^4.29.5" | ||
"ts-loader": "6.2.1", | ||
"typescript": "3.7.2", | ||
"webpack": "4.41.2" | ||
}, | ||
@@ -82,3 +82,3 @@ "ava": { | ||
}, | ||
"gitHead": "eb79ad91cabb7be571c949ec14ca578c3b2f60a3" | ||
"gitHead": "9202725e98553156b94cc464a148924c2a797c74" | ||
} |
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "commonjs", | ||
"noImplicitAny": false, | ||
"noUnusedParameters": true, | ||
"removeComments": true, | ||
"outDir": "./build", | ||
"jsx": "react", | ||
"sourceMap": true, | ||
"declaration": true, | ||
"experimentalDecorators": true, | ||
"lib": [ | ||
"dom", | ||
"es5", | ||
"es6", | ||
"es2015", | ||
"es7", | ||
"es2016", | ||
"es2017" | ||
] | ||
}, | ||
"compilerOptions": { | ||
"target": "es5", | ||
"lib": [ | ||
"dom", | ||
"dom.iterable", | ||
"esnext", | ||
"es5", | ||
"es6", | ||
"es7", | ||
"es2015", | ||
"es2016", | ||
"es2017", | ||
"es2018" | ||
], | ||
"skipLibCheck": true, | ||
"esModuleInterop": true, | ||
"allowSyntheticDefaultImports": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"jsx": "react", | ||
"outDir": "./build", | ||
"noImplicitAny": false, | ||
"noUnusedParameters": true, | ||
"removeComments": true, | ||
"sourceMap": true, | ||
"declaration": true, | ||
"experimentalDecorators": true | ||
}, | ||
"exclude": [ | ||
"node_modules" | ||
] | ||
} | ||
} |
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
13490
244