inzane-test-package
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -9,3 +9,22 @@ 'use strict'; | ||
function _interopNamespace(e) { | ||
if (e && e.__esModule) return e; | ||
var n = Object.create(null); | ||
if (e) { | ||
Object.keys(e).forEach(function (k) { | ||
if (k !== 'default') { | ||
var d = Object.getOwnPropertyDescriptor(e, k); | ||
Object.defineProperty(n, k, d.get ? d : { | ||
enumerable: true, | ||
get: function () { return e[k]; } | ||
}); | ||
} | ||
}); | ||
} | ||
n["default"] = e; | ||
return Object.freeze(n); | ||
} | ||
var React__default = /*#__PURE__*/_interopDefaultLegacy(React); | ||
var React__namespace = /*#__PURE__*/_interopNamespace(React); | ||
@@ -16,4 +35,62 @@ function Button(props) { | ||
function ArrowSmDownIcon(props) { | ||
return /*#__PURE__*/React__namespace.createElement("svg", Object.assign({ | ||
xmlns: "http://www.w3.org/2000/svg", | ||
viewBox: "0 0 20 20", | ||
fill: "currentColor", | ||
"aria-hidden": "true" | ||
}, props), /*#__PURE__*/React__namespace.createElement("path", { | ||
fillRule: "evenodd", | ||
d: "M14.707 10.293a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 111.414-1.414L9 12.586V5a1 1 0 012 0v7.586l2.293-2.293a1 1 0 011.414 0z", | ||
clipRule: "evenodd" | ||
})); | ||
} | ||
function ArrowSmUpIcon(props) { | ||
return /*#__PURE__*/React__namespace.createElement("svg", Object.assign({ | ||
xmlns: "http://www.w3.org/2000/svg", | ||
viewBox: "0 0 20 20", | ||
fill: "currentColor", | ||
"aria-hidden": "true" | ||
}, props), /*#__PURE__*/React__namespace.createElement("path", { | ||
fillRule: "evenodd", | ||
d: "M5.293 9.707a1 1 0 010-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.414L11 7.414V15a1 1 0 11-2 0V7.414L6.707 9.707a1 1 0 01-1.414 0z", | ||
clipRule: "evenodd" | ||
})); | ||
} | ||
function classNames(...classes) { | ||
return classes.filter(Boolean).join(' '); | ||
} | ||
function BasicCard(props) { | ||
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", null, props.data), /*#__PURE__*/React__default["default"].createElement("div", null, " Whats up? ")); | ||
return /*#__PURE__*/React__default["default"].createElement("div", { | ||
key: props.data.id, | ||
className: "relative bg-white pt-6 px-6 pb-8 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden" | ||
}, /*#__PURE__*/React__default["default"].createElement("dd", { | ||
className: "self-start flex justify-between md:flex lg:flex" | ||
}, /*#__PURE__*/React__default["default"].createElement("div", { | ||
className: "pb-6" | ||
}, /*#__PURE__*/React__default["default"].createElement("p", { | ||
className: "text-sm font-normal text-gray-400" | ||
}, props.data.name), /*#__PURE__*/React__default["default"].createElement("p", { | ||
className: "text-xl font-semibold text-gray-600" | ||
}, props.data.stat)), /*#__PURE__*/React__default["default"].createElement("div", { | ||
className: "self-start inline-flex items-baseline bg-blue-100 rounded-md p-2" | ||
}, /*#__PURE__*/React__default["default"].createElement(data.icon, { | ||
className: "h-4 w-4 text-blue-600", | ||
"aria-hidden": "true" | ||
}))), /*#__PURE__*/React__default["default"].createElement("p", { | ||
className: classNames(props.data.changeType === 'increase' ? 'text-green-500' : 'text-red-600', 'flex items-baseline text-sm font-semibold') | ||
}, props.data.changeType === 'increase' ? /*#__PURE__*/React__default["default"].createElement(ArrowSmUpIcon, { | ||
className: "self-center flex-shrink-0 h-5 w-5 text-green-500", | ||
"aria-hidden": "true" | ||
}) : /*#__PURE__*/React__default["default"].createElement(ArrowSmDownIcon, { | ||
className: "self-center flex-shrink-0 h-5 w-5 text-red-500", | ||
"aria-hidden": "true" | ||
}), /*#__PURE__*/React__default["default"].createElement("span", { | ||
className: "sr-only" | ||
}, props.data.changeType === 'increase' ? 'Increased' : 'Decreased', " by"), props.data.change, /*#__PURE__*/React__default["default"].createElement("span", { | ||
className: "text-gray-400 font-normal ml-3" | ||
}, "Since last month"))); | ||
} | ||
@@ -20,0 +97,0 @@ |
@@ -1,9 +0,68 @@ | ||
import React from 'react'; | ||
import * as React from 'react'; | ||
import React__default from 'react'; | ||
function Button(props) { | ||
return /*#__PURE__*/React.createElement("div", null, props.data); | ||
return /*#__PURE__*/React__default.createElement("div", null, props.data); | ||
} | ||
function ArrowSmDownIcon(props) { | ||
return /*#__PURE__*/React.createElement("svg", Object.assign({ | ||
xmlns: "http://www.w3.org/2000/svg", | ||
viewBox: "0 0 20 20", | ||
fill: "currentColor", | ||
"aria-hidden": "true" | ||
}, props), /*#__PURE__*/React.createElement("path", { | ||
fillRule: "evenodd", | ||
d: "M14.707 10.293a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 111.414-1.414L9 12.586V5a1 1 0 012 0v7.586l2.293-2.293a1 1 0 011.414 0z", | ||
clipRule: "evenodd" | ||
})); | ||
} | ||
function ArrowSmUpIcon(props) { | ||
return /*#__PURE__*/React.createElement("svg", Object.assign({ | ||
xmlns: "http://www.w3.org/2000/svg", | ||
viewBox: "0 0 20 20", | ||
fill: "currentColor", | ||
"aria-hidden": "true" | ||
}, props), /*#__PURE__*/React.createElement("path", { | ||
fillRule: "evenodd", | ||
d: "M5.293 9.707a1 1 0 010-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 01-1.414 1.414L11 7.414V15a1 1 0 11-2 0V7.414L6.707 9.707a1 1 0 01-1.414 0z", | ||
clipRule: "evenodd" | ||
})); | ||
} | ||
function classNames(...classes) { | ||
return classes.filter(Boolean).join(' '); | ||
} | ||
function BasicCard(props) { | ||
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, props.data), /*#__PURE__*/React.createElement("div", null, " Whats up? ")); | ||
return /*#__PURE__*/React__default.createElement("div", { | ||
key: props.data.id, | ||
className: "relative bg-white pt-6 px-6 pb-8 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden" | ||
}, /*#__PURE__*/React__default.createElement("dd", { | ||
className: "self-start flex justify-between md:flex lg:flex" | ||
}, /*#__PURE__*/React__default.createElement("div", { | ||
className: "pb-6" | ||
}, /*#__PURE__*/React__default.createElement("p", { | ||
className: "text-sm font-normal text-gray-400" | ||
}, props.data.name), /*#__PURE__*/React__default.createElement("p", { | ||
className: "text-xl font-semibold text-gray-600" | ||
}, props.data.stat)), /*#__PURE__*/React__default.createElement("div", { | ||
className: "self-start inline-flex items-baseline bg-blue-100 rounded-md p-2" | ||
}, /*#__PURE__*/React__default.createElement(data.icon, { | ||
className: "h-4 w-4 text-blue-600", | ||
"aria-hidden": "true" | ||
}))), /*#__PURE__*/React__default.createElement("p", { | ||
className: classNames(props.data.changeType === 'increase' ? 'text-green-500' : 'text-red-600', 'flex items-baseline text-sm font-semibold') | ||
}, props.data.changeType === 'increase' ? /*#__PURE__*/React__default.createElement(ArrowSmUpIcon, { | ||
className: "self-center flex-shrink-0 h-5 w-5 text-green-500", | ||
"aria-hidden": "true" | ||
}) : /*#__PURE__*/React__default.createElement(ArrowSmDownIcon, { | ||
className: "self-center flex-shrink-0 h-5 w-5 text-red-500", | ||
"aria-hidden": "true" | ||
}), /*#__PURE__*/React__default.createElement("span", { | ||
className: "sr-only" | ||
}, props.data.changeType === 'increase' ? 'Increased' : 'Decreased', " by"), props.data.change, /*#__PURE__*/React__default.createElement("span", { | ||
className: "text-gray-400 font-normal ml-3" | ||
}, "Since last month"))); | ||
} | ||
@@ -10,0 +69,0 @@ |
{ | ||
"name": "inzane-test-package", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Inzane Test", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
19049
152