polythene-core
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -141,13 +141,28 @@ (function (global, factory) { | ||
var sizeClasses = function sizeClasses(classes) { | ||
return { | ||
small: classes.small, | ||
regular: classes.regular, | ||
medium: classes.medium, | ||
large: classes.large, | ||
fab: classes.fab | ||
}; | ||
}; | ||
var classForSize = function classForSize(classes) { | ||
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "regular"; | ||
return sizeClasses(classes)[size]; | ||
}; | ||
var isTouch = isServer ? false : "ontouchstart" in document.documentElement; | ||
var pointerStartEvent = isTouch ? "click" : "mousedown"; | ||
var pointerStartEvent = isTouch ? ["touchstart", "click"] : ["click"]; | ||
var pointerEndEvent = isTouch ? "click" : "mouseup"; | ||
var pointerEndEvent = isTouch ? ["click", "mouseup"] : ["mouseup"]; | ||
var pointerStartMoveEvent = isTouch ? "touchstart" : "mousedown"; | ||
var pointerStartMoveEvent = isTouch ? ["touchstart", "mousedown"] : ["mousedown"]; | ||
var pointerMoveEvent = isTouch ? "touchmove" : "mousemove"; | ||
var pointerMoveEvent = isTouch ? ["touchmove", "mousemove"] : ["mousemove"]; | ||
var pointerEndMoveEvent = isTouch ? "touchend" : "mouseup"; | ||
var pointerEndMoveEvent = isTouch ? ["touchend", "mouseup"] : ["mouseup"]; | ||
@@ -635,2 +650,3 @@ if (isClient) { | ||
exports.unpackAttrs = unpackAttrs; | ||
exports.classForSize = classForSize; | ||
exports.isClient = isClient; | ||
@@ -637,0 +653,0 @@ exports.isServer = isServer; |
{ | ||
"name": "polythene-core", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "", | ||
@@ -10,3 +10,3 @@ "main": "dist/polythene-core", | ||
"rollup": "../../node_modules/rollup/bin/rollup -c ../../scripts/rollup.umd.js && ../../node_modules/rollup/bin/rollup -c ../../scripts/rollup.es.js", | ||
"build": "yarn run clean && yarn run rollup" | ||
"build": "npm run clean && npm run rollup" | ||
}, | ||
@@ -13,0 +13,0 @@ "files": [ |
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
83494
1138