@corva/ui 0.71.0-8 → 0.71.0-9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";var r=require('./../../ext-esm/tslib/tslib.es6.js'),a=require("react/jsx-runtime"),e=require("react"),o=require("@material-ui/core");function t(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var n=t(require("classnames")),i=o.makeStyles((function(r){return{dangerPrimary:{color:"#FFFFFF",backgroundColor:"".concat(r.palette.error.main," !important"),"&:hover":{backgroundColor:"".concat(r.palette.error.dark," !important")}},dangerPrimaryDisabled:{backgroundColor:r.palette.error.main,color:"#FFFFFF !important"},dangerSecondary:{color:"".concat(r.palette.error.main," !important"),"&:hover":{backgroundColor:"rgba(211, 47, 47, 0.2)"}},dangerSecondaryDisabled:{color:r.palette.error.main}}})),s=e.forwardRef((function(e,t){var s=e.classes,l=void 0===s?{}:s,c=e.variation,d=r.__rest(e,["classes","variation"]),u=i(),m=r.__assign(r.__assign({},l),{root:n.default(null==u?void 0:u[c],l.root),disabled:n.default(null==u?void 0:u["".concat(c,"Disabled")],l.disabled)}),g=r.__assign(r.__assign(r.__assign({classes:m},function(r){return{primary:{color:"primary",variant:"contained"},secondary:{color:"primary"},dangerPrimary:{variant:"contained"}}[r]||{}}(e.variation)),d),{ref:t});return a.jsx(o.Button,r.__assign({},g))}));s.defaultProps={variation:"tertiary"};var l=e.memo(s);module.exports=l;
1
+ "use strict";var r=require('./../../ext-esm/tslib/tslib.es6.js'),a=require("react/jsx-runtime"),e=require("react"),o=require("@material-ui/core");function t(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var n=t(require("classnames")),i=o.makeStyles((function(r){return{dangerPrimary:{color:"#FFFFFF",backgroundColor:"".concat(r.palette.error.main," !important"),"&:hover":{backgroundColor:"".concat(r.palette.error.dark," !important")}},dangerPrimaryDisabled:{backgroundColor:r.palette.error.main,color:"#FFFFFF !important"},dangerSecondary:{color:"".concat(r.palette.error.main," !important"),"&:hover":{backgroundColor:"rgba(211, 47, 47, 0.2)"}},dangerSecondaryDisabled:{color:r.palette.error.main}}})),s=e.forwardRef((function(e,t){var s=e.classes,l=void 0===s?{}:s,c=e.variation,d=r.__rest(e,["classes","variation"]),u=i(),m=r.__assign(r.__assign({},l),{root:n.default(null==u?void 0:u[c],l.root),disabled:n.default(null==u?void 0:u["".concat(c,"Disabled")],l.disabled)}),g=r.__assign(r.__assign(r.__assign({classes:m},function(r){return{primary:{color:"primary",variant:"contained"},secondary:{color:"primary"},dangerPrimary:{variant:"contained"}}[r]||{}}(e.variation)),d),{ref:t});return a.jsx(o.Button,r.__assign({"data-testid":"Button_".concat(e.children)},g))}));s.defaultProps={variation:"tertiary"};var l=e.memo(s);module.exports=l;
@@ -1 +1 @@
1
- import{__rest as r,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as a}from"react/jsx-runtime";import{forwardRef as t,memo as e}from"react";import{makeStyles as n,Button as i}from"@material-ui/core";import l from"classnames";var c=n((function(r){return{dangerPrimary:{color:"#FFFFFF",backgroundColor:"".concat(r.palette.error.main," !important"),"&:hover":{backgroundColor:"".concat(r.palette.error.dark," !important")}},dangerPrimaryDisabled:{backgroundColor:r.palette.error.main,color:"#FFFFFF !important"},dangerSecondary:{color:"".concat(r.palette.error.main," !important"),"&:hover":{backgroundColor:"rgba(211, 47, 47, 0.2)"}},dangerSecondaryDisabled:{color:r.palette.error.main}}})),d=t((function(t,e){var n=t.classes,d=void 0===n?{}:n,m=t.variation,s=r(t,["classes","variation"]),p=c(),u=o(o({},d),{root:l(null==p?void 0:p[m],d.root),disabled:l(null==p?void 0:p["".concat(m,"Disabled")],d.disabled)}),v=o(o(o({classes:u},function(r){return{primary:{color:"primary",variant:"contained"},secondary:{color:"primary"},dangerPrimary:{variant:"contained"}}[r]||{}}(t.variation)),s),{ref:e});return a(i,o({},v))}));d.defaultProps={variation:"tertiary"};var m=e(d);export{m as default};
1
+ import{__rest as r,__assign as a}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as o}from"react/jsx-runtime";import{forwardRef as t,memo as e}from"react";import{makeStyles as n,Button as i}from"@material-ui/core";import c from"classnames";var l=n((function(r){return{dangerPrimary:{color:"#FFFFFF",backgroundColor:"".concat(r.palette.error.main," !important"),"&:hover":{backgroundColor:"".concat(r.palette.error.dark," !important")}},dangerPrimaryDisabled:{backgroundColor:r.palette.error.main,color:"#FFFFFF !important"},dangerSecondary:{color:"".concat(r.palette.error.main," !important"),"&:hover":{backgroundColor:"rgba(211, 47, 47, 0.2)"}},dangerSecondaryDisabled:{color:r.palette.error.main}}})),d=t((function(t,e){var n=t.classes,d=void 0===n?{}:n,m=t.variation,s=r(t,["classes","variation"]),p=l(),u=a(a({},d),{root:c(null==p?void 0:p[m],d.root),disabled:c(null==p?void 0:p["".concat(m,"Disabled")],d.disabled)}),v=a(a(a({classes:u},function(r){return{primary:{color:"primary",variant:"contained"},secondary:{color:"primary"},dangerPrimary:{variant:"contained"}}[r]||{}}(t.variation)),s),{ref:e});return o(i,a({"data-testid":"Button_".concat(t.children)},v))}));d.defaultProps={variation:"tertiary"};var m=e(d);export{m as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.71.0-8",
3
+ "version": "0.71.0-9",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"