Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

inzane-test-package

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inzane-test-package - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

122

dist/esm/index.js

@@ -31,3 +31,3 @@ import * as React from 'react';

var css_248z = "/*! tailwindcss v3.0.22 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:\"\"}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.ml-3{margin-left:.75rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.h-5{height:1.25rem}.h-4{height:1rem}.h-2{height:.5rem}.w-5{width:1.25rem}.w-4{width:1rem}.max-w-lg{max-width:32rem}.flex-shrink-0{flex-shrink:0}.flex-col{flex-direction:column}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-md{border-radius:.375rem}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgb(191 219 254/var(--tw-bg-opacity))}.p-2{padding:.5rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.pt-6{padding-top:1.5rem}.pb-8{padding-bottom:2rem}.pb-6{padding-bottom:1.5rem}.pt-1{padding-top:.25rem}.pb-1{padding-bottom:.25rem}.pt-3{padding-top:.75rem}.text-left{text-align:left}.text-center{text-align:center}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-light{font-weight:300}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width:640px){.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pt-6{padding-top:1.5rem}}";
var css_248z = "/*! tailwindcss v3.0.22 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:\"\"}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.ml-3{margin-left:.75rem}.mb-2{margin-bottom:.5rem}.ml-1{margin-left:.25rem}.mt-1{margin-top:.25rem}.ml-2{margin-left:.5rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.-ml-0\\.5{margin-left:-.125rem}.mr-1\\.5{margin-right:.375rem}.-ml-0{margin-left:0}.mr-1{margin-right:.25rem}.ml-0\\.5{margin-left:.125rem}.ml-0{margin-left:0}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.h-5{height:1.25rem}.h-4{height:1rem}.h-2{height:.5rem}.h-3{height:.75rem}.w-5{width:1.25rem}.w-4{width:1rem}.w-2{width:.5rem}.max-w-lg{max-width:32rem}.flex-shrink-0{flex-shrink:0}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-3{gap:.75rem}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.125rem*var(--tw-space-x-reverse))}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)));margin-right:calc(0px*var(--tw-space-x-reverse))}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-md{border-radius:.375rem}.rounded-lg{border-radius:.5rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgb(191 219 254/var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(99 102 241/var(--tw-bg-opacity))}.bg-violet-500{--tw-bg-opacity:1;background-color:rgb(139 92 246/var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity:1;background-color:rgb(168 85 247/var(--tw-bg-opacity))}.p-2{padding:.5rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-0{padding-bottom:0;padding-top:0}.pt-6{padding-top:1.5rem}.pb-8{padding-bottom:2rem}.pb-6{padding-bottom:1.5rem}.pt-1{padding-top:.25rem}.pb-1{padding-bottom:.25rem}.pt-3{padding-top:.75rem}.pr-2\\.5{padding-right:.625rem}.pl-1{padding-left:.25rem}.pr-3{padding-right:.75rem}.pr-2{padding-right:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.font-normal{font-weight:400}.font-semibold{font-weight:600}.font-light{font-weight:300}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-slate-600{--tw-text-opacity:1;color:rgb(71 85 105/var(--tw-text-opacity))}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width:640px){.sm\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pt-6{padding-top:1.5rem}}";
styleInject(css_248z,{"insertAt":"top"});

@@ -1189,20 +1189,27 @@

function bgColorClassNames(className) {
if (className === undefined) return "";
return className.startsWith("bg-") ? className : "";
}
function textColorClassNames(className) {
if (className === undefined) return "";
return className.startsWith("text-") ? className : "";
}
function maxWidthClassNames(className) {
if (className === undefined) return "";
return className.startsWith("max-w-") ? className : "";
}
function widthClassNames(className) {
if (className === undefined) return "";
return className.startsWith("w-") ? className : "";
}
function borderClassNames(className) {
if (className === undefined) return "";
return className.startsWith("border") ? className : "";
}
function shadowClassNames(className) {
if (className === undefined) return "";
return className.startsWith("shadow") ? className : "";
}
function roundedCornersClassNames(className) {
if (className === undefined) return "";
return className.startsWith("rounded") ? className : "";

@@ -1370,3 +1377,114 @@ }

export { BasicCard, ProgressBar };
function StatusBar(_ref) {
var title = _ref.title,
value = _ref.value,
delta = _ref.delta,
deltaType = _ref.deltaType,
categories = _ref.categories,
maxWidth = _ref.maxWidth,
width = _ref.width,
border = _ref.border,
borderColor = _ref.borderColor,
shadow = _ref.shadow,
roundedCorners = _ref.roundedCorners;
return /*#__PURE__*/React__default.createElement("div", {
className: classNames(maxWidthClassNames(maxWidth), widthClassNames(width), borderClassNames(border), borderClassNames(borderColor), shadowClassNames(shadow), roundedCornersClassNames(roundedCorners), "bg-white pt-6 px-6 pb-8 sm:pt-6 sm:px-6 overflow-hidden text-left")
}, /*#__PURE__*/React__default.createElement("p", {
className: "text-sm font-normal text-gray-400"
}, title), /*#__PURE__*/React__default.createElement("div", {
className: "flex items-baseline"
}, /*#__PURE__*/React__default.createElement("p", {
className: "mt-1 text-3xl font-semibold text-gray-600"
}, value), /*#__PURE__*/React__default.createElement("span", {
className: classNames(deltaType === 'increase' ? 'text-green-500 pr-2.5 pl-1 py-0.5 rounded-full bg-green-100' : 'text-red-500 pr-3 pl-1 py-1 rounded-full bg-red-100', 'ml-2 flex text-sm font-semibold')
}, deltaType === '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"
}, deltaType === 'increase' ? 'Increased' : 'Decreased', " by"), delta)), /*#__PURE__*/React__default.createElement("div", {
className: "mt-1"
}, /*#__PURE__*/React__default.createElement("div", {
className: "pt-3"
}, /*#__PURE__*/React__default.createElement("div", {
className: "overflow-hidden mt-2 h-3 text-xs flex space-x-0.5"
}, categories.map(function (category, idx) {
return /*#__PURE__*/React__default.createElement("div", {
key: idx,
style: {
width: "".concat(category.percentage, "%")
},
className: classNames(bgColorClassNames(category.bgColor), "flex flex-col justify-center")
});
})), /*#__PURE__*/React__default.createElement("dl", {
className: "mt-4 grid grid-cols-2 gap-3 sm:grid-cols-4"
}, categories.map(function (category, idx) {
return /*#__PURE__*/React__default.createElement("div", {
key: idx,
className: "order-".concat(idx)
}, /*#__PURE__*/React__default.createElement("p", {
className: "pt-1 pb-1 text-sm font-normal text-gray-400"
}, category.name), /*#__PURE__*/React__default.createElement("div", {
className: "flex items-center"
}, /*#__PURE__*/React__default.createElement("svg", {
className: classNames(bgColorClassNames(category.bgColor), "-ml-0.5 mr-1.5 h-2 w-2 rounded-full"),
fill: "currentColor",
viewBox: "0 0 8 8"
}), /*#__PURE__*/React__default.createElement("p", {
className: "ml-0.5 text-normal font-semibold text-slate-600"
}, category.value)));
})))));
}
StatusBar.propTypes = {
title: PropTypes.string,
value: PropTypes.string,
delta: PropTypes.string,
deltaType: PropTypes.string,
categories: PropTypes.arrayOf(PropTypes.object),
maxWidth: PropTypes.string,
width: PropTypes.string,
border: PropTypes.string,
borderColor: PropTypes.string,
shadow: PropTypes.string,
roundedCorners: PropTypes.string
};
var categoryData = [{
name: "Open",
value: "45%",
percentage: 45,
bgColor: "bg-blue-500"
}, {
name: "In Progress",
value: "25%",
percentage: 25,
bgColor: "bg-indigo-500"
}, {
name: "In Review",
value: "15%",
percentage: 15,
bgColor: "bg-violet-500"
}, {
name: "Done",
value: "15%",
percentage: 15,
bgColor: "bg-purple-500"
}];
StatusBar.defaultProps = {
title: "Cases",
value: "23.890",
delta: "29.3%",
deltaType: "increase",
categories: categoryData,
maxWidth: "max-w-lg",
width: "",
border: "border",
borderColor: "",
shadow: "shadow",
roundedCorners: "rounded-lg"
};
export { BasicCard, ProgressBar, StatusBar };
//# sourceMappingURL=index.js.map

2

package.json
{
"name": "inzane-test-package",
"version": "0.1.2",
"version": "0.1.3",
"description": "Inzane Test",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc