@ayush-2002/npm-library
Advanced tools
Comparing version 0.0.2 to 0.1.0
@@ -1,2 +0,2 @@ | ||
"use strict";var e=require("react");function r(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t}function t(e,r){void 0===r&&(r={});var t=r.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===t&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}"function"==typeof SuppressedError&&SuppressedError;t("button {\n color: white;\n border-radius: 100px;\n border: none;\n padding: 10;\n cursor: pointer;\n}\nbutton:hover {\n padding: 13;\n background-color: orange;\n}\n");t(".h1 {\n color: red;\n border: 2px solid black;\n padding: 2em;\n}\n");exports.Button=t=>{var{children:n,variant:o="primary"}=t,d=r(t,["children","variant"]);return e.createElement("button",Object.assign({},d,{style:{backgroundColor:"primary"===o?"blue":"red"}}),n)},exports.Text=t=>{var{children:n}=t,o=r(t,["children"]);return e.createElement("h1",Object.assign({},o),n)}; | ||
"use strict";var e=require("react");function r(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t}function t(e,r){void 0===r&&(r={});var t=r.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===t&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}"function"==typeof SuppressedError&&SuppressedError;t("button {\n color: white;\n border-radius: 100px;\n border: none;\n padding: 10;\n cursor: pointer;\n}\nbutton:hover {\n padding: 13px;\n background-color: orange;\n}\n");t(".h1 {\n color: red;\n border: 2px solid black;\n padding: 2em;\n}\n");exports.Button=t=>{var{children:n,variant:o="primary"}=t,d=r(t,["children","variant"]);return e.createElement("button",Object.assign({},d,{style:{backgroundColor:"primary"===o?"blue":"red"}}),n)},exports.Text=t=>{var{children:n}=t,o=r(t,["children"]);return e.createElement("h1",Object.assign({},o),n)}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import e from"react";function r(e,r){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(n[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(e);o<t.length;o++)r.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(n[t[o]]=e[t[o]])}return n}function n(e,r){void 0===r&&(r={});var n=r.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}"function"==typeof SuppressedError&&SuppressedError;n("button {\n color: white;\n border-radius: 100px;\n border: none;\n padding: 10;\n cursor: pointer;\n}\nbutton:hover {\n padding: 13;\n background-color: orange;\n}\n");const t=n=>{var{children:t,variant:o="primary"}=n,d=r(n,["children","variant"]);return e.createElement("button",Object.assign({},d,{style:{backgroundColor:"primary"===o?"blue":"red"}}),t)};n(".h1 {\n color: red;\n border: 2px solid black;\n padding: 2em;\n}\n");const o=n=>{var{children:t}=n,o=r(n,["children"]);return e.createElement("h1",Object.assign({},o),t)};export{t as Button,o as Text}; | ||
import e from"react";function r(e,r){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(n[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(t=Object.getOwnPropertySymbols(e);o<t.length;o++)r.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(e,t[o])&&(n[t[o]]=e[t[o]])}return n}function n(e,r){void 0===r&&(r={});var n=r.insertAt;if(e&&"undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&t.firstChild?t.insertBefore(o,t.firstChild):t.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}"function"==typeof SuppressedError&&SuppressedError;n("button {\n color: white;\n border-radius: 100px;\n border: none;\n padding: 10;\n cursor: pointer;\n}\nbutton:hover {\n padding: 13px;\n background-color: orange;\n}\n");const t=n=>{var{children:t,variant:o="primary"}=n,d=r(n,["children","variant"]);return e.createElement("button",Object.assign({},d,{style:{backgroundColor:"primary"===o?"blue":"red"}}),t)};n(".h1 {\n color: red;\n border: 2px solid black;\n padding: 2em;\n}\n");const o=n=>{var{children:t}=n,o=r(n,["children"]);return e.createElement("h1",Object.assign({},o),t)};export{t as Button,o as Text}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@ayush-2002/npm-library", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "testing library configuration", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
49951
26